:root {
  --graphite: #111318;
  --graphite-soft: #252931;
  --paper: #f3f5f7;
  --paper-deep: #eef1f4;
  --ink-muted: #6f7889;
  --broker-yellow: #ffd91c;
  --broker-yellow-soft: #fff9d8;
  --broker-yellow-deep: #d1ae00;
  --signal-green: #079447;
  --risk-red: #b95c5c;
  --line: #e3e7ed;
  --white: #ffffff;
  --radius: 7px;
  --space: 8px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--graphite);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--graphite); }
button, input, output { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(255, 217, 28, .55); outline-offset: 2px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  min-height: 66px;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
}
.topbar-shell {
  width: min(1760px, calc(100% - 40px));
  min-height: 66px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; width: fit-content; }
.brand-mark {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 7px; background: var(--broker-yellow);
  font-size: 16px; font-weight: 800; letter-spacing: -.04em;
}
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 15px; }
.brand small { color: var(--ink-muted); font-size: 10px; }
.topnav { display: flex; justify-content: center; align-self: stretch; gap: 30px; }
.topnav a { display: grid; place-items: center; position: relative; color: #646d7c; text-decoration: none; font-size: 13px; font-weight: 600; }
.topnav a.active { color: var(--graphite); }
.topnav a.active::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--graphite); }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.quiet-button {
  border: 1px solid var(--line); border-radius: 20px; background: #fafbfc;
  color: #4e5868; padding: 8px 12px; cursor: pointer; font-weight: 700; font-size: 11px;
}
.quiet-button:hover { border-color: #bfc5ce; background: var(--white); color: var(--graphite); }
.profile-save-badge { padding: 8px 11px; border: 1px solid var(--line); border-radius: 20px; background: #fafbfc; color: #4e5868; font-size: 10px; font-weight: 600; }
.profile-save-badge i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #13ae62; }

main { width: min(1760px, calc(100% - 40px)); margin: 20px auto 52px; padding-bottom: 0; }
.workspace-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end;
  padding: 20px 0 26px; border-bottom: 1px solid var(--line);
}
.eyebrow, .step-kicker { margin: 0 0 8px; color: var(--ink-muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.workspace-head h1 { max-width: 900px; margin: 0; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.02; letter-spacing: -.045em; }
.workspace-head > div > p:last-child { max-width: 820px; margin: 14px 0 0; color: var(--ink-muted); font-size: 13px; line-height: 1.6; }
.route-preview { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; }
.route-preview i { width: 34px; height: 1px; background: var(--line); }
.route-node { display: grid; justify-items: center; gap: 6px; color: var(--ink-muted); font-size: 10px; font-weight: 700; }
.route-node b { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 11px; }
.route-node.active { color: var(--graphite); }
.route-node.active b { background: var(--broker-yellow); border-color: var(--graphite); }

.notice { margin-top: 20px; padding: 12px 16px; border-left: 4px solid var(--broker-yellow-deep); background: var(--white); font-size: 13px; }
.hidden { display: none !important; }
.profile-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; padding-top: 18px; }
.progress-panel { align-self: start; position: sticky; top: 84px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--graphite); }
.progress-copy { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.progress-copy small { color: var(--ink-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.progress-copy strong { font-size: 12px; }
.progress-track { height: 3px; margin: 16px 0 20px; background: var(--line); }
.progress-track i { display: block; width: 20%; height: 100%; background: var(--broker-yellow); transition: width 180ms ease; }
.progress-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.progress-steps li { color: var(--ink-muted); font-size: 12px; border-radius: 5px; }
.progress-step-button {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: default;
}
.progress-steps li b { font-size: 10px; }
.progress-steps li.active { color: var(--graphite); background: var(--broker-yellow); }
.progress-steps li.done { color: var(--graphite); }
.progress-steps li.done b { color: #8b7500; }
.progress-steps li.route-enabled:not(.active):not(.done) { color: #4e5868; }
.progress-steps li.route-enabled .progress-step-button { cursor: pointer; }
.progress-steps li.route-enabled:not(.active) .progress-step-button:hover { background: var(--paper-deep); color: var(--graphite); }
.progress-step-button:disabled { opacity: 1; }
.progress-note { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.progress-note span { color: var(--broker-yellow); }
.progress-note p { margin: 0; color: #a7a397; font-size: 11px; line-height: 1.55; }
.progress-note strong { color: var(--white); }

.questionnaire { min-height: 640px; display: grid; grid-template-rows: 1fr auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.question-step { display: none; padding: clamp(28px, 5vw, 64px); }
.question-step.active { display: block; }
.question-step h2 { max-width: 760px; margin: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1.04; letter-spacing: -.045em; }
.lead { max-width: 720px; margin: 16px 0 30px; color: var(--ink-muted); line-height: 1.6; }
.financial-step { max-width: 1080px; width: 100%; margin: 0 auto; padding-top: clamp(32px, 4vw, 52px); }
.financial-step h2 { max-width: 820px; }
.financial-step .lead { max-width: 760px; margin-bottom: 24px; }
.financial-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.financial-progress i { height: 1px; background: var(--line); }
.financial-progress button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  text-align: left;
}
.financial-progress button:disabled { cursor: default; opacity: .58; }
.financial-progress button b {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: inherit;
  font-size: 10px;
}
.financial-progress button span { font-size: 10px; font-weight: 700; white-space: nowrap; }
.financial-progress button.active,
.financial-progress button.done { color: var(--graphite); }
.financial-progress button.active b { border-color: var(--graphite); background: var(--broker-yellow); }
.financial-progress button.done b { border-color: #d1ae00; background: var(--broker-yellow-soft); }
.financial-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.financial-section[hidden] { display: none; }
.financial-section.active {
  animation: financial-panel-in 180ms ease-out;
}
.financial-section > header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}
.financial-section > header > span {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--broker-yellow);
  font-size: 11px;
  font-weight: 800;
}
.financial-section > header > div { display: grid; gap: 3px; }
.financial-section > header strong { font-size: 16px; }
.financial-section > header small { color: var(--ink-muted); font-size: 11px; }
.financial-grid { display: grid; grid-template-columns: 1fr; }
.financial-question {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.financial-question:last-child { border-bottom: 0; }
.financial-question-wide { grid-column: auto; }
.financial-question legend {
  float: left;
  width: 100%;
  display: grid;
  gap: 5px;
  margin: 0 0 16px;
  padding: 24px 24px 0;
  color: var(--graphite);
  line-height: 1.45;
}
.financial-question legend small {
  color: #8b7500;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.financial-question legend span {
  max-width: 760px;
  font-size: 15px;
  font-weight: 700;
}
.financial-question legend em {
  color: var(--ink-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}
.financial-question > .compact-options {
  clear: both;
  margin: 0 24px 24px;
}
.compact-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.compact-options-stack { display: grid; grid-template-columns: 1fr; }
.compact-options label { position: relative; cursor: pointer; }
.compact-options input { position: absolute; opacity: 0; pointer-events: none; }
.compact-options label > span {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: #4f5867;
  font-size: 11px;
  line-height: 1.35;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.compact-options label > span::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #cbd1d9;
  background: var(--white);
  color: var(--graphite);
  font-size: 10px;
  font-weight: 800;
}
.compact-options label:has(input[type="radio"]) > span::before { border-radius: 50%; }
.compact-options label:hover > span { border-color: #aaa89f; color: var(--graphite); }
.compact-options label:has(input:checked) > span {
  border-color: var(--graphite);
  background: var(--broker-yellow-soft);
  color: var(--graphite);
  font-weight: 700;
}
.compact-options label:has(input:checked) > span::before {
  content: "✓";
  border-color: var(--graphite);
  background: var(--broker-yellow);
}
.compact-options label:has(input:focus-visible) > span {
  outline: 3px solid rgba(255, 217, 28, .55);
  outline-offset: 2px;
}
.result-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.financial-followup {
  display: grid;
  gap: 7px;
  margin: -8px 24px 24px;
}
.financial-followup > span { color: var(--ink-muted); font-size: 10px; font-weight: 700; }
.financial-followup input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--graphite);
  font-size: 12px;
}
.question-note { margin: -8px 24px 24px; color: var(--ink-muted); font-size: 10px; line-height: 1.5; }
.financial-complete-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: #e7f2ea;
  color: #24563d;
}
.financial-complete-note > span:first-child {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--signal-green);
  color: var(--white);
  font-weight: 800;
}
.financial-complete-note > span:last-child { display: grid; gap: 3px; }
.financial-complete-note strong { font-size: 12px; }
.financial-complete-note small { color: #3f6d54; font-size: 10px; line-height: 1.45; }
@keyframes financial-panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid.goal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-card { position: relative; min-height: 138px; display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color 150ms ease, background 150ms ease; }
.choice-card:hover { border-color: #989286; }
.choice-card:has(input:checked) { border-color: #d1ae00; background: #fff9d8; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-index { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); font-size: 10px; font-weight: 800; }
.choice-card:has(input:checked) .choice-index { border-color: var(--graphite); background: var(--broker-yellow); }
.choice-card > span:last-child { display: grid; gap: 8px; }
.choice-card strong { font-size: 14px; line-height: 1.25; }
.choice-card small { color: var(--ink-muted); font-size: 12px; line-height: 1.5; }
.goal-strategy-card {
  min-height: 390px;
  padding: 18px;
}
.goal-strategy-copy {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  grid-template-rows: auto auto auto auto 1fr;
}
.strategy-capital-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, .68);
}
.strategy-capital-split > span {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 9px;
}
.strategy-capital-split > span + span { border-left: 1px solid var(--line); }
.strategy-capital-split small {
  color: var(--ink-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.35;
  text-transform: uppercase;
}
.strategy-capital-split b {
  color: var(--graphite);
  font-size: 10px;
  line-height: 1.35;
}
.strategy-capital-split .income-share b { color: var(--ink-muted); }
.strategy-capital-split .income-share.active b { color: var(--signal-green); }
.goal-strategy-recommended .strategy-capital-split {
  border-color: #b8d6c4;
  background: rgba(255, 255, 255, .62);
}
.strategy-market {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: #4f4b42;
  font-size: 10px;
  line-height: 1.5;
}
.strategy-market b {
  color: var(--graphite);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.strategy-tradeoffs {
  align-self: end;
  display: grid;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, .68);
}
.strategy-tradeoffs > span {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  min-width: 0;
}
.strategy-tradeoffs > span + span { border-top: 1px solid var(--line); }
.strategy-tradeoffs b {
  padding: 9px 8px;
  border-right: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.35;
}
.strategy-tradeoffs [role="cell"] {
  padding: 9px;
  color: #4f4b42;
  font-size: 9px;
  line-height: 1.45;
}
.tradeoff-plus { color: var(--signal-green); }
.tradeoff-minus { color: var(--risk-red); }
.goal-strategy-recommended {
  border-color: #9ec7ae;
  background: #edf6f0;
}
.goal-strategy-recommended:hover { border-color: var(--signal-green); }
.goal-strategy-recommended:has(input:checked) {
  border-color: var(--signal-green);
  background: #dfeee4;
}
.goal-strategy-recommended:has(input:checked) .choice-index {
  border-color: var(--signal-green);
  background: var(--signal-green);
  color: var(--white);
}
.strategy-use-case {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid #77ad8c;
  background: #f7fbf8;
  color: #24563d;
}
.strategy-use-case > b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--signal-green);
  color: var(--white);
  font-size: 10px;
}
.strategy-use-case > span {
  display: grid;
  gap: 2px;
}
.strategy-use-case strong {
  color: #24563d;
  font-size: 10px;
  line-height: 1.3;
}
.strategy-use-case small {
  color: #3f6d54;
  font-size: 9px;
  line-height: 1.4;
}
.text-field { display: grid; gap: 8px; max-width: 520px; margin-top: 24px; }
.text-field span, .capital-field > span { font-size: 12px; font-weight: 700; }
.text-field em { color: var(--ink-muted); font-style: normal; font-weight: 400; }
.text-field input { height: 48px; border: 1px solid var(--line); background: var(--white); padding: 0 14px; color: var(--graphite); }
.capital-field { display: grid; gap: 10px; max-width: 620px; }
.capital-control {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(250px, 1.28fr);
  align-items: center;
  gap: 22px;
  padding: 14px 20px;
  border: 1px solid var(--graphite);
  background: var(--paper);
}
.capital-value { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.capital-value b { font-size: 28px; }
.capital-value input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.capital-value em { font-size: 12px; color: var(--ink-muted); font-style: normal; font-weight: 700; }
.capital-slider { display: grid; gap: 6px; }
.capital-slider input {
  -webkit-appearance: none;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  accent-color: var(--broker-yellow);
  cursor: pointer;
}
.capital-slider input::-webkit-slider-runnable-track { height: 8px; border-radius: 0; background: var(--broker-yellow); }
.capital-slider input::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -6px;
  border: 2px solid var(--graphite);
  border-radius: 50%;
  background: var(--broker-yellow);
  -webkit-appearance: none;
}
.capital-slider input::-moz-range-track { height: 8px; border: 0; border-radius: 0; background: var(--broker-yellow); }
.capital-slider input::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--graphite); border-radius: 50%; background: var(--broker-yellow); }
.capital-slider small { display: flex; justify-content: space-between; color: var(--ink-muted); font-size: 9px; font-weight: 700; }
.capital-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 28px; }
.capital-presets button { border: 1px solid var(--line); background: transparent; padding: 9px 14px; cursor: pointer; font-size: 12px; font-weight: 700; }
.capital-presets button:hover { border-color: var(--graphite); background: var(--broker-yellow); }
.capital-presets button.recommended {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-color: var(--graphite);
  background: var(--broker-yellow);
}
.capital-presets button.recommended span {
  padding: 3px 6px;
  background: var(--graphite);
  color: var(--white);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contribution-plan {
  max-width: 860px;
  margin: 30px 0 26px;
  padding: 22px;
  border: 1px solid var(--graphite);
  background: var(--paper);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.section-heading small {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section-heading h3 { max-width: 560px; margin: 0; font-size: 17px; line-height: 1.3; }
.section-heading > span { max-width: 180px; color: var(--ink-muted); font-size: 10px; line-height: 1.45; text-align: right; }
.money-field { display: grid; gap: 7px; max-width: 420px; }
.money-field > span, .date-fields label > span { font-size: 11px; font-weight: 700; }
.money-field > div {
  height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--white);
}
.money-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 23px; font-weight: 800; }
.money-field em { color: var(--ink-muted); font-size: 10px; font-style: normal; font-weight: 700; }
.schedule-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 12px; padding: 0; border: 0; }
.schedule-switch legend { width: 100%; margin-bottom: 3px; font-size: 11px; font-weight: 700; }
.schedule-switch label { position: relative; cursor: pointer; }
.schedule-switch input { position: absolute; opacity: 0; }
.schedule-switch span { display: block; padding: 9px 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink-muted); font-size: 11px; font-weight: 700; }
.schedule-switch label:has(input:checked) span { border-color: var(--graphite); background: var(--broker-yellow); color: var(--graphite); }
.day-fields { display: grid; grid-template-columns: minmax(0, 280px); gap: 10px; }
.day-fields.two-columns { grid-template-columns: repeat(2, minmax(0, 220px)); }
.day-fields label { display: grid; gap: 7px; }
.day-fields label > span:first-child { font-size: 11px; font-weight: 700; }
.day-input {
  height: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--white);
}
.day-input input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--graphite); font-weight: 800; }
.day-input em { color: var(--ink-muted); font-size: 10px; font-style: normal; font-weight: 700; }
.month-day-note { max-width: 520px; margin: 9px 0 0; color: var(--ink-muted); font-size: 9px; line-height: 1.45; }
.confidence-field { display: grid; gap: 10px; margin-top: 20px; }
.confidence-field > span { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; line-height: 1.4; }
.confidence-field output { flex: 0 0 auto; padding: 4px 8px; background: var(--graphite); color: var(--broker-yellow); font-weight: 800; }
.confidence-field input { width: 100%; accent-color: var(--graphite); cursor: pointer; }
.confidence-field small { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-muted); font-size: 9px; }
.risk-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 24px 0 20px;
  padding: 18px;
  border: 1px solid #b8d6c4;
  background: #e7f2ea;
  color: #24563d;
}
.risk-note-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #77ad8c;
  background: #f6fbf7;
  font-size: 14px;
  font-weight: 800;
}
.risk-note #riskNoteTitle { display: block; max-width: 720px; font-size: 15px; line-height: 1.35; }
.risk-note p { margin: 8px 0 0; font-size: 11px; line-height: 1.55; }
.risk-note b { font-weight: 800; }
.risk-note-lead { max-width: 760px; }
.risk-note-critical {
  max-width: 780px;
  padding: 11px 12px;
  border-left: 3px solid var(--signal-green);
  background: rgba(255, 255, 255, .55);
}
.risk-note-critical strong { font-size: 11px; line-height: 1.55; }
.risk-note-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 9px 11px;
  border: 1px solid #77ad8c;
  background: #f6fbf7;
  color: #24563d;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.risk-note-link:hover { border-color: #24563d; background: #fff; }
