:root{color-scheme:dark;--gold:#e7bd65;--edge:#af8949;--text:#f2ecda;--mute:#c5cbd0;--navy:rgba(14,33,47,.96);font:16px/1.42 system-ui,-apple-system,sans-serif}*{box-sizing:border-box}body{margin:0;background:#182a27;color:var(--text)}main,#map,.shade{position:fixed;inset:0}#map{background:radial-gradient(ellipse at 40% 42%,#556743,#263f39 75%)}.shade{pointer-events:none;background:linear-gradient(180deg,#0e2024a0,transparent 25%,transparent 73%,#101a1c92)}.pane{background:var(--navy);border:1px solid var(--edge);border-radius:10px;box-shadow:0 4px 16px #111c2790, inset 0 0 12px #070f181b}.hud{position:fixed;top:14px;left:16px;right:16px;display:flex;justify-content:space-between;pointer-events:none;gap:8px}.hud>*{pointer-events:auto}.mast{display:flex;align-items:center;gap:12px;padding:7px 15px 7px 9px}.seal{color:var(--gold);font-size:29px;line-height:1;text-shadow:0 1px 4px #b48b49}.mast strong{font:bold 23px Georgia,serif;letter-spacing:.09em}.mast small{font-size:11px;letter-spacing:.1em;color:var(--mute);margin-left:12px}.citybar,.layers,.modes{display:flex;align-items:center;gap:3px}.citybar{padding:4px}button,select,input{font:inherit}button,select{cursor:pointer}button:not(.maplibregl-ctrl button),select,input{color:var(--text);border:1px solid transparent;border-radius:7px;background:#203546;padding:6px 10px}button:hover:not(.maplibregl-ctrl button),select:hover{background:#36546b}button[aria-pressed=true]{background:linear-gradient(#f7d98e,#dba756)!important;color:#122636!important;border-color:#e8c677!important}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid #ffdf81;outline-offset:2px}.layers{position:fixed;top:14px;left:50%;transform:translateX(-50%);padding:4px}.layers button,.modes button{font-size:14px;white-space:nowrap}.search{position:fixed;top:74px;left:16px;width:min(285px,calc(100% - 50px));padding:4px}.search input{width:100%;font-size:14px}.search input::placeholder{color:#cfdbdf}#results{max-height:270px;overflow:auto;padding:4px}#results button{width:100%;text-align:left;margin:2px 0;font-size:14px}.timeline{position:fixed;bottom:16px;left:16px;padding:7px 9px;width:max-content;max-width:calc(100vw - 35px)}#datefields{display:flex;gap:8px;margin-top:6px}#datefields[hidden],#dateBlabel[hidden]{display:none}.timeline label span{display:block;font-size:12px;color:var(--mute)}.timeline input{font-size:14px}#timehint{max-width:325px;color:#c9d3d5;font-size:12px;margin:5px 1px 0}.citylabel{pointer-events:none;position:fixed;top:20%;left:50%;transform:translateX(-50%);font:bold clamp(18px,2.3vw,30px) Georgia,serif;letter-spacing:.13em;padding:7px 18px;color:#ffdd92;text-transform:uppercase;border-radius:4px;white-space:nowrap;box-shadow:0 2px 12px #111b}#mapstatus{position:fixed;top:120px;left:16px;max-width:295px;padding:7px 9px;font-size:13px}.inspector{position:fixed;right:16px;bottom:63px;width:min(355px,calc(100vw - 32px));max-height:63vh;overflow:auto;padding:15px}.inspector[hidden]{display:none}.inspector h1,.inspector h2,dialog h2{font:700 23px/1.15 Georgia,serif;color:#ffdd96;margin:4px 22px 9px 0}.inspector p{font-size:15px;margin:7px 0}.eyebrow{font-size:11px;color:#d4b67e;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.close{position:absolute;right:9px;top:9px;padding:1px 8px!important;line-height:1.4;font-size:20px}.inspector small,.muted{color:var(--mute);font-size:13px}.stat{padding:9px 0 7px;border-bottom:1px solid #69808b5c;display:grid;grid-template-columns:1fr auto;gap:0 8px;align-items:center}.stat b{font-weight:600;color:#f4d598;text-align:right}.stat small{grid-column:1/-1}.caption{margin-top:6px;font-size:12px;color:#c3ccd2}.inspector a,dialog a,#map a{color:#f4d292}.infobtn{position:fixed;bottom:17px;right:16px;font-size:13px;border:1px solid var(--edge)!important;background:var(--navy)!important}.mark{padding:0!important;border:0!important;background:none!important;color:#153040!important;font-weight:700;display:grid;place-items:center;line-height:1;isolation:isolate;cursor:pointer}.mark.d{width:28px;height:28px;background:#e9bd68!important;border:1px solid #fbe1a5!important;border-radius:6px!important;box-shadow:0 2px 6px #1a222cc9;font-size:12px}.mark.d[data-kind="Медиафасад"]{border-radius:50%!important}.mark.d[aria-current=true]{outline:3px solid #ffe6a0;box-shadow:0 0 22px #ffdc77}.mark.c svg{width:47px;height:41px;overflow:visible;filter:drop-shadow(1px 4px 3px #101f20a8)}.mark.c[aria-current=true] svg,.mark.c:hover svg{filter:drop-shadow(0 0 6px #ffdf87)}.mark.c{width:48px;height:45px}.mark.c:hover{z-index:10}.mark.c:focus-visible{outline:2px solid var(--gold)}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl-top-right{top:67px;right:8px}.maplibregl-ctrl-attrib{font-size:10px;color:#15191b}.maplibregl-ctrl-attrib a{color:#14253b!important}.fwd{display:inline-block;margin-top:5px}.only{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}dialog{color:var(--text);width:min(570px,92vw);padding:24px;border:1px solid var(--edge);max-height:85vh}dialog::backdrop{background:#0b1628b0}dialog p{font-size:15px}
@media(max-width:1110px){.layers{top:74px;left:auto;right:16px;transform:none}.search{top:74px}#mapstatus{top:120px}}@media(max-width:650px){.hud{top:8px;left:8px;right:8px}.mast{padding:5px 8px;gap:5px}.mast strong{font-size:18px}.mast small{display:none}.seal{font-size:22px}.citybar button,.citybar select{font-size:13px;padding:5px}.layers{top:56px;left:8px;right:8px;justify-content:space-between;gap:0;overflow:auto}.layers button{font-size:12px;padding:5px 7px}.search{top:96px;left:8px;width:min(244px,70vw)}#mapstatus{top:140px;left:8px;max-width:78vw}.citylabel{top:22%;font-size:17px}.inspector{bottom:124px;right:8px;max-height:39vh;max-width:min(83vw,350px);padding:10px}.inspector h1,.inspector h2{font-size:19px}.timeline{left:8px;bottom:22px;max-width:calc(100vw - 16px)}.infobtn{display:none}.maplibregl-ctrl-top-right{right:0;top:92px}.maplibregl-ctrl-bottom-right{bottom:0}.mark.c svg{width:39px;height:35px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

@media(max-width:650px){.infobtn{display:block;top:97px;right:44px;bottom:auto;max-width:29vw;font-size:0;padding:5px 9px!important}.infobtn:after{content:"Источники";font-size:12px}.search{max-width:calc(100vw - 155px)}}
.photo{margin:12px 0 8px}.photo a:has(img){display:block;border:1px solid #ac8d5860;border-radius:8px;background:#0e222c;overflow:hidden}.photo img{display:block;width:100%;height:auto;max-height:208px;object-fit:contain}.photo img[hidden]{display:none}.photo figcaption{font-size:11px;line-height:1.45;color:#c6cdd2;margin-top:4px}.photo figcaption a{color:#cfd7d7}.photo img:hover{filter:brightness(1.07)}
html[data-atlas3d="yes"] .mark.c:not([data-kind="heritage"]){width:30px;height:24px;display:block}
html[data-atlas3d="yes"] .mark.c:not([data-kind="heritage"]) svg{display:none}
html[data-atlas3d="yes"] .mark.c:not([data-kind="heritage"]):after{display:block;content:"";width:7px;height:7px;background:#f3ce7c;border:1px solid #443219;border-radius:50%;margin:11px auto 0;box-shadow:0 1px 5px #15140d}
html[data-atlas3d="yes"] .mark.c[aria-current=true]:after,html[data-atlas3d="yes"] .mark:hover:after{outline:2px solid #fff1bb}
html[data-atlas3d="yes"] .mark.d{width:22px;height:23px;border-radius:4px!important;font-size:11px;opacity:.92}
@media(max-width:650px){.photo img{max-height:145px}.inspector{max-height:48vh}.inspector p{line-height:1.27}}
.actions{position:fixed;top:126px;left:16px;display:flex;padding:4px;gap:4px}.actions button{font-size:13px}.actions b{color:#ebc982}.actions [aria-expanded=true]{background:#dec078!important;color:#12232a!important}.actions [aria-expanded=true] b{color:#134}.tool-panel{position:fixed;left:16px;top:178px;bottom:auto;max-height:calc(100vh - 265px);overflow:auto;width:min(355px,calc(100vw - 32px));padding:13px}.tool-panel[hidden]{display:none}.tool-panel h2{font:700 23px Georgia,serif;color:#ffdd96;margin:3px 25px 10px 0}.tool-panel p{margin:7px 0;color:#d0d9db;font-size:13px}.tool-panel label{display:block;font-size:13px;margin:7px 0}.tool-panel textarea{display:block;width:100%;border-radius:7px;resize:vertical;background:#1b3748;border:1px solid #b4905a;color:#fff6db;padding:8px;font:inherit;font-size:14px}.tool-panel .row-select{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.tool-panel .row-select select{font-size:14px}.tool-panel .item-list{display:grid;gap:5px;padding-top:7px}.tool-panel .pickrow{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center}.tool-panel .pickrow>button:first-child{text-align:left;background:#203b4a;font-size:13px}.tool-panel .pickrow button small{color:#d5c3a0;display:block;font-size:11px}.tool-panel .plus{font-size:15px;font-weight:bold;color:#f1c772}.tool-panel .primary{margin-top:7px;background:#efce86;color:#172c39;font-weight:bold}.tool-panel .feedback{min-height:17px;font-size:12px;color:#ffe6a8}.tool-panel .shareurl{width:100%;font-size:12px}.object-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.object-actions button{font-size:13px;border-color:#ac8d58!important}.map-pick .maplibregl-canvas{cursor:crosshair}.near-marker{pointer-events:none;width:18px;height:18px;border:3px solid #e8cb77;border-radius:50%;background:#173346;box-shadow:0 0 12px #f5dc9a}.tool-panel a{color:#edd79d}#mapstatus{top:176px;pointer-events:none}
@media(max-width:650px){.actions{top:144px;left:8px}.actions button{padding:4px 6px;font-size:12px}.tool-panel{left:8px;top:185px;width:min(340px,calc(100% - 16px));max-height:min(61vh,calc(100vh - 306px));padding:10px}#mapstatus{top:181px}body:has(#toolPanel:not([hidden])) #inspector{display:none}.tool-panel h2{font-size:20px}}
.tool-panel .read-only{grid-template-columns:1fr}.tool-panel .share-note{font-size:15px;color:#f2dfaa;white-space:pre-wrap}.tool-panel .read-only button{min-height:43px}.tool-panel .item-list+.feedback:empty{display:none}.mast strong{white-space:nowrap}.citybar button{white-space:nowrap}
@media(max-width:650px){.mast strong{font-size:14px;letter-spacing:.02em}.mast{gap:4px}.citybar button,.citybar select{font-size:12px;white-space:nowrap}.citybar select{max-width:42vw}.tool-panel{z-index:4}.hud{z-index:5}.tool-panel .pickrow button{min-height:40px}body:has(#toolPanel:not([hidden])) #citylabel{visibility:hidden}#query::placeholder{font-size:12px}}
.tool-panel .near-only{display:flex;gap:5px;align-items:center}.tool-panel .near-only input{accent-color:#e8c97e;width:17px;height:17px;margin:0 5px 0 0}
#timehint:empty{display:none}#comparison[hidden]{display:none}#comparison{font-size:12px;margin-top:7px;line-height:1.5;padding:5px 3px 0;border-top:1px solid #b69860;color:#e7edf0}.time-result{display:flex;gap:6px 12px;justify-content:space-between;flex-wrap:wrap}.time-result strong{color:#ffdea2}.time-result small{font-size:11px;color:#cbd5d9}
html[data-atlas3d="yes"] .mark.c.changed:after,.mark.c.changed{outline:2px solid #a6e2a1;outline-offset:2px}.mark.c.changed:not([data-kind="heritage"]){outline:0}
@media(max-width:650px){.timeline input{font-size:12px}.timeline:has(#comparison:not([hidden])){max-width:calc(100vw - 16px)}body:has(#comparison:not([hidden])) .inspector{bottom:200px;max-height:33vh}}
html[data-atlas3d="yes"] .mark.d.other-point,.mark.d.other-point{opacity:.28;filter:saturate(.55)}
html[data-atlas3d="yes"] .mark.d.program-point,.mark.d.program-point{z-index:3;width:29px;height:29px;opacity:1;background:#ffe08c!important;border:2px solid #fff4c5!important;border-radius:50%!important;box-shadow:0 0 0 2px #71562f,0 0 14px #fed16da6;font-size:14px}
.sequence{display:inline-grid;min-width:19px;min-height:19px;place-items:center;margin-right:2px;border-radius:50%;background:#efd78a;color:#152a35;font-size:12px}
.actions button[hidden]{display:none}

.actions:has(>button[hidden]){display:none}.tool-panel .program-context{display:block;color:#eeeadb;font-size:.875rem;line-height:1.35;margin-top:5px}.inspector .location-context{margin:12px 0 5px;border-top:1px solid #b6986060;padding-top:8px}.location-context h3{font-size:.93rem;margin:0 0 4px;color:#ffdd96}.location-context ul{font-size:.9rem;margin:0;padding-left:1.15em}.location-context li+li{margin-top:3px}.traffic-note{display:block;margin-top:6px}

/* Shared programmes open on the map; the list is a toggleable scroll area. */
.actions button#programToggle{background:#efd28f;color:#142832;font-weight:680;min-height:36px}
.actions button#programToggle b{color:#27444b}
.tool-panel{overscroll-behavior:contain;scroll-padding:10px}
@media(max-width:650px){.layers button{white-space:nowrap}.tool-panel{max-height:calc(100dvh - 260px)}.search{max-width:calc(100vw - 62px)}.actions button#programToggle{min-height:38px}}
@media(max-width:360px){.layers button{font-size:.7rem;padding-inline:5px}}
/* City stats and search are separate views, not layer switches. */
.search{top:69px}.actions{top:125px}.tool-panel{top:177px}
.inspector{bottom:47px;max-height:calc(100dvh - 130px);scrollbar-width:thin}
.city-tabs{display:flex;gap:7px;margin:12px 0 13px}
.city-tabs button{font-size:.82rem;min-height:42px;line-height:1.2}
.city-tabs [aria-pressed=true]{background:#efd28f;color:#182b31}
.city-metrics,.rank-list{display:grid;gap:10px;list-style:none;padding:0;margin:0 0 9px}
.city-metric,.rank-list>li{background:#193341;padding:9px 10px;border:1px solid #9b835254;border-radius:7px}
.metric-top{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;font-size:.91rem}
.metric-top strong{color:#ffdc91;white-space:nowrap;font-variant-numeric:tabular-nums}
.score-track{display:block;height:5px;overflow:hidden;background:#0b2630;border-radius:9px;margin:7px 0 4px}
.score-track>span{display:block;height:100%;background:linear-gradient(90deg,#a38049,#f0cd83);border-radius:inherit}
.city-metrics small,.inspector .score-note{font-size:.75rem}
.city-method{margin:9px 0;color:#ddd09f;font-size:.83rem}
.city-landmarks h3,.search-nearby h3{font-size:.93rem;color:#ffdd96;margin:13px 0 6px}
.city-landmarks button{display:block;text-align:left;margin-bottom:4px;min-height:36px}
.rank-list .metric-top button{padding:2px 0;text-align:left;background:transparent;color:#eee5cd;text-decoration:underline;text-underline-offset:3px}
.rank-list .metric-top button[aria-current]{color:#ffdc91}
.metric-label{font-size:.84rem;display:block}
#rankMetric{margin:3px 0;width:100%;text-overflow:ellipsis;font-size:.88rem}
.search-origin{width:22px;height:22px;border-radius:50%;border:2px solid white;background:#2a89bc;box-shadow:0 0 0 4px #062d45a8;pointer-events:none}
.search-nearby{display:grid;gap:5px}
.search-nearby button{width:100%;text-align:left;border-color:#9b835254;background:#203c4b;font-size:.85rem}
.search-nearby span,.search-nearby small{display:block}
.color-note{font-size:.8rem}
@media(max-width:650px){
 .search{top:54px;max-width:calc(100vw - 57px);width:min(244px,calc(100vw - 57px))}
 .actions{top:104px;right:auto;max-width:calc(100vw - 16px);flex-wrap:wrap}
 .actions button{min-height:34px}
 .tool-panel{top:156px;max-height:calc(100dvh - 196px)}
 .inspector{bottom:31px;max-height:calc(100dvh - 212px);max-width:calc(100vw - 16px);width:min(350px,calc(100vw - 16px))}
 .hud select{max-width:45vw}.citybar button{font-size:12px;white-space:nowrap}
}

html[data-atlas3d="yes"] .mark.d.near-match,.mark.d.near-match{opacity:1;filter:none;border-color:#fff2c0;box-shadow:0 0 0 2px #17303c}
.rank-number{color:#ffd68c;font-variant-numeric:tabular-nums;margin-right:4px}
.city-metric,.rank-list>li{--metric-ink:#ffd68c}
.city-metric[data-metric=pop]{--metric-ink:#a5d5e0}
.city-metric[data-metric=pay]{--metric-ink:#f1ad89}
.city-metric[data-metric=jobs]{--metric-ink:#b5bee5}
.city-metric[data-metric=business]{--metric-ink:#b6d9a3}
.city-metric[data-metric=econ]{--metric-ink:#e8bc83}
.city-metric[data-metric=make]{--metric-ink:#eccd93}
.city-metric[data-metric=life]{--metric-ink:#d6badc}
.metric-enter .metric-top strong{color:var(--metric-ink)}
.metric-enter .score-track{height:6px;background:#0d222d}
.metric-enter .score-track>span{transform-origin:left;background:linear-gradient(90deg,color-mix(in srgb,var(--metric-ink) 60%,#253f4b),var(--metric-ink))}
@media(prefers-reduced-motion:no-preference){
 .metric-enter{animation:metric-reveal 365ms cubic-bezier(.2,.7,.25,1) both;animation-delay:calc(30ms * var(--step,0))}
 .metric-enter .score-track>span{animation:metric-fill 700ms cubic-bezier(.15,.75,.25,1) both;animation-delay:calc(50ms + 35ms * var(--step,0))}
}
@keyframes metric-reveal{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes metric-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes metric-value{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:650px){.inspector.search-preview{max-height:38dvh;overscroll-behavior:contain}}
.city-inventory{margin:0 0 11px}.city-inventory strong{color:#f6d78e}

html[data-atlas3d="yes"] .mark.d, .mark.d,
html[data-atlas3d="yes"] .mark.d.program-point, .mark.d.program-point{
 display:grid;place-items:center;min-width:0;width:43px;height:42px;
 background:transparent!important;border:0!important;border-radius:7px!important;box-shadow:none;
}
.mark.d .billboard-icon{display:block;width:43px;height:31px;align-self:end;filter:drop-shadow(0 2px 2px #16232dd9)}
.mark.d[aria-current="true"],.mark.d:hover,.mark.d:focus-visible{z-index:20}
.mark.d[aria-current="true"] .billboard-icon,.mark.d:hover .billboard-icon{filter:drop-shadow(0 0 4px #fff0a5)}
.mark.d:focus-visible{outline:2px solid #fff2c5;outline-offset:2px}
.mark.d .billboard-number{
 position:absolute;right:-7px;top:0;min-width:18px;height:18px;display:grid;place-items:center;
 border:1px solid #493014;border-radius:99px;padding-inline:3px;background:#ffe5a1;color:#142f3e;
 font:bold 11px/1 system-ui,sans-serif;box-shadow:0 1px 3px #1b2837b0;
}
.construction-specs{display:grid;grid-template-columns:1.25fr 1fr;gap:8px;margin:12px 0 9px}
.construction-specs>div{border:1px solid #ac8a5666;background:#203948;border-radius:7px;padding:8px 9px}
.construction-specs dt{color:#cdd5dc;font-size:.78rem;margin-bottom:2px}
.construction-specs dd{font-size:.97rem;font-weight:700;color:#ffe5a7;margin:0}
.inspector>.close,.tool-panel>.close{
 position:sticky;float:right;top:0;right:auto;z-index:9;display:grid;place-items:center;
 width:44px;height:44px;padding:0;margin:0 0 4px 8px;line-height:1;font-size:23px;
 border:1px solid #c4a6698a;background:#233f4f;color:#fff5d9;box-shadow:0 2px 8px #0a1c298f;
}
.inspector>.close:focus-visible,.tool-panel>.close:focus-visible{outline:2px solid #fff0b2;outline-offset:1px}
.mark.c[data-kind="heritage"] svg{width:40px;height:35px}
.near-marker{
 pointer-events:none;width:22px;height:22px;border-radius:50%;border:2px solid white;
 background:#2a89bc;box-shadow:0 0 0 4px #062d45a8;
}
button.city-inventory{display:block;text-align:left;width:100%;cursor:pointer;border-color:#bd9a638c}
button.city-inventory small{display:block;margin-top:3px;color:#e2ce9a;font-size:.75rem}
button.city-inventory:hover,button.city-inventory:focus-visible{border-color:#ffe8b4;background:#284759}
/* DRIM interface palette. Geographic canvas and map markers retain their own styling. */
:root{--ui-black:#111;--ui-raised:#1d1d1d;--ui-hover:#2a2a2a;--ui-line:#414141;--ui-white:#fff;--ui-muted:#b9b9b9;--ui-yellow:#ffdb00}
body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.pane{background:var(--ui-black);color:var(--ui-white);border-color:var(--ui-line);border-radius:13px;box-shadow:0 7px 26px #0005}
.pane button:not(.mark),.pane input,.pane select,.pane textarea{font-family:inherit;color:var(--ui-white);background:var(--ui-raised);border:1px solid var(--ui-line);border-radius:8px}
.pane button:not(.mark):hover,.pane input:hover,.pane select:hover{background:var(--ui-hover);border-color:#606060}
.pane button:not(.mark):focus-visible,.pane input:focus-visible,.pane select:focus-visible,.pane a:focus-visible{outline:2px solid var(--ui-yellow);outline-offset:2px}
.citybar button,.citybar select,.actions button{font-weight:650;min-height:34px}
.citybar,.actions{gap:5px;padding:5px}
.pane button[aria-pressed=true],.pane.actions button[aria-expanded=true],.actions button#programToggle,.pane button.primary{background:var(--ui-yellow)!important;color:#111!important;border-color:var(--ui-yellow)!important}
.actions button#programToggle b,.actions [aria-expanded=true] b{color:inherit}
.actions b{color:var(--ui-yellow)}
.search{padding:4px}
.search input{padding-left:36px;min-height:35px;background:var(--ui-raised) url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10.5' cy='10.5' r='5.3' fill='none' stroke='%23dddddd' stroke-width='1.7'/%3E%3Cpath d='m14.6 14.6 4 4' stroke='%23dddddd' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 8px center / 20px}
.search input::placeholder{color:var(--ui-muted)}
#results span{color:var(--ui-muted)}
.hud .mast strong,.inspector h1,.inspector h2,.tool-panel h2,.pane h2{font:750 1.32rem/1.14 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;letter-spacing:-.026em;color:var(--ui-white)}
.hud .mast strong{font-size:.875rem;letter-spacing:0}.hud .seal{color:var(--ui-yellow);text-shadow:none}
.pane .eyebrow{color:var(--ui-yellow);font-size:.7rem;letter-spacing:.115em}
.inspector>.close,.tool-panel>.close{background:var(--ui-raised);color:#fff;border:1px solid var(--ui-line);box-shadow:0 2px 10px #0007}
.inspector small,.tool-panel small,.muted,.caption,.tool-panel p,.photo figcaption,.photo figcaption a{color:var(--ui-muted)}
.pane .photo a:has(img),.location-context,.pane .item-list,.pane .construction-specs>div{border-color:var(--ui-line)}
.inspector a,.tool-panel a,.city-method,.rank-list .rank-number,.tool-panel .share-note,.construction-specs dd,.location-context h3,.city-landmarks h3,.search-nearby h3{color:var(--ui-yellow)}
.pane a{text-underline-offset:3px}
.pane .city-metric,.pane .rank-list>li,.pane .pickrow>button:first-child,.pane .search-nearby button,.pane .construction-specs>div{background:var(--ui-raised);border-color:var(--ui-line);color:#fff}
.pane .score-track,.metric-enter .score-track{background:#383838}
.pane .score-track>span,.metric-enter .score-track>span{background:var(--ui-yellow)}
.pane .metric-top strong,.pane .construction-specs dd,.pane .rank-list .metric-top button[aria-current],.tool-panel .plus,.tool-panel .feedback{color:var(--ui-yellow)}
.pane .city-inventory{border-color:#726415}
.pane .city-inventory small,.construction-specs dt{color:var(--ui-muted)}
.sequence{color:#111;background:var(--ui-yellow)}
.tool-panel .near-only input{accent-color:var(--ui-yellow)}
@media(max-width:650px){.hud .mast strong{font-size:.68rem}.citybar button,.citybar select{min-height:31px}.pane.inspector h1,.pane.inspector h2,.pane.tool-panel h2{font-size:1.24rem}.search input{min-height:33px}.pane #programToggle{min-height:38px}}
/* Keep yellow for action and selection. Values and hierarchy use white and weight. */
.inspector.city-profile-open .eyebrow,
.inspector.city-profile-open .metric-top strong,
.inspector.city-profile-open .city-landmarks h3,
.inspector.city-profile-open .rank-list .metric-top button[aria-current],
.inspector.city-profile-open .rank-number{color:#fff}
.inspector.city-profile-open .metric-top strong{font-weight:800}
.inspector.city-profile-open .city-landmarks h3{font-weight:750}
.inspector.city-profile-open a,.inspector.city-profile-open .city-method{color:#c9c9c9}
.inspector.city-profile-open a:hover{color:#fff}
.inspector.city-profile-open .score-track>span{background:#d7d7d7}
.inspector.city-profile-open .city-inventory{border-color:#5a5a5a}
.inspector.city-profile-open .city-inventory small::after{content:" ↗";color:var(--ui-yellow)}
.pane .construction-specs dd,.pane .location-context h3,.pane .search-nearby h3{color:#fff;font-weight:750}
.tool-panel .share-note{color:#eee}
.profile-meanings{margin:10px 0}
.profile-meanings dt{font-weight:750;color:#fff;font-size:.87rem;margin-top:9px}
.profile-meanings dd{font-size:.85rem;color:#d4d4d4;margin:2px 0 0;line-height:1.43}
.city-method[open]>summary{margin-bottom:6px;color:#fff}
.inspector.city-profile-open h1{margin-bottom:14px}

/* Compact number motion for verified values. Keep final text in the accessibility tree. */
.profile-value{position:relative;font-variant-numeric:tabular-nums;white-space:nowrap}
.profile-count{position:absolute;right:0;top:0;display:none;pointer-events:none}
@media(prefers-reduced-motion:no-preference){
 .profile-value.is-counting .profile-final{opacity:0}
 .profile-value.is-counting .profile-count{display:block}
}

.tool-panel .pickrow small.programme-specs{display:block;margin-top:5px;color:#fff;font-weight:720;font-size:.9rem}

.living-cost-benchmark{display:block;color:#e4e4e4;font-size:.875rem;margin-top:6px}
.living-cost-details{margin-top:8px;border-top:1px solid var(--ui-line);padding-top:6px}
.living-cost-details>summary{color:#fff;font-size:.875rem;cursor:pointer;min-height:30px;padding:4px 0}
.living-cost-details p{font-size:.875rem;line-height:1.45;margin:6px 0 8px;color:#e4e4e4}

.client-program.tool-panel{width:min(378px,calc(100vw - 32px));padding:15px 14px}
.client-program>.program-head h2{margin:3px 46px 3px 0}
.client-program .program-meta{font-size:.875rem;margin:0 0 10px}
.client-program .share-note{font-size:.938rem;line-height:1.42;margin:8px 4px 12px 0;overflow-wrap:anywhere}
.client-program .program-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.client-program .program-point{display:grid;grid-template-columns:24px minmax(0,1fr);gap:9px;width:100%;min-height:64px;padding:10px 10px 11px;background:var(--ui-raised);border:1px solid var(--ui-line);border-radius:10px;color:#fff;text-align:left;align-items:start}
.client-program .program-point:hover{border-color:#888;background:#202020}
.client-program .program-point:focus-visible{outline:2px solid var(--ui-yellow);outline-offset:1px}
.client-program .program-number{display:grid;place-items:center;height:22px;border-radius:50%;background:#343434;color:#fff;font-size:.75rem;line-height:1;font-variant-numeric:tabular-nums}
.client-program .program-content,.client-program .program-address,.client-program .program-spec,.client-program .program-context{display:block;min-width:0;overflow-wrap:anywhere}
.client-program .program-address{font-size:1rem;line-height:1.25;font-weight:750}
.client-program .program-spec{font-size:.86rem;line-height:1.35;margin-top:3px;color:#e5e5e5}
.client-program .program-context{font-size:.85rem;line-height:1.35;margin-top:5px;color:#bcbcbc}
@media(max-width:650px){.client-program.tool-panel{width:min(360px,calc(100vw - 16px));padding:12px}}

.mark.city-pin { display:flex; align-items:center; gap:.4rem; width:auto; height:auto; max-width:none; padding:.32rem .55rem!important; border:1px solid #686358!important; border-radius:8px; font:700 .75rem/1.25 system-ui,sans-serif; background:#151515!important; color:#fff!important; white-space:nowrap; box-shadow:0 1px 4px #0007; }
.city-pin::before { content:''; width:6px; height:6px; border-radius:50%; background:#ffd729; }
.city-pin:hover,.city-pin:focus-visible { z-index:20; border-color:#ffd729!important; }
#showCities { flex:none; }
@media(max-width:420px){.citybar{gap:4px}.citybar select{min-width:0}.citybar button{padding-inline:7px;white-space:nowrap}}

.mark.poi-marker{width:22px;height:22px;z-index:0;background:#f3efe4!important;color:#223642!important;border:1px solid #41545a!important;border-radius:50%;box-shadow:0 1px 4px #15140d66}
.mark.poi-marker.major{width:27px;height:27px;background:#e2eef0!important;border-width:2px!important}
.poi-marker svg{width:13px;height:13px;pointer-events:none}.poi-marker.major svg{width:14px;height:14px}
.mark.poi-marker:hover,.mark.poi-marker[aria-current=true],.mark.poi-marker:focus-visible{outline:2px solid #fff;z-index:4}
.mark.d{z-index:2}
.mark.d.program-point{z-index:5}
.location-context .near-poi{padding:0;border:0;background:none;color:inherit;text-decoration:underline;text-underline-offset:2px;text-align:left;font:inherit;cursor:pointer}

/* Quiet city pictograms; the yellow silhouette remains exclusive to ДРИМ. */
.mark.poi-marker{width:25px;height:25px;background:#252824!important;color:#fffdf5!important;border:1px solid #fffdf0!important;border-radius:7px;box-shadow:0 1px 2px #171812a8,0 0 0 1px #28292399}
.mark.poi-marker.major{width:30px;height:30px;background:#252824!important;border:1px solid #fffdf0!important;border-radius:8px}
.poi-marker svg{width:15px;height:15px}.poi-marker.major svg{width:17px;height:17px}
.mark.poi-marker:is(:hover,:focus-visible,[aria-current=true]){outline:2px solid #f7f6e9;outline-offset:1px}
.poi-details summary{cursor:pointer;font-weight:700;padding:.6rem 0}
.poi-constructions button{display:block;text-align:left;width:100%;margin:.3rem 0}
.mall-visits{margin:.75rem 0;padding:.7rem .85rem;border:1px solid #555552;border-radius:.65rem}
.mall-visits span{font-size:.82rem;color:#e1ded6}
.mall-visits strong{display:block;font-size:1.1rem;font-weight:750;margin:.12rem 0 .28rem}
.mall-visits small{display:block;font-size:.75rem}

.face-picker{margin:0 0 .7rem;display:flex;flex-wrap:wrap;gap:.4rem}.face-picker button[aria-pressed=true]{border-color:var(--accent,#ffd64a);color:var(--accent,#ffd64a)}

/* Keep mobile controls within the visual viewport, including in an iOS in-app browser. */
@media (max-width: 650px) {
  :root {
    --phone-left: max(8px, env(safe-area-inset-left, 0px));
    --phone-right: max(8px, env(safe-area-inset-right, 0px));
    --phone-top: max(8px, env(safe-area-inset-top, 0px));
    --phone-bottom: max(35px, calc(env(safe-area-inset-bottom, 0px) + 10px));
    --phone-city: 104px;
    --phone-search: 50px;
    --phone-gap: 6px;
    --phone-actions-top: calc(var(--phone-top) + var(--phone-city) + var(--phone-search) + 2 * var(--phone-gap));
    --phone-sheet-top: calc(var(--phone-actions-top) + 60px);
  }

  .hud {
    inset: var(--phone-top) var(--phone-right) auto var(--phone-left);
    display: block;
    width: auto;
  }
  .hud .mast { display: none; }
  .hud .citybar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 44px);
    gap: 4px;
    width: 100%;
    height: var(--phone-city);
    min-width: 0;
    padding: 5px;
  }
  .hud .citybar > select {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 44px;
    font-size: 16px;
  }
  .hud .citybar > button {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding-inline: 5px;
    white-space: normal;
    line-height: 1.15;
    font-size: .84rem;
  }
  .search {
    inset: calc(var(--phone-top) + var(--phone-city) + var(--phone-gap)) var(--phone-right) auto var(--phone-left);
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 2px;
  }
  .search input {
    display: block;
    width: 100%;
    height: 44px;
    min-height: 44px;
    font-size: 16px;
  }
  #results {
    max-height: min(226px, 37dvh);
    overflow: auto;
    overscroll-behavior: contain;
  }
  #results button { min-height: 44px; overflow-wrap: anywhere; }

  .actions {
    inset: var(--phone-actions-top) var(--phone-right) auto var(--phone-left);
    width: auto;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .actions button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.16;
    font-size: .75rem;
    padding-inline: 4px;
  }
  .actions button#programToggle { grid-column: 1 / -1; min-height: 44px; font-size: .88rem; }
  .actions:has(> #programToggle[hidden]) { display: none; }

  .maplibregl-ctrl-top-right {
    top: calc(var(--phone-actions-top) + 62px);
    right: var(--phone-right);
  }
  .maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 0; }
  .maplibregl-ctrl-bottom-right { bottom: env(safe-area-inset-bottom, 0px); right: var(--phone-right); }
  #mapstatus {
    top: var(--phone-sheet-top);
    left: var(--phone-left);
    max-width: calc(100% - var(--phone-left) - var(--phone-right) - 36px);
  }
  .tool-panel, .client-program.tool-panel, .inspector {
    inset: auto var(--phone-right) var(--phone-bottom) var(--phone-left);
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: min(56dvh, calc(100dvh - var(--phone-sheet-top) - var(--phone-bottom)));
    overflow: auto;
    overflow-wrap: anywhere;
    overscroll-behavior: contain;
  }
  .inspector > .close, .tool-panel > .close {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  .tool-panel input[type="file"], .tool-panel input[type="url"], .tool-panel select {
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
  }
  .tool-panel .pickrow { grid-template-columns: minmax(0, 1fr) auto; }
  .tool-panel .pickrow.read-only { grid-template-columns: minmax(0, 1fr); }
  .tool-panel .pickrow > button:first-child { min-width: 0; overflow-wrap: anywhere; }
  .tool-panel .row-select { flex-wrap: wrap; }
  .tool-panel .row-select > * { max-width: 100%; }
  body:has(.actions > #programToggle[hidden]) {
    --phone-sheet-top: calc(var(--phone-actions-top) + 2px);
  }
  body:has(.actions > #programToggle[hidden]) .maplibregl-ctrl-top-right {
    top: calc(var(--phone-actions-top) + 4px);
  }
}
@media (max-width: 650px) and (max-height: 420px) and (orientation: landscape) {
  :root { --phone-city: 56px; }
  .hud .citybar { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); grid-template-rows: 44px; }
  .hud .citybar > select { grid-column: 1; }
}

/* Main actions follow the map; a proposal never shares its controls with the catalogue. */
:root{
 --dock-edge-left:max(12px,calc(env(safe-area-inset-left,0px) + 7px));
 --dock-edge-right:max(12px,calc(env(safe-area-inset-right,0px) + 7px));
 --dock-top:max(12px,calc(env(safe-area-inset-top,0px) + 7px));
 --dock-bottom:max(31px,calc(env(safe-area-inset-bottom,0px) + 23px));
 --dock-height:58px;
 --sheet-bottom:calc(var(--dock-bottom) + var(--dock-height) + 8px);
}
.map-city{
 position:fixed;z-index:8;top:var(--dock-top);left:var(--dock-edge-left);
 max-width:calc(100% - var(--dock-edge-left) - var(--dock-edge-right) - 54px);
}
.map-city #city{
 min-height:44px;min-width:0;max-width:100%;font-size:16px;font-weight:700;
 padding:7px 10px;background:#171717f5;border:1px solid #6c6a65;border-radius:11px;color:white;
 box-shadow:0 3px 12px #1117;text-overflow:ellipsis;
}
.map-dock{
 position:fixed;z-index:8;bottom:var(--dock-bottom);left:var(--dock-edge-left);right:var(--dock-edge-right);
 width:min(410px,calc(100% - var(--dock-edge-left) - var(--dock-edge-right)));
 display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:6px;align-items:center;
 min-height:var(--dock-height);padding:5px;border-radius:16px;
}
.map-dock > button[hidden]{display:none!important;}
.pane.map-dock > button.dock-primary{
 min-width:0;min-height:46px;padding:5px 9px;line-height:1.15;font-weight:800;
 color:#171717;background:var(--ui-yellow,#ffda2a);border-color:var(--ui-yellow,#ffda2a);border-radius:10px;
}
.pane.map-dock > button.dock-primary:hover{background:#ffe461;color:#111}
.map-dock .dock-menu{min-width:0}
.dock-menu > summary{
 display:grid;place-items:center;list-style:none;min-width:44px;min-height:46px;border:1px solid #565451;
 border-radius:10px;color:#fff;background:#292929;cursor:pointer;
}
.dock-menu > summary::-webkit-details-marker{display:none;}
.dock-menu > summary:focus-visible{outline:2px solid #ffda2a;outline-offset:2px;}
.dock-menu .menu-body{
 display:grid;gap:6px;position:absolute;bottom:calc(100% + 7px);left:0;right:0;
 padding:8px;min-width:0;max-height:calc(100dvh - var(--sheet-bottom) - 72px);overflow:auto;
}
.dock-menu:not([open]) .menu-body{display:none;}
.menu-body > button{width:100%;min-height:44px;text-align:left;font-weight:660;}
.map-dock .search{
 position:relative;inset:auto;width:auto;max-width:none;min-width:0;padding:0;background:none;
}
.map-dock .search input{min-height:46px;width:100%;font-size:16px;font-weight:550}
.map-dock > .search #results:not([hidden]){
 position:absolute;left:0;right:-52px;bottom:calc(100% + 10px);background:#191919;
 border:1px solid #605f5c;border-radius:12px;box-shadow:0 5px 18px #0006;
}
.map-dock #results{max-height:min(34dvh,242px);overflow:auto;overscroll-behavior:contain;}
.map-dock #results button{min-height:44px}
.proposal-mode .map-dock{grid-template-columns:minmax(0,1fr);}
.proposal-mode .map-dock > .dock-menu{display:none;}
.maplibregl-ctrl-top-right{top:calc(var(--dock-top) + 2px);right:var(--dock-edge-right);}
.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:0;border:1px solid #5e5c58;background:#242424ee;border-radius:12px;}
.maplibregl-ctrl-top-right .maplibregl-ctrl-group button{width:43px;height:43px}
.maplibregl-ctrl-top-right .maplibregl-ctrl-icon{filter:invert(1);}
.maplibregl-ctrl-top-right .maplibregl-ctrl-group button:hover{background:#343434}
.maplibregl-ctrl-bottom-right{right:var(--dock-edge-right);bottom:max(0px,env(safe-area-inset-bottom,0px));}
#mapstatus{left:var(--dock-edge-left);top:calc(var(--dock-top) + 61px);z-index:2;}
.inspector,.tool-panel,.client-program.tool-panel{
 z-index:7;top:auto;bottom:var(--sheet-bottom);max-height:min(66dvh,calc(100dvh - var(--sheet-bottom) - var(--dock-top) - 68px));
 overscroll-behavior:contain;overflow-wrap:anywhere;
}
.tool-panel,.client-program.tool-panel{left:var(--dock-edge-left);width:min(410px,calc(100% - var(--dock-edge-left) - var(--dock-edge-right)));padding:12px;}
.inspector{right:var(--dock-edge-right);}
.tool-panel input[type=file],.tool-panel input[type=url],.tool-panel select{min-width:0;max-width:100%;}
.inspector .programme-back{display:block;min-height:44px;color:#fff;border:1px solid #6b6858;margin-bottom:9px;}
.import-check{padding:8px;color:#ffebad;border-radius:8px;background:#34301d;}
.import-warning summary{min-height:44px;padding:10px 2px;color:#ffe383;cursor:pointer;}
.landmark-label{
 display:none;position:absolute;top:calc(100% + 3px);left:50%;transform:translateX(-50%);max-width:125px;
 width:max-content;color:#fff;background:#222522e8;font:650 .66rem/1.2 system-ui,sans-serif;
 border-radius:4px;padding:3px 5px;pointer-events:none;box-shadow:0 1px 5px #0005;
}
.poi-marker.major .landmark-label{display:block;}
.poi-marker[aria-current=true]{z-index:6;}
.proposal-mode .maplibregl-marker:has(.poi-marker:not(.major):not([aria-current=true])){opacity:.63;}
.proposal-mode .mark.d.program-point{z-index:5;}
.proposal-mode .mark.d.program-point .billboard-icon rect{fill:#ffda2a;stroke:#2a2615;}
.proposal-mode .mark.d.program-point .billboard-icon text{fill:#1a1608;}
.proposal-mode .mark.d.program-point .billboard-number{color:#111;background:#ffda2a;border-color:#211a09;}
.proposal-mode .mark.d.program-point[aria-current=true]{z-index:12;}
@media(max-width:650px){
 .map-dock{width:auto;}
 .map-city{max-width:calc(100% - var(--dock-edge-left) - var(--dock-edge-right) - 56px);}
 .inspector,.tool-panel,.client-program.tool-panel{
  left:var(--dock-edge-left);right:var(--dock-edge-right);width:auto;max-width:none;
  max-height:min(64dvh,calc(100dvh - var(--sheet-bottom) - var(--dock-top) - 56px));
 }
 .inspector.search-preview{max-height:min(64dvh,calc(100dvh - var(--sheet-bottom) - var(--dock-top) - 56px));}
 .tool-panel .row-select{flex-wrap:wrap;}
 .tool-panel .row-select > *{max-width:100%;}
 .map-dock .menu-body select,.tool-panel input:not([type=checkbox]),.tool-panel textarea{font-size:16px;}
 .map-dock #results button{font-size:.9rem;}
}
@media(prefers-reduced-motion:no-preference){
 .tool-panel:not([hidden]),.inspector:not([hidden]){animation:dock-open .19s ease-out;}
 @keyframes dock-open{from{opacity:.5;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
}

.pane.map-dock > button.dock-primary[aria-expanded=true]{background:#ffda2a;color:#111;border:1px solid #ffda2a;}

.client-program .program-city-heading{display:flex;align-items:center;gap:8px;min-height:28px;margin:15px 0 6px;color:var(--ui-white);font-size:.94rem;line-height:1.25;font-weight:750}
.client-program .program-city-heading span{border-radius:10px;background:#343434;padding:2px 6px;color:#e5e5e5;font-size:.75rem;font-variant-numeric:tabular-nums}

.client-program .program-filter{display:grid;gap:4px;margin:0 0 10px;color:var(--ui-muted);font-size:.875rem;font-weight:650}
.client-program .program-filter select{width:100%;min-height:44px;border-radius:9px;padding:7px 30px 7px 10px;border:1px solid var(--ui-line);color:var(--ui-white);background-color:var(--ui-raised);font:inherit;font-size:1rem}
.client-program .program-filter select:focus-visible{outline:2px solid var(--ui-yellow);outline-offset:1px}

.client-program .program-city-brief{padding:9px 10px;margin:0 0 12px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-raised)}
.client-program .program-city-brief p{margin:0;color:var(--ui-white);font-size:.875rem;font-weight:700}
.client-program .program-city-brief dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;margin:8px 0 0}
.client-program .program-city-brief dt{color:var(--ui-muted);font-size:.84rem}
.client-program .program-city-brief dd{margin:3px 0 0;color:var(--ui-white);font-size:1rem;font-weight:750}
.client-program .program-city-brief small{font-size:.77rem}

.client-program .program-city-brief dd small{display:block;margin-top:2px;font-weight:500}

/* Surface filters share the map dock, while Excel and programme remain primary. */
.map-dock{grid-template-columns:minmax(0,1fr) auto 46px}
.proposal-mode .map-dock{grid-template-columns:minmax(0,1fr) auto}
.map-dock .dock-menu{order:3}
.map-dock #programToggle,.map-dock #importToggle,.map-dock>.dock-search{order:0}
.surface-dock{display:flex;min-width:0;order:2;align-items:stretch;gap:3px}
.surface-dock button{margin:0;min-height:46px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-raised);color:var(--ui-white)}
#surfaceFilterToggle{display:grid;grid-template-columns:auto auto;place-content:center;align-items:center;column-gap:4px;min-width:44px;max-width:115px;padding:4px 7px;font-size:.82rem;font-weight:700}
#surfaceFilterToggle[data-active=true]{border-color:var(--ui-yellow)}
#surfaceFilterSelection{grid-column:1 / -1;min-width:0;max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:.72rem;color:var(--ui-yellow)}
#surfaceFilterClear{min-width:36px;padding:0 6px;font-size:1.25rem}
#surfaceFilterClear[hidden],#surfaceFilterSelection[hidden],.surface-types[hidden]{display:none}
.surface-filter-panel.tool-panel{z-index:9;border-color:var(--ui-line)}
.surface-filter-panel h2{margin:5px 48px 15px 0}
.surface-types{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:13px}
.surface-types button,.surface-filter-actions button,.program-filter-open{min-height:44px;margin:0;border-radius:9px;padding:6px 10px;font-size:.875rem;font-weight:720}
.surface-types button[aria-pressed=true]{background:var(--ui-yellow);border-color:var(--ui-yellow);color:#111}
.surface-format-title{font-size:.94rem;font-weight:750;margin-bottom:5px}
.surface-formats{display:grid;gap:3px}
.surface-option{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:44px;padding:4px 8px;background:var(--ui-raised);border-radius:8px;color:var(--ui-white);cursor:pointer;}
.surface-option:focus-within{outline:2px solid var(--ui-yellow);outline-offset:-2px}
.surface-option input{width:17px;height:17px;margin:0;accent-color:var(--ui-yellow)}
.surface-option small{font-variant-numeric:tabular-nums}
.surface-filter-actions{position:sticky;bottom:-12px;display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;padding:8px 0;background:#171717;z-index:1}
.surface-filter-actions #surfaceFilterApply{flex:1 1 auto;background:var(--ui-yellow);border-color:var(--ui-yellow);color:#111}
.surface-filter-actions #surfaceFilterReset:disabled{opacity:.55}
.program-filter-open{display:inline-flex;align-items:center;margin:0 0 10px;color:var(--ui-white)}
.program-filter-open[aria-pressed=true]{border-color:var(--ui-yellow)}
.program-empty{margin:8px 0 14px}
@media(max-width:360px){
 #surfaceFilterToggle{padding:3px 5px;column-gap:3px}
 #surfaceFilterToggle svg{width:16px}
}

.surface-catalogue[hidden]{display:none}
.surface-catalogue{margin:5px 0 8px;border:1px solid var(--ui-line);font-size:.875rem}
.program-catalogue-heading{font-size:.94rem;margin:14px 0 7px;color:var(--ui-white)}
.program-number.catalogue-number{background:transparent;color:var(--ui-muted)}

/* Dining locations are readable without competing with the yellow advertising markers. */
.mark.poi-marker:is([data-category=restaurant],[data-category=cafe]){background:#3e2722!important;border-color:#fff1d8!important;color:#fff1d8!important}
.proposal-mode .maplibregl-marker:has(.poi-marker:is([data-category=restaurant],[data-category=cafe])){opacity:.90}

/* Advertising filters: fixed heading and actions, independently scrollable choices. */
#surfaceFilterPanel:not([hidden]){
 display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:0;padding:0;overflow:hidden;
 width:min(410px,calc(100vw - var(--dock-edge-left) - var(--dock-edge-right)));
 color:#fff;background:#161616;border:1px solid #444;border-radius:17px;box-shadow:0 16px 50px #0007;
}
#surfaceFilterPanel[hidden]{display:none}
#surfaceFilterPanel .surface-filter-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border-bottom:1px solid #333}
#surfaceFilterPanel .surface-filter-head h2{margin:0;font-size:1.23rem;line-height:1.15;letter-spacing:-.03em}
#surfaceFilterPanel .surface-filter-head button.close{
 position:static;float:none;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;
 min-height:44px;padding:0;margin:0;background:#242424;color:#fff;border:1px solid #444;box-shadow:none;
 border-radius:10px;font-size:1.4rem;line-height:1;cursor:pointer;
}
#surfaceFilterPanel .surface-filter-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 13px 10px;scrollbar-color:#5b5b5b transparent}
#surfaceFilterPanel .surface-types{display:grid;grid-template-columns:.66fr 1fr 1fr;gap:3px;margin:0 0 14px;padding:3px;background:#202020;border:1px solid #363636;border-radius:12px}
#surfaceFilterPanel .surface-types button{
 min-height:44px;margin:0;padding:4px 3px;border:1px solid transparent;border-radius:8px;min-width:0;
 font-size:.845rem;line-height:1.18;color:#e6e6e6;background:transparent;
 transition:background-color .16s ease,color .16s ease,border-color .16s ease;
}
#surfaceFilterPanel .surface-types button[aria-pressed=true]{background:#ffda2a;color:#151515;border-color:#ffda2a}
#surfaceFilterPanel .surface-types button:not([aria-pressed=true]):hover{background:#303030}
#surfaceFilterPanel .surface-format-title{margin:0 0 6px;font-size:.9rem;letter-spacing:.006em;color:#ddd}
#surfaceFilterPanel .surface-formats{gap:4px}
#surfaceFilterPanel label.surface-option{
 display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;column-gap:10px;min-height:44px;
 margin:0;padding:6px 9px;border:1px solid transparent;border-radius:9px;font-size:.94rem;line-height:1.26;
 background:#212121;color:#fff;cursor:pointer;transition:background-color .17s ease,border-color .17s ease;
}
#surfaceFilterPanel label.surface-catalogue{margin:0 0 14px;border-color:#3e3e3e}
#surfaceFilterPanel label.surface-option[hidden]{display:none}
#surfaceFilterPanel label.surface-option:hover{background:#2a2a2a}
#surfaceFilterPanel label.surface-option:has(input:checked){background:#302a19;border-color:#7c6721}
#surfaceFilterPanel label.surface-option:focus-within{outline:none}
#surfaceFilterPanel .surface-option span{overflow-wrap:anywhere}
#surfaceFilterPanel .surface-option input[type=checkbox]{
 appearance:none;display:grid;place-content:center;box-sizing:border-box;width:18px;height:18px;min-width:18px;min-height:18px;
 padding:0;margin:0;border:1px solid #a3a3a3;border-radius:4px;background:#181818;cursor:pointer;
 transition:background-color .16s ease,border-color .16s ease;
}
#surfaceFilterPanel .surface-option input[type=checkbox]:checked{border-color:#ffda2a;background:#ffda2a}
#surfaceFilterPanel .surface-option input[type=checkbox]::before{
 content:'';width:8px;height:5px;border-left:2px solid #161616;border-bottom:2px solid #161616;
 transform:translateY(-1px) rotate(-45deg) scale(0);transition:transform .16s cubic-bezier(.16,1,.3,1);
}
#surfaceFilterPanel .surface-option input[type=checkbox]:checked::before{transform:translateY(-1px) rotate(-45deg) scale(1)}
#surfaceFilterPanel .surface-option small{justify-self:end;min-width:24px;text-align:center;padding:2px 6px;border-radius:999px;background:#343434;color:#ebebeb;font-size:.76rem}
#surfaceFilterPanel .surface-filter-actions{
 position:static;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;
 margin:0;padding:9px 13px 11px;border-top:1px solid #343434;background:#161616;
}
#surfaceFilterPanel .surface-filter-actions button{min-height:44px;padding:5px 9px;margin:0;font-size:.87rem;line-height:1.2}
#surfaceFilterPanel #surfaceFilterReset{grid-column:1;grid-row:1;background:#252525}
#surfaceFilterPanel #surfaceFilterApply{grid-column:2;grid-row:1;min-width:0}
#surfaceFilterPanel :is(button,input):focus-visible{outline:2px solid #ffda2a;outline-offset:2px}
@keyframes surface-panel-enter{from{opacity:0;transform:translateY(13px) scale(.986)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes surface-choices-enter{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){
 #surfaceFilterPanel:not([hidden]){animation:surface-panel-enter .24s cubic-bezier(.2,.85,.24,1) both;transform-origin:bottom left}
 #surfaceFilterPanel .surface-formats.surface-enter{animation:surface-choices-enter .19s ease-out both}
}
@media(prefers-reduced-motion:reduce){
 #surfaceFilterPanel :is(button,label,input)::before,#surfaceFilterPanel :is(button,label,input){transition:none}
}
@media(max-width:650px){#surfaceFilterPanel:not([hidden]){width:auto}}

@media(max-width:420px){.pane.map-dock > #programToggle{font-size:.795rem;line-height:1.14;padding:3px 6px}}

.pane.map-dock > #programToggle{padding:4px 8px;display:grid;place-items:center}
.program-dock-counts{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:0;white-space:nowrap;font-size:1.02rem;line-height:1;font-variant-numeric:tabular-nums}
.program-dock-pair{display:inline-flex;align-items:center;gap:5px}
.program-dock-pair svg{flex:none}
.program-dock-separator{height:16px;width:1px;background:#1115}
@media(max-width:380px){.program-dock-counts{gap:6px;font-size:.9rem}.program-dock-pair{gap:3px}.program-dock-pair svg{width:18px;height:18px}}

.proposal-mode .map-city{display:flex;align-items:center;gap:6px}
.proposal-mode .map-city #city{flex:1 1 auto;width:auto;min-width:0}
#showProgrammeCity[hidden]{display:none}
#showProgrammeCity{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:5px;min-height:44px;
 padding:5px 9px;border:1px solid #6c6a65;border-radius:11px;background:#171717f5;color:#fff;
 font:700 .85rem/1.12 system-ui,sans-serif;white-space:nowrap;box-shadow:0 3px 12px #1117}
#showProgrammeCity[aria-expanded=true]{border-color:var(--ui-yellow);color:var(--ui-yellow)}
#showProgrammeCity:focus-visible{outline:2px solid var(--ui-yellow);outline-offset:2px}
@media(max-width:380px){#showProgrammeCity{padding-inline:7px;gap:3px}#showProgrammeCity svg{width:16px}}

.client-program .program-city-brief{background:#202020;padding:8px 10px;margin:0 0 8px}
.client-program .program-city-heading{margin-top:17px;margin-bottom:5px}
.client-program .program-city-brief dl{gap:7px 10px;grid-template-columns:repeat(auto-fit,minmax(min(104px,100%),1fr))}
.client-program .program-city-brief dt{overflow-wrap:anywhere}

.map-city,.proposal-mode .map-city{display:flex;align-items:center;gap:6px}
.map-city #city,.proposal-mode .map-city #city{flex:1 1 auto;width:auto;min-width:0}
.map-dock,.proposal-mode .map-dock{grid-template-columns:minmax(0,1fr) auto}
.map-dock>.search #results:not([hidden]){right:0}
.map-city #showCity,.map-city #showCities{
 display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;min-height:44px;min-width:44px;
 padding:5px 9px;border:1px solid #6c6a65;border-radius:11px;background:#171717f5;color:#fff;
 font:700 .85rem/1.12 system-ui,sans-serif;white-space:nowrap;box-shadow:0 3px 12px #1117;
}
.map-city #showCities{font-variant-numeric:tabular-nums}
.map-city :is(#showCity,#showCities)[aria-expanded=true]{border-color:var(--ui-yellow);color:var(--ui-yellow)}
.map-city :is(#showCity,#showCities):focus-visible,.city-overview button:focus-visible{outline:2px solid var(--ui-yellow);outline-offset:2px}
.city-overview:not([hidden]){
 position:fixed;z-index:8;top:calc(var(--dock-top) + 51px);left:var(--dock-edge-left);
 width:min(355px,calc(100% - var(--dock-edge-left) - var(--dock-edge-right)));
 max-height:min(62dvh,calc(100dvh - var(--sheet-bottom) - var(--dock-top) - 59px));
 display:grid;grid-template-rows:auto minmax(0,1fr);padding:10px;overflow:hidden;border-radius:14px;background:#171717f9;
}
.city-overview[hidden]{display:none}
.city-overview header{display:flex;justify-content:space-between;align-items:center;padding:0 0 6px 4px}
.city-overview h2{margin:0;color:#fff;font-size:1.1rem}
.city-overview #closeCityOverview{width:44px;font-size:1.17rem}
.city-overview button{margin:0;min-height:44px;padding:5px 8px;color:#fff;background:#252525;border:1px solid #444;border-radius:8px;line-height:1.2;text-align:center}
#overviewCityList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;min-height:0;overflow:auto;overscroll-behavior:contain}
#overviewCityList button[aria-current=true]{border-color:var(--ui-yellow)}
@media(max-width:410px){.map-city #showCity span{display:none}.map-city #showCities{padding-inline:7px}}

#surfaceFilterPanel .surface-city-scope{margin:0 0 12px}
#surfaceFilterPanel .surface-city-scope label{display:block;margin:0 0 4px;color:#ddd;font-size:.86rem;font-weight:700}
#surfaceFilterPanel .surface-city-scope > div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
#surfaceFilterPanel #surfaceFilterCity,#surfaceFilterPanel #surfaceFilterAllCities{
 min-width:0;min-height:44px;padding:5px 8px;border:1px solid #444;border-radius:9px;margin:0;background:#252525;color:#fff;
 font-size:.9rem;
}
#surfaceFilterPanel #surfaceFilterAllCities{display:flex;gap:4px;align-items:center;font-variant-numeric:tabular-nums;}
#surfaceFilterPanel #surfaceFilterAllCities[aria-pressed=true]{border-color:var(--ui-yellow);color:var(--ui-yellow)}
@media(max-width:650px){#surfaceFilterPanel #surfaceFilterCity{font-size:16px}}

/* City intro: the same panel as the addresses, with typography carrying the hierarchy. */
.client-program .program-head{margin-bottom:12px;min-height:28px}
.client-program .program-city-heading{
 display:flex;align-items:baseline;justify-content:space-between;column-gap:10px;row-gap:4px;flex-wrap:wrap;
 min-height:0;margin:15px 0 10px;color:var(--ui-white);font-size:1.31rem;font-weight:780;line-height:1.12;letter-spacing:-.028em;
}
.client-program .program-city-heading strong{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.client-program .program-city-heading span{
 flex:0 0 auto;max-width:100%;padding:3px 7px;border:1px solid #484848;border-radius:999px;background:none;
 color:#e8e8e8;font-size:.73rem;line-height:1.15;font-weight:660;letter-spacing:0;white-space:nowrap;
}
.client-program .program-list + .program-city-heading{padding-top:16px;border-top:1px solid #414141;margin-top:19px}
.client-program .program-city-brief{
 border:0;border-bottom:1px solid #3c3c3c;border-radius:0;margin:0 0 9px;padding:0 0 11px;background:transparent;
}
.client-program .program-city-brief dl{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0;
}
.client-program .program-city-brief dl > div{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 1fr;row-gap:3px;min-width:0;align-content:start}
.client-program .program-city-brief dt{grid-row:2;color:#c4c4c4;font-size:.79rem;line-height:1.23;overflow-wrap:anywhere}
.client-program .program-city-brief dd{display:contents}
.client-program .program-city-brief dd strong{
 grid-row:1;color:#fff;font-size:clamp(1rem,2.5vw,1.15rem);font-weight:770;line-height:1.08;letter-spacing:-.026em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere
}
.client-program .program-city-brief dd small{grid-row:3;margin:0;color:#aaa;font-size:.72rem;line-height:1.18;font-weight:500}
@media(max-width:650px){
 .client-program .program-city-brief dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 13px}
 .client-program .program-city-brief dl > div:first-child{grid-column:1 / -1;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:baseline;column-gap:8px}
 .client-program .program-city-brief dl > div:first-child dt{grid-column:2;grid-row:1}
 .client-program .program-city-brief dl > div:first-child dd strong{grid-column:1;grid-row:1;font-size:1.31rem}
 .client-program .program-city-brief dl > div:first-child dd small{grid-column:1 / -1;grid-row:2}
}
#surfaceFilterPanel .surface-city-scope > div{grid-template-columns:minmax(0,1fr) max-content;align-items:stretch}
#surfaceFilterPanel #surfaceFilterCity{width:100%;text-overflow:ellipsis}
#surfaceFilterPanel #surfaceFilterAllCities{min-width:58px;justify-content:center}

/* Points of interest in the city profile. */
#cityTargets{margin:18px 0 4px;border-top:1px solid #3b3b3b;padding-top:14px}
#cityTargets[hidden],#cityTargets [hidden]{display:none!important}
#cityTargets .target-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
#cityTargets .target-head h3{margin:0;color:#fff;line-height:1.2;font-size:1.1rem}
#cityTargets button{min-height:44px;margin:0;border:1px solid #454545;background:#242424;color:#fff;border-radius:8px;cursor:pointer}
#cityTargets button:hover{background:#313131}
#cityTargets :is(input,summary,button):focus-visible{outline:2px solid #ffda2a;outline-offset:2px}
#cityTargets .target-reset{padding:4px 8px;min-height:34px;color:#eee;background:transparent}
#cityTargets input.target-search{margin:0 0 8px;padding:8px 10px;min-height:44px;width:100%;background:#202020;border:1px solid #515151;border-radius:8px;color:white;font-size:16px}
#cityTargets .target-category{border-top:1px solid #373737}
#cityTargets .target-category:last-child{border-bottom:1px solid #373737}
#cityTargets .target-category summary,#cityTargets .target-results summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:5px 3px;cursor:pointer;color:#eee;font-size:.88rem;font-weight:680;list-style:none}
#cityTargets summary::-webkit-details-marker{display:none}
#cityTargets .target-category summary::after,#cityTargets .target-results summary::after{
 content:"";width:6px;height:6px;border-right:1.7px solid #bbb;border-bottom:1.7px solid #bbb;transform:rotate(-45deg);margin:0 3px 0 0
}
#cityTargets details[open]>summary::after{transform:rotate(45deg)}
#cityTargets .target-category summary span{flex:1}
#cityTargets .target-category summary small{font-size:.74rem;color:#bbb}
#cityTargets .target-options,#cityTargets .target-result-list{display:grid;gap:4px;padding:0 0 7px}
#cityTargets .target-option{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;text-align:left;padding:5px 8px;font-size:.875rem}
#cityTargets .target-option i{width:16px;height:16px;border-radius:4px;border:1px solid #a3a3a3}
#cityTargets .target-option[aria-pressed=true]{border-color:#8c752f;background:#302817}
#cityTargets .target-option[aria-pressed=true] i{background:#ffda2a;border-color:#ffda2a}
#cityTargets .target-option[aria-pressed=true] i:after{content:"";display:block;width:8px;height:5px;border-left:2px solid #151515;border-bottom:2px solid #151515;transform:translate(3px,3px) rotate(-45deg)}
#cityTargets .target-result{display:flex;text-align:left;align-items:center;gap:8px;justify-content:space-between;padding:5px 8px;font-size:.83rem}
#cityTargets .target-result small{flex:0 0 auto;font-size:.74rem}
#cityTargets .target-chips{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:8px}
#cityTargets .target-chips .target-chip{min-height:33px;padding:4px 7px;font-size:.75rem;border-color:#8c752f}
#cityTargets .target-controls{padding:6px 0;border-top:1px solid #444;margin-bottom:7px}
#cityTargets .target-state{font-size:.8rem;color:#dadada;margin-bottom:3px}
#cityTargets .target-only{display:flex;align-items:center;gap:7px;font-size:.84rem;color:#eee;padding:4px 0}
#cityTargets .target-only input{margin:0;accent-color:#ffda2a}
#cityTargets .target-hint{margin:8px 0 0;color:#a9a9a9;font-size:.76rem;line-height:1.32}
#cityTargets .target-empty{font-size:.84rem;color:#eee}

/* The compact walking approach is independent of the nearby search and screen filters. */
.approach-endpoints,.approach-options{display:grid;gap:6px;margin:8px 0;}
.approach-endpoints button,.approach-option{width:100%;text-align:left;min-height:38px;}
.approach-endpoints button[aria-pressed=true],.approach-option[aria-pressed=true]{border-color:#84ebd9!important;color:#b4ffef!important;}
.approach-distance{font-weight:720;color:#b4ffef!important;}
.approach-client{margin:8px 0 13px;padding:10px;background:#18302d;border:1px solid #39554e;border-radius:10px;}
.approach-client h3{margin:0 0 4px;font-size:.96rem;color:#effffb;}
.approach-client p{margin:4px 0 8px;font-size:.86rem;color:#b7dbd2;}
.approach-client button{min-height:36px;}
.approach-nearby{color:#a7eddd;font-size:.78rem;display:block;margin-top:4px;}

/* Selection follows the artwork. No floating frame around a marker. */
:root{--map-selection-gold:#ffd260}
.mark.d.maplibregl-marker.target-board-muted{opacity:.24;filter:saturate(.25);z-index:1}
.mark.d.maplibregl-marker.target-board-muted:is(:hover,:focus-visible){opacity:.86}
.mark.maplibregl-marker:is(.target-board-near,.target-pick-active,[aria-current=true]):not(.city-pin){
 outline:none!important;box-shadow:none!important;overflow:visible;opacity:1;z-index:12;
}
html .mark.d.maplibregl-marker:is(.target-board-near,.manual-picked,[aria-current=true]){
 opacity:1;filter:none;z-index:12;overflow:visible;
}
.mark.d:is(.target-board-near,.manual-picked,[aria-current=true]) .billboard-icon{
 position:relative;overflow:visible;transform:scale(1.34);transform-origin:50% 88%;
 filter:drop-shadow(0 1px 1.7px #161209df);
}
html .mark.d:is(.target-board-near,.manual-picked,[aria-current=true]) .billboard-icon rect{
 stroke:var(--map-selection-gold);stroke-width:2.6;
}
html .mark.d:is(.target-board-near,.manual-picked,[aria-current=true]) .billboard-icon path:first-child{
 stroke:var(--map-selection-gold);stroke-width:4;
}
html .mark.d:is(.target-board-near,.manual-picked,[aria-current=true]) .billboard-number{
 transform:translate(5px,-6px);border-color:var(--map-selection-gold)
}
.mark.poi-marker.maplibregl-marker:is(.target-pick-active,[aria-current=true]){
 color:var(--map-selection-gold)!important;
}
.mark.poi-marker.maplibregl-marker:is(.target-pick-active,[aria-current=true])>svg{stroke-width:1.9;overflow:visible}
html[data-atlas3d="yes"] .mark.c.maplibregl-marker:is(.target-pick-active,[aria-current=true])>svg{display:block}
html[data-atlas3d="yes"] .mark.c.maplibregl-marker:is(.target-pick-active,[aria-current=true])::after{display:none}
.mark.c.maplibregl-marker:is(.target-pick-active,[aria-current=true])>svg{
 overflow:visible;
 filter:drop-shadow(.8px 0 0 var(--map-selection-gold)) drop-shadow(-.8px 0 0 var(--map-selection-gold)) drop-shadow(0 .8px 0 var(--map-selection-gold)) drop-shadow(0 -.8px 0 var(--map-selection-gold)) drop-shadow(0 1px 1px #211a13e0);
}
.mark.maplibregl-marker:is(.target-board-near,.target-pick-active,[aria-current=true]):focus-visible{
 outline:1px dashed var(--map-selection-gold)!important;outline-offset:3px;
}
@keyframes target-board-grow{0%{transform:scale(1)}60%{transform:scale(1.41)}100%{transform:scale(1.34)}}
@media(prefers-reduced-motion:no-preference){
 .mark.d:is(.target-board-near,.manual-picked,[aria-current=true]) .billboard-icon{animation:target-board-grow .38s cubic-bezier(.21,.65,.25,1) both}
 .mark.d.target-board-muted{transition:opacity .2s ease}
}


#clientRouteToggle[hidden]{display:none!important}
body.proposal-mode{--dock-height:110px;--sheet-bottom:calc(var(--dock-bottom) + var(--dock-height) + 8px);}
.proposal-mode .map-dock{grid-template-columns:minmax(0,1fr) max-content;}
.proposal-mode .map-dock>.search{grid-column:1/-1;}
.proposal-mode .map-dock:has(#clientRouteToggle:not([hidden])){grid-template-columns:minmax(0,1fr) max-content max-content}
#clientRouteToggle{
 order:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;height:46px;min-width:44px;
 margin:0;padding:5px 9px;border:1px solid #565451;border-radius:10px;background:#252525;color:#fff;font-size:.84rem;font-weight:700;
}
#clientRouteToggle[aria-pressed=true]{color:#a7f2e1;border-color:#8ceadb}
#clientRouteToggle:focus-visible{outline:2px solid #ffda2a;outline-offset:2px}
#clientRoutePanel.client-route-panel{width:min(390px,calc(100% - var(--dock-edge-left) - var(--dock-edge-right)));max-height:min(46dvh,360px)}
#clientRoutePanel h2{margin:2px 48px 8px 0;font-size:1.16rem}
#clientRoutePanel .route-choice{display:grid;gap:4px;margin-bottom:8px;color:#cbcbcb;font-size:.8rem}
#clientRoutePanel select{width:100%;min-height:44px;padding:5px 7px;background:#292929;color:#fff;border:1px solid #545454;border-radius:8px;font-size:1rem}
#clientRoutePanel .route-endpoints{margin:8px 0 5px;color:#f3f3f3;font-weight:700;font-size:.92rem}
#clientRoutePanel .route-distance{margin:5px 0;font-size:.85rem;color:#a4e8d9}
#clientRoutePanel .route-surface-list{padding-top:4px}
#clientRoutePanel .route-surface-list summary{min-height:40px;padding:10px 0;cursor:pointer;color:#eee;font-size:.86rem}
#clientRoutePanel .route-surface-list button{display:block;width:100%;min-height:44px;text-align:left;margin:3px 0;font-size:.875rem}
.approach-saved{display:grid;gap:4px;margin:6px 0 10px}
.approach-saved-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px}
.approach-saved-row button{margin:0;text-align:left;min-height:44px}
.approach-saved-row button:last-child{min-width:44px;text-align:center}
.approach-saved-row button[aria-pressed=true]{border-color:var(--ui-yellow)}
.approach-names{display:grid;gap:4px}.approach-names input{display:block;width:100%;min-height:44px}
@media(max-width:650px){#clientRoutePanel.client-route-panel{right:var(--dock-edge-right);width:auto}}
@media(max-width:350px){.map-dock:has(#surfaceFilterClear:not([hidden])) #clientRouteToggle > span{display:none}#clientRouteToggle{padding-inline:6px}}

/* Keep two city figures equal and side by side, including on phones. */
.client-program .program-city-brief dl[data-stat-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.client-program .program-city-brief dl[data-stat-count="2"]>div:first-child{grid-column:auto;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 1fr;align-items:start}
.client-program .program-city-brief dl[data-stat-count="2"]>div:first-child dt{grid-column:1;grid-row:2}
.client-program .program-city-brief dl[data-stat-count="2"]>div:first-child dd strong{grid-column:1;grid-row:1;font-size:clamp(1rem,2.5vw,1.15rem)}
.client-program .program-city-brief dl[data-stat-count="2"]>div:first-child dd small{grid-column:1;grid-row:3}
#inspector .card-spec{margin:.4rem 0 .8rem;color:#c8c8c8}
#inspector .card-routes{margin:.8rem 0;display:grid;gap:5px;color:#a2dbc3;font-size:.85rem}
@media(max-width:380px){.proposal-mode .program-dock-pair svg,.proposal-mode .program-dock-separator,.proposal-mode .program-dock-cities{display:none}}

@media(max-width:360px){.proposal-mode .program-dock-counts{font-size:.78rem}.proposal-mode #clientRouteToggle{font-size:.74rem;padding-inline:7px}.proposal-mode #surfaceFilterToggle{padding-inline:7px}}
