:root {
  --ink: #183b4a;
  --ink-2: #365864;
  --muted: #627983;
  --canvas: #f0f5f4;
  --surface: #ffffff;
  --surface-2: #f6f9f8;
  --line: #d2dfdd;
  --line-strong: #a9bfbe;
  --navy: #155f78;
  --navy-deep: #104a62;
  --navy-soft: #e7f2f3;
  --orange: #dfa12d;
  --orange-dark: #a96009;
  --orange-soft: #fff6dc;
  --green: #4d9f84;
  --green-soft: #e8f5f0;
  --amber: #c98317;
  --amber-soft: #fff5da;
  --blue: #287e9e;
  --blue-soft: #e7f3f6;
  --shadow: 0 16px 46px rgba(21, 95, 120, .09);
  --radius: 16px;
  font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--canvas); font-size: 16px; line-height: 1.65; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: white; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.site-header { height: 76px; padding: 0 28px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: linear-gradient(90deg, var(--navy) 0 82%, var(--orange) 82% 91%, var(--green) 91% 100%); }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; }
.brand-mark svg { width: 42px; height: 42px; }
.brand-fold-primary { fill: var(--navy); }
.brand-fold-secondary { fill: var(--blue); }
.brand-fold-accent { fill: var(--orange); }
.brand strong { display: flex; align-items: baseline; gap: 5px; line-height: 1.1; letter-spacing: .015em; }
.brand strong b { color: var(--navy-deep); font-size: 18px; }
.brand strong em { color: var(--orange-dark); font-size: 17px; font-style: normal; font-weight: 900; }
.brand small { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; }
.header-meta { display: flex; align-items: center; gap: 10px; }
.source-badge, .draft-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); background: var(--blue-soft); border: 1px solid #c6e0e7; border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 700; }
.source-badge svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quiet-button { color: var(--ink-2); background: transparent; border: 0; padding: 8px 10px; font-weight: 700; }
.quiet-button:hover { color: var(--orange-dark); }

