:root {
  color-scheme: light;
  --ink: #182235;
  --muted: #5c6678;
  --line: #d9e2f0;
  --paper: #fbfdff;
  --panel: #ffffff;
  --accent: #2f63e6;
  --accent-strong: #1f49b8;
  --gold: #f4b740;
  --green: #22c45e;
  --green-strong: #149844;
  --red: #b84b42;
  --blue-soft: #edf3ff;
  --gold-soft: #fff7e5;
  --green-soft: #e9f9ef;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f4f8ff 0%, #fbfdff 42%, #f2fbf5 100%);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  padding: 0 18px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(47, 99, 230, 0.22);
}

button:hover,
button:focus-visible {
  background: var(--accent-strong);
  outline: 3px solid rgba(47, 99, 230, 0.22);
}

.secondary-button {
  background: var(--blue-soft);
  color: var(--accent-strong);
  box-shadow: none;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: #dfe9ff;
}

.app-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: end;
  padding: 38px clamp(18px, 4vw, 58px) 22px;
  border-bottom: 1px solid var(--line);
}

.brand-logo {
  display: block;
  width: min(560px, 88vw);
  height: auto;
  margin-bottom: 8px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 1.6vw, 1.65rem);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.4rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.header-panel {
  display: grid;
  justify-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(31, 73, 184, 0.12);
  text-align: center;
}

.header-panel span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 900;
}

.header-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--accent-strong);
  font-size: 3rem;
  line-height: 1;
}

.header-panel small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
}

main {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 38px 0 14px;
  background: rgba(251, 252, 253, 0.94);
  backdrop-filter: blur(10px);
}

.start-hint {
  position: absolute;
  top: 5px;
  left: 45px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 900;
  animation: hintBounce 1200ms ease-in-out infinite;
  pointer-events: none;
}

.start-hint b {
  order: 1;
  color: var(--accent-strong);
  font-size: 1.25rem;
  line-height: 1;
}

.start-hint span {
  order: 2;
}

body[data-started="true"] .start-hint {
  display: none;
}

.example-banner {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #e1b45d;
  border-radius: 8px;
  background: var(--gold-soft);
  color: #62420d;
}

.example-banner strong {
  flex: 0 0 auto;
}

.example-banner span {
  color: #6f4c11;
}

body[data-example-data="true"] .example-banner {
  display: flex;
}

.tab {
  flex: 0 0 auto;
  min-height: 44px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  white-space: nowrap;
}

.tab.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.tab[aria-disabled="true"] {
  opacity: 0.45;
  background: #edf2f6;
  color: var(--muted);
  cursor: not-allowed;
}

.tab[aria-disabled="true"]:hover,
.tab[aria-disabled="true"]:focus-visible {
  background: #edf2f6;
  outline: 3px solid rgba(111, 127, 136, 0.16);
}

.advanced-tab {
  margin-left: auto;
  color: var(--muted);
  border-style: dashed;
}

.advanced-tab::before {
  content: "";
}

.advanced-tab.active {
  border-style: solid;
}

.section {
  display: none;
  padding: 22px 0 44px;
}

.section.active {
  display: block;
}

