
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/geist-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/geist-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/geist-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/geist-mono-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/geist-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/geist-mono-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/geist-mono-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/geist-mono-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/geist-mono-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-latin-ext-400-italic.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

* { margin: 0; padding: 0; box-sizing: border-box; }


:root {
  --bg: #f0eee6;
  --bg-deep: #e9e6db;
  --bg-muted: #f5f2ea;      
  --surface: #fff;
  --surface-warm: #fbf9f4;
  --surface-subtle: #f5f2ea; 
  --border: #e3e0d3;
  --border-strong: #d3cdba;
  --text: #38322a;
  --text-muted: #6f6759;
  
  --info-bg: #e8f0fa;
  --info-border: #b7cde9;
  --info-text: #214c8d;
  --primary: #2d5fa9;
  --primary-deep: #214c8d;
  --primary-light: #e8f0fa;
  --primary-track: #b7cde9;
  
  --pill-border-blue: #d5e1f2;
  --danger: #b91c1c;
  
  --danger-bg: #fbeaea;
  --danger-border: #f0c4c4;
  
  --cost-soft-red: #c0504a;
  --warning: #b45309;
  --success: #117733;
  --notice-bg: #f7ebd3;
  --notice-text: #6d5613;
  --notice-border: #e6d3a3;
  --gauge-amber: #e69f01;
  
  --chance-of-success-on-track: #2f6f4f;
  --chance-of-success-close-call: var(--text);
  --chance-of-success-at-risk: #a84a06;
  --chance-of-success-unlikely: #b91c1c;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --nav-height: 45px;
  --footer-height: 38px;
  
  --panel-width: 380px;
  
  --guide-panel-width: 450px;
  
  --chart-series-highlight: #ff0000;
}


.plot-area path.chart-series-highlighted {
  stroke: var(--chart-series-highlight);
  stroke-width: 2px;
  opacity: 1;
}
.plot-area rect.chart-series-highlighted {
  fill: var(--chart-series-highlight);
}


body:has(main.page-dashboard) { --nav-height: 45px; }



.site-footer { height: var(--footer-height); flex-shrink: 0; box-sizing: border-box; display: flex; align-items: center; line-height: 1.35; }
.footer-side-spacer, .footer-right-cluster { flex: 1 1 0; min-width: 0; }
.footer-right-cluster { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }

.footer-center-links { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.footer-privacy-policy-link { color: var(--text-muted); text-decoration: underline; white-space: nowrap; }

.footer-contact-link { color: var(--text-muted); text-decoration: underline; white-space: nowrap; }
.contact-page h1 { margin: 0 0 6px 0; font-size: 22px; }

@media (max-width: 600px) {
  .site-footer { height: auto; min-height: var(--footer-height); }
  .footer-center-links { flex-shrink: 1; min-width: 0; flex-wrap: wrap; justify-content: center; row-gap: 2px; }
}

.privacy-policy h1 { margin: 0 0 6px 0; font-size: 22px; }
.privacy-policy h2 { margin: 24px 0 8px 0; font-size: 17px; }
#chart-status-label {
  font-size: 10px; color: var(--text-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto;
}


body {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.summary-item .value, .sub-info, .tf-val { font-variant-numeric: tabular-nums; }
button, input, select, textarea { font-family: inherit; }


select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background-color: var(--surface);
  color: var(--text);
  padding: 2px 18px 2px 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236f6759' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 8px 5px;
  cursor: pointer;
}
select:hover { border-color: var(--primary-track); }
select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(45, 95, 169, 0.15); }
select:disabled { opacity: 0.55; cursor: not-allowed; }


input[type="text"], input[type="number"], input[type="date"], input[type="month"],
input[type="email"], input[type="password"], input[type="search"], textarea {
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background-color: var(--surface);
  color: var(--text);
}
input[type="text"]:hover, input[type="number"]:hover, input[type="date"]:hover, input[type="month"]:hover,
input[type="email"]:hover, input[type="password"]:hover, input[type="search"]:hover, textarea:hover { border-color: var(--primary-track); }
input[type="text"]:focus, input[type="number"]:focus, input[type="date"]:focus, input[type="month"]:focus,
input[type="email"]:focus, input[type="password"]:focus, input[type="search"]:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(45, 95, 169, 0.15);
}

select[multiple] { background-image: none; padding-right: 6px; }


.top-nav {
  
  min-height: var(--nav-height);
  
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 2px; }

.nav-brand {
  display: inline-flex; align-items: center; gap: 5px;
  margin-right: 4px;
  text-decoration: none; color: var(--text); white-space: nowrap;
}
.nav-brand-logo { width: 24px; height: 24px; border-radius: 5px; display: block; flex-shrink: 0; }
.nav-brand-name { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.nav-brand-release-stage {
  font-size: 9px; font-weight: 600; color: var(--text-muted);
  margin-left: 2px; text-transform: lowercase; letter-spacing: 0.02em;
}
.nav-brand:hover .nav-brand-name { color: var(--primary-deep); }

.nav-link {
  padding: 4px 7px;
  text-decoration: none;
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.nav-link:hover { background: var(--primary-light); color: var(--primary-deep); }
.nav-link.active { background: var(--primary-light); color: var(--primary-deep); font-weight: 600; }

.top-nav:has(> .top-nav-header-row) {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  padding: 0;
  background: var(--surface-warm);
  font-variant-numeric: tabular-nums;
}
.top-nav-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px clamp(12px, 2vw, 40px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  row-gap: 6px;
}
.top-nav-header-row .nav-left { gap: 14px; flex-wrap: nowrap; min-width: 0; }
.top-nav-header-row .nav-brand { gap: 8px; }
.top-nav-header-row .nav-brand-logo { width: 26px; height: 26px; border-radius: 6px; }
.top-nav-header-row .nav-brand-name { font-size: 16px; }
.top-nav-header-row .nav-brand-release-stage {
  vertical-align: middle; margin-left: 8px; padding: 2px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--warning); background: var(--notice-bg);
}
.nav-links { display: flex; gap: 2px; flex-wrap: nowrap; }
.top-nav-header-row .nav-link { font-size: 13px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.top-nav-header-row .nav-link:hover { background: var(--bg-muted); color: var(--text); }
.top-nav-header-row .nav-link[aria-current="page"] { background: var(--bg); color: var(--text); font-weight: 600; }
.top-nav-header-row .nav-right { margin-left: auto; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav-right-divider { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }

.nav-header-btn {
  font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 7px clamp(10px, 1vw, 24px);
  cursor: pointer;
}
.nav-header-btn:hover { background: var(--bg-muted); }
.nav-header-btn:disabled { cursor: default; opacity: 0.6; }

.nav-header-btn-accent, .btn.nav-header-btn-accent { color: var(--primary-deep); background: var(--primary-light); border-color: var(--pill-border-blue); }
.nav-header-btn-accent:hover, .btn.nav-header-btn-accent:hover { background: var(--pill-border-blue); }
.nav-header-icon-btn { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; color: var(--text-muted); }

.nav-warnings-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--success);  
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}
.nav-warnings-btn[data-status="warn"] { background: var(--notice-bg); border-color: var(--notice-border); }
.nav-warnings-btn[data-status="fail"] { background: var(--danger-bg); border-color: var(--danger-border); }
.nav-warnings-btn:hover { filter: brightness(0.97); }

.success-gauge { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0; }


main { flex: 1 1 auto; min-height: 0; overflow: hidden; }
main:not(.page-dashboard) { overflow-y: auto; }

main:has(.learn-layout) { overflow-x: auto; }


.page-dashboard { display: flex; }

.nav-summary.summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  padding: 0 clamp(4px, 1vw, 24px);
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.nav-summary:empty { display: none; }
.nav-summary .summary-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px clamp(8px, 0.7vw, 24px);
  text-align: left;
  flex: 0 1 auto;
  min-width: 0;
}
.nav-summary .summary-section + .summary-section { border-left: 1px solid var(--border); }
.nav-summary .summary-item .summary-section-title {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
}
.nav-summary .summary-section-title .info-tip { text-transform: none; }
.nav-summary .summary-item .summary-headline-amount {
  font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--text); white-space: nowrap; min-width: 4ch;
}

