.scene-panel{color:#173f73;font-size:12px}.scene-panel h3{font:20px/1.4 ZaobaPF,cursive;margin:22px 0 12px}.scene-panel h3:first-child{margin-top:0}.scene-panel button{min-height:42px;border:1px solid #d7d5d0;border-radius:12px;background:#fffaf1;color:inherit;padding:8px;font:inherit;cursor:pointer}.scene-panel button:disabled{opacity:.45;cursor:default}.scene-switch,.scene-place-actions{display:flex;gap:8px}.scene-switch button,.scene-place-actions button{flex:1}.scene-switch [aria-pressed=true]{background:#173f73;color:white}.scene-shapes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.scene-shapes img{display:block;width:100%;height:65px;object-fit:contain;mix-blend-mode:multiply}.scene-shapes [aria-pressed=true]{border:2px solid #173f73;background:#fae6ed}.scene-label{display:grid;gap:8px}.scene-counts{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin:8px 0 12px}.scene-counts [aria-pressed=true]{background:#173f73;color:white}.scene-help,.scene-preview-note{color:#6e7d8a;font-size:12px;line-height:1.75}.scene-help.error{color:#a34558}.scene-slots,.scene-library{display:grid;grid-template-columns:1fr 1fr;gap:8px}.scene-slots svg,.scene-library svg{display:block;width:100%;height:58px;margin-bottom:8px}.scene-slots span,.scene-library span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:112px}.scene-slots [aria-pressed=true]{border:2px solid #173f73;background:#fae6ed}.scene-mini-actions{display:flex;align-items:center;gap:5px;margin:10px 0 16px}.scene-mini-actions output{margin:auto;white-space:nowrap}.scene-mini-actions button{min-width:32px;padding:5px}.scene-place-actions{margin:14px 0}.scene-place-actions button,#sceneUpload{background:#fae3eb}.scene-primary{width:100%;background:#173f73!important;color:white!important;margin-top:18px;min-height:48px!important}.scene-picker-heading{display:flex;justify-content:space-between;align-items:center;margin:16px 0 12px}#sceneUpload{display:flex;justify-content:center;align-items:center;gap:6px;width:100%}#sceneSearch{width:100%;padding:12px;border:1px solid #d7d5d0;border-radius:10px;background:#fffdf8;color:#173f73;margin:12px 0}#sceneCategory{margin-bottom:10px}.scene-library{max-height:340px;overflow:auto}.scene-panel [hidden],#sceneInlineStage[hidden],#sceneInlineStage [hidden],#canvasSurface[hidden]{display:none!important}#sceneInlineStage{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#fffaf0;padding:8px 24px 12px}.scene-stage-info{display:flex;gap:12px;align-items:center;color:#173f73;font-size:12px;min-height:40px}.scene-stage-info strong{white-space:nowrap}.scene-stage-info span{color:#74818d;font-size:11px}.scene-stage-info button{margin-left:auto;min-height:40px;border:0;background:#173f73;color:#fff;border-radius:12px;padding:8px 18px;white-space:nowrap}#sceneDraft{flex:1;min-height:0;display:flex;justify-content:center;align-items:center}#sceneDraft>svg{height:100%;width:100%;max-height:620px}#sceneViewport{flex:1;min-height:0;position:relative}#sceneMeshHost,#sceneFrameHost{position:absolute;inset:0;overflow:hidden}#sceneViewport canvas{width:100%;height:100%;display:block}#sceneArrangeView{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch;color:#173f73}#scenePlacementMap{flex:1;min-height:100px;width:100%;touch-action:none}.scene-map-base{fill:#f4d8e0;stroke:#a85870;stroke-width:.5}.scene-center-lines{fill:none;stroke:#c07999;stroke-width:.4;stroke-dasharray:2 2}#scenePlacementMap [data-placement]{cursor:grab}#scenePlacementMap [data-placement] rect{fill:#fffaf1;stroke:#173f73;stroke-width:.5}#scenePlacementMap text{font-family:sans-serif;font-size:3px;fill:#173f73;dominant-baseline:middle}.scene-map-title{display:flex;flex-direction:column;gap:8px;font-size:12px;margin:12px 0}#scenePlacementHint{font-size:12px;min-height:20px}#sceneArrangementDone{border:0;background:#173f73;color:white;padding:12px 16px;border-radius:12px;align-self:center;min-height:44px}.scene-preview-note{font-size:11px;margin:8px 0 0}.board-minimum{font-size:12px;line-height:1.75;background:#f9ecdf;border-radius:12px;padding:12px;margin:12px 0}html[data-editor-layout=frame] .frame-settings-group[hidden]{display:none!important}
@media(max-width:760px){#sceneInlineStage{padding:4px 12px 8px}.scene-stage-info{flex-wrap:wrap;gap:4px}.scene-stage-info span{max-width:52%}#sceneDraft>svg{max-height:100%}.scene-preview-note{font-size:10px}.scene-panel h3{margin-top:18px}}

#sceneInlineStage{position:relative;padding-bottom:60px}
html[data-editor-layout=frame] #sceneInlineStage>.history-tools{position:absolute;inset:auto 16px 10px auto;margin:0;display:flex;gap:4px;background:#fffdf6e8;border:1px solid #e7e1d5;border-radius:10px;padding:3px;z-index:3}
html[data-editor-layout=frame] #sceneInlineStage>.history-tools button{width:40px;height:40px;min-width:40px;min-height:40px;padding:6px;border:0;background:transparent}
html[data-editor-layout=frame] #frameEditMode[aria-pressed=false]{background:transparent;color:#173f73;box-shadow:none}
html[data-editor-layout=frame] #framePreviewMode[aria-pressed=true]{background:#1268b4;color:white;box-shadow:0 1px 3px #173f7326}

#sceneViewport>.zm-inline{position:absolute;inset:0;justify-content:center;z-index:1}
/* Editing-only docks must not consume the space reserved for a 3D viewport. */
html[data-editor-layout=frame] #canvasArea:has(#sceneInlineStage:not([hidden]))>:is(.ze-canvas-dock,#limitLegend,#frameCanvasStatus){display:none!important}