.section-title {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-helper {
  max-width: 640px;
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.4;
}

.title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.mode-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mode-button {
  min-height: 40px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.mode-button.active {
  background: var(--ink);
  color: #fff;
}

.example-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #b8caef;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--accent-strong);
  box-shadow: none;
  font-weight: 900;
}

.example-button:hover,
.example-button:focus-visible {
  background: #dfeaff;
  color: var(--accent-strong);
}

body[data-example-data="true"] .example-button {
  border-color: #d9b1a9;
  background: #fff0ee;
  color: var(--red);
}

.progress-card {
  position: relative;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.progress-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.progress-copy strong {
  font-size: 1.7rem;
  line-height: 1;
}

.progress-track {
  height: 16px;
  border-radius: 999px;
  background: #e4eaee;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--green));
  transition: width 420ms ease;
}

.progress-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.progress-card.complete {
  border-color: #9fcdb7;
  background: linear-gradient(180deg, #ffffff 0%, var(--green-soft) 100%);
  animation: celebratePulse 700ms ease;
}

.progress-card.complete::before,
.progress-card.complete::after {
  position: absolute;
  top: 12px;
  color: var(--gold);
  content: "★";
  font-size: 1.4rem;
  opacity: 0;
  animation: sparkle 900ms ease;
}

.progress-card.complete::before {
  right: 88px;
}

.progress-card.complete::after {
  right: 38px;
  animation-delay: 120ms;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

fieldset,
.metric,
.allocation-panel,
.chart-shell,
.missing-box,
.plan-output,
.insight,
.risk-empty,
.risk-score-card,
.risk-story,
.allocation-bars-card,
.question-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

fieldset {
  display: grid;
  gap: 14px;
  align-content: start;
  margin: 0;
  padding: 18px;
}

.spouse-fields {
  display: grid;
  gap: 14px;
}

.spending-itemized {
  display: grid;
  gap: 14px;
}

.planned-spend-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
}

.planned-spend-box p {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.retirement-job-box {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
}

.retirement-job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.retirement-job-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.retirement-job-fields {
  display: grid;
  gap: 12px;
}

.custom-expenses {
  display: grid;
  gap: 10px;
}

.custom-expense-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px) 44px;
  gap: 8px;
  align-items: end;
}

.icon-button {
  min-height: 44px;
  width: 44px;
  padding: 0;
  border: 1px solid #d9b1a9;
  background: #fff0ee;
  color: var(--red);
  box-shadow: none;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: #ffe4e0;
  color: #8d2d25;
}

.spending-summary {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.spending-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.35rem;
}

.input-fact {
  padding: 14px;
  border: 1px solid rgba(47, 99, 230, 0.18);
  border-radius: 8px;
  background: var(--blue-soft);
}

.input-fact span {
  display: block;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.input-fact p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.ss-estimator {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
}

.ss-estimator p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.ss-estimate-result {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segment-button {
  min-height: 40px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.segment-button.active {
  background: var(--accent);
  color: #fff;
}

body[data-ss-mode="actual"] .ss-estimator {
  display: none;
}

body:not([data-currently-taking-ss="true"]) .ss-current-fields,
body:not([data-spouse-currently-taking-ss="true"]) .spouse-ss-current-fields,
body[data-currently-taking-ss="true"] .ss-planning-fields,
body[data-currently-taking-ss="true"] .ss-mode-control,
body[data-currently-taking-ss="true"] .ss-estimator:not(.spouse-ss-estimator),
body[data-spouse-currently-taking-ss="true"] .spouse-ss-planning-fields,
body[data-all-ss-current="true"] .ss-shared-planning-field {
  display: none;
}

body[data-spending-method="annual"] .spending-monthly,
body[data-spending-method="annual"] .spending-itemized,
body[data-spending-method="monthly"] .spending-annual,
body[data-spending-method="monthly"] .spending-itemized,
body[data-spending-method="itemized"] .spending-annual,
body[data-spending-method="itemized"] .spending-monthly {
  display: none;
}

body:not([data-pension-cola="fixed"]) .pension-cola-fixed {
  display: none;
}

body:not([data-retirement-job="true"]) .retirement-job-fields {
  display: none;
}

body:not([data-advisor-status="yes"]) .advisor-fee-fields,
body:not([data-advisor-fee-known="known"]) .advisor-fee-percent {
  display: none;
}

body[data-marital-status="single"] .spouse-fields,
body[data-planning-mode="full"] .quick-only,
body[data-planning-mode="quick"] .advanced-only {
  display: none;
}

legend {
  padding: 0 7px;
  font-weight: 850;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.help {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  flex: 0 0 22px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  cursor: help;
  user-select: none;
}

.help::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 10;
  width: min(260px, 78vw);
  padding: 10px 12px;
  border: 1px solid #cbd5db;
  border-radius: 8px;
  background: #172026;
  color: #fff;
  box-shadow: 0 14px 28px rgba(23, 32, 38, 0.18);
  content: attr(data-tip);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.help::before {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 11;
  width: 12px;
  height: 12px;
  background: #172026;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) rotate(45deg);
  transition: opacity 140ms ease;
}

.help:hover::after,
.help:focus-visible::after,
.help:hover::before,
.help:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.help:hover::before,
.help:focus-visible::before {
  transform: translateX(-50%) rotate(45deg);
}

.help.help-below::after {
  left: auto;
  right: 0;
  bottom: auto;
  top: calc(100% + 10px);
  transform: translateY(6px);
}

.help.help-below::before {
  left: 50%;
  bottom: auto;
  top: calc(100% + 4px);
}

.help.help-below:hover::after,
.help.help-below:focus-visible::after {
  transform: translateY(0);
}

.help:focus-visible {
  outline: 3px solid rgba(47, 99, 230, 0.22);
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5db;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 12px;
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(47, 99, 230, 0.18);
}

.account-builder,
.asset-builder,
.life-insurance-builder {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
}

.optional-section-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.optional-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.optional-section-head .toggle-control {
  flex: 0 0 auto;
}

body:not([data-assets-liabilities-enabled="true"]) .assets-liabilities-fieldset .asset-builder {
  display: none;
}

body:not([data-life-insurance-enabled="true"]) .life-insurance-fieldset .life-insurance-builder {
  display: none;
}

.account-builder-head {
  display: block;
}

.account-builder-head p,
.statement-result,
.actual-allocation p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-entry-grid,
.account-allocation-inputs,
.asset-entry-grid,
.liability-entry-grid,
.life-insurance-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.asset-entry-grid,
.liability-entry-grid,
.life-insurance-entry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not([data-life-policy-type="term"]) .life-term-field {
  display: none;
}

.asset-loan-toggle .toggle-control {
  justify-content: space-between;
}

body:not([data-asset-has-loan="true"]) .asset-loan-field {
  display: none;
}

.account-allocation-inputs {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-builder[data-allocation-known="known"] .account-allocation-inputs {
  display: grid;
}

.account-list,
.account-totals,
.asset-list,
.asset-totals,
.liability-list,
.liability-totals,
.life-policy-list,
.actual-allocation {
  display: grid;
  gap: 8px;
}

.account-row,
.asset-row,
.liability-row,
.life-policy-row,
.account-total-row,
.asset-total-row,
.liability-total-row,
.actual-allocation-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.25fr) minmax(72px, 0.65fr) minmax(92px, 0.75fr) minmax(96px, 0.8fr) 72px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-row.editing,
.asset-row.editing,
.liability-row.editing {
  grid-template-columns: minmax(150px, 1.25fr) minmax(72px, 0.65fr) minmax(92px, 0.75fr) minmax(104px, 0.9fr) 38px;
  background: var(--gold-soft);
}

.account-row.editing label,
.asset-row.editing label,
.liability-row.editing label {
  gap: 4px;
}

.account-row.editing input,
.asset-row.editing input,
.liability-row.editing input {
  min-height: 40px;
}

.asset-row {
  grid-template-columns: 1.25fr 0.85fr 0.85fr 0.85fr 0.7fr 72px;
}

.asset-row.editing {
  grid-template-columns: 1.15fr 0.85fr 0.85fr 0.85fr 0.72fr 38px;
}

.liability-divider {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 32, 38, 0.12);
}

.liability-divider p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.liability-row {
  grid-template-columns: 1.2fr 0.85fr 0.85fr 0.75fr 72px;
}

.liability-row.editing {
  grid-template-columns: 1.15fr 0.85fr 0.85fr 0.75fr 38px;
}

.life-policy-row {
  grid-template-columns: 1.2fr 0.85fr 1fr 44px;
}

.account-total-row,
.asset-total-row,
.liability-total-row,
.actual-allocation-row {
  grid-template-columns: 1fr auto;
  font-weight: 900;
}

.account-row span,
.account-total-row span,
.asset-row span,
.asset-total-row span,
.liability-row span,
.liability-total-row span,
.life-policy-row span,
.actual-allocation-row span {
  color: var(--muted);
}

.account-row strong small,
.asset-row strong small,
.liability-row strong small,
.life-policy-row strong small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.account-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.account-actions .icon-button {
  flex: 0 0 auto;
  width: 30px;
  min-height: 30px;
  height: 30px;
  font-size: 0.9rem;
}

.edit-account,
.edit-asset,
.edit-liability {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-height: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--accent-strong);
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: none;
}

.edit-account:hover,
.edit-account:focus-visible,
.edit-asset:hover,
.edit-asset:focus-visible,
.edit-liability:hover,
.edit-liability:focus-visible {
  background: #dfe9ff;
  outline: 3px solid rgba(47, 99, 230, 0.18);
}

.save-account-edit,
.save-asset-edit,
.save-liability-edit {
  border-color: var(--line);
  background: #eef2f7;
  color: var(--muted);
}

.save-account-edit:hover,
.save-account-edit:focus-visible,
.save-asset-edit:hover,
.save-asset-edit:focus-visible,
.save-liability-edit:hover,
.save-liability-edit:focus-visible {
  border-color: rgba(34, 196, 94, 0.55);
  background: var(--green);
  color: #fff;
  outline: 3px solid rgba(34, 196, 94, 0.18);
}

.animated-total-card {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, var(--blue-soft));
}

.animated-total-card::after {
  position: absolute;
  inset: auto -30px -42px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(34, 196, 94, 0.14);
  content: "";
}

.animated-total-card span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.animated-total-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
}

.animated-total-card.pulse {
  animation: totalPop 420ms ease;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.metric {
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(1.55rem, 2.5vw, 2.6rem);
  line-height: 1;
}

.metric p,
.allocation-panel p,
footer p {
  color: var(--muted);
  font-size: 0.92rem;
}

.chart-shell {
  padding: 14px;
  overflow: hidden;
}

.chart-shell.compact {
  margin-bottom: 14px;
}

.forecast-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.forecast-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.yearly-detail-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.forecast-panel.wide {
  grid-column: 1 / -1;
}

.forecast-panel h3 {
  margin-bottom: 12px;
}

.what-if-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.what-if-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.what-if-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.what-if-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#applyWhatIf {
  display: none;
  min-height: 48px;
  border: 1px solid #d99021;
  background: var(--gold);
  color: #172026;
  box-shadow: 0 10px 24px rgba(244, 183, 64, 0.28);
  font-weight: 950;
}

#applyWhatIf:hover,
#applyWhatIf:focus-visible {
  background: #d99021;
  color: #172026;
}

body[data-what-if="true"] #applyWhatIf {
  display: inline-flex;
  align-items: center;
}

