body:not(.details-open) .workspace{grid-template-columns:minmax(0,1fr)}
body:not(.details-open) .editor{display:none}
body:not(.details-open) .stage{border-radius:20px;border-right:1px solid #e6e2d8}
.details-open .editor{display:flex}.editor-heading{gap:8px}.editor-heading>div{flex:1}
.room-object-tools{position:absolute;inset:0;pointer-events:none;z-index:4}
.room-launcher{position:absolute;top:28px;left:50%;transform:translateX(-50%);display:flex;gap:6px;pointer-events:auto;background:#fffaf1e8;border:1px solid #e0e3d6;border-radius:14px;padding:7px;box-shadow:0 4px 18px #5f70510a}
.room-launcher .button{white-space:nowrap;border:0;font-size:11px;min-height:35px;padding:0 12px;background:transparent;color:#607257}.room-launcher .button:first-child{background:#596f55;color:#fff;border-radius:8px}
.room-start-hint{position:absolute;left:50%;top:auto;bottom:82px;transform:translateX(-50%);text-align:center;color:#687d5d;white-space:nowrap}.room-start-hint span{font-size:12px}.room-start-hint small{display:block;font-size:9px;color:#99a08f;margin-top:6px}
.room-launcher+.room-start-hint{top:92px}.scene-heading p{display:none}.scene-bottom{display:none}.view-controls{bottom:23px}.canvas-wrap{inset:65px 0 65px}.scene-top-actions #focus{display:none}.corner-note{display:none}
.object-tooltip{position:fixed;background:#40523ff2;color:#fff;padding:10px 13px;font-size:11px;border-radius:8px;pointer-events:none;z-index:12;box-shadow:0 3px 12px #0001}.object-tooltip[hidden]{display:none}
.direct-editor{position:absolute;inset:0;pointer-events:none;z-index:7}.direct-editor[hidden]{display:none}
.inspection-header{display:flex;align-items:flex-start;gap:24px;position:absolute;top:25px;left:28px;right:28px;pointer-events:auto}.inspection-header>div{flex:1;text-align:center}.inspection-header h2{margin:8px 0 7px;font-size:24px;font-weight:500;letter-spacing:-.8px}.inspection-header p{font-size:11px;color:#8b987d;margin:0}.inspection-back,.detail-link{font-size:11px;min-height:38px;background:#fffaf2}.inspection-header .eyebrow{font-size:9px}
.inspection-controls{pointer-events:auto;position:absolute;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 48px);width:max-content;background:#fffcf6f5;border:1px solid #dfe4d3;border-radius:18px;padding:13px 18px;box-shadow:0 8px 32px #526c4510;backdrop-filter:blur(10px)}
.inspection-context{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:11px;color:#5a7150;min-height:23px}.inspection-context>span{font-size:9px;color:#98a18c}.inspection-context strong{font-weight:500}.inspection-context label{margin-left:auto;font-size:10px;color:#88937a}.inspection-context select{border:1px solid #d7dfcd;border-radius:6px;background:#fafbf4;padding:5px 7px;color:#617355;font-size:11px;margin-left:6px}
.inspection-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:center}.inspection-actions>.button{min-height:38px;font-size:11px;padding:0 12px}.direct-color{display:flex;align-items:center;gap:7px;font-size:11px;color:#859475;padding:0 7px}.direct-color input{width:29px;height:29px;padding:2px;background:#fff;border:1px solid #dfe5d7;border-radius:50%}.direct-size{display:flex;align-items:center;gap:7px;font-size:11px;color:#82916f}.direct-size input{width:90px;accent-color:#718865}.direct-tip{font-size:9px;text-align:center;margin:10px 0 0;color:#96a087}
.inspecting .scene-heading,.inspecting .scene-top-actions,.inspecting .scene-bottom,.inspecting .view-controls,.inspecting .zoom-controls,.inspecting .room-object-tools{display:none}.inspecting .canvas-wrap{inset:125px 0 130px}.inspecting .stage{background:radial-gradient(ellipse at 50% 48%,#fdfbf5 0%,#edece2 80%)}
.direct-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:65vh;overflow:auto}.direct-catalog>button{border:1px solid #dfe4d3;background:#f6f7ee;border-radius:10px;padding:17px 12px;text-align:center;color:#647857;display:flex;flex-direction:column;gap:8px;align-items:center}.direct-catalog button>span{font-size:32px;font-weight:300}.direct-catalog strong{font-size:12px;font-weight:500}.direct-catalog small{font-size:10px;color:#94a185}.goods-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}.object-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-height:65vh;overflow:auto}.object-list .button{font-size:12px;justify-content:center;min-height:46px}
.moving-tools{pointer-events:auto;position:absolute;left:50%;bottom:78px;transform:translateX(-50%);background:#fffcf5f2;border:1px solid #dde5d0;border-radius:16px;padding:14px 18px;min-width:450px;text-align:center}.moving-tools strong{font-size:13px;font-weight:500}.moving-tools>span{display:block;font-size:10px;color:#94a085;margin:7px 0 12px}.moving-tools>div{display:flex;gap:6px;justify-content:center}.moving-tools .button{font-size:11px;min-height:37px}
dialog:has(#device-editor){max-width:570px;max-height:88dvh;overflow:auto}#device-editor .control-section{margin:0}#device-editor .bookmark-list{max-height:130px}.details-open .room-launcher{top:95px}.details-open .room-start-hint{display:none}.details-open .inspection-header{left:20px;right:20px;gap:12px}.details-open .inspection-controls{width:calc(100% - 32px)}
@media(max-width:760px){body:not(.details-open) .stage{border:0;border-radius:0}.workspace{min-height:0}.stage{min-height:0}.room-launcher{top:auto;bottom:18px;max-width:calc(100% - 26px);flex-wrap:wrap;width:max-content;justify-content:center;gap:0;padding:6px}.room-launcher .button{font-size:10px;padding:0 10px;min-height:35px}.room-start-hint{top:108px;bottom:auto}.room-start-hint span{font-size:11px}.room-start-hint small{font-size:9px}.view-controls{bottom:111px}.canvas-wrap{inset:137px 0 165px}.scene-top-actions{top:45px}.zoom-controls{bottom:168px}.inspection-header{top:32px;left:13px;right:13px;gap:8px;flex-wrap:wrap;align-items:center}.inspection-header>div{order:3;flex-basis:100%;padding-top:5px}.inspection-header .detail-link{margin-left:auto}.inspection-header h2{font-size:21px;margin:6px 0}.inspection-header p{font-size:10px;line-height:1.6}.inspection-header .eyebrow{display:none}.inspection-back,.detail-link{font-size:10px;min-height:33px}.inspecting .canvas-wrap{inset:150px 0 195px}.inspection-controls{bottom:14px;padding:12px;max-width:calc(100% - 22px);width:calc(100% - 22px);border-radius:14px}.inspection-context{margin-bottom:9px;gap:6px}.inspection-actions{gap:6px}.inspection-actions>.button{min-height:38px;font-size:10px;padding:0 10px}.direct-color{font-size:10px;padding:0 3px}.direct-size{font-size:10px}.direct-size input{width:74px}.direct-tip{font-size:8px;margin-top:9px}.details-open .editor{position:absolute;right:0;left:0;bottom:0;height:49dvh;max-height:55dvh;z-index:15}.details-open .editor-heading{display:flex;padding:10px 18px}.details-open .editor-heading .eyebrow{display:none}.details-open .editor-heading h1{font-size:12px}.details-open .editor-heading #undo{display:none}.details-open .tabs{flex-shrink:0}.details-open .drawer-handle{display:none}.details-open .room-launcher{top:auto}.details-open .inspection-controls{display:none}.moving-tools{min-width:0;width:calc(100% - 24px);bottom:174px;padding:12px}.moving-tools>div{flex-wrap:wrap}.moving-tools .button{font-size:10px;padding:0 10px}.goods-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}.direct-catalog>button{padding:14px 8px}.direct-catalog strong{font-size:11px}.object-list .button{font-size:11px}.object-tooltip{display:none!important}}
@media(max-height:650px) and (min-width:761px){.inspecting .canvas-wrap{inset:105px 0 115px}.inspection-header{top:15px}.inspection-header p{display:none}.inspection-header h2{font-size:20px}.inspection-controls{bottom:12px}.room-launcher{top:18px}.room-start-hint{top:75px}}

.arranging .view-controls{display:none}.arranging .canvas-wrap{inset:65px 0 150px}.arranging .moving-tools{bottom:20px}.arranging .zoom-controls{bottom:168px}
@media(max-width:760px){.arranging .canvas-wrap{inset:120px 0 175px}.arranging .moving-tools{bottom:20px}.arranging .zoom-controls{bottom:175px}}

.scene-top-actions #undo-mobile{display:grid}.inspection-undo{min-width:38px;min-height:38px;padding:0 10px;font-size:18px}.inspection-header>.detail-link{margin-left:0}
@media(max-width:760px){.inspection-undo{margin-left:auto;min-height:33px;min-width:33px}.inspection-header .detail-link{margin-left:0}.inspection-header{gap:7px}}

.moving-tools .button{white-space:nowrap;flex-shrink:0}.furniture-catalog{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none}@media(min-width:761px){.moving-tools{min-width:565px;max-width:calc(100% - 24px)}}@media(max-width:760px){.furniture-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}

.plant-controls{display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));gap:12px;margin-top:14px;text-align:left}.plant-controls label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#666d5a}.plant-controls select{background:#fffdf7;border:1px solid #deded2;border-radius:8px;padding:8px;font:inherit;color:#404a3c;max-width:100%}.plant-controls input[type=range]{width:100%;accent-color:#526d50}.botanical-catalog button>span{color:#52754a}@media(max-width:760px){.plant-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.plant-controls label{font-size:10px}}

/* Keep the object large while the editing controls remain within reach. */
.room-home[aria-pressed=true]{background:#e8eddf;border-color:#a8b39a;color:#43573a}.scene-top-actions .room-history-button{height:33px;white-space:nowrap;padding:6px 10px}.scene-top-actions #undo-mobile{display:block}.header-actions .room-home{font-weight:600}
@media(min-width:761px){.scene-top-actions{top:22px}.scene-heading{max-width:calc(100% - 270px)}.room-name{max-width:100%;font-size:19px}.scene-heading p{display:none}}
@media(max-width:760px){.header-actions{gap:5px}.header-actions .room-home{font-size:10px;padding:0 9px;gap:4px}.header-actions .room-home span{font-size:18px}.brand small{display:none}.brand{font-size:15px}.scene-top-actions{top:68px;right:16px}.scene-heading{top:25px;max-width:calc(100% - 24px)}.scene-heading p{display:none}.scene-top-actions .room-history-button{height:30px;font-size:10px;padding:5px 9px}.room-start-hint{top:112px}.inspecting .scene-top-actions{display:none}}
@media(min-width:761px){.inspection-header{top:18px;align-items:center}.inspection-header>div{text-align:left}.inspection-header .eyebrow,.inspection-header p{display:none}.inspection-header h2{font-size:20px;margin:0}.inspection-controls{padding:10px 14px;bottom:18px}.inspection-context{margin-bottom:5px}.inspection-controls .plant-controls{margin-top:9px}.inspecting .canvas-wrap{inset:65px 0 132px}}
@media(max-width:760px){.scene-top-actions{top:88px}.room-start-hint{top:132px}}

/* Focus the chosen object in a full-height work surface, with tools below it. */
body.inspecting>.header{display:none}body.inspecting .workspace{height:100dvh;min-height:0;padding:0}body.inspecting .stage{border:0;border-radius:0;min-height:0}
@media(min-width:761px){.inspection-controls{bottom:12px;max-width:calc(100% - 36px)}.inspection-header{top:14px}.inspecting .direct-goods-picker{padding-top:6px}.inspection-controls:has(.direct-design-picker) .direct-goods-picker,.inspection-controls .direct-design-picker{flex-wrap:nowrap;gap:8px;align-items:center}.inspection-controls:has(.direct-design-picker) .direct-goods-picker select,.inspection-controls .direct-design-picker select{width:auto;flex:1}}
@media(max-width:760px){.inspection-header{top:12px}.inspection-header h2{font-size:18px}.inspection-controls{bottom:8px;padding:9px}.inspection-header p{display:none}.inspection-actions{gap:5px}.inspection-actions>.button{min-height:34px}.inspection-context strong{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-launcher{max-width:calc(100% - 20px)}.room-launcher .button{padding:0 9px}}
