/* A viewport-sized directory: the map gets the space left by the controls. */
html{height:100%;overflow:hidden}
body{height:100dvh;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden}
.header{height:60px;padding:0 20px;gap:12px}
.brand{gap:10px}.brand-icon{width:34px;height:36px;border-radius:10px}.brand-icon svg{width:23px;height:27px}
.brand h1{font-size:20px}.brand p{display:none}
.header-actions{gap:20px}.download{padding:8px 12px;gap:10px}.private-label{font-size:13px}
.filters{min-height:0;padding:10px 20px;gap:10px}
.search{height:42px;max-width:none;padding:0 12px;min-width:0}
input[type=search]{font-size:16px}
.select-wrap{height:42px;min-width:125px;padding:3px 10px;flex:0 1 165px}
.select-wrap>span{font-size:11px;line-height:1.2}.select-wrap select{font-size:14px;min-width:0;width:100%}
.filters>.text-button{font-size:14px;padding:8px 0}
.workspace{height:auto;min-height:0;grid-template-columns:clamp(290px,30vw,380px) minmax(0,1fr);overflow:hidden}
.workspace.expanded-map{grid-template-columns:minmax(0,1fr)}
.workspace.expanded-map .directory{display:none}
.list-heading{padding:14px 16px 11px;gap:8px}
.list-heading h2{font-size:17px}.list-heading p{font-size:12px;margin-top:3px}
.sort select{font-size:12px;max-width:92px}
.list{padding:0 8px 8px;overscroll-behavior:contain}
.doctor-card{padding:13px 8px 12px;border-radius:5px}
.card-top{gap:9px}.initials{width:32px;height:32px;font-size:12px}
.card-title h3{font-size:16px;line-height:1.35}.card-title .specialty{font-size:14px;margin-top:2px;line-height:1.35}
.card-city{font-size:12px;max-width:85px}
.card-title .specialty{display:inline-block;margin-right:8px}
.card-title .card-city{display:inline;max-width:none;text-align:left}
.card-address{font-size:14px;line-height:1.45;margin:7px 0 7px 41px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.card-bottom{padding-left:41px;min-height:20px}.card-open{font-size:13px;padding:0}.contact-badges{gap:8px;font-size:11px}
.list-footer{padding:9px 16px;font-size:11px}.list-footer button{font-size:11px}
.map-top{top:12px;left:12px;right:12px;align-items:flex-start;gap:8px}
.viewport-option{padding:10px 11px;font-size:13px;min-height:38px}
.map-actions{display:flex;gap:7px;background:none!important;box-shadow:none!important}
.map-actions .map-button{border-radius:8px;background:white;box-shadow:0 2px 10px #193c381c}
.map-button{font-size:13px;padding:10px 11px;gap:7px;min-height:38px;white-space:nowrap}
.map-button svg{width:15px;height:15px}
.leaflet-control-zoom{margin:65px 12px 0 0!important}
.leaflet-control-zoom a{width:32px!important;height:32px!important;line-height:32px!important;font-size:21px!important}
.map-pin{min-width:38px;height:27px;gap:3px;padding:0 7px;font-size:12px;box-shadow:0 1px 4px #1e42362a}
.map-pin svg{width:12px;height:12px}
.cluster-pin{width:34px;height:34px;border-width:3px;font-size:12px}
.map-pin.active{transform:scale(1.05)}

.leaflet-control-scale{margin:0 0 9px 12px!important}
.leaflet-control-scale-line{font-family:inherit;font-size:10px;background:#ffffffd9;border-color:#58746b}
.detail{top:12px;right:12px;bottom:25px;width:360px;padding:22px}
.detail .initials{width:40px;height:40px;font-size:14px;margin-bottom:10px}.detail h2{font-size:21px}
.detail-section{margin-top:16px;padding-top:14px}
.registry-lookup{margin-top:16px;padding:14px;background:#f2f7f5;border:1px solid #d6e3de;border-radius:10px}
.registry-lookup h4{font-size:16px;margin:0 0 8px}.registry-lookup .primary{font-size:16px;margin-top:8px;padding:10px 14px}
#registryDialog{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:28px;overflow:auto}
#registryDialog h2{padding-right:28px;margin-bottom:12px;font-size:24px}
.registry-meta,.registry-source{font-size:14px;color:#5b6f69;line-height:1.6}
.registry-section{border-top:1px solid #d6e3de;margin-top:20px;padding-top:16px}
.registry-section h3{font-size:18px;margin:0 0 10px}.registry-section h3 span{display:block;font-size:14px;font-weight:400;color:#5b6f69;margin-top:3px}
.registry-section p{white-space:pre-wrap;line-height:1.65;font-size:16px;overflow-wrap:anywhere;margin:0}
.registry-loading{padding:24px 0;font-size:16px}.registry-source{border-top:1px solid #d6e3de;padding-top:16px;margin-top:20px}
.registry-fallback{margin-top:24px}.registry-fallback summary{cursor:pointer;font-size:14px}
@media(max-width:600px){#registryDialog{padding:24px 20px}#registryDialog h2{font-size:21px}}
@media(min-width:801px) and (max-width:1050px){
 .private-label{display:none}.header-actions{gap:15px}.filters{padding:9px 16px;gap:8px}.select-wrap{min-width:112px;flex-basis:132px}
 .workspace{grid-template-columns:290px minmax(0,1fr)}
 .workspace.expanded-map{grid-template-columns:minmax(0,1fr)}
 .map-top{flex-wrap:wrap}.viewport-option{font-size:12px}.map-button{font-size:12px}
}
@media(max-width:800px){
 .header{height:58px;padding:0 14px}.brand h1{font-size:18px}.brand-icon{width:30px;height:33px}.brand-icon svg{width:21px}
 .header-actions{gap:8px}.download{padding:8px;font-size:12px}
 .filters{padding:9px 12px;gap:7px}.search{height:40px}.select-wrap{height:40px;min-width:0;padding:3px 8px}.select-wrap select{font-size:13px}
 .workspace{height:auto;min-height:0;display:block}.directory{height:100%;padding-bottom:62px}.map-region{height:100%}
 .workspace.expanded-map .directory{display:flex}.workspace.expanded-map.map-mode .directory{display:none}
 .list-heading{padding:14px 20px 10px}.list{padding:0 12px 12px}.doctor-card{padding:13px 8px}.card-city{max-width:100px}
 .map-actions #expandMap{display:none}.map-top{top:10px;left:10px;right:10px;flex-wrap:nowrap}
 .viewport-option{font-size:12px;padding:9px;gap:6px}.map-button{font-size:12px;padding:9px}.map-button svg{display:none}
 .leaflet-control-scale{margin-bottom:70px!important}
 .detail{top:10px;left:10px;right:10px;bottom:75px;width:auto;padding:22px;max-width:none}
 .mobile-switch{bottom:14px;padding:4px}.mobile-switch button{padding:9px 23px;font-size:14px}
}
@media(max-height:500px) and (min-width:801px){
 .header{height:48px}.filters{padding-top:7px;padding-bottom:7px}.list-heading{padding-top:10px;padding-bottom:8px}.list-footer{display:none}
}

.detail-toolbar,.popup-toolbar{position:sticky;top:-22px;z-index:10;display:flex;justify-content:flex-end;pointer-events:none;height:36px;margin:-10px -10px 2px 0}
.detail-toolbar button,.popup-toolbar button{pointer-events:auto;display:grid;place-items:center;width:36px;height:36px;min-width:36px;padding:0;border:0;border-radius:50%;background:#fff;color:#304b46;box-shadow:0 1px 5px #193c3826;cursor:pointer}
.detail-toolbar button:hover,.popup-toolbar button:hover{background:#edf3f0}.detail-toolbar button:focus-visible,.popup-toolbar button:focus-visible{outline:2px solid #164d47;outline-offset:3px}
.popup-toolbar{top:0;margin:0 -6px 0 0;height:36px}.leaflet-popup-content{margin:12px 16px}.leaflet-popup-scrolled{overscroll-behavior:contain}

.brand-logo{display:block;width:44px;height:44px;object-fit:cover;object-position:50% 43%;border-radius:10px;flex-shrink:0}
@media(max-width:800px){.brand-logo{width:38px;height:38px;border-radius:9px}}

.list-tools{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}
.sync-button{font-size:12px;color:var(--forest);padding:3px 0;text-decoration:underline;text-underline-offset:3px}
.list-heading .sync-message{font-size:11px;line-height:1.5;color:#527366;margin-top:5px;max-width:260px}
.list-heading .sync-error{color:#a0443b}
.card-bottom{flex-wrap:wrap;column-gap:8px;row-gap:7px}
.outreach-badge{display:inline-flex;align-items:center;padding:3px 7px;border-radius:5px;font-size:11px;font-weight:600;white-space:nowrap;background:#f0f3f2;color:#66736e;margin-left:auto}
.outreach-badge[data-contact-status="contacted"]{background:#e4f3ec;color:#216446}
.outreach-badge[data-contact-status="declined"]{background:#fbeae7;color:#a0443b}
.outreach-badge[data-contact-status="followed_up"]{background:#e8f0fa;color:#365e8c}
.outreach-panel{margin-top:18px;padding:13px 14px;background:#f5f8f6;border:1px solid #dce6e0;border-radius:8px}
.outreach-panel label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}
.outreach-panel select{appearance:auto;background:#fff;border:1px solid #bdcec5;border-radius:6px;width:100%;max-width:none;padding:9px 10px;font-size:15px;min-height:40px}
.outreach-panel select[data-contact-status="contacted"]{color:#216446;border-color:#80b69b}
.outreach-panel select[data-contact-status="declined"]{color:#a0443b;border-color:#dda99f}
.outreach-panel select[data-contact-status="followed_up"]{color:#365e8c;border-color:#9fb7d7}
select:disabled{cursor:wait;opacity:.65}
.contact-save-note{font-size:11px;color:var(--muted);line-height:1.6;margin-top:8px}
.contact-save-error{font-size:12px;color:#a0443b;line-height:1.6;margin-top:6px}
@media(min-width:801px){.filters .select-wrap{min-width:112px;flex-basis:145px}.filters .search{min-width:135px}}
@media(max-width:1050px) and (min-width:801px){.filters{flex-wrap:wrap}.filters .search{flex:1 1 100%}.filters .select-wrap{flex:1 1 120px}.filters #clear{margin-left:auto}}
@media(max-width:800px){.filters{grid-template-columns:1fr 1fr}.search{grid-column:1/-1}.brand h1{font-size:17px}.header-actions{gap:6px}.header .download{font-size:11px;padding:8px}.header .download svg{display:none}.outreach-badge{font-size:12px}.list-heading .sync-message{max-width:230px}}