.what-if-commit {
  display: none;
  justify-content: flex-end;
  margin-top: 16px;
}

body[data-what-if="true"] .what-if-commit {
  display: flex;
}

.toggle-control {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.toggle-control input {
  width: 52px;
  height: 30px;
  min-height: 30px;
  appearance: none;
  display: block;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #dfe7ef;
  cursor: pointer;
  padding: 0;
  transition: background 160ms ease;
}

.toggle-control input::before {
  display: block;
  width: 22px;
  height: 22px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.toggle-control input:checked {
  background: var(--green);
}

.toggle-control input:checked::before {
  transform: translateX(21px);
}

.what-if-controls {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin-top: 16px;
}

body[data-what-if="true"] .what-if-controls {
  display: grid;
}

.what-if-controls > label,
.what-if-combo-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
}

.what-if-combo-card {
  display: grid;
  gap: 14px;
}

.what-if-combo-card label {
  display: block;
}

.what-if-controls small {
  display: block;
  margin: 4px 0 8px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.3;
}

.what-if-switch-card {
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.what-if-switch-card .toggle-control {
  justify-content: space-between;
}

.social-slider-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.social-slider-panel h3 {
  margin-bottom: 4px;
}

.social-slider-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.social-slider-readout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: end;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
}

.social-slider-readout span {
  color: var(--muted);
  font-weight: 900;
}

.social-slider-readout strong {
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
}

.social-slider-readout small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.social-benefit-toggle {
  max-width: 520px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.social-input-reference {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr);
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(47, 99, 230, 0.22);
  border-radius: 8px;
  background: var(--blue-soft);
}

.social-input-reference span {
  display: block;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-input-reference strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.2rem;
}

.social-input-reference p {
  margin: 5px 0 0;
  color: var(--muted);
}

.social-input-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.social-input-chip {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.social-input-chip small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.social-input-chip b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1rem;
}

.lifetime-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lifetime-value-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lifetime-value-card.best {
  border-color: rgba(34, 196, 94, 0.45);
  background: rgba(34, 196, 94, 0.08);
}

.lifetime-value-card.selected {
  border-color: rgba(244, 183, 64, 0.55);
  background: rgba(244, 183, 64, 0.12);
}

.lifetime-value-card span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.lifetime-value-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.55rem;
}

