@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Barlow:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--ink:#f5f0e8;--muted:#a6a4a2;--line:#ffffff16;--red:#df3d36;--warm:#dfbb88;font-family:Barlow,system-ui,sans-serif;background:#16181b;color:var(--ink)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button,select,input{color:inherit}button{cursor:pointer;background:#ffffff07;border:1px solid var(--line);border-radius:7px;min-height:44px;padding:10px 14px;font-size:13px;font-weight:600;transition:background .2s,border-color .2s}button:hover{background:#ffffff12;border-color:#ffffff38}button:disabled{opacity:.4;cursor:not-allowed}button[aria-pressed=true],button[aria-current=step]{border-color:#e7bd8577;background:#b98e4c19;color:#f5dab0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #f2c18e;outline-offset:3px}button.primary,.primary{background:var(--red);border-color:transparent;color:white}.primary:hover{background:#ed4b43}a{color:inherit}#app{display:grid;grid-template-columns:minmax(0,1fr) 410px;height:100dvh;overflow:hidden}.showroom{position:relative;min-width:0;overflow:hidden;background:#191a1c}#canvas{width:100%;height:100%;display:block;touch-action:none}.brand{position:absolute;top:25px;left:30px;display:flex;align-items:center;gap:12px;pointer-events:none}.brand a{pointer-events:auto;line-height:0}.brand strong{font-size:15px;letter-spacing:.1em}.brand strong span{font-weight:400;color:#c7c3bd}.brand small{display:block;font-size:9px;letter-spacing:.18em;color:#aaa49c;margin-top:6px}.eyebrow{font-size:9px;letter-spacing:.17em;font-weight:600;color:var(--warm)}.scene-caption{position:absolute;left:32px;top:104px;pointer-events:none}h1{font-family:'Barlow Condensed',Impact,sans-serif;text-transform:uppercase;font-size:clamp(34px,3.5vw,59px);font-weight:600;line-height:.98;letter-spacing:.005em;margin:12px 0}h1 em{font-style:normal;color:#d8c3a3}.scene-caption p{font-size:11px;color:#c0b5a5;letter-spacing:.04em}.scene-settings{position:absolute;top:25px;right:24px;z-index:3;font-size:11px}.scene-settings summary{cursor:pointer;min-height:44px;padding:13px;background:#15181cbb;border:1px solid var(--line);border-radius:8px}.scene-settings>div{position:absolute;right:0;width:240px;background:#181c20f5;border:1px solid var(--line);padding:16px;border-radius:10px;display:grid;gap:10px}.scene-settings p{font-size:10px;color:var(--muted);margin:0}.scene-settings label{display:grid;gap:7px}.view-tools{position:absolute;left:50%;transform:translateX(-50%);bottom:96px;display:flex;gap:4px;padding:5px;border-radius:10px;border:1px solid var(--line);background:#11171bdb;backdrop-filter:blur(16px);white-space:nowrap}.view-tools button{border-color:transparent;padding:8px 12px;font-size:11px}.mechanism{position:absolute;left:30px;right:30px;bottom:145px;pointer-events:none;text-align:center}.mechanism .eyebrow{color:#c8b79e}.mechanism button,.mechanism input{pointer-events:auto}.mechanism>div{display:flex;justify-content:center;gap:6px;align-items:center;margin-top:9px}.mechanism button{background:#181c21e8;backdrop-filter:blur(10px);font-size:11px;min-height:40px}.mechanism p{color:#eed2a8;font-size:11px;min-height:27px;max-width:530px;margin:9px auto 0;text-shadow:0 1px 5px black}.scene-hint{position:absolute;left:30px;bottom:26px;font-size:8px;font-weight:700;letter-spacing:.12em;color:#e0d6c7;display:flex;align-items:center;gap:7px}.scene-hint span{color:#8f8d89;font-weight:400}.scene-hint i{height:10px;width:1px;background:#ffffff20;margin:0 8px}.config-panel{border-left:1px solid var(--line);background:linear-gradient(145deg,#222529,#181b1f 60%);display:flex;flex-direction:column;min-height:0;z-index:4;box-shadow:-15px 0 55px #0002}.panel-header{display:flex;align-items:center;justify-content:space-between;padding:26px 25px 21px}.panel-header h2{font-family:'Barlow Condensed',sans-serif;font-size:29px;font-weight:500;margin:7px 0 0;letter-spacing:.01em}.panel-header button{border:0;color:#9e9b96;font-size:10px}.steps{display:grid;grid-template-columns:repeat(4,1fr);padding:0 17px 15px;gap:5px;border-bottom:1px solid var(--line)}.steps button{padding:9px 3px;border:0;border-radius:5px;font-size:10px;display:grid;gap:5px}.steps b{font-size:9px;color:#8d8b85;font-weight:400}.steps [aria-current=step] b{color:#d2ad78}.panel-scroll{padding:25px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;flex:1;min-height:0}.section-number{font-family:'Barlow Condensed',sans-serif;font-size:28px;color:#a98555;display:flex;align-items:center;gap:12px}.section-number small{font-family:Barlow,sans-serif;font-size:8px;color:#aaa29a;letter-spacing:.14em}h3{font-family:'Barlow Condensed',sans-serif;font-size:27px;font-weight:500;margin:12px 0 8px}h4{font-size:12px;font-weight:500;margin:24px 0 11px}.intro{color:#aaa6a0;font-size:12px;line-height:1.6;margin:0 0 24px}label{font-size:11px;color:#c6c2bd}select,input[type=number]{width:100%;min-height:44px;border:1px solid #ffffff1d;border-radius:6px;background:#121619;padding:9px 11px;color:#f2eade}select{margin-top:7px}.number-field{display:block;margin:18px 0}.number-field>span{display:flex;justify-content:space-between;align-items:baseline}.number-field small{font-size:9px;color:#797a79}.number-pair{display:grid;grid-template-columns:1fr 77px 22px;align-items:center;gap:10px;margin-top:8px}.number-pair input[type=range]{width:100%;accent-color:#d3ae7d;min-height:30px}.number-pair input[type=number]{font-size:13px;padding:8px}.number-pair b{font-size:10px;color:#888;font-weight:400}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.toggle{display:flex;justify-content:space-between;align-items:center;padding:17px 0;border-bottom:1px solid var(--line);gap:10px}.toggle small{display:block;color:#7d817f;font-size:10px;margin-top:5px}.toggle input{appearance:none;min-width:37px;width:37px;height:22px;border-radius:15px;background:#0f1316;border:1px solid #ffffff25;position:relative;cursor:pointer}.toggle input:before{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;background:#6a6d6e;border-radius:50%;transition:transform .2s}.toggle input:checked{background:#9a7546;border-color:#b48b58}.toggle input:checked:before{background:#f8e8d0;transform:translateX(15px)}.swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.swatches button{padding:7px 4px;font-size:9px;min-width:0;border-radius:7px}.swatches i{height:35px;display:block;margin-bottom:7px;border-radius:3px;border:1px solid #ffffff20}.swatches .oak i,.swatches .walnut i{background-image:url('./assets/materials/oak.webp');background-size:90px}.swatches .walnut i{background-blend-mode:multiply}.swatches .mirror i{background:linear-gradient(115deg,#667b85,#e5eff0 40%,#728a93 43%,#bccbd0 60%,#4d616a)}.presets{display:grid;gap:6px}.presets button{text-align:left;padding:12px;font-size:11px}.presets small{display:block;color:#8f918e;font-size:9px;font-weight:400;line-height:1.5;margin-top:4px}.module-tabs{display:flex;gap:6px;margin:20px 0}.module-tabs button{flex:1;padding:7px}.module-tabs small{display:block;font-size:8px;font-weight:400;margin-top:3px}.choice-list{display:grid;gap:8px;margin:24px 0}.choice-list button{text-align:left;padding:14px 16px}.choice-list strong{display:block;font-size:12px}.choice-list small{display:block;color:#92958f;font-size:10px;margin-top:6px;font-weight:400}.metric-card{padding:16px;border:1px solid var(--line);border-radius:9px;background:#11161b70;font-size:12px;line-height:1.6;margin:20px 0}.metric-card b{font-weight:500;color:#d3b386}.metric-card p{font-size:11px;color:#999e9e;margin:7px 0 0}.metric-card dl{display:grid;grid-template-columns:1fr auto;gap:8px;margin:0;font-size:11px}.metric-card dt{color:#8d9594}.metric-card dd{margin:0}.technical-note{color:#818681;font-size:10px;line-height:1.7;margin:18px 0}.issues:empty{display:none}.issues{border:1px solid #d99c3744;background:#9e702815;border-radius:8px;margin-top:20px;padding:12px;font-size:11px;color:#e4c79e;line-height:1.5}.issues p{margin:6px 0}.issues .error{color:#ffc1b2}.panel-bottom{display:flex;align-items:center;justify-content:space-between;padding:18px 25px;border-top:1px solid var(--line);background:#1a1d21;gap:12px}.panel-bottom small{display:block;color:#8b8e8c;font-size:8px;letter-spacing:.1em}.panel-bottom span{display:block;font-size:12px;margin-top:6px}.panel-bottom button{min-width:103px}.wide{width:100%}.project-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.handoff{padding:20px;background:radial-gradient(ellipse at top right,#77332835,transparent 80%),#181d22;border:1px solid #b85a3930;border-radius:10px;margin-top:30px}.handoff h4{font-family:'Barlow Condensed',sans-serif;font-size:29px;line-height:1.05;margin:14px 0}.handoff p{color:#a1a4a1;font-size:11px;line-height:1.6}.handoff button{font-size:11px;width:100%;margin-top:10px}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:15px 21px;border:1px solid #ca9f6288;background:#1c2529f5;border-radius:10px;max-width:min(580px,94vw);z-index:100;font-size:12px;box-shadow:0 10px 40px #0005}[hidden]{display:none!important}
@media(min-width:1500px){#app{grid-template-columns:minmax(0,1fr) 450px}.panel-scroll{padding:30px}.panel-header{padding:30px}.scene-caption{top:115px}}
@media(max-width:1100px) and (min-width:821px){#app{grid-template-columns:minmax(0,1fr) 365px}.scene-caption h1{font-size:34px}.scene-caption{left:24px}.brand{left:24px}.scene-settings{top:82px;right:18px}.panel-scroll{padding:21px}.mechanism{left:12px;right:12px}.view-tools button{padding:8px 9px}}
@media(max-width:820px){body{overflow:hidden}#app{display:flex;flex-direction:column;height:100dvh}.showroom{height:51dvh;min-height:300px;flex:none}.brand{top:13px;left:16px;gap:8px}.brand img{width:30px;height:30px}.brand strong{font-size:11px}.brand small{font-size:7px;margin-top:3px}.scene-caption{top:64px;left:17px}.scene-caption .eyebrow{display:none}.scene-caption h1{font-size:25px;line-height:.95;margin:0}.scene-caption p{font-size:9px;margin-top:7px}.scene-settings{top:11px;right:12px}.scene-settings summary{font-size:9px;padding:12px;min-height:40px}.scene-settings>div{width:210px}.scene-hint{display:none}.view-tools{bottom:12px;padding:3px;gap:0}.view-tools button{font-size:10px;min-height:38px;padding:7px 13px}.mechanism{bottom:61px;left:9px;right:9px}.mechanism>.eyebrow{display:none}.mechanism>div{margin:0}.mechanism button{font-size:10px;min-height:38px;padding:7px 10px}.mechanism p{font-size:9px;min-height:13px;margin:5px auto 0;max-width:95%}.config-panel{flex:1;min-height:0;border-left:0;border-top:1px solid #a8906b44;border-radius:17px 17px 0 0;margin-top:-1px}.panel-header{padding:13px 17px 9px}.panel-header .eyebrow{font-size:7px}.panel-header h2{font-size:22px;margin-top:3px}.panel-header button{font-size:9px;min-height:36px}.steps{padding:0 12px 8px}.steps button{display:flex;justify-content:center;gap:6px;font-size:10px;padding:8px 2px;min-height:36px;align-items:center}.steps b{font-size:8px}.panel-scroll{padding:19px 20px}.panel-scroll h3{font-size:24px}.section-number{font-size:23px}.panel-bottom{padding:10px 18px;padding-bottom:max(10px,env(safe-area-inset-bottom));min-height:62px}.panel-bottom button{min-height:40px}.number-pair{grid-template-columns:1fr 85px 24px}.swatches{grid-template-columns:repeat(4,1fr)}.swatches i{height:32px}.intro{font-size:11px}.toast{bottom:78px}.mechanism>div{flex-wrap:wrap}}
@media(max-height:650px) and (min-width:821px){.scene-caption{top:90px}.scene-caption h1{font-size:30px}.panel-header{padding:15px 22px}.panel-scroll{padding-top:15px}.mechanism{bottom:125px}.view-tools{bottom:70px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.mechanism select{pointer-events:auto;width:145px;margin:0;min-height:40px;background:#181c21ed;border-color:#ffffff25;font-size:10px}.mechanism>div{flex-wrap:wrap}@media(max-width:820px){.mechanism select{width:120px;min-height:38px;font-size:9px}.mechanism{bottom:61px}.mechanism>div{gap:4px}}
.number-pair input[type=number]{font-weight:600;color:#fff4e3}.swatches i{height:48px}.swatches [aria-pressed=true]{box-shadow:inset 0 0 0 1px #d2ad78}.mechanism button{background:#22262a;border-color:#44494b}.mechanism button[aria-pressed=true]{background:#3a3731;border-color:#9e825e}.scene-caption h1{font-size:clamp(32px,3.15vw,51px)}@media(max-width:820px){.scene-caption h1{font-size:25px}.swatches i{height:40px}}
@media(max-width:820px){.view-tools button,.mechanism button,.mechanism select{min-height:44px}.view-tools button{min-width:44px}.view-tools{bottom:9px}.mechanism{bottom:68px}.steps button{min-height:44px}.panel-header button{min-height:44px}.scene-settings summary{min-height:44px}}
@media(max-width:820px){.scene-caption{top:56px}.scene-caption h1{display:none}.scene-caption p{font-size:9px;margin:0;color:#c9bba5}}
@media(max-width:820px){.showroom{height:56dvh;min-height:340px}}
#mechanism-status{max-height:44px;overflow-y:auto;pointer-events:auto;scrollbar-width:thin;padding:2px 6px}@media(min-width:821px) and (max-height:800px){.scene-caption{top:82px}.scene-caption .eyebrow{display:none}.scene-caption h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:-1px;white-space:nowrap}.scene-caption p{margin:0}}@media(max-width:820px){.scene-caption h1{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:-1px;white-space:nowrap}.showroom{min-height:360px}}@media(max-width:820px) and (max-height:540px){body{overflow:auto}#app{display:block;height:auto;overflow:visible}.showroom{height:460px;min-height:460px}.showroom #canvas{touch-action:pan-y}.config-panel{height:540px;min-height:540px;border-radius:0;margin:0}}
@media(max-width:820px) and (max-height:540px){.showroom #canvas{touch-action:pan-y!important}}