.behavior-risk-note {
  max-width: none;
  margin: 24px 0 0;
}
.risk-accept {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  max-width: 780px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #77ad8c;
  background: #f6fbf7;
  cursor: pointer;
}
.risk-accept:has(input:checked) {
  border-color: #24563d;
  background: #fff;
}
.risk-accept input {
  position: absolute;
  opacity: 0;
}
.risk-accept-check {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #77ad8c;
  color: transparent;
  font-size: 14px;
  font-weight: 800;
}
.risk-accept:has(input:checked) .risk-accept-check {
  background: var(--signal-green);
  color: var(--white);
}
.risk-accept > span:last-child { display: grid; gap: 4px; }
.risk-accept strong { font-size: 12px; line-height: 1.35; }
.risk-accept small { color: #3f6d54; font-size: 10px; line-height: 1.45; }
.consent-list { display: grid; gap: 8px; max-width: 860px; padding: 0; margin: 0; border: 0; }
.consent-list legend { margin-bottom: 4px; font-size: 13px; font-weight: 800; }
.consent-list label {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.consent-list label:has(input:checked) { border-color: var(--signal-green); background: #f1f7f3; }
.consent-list input { position: absolute; opacity: 0; }
.consent-check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: transparent;
  font-size: 12px;
  font-weight: 800;
}
.consent-list label:has(input:checked) .consent-check {
  border-color: var(--signal-green);
  background: var(--signal-green);
  color: var(--white);
}
.consent-list label > span:last-child { display: grid; gap: 3px; }
.consent-list strong { font-size: 12px; }
.consent-list small { color: var(--ink-muted); font-size: 11px; line-height: 1.45; }
.compact-fieldset { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; border: 0; }
.compact-fieldset legend { width: 100%; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.compact-fieldset label, .inline-choices label { position: relative; cursor: pointer; }
.compact-fieldset input, .inline-choices input { position: absolute; opacity: 0; }
.compact-fieldset span, .inline-choices span { display: block; padding: 11px 14px; border: 1px solid var(--line); color: var(--ink-muted); font-size: 12px; font-weight: 600; }
.compact-fieldset label:has(input:checked) span, .inline-choices label:has(input:checked) span { border-color: var(--graphite); background: var(--broker-yellow); color: var(--graphite); }
.commission-split {
  max-width: 760px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--white);
}
.commission-split-heading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.commission-split-heading span { color: var(--ink-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.commission-split-heading strong { font-size: 12px; }
.commission-split input { width: 100%; margin: 14px 0 6px; accent-color: var(--broker-yellow-deep); cursor: pointer; }
.commission-split-scale { display: flex; justify-content: space-between; color: var(--ink-muted); font-size: 9px; }
.question-block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.question-block:first-of-type { margin-top: 8px; }
.question-block h3 { margin: 0 0 12px; font-size: 14px; }
.inline-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.cycle-note {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(180px, 238px);
  align-items: center;
  gap: 18px;
  max-width: none;
  margin: 0 0 26px;
  padding: 20px;
  border: 1px solid #b8d6c4;
  background: #e7f2ea;
  color: #24563d;
}
.cycle-note > span {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid #77ad8c;
  background: #f6fbf7;
  font-size: 17px;
  font-weight: 800;
}
.cycle-note strong { font-size: 14px; }
.cycle-note p { margin: 7px 0 0; font-size: 11px; line-height: 1.55; }
.cycle-chart-trigger {
  position: relative;
  min-width: 0;
  display: block;
  padding: 0;
  border: 1px solid #77ad8c;
  background: #f6fbf7;
  color: #24563d;
  cursor: zoom-in;
  overflow: hidden;
  text-align: left;
}
.cycle-chart-trigger img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 180ms ease;
}
.cycle-chart-trigger span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  background: rgba(21, 21, 19, .9);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
}
.cycle-chart-trigger:hover { border-color: var(--graphite); }
.cycle-chart-trigger:hover img { transform: scale(1.025); }
.cycle-chart-trigger:focus-visible { outline-color: rgba(49, 122, 88, .45); }
.cycle-chart-dialog {
  width: min(96vw, 1720px);
  max-width: none;
  max-height: 96vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.cycle-chart-dialog::backdrop { background: rgba(21, 21, 19, .88); }
.cycle-chart-dialog-panel {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: var(--paper);
}
.cycle-chart-dialog figure { margin: 0; }
.cycle-chart-dialog figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(96vh - 72px);
  object-fit: contain;
  background: var(--white);
}
.cycle-chart-dialog figcaption {
  padding: 12px 4px 0;
  color: var(--ink-muted);
  font-size: 11px;
}
.cycle-chart-close {
  position: absolute;
  z-index: 2;
  top: 26px;
  right: 26px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid var(--graphite);
  background: var(--broker-yellow);
  color: var(--graphite);
  cursor: pointer;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}
.cycle-chart-close:hover { background: var(--broker-yellow-deep); }
.plan-fieldset { max-width: 900px; padding: 0; margin: 0; border: 0; }
.plan-fieldset legend { margin-bottom: 12px; font-size: 13px; font-weight: 800; }
.plan-fieldset > p { margin: -5px 0 13px; color: var(--ink-muted); font-size: 10px; }
.plan-fieldset label { position: relative; cursor: pointer; }
.plan-fieldset input { position: absolute; opacity: 0; }
.horizon-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.horizon-options legend { grid-column: 1 / -1; }
.horizon-options label > span {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 17px;
  border: 1px solid var(--line);
}
.horizon-options strong { font-size: 22px; }
.horizon-options small { color: var(--ink-muted); font-size: 10px; line-height: 1.4; }
.horizon-options em {
  width: fit-content;
  padding: 3px 6px;
  background: var(--broker-yellow);
  color: var(--graphite);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.horizon-options label:has(input:checked) > span { border-color: var(--graphite); background: #fff7c8; }
.horizon-options label:has(input:checked) strong::after { content: " ✓"; color: var(--signal-green); }
.horizon-warning {
  max-width: 900px;
  margin: 12px 0 24px;
  padding: 15px 17px;
  border: 1px solid #d5aaa6;
  border-left: 5px solid var(--risk-red);
  background: #f7e9e6;
  color: #773e39;
}
.horizon-warning strong { font-size: 12px; }
.horizon-warning p { margin: 6px 0 0; font-size: 10px; line-height: 1.5; }
.return-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}
.return-options legend, .return-options > p { grid-column: 1 / -1; }
.return-options label > span {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
}
.return-options strong { font-size: 20px; }
.return-options small { color: var(--ink-muted); font-size: 9px; }
.return-options label:has(input:checked) > span { border-color: var(--graphite); background: var(--broker-yellow); }
.workload-detail {
  max-width: 900px;
  margin-top: 12px;
  padding: 17px;
  border: 1px solid var(--graphite);
  background: var(--graphite);
  color: var(--white);
}
.workload-detail small { color: var(--broker-yellow); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.workload-detail strong { display: block; margin-top: 6px; font-size: 14px; }
.workload-detail p { margin: 7px 0 0; color: #bdb8aa; font-size: 10px; line-height: 1.5; }
.financial-goal {
  max-width: 900px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 220px 220px;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.financial-goal h3 { margin: 0 0 5px; font-size: 14px; }
.financial-goal p { margin: 0; color: var(--ink-muted); font-size: 10px; line-height: 1.5; }
.financial-goal label { display: grid; gap: 6px; }
.financial-goal label > span { font-size: 10px; font-weight: 800; }
.financial-goal label > div {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fbfcfd;
}
.financial-goal input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--graphite);
  font-weight: 700;
}
.financial-goal label > input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fbfcfd;
}
.financial-goal label > div > span { color: var(--ink-muted); font-size: 10px; font-weight: 700; }
.capital-projection {
  max-width: 900px;
  margin-top: 14px;
  border: 1px solid var(--graphite);
  background: var(--white);
}
.capital-projection > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.capital-projection > header small {
  color: #8a7500;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.capital-projection h3 { margin: 5px 0 0; font-size: 15px; }
.capital-projection > header p { margin: 6px 0 0; color: var(--ink-muted); font-size: 10px; line-height: 1.5; }
.projection-years {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.projection-years li {
  min-width: 0;
  min-height: 122px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 15px 13px;
  border-right: 1px solid var(--line);
}
.projection-years li:last-child { border-right: 0; }
.projection-years li.selected-horizon { background: var(--broker-yellow-soft); box-shadow: inset 0 4px 0 var(--broker-yellow); }
.projection-years span { color: var(--ink-muted); font-size: 9px; font-weight: 700; }
.projection-years output { overflow-wrap: anywhere; color: var(--graphite); font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.projection-years small { color: var(--ink-muted); font-size: 8px; line-height: 1.45; }
.projection-years small b { color: var(--graphite); }
.projection-years em {
  width: fit-content;
  margin-top: 2px;
  padding: 3px 5px;
  background: var(--broker-yellow);
  color: var(--graphite);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.capital-projection > footer {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.5;
}
.capital-projection > footer strong { color: var(--graphite); }
.scenario-intro {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--graphite);
  color: var(--white);
}
.scenario-intro > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--broker-yellow);
  color: var(--broker-yellow);
  font-size: 20px;
  font-weight: 800;
}
.scenario-intro p { display: grid; gap: 4px; margin: 0; color: #bbb6a9; font-size: 11px; line-height: 1.45; }
.scenario-intro strong { color: var(--white); font-size: 13px; }
.risk-scenario { padding: 18px 0; }
.scenario-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 12px;
}
.scenario-heading small { color: var(--ink-muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.scenario-heading h3 { margin: 5px 0 0; }
.scenario-impact {
  width: fit-content;
  margin: 9px 0 0;
  padding: 8px 10px;
  border-left: 4px solid var(--risk-red);
  background: #f7e9e6;
  color: #773e39;
  font-size: 11px;
  line-height: 1.45;
}
.scenario-impact b { color: #773e39; }
.scenario-impact strong { color: var(--risk-red); font-size: 13px; }
.scenario-heading dl { display: flex; gap: 8px; margin: 0; }
.scenario-heading dl div { min-width: 100px; padding: 8px 10px; border: 1px solid var(--line); }
.scenario-heading dt { color: var(--ink-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.scenario-heading dd { margin: 3px 0 0; font-size: 12px; font-weight: 800; }
.scenario-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scenario-choices label { position: relative; cursor: pointer; }
.scenario-choices input { position: absolute; opacity: 0; }
.scenario-choices span { min-height: 76px; display: grid; align-content: center; gap: 5px; padding: 12px; border: 1px solid var(--line); }
.scenario-choices strong { font-size: 11px; }
.scenario-choices small { color: var(--ink-muted); font-size: 9px; line-height: 1.4; }
.scenario-choices label:has(input:checked) span { border-color: var(--graphite); background: var(--broker-yellow); }
.scenario-choices label:has(input:checked) small { color: #4f4a3e; }
.scenario-choices label:has(input[value="exit"]:checked) span {
  border-color: var(--risk-red);
  background: #f7e9e6;
}
.scenario-choices label:has(input[value="exit"]:checked) strong { color: #773e39; }
.scenario-choices label:has(input[value="exit"]:checked) small { color: #8c5550; }
.loss-exit-warning {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0 4px;
  padding: 15px;
  border: 1px solid #d5aaa6;
  border-left: 5px solid var(--risk-red);
  background: #f7e9e6;
  color: #773e39;
}
.loss-exit-warning > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--risk-red);
  font-size: 14px;
  font-weight: 800;
}
.loss-exit-warning strong { font-size: 12px; }
.loss-exit-warning p { margin: 5px 0 0; font-size: 10px; line-height: 1.5; }
.fee-footnote {
  margin: 14px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.55;
}
.fee-footnote b { color: var(--graphite); }

.form-navigation { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); background: #fafbfc; }
.form-navigation > span { color: var(--ink-muted); font-size: 11px; }
.back-button, .next-button, .profile-tools button {
  border: 1px solid var(--graphite); padding: 12px 16px; cursor: pointer; font-weight: 700; font-size: 12px;
}
.back-button { background: transparent; }
.next-button { background: var(--graphite); color: var(--white); }
.next-button:not(:disabled):hover { background: var(--broker-yellow); color: var(--graphite); }
.next-button:disabled {
  border-color: #b9b4a8;
  background: #d8d4ca;
  color: #817d73;
  cursor: not-allowed;
}

.result-step { padding-bottom: 36px; }
.result-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.saved-badge { padding: 8px 10px; background: #e4efe7; color: var(--signal-green); font-size: 10px; font-weight: 800; }
.result-passport { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.result-passport > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 24px;
  align-items: end;
  padding: 18px 20px;
  border-bottom: 1px solid var(--graphite);
  background: var(--paper);
}
.result-passport header small {
  color: var(--ink-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.result-passport h3 { margin: 5px 0 0; font-size: 18px; }
.result-passport header p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}
.passport-grid { display: grid; grid-template-columns: 1.15fr .9fr 1.2fr; }
.passport-card { min-width: 0; padding: 18px; }
.passport-card + .passport-card { border-left: 1px solid var(--line); }
.passport-card h4 { margin: 0 0 12px; font-size: 13px; }
.passport-financial {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}
.passport-financial + .passport-card { border-left: 0; }
.passport-financial .passport-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.passport-financial .passport-list div {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
}
.passport-financial .passport-list div + div {
  border-top: 0;
  border-left: 1px solid var(--line);
}
.passport-financial .passport-list dd {
  border-left: 0;
  border-top: 1px solid var(--line);
}
.passport-list { display: grid; margin: 0; border: 1px solid var(--line); }
.passport-list div {
  display: grid;
  grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr);
}
.passport-list div + div { border-top: 1px solid var(--line); }
.passport-list dt,
.passport-list dd { min-width: 0; padding: 9px 10px; font-size: 10px; line-height: 1.4; }
.passport-list dt { color: var(--ink-muted); }
.passport-list dd { margin: 0; border-left: 1px solid var(--line); font-weight: 700; overflow-wrap: anywhere; }
.passport-confirmations { background: #e7f2ea; color: #24563d; }
.passport-confirmations ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.passport-confirmations li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  border: 1px solid #77ad8c;
  background: #f6fbf7;
}
.passport-confirmations li > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--signal-green);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}
.passport-confirmations li div { display: grid; gap: 4px; }
.passport-confirmations strong { font-size: 11px; line-height: 1.35; }
.passport-confirmations small { color: #3f6d54; font-size: 9px; line-height: 1.45; }
.passport-confirmations > p { margin: 12px 0 0; font-size: 9px; line-height: 1.5; }
.strategy-map { margin-top: 18px; border: 1px solid var(--line); }
.strategy-map > header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.strategy-map header small, .next-actions small { color: var(--ink-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.strategy-map h3, .next-actions h3 { margin: 5px 0 0; font-size: 18px; }
.strategy-total { text-align: right; }
.strategy-total strong { display: block; margin-top: 4px; font-size: 24px; }
.allocation-line { display: grid; grid-template-columns: repeat(4, 1fr); height: 5px; }
.allocation-line i:nth-child(1) { background: var(--broker-yellow); }
.allocation-line i:nth-child(2) { background: #d9bd27; }
.allocation-line i:nth-child(3) { background: #817d70; }
.allocation-line i:nth-child(4) { background: var(--graphite); }
.position-list { list-style: none; margin: 0; padding: 0; }
.position-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 50px; gap: 14px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.position-list li:last-child { border-bottom: 0; }
.position-number { color: var(--ink-muted); font-size: 10px; font-weight: 800; }
.position-list div { display: grid; gap: 4px; }
.position-list strong { font-size: 13px; }
.position-list small { color: var(--ink-muted); font-size: 11px; }
.position-amount { font-size: 14px; }
.position-list em { justify-self: end; color: var(--ink-muted); font-size: 10px; font-style: normal; }
.next-actions { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; margin-top: 18px; padding: 22px; background: var(--broker-yellow); border: 1px solid var(--graphite); }
.next-actions p { margin: 8px 0 0; max-width: 650px; font-size: 12px; line-height: 1.5; }
.primary-link { display: inline-flex; align-items: center; gap: 20px; padding: 13px 16px; background: var(--graphite); color: var(--white); text-decoration: none; font-size: 12px; font-weight: 800; white-space: nowrap; }
.primary-link[aria-disabled="true"] { opacity: .55; cursor: wait; pointer-events: none; }
.profile-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.profile-tools button { background: transparent; }
.profile-tools button:hover { background: var(--graphite); color: var(--white); }
.profile-tools-intro { max-width: 760px; margin-top: 18px; }
.profile-tools-intro strong { font-size: 13px; }
.profile-tools-intro p { margin: 5px 0 0; color: var(--ink-muted); font-size: 11px; line-height: 1.5; }
.disclaimer { margin: 16px 0 0; color: var(--ink-muted); font-size: 10px; line-height: 1.5; }
.site-disclaimer {
  width: min(1760px, calc(100% - 40px));
  margin: 0 auto 28px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.5;
}
.site-disclaimer strong { color: var(--graphite); }

@media (max-width: 980px) {
  .topbar-shell { grid-template-columns: 220px 1fr auto; }
  .workspace-head { grid-template-columns: 1fr; }
  .route-preview { justify-self: start; }
  .profile-shell { grid-template-columns: 1fr; }
  .progress-panel { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .progress-track { grid-column: 1 / -1; margin: 0; }
  .progress-steps { grid-column: 1 / -1; grid-template-columns: repeat(7, 1fr); }
  .progress-step-button { grid-template-columns: 1fr; justify-items: center; gap: 5px; text-align: center; }
  .progress-note { display: none; }
}

@media (max-width: 720px) {
  .financial-goal { grid-template-columns: 1fr; }
  main { width: min(100% - 24px, 1400px); }
  .site-disclaimer { width: calc(100% - 24px); margin-bottom: 16px; }
  .topbar-shell { width: calc(100% - 28px); min-height: 62px; padding: 10px 0; grid-template-columns: 1fr auto; gap: 8px; }
  .topnav { order: 3; grid-column: 1 / -1; height: 38px; justify-content: flex-start; gap: 22px; overflow-x: auto; }
  .topbar-actions { gap: 5px; }
  .profile-save-badge { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; font-size: 0; }
  .profile-save-badge i { margin: 0; }
  .brand-mark { width: 36px; height: 36px; }
  .brand small { display: none; }
  .quiet-button { padding: 9px 10px; font-size: 10px; }
  .workspace-head { padding: 30px 0 24px; gap: 24px; }
  .workspace-head h1 { font-size: 38px; }
  .route-preview i { width: 20px; }
  .profile-shell { padding-top: 16px; gap: 14px; }
  .progress-panel { padding: 16px; }
  .progress-copy { grid-column: 1 / -1; }
  .progress-step-button { padding: 8px 2px; font-size: 9px; }
  .questionnaire { min-height: 0; }
  .question-step { padding: 26px 18px; }
  .question-step h2 { font-size: 30px; }
  .financial-step { padding: 26px 16px; }
  .financial-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 12px 8px;
  }
  .financial-progress i { display: none; }
  .financial-progress button { display: grid; justify-items: center; gap: 5px; text-align: center; }
  .financial-progress button span { font-size: 8px; white-space: normal; }
  .financial-section > header { padding: 16px; }
  .financial-section > header strong { font-size: 14px; }
  .financial-question { padding: 0; }
  .financial-question legend { padding: 20px 18px 0; }
  .choice-grid, .choice-grid.two-columns, .choice-grid.goal-grid { grid-template-columns: 1fr; }
  .financial-grid { grid-template-columns: 1fr; }
  .compact-options,
  .result-options { grid-template-columns: 1fr; }
  .financial-question,
  .financial-question:nth-child(2n) { border-right: 0; }
  .financial-question-wide { grid-column: auto; }
  .financial-question > .compact-options { margin: 0 18px 20px; }
  .financial-followup,
  .question-note { margin-right: 18px; margin-left: 18px; }
  .horizon-options { grid-template-columns: 1fr; }
  .return-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projection-years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projection-years li { min-height: 112px; border-bottom: 1px solid var(--line); }
  .projection-years li:nth-child(2n) { border-right: 0; }
  .projection-years li:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .section-heading { display: grid; }
  .section-heading > span { max-width: none; text-align: left; }
  .choice-card { min-height: 108px; }
  .form-navigation { grid-template-columns: auto 1fr; padding: 12px; }
  .form-navigation > span { display: none; }
  .next-button { justify-self: end; }
  .passport-grid { grid-template-columns: 1fr; }
  .passport-financial { grid-column: auto; }
  .passport-financial .passport-list { grid-template-columns: 1fr; }
  .passport-financial .passport-list div + div { border-left: 0; border-top: 1px solid var(--line); }
  .passport-financial .passport-list dd { border-top: 0; border-left: 1px solid var(--line); }
  .passport-financial .passport-list div { grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr); }
  .passport-card + .passport-card { border-left: 0; border-top: 1px solid var(--line); }
  .position-list li { grid-template-columns: 28px 1fr auto; padding: 14px; }
  .position-list em { display: none; }
  .position-list small { display: none; }
  .next-actions { grid-template-columns: 1fr; }
  .primary-link { justify-content: space-between; }
  .result-heading { display: grid; }
  .capital-control { grid-template-columns: 1fr; gap: 8px; }
  .cycle-note { grid-template-columns: 62px minmax(0, 1fr); }
  .cycle-chart-trigger { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .brand strong { font-size: 12px; }
  .workspace-head h1 { font-size: 34px; }
  .route-node { font-size: 9px; }
  .capital-value input { font-size: 28px; }
  .risk-note { grid-template-columns: 1fr; }
  .contribution-plan { padding: 16px; }
  .day-fields.two-columns { grid-template-columns: 1fr; }
  .cycle-note { grid-template-columns: 1fr; }
  .cycle-chart-trigger { grid-column: auto; }
  .cycle-chart-dialog { width: calc(100vw - 16px); }
  .cycle-chart-dialog-panel { padding: 8px; }
  .cycle-chart-close { top: 14px; right: 14px; }
  .return-options { grid-template-columns: 1fr; }
  .scenario-heading { grid-template-columns: 1fr; }
  .scenario-heading dl { display: grid; grid-template-columns: repeat(2, 1fr); }
  .scenario-heading dl div { min-width: 0; }
  .scenario-choices { grid-template-columns: 1fr; }
  .scenario-choices span { min-height: 0; }
  .commission-split-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .result-passport > header { grid-template-columns: 1fr; gap: 8px; }
  .result-passport header p { text-align: left; }
  .passport-card { padding: 14px; }
  .passport-list div { grid-template-columns: 105px minmax(0, 1fr); }
  .strategy-map > header { align-items: flex-start; }
  .strategy-total strong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 180ms; animation-timing-function: ease-out; }