.combined-lifetime-summary {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.combined-lifetime-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.combined-lifetime-card.total {
  border-color: rgba(47, 99, 230, 0.28);
  background: var(--blue-soft);
}

.combined-lifetime-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.combined-lifetime-card strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.45rem;
}

.combined-benefit-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.combined-benefit-metrics b {
  display: block;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.9rem;
}

.combined-benefit-metrics small {
  display: block;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.1;
}

.combined-lifetime-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.combined-lifetime-card .combined-benefit-metrics small {
  margin: 0 0 2px;
  font-size: 0.68rem;
  line-height: 1.1;
}

body[data-social-benefit-view="combined"] .social-slider-readout,
body[data-social-benefit-view="combined"] .lifetime-value-grid,
body[data-social-benefit-view="combined"] .death-age-control,
body[data-social-benefit-view="combined"] .lifetime-chart-shell {
  display: none;
}

body[data-social-benefit-view="combined"] .combined-lifetime-summary {
  display: grid;
}

.death-age-control {
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 99, 230, 0.22);
  border-radius: 8px;
  background: var(--blue-soft);
}

.range-with-bubble {
  position: relative;
  display: block;
  padding-top: 64px;
}

.range-bubble {
  position: absolute;
  top: 22px;
  left: var(--bubble-left, 71.43%);
  transform: translateX(-50%);
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(22, 125, 92, 0.22);
}

