html,body{overscroll-behavior:none}#canvas canvas{touch-action:none}button,input,select,textarea{font-size:16px}#install-app{position:fixed;right:12px;bottom:calc(48px + env(safe-area-inset-bottom));z-index:9;background:#254f39;color:white;padding:10px 14px;border-radius:6px}#install-app[hidden]{display:none}
body.scene-fullscreen>:not(#canvas){display:none!important}body.scene-fullscreen #canvas{position:fixed;inset:0;width:100vw;height:100dvh}#retry-load{margin-top:18px;padding:12px 22px;background:#254f39;color:white;border:0;border-radius:4px}
.tablet-mode button,.tablet-mode select,.tablet-mode input:not([type=checkbox]){min-height:48px}.tablet-mode input[type=checkbox]{width:26px;height:26px}.tablet-mode #tablet-tools{position:fixed;z-index:12;bottom:calc(50px + env(safe-area-inset-bottom));left:12px;right:12px;display:flex;gap:5px;overflow-x:auto;padding:6px;background:#f4f7f0f5;border:1px solid #b4c7b9;border-radius:8px}.tablet-mode #tablet-tools button{flex-shrink:0;padding:8px 12px}.tablet-mode #tablet-sync{position:fixed;right:60px;top:12px;z-index:15;background:#254f39;color:white;padding:8px 12px}.tablet-mode .pen-dot{r:11;stroke-width:3}.tablet-mode dialog{max-width:min(90vw,900px);max-height:85dvh;overflow:auto}.tablet-mode dialog label{display:block;padding:8px}.tablet-mode dialog pre{max-height:140px;overflow:auto;font-size:12px;white-space:pre-wrap}.tablet-mode #scene-editor,.tablet-mode #object-properties,.tablet-mode #batch-properties,.tablet-mode #utility-panel,.tablet-mode #distance-panel{top:140px;bottom:120px;max-height:calc(100dvh - 260px);width:320px;right:12px;overflow:auto}.tablet-mode .controls{width:210px;top:140px;max-height:calc(100dvh - 270px)}.tablet-mode .details{bottom:125px}.tablet-mode.tablet-browse #tablet-tools [data-act=browse]{background:#254f39;color:white}.tablet-mode header{right:200px}
@media(max-width:800px){.tablet-mode .controls{max-width:180px}.tablet-mode #scene-editor,.tablet-mode #object-properties,.tablet-mode #batch-properties,.tablet-mode #utility-panel,.tablet-mode #distance-panel{width:min(360px,calc(100vw - 24px));top:140px;bottom:120px}.tablet-mode header h1{font-size:14px}.tablet-mode .eyebrow{font-size:8px}.tablet-mode #tablet-sync{right:52px;top:8px;padding:5px}.tablet-mode .views{top:78px}.tablet-mode .views button{font-size:12px}}
.tablet-mode #admin-switch{opacity:1;background:#f4f7f0;right:12px;top:12px;min-width:96px;width:auto;height:48px;padding:8px;color:#254f39;border:1px solid #a4bca9;border-radius:6px;font-size:14px}.tablet-mode #tablet-sync{right:120px;top:12px}.tablet-mode header{right:280px}.tablet-mode.viewer-mode #tablet-tools button:not([data-act=browse]),.tablet-mode.viewer-mode #tablet-tools select{display:none}.tablet-mode .pen-dot{r:7;stroke:transparent;stroke-width:34;pointer-events:all}.tablet-mode .pen-dot.anchor{fill:#60eeff}.tablet-mode .pen-dot.handle{fill:#e9f9ed}
@media(pointer:coarse){button,select{min-height:40px}input[type=checkbox]{min-width:22px;min-height:22px}.label3d{padding:7px 9px}footer{padding-bottom:env(safe-area-inset-bottom);height:calc(42px + env(safe-area-inset-bottom))}#project-status{max-width:65vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:900px){#scene-editor,#utility-panel,#distance-panel{top:150px;bottom:calc(55px + env(safe-area-inset-bottom));max-height:none;width:min(340px,calc(100vw - 20px));right:10px}.editor-body{padding:10px}.views{max-width:calc(100vw - 20px);flex-wrap:wrap}.controls{max-height:calc(100dvh - 195px)}}
@media(max-width:650px){#scene-editor:not([hidden])~.details{display:none}.controls{width:170px}#admin-switch{top:12px;right:12px}.version{display:none}.views{top:70px}.details{bottom:calc(58px + env(safe-area-inset-bottom));max-height:32dvh}header{right:50px}.editor-body input,.utility-body input,.editor-body select,.utility-body select{font-size:16px}#scene-editor .editor-tabs button{font-size:13px}}
