:root {
  --ink: #2c1d21;
  --ink-soft: #50393e;
  --muted: #806b70;
  --muted-2: #a08c91;
  --paper: #fcf2f2;
  --paper-2: #f4e5e6;
  --card: #fffdfb;
  --card-soft: #fcf6f5;
  --line: #eadbdb;
  --line-strong: #dbc4c7;
  --brand-950: #4b1420;
  --brand-900: #681c2b;
  --brand-800: #8c2132;
  --brand-700: #b3263c;
  --brand-600: #c53a4c;
  --brand-500: #d75b69;
  --brand-100: #f9e5e8;
  --brand-50: #fff1f3;
  --gold-700: #9b682f;
  --gold-600: #b77c3d;
  --gold-500: #c78e4e;
  --gold-100: #f5ead7;
  --red-700: #9f4037;
  --red-600: #b64b41;
  --red-100: #f8e9e6;
  --amber-700: #8b5b17;
  --amber-100: #f8efdc;
  --blue-700: #37657b;
  --blue-100: #e8f0f3;
  --shadow-xs: 0 1px 2px rgba(44,29,33, .04);
  --shadow-sm: 0 4px 16px rgba(44,29,33, .04);
  --shadow-md: 0 14px 40px rgba(44,29,33, .08);
  --shadow-lg: 0 28px 80px rgba(44,29,33, .16);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --font-number: "Avenir Next", "DIN Alternate", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% -4%, rgba(199, 142, 78, .09), transparent 32%),
    radial-gradient(circle at 92% 4%, rgba(179,38,60, .07), transparent 28%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: var(--brand-700); text-underline-offset: 3px; }
svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
button, summary, input[type="range"], label.switch { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
}

.hidden { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }

/* ===== Top bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 242, 234, .9);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid rgba(215, 207, 192, .72);
}
.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  user-select: none;
}
.brand-mark {
  width: 37px;
  height: 37px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #f6eddd;
  background:
    linear-gradient(145deg, rgba(255,255,255,.14), transparent 45%),
    var(--brand-900);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 16px rgba(75,20,32, .16);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-copy { min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-sub {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .13em;
  white-space: nowrap;
}
.topbar-spacer { flex: 1; }
.demo-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px dashed rgba(155, 104, 47, .5);
  border-radius: 999px;
  color: var(--gold-700);
  background: rgba(245, 234, 215, .55);
  font-size: 11px;
  letter-spacing: .03em;
  white-space: nowrap;
}
.demo-stamp::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--gold-600);
}
.platform-chip {
  display: none;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .6);
  font-size: 11.5px;
  color: var(--ink-soft);
}
.platform-chip.is-visible { display: inline-flex; }

.scope-strip {
  border-top: 1px solid rgba(230, 223, 210, .65);
  background: rgba(255, 253, 248, .34);
}
.scope-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .045em;
}
.scope-left {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  overflow: hidden;
}
.scope-dot { color: var(--gold-600); }
.scope-right { white-space: nowrap; color: var(--muted-2); }

/* ===== Page and stepper ===== */
main.shell { padding: 26px 0 72px; }

.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 24px;
  max-width: 620px;
  user-select: none;
}
.step-node {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.step-node:disabled { cursor: not-allowed; opacity: .62; }
.step-index {
  width: 24px;
  height: 24px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 248, .55);
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step-node.is-active { color: var(--brand-800); font-weight: 600; }
.step-node.is-active .step-index {
  color: #f8f1e4;
  background: var(--brand-800);
  border-color: var(--brand-800);
  box-shadow: 0 0 0 4px rgba(179,38,60, .1);
}
.step-node.is-done { color: var(--brand-700); }
.step-node.is-done .step-index {
  color: var(--brand-800);
  background: var(--brand-100);
  border-color: rgba(179,38,60, .18);
}
.step-line {
  flex: 1;
  height: 1px;
  min-width: 18px;
  margin: 0 12px;
  background: var(--line);
}
.step-line.is-done { background: rgba(179,38,60, .3); }

.screen { animation: fade-up .38s cubic-bezier(.2, .7, .25, 1) both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 8px 0 24px;
}
.page-head-copy { max-width: 720px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold-500);
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 43px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--brand-950);
}
.page-lede {
  margin-top: 10px;
  max-width: 650px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.head-note {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .55);
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

/* ===== Cards, layout ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.card-head h2, .card-head h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -.01em;
  font-weight: 700;
}
.card-kicker {
  margin-bottom: 4px;
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}
.card-note { color: var(--muted); font-size: 12px; line-height: 1.65; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
  gap: 20px;
  align-items: start;
}
.stack { display: grid; gap: 14px; }
.stack-lg { display: grid; gap: 20px; }
.sticky-rail { position: sticky; top: 118px; }

/* ===== Step 1 ===== */
.base-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
}
.base-card-copy { display: flex; align-items: center; gap: 14px; min-width: 0; }
.base-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--gold-100);
  color: var(--gold-700);
}
.base-card h2 { font-family: var(--font-display); font-size: 18px; }
.base-card p { margin-top: 2px; color: var(--muted); font-size: 12px; }
.age-field { width: 148px; flex: none; }

