:root{--bg:#08141f;--panel:rgba(10,24,36,.94);--panel2:rgba(17,36,51,.97);--line:rgba(176,207,230,.19);--text:#f3f7fa;--muted:#afc3d1;--accent:#22a9ed;--accent2:#007bca;--panel-w:344px;--sheet-h:43vh}
body{font-size:16px}button,input,select{font:inherit}button{transition:background .18s,border-color .18s;cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #70d2ff;outline-offset:3px}
#top{left:20px;right:20px;top:20px;gap:14px}#brand{padding:12px 16px;border-radius:8px}#brand img{height:36px}#brand b{font-size:16px}#brand small{font-size:12px;letter-spacing:1.3px;margin-top:5px}#tabs{padding:5px;border-radius:8px}#tabs button{padding:13px 17px;border-radius:5px;font-size:14px}#tabs button.active{background:#e8f5fe;color:#09283d}.tb{min-height:42px;border-radius:7px;background:var(--panel);font-size:14px}.tb.active{background:#08699f;color:white}
#sheet{background:var(--panel);border:1px solid var(--line);box-shadow:0 12px 42px #0003;border-radius:10px}#sheet .scroll{padding:9px 5px 12px}#sheet h1{font-size:26px;line-height:1.15;letter-spacing:-.7px;font-weight:900;margin:7px 0 12px}#sheet p.sub{font-size:14px;line-height:1.55;color:var(--muted);margin-bottom:22px}.stands{gap:9px}.stand{border-radius:6px;min-height:68px}.search{font-size:16px;border-radius:6px;padding:13px;background:#07131e;border:1px solid #476074;color:white}#chips{gap:7px}.chip{font-size:14px;min-width:40px;min-height:36px;border-radius:5px;background:#152d3e;border-color:#365365}.btn{min-height:42px;border-radius:6px;font-size:14px}.btn.primary,.btn.blue{background:#0084ce;color:#fff;border-color:#16a8ea}.btn.ghost{background:rgba(123,174,210,.08)}.fact small,.access,.route,.card-head p,.vcard small{font-size:14px}.lbl.poi,.lbl.park,.lbl.zone,.lbl.stop{font-size:12px;backdrop-filter:blur(5px);border-radius:4px}.lbl.stand{font-size:16px;letter-spacing:1.3px}.lbl.gate{width:28px;height:28px;font-size:14px}
#legend{top:86px;right:20px;width:300px;padding:18px;max-height:calc(100dvh - 110px);overflow:auto;border-radius:8px;z-index:12}#legend label,#legend .lg{font-size:14px;line-height:1.5}#legend h3{font-size:13px;margin-top:15px}#legend input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent)}#hint{font-size:12px;bottom:20px;padding:9px 13px;border-radius:5px}#compass{bottom:64px}
#sceneTools{position:absolute;right:20px;bottom:126px;width:296px;z-index:5;background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:17px;backdrop-filter:blur(16px);box-shadow:0 8px 32px #0002}.scene-heading{display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:1.2px;margin-bottom:22px}.scene-heading>span:last-child{font-size:10px;letter-spacing:.7px;margin-left:auto;color:var(--muted)}.live-dot{width:6px;height:6px;border-radius:50%;background:#5cdbc2}.scene-light{display:flex;align-items:center;gap:10px;font-size:14px}.scene-light output{margin-left:auto;font-variant-numeric:tabular-nums;color:white}.scene-light>span{font-size:12px;color:var(--muted)}#sceneHour{width:100%;margin:15px 0 9px;accent-color:#63c9ff;cursor:pointer}.scene-presets{display:flex;gap:4px;justify-content:space-between;margin-bottom:16px}.scene-presets button{color:var(--muted);font-size:12px;padding:6px 7px;background:none;border:0;border-radius:4px}.scene-presets button:hover{background:#244154;color:white}.scene-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.scene-actions button{border:1px solid var(--line);color:#ecf6fe;background:#152d3e;border-radius:5px;padding:10px 7px;font-size:13px;min-height:40px}.scene-actions button:last-child{grid-column:1/-1}.scene-actions button[aria-pressed=true]{color:#8cddff;border-color:#4bafd7;background:#123e55}.scene-quality{margin-top:16px;border-top:1px solid var(--line);padding-top:13px;display:flex;align-items:center;font-size:12px;gap:12px;color:var(--muted)}.scene-quality select{margin-left:auto;width:142px;background:#10293a;border:1px solid var(--line);border-radius:4px;color:white;padding:7px;font-size:12px}
body.photo #sceneTools{display:none}body:has(#walk[style*="display: block"]) #sceneTools,body:has(#seatview[style*="display: block"]) #sceneTools{display:none}
#load .t{font-size:28px;letter-spacing:-.5px}#load .s,#load .tip{font-size:14px}#photoExit{min-height:44px}
@media(min-width:900px){#sheet{left:20px;top:108px;bottom:20px;width:var(--panel-w);max-height:none;padding:16px 13px}#hint{left:calc(50% + 80px)}#walkTop{left:388px}}
@media(min-width:900px) and (max-width:1230px){#brand small{display:none}#brand img{height:30px}#brand b{font-size:14px}#tabs button{padding:12px 10px}#topbtns .hide-s{display:none}#sceneTools{width:254px}#sceneTools .scene-light>span{display:none}}
@media(max-width:899px){#top{left:10px;right:10px;top:10px;gap:7px;flex-wrap:wrap}#brand{padding:8px 10px}#brand img{height:26px}#brand small{display:none}#brand b{font-size:14px}#tabs button{padding:9px 12px}#topbtns{gap:4px}.tb{min-height:38px;padding:8px}#sheet{border-radius:14px 14px 0 0}#sheet h1{font-size:23px}#sheet .scroll{padding:5px}#sceneTools{right:10px;bottom:calc(var(--sheet-h) + 52px);width:184px;padding:10px;max-height:calc(100dvh - var(--sheet-h) - 180px);overflow:auto}.scene-heading{margin-bottom:10px;font-size:11px}.scene-heading>span:last-child,.scene-light>span,.scene-presets,.scene-quality{display:none}.scene-actions{gap:5px}.scene-actions button{font-size:12px;padding:7px 3px;min-height:35px}.scene-actions button:last-child{display:none}#sceneHour{margin:9px 0}.scene-light{font-size:12px}#legend{top:112px;right:10px;max-height:calc(100dvh - 132px)}#hint{bottom:calc(var(--sheet-h) + 10px);max-width:94vw;white-space:normal;text-align:center;font-size:12px}#compass{bottom:calc(var(--sheet-h) + 50px);left:12px;right:auto}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#surveyAttribution{position:fixed;right:14px;bottom:10px;z-index:9;display:flex;align-items:center;gap:10px;padding:6px 9px;background:rgba(8,23,40,.88);color:#c8d8e6;border-radius:8px;font:10px system-ui;backdrop-filter:blur(8px)}
#surveyAttribution button{border:0;background:transparent;color:#fff;cursor:pointer;font:inherit;text-decoration:underline;text-underline-offset:3px}
.survey-cards{padding:17px;border:1px solid #3e718d;border-radius:12px;margin:12px 0 20px;background:linear-gradient(125deg,#12334b,#111f31)}
.survey-cards small{letter-spacing:1.4px;color:#8acde9;font-size:9px}.survey-cards h2{font-size:19px;line-height:1.3;margin:8px 0}.survey-cards p{color:#bacbda;font-size:12px;line-height:1.6}.survey-cards .actions{flex-wrap:wrap}
.evidence-dialog{max-width:760px;width:calc(100vw - 32px);max-height:85vh;padding:24px;background:#102235;color:#dce6ef;border:1px solid #456078;border-radius:16px;font:14px/1.65 system-ui;overflow:auto;box-sizing:border-box}
.evidence-dialog::backdrop{background:#020911bd;backdrop-filter:blur(6px)}.evidence-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.evidence-head h2{margin:0;font-size:23px}.evidence-head button{background:#29425b;color:white;border:0;border-radius:50%;width:36px;height:36px;cursor:pointer;flex-shrink:0}.evidence-dialog h3{font-size:16px;color:#fff;margin-bottom:6px}.evidence-dialog section{border-top:1px solid #344b60;margin-top:20px;padding-top:8px}.evidence-dialog a{color:#8dd8ff}.source-plan{max-width:1400px}.source-plan img{display:block;width:100%;height:auto;background:white;margin-top:20px}
body.photo #surveyAttribution{display:none}
@media(max-width:700px){#surveyAttribution{bottom:58px;right:8px;font-size:9px}.evidence-dialog{padding:16px}.evidence-head h2{font-size:18px}}

#sceneStreet{grid-column:1/-1;background:#275977;border-color:#77bbda;color:#eefaff}.walk-mode #sheet,.walk-mode #sceneTools{display:none!important}.walk-mode #walkTop{top:110px;left:20px;right:20px}.walk-mode #minimap{bottom:70px}
@media(max-width:899px){.walk-mode #walkTop{top:142px;left:10px;right:10px}.walk-mode #walkTop .cap{max-width:100%}.walk-mode #walkTop .cap b{font-size:14px}.walk-mode #compass{bottom:70px}}

.scene-actions .scene-wide{grid-column:1/-1}
body.flight-mode #sceneTools{bottom:64px}

/* Exterior is a full-window visit. Navigation and lighting stay within reach. */
#exteriorCaption,#viewportDock{display:none}
#sceneTools{display:none;z-index:18;bottom:108px}
body.scene-settings #sceneTools{display:block}
.scene-heading{margin-bottom:18px;letter-spacing:.4px;font-size:14px}
#closeSceneTools{margin-left:auto;width:28px;height:28px;border:0;border-radius:50%;background:#ffffff12;color:white;font-size:22px;line-height:1}
body.exterior-view #sheet,body.exterior-view #hint,body.exterior-view #labels{display:none!important}
body.exterior-view #top{align-items:center}
body.exterior-view #brand{background:rgba(10,24,36,.78);border:1px solid #ffffff20;backdrop-filter:blur(18px)}
body.exterior-view #brand small{display:none}
body.exterior-view #bMatch,body.exterior-view #bSound,body.exterior-view #bBird,body.exterior-view #bNight{display:none}
body.exterior-view #topbtns{margin-left:auto}
body.exterior-view #exteriorCaption{display:block;position:absolute;left:32px;bottom:122px;z-index:3;color:#fff;text-shadow:0 2px 20px #0009;pointer-events:none}
#exteriorCaption>span{font-size:10px;font-weight:600;letter-spacing:2.5px}
#exteriorCaption>strong{display:block;font-size:clamp(28px,3.6vw,52px);font-weight:500;letter-spacing:-1.7px;margin:8px 0 3px}
#exteriorCaption>p{font-size:13px;margin:0;letter-spacing:.2px}
body.exterior-view #viewportDock{display:flex;position:absolute;bottom:38px;left:50%;transform:translateX(-50%);align-items:center;gap:5px;padding:7px;max-width:calc(100vw - 36px);z-index:10;border:1px solid #ffffff26;border-radius:14px;background:rgba(9,22,31,.85);box-shadow:0 8px 32px #0002;backdrop-filter:blur(20px);white-space:nowrap}
#viewportDock button{font-size:12px;min-height:44px;padding:10px 12px;border:0;border-radius:8px;color:#dce6ed;background:transparent}
#viewportDock button:hover{background:#ffffff16;color:white}
#viewportDock button.active,#viewportDock button[aria-pressed=true]{background:#e8f1f5;color:#172c37}
#viewportDock #sceneStreet{background:none}
.view-presets{display:flex;gap:2px}
.dock-divider{height:25px;width:1px;background:#ffffff26;margin:0 3px}
body.exterior-view #compass{right:24px;bottom:126px}
body.exterior-view #surveyAttribution{bottom:8px;background:transparent;text-shadow:0 1px 6px #000;font-size:9px;padding:4px}
body.exterior-view #cityStatus{display:none}
body.photo #exteriorCaption,body.photo #viewportDock,body.walk-mode #exteriorCaption,body.walk-mode #viewportDock{display:none!important}
@media(max-width:1100px){#viewportDock button{padding:9px 10px;font-size:11px}body.exterior-view #top{gap:8px}body.exterior-view #brand img{height:27px}body.exterior-view #brand b{font-size:14px}}
@media(max-width:899px){body.exterior-view #top{flex-wrap:nowrap}body.exterior-view #brand{padding:8px}body.exterior-view #brand b{display:none}body.exterior-view #tabs{margin:0;flex:0 1 auto}body.exterior-view #tabs button{padding:10px;font-size:12px}body.exterior-view #topbtns .tb{font-size:12px;min-height:36px}body.exterior-view #bLang{display:none}body.exterior-view #exteriorCaption{left:20px;bottom:147px}body.exterior-view #viewportDock{bottom:34px;flex-wrap:wrap;justify-content:center;width:590px;max-width:calc(100vw - 20px);gap:1px;padding:5px}#viewportDock .view-presets{width:100%;justify-content:center}#viewportDock .dock-divider{display:none}#viewportDock button{font-size:11px;min-height:37px;padding:8px 10px}body.exterior-view #compass{left:auto;right:20px;bottom:147px}body.scene-settings #sceneTools{width:260px;bottom:133px;right:10px;max-height:calc(100dvh - 220px);padding:17px}.scene-presets,.scene-quality{display:flex}.scene-actions button:last-child{display:block}.scene-heading>span:last-child{display:none}}

@media(max-width:480px){body.exterior-view #top{gap:5px}body.exterior-view #tabs button{padding:10px 8px;font-size:11px}body.exterior-view #brand{padding:6px}body.exterior-view #brand img{height:25px}body.exterior-view #topbtns .tb{padding:8px;width:34px;min-height:34px}}

#viewportDock button[hidden]{display:none}
@media(max-width:899px){#viewportDock .view-presets{justify-content:flex-start;overflow-x:auto;min-width:0}#viewportDock .view-presets button{flex:1 0 auto}}

/* Keep the primary camera controls readable; secondary locations stay one click away. */
#viewportDock .view-more{position:relative}#viewportDock .view-more summary{list-style:none;cursor:pointer;padding:13px 12px;font-size:12px;color:#dce6ed;border-radius:8px}#viewportDock .view-more summary::-webkit-details-marker{display:none}#viewportDock .view-more summary::after{content:'⌃';margin-left:8px;color:#a5c4d5}#viewportDock .view-more[open] summary{background:#ffffff16}#viewportDock .view-menu{position:absolute;bottom:calc(100% + 14px);left:0;display:grid;gap:3px;min-width:210px;padding:8px;background:#102432f5;border:1px solid #ffffff29;border-radius:12px;box-shadow:0 12px 40px #0005;backdrop-filter:blur(20px)}#viewportDock .view-menu button{text-align:left;min-height:39px}#viewportDock .view-presets{display:flex;align-items:center;gap:3px}#viewportDock button:focus-visible,#viewportDock summary:focus-visible{outline:2px solid #7ccfff;outline-offset:2px}
@media(max-width:899px){#viewportDock .view-presets{overflow:visible;justify-content:center}#viewportDock .view-presets>button{flex:0 1 auto}#viewportDock .view-more summary{font-size:11px;padding:11px 9px}#viewportDock .view-menu{left:auto;right:-12px;min-width:210px;max-height:55vh;overflow-y:auto}}

#placeDescription{max-width:360px;font-size:12px!important;line-height:1.55;margin-top:8px!important;color:#e1e6e8}#placeSource{font-size:11px;color:#a7c9e7;pointer-events:auto}#placeSource[hidden],#placeDescription[hidden]{display:none!important}.view-menu{max-height:min(66vh,480px);overflow:auto}
