/* Scene width is based on the collapsed sidebar; the open sidebar overlays it. */
.workspace{--sidebar-width:360px;--sidebar-peek:104px;--sidebar-space:var(--sidebar-width);--control-shadow:3px 3px 0 var(--ink);--catalog-dock-clearance:140px;position:relative;display:grid;grid-template-columns:var(--sidebar-peek) minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0;overflow:hidden}
.workspace.sidebar-collapsed{--sidebar-space:var(--sidebar-peek)}
.sidebar{grid-column:1;grid-row:1;position:relative;z-index:7;width:var(--sidebar-width);height:100%;min-height:0;border-right:1px solid #a8aca1;background:rgba(243,240,232,.88);overflow:hidden;transform:translateX(0);transition:transform .22s ease}
.sidebar-inner{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;gap:14px;padding:22px 76px 18px 16px;overflow:hidden}
.sidebar-collapsed .sidebar{transform:translateX(calc(var(--sidebar-peek) - var(--sidebar-width)));pointer-events:none}
.sidebar-inner{transition:visibility 0s}
.sidebar-collapsed .sidebar-inner{visibility:hidden;transition-delay:.22s}
.sidebar-scrim{display:none}
.mode-panel{min-width:0;min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:0 14px 6px 0;scrollbar-width:thin;scrollbar-gutter:stable;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.mode-panel .section-title{gap:8px;align-items:flex-start}
.mode-panel .section-title h2{font-size:18px;line-height:1.25;letter-spacing:.6px;overflow-wrap:normal}
.mode-rail{position:absolute;z-index:8;left:calc(var(--sidebar-width) - 44px);top:16px;display:flex;flex-direction:column;align-items:center;gap:14px;transition:left .22s ease}
.sidebar-collapsed .mode-rail{left:calc(var(--sidebar-peek) - 44px)}
.mode-button{position:relative;width:88px;height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:9px 4px;border:1.5px solid var(--ink);background:#faf9f3;box-shadow:2px 2px 0 var(--ink);color:var(--ink)}
.mode-button svg{width:34px;height:34px;flex-shrink:0;stroke-width:1.7;stroke-linejoin:miter;stroke-linecap:square}
.mode-title{display:block;font-size:11px;line-height:1.1;font-weight:700;white-space:nowrap}
.mode-button[aria-pressed=true]{background:var(--orange)}
.mode-button::after{content:'';display:none;position:absolute;top:50%;transform:translateY(-50%);width:0;height:0;border:0;pointer-events:none}
.workspace:not(.sidebar-collapsed) .mode-button::after{left:-16px;border-top:9px solid transparent;border-bottom:9px solid transparent;border-right:12px solid var(--ink)}
.workspace.sidebar-collapsed .mode-button::after{right:-16px;border-top:9px solid transparent;border-bottom:9px solid transparent;border-left:12px solid var(--ink)}
.stage{grid-column:2;grid-row:1;position:relative;min-width:0;min-height:0;overflow:hidden;background:radial-gradient(ellipse at 50% 55%,#faf8f3 0%,#e9e6df 90%)}
.stage-bottom{position:absolute;z-index:2;left:calc(var(--sidebar-space) - var(--sidebar-peek) + 56px);right:24px;bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none}
.stage-bottom>*{pointer-events:auto}
.sidebar-collapsed .stage-bottom{left:18px}
.selection-box{display:flex;align-items:center;flex:0 1 210px;gap:9px;min-width:0;width:auto;height:51px;padding:8px;background:#faf9f3;border:1.5px solid var(--ink);box-shadow:var(--control-shadow);overflow:hidden}
.selection-box>div{min-width:0;flex:1}
.selection-box small{display:block;font-size:7px;color:#85877b;margin-bottom:5px}
.selection-box strong{display:block;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stage-bottom .primary-button,.stage-bottom .zoom-controls{box-shadow:var(--control-shadow)}
.stage-bottom .primary-button:active:not(:disabled){transform:none;box-shadow:var(--control-shadow)}
.stage-bottom[data-editor-mode=buy]{align-items:center}
.catalog-strip{display:flex;align-items:center;gap:6px;flex:1;min-width:0;pointer-events:auto}
.catalog-track{--catalog-card-size:96px;display:flex;align-items:flex-start;flex:1;min-width:0;gap:8px;overflow-x:auto;overflow-y:hidden;padding:14px 4px 4px 0;scrollbar-width:none;touch-action:pan-x;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
.catalog-track::-webkit-scrollbar{display:none}
.catalog-track .product-card,.catalog-track .catalog-overview-button{width:var(--catalog-card-size);height:var(--catalog-card-size);min-width:0;min-height:0;flex:0 0 var(--catalog-card-size);aspect-ratio:1;scroll-snap-align:start}
.product-card,.catalog-overview-button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px;border:1.5px solid var(--ink);background:#f5f3ec;box-shadow:2px 2px 0 var(--ink);user-select:none;touch-action:pan-x}
.product-card img{display:block;width:100%;height:0;min-height:0;flex:1;object-fit:contain;pointer-events:none}
.product-card>svg{width:65%;height:0;min-height:0;flex:1}
.product-card>span{font-size:9px;line-height:1.2;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}
.product-card:hover:not(:disabled),.product-card[aria-expanded=true],.catalog-overview-button:hover:not(:disabled),.catalog-overview-button[aria-expanded=true]{border-color:var(--orange)}
.product-card::before,.catalog-overview-button::before{content:'';display:none;position:absolute;left:50%;top:-11px;transform:translateX(-50%);border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:8px solid var(--ink);pointer-events:none}
.catalog-overview-button{font-size:9px;font-weight:700;gap:3px;padding:4px}
.catalog-overview-button>span:last-child{max-width:100%;font-size:clamp(7px,1.8vw,10px);white-space:nowrap}
.catalog-arrow{flex:0 0 26px;width:26px;height:44px;padding:0;display:grid;place-items:center;border:1.5px solid var(--ink);background:#faf9f3;font-size:25px}
.catalog-overview-grid{grid-template-columns:repeat(auto-fill,var(--catalog-card-size,96px));justify-content:start;gap:12px}
.catalog-overview-grid .product-card{aspect-ratio:1;width:var(--catalog-card-size,96px);height:var(--catalog-card-size,96px);min-width:0;min-height:0;touch-action:pan-y;padding:4px}
.catalog-overview-grid .product-card>small{font-size:9px;flex-shrink:0}
.catalog-overview-grid .product-card>span{white-space:nowrap;text-align:center}
.lighting-options{display:grid;gap:7px}
.lighting-option{cursor:pointer;display:flex;align-items:center;gap:10px;min-width:0;min-height:36px;padding:0;border:0;background:transparent}
.lighting-icon-button{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:5px;border:1.5px solid var(--ink);background:#faf9f3}
.lighting-icon-button svg{width:22px;height:22px}
.lighting-icon-button[aria-pressed=true]{background:#ffdac4;box-shadow:2px 2px 0 var(--ink)}
.lighting-option:hover .lighting-icon-button:not(:disabled),.lighting-icon-button:focus-visible{background:#fff0e6}
.lighting-option>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.lighting-option strong{font-size:11px;line-height:1.2}
.lighting-option small{font-size:9px;line-height:1.2;color:#65665f}
@media(hover:hover) and (pointer:fine){
 .mode-button[aria-pressed=true]:hover:not(:disabled)::after{display:block}
 .catalog-track .product-card:hover:not(:disabled):not([aria-expanded=true])::before,.catalog-overview-button:hover:not(:disabled):not([aria-expanded=true])::before{display:block}
}
@media(min-width:761px) and (max-width:1100px){
 .stage-bottom{left:calc(var(--sidebar-space) - var(--sidebar-peek) + 52px);right:12px;gap:8px}
 .stage-bottom .primary-button{width:43px;padding:0;flex-shrink:0}
 .stage-bottom .primary-button>span,.stage-bottom .primary-button>b,.stage-bottom .zoom-controls output{display:none}
 .stage-bottom .zoom-controls button{width:26px}
}
@media(max-width:760px){
 .workspace,.workspace.sidebar-collapsed{--sidebar-width:min(280px,calc(100vw - 146px));--sidebar-peek:30px;grid-template-columns:minmax(0,1fr);transition:none}
 .stage{grid-column:1;width:100%}
 .sidebar{position:absolute;inset:0 auto 0 0;grid-column:1}
 .sidebar-inner{padding:20px 40px 14px 10px;gap:12px}
 .mode-panel{padding-right:14px}
 .mode-panel .section-title h2{font-size:16px;line-height:1.3;letter-spacing:.3px}
 .mode-rail{left:calc(var(--sidebar-width) - 22px);gap:9px}
 .sidebar-collapsed .mode-rail{left:8px}
 #viewport,.loading{left:var(--sidebar-peek);right:0}
 .mode-button{width:44px;height:44px;padding:7px;display:grid;place-items:center}
 .mode-button svg{width:28px;height:28px}
 .mode-button[data-mode=interact] svg{width:20px;height:20px}
 .mode-title{display:none}
 .workspace:not(.sidebar-collapsed) .mode-button::after{left:-10px;border-top-width:6px;border-bottom-width:6px;border-right-width:8px}
 .workspace.sidebar-collapsed .mode-button::after{right:-10px;border-top-width:6px;border-bottom-width:6px;border-left-width:8px}
 .sidebar-scrim:not([hidden]){display:block;position:absolute;z-index:3;left:var(--sidebar-width);right:0;top:0;bottom:0;border:0;padding:0;background:transparent;touch-action:manipulation}
 .furniture-dragging .sidebar-scrim{pointer-events:none}
 .stage-bottom,.sidebar-collapsed .stage-bottom{left:42px;right:12px;bottom:14px;display:grid;grid-template-columns:minmax(0,1fr) 43px auto;gap:8px;align-items:stretch}
 .selection-box{width:100%;max-width:100%;height:43px;gap:5px;padding:5px}
 .selection-box small{font-size:6px;margin-bottom:3px}
 .selection-box strong{font-size:9px}
 .stage-bottom[data-editor-mode=buy],.sidebar-collapsed .stage-bottom[data-editor-mode=buy]{display:block;left:42px;right:12px;bottom:12px;padding:6px;background:#fff;border:1.5px solid var(--ink);box-shadow:var(--control-shadow);z-index:9;pointer-events:auto}
 .stage-bottom[data-editor-mode=buy] .zoom-controls{display:none}
 .catalog-strip{gap:4px}
 .catalog-track{--catalog-card-size:64px;gap:6px;padding:0 4px 4px 0}
 .catalog-arrow{flex-basis:20px;width:20px;height:44px;font-size:22px}
 .catalog-track .product-card>span{font-size:8px}
 .catalog-overview-button{gap:3px}
 .workspace[data-mode=buy] .sidebar-inner{padding-bottom:var(--catalog-dock-clearance)}
 .lighting-option{gap:7px;min-height:34px}
 .lighting-icon-button{flex-basis:32px;width:32px;height:32px;padding:4px}
 .lighting-icon-button svg{width:20px;height:20px}
 .lighting-option strong{font-size:10px}
 .lighting-option small{font-size:8px}
}
@media(prefers-reduced-motion:reduce){.workspace,.mode-rail,.sidebar{transition:none}.catalog-track{scroll-behavior:auto}}
body.vr-active .sidebar,body.vr-active .mode-rail,body.vr-active .stage-bottom{display:none!important}
body.vr-active .workspace{position:fixed;z-index:1000;inset:0;display:block;width:100%;height:100%;min-height:100%;overflow:hidden;background:#111}
body.vr-active .stage{position:absolute;inset:0;width:100%;height:100%;display:block;background:#111}
.lamp-colors{display:flex;align-items:center;gap:7px;margin:2px 0 12px;flex-wrap:wrap}
.lamp-color{display:block;width:24px;height:24px;flex:0 0 24px;border-radius:50%;padding:0;background:var(--swatch);border:2px solid transparent;box-shadow:inset 0 0 0 1px #0002}
.lamp-color[aria-pressed=true]{border-color:#000;box-shadow:0 0 0 1px #fff}
.lamp-color:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.product-context{max-height:calc(100dvh - 24px);overflow-y:auto}
@media(max-width:760px){.lamp-colors{gap:5px}.lamp-color{width:22px;height:22px;flex-basis:22px}}
.product-context-copy{padding-right:0}
.product-context-copy>strong{padding-right:25px}

.object-button>span:not(.object-icon){min-width:0}
.object-button strong,.object-button small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){.category-button{gap:8px;padding:10px 8px}.object-icon{width:28px;height:30px}.object-icon svg{width:23px;height:23px}}

/* 0.1.15 controls share the existing sidebar and dock geometry. */
.object-number{border:0;padding:0;cursor:pointer}
.object-number[aria-pressed=true]{background:var(--orange);color:#000}
.object-number:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
/* A compact two-row card. Height is beside the title, colours beside power. */
.object-row.lamp-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(76px,1fr) 26px;grid-template-rows:minmax(44px,auto) 38px;gap:0 4px;padding:0;min-height:82px}
.lamp-row>.object-button{grid-column:1;grid-row:1;min-height:44px;height:100%;padding:4px 2px 4px 7px;display:flex;align-items:center}
.lamp-row>.object-button{gap:5px}
.lamp-row>.object-button>span:last-child{min-width:0}
.lamp-row>.object-button .object-icon{display:grid;flex:0 0 24px;width:24px;height:28px}
.lamp-row>.object-button .object-icon svg{width:20px;height:22px}
.lamp-row>.object-button small{display:block;font-size:9px;margin-top:3px}
.lamp-row>.object-button strong{white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.2}
.lamp-row>.object-number{width:26px;height:26px}
.lamp-row>.delete-object{position:static;grid-column:3;grid-row:2;align-self:stretch;width:26px;min-height:0;height:auto;padding:4px;border-left:1px solid var(--ink);border-top:1px solid var(--ink);background:transparent}
.object-row.lamp-row:has(.object-button[aria-pressed=true]){background:#cfe5b4}
.lamp-row-controls{grid-column:1 / 3;grid-row:2;display:grid;grid-template-columns:28px minmax(0,1fr);gap:5px;align-items:center;min-width:0;padding:0 3px 3px 5px}
.lamp-power{display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;border:0;background:transparent;padding:2px 0;min-height:32px}
.lamp-power-dot{width:12px;height:12px;border-radius:50%;background:#aaa;border:1px solid #777}
.lamp-power[aria-pressed=true] .lamp-power-dot{background:#ffda38;border-color:#a18420}
.lamp-power small{font-size:9px}
.lamp-row-colors{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0}
.lamp-row-colors .lamp-color{flex:0 1 20px;width:20px;height:auto;aspect-ratio:1;min-width:0;max-width:20px;max-height:20px}
.lamp-height{grid-column:2;grid-row:1;align-self:center;justify-self:center;width:76px;max-width:100%;min-width:0}
.lamp-height>span{text-align:center;font-size:9px;font-weight:700;display:block;margin-bottom:2px}
.lamp-height-stepper{display:grid;grid-template-columns:20px minmax(0,1fr) 20px;align-items:center;border:1px solid var(--ink);background:#fff}
.lamp-height-stepper button{min-height:24px;border:0;background:transparent;padding:0;font-size:16px}
.lamp-height-stepper button:hover:not(:disabled){background:#ffdac4}
.lamp-height-stepper output{font-size:9px;text-align:center;white-space:nowrap}
.object-row.outside-stand,.object-row.outside-stand:has(.object-button[aria-pressed=true]){background:#f6c9c3}
.object-row.outside-stand .object-icon{border-color:#ba463a}
.selection-dot.outside-stand{background:#d64636}
.catalog-overview-button>svg{display:block;width:54%;height:0;min-height:0;flex:1;pointer-events:none}
.product-context-visual{width:100%;height:auto;min-height:0;aspect-ratio:1;align-self:center;position:relative;overflow:hidden}
.product-context-visual canvas,.product-context-visual img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain}
#helpPanel{position:fixed;z-index:2000;top:16px;right:24px;pointer-events:auto}
#helpPanel summary{width:41px;justify-content:center;padding:0}
#helpPanel .help-label,#helpPanel .disclosure{display:none}
#helpPanel .legend-content{width:min(390px,calc(100vw - 28px));max-height:calc(100dvh - 96px);overscroll-behavior:contain}
#helpPanel .legend-row{align-items:flex-start;padding:8px 0;min-height:0}
#helpPanel .help-feature-icon{width:25px;height:28px;flex:0 0 25px;fill:none;stroke:currentColor;stroke-width:1.7}
#helpPanel .legend-row small{display:block;line-height:1.5}
.feature-help{border-bottom:1px solid var(--line);padding-bottom:6px;margin-bottom:5px}
.stage-top{right:78px}
body.vr-active #helpPanel{display:none}
@media(min-width:761px){
 .brand,.sidebar-collapsed .brand{height:78px;top:16px;left:50%;transform:translateX(-50%);font-size:clamp(30px,3.4vw,48px);line-height:1;white-space:nowrap}
 .selection-box{height:62px;flex-basis:280px;gap:10px;padding:10px}
 .selection-box small{font-size:10px;margin-bottom:5px}
 .selection-box strong{font-size:14px}
 .selection-box .selection-dot{width:10px;height:10px}
 .selection-box .icon-button{width:36px;height:36px}
}
@media(min-width:761px) and (max-width:1000px){.brand,.sidebar-collapsed .brand{font-size:24px}.selection-box{padding:7px;gap:6px}.selection-box strong{font-size:12px}}
@media(max-width:760px){
 #helpPanel{right:12px}
 #helpPanel summary{width:44px;height:44px}
 .stage-top{right:68px}
 .workspace.sidebar-open .stage-top{right:calc((100vw - var(--sidebar-width) - 122px)/2 + 56px)}
 .stage-bottom[data-editor-mode=interact]{z-index:2}
 .workspace[data-mode=interact] .sidebar-inner{padding-bottom:84px}
 .object-row.lamp-row{grid-template-columns:minmax(0,1fr) minmax(52px,1fr) 26px;column-gap:2px}
 .lamp-row>.object-button{padding-left:4px;gap:3px}
 .lamp-row>.object-button .object-icon{flex-basis:16px;width:16px;height:24px}
 .lamp-row>.object-button .object-icon svg{width:14px;height:20px}
 .lamp-row>.object-button small{font-size:8px}
 .lamp-height{width:52px}
 .lamp-row>.object-button strong{font-size:9px}
 .lamp-height-stepper{grid-template-columns:12px minmax(0,1fr) 12px}
 .lamp-height-stepper output{font-size:8px}
 .lamp-row-controls{grid-template-columns:23px minmax(0,1fr);gap:3px;padding-left:3px}
 .lamp-row-colors{gap:2px}
 .lamp-row-colors .lamp-color{flex-basis:16px;max-width:16px}
 .catalog-overview-grid .product-card>span{font-size:8px}
}


body.vr-active #viewport{left:0;right:0}
@media(max-width:760px){.brand,.sidebar-collapsed .brand{left:50%;transform:translateX(-50%)}}

/* Sidebar wall choices and the visibility switch share the existing controls. */
.layout-controls{display:flex;flex-direction:column;gap:8px;min-width:0;margin-bottom:18px}
.layout-controls button{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;width:100%;height:auto;min-height:44px;padding:0;border:0;background:transparent;text-align:left;box-shadow:none;font-size:11px}
.layout-controls button>span{display:block}
.layout-controls .layout-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1.5px solid var(--ink);background:#faf9f3;box-shadow:2px 2px 0 var(--ink)}
.layout-controls .layout-label{min-width:0;overflow-wrap:anywhere}
.layout-controls button[aria-pressed=true]{background:transparent;box-shadow:none}
.layout-controls button[aria-pressed=true] .layout-icon{background:var(--orange)}
.layout-controls button:hover .layout-icon{border-color:var(--orange)}
.wall-visibility{display:grid;place-items:center;width:51px;height:51px;padding:8px;border:1.5px solid var(--ink);background:#faf9f3;box-shadow:var(--control-shadow)}
.wall-visibility[hidden]{display:none}
.wall-visibility svg{width:25px;height:25px}
.wall-visibility:active{transform:none;box-shadow:var(--control-shadow)}
@media(min-width:761px){.loading{left:calc(var(--sidebar-space) - var(--sidebar-peek))}}
@media(max-width:760px){
 .workspace{--mobile-action-width:clamp(74px,24vw,99px)}
 .stage-bottom[data-editor-mode=interact]{grid-template-columns:minmax(0,1fr) var(--mobile-action-width) var(--mobile-action-width)}
 .stage-bottom[data-editor-mode=booth]{grid-template-columns:var(--mobile-action-width) 43px var(--mobile-action-width);justify-content:space-between}
 #rotateRoom,.stage-bottom .zoom-controls{width:var(--mobile-action-width);height:43px;min-width:0;box-shadow:var(--control-shadow)}
 #rotateRoom{padding:4px;gap:4px}
 #rotateRoom>span{display:block;font-size:9px;line-height:1.15;white-space:normal}
 #rotateRoom>b{display:none}
 #rotateRoom svg{width:17px;height:17px;flex-shrink:0}
 .stage-bottom .zoom-controls button,.stage-bottom .zoom-controls button:last-child{flex:1;min-width:0;width:auto;padding:3px}
 .stage-bottom .zoom-controls output{display:none}
 .wall-visibility{width:43px;height:43px}
 .layout-controls button{gap:7px;font-size:10px}
 .layout-controls .layout-icon{flex-basis:34px;width:34px;height:34px}
}

/* 0.2.3 shared application controls and gesture policy. */
html,body,.workspace,.mb-legal-footer,#helpPanel{touch-action:pan-x pan-y}
.sidebar-inner,.legend-content,.catalog-overview-content,.product-context-copy,.mb-legal-dialog{touch-action:pan-y;overscroll-behavior:contain}
#viewport,#viewport canvas{touch-action:none}
.catalog-track{touch-action:pan-x}
button,a,summary{touch-action:pan-x pan-y}
#helpPanel{z-index:6200}
#helpPanel .legend-content{overflow-y:auto}
.stage-top{z-index:4100}
.vr-placement-panel{position:fixed;z-index:6100;max-height:calc(100dvh - 100px);overflow-y:auto;touch-action:pan-y}
body.vr-selecting .catalog-overview,body.vr-selecting .product-context,body.vr-selecting .stage-bottom{display:none!important}
.help-mode-explanation{display:flex;align-items:flex-start;gap:12px}
.help-mode-explanation svg{width:30px;height:30px;flex:0 0 30px;fill:none;stroke:currentColor;stroke-width:1.7}
.help-mode-explanation p{margin:0}
.help-modes-intro{font-size:12px;line-height:1.5;margin:0 0 14px}
.help-divider{border:0;border-top:1px solid var(--ink);margin:16px 0}
.mb-legal-footer .language-button,.mb-legal-footer .language-button span{color:#000!important}
.mb-legal-footer .version .vr-version-badge{background:var(--orange);color:var(--ink)}
.layout-controls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.layout-controls button{flex-direction:column;justify-content:flex-start;gap:7px;text-align:center;min-width:0;font-size:9px;line-height:1.2}
.layout-controls .layout-icon{width:38px;height:38px;flex:0 0 38px}
.layout-controls .layout-label{width:100%;overflow-wrap:anywhere}
.catalog-search{padding:0 16px 12px;display:grid;grid-template-columns:1fr auto;gap:6px 10px;align-items:center}
.catalog-search[hidden]{display:none}
.catalog-search label{grid-column:1 / -1;font-size:11px;font-weight:700}
.catalog-search input{width:100%;min-width:0;padding:9px 10px;background:#fff;border:1.5px solid var(--ink);font:inherit;font-size:16px}
.catalog-search output{font-size:10px}
.catalog-overview.catalog-all-overview{--catalog-card-size:96px}
.catalog-all .catalog-strip,.catalog-all .stage-bottom[data-editor-mode=buy]{display:none!important}
.catalog-all[data-mode=buy] .sidebar-inner{padding-bottom:26px}
.catalog-more{display:block;margin:16px auto 8px;border:1.5px solid var(--ink);background:#fff;padding:10px 16px;box-shadow:var(--control-shadow)}
.catalog-more[hidden],#catalogNoResults[hidden]{display:none}
#catalogNoResults{padding:16px;font-size:13px}
.product-context-copy{max-height:65dvh;overflow:auto;overscroll-behavior:contain}
.product-specifications{font-size:11px;line-height:1.5;white-space:normal}
.product-specifications dl{display:grid;grid-template-columns:minmax(70px,1fr) 1.5fr;gap:5px 10px}
.product-specifications dt{font-weight:700}.product-specifications dd{margin:0}
.product-context-visual img{width:100%;height:100%;object-fit:contain}
.vr-quality{display:flex;align-items:center;gap:10px;margin:12px 0 5px;font-size:12px}
.vr-quality select{margin-left:auto;max-width:60%;border:1.5px solid var(--ink);padding:6px;background:#fff;font-size:16px}
.vr-quality-hint{font-size:11px;line-height:1.4;margin:5px 0}
@media(max-width:760px){
 .workspace.sidebar-start-hint.sidebar-collapsed .mode-button[data-mode=booth]::after{display:block;opacity:1;visibility:visible;animation:sidebar-hint 2.4s ease-in-out infinite}
 .layout-controls{gap:4px}.layout-controls .layout-icon{width:30px;height:30px;flex-basis:30px}.layout-controls .layout-icon svg{width:22px;height:22px}
 .layout-controls button{font-size:8px;gap:6px}
 input,select,textarea{font-size:16px!important}
 .catalog-search{grid-template-columns:minmax(0,1fr);padding:0 10px 10px}.catalog-search label,.catalog-search output{grid-column:1}
 .catalog-overview.catalog-all-overview{--catalog-card-size:clamp(76px,22vw,96px)}
 .vr-placement-panel{left:58px;right:12px;bottom:20px;width:auto;max-height:calc(100dvh - 100px)}
}
@keyframes sidebar-hint{0%,100%{opacity:1}50%{opacity:.15}}
@media(prefers-reduced-motion:reduce){.workspace.sidebar-start-hint.sidebar-collapsed .mode-button[data-mode=booth]::after{animation:none}}

/* Overview stays usable over the narrow mobile sidebar; both top buttons stay above it. */
.catalog-overview .product-card{touch-action:pan-y}
.mode-panel{touch-action:pan-y}
.catalog-search{flex-shrink:0}

/* 0.2.5: compact controls for both mobile orientations, with an expanded landscape sidebar. */
@media (max-width:1100px) and (orientation:landscape) and (pointer:coarse){
 .workspace{--sidebar-width:280px;--sidebar-peek:30px}
 .mode-rail{left:calc(var(--sidebar-width) - 22px);gap:9px}
 .sidebar-collapsed .mode-rail{left:8px}
 .mode-button{width:44px;height:44px;padding:7px;display:grid;place-items:center}
 .mode-button svg{width:28px;height:28px}
 .mode-button[data-mode=interact] svg{width:20px;height:20px}
 .mode-title{display:none}
 .sidebar-inner{padding:20px 40px 14px 10px;gap:12px}
 .mode-panel{padding-right:14px}
 .workspace:not(.sidebar-collapsed) .mode-button::after{left:-10px;border-top-width:6px;border-bottom-width:6px;border-right-width:8px}
 .workspace.sidebar-collapsed .mode-button::after{right:-10px;border-top-width:6px;border-bottom-width:6px;border-left-width:8px}
 .workspace .mode-button::after{animation:none}
}
@media (max-width:760px) and (orientation:portrait){
 .workspace.sidebar-collapsed .mode-button::after{right:-22px;border-top-width:19px;border-bottom-width:19px;border-left-width:12px}
}

/* Apply the initial collapsed state without measuring an in-flight transition. */
.workspace:not([data-ready]) .sidebar,.workspace:not([data-ready]) .mode-rail{transition:none}

/* Exactly three favorite choices below wall design. */
.wall-favorites{display:flex;gap:10px;margin:6px 0 10px}
.wall-favorites button{width:44px;height:44px;border:1.5px solid var(--ink);box-shadow:2px 2px 0 var(--ink);background:#faf9f3;font-size:16px;font-weight:bold}
.wall-favorites button:hover:not(:disabled){background:var(--orange)}
.wall-save-favorite{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:14px}
.wall-save-favorite select{font-size:16px;padding:8px;border:1.5px solid #222;background:white}
.wall-favorite-note{flex-basis:100%;line-height:1.4}

/* Equal rhythm between stand sections, regardless of previous content. */
.mode-panel[data-panel="booth"] .panel-subtitle{margin:24px 0 12px}
.mode-panel[data-panel="booth"] .dimensions-heading{margin-top:16px}
.mode-panel[data-panel="booth"] #systemNotice,.mode-panel[data-panel="booth"] .layout-controls{margin-bottom:0}
.mode-panel[data-panel="booth"] #boothManufacturer{height:34px;min-height:34px;padding:4px 30px 4px 10px;box-shadow:3px 3px 0 var(--ink)}
.loading.system-loading{z-index:30}

/* System changes keep the environment visible; only the animated M is overlaid. */
.loading.system-loading{inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:112px;height:112px;padding:8px;background:transparent;pointer-events:none;z-index:30}
.loading.system-loading>span:not(.loading-mark),.loading.system-loading>strong{display:none}

@media(prefers-reduced-motion:reduce){.sidebar,.mode-rail{transition:none}.sidebar-collapsed .sidebar-inner{transition-delay:0s}}

.catalog-overview-button{display:grid;place-items:center;font-size:15px;font-weight:900;text-align:center}.catalog-overview-button svg{display:none}.lighting-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.size-stepper{display:flex;align-items:center;gap:4px}.size-stepper input{min-width:0;width:100%}.size-stepper button{min-width:28px;min-height:32px;background:#fff;border:1px solid #111;font:inherit;cursor:pointer}.lamp-settings{display:grid;gap:7px;padding:8px 0}.lamp-settings label{display:grid;gap:4px;font-size:11px}.lamp-settings input{width:100%;accent-color:#f28a2b}.product-variant{width:100%;min-height:36px;border:2px solid #111;background:#fff;font:inherit;padding:4px}
/* Compact fixture controls span the whole furniture tile. */
.object-row.lamp-row{grid-template-columns:minmax(0,1fr) 28px 28px;grid-template-rows:auto auto auto;min-height:0;padding:0 4px 4px;gap:2px}
.lamp-row>.object-button{grid-column:1;grid-row:1;padding:5px;min-height:38px}.lamp-row>.object-number{grid-column:2;grid-row:1;align-self:center}.lamp-row>.delete-object{grid-column:3;grid-row:1;border-top:0;height:30px;align-self:center}.lamp-row-controls{grid-column:1/-1;grid-row:2;display:flex;padding:0 5px;gap:8px}.lamp-power{width:auto;min-width:38px}.lamp-power small{display:inline}.lamp-power-dot{display:none}.lamp-row>.lamp-settings{grid-column:1/-1;grid-row:3;padding:2px 5px;gap:3px}.lamp-row .lamp-settings label{gap:0;font-size:10px}.lamp-row .lamp-settings input{height:15px;margin:0;width:100%;min-width:0}.wall-favorites{gap:8px}.wall-favorites button{width:32px;height:28px;font-size:12px;box-shadow:none;border:1px solid var(--ink)}
.workspace.furniture-dragging .sidebar{pointer-events:none}.workspace.furniture-dragging #trashArea{pointer-events:auto}

.wall-favorites button{width:38px;height:38px;border:1.5px solid var(--ink);font-size:14px}@media(max-width:760px){.wall-favorites button{width:30px;height:30px;font-size:12px}}
/* 0.2.14: readable controls, aligned actions and compact lamp tiles. */
#systemNotice,.price-note{display:none!important}
.mode-panel[data-panel=booth] .dimensions-heading{font-size:11px;margin:14px 0 8px}
.layout-controls{gap:4px}.layout-controls button{gap:4px}
.stage-bottom,.stage-bottom[data-editor-mode=buy]{align-items:flex-end}.stage-bottom .zoom-controls{align-self:end}
.category-list{grid-template-columns:minmax(0,1fr);gap:7px}.category-list .category-button{min-width:0;grid-column:auto}
.product-context{overflow-x:hidden;max-width:calc(100vw - 24px)}
.product-context-visual{align-self:start;min-width:0}
.product-context-copy{overflow-x:hidden;overflow-wrap:anywhere;max-width:100%}.product-specifications,.product-specifications label{min-width:0;max-width:100%;display:block}.product-specifications select{max-width:100%}
.object-row.lamp-row{grid-template-columns:44px minmax(0,1fr) 28px;grid-template-rows:32px minmax(47px,auto);padding:0;gap:0 4px;min-height:82px;cursor:pointer}
.lamp-row>.object-button{grid-column:1/3;grid-row:1;min-height:32px;padding:3px 5px;gap:7px}
.lamp-row>.object-button .object-icon{width:34px;flex-basis:34px;height:25px;border:0;background:none}
.lamp-row>.object-button .object-icon svg{width:22px;height:22px}
.lamp-row>.object-button strong{font-size:11px}.lamp-row>.object-button small{display:none}
.lamp-row>.object-number{position:static;grid-column:3;grid-row:1;align-self:start;width:28px;height:26px}
.lamp-row>.delete-object{position:static;grid-column:3;grid-row:2/-1;align-self:stretch;width:28px;height:auto;border:1px solid #111;min-height:40px;background:#faf9f3}
.lamp-row-controls{display:contents}.lamp-row-controls>.lamp-power{grid-column:1;grid-row:2;align-self:center;width:44px;padding:3px;gap:3px}
.lamp-power-dot{display:block}.lamp-power small{display:block;text-align:center}
.lamp-row>.lamp-settings{grid-column:2;grid-row:2;padding:2px 4px 4px 0;gap:2px;min-width:0}
.lamp-row .lamp-settings label{font-size:10px;min-width:0}.lamp-row .lamp-settings input{height:16px;width:100%;min-width:0;margin:0}
.lamp-row.bulb-row{grid-template-rows:32px 29px 23px}.bulb-row .lamp-power{grid-row:2/4}.bulb-row .lamp-height{grid-column:2;grid-row:2;width:100%;padding-right:4px;display:flex;align-items:center;gap:5px}.bulb-row .lamp-height>span{margin:0;flex:1;text-align:left}.bulb-row .lamp-height-stepper{width:90px}.bulb-row .lamp-row-colors{grid-column:2;grid-row:3;justify-content:flex-start;padding:2px 0 4px}
.floor-section{margin:20px 0}.floor-section h3{font-size:13px}.floor-section select{width:100%;padding:7px;border:1.5px solid #111;background:#fff;font:inherit}.floor-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.floor-option{display:flex;align-items:center;gap:6px;min-width:0;padding:5px;border:1px solid #111;background:#fff;text-align:left;font:inherit;font-size:10px;overflow-wrap:anywhere;cursor:pointer}.floor-option img{width:38px;height:38px;flex:0 0 38px;object-fit:cover;border:1px solid #111}.floor-option[aria-pressed=true]{background:#ffdac4;box-shadow:2px 2px 0 #111}.floor-raised{display:flex;align-items:center;gap:8px;font-size:12px}.floor-status{font-size:11px}
.lighting-option small{display:block;font-size:10px;line-height:1.4}.lighting-option{cursor:pointer;min-width:0}
.sidebar-inner,.mode-panel{min-width:0;overflow-x:hidden}.lamp-settings label{overflow-wrap:anywhere}
@media(max-width:760px),(max-width:1100px) and (orientation:landscape) and (pointer:coarse){.workspace,.workspace.sidebar-collapsed{--sidebar-width:min(340px,calc(100vw - 42px))}.sidebar-inner{padding-right:34px;padding-left:10px}.mode-panel{padding-right:7px}.object-row.lamp-row{grid-template-columns:40px minmax(0,1fr) 28px}.lamp-row-controls>.lamp-power{width:40px}.lamp-row>.object-button .object-icon{width:30px;flex-basis:30px}}

.mode-panel[data-panel=booth] #wallCountTitle{font-size:11px;margin:14px 0 8px}

.category-list .category-button>span{min-width:0;overflow-wrap:anywhere}.selection-box .icon-button{flex-shrink:0}

/* 0.2.15: bounded furniture labels and a permanent, non-scrolling trash target. */
.workspace{--sidebar-width:392px}
.mode-panel[data-panel=interact]{display:flex;flex-direction:column;overflow:hidden;padding-bottom:2px}
.mode-panel[data-panel=interact]>.section-title{flex:0 0 auto}
.mode-panel[data-panel=interact]>.object-list{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;padding:2px 5px 6px 0;scrollbar-gutter:stable}
.sidebar-inner>.trash-area{flex:0 0 auto;margin-top:8px;padding-top:0}
.object-row{width:100%;max-width:100%;min-width:0;flex-shrink:0}
.object-button{max-width:100%;overflow:hidden}
.object-button>span:last-child{min-width:0;flex:1;overflow:hidden}
.object-button strong,.object-button small{max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.object-icon{flex-shrink:0}
.object-row.lamp-row{display:grid;grid-template-columns:44px minmax(0,1fr) 30px;grid-template-rows:32px 50px;padding:0;min-height:82px}
.lamp-row>.object-number{width:30px;height:27px}
.object-row .delete-object{width:30px;height:40px;min-height:40px;top:auto;bottom:0;border:1px solid var(--ink);align-self:end}
.object-row.lamp-row>.delete-object{width:30px;height:40px;min-height:40px;align-self:end;grid-row:2}
.lamp-row.bulb-row{grid-template-columns:44px minmax(0,1fr) 96px 30px;grid-template-rows:32px 50px}
.bulb-row>.object-button{grid-column:1/3}
.bulb-row>.object-number{grid-column:4}
.bulb-row>.delete-object{grid-column:4}
.bulb-row .lamp-height{grid-column:3;grid-row:1;align-self:center;padding:0;min-width:0;width:96px}
.bulb-row .lamp-height>span{display:none}
.bulb-row .lamp-height-stepper{width:96px}
.bulb-row .lamp-power{grid-column:1;grid-row:2}
.bulb-row .lamp-row-colors{grid-column:2/4;grid-row:2;align-self:center;justify-content:flex-start;min-width:0;gap:5px}
@media(max-width:760px),(max-width:1100px) and (orientation:landscape) and (pointer:coarse){
 .workspace,.workspace.sidebar-collapsed{--sidebar-width:min(368px,calc(100vw - 32px))}
 .sidebar-inner{padding-left:8px;padding-right:28px}.mode-panel{padding-right:3px}
 .object-row.lamp-row{grid-template-columns:38px minmax(0,1fr) 30px}
 .lamp-row.bulb-row{grid-template-columns:38px minmax(0,1fr) 84px 30px}
 .bulb-row .lamp-height,.bulb-row .lamp-height-stepper{width:84px}.lamp-row-controls>.lamp-power{width:38px}
}
@media(max-height:520px){.sidebar-inner>.trash-area{margin-top:4px}.trash-drop{min-height:54px;gap:2px;padding:4px}.trash-drop svg{width:24px;height:24px}}

/* 0.2.16: unused list height must not stretch grid rows. Shared delete geometry. */
.mode-panel[data-panel=interact]>.object-list{align-content:start;grid-auto-rows:max-content}
.object-row:not(.lamp-row){height:68px;min-height:68px;box-sizing:border-box}
.object-row:not(.lamp-row)>.object-button{height:100%;min-height:0}
.object-row>.delete-object,.object-row.lamp-row>.delete-object{position:absolute;right:0;bottom:0;top:auto;width:30px;height:40px;min-height:40px;max-height:40px;box-sizing:border-box;margin:0;border:1px solid var(--ink);padding:5px}