.account-grid { display: grid; gap: 12px; margin-top: 12px; }
.account-card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 17px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.account-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.account-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent, var(--brand-600));
}
.account-cash { --accent: #c78e4e; --accent-soft: #f5ead7; }
.account-investment { --accent: #c53a4c; --accent-soft: #f9e5e8; }
.account-pension { --accent: #37657b; --accent-soft: #e8f0f3; }
.account-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.account-icon {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--accent);
  background: var(--accent-soft);
}
.account-title { min-width: 0; }
.account-title h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}
.account-title p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}
.account-assumption-btn { margin-left: auto; }
.account-balance-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.balance-wrap {
  flex: 1;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .18s ease;
}
.balance-wrap:focus-within { border-color: var(--brand-600); }
.balance-wrap.is-invalid { border-color: var(--red-600); }
.balance-currency {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
}
.balance-input {
  width: 100%;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-number);
  font-size: clamp(25px, 3vw, 33px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.balance-input::placeholder { color: #b8bdb6; font-weight: 400; }
.account-side { flex: none; text-align: right; }
.account-side strong {
  display: block;
  font-family: var(--font-number);
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.account-side span { font-size: 10.5px; color: var(--muted-2); }
.pension-lock-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 11.5px;
  line-height: 1.5;
}
.advanced { margin-top: 13px; border-top: 1px dashed var(--line); padding-top: 11px; }
.advanced summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
  list-style: none;
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.advanced[open] summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 13px;
  border-radius: 12px;
  background: var(--card-soft);
  border: 1px solid rgba(230, 223, 210, .8);
}
.compact-field label { font-size: 10.5px; }
.compact-field .input-wrap input { padding: 8px 10px; font-size: 14px; }
.compact-field .input-wrap { border-radius: 8px; }

/* ===== Reconciliation ===== */
.recon-card {
  position: relative;
  overflow: hidden;
  color: #f3eadb;
  background:
    radial-gradient(circle at 92% -8%, rgba(199, 142, 78, .28), transparent 38%),
    linear-gradient(150deg, #551521, #8c2132 72%, #ad2c41);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 22px 50px rgba(75,20,32, .18);
}
.recon-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -80px;
  bottom: -100px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255,255,255,.025), 0 0 0 52px rgba(255,255,255,.018);
  pointer-events: none;
}
.recon-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: rgba(243, 234, 219, .62);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.recon-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.recon-total {
  margin: 20px 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.recon-total-label { color: rgba(243, 234, 219, .62); font-size: 11.5px; }
.recon-total-value {
  margin-top: 2px;
  font-family: var(--font-number);
  font-size: clamp(31px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.recon-total-value .unit { margin-left: 4px; font-family: var(--font-body); font-size: 12px; color: rgba(243,234,219,.5); font-weight: 400; }
.recon-rows { display: grid; gap: 9px; }
.recon-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(243, 234, 219, .75);
}
.recon-row strong {
  color: #fbf6ec;
  font-family: var(--font-number);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.recon-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 11.5px;
  color: rgba(243, 234, 219, .72);
}
.recon-check .check-badge {
  width: 20px;
  height: 20px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(199, 142, 78, .2);
  color: #e4bf8c;
}
.recon-check.is-bad .check-badge { background: rgba(182, 75, 65, .25); color: #ffd4ce; }
.recon-card .btn-primary {
  width: 100%;
  margin-top: 20px;
  background: #efe2cd;
  color: var(--brand-950);
  box-shadow: none;
}
.recon-card .btn-primary:hover { background: #f7ecda; }
.recon-card .btn-primary:disabled { background: rgba(239, 226, 205, .3); color: rgba(243,234,219,.45); }
.recon-card .btn-ghost-light {
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.45);
  color: #ffffff;
}
.recon-card .btn-ghost-light:hover:not(:disabled) {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.7);
}
.draft-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .48);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.draft-note .dot {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 99px;
  background: var(--gold-600);
  flex: none;
}

/* ===== Buttons ===== */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn:disabled { cursor: not-allowed; opacity: .52; transform: none; }
.btn-primary {
  color: #f9f3e7;
  background: var(--brand-800);
  border-color: var(--brand-800);
  box-shadow: 0 8px 20px rgba(16, 61, 50, .16);
}
.btn-primary:hover:not(:disabled) { background: var(--brand-900); border-color: var(--brand-900); }
.btn-secondary {
  color: var(--brand-800);
  background: var(--brand-50);
  border-color: rgba(179,38,60, .18);
}
.btn-secondary:hover:not(:disabled) { background: var(--brand-100); }
.btn-ghost {
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover:not(:disabled) { background: var(--card-soft); border-color: var(--line-strong); }
.btn-dark-outline {
  color: var(--ink-soft);
  background: rgba(255,253,248,.7);
  border-color: var(--line);
}
.btn-danger-ghost { color: var(--red-700); background: transparent; border-color: rgba(182,75,65,.2); }
.btn-danger-ghost:hover:not(:disabled) { background: var(--red-100); }
.btn-lg { min-height: 50px; padding: 13px 22px; font-size: 14px; border-radius: 13px; }
.btn-sm { min-height: 34px; padding: 7px 11px; font-size: 11.5px; border-radius: 9px; }
.btn-wide { width: 100%; }
.btn-icon {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 11px;
  flex: none;
}
.text-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px;
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.text-btn:hover { color: var(--brand-900); }
.text-btn:disabled { color: var(--muted-2); cursor: not-allowed; }

/* ===== Forms ===== */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.field-label .optional { color: var(--muted-2); font-weight: 400; font-size: 10.5px; }
.input-wrap {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fffefb;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  overflow: hidden;
}
.input-wrap:focus-within {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px rgba(35, 131, 108, .09);
}
.input-wrap.is-invalid {
  border-color: var(--red-600);
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(182, 75, 65, .06);
}
.input-wrap input, .input-wrap select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}
.input-wrap input[type="number"] { font-family: var(--font-number); font-variant-numeric: tabular-nums; }
.input-wrap input::placeholder { color: #b4b9b3; }
.input-prefix, .input-suffix {
  flex: none;
  color: var(--muted-2);
  font-size: 11.5px;
  white-space: nowrap;
}
.input-prefix { padding-left: 12px; }
.input-suffix { padding-right: 12px; }
.input-wrap input.has-prefix { padding-left: 4px; }
.input-wrap input.has-suffix { padding-right: 4px; }
.hint { color: var(--muted); font-size: 11px; line-height: 1.55; }
.hint.warn { color: var(--amber-700); }
.field-error {
  display: none;
  align-items: flex-start;
  gap: 5px;
  color: var(--red-700);
  font-size: 11px;
  line-height: 1.45;
}
.field-error.is-visible { display: flex; }
.field-error::before {
  content: "!";
  width: 13px;
  height: 13px;
  margin-top: 1px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--red-600);
  color: white;
  font-size: 9px;
  font-weight: 700;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-soft);
}
.toggle-copy { min-width: 0; }
.toggle-title { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.toggle-desc { margin-top: 1px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.switch { position: relative; width: 46px; height: 28px; flex: none; cursor: pointer; }
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8d4ca;
  transition: background .2s ease, opacity .2s ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fffdf9;
  box-shadow: 0 1px 4px rgba(44,29,33,.22);
  transition: transform .2s cubic-bezier(.3,.8,.3,1);
}
.switch input:checked + .switch-track { background: var(--brand-700); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--brand-600); outline-offset: 3px; }
.switch input:disabled + .switch-track { opacity: .45; cursor: not-allowed; }

/* ===== Plan page ===== */
.plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(310px, .8fr);
  gap: 20px;
  align-items: start;
}
.plan-sections { display: grid; gap: 12px; }
.plan-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  scroll-margin-top: 96px;
}
.plan-section[open] { box-shadow: var(--shadow-sm); }
.plan-section > summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.plan-section > summary::-webkit-details-marker { display: none; }
.plan-section > summary:hover { background: rgba(250, 247, 240, .55); }
.section-index {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--brand-50);
  color: var(--brand-700);
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(179,38,60,.1);
}
.section-title-wrap { min-width: 0; flex: 1; }
.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.section-sub { margin-top: 1px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.section-chevron {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform .2s ease, background .2s ease;
  flex: none;
}
.section-chevron svg { transition: transform .2s ease; }
.plan-section[open] .section-chevron { background: var(--card-soft); }
.plan-section[open] .section-chevron svg { transform: rotate(180deg); }
.section-body {
  display: grid;
  gap: 15px;
  padding: 4px 20px 22px;
  border-top: 1px solid rgba(230, 223, 210, .7);
  padding-top: 17px;
}
.section-body > .field:first-child { margin-top: 2px; }
.section-note {
  padding: 10px 12px;
  border-left: 2px solid var(--gold-500);
  border-radius: 0 8px 8px 0;
  background: rgba(245, 234, 215, .45);
  color: var(--gold-700);
  font-size: 11.5px;
  line-height: 1.6;
}
.section-note.info { border-left-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); }
.form-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
}
.form-subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.expense-list { display: grid; gap: 10px; }
.expense-row {
  display: grid;
  grid-template-columns: minmax(110px, .9fr) minmax(110px, 1.2fr) minmax(110px, 1fr) 80px 80px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-soft);
}
.expense-row .input-wrap { min-height: 40px; background: #fffefb; }
.expense-row .input-wrap input { padding: 8px 10px; font-size: 14px; }
.expense-row .compact-field label { font-size: 10.5px; }
.expense-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; padding-bottom: 2px; }
.inflation-check {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}
.inflation-check input { width: 15px; height: 15px; accent-color: var(--brand-700); }
.add-expense-row { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }

