:root{--bg:#faf9f7;--surface:#fff;--text:#1f1e1c;--muted:#77736b;--border:#e4e1da;--accent:#1f1e1c;--accent-text:#fff;--danger:#b3261e;--listening:#d04a35;--success:#2f7d4f;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:16px;line-height:1.5}@media (prefers-color-scheme:dark){:root{--bg:#1c1b19;--surface:#262522;--text:#edeae4;--muted:#9c978d;--border:#3a3834;--accent:#edeae4;--accent-text:#1c1b19;--danger:#f2877f;--listening:#ef6a55;--success:#3d9a63}}*{box-sizing:border-box}body{background:var(--bg);margin:0}.page{flex-direction:column;gap:20px;max-width:720px;min-height:100dvh;margin:0 auto;padding:24px 16px 32px;display:flex}.page.is-empty{justify-content:center;padding-bottom:20dvh}h1{text-align:center;margin:0;font-size:1.75rem;font-weight:500}h2{color:var(--muted);margin:0 0 8px;font-size:.8125rem;font-weight:500}p{margin:0}a{color:inherit;text-underline-offset:3px}header{justify-content:space-between;align-items:center;display:flex}.brand{font-weight:500}.muted,.hint{color:var(--muted);font-size:.875rem}.hint{margin-top:6px;padding:0 4px}.error{color:var(--danger)}.request{background:var(--border);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:14px;align-self:flex-end;max-width:85%;padding:10px 14px}.composer-box{border:1px solid var(--border);background:var(--surface);border-radius:18px;flex-direction:column;gap:6px;padding:10px 10px 10px 16px;transition:border-color .15s;display:flex}.composer-box:focus-within{border-color:var(--muted)}.composer-box.is-listening{border-color:var(--listening)}textarea{resize:none;width:100%;max-height:40dvh;color:inherit;font:inherit;background:0 0;border:0;outline:0;padding:6px 0}textarea::placeholder{color:var(--muted)}.composer-actions{align-items:center;gap:6px;margin-left:-8px;display:flex}.composer-actions.is-idle{justify-content:flex-end}.waveform,.waveform-fallback{min-width:0;height:28px;color:var(--listening);flex:1}.waveform-fallback{opacity:.4;background:linear-gradient(currentColor,currentColor) 50%/100% 2px no-repeat;animation:1.2s ease-in-out infinite alternate breathe}@keyframes breathe{to{opacity:1}}.timer{color:var(--muted);font-variant-numeric:tabular-nums;padding:0 4px;font-size:.875rem}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible{outline:2px solid var(--muted);outline-offset:2px}.icon-button{background:0 0;border:0;border-radius:50%;place-items:center;width:36px;height:36px;padding:0;display:grid}.icon-button:not(:disabled):hover{background:var(--border)}.icon-button.send{background:var(--accent);color:var(--accent-text)}.text-button{color:var(--muted);background:0 0;border:0;padding:4px 0;font-size:.875rem}.text-button:hover{color:var(--text)}.footer-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px 12px;display:flex}.secondary{border:1px solid var(--border);background:var(--surface);border-radius:12px;padding:10px 18px}.secondary:not(:disabled):hover{border-color:var(--muted)}.primary{background:var(--accent);color:var(--accent-text);border:0;border-radius:12px;padding:10px 18px}footer{background:linear-gradient(transparent, var(--bg) 12px);flex-direction:column;gap:12px;margin-top:auto;padding:12px 0 16px;display:flex;position:sticky;bottom:0}.loading{color:var(--muted);align-items:center;gap:10px;display:flex}.progress{flex-direction:column;gap:14px;display:flex}.stages{gap:8px;margin:0;padding:0;list-style:none;display:flex}.stages li{color:var(--muted);flex-direction:column;flex:1;gap:6px;font-size:.8125rem;display:flex}.stages .is-active{color:var(--text)}.stage-bar{background:var(--border);border-radius:2px;height:4px;overflow:hidden}.is-done>.stage-bar{background:var(--accent)}.is-active>.stage-bar{background:linear-gradient(90deg, var(--border) 0%, var(--accent) 50%, var(--border) 100%) 0 0 / 200% 100%;animation:1.6s linear infinite shimmer}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.steps{overflow-wrap:anywhere;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.steps li{align-items:center;gap:10px;animation:.25s ease-out appear;display:flex}.steps .is-done{color:var(--muted);font-size:.875rem}.steps .is-done:before{content:"✓";text-align:center;flex:none;width:14px}@keyframes appear{0%{opacity:0;transform:translateY(4px)}}.progress-meta{font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:4px 16px;display:flex}.spinner{border:2px solid var(--border);border-top-color:var(--muted);border-radius:50%;flex:none;width:14px;height:14px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner,.waveform-fallback,.steps li,.is-active>.stage-bar{animation:none}}.draft{flex-direction:column;gap:20px;display:flex}.survey{flex-direction:column;gap:16px;display:flex}.survey-row{align-items:center}.choice{border:1px solid var(--border);background:var(--surface);border-radius:10px;flex:none;display:flex;overflow:hidden}.choice label{cursor:pointer;padding:6px 16px}.choice label+label{border-left:1px solid var(--border)}.choice label.is-selected{background:var(--accent);color:var(--accent-text)}.choice label:focus-within{outline:2px solid var(--muted);outline-offset:-2px}.choice input{opacity:0;pointer-events:none;position:absolute}.stages-details .notes{margin-top:8px}.work-type{margin-bottom:4px;font-size:1.125rem;font-weight:500}.stages-details summary{cursor:pointer;color:var(--muted);font-size:.875rem}.stages-details summary:hover{color:var(--text)}.stages-details ol{flex-direction:column;gap:12px;margin:12px 0 0;padding-left:22px;display:flex}.stages-details li>span{display:block}.standard{font-style:italic}.items,.notes{margin:0;padding:0;list-style:none}.item{border-top:1px solid var(--border);justify-content:space-between;gap:16px;padding:10px 0;display:flex}.item.is-removed .item-main{opacity:.5}.item.is-removed .item-name{text-decoration:line-through}.prefs{flex-wrap:wrap;gap:4px 16px;margin-top:6px;display:flex}.pref{cursor:pointer;align-items:center;gap:6px;font-size:.875rem;display:flex}.pref input{width:16px;height:16px;accent-color:var(--accent);cursor:pointer;margin:0}.add-item{border-top:1px solid var(--border);gap:8px;padding-top:10px;display:flex}.add-item input{border:1px solid var(--border);background:var(--surface);min-width:0;color:inherit;font:inherit;border-radius:12px;outline:0;flex:1;padding:10px 14px}.add-item input:focus{border-color:var(--muted)}.item.is-missing{color:var(--muted)}.item-main,.item-side{flex-direction:column;gap:2px;min-width:0;display:flex}.item-main{overflow-wrap:anywhere}.item-side{text-align:right;font-variant-numeric:tabular-nums;flex:none}.total{border-top:1px solid var(--text);font-variant-numeric:tabular-nums;justify-content:space-between;padding-top:12px;font-weight:500;display:flex}.notes li{padding:4px 0 4px 16px;position:relative}.notes li:before{content:"–";color:var(--muted);position:absolute;left:0}.cart{border:1px solid var(--border);background:var(--surface);border-radius:16px;flex-direction:column;gap:14px;padding:18px;display:flex}.cart-head{align-items:center;gap:12px;display:flex}.cart-badge{background:var(--success);color:#fff;border-radius:50%;flex:none;place-items:center;width:36px;height:36px;display:grid}.cart-title{font-size:1.125rem;font-weight:500}.cart-url{background:var(--bg);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.875rem;display:flex}.cart-url span{overflow-wrap:anywhere;min-width:0}.cart-url .text-button{flex:none;font-family:system-ui,-apple-system,Segoe UI,sans-serif}.cart-open{justify-content:center;align-self:stretch;align-items:center;gap:8px;text-decoration:none;display:flex}
