.help-page { max-width:900px; }
.help-page .page-heading p { font-size:16px; max-width:680px; }
.help-progress { color:var(--green); font-size:16px; font-weight:600; margin:0 0 18px; }
.help-step { background:var(--white); border:1px solid var(--line); border-radius:18px; padding:30px; margin-bottom:20px; }
.help-step-number { display:block; color:var(--green); font-weight:600; font-size:15px; margin-bottom:10px; }
.help-step h2 { font-size:26px; line-height:1.35; margin-bottom:18px; }
.help-step h3 { font-size:18px; margin-bottom:14px; }
.help-step p, .help-step li, .help-sources p, .help-sources li, .help-free-note { font-size:16px; line-height:1.7; }
.help-step p + p, .help-step .button { margin-top:18px; }
.help-note { background:var(--surface-soft); padding:18px; border-radius:12px; color:var(--muted); margin-top:20px; }
.help-note p { margin-top:8px; }
.help-letter { border:1px solid var(--green-line); border-radius:12px; padding:22px; margin-top:22px; }
.help-copy-status:empty { display:none; }
.help-checklist { padding-left:24px; margin:20px 0; }
.help-checklist li + li { margin-top:12px; }
.help-controls { display:flex; gap:12px; flex-wrap:wrap; margin:24px 0; }
.help-controls .button, .help-step .button, .help-sources .button { min-height:48px; font-size:16px; }
.help-controls .button:disabled { opacity:.5; cursor:default; }
.help-js-only { display:none; }
.help-guide--enhanced .help-js-only { display:flex; }
.help-step--hidden { display:none; }
.help-sources { border-top:1px solid var(--line); padding:22px 0; }
.help-sources summary { cursor:pointer; font-size:16px; min-height:48px; }
.help-sources ul { padding-left:24px; margin:18px 0; overflow-wrap:anywhere; }
.help-free-note { margin:20px 0; color:var(--muted); }
@media (max-width:600px) {
  .help-step { padding:22px 18px; }
  .help-step h2 { font-size:23px; }
  .help-controls .button { flex:1 1 44%; }
  .help-letter { padding:18px; }
}
@media print {
  .help-step--hidden { display:block !important; }
  .help-js-only, .help-progress, .site-header, .site-footer, .demo-banner { display:none !important; }
  .help-step, .help-letter, .help-note { background:white; color:black; box-shadow:none; }
  .help-step { break-inside:avoid; }
  .help-page { max-width:none; }
}
:root {
  color-scheme: light;
  --ink: #17333b;
  --muted: #526a60;
  --green: #146b5e;
  --green-dark: #10574d;
  --mint: #edf6f1;
  --canvas: #f5f7f5;
  --line: #cbd9d0;
  --white: #fff;
  --surface-soft: #f0f5f0;
  --green-line: #a9c6b4;
  --control-line: #7d9586;
  --amber: #785315;
  --amber-bg: #fff7e7;
  --amber-line: #d8c49b;
  --red: #9c3830;
  --red-bg: #fff0ed;
  --red-line: #d9a8a0;
  --focus: #3e8d73;
  --on-action: #fff;
  --action-bg: #146b5e;
  --action-hover: #10574d;
  --brand-bg: #17333b;
  --brand-ink: #fff;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(30, 58, 49, .035);
  --preview-shadow: 0 24px 56px rgba(33, 65, 52, .07);
  --nav-surface: rgba(255, 255, 255, .98);
  --nav-shadow: 0 -4px 22px rgba(40, 69, 48, .04);
}
/* Auto follows the device, including later system theme changes. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e6efea;
    --muted: #aac0b2;
    --green: #90d8bd;
    --green-dark: #226b55;
    --mint: #20372b;
    --canvas: #111d17;
    --line: #385143;
    --white: #172720;
    --surface-soft: #1b2e24;
    --green-line: #486e5b;
    --control-line: #729780;
    --amber: #e4c686;
    --amber-bg: #352d1c;
    --amber-line: #756140;
    --red: #ffbbb0;
    --red-bg: #3e2522;
    --red-line: #91655d;
    --focus: #90d8bd;
    --on-action: #fff;
    --action-bg: #23634f;
    --action-hover: #2f7a60;
    --brand-bg: #9fd8bb;
    --brand-ink: #11241b;
    --shadow: 0 8px 30px rgba(0, 0, 0, .12);
    --preview-shadow: 0 24px 56px rgba(0, 0, 0, .2);
    --nav-surface: rgba(23, 39, 32, .98);
    --nav-shadow: 0 -4px 22px rgba(0, 0, 0, .16);
  }
}



* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:20px; }
body { margin:0; background:var(--canvas); color:var(--ink); font:15px/1.55 "Segoe UI", Arial, sans-serif; -webkit-font-smoothing:antialiased; }
button, input, select, textarea { font:inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color:transparent; }
a { color:inherit; text-decoration:none; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.48; }
img, svg { max-width:100%; }
h1, h2, h3, p { margin:0; }
h1, h2, h3 { font-weight:650; line-height:1.2; letter-spacing:-.025em; }
h1 { font-size:clamp(30px, 3.3vw, 43px); }
h2 { font-size:23px; }
h3 { font-size:18px; }
p + p { margin-top:12px; }
strong { font-weight:600; }
code { font-family:Consolas, monospace; }
:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
main:focus { outline:none; }
.skip-link { position:fixed; z-index:100; top:12px; left:12px; transform:translateY(-150%); padding:10px 18px; color:var(--on-action); background:var(--green-dark); border-radius:8px; }
.skip-link:focus { transform:none; }
.page-container, .header-inner, .footer-inner { width:min(1320px, calc(100% - 80px)); margin-inline:auto; }
.demo-banner { display:flex; justify-content:center; align-items:center; gap:12px; min-height:42px; padding:8px 24px; background:var(--amber-bg); color:var(--amber); font-size:12px; text-align:center; }
.demo-banner__tag { flex-shrink:0; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.09em; border:1px solid var(--amber-line); border-radius:5px; padding:2px 7px; }
.site-header { background:var(--white); border-bottom:1px solid var(--line); }
.header-inner { min-height:90px; display:flex; justify-content:space-between; align-items:center; gap:26px; }
.brand { display:inline-flex; align-items:center; gap:13px; flex-shrink:0; }
.brand-mark { position:relative; width:43px; height:48px; display:grid; place-items:center; font-size:23px; font-weight:650; line-height:1; letter-spacing:-.08em; background:var(--ink); color:var(--on-action); border-radius:8px 8px 15px 8px; }
.brand-mark span { position:absolute; bottom:5px; right:5px; width:5px; height:5px; background:var(--mint); border-radius:50%; }
.brand-text { font-size:20px; font-weight:650; letter-spacing:-.04em; }
.brand-text small { display:block; color:var(--muted); font-size:10px; font-weight:400; letter-spacing:0; margin-top:2px; }
.header-nav { display:flex; align-items:center; gap:24px; min-width:0; }
.nav-link { color:var(--muted); font-size:13px; font-weight:500; padding-block:8px; white-space:nowrap; }
.nav-link:hover, .nav-link.is-active { color:var(--green); }
.nav-link.is-active { box-shadow:inset 0 -2px var(--green); }
.button-link { border:0; background:transparent; padding-inline:0; }
.inline-form { display:inline-flex; }
.account-chip { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); }
.account-chip > span:last-child { max-width:140px; overflow:hidden; text-overflow:ellipsis; }
.account-avatar { width:30px; height:30px; border-radius:50%; background:var(--mint); color:var(--green); display:grid; place-items:center; font-weight:600; }
.button { display:inline-flex; justify-content:center; align-items:center; gap:18px; min-height:46px; padding:11px 20px; border:1px solid var(--green); border-radius:9px; background:var(--green); color:var(--on-action); font-size:13px; font-weight:600; line-height:1.4; text-align:center; transition:background .15s, border-color .15s, transform .15s; }
.button:hover:not(:disabled) { background:var(--green-dark); border-color:var(--green-dark); }
.button:active:not(:disabled) { transform:translateY(1px); }
.button > span { font-size:18px; font-weight:400; }
.button--secondary { background:var(--white); color:var(--green); border-color:var(--line); }
.button--secondary:hover:not(:disabled) { background:var(--mint); border-color:var(--green); }
.button--small { min-height:39px; padding:9px 16px; font-size:12px; }
.button--full { width:100%; }
.text-link { display:inline-flex; gap:10px; align-items:center; color:var(--green); font-size:13px; font-weight:600; }
.text-link:hover { text-decoration:underline; text-underline-offset:3px; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:10px; line-height:1.5; text-transform:uppercase; letter-spacing:.12em; font-weight:650; color:var(--green); }
.status-dot { flex-shrink:0; display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--green); }
.muted { color:var(--muted); }
.middle-dot, .footer-dot { color:var(--muted); margin-inline:5px; }
.quiet-note { color:var(--muted); font-size:12px; line-height:1.6; }
.site-footer { margin-top:64px; border-top:1px solid var(--line); }
.footer-inner { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 24px; min-height:88px; padding-block:22px; font-size:11px; color:var(--muted); }
.footer-inner a { color:var(--green); }
.flash-list { margin-top:20px; }
.flash { border:1px solid var(--line); padding:13px 18px; border-radius:9px; margin-bottom:10px; background:var(--mint); font-size:13px; }
.flash--error { border-color:var(--red-line); color:var(--red); background:var(--red-bg); }
.flash--warning { background:var(--amber-bg); border-color:var(--amber-line); color:var(--amber); }
.hero { display:grid; grid-template-columns:1.06fr .94fr; gap:80px; align-items:center; padding:76px 0 82px; }
.hero h1 { margin-top:20px; font-size:clamp(38px, 4.5vw, 61px); line-height:1.1; letter-spacing:-.048em; }
.hero h1 span, .login-intro h1 span { color:var(--green); }
.hero-lead { max-width:505px; font-size:16px; line-height:1.75; color:var(--muted); margin-top:24px; }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:22px; margin:30px 0 16px; }
.hero-copy .quiet-note { max-width:490px; }
.hero-preview { position:relative; background:var(--white); border:1px solid var(--line); border-radius:23px; padding:26px; box-shadow:var(--preview-shadow); }
.hero-preview::before { content:""; width:90px; height:90px; background:var(--mint); border:1px solid var(--line); border-radius:22px; position:absolute; right:-20px; top:-19px; z-index:-1; transform:rotate(10deg); }
.preview-top, .chat-heading { display:flex; gap:12px; align-items:center; }
.assistant-avatar { display:grid; place-items:center; width:39px; height:39px; flex-shrink:0; background:var(--mint); border:1px solid var(--line); color:var(--green); font-size:16px; font-weight:650; border-radius:12px; letter-spacing:-.045em; }
.preview-top strong { display:block; font-size:13px; }
.preview-top div > span { display:block; font-size:10px; color:var(--muted); }
.preview-test { margin-left:auto; padding:4px 8px; border-radius:5px; background:var(--canvas); color:var(--muted); font-size:10px; }
.preview-message { padding:15px 17px; border:1px solid var(--line); border-radius:3px 13px 13px; margin-top:22px; max-width:88%; font-size:12px; line-height:1.7; color:var(--ink); background:var(--white); }
.preview-message--user { margin-left:auto; border:0; background:var(--green); color:var(--on-action); border-radius:13px 3px 13px 13px; }
.preview-confirm { display:flex; gap:11px; align-items:flex-start; margin:24px 0; }
.check-circle { flex-shrink:0; display:inline-flex; justify-content:center; align-items:center; width:20px; height:20px; background:var(--mint); color:var(--green); border-radius:50%; font-size:11px; }
.preview-confirm strong { display:block; font-size:11px; line-height:1.5; }
.preview-confirm div > span { display:block; color:var(--muted); font-size:10px; line-height:1.6; margin-top:4px; }
.preview-input { padding:11px 13px; display:flex; justify-content:space-between; align-items:center; background:var(--canvas); border:1px solid var(--line); border-radius:8px; color:var(--muted); font-size:10px; }
.preview-send { border-radius:6px; display:grid; place-items:center; color:var(--on-action); width:25px; height:25px; background:var(--green); font-size:16px; }
.preview-caption { display:block; text-align:center; font-size:9px; color:var(--muted); margin:12px 0 0; }
.workflow-section { padding-top:44px; border-top:1px solid var(--line); }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:35px; margin-bottom:28px; }
.section-heading h2 { margin-top:10px; }
.section-heading > p { color:var(--muted); font-size:13px; width:280px; flex-shrink:0; }
.workflow-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:18px; }
.workflow-card { background:var(--white); border:1px solid var(--line); border-radius:13px; padding:25px 23px 28px; }
.step-number { color:var(--muted); font-size:11px; font-weight:600; letter-spacing:.04em; }
.workflow-card h3 { font-size:15px; margin:22px 0 12px; letter-spacing:-.01em; }
.workflow-card p { font-size:12px; line-height:1.75; color:var(--muted); }
.scope-card { margin-top:52px; padding:36px 40px; border-radius:var(--radius); background:var(--mint); display:grid; grid-template-columns:1.5fr 1fr; gap:65px; }
.scope-card h2 { margin:12px 0 16px; }
.scope-card p { font-size:13px; color:var(--muted); line-height:1.75; }
.scope-note { align-self:center; padding-left:30px; border-left:1px solid var(--line); }
.scope-note strong { display:block; margin-bottom:11px; font-size:14px; }
.login-layout { display:grid; grid-template-columns:1fr 440px; gap:90px; max-width:1100px; align-items:center; padding-block:80px 20px; }
.login-intro h1 { margin-top:20px; font-size:46px; line-height:1.14; }
.login-intro > p { color:var(--muted); margin-top:26px; max-width:420px; line-height:1.75; }
.benefit-list { margin:28px 0 0; padding:0; list-style:none; }
.benefit-list li { display:flex; align-items:center; gap:10px; padding-block:7px; color:var(--muted); font-size:13px; }
.benefit-list li > span { font-size:11px; color:var(--green); background:var(--mint); border-radius:50%; width:19px; height:19px; display:grid; place-items:center; }
.login-card { padding:34px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.card-kicker { color:var(--green); font-size:10px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; margin-bottom:12px; }
.login-card h2 { font-size:27px; }
.login-card > .muted { margin-top:15px; font-size:13px; }
.login-card form { margin-top:27px; }
.inline-note { display:flex; gap:10px; margin-top:27px; padding-top:21px; border-top:1px solid var(--line); }
.note-icon { display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; color:var(--amber); width:19px; height:19px; border:1px solid currentColor; font-family:Georgia, serif; font-size:12px; border-radius:50%; }
.inline-note p { font-size:11px; color:var(--muted); }
.demo-accounts { margin-top:22px; font-size:12px; border:1px solid var(--line); border-radius:8px; }
.demo-accounts summary { cursor:pointer; padding:10px 13px; color:var(--green); }
.demo-accounts div { padding:0 13px 12px; }
.demo-accounts p { margin-top:10px; }
.demo-accounts p > span { display:block; color:var(--muted); font-size:11px; }
.form-fields p { display:flex; flex-direction:column; gap:7px; margin:0 0 17px; font-size:13px; }
.form-fields label { font-size:12px; font-weight:600; color:var(--ink); line-height:1.5; }
.form-fields input:not([type="checkbox"]):not([type="hidden"]), .form-fields select, .form-fields textarea { width:100%; max-width:100%; background:var(--white); border:1px solid var(--line); border-radius:8px; min-height:44px; padding:11px 12px; color:var(--ink); font-size:14px; line-height:1.5; }
.form-fields input::placeholder, .form-fields textarea::placeholder { color:var(--muted); }
.form-fields textarea { min-height:95px; resize:vertical; }
.form-fields input:focus, .form-fields select:focus, .form-fields textarea:focus { border-color:var(--green); outline:2px solid var(--focus); outline-offset:1px; }
.form-fields input[type="file"] { font-size:11px !important; background:var(--canvas) !important; }
.form-fields input[type="file"]::file-selector-button { background:var(--white); border:1px solid var(--line); padding:5px 10px; border-radius:5px; margin-right:9px; color:var(--green); }
.form-fields p:has(input[type="checkbox"]) { display:grid; grid-template-columns:17px 1fr; gap:8px; align-items:start; }
.form-fields p:has(input[type="checkbox"]) label { order:2; font-weight:400; font-size:11px; }
.form-fields input[type="checkbox"] { order:1; margin:2px 0 0; width:15px; height:15px; accent-color:var(--green); }
.form-fields .helptext, .field-help { font-size:11px; color:var(--muted); font-weight:400; line-height:1.6; }
.form-fields p:has(input[type="checkbox"]) .helptext { grid-column:2; order:3; }
.form-fields .helptext ul { margin:4px 0 0; padding-left:18px; }
.errorlist { list-style:none; margin:0 0 10px; padding:9px 12px; border-radius:6px; font-size:12px; color:var(--red); background:var(--red-bg); }
.form-fields .errorlist + p input, .form-fields .errorlist + p select, .form-fields .errorlist + p textarea { border-color:var(--red-line); }
.form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:25px; margin:44px 0 32px; }
.page-heading h1 { font-size:34px; margin:10px 0 13px; }
.page-heading p { color:var(--muted); font-size:13px; }
.environment-chip { display:inline-flex; flex-shrink:0; gap:8px; align-items:center; font-size:10px; color:var(--green); padding:7px 11px; border:1px solid var(--line); border-radius:6px; background:var(--mint); }
.cabinet-grid { display:grid; grid-template-columns:minmax(0, 1fr) 340px; gap:26px; align-items:start; }
.panel { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:25px 27px 22px; }
.panel-heading h2 { font-size:19px; }
.panel-heading p { font-size:11px; color:var(--muted); margin-top:8px; line-height:1.6; }
.count-pill { flex-shrink:0; min-width:26px; text-align:center; border-radius:6px; padding:3px 8px; background:var(--white); font-size:11px; color:var(--muted); font-weight:600; }
.order-list { padding:0 27px; }
.order-row { display:flex; align-items:center; gap:16px; padding:22px 0; border-top:1px solid var(--line); }
.order-row:hover strong { color:var(--green); }
.document-tile { flex-shrink:0; display:grid; place-items:center; width:45px; height:51px; color:var(--green); background:var(--mint); border:1px solid var(--line); border-radius:7px 7px 13px; font-size:17px; font-weight:650; }
.order-row__body { flex:1; min-width:0; }
.order-row__body strong { display:block; font-size:14px; overflow-wrap:anywhere; }
.order-row__body > span { display:block; color:var(--muted); margin-top:6px; font-size:10px; }
.order-row__status { display:flex; align-items:center; gap:15px; }
.order-row__arrow { color:var(--muted); font-size:19px; }
.status-badge { display:inline-block; padding:5px 9px; background:var(--mint); border:1px solid var(--line); color:var(--green); border-radius:6px; font-size:10px; line-height:1.45; }
.status-badge--draft, .status-badge--collecting, .status-badge--needs_data { color:var(--muted); background:var(--white); border-color:var(--line); }
.status-badge--review, .status-badge--review_pending, .status-badge--awaiting_review { color:var(--amber); background:var(--amber-bg); border-color:var(--amber-line); }
.empty-state { padding:46px 30px 52px; text-align:center; }
.empty-illustration { display:grid; place-items:center; margin:0 auto 22px; width:62px; height:69px; font-size:23px; font-weight:650; color:var(--muted); background:var(--mint); border:1px solid var(--line); border-radius:10px 10px 18px; }
.empty-state h3 { margin-bottom:13px; font-size:18px; }
.empty-state p { max-width:400px; margin-inline:auto; color:var(--muted); font-size:12px; line-height:1.75; }
.inline-create { border-top:1px solid var(--line); padding:0 27px; }
.inline-create summary { list-style:none; cursor:pointer; padding:19px 0; color:var(--green); font-size:12px; font-weight:600; }
.inline-create summary::-webkit-details-marker, .manual-details summary::-webkit-details-marker { display:none; }
.inline-create summary > span { margin-right:8px; font-size:18px; font-weight:400; }
.inline-create form { padding:2px 0 25px; }
.cabinet-sidebar { display:grid; gap:24px; }
.organization-list { padding-inline:25px; }
.organization-row { display:flex; gap:12px; align-items:flex-start; border-top:1px solid var(--line); padding:17px 0; }
.organization-icon { color:var(--muted); font-size:26px; line-height:1; }
.organization-row strong { display:block; font-size:12px; overflow-wrap:anywhere; }
.organization-row div > span { display:block; font-size:10px; margin-top:5px; color:var(--muted); }
.inset-empty { padding:5px 0 24px; font-size:12px; line-height:1.7; }
.quiet-card { padding:28px; background:var(--mint); border:1px solid var(--line); border-radius:var(--radius); }
.quiet-card h3 { margin:13px 0; }
.quiet-card p { font-size:12px; color:var(--muted); line-height:1.75; }
.quiet-card .text-link { margin-top:20px; font-size:11px; }
.back-link { display:inline-flex; gap:9px; color:var(--muted); font-size:12px; margin-top:27px; }
.back-link:hover { color:var(--green); }
.order-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px 0 30px; }
.order-heading h1 { font-size:30px; margin:8px 0 11px; overflow-wrap:anywhere; }
.order-heading p { color:var(--muted); font-size:11px; }
.order-layout { display:grid; grid-template-columns:minmax(0, 1fr) 350px; gap:26px; align-items:start; }
.order-main, .order-sidebar { display:grid; gap:22px; min-width:0; }
.chat-heading { padding:23px 26px; }
.chat-heading h2 { font-size:17px; margin-bottom:4px; }
.chat-heading p { font-size:10px; color:var(--muted); }
.chat-mode { margin-left:auto; display:inline-flex; align-items:center; gap:7px; color:var(--green); font-size:10px; white-space:nowrap; }
.topic-strip { display:flex; align-items:baseline; gap:9px; padding:12px 26px; background:var(--white); border-block:1px solid var(--line); font-size:11px; color:var(--muted); }
.topic-strip > span:first-child { color:var(--muted); font-size:15px; }
.topic-strip strong { color:var(--ink); font-weight:600; }
.chat-history { display:flex; flex-direction:column; gap:22px; min-height:290px; max-height:550px; overflow-y:auto; overscroll-behavior:contain; padding:28px 30px; background:var(--white); scrollbar-width:thin; scrollbar-color:var(--line) transparent; }
.chat-message { max-width:88%; align-self:flex-start; }
.message-author { display:block; font-size:10px; font-weight:600; color:var(--muted); margin:0 0 7px 2px; }
.message-content { font-size:13px; line-height:1.8; color:var(--ink); background:var(--white); border:1px solid var(--line); border-radius:3px 13px 13px; padding:15px 18px; white-space:normal; overflow-wrap:anywhere; }
.chat-message time { display:block; margin-top:6px; color:var(--muted); font-size:9px; }
.chat-message--user { align-self:flex-end; }
.chat-message--user .message-author, .chat-message--user time { text-align:right; }
.chat-message--user .message-content { background:var(--green); border-color:var(--green); color:var(--on-action); border-radius:13px 3px 13px 13px; }
.proposal-card { margin:0 25px 24px; padding:22px; border:1px solid var(--amber-line); background:var(--white); border-radius:13px; }
.proposal-heading { display:flex; align-items:center; gap:10px; }
.proposal-icon { display:grid; place-items:center; flex-shrink:0; width:31px; height:31px; background:var(--amber-bg); color:var(--amber); border-radius:9px; font-weight:600; font-size:14px; }
.proposal-heading h3 { font-size:14px; color:var(--amber); }
.proposal-heading p { font-size:10px; color:var(--amber); margin-top:5px; }
.proposal-value { display:flex; flex-direction:column; gap:7px; margin-block:18px 22px; padding:14px 16px; background:var(--white); border:1px solid var(--amber-line); border-radius:7px; overflow-wrap:anywhere; }
.proposal-value > span { font-size:10px; color:var(--amber); }
.proposal-value strong { font-size:15px; color:var(--ink); }
.proposal-card .form-fields label { color:var(--amber); }
.proposal-card .button { font-size:11px; min-height:40px; }
.proposal-card .text-link { font-size:11px; }
.chat-composer { padding:24px 26px; border-top:1px solid var(--line); }
.chat-composer textarea { background:var(--white); min-height:96px; }
.composer-footer { display:flex; align-items:center; justify-content:space-between; gap:22px; margin-top:4px; }
.composer-footer > span { color:var(--muted); font-size:10px; line-height:1.6; }
.composer-footer .button { flex-shrink:0; min-height:42px; }
.manual-details > summary { display:flex; align-items:center; gap:15px; padding:22px 26px; cursor:pointer; list-style:none; }
.manual-summary-icon { color:var(--muted); font-size:25px; }
.manual-details summary strong { display:block; font-size:13px; }
.manual-details summary small { display:block; margin-top:4px; font-size:10px; color:var(--muted); }
.details-chevron { margin-left:auto; font-size:18px; color:var(--muted); }
details[open] .details-chevron { transform:rotate(180deg); }
.details-content { border-top:1px solid var(--line); padding:23px 26px 27px; }
.details-content > p { font-size:12px; margin-bottom:23px; }
.document-list { padding-inline:26px; }
.document-row { display:flex; gap:13px; align-items:center; border-top:1px solid var(--line); padding:17px 0; }
.file-icon { color:var(--muted); font-size:27px; }
.document-row div { min-width:0; }
.document-row strong { display:block; font-size:12px; overflow-wrap:anywhere; }
.document-row div > span { display:block; color:var(--muted); font-size:10px; margin-top:5px; }
.answers-panel .panel-heading { padding-bottom:18px; }
.answers-panel .eyebrow { font-size:9px; margin-bottom:8px; }
.answer-list { padding-inline:25px; }
.answer-row { padding:17px 0; border-top:1px solid var(--line); }
.answer-row__label { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; font-size:11px; }
.answer-row__label > span:first-child { color:var(--muted); }
.answer-state { font-size:9px; color:var(--amber); background:var(--amber-bg); border-radius:4px; padding:2px 5px; flex-shrink:0; }
.answer-row--known .answer-state, .answer-row--zero .answer-state, .answer-row--confirmed_zero .answer-state, .answer-row--confirmed .answer-state { color:var(--green); background:var(--mint); }
.answer-row--not_applicable .answer-state { color:var(--muted); background:var(--white); }
.answer-row__value { font-size:12px; color:var(--ink); margin-top:9px; overflow-wrap:anywhere; }
.answer-row__value .muted { font-size:10px; }
.panel-footnote { display:flex; gap:7px; padding:16px 25px; color:var(--muted); background:var(--white); border-top:1px solid var(--line); font-size:10px; }
.payment-panel { padding:25px; }
.payment-panel h2 { font-size:19px; }
.price { font-size:39px; font-weight:600; letter-spacing:-.045em; line-height:1.3; margin-top:16px; }
.price > span { font-size:27px; font-weight:400; color:var(--muted); }
.payment-panel > .muted { font-size:11px; margin-top:10px; }
.mock-notice { padding:13px 15px; background:var(--amber-bg); border:1px solid var(--amber-line); border-radius:8px; margin-block:20px 17px; color:var(--amber); }
.mock-notice strong { display:block; font-size:11px; line-height:1.6; }
.mock-notice > span { display:block; font-size:10px; color:var(--amber); margin-top:6px; }
.payment-panel > .text-link { font-size:11px; }
.payment-form { border-top:1px solid var(--line); margin-top:18px; padding-top:19px; }
.payment-form .field-help { margin-top:10px; }
.consent-refresh { font-size:11px; color:var(--amber); background:var(--amber-bg); border-radius:7px; padding:10px 12px; margin-top:17px; }
.payment-panel .button { font-size:11px; }
.completed-line { display:flex; gap:9px; align-items:center; margin-top:18px; padding-top:16px; border-top:1px solid var(--line); font-size:11px; color:var(--green); }
.review-card { padding:25px; border-radius:var(--radius); background:var(--mint); border:1px solid var(--line); }
.review-card h3 { margin:11px 0 14px; }
.review-card > p { font-size:11px; color:var(--muted); line-height:1.75; }
.review-card form { margin-top:23px; }
.review-card .button { font-size:11px; }
.owner-reviews { margin-bottom:28px; }
.review-row { border-top:1px solid var(--line); padding:25px 28px; }
.review-row__heading { display:flex; gap:20px; align-items:center; justify-content:space-between; margin-bottom:23px; }
.review-row__heading h3 { margin:8px 0 10px; }
.review-row__heading p { color:var(--muted); font-size:11px; }
.review-row form { max-width:640px; }
.table-scroll { overflow:auto; }
.data-table { border-collapse:collapse; width:100%; text-align:left; font-size:12px; }
.data-table th { font-size:10px; font-weight:600; color:var(--muted); background:var(--white); }
.data-table th, .data-table td { padding:16px 27px; border-top:1px solid var(--line); white-space:nowrap; }
.jobs-panel > .inset-empty { padding-inline:27px; }
.offer-page { max-width:970px; }
.offer-page .page-heading { margin-top:22px; }
.offer-project-note { display:flex; gap:13px; padding:20px 25px; margin-bottom:27px; background:var(--amber-bg); border:1px solid var(--amber-line); color:var(--amber); border-radius:11px; }
.offer-project-note strong { font-size:13px; }
.offer-project-note p { font-size:11px; margin-top:7px; }
.offer-text { padding:40px 46px; color:var(--ink); font-size:13px; line-height:1.85; overflow-wrap:anywhere; }
.offer-text p { margin-bottom:21px; }
.quick-answers { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-bottom:20px; }
.quick-answers > span { color:var(--muted); font-size:10px; margin-right:2px; }
.quick-answers button { padding:5px 9px; font-size:10px; border:1px solid var(--line); color:var(--green); background:var(--white); border-radius:6px; line-height:1.5; }
.quick-answers button:hover { background:var(--mint); border-color:var(--line); }
.manual-help { margin-bottom:18px; }
.form-fields input:disabled, .form-fields select:disabled, .form-fields textarea:disabled { background:var(--white) !important; color:var(--muted); border-color:var(--line); }
.manual-field-picker { display:grid; gap:12px; margin-bottom:26px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.manual-field-picker label { font-size:12px; font-weight:600; }
.manual-field-picker select { border:1px solid var(--line); min-height:44px; padding:10px 12px; border-radius:8px; background:var(--white); color:var(--ink); }
.fixture-links { display:flex; gap:12px; flex-wrap:wrap; padding:0 26px 23px; }
.fixture-links > p { width:100%; color:var(--muted); font-size:11px; margin-bottom:2px; }
.fixture-links .text-link { font-size:11px; padding:7px 10px; background:var(--white); border:1px solid var(--line); border-radius:6px; }
.error-page { max-width:750px; padding-top:58px; }
.error-card { padding:43px; }
.error-symbol { display:grid; place-items:center; width:46px; height:46px; font-size:22px; border:1px solid var(--amber-line); background:var(--amber-bg); color:var(--amber); border-radius:12px; margin-bottom:25px; }
.error-card h1 { font-size:32px; margin:13px 0 21px; }
.error-card > p { font-size:14px; color:var(--muted); line-height:1.8; }
.error-actions { display:flex; flex-wrap:wrap; gap:23px; align-items:center; margin-top:30px; }
.error-card .inline-note { margin-top:30px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0, 0, 0, 0); white-space:nowrap; border:0; }
.metric-grid { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:14px; margin-bottom:29px; }
.metric-card { display:flex; flex-direction:column; padding:22px 21px; border:1px solid var(--line); background:var(--white); border-radius:13px; }
.metric-card > span { font-size:11px; color:var(--muted); }
.metric-card > strong { font-size:32px; font-weight:600; line-height:1.4; margin:9px 0 7px; letter-spacing:-.04em; }
.metric-card > small { font-size:9px; color:var(--muted); line-height:1.6; }
.metric-card--attention { background:var(--amber-bg); border-color:var(--amber-line); }
.metric-card--attention > span, .metric-card--attention > strong { color:var(--amber); }
.metric-card--attention > span { display:flex; justify-content:space-between; gap:8px; }
.metric-card--attention > small { color:var(--amber); }
.metric-card--attention:hover { background:var(--amber-bg); }
.management-layout { display:grid; grid-template-columns:minmax(0, 1fr) 340px; gap:25px; align-items:start; }
.management-main, .management-aside { display:grid; gap:24px; min-width:0; }
.filter-form { background:var(--white); border-top:1px solid var(--line); padding:22px 26px; }
.filter-form .form-fields { display:grid; grid-template-columns:1.3fr .7fr 1fr; gap:14px; }
.filter-form .form-fields p { margin-bottom:0; }
.filter-actions { display:flex; align-items:center; gap:18px; margin-top:18px; }
.filter-actions .text-link { font-size:11px; }
.management-table { font-size:11px; }
.management-table th, .management-table td { padding:17px 22px; }
.management-table td > strong { display:block; font-size:12px; white-space:normal; min-width:150px; max-width:260px; }
.management-table td > small { display:block; font-size:9px; color:var(--muted); margin-top:5px; }
.management-table .status-badge { white-space:normal; max-width:190px; }
.table-open { display:inline-flex; gap:8px; color:var(--green); font-size:10px; font-weight:600; }
.table-open:hover { text-decoration:underline; }
.empty-state--compact { padding:36px 25px; }
.management-empty { padding:8px 27px 28px; }
.circuit-panel .eyebrow { margin-bottom:8px; font-size:9px; }
.circuit-list { padding-inline:25px; }
.circuit-row { display:flex; gap:12px; padding:17px 0; border-top:1px solid var(--line); }
.circuit-dot { width:7px; height:7px; flex-shrink:0; margin-top:5px; border-radius:50%; background:var(--mint); }
.circuit-dot--active { background:var(--green); box-shadow:0 0 0 3px var(--mint); }
.circuit-row strong { display:block; font-size:11px; color:var(--muted); }
.circuit-row div > span { display:block; font-size:10px; color:var(--muted); margin-top:5px; }
.settings-summary { padding:27px; background:var(--mint); border:1px solid var(--line); border-radius:var(--radius); }
.settings-summary h3 { margin-top:12px; font-size:17px; }
.settings-price { font-size:32px; font-weight:600; letter-spacing:-.04em; margin:14px 0 8px; }
.settings-price span { color:var(--muted); font-size:23px; font-weight:400; }
.settings-summary > p { font-size:11px; color:var(--muted); line-height:1.75; }
.settings-summary .text-link { margin-top:16px; font-size:10px; }
.settings-lock { display:flex; gap:9px; margin-top:22px; padding-top:19px; border-top:1px solid var(--line); color:var(--muted); font-size:9px; line-height:1.7; }
.settings-lock > span:first-child { flex-shrink:0; font-size:16px; }
.activity-list { padding-inline:25px; }
.activity-row { display:flex; gap:13px; border-top:1px solid var(--line); padding:16px 0; }
.activity-point { width:6px; height:6px; background:var(--mint); border-radius:50%; margin-top:6px; flex-shrink:0; }
.activity-row strong { display:block; font-size:11px; font-weight:500; line-height:1.6; }
.activity-row div > span { display:block; color:var(--muted); font-size:9px; margin-top:5px; }
.activity-row time { display:block; font-size:9px; color:var(--muted); margin-top:5px; }
@media (min-width: 1500px) {
  .hero { gap:120px; }
  .hero-preview { max-width:505px; }
}
@media (max-width: 1100px) {
  .page-container, .header-inner, .footer-inner { width:calc(100% - 48px); }
  .hero { gap:42px; padding-top:62px; }
  .hero h1 { font-size:46px; }
  .hero-lead { font-size:14px; }
  .hero-actions { gap:18px; }
  .hero-actions .text-link { font-size:11px; }
  .workflow-card { padding:22px 18px; }
  .workflow-card h3 { font-size:14px; }
  .workflow-grid { gap:12px; }
  .cabinet-grid { grid-template-columns:minmax(0, 1fr) 310px; gap:20px; }
  .order-layout { grid-template-columns:minmax(0, 1fr) 315px; gap:20px; }
  .order-row { gap:12px; }
  .order-row__status { flex-direction:column; align-items:flex-end; gap:5px; }
  .login-layout { gap:45px; grid-template-columns:1fr 410px; }
  .login-intro h1 { font-size:40px; }
  .header-nav { gap:18px; }
  .account-chip > span:last-child { display:none; }
  .chat-mode { display:none; }
  .answer-list { padding-inline:22px; }
  .answer-row__label { flex-direction:column; gap:6px; }
  .metric-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); }
  .management-layout { grid-template-columns:minmax(0, 1fr) 310px; gap:20px; }
  .filter-form .form-fields { grid-template-columns:1fr 1fr; }
  .filter-form .form-fields p:first-child { grid-column:1 / -1; }
}
@media (max-width: 800px) {
  .brand-text small { display:none; }
  .brand-text { font-size:18px; }
  .header-inner { min-height:77px; }
  .header-nav { gap:15px; }
  .nav-link { font-size:11px; }
  .hero { grid-template-columns:1fr; gap:46px; padding:48px 0 55px; }
  .hero h1 { font-size:50px; }
  .hero-lead { max-width:610px; }
  .hero-preview { max-width:540px; width:100%; margin:0 auto; }
  .workflow-grid { grid-template-columns:repeat(2, 1fr); gap:16px; }
  .section-heading { align-items:start; flex-direction:column; gap:14px; }
  .section-heading > p { width:auto; max-width:500px; }
  .workflow-card h3 { font-size:16px; }
  .scope-card { grid-template-columns:1fr; gap:28px; padding:32px; }
  .scope-note { border-top:1px solid var(--line); border-left:0; padding:22px 0 0; }
  .login-layout { grid-template-columns:1fr; max-width:530px; gap:33px; padding-top:45px; }
  .login-intro h1 { font-size:38px; }
  .login-intro .benefit-list { display:none; }
  .login-intro > p { font-size:13px; max-width:none; margin-top:18px; }
  .page-heading { flex-direction:column; align-items:flex-start; margin-top:35px; gap:17px; }
  .page-heading h1 { font-size:29px; }
  .cabinet-grid { grid-template-columns:1fr; }
  .cabinet-sidebar { grid-template-columns:1fr 1fr; align-items:start; gap:20px; }
  .order-layout { grid-template-columns:1fr; }
  .order-sidebar { grid-template-columns:1fr 1fr; align-items:start; gap:20px; }
  .answers-panel { grid-row:span 2; }
  .order-heading h1 { font-size:28px; }
  .chat-history { min-height:310px; max-height:530px; }
  .answer-row__label { flex-direction:row; }
  .site-footer { margin-top:44px; }
  .management-layout { grid-template-columns:1fr; }
  .management-aside { grid-template-columns:1fr 1fr; align-items:start; }
  .activity-panel { grid-column:1 / -1; }
}
@media (max-width: 540px) {
  .page-container, .header-inner, .footer-inner { width:calc(100% - 36px); }
  .demo-banner { align-items:flex-start; padding:9px 17px; gap:8px; text-align:left; font-size:10px; line-height:1.55; }
  .demo-banner__tag { font-size:8px; margin-top:2px; padding:2px 5px; letter-spacing:.04em; }
  .header-inner { gap:12px; min-height:77px; padding-block:15px; align-items:center; }
  .brand { gap:8px; }
  .brand-mark { width:34px; height:39px; font-size:20px; border-radius:6px 6px 11px; }
  .brand-text { font-size:17px; white-space:nowrap; }
  .header-nav { gap:9px; justify-content:flex-end; flex-wrap:wrap; }
  .header-nav .button--small { font-size:10px; padding:8px 11px; min-height:35px; gap:7px; }
  .account-chip { display:none; }
  .header-nav .nav-link { font-size:10px; padding-block:3px; }
  .header-nav > .nav-link[href="/offer/"] { display:none; }
  .hero { padding-top:35px; gap:38px; }
  .hero h1 { font-size:39px; line-height:1.12; margin-top:17px; }
  .hero-lead { font-size:13px; margin-top:20px; line-height:1.8; }
  .hero-actions { align-items:flex-start; flex-direction:column; gap:17px; margin-top:23px; }
  .hero-actions .button { padding:12px 17px; font-size:11px; }
  .hero-actions .text-link { font-size:11px; }
  .quiet-note { font-size:10px; }
  .hero-preview { padding:21px; border-radius:16px; }
  .hero-preview::before { right:-8px; width:65px; height:65px; top:-12px; }
  .preview-message { font-size:11px; max-width:93%; padding:13px 15px; }
  .preview-top strong { font-size:12px; }
  .preview-confirm { margin-block:21px; }
  .workflow-section { padding-top:28px; }
  .section-heading h2 { font-size:22px; line-height:1.3; }
  .section-heading > p { font-size:11px; }
  .workflow-grid { grid-template-columns:1fr; gap:12px; }
  .workflow-card { padding:20px; position:relative; }
  .step-number { position:absolute; top:21px; right:21px; }
  .workflow-card h3 { margin:0 30px 10px 0; font-size:15px; }
  .workflow-card p { font-size:11px; }
  .scope-card { margin-top:30px; padding:25px; }
  .scope-card h2 { font-size:21px; }
  .scope-card p { font-size:11px; }
  .login-layout { padding-top:30px; }
  .login-intro h1 { font-size:32px; }
  .login-card { padding:26px 24px; }
  .page-heading h1 { font-size:26px; line-height:1.25; }
  .page-heading p { font-size:11px; }
  .page-heading { margin:28px 0 24px; }
  .cabinet-sidebar, .order-sidebar { grid-template-columns:1fr; }
  .panel { border-radius:13px; }
  .panel-heading { padding:21px 21px 20px; }
  .panel-heading h2 { font-size:18px; }
  .panel-heading p { font-size:10px; }
  .order-list { padding-inline:20px; }
  .order-row { flex-wrap:wrap; padding:18px 0; }
  .order-row__body strong { font-size:12px; }
  .order-row__body > span { font-size:9px; }
  .order-row__status { margin-left:57px; flex:1; flex-direction:row; justify-content:space-between; }
  .status-badge { font-size:9px; }
  .document-tile { width:43px; height:48px; }
  .empty-state { padding:33px 23px 38px; }
  .inline-create { padding-inline:21px; }
  .quiet-card { padding:25px; }
  .organization-list { padding-inline:21px; }
  .back-link { margin-top:22px; font-size:11px; }
  .order-heading { align-items:flex-start; flex-direction:column; gap:14px; padding:20px 0 23px; }
  .order-heading h1 { font-size:26px; }
  .order-main, .order-sidebar { gap:17px; }
  .chat-heading { padding:20px; gap:10px; }
  .chat-heading h2 { font-size:15px; }
  .chat-heading p { font-size:9px; }
  .topic-strip { padding:12px 20px; font-size:10px; }
  .chat-history { padding:23px 20px; min-height:280px; max-height:480px; gap:21px; }
  .chat-message { max-width:94%; }
  .message-content { font-size:12px; padding:13px 15px; line-height:1.75; }
  .chat-composer { padding:21px 20px; }
  .composer-footer { align-items:flex-start; flex-direction:column; gap:15px; }
  .composer-footer .button { width:100%; font-size:12px; }
  .proposal-card { margin-inline:18px; padding:18px; }
  .proposal-heading h3 { font-size:13px; }
  .proposal-heading p { font-size:9px; }
  .proposal-card .form-actions { align-items:flex-start; flex-direction:column; gap:15px; }
  .proposal-card .button { width:100%; }
  .manual-details > summary { padding:21px; gap:12px; }
  .details-content { padding:21px; }
  .document-list { padding-inline:21px; }
  .answer-list { padding-inline:21px; }
  .answer-row__label { flex-direction:row; }
  .answers-panel { grid-row:auto; }
  .panel-footnote { padding:15px 21px; }
  .payment-panel, .review-card { padding:24px; }
  .review-row { padding:22px; }
  .review-row__heading { align-items:flex-start; flex-direction:column; gap:13px; }
  .review-row__heading h3 { font-size:18px; }
  .data-table th, .data-table td { padding:13px 20px; }
  .offer-text { padding:25px 23px; font-size:12px; }
  .offer-project-note { padding:18px 20px; }
  .offer-project-note strong { font-size:12px; }
  .footer-inner { flex-direction:column; align-items:flex-start; gap:9px; padding-block:25px; font-size:10px; }
  .form-fields input:not([type="checkbox"]):not([type="hidden"]), .form-fields select, .form-fields textarea { font-size:16px; }
  .management-page .page-heading > .button { font-size:11px; min-height:41px; }
  .metric-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:11px; margin-bottom:21px; }
  .metric-card { padding:18px 16px; }
  .metric-card > span { font-size:10px; }
  .metric-card > strong { font-size:28px; margin:6px 0; }
  .metric-card > small { font-size:8px; }
  .management-main, .management-aside { gap:18px; }
  .management-aside { grid-template-columns:1fr; }
  .activity-panel { grid-column:auto; }
  .filter-form { padding:20px; }
  .filter-form .form-fields { gap:14px 12px; }
  .filter-form .form-fields label { font-size:11px; }
  .management-table th, .management-table td { padding:15px 20px; }
  .circuit-list, .activity-list { padding-inline:21px; }
  .settings-summary { padding:24px; }
  .fixture-links { padding-inline:21px; }
  .error-page { padding-top:30px; }
  .error-card { padding:27px; }
  .error-card h1 { font-size:27px; }
  .error-card > p { font-size:12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { transition:none !important; }
}

/* The phone view gives one current question priority over secondary steps. */
.button { min-height:48px; }
.current-question { padding:23px 26px 25px; background:var(--white); border-block:1px solid var(--line); }
.question-step { display:block; font-size:12px; font-weight:600; color:var(--green); margin-bottom:12px; }
.current-question h2 { font-size:23px; line-height:1.4; letter-spacing:-.025em; }
.current-question p { font-size:12px; color:var(--muted); margin-top:12px; line-height:1.7; }
.current-question > .text-link { margin-top:15px; }
.history-details > summary { display:flex; align-items:center; gap:11px; min-height:48px; padding:13px 26px; font-size:12px; color:var(--muted); list-style:none; cursor:pointer; border-bottom:1px solid var(--line); }
.history-details > summary::-webkit-details-marker, .checkout-details > summary::-webkit-details-marker { display:none; }
.history-details > summary > span:last-child { margin-left:auto; }
.checkout-details > summary { display:flex; gap:11px; align-items:center; min-height:80px; padding:22px 24px; cursor:pointer; list-style:none; }
.checkout-details > summary > div { flex:1; min-width:0; }
.checkout-details h2 { font-size:16px; line-height:1.3; }
.checkout-details .card-kicker { font-size:9px; margin-bottom:7px; }
.checkout-price { color:var(--green); font-size:17px; font-weight:600; white-space:nowrap; }
.checkout-details .details-chevron { margin-left:0; }
.payment-panel { padding:0; }
.checkout-content { padding:0 24px 24px; }
.checkout-content > p { color:var(--muted); font-size:12px; }
.checkout-content > .text-link { font-size:12px; }
.future-photo-note { padding:19px 26px; border-top:1px solid var(--line); background:var(--white); }
.future-photo-note strong { display:block; color:var(--muted); font-size:12px; margin-bottom:7px; }
.future-photo-note p { font-size:11px; color:var(--muted); line-height:1.7; }
.mobile-order-nav { display:none; }
.start-helper { padding:0 0 16px; font-size:12px; }
.inline-create > .button { margin-bottom:21px; }
.owner-readonly-layout { display:grid; grid-template-columns:minmax(0, 1fr) 340px; gap:24px; align-items:start; }
.owner-readonly-main, .owner-readonly-aside { display:grid; gap:24px; min-width:0; }
.readonly-note { padding:22px 25px; border:1px solid var(--line); border-radius:12px; background:var(--mint); margin-bottom:25px; }
.readonly-note strong { font-size:14px; }
.readonly-note p { font-size:12px; color:var(--muted); margin-top:8px; }
.readonly-note .text-link { margin-top:14px; }
.document-download { margin-left:auto; min-height:44px; padding:10px; font-size:12px; white-space:nowrap; }
.form-fields .checkbox-field { grid-template-columns:22px 1fr !important; gap:10px !important; align-items:center !important; }
.form-fields .checkbox-field label { min-height:44px; display:flex; align-items:center; font-size:12px !important; line-height:1.5; cursor:pointer; }
.form-fields .checkbox-field input[type="checkbox"] { width:20px; height:20px; margin:0; }
.quick-answers button { min-height:44px; font-size:12px; padding:10px 13px; }
.fixture-links .text-link { min-height:44px; font-size:12px; }
.inline-create summary { min-height:48px; }
.manual-details > summary { min-height:70px; }
@media (max-width: 800px) {
  .owner-readonly-layout { grid-template-columns:1fr; }
  .order-sidebar { grid-template-columns:1fr; }
  .answers-panel { grid-row:auto; }
  .order-page { padding-bottom:83px; }
  .mobile-order-nav { position:fixed; z-index:30; inset:auto 0 0; display:grid; grid-template-columns:1fr 1fr 1.2fr; gap:8px; background:var(--nav-surface); border-top:1px solid var(--line); padding:9px 18px calc(9px + env(safe-area-inset-bottom)); box-shadow:var(--nav-shadow); }
  .mobile-order-nav a { display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; font-size:13px; font-weight:600; color:var(--green); border-radius:8px; background:var(--white); }
  .mobile-order-nav a.is-primary { background:var(--green); color:var(--on-action); }
  .mobile-order-nav a > span { font-size:18px; }
  .current-question { padding:22px 24px; }
  .chat-composer { border-top:0; }
  .chat-history { min-height:0; max-height:420px; }
  .cabinet-grid--first-organization { display:flex; flex-direction:column; }
  .cabinet-grid--first-organization .cabinet-sidebar { order:-1; width:100%; display:block; }
  .cabinet-grid--first-organization .orders-panel { width:100%; }
  .cabinet-grid--first-organization .quiet-card { display:none; }
}
@media (max-width: 540px) {
  .button, .button--small { min-height:48px; font-size:14px; }
  .header-nav .button--small { min-height:44px; font-size:12px; }
  .header-nav .nav-link { min-height:44px; display:inline-flex; align-items:center; font-size:12px; }
  .header-nav { gap:4px 12px; }
  .login-intro { display:none; }
  .login-layout { padding-top:26px; }
  .login-card { padding:28px 24px; }
  .login-card > .muted { font-size:14px; }
  .form-fields label { font-size:14px; }
  .form-fields input:not([type="checkbox"]):not([type="hidden"]), .form-fields select, .form-fields textarea { min-height:48px; padding:12px; }
  .form-fields .checkbox-field label { font-size:13px !important; min-height:48px; }
  .form-fields input[type="file"] { padding:7px !important; min-height:63px !important; }
  .form-fields input[type="file"]::file-selector-button { min-height:48px; padding:10px 12px; font-size:13px; }
  .form-fields .helptext, .field-help { font-size:12px; }
  .order-heading { padding-block:18px 22px; }
  .order-heading h1 { font-size:23px; }
  .order-heading p { font-size:12px; }
  .chat-heading { padding:17px 20px; }
  .chat-heading p { display:none; }
  .current-question { padding:21px 20px 24px; }
  .current-question h2 { font-size:22px; line-height:1.45; }
  .current-question p { font-size:13px; }
  .history-details > summary { padding-inline:20px; font-size:13px; min-height:50px; }
  .quick-answers { gap:8px; }
  .quick-answers > span { width:100%; font-size:12px; }
  .quick-answers button { min-height:48px; font-size:13px; padding:10px 13px; }
  .composer-footer > span { font-size:12px; }
  .composer-footer .button { font-size:14px; min-height:48px; }
  .proposal-heading h3 { font-size:15px; }
  .proposal-heading p { font-size:12px; }
  .proposal-value > span { font-size:12px; }
  .proposal-value strong { font-size:17px; }
  .proposal-card .button { font-size:14px; min-height:48px; }
  .manual-details summary strong { font-size:15px; }
  .manual-details summary small { font-size:12px; }
  .details-content > p { font-size:13px; }
  .panel-heading p, .document-row div > span { font-size:12px; }
  .document-row strong { font-size:14px; }
  .document-row { flex-wrap:wrap; }
  .document-row > div { flex:1; min-width:0; }
  .document-download { margin-left:39px; }
  .fixture-links > p, .future-photo-note p { font-size:12px; }
  .fixture-links .text-link { flex:1; justify-content:center; min-height:48px; font-size:13px; }
  .future-photo-note { padding-inline:21px; }
  .future-photo-note strong { font-size:14px; }
  .inset-empty { font-size:13px; }
  .answer-row__label { font-size:13px; }
  .answer-state { font-size:11px; }
  .answer-row__value { font-size:14px; }
  .answer-row__value .muted, .panel-footnote { font-size:12px; }
  .checkout-content { padding:0 22px 22px; }
  .checkout-details > summary { padding:21px 22px; min-height:88px; }
  .checkout-details h2 { font-size:17px; }
  .checkout-details .card-kicker { font-size:11px; }
  .checkout-content > p, .mock-notice strong, .mock-notice > span, .consent-refresh { font-size:12px; }
  .payment-panel .button, .review-card .button { font-size:14px; min-height:48px; }
  .review-card > p { font-size:13px; }
  .completed-line { font-size:13px; }
  .order-row__body strong { font-size:15px; }
  .order-row__body > span { font-size:12px; }
  .status-badge { font-size:11px; }
  .inline-create summary { font-size:14px; min-height:54px; }
  .organization-row strong { font-size:14px; }
  .organization-row div > span { font-size:12px; }
  .quiet-card p { font-size:13px; }
  .back-link { min-height:44px; align-items:center; font-size:13px; margin-top:12px; }
  .page-heading p { font-size:13px; }
  .readonly-note p { font-size:13px; }
  .owner-readonly-main, .owner-readonly-aside { gap:18px; }
}
/* Action colours stay separate from link colours in both themes. */
.brand-mark { background: var(--brand-bg); color: var(--brand-ink); }
.button, .preview-message--user, .preview-send,
.chat-message--user .message-content, .mobile-order-nav a.is-primary {
  background: var(--action-bg); border-color: var(--action-bg); color: var(--on-action);
}
.button:hover:not(:disabled) { background: var(--action-hover); border-color: var(--action-hover); }
.button--secondary { background: var(--white); color: var(--green); border-color: var(--green-line); }
.button--secondary:hover:not(:disabled) { background: var(--mint); border-color: var(--green); color: var(--green); }
:where(input, select, textarea) { color-scheme: inherit; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.form-fields input:not([type="checkbox"]):not([type="hidden"]):not(:disabled),
.form-fields select:not(:disabled), .form-fields textarea:not(:disabled), .manual-field-picker select { border-color: var(--control-line); }
.form-fields input:focus, .form-fields select:focus, .form-fields textarea:focus { border-color: var(--focus); }
/* Document steps use the same surfaces as the questionnaire. */
.inset { padding: 24px 26px; min-width: 0; }
.inset > p + p { margin-top: 12px; }
.s3-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.prepare-page .page-container > .panel, .prepare-page .page-container > .s3-grid { margin-bottom: 22px; }
.prepare-page .inset > form, .prepare-page .inset > details, .prepare-page .inset > .s3-metric { margin-top: 18px; }
.prepare-page .inset > :first-child { margin-top: 0; }
.prepare-page .s3-metric + .s3-metric { margin-top: 15px; }
.s3-grid > *, .s3-row > *, .s3-metric { min-width: 0; }
.s3-grid .panel, .s3-grid .details-content { min-width: 0; }
.s3-grid p, .s3-grid li, .s3-grid strong, .s3-grid code, .s3-grid a { overflow-wrap: anywhere; }
.s3-grid code { white-space: normal; word-break: break-word; font-size: 12px; }
.s3-grid .text-link { min-height: 44px; }
.s3-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.s3-row .form-actions { gap: 12px; }
.s3-metric { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.s3-metric strong { display: block; margin-top: 5px; font-size: 23px; color: var(--green); }
.s3-metric > span, .s3-metric > small { color: var(--muted); }
.s3-grid details > summary { min-height: 48px; padding: 18px 24px; cursor: pointer; color: var(--ink); }
.s3-grid input:not([type="checkbox"]):not([type="hidden"]), .s3-grid select,
.s3-grid textarea, .s3-row input:not([type="checkbox"]):not([type="hidden"]), .s3-row select {
  max-width: 100%; min-height: 44px; border: 1px solid var(--control-line);
  border-radius: 8px; padding: 10px 12px; background: var(--white); color: var(--ink);
}
.s3-grid input[type="checkbox"] { accent-color: var(--green); width: 20px; height: 20px; }
@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; gap: 14px; padding-block: 15px; }
  .header-nav { flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
}
@media (max-width: 800px) {
  .s3-grid { grid-template-columns: 1fr; gap: 18px; }
  .s3-grid .data-table th, .s3-grid .data-table td { white-space: normal; overflow-wrap: anywhere; }
  .inset { padding: 21px; }
}
@media (max-width: 540px) {
  .header-inner { align-items: center; justify-content: space-between; }
  .header-nav { gap: 6px 10px; max-width: 100%; }
  .s3-grid input:not([type="checkbox"]):not([type="hidden"]), .s3-grid select,
  .s3-grid textarea, .s3-row input:not([type="checkbox"]):not([type="hidden"]), .s3-row select { min-height: 48px; font-size: 16px; }
  .s3-row { align-items: stretch; }
  .s3-row .button { flex: 1 1 150px; }
  .s3-grid details > summary { min-height: 48px; padding-inline: 21px; }
  .s3-metric { padding: 15px; }
}
/* Status occupies a separate row so phone titles retain a readable width. */
@media (max-width: 600px) {
  .order-row {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    grid-template-areas: "icon body" ". status";
    align-items: start;
    gap: 10px 12px;
  }
  .order-row > .document-tile { grid-area: icon; }
  .order-row__body { grid-area: body; min-width: 0; }
  .order-row__status {
    grid-area: status;
    display: flex;
    flex: initial;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }
  .order-row__status .status-badge {
    flex: 0 1 auto;
    max-width: calc(100% - 28px);
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .order-row__arrow { flex-shrink: 0; margin-left: auto; }
}
/* Small, readable questionnaire screens on phones. */
.assistance-page { max-width: 760px; }
.assistance-panel { margin-top: 24px; padding: 24px; }
.assistance-heading { font-size: clamp(26px, 6vw, 36px); }
.assistance-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.assistance-field { margin: 18px 0; }
.assistance-field select, .assistance-field input:not([type="checkbox"]), .assistance-field textarea { max-width: 100%; width: 100%; font-size: 16px; }
.assistance-field input[type="checkbox"] { min-height: 24px; min-width: 24px; }
.assistance-field label { line-height: 1.5; }
.assistance-page .form-fields { padding: 0; }
.assistance-page p { font-size: 16px; line-height: 1.6; }
.assistance-page .field-help { font-size: 14px; }
@media (max-width: 600px) { .assistance-panel { padding: 20px 18px; } }
.wrap-anywhere { overflow-wrap: anywhere; }
.assistance-login input:not([type="checkbox"]):not([type="hidden"]) { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; font-size: 18px; }
.assistance-login input[type="checkbox"] { width: 24px; height: 24px; vertical-align: middle; }
.assistance-login .button, .assistance-page .button { min-height: 48px; }