.ratio-wrap { display: flex; align-items: center; gap: 12px; }
.ratio-wrap input[type="range"] { flex: 1; }
.ratio-value { min-width: 72px; text-align: right; font-family: var(--font-number); font-size: 16px; font-weight: 600; }
.ratio-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--line); }
.ratio-bar .r-invest { background: var(--brand-600); }
.ratio-bar .r-cash { background: var(--gold-500); }
.ratio-legend { display: flex; gap: 14px; margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.ratio-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ratio-legend i { width: 6px; height: 6px; border-radius: 99px; display: inline-block; }
.ratio-legend .i-invest { background: var(--brand-600); }
.ratio-legend .i-cash { background: var(--gold-500); }

.returns-table { display: grid; gap: 8px; }
.returns-head, .returns-row {
  display: grid;
  grid-template-columns: minmax(95px, 1.3fr) repeat(3, minmax(78px, 1fr));
  gap: 8px;
  align-items: center;
}
.returns-head {
  padding: 0 2px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: .06em;
}
.returns-head span:not(:first-child) { text-align: right; }
.returns-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card-soft);
}
.returns-name { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.returns-name .dot { width: 7px; height: 7px; border-radius: 99px; flex: none; }
.returns-row .input-wrap { min-height: 36px; background: #fffefb; border-radius: 8px; }
.returns-row .input-wrap input { padding: 6px 8px; font-size: 14px; }
.returns-row .input-wrap .input-suffix { padding-right: 8px; font-size: 10px; }
.derived-return { margin-top: 4px; color: var(--muted-2); font-size: 9.5px; line-height: 1.3; }

.error-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(182, 75, 65, .22);
  border-radius: var(--radius-md);
  background: var(--red-100);
  color: var(--red-700);
  font-size: 12px;
  line-height: 1.55;
}
.error-summary strong { display: block; font-size: 12.5px; margin-bottom: 2px; }
.error-summary ul { margin: 4px 0 0; padding-left: 16px; }
.error-summary li { margin-top: 2px; }
.error-summary button { color: inherit; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }
.top-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(182, 75, 65, .22);
  background: var(--red-100);
  color: var(--red-700);
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.top-banner.is-warn { border-color: rgba(139,91,23,.22); background: var(--amber-100); color: var(--amber-700); }
.top-banner .top-banner-body { flex: 1; }
.top-banner strong { display: block; margin-bottom: 1px; }
.top-banner .btn { align-self: center; }
.top-banner + .top-banner { margin-top: -6px; }

.plan-rail { position: sticky; top: 116px; display: grid; gap: 12px; }
.summary-card {
  padding: 21px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0, rgba(199, 142, 78, .08), transparent 38%),
    var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.summary-route {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.summary-route .route-age {
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--card-soft);
  border: 1px solid var(--line);
}
.summary-route .route-age.is-retire { color: var(--gold-700); background: var(--gold-100); border-color: rgba(199,142,78,.2); }
.summary-route .route-line { flex: 1; height: 1px; background: var(--line-strong); min-width: 6px; }
.summary-metrics { display: grid; gap: 11px; margin-top: 15px; }
.summary-metric { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.summary-metric span { color: var(--muted); font-size: 11.5px; }
.summary-metric strong {
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.summary-divider { height: 1px; background: var(--line); margin: 2px 0; }
.summary-callout {
  margin-top: 15px;
  padding: 10px 11px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 10.5px;
  line-height: 1.55;
}
.summary-callout strong { font-weight: 650; }
.summary-actions { display: grid; gap: 8px; margin-top: 16px; }
.summary-fineprint { margin-top: 12px; color: var(--muted-2); font-size: 9.5px; line-height: 1.55; text-align: center; }

/* ===== Workspace ===== */
.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% -20%, rgba(199, 142, 78, .17), transparent 42%),
    linear-gradient(135deg, #591725, #8c2132 72%, #a82a40);
  color: #f3eadb;
  box-shadow: 0 18px 48px rgba(75,20,32, .16);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.workspace-head::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  right: -100px; top: -130px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255,255,255,.022), 0 0 0 60px rgba(255,255,255,.014);
  pointer-events: none;
}
.workspace-head-main { min-width: 0; position: relative; z-index: 1; }
.workspace-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(243,234,219,.6);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.workspace-route {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-number);
  font-size: 12px;
  color: rgba(243,234,219,.76);
  font-variant-numeric: tabular-nums;
}
.workspace-route strong { color: #fff8eb; font-weight: 600; }
.workspace-route .dot { color: var(--gold-500); }
.workspace-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 7px; }
.workspace-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: #fbf5e9;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.status-pill.is-current { color: #ffe3e8; background: rgba(207,94,112, .24); border: 1px solid rgba(244,171,185, .2); }
.status-pill.is-stale { color: #ffe2b4; background: rgba(199, 142, 78, .18); border: 1px solid rgba(228, 191, 140, .22); }
.status-pill .dot { width: 5px; height: 5px; border-radius: 99px; background: currentColor; }
.workspace-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; color: rgba(243,234,219,.55); font-size: 10.5px; }
.workspace-meta strong { color: rgba(251,246,236,.9); font-family: var(--font-number); font-weight: 500; font-variant-numeric: tabular-nums; }
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}
.workspace-actions .btn-ghost {
  color: rgba(243,234,219,.8);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
}
.workspace-actions .btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,.1); }
.workspace-actions .btn-primary { color: var(--brand-950); background: #f0e3cd; border-color: #f0e3cd; box-shadow: none; }
.workspace-actions .btn-primary:hover:not(:disabled) { background: #f8edda; }
.workspace-actions .btn:disabled { opacity: .45; }
.more-wrap { position: relative; }
.more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  min-width: 188px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-md);
  z-index: 60;
  display: none;
}
.more-menu.is-open { display: block; animation: pop-in .15s ease both; }
.more-menu button {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.more-menu button:hover { background: var(--card-soft); }
.more-menu button.is-danger { color: var(--red-700); }
.more-menu .menu-sep { height: 1px; background: var(--line); margin: 4px; }

.stale-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid rgba(199, 142, 78, .26);
  border-radius: var(--radius-md);
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.stale-banner .stale-copy { flex: 1; }
.stale-banner strong { display: block; margin-bottom: 1px; }
.stale-banner .btn { border-color: rgba(139,91,23,.25); color: var(--amber-700); background: rgba(255,253,248,.55); }

.tabs-wrap {
  position: relative;
  margin-bottom: 14px;
}
.tablist {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 248, .72);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tablist::-webkit-scrollbar { display: none; }
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.tab:hover { color: var(--ink-soft); background: rgba(250, 247, 240, .8); }
.tab[aria-selected="true"] {
  color: #f8f2e6;
  background: var(--brand-800);
  box-shadow: 0 5px 14px rgba(16, 61, 50, .15);
}
.tab:disabled { opacity: .55; cursor: not-allowed; }
.tabs-edge {
  position: absolute;
  top: 1px; bottom: 1px; right: 1px;
  width: 26px;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, transparent, rgba(255,253,248,.96));
  pointer-events: none;
  display: none;
}
.tabs-wrap.has-overflow .tabs-edge { display: block; }

