#tour-stage{scroll-margin-top:0}
#tour-stage.touch-guarded{touch-action:auto}
#tour-stage.touch-guarded .tour-explore-dock,#tour-stage.touch-guarded .tour-explore-dock *,#tour-stage.touch-guarded .tour-hotspots,#tour-stage.touch-guarded .tour-hotspots *{touch-action:manipulation;user-select:auto;-webkit-user-select:auto}
.tour-explore-dock{position:absolute;z-index:6;left:50%;bottom:14px;transform:translateX(-50%);width:min(440px,calc(100% - 28px));padding:10px;background:#faf8f0f5;backdrop-filter:blur(12px);border:1px solid #c6cfbf;border-radius:20px;box-shadow:0 6px 22px #172f2730;box-sizing:border-box;touch-action:manipulation}
.tour-room-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px}
.tour-explore-dock button,.tour-explore-dock select{min-height:44px;min-width:0;border:1px solid #becbbb;border-radius:12px;color:#244536;background:#fffdf8;font:600 13px/1.2 system-ui;padding:9px;box-sizing:border-box;touch-action:manipulation}
.tour-explore-dock select{width:100%;font-size:16px;text-overflow:ellipsis}
.tour-explore-dock button:focus-visible,.tour-explore-dock select:focus-visible{outline:3px solid #a54c26;outline-offset:2px}
.tour-look-controls{display:grid;grid-template-columns:44px 44px minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:8px}
.tour-look-controls button:nth-child(-n+2){font-size:23px;font-weight:400}
.tour-explore-dock button[aria-pressed=true]{background:#244536;color:#fffdf8}
.tour-page .tour-explore-dock[hidden]{display:none}
#tour-stage.exploring-room .tour-model-tag{top:14px;bottom:auto;left:14px;right:auto;max-width:calc(100% - 28px);font-size:12px;color:#244536;background:#faf8f0ed;border-color:#bdcbbf;box-sizing:border-box}
#tour-stage.exploring-room .tour-orientation{display:none}
#tour-stage.exploring-room .tour-joysticks{bottom:146px;left:16px;right:auto}
#tour-stage.exploring-room .tour-stick-pad{width:92px;height:92px;min-height:92px;background:#244536b8}
#tour-stage.exploring-room .tour-stick-label{font-size:12px}
.tour-workspace:fullscreen #tour-stage.exploring-room{height:calc(100dvh - 150px);min-height:360px}
@media(max-width:700px){
 #tour-stage.exploring-room,#tour-stage.exploring-room.has-joysticks{height:clamp(440px,70svh,650px)}
 .tour-explore-dock{left:10px;right:10px;bottom:10px;width:auto;transform:none;padding:8px;border-radius:16px}
 .tour-room-controls,.tour-look-controls{gap:6px}.tour-look-controls{margin-top:6px;grid-template-columns:44px 44px minmax(0,1fr) minmax(0,1fr)}
 .tour-look-controls button{font-size:12px;padding:6px}
 .tour-workspace .tour-walk-controls{display:none}
 .tour-workspace:fullscreen #tour-stage.exploring-room,.tour-workspace:fullscreen:has(.tour-walk-controls:not([hidden])) #tour-stage.exploring-room{height:calc(100dvh - 138px);min-height:330px}
 #tour-stage.exploring-room .tour-joysticks{bottom:132px;left:12px}
}
@media(max-height:500px) and (orientation:landscape){.tour-explore-dock{bottom:8px;padding:6px;width:380px}#tour-stage.exploring-room .tour-joysticks{bottom:12px;left:12px}.tour-look-controls{margin-top:4px}.tour-explore-dock button,.tour-explore-dock select{min-height:44px}}
@media print{.tour-explore-dock{display:none}}
/* Keep the scene and its navigation together on short windows and rotated phones. */
@media(min-width:701px) and (max-height:800px){.tour-workspace:not(:fullscreen) #tour-stage{height:clamp(280px,calc(100svh - 120px),650px)}}
@media(max-height:500px) and (orientation:landscape){.tour-workspace:not(:fullscreen) #tour-stage{height:clamp(260px,calc(100svh - 100px),400px);min-height:260px}}
