:root{color-scheme:light;--bg:#f7f8fa;--surface:#fff;--muted-surface:#eef0f4;--text:#20242d;--muted:#606a79;--border:#d9dee7;--accent:#3159d8;--accent-text:#fff;--accent-wash:#ebefff;--success:#217a58;--warning:#94620e;--error:#b13742;--shadow:#dde1e9}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--bg:#111216;--surface:#191b21;--muted-surface:#20232b;--text:#ebedf2;--muted:#a0a8b7;--border:#343a46;--accent:#93adff;--accent-text:#111a35;--accent-wash:#242f4b;--success:#7ecaa8;--warning:#e5bc73;--error:#f496a0;--shadow:#13151b}}
:root[data-theme=dark]{color-scheme:dark;--bg:#111216;--surface:#191b21;--muted-surface:#20232b;--text:#ebedf2;--muted:#a0a8b7;--border:#343a46;--accent:#93adff;--accent-text:#111a35;--accent-wash:#242f4b;--success:#7ecaa8;--warning:#e5bc73;--error:#f496a0;--shadow:#13151b}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 -apple-system,BlinkMacSystemFont,Inter,'Segoe UI',sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button{border:0}button,select,input{border-radius:7px}h1,h2,p{margin:0}h1{font-size:28px;line-height:1.25;font-weight:600;letter-spacing:-.6px}h2{font-size:17px;font-weight:600}small,.footnote,.hint{font-size:13px;line-height:1.5;color:var(--muted)}.muted{color:var(--muted)}.eyebrow{font-size:12px;font-weight:600;letter-spacing:.65px;text-transform:uppercase;color:var(--muted)}.topbar{height:76px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:20px}.brand{text-decoration:none;color:var(--text);display:flex;gap:14px;align-items:center;font-size:18px;letter-spacing:-.3px;white-space:nowrap}.brand b{font-weight:500;padding-left:16px;margin-left:14px;border-left:1px solid var(--border)}.brandmark{width:25px;height:25px;border:5px solid var(--accent);border-radius:50%;display:block}.top-actions{display:flex;gap:12px;align-items:center}.quiet{background:none;color:var(--muted);padding:6px 8px;font-size:14px;text-decoration:none}.demo-tag,.model-tag{font-size:12px;border:1px solid var(--border);border-radius:5px;padding:4px 8px;color:var(--muted);white-space:nowrap}.workspace{display:grid;grid-template-columns:216px minmax(410px,1fr) 354px;max-width:1540px;margin:0 auto;min-height:calc(100vh - 76px)}.steps{padding:32px 16px 24px 24px;display:flex;flex-direction:column;border-right:1px solid var(--border);position:sticky;top:0;height:calc(100vh - 76px)}.steps>.eyebrow{padding:0 12px;margin-bottom:20px;font-size:11px}.step{display:flex;align-items:center;gap:10px;padding:12px;background:none;color:var(--muted);font-size:14px;text-align:left;margin-bottom:5px;line-height:1.35}.step:hover{background:var(--muted-surface)}.step.active{background:var(--accent-wash);color:var(--accent);font-weight:600}.step-dot{width:6px;height:6px;border:1px solid currentColor;border-radius:50%;flex-shrink:0}.step.active .step-dot{background:currentColor}.sidebar-bottom{margin-top:auto;padding:32px 12px 0}.connected{display:block;color:var(--success);font-size:13px;font-weight:500}.sidebar-bottom p{font-size:13px;color:var(--muted);margin:10px 0 25px}.text-button{display:block;background:none;padding:5px 0;color:var(--muted);font-size:12px;text-align:left}.text-button:hover{color:var(--accent)}main{padding:36px 32px 24px;min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:28px}.page-heading .eyebrow{margin-bottom:9px}.page-heading .muted{font-size:14px;max-width:440px;margin-top:12px}.model-tag{margin-top:4px}.form-card{border:1px solid var(--border);border-radius:9px;background:var(--surface);padding:24px;margin-bottom:20px}.form-card h2{margin-bottom:20px}.card-description{font-size:14px;margin:-7px 0 20px}.fields{display:grid;gap:20px}.fields.two{grid-template-columns:1fr 1fr}.field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:14px}.field>span:first-child{font-weight:500}.field input,.field select{width:100%;height:44px;padding:10px 12px;color:var(--text);background:var(--surface);border:1px solid var(--border);min-width:0}.field select{appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23768194' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;font-size:14px;text-overflow:ellipsis}.input-unit{display:flex;align-items:center;position:relative}.input-unit>input{padding-right:58px}.input-unit>span{position:absolute;right:13px;pointer-events:none;color:var(--muted);font-size:13px}.hint{margin-top:18px}.swatches{display:flex;gap:14px}.swatch{width:32px;height:32px;border:1px solid var(--border);border-radius:50%;outline-offset:4px}.swatch.selected{outline:2px solid var(--accent);outline-offset:4px}.swatch-blue{background:#567394}.swatch-stone{background:#aeb1b4}.swatch-forest{background:#496b60}.swatch-black{background:#32353c}.swatch-rose{background:#b58e96}.swatch-white{background:#f3f0e9}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:28px}.form-footer .muted{font-size:13px;margin-right:auto}.primary,.secondary{font-size:14px;font-weight:500;min-height:42px;padding:9px 18px}.primary{background:var(--accent);color:var(--accent-text)}.primary:hover{filter:brightness(1.08)}.secondary{background:var(--surface);color:var(--text);border:1px solid var(--border)}.secondary:hover{background:var(--muted-surface)}.full{width:100%}.demo-note{font-size:12px;color:var(--muted);line-height:1.65;border-top:1px solid var(--border);padding-top:22px;margin-top:36px}.demo-note strong{font-weight:500;color:var(--text)}.demo-note p{margin:7px 0}.quote-panel{background:var(--surface);border-left:1px solid var(--border);padding:32px 24px 24px;height:calc(100vh - 76px);position:sticky;top:0;overflow:auto}.quote-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.quote-top h2{font-size:16px}#calc-status{font-size:11px;color:var(--muted)}#calc-status.success{color:var(--success)}#calc-status.invalid{color:var(--error)}.box-preview{height:223px;margin:10px 0 -10px;display:flex;align-items:center;justify-content:center}.box-preview svg{width:100%;height:100%;max-width:330px;overflow:visible}.preview-caption{font-size:12px;text-align:center;color:var(--muted);padding-bottom:24px;border-bottom:1px solid var(--border)}.preview-blue{--tint:#718cac;--front:#557194;--side:#425b7b;--inside:#bdcbd8}.preview-stone{--tint:#bbc0c5;--front:#a1a7af;--side:#888f99;--inside:#d9dde0}.preview-forest{--tint:#729487;--front:#4f7567;--side:#3e5c52;--inside:#c0cfc6}.preview-black{--tint:#5a606c;--front:#383e4b;--side:#292e3a;--inside:#939ba8}.preview-rose{--tint:#c8a4ad;--front:#b38b96;--side:#926c77;--inside:#e5cfd6}.preview-white{--tint:#eeece6;--front:#d5d2c9;--side:#bdb9ad;--inside:#f7f4ed}.box-top{fill:var(--tint);stroke:var(--side);stroke-width:.7}.box-front{fill:var(--front);stroke:var(--side);stroke-width:.7}.box-left{fill:var(--side)}.box-inside{fill:var(--inside);stroke:var(--side);stroke-width:1}.box-edge{fill:none;stroke:var(--side);stroke-width:2}.box-shadow{fill:var(--shadow)}.unit-price{display:flex;flex-direction:column;gap:3px;margin-top:24px}.unit-price #price{font-size:38px;font-weight:500;letter-spacing:-1px;font-variant-numeric:tabular-nums}.unit-price .muted{font-size:12px}.quantity-line{display:flex;justify-content:space-between;font-size:14px;margin-top:16px;padding-bottom:22px;border-bottom:1px solid var(--border)}.quantity-line strong{font-weight:500}.cost-lines{margin:20px 0;font-size:12px}.cost-lines>div{display:flex;justify-content:space-between;gap:8px;margin:12px 0}.cost-lines dt{color:var(--muted)}.cost-lines dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}.cost-lines .cost-total{padding-top:14px;border-top:1px solid var(--border);font-weight:600}.cost-total dt{color:var(--text)}.labour-line dt{display:flex;flex-wrap:wrap;gap:6px}.mini-tag{font-size:10px;color:var(--success);background:var(--muted-surface);padding:1px 4px;border-radius:3px;white-space:nowrap}.route-card{padding:15px;background:var(--muted-surface);border-radius:7px;margin:22px 0;display:flex;flex-direction:column;gap:6px}.route-card .eyebrow{font-size:10px}.route-card strong{font-size:14px;font-weight:500}.route-card p{font-size:12px;color:var(--muted);line-height:1.5}.route-card>div{display:flex;justify-content:space-between;font-size:11px;margin-top:6px;color:var(--muted)}.footnote{font-size:11px;margin-top:12px}.error,.warnings{font-size:13px;color:var(--error);line-height:1.6}.error{padding:16px 0;overflow-wrap:anywhere}.warnings{color:var(--warning);margin-bottom:16px}.check-field{display:flex;gap:12px;align-items:flex-start;font-size:14px;margin-bottom:24px}.check-field input{accent-color:var(--accent);width:18px;height:18px}.formula-note{font-size:13px;padding:16px;background:var(--muted-surface);border-radius:7px;margin-top:22px;line-height:1.8}.specification{font-size:14px;margin:24px 0}.specification>div{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid var(--border)}.specification dt{color:var(--muted)}.specification dd{margin:0}.table-scroll{overflow:auto;margin-top:16px}table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}caption{text-align:left;color:var(--muted);font-size:12px;margin-bottom:14px}th,td{padding:12px 10px;border-bottom:1px solid var(--border);text-align:right;vertical-align:top}th{font-size:11px;font-weight:500;color:var(--muted)}th:first-child,td:first-child{text-align:left}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{padding-right:0}.chosen td{color:var(--accent)}.source-cell{display:block;margin-top:4px;font:10px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace}.export-actions{display:flex;gap:12px;flex-wrap:wrap}.native .web-only{display:none}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);border:1px solid var(--border);background:var(--surface);color:var(--text);padding:12px 20px;font-size:14px;border-radius:8px;box-shadow:0 8px 30px #0002;z-index:5;max-width:90vw}[hidden]{display:none!important}
@media(min-width:1450px){.workspace{grid-template-columns:228px minmax(420px,1fr) 386px}main{padding:44px}.quote-panel{padding:40px 30px}.form-card{padding:28px}}
@media(max-width:1160px){.workspace{grid-template-columns:185px minmax(350px,1fr) 312px}main{padding:28px 22px}.steps{padding-left:16px}.quote-panel{padding:28px 20px}.model-tag{display:none}.form-card{padding:20px}.fields.two{gap:16px}.step{font-size:13px}}
@media(max-width:940px){.workspace{grid-template-columns:minmax(380px,1fr) 320px}.steps{grid-column:1/-1;border-right:0;border-bottom:1px solid var(--border);height:auto;position:static;display:flex;flex-direction:row;overflow:auto;gap:8px;padding:14px 20px}.steps>.eyebrow,.sidebar-bottom{display:none}.step{white-space:nowrap;margin:0;padding:10px 12px}.quote-panel{height:calc(100vh - 76px);top:0}h1{font-size:26px}.topbar{padding:0 24px}.brand b{padding-left:12px;margin-left:8px}}
@media(max-width:720px){.topbar{height:66px;padding:0 16px}.brand{font-size:15px;gap:10px}.brandmark{width:21px;height:21px;border-width:4px}.brand b{padding-left:9px;margin-left:6px}.top-actions{gap:3px}.demo-tag{display:none}.quiet{font-size:12px;padding:5px}.workspace{display:flex;flex-direction:column;min-height:calc(100vh - 66px)}.steps{padding:12px 16px;gap:3px}.step{font-size:12px;padding:9px 10px}.step-dot{width:5px;height:5px}main{padding:28px 20px}.page-heading{margin-bottom:24px}.page-heading .eyebrow{font-size:10px}.page-heading .muted{font-size:14px}.form-card{padding:20px;margin-bottom:16px}.fields.two{grid-template-columns:1fr 1fr;gap:20px 12px}h1{font-size:25px}.field{font-size:14px}.input-unit>input{padding-left:10px;padding-right:45px}.input-unit>span{right:10px;font-size:11px}.quote-panel{height:auto;position:static;border-top:1px solid var(--border);border-left:0;padding:28px 24px}.box-preview{height:195px}.quote-top h2{font-size:18px}.cost-lines{font-size:14px}.route-card strong{font-size:16px}.route-card p{font-size:14px}.route-card>div{font-size:12px}.footnote{font-size:12px}.unit-price .muted{font-size:14px}.mini-tag{font-size:11px}.demo-note{font-size:12px}.quote-panel .unit-price{margin-top:20px}.form-footer{margin-top:24px}.demo-note{margin-top:28px}.field select{font-size:14px}table{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.assistant{margin-top:24px}.assistant summary{cursor:pointer;display:flex;align-items:center;gap:12px;font-weight:600}.assistant summary::before{content:'+';font-size:20px;color:var(--accent)}.assistant[open] summary::before{content:'−'}.assistant summary:focus-visible{outline:2px solid var(--accent);outline-offset:6px}.assistant-examples{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.assistant-examples button{font-size:12px;padding:8px 10px}.assistant-messages{max-height:360px;overflow-y:auto;overflow-wrap:anywhere}.chat-line{padding:12px 14px;border-radius:10px;background:var(--muted-surface);font-size:14px;line-height:1.6}.chat-line.user{background:var(--accent-wash)}.chat-line strong{display:block;font-size:11px;margin-bottom:4px;color:var(--muted)}.chat-line span{white-space:pre-wrap}.assistant form label{font-size:13px;display:block;margin:16px 0 8px}.assistant textarea{font:inherit;width:100%;box-sizing:border-box;padding:12px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--surface);resize:vertical}.assistant textarea:focus{outline:2px solid var(--accent);outline-offset:2px}.assistant-send{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.assistant-send span{font-size:12px;color:var(--muted)}.proposal-card{border:1px solid var(--accent);border-radius:10px;padding:16px;margin:16px 0}.proposal-card h3{margin:0 0 12px;font-size:14px}.proposal-changes{font-size:12px}.proposal-changes div{padding:8px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.proposal-changes dd{margin:4px 0;color:var(--muted)}.demo-page{max-width:1100px;margin:auto;padding:48px 24px}.demo-page video{display:block;width:100%;height:auto;border:1px solid var(--border);border-radius:12px;background:#111;margin-top:28px}