.nav-summary .summary-item .summary-headline-amount[data-our-projection-fails-with-money-left] { color: var(--chance-of-success-unlikely); }
.summary-headline-figure { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.summary-headline-caption { font-size: 11px; color: var(--text-muted); }
.summary-figure-with-parts { display: flex; align-items: flex-start; gap: clamp(8px, 0.7vw, 20px); }
.summary-side-list {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11px; line-height: 1.3;
  padding-left: clamp(8px, 0.7vw, 20px);
  border-left: 1px solid var(--border);
  min-width: 0;
}
.summary-side-list-row { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.summary-side-list-row[hidden] { display: none; }
.summary-side-list-label { color: var(--text-muted); }
.summary-side-list-amount { font-weight: 600; color: var(--text); min-width: 6ch; text-align: right; }
.summary-side-list-amount[data-amount-above-zero-shown-in-red="true"] { color: var(--cost-soft-red); }

.success-figure-line { display: flex; align-items: center; gap: 8px; }
#success-value-line { white-space: nowrap; }

.summary-small-sections { display: flex; border-left: 1px solid var(--border); }
@media (max-width: 1700px) {
  .summary-small-sections { flex-direction: column; justify-content: center; }
  .summary-small-sections .summary-section { padding-top: 3px; padding-bottom: 3px; gap: 2px; }
  .nav-summary .summary-small-sections .summary-section + .summary-section { border-left: none; }
}

.nav-summary .summary-section-small .value:not(.summary-headline-amount) { font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--text); }
@media (max-width: 1500px) {
  .nav-summary .summary-item .summary-headline-amount { font-size: 18px; }
  .nav-summary .summary-section { padding-left: 6px; padding-right: 6px; }
  .summary-figure-with-parts { gap: 6px; }
  .summary-side-list { padding-left: 6px; }
}

@media (min-width: 601px) and (max-width: 1279.98px) {
  .nav-summary.summary-bar {
    padding-left: clamp(2px, calc(2px + 11 * (100vw - 1000px) / 280), 1vw);
    padding-right: clamp(2px, calc(2px + 11 * (100vw - 1000px) / 280), 1vw);
  }
  .nav-summary .summary-section {
    padding-left: clamp(2px, calc(2px + 4 * (100vw - 1000px) / 280), 6px);
    padding-right: clamp(2px, calc(2px + 4 * (100vw - 1000px) / 280), 6px);
  }
  .nav-summary .summary-item .summary-section-title {
    font-size: clamp(8.5px, calc(8.5px + 1.5 * (100vw - 1000px) / 280), 10px);
    letter-spacing: clamp(0.15px, calc(0.15px + 0.35 * (100vw - 1000px) / 280), 0.5px);
    gap: clamp(3px, calc(3px + 2 * (100vw - 1000px) / 280), 5px);
  }
  .nav-summary .summary-item .summary-headline-amount { font-size: clamp(14px, calc(14px + 4 * (100vw - 1000px) / 280), 18px); }
  .summary-headline-caption { font-size: clamp(9.5px, calc(9.5px + 1.5 * (100vw - 1000px) / 280), 11px); }
  .success-figure-line { gap: clamp(3px, calc(3px + 5 * (100vw - 1000px) / 280), 8px); }
  .summary-figure-with-parts { gap: clamp(3px, calc(3px + 3 * (100vw - 1000px) / 280), 6px); }
  .summary-side-list {
    padding-left: clamp(3px, calc(3px + 3 * (100vw - 1000px) / 280), 6px);
    font-size: clamp(9px, calc(9px + 2 * (100vw - 1000px) / 280), 11px);
  }
  .summary-side-list-row { gap: clamp(3px, calc(3px + 5 * (100vw - 1000px) / 280), 8px); }
  .nav-summary .summary-section-small .value:not(.summary-headline-amount) { font-size: clamp(10px, calc(10px + 2 * (100vw - 1000px) / 280), 12px); }
}
.nav-summary .value.middle-two-thirds-range { min-width: 15ch; }
.nav-summary .value.within-half-of-median-percentiles { min-width: 11ch; }


@media (max-width: 600px) {
  body:has(.top-nav-header-row) { height: auto; min-height: 100vh; overflow: visible; }
  .top-nav:has(> .top-nav-header-row) { position: static; }
  .top-nav-header-row .nav-left { flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; }
  .nav-summary.summary-bar { flex-direction: column; padding: 0; }
  .nav-summary .summary-section + .summary-section,
  .nav-summary .summary-small-sections .summary-section + .summary-section { border-left: none; border-top: 1px solid var(--border); }
  .summary-small-sections { flex-direction: column; margin-left: 0; border-left: none; border-top: 1px solid var(--border); }
  .summary-figure-with-parts { flex-wrap: wrap; row-gap: 6px; }
  .nav-controls { flex-wrap: wrap; justify-content: flex-end; }
  .nav-controls #advisor-impact-btn { white-space: normal; }
}
.nav-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.advisor-impact-control { display: inline-flex; align-items: center; gap: 4px; }

.nav-temporary-account { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.nav-temporary-account-label { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.temporary-account-logout-warning-buttons { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

.save-this-plan-form .field label { font-size: 13px; }
.save-this-plan-form .btn { width: 100%; margin-top: 12px; padding: 8px; }

.settings-modal-chart-display-controls label { color: var(--text-muted); font-size: 10px; }
.settings-modal-chart-display-controls select { font-size: 10px; padding: 2px 5px; }

.settings-modal-chart-display-controls select { padding-right: 18px; }

#advisor-impact-btn { white-space: nowrap; }

.dashboard-panel {
  width: var(--panel-width);
  min-width: var(--panel-width);
  height: 100%;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg);
  padding: 8px;
}
.dashboard-charts {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 8px 10px;
  min-width: 0;
}


.dashboard-main-column { flex: 1; min-width: 0; height: 100%; display: flex; }
.guide-panel {
  width: var(--guide-panel-width);
  min-width: var(--guide-panel-width);
  height: 100%;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  background: var(--bg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-panel-header { display: flex; align-items: center; gap: 6px; }

.guide-panel-tabs { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; min-width: 0; }
.guide-panel-tab {
  font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted); background: transparent; border: none; border-bottom: 2px solid transparent;
  padding: 4px 6px; cursor: pointer;
}
.guide-panel-tab[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.guide-panel-collapse-btn { white-space: nowrap; }
.guide-panel-body { display: flex; flex-direction: column; gap: 6px; }
.guide-panel-tab-panel { display: flex; flex-direction: column; gap: 6px; }
.guide-panel-tab-panel[hidden] { display: none; }
.guide-panel-empty { font-size: 12px; color: var(--text-muted); padding: 6px 2px; }
.guide-suggestion {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-warm);
  box-shadow: 0 1px 2px rgba(56, 50, 42, 0.05);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
}

.guide-suggestion-one-line { display: flex; gap: 6px; align-items: flex-start; width: 100%; }
.guide-suggestion-checkbox-label { display: flex; align-items: center; padding-top: 1px; }

.guide-suggestion-checkbox-label[data-guide-suggestion-saving="true"] { opacity: 0.55; cursor: progress; }
.guide-suggestion-checkbox-label[data-guide-suggestion-saving="true"] .guide-suggestion-checkbox { cursor: progress; }
.guide-suggestion-toggle {
  flex: 1; min-width: 0; display: flex; gap: 6px; align-items: flex-start; justify-content: space-between;
  background: transparent; border: none; padding: 0; margin: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: inherit; text-align: left; overflow-wrap: anywhere;
}
.guide-suggestion-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
.guide-suggestion-chevron { color: var(--text-muted); transition: transform 0.15s; flex-shrink: 0; }
.guide-suggestion-toggle[aria-expanded="false"] .guide-suggestion-chevron { transform: rotate(-90deg); }
.guide-suggestion-one-line-figure { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-suggestion-details { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
.guide-suggestion[data-guide-suggestion-collapsed="true"] .guide-suggestion-details,
.guide-suggestion[data-guide-suggestion-collapsed="false"] .guide-suggestion-one-line-figure { display: none; }
.guide-suggestion-explanation { color: var(--text-muted); line-height: 1.4; }
.guide-suggestion-explanation p { margin: 0 0 4px; }

.guide-advisor-fees-advantages { margin: 0 0 4px; padding-left: 18px; }
.guide-advisor-fee-firm-field { display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; margin: 4px 0 0; }
.guide-advisor-fee-firm { width: 100%; max-width: 100%; min-width: 0; }

.guide-advisor-fees-cost-breakdown { margin: 6px 0; font-size: 12px; line-height: 1.4; }
.guide-advisor-fees-cost-breakdown-line + .guide-advisor-fees-cost-breakdown-line { margin-top: 2px; }
.guide-advisor-fees-cost-breakdown .advisor-fees-cost-figure { font-weight: 600; }

.advisor-fees-on-switch-label { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 4px; }

.guide-suggestion-values { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; overflow-wrap: anywhere; }
.guide-suggestion-values-heading { color: var(--text-muted); font-size: 11px; }
.guide-suggestion-value-line { font-variant-numeric: tabular-nums; }
.guide-suggestion-value { font-weight: 600; }
.guide-suggestion-value-change { color: var(--text-muted); }

.figures-in-italics { font-style: italic; }
.guide-suggestion-values-missing { color: var(--text-muted); font-size: 11px; font-style: italic; }

.guide-suggestion-highest-rmd-and-social-security { font-size: 11px; font-variant-numeric: tabular-nums; }
.guide-suggestion-what-is-this { font-size: 11px; }

.guide-setup-progress { color: var(--text-muted); font-size: 11px; font-weight: 600; }
.guide-setup-done-mark { color: var(--success); font-weight: 700; padding-top: 1px; }
.guide-setup-box[data-guide-setup-done="true"] { background: transparent; box-shadow: none; }
.guide-setup-done-reason { color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.guide-setup-improve-your-plan { display: flex; justify-content: flex-start; }
.guide-setup-plan-note { font-size: 11px; line-height: 1.4; }
.guide-setup-asking-for-more { font-weight: 600; }

.guide-setup-strategy-lines { margin: 0 0 4px; padding-left: 16px; }
.guide-setup-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.guide-setup-mark-done-label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.guide-setup-mark-done-label[data-guide-setup-mark-done-saving="true"] { opacity: 0.55; cursor: progress; }

.btn.guide-suggestion-missing-input-btn-blocking { color: var(--danger); }

.guide-flexible-spending-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
.guide-flexible-spending-percent-label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; }
.guide-flexible-spending-percent { width: 110px; }
.guide-flexible-spending-percent-text { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 3em; }

.guide-flexible-spending-percent-custom .guide-flexible-spending-percent { opacity: 0.45; }
.guide-flexible-spending-percent-custom .guide-flexible-spending-percent-text { color: var(--text-muted); font-style: italic; }

.guide-flexible-spending-rule-settings { width: 100%; margin: 4px 0; }
.flexible-rule-settings { display: flex; flex-direction: column; gap: 6px; width: 100%; font-size: 11px; }
.flexible-rule-setting { display: flex; flex-direction: column; gap: 2px; }
.flexible-rule-setting-label-row { display: flex; align-items: center; gap: 4px; }
.flexible-rule-setting-mixed { color: var(--text-muted); font-style: italic; }
.flexible-rule-setting-options { display: flex; flex-wrap: wrap; gap: 4px; }
.flexible-rule-setting-option { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; user-select: none; font-weight: 500; min-width: 0; }
.flexible-rule-setting-option:hover { background: var(--bg-muted); }
.flexible-rule-setting-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.flexible-rule-setting-option:has(.flexible-rule-setting-radio:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }
.flexible-rule-setting-option:has(.flexible-rule-setting-radio:focus-visible) { outline: 2px solid var(--primary); outline-offset: 1px; }
.flexible-rule-setting-option:has(.flexible-rule-setting-radio:disabled) { opacity: 0.6; cursor: default; }
.flexible-rule-setting-explanation { color: var(--text-muted); line-height: 1.4; }
.wd-flexible-rule-settings, .qs-wd-flexible-rule-settings { flex-direction: column; align-items: stretch; }

.guide-flexible-spending-check-years { list-style: none; margin: 2px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.guide-flexible-spending-check-year-heading { font-weight: 600; }
.guide-flexible-spending-withdrawals { list-style: none; margin: 0; padding: 0; font-size: 11px; overflow-wrap: anywhere; }
.guide-flexible-spending-figures { display: flex; flex-direction: column; gap: 2px; font-size: 11px; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.guide-flexible-spending-figures:not([data-guide-flexible-spending-figures="ready"]) { color: var(--text-muted); font-style: italic; }
.guide-flexible-spending-figures-heading { color: var(--text-muted); }

.guide-workplace-person-choices { border: 1px solid var(--border); border-radius: 4px; margin: 4px 0; padding: 4px 6px; min-width: 0; font-size: 11px; align-self: stretch; box-sizing: border-box; max-width: 100%; }
.guide-workplace-person-choices legend { font-weight: 600; padding: 0 4px; overflow-wrap: anywhere; max-width: 100%; }

.guide-workplace-person-choices .field { flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; }
.guide-workplace-person-choices .field label { min-width: 0 !important; white-space: normal; overflow-wrap: anywhere; }
.guide-workplace-person-choices .field input:not([type="checkbox"]):not([type="radio"]),
.guide-workplace-person-choices .field select { flex: none; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.guide-workplace-room-left { color: var(--text-muted); margin: 2px 0; overflow-wrap: anywhere; }
.guide-workplace-amount-problem { color: var(--danger); font-weight: 600; margin: 2px 0; overflow-wrap: anywhere; }
.guide-workplace-employer-contribution { margin-top: 4px; min-width: 0; }

.guide-workplace-create-line { margin: 2px 0 4px; line-height: 1.4; overflow-wrap: anywhere; }
.guide-workplace-create-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.guide-workplace-person-choices select.guide-workplace-new-account-type { flex: 1 1 8em; min-width: 0; max-width: 100%; box-sizing: border-box; }
.guide-workplace-create-btn,
.guide-workplace-apply-btn { flex: none; white-space: nowrap; }
.guide-workplace-apply-btn { margin-top: 4px; }
.guide-workplace-action-btn[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-light); }
.guide-workplace-applied-line { margin: 2px 0 4px; line-height: 1.4; overflow-wrap: anywhere; }
.guide-workplace-form { min-width: 0; max-width: 100%; }

.guide-workplace-action-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; min-width: 0; max-width: 100%; }
.guide-workplace-action-btn { white-space: nowrap; flex: none; }
.guide-workplace-move-from-row-field { margin-top: 4px; }
.guide-workplace-person-choices select.guide-workplace-move-from-row { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.guide-workplace-people[data-guide-suggestion-saving="true"] { opacity: 0.7; }
.guide-suggestion-note { color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.guide-flexible-spending-cannot-switch-back-note {
  font-size: 11px; line-height: 1.4; color: var(--warning); font-weight: 600;
  background: rgba(180, 83, 9, 0.08); border-left: 3px solid var(--warning); padding: 4px 6px; overflow-wrap: anywhere;
}

.guide-flexible-spending-chart-view { display: flex; flex-direction: column; gap: 4px; font-size: 11px; line-height: 1.4; }
.guide-flexible-spending-chart-view-heading { color: var(--text-muted); }
.guide-flexible-spending-chart-view-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.guide-flexible-spending-chart-view-row-label { color: var(--text-muted); margin-right: 2px; }
.guide-flexible-spending-chart-view-btn-pressed { background: var(--primary); border-color: var(--primary); color: #fff; }
.guide-flexible-spending-chart-view-normal-btn { align-self: flex-start; }
.flexible-spending-chart-view-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; border-left: 3px solid #0f766e; }
.flexible-spending-chart-view-error { flex-basis: 100%; color: var(--danger); font-weight: 400; }
.flexible-spending-chart-view-blank-chart { padding: 24px 80px; font-size: 11px; color: var(--text-muted); font-style: italic; }

.checks-and-warnings { display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }
.checks-and-warnings-section { display: flex; flex-direction: column; gap: 8px; }
.checks-and-warnings-section + .checks-and-warnings-section { border-top: 1px solid var(--border); padding-top: 10px; }
.checks-and-warnings-group-heading {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); font-weight: 600; margin-bottom: 2px;
}
.checks-and-warnings-table { border-collapse: collapse; font-size: 12px; width: 100%; }

.guide-action-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.guide-action-group-heading { font-size: 12px; font-weight: 700; margin: 0; color: var(--text); }
.guide-action {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-warm);
  box-shadow: 0 1px 2px rgba(56, 50, 42, 0.05);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
}
.guide-action-title { font-weight: 600; overflow-wrap: anywhere; }
.guide-action-line { line-height: 1.4; overflow-wrap: anywhere; }
.guide-action-note { color: var(--text-muted); font-size: 11px; line-height: 1.4; }

.guide-flexible-spending-thresholds { margin: 2px 0 0; padding-left: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.guide-actions-updating-note { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }

.guide-actions-my-life-plan { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 10px; }
.guide-actions-updating { opacity: 0.5; pointer-events: none; }


.monthly-data-description { font-size: 12px; color: var(--text-muted); margin: 0 0 8px 0; }
.monthly-data-description p { margin: 0 0 4px 0; }
.monthly-data-description .monthly-data-call-to-action { color: var(--text); font-weight: 600; }
.monthly-data-tab-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 6px; }
.monthly-data-tabs { display: flex; flex-wrap: wrap; gap: 4px; }

.monthly-data-year-end-rows-only { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; cursor: pointer; }
.monthly-data-year-end-rows-only[hidden] { display: none; }
.monthly-data-tab { font: inherit; font-size: 12px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-warm); color: var(--text); cursor: pointer; }
.monthly-data-tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.monthly-data-content { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--border); border-radius: 4px; }
.monthly-data-message { padding: 20px; color: var(--text-muted); }
.monthly-data-error { color: var(--danger); }
.monthly-data-table { font-size: 11px; border-collapse: separate; border-spacing: 0; --monthly-data-month-column-width: 116px; --monthly-data-age-column-width: 56px; }

.monthly-data-table .monthly-data-fixed-column { position: sticky; z-index: 1; background: var(--surface); box-sizing: border-box; }
.monthly-data-table .monthly-data-month-heading, .monthly-data-table td.monthly-data-month { width: var(--monthly-data-month-column-width); min-width: var(--monthly-data-month-column-width); max-width: var(--monthly-data-month-column-width); }
.monthly-data-table .monthly-data-age-heading, .monthly-data-table td.monthly-data-age { width: var(--monthly-data-age-column-width); min-width: var(--monthly-data-age-column-width); max-width: var(--monthly-data-age-column-width); text-align: right; white-space: nowrap; }
.monthly-data-table > thead th.monthly-data-age-heading { font-weight: 700; border-bottom: 2px solid var(--border); }

.monthly-data-table > thead { position: sticky; top: 0; z-index: 2; }
.monthly-data-table > thead th { background: var(--surface); padding: 4px 6px; font-size: 10px; white-space: nowrap; }
.monthly-data-table > thead th.monthly-data-month-heading { text-align: left; font-weight: 700; border-bottom: 2px solid var(--border); }
.monthly-data-table > thead th.monthly-data-group-heading { text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 1px solid var(--border); }
.monthly-data-table > thead th.monthly-data-column-heading { text-align: right; font-weight: 600; border-bottom: 2px solid var(--border); }
.monthly-data-table > thead th.monthly-data-group-withdrawals { background: #e8f0fa; }
.monthly-data-table > thead th.monthly-data-group-other-income { background: #e3f1ea; }
.monthly-data-table > thead th.monthly-data-group-account-groups { background: #f7ebd3; }
.monthly-data-table > thead th.monthly-data-group-accounts { background: #e7efe3; }
.monthly-data-table > thead th.monthly-data-group-fees-and-penalties { background: #f6e4e0; }

.monthly-data-table > thead th.monthly-data-group-taxable-income { background: #efe6f2; }
.monthly-data-table > thead th.monthly-data-group-taxes { background: var(--notice-bg); }
.monthly-data-table > thead th.monthly-data-group-title-set-apart { border-bottom: none; padding-bottom: 2px; }
.monthly-data-group-title { display: block; padding-bottom: 2px; border-bottom: 2px solid currentColor; }
.monthly-data-group-taxable-income .monthly-data-group-title { color: var(--primary-deep); }
.monthly-data-group-taxes .monthly-data-group-title { color: var(--warning); }
.monthly-data-table > thead th.monthly-data-group-explanation { background: var(--surface); }
.monthly-data-table > tbody > tr > td { padding: 3px 6px; border-bottom: 1px solid var(--border); font-size: 10px; vertical-align: top; }
.monthly-data-table td.monthly-data-month { white-space: nowrap; }
.monthly-data-table td.monthly-data-number { text-align: right; white-space: nowrap; }
.monthly-data-table .monthly-data-total { font-weight: 600; }
.monthly-data-table tr.monthly-data-year-end-row > td { border-bottom: 2px solid var(--border-strong); }
.monthly-data-zero, .monthly-data-muted { color: var(--text-muted); }
.monthly-data-account-deposit { color: var(--success); }

.monthly-data-account-employer { color: var(--text-muted); }
.monthly-data-status-unfulfilled { color: var(--danger); font-weight: 600; }
.monthly-data-status-exceeded { color: var(--warning); font-weight: 600; }
.monthly-data-table td.monthly-data-explanation-cell { text-align: left; white-space: normal; min-width: 340px; }
.monthly-data-explanation summary { cursor: pointer; }
.monthly-data-explanation-steps { margin: 4px 0 2px 0; border-collapse: collapse; font-size: 10px; }
.monthly-data-explanation-steps th { text-align: left; font-weight: 600; color: var(--text-muted); padding: 2px 6px; border-bottom: 1px solid var(--border); }
.monthly-data-explanation-steps td { padding: 2px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.monthly-data-explanation-steps .monthly-data-number { text-align: right; white-space: nowrap; }
.monthly-data-table[data-monthly-data-shown-section="withdrawals-and-other-income"] [data-monthly-data-section]:not([data-monthly-data-section="withdrawals-and-other-income"]),
.monthly-data-table[data-monthly-data-shown-section="account-groups"] [data-monthly-data-section]:not([data-monthly-data-section="account-groups"]),
.monthly-data-table[data-monthly-data-shown-section="accounts"] [data-monthly-data-section]:not([data-monthly-data-section="accounts"]),
.monthly-data-table[data-monthly-data-shown-section="fees-and-penalties"] [data-monthly-data-section]:not([data-monthly-data-section="fees-and-penalties"]),
.monthly-data-table[data-monthly-data-shown-section="taxable-income-and-taxes"] [data-monthly-data-section]:not([data-monthly-data-section="taxable-income-and-taxes"]),
.monthly-data-table[data-monthly-data-shown-section="taxable-income-and-taxes"][data-monthly-data-year-end-rows-only="true"] > tbody > tr:not(.monthly-data-year-end-row) { display: none; }

.monthly-data-view-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.monthly-data-table td.monthly-data-month .monthly-data-open-month { margin-left: 6px; font-size: 9px; padding: 1px 5px; }
.my-actions-month-view { padding: 12px 16px; font-size: 13px; max-width: 760px; }
.my-actions-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.my-actions-nav-button:disabled { opacity: 0.4; cursor: default; }
.my-actions-picker { display: inline-flex; gap: 4px; }
.my-actions-picker-select { font: inherit; font-size: 12px; padding: 3px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); }
.my-actions-heading { margin: 4px 0 8px 0; font-size: 16px; }
.my-actions-list { margin: 0 0 10px 0; padding-left: 22px; line-height: 1.5; }
.my-actions-item { margin-bottom: 4px; overflow-wrap: anywhere; }
.my-actions-why { color: var(--text); }
.my-actions-none { margin: 0 0 8px 0; }
.my-actions-cash-received { margin: 0 0 8px 0; }
.my-actions-notes { margin: 0 0 10px 0; padding-left: 22px; color: var(--text-muted); font-size: 12px; }
.my-actions-subheading { margin: 8px 0 4px 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); }
.my-actions-done-for-you { color: var(--text-muted); }
.my-actions-dollars-note { margin: 10px 0 0 0; font-size: 11px; color: var(--text-muted); }
.my-actions-explanation { margin: 14px 0 0 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-subtle, #fafafa); }
.my-actions-explanation .my-actions-subheading { margin-top: 0; }
.my-actions-explanation-summary { margin: 0 0 4px 0; font-size: 11px; color: var(--text-muted); }
.my-actions-explanation .monthly-data-explanation-steps { font-size: 11px; width: 100%; }
@media (max-width: 600px) {
  .my-actions-month-view { padding: 8px; font-size: 12px; }
  .my-actions-navigation { gap: 6px; }
}

.guide-suggestion-not-applicable { background: transparent; box-shadow: none; border-style: dashed; }
.guide-suggestion-not-applicable .guide-suggestion-checkbox-label,
.guide-suggestion-not-applicable .guide-suggestion-name,
.guide-suggestion-not-applicable .guide-suggestion-explanation { opacity: 0.55; }
.guide-suggestion-not-applicable .guide-suggestion-name { color: var(--text-muted); }
.guide-suggestion-not-applicable-reason { color: var(--text-muted); font-size: 11px; font-weight: 600; }
[data-guide-panel-collapsed="true"] .guide-panel { width: auto; min-width: 0; padding: 8px 4px; }
[data-guide-panel-collapsed="true"] .guide-panel-tabs,
[data-guide-panel-collapsed="true"] .guide-panel-body { display: none; }


@media (max-width: 600px) {
  .page-dashboard { flex-direction: column; overflow-y: auto; }
  .dashboard-panel { width: auto; min-width: 0; height: auto; overflow-y: visible; border-right: none; border-bottom: 1px solid var(--border); }
  .dashboard-main-column { flex-direction: column; flex: none; height: auto; }
  .dashboard-charts { flex: none; height: auto; overflow-y: visible; }
  .guide-panel { width: auto; min-width: 0; height: auto; overflow-y: visible; border-left: none; border-top: 1px solid var(--border); }
  
  .nav-left { flex-wrap: wrap; min-width: 0; max-width: 100%; }
  .chart-heading { flex-wrap: wrap; }
  .chart-heading-controls { flex-wrap: wrap; justify-content: flex-end; row-gap: 2px; }
}


.section {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
  background: var(--surface-warm);
  box-shadow: 0 1px 2px rgba(56, 50, 42, 0.05);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  cursor: pointer;
  user-select: none;
  background: inherit;
  border-radius: 8px;
  font-weight: 600;
  font-size: 10.5px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-header:hover { background: var(--bg-muted); }
.section-header .section-toggle { order: -1; margin-right: 4px; }

.section-header .hdr-actions, .section-header .section-summary {
  text-transform: none;
  letter-spacing: normal;
}
.section-summary {
  font-weight: normal;
  color: var(--text-muted);
  font-size: 10px;
  margin-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section-body {
  padding: 4px 8px 6px;
  --pad-section: 8px;
}

.sub-item { --pad-sub-item: 1px; }
.sub-item-body { --pad-sub-item-body: 8px; }
.date-age-retirement-input:not(.dar-no-wrapper) { --pad-wrap: 4px; }
.dar-pair { --pad-wrap: 4px; }
.quick-settings-body { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; }

.section.collapsed .quick-settings-body { display: none; }
.section.collapsed .section-body { display: none; }
.section-toggle { font-size: 16px; color: var(--text-muted); line-height: 1; transition: transform 0.15s; cursor: pointer; }
.section.collapsed .section-toggle { transform: rotate(-90deg); }


.sub-item { border: 1px solid transparent; border-bottom: 1px solid var(--border); border-radius: 4px; margin-bottom: 2px; background: transparent; }
.sub-item:last-child { border-bottom-color: transparent; }
.sub-item-header {
  display: flex; align-items: center; gap: 4px; padding: 3px 6px;
  cursor: pointer; font-size: 11px; user-select: none;
}
.sub-item-header:hover { background: var(--bg-muted); border-radius: 3px; }
.sub-item-header .sub-name { font-weight: 500; }
.sub-item-header .sub-info { color: var(--text-muted); font-size: 10px; margin-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.account-item .sub-item-header .sub-info { color: var(--text); font-weight: 600; }
.account-type-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  margin-right: 4px; flex-shrink: 0;
}
.sub-item-header .sub-actions { margin-left: auto; display: flex; gap: 3px; }
.sub-item-header .sub-toggle { font-size: 12px; color: var(--text-muted); transition: transform 0.15s; }
.sub-item.collapsed .sub-toggle { transform: rotate(-90deg); }
.sub-item-body { padding: 4px 8px 6px; font-size: 10px; color: var(--text-muted); line-height: 1.6; }
.sub-item.collapsed .sub-item-body { display: none; }


.section-header .hdr-btn { padding: 0 5px; font-size: 10px; line-height: 1; }
.section-header .hdr-btn-plus { padding: 0 5px; font-size: 12px; line-height: 1; }
.hdr-actions { margin-left: auto; display: flex; gap: 3px; margin-right: 6px; }


.field {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.field label {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 80px;
  white-space: nowrap;
}

.field label:has(input[type="checkbox"]),
.field label:has(input[type="radio"]) {
  white-space: normal;
  overflow-wrap: break-word;
}

.field input:not([type="checkbox"]):not([type="radio"]), .field select {
  flex: 1;
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 12px;
  min-width: 0;
  
  background-color: var(--surface);
  color: var(--text);
}

.field select { padding-right: 18px; }

.field.reinvest-destination-row {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin-bottom: 6px;
}
.field.reinvest-destination-row label {
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
}
.reinvest-destination-control-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(45, 95, 169, 0.15);
}
.field-error input, .field-error select { border-color: var(--danger); }

.month-and-year-of-birth-field { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.month-and-year-of-birth-input-row { display: flex; align-items: center; gap: 2px; min-width: 0; }
.month-and-year-of-birth-input[aria-invalid="true"] { border-color: var(--danger) !important; }
.month-and-year-of-birth-open-btn { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 12px; padding: 0 4px; }
.month-and-year-of-birth-error { color: var(--danger); font-size: 11px; margin-top: 2px; white-space: normal; }
.month-and-year-of-birth-popup {
  position: absolute; top: 100%; right: 0; z-index: 300; margin-top: 4px; width: 272px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18); padding: 8px;
}
.month-and-year-of-birth-popup-header { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.month-and-year-of-birth-popup-title { font-weight: 600; font-size: 12px; }
.month-and-year-of-birth-popup-prompt { margin: 6px 0 4px; font-size: 11px; color: var(--text-muted); }
.month-and-year-of-birth-year-grid, .month-and-year-of-birth-month-grid { display: flex; flex-direction: column; gap: 4px; }
.month-and-year-of-birth-grid-row { display: grid; gap: 4px; }
.month-and-year-of-birth-year-grid .month-and-year-of-birth-grid-row { grid-template-columns: repeat(5, 1fr); }
.month-and-year-of-birth-month-grid .month-and-year-of-birth-grid-row { grid-template-columns: repeat(4, 1fr); }
.month-and-year-of-birth-cell {
  width: 100%; padding: 6px 0; font: inherit; font-size: 12px; font-variant-numeric: tabular-nums;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer;
}
.month-and-year-of-birth-cell:hover:not([disabled]) { border-color: var(--primary); }
.month-and-year-of-birth-cell:focus-visible, .month-and-year-of-birth-cell:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.month-and-year-of-birth-cell.is-stored { background: var(--primary); border-color: var(--primary); color: #fff; }
.month-and-year-of-birth-cell[disabled] { opacity: 0.35; cursor: default; }
.field-error label { color: var(--danger); }


.btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.btn:hover { background: var(--bg-muted); }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); }
.btn-save:disabled { opacity: 0.4; cursor: default; }
.btn-save:disabled:hover { background: inherit; }
.btn-sm { padding: 2px 6px; font-size: 10px; }
.btn-danger { color: var(--danger); border-color: var(--danger); }

.advisor-fees-cost-figure { color: var(--danger); }
.advisor-fees-gain-figure { color: var(--success); }

.sub-item-header .sub-actions .btn { border-color: transparent; background: transparent; color: var(--primary); font-weight: 600; }
.sub-item-header .sub-actions .btn:hover { background: var(--primary-light); }
.sub-item-header .sub-actions .btn-danger { color: var(--danger); }
.sub-item-header .sub-actions .btn-danger:hover { background: #f7e4de; }
.sub-item-header .sub-actions .btn-save { background: var(--primary); color: #fff; border-color: var(--primary); }
.sub-item-header .sub-actions .btn-save:hover { background: var(--primary-deep); }
.sub-item-header .sub-actions .btn-save:disabled { background: var(--primary); }

.sub-item-header .sub-actions .row-save-button:disabled { color: var(--text-muted); cursor: default; }
.sub-item-header .sub-actions .row-save-button.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.sub-item-header .sub-actions .row-save-button.btn-primary:hover { background: var(--primary-deep); }
.sub-item.row-in-edit-mode { box-shadow: inset 3px 0 0 var(--primary); }


.summary-bar {
  display: flex;
  gap: 16px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
}
.summary-item { text-align: center; }
.summary-item .label { font-size: 10px; color: var(--text-muted); }
.summary-item .value { font-size: 14px; font-weight: 600; color: var(--primary); }


.scenario-selector {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 6px;
}
.scenario-selector select { flex: 1; padding: 3px 18px 3px 6px; font-size: 12px; } 


.notifications {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 4px 8px;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--danger);
}
.notifications:empty { display: none; }


.our-projection-fail-marker-disc { fill: var(--danger); }
.our-projection-fail-marker-cross { stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.our-projection-fail-marker:focus { outline: none; }
.our-projection-fail-marker:focus-visible .our-projection-fail-marker-hit-area { stroke: var(--danger); stroke-width: 1.5; }


.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px 8px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(56, 50, 42, 0.05);
}

.chart-heading > .chart-heading-controls { flex: 1 1 0; justify-content: flex-end; }

.chart-heading .chart-heading-detail {
  order: 1;
  flex-basis: 100%;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-muted);
}


.chart-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  font-size: 11px;
}
.chart-controls label { color: var(--text-muted); }
.chart-controls select, .chart-controls button { font-size: 11px; padding: 2px 6px; }
.chart-controls select { padding-right: 18px; } 
.chart-expand-btn { cursor: pointer; }


.chart-chrome-btn {
  padding: 1px 8px;
  border: 1px solid transparent; 
  border-radius: 999px;
  background: transparent;
  color: var(--primary-deep);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
}
.chart-chrome-btn:hover { background: var(--primary-light); }
.chart-chrome-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

.chart-chrome-btn.chart-chrome-btn-active { background: var(--primary-light); }

.chart-chrome-btn.chart-expand-btn { border-color: var(--pill-border-blue); background: var(--surface); padding: 1px 9px; }
.chart-chrome-btn.chart-expand-btn:hover { background: var(--primary-light); border-color: var(--primary-track); }
.chart-chrome-btn.chart-expand-btn.chart-chrome-btn-active { background: var(--primary-light); border-color: var(--primary-track); }
.chart-expand-icon { font-size: 9px; margin-right: 3px; }


.plot-area { position: relative; }
.chart-loading-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: chart-spinner-rotate 0.8s linear infinite;
}
#chart-container[data-chart-status="mc-running"] .chart-loading-spinner,
#chart-container[data-chart-status="mc-finalizing"] .chart-loading-spinner,
#chart-container[data-chart-status="p50-rendering"] .chart-loading-spinner {
  display: block;
}
@keyframes chart-spinner-rotate {
  to { transform: rotate(360deg); }
}


.tests-report-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.tests-report-loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: chart-spinner-rotate 0.8s linear infinite;
}


.chart-card[data-stale-while-updating="true"] {
  pointer-events: none;
}
.chart-card[data-stale-while-updating="true"] > :not(.chart-stale-updating-chip) {
  opacity: 0.45;
  filter: saturate(0.3);
}
.chart-stale-updating-chip {
  position: absolute;
  top: 4px;
  right: 8px;
  z-index: 5;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-deep);
  border: 1px solid var(--primary);
}
#chart-container[data-chart-status="mc-running"] .chart-scaffold-shimmer,
#chart-container[data-chart-status="mc-finalizing"] .chart-scaffold-shimmer,
#chart-container[data-chart-status="p50-rendering"] .chart-scaffold-shimmer {
  background: linear-gradient(100deg, #f3efe6 40%, #faf7ef 50%, #f3efe6 60%);
  background-size: 200% 100%;
  animation: chart-shimmer-sweep 1.6s ease-in-out infinite;
}
@keyframes chart-shimmer-sweep {
  from { background-position: 200% 0; }
  to { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  #chart-container[data-chart-status="mc-running"] .chart-scaffold-shimmer,
  #chart-container[data-chart-status="mc-finalizing"] .chart-scaffold-shimmer,
  #chart-container[data-chart-status="p50-rendering"] .chart-scaffold-shimmer {
    animation: none;
    background: #f6f2e9;
  }
}


.mc-progress-bar {
  display: none;
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 20px;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
#chart-container[data-chart-status="mc-running"] .mc-progress-bar,
#chart-container[data-chart-status="mc-finalizing"] .mc-progress-bar,
#chart-container[data-chart-status="p50-rendering"] .mc-progress-bar {
  display: block;
}
.mc-progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .mc-progress-bar-fill { transition: none; }
}


.plan-repair-held {
  margin: 24px;
  padding: 20px;
  border: 2px solid var(--danger);
  border-radius: 8px;
  background: #fef2f2;
}
.plan-repair-held-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--danger);
  margin-bottom: 14px;
}
.plan-repair-issue-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan-repair-issue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
}
.plan-repair-issue-text { flex: 1; }
.plan-repair-fix-btn { white-space: nowrap; }


@keyframes plan-repair-highlight-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
  20%, 60% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.55); }
}
.plan-repair-highlight-flash { animation: plan-repair-highlight-flash 1s ease-in-out 2; }


.item-list { list-style: none; }
.item-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.item-list li:last-child { border-bottom: none; }
.item-list .item-actions { display: flex; gap: 4px; }


.page-login, .page-register {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px;
  box-sizing: border-box;
}
.auth-form {
  width: 600px;
  max-width: 100%;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.auth-form h1 { font-size: 18px; margin-bottom: 16px; }
.auth-form .field label { font-size: 13px; }

form.account-credential-fields .field { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 2px; margin-bottom: 6px; }
form.account-credential-fields .field > label { flex: 0 0 auto; width: auto; min-width: 130px; white-space: nowrap; display: block; margin: 0; }
form.account-credential-fields .field > input:not([type="checkbox"]):not([type="radio"]) { flex: 0 1 260px; width: 260px; max-width: 100%; min-width: 0; padding: 6px 8px; }
form.account-credential-fields .field > .password-length-hint { flex: 0 0 auto; }
.auth-form .btn { width: 100%; margin-top: 12px; padding: 8px; }
.auth-form .auth-link { display: block; text-align: center; margin-top: 12px; font-size: 12px; color: var(--primary); }
.auth-error { color: var(--danger); font-size: 12px; margin-top: 8px; }

.password-length-hint { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.recovery-email-field { flex-wrap: wrap; }
.recovery-email-explanation { flex-basis: 100%; font-size: 11px; color: var(--text-muted); line-height: 1.4; margin-top: 2px; }

.auth-message { font-size: 13px; line-height: 1.5; margin-top: 8px; }
.auth-message.auth-message-error { color: var(--danger); }

@keyframes disclaimer-flash {
  0%, 50%, 100% { background: #fef2f2; box-shadow: 0 0 0 0 rgba(185, 28, 28, 0); }
  25%, 75% { background: #fecaca; box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.45); }
}
.disclaimer-flash { animation: disclaimer-flash 0.7s ease-in-out 2; }


.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
  padding: 12px;
}
.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
}
.account-card h3 { font-size: 13px; margin-bottom: 4px; }
.account-card .balance { font-size: 18px; font-weight: 600; color: var(--primary); }
.account-card .meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }


.wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.wizard-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 24px;
  width: 400px;
  max-width: 90vw;
}

.modal-dialog { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.modal-dialog[open] { display: flex; }
.modal-dialog::backdrop { background: rgba(0,0,0,0.4); }
.modal-card { background: var(--surface); border-radius: 8px; padding: 20px 24px 24px; box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.modal-header h2 { font-size: 16px; margin: 4px 0 0 0; }
.modal-dialog-fit-content { overflow-y: auto; }
.modal-dialog-fit-content > .modal-card { margin: auto; width: 420px; max-width: 90vw; }
.modal-dialog-large > .modal-card { margin: auto; width: 95vw; height: 92vh; display: flex; flex-direction: column; min-height: 0; }
.modal-dialog-large .modal-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.modal-close-x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 600 20px/1 var(--font-sans); cursor: pointer; }
.modal-close-x:hover { background: var(--surface-warm); }
.modal-close-x:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.settings-modal-section { border-top: 1px solid var(--border); padding: 10px 0; }
.settings-modal-section h3 { font-size: 12px; margin: 0 0 8px; color: var(--text); }
.settings-modal-chart-display-section:has(.settings-modal-chart-display-controls:empty) { display: none; }
.settings-modal-chart-display-controls, .settings-modal-button-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.settings-modal-form-status { font-size: 11px; color: var(--text-muted); }
.settings-modal-signed-in-as { font-size: 12px; color: var(--text-muted); margin: 0 0 8px; }
.wizard-card h2 { font-size: 16px; margin-bottom: 12px; }
:is(.wizard-card, .modal-card) .field { margin-bottom: 8px; }
:is(.wizard-card, .modal-card) .field label { display: block; margin-bottom: 2px; min-width: 0; }
:is(.wizard-card, .modal-card) .field input, :is(.wizard-card, .modal-card) .field select { width: 100%; padding: 6px 8px; }
:is(.wizard-card, .modal-card) .field select { padding-right: 20px; } 

:is(.wizard-card, .modal-card) .wizard-field-stacked { flex-direction: column; align-items: flex-start; gap: 2px; }
:is(.wizard-card, .modal-card) .wizard-field-stacked label { white-space: normal; }
:is(.wizard-card, .modal-card) .field input[type="checkbox"] { width: auto; }
.wizard-card .field label.wizard-checkbox-label { display: flex; align-items: center; gap: 6px; white-space: normal; margin-bottom: 0; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 16px; }

.wizard-card { max-height: 92vh; overflow-y: auto; }
.wizard-progress { margin-bottom: 12px; }
.wizard-step-counter { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.wizard-step-list { list-style: decimal inside; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 11px; color: var(--text-muted); }
.wizard-step-list .wizard-step-list-current { color: var(--primary); font-weight: 600; }
.wizard-step-note { font-size: 12px; margin: 0 0 10px; padding: 6px 8px; background: var(--surface-warm); border-radius: 4px; }
.wizard-import-offer { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }

.account-dividend-yield-field .account-dividend-yield-input,
:is(.wizard-card, .modal-card) .account-dividend-yield-field .account-dividend-yield-input { flex: none; width: 72px; }


.learn-layout { display: flex; gap: 0; max-width: 1100px; padding: 12px; }
.learn-subnav {
  position: sticky;
  top: 0;
  width: 160px;
  min-width: 160px;
  padding: 8px 0;
  align-self: flex-start;
}
.learn-subnav a {
  display: block;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 3px;
  margin-bottom: 2px;
}
.learn-subnav a:hover { background: var(--primary-light); color: var(--primary); }
.learn-subnav a.active { background: var(--primary-light); color: var(--primary); font-weight: 500; }
.learn-content { flex: 1; min-width: 0; }
.learn-content h2 { font-size: 16px; margin-bottom: 12px; }
.learn-content h3 { font-size: 13px; color: var(--text-muted); margin: 20px 0 8px; text-transform: uppercase; }
.learn-content table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 12px;
}
.learn-content table.data-table th,
.learn-content table.data-table td {
  padding: 4px 8px;
  border: 1px solid var(--border);
  text-align: left;
}
.learn-content table.data-table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text-muted);
}
.learn-content .citation {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}
.learn-content .citation a { color: var(--primary); text-decoration: none; }
.learn-content .citation a:hover { text-decoration: underline; }


.learn-tax-table-scroll { overflow-x: auto; }
.learn-content table.learn-tax-table { border-collapse: collapse; margin-bottom: 12px; }
.learn-content table.learn-tax-table th,
.learn-content table.learn-tax-table td { padding: 4px 6px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.learn-content table.learn-tax-table a { color: var(--primary); overflow-wrap: anywhere; }
.learn-tax-sources-cell { min-width: 260px; }
.learn-tax-source { margin-bottom: 3px; }
.learn-tax-as-of { color: var(--text-muted); }
.learn-tax-figure-label { display: inline-block; padding: 0 4px; border-radius: 3px; background: #fef3c7; color: #92400e; font-weight: 600; }
.learn-tax-state-notes { font-size: 11px; line-height: 1.5; margin: 4px 0; }
.learn-tax-state-notes summary { cursor: pointer; font-weight: 600; }
.learn-tax-state-notes ul { margin: 2px 0 4px 16px; }


.alloc-link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline dotted;
}


.chart-1-heading-run-size[data-tooltip] {
  cursor: help;
  border-bottom: 1px dotted var(--text-muted);
}






.system-default { background-color: #e8f0fa !important; color: #7d8aa5 !important; }


.plan-inherited { background-color: #f7ebd3 !important; color: #6d5613 !important; box-shadow: inset 3px 0 0 #c8912b; }
.plan-inherited input, .plan-inherited select { background-color: #f7ebd3 !important; color: #6d5613 !important; box-shadow: none; }


.tracking-other-field { background-color: #ddeee2 !important; color: #1d5f38 !important; }


.scenario-deleted { opacity: 0.55; }
.scenario-deleted .sub-name, .scenario-deleted .sub-info { text-decoration: line-through; }


.orphan-target { border: 2px solid var(--danger) !important; background-color: #fef2f2 !important; }


.tax-bracket-item.tax-bracket-overlap,
.sub-item.tax-bracket-overlap { border: 2px solid var(--danger) !important; background-color: #fef2f2 !important; }

.tb-start-locked, .tb-end-locked { font-weight: 600; color: var(--text); }


.section.plan-inherited { background-color: #f7ebd3 !important; }
.section.plan-inherited .section-header { background-color: #f7ebd3 !important; }
.section.plan-inherited .section-view { color: #6d5613; }
.section.plan-inherited .section-body { background-color: #f7ebd3; }
.sub-item.plan-inherited { background-color: #f7ebd3 !important; }
.sub-item.plan-inherited .sub-item-body { color: #6d5613; }
.sub-item.plan-inherited .sub-item-header .sub-name,
.sub-item.plan-inherited .sub-item-header .sub-info { color: #6d5613; }
input.plan-inherited, select.plan-inherited { background-color: #f7ebd3 !important; color: #6d5613 !important; }


.notice-amber {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--notice-border);
  border-left: 3px solid #c8912b;
  border-radius: 6px;
  background: var(--notice-bg);
  color: var(--notice-text);
  font-size: 12px;
  line-height: 1.45;
}
.notice-amber strong { color: #5a470e; }


.panel-input { font-size: 11px !important; }
.panel-input-sm { font-size: 11px !important; width: 60px; }
.panel-input-md { font-size: 11px !important; width: 80px; }


.section-view-text { font-size: 10px; line-height: 1.8; }


.text-annotation { font-size: 9px; color: var(--text-muted); }
.text-hint { font-size: 10px; color: var(--text-muted); }


.empty-message { font-size: 10px; color: var(--text-muted); padding: 4px 0; }


.legend-badge { padding: 1px 6px; border-radius: 2px; display: inline-block; min-width: 50px; text-align: center; }


.plan-select { padding: 3px 18px 3px 6px; font-size: 11px; border: 1px solid var(--border); border-radius: 6px; } 


.btn-xs { font-size: 9px; padding: 1px 4px; }


.scenario-row { display: flex; gap: 4px; margin-bottom: 6px; align-items: center; }


.account-color-bar { display: flex; flex-shrink: 0; }
.account-color-bar > div { width: 3px; }
.account-item { display: flex; overflow: hidden; }
.account-content { flex: 1; min-width: 0; }


.badge-sm { font-size: 9px; padding: 1px 4px; border-radius: 3px; }


.info-tip { cursor: pointer; color: var(--text-muted); font-size: 8px; border: 1px solid var(--border); border-radius: 50%; width: 11px; height: 11px; display: inline-flex; align-items: center; justify-content: center; }


.wo-item { display: flex; align-items: center; gap: 4px; padding: 2px 0; }
.wo-item-label { flex: 1; }
.wo-btn { padding: 0 4px; font-size: 9px; line-height: 1; }


.field-separator { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }


.ss-person { margin-bottom: 6px; }
.ss-person-name { font-size: 10px; font-weight: 500; margin-bottom: 2px; }


.effective-rate { color: var(--text-muted); font-size: 9px; }


.financial-estimate-default-marker { color: #7d8aa5; font-size: 9px; font-style: italic; }
.financial-estimate-use-default-button { border: none; background: none; padding: 0; color: var(--primary); font-size: 9px; cursor: pointer; }
.financial-estimate-use-default-button:hover { text-decoration: underline; }
.financial-estimate-default-marker[hidden], .financial-estimate-use-default-button[hidden] { display: none; }
.financial-estimates-following-the-default { color: var(--text-muted); font-size: 10px; }


.field.financial-estimate-return-row { flex-wrap: nowrap; gap: 4px; }
.field.financial-estimate-return-row label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.field.financial-estimate-return-row input.financial-estimate-narrow-input:not([type="checkbox"]):not([type="radio"]) { flex: 0 0 auto; box-sizing: border-box; width: 44px; padding: 2px 4px; -moz-appearance: textfield; appearance: textfield; }
.field.financial-estimate-return-row input.financial-estimate-narrow-input::-webkit-inner-spin-button,
.field.financial-estimate-return-row input.financial-estimate-narrow-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.financial-estimate-standard-deviation-label { color: var(--text-muted); font-size: 10px; cursor: help; }
.financial-estimate-return-row .eff-rate { white-space: nowrap; cursor: help; }
.financial-estimate-return-row .financial-estimate-use-default-button { font-size: 12px; }
.financial-estimate-standard-deviation-error { color: var(--danger, #b42318); font-size: 10px; margin: 0 0 3px; }
.financial-estimate-standard-deviation-error[hidden] { display: none; }


.create-modal-options { display: flex; gap: 12px; }
.create-option { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 16px; cursor: pointer; }
.create-option-scenario { border-left: 4px solid #c8912b; }
.create-option-plan { border-left: 4px solid var(--primary); }
.create-option-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.create-field { margin-bottom: 8px; }
.create-input { font-size: 12px; width: 100%; }
.create-select { font-size: 12px; }
.create-radio-group { display: flex; gap: 8px; margin-bottom: 8px; }
.create-radio-label { font-size: 12px; }
.import-textarea { width: 100%; height: 120px; font-family: monospace; font-size: 10px; border: 1px solid var(--border); border-radius: 4px; padding: 6px; }


.share-plan-sources { display: flex; gap: 12px; flex-wrap: wrap; }
.share-plan-names-coming { font-size: 12px; color: var(--text-muted); }
.share-plan-names-list { font-size: 12px; margin: 6px 0 0; }
.share-plan-names-list dt { font-weight: 600; margin-top: 6px; }
.share-plan-names-list dd { margin-left: 12px; margin-bottom: 4px; }

.share-plan-names-list .share-plan-name-field { width: 100%; box-sizing: border-box; }
.share-plan-names-list .share-plan-name-field-error:empty { display: none; }
.share-plan-names-saved { font-size: 12px; color: var(--text-muted); margin-right: 8px; align-self: center; }
.draft-share-plan-label { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--primary); color: var(--primary); white-space: nowrap; }
.shared-plan-link-row { display: flex; gap: 6px; align-items: center; margin: 4px 0; }
.shared-plan-link-row .create-input { flex: 1; min-width: 0; }
.my-shared-plans-list { list-style: none; margin: 0; padding: 0; }
.my-shared-plan { border-top: 1px solid var(--border); padding: 8px 0; }
.my-shared-plan-date { font-size: 11px; color: var(--text-muted); }
.my-shared-plan-delete-confirm { font-size: 12px; margin-top: 4px; }
.delete-account-shared-plans { font-size: 12px; margin-bottom: 8px; }


.alloc-container { border: 1px solid var(--border); border-radius: 4px; padding: 6px; margin-bottom: 6px; }
.alloc-header { font-size: 11px; font-weight: 500; margin-bottom: 4px; }
.alloc-error { color: var(--danger); font-size: 10px; display: none; margin-bottom: 4px; }


.fin-description { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }
.fin-note { margin-top: 4px; font-size: 9px; color: var(--text-muted); }
.fin-source { margin-top: 2px; }
.fin-source a { color: var(--primary); font-size: 10px; }


.wiz-import-textarea { width: 100%; height: 200px; font-family: monospace; font-size: 10px; border: 1px solid var(--border); border-radius: 4px; padding: 6px; }


.reset-btn-container { margin-top: 8px; text-align: center; }
.reset-btn { font-size: 10px; color: var(--text-muted); }


.modal-buttons { display: flex; gap: 8px; margin-top: 12px; }


.advisor-fee-bands { border-collapse: collapse; margin: 8px 0; width: 100%; table-layout: fixed; }
.advisor-fee-bands th { text-align: left; font-weight: 600; font-size: 12px; padding: 2px 4px 2px 0; }
.advisor-fee-bands th:last-child { width: 64px; }
.advisor-fee-bands td { padding: 2px 4px 2px 0; }
.advisor-fee-bands input { width: 100%; min-width: 0; box-sizing: border-box; }
.advisor-fee-firm-notes { margin: 6px 0; padding-left: 18px; font-size: 12px; color: var(--text-muted); }
.advisor-fee-choice { border: none; padding: 0; margin: 10px 0; }
.advisor-fee-choice legend { font-weight: 600; font-size: 13px; padding: 0; }
.advisor-fee-choice label { display: block; font-size: 13px; }
.advisor-managed-accounts { list-style: none; padding: 0; margin: 6px 0; }
.advisor-managed-accounts li { font-size: 13px; padding: 2px 0; }
.advisor-fee-problem { color: var(--danger); font-weight: 600; }

.advisor-fee-accounts-not-included { color: var(--danger); font-size: 13px; margin: 6px 0; }

.managed-section-delete-row { display: flex; justify-content: flex-end; margin-bottom: 4px; }

.managed-in-the-other-section-note { color: var(--text-muted); font-size: 12px; }

.managed-section-in-place-buttons { display: flex; gap: 8px; margin-top: 10px; }


.residency-section { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.residency-section [hidden], #wizard [hidden] { display: none !important; }
.residency-heading { font-weight: 600; font-size: 12px; margin-bottom: 4px; }
.residency-move-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0; font-size: 12px; }
.residency-move-row .residence-move-year { width: 64px; }
.residency-move-row.scenario-deleted .residency-deleted-move-text { text-decoration: line-through; color: var(--text-muted); }
.residency-buttons { display: flex; gap: 6px; margin-top: 6px; }
.residency-problem { color: var(--danger); font-size: 11px; font-weight: 600; flex-basis: 100%; margin: 2px 0; }


.wo-section { margin-top: 6px; border-top: 1px solid var(--border); padding-top: 4px; }
.wo-label { font-size: 10px; font-weight: 500; margin-bottom: 3px; }
.wo-list { font-size: 10px; }

.mc-progress {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
  padding: 2px 4px;
}

.mc-progress:empty { display: none; }




.dar-pill-group { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.dar-pill {
  padding: 2px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}
.dar-pill:hover { border-color: var(--primary-track); color: var(--primary-deep); }
.dar-pill.active { background: var(--primary-light); border-color: var(--primary-track); color: var(--primary-deep); font-weight: 600; }


.dar-pair-toggle {
  display: flex; align-items: center; gap: 4px;
  cursor: pointer; user-select: none;
  font-size: 10px; color: var(--text-muted);
}
.dar-pair-toggle:hover { color: var(--primary-deep); }
.dar-pair-toggle .dar-pair-caret { transition: transform 0.15s; font-size: 9px; line-height: 1; }
.dar-pair.dar-collapsed .dar-pair-caret { transform: rotate(-90deg); }
.dar-pair.dar-collapsed .date-age-retirement-input { display: none !important; }
.dar-pair-toggle-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }


.mc-btn {
  font-size: 9px; padding: 2px 8px; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--primary); border-radius: 999px;
  background: var(--surface); color: var(--primary); font-weight: 600;
}
.mc-btn:hover { background: var(--primary-light); }

.mc-btn[aria-disabled="true"] { cursor: default; border-color: var(--border-strong); color: var(--text-muted); background: var(--surface); opacity: 0.7; }
.mc-btn[aria-disabled="true"]:hover { background: var(--surface); }

.mc-btn:disabled, .mc-btn:disabled:hover { cursor: default; border-color: var(--border-strong); color: var(--text-muted); background: var(--surface); opacity: 0.7; }

.mc-progress .projection-run-failure-message { font-size: 12px; color: var(--danger); margin-right: 8px; }
.mc-progress #retry-calculation { font-size: 11px; padding: 3px 10px; }


.strategy-preset-btn {
  padding: 3px 10px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 11px;
}
.strategy-preset-btn:hover { border-color: var(--primary-track); }
.strategy-preset-btn.strategy-preset-active { background: var(--primary-light); border-color: var(--primary); color: var(--primary-deep); font-weight: 600; }
.strategy-preset-btn.strategy-preset-inactive { opacity: 0.55; cursor: not-allowed; color: var(--text-muted); }

.strategy-account-tile {
  flex: 1 1 140px; min-width: 0; max-width: 100%;
  padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--text-muted); cursor: pointer;
  font-size: 11px; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.strategy-account-tile:hover { border-color: var(--primary-track); }
.strategy-account-tile[data-selected="1"] { color: var(--text); font-weight: 600; }

.strategy-account-tile::before { content: '\2715\00a0'; color: #9a3412; font-weight: 600; }
.strategy-account-tile[data-selected="1"]::before { content: '\2713\00a0'; color: var(--primary-deep); }






.learn-layout:has(.tax-flow-section) { max-width: none !important; }

.tax-flow-section {
  background: #faf7f2;
  color: #171513;
  padding: 28px 32px 40px;
  border-radius: 14px;
  font-family: 'Geist', system-ui, sans-serif;
  
  width: 1382px;
  box-sizing: border-box;
}

.tax-flow-section .tf-kicker {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b6660;
  font-weight: 500;
}

.tax-flow-section .tf-header { margin-bottom: 24px; }
.tax-flow-section .tf-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 56px;
  line-height: 1.02;
  margin: 8px 0 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.tax-flow-section .tf-lead { font-size: 15px; color: #4a4540; max-width: 880px; line-height: 1.5; margin: 0 0 8px; }
.tax-flow-section .tf-disclaimer { font-size: 13px; color: #6b6660; font-style: italic; max-width: 880px; margin: 0 0 12px; }
.tax-flow-section .tf-disclaimer strong { color: #171513; font-style: normal; font-weight: 500; }
.tax-flow-section .tf-assumptions {
  margin-top: 8px;
  border: 1px solid #e8e3da;
  border-radius: 10px;
  padding: 8px 14px;
}
.tax-flow-section .tf-assumptions summary { cursor: pointer; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #6b6660; padding: 4px 0; }
.tax-flow-section .tf-assumptions-body { padding: 8px 0; font-size: 13px; color: #4a4540; line-height: 1.5; }
.tax-flow-section .tf-assumptions-body h3 { font-family: 'Instrument Serif', Georgia, serif; font-size: 17px; font-style: italic; margin: 12px 0 6px; color: #171513; font-weight: 400; }
.tax-flow-section .tf-assumptions-body ul { margin: 0 0 8px 16px; padding: 0; }
.tax-flow-section .tf-assumptions-body li { margin-bottom: 4px; }


.tax-flow-section .tf-scenario {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
  align-items: stretch;
}
.tax-flow-section .tf-panel {
  background: #fbf9f4;
  border: 1px solid #e8e3da;
  border-radius: 14px;
  padding: 18px 22px;
}
.tax-flow-section .tf-panel-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b6660;
  margin-bottom: 14px;
}


.tax-flow-section .tf-controls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tax-flow-section .tf-section-kicker { margin-bottom: 8px; }
.tax-flow-section .tf-slider-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: #171513;
}
.tax-flow-section .tf-val { font-family: 'Geist Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; font-weight: 600; }
.tax-flow-section .tf-slider {
  width: 100%; margin: 4px 0 6px;
  -webkit-appearance: none; appearance: none;
  height: 4px; background: #e0dccf; border-radius: 2px; outline: none;
}
.tax-flow-section .tf-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: #1f5238; border: 2px solid #fbf9f4; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  cursor: pointer;
}
.tax-flow-section .tf-slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #1f5238; border: 2px solid #fbf9f4; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  cursor: pointer;
}

.tax-flow-section .tf-segmented-block { margin-bottom: 14px; }
.tax-flow-section .tf-segmented-label { font-size: 13px; color: #171513; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.tax-flow-section .tf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.tax-flow-section .tf-segmented {
  display: flex; gap: 2px; padding: 2px;
  background: #efece4; border: 1px solid #e8e3da; border-radius: 8px;
}
.tax-flow-section .tf-seg-btn {
  flex: 1; min-width: 0; padding: 4px 6px;
  background: transparent; border: 0; border-radius: 6px;
  font-size: 11px; font-variant-numeric: tabular-nums; color: #6b6660; cursor: pointer;
}
.tax-flow-section .tf-seg-btn.active {
  background: #ffffff; color: #171513; font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}


.tax-flow-section .tf-summary-table {  }
.tax-flow-section .tf-summary-table-el {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.tax-flow-section .tf-sum-col-show { width: 1%; }
.tax-flow-section .tf-sum-col-name { width: 100%; }
.tax-flow-section .tf-sum-col-num  { width: 1%; white-space: nowrap; }
.tax-flow-section .tf-sum-show { text-align: center; padding-right: 6px; }
.tax-flow-section .tf-sum-show-h {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #6b6660; text-align: center; font-weight: 400;
}
.tax-flow-section .tf-sum-name-h {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #6b6660; text-align: left; font-weight: 400;
}
.tax-flow-section .tf-show-toggle {
  cursor: pointer;
  
  accent-color: #1f5238;
  width: 14px;
  height: 14px;
  margin: 0;
  vertical-align: middle;
}
.tax-flow-section .tf-summary-table-el th,
.tax-flow-section .tf-summary-table-el td {
  padding: 4px 0 4px 24px;
  vertical-align: baseline;
}
.tax-flow-section .tf-summary-table-el th:first-child,
.tax-flow-section .tf-summary-table-el td:first-child { padding-left: 0; }
.tax-flow-section .tf-summary-table-el thead th {
  border-bottom: 1px solid #e8e3da;
  padding-bottom: 6px;
}
.tax-flow-section .tf-sum-num-h {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #6b6660; text-align: right; font-weight: 400;
}
.tax-flow-section .tf-sum-bucket-row td {
  padding-top: 14px; padding-bottom: 4px;
  font-size: 17px; line-height: 1.3;
}
.tax-flow-section .tf-sum-bucket-row em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.tax-flow-section .tf-sum-tag { font-size: 11px; color: #6b6660; font-style: italic; margin-left: 4px; }
.tax-flow-section .tf-sum-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-size: 15px; line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
}
.tax-flow-section .tf-sum-num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 600;
  text-align: right; white-space: nowrap;
}
.tax-flow-section .tf-sum-tax-on { color: #8a2f2f; }


.tax-flow-section .tf-chart-area { position: relative; padding-top: 46px; }
.tax-flow-section .tf-chart-area::before {
  
  content: '';
  position: absolute;
  top: 24px;
  left: 400px;
  width: 540px;
  bottom: 0;
  background: #f3eee0;
  border: 1px solid #d3c9b8;
  border-radius: 12px;
  z-index: 0;
  pointer-events: none;
}
.tax-flow-section .tf-chart-area::after {
  
  content: 'Inside the account';
  position: absolute;
  top: 11px;
  left: 670px;        
  transform: translateX(-50%);
  background: #faf7f2;
  border: 1px solid #d3c9b8;
  border-radius: 999px;
  padding: 4px 18px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1;
  color: #171513;
  z-index: 2;
  pointer-events: none;
}
.tax-flow-section .tf-chart-area .tf-chart-grid,
.tax-flow-section .tf-chart-area .tf-bucket-section { position: relative; z-index: 1; }


.tax-flow-section .tf-chart-grid {
  display: grid;
  grid-template-columns: 220px repeat(5, 180px) 18px 180px;
  column-gap: 0;
  align-items: end;
}
.tax-flow-section .tf-chart-header { border-bottom: 1px solid #e8e3da; padding-bottom: 8px; margin-bottom: 16px; }
.tax-flow-section .tf-stage-h { padding: 0 8px; }
.tax-flow-section .tf-stage-label { font-family: 'Instrument Serif', Georgia, serif; font-size: 22px; font-weight: 400; color: #171513; margin-top: 2px; line-height: 1.1; }
.tax-flow-section .tf-key-header { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #6b6660; padding-left: 12px; }

.tax-flow-section .tf-bucket-section { margin-bottom: 20px; }
.tax-flow-section .tf-bucket-header { padding: 14px 0 8px; }
.tax-flow-section .tf-bucket-header .tf-kicker { white-space: pre-line; }
.tax-flow-section .tf-bucket-title { font-family: 'Instrument Serif', Georgia, serif; font-size: 30px; font-weight: 400; font-style: normal; margin-top: 4px; line-height: 1.05; }

.tax-flow-section .tf-account-row {
  padding: 12px 0;
  border-top: 1px solid #e8e3da;
  align-items: start;
}
.tax-flow-section .tf-account-row:first-of-type { border-top: 0; }
.tax-flow-section .tf-account-name { font-family: 'Instrument Serif', Georgia, serif; padding-right: 12px; font-size: 21px; font-style: normal; font-weight: 400; line-height: 1.15; }
.tax-flow-section .tf-account-note { font-family: 'Geist', system-ui, sans-serif; font-size: 12px; color: #6b6660; font-style: normal; margin-top: 6px; line-height: 1.4; }
.tax-flow-section .tf-stage-cell { padding: 0 8px; }
.tax-flow-section .tf-stage-cell svg { display: block; }
.tax-flow-section .tf-stage-foot {
  
  width: 120px;
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  column-gap: 2px;
  row-gap: 1px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px; font-variant-numeric: tabular-nums; color: #4a4540;
  padding-top: 4px;
}
.tax-flow-section .tf-foot-label { text-align: right; color: #6b6660; }
.tax-flow-section .tf-foot-colon { color: #6b6660; }
.tax-flow-section .tf-foot-value { text-align: right; }
.tax-flow-section .tf-foot-value.on { color: #8a2f2f; font-weight: 600; }

.tax-flow-section .tf-bucket-divider {
  border-top: 1px solid #e8e3da;
  margin: 16px 0 8px;
  position: relative;
  z-index: 1;
}


.account-type-lozenges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; min-width: 0; }
.account-type-lozenge {
  display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid transparent;
  font-family: 'Geist', system-ui, sans-serif; font-size: 11px; font-weight: 600; font-style: normal;
  line-height: 1.5; white-space: nowrap;
}
.account-type-lozenge-rmd { background: #fde3d6; border-color: #f0b79b; color: #9a3412; }
.account-type-lozenge-no-rmd { background: #eeede7; border-color: #dcd8cd; color: #6b6660; }
.account-type-lozenge-roth-conversion-eligible { background: #dbeafe; border-color: #b6cdf3; color: #1e40af; }

.tax-flow-section .tf-key-cell { background: #eeede7; border-radius: 8px; padding: 10px 12px; }
.tax-flow-section .tf-key-row { display: flex; align-items: center; gap: 8px; font-size: 11px; margin-bottom: 4px; color: #171513; }
.tax-flow-section .tf-key-row:last-child { margin-bottom: 0; }
.tax-flow-section .tf-key-swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.tax-flow-section .tf-key-label { line-height: 1.2; }


@media print {
  @page { size: letter landscape; margin: 0.4in; }

  
  html, body { height: auto; overflow: visible; }
  main { height: auto; overflow: visible; }

  .top-nav,
  .learn-subnav { display: none !important; }
  .learn-layout { max-width: none; padding: 0; display: block; }
  .learn-content { padding: 0; min-width: 0; }

  
  .tax-flow-section {
    background: transparent !important;
    zoom: 0.6;
  }

  
  .tax-flow-section .tf-assumptions > *:not(summary) { display: block !important; }
  .tax-flow-section .tf-assumptions summary { display: none !important; }

  
  .tax-flow-section .tf-controls { display: none !important; }
  .tax-flow-section .tf-scenario { display: block; }
  .tax-flow-section .tf-summary { max-width: none; }

  
  .tax-flow-section .tf-bucket-section { break-inside: avoid; }

  
  .tax-flow-section,
  .tax-flow-section * {
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }
}


#tax-bracket-panel .tax-bracket-learn { display: none; }
#tax-bracket-panel.in-edit-mode .tax-bracket-learn { display: block; }




.build-version-indicator {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: default;
  user-select: none;
}
.build-version-indicator::before { content: "build "; opacity: .7; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.build-version-indicator:hover { color: var(--text, currentColor); }

.build-version-indicator.build-version-indicator-build-failed,
.build-version-indicator.build-version-indicator-build-failed:hover { color: #b91c1c; }

@media print {
  
  .build-version-indicator { display: none !important; }
}


.top-nav-homepage {
  --homepage-text-secondary: #5a5247;
  background: var(--surface-warm);
  padding: 14px max(24px, calc((100% - 1072px) / 2));
  gap: 16px;
}
.top-nav-homepage .nav-brand { gap: 12px; }
.top-nav-homepage .nav-brand-logo { width: 40px; height: 40px; border-radius: 8px; }
.top-nav-homepage .nav-brand-name { font-size: 20px; }
.top-nav-homepage .nav-brand-release-stage { font-size: 11px; color: var(--primary); margin-left: 3px; }
.homepage-nav-links { flex-wrap: wrap; gap: 20px; }
.homepage-nav-links .nav-link { padding: 0; font-size: 15px; font-weight: 400; color: var(--primary); border-radius: 0; }
.homepage-nav-links .nav-link:hover { background: none; color: var(--primary-deep); }

.homepage-main-button, .homepage-secondary-button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none;
}
.homepage-main-button { background: var(--primary); color: #fff; }
.homepage-main-button:hover { background: var(--primary-deep); color: #fff; }
.homepage-secondary-button { background: var(--surface, #fff); color: var(--primary-deep); box-shadow: inset 0 0 0 2px var(--primary); }
.homepage-secondary-button:hover { background: var(--primary-light); color: var(--primary-deep); }
.homepage-call-button-large { min-height: 48px; padding: 0 24px; font-size: 17px; }
.homepage-call-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.homepage-try-it-now-link { font-size: 16px; font-weight: 600; color: var(--primary-deep); text-decoration: underline; }
.homepage-try-it-now-link:hover { color: var(--primary); }

.try-it-now-small-print { font-size: 12px; color: var(--text-muted); margin: 8px 0 0 0; padding-left: 18px; line-height: 1.5; }

.homepage { --homepage-text-secondary: #5a5247; color: var(--text); font-size: 16px; line-height: 1.5; }
.homepage h1, .homepage h2, .homepage h3, .homepage p, .homepage figure { margin: 0; }
.homepage h2 { font-size: 32px; font-weight: 700; line-height: 1.2; }
.homepage h3 { font-weight: 600; line-height: 1.3; }
.homepage a:not(.homepage-main-button, .homepage-secondary-button) { color: var(--primary); }
.homepage a:not(.homepage-main-button, .homepage-secondary-button):hover { color: var(--primary-deep); }
.homepage-band { max-width: 1120px; margin: 0 auto; padding: 64px 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 28px; }

.homepage .homepage-account-deleted-notice { max-width: 1120px; margin: 24px auto 0; padding: 12px 24px; box-sizing: border-box; background: var(--surface-warm); border: 1px solid var(--border); border-radius: 8px; font-weight: 600; }

.browser-storage-clear-notice { position: sticky; top: 0; z-index: 1000; margin: 0; padding: 12px 24px; background: var(--surface-warm); border-bottom: 2px solid var(--danger); font-weight: 600; }
.homepage-band-warm { background: var(--surface-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.homepage-hero { padding: 72px 24px 48px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 48px; }
.homepage-hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.homepage-hero h1 { font-size: 46px; line-height: 1.1; font-weight: 700; letter-spacing: -0.5px; }
.homepage-lead { font-size: 19px; color: var(--homepage-text-secondary); }
.homepage-call-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.homepage-free-pill { font-size: 15px; font-weight: 600; color: var(--primary-deep); background: var(--primary-light); padding: 6px 12px; border-radius: 999px; }
.homepage-hero-screenshot { flex: 1 1 480px; min-width: 0; }

.homepage-screenshot-frame { background: var(--surface-warm); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; line-height: 0; }
.homepage-screenshot { display: block; width: 100%; height: auto; }

.homepage-screenshot-button { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; }
.homepage-screenshot-button:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }

.homepage-screenshot-button, .homepage-screenshot-modal-frame { position: relative; }
.homepage-screenshot-not-taken > img { visibility: hidden; }

.homepage-screenshot-not-taken > img.homepage-screenshot:not([width]) { aspect-ratio: 1200 / 806; }

.homepage-screenshot-sizes-error { display: flex; align-items: center; justify-content: center; aspect-ratio: 1200 / 806; padding: 16px; text-align: center; font: 500 16px/1.4 var(--font-sans); color: var(--danger); background: var(--danger-bg); border: 2px solid var(--danger); border-radius: 12px; }
.homepage-screenshot-not-taken-message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; line-height: 1.4; font: 500 16px/1.4 var(--font-sans); color: var(--text-secondary, var(--text)); background: var(--surface-warm); border: 1px dashed var(--border-strong); border-radius: inherit; pointer-events: none; }

.homepage-screenshot-modal[open] { align-items: center; justify-content: center; }
.homepage-screenshot-modal::backdrop { background: rgba(20, 17, 12, 0.85); }
.homepage-screenshot-modal-image { --screenshot-width-over-height-shown: var(--screenshot-width-over-height, calc(1200 / 806)); display: block; width: min(95vw, calc(95vh * var(--screenshot-width-over-height-shown))); height: auto; aspect-ratio: var(--screenshot-width-over-height-shown); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); cursor: default; }
.homepage-screenshot-modal-close { position: fixed; top: 12px; right: 12px; }

.homepage-screenshot-modal-frame { position: relative; line-height: 0; }
.homepage-screenshot-modal-step { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0 0 4px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 600 30px/1 var(--font-sans); cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); display: flex; align-items: center; justify-content: center; }
.homepage-screenshot-modal-step:hover { background: var(--surface-warm); }
.homepage-screenshot-modal-step:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.homepage-screenshot-modal-previous { left: 8px; }
.homepage-screenshot-modal-next { right: 8px; }
html.homepage-screenshot-modal-open main { overflow: hidden; }

.homepage-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.homepage-step { display: flex; flex-direction: column; gap: 10px; }
.homepage-step-number { font-size: 14px; font-weight: 700; color: var(--primary); }
.homepage-step h3 { font-size: 20px; }
.homepage-step p, .homepage-feature p { color: var(--homepage-text-secondary); }

.homepage-angle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.homepage-angle { display: flex; flex-direction: column; gap: 10px; }
.homepage-angle figcaption { font-weight: 600; }


.homepage-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 28px 40px; }
.homepage-feature { display: flex; flex-direction: column; gap: 6px; }
.homepage-feature h3 { font-size: 18px; }

.homepage-checks-heading { display: flex; flex-direction: column; gap: 10px; }
.homepage-checks-heading p { font-size: 17px; color: var(--homepage-text-secondary); }
.homepage-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.homepage-check { background: var(--surface-warm); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.homepage-check h3 { font-size: 17px; }
.homepage-check p { font-size: 15px; color: var(--homepage-text-secondary); }

.homepage-two-lists { flex-direction: row; flex-wrap: wrap; gap: 48px; }
.homepage-list-column { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.homepage-list-column h2 { font-size: 28px; }
.homepage-list-column ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }

.homepage-closing-call { padding: 72px 24px; align-items: center; gap: 20px; text-align: center; }
.homepage-free-note { font-size: 15px; color: var(--homepage-text-secondary); }

.homepage-footer { border-top: 1px solid var(--border); }
.homepage-footer-row { padding: 24px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--homepage-text-secondary); }
.homepage-footer-links { display: flex; gap: 20px; }


@media (max-width: 600px) {
  .homepage-hero { padding-top: 40px; }
  .homepage-hero h1 { font-size: 34px; }
  .homepage h2 { font-size: 26px; }
  .homepage-list-column h2 { font-size: 24px; }
  .homepage-band { padding-top: 44px; padding-bottom: 44px; }
}
