/* Retirement-only additions to calculator-common.css. Header uses net-worth markup. */
body.retirement-page { background: #fff; color: #30343b; }
/* An opaque strip keeps scrolling cards clear of the floating header and its gap. */
.retirement-page header nav.navbar::before { content: ''; position: absolute; inset: -20px 0 -16px; background: #fff; z-index: -1; pointer-events: none; }
/* Slightly wider than net worth, with matching edges for the hero, toolbar and cards. */
.retirement-page :is(.hero, .hero-divider, .calculator) { max-width: 1440px; width: 100%; padding-inline: 5%; }
.retirement-page .hero { padding-top: 165px; padding-bottom: 78px; min-height: 485px; }
.retirement-page .hero h1 { color: #0c153e; line-height: 1.17; font-size: clamp(36px, 4vw, 56px); font-weight: 650; letter-spacing: -2px; max-width: 650px; }
.retirement-page .hero p { font-size: 19px; color: #83858a; max-width: 590px; }
.retirement-art { width: clamp(200px, 28vw, 390px); height: 275px; display: flex; align-items: center; justify-content: center; }
.retirement-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.retirement-page .hero-divider { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 40px; overflow: visible; }
.retirement-toolbar { grid-column: 2; display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; min-width: 0; padding: 8px 0 20px; }
.retirement-toolbar .currency-bar { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; max-width: 100%; margin: 0; color: #6d7480; font-size: 13px; }
.retirement-toolbar .currency-bar > span { flex-shrink: 0; }
.rp-currency-picker { position: relative; flex: 0 1 auto; min-width: 0; max-width: 240px; }
.retirement-toolbar .currency-btn { display: flex; align-items: center; justify-content: space-between; gap: 5px; width: auto; max-width: 100%; min-height: 30px; min-width: 0; border: 1px solid #e0e4ea; border-radius: 7px; padding: 5px 10px; font: inherit; font-size: 13px; font-weight: 600; color: #21262f; background: #fff; text-align: start; }
.retirement-toolbar .currency-btn > span { min-width: 0; overflow-wrap: anywhere; }
.retirement-toolbar .currency-btn svg { flex-shrink: 0; }
/* Match net worth's anchored menu: always below the trigger, never a native popup. */
.retirement-toolbar .currency-dropdown { position: absolute; top: calc(100% + 4px); inset-inline-end: 0; z-index: 999; width: max-content; min-width: max(100%, 240px); max-width: min(420px, calc(100vw - 40px)); overflow: hidden; padding: 0; border: 1px solid #e0e4ea; border-radius: 9px; background: #fff; box-shadow: 0 6px 20px #0000001a; }
.rp-currency-search { padding: 10px; border-bottom: 1px solid #e0e4ea; }
.retirement-page .rp-currency-search input { display: block; width: 100%; min-width: 0; min-height: 38px; margin: 0; padding: 8px 10px; border: 1px solid #dce1e8; border-radius: 6px; background: white; color: #21262f; font: inherit; font-size: 14px; }
.rp-currency-options { max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
.rp-currency-empty { margin: 0; padding: 12px 14px; color: #6d7480; font-size: 14px; }
.retirement-toolbar .currency-option { display: block; width: 100%; min-height: 38px; padding: 8px 14px; border: 0; background: white; font: inherit; font-size: 14px; color: #21262f; text-align: start; white-space: normal; }
.retirement-toolbar .currency-option:is(:hover, :focus-visible) { background: #f4f6f9; }
.retirement-toolbar .currency-option.selected { color: #2389dc; font-weight: 700; }
.retirement-page button { cursor: pointer; }
.rp-text-button { flex-shrink: 0; border: 0; background: none; color: #1889e8; font-size: 15px; padding: 8px 0; }
.retirement-page .calculator { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 40px; margin-top: 8px; }
.retirement-page .input-column { gap: 23px; position: relative; }
.retirement-page .section-card { padding: 0; border-radius: 12px; border-color: #f0f1f4; box-shadow: 0 3px 24px #17203304; }
.retirement-page .section-header { padding: 17px 15px; align-items: flex-start; gap: 10px; background: linear-gradient(105deg, var(--rp-tint), white); }
.retirement-page .section-header h2, .retirement-page .rp-suggestions h2 { font-size: 21px; font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: -.3px; color: #30343b; }
.retirement-page .section-header p { font-size: 15px; color: #85878c; font-weight: 400; line-height: 1.45; margin: 3px 0 0; }
.retirement-page .section-body { padding: 20px; }
.rp-timeline { --rp-tint: #edf8ff; }
.rp-spending { --rp-tint: #fff1dd; }
.rp-expenses { --rp-tint: #f3ecff; }
.rp-assets { --rp-tint: #e3f5ed; }
.rp-contributions { --rp-tint: #f5e4e7; }
.rp-section-icon { width: 32px; height: 32px; display: block; object-fit: contain; flex-shrink: 0; }
.rp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rp-field { min-width: 0; display: block; margin: 0; font-size: 14px; line-height: 1.5; font-weight: 400; color: #595e68; }
.rp-field > span:first-child { display: block; margin-bottom: 5px; }
.rp-field small { display: block; font-size: 13px; color: #6f7480; margin-top: 6px; }
.rp-age-field { padding: 10px; background: #f5f6f8; border-radius: 10px; }
.rp-age-field > span:first-child { font-size: 11px; text-transform: uppercase; font-weight: 600; letter-spacing: .5px; }
.rp-age-control { display: flex; align-items: center; gap: 3px; justify-content: space-between; }
.rp-age-control button { width: 28px; min-height: 32px; border-radius: 6px; border: none; background: #fff; color: #30343b; flex-shrink: 0; font-size: 17px; }
.retirement-page .rp-age-control input { flex: 1 1 0; padding: 0; width: 0; min-width: 0; border: 0; background: transparent; color: #30343b; text-align: center; font-size: 30px; font-weight: 600; height: 38px; margin: 0; }
.retirement-page #retirement { color: #1997f2; }
.rp-age-control small { flex: 0 0 auto; white-space: nowrap; word-break: normal; overflow-wrap: normal; margin: 0 2px 0 0; font-size: 12px; line-height: 1; }
.rp-age-control input::-webkit-inner-spin-button { appearance: none; }
.rp-years { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0 20px; font-size: 14px; }
.rp-years > span::before { content: ''; display: inline-block; background: #249cf2; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 5px; }
.rp-years > span:last-child::before { background: #ffbb54; }
.rp-track-box { background: #f8f9fb; padding: 13px; border-radius: 10px; }
.rp-track-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.rp-track-labels span:nth-child(2) { color: #239cf2; text-align: center; }
.rp-track-labels span[data-out="depletes"] { color: #ef454d; }
.rp-track-labels span:last-child { text-align: end; }
.rp-track { height: 10px; display: flex; border-radius: 10px; overflow: hidden; background: #eef0f3; }
.rp-track > span { display: block; min-width: 0; transition: width .2s; }
.rp-blue { background: #269cf1; }
.rp-gold { background: #ffbc58; }
.rp-dark-blue { background: #0878bd; }
.rp-track-caption { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #717782; margin-top: 8px; }
.rp-money-field { display: flex; align-items: center; background: #f3f5f8; border-radius: 9px; padding: 0 10px; gap: 8px; min-height: 40px; }
.rp-money-field:focus-within { outline: none; box-shadow: none; }
.rp-money-field input { width: 100%; min-width: 0; padding: 8px 0; height: 40px; margin: 0; border: 0; background: transparent; color: #30343b; font-size: 16px; font-weight: 500; box-shadow: none; }
.rp-money-field input:focus { outline: none; }
.rp-money-field > span { font-size: 13px; color: #6e7480; flex-shrink: 0; }
.rp-money-field .rp-unit { margin-inline-start: auto; white-space: nowrap; }
.rp-spending .rp-field { margin-bottom: 25px; }
.rp-spending .rp-field > .rp-field-heading { font-size: 16px; font-weight: 600; color: #30343b; display: flex; justify-content: space-between; gap: 10px; }
.rp-field-heading label { margin: 0; font: inherit; color: inherit; }
.rp-info { cursor: default; flex-shrink: 0; font-size: 12px; color: #8d939d; border: 0; background: none; }
.rp-spending .rp-field small { font-size: 14px; margin: -2px 0 6px; }
.rp-housing { border: 0; padding: 0; margin: 0; min-width: 0; }
.rp-housing legend { float: none; font-size: 15px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; }
.rp-housing-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.rp-housing-option { position: relative; display: block; border: 1px solid #eef0f4; border-radius: 10px; padding: 12px; cursor: pointer; background: #fdfdfe; min-width: 0; margin: 0; }
.rp-housing-option:has(input:checked) { border-color: #249cf2; background: #f2faff; }
.rp-housing-option input { position: absolute; right: 10px; top: 12px; width: 15px; height: 15px; margin: 0; accent-color: #249cf2; }
.rp-housing-icon { display: block; width: 24px; height: 24px; object-fit: contain; margin-bottom: 10px; }
.rp-housing-option .rp-housing-active { display: none; }
.rp-housing-option:has(input:checked) .rp-housing-active { display: block; }
.rp-housing-option:has(input:checked) .rp-housing-inactive { display: none; }
.rp-housing-option strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; overflow-wrap: anywhere; }
.rp-housing-option small { display: block; font-size: 13px; color: #7c818b; line-height: 1.4; overflow-wrap: anywhere; }
.rp-subheading { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.rp-estimate { display: flex; align-items: center; gap: 12px; background: #f5faff; padding: 15px; border-radius: 10px; margin-top: 15px; }
.rp-currency-disc { display: grid; place-items: center; border-radius: 50%; width: 32px; height: 32px; background: #239cf2; color: white; flex-shrink: 0; font-size: 16px; }
.rp-estimate-copy { flex: 1; min-width: 0; }
.rp-estimate-copy strong { display: block; font-size: 15px; line-height: 1.45; font-weight: 600; }
.rp-estimate-copy small { display: block; color: #80858e; font-size: 12px; line-height: 1.4; margin-top: 3px; }
.rp-estimate-value { text-align: end; flex-shrink: 0; max-width: 48%; }
.rp-estimate-value strong { font-size: clamp(18px, 1.9vw, 26px); color: #239cf2; line-height: 1.3; overflow-wrap: anywhere; }
.rp-estimate-input { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 3px 7px; border: 1px solid #cce7fb; border-radius: 7px; background: white; color: #239cf2; font-size: clamp(18px, 1.9vw, 26px); font-weight: 600; }
.retirement-page .rp-estimate-input input { width: 9ch; max-width: 100%; min-width: 0; height: auto; padding: 2px 0; margin: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; line-height: 1.3; text-align: end; }
.rp-estimate-input:focus-within { outline: 2px solid #168be4; outline-offset: 2px; }
.rp-estimate-value small { display: block; font-size: 12px; color: #6f7480; }
.rp-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; color: #8a919c; margin: 14px 0 0; }
.rp-total strong { color: #30343b; font-size: 19px; text-align: end; overflow-wrap: anywhere; }
.rp-holdings { background: #f8f9fb; padding: 16px 13px; border-radius: 10px; margin-top: 25px; }
.rp-holdings .rp-total { color: #30343b; margin: 0 0 12px; font-weight: 600; }
.rp-holdings .rp-total strong { font-size: 25px; }
.rp-allocation-legend { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 10px; font-size: 12px; color: #787d87; }
.rp-allocation-legend > span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-inline-end: 4px; background: #0878bd; }
.rp-allocation-legend > span:nth-child(2)::before { background: #269cf1; }
.rp-allocation-legend > span:nth-child(3)::before { background: #ffbc58; }
.rp-toggle-row { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 18px; font-size: 15px; font-weight: 600; }
.rp-segment { display: inline-flex; background: #f3f4f7; border-radius: 20px; padding: 3px; flex-shrink: 0; }
.rp-segment button { border: 0; background: none; padding: 6px 11px; border-radius: 20px; font-size: 13px; color: #767d88; line-height: 1.4; }
.rp-segment button[aria-pressed="true"] { color: white; background: #239cf2; box-shadow: 0 1px 5px #239cf230; }
.rp-contribution-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; }
.rp-contributions fieldset { border: 0; min-width: 0; padding: 0; margin: 0; }
.rp-contributions fieldset:disabled { opacity: .45; }
.rp-future { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #f8fafb; padding: 15px; border-radius: 10px; margin-top: 18px; font-size: 14px; }
.rp-future i { color: #62ad37; margin-inline-end: 6px; }
.rp-future strong { color: #549a25; font-size: 25px; text-align: end; overflow-wrap: anywhere; }
.retirement-page .result-column { position: sticky; top: var(--rp-header-clearance, 128px); align-self: start; display: flex; flex-direction: column; gap: 25px; min-width: 0; }
.rp-results { border: 1px solid #f0f1f4; border-radius: 14px; padding: 22px; background: white; box-shadow: 0 3px 24px #17203304; }
.rp-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.rp-results-heading h2 { font-size: 15px; font-weight: 500; text-transform: uppercase; margin: 0; line-height: 1.5; }
.rp-results-heading .rp-segment { flex-wrap: wrap; max-width: 100%; }
.rp-results-heading .rp-segment button { font-size: 12px; padding: 6px 9px; }
.rp-outcome { padding: 17px 15px; border-radius: 10px; background: #fff5f5; color: #ef454d; margin-bottom: 16px; }
.rp-outcome.is-surplus { background: #eff9e8; color: #559a25; }
.rp-outcome-label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-bottom: 6px; }
.rp-outcome h3 { color: #30343b; font-size: 24px; font-weight: 650; letter-spacing: -.4px; margin: 0 0 8px; line-height: 1.4; }
.rp-outcome h3 strong { color: inherit; }
.rp-outcome p { margin: 0; font-size: 13px; line-height: 1.5; color: #777b85; }
.rp-survival { position: relative; background: #ef585c; height: 10px; border-radius: 10px; }
.rp-survival::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--rp-funded-percent, 0%); background: #6dbf31; border-radius: 10px 0 0 10px; }
.rp-survival.is-surplus::before { display: none; }
.rp-survival.is-surplus { background: #6dbf31; }
.rp-depletion-marker { display: block; position: relative; top: -3px; width: 2px; height: 16px; background: #e54a4e; }
.rp-track-box p { font-size: 13px; color: #727783; line-height: 1.5; text-align: center; margin: 10px 0 0; }
.rp-comparison { margin-top: 22px; }
.rp-result-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; margin-bottom: 9px; color: #737985; }
.rp-result-row strong { font-size: 18px; color: #30343b; text-align: end; overflow-wrap: anywhere; }
.rp-result-row.projected strong { color: #239cf2; }
.rp-meter { height: 7px; background: #eceef2; border-radius: 8px; margin: 0 0 17px; overflow: hidden; }
.rp-meter span { display: block; height: 100%; border-radius: inherit; background: #249cf2; }
.rp-meter.required span { background: #b7bcc4; }
.rp-gap { padding-top: 4px; margin: 0; color: #ef454d; font-weight: 600; }
.rp-gap strong { color: inherit; }
.rp-gap.is-surplus { color: #559a25; }
.rp-suggestions { padding: 0; overflow: hidden; }
.rp-suggestions .section-header { --rp-tint: #f6f8fb; }
.rp-suggestion { padding: 14px; border: 1px solid #e9ecf0; border-radius: 10px; margin-bottom: 13px; }
.rp-suggestion:last-child { margin-bottom: 0; }
.rp-suggestion-heading { display: flex; align-items: flex-start; gap: 8px; }
.rp-suggestion h3 { font-size: 15px; font-weight: 600; line-height: 1.5; margin: 0; flex: 1; }
.rp-suggestion-heading i { color: #239cf2; margin-top: 3px; }
.rp-suggestion:nth-child(2) .rp-suggestion-heading i { color: #e8ab35; }
.rp-suggestion:nth-child(3) .rp-suggestion-heading i { color: #76b53e; }
.rp-badge { font-size: 11px; padding: 2px 7px; border-radius: 3px; background: #f0f2f5; color: #878c95; }
.rp-badge.green { background: #e9f8de; color: #639642; }
.rp-suggestion p { font-size: 13px; color: #7c828d; margin: 8px 0 6px; line-height: 1.5; }
.rp-suggestion button { border: 0; padding: 4px 0; background: none; color: #239cf2; font-size: 13px; font-weight: 600; text-align: start; }
.rp-suggestion { transition: border-color .15s, background-color .15s, box-shadow .15s; }
.rp-suggestion.is-applied { border-color: #239cf2; background: #f2f9ff; box-shadow: 0 0 0 1px #239cf2; }
.rp-suggestion.is-applied button::before { content: "\2713\00a0"; }
.rp-suggestion button:disabled { color: #b5bac2; cursor: not-allowed; }
.rp-feedback { display: grid; grid-template-columns: minmax(0, 1fr) 48px; column-gap: 24px; row-gap: 16px; width: 100%; max-width: 100%; box-sizing: border-box; align-self: stretch; min-width: 0; border-top: 1px solid #f0f2f5; margin: 18px 0 0; padding: 32px 0 0; }
.rp-feedback h2 { grid-column: 1; grid-row: 1; font-size: 21px; font-weight: 600; letter-spacing: -.5px; line-height: 1.4; align-self: center; margin: 0; }
.rp-feedback-actions { grid-column: 1; grid-row: 2; display: flex; gap: 12px; flex-wrap: wrap; }
.rp-feedback-actions button { border: 0; border-radius: 25px; padding: 10px 16px; color: #858b94; background: white; font-size: 14px; }
.rp-feedback-actions button[aria-pressed="true"] { color: #239cf2; background: #e9f6ff; }
.rp-feedback-actions button[data-feedback="notHelpful"][aria-pressed="true"] { color: #c82e3e; background: #ffeded; }
.rp-feedback-actions i { font-size: 20px; margin-inline-end: 7px; }
.rp-share { grid-column: 2; grid-row: 1; align-self: center; display: grid; place-items: center; padding: 0; line-height: 1; border: 1px solid #f0f2f5; border-radius: 50%; width: 48px; height: 48px; background: white; color: #239cf2; box-shadow: 0 2px 6px #1720330a; }
.rp-share img { display: block; width: 20px; height: 20px; object-fit: contain; }
.rp-feedback-form { grid-column: 1 / -1; margin-top: 18px; min-width: 0; }
.rp-feedback-form label { display: block; margin-bottom: 8px; font-size: 14px; color: #595e68; }
.retirement-page .rp-feedback-form textarea { display: block; width: 100%; min-height: 110px; box-sizing: border-box; padding: 12px; border: 1px solid #dce1e8; border-radius: 9px; font: inherit; font-size: 14px; color: #30343b; background: white; resize: vertical; }
.rp-feedback-form textarea:focus-visible { outline: 2px solid #168be4; outline-offset: 2px; }
.rp-feedback-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.rp-feedback-form-actions button { border: 1px solid #dce1e8; border-radius: 7px; min-height: 40px; padding: 8px 16px; background: white; font: inherit; font-size: 14px; color: #595e68; }
.rp-feedback-form-actions button[type="submit"] { background: #239cf2; border-color: #239cf2; color: white; }
.rp-feedback-form-actions button:disabled { opacity: .5; cursor: not-allowed; }
.rp-feedback .rp-status { grid-column: 1 / -1; }
.rp-status { font-size: 12px; color: #717985; margin-top: 14px; min-height: 18px; }
.rp-validation { color: #cb3340; background: #fff4f4; border: 1px solid #ffd8db; border-radius: 9px; padding: 14px; font-size: 13px; grid-column: 1/-1; }
.rp-validation:empty { display: none; }
.retirement-page .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; }
.rp-invalid :is(.rp-track, .rp-survival, .rp-meter) { visibility: hidden; }
.retirement-page [hidden] { display: none !important; }
.retirement-page :is(button, select, input[type="radio"]):focus-visible { outline: 2px solid #168be4; outline-offset: 3px; }
.retirement-page :is(.rp-age-control, .rp-money-field) input:is(:focus, :focus-visible) { outline: none; border: 0; box-shadow: none; caret-color: #30343b; }
.retirement-page input[aria-invalid="true"] { outline: 2px solid #e85d63; }
@media (max-width: 1199px) {
  .rp-grid { gap: 8px; }
  .rp-age-field { padding: 8px; }
  .rp-age-control button { width: 24px; }
  .rp-estimate { padding: 12px; gap: 8px; }
  .rp-results { padding: 18px; }
  .rp-suggestions { padding: 0; }
}
@media (max-width: 1000px) {
  .retirement-page .calculator { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .retirement-page .hero-divider { grid-template-columns: minmax(0, 1fr); }
  .retirement-toolbar { grid-column: 1; }
  .retirement-page .result-column { position: static; }
  .retirement-page .hero { padding-top: 145px; padding-bottom: 35px; min-height: 340px; gap: 20px; }
  .retirement-page .hero h1 { font-size: 42px; }
  .retirement-art { height: 210px; }
  .rp-estimate-value strong { font-size: 24px; }
}
@media (max-width: 650px) {
  .retirement-page .hero { display: block; padding: 130px 20px 25px; min-height: auto; }
  .retirement-page .hero h1 { font-size: 38px; letter-spacing: -1.4px; }
  .retirement-page .hero p { font-size: 16px; }
  .retirement-art { display: none; }
  .retirement-page :is(.calculator, .hero-divider) { padding-inline: 15px; }
  .retirement-page .calculator { margin-bottom: 40px; }
  .retirement-toolbar { gap: 10px; }
  .retirement-page .section-header { padding: 15px 12px; }
  .retirement-page .section-header h2 { font-size: 19px; }
  .retirement-page .section-body { padding: 16px 12px; }
  .rp-grid { gap: 7px; }
  .rp-age-field { padding: 8px 5px; }
  .rp-age-field > span:first-child { font-size: 9px; min-height: 28px; letter-spacing: 0; }
  .rp-age-control { display: grid; grid-template-columns: 25px minmax(0, 1fr) 25px; gap: 3px 0; }
  .rp-age-control button { width: 25px; min-height: 34px; }
  .rp-age-control button:first-child { grid-column: 1; grid-row: 1; }
  .rp-age-control button:last-child { grid-column: 3; grid-row: 1; }
  .retirement-page .rp-age-control input { grid-column: 2; grid-row: 1; font-size: 24px; width: 100%; }
  .rp-age-control small { grid-column: 1 / -1; grid-row: 2; display: block; margin: 0; text-align: center; font-size: 11px; }
  .rp-years { font-size: 13px; gap: 10px; }
  .rp-housing-options { gap: 7px; }
  .rp-housing-option { padding: 10px 8px; }
  .rp-housing-option strong { font-size: 13px; }
  .rp-housing-option small { font-size: 12px; }
  .rp-assumption-grid, .rp-asset-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .rp-estimate { flex-wrap: wrap; }
  .rp-estimate-copy { flex-basis: calc(100% - 48px); }
  .rp-estimate-value { margin-inline-start: 40px; max-width: calc(100% - 40px); text-align: start; }
  .rp-estimate-input { font-size: 24px; }
  .rp-feedback { column-gap: 12px; }
  .rp-feedback-actions { gap: 6px; }
  .rp-feedback-actions button { padding: 10px 12px; }
  .rp-estimate-value strong { font-size: 24px; }
  .rp-toggle-row { align-items: flex-start; }
  .rp-contribution-grid { gap: 14px 10px; }
  .rp-money-field { gap: 5px; padding: 0 8px; }
  .rp-money-field input { font-size: 16px; }
  .rp-money-field > span { font-size: 12px; }
  .rp-future { flex-wrap: wrap; }
  .rp-future strong { font-size: 25px; }
  .rp-results-heading { gap: 14px; }
  .rp-outcome h3 { font-size: 21px; }
  .rp-result-row strong { font-size: 15px; }
}
@media (max-width: 420px) {
  .rp-timeline .rp-grid { grid-template-columns: minmax(0, 1fr); }
  .rp-age-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; }
  .rp-age-field > span:first-child { min-height: 0; max-width: 45%; margin: 0; font-size: 11px; overflow-wrap: anywhere; }
  .rp-age-control { display: flex; flex: 0 0 150px; gap: 4px; }
  .rp-age-control button { width: 26px; }
  .retirement-page .rp-age-control input { flex: 1 1 0; width: 0; font-size: 26px; }
  .rp-age-control small { flex: 0 0 auto; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .retirement-page * { transition: none !important; } }
