:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#e6e1d8;--ink:#1c1915;--muted:#6f675d;--faint:#8a8176;--panel:#fffcf7f0;--panel-solid:#fffdf8;--line:#1c19151f;--chip:#1c19150a;--chip-hover:#1c191514;--accent:#8a6230;--accent-soft:#8a623029;--accent-ink:#fffaf3;--danger:#a33b3b;--warn:#8a6230;--shadow:0 12px 32px #30261824;--radius:14px;--control-h:36px;--font:"Segoe UI", "Helvetica Neue", Arial, sans-serif;--top:10px;--chevron:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f675d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");color:var(--ink);background:var(--bg);font-family:var(--font)}html[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#101216;--ink:#f4efe8;--muted:#c9beb2;--faint:#9c948b;--panel:#14161aeb;--panel-solid:#1a1c21;--line:#ffffff1f;--chip:#ffffff0d;--chip-hover:#ffffff1a;--accent:#e4c07a;--accent-soft:#e4c07a2e;--accent-ink:#1a140c;--danger:#ff8d8d;--warn:#e4c07a;--shadow:0 12px 32px #00000061;--chevron:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c9beb2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>")}*{box-sizing:border-box}html,body,#viewport{background:var(--bg);width:100%;height:100%;margin:0;overflow:hidden}#viewport canvas{touch-action:none;display:block}#tool-rail{z-index:8;top:88px;left:calc(var(--left-w,300px) + 28px);background:var(--panel);border:1px solid var(--line);width:76px;box-shadow:var(--shadow);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-radius:16px;flex-direction:column;gap:4px;padding:6px;display:flex;position:fixed}#tool-rail .tool{min-height:44px;color:var(--ink);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:10px;font-weight:650;display:flex}#tool-rail .tool.active,#tool-rail .snap.active{background:var(--accent);color:var(--accent-ink)}#tool-rail .tool:hover{background:var(--chip-hover)}#tool-rail .tool.active:hover{background:var(--accent)}.tool-snap{flex-direction:column;gap:2px;display:flex}#align-pop{background:var(--panel);border:1px solid var(--line);width:160px;box-shadow:var(--shadow);border-radius:12px;flex-direction:column;gap:4px;padding:8px;display:flex;position:absolute;bottom:8px;left:84px}#align-pop[hidden]{display:none}#measure-tag{z-index:9;pointer-events:none;background:var(--ink);color:var(--accent-ink);border-radius:8px;padding:4px 8px;font-size:12px;font-weight:680;position:fixed}#measure-tag[hidden]{display:none}.xr-btn{bottom:64px!important}.stage-panel{z-index:12;background:var(--panel);border:1px solid var(--line);width:min(720px,100% - 24px);max-height:calc(100% - 96px);box-shadow:var(--shadow);border-radius:16px;padding:12px;position:fixed;top:72px;left:50%;overflow:auto;transform:translate(-50%)}.stage-panel[hidden]{display:none}.compare-frame{aspect-ratio:16/9;background:#111;border-radius:12px;width:100%;position:relative;overflow:hidden}.compare-frame img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}#fabric-preview,#share-qr-img{background:#fff;border-radius:8px;margin:8px 0;display:block}#fabric-preview[hidden],#share-qr-img[hidden]{display:none}#share-expired{z-index:40;background:var(--bg,#f6f1ea);color:var(--ink,#1c1915);flex-direction:column;justify-content:center;gap:12px;padding:32px;display:flex;position:fixed;inset:0}#share-expired[hidden]{display:none}#share-expired h1{margin:0;font-size:32px}#wa-cta{z-index:14;color:#fff;background:#1f6b4a;text-decoration:none;position:fixed;bottom:64px;right:16px}#wa-cta[hidden]{display:none}html[dir=rtl] #studio-fold,html[dir=rtl] #share-expired{text-align:right}.stage-panel canvas{background:#111;border-radius:12px;width:100%;height:auto}#guide-layer{z-index:4;pointer-events:none;width:100%;height:100%;position:fixed;inset:0}.tour{z-index:7;background:var(--panel);width:min(320px,100% - 24px);color:var(--ink);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px;padding:14px;position:fixed;bottom:72px;right:16px}.tour[hidden]{display:none}#tour-body{margin:8px 0 0;line-height:1.45}.top-chrome{z-index:6;top:var(--top);width:var(--top-w,clamp(420px, calc(100vw - 680px), 860px));flex-direction:column;align-items:center;max-width:calc(100% - 24px);transition:transform .28s;display:flex;position:fixed;left:50%;transform:translate(-50%)}.top-chrome.is-collapsed{transform:translate(-50%)translateY(calc(32px - 100%))}.top-chrome.is-collapsed .topbar{visibility:hidden;pointer-events:none}.topbar,.panel,.budget,.build-bar,.showroom{background:var(--panel);color:var(--ink);border:1px solid var(--line);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.topbar{border-radius:16px;flex-wrap:wrap;align-items:flex-start;gap:8px 12px;width:100%;max-width:100%;padding:8px 14px;display:flex;position:relative}.brand-block{flex-direction:column;flex:none;gap:1px;min-width:88px;padding-top:6px;display:flex}.brand{letter-spacing:-.01em;white-space:nowrap;font-size:15px;font-weight:680;line-height:1.1}#status{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;min-width:0;max-width:220px;font-size:11px;line-height:1.3;overflow:hidden}.menu-row{flex-wrap:wrap;flex:320px;align-items:center;gap:8px;min-width:0;display:flex}.tool-group{border:1px solid var(--line);background:var(--chip);border-radius:12px;flex-wrap:wrap;align-items:center;gap:2px;padding:3px;display:inline-flex}.icon-btn,#push-btn{min-width:var(--control-h);height:var(--control-h);color:var(--ink);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:10px;flex:none;justify-content:center;align-items:center;gap:6px;padding:0 10px;font-size:12px;font-weight:640;line-height:1;display:inline-flex;position:relative}.icon-btn:hover,#push-btn:hover{background:var(--chip-hover)}.icon-btn:active,#push-btn:active{background:var(--accent-soft)}.icon-btn.active,#push-btn.active,#bird-btn.active,#showroom-btn.active,#panels-toggle.active,#plan-top.active,#walk-top.active,#env-btn.active,.icon-btn[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}.icon-btn.labeled{width:auto;min-width:var(--control-h)}.icon-btn.labeled .btn-label,#push-btn .btn-label{clip:auto;white-space:nowrap;width:auto;height:auto;margin:0;font-size:12px;font-weight:640;position:static;overflow:visible}.icon-btn .btn-label{clip:rect(0, 0, 0, 0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.btn-glyph{flex:none;justify-content:center;align-items:center;line-height:0;display:inline-flex}.ico{display:block}#push-mm{border:1px solid var(--line);width:72px;height:36px;color:inherit;font:inherit;background:0 0;border-radius:10px;padding:0 8px}.chrome-handle{border:1px solid var(--line);background:var(--panel);color:var(--ink);cursor:pointer;font:inherit;box-shadow:var(--shadow)}#topbar-tab{letter-spacing:.08em;text-transform:uppercase;border-radius:0 0 12px 12px;justify-content:center;align-items:center;gap:6px;min-width:84px;height:28px;margin-top:-1px;padding:0 12px;font-size:11px;font-weight:680;display:inline-flex}.top-edge{border-radius:8px;width:12px;top:10px;bottom:30px}.top-edge:after{content:"";background:var(--line);border-radius:2px;width:2px;position:absolute;top:16px;bottom:16px;left:5px}#top-resize-left{left:0}#top-resize-right{right:0}.top-edge:hover,.resize-edge:hover{background:var(--accent-soft)}#present-btn{background:var(--accent);color:var(--accent-ink)}#present-card{z-index:3;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:14px;align-items:baseline;gap:14px;padding:12px 18px;display:flex;position:fixed;bottom:72px;left:50%;transform:translate(-50%)}#present-card strong{font-size:18px;font-weight:650}#present-card span{color:var(--accent);font-size:13px}body.presenting .drawer,body.presenting .budget,body.presenting .build-bar,body.presenting .showroom{visibility:hidden}body.presenting .topbar{box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0;border-color:#0000}body.presenting .brand,body.presenting #status,body.presenting #bird-btn,body.presenting #showroom-btn,body.presenting #theme-btn,body.presenting #panels-toggle,body.presenting #push-btn,body.presenting #push-mm{visibility:hidden}.fold-section{border-bottom:1px solid var(--line);margin:0 0 4px;padding-bottom:6px}.fold-section>summary{cursor:pointer;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);border-radius:8px;align-items:center;gap:8px;padding:10px 2px;font-size:11px;font-weight:680;list-style:none;display:flex}.fold-section>summary:hover{color:var(--ink);background:var(--chip)}.fold-section>summary::-webkit-details-marker{display:none}.fold-section>summary:before{content:"";border-bottom:1.5px solid;border-right:1.5px solid;flex:none;width:7px;height:7px;transform:rotate(-45deg)}.fold-section[open]>summary:before{transform:rotate(45deg)translateY(-2px)}.kicker{letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:0 0 10px;font-size:11px}.section{color:var(--muted);margin:12px 0 6px;font-size:12px}#project-note{margin:8px 0 4px}.floor-plan{border:1px solid var(--line);background:var(--chip);border-radius:12px;margin:8px 0;padding:8px}.floor-plan svg{border-radius:8px;width:100%;height:auto;display:block}#estimate,#trace,#library{max-height:240px;margin-top:8px;overflow:auto}#library{flex-wrap:wrap;gap:6px;display:flex}.name-field,.mm{width:100%;color:inherit;border:1px solid var(--line);font:inherit;background:0 0;border-radius:10px;margin-top:6px;padding:8px 10px}.mm{flex:none;width:72px;margin-top:0;padding:4px 6px}.mat-line{align-items:center;gap:4px;margin-top:4px;display:flex}.mat-line .chip{flex:1;min-width:0}.quote td .step{width:22px;height:22px;margin:0 2px}.quote-form{flex-wrap:wrap;gap:4px;margin-top:8px;display:flex}.quote-form input,.quote-form select,#bird-kind{background-color:var(--panel-solid);color:inherit;border:1px solid var(--line);font:inherit;border-radius:10px;padding:6px 8px}.quote-form input{width:88px}.build-bar{z-index:4;width:min(920px,100% - 16px);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0;border:0;border-radius:16px;flex-direction:column;align-items:stretch;padding:0;transition:transform .28s;display:flex;position:fixed;bottom:64px;left:50%;overflow:hidden;transform:translate(-50%)}.build-bar[hidden]{display:none}.build-bar.is-collapsed{transform:translate(-50%)translateY(calc(100% - 36px))}.build-bar.is-collapsed .build-body{visibility:hidden;pointer-events:none}.build-body{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;display:flex}.build-handle{border-radius:999px;order:-1;align-self:center;align-items:center;gap:8px;min-height:36px;margin-bottom:6px;padding:0 14px;font-size:13px;display:inline-flex}.build-hint{width:100%;color:var(--accent);margin:0;font-size:12px}#bird-total{font-size:13px;font-weight:650}#build-tools{flex-wrap:wrap;gap:6px;margin:0;display:flex}.gallery-filters{flex-wrap:wrap;gap:4px;margin-top:6px;display:flex}.gallery-filters select{max-width:100%}.gallery-grid{grid-template-columns:1fr 1fr;gap:8px;max-height:380px;margin-top:8px;display:grid;overflow:auto}.gallery-card{border:1px solid var(--line);background:var(--chip);color:inherit;text-align:left;cursor:pointer;font:inherit;border-radius:12px;flex-direction:column;gap:4px;padding:6px;display:flex}.gallery-card svg{background:var(--panel-solid);border-radius:8px;width:100%;height:72px}.gallery-card strong{font-size:12px}.gallery-card span{color:var(--muted);font-size:11px}#build-tools .tool-group button,#build-tools .chip{background:0 0;border:0;border-radius:8px;min-height:32px;padding:4px 8px;font-size:12px}#build-tools .tool-group button:hover,#build-tools .chip:hover{background:var(--chip-hover)}.showroom{z-index:5;border-radius:var(--radius);width:min(340px,100% - 24px);max-height:calc(100vh - 140px);padding:14px;position:fixed;top:64px;left:12px;overflow:auto}.showroom[hidden]{display:none}.show-list{flex-direction:column;gap:6px;margin-top:8px;display:flex}#show-choice{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.quote-wrap{overflow:auto}.quote{border-collapse:collapse;width:100%;font-size:11px}.quote th,.quote td{text-align:left;border-bottom:1px solid var(--line);white-space:nowrap;padding:4px 3px}.quote thead th{color:var(--accent);font-weight:650}.layer-row{align-items:center;gap:4px;margin-top:4px;display:flex}.layer-row .name{flex:1;min-width:0;padding:4px 6px;font-size:11px}.layer-row select,.layer-row input[type=color]{color:inherit;border:1px solid var(--line);background-color:#0000;border-radius:10px}.layer-row input[type=color]{width:28px;height:22px;padding:0}#estimate .section{margin:4px 0}#trace-canvas{cursor:crosshair;background:#fffdf8;border-radius:8px;width:100%;height:auto}#trace-mm{width:78px;color:inherit;border:1px solid var(--line);background:0 0;border-radius:8px;padding:4px 6px}#openings{flex-direction:column;gap:6px;margin-top:8px;display:flex}#openings .opening-line{align-items:center;gap:4px;display:flex}#openings .opening-line span{color:var(--muted);flex:1;font-size:12px}.drawer{z-index:2;align-items:flex-start;max-height:calc(100% - 120px);transition:transform .28s;display:flex;position:fixed;top:58px}.drawer.left{left:12px}.drawer.right{right:12px}.drawer.left.is-out{transform:translate(calc(34px - 100%))}.drawer.right.is-out{transform:translate(calc(100% - 34px))}.drawer-tab{border:1px solid var(--line);background:var(--panel);width:34px;height:72px;color:var(--ink);cursor:pointer;box-shadow:var(--shadow);flex:none;justify-content:center;align-items:center;gap:6px;margin-top:12px;font-size:13px;font-weight:650;display:inline-flex}.drawer.left .drawer-tab{border-radius:0 12px 12px 0}.drawer.right .drawer-tab{border-radius:12px 0 0 12px}.panel{width:var(--left-w,300px);border-radius:var(--radius);max-height:calc(100vh - 132px);padding:12px 14px 16px;position:relative;overflow:auto}.dock{width:var(--right-w,300px)}.resize-edge{z-index:5;touch-action:none;position:absolute}.resize-edge.col{cursor:col-resize;width:12px;top:0;bottom:0}#left-resize{right:0}#right-resize{left:0}.resize-edge.row{cursor:row-resize;height:12px;top:0;left:0;right:0}a.icon-btn{text-decoration:none}#walk-exit{background:var(--accent);color:var(--accent-ink);border-radius:10px;position:static;transform:none}#walk-exit:hover{filter:brightness(1.06);background:var(--accent)}#walk-exit:active{filter:brightness(.96)}#walk-exit[hidden]{display:none}.build-body{height:var(--build-h,auto);position:relative;overflow:auto}.mood-row,.swatches{grid-template-columns:1fr 1fr;gap:8px;display:grid}button.chip,button.card,button.alt,button.fold{border:1px solid var(--line);background:var(--chip);color:inherit;cursor:pointer;text-align:left;font:inherit;border-radius:10px;font-size:12px;font-weight:620}button.chip{align-items:center;gap:6px;min-height:32px;padding:6px 10px;display:inline-flex}button.chip:hover,button.alt:hover,button.fold:hover,button.card:hover,button.step:hover,.swatch:hover{background:var(--chip-hover)}button.chip:active,button.alt:active,button.fold:active{background:var(--accent-soft)}button.chip.active{border-color:var(--accent);background:var(--accent-soft)}.swatch{cursor:pointer;text-align:left;border:2px solid #0000;border-radius:10px;height:auto;min-height:34px;padding:6px 8px;font-size:11px}.swatches .section{grid-column:1/-1;margin:8px 0 0}.fan{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.fan .name-field,.fan select,.fan .mm{width:auto;max-width:140px;margin:0}.fan-grid{grid-template-columns:repeat(8,1fr);gap:4px;width:100%;max-height:220px;display:grid;overflow:auto}.fan-swatch{border:1px solid var(--line);cursor:pointer;color:#1c1915;border-radius:6px;height:28px;font-size:12px}.fan-swatch:hover{outline:2px solid var(--accent)}.swatch.active{border-color:var(--ink)}#room-list{flex-direction:column;gap:6px;max-height:240px;display:flex;overflow:auto}.room-block{flex-direction:column;gap:4px;display:flex}.room-line{align-items:center;gap:6px;display:flex}.room-line .name{flex:1;min-width:0;padding:8px;font-size:12px}.room-line .axis,.axis{width:64px;color:var(--muted);flex:none;font-size:11px}.room-line.on .name{border-color:var(--accent);background:var(--accent-soft)}.floor-plan polygon{cursor:grab}.floor-plan circle{cursor:alias}button.step{border:1px solid var(--line);background:var(--chip);width:28px;height:28px;color:inherit;cursor:pointer;border-radius:8px;flex:none}.add-row{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}#add-rooms{flex-direction:column}#add-rooms .name{flex:1;padding:6px 2px;font-size:12px}.add-row button,button.plan{padding:7px 8px;font-size:12px}button.plan{width:100%;margin-top:8px}.recipe{color:var(--ink);margin-top:12px;font-size:13px;line-height:1.45}button.card{align-items:center;gap:10px;width:100%;margin-bottom:8px;padding:8px;display:flex}button.card strong,button.alt strong{font-weight:650;display:block}button.card span,button.alt span{color:var(--muted);font-size:12px}.thumb{object-fit:cover;background:var(--chip);border-radius:8px;flex:none;width:86px;height:64px}.budget{z-index:2;border-radius:14px;justify-content:space-between;align-items:center;gap:12px;height:46px;padding:0 14px;display:flex;position:fixed;bottom:10px;left:12px;right:12px}#guard-label.warn{color:var(--warn)}#guard-label.bad{color:var(--danger)}.hint{color:var(--faint);font-size:12px}button.alt{align-items:center;gap:8px;width:100%;margin-top:6px;padding:8px 10px;display:flex}button.fold{width:100%;margin-top:8px;padding:8px 10px}button.alt.on,button.fold.open{border-color:var(--accent);background:var(--accent-soft)}.color-row{flex-wrap:wrap;gap:5px;margin-bottom:8px;display:flex}button.dot{cursor:pointer;background-size:cover;border:2px solid #0000;border-radius:50%;width:22px;height:22px;padding:0}button.dot:hover{border-color:var(--ink)}button,a,summary,select,label,.chip,.swatch,.step,.alt,.fold{cursor:pointer}#viewport canvas{cursor:grab}body.is-orbiting #viewport canvas,body.is-dragging #viewport canvas{cursor:grabbing}body.cursor-move #viewport canvas{cursor:move}body.cursor-draw #viewport canvas,body.cursor-draw #trace-canvas{cursor:crosshair}.quality-label{height:var(--control-h);color:var(--muted);align-items:center;gap:6px;padding:0 4px 0 8px;font-size:12px;font-weight:640;display:inline-flex}select,.ui-select{appearance:none;min-height:var(--control-h);height:var(--control-h);border:1px solid var(--line);background-color:var(--panel-solid);background-image:var(--chevron);color:var(--ink);font:inherit;cursor:pointer;background-position:right 8px center;background-repeat:no-repeat;background-size:14px;border-radius:10px;margin:0;padding:0 28px 0 10px;font-size:12px;font-weight:640;line-height:1}select:hover,.ui-select:hover{border-color:var(--accent)}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}#ar-view{z-index:30;background:#161410;border-radius:12px;width:min(420px,92vw);height:240px;position:fixed;bottom:64px;right:12px}#ar-view[hidden]{display:none}body.viewer .drawer,body.viewer #build-bar{opacity:.45}#feedback-text{width:100%;min-height:72px}@media (pointer:coarse){button,.icon-btn,.chip,.step,select{min-height:44px}}@media (width<=1024px){.top-chrome{width:auto;max-width:none;left:8px;right:8px;transform:none}.top-edge{display:none}#tool-rail{width:auto;max-height:calc(100% - 120px);top:8px;left:8px}.top-chrome.is-collapsed{transform:translateY(calc(36px - 100%))}.topbar{gap:6px;width:100%;padding:6px}#status{max-width:28vw}.icon-btn,#push-btn,.chrome-handle,.build-handle{min-width:44px;min-height:44px}#topbar-tab{height:36px}.drawer{max-height:min(62vh,560px);inset:auto 8px 58px}.drawer.left.is-out,.drawer.right.is-out{transform:translateY(calc(100% - 8px))}.drawer-tab{width:auto;height:36px;margin:0;padding:0 12px;font-size:13px;position:absolute;top:-36px}.drawer.left .drawer-tab{border-radius:12px 12px 0 0;left:8px}.drawer.right .drawer-tab{border-radius:12px 12px 0 0;right:8px}.panel{width:100%;max-height:min(56vh,520px)}.build-bar{width:auto;bottom:58px;left:8px;right:8px;transform:none}.build-bar.is-collapsed{transform:translateY(calc(100% - 44px))}.budget{flex-wrap:wrap;height:auto;min-height:44px;padding:8px 12px;bottom:8px;left:8px;right:8px}.hint{display:none}.showroom{max-height:calc(100vh - 120px);top:56px}}
