:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #111; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #111; color: #f5f5f5; }
#core-t0-app { min-height: 100vh; display: grid; grid-template-rows: minmax(0, 1fr) auto; position: relative; }
#panorama-viewer { min-height: 62vh; background: #171717; opacity: 1; transition: opacity 120ms ease; }
#panorama-viewer.is-transitioning { opacity: .22; }
.nerd-visual-hold-overlay { position: fixed; z-index: 10; display: block; pointer-events: none; background: #171717; }
#runtime-panel { padding: 12px; background: #1d1d1d; border-top: 1px solid #333; }
#runtime-status, .scene-meta span { display: block; color: #b8b8b8; font-size: .84rem; margin-top: 4px; }
.navigation-controls, .secondary-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
button { appearance: none; border: 1px solid #606060; border-radius: 6px; padding: 9px 12px; color: #fff; background: #292929; font: inherit; cursor: pointer; }
button:hover, button:focus-visible { background: #3b3b3b; outline: 2px solid #8cb6ff; outline-offset: 2px; }
button[aria-pressed="true"] { border-color: #8cb6ff; }
.nerd-spatial-hotspot { width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: rgba(15, 28, 48, .84); box-shadow: 0 2px 12px rgba(0, 0, 0, .55); color: #fff; cursor: pointer; font: 700 30px/1 system-ui, sans-serif; touch-action: manipulation; user-select: none; }
.nerd-spatial-hotspot:hover, .nerd-spatial-hotspot:focus-visible { background: rgba(53, 103, 171, .96); outline: 3px solid #9dc3ff; outline-offset: 3px; }
.nerd-floor-hotspot { width: 72px; height: 72px; margin: -36px 0 0 -36px; display: grid; place-items: center; cursor: pointer; touch-action: manipulation; user-select: none; opacity: var(--floor-hotspot-opacity, .92); }
.nerd-floor-hotspot__visual { width: 72px; height: 72px; display: block; transform: rotateX(58deg) rotateZ(var(--floor-hotspot-rotation, 0deg)) scaleY(var(--floor-hotspot-scale-y, .76)) scale(var(--floor-hotspot-scale, 1)); transform-origin: center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); transition: opacity 120ms ease, transform 120ms ease; pointer-events: none; }
.nerd-floor-hotspot svg { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.nerd-floor-hotspot__arc { fill: rgba(255,255,255,.92); font: 700 8px/1 system-ui, sans-serif; letter-spacing: .8px; text-anchor: middle; }
.nerd-floor-hotspot__arc--bottom { letter-spacing: .55px; }
.nerd-floor-hotspot__chevron { pointer-events: none; }
.nerd-floor-hotspot__destination { position: absolute; left: 50%; top: calc(100% + 7px); transform: translateX(-50%); max-width: 180px; padding: 3px 7px; border-radius: 4px; background: rgba(0,0,0,.72); color: #fff; font: 600 11px/1.2 system-ui, sans-serif; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 120ms ease; }
.nerd-floor-hotspot:hover .nerd-floor-hotspot__destination, .nerd-floor-hotspot:focus-visible .nerd-floor-hotspot__destination, .nerd-floor-hotspot:active .nerd-floor-hotspot__destination { opacity: 1; }
.nerd-floor-hotspot:hover .nerd-floor-hotspot__visual, .nerd-floor-hotspot:focus-visible .nerd-floor-hotspot__visual { opacity: 1; }
.nerd-floor-hotspot:focus-visible { outline: 2px solid rgba(255,255,255,.9); outline-offset: 4px; }
.walk-puck-anchor { width: 64px; height: 24px; margin: -12px 0 0 -32px; display: grid; place-items: center; cursor: pointer; touch-action: manipulation; user-select: none; }
.walk-puck-visual { position: relative; width: 100%; height: 100%; display: block; box-sizing: border-box; border: 2px solid rgba(255,255,255,.58); border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: 0 2px 6px rgba(0,0,0,.16); pointer-events: none; transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease; }
.walk-puck-visual::after { content: ''; position: absolute; inset: 4px 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; pointer-events: none; }
.walk-puck-anchor:hover .walk-puck-visual, .walk-puck-anchor:focus-visible .walk-puck-visual, .walk-puck-anchor:active .walk-puck-visual { transform: scale(1.1); border-color: rgba(255,255,255,.95); background: rgba(255,255,255,.16); }
.walk-puck-anchor:focus-visible { outline: 2px solid rgba(255,255,255,.9); outline-offset: 4px; }
.walk-puck-circle-test { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.walk-puck-circle-test .walk-puck-visual { border-radius: 50%; }
.walk-puck-circle-test .walk-puck-visual::after { inset: 5px; border-radius: 50%; }
#yaw-calibration-panel { position: fixed; top: 12px; right: 12px; z-index: 20; width: min(390px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 12px; border: 1px solid #6e9eea; border-radius: 8px; background: rgba(18, 24, 34, .96); font-size: .82rem; box-shadow: 0 8px 28px rgba(0, 0, 0, .45); }
#yaw-calibration-panel h2 { margin: 0; font-size: 1rem; }
#yaw-calibration-panel p { margin: 8px 0; }
#yaw-calibration-panel dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 9px; margin: 10px 0; }
#yaw-calibration-panel dt { color: #9fb4d5; }
#yaw-calibration-panel dd { margin: 0; overflow-wrap: anywhere; }
.calibration-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.calibration-controls button { padding: 7px 8px; font-size: .78rem; }
#floor-hotspot-calibration-panel { position: fixed; top: 12px; right: 12px; z-index: 21; width: min(430px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 12px; border: 1px solid #6e9eea; border-radius: 8px; background: rgba(18, 24, 34, .96); font-size: .82rem; box-shadow: 0 8px 28px rgba(0,0,0,.45); }
#floor-hotspot-calibration-panel h2 { margin: 0; font-size: 1rem; }
#floor-hotspot-calibration-panel dl { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 5px 9px; margin: 10px 0; }
#floor-hotspot-calibration-panel dt { color: #9fb4d5; }
#floor-hotspot-calibration-panel dd { margin: 0; overflow-wrap: anywhere; }
#floor-hotspot-calibration-panel label { display: inline-flex; align-items: center; gap: 4px; }
#floor-hotspot-calibration-panel input { width: 74px; color: #fff; background: #292929; border: 1px solid #606060; border-radius: 4px; padding: 6px; }
#floor-hotspot-calibration-crosshair { position: fixed; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; z-index: 19; pointer-events: none; opacity: .75; }
#floor-hotspot-calibration-crosshair::before, #floor-hotspot-calibration-crosshair::after { content: ''; position: absolute; background: rgba(255,255,255,.9); }
#floor-hotspot-calibration-crosshair::before { left: 8px; top: 0; width: 2px; height: 18px; }
#floor-hotspot-calibration-crosshair::after { left: 0; top: 8px; width: 18px; height: 2px; }
@media (max-width: 640px) { #panorama-viewer { min-height: 55vh; } #runtime-panel { padding-bottom: max(12px, env(safe-area-inset-bottom)); } button { flex: 1 1 140px; min-height: 44px; } .nerd-floor-hotspot__visual { transform-origin: bottom center; transform: translateY(-3px) rotateX(58deg) rotateZ(var(--floor-hotspot-rotation, 0deg)) scaleY(var(--floor-hotspot-scale-y, .76)) scale(var(--floor-hotspot-scale, 1)); } }
@media (max-width: 640px) { .walk-puck-anchor { width: 54px; height: 21px; margin: -10.5px 0 0 -27px; } .walk-puck-anchor:not(.walk-puck-circle-test) .walk-puck-visual { width: 54px; height: 21px; } .walk-puck-circle-test { width: 44px; height: 44px; margin: -22px 0 0 -22px; } .walk-puck-circle-test .walk-puck-visual { width: 44px; height: 44px; border-color: rgba(255,255,255,.72); box-shadow: 0 2px 8px rgba(0,0,0,.24); } }
#walk-puck-calibration-hud { position: fixed; top: 12px; left: 12px; z-index: 30; width: min(280px, calc(100vw - 24px)); padding: 12px; border: 1px solid rgba(255,255,255,.55); border-radius: 8px; background: rgba(18,24,34,.94); color: #fff; font: 14px/1.35 system-ui,sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.35); pointer-events: none; }
#walk-puck-calibration-hud strong { display: block; margin-bottom: 8px; }
#walk-puck-calibration-hud dl { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; margin: 0; }
#walk-puck-calibration-hud dt { opacity: .68; }
#walk-puck-calibration-hud dd { margin: 0; font-variant-numeric: tabular-nums; }
#walk-puck-calibration-hud p { margin: 8px 0 0; opacity: .78; font-size: 12px; }
#walk-puck-calibration-hud [data-walk-puck-candidates] { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
#walk-puck-calibration-hud .walk-puck-calibration-candidate { flex: 1 1 100%; min-height: 28px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; background: rgba(255,255,255,.08); color: #fff; text-align: left; font: inherit; font-size: 12px; }
#walk-puck-calibration-hud .walk-puck-calibration-candidate[data-selected="true"] { border-color: #7db4ff; background: rgba(70,130,220,.35); }
#walk-puck-calibration-marker { position: fixed; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid #ff5a36; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.8), 0 2px 8px rgba(0,0,0,.5); pointer-events: none; z-index: 31; }
@media (max-width: 640px) { #walk-puck-calibration-hud { top: max(8px, env(safe-area-inset-top)); bottom: auto; left: 8px; width: calc(100vw - 16px); box-sizing: border-box; padding: 6px 8px; pointer-events: auto; } #walk-puck-calibration-hud > strong { display: none; } #walk-puck-calibration-hud [data-walk-puck-compact] { display: flex; align-items: center; gap: 5px; min-height: 42px; } #walk-puck-calibration-hud [data-walk-puck-selected] { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; } #walk-puck-calibration-hud button { min-height: 34px; padding: 4px 7px; font-size: 12px; } #walk-puck-calibration-hud [data-walk-puck-details] { display: none; max-height: 35vh; overflow: auto; } #walk-puck-calibration-hud[data-details-open="true"] [data-walk-puck-details] { display: block; } #walk-puck-calibration-hud[data-capture-armed="true"] [data-walk-puck-compact] { min-height: 38px; } #walk-puck-calibration-hud[data-capture-armed="true"] [data-walk-puck-selected] { font-weight: 600; } #walk-puck-calibration-hud[data-capture-armed="true"] [data-walk-puck-action="mark"], #walk-puck-calibration-hud[data-capture-armed="true"] [data-walk-puck-action="details"], #walk-puck-calibration-hud[data-capture-armed="true"] [data-walk-puck-message] { display: none; } #walk-puck-calibration-hud [data-walk-puck-details] dl { font-size: 12px; } }

body.is-multi-floor-yaw-calibration { overflow: hidden; }
body.is-multi-floor-yaw-calibration #core-t0-controls { display: none; }
body.is-multi-floor-yaw-calibration #core-t0-app { display: block; height: 100vh; min-height: 100vh; }
body.is-multi-floor-yaw-calibration #panorama-viewer { height: 100vh; min-height: 100vh; }
#multi-floor-yaw-calibration-panel { position: fixed; z-index: 10000; top: 16px; right: 16px; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 16px; color: #f5f5f5; background: rgba(20, 20, 24, .94); border: 1px solid #7568ff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, .45); font: 14px/1.35 system-ui, sans-serif; }
#multi-floor-yaw-calibration-panel h2 { margin: 0 0 8px; font-size: 1.05rem; }
#multi-floor-yaw-calibration-panel dl { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px 10px; margin: 12px 0; }
#multi-floor-yaw-calibration-panel dt { color: #bbb; }
#multi-floor-yaw-calibration-panel dd { margin: 0; text-align: right; }
#multi-floor-yaw-calibration-panel dd small { display: block; color: #aaa; font-size: .78em; }
#multi-floor-yaw-calibration-panel button { margin: 4px 2px 0 0; padding: 9px 10px; border: 1px solid #8177ff; border-radius: 7px; color: #fff; background: #302b60; cursor: pointer; }
#multi-floor-yaw-calibration-panel button:disabled { opacity: .45; cursor: not-allowed; }
#multi-floor-yaw-calibration-panel .mfyaw-primary { width: 100%; padding: 13px 10px; font-weight: 700; background: #5a43da; }
#multi-floor-yaw-calibration-panel .mfyaw-instruction { color: #ddd; }
#multi-floor-yaw-calibration-panel [data-mfyaw-message] { min-height: 1.3em; color: #b9adff; }
@media (max-width: 640px) { #multi-floor-yaw-calibration-panel { top: 8px; right: 8px; width: min(340px, calc(100vw - 16px)); max-height: 58vh; } }
