/* Same compact shared dock as noise / nature: map first, legend inside. */
#overview .context-controls{position:absolute;left:20px;bottom:24px;z-index:8;width:max-content;max-width:calc(100% - 100px);padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fbfcf9fa;box-shadow:0 2px 8px #173d3510}
#overview .context-controls[hidden],#overview .context-controls [hidden]{display:none!important}
#overview .context-switchers{display:flex;gap:12px;align-items:center}
#overview .context-controls .segmented{display:flex;gap:3px;padding:3px;border:1px solid #d3ddd1;border-radius:8px;background:#edf2e9}
#overview .context-controls .segmented button{min-width:94px;min-height:44px;padding:8px 12px;font-size:13px;white-space:nowrap;background:#f9fbf6;color:#29413b}
#overview .context-controls .segmented button[aria-pressed=true]{background:#173d35;color:#fff;font-weight:600}
#overview #school-selection{display:flex;gap:8px;margin-top:8px;align-items:center}
#overview #school-select{font-size:12px;min-height:40px;max-width:330px;width:100%;min-width:0;border:1px solid var(--line);border-radius:6px;padding:5px 8px;background:#fff;color:var(--ink)}
#overview #school-fit{min-height:40px;padding:6px 10px;white-space:nowrap;font-size:11px}
#overview .context-caption{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:11px;min-height:28px;color:#52695c}
#overview .context-caption button,#overview .context-status button{min-height:28px;padding:4px 0;border:0;background:transparent;font-size:11px;text-decoration:underline;text-underline-offset:3px}
#overview .context-legend{padding-top:9px;border-top:1px solid #dbe2d7;margin-top:0;font-size:11px}
#overview .context-legend.legend-collapsed{display:none}
#overview .context-categories{display:flex;gap:8px 14px;flex-wrap:wrap}
#overview .context-categories span{display:flex;gap:6px;align-items:center;white-space:nowrap}
#overview .context-categories i{display:block;flex:none;width:12px;height:12px;border-radius:3px;border:1px solid #173d3520}
#overview .context-scale{display:flex;height:10px;overflow:hidden;border:1px solid #d0d6cc;border-radius:3px}
#overview .context-scale span{flex:1}
#overview .context-ticks{position:relative;height:14px;font-size:10px;margin-top:5px}
#overview #climate-unit{display:block;font-size:10px;margin:5px 0 0;color:#64776b}
#overview .context-status{max-width:440px;font-size:11px;line-height:1.5}
#overview .context-status[data-state=ready]{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
#overview .context-status[data-state=error],#overview .context-status[data-state=loading]{margin-top:5px}
#overview .map-fullscreen .context-switchers,#overview .map-fullscreen #school-selection{display:none!important}
@media(max-width:1050px){#overview .topic-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;overscroll-behavior-x:contain}#overview .topic-tabs::-webkit-scrollbar{display:none}#overview .topic-tabs>button[data-topic]{flex:0 0 auto;white-space:nowrap;padding:8px 12px;font-size:12px}}
@media(max-width:700px){
 #overview .context-controls{left:12px;right:76px;bottom:24px;width:auto;max-width:none;padding:9px}
 #overview .context-switchers{display:grid;gap:8px}
 #overview .context-controls .segmented button{flex:1;min-width:0;min-height:40px;padding:6px;font-size:11px}
 #overview .context-caption{gap:8px;font-size:10px}
 #overview #school-selection{flex-wrap:wrap;gap:5px}
 #overview #school-select{max-width:100%;min-height:40px}
 #overview #school-fit{min-height:32px;padding:4px 6px}
 #overview .context-categories{gap:6px 10px;font-size:10px}
 #overview .context-categories i{width:10px;height:10px}
 #overview .context-caption button{min-height:32px;font-size:10px}
}
@media(max-height:600px) and (orientation:landscape){#overview .context-controls{bottom:12px;padding:8px 12px}#overview .context-controls .segmented button{min-height:36px;padding:5px 10px}#overview #school-selection{margin-top:4px}#overview #school-select{min-height:34px}#overview .context-legend{padding-top:6px}}

#overview .context-ticks span{position:absolute;transform:translateX(-50%);white-space:nowrap}

#overview #context-attribution[hidden],#overview #base-attribution[hidden]{display:none!important}

#overview .context-legend-note{flex-basis:100%;font-size:10px;color:#64776b}

/* Crisp vector pins over the existing model, with a static coloured glow. */
#overview .safety-overlay{position:absolute;inset:0;z-index:5;overflow:hidden;pointer-events:none}
#overview .safety-overlay[hidden],#overview .safety-pin[hidden]{display:none!important}
#overview .safety-route{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none}
#overview .safety-route path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#overview .safety-route-halo{stroke:#23d9bf;stroke-width:17;opacity:.23}
#overview .safety-route-outline{stroke:#f6fff9;stroke-width:8;opacity:.96}
#overview .safety-route-core{stroke:#16877e;stroke-width:4}
#overview .safety-pin{position:absolute;width:36px;height:48px;min-width:0;min-height:0;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:var(--pin-color);transform:translate(-50%,-100%);pointer-events:auto;cursor:pointer;box-shadow:none;z-index:2}
#overview .safety-pin svg{display:block;width:36px;height:48px;overflow:visible;filter:drop-shadow(0 2px 3px #173d3540) drop-shadow(0 0 7px var(--pin-color))}
#overview .safety-pin:hover,#overview .safety-pin[aria-pressed=true]{z-index:4}
#overview .safety-pin:hover svg,#overview .safety-pin[aria-pressed=true] svg{filter:drop-shadow(0 0 4px white) drop-shadow(0 0 10px var(--pin-color))}
#overview .safety-pin:focus-visible{outline:2px solid #173d35;outline-offset:5px;border-radius:18px}
#overview .safety-pin-home,#overview .safety-pin-school{z-index:3}
#overview .safety-pin-label{position:absolute;left:50%;bottom:47px;transform:translateX(-50%);padding:5px 9px;border:1px solid #c5ded6;border-radius:6px;background:#fffffff2;box-shadow:0 2px 8px #173d3526;color:#173d35;font-size:11px;font-weight:650;white-space:nowrap;max-width:205px;overflow:hidden;text-overflow:ellipsis}
#overview .safety-scope{font-size:10px;line-height:1.45;color:#5d7068;margin:0 0 7px;max-width:440px}
#overview .safety-detail{position:relative;max-width:440px;margin:5px 0 10px;padding:10px 32px 10px 11px;border-left:3px solid #16877e;border-radius:4px;background:#edf5ef;color:#173d35;font-size:12px}
#overview .safety-detail strong{font-size:12px}
#overview .safety-detail p{font-size:11px;line-height:1.5;margin:4px 0 0}
#overview #safety-detail-close{position:absolute;right:2px;top:2px;width:30px;min-height:30px;padding:0;background:transparent;color:#28473e;font-size:20px;border:0}
#overview #school-home{min-height:40px;padding:6px 10px;font-size:11px;white-space:nowrap}
#overview .map-fullscreen #school-selection{display:flex!important}
@media(max-width:700px){#overview #school-select{flex:1 1 100%}#overview #school-fit,#overview #school-home{min-height:34px}#overview .safety-scope{font-size:10px;margin-bottom:4px}#overview .safety-pin-label{font-size:10px;max-width:155px}}
#overview .safety-pin-school .safety-pin-label{left:calc(100% + 4px);bottom:4px;transform:none}
#overview .safety-pin-school[data-label-side=left] .safety-pin-label{left:auto;right:calc(100% + 4px)}
#overview .topic-card[data-topic=safety] .flat-map-mode #scene-fallback{display:none!important}
