.workspace,.controls-collapsed .workspace{min-height:0}.stage{height:100%;min-height:0}#viewer{background:#e8e5dc;outline:none}#viewer iframe{display:block;position:absolute;inset:0;width:100%;height:100%;border:0}#stream-status{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;gap:15px;align-items:center;justify-content:center;background:#eeebe3;color:#354c3b;font-size:14px}#stream-status button{padding:11px 18px;background:#fffdf5;border:1px solid #cbd4bf;border-radius:24px;min-height:44px}#walk-help{position:absolute;top:78px;left:26px;padding:9px 12px;max-width:calc(100% - 52px);border-radius:18px;background:#354c3bc9;color:#fff;font-size:10px;pointer-events:none}#walk-controls{position:absolute;z-index:4;left:24px;bottom:126px;display:grid;grid-template-columns:repeat(3,42px);gap:4px}#walk-controls button{min-width:42px;height:42px;border:1px solid #fff8;border-radius:9px;background:#354c3bbd;color:#fff;font-size:22px;touch-action:none;user-select:none}#walk-controls button:first-child{grid-column:2}#walk-controls button:nth-child(2){grid-column:1}.stream-actions{position:absolute;right:24px;bottom:140px;z-index:4;display:flex;gap:6px}.stream-actions button{min-height:42px;padding:9px 15px;border-radius:22px;border:1px solid #fff9;background:#f7f5ece8;color:#354c3b;touch-action:none}body[data-mode=ortho] #walk-controls,body[data-mode=plan] #walk-controls,body[data-mode=ortho] .stream-actions,body[data-mode=plan] .stream-actions{display:none}body.tour-ui-pending .stream-actions{opacity:0;pointer-events:none}#viewer iframe:focus{outline:none}.level-switch[hidden]{display:none!important}.back-to-project{margin-left:auto}.topbar .brand{flex-shrink:0}.stage-bottom{z-index:3}
@media(max-width:760px){.workspace,.controls-collapsed .workspace{height:calc(100dvh - 60px - env(safe-area-inset-top))}#walk-help{top:65px;left:12px;max-width:calc(100% - 24px);font-size:9px;padding:7px 10px}#walk-controls{left:10px;bottom:calc(87px + env(safe-area-inset-bottom));grid-template-columns:repeat(3,44px)}#walk-controls button{height:44px;min-width:44px}.stream-actions{right:12px;bottom:calc(100px + env(safe-area-inset-bottom));flex-direction:column}.stream-actions button{min-height:44px;padding:9px 13px;font-size:11px}.topbar .brand{font-size:13px}.topbar .project-name{font-size:20px}.back-to-project{font-size:10px;padding:8px 10px;min-height:40px}.stage-bottom{bottom:calc(70px + env(safe-area-inset-bottom))}.time-chip{font-size:9px}.stage-toolbar{grid-template-columns:minmax(0,1fr) 44px}.view-switch button{font-size:10px}#fullscreen{min-width:36px}}
@media(max-width:360px){.topbar .brand{display:none}.topbar .project-name{border:0;padding-left:0}.stream-actions{right:8px}.time-chip{padding:6px 9px}#walk-help{font-size:8px}}
@media(max-height:500px) and (orientation:landscape){.workspace,.controls-collapsed .workspace{height:calc(100dvh - 48px - env(safe-area-inset-top))}#walk-help{top:58px;font-size:8px}#walk-controls{bottom:60px;grid-template-columns:repeat(3,36px);gap:3px}#walk-controls button{height:36px;min-width:36px}.stream-actions{bottom:65px;flex-direction:row}.stream-actions button{min-height:36px;padding:6px 12px}.stage-bottom{bottom:54px;right:12px}.level-switch{grid-column:2}.stage-toolbar{grid-template-columns:minmax(240px,340px) minmax(180px,1fr) 44px}}

#walk-help{right:auto!important;width:fit-content}body.exterior #walk-controls,body.walking #walk-controls{display:grid}

body:not([data-mode=walk]) #walk-controls,body:not([data-mode=walk]) .stream-actions{display:none!important}#stream-settings[hidden]{display:none!important}#stream-settings{min-width:42px}body.device-control-open .stage-bottom{visibility:hidden}
@media(max-width:760px){.stage-toolbar{grid-template-columns:minmax(0,1fr) 40px 40px}.view-switch{grid-column:1/-1}.level-switch{grid-row:2;grid-column:1}#walk-help{top:115px}.stage-toolbar:has(.level-switch[hidden]) #walk-help{top:70px}}
@media(max-width:760px){.stage-toolbar .view-switch{grid-column:1/-1;grid-row:1}.stage-toolbar>#stream-settings{grid-column:2;grid-row:2;width:40px;height:40px}.stage-toolbar>#reset{grid-column:3;grid-row:2;width:40px;height:40px}}

body.queue-waiting #walk-controls,body.queue-waiting .stream-actions,body.queue-waiting #walk-help,body.queue-waiting .stage-bottom{visibility:hidden}

body.device-control-open #walk-controls,body.device-control-open .stream-actions{visibility:hidden}

#walk-controls,.stream-actions,#walk-help,.level-switch,.stage-bottom{transition:opacity .22s ease,transform .22s ease}body.camera-moving #walk-controls,body.camera-moving .stream-actions,body.camera-moving #walk-help,body.camera-moving .level-switch,body.camera-moving .stage-bottom{opacity:0;transform:translateY(6px);pointer-events:none}@media(prefers-reduced-motion:reduce){#walk-controls,.stream-actions,#walk-help,.level-switch,.stage-bottom{transition:none}}