.year-toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-xs);
}
.year-display {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 104px;
}
.year-display strong {
  font-family: var(--font-number);
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--brand-900);
  font-variant-numeric: tabular-nums;
}
.year-display span { color: var(--muted); font-size: 11px; }
.year-display small { color: var(--muted-2); font-size: 10px; }
.year-slider-wrap { flex: 1; min-width: 80px; }
input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-700) 0 var(--range-progress, 0%), var(--line) var(--range-progress, 0%) 100%);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: var(--line);
}
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--brand-700); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fffdfb;
  border: 2px solid var(--brand-700);
  box-shadow: 0 2px 7px rgba(16, 61, 50, .24);
}
input[type="range"]::-moz-range-thumb {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fffdfb;
  border: 2px solid var(--brand-700);
  box-shadow: 0 2px 7px rgba(16, 61, 50, .24);
}
.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 9px;
}
.slider-ticks button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
}
.slider-ticks button:hover { color: var(--brand-700); }
.year-controls { display: flex; align-items: center; gap: 4px; flex: none; }
.year-controls .btn-icon { width: 34px; height: 34px; min-height: 34px; border-radius: 9px; }
.display-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-soft);
  flex: none;
}
.display-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.display-toggle button[aria-pressed="true"] { color: var(--brand-800); background: #fffefb; box-shadow: 0 1px 4px rgba(44,29,33,.08); }
.home-age-btn { display: none; }
@media (max-width: 900px) { .home-age-btn { display: inline-flex; } }

/* ===== Overview ===== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 14px;
}
.metric-card {
  position: relative;
  overflow: hidden;
  padding: 15px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-xs);
}
.metric-card::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--metric-accent, transparent);
  opacity: .65;
}
.metric-card.primary {
  background:
    radial-gradient(circle at 100% 0, rgba(199,142,78,.16), transparent 50%),
    #fdfaf3;
  --metric-accent: var(--gold-500);
}
.metric-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
}
.metric-label svg { width: 13px; height: 13px; color: var(--muted-2); }
.metric-value {
  margin-top: 5px;
  font-family: var(--font-number);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-value small { font-family: var(--font-body); font-size: 10px; color: var(--muted-2); font-weight: 400; margin-left: 2px; }
.metric-sub {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-sub.is-neg { color: var(--red-700); }
.metric-sub.is-pos { color: var(--brand-700); }
.metric-card.is-failed { background: var(--red-100); border-color: rgba(182,75,65,.2); --metric-accent: var(--red-600); }
.metric-card.is-failed .metric-value { color: var(--red-700); }

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(280px, .8fr);
  gap: 14px;
  align-items: start;
}
.chart-card {
  padding: 18px 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-xs);
  min-width: 0;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}
.chart-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.35; }
.chart-sub { margin-top: 2px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.chart-summary {
  padding: 10px 12px;
  margin: 6px 0 0;
  border-radius: 9px;
  background: var(--card-soft);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.chart-summary strong { color: var(--ink-soft); font-weight: 600; }
.chart-box { width: 100%; height: 330px; min-width: 0; }
.chart-box.is-short { height: 290px; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 14px; height: 2px; border-radius: 2px; display: inline-block; }
.chart-legend i.dashed { height: 0; border-top: 1.5px dashed currentColor; background: transparent !important; }
.chart-legend i.dot { width: 6px; height: 6px; border-radius: 99px; }
.chart-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 4px; }
.chart-foot .hint { font-size: 9.5px; }
.data-details { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 9px; }
.data-details summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
}
.data-details summary::-webkit-details-marker { display: none; }
.data-details summary::after { content: "+"; color: var(--brand-700); font-size: 14px; line-height: 1; }
.data-details[open] summary::after { content: "−"; }
.mini-table-wrap { overflow-x: auto; margin-top: 8px; }
.mini-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 10.5px; }
.mini-table th, .mini-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.mini-table th { color: var(--muted-2); font-weight: 500; font-size: 9.5px; background: var(--card-soft); }
.mini-table th:first-child, .mini-table td:first-child { text-align: left; }
.mini-table td { font-family: var(--font-number); font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.mini-table tr.is-selected td { background: rgba(199,142,78,.08); }
.mini-table tr.is-failed td { color: var(--red-700); }

.side-stack { display: grid; gap: 12px; }
.side-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-xs);
}
.side-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.side-card-head h3 { font-size: 13px; font-weight: 650; }
.side-card-head span { font-size: 9.5px; color: var(--muted-2); }
.composition-bar {
  display: flex;
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--line);
  margin: 4px 0 12px;
}
.composition-bar span { display: block; height: 100%; min-width: 0; transition: width .25s ease; }
.comp-cash { background: var(--gold-500); }
.comp-investment { background: var(--brand-600); }
.comp-pension { background: var(--blue-700); }
.composition-list { display: grid; gap: 9px; }
.comp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; }
.comp-name { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.comp-name i { width: 7px; height: 7px; border-radius: 99px; flex: none; }
.comp-value { text-align: right; }
.comp-value strong { display: block; font-family: var(--font-number); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.comp-value span { font-size: 9px; color: var(--muted-2); }
.event-list { display: grid; gap: 8px; }
.event-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--card-soft);
}
.event-item.is-selected { background: var(--gold-100); }
.event-year {
  flex: none;
  min-width: 36px;
  font-family: var(--font-number);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}
.event-item.is-selected .event-year { color: var(--gold-700); }
.event-copy { color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.event-copy strong { display: block; color: var(--ink-soft); font-weight: 600; font-size: 11px; }
.event-empty { padding: 6px 2px; color: var(--muted); font-size: 10.5px; }

/* ===== Cashflow ===== */
.cashflow-layout { display: grid; gap: 12px; }
.cashflow-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.conservation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid rgba(179,38,60,.12);
  color: var(--brand-700);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.conservation-badge.is-warn { background: var(--red-100); border-color: rgba(182,75,65,.18); color: var(--red-700); }
.conservation-badge.is-gap { background: var(--red-100); border-color: rgba(182,75,65,.18); color: var(--red-700); }
.cashflow-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--card-soft); }
.cashflow-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.cashflow-toggle button[aria-pressed="true"] { color: var(--brand-800); background: #fffefb; box-shadow: 0 1px 3px rgba(44,29,33,.08); }
.sankey-chart { width: 100%; height: 390px; }
.cashflow-note { display: flex; gap: 7px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.cashflow-note svg { width: 13px; height: 13px; margin-top: 2px; flex: none; }
.flow-table-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flow-table-block { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.flow-table-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--card-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
}
.flow-table-title b { color: var(--ink-soft); font-family: var(--font-number); font-variant-numeric: tabular-nums; }
.flow-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.flow-table td { padding: 8px 12px; border-bottom: 1px solid rgba(230,223,210,.6); }
.flow-table tr:last-child td { border-bottom: 0; }
.flow-table td:first-child { color: var(--ink-soft); }
.flow-table td:last-child { text-align: right; font-family: var(--font-number); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.flow-table .flow-total td { background: var(--card-soft); font-weight: 600; }
.flow-table .flow-total td:first-child { color: var(--muted); font-weight: 500; }
.flow-table .flow-gap td:first-child, .flow-table .flow-gap td:last-child { color: var(--red-700); }
.flow-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}
.flow-empty strong { display: block; color: var(--ink-soft); margin-bottom: 2px; }
.cashflow-year-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.cashflow-year-label strong { color: var(--ink); font-family: var(--font-number); font-size: 15px; font-variant-numeric: tabular-nums; }

/* ===== Success ===== */
.success-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .72fr); gap: 14px; align-items: start; }
.success-config { display: grid; gap: 14px; }
.success-empty {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0, rgba(199,142,78,.08), transparent 45%),
    var(--card);
  box-shadow: var(--shadow-xs);
}
.empty-illustration {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid rgba(179,38,60,.1);
}
.empty-illustration svg { width: 28px; height: 28px; }
.success-empty h2 { font-family: var(--font-display); font-size: 23px; letter-spacing: -.015em; }
.success-empty p { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.empty-points { display: grid; gap: 8px; margin-top: 16px; }
.empty-point { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: 11px; line-height: 1.6; }
.empty-point .num {
  width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center;
  flex: none; background: var(--card-soft); border: 1px solid var(--line); color: var(--brand-700);
  font-family: var(--font-number); font-size: 9px; font-weight: 700;
}
.sim-config-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-xs);
}
.sim-config-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.sim-config-head h3 { font-family: var(--font-display); font-size: 17px; }
.model-pill { padding: 3px 7px; border-radius: 999px; background: var(--card-soft); border: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.sim-field { display: grid; gap: 5px; margin-bottom: 11px; }
.sim-field > label { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.quick-counts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.quick-counts button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card-soft);
  min-height: 29px;
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 10px;
  font-family: var(--font-number);
  cursor: pointer;
}
.quick-counts button[aria-pressed="true"] { color: var(--brand-800); border-color: rgba(179,38,60,.25); background: var(--brand-50); font-weight: 600; }
.seed-row { display: flex; gap: 6px; }
.seed-row .input-wrap { flex: 1; }
.seed-row .input-wrap input { font-size: 14px; }
.sim-run-btn { width: 100%; margin-top: 3px; }
.sim-hint { margin-top: 8px; color: var(--muted-2); font-size: 9.5px; line-height: 1.55; }
.sim-loading {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 260px;
  padding: 28px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  text-align: center;
}
.spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid var(--brand-100);
  border-top-color: var(--brand-700);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sim-loading strong { font-family: var(--font-display); font-size: 19px; }
