/* Base scene, dialogs and furniture styles. Editor layout lives in editor-layout.css. */
:root{--paper:#f3f0e8;--ink:#24251f;--muted:#77786f;--orange:#ff743d;--line:#d6d5cc;--green:#627a43;--sidebar-width:252px;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;height:100dvh;overflow:hidden}
body{display:flex;flex-direction:column}
button,a,summary{-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer;border-radius:0}
button:disabled{cursor:default;opacity:.4}
button:focus-visible,a:focus-visible,summary:focus-visible,#viewport:focus-visible{outline:3px solid #577742;outline-offset:4px}
button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}
.brand{position:absolute;z-index:2;top:16px;left:77px;display:inline-flex;font-size:33px;line-height:1.2;font-weight:850;letter-spacing:-1.4px;color:var(--ink);text-decoration:none;isolation:isolate}
.sidebar-collapsed .brand{left:62px}
.brand span{position:relative}
.brand span::after{content:'';position:absolute;left:0;right:-3px;bottom:0;height:8px;background:var(--orange);z-index:-1;transform:rotate(-3deg)}
.sidebar-toggle{position:absolute;z-index:6;top:16px;left:calc(var(--sidebar-width) - 28px);display:grid;place-items:center;width:40px;height:42px;padding:9px;background:#e1e2dc;color:#696d63;border:1px solid #a8aca1;border-radius:3px;box-shadow:none;transition:left .22s ease,background .15s}
.sidebar-collapsed .sidebar-toggle{left:8px}
.sidebar-toggle svg{width:20px;height:20px;stroke-width:1.5}
.sidebar-toggle:hover{background:#d3d6cc;color:#3c4238}
.sidebar-toggle:active{background:#cbd0c3}
.sidebar-toggle .sidebar-arrow{transform:translateX(31px) scaleX(-1)}
.sidebar-collapsed .sidebar-toggle .sidebar-arrow{transform:none}
.sidebar-toggle::after{content:attr(data-tooltip);position:absolute;top:calc(100% + 8px);left:0;padding:7px 9px;background:#454a40;color:#fff;font:11px Arial,sans-serif;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden}
@media(hover:hover){
.sidebar-toggle:hover::after{opacity:1;visibility:visible}
}
.sidebar-toggle:focus-visible::after{opacity:1;visibility:visible}
.section-title,.dimensions,.mb-legal-footer{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;letter-spacing:1px}
.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.section-title h2{font-size:10px;text-transform:uppercase;margin:0}
.section-title>span{border:1px solid var(--ink);padding:2px 4px;font-size:9px}
.object-list{display:grid;gap:9px}
.object-button{display:flex;align-items:center;text-align:left;gap:10px;padding:9px;background:#faf9f4;border:1.5px solid var(--ink);min-height:61px;transition:background .15s,box-shadow .15s,transform .15s}
.object-button:hover:not(:disabled){background:#e9ebdf;transform:translateY(-1px)}
.object-button[aria-pressed=true]{background:#e3ebd4;box-shadow:3px 3px 0 var(--ink);border-width:2px}
.object-icon{width:35px;height:35px;display:grid;place-items:center;background:#eae8df;border:1px solid #d7d5cb;flex-shrink:0}
.object-icon svg{width:27px;height:27px;stroke-width:1.3}
.object-button strong{font-size:11px;display:block;margin-bottom:5px}
.object-button small{font-size:9px;color:#707168;display:block}
.object-number{margin-left:auto;font:9px ui-monospace,monospace;color:#808177}
.legend{background:#f9f7f0;border:1.5px solid var(--ink);box-shadow:3px 3px 0 var(--ink)}
.legend summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;list-style:none;padding:9px 10px;font-size:10px;font-weight:700}
.legend summary::-webkit-details-marker{display:none}
.legend summary>span:first-child{display:flex;align-items:center;gap:7px}
.help-icon{display:inline-grid;place-items:center;width:16px;height:16px;border:1.5px solid var(--ink);font-size:9px}
.disclosure{font-size:17px;font-weight:400;line-height:16px}
.legend[open] .disclosure{transform:rotate(45deg)}
.legend-content{border-top:1px solid var(--line);padding:6px 10px 9px}
.legend-row{display:flex;gap:9px;align-items:center;min-height:39px}
.legend-row strong{display:block;font-size:9px;margin-bottom:3px}
.legend-row small{font-size:9px;color:#737469}
.mouse-icon{height:25px;width:21px;fill:none;stroke:var(--ink);stroke-width:1.6;flex-shrink:0}
.mouse-icon .highlight{fill:var(--orange)}
.keyboard-hint{font-size:8px;line-height:1.6;border-top:1px solid var(--line);margin:7px 0 0;padding-top:7px;color:#77786f}
.touch-help{display:none;font-size:10px;line-height:1.5}
#viewport{position:absolute;inset:0;touch-action:none}
#viewport canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}
.stage-top{position:absolute;z-index:1;right:25px;top:34px;pointer-events:none}
.dimensions{font-size:10px;color:#6e7064}
.dimensions-area{margin-left:7px;color:#929485}
.selection-dot{height:7px;width:7px;background:#b6b8ab;border-radius:50%;flex-shrink:0}
.selection-dot.active{background:#73924d}
.icon-button{display:grid;place-items:center;border:1px solid #bfc2b4;background:transparent;width:31px;height:31px;flex-shrink:0;margin-left:auto;padding:3px}
.icon-button:hover:not(:disabled){background:#e3ebd4}
.primary-button{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--orange);border:2px solid var(--ink);height:51px;padding:0 16px;box-shadow:4px 4px 0 var(--ink);font-size:12px;font-weight:700;white-space:nowrap}
.primary-button b{font:10px ui-monospace,monospace;border-left:1px solid #b45632;padding-left:10px}
.primary-button:hover:not(:disabled){background:#ff8a57}
.primary-button:active:not(:disabled){transform:translate(3px,3px);box-shadow:1px 1px 0 var(--ink)}
.zoom-controls{display:flex;align-items:center;border:1.5px solid var(--ink);background:#faf9f3;height:41px;box-shadow:3px 3px 0 var(--ink);flex-shrink:0}
.zoom-controls button{border:0;background:none;width:34px;height:37px;padding:6px;font-size:20px;display:grid;place-items:center}
.zoom-controls button:hover{background:#e4e5db}
.zoom-controls output{font:10px ui-monospace,monospace;min-width:39px;text-align:center}
.zoom-controls button:last-child{border-left:1px solid var(--line);width:37px}
.zoom-controls svg{width:18px;height:18px}
.loading{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;background:#eeece5;padding:30px;text-align:center}
.loading[hidden]{display:none}
.loading-mark{display:grid;place-items:center;width:96px;height:96px;flex:0 0 96px;background:var(--orange);border:2px solid #000;box-shadow:5px 5px 0 #000;padding:5px;animation:pulse 1.5s infinite}
.loading-mark svg{display:block;width:100%;height:100%}
.loading-nojs .loading-mark{animation:none;color:#000;font-size:70px;line-height:1;font-weight:900;padding:0}
.loading-nojs strong{max-width:360px;font-size:16px;line-height:1.5}
.loading>span:last-child{font-size:12px;color:var(--muted)}
@keyframes pulse{50%{transform:translateY(-6px)}}
.mb-legal-footer{min-height:43px;flex-shrink:0;border-top:2px solid var(--ink);display:flex;justify-content:space-between;align-items:center;padding:7px 24px;gap:12px;font-size:9px;letter-spacing:.4px;color:#717366}
.version{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.version b{background:var(--ink);color:var(--paper);padding:5px 7px;font-weight:700;letter-spacing:.5px;line-height:1}
.mb-legal-footer nav{display:flex;gap:22px}
.mb-legal-footer a{text-decoration:none;color:#4d5043;font:10px Arial,sans-serif;letter-spacing:0}
.mb-legal-footer a:hover{text-decoration:underline}
.mb-legal-footer a span{color:var(--orange);font-weight:700;margin-left:3px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mb-legal-dialog{width:min(680px,calc(100% - 32px));max-height:85dvh;padding:0;border:3px solid var(--ink);border-radius:0;background:#faf9f4;color:var(--ink);box-shadow:8px 8px 0 var(--ink);overflow:hidden}
.mb-legal-dialog::backdrop{background:#22252a99;backdrop-filter:blur(3px)}
.mb-legal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 20px;background:var(--orange);border-bottom:3px solid var(--ink);font:700 12px ui-monospace,monospace;text-transform:uppercase;letter-spacing:.7px}
.mb-legal-close{width:34px;height:34px;flex-shrink:0;border:2px solid var(--ink);border-radius:0;background:var(--paper);box-shadow:3px 3px 0 var(--ink);display:grid;place-items:center}
.mb-legal-close:hover{background:white}
.mb-legal-close:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.mb-legal-close svg{width:18px;height:18px}
.mb-legal-scroll{overflow-y:auto;max-height:calc(85dvh - 76px);padding:12px 24px 26px;overscroll-behavior:contain}
.mb-legal-content{font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.mb-legal-content h1{font-size:29px;line-height:1.2;letter-spacing:-1px;margin:18px 0;font-weight:850}
.mb-legal-content h2{font-size:18px;line-height:1.35;margin-top:26px}
.mb-legal-content a{color:#a83a15;text-decoration-thickness:1px;text-underline-offset:3px}
.mb-legal-content address{font-style:normal}
.mb-legal-content label{display:block;margin:12px 0 5px;font-size:12px;font-weight:700}
.mb-legal-content input:not([type=checkbox]),.mb-legal-content textarea{display:block;width:100%;padding:11px;border:2px solid var(--ink);border-radius:0;background:white;box-shadow:3px 3px 0 #d3d2c7;font:inherit;margin-top:5px}
.mb-legal-content textarea{resize:vertical;min-height:110px}
.mb-legal-content input:focus-visible,.mb-legal-content textarea:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.mb-legal-content input[type=checkbox]{margin-right:8px;accent-color:var(--orange)}
.mb-legal-content button[type=submit]{border:2px solid var(--ink);border-radius:0;background:var(--orange);padding:12px 18px;box-shadow:4px 4px 0 var(--ink);font-weight:700}
.mb-legal-content button[type=submit]:active:not(:disabled){transform:translate(2px,2px);box-shadow:2px 2px 0 var(--ink)}
.mb-legal-content [data-contact-status],.mb-contact-hint{font-size:12px}
.mb-legal-content [data-state=error]{color:#9b261f}
.mb-contact-honeypot{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
@media(max-width:1080px){
.primary-button{padding:0 11px;gap:8px}
.primary-button b{display:none}
.zoom-controls button{width:29px}
.zoom-controls output{min-width:34px}
.zoom-controls button:last-child{width:32px}
}
@media(min-width:761px) and (max-width:900px){
.primary-button>span{display:none}
.primary-button{width:48px;padding:0}
.zoom-controls output{display:none}
}
@media(max-width:760px){
.brand,.sidebar-collapsed .brand{top:25px;left:62px;font-size:25px}
.brand span::after{height:7px}
.sidebar-toggle{top:16px;height:44px}
.stage-top{top:30px;right:16px}
.dimensions{font-size:9px}
.dimensions-area{display:none}
.selection-dot{width:5px;height:5px}
.icon-button{height:30px;width:29px;padding:4px}
.icon-button svg{width:19px;height:19px}
.primary-button{height:43px;width:43px;padding:0;gap:0;box-shadow:3px 3px 0 var(--ink)}
.primary-button>span,.primary-button b{display:none}
.primary-button svg{width:23px;height:23px}
.zoom-controls{height:43px}
.zoom-controls button{width:32px;height:39px;padding:5px}
.zoom-controls button:last-child{width:32px}
.zoom-controls output{display:none}
.mb-legal-footer{min-height:43px;padding:7px 13px calc(7px + env(safe-area-inset-bottom));gap:9px;font-size:8px;letter-spacing:0}
.version{gap:5px}
.version b{padding:5px 6px;font-size:9px}
.mb-legal-footer nav{gap:13px}
.mb-legal-footer a{font-size:9px}
.mb-legal-toolbar{padding:12px 15px}
.mb-legal-scroll{padding:8px 18px 22px}
.mb-legal-content{font-size:13px}
.mb-legal-content h1{font-size:26px}
}
@media(max-width:360px){
.selection-dot{display:none}
.zoom-controls button,.zoom-controls button:last-child{width:29px}
.mb-legal-footer{padding-left:10px;padding-right:10px}
.mb-legal-footer nav{gap:9px}
.mb-legal-footer .contact-arrow{display:none}
.brand{font-size:23px}
}
@media(pointer:coarse){
.desktop-help,.keyboard-hint{display:none}
.touch-help{display:block}
}
@media(max-height:520px) and (orientation:landscape){
.sidebar-toggle{top:12px}
.brand,.sidebar-collapsed .brand{top:22px}
.object-list{gap:5px}
.object-button{min-height:44px;padding:5px}
.object-icon{width:29px;height:29px}
.object-button strong{margin-bottom:2px}
.section-title{margin-bottom:7px}
.keyboard-hint{display:none}
.stage-top{top:25px}
.mb-legal-footer{min-height:34px;padding-top:4px;padding-bottom:4px}
}
@media(prefers-reduced-motion:reduce){
*,*:before,*:after{animation:none!important;transition:none!important}
}
.vr-mode-button{pointer-events:auto;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 12px;border:1.5px solid var(--ink);background:#faf9f3;box-shadow:3px 3px 0 var(--ink);font-size:10px;font-weight:700;white-space:nowrap}
.vr-mode-button svg{width:20px;height:20px;stroke-width:1.65}
.vr-mode-button:hover:not(:disabled){background:#fff1e9}
.vr-mode-button:active:not(:disabled){transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.stage-top{display:flex;flex-direction:column;align-items:flex-end;gap:9px}
.vr-placement-panel{position:absolute;z-index:7;top:92px;right:24px;width:min(340px,calc(100% - 48px));padding:14px;background:#faf9f3;border:2px solid var(--ink);box-shadow:5px 5px 0 var(--ink)}
.vr-placement-panel[hidden],.vr-exit-button[hidden]{display:none!important}
.vr-placement-copy{display:grid;gap:6px}
.vr-placement-copy small{font:700 8px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1.1px;color:#787a70}
.vr-placement-copy strong{font-size:15px;line-height:1.15}
.vr-placement-copy>span{font-size:10px;line-height:1.45;color:#62645b}
.vr-placement-copy em{font:9px ui-monospace,SFMono-Regular,Consolas,monospace;font-style:normal;color:#8b4a30;border-top:1px solid var(--line);padding-top:8px;margin-top:2px}
.vr-placement-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:13px}
.vr-cancel-button,.vr-start-button{height:37px;border:1.5px solid var(--ink);padding:0 12px;font-size:10px;font-weight:700}
.vr-cancel-button{background:#efeee7}
.vr-start-button{display:inline-flex;align-items:center;gap:7px;background:var(--orange);box-shadow:3px 3px 0 var(--ink)}
.vr-start-button svg{width:18px;height:18px}
.vr-start-button:active:not(:disabled){transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.vr-exit-button{position:fixed;z-index:1200;top:max(14px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);height:38px;padding:0 15px;border:1.5px solid #fff;background:#24251fcc;color:#fff;box-shadow:0 2px 12px #0005;font-size:10px;font-weight:700;border-radius:3px}
body.vr-selecting #viewport canvas{cursor:crosshair!important}
body.vr-active{background:#111}
body.vr-active #viewport{position:absolute;inset:0;width:100%;height:100%}
body.vr-active .sidebar-toggle,body.vr-active .brand,body.vr-active .stage-top,body.vr-active .vr-placement-panel,body.vr-active .mb-legal-footer{display:none!important}
@media(max-width:760px){
.vr-mode-button{height:36px;padding:0 9px;gap:6px}
.vr-mode-button svg{width:19px;height:19px}
.vr-placement-panel{top:auto;right:12px;left:12px;bottom:76px;width:auto;padding:12px;box-shadow:4px 4px 0 var(--ink)}
.vr-placement-copy>span{font-size:9px}
.vr-placement-actions{margin-top:11px}
}
@media(max-width:480px){
.vr-mode-button span{display:none}
.vr-mode-button{width:38px;padding:0;justify-content:center}
.vr-placement-actions{display:grid;grid-template-columns:1fr 1.25fr}
.vr-cancel-button,.vr-start-button{justify-content:center;padding:0 8px}
}
.brand,.sidebar-collapsed .brand{top:16px;left:40px;height:44px;align-items:center;font-size:30px}
.sidebar-collapsed .brand{left:62px}
.sidebar-toggle{top:16px;height:44px}
.stage-top{top:16px;right:24px;z-index:5;flex-direction:row;align-items:flex-start;gap:10px;pointer-events:none}
.stage-top>*{pointer-events:auto}
.vr-mode-button{height:44px}
.legend{position:relative}
.legend summary{height:41px;padding:0 11px;gap:12px;font-size:11px}
.help-icon{width:19px;height:19px;font-size:12px}
.legend-content{position:absolute;right:-2px;top:calc(100% + 10px);width:292px;padding:12px;background:#faf9f3;border:2px solid var(--ink);box-shadow:4px 4px 0 var(--ink);max-height:calc(100dvh - 155px);overflow-y:auto}
.legend-row{min-height:52px;gap:12px}
.legend-row strong{font-size:11px}
.legend-row small{font-size:10px;line-height:1.4}
.mouse-icon{width:28px;height:35px}
.gesture-icon{width:43px;height:43px;flex-shrink:0;fill:none;stroke:var(--ink);stroke-width:2.5;stroke-linecap:square;stroke-linejoin:miter}
.gesture-hand{fill:var(--orange)}
.gesture-pulse{fill:none;stroke:var(--ink);stroke-width:2.5}
.delete-hint{font-size:10px;line-height:1.5;border-top:1px solid var(--line);padding-top:9px;margin-bottom:0}
.keyboard-hint{font-size:9px}
.object-row{display:flex;align-items:center;min-height:64px;border:1.5px solid var(--ink);background:#faf9f4;position:relative}
.object-row:has(.object-button[aria-pressed=true]){background:#e3ebd4;box-shadow:3px 3px 0 var(--ink)}
.object-button{border:0;background:none;min-width:0;flex:1;gap:7px;padding:8px 4px 8px 7px;touch-action:none;user-select:none}
.object-button[aria-pressed=true]{background:none;box-shadow:none;border:0}
.object-button:hover:not(:disabled){transform:none;background:#e9ebdf}
.object-icon{width:30px;height:32px}
.object-icon svg{width:25px;height:25px}
.object-button strong{font-size:10px}
.object-button small{font-size:9px}
.object-number{font-size:9px;margin:0 1px;color:#707168}
.delete-object{width:30px;min-height:44px;flex-shrink:0;border:0;background:none;display:grid;place-items:center;padding:5px}
.delete-object svg{width:18px;height:18px}
.delete-object:hover:not(:disabled){background:#ffe0cd;color:#9b361d}
.trash-area{margin-top:auto;padding-top:8px}
.trash-area[hidden],.object-drag-ghost[hidden],.empty-furniture[hidden]{display:none}
.trash-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:100%;min-height:110px;padding:12px;border:2px dashed #999b8f;background:#eae9e1;transition:background .15s,border-color .15s}
.trash-drop svg{width:37px;height:37px;stroke-width:1.8}
.trash-drop strong{font-size:11px}
.trash-drop small{font-size:9px;color:#696c61}
.trash-drop:hover:not(:disabled),.trash-drop.drag-over{border:2px solid var(--ink);background:#ffd4bd;box-shadow:3px 3px 0 var(--ink)}
.trash-drop.drag-over svg{transform:rotate(-10deg) scale(1.12)}
.trash-drop.used{opacity:1;background:#e3ebd4}
.trash-drop.used svg{animation:bin-used .55s ease}
@keyframes bin-used{0%,100%{transform:rotate(0)}25%{transform:rotate(-13deg) translateY(-3px)}50%{transform:rotate(11deg)}75%{transform:rotate(-6deg)}}
.object-drag-ghost{position:fixed;z-index:100;pointer-events:none;max-width:160px;padding:9px 12px;border:2px solid var(--ink);background:var(--orange);box-shadow:3px 3px 0 var(--ink);font-size:12px;font-weight:bold}
.empty-furniture{font-size:12px;color:var(--muted)}
@media(min-width:761px) and (max-width:1100px){
.help-label{display:none}
.legend .disclosure{display:none}
.legend summary{width:41px;justify-content:center;padding:0}
.vr-mode-button span{display:none}
.vr-mode-button{width:44px;padding:0;justify-content:center}
}
@media(max-width:760px){
.brand,.sidebar-collapsed .brand{top:16px;left:62px;font-size:25px;height:44px}
.stage-top{right:13px;top:16px;gap:8px}
.vr-mode-button{width:44px;height:44px;padding:0;justify-content:center}
.vr-mode-button span,.help-label,.legend .disclosure{display:none}
.legend summary{width:41px;height:41px;justify-content:center;padding:0}
.legend-content{width:min(292px,calc(100vw - 28px));right:-2px}
.desktop-help,.keyboard-hint{display:none}
.touch-help{display:block}
.furniture-panel{flex-shrink:1;min-height:0;overflow-y:auto;padding:0 4px 5px 0}
.delete-object{width:36px}
.trash-area{padding-top:0;flex-shrink:0}
.trash-drop{min-height:100px}
}
@media(max-width:380px){
.brand,.sidebar-collapsed .brand{left:57px;font-size:21px}
.stage-top{right:10px;gap:6px}
}
@media(max-height:520px){
.furniture-panel{min-height:0;flex-shrink:1;overflow-y:auto;padding:0 4px 5px 0}
.trash-drop{min-height:68px;padding:6px;gap:4px}
.trash-drop svg{width:28px;height:28px}
.trash-drop small{display:none}
.object-row{min-height:49px}
}
.mb-legal-footer{min-height:32px;padding:2px 16px calc(2px + env(safe-area-inset-bottom));gap:10px;flex-wrap:nowrap;white-space:nowrap;overflow-x:auto;scrollbar-width:thin}
.mb-legal-footer .version{flex:0 0 auto;gap:5px;font-size:8px}
.mb-legal-footer .version b{padding:3px 5px;font-size:9px}
.mb-legal-footer nav{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;flex-wrap:nowrap;gap:14px;white-space:nowrap}
.mb-legal-footer nav>a{flex-shrink:0;padding:4px 0}
.mb-legal-footer a>span[data-i18n]{display:inline;color:inherit;font-weight:inherit;margin:0}
.language-switch{display:inline-flex;align-items:center;flex:0 0 auto;gap:3px;padding-left:8px;border-left:1px solid var(--line);white-space:nowrap}
.language-button{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:3px 4px;border:0;border-radius:0;box-shadow:none;background:transparent;color:inherit;font:400 10px Arial,sans-serif;letter-spacing:0}
.language-button[aria-pressed=true]{font-weight:700}
.language-button:hover{background:transparent;text-decoration:underline;text-underline-offset:3px}
.mb-legal-page .language-switch{margin-left:auto}
@media (max-width:760px){
.mb-legal-footer{min-height:30px;padding:1px 8px calc(1px + env(safe-area-inset-bottom));gap:6px;font-size:8px;letter-spacing:0}
.mb-legal-footer .version{gap:3px;font-size:8px}
.mb-legal-footer .version b{padding:3px 4px;font-size:8px}
.mb-legal-footer nav{gap:7px}
.mb-legal-footer a{font-size:9px}
.mb-legal-footer .contact-arrow{display:none}
.language-switch{padding-left:4px;gap:2px}
.language-button{min-height:26px;padding:3px;font-size:9px}
}
@media (max-width:360px){
.mb-legal-footer{padding-left:6px;padding-right:6px;gap:4px}
.mb-legal-footer .version{font-size:7px;gap:3px}
.mb-legal-footer .version b{padding:3px;font-size:8px}
.mb-legal-footer nav{gap:6px}
}
.sidebar-toggle,.vr-mode-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center;border-radius:0}
.sidebar-toggle{background:#e1e2dc;box-shadow:none}
.vr-mode-button>span,.legend .help-label,.legend .disclosure{display:none}
.legend{width:44px;height:44px;flex:0 0 44px;border:0;background:transparent;box-shadow:none}
.legend summary{width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center;justify-content:center;padding:0;border:1.5px solid var(--ink);background:#faf9f3;box-shadow:3px 3px 0 var(--ink)}
.legend summary>span:first-child{justify-content:center;gap:0}
.legend summary:hover{background:#fff1e9}
.brand,.sidebar-collapsed .brand{left:50%;transform:translateX(-50%);white-space:nowrap}
@media (max-width:340px){
.brand,.sidebar-collapsed .brand{font-size:18px}
}
[hidden]{display:none!important}
.panel-hint{font-size:11px;line-height:1.55;margin:0 0 16px;color:#62655a}
.panel-note{font-size:10px;line-height:1.55;margin:16px 0 0;color:#73766a}
.panel-subtitle{font-size:11px;text-transform:uppercase;letter-spacing:.8px;margin:28px 0 12px}
.category-list,.system-list{display:grid;gap:10px}
.category-button{display:flex;align-items:center;gap:12px;min-height:55px;padding:12px 9px;border:1.5px solid var(--ink);background:#faf9f3;text-align:left;font-size:12px;font-weight:700}
.category-button svg{width:25px;height:25px;flex-shrink:0}
.category-button[aria-pressed=true],.system-button[aria-pressed=true]{background:#ffdac4;box-shadow:3px 3px 0 var(--ink)}
.category-button:hover:not(:disabled),.system-button:hover:not(:disabled){background:#fff0e6}
.system-button{display:flex;justify-content:space-between;align-items:center;gap:5px;min-height:49px;border:1.5px solid var(--ink);background:#faf9f3;padding:12px 9px;text-align:left}
.system-button strong{font-size:12px}
.system-button span{font-size:9px;color:#747568}
.stand-dimensions{display:grid;grid-template-columns:minmax(0,1fr) 13px minmax(0,1fr);gap:6px;align-items:end;margin-top:18px}
.stand-dimensions label>span:first-child{display:block;font-size:11px;font-weight:700;margin-bottom:7px}
.metre-input{display:flex;align-items:center;height:44px;border:1.5px solid var(--ink);background:#fff}
.metre-input input{width:100%;min-width:0;height:100%;border:0;border-radius:0;background:transparent;padding:7px 4px 7px 8px;font:700 15px Arial,sans-serif;color:var(--ink)}
.metre-input b{font:11px ui-monospace,monospace;padding-right:7px}
.dimension-times{line-height:44px;text-align:center}
.stand-area{display:block;margin:12px 0;font:700 12px ui-monospace,monospace}
#sizeStatus:empty{display:none}
#modeHelp{font-size:11px;line-height:1.5;margin:0 0 9px}
.workspace[data-mode=buy] .legend-content .keyboard-hint,.workspace[data-mode=buy] .legend-content .delete-hint,.workspace[data-mode=booth] .legend-content .keyboard-hint,.workspace[data-mode=booth] .legend-content .delete-hint{display:none}
.workspace[data-mode=buy] .legend-content .desktop-help .legend-row:not(.view-pan-row),.workspace[data-mode=booth] .legend-content .desktop-help .legend-row:not(.view-pan-row),.workspace[data-mode=buy] .legend-content .touch-help .legend-row:not(.view-pan-row),.workspace[data-mode=booth] .legend-content .touch-help .legend-row:not(.view-pan-row){display:none}
.primary-button{background:#faf9f3}
.primary-button:hover:not(:disabled){background:#e9ebdf}
.layout-controls{display:flex;gap:7px;flex-shrink:0}
.layout-controls button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:75px;height:51px;padding:4px;border:1.5px solid var(--ink);background:#faf9f3;font-size:9px}
.layout-controls button svg{width:24px;height:24px;stroke-width:2.5}
.layout-controls button[aria-pressed=true]{background:var(--orange);box-shadow:2px 2px 0 var(--ink)}
#catalogEmpty{font-size:11px;line-height:1.5;margin:0;padding:12px;border:1.5px solid var(--ink);background:#faf9f3;flex:1}
.catalog-tooltip{position:fixed;z-index:40;width:280px;max-width:calc(100vw - 24px);padding:12px;background:#faf9f3;border:2px solid var(--ink);box-shadow:4px 4px 0 var(--ink);font-size:11px;line-height:1.7;white-space:pre-line;pointer-events:none}
body.vr-active .catalog-tooltip{display:none!important}
@media (max-width:1200px){
.layout-controls button{width:38px;height:43px}
.layout-controls button>span{display:none}
}
@media (max-width:760px){
.layout-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;min-width:0}
.layout-controls button{width:100%;min-width:0;height:43px;padding:2px}
.layout-controls button svg{width:23px;height:23px}
.category-button{font-size:11px}
.category-button svg{width:22px;height:22px}
.panel-hint{font-size:10px}
}
@media (max-height:520px){
.panel-subtitle{margin-top:16px}
.system-button{min-height:40px}
}
.product-context{position:fixed;z-index:45;display:grid;grid-template-columns:112px minmax(0,1fr);gap:13px;width:min(390px,calc(100vw - 24px));padding:13px;background:#faf9f3;border:2px solid var(--ink);box-shadow:5px 5px 0 var(--ink)}
.product-context[hidden]{display:none!important}
.product-context-close{position:absolute;right:7px;top:7px;width:27px;height:27px;padding:0;display:grid;place-items:center;border:1.5px solid var(--ink);background:#f0eee7;font-size:20px;line-height:1}
.product-context-close:hover{background:#fff}
.product-context-visual{display:grid;place-items:center;min-height:112px;border:1px solid var(--line);background:#f1efe8}
.product-context-visual img{display:block;width:102px;height:102px;object-fit:contain}
.product-context-visual svg{width:68px;height:68px;fill:none;stroke:currentColor;stroke-width:1.5}
.product-context-copy{min-width:0;padding:4px 25px 1px 0;display:flex;flex-direction:column;align-items:flex-start}
.product-context-copy>strong{font-size:14px;line-height:1.25;margin-bottom:8px}
.product-context-copy>p{margin:0 0 12px;font-size:10px;line-height:1.6;white-space:pre-line;color:#5f6258}
.product-context-add{margin-top:auto;min-height:38px;padding:0 15px;border:2px solid var(--ink);background:var(--orange);box-shadow:3px 3px 0 var(--ink);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.5px}
.product-context-add:hover:not(:disabled){background:#ff8a57}
.product-context-add:active:not(:disabled){transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
body.vr-active .product-context{display:none!important}
@media(max-width:760px){
.product-context{grid-template-columns:88px minmax(0,1fr);gap:10px;padding:10px;box-shadow:4px 4px 0 var(--ink)}
.product-context-visual{min-height:88px}
.product-context-visual img{width:82px;height:82px}
.product-context-copy>strong{font-size:12px}
.product-context-copy>p{font-size:9px;margin-bottom:9px}
.product-context-add{min-height:35px;padding:0 12px;font-size:10px}
}
.category-button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
.product-context-visual{overflow:hidden;min-height:132px}
.product-context-visual canvas{display:block;width:100%;height:132px;touch-action:none}
.contact-arrow{display:inline!important;color:var(--orange)!important;font-weight:700!important;margin-left:3px!important}
.object-row{min-height:68px;padding-right:31px;transition:background .14s ease,box-shadow .14s ease}
.object-button{min-height:66px;padding-right:6px}
.object-number{position:absolute;right:0;top:0;width:30px;height:27px;margin:0!important;display:grid;place-items:center;background:var(--ink);color:#fff;font:700 9px ui-monospace,monospace;z-index:2}
.delete-object{position:absolute;right:0;top:27px;bottom:0;width:30px;min-height:0;border-left:1px solid var(--ink);background:transparent}
.object-row:has(.object-button[aria-pressed=true]){background:#cfe5b4;box-shadow:3px 3px 0 var(--ink)}
.object-row:has(.object-button[aria-pressed=true]) .object-button,.object-row:has(.object-button[aria-pressed=true]) .object-button:hover:not(:disabled),.object-row:has(.object-button[aria-pressed=true]) .object-icon,.object-row:has(.object-button[aria-pressed=true]) .delete-object,.object-row:has(.object-button[aria-pressed=true]) .delete-object:hover:not(:disabled){background:transparent}
.object-row:has(.object-button[aria-pressed=true]) .object-icon{border-color:#77975a}
.object-row.reorder-before::before,.object-row.reorder-after::after{content:'';position:absolute;z-index:5;left:-2px;right:-2px;height:4px;background:var(--orange);border:1px solid var(--ink);pointer-events:none}
.object-row.reorder-before::before{top:-7px}
.object-row.reorder-after::after{bottom:-7px}
.object-icon{cursor:grab}
.object-icon:active{cursor:grabbing}
@media(pointer:coarse){
.object-button{touch-action:pan-y}
.object-icon{touch-action:none}
}
.view-pan-row{border-top:1px solid var(--line);padding-top:8px;margin-top:4px}
.object-row:has(.object-button[aria-pressed=true]) .delete-object{background:#faf9f4;color:var(--ink)}
.object-row:has(.object-button[aria-pressed=true]) .delete-object:hover:not(:disabled){background:#ffe0cd;color:#9b361d}
.booth-instructions{margin:0 0 16px;padding-left:18px;font-size:11px;line-height:1.55;color:#62655a}
.booth-instructions li+li{margin-top:6px}
#modeHelp{white-space:pre-line}
.catalog-overview{position:fixed;z-index:40;display:flex;flex-direction:column;min-height:0;overflow:hidden;background:#faf9f3;border:2px solid var(--ink);box-shadow:5px 5px 0 var(--ink)}
.catalog-overview-header{position:relative;flex-shrink:0;display:flex;align-items:center;min-height:48px;padding:12px 48px 12px 16px;border-bottom:1px solid var(--line)}
.catalog-overview-header h2{margin:0;font:700 12px ui-monospace,monospace;text-transform:uppercase;letter-spacing:1px}
.catalog-overview-content{min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;padding:14px}
.catalog-overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:12px}
body.vr-active .catalog-overview{display:none!important}
@media(max-width:760px){
.catalog-overview-content{padding:10px}
.catalog-overview-grid{gap:9px;grid-template-columns:repeat(auto-fit,minmax(98px,1fr))}
}
.object-row.lamp-row:has(.object-button[aria-pressed=true]){background:#f4f0e7}
.object-row.lamp-row:has(.object-button[aria-pressed=true]) .object-icon{border-color:var(--ink)}
.object-row.lamp-row.lamp-on{background:#fff0c8}
.object-row.lamp-row.lamp-on .object-icon{color:#a66610;box-shadow:0 0 12px #ffc565}
.selection-dot.lamp-on{background:#ffc25c;box-shadow:0 0 9px #f5af37}
.primary-button,.zoom-controls{box-shadow:3px 3px 0 var(--ink)}
.price-note{margin-top:12px;margin-bottom:0}
.category-heading,.dimensions-heading{margin-top:18px;margin-bottom:10px}
.dimensions-heading{margin-top:16px}

/* Language anchors remain readable at every footer breakpoint. */
.mb-legal-footer .language-button,.mb-legal-footer .language-button:visited,.mb-legal-footer .language-button>span{color:#000}
.mb-legal-footer .language-button>span{display:inline;margin:0;font-weight:inherit}
.language-button[aria-pressed=true]{text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){
 .mb-legal-footer{flex-wrap:wrap;overflow-x:visible}
 .mb-legal-footer nav{flex:1 1 auto;max-width:100%;flex-wrap:wrap}
 .mb-legal-footer .language-switch{flex-shrink:0}
}

/* 0.2.6: compact manufacturer / stand system selector */
.manufacturer-label{display:block;margin:0 0 11px}
#boothManufacturer{width:100%;min-height:38px;padding:8px 34px 8px 10px;border:1.5px solid var(--ink);border-radius:0;background:#faf9f3;color:var(--ink);font-size:12px;font-weight:700;font-family:inherit;cursor:pointer}
#boothManufacturer:focus-visible,.system-button:focus-visible{outline:2px solid #e98745;outline-offset:2px}
.system-groups .system-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.system-groups [data-provider-group][hidden]{display:none!important}
.system-current{grid-column:1/-1;padding:10px;border:1px solid var(--ink);background:#ffdac4;font-weight:700;font-size:12px;display:flex;gap:9px;align-items:center;justify-content:space-between}
.system-current small{color:#5a5a54;font-weight:500;font-size:10px}
.system-groups .system-button{min-height:39px;padding:7px 8px;gap:4px;flex-direction:column;align-items:flex-start;justify-content:center;box-shadow:none}
.system-groups .system-button strong{font-size:11px}
.system-groups .system-button span{font-size:9px}
.system-groups .system-button:disabled{opacity:.42;background:#e4e3df;cursor:not-allowed;box-shadow:none}
.system-groups .system-button[aria-pressed=true]{background:#ffdac4;box-shadow:2px 2px 0 var(--ink)}

/* 0.2.7.1: show the system selector first in the stand editor. */
.mode-panel[data-panel="booth"] .system-heading{margin:10px 0 10px}
.mode-panel[data-panel="booth"] .system-groups{margin-bottom:8px}
.mode-panel[data-panel="booth"] #systemNotice{line-height:1.4;margin:0 0 14px}
.mode-panel[data-panel="booth"] .stand-dimensions{margin-top:0}
.mode-panel[data-panel="booth"] .system-button[data-preset="simple"]:not(:disabled){background:#fff8f2;cursor:pointer}
.mode-panel[data-panel="booth"] .system-button[data-preset="simple"]:not(:disabled):hover{background:#ffdac4}

/* 0.2.17: edition identity */
.version{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.edition-badge{box-sizing:border-box;width:36px;height:36px;min-width:36px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:2px solid #252525;border-radius:0;font:800 10px/1 sans-serif;color:#161616;letter-spacing:.02em;vertical-align:middle}
.edition-free{background:#a2becb;cursor:pointer}.edition-pro{background:#c87f77}
.edition-badge:focus-visible{outline:3px solid #ff7139;outline-offset:3px}
.pro-info{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:24px;border:3px solid #252525;border-radius:0;background:#f3f0e8;color:#252525;box-shadow:7px 7px 0 #252525;overflow:auto}
.pro-info::backdrop{background:#24242466}.pro-info h2{margin:0 0 16px;font-size:24px}.pro-info p{line-height:1.5}
.pro-info-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.pro-info-actions a,.pro-info-actions button{padding:10px 14px;border:2px solid #252525;background:#fff;color:#252525;font:700 14px sans-serif;text-decoration:none;cursor:pointer}.pro-info-actions a{background:#f4a17b}