.range-input-marker {
  position: absolute;
  top: 0;
  left: var(--input-marker-left, 71.43%);
  transform: translateX(-50%);
  min-width: 78px;
  padding: 5px 8px;
  border: 1px solid #aab4bd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  pointer-events: none;
}

.range-input-marker.hidden-near-thumb {
  opacity: 0;
}

.range-input-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -29px;
  width: 2px;
  height: 28px;
  transform: translateX(-50%);
  background: #aab4bd;
}

.range-input-marker b,
.range-input-marker em {
  display: block;
  font-style: normal;
}

.death-age-control input[type="range"] {
  width: 100%;
  min-height: 40px;
  accent-color: var(--green);
}

.social-bottom-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

body[data-social-benefit-view="combined"] .social-bottom-actions {
  display: none;
}

.apply-social-button {
  background: var(--gold);
  color: #172026;
}

.apply-social-button:hover,
.apply-social-button:focus-visible {
  background: #f7c75d;
  color: #172026;
}

.advanced-coming-soon {
  display: grid;
  gap: 10px;
  padding: 30px clamp(18px, 4vw, 42px);
  border: 1px solid rgba(47, 99, 230, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-soft), rgba(244, 183, 64, 0.14));
}

.advanced-coming-soon h2 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.advanced-coming-soon p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.coming-soon-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.coming-soon-card span {
  display: block;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coming-soon-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.18rem;
}

.coming-soon-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.hidden-tax-runtime {
  display: none;
}

.what-if-controls strong {
  color: var(--ink);
  font-size: 1.25rem;
}

input[type="range"] {
  min-height: 32px;
  padding: 0;
  accent-color: var(--accent);
}

.yearly-table-wrap {
  display: none;
  margin-top: 16px;
  overflow-x: auto;
}

body[data-yearly-details="true"] .yearly-table-wrap {
  display: block;
}

.yearly-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}

.yearly-mode-control,
.yearly-start-control,
.yearly-fee-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 10px;
  width: min(360px, 100%);
}

.yearly-start-control,
.yearly-fee-control {
  width: min(300px, 100%);
}

.yearly-mode-control .field-label,
.yearly-start-control .field-label,
.yearly-fee-control .field-label {
  grid-column: 1 / -1;
}