.sim-loading span { color: var(--muted); font-size: 11px; }
.sim-empty-inline { padding: 30px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--card-soft); }
.sim-empty-inline strong { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 3px; }
.sim-empty-inline span { color: var(--muted); font-size: 11px; }

.result-hero {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(199,142,78,.1), transparent 45%),
    var(--card);
  box-shadow: var(--shadow-xs);
}
.result-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.result-hero h3 { font-family: var(--font-display); font-size: 19px; }
.result-hero p { margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.rate-ring {
  --rate: 0;
  --ring-color: var(--brand-700);
  position: relative;
  width: 150px;
  height: 150px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--rate) * 1%), #ede7db 0);
  display: grid;
  place-items: center;
  margin: 8px auto 4px;
}
.rate-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(230,223,210,.8);
}
.rate-ring-inner { position: relative; z-index: 1; text-align: center; }
.rate-number {
  font-family: var(--font-number);
  font-size: 34px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--brand-900);
  font-variant-numeric: tabular-nums;
}
.rate-number small { font-size: 16px; font-weight: 500; }
.rate-count { margin-top: 4px; color: var(--muted); font-size: 9.5px; font-family: var(--font-number); font-variant-numeric: tabular-nums; }
.result-copy { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.result-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.result-fact { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-soft); }
.result-fact span { display: block; color: var(--muted); font-size: 9.5px; }
.result-fact strong { display: block; margin-top: 1px; font-family: var(--font-number); font-size: 14px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.result-fact small { color: var(--muted-2); font-size: 8.5px; font-family: var(--font-body); font-weight: 400; }
.result-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 9.5px; }
.result-meta b { color: var(--muted); font-weight: 500; }
.result-note { margin-top: 10px; color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.result-note strong { color: var(--ink-soft); font-weight: 600; }
.config-stale-note {
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 9.5px;
  line-height: 1.55;
}
.fan-card { padding: 18px 18px 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-xs); }
.fan-box { width: 100%; height: 330px; }
.fan-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 10px; margin-top: -2px; }
.fan-legend span { display: inline-flex; align-items: center; gap: 5px; }
.fan-legend i { width: 13px; height: 7px; border-radius: 2px; display: inline-block; }
.fan-legend .i-band { background: rgba(179,38,60,.16); border: 1px solid rgba(179,38,60,.11); }
.fan-legend .i-median { width: 14px; height: 2px; background: var(--brand-700); }
.fan-legend .i-outline { width: 0; height: 0; border-top: 1.5px dashed var(--muted-2); border-radius: 0; }
.sim-empty-overlay { padding: 34px 20px; text-align: center; }
.sim-empty-overlay strong { display: block; font-family: var(--font-display); font-size: 20px; margin-bottom: 4px; }

