:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#323b2e;background:#eae8df;--olive:#49583d;--line:#dce0d4}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;overflow:hidden}button,select,input{-webkit-tap-highlight-color:transparent;font:inherit;color:inherit}button,select,summary{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #72805e;outline-offset:3px}button:disabled,select:disabled{opacity:.5}#app,#viewport{position:fixed;inset:0}#viewport canvas{display:block;touch-action:none;width:100%;height:100%}
.masthead{position:absolute;z-index:3;left:24px;right:24px;top:max(20px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;gap:16px;pointer-events:none}.identity{display:flex;gap:10px;align-items:center;text-decoration:none;color:inherit;pointer-events:auto}.mark{width:33px;height:33px;fill:none;stroke:var(--olive);stroke-width:1.5}.identity strong{font-size:13px;font-weight:600;letter-spacing:.16em}.location{display:block;font-size:8px;letter-spacing:.12em;margin-top:4px;color:#6b7564}.location span{padding:0 5px}.revision{display:flex;gap:14px;align-items:center;font-size:11px;color:#626f59}.status{display:flex;align-items:center;gap:6px;padding:8px 10px;background:#fffffff0;border:1px solid var(--line);border-radius:24px}.status i{width:5px;height:5px;background:#71865f;border-radius:50%}#stale{pointer-events:auto;position:absolute;right:0;top:40px;background:#fff0d4;padding:8px;border:1px solid #d6c9ad;border-radius:8px;color:#775b22}
.panel{position:absolute;top:91px;left:24px;width:244px;z-index:2;padding:16px;background:#fafbf7f2;border:1px solid #fff;border-radius:12px;box-shadow:0 8px 30px #32382b0b;backdrop-filter:blur(14px);max-height:calc(100dvh - 130px);overflow-y:auto;scrollbar-width:thin}.room-picker{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600}.room-picker select{width:100%;min-height:44px;border:1px solid #ccd5c2;border-radius:7px;padding:8px;background:#fff;font-size:13px;font-weight:400}.mode-switch{display:flex;gap:4px;background:#ecefe6;border-radius:7px;padding:3px;margin:12px 0}.mode-switch button{flex:1;border:0;background:none;border-radius:5px;min-height:38px;font-size:12px}.mode-switch button[aria-pressed=true]{background:#fff;box-shadow:0 1px 4px #0001;color:#465737}.view-list{display:flex;flex-direction:column;gap:3px}.view-button{border:0;background:none;display:flex;align-items:center;gap:8px;padding:11px 10px;min-height:42px;border-radius:6px;text-align:left;font-size:12px;white-space:nowrap}.view-button .arrow{margin-left:auto;opacity:0;color:#738565}.view-button:hover,.view-button[aria-pressed=true]{background:#e9eddf;color:#455337}.view-button[aria-pressed=true] .arrow{opacity:1}.layers{margin-top:12px;border-top:1px solid var(--line);padding-top:12px;font-size:12px}.layers summary{min-height:32px;align-content:center;color:#647059}.layer-options{padding-top:3px}.layers label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;position:relative;cursor:pointer;min-height:44px}.layers input{appearance:none;position:absolute;width:38px;height:40px;right:-4px;margin:0;cursor:pointer}.switch{height:18px;width:32px;background:#d8dfcf;border-radius:12px;pointer-events:none}.switch:after{content:"";display:block;width:14px;height:14px;background:white;border-radius:50%;margin:2px;box-shadow:0 1px 3px #0002}.layers input:checked+.switch{background:#748264}.layers input:checked+.switch:after{transform:translateX(14px)}
.tools{position:absolute;right:24px;top:91px;display:flex;flex-direction:column;gap:8px;z-index:2}.tools button{height:44px;width:44px;display:grid;place-items:center;background:#fafbf7f2;border:1px solid #fff;border-radius:9px}.tools svg{width:18px;height:18px;fill:none;stroke:#586a48;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.tools span{font-size:18px}.caption{position:absolute;bottom:44px;left:292px;pointer-events:none}.caption h2{font-weight:500;font-size:14px;margin:0;background:#fafbf7d9;padding:7px 10px;border-radius:5px}.gesture-hint{position:absolute;bottom:23px;left:292px;font-size:11px;color:#4d5c42;pointer-events:none}.walk-controls{position:absolute;right:24px;bottom:38px;display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(2,48px);gap:5px;z-index:2;touch-action:none}.walk-controls button{font-size:24px;background:#fafbf7f2;border:1px solid #d5decb;border-radius:9px;user-select:none;-webkit-user-select:none;touch-action:none}.walk-controls button:active{background:#d4dfc8}.forward{grid-column:2}.left{grid-column:1;grid-row:2}.backward{grid-column:2;grid-row:2}.right{grid-column:3;grid-row:2}.notice{position:absolute;top:83px;left:50%;transform:translateX(-50%);background:#fffffff0;padding:10px 15px;border-radius:8px;font-size:13px;pointer-events:none;z-index:3}
.loading{position:absolute;inset:0;background:#eae8dff0;display:grid;place-items:center;z-index:10;transition:opacity .35s}.loading.finished{opacity:0;pointer-events:none}.loading-card{width:280px;padding:28px;background:#fafbf7;border:1px solid #fff;border-radius:12px;box-shadow:0 10px 50px #49533e10}.eyebrow{font-size:9px;letter-spacing:.14em;color:#748067}.loading h2{font-size:23px;font-weight:500;margin:20px 0 12px}.loading p{font-size:12px;color:#748067}.progress-track{height:3px;background:#e0e5d8;margin-top:24px;border-radius:3px;overflow:hidden}#progress{height:100%;width:3%;background:#7c8e68;transition:width .2s}#retry{margin-top:15px;padding:8px;border:1px solid var(--line);border-radius:5px;background:white}dialog{border:1px solid #e7ebdf;border-radius:12px;padding:28px;max-width:440px;max-height:80dvh;background:#fafbf7;color:#46523e;box-shadow:0 20px 90px #0002}dialog::backdrop{background:#29302355;backdrop-filter:blur(4px)}dialog h2{font-size:21px;font-weight:500;margin:0 0 18px}dialog p{font-size:13px;line-height:1.65}.quiet{color:#7a8471;font-size:11px}.close-dialog{position:absolute;right:7px;top:4px;min-height:40px;min-width:40px;border:0;background:none;font-size:26px}
@media(max-width:900px){.panel{left:18px;width:220px}.masthead{left:18px;right:18px}.revision time{display:none}.caption,.gesture-hint{left:258px}.tools{right:18px}.walk-controls{right:18px}}
@media(max-width:600px){.masthead{left:14px;right:14px;top:max(14px,env(safe-area-inset-top));gap:8px}.mark{width:28px;height:28px}.identity{gap:7px}.identity strong{font-size:11px;letter-spacing:.12em}.location{font-size:6px}.status{font-size:10px;padding:7px 9px}.panel{left:10px;right:10px;top:auto;bottom:max(10px,env(safe-area-inset-bottom));width:auto;max-height:52dvh;padding:10px;border-radius:12px;overflow-y:auto}.room-picker{flex-direction:row;align-items:center;gap:10px}.room-picker>span{white-space:nowrap;font-size:12px}.room-picker select{min-width:0;flex:1;min-height:44px;font-size:14px}.mode-switch{margin:8px 0 6px}.mode-switch button{min-height:35px}.view-list{flex-direction:row;overflow-x:auto;gap:4px;scrollbar-width:none}.view-list::-webkit-scrollbar{display:none}.view-button{padding:9px 11px;min-height:40px;border:1px solid #e0e6d7;font-size:11px;flex-shrink:0}.view-button .arrow{display:none}.layers{margin-top:7px;padding-top:5px}.layers summary{min-height:30px;font-size:11px}.layer-options{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.layers label{font-size:11px;min-height:40px}.tools{right:14px;top:72px;gap:6px}.tools button{width:42px;height:42px}.caption{left:15px;bottom:244px}.caption h2{font-size:12px}.gesture-hint{left:15px;bottom:225px;font-size:10px}.walk-controls{right:14px;bottom:250px;grid-template-columns:repeat(3,45px);grid-template-rows:repeat(2,45px);gap:4px}.notice{top:70px;white-space:nowrap}dialog{margin:auto 18px;padding:25px}body:has(.layers[open]) .caption,body:has(.layers[open]) .gesture-hint{display:none}body:has(.layers[open]) .walk-controls{bottom:335px}}
@media(max-height:500px){.panel{top:65px;bottom:10px;max-height:calc(100dvh - 75px)}.masthead{top:10px}.tools{top:65px}.caption,.gesture-hint{display:none}.walk-controls{bottom:15px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Language selection stays in the existing header; native menu overlays the scene. */
.language-switch{position:relative;display:grid;place-items:center;flex:none;width:44px;height:36px;border:1px solid var(--line);border-radius:20px;background:#fffffff0;font-size:11px;font-weight:600;letter-spacing:.04em;pointer-events:auto}.language-switch select{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.language-switch:focus-within{outline:2px solid #72805e;outline-offset:3px}.location .review-label{padding:0}.gesture-hint{max-width:calc(100vw - 310px);line-height:1.4}.revision{gap:8px}
@media(max-width:600px){.masthead{gap:4px}.revision{gap:4px}.language-switch{width:38px;height:40px;font-size:10px}.status{white-space:nowrap}.gesture-hint{max-width:calc(100vw - 30px);font-size:9px}}
#view-options{display:none}
@media(max-width:600px){#view-options{display:block}.panel:not(.expanded) .view-list,.panel:not(.expanded) .layers{display:none}.mode-switch{margin-bottom:0}.caption{bottom:calc(var(--panel-edge,126px) + 28px)}.gesture-hint{bottom:calc(var(--panel-edge,126px) + 8px)}.walk-controls,body:has(.layers[open]) .walk-controls{bottom:calc(var(--panel-edge,126px) + 38px)}body:has(.layers[open]) .caption,body:has(.layers[open]) .gesture-hint{display:block}}
@media(max-width:600px){.mode-switch button{min-height:40px}.panel.expanded~.walk-controls{display:none}}
