@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-wght-normal-CkhJZR-_.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-wght-normal-Dx4kXJAl.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f5f3ef;--surface:#fff;--surface-2:#faf9f6;--surface-3:#f1eee8;--border:#e7e2d9;--border-strong:#d3cbbe;--text:#1d2024;--text-2:#565c66;--text-3:#8a909a;--accent:#c2552d;--accent-hover:#a8461f;--accent-soft:#f9e9e1;--accent-ring:#c2552d47;--on-accent:#fff;--ok:#23845a;--ok-soft:#e4f4ec;--warn:#a86b06;--warn-soft:#fdf2dc;--danger:#cc3b3b;--danger-soft:#fce8e8;--info-soft:#e7f0fc;--canvas-bg:#ece9e3;--canvas-dot:#d6d0c5;--grid-minor:#3c322812;--grid-major:#3c322829;--tile-swatch:#ebe8e2;--shadow-sm:0 1px 2px #1e19140f;--shadow-md:0 4px 14px #1e191414, 0 1px 3px #1e19140f;--shadow-lg:0 18px 40px #1e19141f, 0 4px 10px #1e19140f;--radius-sm:8px;--radius:12px;--radius-lg:18px;--font:"Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0f1114;--surface:#171a1f;--surface-2:#1b1f25;--surface-3:#22272e;--border:#2a3038;--border-strong:#3a414b;--text:#eceef2;--text-2:#a9b0bb;--text-3:#757d89;--accent:#e57750;--accent-hover:#f08a65;--accent-soft:#3a241b;--accent-ring:#e5775059;--on-accent:#1a0f0a;--ok:#4cc38a;--ok-soft:#15281f;--warn:#e5a93a;--warn-soft:#2c2312;--danger:#f06b6b;--danger-soft:#331a1a;--info-soft:#172234;--canvas-bg:#121519;--canvas-dot:#252a31;--grid-minor:#ffffff0d;--grid-major:#ffffff1f;--shadow-sm:0 1px 2px #0006;--shadow-md:0 4px 16px #0006;--shadow-lg:0 18px 40px #00000080}}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0f1114;--surface:#171a1f;--surface-2:#1b1f25;--surface-3:#22272e;--border:#2a3038;--border-strong:#3a414b;--text:#eceef2;--text-2:#a9b0bb;--text-3:#757d89;--accent:#e57750;--accent-hover:#f08a65;--accent-soft:#3a241b;--accent-ring:#e5775059;--on-accent:#1a0f0a;--ok:#4cc38a;--ok-soft:#15281f;--warn:#e5a93a;--warn-soft:#2c2312;--danger:#f06b6b;--danger-soft:#331a1a;--info-soft:#172234;--canvas-bg:#121519;--canvas-dot:#252a31;--grid-minor:#ffffff0d;--grid-major:#ffffff1f;--shadow-sm:0 1px 2px #0006;--shadow-md:0 4px 16px #0006;--shadow-lg:0 18px 40px #00000080}*,:before,:after{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;font-feature-settings:"cv11", "ss01";margin:0;font-size:14px;line-height:1.45}body{min-height:100dvh}h1,h2,h3{letter-spacing:-.02em;margin:0}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.muted{color:var(--text-3)}kbd{font:600 11px var(--font);border:1px solid var(--border-strong);background:var(--surface);border-bottom-width:2px;border-radius:5px;padding:1px 5px}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.btn{white-space:nowrap;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:7px;font-weight:600;transition:background .15s,border-color .15s,color .15s,box-shadow .15s,transform 50ms;display:inline-flex}.btn:active:not(:disabled){transform:translateY(1px)}.btn-sm{height:32px;padding:0 11px;font-size:13px}.btn-md{height:40px;padding:0 16px}.btn-lg{border-radius:12px;height:48px;padding:0 22px;font-size:15px}.btn-primary{background:var(--accent);color:var(--on-accent);box-shadow:0 1px 0 #ffffff26 inset, 0 2px 6px var(--accent-ring)}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-secondary{background:var(--surface);border-color:var(--border-strong);box-shadow:var(--shadow-sm)}.btn-secondary:hover:not(:disabled){background:var(--surface-3)}.btn-ghost{color:var(--text-2);background:0 0}.btn-ghost:hover:not(:disabled){background:var(--surface-3);color:var(--text)}.btn:disabled{opacity:.45}.icon-btn{width:36px;height:36px;color:var(--text-2);background:0 0;border:0;border-radius:9px;place-items:center;transition:background .15s,color .15s;display:inline-grid}.icon-btn:hover:not(:disabled){background:var(--surface-3);color:var(--text)}.icon-btn.is-active{background:var(--accent-soft);color:var(--accent)}.icon-btn:disabled{opacity:.35}.icon-btn.danger{color:var(--danger)}.link-btn{color:var(--accent);background:0 0;border:0;border-radius:6px;align-items:center;gap:4px;margin:-2px -4px;padding:2px 4px;font-size:13px;font-weight:600;display:inline-flex}.link-btn:hover{background:var(--accent-soft)}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field-label{color:var(--text-2);font-size:12.5px;font-weight:600}.input-wrap{align-items:center;display:flex;position:relative}.input{border:1px solid var(--border-strong);background:var(--surface);font-variant-numeric:tabular-nums;border-radius:10px;width:100%;height:42px;padding:0 12px;font-size:15px;font-weight:500;transition:border-color .15s,box-shadow .15s}.input-wrap .input{padding-right:44px}.input:hover{border-color:var(--text-3)}.input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring);outline:none}.input-lg{height:50px;padding:0 14px;font-size:17px}.input-suffix{color:var(--text-3);pointer-events:none;font-size:13px;font-weight:600;position:absolute;right:12px}.has-error .input{border-color:var(--danger);box-shadow:0 0 0 3px var(--danger-soft)}.field-error{color:var(--danger);font-size:12.5px;font-weight:500}.field-hint{color:var(--text-3);font-size:12.5px}.segmented{background:var(--surface-3);border:1px solid var(--border);border-radius:11px;gap:2px;padding:3px;display:inline-flex}.segmented button{color:var(--text-2);background:0 0;border:0;border-radius:8px;padding:6px 14px;font-size:13px;font-weight:600;transition:background .15s,color .15s,box-shadow .15s}.segmented button:hover{color:var(--text)}.segmented button.is-active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm), 0 0 0 1px var(--border)}.toggle{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2);cursor:pointer;align-items:center;gap:12px;margin-top:12px;padding:12px 14px;display:flex}.toggle-text{flex-direction:column;flex:1;gap:2px;display:flex}.toggle-label{font-weight:600}.toggle-desc{color:var(--text-3);font-size:12.5px}.toggle input{opacity:0;pointer-events:none;position:absolute}.toggle-track{background:var(--border-strong);border-radius:99px;flex:none;width:40px;height:24px;padding:3px;transition:background .2s}.toggle-thumb{background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .2s;display:block;box-shadow:0 1px 3px #00000040}.toggle input:checked+.toggle-track{background:var(--accent)}.toggle input:checked+.toggle-track .toggle-thumb{transform:translate(16px)}.toggle input:focus-visible+.toggle-track{outline:2px solid var(--accent);outline-offset:2px}.check{color:var(--text-2);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:6px;font-size:13px;font-weight:600;display:inline-flex}.check input{accent-color:var(--accent);width:16px;height:16px}.badge{background:var(--surface-3);border:1px solid var(--border);color:var(--text-2);letter-spacing:.01em;vertical-align:middle;border-radius:99px;align-items:center;gap:3px;padding:1px 7px;font-size:11px;font-weight:600;display:inline-flex}.badge-accent{background:var(--accent-soft);color:var(--accent);border-color:#0000}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip{border:1px solid var(--border-strong);background:var(--surface);font-variant-numeric:tabular-nums;color:var(--text-2);border-radius:99px;padding:6px 12px;font-size:13px;font-weight:600;transition:all .15s}.chip:hover{border-color:var(--text-3);color:var(--text)}.chip[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.callout{border-radius:var(--radius);align-items:flex-start;gap:10px;margin:4px 0 14px;padding:11px 13px;font-size:13px;line-height:1.5;display:flex}.callout-icon{flex:none;margin-top:1px;display:inline-flex}.callout-info{background:var(--info-soft)}.callout-ok{background:var(--ok-soft);color:var(--ok)}.callout-warn{background:var(--warn-soft);color:var(--warn)}.callout-danger{background:var(--danger-soft);color:var(--danger)}.callout .link-btn{margin-left:2px}.grid-2{grid-template-columns:1fr 1fr;gap:12px;display:grid}.stack{flex-direction:column;gap:14px;display:flex}.section{border-top:1px solid var(--border);padding:18px 0}.panel-head+.section,.callout+.section{border-top:0;padding-top:8px}.section-head{justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:12px;display:flex}.section-title{letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);font-size:12px;font-weight:700}.section-aside{color:var(--text-3);font-variant-numeric:tabular-nums;font-size:12.5px}.help{color:var(--text-3);margin:12px 0 0;font-size:12.5px;line-height:1.55}.help svg{vertical-align:-2px}.eyebrow{letter-spacing:.04em;text-transform:uppercase;color:var(--accent);align-items:center;gap:6px;font-size:12px;font-weight:700;display:inline-flex}.logo{align-items:center;gap:9px;display:inline-flex}.logo svg{display:block}.logo-text{letter-spacing:-.03em;font-size:18px;font-weight:800}.app-editor{grid-template-rows:56px 1fr;height:100dvh;display:grid}.topbar{background:var(--surface);border-bottom:1px solid var(--border);z-index:10;align-items:center;gap:10px;padding:0 12px 0 8px;display:flex}.topbar-back{color:var(--text-2);background:0 0;border:0;border-radius:10px;align-items:center;gap:4px;padding:6px 8px 6px 4px;display:inline-flex}.topbar-back:hover{background:var(--surface-3)}.topbar-title{flex:1;align-items:baseline;gap:10px;min-width:0;display:flex}.topbar-name{white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:700;overflow:hidden}.topbar-status{color:var(--text-3);white-space:nowrap;align-items:center;gap:3px;font-size:12px;display:inline-flex}.topbar-actions{align-items:center;gap:2px;display:flex}.editor-body{grid-template-columns:minmax(380px,440px) 1fr;min-height:0;display:grid}.panel{background:var(--surface);border-right:1px solid var(--border);z-index:2;flex-direction:column;min-height:0;display:flex}.stepper{border-bottom:1px solid var(--border);padding:12px 14px 0}.stepper ol{scrollbar-width:none;gap:2px;margin:0;padding:0 0 10px;list-style:none;display:flex;overflow-x:auto}.step{min-width:50px;color:var(--text-3);background:0 0;border:0;border-radius:10px;flex-direction:column;align-items:center;gap:4px;padding:4px 2px;font-size:11.5px;font-weight:600;display:flex}.step:hover:not(:disabled){color:var(--text)}.step:disabled{opacity:.5}.step-num{border:1.5px solid var(--border-strong);background:var(--surface);border-radius:50%;place-items:center;width:26px;height:26px;font-size:12px;font-weight:700;transition:all .2s;display:grid}.step.is-done .step-num{background:var(--accent-soft);color:var(--accent);border-color:#0000}.step.is-active{color:var(--text)}.step.is-active .step-num{background:var(--accent);border-color:var(--accent);color:var(--on-accent);box-shadow:0 0 0 4px var(--accent-ring)}.stepper li{flex:1;justify-content:center;display:flex}.progress{background:0 0;height:2px;margin:0 -14px}.progress span{background:var(--accent);height:100%;transition:width .35s;display:block}.panel-scroll{scrollbar-gutter:stable;flex:1;padding:0 22px 28px;overflow-y:auto}.panel-head{padding:22px 0 14px}.panel-head h2{margin-top:6px;font-size:22px;font-weight:750}.panel-hint{color:var(--text-2);margin:4px 0 0}.panel-footer{border-top:1px solid var(--border);background:var(--surface);justify-content:space-between;gap:8px;padding:12px 22px;display:flex}.canvas-area{background:var(--canvas-bg);min-width:0;min-height:0;position:relative}.busy{background:var(--surface);color:var(--text-2);box-shadow:var(--shadow-md);pointer-events:none;border-radius:99px;align-items:center;gap:6px;padding:6px 10px;font-size:12px;font-weight:600;display:inline-flex;position:absolute;bottom:14px;right:14px}.plan-view{touch-action:none;-webkit-user-select:none;user-select:none;background-image:radial-gradient(var(--canvas-dot) 1px, transparent 1.2px);background-size:22px 22px;outline:none;position:absolute;inset:0;overflow:hidden}.plan-view:focus-visible{box-shadow:inset 0 0 0 2px var(--accent)}.plan-svg{width:100%;height:100%;display:block}.plan-toolbar{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-md);border-radius:13px;align-items:center;gap:2px;padding:4px;display:flex;position:absolute;top:14px;right:14px}.toolbar-sep{background:var(--border);width:1px;height:22px;margin:0 3px}.plan-legend{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-md);color:var(--text-2);border-radius:12px;flex-wrap:wrap;gap:4px 14px;padding:8px 12px;font-size:12.5px;font-weight:500;display:flex;position:absolute;bottom:14px;left:14px}.legend-item{align-items:center;gap:6px;display:inline-flex}.legend-item b{color:var(--text);font-variant-numeric:tabular-nums}.legend-swatch{border-radius:3px;width:12px;height:12px;box-shadow:inset 0 0 0 1px #0000001f}.plan-tooltip{z-index:5;background:var(--surface);border:1px solid var(--border);min-width:170px;box-shadow:var(--shadow-lg);pointer-events:none;border-radius:10px;padding:9px 11px;font-size:12.5px;position:absolute}.tooltip-title{align-items:center;gap:7px;margin-bottom:3px;font-weight:700;display:flex}.tooltip-row{font-variant-numeric:tabular-nums}.tooltip-row.muted{color:var(--text-3)}.cut-badge{background:var(--text);min-width:22px;height:22px;color:var(--surface);border-radius:6px;place-items:center;padding:0 5px;font-size:12px;font-weight:800;display:inline-grid}.plan-hint{background:var(--text);color:var(--surface);pointer-events:none;white-space:nowrap;border-radius:99px;padding:7px 12px;font-size:12.5px;font-weight:600;position:absolute;top:14px;left:14px}.plan-empty{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-md);color:var(--text-2);text-align:center;border-radius:12px;flex-direction:column;align-items:center;gap:2px;max-width:min(420px,90%);padding:12px 16px;display:flex;position:absolute;bottom:70px;left:50%;transform:translate(-50%)}.plan-empty strong{color:var(--text)}.drawer{background-image:none;background-color:var(--surface-2)}.drawer-hud{background:var(--surface);border:1px solid var(--border);max-width:640px;box-shadow:var(--shadow-md);border-radius:14px;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:12px 14px;display:flex;position:absolute;top:14px;left:14px;right:190px}.drawer-hud-text{flex-direction:column;flex:240px;gap:2px;display:flex}.drawer-hud-text span{color:var(--text-3);font-size:12.5px}.drawer-hud-actions{align-items:center;gap:4px;display:flex}.drawer-hud-actions .check{margin-right:6px}.typed-length{background:var(--text);color:var(--surface);box-shadow:var(--shadow-lg);border-radius:12px;align-items:center;gap:8px;padding:9px 14px;font-size:14px;display:inline-flex;position:absolute;bottom:24px;left:50%;transform:translate(-50%)}.typed-length b{font-variant-numeric:tabular-nums;font-size:17px}.typed-length kbd{color:var(--text)}.drawer-error{background:var(--danger);color:#fff;box-shadow:var(--shadow-lg);border-radius:12px;padding:10px 14px;font-weight:600;position:absolute;bottom:24px;left:50%;transform:translate(-50%)}.drawer-empty{color:var(--text-3);pointer-events:none;font-size:12px;position:absolute;bottom:14px;left:14px}.shape-grid{grid-template-columns:repeat(5,1fr);gap:8px;display:grid}.shape-card{border:1.5px solid var(--border);border-radius:var(--radius);background:var(--surface);min-height:74px;color:var(--text-2);flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:10px 4px 8px;font-size:12px;font-weight:600;transition:all .15s;display:flex}.shape-card:hover{border-color:var(--border-strong);color:var(--text)}.shape-card[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.shape-card-draw{border-style:dashed}.draw-cta{border:1px solid var(--border);border-radius:var(--radius);background:linear-gradient(135deg, var(--accent-soft), transparent 70%);text-align:left;width:100%;color:var(--accent);align-items:center;gap:12px;margin-top:10px;padding:12px 14px;transition:border-color .15s;display:flex}.draw-cta:hover{border-color:var(--accent)}.draw-cta>span{color:var(--text);flex-direction:column;flex:1;display:flex}.draw-cta small{color:var(--text-2);font-size:12.5px}.walls{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.wall-row{border:1px solid #0000;border-radius:11px;grid-template-columns:38px 22px 1fr 32px;align-items:center;gap:8px;padding:4px 4px 4px 8px;transition:background .15s,border-color .15s;display:grid}.wall-row:hover,.wall-row.is-focused{background:var(--surface-2);border-color:var(--border)}.wall-tag{letter-spacing:.04em;font-size:13px;font-weight:800}.wall-dir{color:var(--text-3);place-items:center;display:grid}.wall-field .input{height:38px}.wall-auto{background:var(--surface-3);height:38px;color:var(--text-2);font-variant-numeric:tabular-nums;border-radius:10px;justify-content:space-between;align-items:center;padding:0 12px;font-weight:600;display:flex}.wall-calc{width:32px;height:32px;color:var(--text-3);opacity:0;background:0 0;border:0;border-radius:8px;place-items:center;transition:opacity .15s;display:grid}.wall-row:hover .wall-calc,.wall-calc:focus-visible{opacity:1}.wall-calc:hover{background:var(--surface-3);color:var(--text)}.tile-size{grid-template-columns:1fr 190px;align-items:start;gap:16px;display:grid}.tile-preview-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2);flex-direction:column;align-items:center;gap:4px;padding:10px 8px 12px;display:flex}.tile-facts{color:var(--text-3);font-variant-numeric:tabular-nums;flex-direction:column;align-items:center;font-size:12px;display:flex}.swatches{grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px;display:grid}.swatch{border:1.5px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text-2);flex-direction:column;align-items:center;gap:6px;padding:8px 6px;font-size:12px;font-weight:600;transition:all .15s;display:flex}.swatch:hover{border-color:var(--border-strong)}.swatch[aria-checked=true]{border-color:var(--accent);color:var(--text);box-shadow:0 0 0 3px var(--accent-ring)}.swatch-color{border-radius:7px;width:100%;height:34px;box-shadow:inset 0 0 0 1px #0000001a}.pattern-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.pattern-card{border:1.5px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);text-align:left;flex-direction:column;align-items:flex-start;gap:2px;padding:10px;transition:all .15s;display:flex}.pattern-card:hover{border-color:var(--border-strong)}.pattern-card[aria-checked=true]{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring)}.pattern-thumb{aspect-ratio:1;border-radius:9px;width:100%;height:auto;margin-bottom:8px;display:block}.pattern-name{font-weight:700}.pattern-desc{color:var(--text-3);font-size:12px;line-height:1.35}.direction-grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.direction-card{border:1.5px solid var(--border);border-radius:var(--radius);background:var(--surface);text-align:left;color:var(--text-2);flex-direction:column;align-items:flex-start;gap:3px;padding:10px 11px;transition:all .15s;display:flex}.direction-card:hover{border-color:var(--border-strong)}.direction-card[aria-checked=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.direction-name{color:var(--text);font-size:13px;font-weight:700}.direction-hint{color:var(--text-3);font-size:11.5px;line-height:1.3}.joint-row{grid-template-columns:150px 1fr;align-items:center;gap:16px;display:grid}.joint-illustration{border-radius:var(--radius);background:var(--surface-2);border:1px solid var(--border);width:150px;height:auto}.options{flex-direction:column;gap:8px;display:flex}.option{border:1.5px solid var(--border);border-radius:var(--radius);background:var(--surface);transition:all .15s}.option:hover{border-color:var(--border-strong)}.option.is-active{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring)}.option-main{text-align:left;background:0 0;border:0;gap:12px;width:100%;padding:12px 14px;display:flex}.radio-dot{border:1.5px solid var(--border-strong);border-radius:50%;flex:none;width:18px;height:18px;margin-top:1px;transition:all .15s}.option.is-active .radio-dot{border:5px solid var(--accent)}.option-body{flex-direction:column;gap:2px;min-width:0;display:flex}.option-title{align-items:center;gap:8px;font-weight:700;display:flex}.option-desc{color:var(--text-2);font-size:13px}.option-metrics{color:var(--text-3);font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:4px 12px;margin-top:5px;font-size:12px;display:flex}.metric-bad{color:var(--danger);align-items:center;gap:3px;font-weight:600;display:inline-flex}.corner-picker{grid-template-columns:1fr 1fr;gap:6px;padding:0 14px 14px 44px;display:grid}.corner-btn{border:1px solid var(--border);background:var(--surface-2);color:var(--text-2);border-radius:9px;align-items:center;gap:8px;padding:7px 10px;font-size:12.5px;font-weight:600;display:flex}.corner-btn[aria-checked=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.corner-glyph{opacity:.8;border:1.5px solid;border-radius:3px;width:16px;height:16px;position:relative}.corner-glyph:after{content:"";background:currentColor;border-radius:1px;width:6px;height:6px;position:absolute}.corner-tl .corner-glyph:after{top:1px;left:1px}.corner-tr .corner-glyph:after{top:1px;right:1px}.corner-bl .corner-glyph:after{bottom:1px;left:1px}.corner-br .corner-glyph:after{bottom:1px;right:1px}.reference .help{margin:0 0 12px}.summary{border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;margin:0;display:flex;overflow:hidden}.summary-row{border-top:1px solid var(--border);grid-template-columns:70px 1fr auto;align-items:center;gap:10px;padding:10px 14px;display:grid}.summary-row:first-child{border-top:0}.summary dt{color:var(--text-3);font-size:12.5px;font-weight:600}.summary dd{min-width:0;margin:0;font-weight:500}.hero-stat{border-radius:var(--radius-lg);background:radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface-2);border:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:12px;padding:18px;display:flex}.hero-stat>div:first-child{flex-direction:column;display:flex}.hero-label{text-transform:uppercase;letter-spacing:.06em;color:var(--text-3);font-size:12px;font-weight:700}.hero-value{letter-spacing:-.04em;font-variant-numeric:tabular-nums;font-size:46px;font-weight:800;line-height:1.05}.hero-sub{color:var(--text-2);font-variant-numeric:tabular-nums;font-weight:500}.hero-actions{gap:6px;display:flex}.stat-grid{grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px;display:grid}.stat{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);flex-direction:column;gap:2px;padding:10px 12px;display:flex}.stat-label{color:var(--text-3);font-size:11.5px;font-weight:600}.stat-value{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:16px;font-weight:700}.stat-warn .stat-value{color:var(--warn)}.stat-bad .stat-value{color:var(--danger)}.calc{color:var(--text-3);font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:2px 8px;margin-top:12px;font-size:12.5px;display:flex}.cut-table{border-collapse:collapse;width:100%;font-size:13px}.cut-table th{text-align:left;color:var(--text-3);border-bottom:1px solid var(--border);padding:0 8px 6px;font-size:11.5px;font-weight:600}.cut-table td{border-bottom:1px solid var(--border);vertical-align:middle;padding:7px 8px}.cut-table tbody tr{transition:background .12s}.cut-table tbody tr:hover{background:var(--surface-2)}.cut-table .num{text-align:right;font-variant-numeric:tabular-nums}.cut-table td.num b{font-size:15px}.cut-piece{align-items:center;gap:8px;display:inline-flex}.cut-shape{display:block}.cut-size{font-variant-numeric:tabular-nums;font-weight:600;display:block}.cut-kind{color:var(--text-3);align-items:center;gap:5px;font-size:11.5px;display:inline-flex}.dot{border-radius:50%;width:7px;height:7px}.home{flex-direction:column;min-height:100dvh;display:flex}.home-bar{justify-content:space-between;align-items:center;width:100%;max-width:1200px;margin:0 auto;padding:14px 28px;display:flex}.home-main{flex:1;width:100%;max-width:1200px;margin:0 auto;padding:12px 28px 40px}.hero{background:radial-gradient(80% 120% at 0% 0%, var(--accent-soft), transparent 60%), linear-gradient(var(--surface), var(--surface));border:1px solid var(--border);box-shadow:var(--shadow-md);border-radius:28px;grid-template-columns:1.15fr 1fr;align-items:center;gap:40px;padding:44px;display:grid;position:relative;overflow:hidden}.hero:after{content:"";background-image:linear-gradient(var(--border) 2px, transparent 2px), linear-gradient(90deg, var(--border) 2px, transparent 2px);opacity:.6;pointer-events:none;background-size:52px 52px;width:260px;height:260px;position:absolute;bottom:-60px;right:-60px;transform:rotate(12deg);-webkit-mask-image:radial-gradient(circle,#000 30%,#0000 70%);mask-image:radial-gradient(circle,#000 30%,#0000 70%)}.hero-copy h1{letter-spacing:-.035em;margin:12px 0 14px;font-size:clamp(30px,4.2vw,46px);font-weight:800;line-height:1.06}.hero-copy p{color:var(--text-2);max-width:520px;margin:0 0 24px;font-size:16px;line-height:1.55}.features{z-index:1;gap:10px;margin:0;padding:0;list-style:none;display:grid;position:relative}.features li{border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);gap:12px;padding:14px;display:flex}.features li>span:last-child{flex-direction:column;display:flex}.features li>span:last-child span{color:var(--text-2);font-size:13px}.feature-icon{background:var(--accent-soft);width:36px;height:36px;color:var(--accent);border-radius:10px;flex:none;place-items:center;display:grid}.projects{margin-top:36px}.projects-head{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.projects-head h2{font-size:20px;font-weight:750}.project-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;display:grid}.project-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);transition:box-shadow .2s,transform .2s,border-color .2s;position:relative;overflow:hidden}.project-card:hover{box-shadow:var(--shadow-lg);border-color:var(--border-strong);transform:translateY(-2px)}.project-open{text-align:left;background:0 0;border:0;width:100%;padding:0;display:block}.project-thumb{background:var(--canvas-bg);background-image:radial-gradient(var(--canvas-dot) 1px, transparent 1.2px);border-bottom:1px solid var(--border);background-size:16px 16px;place-items:center;height:180px;padding:8px;display:grid}.thumb-svg{width:100%;height:100%}.project-info{padding:12px 14px 14px}.project-info h3{align-items:center;gap:8px;margin-bottom:3px;font-size:15px;font-weight:700;display:flex}.project-info p{color:var(--text-2);font-variant-numeric:tabular-nums;margin:0;font-size:12.5px}.project-info p.muted{color:var(--text-3)}.project-actions{background:var(--surface);box-shadow:var(--shadow-md);opacity:0;border-radius:11px;align-items:center;gap:2px;padding:3px;transition:opacity .15s;display:flex;position:absolute;top:8px;right:8px}.project-card:hover .project-actions,.project-actions:focus-within{opacity:1}.project-actions .icon-btn{width:30px;height:30px}.confirm-text{color:var(--danger);padding:0 4px 0 6px;font-size:12px;font-weight:700}.empty{text-align:center;border:1.5px dashed var(--border-strong);border-radius:var(--radius-lg);flex-direction:column;align-items:center;padding:48px 20px;display:flex}.empty h3{margin-top:16px;font-size:17px}.empty p{color:var(--text-2);margin:4px 0 18px}.empty-art{grid-template-columns:repeat(3,26px);gap:4px;display:grid;transform:rotate(-8deg)}.empty-art span{background:var(--surface-3);border:1px solid var(--border);border-radius:5px;height:26px}.empty-art span:nth-child(2),.empty-art span:nth-child(6){background:var(--accent-soft);border-color:#0000}.home-foot{text-align:center;color:var(--text-3);padding:20px;font-size:12.5px}.not-found{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:100dvh;padding:24px;display:flex}.not-found p{color:var(--text-2);margin:0 0 12px}.print-sheet{display:none}@media print{@page{size:A4;margin:12mm}html,body{color:#000;background:#fff!important}.app-editor{height:auto;display:block}.topbar,.editor-body{display:none!important}.print-sheet{color:#111;--text:#111;--text-2:#444;--text-3:#666;--border:#ddd;--border-strong:#bbb;--surface:#fff;--surface-2:#fafafa;display:block}.print-head{justify-content:space-between;align-items:flex-start;margin-bottom:8mm;display:flex}.print-head h1{font-size:20pt}.print-head p{color:#444;margin:2mm 0 0}.print-plan{width:100%;max-height:150mm}.print-cols{break-inside:avoid;grid-template-columns:1fr 1.3fr;gap:10mm;margin-top:6mm;display:grid}.print-cols h2{margin-bottom:3mm;font-size:12pt}.print-facts{border-collapse:collapse;width:100%;font-size:10pt}.print-facts th{text-align:left;color:#555;border-bottom:1px solid #ddd;padding:1.5mm 0;font-weight:500}.print-facts td{text-align:right;border-bottom:1px solid #ddd;padding:1.5mm 0}.cut-badge{color:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#111}svg{-webkit-print-color-adjust:exact;print-color-adjust:exact}}@media (width<=1100px){.editor-body{grid-template-columns:minmax(340px,380px) 1fr}.shape-grid{grid-template-columns:repeat(3,1fr)}.tile-size{grid-template-columns:1fr}.tile-preview-card{flex-direction:row;justify-content:center}}@media (width<=860px){.app-editor{height:auto;display:block}.topbar{height:56px;position:sticky;top:0}.editor-body{flex-direction:column;display:flex}.canvas-area{border-bottom:1px solid var(--border);order:-1;height:48vh;min-height:300px}.panel{border-right:0}.panel-scroll{padding:0 16px 24px;overflow:visible}.panel-footer{padding:10px 16px calc(10px + env(safe-area-inset-bottom));position:sticky;bottom:0;box-shadow:0 -6px 16px #0000000f}.stepper{z-index:4;background:var(--surface);position:sticky;top:56px}.plan-toolbar{flex-wrap:wrap;max-width:calc(100% - 20px);top:10px;right:10px}.plan-legend{bottom:10px;left:10px}.plan-hint{display:none}.drawer-hud{padding:10px 12px;top:60px;left:10px;right:10px}.drawer-hud-text span{display:none}.hero{grid-template-columns:1fr;gap:24px;padding:28px 22px}.home-bar,.home-main{padding-left:16px;padding-right:16px}.project-actions{opacity:1}.topbar-status{display:none}}@media (width<=480px){.stat-grid{grid-template-columns:1fr 1fr}.shape-grid{grid-template-columns:repeat(3,1fr)}.direction-grid,.joint-row{grid-template-columns:1fr}.joint-illustration{margin:0 auto}.hero-value{font-size:38px}.wall-calc{opacity:1}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
