#room-title{font:24px Georgia;margin:16px 0 6px}.toolbar{width:265px}#evidence{line-height:1.6;color:#776647}#plan-image{width:100%;display:block}#map-toggle{margin:4px 12px 10px}#photo-dialog{max-width:1200px;padding:16px}#photo-image{width:100%;max-height:75dvh;object-fit:contain}#close-photo{position:absolute;right:22px;top:22px;min-width:44px;font-size:24px}#photo-note{font-size:12px}.panorama-controls{z-index:1}.focus-view #look-controls{display:none}.toolbar button,select{min-height:44px}#canvas-host{transition:opacity .16s}.changing #canvas-host{opacity:.2}
@media(max-width:700px){header .draft{display:none}.brand small{display:inline;font-size:8px;margin-left:4px;letter-spacing:1px}header .brand{font-size:18px;letter-spacing:2px}.toolbar{top:auto;bottom:8px;left:10px;right:10px;width:auto;padding:12px;max-height:42dvh;overflow:auto}.toolbar h1{font-size:20px;margin:8px 0}.toolbar #evidence{font-size:10px;margin-top:4px}.toolbar .mode{max-width:300px}.toolbar label{display:inline-block;width:48%;vertical-align:top;margin:8px 1% 0 0}.toolbar #instructions{display:none}#plan{top:77px;right:10px;width:145px;min-width:0}#plan-image{max-height:35dvh;object-fit:contain}.readout{display:none}#look-controls{top:77px;left:10px;transform:none;max-width:calc(100vw - 175px);padding:3px;gap:2px}#look-controls button{font-size:9px;padding:6px;min-width:44px;min-height:44px}footer{height:44px;gap:8px;font-size:8px}main{bottom:44px}#photo-dialog{padding:10px}#photo-image{max-height:65dvh}}
@media(max-height:500px) and (orientation:landscape){.toolbar{top:77px;bottom:8px;right:auto;width:230px;max-height:none}#look-controls{top:auto;bottom:12px;left:calc(50% + 90px);transform:translateX(-50%);max-width:none}#plan{width:150px}.toolbar h1{font-size:18px}.toolbar #evidence{font-size:9px}}
@media(prefers-reduced-motion:reduce){#canvas-host{transition:none}}
@media(max-height:500px) and (orientation:landscape){.toolbar{overflow:auto}.readout{display:none}}
#canvas-host[aria-busy=true]::after{content:'Preparing room…';position:absolute;top:30%;left:50%;transform:translateX(-50%);padding:10px 16px;border-radius:20px;background:#26352be6;color:#f5f1e7;font-size:12px;pointer-events:none}
#canvas-host canvas{transition:opacity .3s ease}
#canvas-host[aria-busy=true] canvas{opacity:.15}
@media(prefers-reduced-motion:reduce){#canvas-host canvas{transition:none}}
#menu-toggle{display:none}
#selection-panel>button{margin:10px 4px 0 0;font-size:11px}
@media(max-width:700px), (max-width:950px) and (max-height:500px){
 #menu-toggle{display:block;width:100%;margin:0;text-align:left;font-size:12px}
 .toolbar{top:auto;bottom:8px;left:10px;right:10px;width:auto;max-height:60dvh;padding:8px;z-index:2}
 #selection-panel{padding:8px;max-height:48dvh;overflow:auto}
 #plan{display:none}
 main{--room-height:min(66.667vw,calc(100dvh - 270px));--room-top:max(90px,calc((100dvh - 44px - var(--room-height))/2 - 35px))}
 body[data-mode=walk] #canvas-host{inset:var(--room-top) 0 auto;height:var(--room-height);width:min(100%,calc(var(--room-height)*1.5));margin:auto;background:#ddd}
 body[data-mode=walk] .readout{display:block;top:calc(var(--room-top) + var(--room-height) + 10px);bottom:auto;text-align:center;background:transparent}
 #look-controls{top:auto;bottom:76px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 20px);width:max-content}
 #look-controls button{font-size:11px;padding:8px 14px}
 body[data-mode=orbit] #canvas-host{inset:75px 0 70px}
 .focus-view #canvas-host{inset:75px 0 20px!important;height:auto!important;width:100%!important}
}
@media(max-width:950px) and (max-height:500px){
 body[data-mode=walk] .readout{display:none}
 body[data-mode=walk] #canvas-host{inset:85px auto 5px 10px;width:calc(100% - 290px);height:auto;margin:0}
 .toolbar{left:auto;right:10px;bottom:76px;width:260px;max-height:calc(100dvh - 190px)}
 #look-controls{left:auto;right:10px;bottom:12px;transform:none;width:260px;justify-content:center}
}