/* ===== Annual details ===== */
.tax-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 13px; }
.tax-card { padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); box-shadow: var(--shadow-xs); }
.tax-card span { display: block; color: var(--muted); font-size: 9.5px; line-height: 1.4; }
.tax-card strong { display: block; margin-top: 3px; color: var(--ink); font-family: var(--font-number); font-size: 19px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tax-card small { color: var(--muted-2); font-size: 8.5px; }
.table-card { padding: 16px 0 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-xs); overflow: hidden; }
.table-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 0 17px 13px; }
.table-card-head h3 { font-family: var(--font-display); font-size: 18px; }
.table-card-head p { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
}
.annual-table { min-width: 1480px; width: 100%; border-collapse: separate; border-spacing: 0; font-size: 10.5px; }
.annual-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 9px;
  border-bottom: 1px solid var(--line);
  background: #f8f4ec;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  letter-spacing: .015em;
}
.annual-table th:first-child { text-align: left; left: 0; z-index: 4; }
.annual-table th.th-group { border-left: 1px solid rgba(230,223,210,.8); }
.annual-table td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(230,223,210,.55);
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.annual-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--card);
  font-family: var(--font-body);
  font-weight: 650;
  text-align: left;
  border-right: 1px solid var(--line);
}
.annual-table tbody tr:hover td { background: #fbf8f1; }
.annual-table tbody tr.is-selected td { background: rgba(199,142,78,.08); }
.annual-table tbody tr.is-selected td:first-child { background: #fbf1df; }
.annual-table tbody tr.is-failed td { background: rgba(182,75,65,.055); color: var(--red-700); }
.annual-table tbody tr.is-failed td:first-child { background: #fbefec; }
.annual-table .cell-sub { display: block; color: var(--muted-2); font-family: var(--font-body); font-size: 8px; margin-top: 1px; }
.row-status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 5px; border-radius: 5px; font-family: var(--font-body); font-size: 8.5px; }
.row-status.is-ok { color: var(--brand-700); background: var(--brand-50); }
.row-status.is-fail { color: var(--red-700); background: var(--red-100); font-weight: 600; }
.table-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 17px 13px; color: var(--muted); font-size: 9px; }
.table-legend span { display: inline-flex; align-items: center; gap: 5px; }
.table-legend i { width: 11px; height: 6px; border-radius: 2px; display: inline-block; }
.scroll-hint { display: none; align-items: center; gap: 5px; padding: 0 17px 10px; color: var(--muted-2); font-size: 9px; }
@media (max-width: 760px) { .scroll-hint { display: flex; } }
.tax-disclaimer { margin-top: 12px; color: var(--muted-2); font-size: 9.5px; line-height: 1.6; }

/* ===== Assumptions ===== */
.assumptions-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.assumption-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-xs); }
.assumption-card.is-wide { grid-column: 1 / -1; }
.assumption-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; font-family: var(--font-display); font-size: 17px; }
.assumption-card h3 .icon { color: var(--brand-700); }
.assumption-list { display: grid; gap: 0; }
.assumption-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid rgba(230,223,210,.55); font-size: 10.5px; line-height: 1.5; }
.assumption-row:last-child { border-bottom: 0; }
.assumption-row span { color: var(--muted); }
.assumption-row strong { color: var(--ink-soft); font-weight: 500; text-align: right; font-family: var(--font-number); font-variant-numeric: tabular-nums; }
.assumption-row strong.text { font-family: var(--font-body); font-size: 10px; }
.formula-box {
  padding: 11px 12px;
  margin-top: 8px;
  border-radius: 9px;
  background: var(--card-soft);
  border: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  font-family: var(--font-number);
  font-size: 10px;
  line-height: 1.7;
}
.limit-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.limit-list li { position: relative; padding-left: 14px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.limit-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 4px; height: 4px; border-radius: 99px; background: var(--gold-500); }
.assumption-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.nonofficial-note {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 11px 12px; border-radius: 10px;
  background: var(--amber-100); color: var(--amber-700);
  font-size: 10.5px; line-height: 1.6;
}
.nonofficial-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(238, 233, 222, .52);
  margin-top: 36px;
}
.footer-inner { padding: 22px 0 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-brand { max-width: 480px; }
.footer-brand .brand-name { font-size: 16px; }
.footer-copy { margin-top: 6px; color: var(--muted); font-size: 10.5px; line-height: 1.65; }
.footer-disclaimer { max-width: 620px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.footer-disclaimer details { margin-top: 5px; }
.footer-disclaimer summary { color: var(--brand-700); cursor: pointer; font-size: 10px; }
.footer-disclaimer p + p { margin-top: 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(215,207,192,.7); color: var(--muted-2); font-size: 9px; }
.footer-bottom strong { color: var(--gold-700); font-weight: 600; }

/* ===== Mobile CTA ===== */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mobile-cta .btn { width: 100%; min-height: 48px; }
.mobile-cta .cta-hint { display: block; margin-top: 4px; text-align: center; color: var(--muted-2); font-size: 9px; }
body.has-mobile-cta main.shell { padding-bottom: 102px; }

/* ===== Modals / toast ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(54,18,28, .5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fade-in .2s ease both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(520px, 100%);
  max-height: min(86vh, 740px);
  overflow-y: auto;
  padding: 25px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  animation: pop-in .24s cubic-bezier(.2,.8,.3,1) both;
  outline: none;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-icon {
  width: 43px; height: 43px; border-radius: 13px;
  display: grid; place-items: center;
  margin-bottom: 13px;
  color: var(--brand-700);
  background: var(--brand-50);
}
.modal-icon.is-warn { color: var(--gold-700); background: var(--gold-100); }
.modal h2 { font-family: var(--font-display); font-size: 24px; line-height: 1.3; letter-spacing: -.02em; }
.modal-lede { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.modal-body { margin-top: 15px; }
.modal-legal {
  padding: 12px 13px;
  border-radius: 11px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}
.modal-legal strong { color: var(--ink-soft); }
.modal-legal details { margin-top: 6px; }
.modal-legal summary { color: var(--brand-700); cursor: pointer; font-size: 10.5px; }
.modal-list { display: grid; gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.modal-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 11px; line-height: 1.6; }
.modal-list li svg { width: 14px; height: 14px; margin-top: 2px; color: var(--brand-700); flex: none; }
.modal-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 120px; }
.modal-actions.is-stack { display: grid; grid-template-columns: 1fr; }
.modal-body .field { margin-top: 12px; }
.share-preview {
  margin-top: 13px;
  padding: 15px;
  border-radius: 15px;
  background: linear-gradient(145deg, #681c2b, #a82a40);
  color: #f7eedf;
  border: 1px solid rgba(255,255,255,.08);
}
.share-preview .share-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(247,238,223,.12);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.share-preview .share-logo svg { width: 19px; height: 19px; }
.share-title { font-family: var(--font-display); font-size: 18px; line-height: 1.4; }
.share-desc { margin-top: 5px; color: rgba(247,238,223,.55); font-size: 10px; line-height: 1.5; }
.share-badge { display: inline-flex; margin-top: 12px; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(247,238,223,.7); font-size: 9px; }
.share-boundary { margin-top: 9px; color: var(--muted-2); font-size: 9.5px; line-height: 1.6; }
.toast-root {
  position: fixed;
  top: calc(74px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: min(420px, calc(100% - 32px));
  pointer-events: none;
}
.toast {
  max-width: 100%;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(18, 35, 29, .94);
  color: #fffaf0;
  box-shadow: 0 12px 30px rgba(54,18,28,.2);
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
  animation: toast-in .22s cubic-bezier(.2,.8,.3,1) both;
}
.toast.is-warn { background: var(--amber-700); }
.toast.is-error { background: var(--red-700); }
.toast.is-success { background: var(--brand-800); }
.toast.is-leaving { animation: toast-out .2s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-7px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-5px); } }

/* ===== Demo console ===== */
.demo-console { position: fixed; left: 18px; bottom: 18px; z-index: 90; }
.demo-console-toggle {
  appearance: none;
  border: 1px dashed rgba(155,104,47,.55);
  background: rgba(255,253,248,.92);
  color: var(--gold-700);
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.demo-console-toggle .icon { width: 14px; height: 14px; }
.demo-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: 286px;
  padding: 14px;
  border: 1px dashed rgba(155,104,47,.5);
  border-radius: 15px;
  background: rgba(255,251,243,.98);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  display: none;
}
.demo-panel.is-open { display: block; animation: pop-in .18s ease both; }
.demo-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.demo-panel-head strong { font-family: var(--font-display); font-size: 15px; color: var(--gold-700); }
.demo-panel-head span { font-size: 8.5px; color: var(--muted-2); }
.demo-panel p { color: var(--muted); font-size: 9.5px; line-height: 1.55; margin: 5px 0 10px; }
.demo-group { display: grid; gap: 5px; margin-top: 9px; }
.demo-group > label { color: var(--muted-2); font-size: 9px; font-weight: 600; letter-spacing: .06em; }
.demo-seg { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-soft); }
.demo-seg button {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 25px;
  padding: 3px 4px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 9.5px;
  cursor: pointer;
}
.demo-seg button[aria-pressed="true"] { background: #fffefb; color: var(--brand-800); box-shadow: 0 1px 3px rgba(44,29,33,.08); font-weight: 600; }
.demo-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 3px; }
.demo-action-grid .btn { min-height: 30px; padding: 5px 7px; font-size: 9.5px; border-radius: 7px; }
.demo-console-note { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--muted-2); font-size: 8.5px; line-height: 1.55; }
@media (max-width: 720px) {
  .demo-console { left: 10px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .demo-console-toggle { min-height: 30px; padding: 4px 8px; font-size: 9px; }
  .demo-panel { width: min(286px, calc(100vw - 20px)); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1.3fr) minmax(290px, .8fr); }
  .plan-layout { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .8fr); }
  .workspace-head { gap: 14px; }
}

