.scene-tools{position:absolute;top:10px;right:10px;z-index:6;display:grid;grid-template-columns:repeat(2,44px);gap:6px;padding:5px;border-radius:16px;background:#f8faf8d9;box-shadow:0 2px 12px #173d3320;backdrop-filter:blur(8px)}.scene-tools[hidden]{display:none}.scene-tools button{width:44px;height:44px;min-height:44px;padding:10px;display:grid;place-items:center;border-radius:12px;border:1px solid #c7d4cc;background:#fff;color:#22574d;touch-action:manipulation;cursor:pointer;margin:0}.scene-tools button:disabled{opacity:.35;cursor:default}.scene-tools button:focus-visible{outline:3px solid #be8e37;outline-offset:2px}.scene-tools button[data-scene-action=delete]{color:#9c443c}.scene-tools button[data-scene-action=add]{background:#25695d;color:#fff}.scene-tools svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.scene-library{border:1px solid #c7d4cc;border-radius:18px;width:min(440px,calc(100vw - 32px));max-height:80dvh;padding:18px;background:#fafbf8;color:#243c35}.scene-library::backdrop{background:#13251d60}.scene-library details{margin:8px 0 8px 8px}.scene-library summary{padding:10px;font-weight:600;cursor:pointer}.scene-library button{display:block;width:100%;text-align:left;min-height:44px;margin:6px 0}.tree-surface{display:flex;align-items:center;gap:8px}.tree-surface button{flex:1;text-align:left}.part.hidden-item,.tree-group.hidden-item{opacity:.6}.tree-surface.active button{outline:2px solid #b64f4f}.scene-resize{position:absolute;inset:0;z-index:7;pointer-events:none}.scene-resize[hidden]{display:none}.resize-handle{position:absolute;width:44px;height:44px;border-radius:50%;transform:translate(-50%,-50%);background:#d2a044;color:#142d23;border:2px solid white;box-shadow:0 2px 6px #0005;pointer-events:auto;touch-action:none;padding:0;font-size:24px}.resize-handle[hidden]{display:none}.resize-label{position:absolute;left:8px;bottom:45px;max-width:calc(100% - 16px);padding:6px 10px;background:#fffffff0;border-radius:8px;font-size:13px}.resize-done{position:absolute;left:8px;top:8px;pointer-events:auto;min-height:44px}.scene-panel{position:absolute;z-index:12;top:8px;left:8px;width:min(370px,calc(100% - 16px));max-height:calc(100% - 16px);box-sizing:border-box;display:flex;flex-direction:column;background:#fbfcf9f7;border:1px solid #bdcdc4;border-radius:16px;box-shadow:0 5px 28px #142d2340;padding:14px;color:#243c35;overscroll-behavior:contain}.scene-panel[hidden]{display:none}.scene-panel h2{margin:0 44px 12px 0;font-size:18px}.scene-panel-close,.scene-library .scene-library-close{position:absolute;right:6px;top:6px;width:40px;min-height:40px;padding:0;margin:0;text-align:center;font-size:27px;border-radius:10px}.scene-panel-content{overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}.scene-panel-content button{min-height:44px}.scene-panel label{display:block;font-size:14px}.scene-panel input,.scene-panel select{box-sizing:border-box;width:100%;min-height:44px}.scene-panel p{font-size:13px;line-height:1.4}.scene-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.scene-dimensions p,.scene-dimensions button{grid-column:1/-1}.scene-panel #cabinetEditor{margin:0;padding:0;border:0}.scene-panel #cabinetEditor>summary{display:none}.scene-panel .fieldrow{display:grid;grid-template-columns:1fr 1fr;gap:8px}.scene-panel [hidden]{display:none!important}.scene-panel summary{padding:9px;cursor:pointer}.scene-panel-message.error{color:#a22}.viewport>.scene-library{position:absolute;inset:8px auto auto 8px;margin:0;z-index:13;box-sizing:border-box;width:min(400px,calc(100% - 16px));max-height:calc(100% - 16px);overflow:auto;padding-top:18px;box-shadow:0 5px 28px #142d2340}.scene-library h2{margin-right:40px}.resize-edit{position:absolute;top:56px;left:8px;pointer-events:auto;min-height:44px}@media(max-width:650px){.scene-tools{top:6px;right:6px;grid-template-columns:repeat(5,44px);gap:4px}}@media(max-width:300px){.scene-tools{grid-template-columns:repeat(3,44px)}}@media(max-width:650px){.viewport[data-scene-mode="3d"]{--scene-toolbar-space:112px;padding-top:var(--scene-toolbar-space);height:calc(47vh + var(--scene-toolbar-space));min-height:calc(320px + var(--scene-toolbar-space))}.viewport[data-scene-mode="3d"] #measurements{top:var(--scene-toolbar-space);height:calc(100% - var(--scene-toolbar-space));bottom:0}.viewport[data-scene-mode="3d"] .scene-resize{top:var(--scene-toolbar-space)}}@media(max-width:300px){.viewport[data-scene-mode="3d"]{--scene-toolbar-space:160px}}
