/* One visible model, one scrolling controls pane. No duplicated canvas or configuration. */
.studio-shell{--studio-height:min(850px,calc(100svh - 100px));height:var(--studio-height);min-height:460px;display:flex;flex-direction:column;border:1px solid #a8b6a7;background:#f8f8f2;color:#263d34;scroll-margin-top:85px;box-shadow:0 18px 60px #20372d12;isolation:isolate}
.workspace-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;min-height:58px;padding:8px 16px;background:#20362f;color:#faf2e6}
.workspace-bar>div{display:flex;align-items:center;gap:10px;min-width:0}.workspace-bar strong{font-size:14px;font-weight:500}.workspace-dot{width:6px;height:6px;background:#d9b489;border-radius:50%;flex:none}.workspace-subtitle{font-size:11px;color:#c1cdc0;margin-left:8px}.workspace-bar button{min-height:42px;padding:8px 12px;border:1px solid #c3ccbc55;background:transparent;color:inherit;font-size:12px;white-space:nowrap}
.studio-shell .v4-workbench{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr);gap:0;overflow:hidden;align-items:stretch}
.studio-shell .v4-view-column{position:relative;top:auto;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#e2e1d9}
.studio-shell .lab-layout{display:block;flex:1;min-height:0;height:100%}.studio-shell .v4-view-column .material-view{height:100%;min-height:0;margin:0}.studio-shell .v4-view-column>.studio-disclaimer{display:none}
.studio-shell .material-meta{top:18px;left:18px;right:18px;font-size:8px}.studio-shell .material-meta span:last-child{display:none}
.studio-shell .material-bottom{padding:45px 18px 65px;pointer-events:none}.studio-shell .material-bottom h3{font-size:18px}
.model-quick-controls{position:absolute;bottom:12px;left:12px;right:12px;z-index:5;display:flex;gap:6px;align-items:center;justify-content:center}
.studio-shell .model-quick-controls button{background:#f8f8f1ed;color:#284033;border:1px solid #9caa9980;min-height:44px;min-width:44px;padding:8px 10px;font-size:11px;backdrop-filter:blur(8px);border-radius:5px;box-shadow:0 2px 12px #20362d12}
.studio-shell .model-quick-controls .zoom-tools{gap:4px}.studio-shell .model-quick-controls .zoom-tools button{font-size:21px}.studio-shell .model-quick-controls #reset-camera{font-size:0}.studio-shell .model-quick-controls #reset-camera:before{content:'↺';font-size:20px}
.studio-shell .v4-config{margin:0;min-height:0;border:0;border-left:1px solid #b8c3b2;display:flex;flex-direction:column;overflow:hidden;box-shadow:none}
.studio-shell .config-navigation{position:relative;top:auto;flex:none;z-index:6;box-shadow:0 4px 12px #263b2110}
.studio-shell .config-navigation .v4-config-head{padding:10px 14px 4px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center}.studio-shell .active-zone-label{grid-column:1;font-size:10px}.studio-shell #config-decor-name{grid-column:1;font-size:16px;margin:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio-shell .v4-config-head>.edit-selection{display:none}.studio-shell .v4-history{grid-column:2;grid-row:1/3;gap:5px;flex-wrap:nowrap}.studio-shell .v4-history button{font-size:0;min-width:40px;min-height:42px;border:1px solid #b8c3b280;border-radius:4px;padding:6px}.studio-shell #config-undo:before{content:'↶';font-size:22px}.studio-shell #config-redo:before{content:'↷';font-size:22px}.studio-shell #config-reset:before{content:'⟲';font-size:22px}
.studio-shell .config-navigation .config-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:5px}.studio-shell .config-navigation .config-tabs button{padding:7px 2px;font-size:11px;min-height:44px;line-height:1.25;overflow-wrap:anywhere}
.studio-shell .v4-config>[role=tabpanel]{min-height:0;flex:1;overflow:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;scroll-padding:16px;padding:18px;-webkit-overflow-scrolling:touch}
.studio-shell .decor-grid{max-height:none;overflow:visible;grid-template-columns:repeat(2,minmax(0,1fr))}.studio-shell .config-footer{flex:none;padding:7px 14px;font-size:9px;flex-direction:row;justify-content:space-between;gap:8px}.studio-shell .config-footer #config-stats{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio-shell .config-saved{white-space:nowrap}
.studio-shell .config-intro{font-size:13px;margin-bottom:12px}.studio-shell .zone-mode{margin:0 0 12px}.studio-shell .zone-mode button{font-size:12px;padding:10px;min-height:44px}.studio-shell .v4-categories{position:sticky;top:-18px;z-index:3;background:#f9f8f2;padding:8px 0!important;box-shadow:0 4px 0 #f9f8f2;gap:6px!important;margin-bottom:12px!important}.studio-shell .v4-categories button{min-height:46px!important;padding:7px!important}.studio-shell .v4-categories .swatch{width:24px!important;height:26px!important}
.studio-shell .view-panel-title{font-size:18px;margin:0 0 16px}.studio-shell #config-view .studio-toolbar{display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:0}.studio-shell #config-view .studio-help{order:0;width:100%;font-size:12px}.studio-shell .studio-switch{display:flex;gap:4px;flex-wrap:wrap}.studio-shell .studio-switch button{min-height:44px;padding:10px 14px;font-size:12px}.studio-shell #config-view .construction-controls{margin-top:22px}.studio-shell #config-view .construction-steps{display:flex;flex-direction:column}.studio-shell #config-view .construction-steps button{flex-direction:row;gap:14px;align-items:center;min-height:46px;padding:10px 14px;border-right:0;border-bottom:1px solid #ccd2c5}.studio-shell #config-view .construction-steps button strong{font-size:12px}.studio-shell #config-view .stage-info{display:block;padding:16px}.studio-shell #config-view .stage-info>span{display:none}.studio-shell #config-view .stage-info h3{font-size:17px}.studio-shell #config-view .stage-arrows{margin-top:12px;justify-content:flex-end}.studio-shell #config-view .stage-arrows button{min-width:44px;min-height:44px}
.studio-shell button:focus-visible,.studio-shell [tabindex]:focus-visible{outline:2px solid #a06c35;outline-offset:-3px}.studio-shell input:focus-visible,.studio-shell select:focus-visible{outline:2px solid #a06c35;outline-offset:2px}
#workspace-dialog{position:fixed;inset:0;margin:0;padding:0;border:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;background:#f8f8f2;color:#263d34;overflow:hidden}#workspace-dialog::backdrop{background:#20362f}#workspace-dialog .studio-shell{height:100%;min-height:0;border:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}#workspace-dialog .workspace-bar{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}body.workspace-open{overflow:hidden}.workspace-open .point-guide,.workspace-open .guide-arrow{display:none!important}body.studio-in-view .mobile-actions{display:none}
@media(max-width:800px){
 .studio-shell{height:calc(100svh - 92px);min-height:480px;margin:0 -12px}.studio-shell .workspace-subtitle{display:none}.workspace-bar{min-height:52px;padding:5px 10px}.workspace-bar strong{font-size:12px}.workspace-bar button{font-size:11px;min-height:40px;padding:7px 9px}
 .studio-shell .v4-workbench{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(170px,34%) minmax(0,1fr)}.studio-shell .v4-config{border-left:0;border-top:1px solid #aebba7}.studio-shell .material-meta{top:10px;left:12px;font-size:7px}.studio-shell .material-bottom{display:none}.studio-shell .model-quick-controls{left:auto;right:8px;bottom:7px;gap:4px}.studio-shell .model-quick-controls button{min-width:40px;min-height:40px;padding:7px 9px;font-size:10px}.studio-shell .model-quick-controls .zoom-tools button{min-width:40px}.studio-shell .config-navigation .v4-config-head{padding:6px 11px 2px;column-gap:8px}.studio-shell #config-decor-name{font-size:14px}.studio-shell .active-zone-label{font-size:9px}.studio-shell .v4-history button{min-width:36px;min-height:40px}.studio-shell .config-navigation .config-tabs button{font-size:10px;min-height:44px}.studio-shell .v4-config>[role=tabpanel]{padding:14px}.studio-shell .v4-categories{top:-14px}.studio-shell .config-footer{padding:5px 10px;font-size:8px}.studio-shell .config-saved{font-size:8px}
 #workspace-dialog .studio-shell{margin:0}.studio-shell input:not([type=range]):not([type=checkbox]),.studio-shell select{font-size:16px!important}.studio-shell .config-field-pair{gap:10px}
}
@media(max-width:800px) and (max-height:680px){.studio-shell .v4-workbench{grid-template-rows:minmax(135px,29%) minmax(0,1fr)}.studio-shell .config-footer{display:none}.studio-shell .model-quick-controls button{min-height:36px}.studio-shell .material-meta{display:none}}
@media(max-height:500px) and (min-width:600px){.studio-shell{min-height:320px}.studio-shell .v4-workbench{grid-template-columns:minmax(0,1fr) minmax(320px,1fr);grid-template-rows:minmax(0,1fr)}.studio-shell .config-footer,.workspace-subtitle{display:none}.studio-shell .v4-config{border-left:1px solid #b8c3b2;border-top:0}.studio-shell .material-bottom{display:none}}
@media(prefers-reduced-motion:reduce){.studio-shell *{scroll-behavior:auto!important}}

.studio-shell #config-material{display:contents}.studio-shell #config-material>.config-intro,.studio-shell #config-material>.config-note{display:none}.studio-shell .v4-categories{margin-top:12px!important}.studio-shell #config-zone>.config-advanced{margin-top:4px;padding:6px 0}

/* Camera controls have their own row and never cover the building on a small phone. */
.studio-shell .lab-layout{display:flex;flex-direction:column}
.studio-shell .v4-view-column .material-view{flex:1;height:auto;min-height:0}
.studio-shell .model-quick-controls{position:static;flex:none;min-height:50px;margin:0;padding:5px 8px;border-top:1px solid #a9b2a333;background:#e2e1d9}
.studio-shell .material-bottom{padding-bottom:20px}
@media(max-width:800px){.studio-shell .v4-workbench{grid-template-rows:minmax(190px,40%) minmax(0,1fr)}.studio-shell .model-quick-controls{min-height:46px;padding:3px 8px}}
@media(max-width:800px) and (max-height:680px){.studio-shell .v4-workbench{grid-template-rows:minmax(160px,38%) minmax(0,1fr)}}
@media(max-height:500px) and (min-width:600px){.studio-shell .v4-workbench{grid-template-rows:minmax(0,1fr)}}

#workspace-dialog.workspace-short .v4-workbench{grid-template-rows:minmax(85px,28%) minmax(0,1fr)}
#workspace-dialog.workspace-short .workspace-bar{min-height:44px}
#workspace-dialog.workspace-short .model-quick-controls{display:none}
#workspace-dialog.workspace-short .config-footer{display:none}
.studio-shell #config-zone{scroll-padding-top:120px}
#workspace-dialog.workspace-short .v4-categories{position:static}
#workspace-dialog.workspace-short #config-zone{scroll-padding-top:14px}

/* Old desktop grid alignment must not shrink the absolute-positioned renderer. */
.studio-shell .lab-layout{align-items:stretch}
.studio-shell .v4-view-column .material-view{width:100%}