.yearly-fee-control .toggle-control {
  justify-self: start;
}

.yearly-mode-control select {
  grid-column: 1;
}

.yearly-mode-control .help {
  grid-column: 2;
  align-self: center;
  margin-bottom: 13px;
}

.yearly-mode-control .help::after {
  left: auto;
  right: 0;
  bottom: auto;
  top: calc(100% + 10px);
  transform: translateY(6px);
}

.yearly-mode-control .help::before {
  left: 50%;
  bottom: auto;
  top: calc(100% + 4px);
}

.yearly-mode-control .help:hover::after,
.yearly-mode-control .help:focus-visible::after {
  transform: translateY(0);
}

body:not([data-yearly-advisor-fees="true"]) .advisor-fee-col {
  display: none;
}

.yearly-table {
  width: 100%;
  min-width: 1140px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.yearly-table th,
.yearly-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.yearly-table th:first-child,
.yearly-table td:first-child {
  text-align: left;
}

.yearly-table th {
  position: sticky;
  top: 0;
  background: var(--blue-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.yearly-table tbody tr:hover {
  background: #f8fbff;
}

.breakdown-cell {
  position: relative;
  display: inline-block;
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: help;
}

.breakdown-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: grid;
  gap: 8px;
  min-width: 260px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(24, 34, 53, 0.18);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.popover-down .breakdown-popover {
  top: calc(100% + 8px);
  bottom: auto;
}

.breakdown-popover.compact {
  min-width: 230px;
}

.breakdown-popover span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.breakdown-popover span:last-child {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.breakdown-popover b {
  color: var(--muted);
  font-weight: 800;
}

.breakdown-popover em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.3;
}

.breakdown-cell:hover .breakdown-popover,
.breakdown-cell:focus-visible .breakdown-popover {
  opacity: 1;
  transform: translateY(0);
}

.forecast-list {
  display: grid;
  gap: 10px;
}

.forecast-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.forecast-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.forecast-row strong {
  color: var(--ink);
  text-align: right;
}

.age-withdrawal-list {
  display: grid;
  gap: 4px;
  text-align: left;
}

.age-withdrawal-list span {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
}

.age-withdrawal-list b {
  color: var(--muted);
  font-weight: 900;
}

.age-withdrawal-list em {
  color: var(--ink);
  font-style: normal;
  text-align: right;
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.idea-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
}

.idea-card strong {
  display: block;
  margin-bottom: 6px;
}

.idea-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
}

.missing-box {
  display: none;
  margin-top: 14px;
  padding: 16px;
  border-color: #e1b45d;
  background: var(--gold-soft);
  color: #62420d;
  font-weight: 750;
}

.question-list {
  display: grid;
  gap: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.question-list label span[class^="risk-example"],
.question-list label span[class*=" risk-example"] {
  color: var(--accent-strong);
  font-weight: 900;
}

.question-list.collapsed {
  display: none;
}

.risk-empty {
  padding: 22px;
  margin-bottom: 16px;
}

.risk-empty h3,
.risk-empty p {
  max-width: 720px;
}

.risk-empty p {
  color: var(--muted);
}

.risk-empty button {
  margin-top: 6px;
}

.risk-empty.hidden,
.risk-result.hidden {
  display: none;
}

.risk-result {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
}

.risk-score-card,
.risk-story,
.allocation-bars-card {
  padding: 18px;
}

.risk-score-card {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.score-ring {
  display: grid;
  place-items: center;
  width: min(260px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(var(--accent) var(--score-angle), #e4eaee 0),
    #e4eaee;
  transition: background 500ms ease;
}

.score-ring-inner {
  display: grid;
  place-items: center;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.score-ring strong {
  font-size: 4rem;
  line-height: 0.95;
}

.score-ring span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.risk-score-card h3 {
  margin: 16px 0 6px;
  font-size: 1.45rem;
}

.risk-story {
  align-self: stretch;
  display: grid;
  align-content: center;
}

.risk-story strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.risk-story p,
.allocation-bars-card p {
  color: var(--muted);
}

.allocation-bars-card {
  grid-column: 1 / -1;
}

.allocation-bars {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.allocation-bar-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
  font-weight: 800;
}

.allocation-bar-track {
  height: 26px;
  border-radius: 999px;
  background: #e4eaee;
  overflow: hidden;
}

.allocation-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transition: width 700ms ease;
}

.risk-tier-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.risk-tier-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.risk-tier-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.risk-tier-item div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.risk-tier-item strong {
  color: var(--ink);
  line-height: 1.15;
}

.risk-tier-item span {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.risk-tier-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.legend {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 750;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: 0 0 auto;
}

.insight-list {
  display: grid;
  gap: 10px;
}

.social-basics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.social-basics article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.social-basics span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-basics strong {
  display: block;
  margin-bottom: 8px;
}

.social-basics p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.insight {
  padding: 14px 16px;
}

.insight strong {
  display: block;
  margin-bottom: 4px;
}

.good {
  border-color: #9fcdb7;
  background: var(--green-soft);
}

.warn {
  border-color: #e1b45d;
  background: var(--gold-soft);
}

.danger {
  border-color: #dfa19b;
  background: #fff0ee;
}

.plan-output {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.locked-plan-tracker {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.locked-plan-empty,
.locked-plan-card,
.plan-checkin-panel,
.checkin-history,
.plan-tracker-chart-shell {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.locked-plan-empty {
  background: var(--blue-soft);
}

.locked-plan-empty strong {
  display: block;
  color: var(--ink);
  font-size: 1.2rem;
}

.locked-plan-empty p {
  margin: 5px 0 0;
  color: var(--muted);
}

.locked-plan-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
}

.locked-plan-card.hero {
  border-color: rgba(34, 196, 94, 0.32);
  background: rgba(34, 196, 94, 0.08);
}

.locked-plan-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.locked-plan-card strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.35rem;
}

.locked-plan-card p,
.plan-checkin-panel p {
  margin: 5px 0 0;
  color: var(--muted);
}

.plan-tracker-chart-shell {
  padding: 10px;
}

.plan-tracker-chart-shell canvas {
  display: block;
  width: 100%;
  min-height: 250px;
}

.plan-checkin-panel {
  display: grid;
  gap: 14px;
  background: var(--panel);
}

.plan-checkin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.plan-checkin-grid .wide {
  grid-column: 1 / -1;
}

.checkin-toggle {
  justify-content: space-between;
}

.checkin-history {
  display: grid;
  gap: 8px;
}

.checkin-row {
  display: grid;
  grid-template-columns: 1fr auto minmax(180px, auto);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.checkin-row span,
.checkin-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.plan-output ol {
  margin: 0;
  padding-left: 26px;
}

.plan-output li {
  margin: 9px 0;
}

footer {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px 0 32px;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  body {
    font-size: 17px;
  }

  .app-header,
  .input-grid,
  .output-grid,
  .social-basics,
  .forecast-detail-grid,
  .idea-grid,
  .what-if-controls,
  .risk-result,
  .social-input-reference,
  .social-input-chip-grid,
  .coming-soon-grid,
  .locked-plan-grid,
  .plan-checkin-grid,
  .checkin-row {
    grid-template-columns: 1fr;
  }

  .what-if-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .title-actions,
  .mode-toggle {
    width: 100%;
  }

  .mode-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-button {
    padding: 0 8px;
    white-space: normal;
  }

  .example-button {
    width: 100%;
  }

  .custom-expense-row,
  .account-builder-head,
  .account-entry-grid,
  .account-allocation-inputs,
  .asset-entry-grid,
  .liability-entry-grid,
  .life-insurance-entry-grid,
  .account-row,
  .asset-row,
  .liability-row,
  .life-policy-row {
    grid-template-columns: 1fr;
  }

  .icon-button {
    width: 100%;
  }

  .tabs {
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
}

@keyframes celebratePulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes sparkle {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(1.2);
  }
}

@keyframes hintBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes totalPop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.025);
  }
  100% {
    transform: scale(1);
  }
}

@media print {
  .tabs,
  button,
  #inputs,
  #forecast,
  #risk,
  #tax,
  #social,
  footer {
    display: none !important;
  }

  .section,
  #plan {
    display: block !important;
  }

  body {
    background: white;
  }
}