@media (max-width: 860px) {
  .split, .plan-layout, .overview-grid, .success-layout { grid-template-columns: 1fr; }
  .sticky-rail, .plan-rail { position: static; }
  .plan-rail { order: 2; }
  .success-layout .success-config { order: 2; }
  .success-layout .success-main { order: 1; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card.primary { grid-column: span 2; }
  .tax-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .assumptions-grid { grid-template-columns: 1fr; }
  .assumption-card.is-wide { grid-column: auto; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .shell { width: calc(100% - 28px); }
  .topbar-inner { height: 56px; gap: 10px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark svg { width: 18px; height: 18px; }
  .brand-name { font-size: 15px; }
  .brand-sub { display: none; }
  .demo-stamp { margin-left: auto; padding: 4px 8px; font-size: 9px; }
  .platform-chip { display: none !important; }
  .scope-inner { min-height: 30px; font-size: 9.5px; gap: 8px; }
  .scope-right { display: none; }
  main.shell { padding-top: 18px; }
  .stepper { margin-bottom: 17px; }
  .step-node { font-size: 10.5px; gap: 5px; }
  .step-index { width: 21px; height: 21px; font-size: 9px; }
  .step-line { margin: 0 7px; }
  .page-head { margin-bottom: 17px; }
  h1 { font-size: 30px; line-height: 1.25; }
  .page-lede { margin-top: 7px; font-size: 12px; line-height: 1.7; }
  .head-note { display: none; }
  .card-pad { padding: 17px; }
  .base-card { padding: 15px 16px; gap: 14px; }
  .base-card p { display: none; }
  .base-card h2 { font-size: 16px; }
  .base-icon { width: 36px; height: 36px; border-radius: 11px; }
  .base-icon .icon { width: 19px; height: 19px; }
  .age-field { width: 116px; }
  .account-card { padding: 17px 16px 14px; }
  .account-head { gap: 10px; margin-bottom: 10px; }
  .account-icon { width: 35px; height: 35px; border-radius: 10px; }
  .account-title h3 { font-size: 15px; }
  .account-title p { font-size: 10.5px; }
  .account-assumption-btn { font-size: 10px; }
  .account-balance-row { gap: 8px; }
  .account-side { display: none; }
  .balance-input { font-size: 28px; }
  .balance-currency { font-size: 17px; }
  .advanced-grid { grid-template-columns: 1fr; }
  .recon-card { padding: 20px 18px; border-radius: 20px; }
  .recon-card h2 { font-size: 20px; }
  .recon-total-value { font-size: 33px; }
  .recon-card .btn-primary { min-height: 48px; font-size: 13px; }
  .desktop-next { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .plan-section > summary { padding: 15px 16px; gap: 10px; }
  .section-title { font-size: 17px; }
  .section-body { padding: 14px 16px 18px; }
  .expense-row { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
  .expense-row .expense-name, .expense-row .expense-frequency { grid-column: span 2; }
  .expense-row .inflation-check { min-height: 34px; }
  .expense-actions { justify-content: flex-end; }
  .returns-head { display: none; }
  .returns-row { grid-template-columns: 1fr 1fr; gap: 7px; }
  .returns-name { grid-column: span 2; }
  .returns-row .derived-return { display: none; }
  .summary-card { padding: 17px; }
  .workspace-head { flex-direction: column; padding: 17px; gap: 13px; border-radius: 20px; }
  .workspace-title { font-size: 23px; }
  .workspace-meta { margin-top: 9px; gap: 10px; }
  .workspace-actions { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 1px; }
  .workspace-actions .btn { flex: none; min-height: 36px; padding: 7px 11px; font-size: 11px; }
  .workspace-actions .btn-primary { margin-left: auto; }
  .year-toolbar { flex-wrap: wrap; gap: 8px 10px; padding: 11px 12px; }
  .year-display { min-width: 86px; }
  .year-display strong { font-size: 25px; }
  .year-slider-wrap { order: 4; flex-basis: 100%; }
  .year-controls { margin-left: auto; }
  .display-toggle { margin-left: auto; }
  .year-controls .home-age-btn { display: none; }
  .metrics-grid { gap: 9px; }
  .metric-card { padding: 12px 13px; }
  .metric-value { font-size: 21px; }
  .metric-sub { font-size: 8.5px; }
  .chart-card, .fan-card { padding: 15px 13px 10px; }
  .chart-head { gap: 8px; }
  .chart-title { font-size: 16px; }
  .chart-box { height: 270px; }
  .fan-box { height: 285px; }
  .overview-grid { gap: 10px; }
  .side-stack { gap: 10px; }
  .side-card { padding: 15px; }
  .cashflow-toolbar { gap: 8px; }
  .sankey-chart { height: 330px; }
  .flow-table-grid { grid-template-columns: 1fr; gap: 10px; }
  .success-empty { padding: 20px; }
  .success-empty h2 { font-size: 21px; }
  .result-hero { padding: 17px; }
  .rate-ring { width: 132px; height: 132px; }
  .rate-number { font-size: 30px; }
  .tax-summary-grid { gap: 8px; }
  .tax-card { padding: 11px 12px; }
  .tax-card strong { font-size: 17px; }
  .annual-table { min-width: 1380px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal {
    width: 100%;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    padding: 22px 19px calc(19px + env(safe-area-inset-bottom));
    animation-name: sheet-in;
  }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
  .modal h2 { font-size: 22px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
  .mobile-cta { display: block; }
  .footer-top { flex-direction: column; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .footer-inner { padding-bottom: 92px; }
  .assumptions-grid { gap: 10px; }
  .assumption-card { padding: 15px; }
  .cashflow-note { font-size: 9.5px; }
}

@media (max-width: 390px) {
  .shell { width: calc(100% - 22px); }
  .brand-name { font-size: 14px; }
  .demo-stamp { font-size: 8px; }
  .step-node span:not(.step-index) { font-size: 9.5px; }
  .balance-input { font-size: 25px; }
  .recon-total-value { font-size: 30px; }
  .metric-value { font-size: 19px; }
  .workspace-actions .btn { font-size: 10.5px; padding: 7px 9px; }
  .year-display strong { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .topbar, .demo-console, .mobile-cta, .workspace-actions, .footer, .tabs-wrap, .year-toolbar { display: none !important; }
  body { background: #fff; }
  .screen { animation: none; }
  .workspace-head { color: #111; background: #fff; box-shadow: none; border: 1px solid #ddd; }
  .card, .chart-card, .fan-card { box-shadow: none; }
}

/* 保持演示中新补齐的交互在触屏上的可点击尺寸。 */
@media (max-width: 767px) {
  button, .expense-row .input-wrap { min-height: 44px; }
  .expense-actions { flex-wrap: wrap; }
}

.pension-guide { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card-soft); }
.pension-guide summary { cursor: pointer; color: var(--brand-700); font-size: 12px; font-weight: 600; }
.pension-guide ol { margin: 10px 0; padding-left: 20px; color: var(--muted); font-size: 12px; }
.pension-guide li + li { margin-top: 8px; }
.input-wrap select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 0; border-radius: inherit; color: var(--ink); background: transparent; }

.expense-loan { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 8px; min-width: 0; }
.expense-loan-fields, .loan-preview { min-width: 0; }

/* AI 输入与报告 */
.ai-card { min-width: 0; margin: 0 0 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(130deg, #fffdfb, #fff4f5); box-shadow: var(--shadow-xs); }
.ai-card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.ai-card h2 { font-family: var(--font-display); font-size: 23px; color: var(--brand-950); }
.ai-card h4 { font-size: 14px; margin: 14px 0 8px; }
.ai-chip { padding: 5px 10px; border-radius: 20px; background: var(--brand-100); color: var(--brand-800); font-size: 10px; overflow-wrap: anywhere; }
.ai-card textarea, .ai-question-input { width: 100%; min-width: 0; margin: 12px 0; padding: 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; line-height: 1.7; }
.ai-card textarea { resize: vertical; min-height: 116px; }
.ai-status { color: var(--muted); font-size: 12px; margin-top: 12px; overflow-wrap: anywhere; }
.ai-error { color: var(--red-700); }
.ai-summary { margin: 14px 0; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-preview-list { display: grid; border-top: 1px solid var(--line); margin: 12px 0; }
.ai-preview-row { display: grid; grid-template-columns: 18px minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.ai-preview-row strong { text-align: right; font-weight: 600; }
.ai-preview-row input { accent-color: var(--brand-700); margin-top: 4px; }
.ai-questions { padding-left: 20px; color: var(--muted); font-size: 13px; }
.ai-questions li + li { margin-top: 8px; }
.ai-report-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.ai-report-grid section { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.7); }
.ai-report-grid h4 { color: var(--brand-800); margin-top: 0; }
.ai-report-grid p { font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.ai-facts div { padding: 12px; background: var(--brand-50); border-radius: 10px; }
.ai-facts span { display: block; font-size: 10px; color: var(--muted); }
.ai-facts strong { font-size: 13px; overflow-wrap: anywhere; }
@media(max-width:767px) { .ai-card { padding: 16px; } .ai-card h2 { font-size: 20px; } .ai-report-grid, .ai-facts { grid-template-columns: 1fr; } .ai-chip { max-width: 100%; } }

/* Standalone web: fluid desktop workspace and a touch-first phone layout. */
.shell { width: min(1440px, calc(100% - 80px)); }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 150; padding: 10px 18px; background: var(--card); border-radius: 10px; }
.skip-link:focus { top: 10px; }
.header-share { min-height: 40px; }
.web-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 36px; min-height: 360px; margin: 6px 0 40px; padding: 36px 48px; border: 1px solid var(--line); border-radius: 28px; background: #fff9f4; overflow: hidden; }
.hero-copy h1 { margin: 14px 0 16px; font-size: clamp(36px, 3.6vw, 56px); line-height: 1.23; letter-spacing: -.04em; color: var(--brand-950); }
.hero-copy p { color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-copy .row-actions { margin-top: 22px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.hero-tags span { border: 1px solid #eadbdb; border-radius: 30px; padding: 3px 11px; font-size: 11px; color: var(--brand-800); }
.hero-art { min-width: 0; position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.hero-art img { display: block; width: 100%; height: 100%; max-height: 350px; object-fit: contain; border-radius: 20px; }
.hero-art-note { position: absolute; bottom: 4px; right: 8px; padding: 6px 14px; border: 1px solid #e8d2c5; border-radius: 30px; background: #fff9f4; color: #8c2132; font-size: 12px; }
.stepper { scroll-margin-top: 110px; }
.ai-card { scroll-margin-top: 110px; }
.mobile-cta { background: #fff8f5; }
.share-label { display: block; margin: 16px 0 6px; color: var(--muted); font-size: 13px; }
.share-url { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px; background: var(--paper); color: var(--ink); font-size: 16px; }
.is-thinking { display: flex; align-items: center; gap: 10px; color: var(--brand-700); }
.is-thinking::before { content: ''; flex: none; width: 18px; height: 18px; border: 2px solid #e4bdc6; border-top-color: var(--brand-700); border-right-color: var(--brand-700); border-radius: 50%; box-shadow: 0 0 10px #b3263c30; animation: ai-orbit .8s linear infinite; }
@keyframes ai-orbit { to { transform: rotate(360deg); } }
.noscript-note { padding: 30px; text-align: center; }
.preview-notice { margin: 0 0 20px; padding: 12px 16px; border: 1px solid #ead3b7; border-radius: 12px; background: #fff5e7; color: #805620; font-size: 12px; }
.footer-copy, .footer-disclaimer { font-size: 12px; }
.footer-bottom { font-size: 11px; flex-wrap: wrap; }
@media (min-width: 1100px) {
  .split, .plan-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  #ai-input-card { padding: 26px 30px; }
  .chart-box { height: 390px; }
  .ai-card .hint { max-width: 900px; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .shell { width: calc(100% - 48px); }
  .web-hero { padding: 28px; gap: 20px; }
  .hero-copy h1 { font-size: 38px; }
}
@media (max-width: 767px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { height: 60px; gap: 10px; }
  .header-share { padding: 7px 12px; min-height: 40px; font-size: 13px; }
  .web-hero { grid-template-columns: minmax(0, 1fr) 112px; min-height: auto; gap: 8px; padding: 24px 19px; margin: 0 0 24px; border-radius: 22px; align-items: start; }
  .hero-copy h1 { font-size: 30px; margin: 10px 0 12px; }
  .hero-copy .eyebrow { font-size: 10px; letter-spacing: .04em; }
  .hero-copy p { font-size: 12px; }
  .hero-copy .row-actions { flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .hero-copy .btn { font-size: 12px; padding: 9px 12px; }
  .hero-art { align-self: start; margin-top: 26px; }
  .hero-art img { height: 160px; object-fit: cover; object-position: center; border-radius: 16px; }
  .hero-art-note, .desktop-break { display: none; }
  .hero-tags { gap: 5px; margin-top: 12px; }
  .hero-tags span { padding: 2px 6px; font-size: 9px; }
  .split, .plan-layout, .overview-grid, .success-layout { grid-template-columns: minmax(0, 1fr); }
  .sticky-rail, .plan-rail { position: static; }
  .page-head h1 { font-size: 26px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  input:not([type=checkbox]):not([type=range]), select, textarea, .ai-card textarea, .ai-question-input { font-size: 16px; }
  .balance-input { font-size: 28px !important; }
  .ai-card-head { align-items: flex-start; gap: 9px; }
  .ai-card .row-actions { flex-wrap: wrap; gap: 8px; }
  .ai-card .row-actions .btn { flex: 1; font-size: 12px; padding: 9px; white-space: normal; }
  .ai-card .hint, .hint, .card-note { font-size: 12px; }
  .desktop-next { display: none; }
  .mobile-cta { display: block; z-index: 60; padding-bottom: calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px #4b14200a; }
  .mobile-cta .btn { font-size: 15px; }
  .mobile-cta .cta-hint { font-size: 11px; }
  .footer-inner { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  body[data-screen=workspace] .footer-inner { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 88dvh; border-radius: 24px 24px 0 0; padding: 22px 19px calc(19px + env(safe-area-inset-bottom)); }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
}
@media (max-width: 359px) {
  .web-hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .is-thinking::before { animation: none; }
}