.workspace { display: grid; grid-template-columns: minmax(460px, 560px) minmax(0, 1fr); max-width: 1700px; margin: 0 auto; min-height: calc(100vh - 76px); }
.input-panel { background: var(--surface); border-right: 1px solid var(--line); padding: 28px; height: calc(100vh - 76px); overflow-y: auto; position: sticky; top: 76px; scrollbar-gutter: stable; }
.panel-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.eyebrow { margin: 0 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-weight: 800; font-size: 12px; }
.panel-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.draft-badge { font-size: 12px; background: var(--surface-2); color: var(--muted); border-color: var(--line); white-space: nowrap; }
.demo-note, .privacy-note { margin-top: 20px; padding: 13px 14px; display: flex; gap: 10px; align-items: flex-start; background: var(--blue-soft); border: 1px solid #d2e4f3; border-radius: 12px; color: #315e80; }
.demo-note svg, .privacy-note svg { width: 21px; min-width: 21px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo-note p, .privacy-note p { margin: 0; font-size: 13px; line-height: 1.55; }

.progress-block { margin: 22px 0 26px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.progress-label strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.progress-track { height: 5px; margin: 8px 0 14px; background: #e5ebee; border-radius: 999px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--green)); border-radius: inherit; transition: width .2s ease; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before { content: ""; height: 1px; background: var(--line); position: absolute; left: 12%; right: 12%; top: 12px; }
.steps li { position: relative; display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.steps span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: white; font-size: 11px; z-index: 1; }
.steps li.done span { background: var(--navy); border-color: var(--navy); color: white; }
.steps li.active { color: var(--orange-dark); }
.steps li.active span { background: var(--orange); border-color: var(--orange); color: white; box-shadow: 0 0 0 4px var(--orange-soft); }
.storage-control { margin: -10px 0 18px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.storage-control label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.storage-control input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--navy); }
.storage-control span { display: grid; gap: 1px; }
.storage-control strong { color: var(--ink); font-size: 13px; }
.storage-control small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.storage-control .clear-saved-input { margin: 6px 0 -5px 18px; color: var(--blue); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }

.form-section { padding: 23px 0; border-top: 1px solid var(--line); }
.section-title { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 16px; }
.section-title > span { font-size: 11px; font-weight: 900; color: var(--orange-dark); background: var(--orange-soft); border-radius: 7px; padding: 3px 6px; margin-top: 2px; }
.section-title h3 { margin: 0; font-size: 17px; }
.section-title p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
.field { display: grid; gap: 7px; margin-bottom: 13px; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.field > span { display: flex; justify-content: space-between; }
.field small { color: var(--muted); font-weight: 500; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
select, .number-input { width: 100%; height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; background: white; color: var(--ink); outline: none; }
select { padding: 0 38px 0 12px; }
select:focus, .number-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(53, 111, 160, .13); }
.number-input { display: flex; align-items: center; overflow: hidden; }
.number-input input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0 6px 0 12px; color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.number-input em { padding-right: 11px; color: var(--muted); font-style: normal; font-size: 13px; font-weight: 500; }
.question { border: 0; padding: 14px 0 15px; margin: 0; border-bottom: 1px dashed var(--line); }
.question:last-child { border-bottom: 0; padding-bottom: 0; }
.question legend { width: 100%; padding: 0; color: var(--ink); line-height: 1.45; }
.question legend strong { font-size: 15px; }
.question > .question-label { display: block; color: var(--ink); line-height: 1.45; }
.question > .question-label strong { font-size: 15px; }
.question p { margin: 4px 0 10px; color: var(--muted); font-size: 13px; }
.question.mismatch-high > .segmented, .question.mismatch-high > select, .question.mismatch-high .number-input { border-color: #b4493d; background: #fff7f5; box-shadow: 0 0 0 2px rgba(180,73,61,.16); }
.question.mismatch-unknown > .segmented, .question.mismatch-unknown > select, .question.mismatch-unknown .number-input { border-color: var(--amber); background: #fffaf0; box-shadow: 0 0 0 2px rgba(182,123,21,.14); }
.field-feedback { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; margin-top: 9px; }
.field-feedback:empty { display: none; }
.field-feedback .mismatch-badge { padding: 2px 7px; color: white; background: #b4493d; border-radius: 999px; font-size: 10px; font-weight: 900; }
.mismatch-unknown .field-feedback .mismatch-badge { background: var(--amber); }
.field-feedback strong { color: #8e332b; font-size: 12px; }
.mismatch-unknown .field-feedback strong { color: #82570d; }
.field-feedback small { width: 100%; color: var(--muted); font-size: 11px; }
.jump-link { width: fit-content; padding: 1px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--blue); font-size: 12px; font-weight: 800; line-height: 1.45; }
.mismatch-bar { position: sticky; top: -2px; z-index: 4; margin: 10px 0 4px; padding: 12px 13px; border: 1px solid #df8d84; border-left: 5px solid #b4493d; border-radius: 10px; background: #fff1ef; box-shadow: 0 7px 18px rgba(151,53,43,.12); }
.mismatch-bar[hidden] { display: none; }
.mismatch-bar.mismatch-unknown { border-color: #e6c06f; border-left-color: var(--amber); background: var(--amber-soft); box-shadow: 0 7px 18px rgba(143,91,12,.1); }
.mismatch-bar > strong { display: block; color: #7e2e27; font-size: 13px; }
.mismatch-bar.mismatch-unknown > strong { color: #76500c; }
.mismatch-bar > div { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 5px; }
.mismatch-bar small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.form-callout { margin: 12px 0 4px; padding: 10px 12px; color: var(--ink-2); background: #edf6f7; border-left: 3px solid var(--navy); border-radius: 8px; font-size: 12px; line-height: 1.6; }
.help { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 5px; border: 1px solid var(--line-strong); border-radius: 50%; background: white; color: var(--muted); font-size: 12px; vertical-align: middle; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { height: 35px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 800; cursor: pointer; }
.segmented input:checked + span { background: white; color: var(--ink); box-shadow: 0 1px 5px rgba(24, 47, 61, .12); }
.segmented input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.privacy-note { margin: 2px 0 20px; background: var(--green-soft); border-color: #cce6df; color: var(--green); }

.addon-blocks { display: grid; gap: 14px; margin: 14px 0 18px; }
.addon-block { overflow: hidden; border: 1px solid var(--line); border-left: 5px solid #829197; border-radius: 15px; background: #fff; box-shadow: 0 7px 22px rgba(24,47,61,.06); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.addon-block:focus { outline: 3px solid rgba(40,126,158,.25); outline-offset: 3px; }
.addon-block.missed { border-left-color: var(--orange); }
.addon-block.current { border-left-color: var(--green); }
.addon-block.gap { border-left-color: #829197; }
.addon-block.check, .addon-block.review-unknown { border-left-color: var(--amber); }
.addon-block.review-high { border-left-color: #b4493d; }
.addon-block.unconfirmed { border-left-color: #829197; background: #fbfcfc; }
.addon-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; padding: 15px 16px 13px; background: linear-gradient(135deg, #f7fbfb, #fff); border-bottom: 1px solid var(--line); }
.addon-heading > div { display: flex; gap: 9px; align-items: center; min-width: 0; }
.addon-number { min-width: 28px; height: 28px; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 8px; font-size: 11px; font-weight: 900; }
.addon-heading h3 { margin: 0; font-size: 17px; line-height: 1.4; }
.addon-unit { grid-column: 1 / -1; margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.block-state-badge { align-self: start; padding: 4px 8px; border-radius: 999px; color: white; background: #829197; font-size: 11px; font-weight: 900; white-space: nowrap; }
.block-state-badge.missed { background: var(--orange-dark); }
.block-state-badge.current { background: var(--green); }
.block-state-badge.gap, .block-state-badge.unconfirmed, .block-state-badge.target { background: #71848b; }
.block-state-badge.check, .block-state-badge.review-unknown { background: var(--amber); }
.block-state-badge.review-high { background: #b4493d; }
.addon-stage { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.addon-stage:last-child { border-bottom: 0; }
.stage-label { display: flex; gap: 7px; align-items: center; margin-bottom: 5px; color: var(--ink-2); }
.stage-label span { width: 24px; height: 24px; display: grid; place-items: center; color: var(--navy); background: var(--blue-soft); border-radius: 7px; font-size: 11px; font-weight: 900; }
.stage-label strong { font-size: 13px; }
.claim-stage .question:first-child, .actual-stage .question:first-child { padding-top: 8px; }
.collapsed-actual-prompt { padding: 15px 16px; border-bottom: 1px solid var(--line); background: #f7faf9; }
.collapsed-actual-prompt[hidden], .addon-stage[hidden] { display: none; }
.collapsed-actual-prompt p { margin: 0 0 9px; color: var(--ink-2); font-size: 13px; }
.check-opportunity { height: 38px; padding: 0 12px; color: white; background: var(--navy); border-color: var(--navy); }
.shared-answer-row { margin: 8px 0; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2); }
.shared-answer-row > strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.5; }
.shared-answer-row > p { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.shared-answer-row b { color: var(--navy); }
.shared-editor { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.shared-editor[hidden] { display: none; }
.shared-editor label { display: grid; gap: 6px; color: var(--ink-2); font-size: 12px; font-weight: 800; }
.shared-editor select { height: 40px; }
.shared-editor small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.verdict-stage { background: #f8faf9; }
.inline-verdict { display: grid; gap: 7px; padding: 12px 13px; border-left: 4px solid #829197; border-radius: 9px; background: white; }
.inline-verdict h4, .inline-verdict p { margin: 0; }
.inline-verdict h4 { font-size: 16px; }
.inline-verdict p, .inline-verdict b, .inline-verdict > strong { color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.inline-verdict small { color: var(--muted); font-size: 11px; line-height: 1.55; }
.pending-question-list { display: grid; gap: 6px; margin: 1px 0 4px; padding: 0; list-style: none; }
.pending-question-link { width: 100%; padding: 7px 9px; border: 0; border-radius: 7px; background: #f3f7f8; color: var(--blue); font-size: 13px; font-weight: 800; line-height: 1.45; text-align: left; }
.pending-question-link::before { content: "▸"; margin-right: 6px; }
.pending-question-link:hover, .pending-question-link:focus-visible { background: #e8f1f3; text-decoration: underline; text-underline-offset: 2px; }
.inline-verdict > .check-opportunity { margin-top: 2px; }
.missed .inline-verdict { border-left-color: var(--orange); background: var(--orange-soft); }
.current .inline-verdict { border-left-color: var(--green); background: var(--green-soft); }
.review-high .inline-verdict { border-left-color: #b4493d; background: #fff1ef; }
.review-high .inline-verdict h4 { color: #8e332b; }
.review-unknown .inline-verdict, .check .inline-verdict { border-left-color: var(--amber); background: var(--amber-soft); }
.inline-amount { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.72); }
.inline-amount span { color: var(--muted); font-size: 11px; }
.inline-amount strong { color: var(--orange-dark); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 19px; font-variant-numeric: tabular-nums; }
.inline-amount.conditional { border: 1px solid #e6c978; background: #fff8df; }
.inline-amount.conditional strong { color: #765d12; }
.shared-updated { animation: shared-impact 1.4s ease; }
.jump-target-active { animation: jump-target-highlight 1.8s ease; }
@keyframes shared-impact { 0%,100% { box-shadow: 0 7px 22px rgba(24,47,61,.06); } 35% { box-shadow: 0 0 0 5px rgba(40,126,158,.2), 0 12px 30px rgba(24,47,61,.12); } }
@keyframes jump-target-highlight { 0%,100% { box-shadow: inherit; } 25%,70% { box-shadow: 0 0 0 6px rgba(223,161,45,.28), 0 14px 32px rgba(24,47,61,.14); } }

.results { min-width: 0; padding: 30px clamp(24px, 4vw, 64px) 72px; }
.result-topline { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 18px; }
.result-topline p { margin: 0; }
.result-topline > div > p:last-child { color: var(--muted); font-size: 13px; }
.result-topline .insurance-scope-note { max-width: 780px; margin: 6px 0; color: var(--ink-2); font-size: 13px; font-weight: 800; line-height: 1.6; }
.top-actions { display: flex; gap: 9px; }
.button { height: 42px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; border: 1px solid var(--line-strong); background: white; color: var(--ink); font-weight: 800; font-size: 14px; }
.button { white-space: nowrap; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button.primary { background: var(--navy); color: white; border-color: var(--navy); }
.button:hover { transform: translateY(-1px); }

.money-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 34%); background: linear-gradient(135deg, var(--navy-deep), var(--navy) 62%, #257d8b); color: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.money-hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: -140px; top: -180px; border-radius: 50%; border: 42px solid rgba(255,255,255,.045); pointer-events: none; }
.hero-main { min-width: 0; padding: clamp(28px, 4vw, 44px); }
.opportunity-label { display: flex; align-items: center; gap: 8px; color: #ffe8b4; font-size: 14px; font-weight: 800; }
.opportunity-label > span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(223,161,45,.18); }
.opportunity-label strong { font-variant-numeric: tabular-nums; }
.money-hero h1 { margin: 13px 0 7px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; line-height: 1.1; }
.money-hero h1 strong { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: clamp(42px, 6vw, 74px); letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.money-hero h1 small { font-size: clamp(16px, 1.8vw, 22px); letter-spacing: .02em; }
.monthly-loss { margin: 14px 0 0; font-size: 16px; }
.monthly-loss strong { margin: 0 3px; color: #ffd77e; font-size: 20px; font-variant-numeric: tabular-nums; }
.conditional-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 14px; padding: 10px 12px; border: 1px solid rgba(255,215,126,.55); border-radius: 10px; background: rgba(255,255,255,.1); }
.conditional-total[hidden] { display: none; }
.conditional-total > span { font-size: 13px; }
.conditional-total > strong { color: #ffe4a5; font-size: 20px; font-variant-numeric: tabular-nums; }
.conditional-total > small { flex-basis: 100%; color: rgba(255,255,255,.8); }
.hero-caveat { margin: 7px 0 0; color: #b9cad3; font-size: 12px; }
.hero-breakdown { display: grid; grid-template-columns: 1fr 1fr; align-content: center; padding: 28px clamp(22px, 3vw, 36px); border-left: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.hero-breakdown > div { min-height: 82px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 8px; padding: 13px 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hero-breakdown > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
.hero-breakdown > div:nth-child(n+3) { border-bottom: 0; }
.hero-breakdown small { align-self: center; color: #b9cad3; font-size: 12px; }
.hero-breakdown strong { grid-column: 2; font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
.status-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; }
.status-dot.missed { background: var(--orange); }
.status-dot.current { background: #74ceb2; }
.status-dot.gap { background: #f0b247; }
.status-dot.check { background: #70a8d4; }
.status-dot.review { background: #ff7a6c; box-shadow: 0 0 0 4px rgba(255,122,108,.18); }
.assumption-line { grid-column: 1 / -1; padding: 10px 20px; background: rgba(255,255,255,.08); color: #d6e0e5; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.unconfirmed-line { grid-column: 1 / -1; padding: 11px 20px; display: flex; justify-content: center; gap: 10px; align-items: center; background: #fff7e3; color: #72500f; font-size: 12px; }
.unconfirmed-line strong { white-space: nowrap; }

.priority-alert { margin: 18px 0 28px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; background: var(--orange-soft); border: 1px solid #edd9a4; border-left: 5px solid var(--orange); border-radius: 13px; }
.alert-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: white; color: var(--orange-dark); }
.alert-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.priority-alert h2 { margin: 0; font-size: 17px; }
.priority-alert p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.priority-alert .eyebrow { color: var(--orange-dark); font-size: 11px; }
.alert-money { color: var(--orange-dark); white-space: nowrap; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 17px; font-variant-numeric: tabular-nums; }

.result-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 15px; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tabs button { padding: 8px 11px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 800; font-size: 14px; }
.filter-tabs button span { display: inline-grid; min-width: 21px; height: 21px; margin-left: 4px; place-items: center; border-radius: 999px; background: #dde5e8; color: var(--ink-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.filter-tabs button.active { background: white; border-color: var(--line); color: var(--ink); box-shadow: 0 4px 14px rgba(24,47,61,.07); }
.filter-tabs button.active span { color: white; background: var(--navy); }
.sort-control { display: flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; font-size: 13px; }
.sort-control select { width: auto; height: 37px; font-size: 13px; }

.result-list { display: grid; gap: 13px; }
.saved-input-notice { margin-top: 18px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--green); background: var(--green-soft); border: 1px solid #cce6df; border-radius: 11px; font-size: 12px; font-weight: 700; }
.saved-input-notice[hidden] { display: none; }
.saved-input-notice .quiet-button { color: var(--green); padding: 3px 0; text-decoration: underline; text-underline-offset: 2px; font-size: 12px; }
.result-card { display: grid; grid-template-columns: 42px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(24,47,61,.045); transition: transform .16s ease, box-shadow .16s ease; }
.result-card:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(24,47,61,.08); }
.result-card[hidden] { display: none; }
.card-rail { display: grid; place-items: center; color: white; background: var(--orange); }
.card-rail span { writing-mode: vertical-rl; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.result-card.gap .card-rail { background: var(--amber); }
.result-card.check .card-rail { background: var(--blue); }
.result-card.current .card-rail { background: var(--green); }
.result-card.unconfirmed .card-rail { background: #829197; }
.result-card.unconfirmed .card-kicker { color: #66777e; }
.card-body { padding: 21px 23px 18px; min-width: 0; }
.card-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.card-kicker { margin: 0 0 3px; color: var(--orange-dark); font-size: 12px; font-weight: 900; letter-spacing: .02em; }
.gap .card-kicker { color: var(--amber); }
.check .card-kicker { color: var(--blue); }
.current .card-kicker { color: var(--green); }
.card-header h3 { margin: 0; font-size: clamp(17px, 1.8vw, 21px); letter-spacing: -.01em; }
.card-money { text-align: right; min-width: 140px; }
.card-money small { display: block; color: var(--muted); font-size: 11px; }
.card-money strong { display: block; color: var(--orange-dark); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-money.muted strong { color: var(--ink-2); font-family: inherit; font-size: 15px; }
.card-money.conditional strong { color: #765d12; font-size: 17px; }
.card-summary { margin: 12px 0 15px; color: var(--ink-2); font-size: 14px; }
.component-opportunities { margin: 12px 0; padding: 12px 14px; border: 1px solid #e5a34b; border-radius: 10px; background: #fff7ea; color: #6d3f09; }
.component-opportunities > b { display: block; font-size: 13px; }
.component-opportunities ul { display: grid; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.component-opportunities li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 13px; }
.component-opportunities li strong { font-variant-numeric: tabular-nums; }
.next-action { padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; background: var(--surface-2); border-radius: 10px; }
.next-action > span { padding: 3px 7px; color: white; background: var(--navy); border-radius: 6px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.next-action p { margin: 0; color: var(--ink-2); font-size: 14px; }
.result-jump { margin: 13px 0 2px; }
details { margin-top: 12px; }
summary { width: fit-content; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 800; }
.evidence { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfc; font-size: 13px; }
.evidence p { margin: 0 0 5px; color: var(--ink-2); }
.evidence a { color: var(--blue); font-weight: 700; }
.compact-card { padding-top: 17px; padding-bottom: 17px; }
.compact-card .card-header { align-items: center; }

.legal-note { margin-top: 20px; padding: 18px 20px; display: flex; gap: 13px; align-items: flex-start; color: var(--muted); border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.55); }
.legal-note svg { width: 23px; min-width: 23px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.legal-note p { margin: 0; font-size: 12px; line-height: 1.65; }
.legal-note strong { color: var(--ink-2); }
.annual-estimate-note { padding: 10px 24px 0; color: rgba(255,255,255,.74); font-size: 11px; line-height: 1.55; }
.mobile-nav { display: none; }
.return-results { position: fixed; right: 24px; bottom: 24px; z-index: 75; padding: 11px 16px; border: 0; border-radius: 999px; color: white; background: var(--navy); box-shadow: var(--shadow); font-size: 13px; font-weight: 900; }
.return-results[hidden] { display: none; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; padding: 11px 15px; color: white; background: var(--navy); border-radius: 10px; box-shadow: var(--shadow); font-size: 13px; font-weight: 800; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

.service-switcher { padding: 18px 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.service-switcher-copy { flex: 0 0 auto; }
.service-switcher-copy .eyebrow { margin-bottom: 3px; }
.service-switcher-copy h2 { margin: 0; color: var(--ink); font-size: 18px; }
.service-options { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.service-options a { padding: 9px 13px; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 850; text-decoration: none; transition: .18s ease; }
.service-options a:hover { color: var(--navy); border-color: var(--blue); background: #f1f9fb; }
.service-options a.active { color: #fff; border-color: var(--navy); background: var(--navy); box-shadow: 0 5px 14px rgba(18, 106, 128, .18); }
.service-options .service-soon { padding: 9px 13px; display: inline-flex; gap: 6px; align-items: center; color: #78858b; border: 1px solid #d9dfe2; border-radius: 999px; background: #f3f5f6; font-size: 13px; font-weight: 800; line-height: 1.35; cursor: default; }
.service-options .service-soon em { padding: 2px 5px; color: #6d787d; border-radius: 999px; background: #e2e7e9; font-size: 10px; font-style: normal; line-height: 1.2; white-space: nowrap; }
.service-switcher-note { flex: 0 0 210px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.noscript-note { margin: 24px; padding: 14px 16px; color: #6e4a00; border: 1px solid #e2c26b; border-radius: 10px; background: #fff9e8; font-weight: 800; }
.service-unavailable { max-width: 760px; margin: 80px auto; padding: 46px; text-align: center; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.service-unavailable[hidden] { display: none; }
.workspace[hidden], .mobile-nav[hidden] { display: none !important; }
.service-unavailable h1 { margin: 6px 0 10px; font-size: clamp(24px, 4vw, 34px); }
.service-unavailable > p:not(.eyebrow) { margin: 0 auto 24px; color: var(--muted); }
.service-unavailable .button { display: inline-flex; text-decoration: none; }
.site-footer { padding: 30px 28px 100px; color: #d8e8ea; background: #173f4b; }
.footer-inner { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(240px, .75fr) minmax(360px, 1.25fr); gap: 34px; align-items: start; }
.footer-identity { display: grid; gap: 7px; }
.footer-identity > strong { margin-bottom: 3px; color: #fff; font-size: 18px; }
.footer-identity p { margin: 0; font-size: 13px; line-height: 1.6; }
.footer-identity a { color: #fff; text-underline-offset: 3px; }
.terms-disclosure { margin: 0; padding: 16px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.06); }
.terms-disclosure summary { color: #fff; font-size: 14px; }
.terms-content { padding-top: 14px; }
.terms-content h2 { margin: 0 0 12px; color: #fff; font-size: 18px; }
.terms-content ol { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; }
.terms-content li { padding-left: 4px; font-size: 13px; line-height: 1.7; }
.policy-page { width: min(860px, calc(100% - 32px)); margin: 48px auto; }
.policy-card { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.policy-card h1 { margin: 0 0 28px; color: var(--navy-deep); font-size: clamp(26px, 4vw, 36px); }
.policy-card section + section { margin-top: 26px; }
.policy-card h2 { margin: 0 0 8px; color: var(--ink); font-size: 18px; }
.policy-card p { margin: 0; color: var(--ink-2); line-height: 1.9; }
.policy-footer { padding-bottom: 30px; text-align: center; color: var(--muted); font-size: 14px; }

/* Multi-section diagnosis form and the fourth result state. */
.form-section { margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: 13px; background: #fcfefe; overflow: hidden; }
.form-section > .section-title { width: 100%; position: relative; margin: 0; padding: 14px; align-items: center; list-style: none; }
.form-section > .section-title::-webkit-details-marker { display: none; }
.form-section > .section-title::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--navy); font-size: 21px; font-weight: 500; }
.form-section[open] > .section-title::after { content: "−"; }
.form-section > .section-title > span { min-width: 30px; height: 30px; display: grid; place-items: center; margin: 0; padding: 0; color: white; background: var(--navy); }
.form-section > .section-title p { padding-right: 25px; }
.section-content { padding: 2px 14px 15px; border-top: 1px solid var(--line); }
.section-content .field { margin: 12px 0 0; }
.question-stack { display: grid; gap: 0; }
.question select { height: 40px; }
.question .inline-number { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 9px; align-items: center; }
.question .inline-number input { width: 100%; height: 40px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); font-weight: 800; }
.priority-alerts { display: grid; gap: 10px; margin: 18px 0 28px; }
.priority-alerts .priority-alert { margin: 0; }
.priority-alerts .priority-alert.simple-alert { display: block; }
.priority-alerts .priority-alert.simple-alert strong { display: block; }
.priority-alerts .priority-alert.simple-alert p { margin-top: 6px; }
.priority-alert.danger { background: #fff0e8; border-color: #f0c8b5; border-left-color: #d76e35; }
.priority-alert.danger .eyebrow, .priority-alert.danger .alert-money, .priority-alert.danger .alert-icon { color: #a8481b; }
.deduction-section { margin: 0 0 24px; padding: 20px; background: #fff; border: 1px solid #decfc4; border-radius: 16px; box-shadow: 0 8px 24px rgba(24,47,61,.045); }
.deduction-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 14px; }
.deduction-heading h2 { margin: 0; font-size: 20px; }
.deduction-heading p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.deduction-heading > span { padding: 7px 10px; color: #7b4c2f; background: #fff3e7; border-radius: 999px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.deduction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deduction-item { min-width: 0; padding: 12px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.deduction-item > div { display: grid; gap: 2px; }
.deduction-item b { width: fit-content; color: var(--green); font-size: 10px; }
.deduction-item strong { font-size: 13px; }
.deduction-item em { color: var(--ink-2); font-style: normal; font-size: 12px; font-weight: 900; white-space: nowrap; }
.deduction-item p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.deduction-item.alert { background: #fff1ef; border-color: #e8aaa2; }
.deduction-item.alert b { color: #a53a30; }
.deduction-item.check { background: #eef6fb; border-color: #bad4e5; }
.deduction-item.check b { color: var(--blue); }
.result-card.target .card-rail { background: #829197; }
.target .card-kicker { color: #66777e; }
.result-card.review { border-color: #e8a29a; box-shadow: 0 10px 30px rgba(151,53,43,.1); }
.result-card.review .card-rail { background: #b4493d; }
.review .card-kicker { color: #a53a30; }
.result-card.review.review-unknown { border-color: #e4c16f; box-shadow: 0 10px 30px rgba(143,91,12,.08); }
.result-card.review.review-unknown .card-rail { background: var(--amber); }
.result-card.review.review-unknown .card-kicker { color: #8a5b0c; }
.review-summary { margin: 0 0 18px; padding: 20px; color: #57241f; background: #fff1ef; border: 2px solid #dc8278; border-radius: 16px; box-shadow: 0 12px 32px rgba(151,53,43,.12); }
.review-summary[hidden] { display: none; }
.review-heading h2 { margin: 0; font-size: 21px; }
.review-heading h2 span { display: inline-grid; min-width: 29px; height: 29px; margin-left: 5px; place-items: center; color: white; background: #b4493d; border-radius: 999px; font-size: 14px; }
.review-heading > p:last-child { margin: 5px 0 0; color: #754a45; font-size: 13px; }
.review-summary ul { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.review-summary li { display: grid; gap: 3px; padding: 12px 14px; background: white; border: 1px solid #efc0bb; border-radius: 10px; }
.review-summary li strong { font-size: 15px; }.review-summary li span { color: #5f4642; font-size: 13px; }.review-summary li b { color: #9c372d; font-size: 13px; }
.review-summary li.review-unknown { border-color: #e7c77e; background: #fffaf0; }
.review-summary li.review-unknown b { color: #8a5b0c; }

/* PM/26: entrance -> basic information -> index -> one addition -> results. */
.start-screen[hidden], .addon-index[hidden] { display: none !important; }
.start-screen { min-height: calc(100vh - 76px); display: flex; flex-direction: column; background: #f6f8f9; }
.start-screen-inner { width: min(1000px, calc(100% - 40px)); flex: 1; margin: 0 auto; padding: 28px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.start-copy h1 { margin: 0; color: #12313a; font-size: clamp(27px, 3.4vw, 36px); font-weight: 600; line-height: 1.4; letter-spacing: -.025em; text-wrap: balance; }
.start-copy p { margin: 12px 0 0; color: #34464d; font-size: 14px; line-height: 1.8; }
.start-reassurance { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; color: #5b6b72; font-size: 13px; }
.start-reassurance span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.start-reassurance svg { width: 17px; height: 17px; fill: none; stroke: #126a80; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.start-service-picker { width: 100%; display: grid; gap: 9px; text-align: left; }
.start-section-label { margin: 0; color: #5b6b72; font-size: 13px; }
.service-start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.service-start-card { width: 100%; height: 100%; min-width: 0; min-height: 138px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; color: #12313a; background: #fff; border: 1px solid #c9d4d8; border-radius: 13px; appearance: none; text-align: left; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.service-start-card:hover { color: #12313a; background: #f4fafb; border-color: #7faab5; transform: translateY(-1px); }
.service-start-card:focus-visible { outline: 3px solid rgba(223,161,45,.65); outline-offset: 3px; }
.service-start-card-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.service-start-card-copy strong { font-size: 19px; font-weight: 650; line-height: 1.35; }
.service-start-card-copy small { color: #7b878c; font-size: 12px; }
.service-start-card-copy b { font: inherit; }
.service-start-card-action { width: 100%; padding: 10px 12px; color: #fff; background: #126a80; border-radius: 9px; font-size: 14px; font-weight: 750; line-height: 1.45; text-align: center; }
.service-start-soon { margin-top: 3px; padding: 11px 15px; display: flex; align-items: flex-start; gap: 10px; color: #7b878c; background: #f1f3f4; border-radius: 11px; }
.service-start-soon > span { flex: 0 0 auto; padding: 3px 9px; color: #6d787d; background: #e2e7e9; border-radius: 999px; font-size: 11px; line-height: 1.35; }
.service-start-soon p { margin: 0; font-size: 12px; line-height: 1.7; }
.start-example { padding: 3px 0; color: #5b6b72; background: transparent; border: 0; border-bottom: 1px solid currentColor; font-size: 13px; }
.start-legal { margin: 0; padding: 16px max(20px, calc((100vw - 980px) / 2)); color: #7b878c; background: #fff; border-top: 1px solid #dde4e7; font-size: 11px; line-height: 1.7; }

.workflow-steps { grid-column: 1 / -1; min-height: 58px; padding: 12px 28px; display: flex; gap: 8px; align-items: center; background: #fff; border-bottom: 1px solid var(--line); }
.workflow-steps span { padding: 6px 13px; display: inline-flex; gap: 7px; align-items: center; color: #7b878c; border: 1px solid #c9d4d8; border-radius: 999px; font-size: 12px; font-weight: 750; }
.workflow-steps span b { font-size: 11px; }
.workflow-steps span.active { color: #fff; border-color: #126a80; background: #126a80; }
.workflow-steps i { color: #a7b4b9; font-style: normal; }

.addon-index { grid-column: 1 / -1; width: min(1180px, 100%); margin: 0 auto; padding: 22px 28px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
.index-demo-note { grid-column: 1 / -1; margin-bottom: -8px; padding: 10px 13px; display: flex; gap: 8px; align-items: baseline; color: #7a5c12; background: #fdf6e6; border: 1px solid #ecd9a6; border-radius: 10px; font-size: 12px; }
.addon-index-main { min-width: 0; display: grid; gap: 12px; }
.addon-index-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.addon-index-heading h1 { margin: 0; color: #12313a; font-size: 22px; font-weight: 600; }
.addon-index-heading p { margin: 7px 0 0; display: grid; color: #5b6b72; font-size: 13px; line-height: 1.7; }
.addon-index-progress { flex: 0 0 auto; text-align: right; }
.addon-index-progress > span { display: block; color: #5b6b72; font-size: 12px; }
.addon-index-progress strong { color: #126a80; font-size: 24px; font-weight: 650; }
.addon-index-progress strong small { color: #7b878c; font-size: 14px; }
.addon-index-progressbar { height: 5px; overflow: hidden; background: #e4eaec; border-radius: 999px; }
.addon-index-progressbar span { display: block; height: 100%; background: #126a80; border-radius: inherit; transition: width .2s ease; }
.addon-index-list { overflow: hidden; background: #fff; border: 1px solid #dde4e7; border-radius: 12px; }
.addon-index-row { width: 100%; min-height: 49px; padding: 9px 14px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 42px 92px; gap: 10px; align-items: center; color: #12313a; background: #fff; border: 0; border-bottom: 1px solid #eef2f4; text-align: left; }
.addon-index-row:last-child { border-bottom: 0; }
.addon-index-row:hover, .addon-index-row:focus-visible { background: #f4fafb; outline: 0; }
.addon-index-number { color: #a7b4b9; font-size: 12px; }
.addon-index-row strong { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.index-state-badge { padding: 3px 10px; color: #fff; background: #71848b; border-radius: 999px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.index-state-badge.unconfirmed, .index-state-badge.gap, .index-state-badge.target { color: #4d5d63; background: #eef2f4; }
.index-state-badge.missed { color: #8a5210; background: #fdf0e3; }
.index-state-badge.current { color: #1d5c31; background: #e2f0e6; }
.index-state-badge.check, .index-state-badge.review-unknown { color: #7a5c12; background: #fdf6e6; }
.index-state-badge.review-high { color: #8e332b; background: #fff1ef; }
.addon-index-count { color: #97a4a9; font-size: 11px; text-align: right; }
.addon-index-action { color: #126a80; font-size: 12px; font-weight: 750; text-align: right; }
.addon-index-action i { font-style: normal; }
.addon-index-summary { display: grid; gap: 12px; }
.index-money-card { padding: 18px; color: #fff; background: #12313a; border-radius: 14px; }
.index-money-card > span { color: #9fc4ce; font-size: 12px; }
.index-money-card p { margin: 10px 0 0; color: #d5e6eb; font-size: 13px; }
.index-money-card > strong { display: block; color: #fff; font-size: 32px; font-weight: 600; letter-spacing: -1px; }
.index-money-card > strong > small { margin-left: 3px; font-size: 15px; }
.index-money-card > small { display: block; margin-top: 10px; padding-top: 10px; color: #9fc4ce; border-top: 1px solid #2c4a54; font-size: 11px; line-height: 1.6; }
.index-review-card { padding: 15px; color: #7a5c12; background: #fdf6e6; border: 1px solid #ecd9a6; border-radius: 12px; }
.index-review-card strong { font-size: 13px; }
.index-review-card p { margin: 7px 0 0; font-size: 12px; line-height: 1.6; }
.index-results-button { width: 100%; justify-content: center; }

.basic-flow-header, .addon-detail-header, .basic-flow-actions, .addon-detail-actions, .result-flow-nav { display: none; }
.basic-field-hint { margin: 5px 0 0 !important; color: #7b878c !important; font-size: 11px !important; font-weight: 500; line-height: 1.6; }
.addon-detail-topline { display: flex; }
.addon-detail-topline, .result-flow-nav { align-items: center; justify-content: space-between; }
.addon-detail-topline button, .result-flow-nav button, .flow-text-button { padding: 3px 0; color: #34464d; background: transparent; border: 0; font-size: 13px; }
.addon-detail-topline span, .result-flow-nav span { color: #5b6b72; font-size: 12px; }
.addon-detail-header > p { margin: 20px 0 3px; color: #7b878c; font-size: 12px; }
.addon-detail-header > div:last-child { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.addon-detail-header h1 { margin: 0; color: #12313a; font-size: clamp(23px, 3vw, 29px); font-weight: 600; line-height: 1.35; }
.basic-flow-header h1 { margin: 0; color: #12313a; font-size: 24px; font-weight: 600; }
.basic-flow-header p { margin: 7px 0 0; color: #5b6b72; font-size: 13px; }
.basic-flow-actions, .addon-detail-actions { align-items: center; justify-content: space-between; padding-top: 20px; }
.flow-primary-button { min-width: 190px; justify-content: center; }
.result-flow-nav { margin-bottom: 14px; }
.demo-note { display: none; }
body.example-mode .demo-note { display: flex; }

body[data-flow-view="landing"] .service-switcher { display: none; }
body[data-flow-view="basic"] .workspace,
body[data-flow-view="addon"] .workspace,
body[data-flow-view="results"] .workspace { grid-template-columns: minmax(0, 1fr); }
body[data-flow-view="basic"] .input-panel,
body[data-flow-view="addon"] .input-panel { grid-column: 1; width: min(760px, 100%); height: auto; min-height: 0; margin: 0 auto; padding: 30px 20px 56px; overflow: visible; position: static; border-right: 0; background: transparent; }
body[data-flow-view="basic"] .results,
body[data-flow-view="addon"] .results,
body[data-flow-view="index"] .input-panel,
body[data-flow-view="index"] .results,
body[data-flow-view="results"] .input-panel { display: none; }
body[data-flow-view="results"] .results { grid-column: 1; width: min(1240px, 100%); margin: 0 auto; }
body[data-flow-view="results"] .result-flow-nav { display: flex; }

body[data-flow-view="basic"] .basic-flow-header { display: block; margin-bottom: 22px; }
body[data-flow-view="basic"] .basic-flow-actions { display: flex; }
body[data-flow-view="basic"] .panel-heading,
body[data-flow-view="basic"] .progress-block,
body[data-flow-view="basic"] .storage-control,
body[data-flow-view="basic"] #mismatchBar,
body[data-flow-view="basic"] #addonBlocks,
body[data-flow-view="basic"] .deduction-input-section,
body[data-flow-view="basic"] .privacy-note { display: none; }
body[data-flow-view="basic"] .basic-section { display: block; margin: 0; padding: 20px 24px; border: 1px solid #dde4e7; border-radius: 16px; background: #fff; }
body[data-flow-view="basic"] .basic-section > summary { display: none; }
body[data-flow-view="basic"] .basic-section > .section-content { padding: 0; border-top: 0; }
body[data-flow-view="basic"] #basicFields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }

body[data-flow-view="addon"] .addon-detail-header { display: block; margin-bottom: 14px; }
body[data-flow-view="addon"] .addon-detail-actions { display: flex; }
body[data-flow-view="addon"] .panel-heading,
body[data-flow-view="addon"] .progress-block,
body[data-flow-view="addon"] .storage-control,
body[data-flow-view="addon"] .basic-section,
body[data-flow-view="addon"] #mismatchBar,
body[data-flow-view="addon"] .deduction-input-section,
body[data-flow-view="addon"] .privacy-note { display: none; }
body[data-flow-view="addon"] .demo-note { margin: 0 0 14px; }
body[data-flow-view="addon"] .addon-blocks { margin: 0; }
body[data-flow-view="addon"] .addon-block:not(.flow-active) { display: none; }
body[data-flow-view="addon"] .addon-block.flow-active { border-left-width: 1px; box-shadow: none; }
body[data-flow-view="addon"] .addon-block.flow-active > .addon-heading { display: none; }
body[data-flow-view="addon"] .addon-stage { padding: 17px 20px; }
body[data-flow-view="addon"] .segmented span { height: 46px; font-size: 14px; }
body[data-flow-view="addon"] .question { padding: 12px 0 13px; }
body[data-flow-view="addon"] .question p { margin-bottom: 8px; font-size: 12px; }
.mobile-nav { display: none !important; }

@media (max-width: 1050px) {
  .workspace { grid-template-columns: 420px minmax(0, 1fr); }
  .input-panel { padding: 22px; }
  .results { padding: 26px 24px 70px; }
  .money-hero { grid-template-columns: minmax(0, 1fr); }
  .hero-breakdown { grid-template-columns: repeat(4, 1fr); border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .hero-breakdown > div { min-height: 68px; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.1); }
  .hero-breakdown > div:last-child { border-right: 0; }
}

@media (max-width: 760px) {
  body { padding-bottom: 70px; }
  .site-header { height: 66px; padding: 0 16px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark svg { width: 36px; height: 36px; }
  .brand strong b { font-size: 16px; }
  .brand strong em { font-size: 15px; }
  .brand small, .source-badge { display: none; }
  .workspace { display: block; min-height: auto; }
  .input-panel { display: none; height: auto; min-height: calc(100vh - 134px); overflow: visible; position: static; padding: 22px 18px 92px; border-right: 0; }
  body.mobile-input .input-panel { display: block; }
  body.mobile-input .results { display: none; }
  .results { padding: 20px 14px 92px; }
  .result-topline { align-items: flex-start; }
  .result-topline .top-actions { display: none; }
  .money-hero { border-radius: 15px; }
  .hero-main { padding: 25px 20px; }
  .money-hero h1 { display: block; }
  .money-hero h1 small { display: block; margin: 4px 0; }
  .money-hero h1 strong { font-size: clamp(39px, 13vw, 58px); }
  .hero-breakdown { padding: 10px; grid-template-columns: 1fr 1fr; }
  .hero-breakdown > div { border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero-breakdown > div:nth-child(2) { border-right: 0; }
  .hero-breakdown > div:nth-child(n+3) { border-bottom: 0; }
  .priority-alert { grid-template-columns: auto minmax(0, 1fr); padding: 15px; margin-bottom: 20px; }
  .priority-alert > div { min-width: 0; }
  .priority-alert h2, .priority-alert p { overflow-wrap: anywhere; }
  .alert-money { grid-column: 2; }
  .deduction-heading { align-items: flex-start; }
  .deduction-grid { grid-template-columns: 1fr; }
  .saved-input-notice { align-items: flex-start; flex-direction: column; }
  .unconfirmed-line { align-items: flex-start; flex-direction: column; gap: 2px; }
  .return-results { left: 50%; right: auto; bottom: 76px; transform: translateX(-50%); }
  .result-toolbar { align-items: flex-start; }
  .filter-tabs { gap: 2px; }
  .filter-tabs button { padding: 7px 8px; font-size: 12px; }
  .sort-control { display: none; }
  .result-card { grid-template-columns: 8px 1fr; }
  .card-rail span { display: none; }
  .card-body { padding: 18px 16px 15px; }
  .card-header { grid-template-columns: 1fr; gap: 9px; }
  .card-money { text-align: left; }
  .card-money small, .card-money strong { display: inline; }
  .card-money small { margin-right: 5px; }
  .next-action { grid-template-columns: 1fr; gap: 6px; }
  .mobile-nav { height: 64px; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -10px 25px rgba(24,47,61,.08); }
  .mobile-nav button { min-width: 0; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 800; white-space: nowrap; }
  .mobile-nav button span { display: inline-grid; width: 21px; height: 21px; margin-right: 5px; place-items: center; border-radius: 50%; border: 1px solid currentColor; font-size: 11px; }
  .mobile-nav button.active { color: white; background: var(--navy); }
  .toast { left: 16px; right: 16px; bottom: 78px; text-align: center; }
  .service-switcher { padding: 14px 16px; display: block; }
  .service-switcher-copy h2 { font-size: 16px; }
  .service-options { margin-top: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .service-options a, .service-options .service-soon { padding: 9px 8px; justify-content: center; border-radius: 9px; text-align: center; font-size: 12px; }
  .service-switcher-note { margin-top: 9px; font-size: 11px; }
  .service-unavailable { margin: 36px 16px; padding: 34px 20px; }
  .site-footer { padding: 28px 18px 96px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .start-screen { min-height: calc(100vh - 66px); }
  .start-screen-inner { width: 100%; padding: 32px 16px 28px; gap: 18px; }
  .start-copy h1 { font-size: 26px; }
  .start-copy p br { display: none; }
  .start-reassurance { display: grid; justify-items: start; gap: 10px; }
  .service-start-grid { grid-template-columns: 1fr; gap: 8px; }
  .service-start-soon { align-items: flex-start; flex-direction: column; }
  .workflow-steps { min-height: 54px; padding: 10px 14px; gap: 5px; overflow-x: auto; }
  .workflow-steps span { padding: 5px 9px; font-size: 11px; white-space: nowrap; }
  .addon-index { display: block; padding: 18px 14px 36px; }
  .addon-index-heading { align-items: flex-start; }
  .addon-index-heading h1 { font-size: 20px; }
  .addon-index-heading p span { display: block; }
  .addon-index-progress { padding-top: 2px; }
  .addon-index-list { margin-top: 12px; }
  .addon-index-row { min-height: 66px; padding: 9px 10px; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 4px 7px; }
  .addon-index-row strong { font-size: 13px; }
  .index-state-badge { grid-column: 2; justify-self: start; }
  .addon-index-count { grid-column: 3; grid-row: 2; }
  .addon-index-action { grid-column: 3; grid-row: 1; }
  .addon-index-summary { margin-top: 14px; }
  body[data-flow-view="basic"] .input-panel,
  body[data-flow-view="addon"] .input-panel { display: block; min-height: 0; padding: 22px 14px 44px; }
  body[data-flow-view="basic"] #basicFields { grid-template-columns: 1fr; }
  body[data-flow-view="basic"] .basic-section { padding: 17px 16px; }
  body[data-flow-view="addon"] .addon-stage { padding: 15px 14px; }
  .basic-flow-actions, .addon-detail-actions { gap: 16px; }
  .flow-primary-button { min-width: 0; flex: 1; }
  body[data-flow-view="results"] .results { display: block; }
  .result-flow-nav { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .shared-updated, .jump-target-active { animation: none !important; outline: 4px solid rgba(223,161,45,.35); outline-offset: 2px; }
}

@media print {
  @page { size: A4; margin: 13mm; }
  body { background: white; font-size: 12px; }
  .site-header, .service-switcher, .input-panel, .result-topline, .result-toolbar, .mobile-nav, .toast, .site-footer { display: none !important; }
  .workspace { display: block; max-width: none; }
  .results { padding: 0; }
  .money-hero { box-shadow: none; break-inside: avoid; }
  .priority-alert, .result-card, .legal-note { break-inside: avoid; box-shadow: none; }
  .result-list { gap: 8px; }
  .card-body { padding: 12px 14px; }
  details { display: none; }
}
