body .filter-bar .location-filter{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:12px}
body #open-locations{width:100%;min-height:48px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;display:block;padding:12px 14px;font-size:13px;letter-spacing:0;text-transform:none;border-radius:7px}
body dialog.location-dialog{width:min(1320px,calc(100% - 32px));max-width:none;max-height:92dvh;padding:26px;border:1px solid #d6dce1;border-radius:18px;background:#fbfaf7;color:#14263d;box-shadow:0 24px 90px #0005;overflow:auto}
.location-dialog::backdrop{background:#071122b8;backdrop-filter:blur(5px)}
.location-top{display:flex;align-items:center;justify-content:space-between;gap:20px}
body .location-top h2{margin:4px 0;font-size:30px;color:#14263d}
body .location-close{font-size:27px;padding:4px;min-width:44px;min-height:44px;line-height:1;flex-shrink:0}
.location-intro{font-size:14px;line-height:1.6;color:#526171;margin:10px 0 18px}
.location-tabs{display:flex;gap:6px;padding:5px;background:#e9edf0;border-radius:10px;margin-bottom:20px}
.location-tabs button{flex:1;border:0;background:transparent;color:#14263d;border-radius:7px;min-height:46px;font:500 15px var(--heading);cursor:pointer}
.location-tabs button[aria-selected=true]{background:#14263d;color:#fff;box-shadow:0 2px 6px #14263d22}
.location-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;align-items:start}
.location-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}
body .location-option{display:grid;grid-template-columns:20px 1fr;gap:0 8px;align-items:center;min-height:52px;border:1px solid #d6dce1;border-radius:8px;padding:7px 10px;font-size:13px;cursor:pointer;background:#fff}
body .location-option input{width:18px;height:18px;min-height:0;margin:0;grid-row:1/3;accent-color:#915039}
.location-option small{grid-column:2;font-size:11px;color:#526171}
.location-option:has(:checked){background:#fff0e6;border-color:#915039}
.location-option:has(:disabled){background:#f2f2ef;color:#697480;cursor:default}
.location-option:has(:focus-visible){outline:3px solid #915039;outline-offset:1px}
.location-map{position:relative;min-height:160px;background:#f0f2f2;border-radius:12px;overflow:hidden}
.location-map svg{display:block;width:100%;height:auto}
.location-map,.location-map *{-webkit-user-select:none;user-select:none}
.location-shape{fill:#e0e5e8;stroke:#fbfaf7;stroke-width:1.8;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .15s}
.location-context{fill:#e0e5e8;stroke:#fbfaf7;stroke-width:1;vector-effect:non-scaling-stroke}
.location-shape.has-projects{fill:#ffccb0;stroke:#915039}
.location-shape.is-selected{fill:#14263d;stroke:#915039;stroke-width:3}
.location-shape:hover:not([aria-disabled=true]),.location-shape:focus-visible{fill:#bd8165;stroke:#14263d;stroke-width:3;outline:none}
.location-shape[aria-disabled=true]{cursor:default}
/* SVG focus follows the area, never the browser's rectangular bounding box. */
body .location-map .location-shape:focus{outline:none}
body .location-map .location-shape:focus-visible{stroke:#915039;stroke-width:4;stroke-dasharray:5 3}
body .location-zoom{font-size:13px;letter-spacing:0;text-transform:none;min-height:44px;margin-bottom:10px}
.location-map.is-zoomed .location-map-label{stroke-width:1;paint-order:stroke}
.location-map-label{pointer-events:none;font:600 20px sans-serif;text-anchor:middle;fill:#14263d;paint-order:stroke;stroke:#fbfaf7;stroke-width:4;stroke-linejoin:round}
/* Counts stay in the list and accessible area labels; the map prioritises names. */
.location-map-count{display:none}
.location-map-label.can-select{pointer-events:none}
.location-tooltip{position:absolute;z-index:5;max-width:calc(100% - 16px);padding:10px 15px;border:1px solid #ffccb0;border-radius:12px;background:#14263d;color:#fff;box-shadow:0 6px 20px #14263d33;font-size:14px;line-height:1.4;pointer-events:none}
.location-tooltip strong,.location-tooltip span{display:block}
.location-tooltip span{color:#ffccb0;font-size:12px;margin-top:2px}
.location-map-note{font-size:12px;color:#526171;margin:10px 0 5px}
.location-attribution{font-size:10px;line-height:1.6;color:#526171;margin:0}
.location-attribution a{text-decoration:underline}
.location-chosen{font-size:13px;line-height:1.5;margin:18px 0 12px;min-height:20px}
.location-option{min-width:0}
.location-bottom{display:flex;justify-content:space-between;gap:12px;position:sticky;bottom:-26px;padding:14px 0 0;background:#fbfaf7;border-top:1px solid #d6dce1}
body .location-bottom .button{font-size:12px;text-transform:none;letter-spacing:0;min-height:46px}
@media(max-width:1050px){
 .location-layout{grid-template-columns:minmax(0,1fr);gap:20px}
 .location-map-wrap{grid-row:1;width:100%;max-width:800px;justify-self:center}
 .location-list{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:700px){
 body dialog.location-dialog{width:calc(100% - 16px);max-height:94dvh;padding:16px;border-radius:12px}
 body .location-top h2{font-size:24px}
 .location-layout{grid-template-columns:1fr;gap:16px}
 .location-map-wrap{grid-row:1}
 .location-map-label{font-size:24px}
 .location-intro{font-size:13px}
 .location-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 body .location-option{font-size:12px;padding:7px;min-height:50px}
 .location-bottom{bottom:-16px;flex-direction:column-reverse;gap:6px;padding-top:10px}
 body .location-bottom .button{width:100%}
}
@media(prefers-reduced-motion:reduce){.location-shape{transition:none}}
.location-views{display:flex;gap:6px;padding:5px;border-radius:12px;background:#e5e9ed;margin-bottom:8px}
body .location-views .button{flex:1;margin:0;font-size:14px;letter-spacing:0;text-transform:none;min-height:46px}
body .location-views .button[aria-pressed=true]{background:#14263d;color:#fff;border-color:#14263d}
.location-view-help{font-size:12px;line-height:1.5;color:#526171;margin:0 0 12px}
.location-list-divider{grid-column:1/-1;order:100;font-size:12px;color:#526171;margin:12px 0 4px}
body .location-option.outside-view{opacity:.55;background:#f0f2f2;border-color:#d6dce1}
body .location-map .location-shape.outside-view{fill:url(#location-inactive-pattern);stroke:#c3cdd6;stroke-width:1;cursor:default}
.location-shape{pointer-events:visiblePainted}
body .location-map .location-shape.inner-overview{fill:#a9c5dc;stroke:#a9c5dc;stroke-width:2;cursor:zoom-in}
body .location-map:has(.inner-overview:hover) .inner-overview{fill:#7fa7c5;stroke:#7fa7c5}
.location-inner-button{cursor:zoom-in;outline:none}
.location-inner-button rect{fill:#284d6b;stroke:#fff;stroke-width:1}
.location-inner-button text{fill:#fff;font:600 12px sans-serif;text-anchor:middle;pointer-events:none}
.location-inner-button:hover rect,.location-inner-button:focus-visible rect{fill:#14263d;stroke:#ffccb0;stroke-width:2}
.location-legend{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:11px;color:#526171;margin:10px 0}
.location-legend span{display:inline-flex;align-items:center;gap:5px}
.location-legend i{width:13px;height:13px;border-radius:3px;border:1px solid #aab5c0}
.legend-available{background:#ffccb0}.legend-selected{background:#14263d}.legend-inactive{background:repeating-linear-gradient(125deg,#e1e6ec 0 4px,#b9c4d0 4px 6px)}
.location-map-label.outside-view{opacity:.35}
.location-map.is-moving{pointer-events:none}
