#briefing-logistics-card[hidden],#map-dock>.map-card[hidden]{display:none!important}
#briefing-logistics-card{--brief-bg:#102535;--brief-text:#e1edf3;--brief-muted:#a2bbc8;background:var(--brief-bg);color:var(--brief-text);border:1px solid #56707a55;border-radius:10px;overflow:hidden;box-shadow:0 8px 24px #10253513;display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:clamp(420px,calc(100dvh - 138px),760px)}
#briefing-logistics-card[data-theme=light]{--brief-bg:#fff;--brief-text:#243a44;--brief-muted:#607780}
.brief-map-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 15px;border-bottom:1px solid #72899033}.brief-map-heading small{display:block;font-size:9px;letter-spacing:1px;color:var(--brief-muted);margin-bottom:4px}.brief-map-heading strong{font-size:14px}.brief-map-heading button,.brief-reset{border:1px solid #72899088;border-radius:5px;background:transparent;color:inherit;padding:7px 10px;font-size:11px;cursor:pointer}
#brief-map-detail{padding:13px 16px;line-height:1.5;font-size:12px;border-top:1px solid #72899033;max-height:220px;overflow:auto}
#brief-map-detail p{margin:5px 0}#brief-map-detail small{display:block;font-size:10px;color:var(--brief-muted);margin:5px 0}#brief-map-detail a{display:inline-block;color:inherit;margin:8px 0;text-decoration:underline}
.brief-map-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px}.brief-map-actions button{white-space:nowrap}
#brief-map-host{height:100%;min-height:0}#brief-map-detail{height:112px;max-height:112px;box-sizing:border-box}
.record.previewed:not(.selected){background:#edf5f3;border-color:#8fb7b2}
.brief-related{display:block;width:100%;padding:8px;margin:6px 0;text-align:left;border:1px solid #72899066;background:transparent;color:inherit;border-radius:5px;font-size:11px;cursor:pointer}
.briefing-shared-map .search-bar{position:sticky;top:53px;z-index:25;background:#f3f5f4;padding:8px;border-radius:6px}
.briefing-shared-map .stage:not(.stage-full){scroll-margin-top:120px}
.briefing-shared-map .record{scroll-margin-top:125px}
.briefing-shared-map #map-dock{top:112px;max-height:calc(100vh - 124px);overflow:auto}.briefing-shared-map .record[hidden]{display:none!important}
#briefing-logistics-card.brief-map-expanded{position:fixed;inset:16px;height:auto;z-index:200;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.brief-map-expanded #brief-map-host{height:100%}.brief-map-expanded #brief-map-detail{max-height:140px}
@media(max-width:940px){body.briefing-shared-map #map-dock{width:calc(100vw - 24px);top:auto;bottom:12px;max-height:47vh;overflow:auto}#brief-map-host{height:340px}#brief-map-detail{max-height:100px}.brief-map-heading{padding:8px 12px}.brief-map-heading strong{font-size:12px}#briefing-logistics-card.brief-map-expanded{inset:6px}.brief-map-expanded #brief-map-host{height:100%}.stage:not(.stage-full){padding-bottom:46vh}}
@media print{#briefing-logistics-card{display:none!important}}

@media(max-width:940px){
 body.briefing-shared-map #map-dock{overflow:visible}
 #briefing-logistics-card{height:47dvh;display:grid;grid-template-rows:auto minmax(0,1fr) 66px}
 #brief-map-host{height:100%;min-height:0}
 #brief-map-detail{height:100%;max-height:none;min-height:0;padding:8px 12px}
 #briefing-logistics-card.brief-map-expanded{height:auto;grid-template-rows:auto minmax(0,1fr) 120px}
}

@media(max-width:380px){.top-actions{flex-wrap:wrap}.top-actions .mode-switch{flex-basis:100%;min-width:0}}

.record.muted{opacity:.45}#brief-map-density{margin-right:5px}#brief-map-detail details{margin:6px 0}#brief-map-detail summary{cursor:pointer}
