/* The original navy palette is dark mode. Light mode overrides surfaces only. */
#theme-toggle{min-height:44px;border:1px solid var(--line);border-radius:12px;white-space:nowrap;color:var(--muted);padding:8px 12px}
#theme-toggle[aria-pressed=true]{color:var(--mint);background:#17313d}
.header-actions{flex-wrap:wrap;justify-content:flex-end}
html[data-theme=light]{color-scheme:light;--bg:#f3f6fa;--card:#fff;--line:#d6e0eb;--muted:#53677c;--mint:#08785b;--blue:#1767ce}
html[data-theme=light] body{color:#182c40}
html[data-theme=light] .card,html[data-theme=light] dialog{background:#fff;color:#182c40;border-color:var(--line);box-shadow:0 8px 26px #2443620a}
html[data-theme=light] .hero,html[data-theme=light] .credit-score-hero,html[data-theme=light] .credit-focus-card,html[data-theme=light] .credit-account-home,html[data-theme=light] .debt-graph-card,html[data-theme=light] .credit-learn-card{background:linear-gradient(130deg,#e3f3ee,#eaf2ff)}
html[data-theme=light] button{background:#e4edf6;color:#24445f}
html[data-theme=light] .primary{background:var(--blue);color:white}
html[data-theme=light] .quiet{background:transparent;color:var(--muted)}
html[data-theme=light] input,html[data-theme=light] select{background:#fff;color:#182c40;border-color:#aabdcf}
html[data-theme=light] label,html[data-theme=light] .aside-note strong,html[data-theme=light] .credit-score-value,html[data-theme=light] .debt-graph-total strong{color:#243b50}
html[data-theme=light] nav a.active,html[data-theme=light] .selected,html[data-theme=light] .category-choice:has(input:checked){background:#dceaf9;color:#145ca8}
html[data-theme=light] .notice,html[data-theme=light] .credit-example,html[data-theme=light] .credit-welcome,html[data-theme=light] .credit-expanded,html[data-theme=light] .score-change,html[data-theme=light] .credit-checks article,html[data-theme=light] .credit-empty-guide,html[data-theme=light] .credit-panel .credit-card,html[data-theme=light] .debt-point-value,html[data-theme=light] .credit-sections{background:#eaf1f7;border-color:var(--line);color:#334e65}
html[data-theme=light] .credit-welcome strong,html[data-theme=light] summary,html[data-theme=light] .section-head a,html[data-theme=light] .card-entry{color:#14658b}
html[data-theme=light] .icon,html[data-theme=light] .category-picture,html[data-theme=light] .budget-grid .interactive-card .category-picture,html[data-theme=light] .credit-tile-icon,html[data-theme=light] .bureau-mark{background:#dceaf5;color:#235e86}
html[data-theme=light] .pill,html[data-theme=light] .credit-account-due,html[data-theme=light] .payment-dot.recorded{background:#d9f0e6;color:#086c50}
html[data-theme=light] .credit-account-due small{color:#35695b}
html[data-theme=light] .negative,html[data-theme=light] .danger,html[data-theme=light] #error{color:#b32b37!important}
html[data-theme=light] .bar,html[data-theme=light] .score-position{background:#d4e1ec}
html[data-theme=light] th,html[data-theme=light] .payment-dot,html[data-theme=light] .bureau-switch button{background:#edf3f8;color:#415e76;border-color:var(--line)}
html[data-theme=light] .review-pill,html[data-theme=light] .price-alert{background:#fff1d9;color:#795114}
html[data-theme=light] .mobile-menu{background:#fff;border-color:var(--line)}
@media(max-width:650px){html[data-theme=light] #nav{background:#f8fbfff5}header{align-items:flex-start}.header-actions{max-width:75%}#theme-toggle{font-size:12px}}

/* Black dark mode, with charcoal surfaces for clear separation. */
html[data-theme=dark]{--bg:#000;--card:#111;--line:#303030;--muted:#a6a6ad}
html[data-theme=dark] body{background:#000;color:#f5f5f7}
html[data-theme=dark] .card,html[data-theme=dark] dialog{background:#111;color:#f5f5f7;border-color:#303030;box-shadow:0 8px 26px #0006}
html[data-theme=dark] .hero,html[data-theme=dark] .credit-score-hero,html[data-theme=dark] .credit-focus-card,html[data-theme=dark] .credit-account-home,html[data-theme=dark] .debt-graph-card,html[data-theme=dark] .credit-learn-card{background:linear-gradient(135deg,#1b1b1b,#101010)}
html[data-theme=dark] button{background:#262626}
html[data-theme=dark] .primary{background:var(--blue)}
html[data-theme=dark] .quiet{background:transparent}
html[data-theme=dark] input,html[data-theme=dark] select{background:#080808;border-color:#414141;color:#f5f5f7}
html[data-theme=dark] nav a.active,html[data-theme=dark] .selected,html[data-theme=dark] .category-choice:has(input:checked){background:#292929}
html[data-theme=dark] .notice,html[data-theme=dark] .credit-example,html[data-theme=dark] .credit-welcome,html[data-theme=dark] .credit-expanded,html[data-theme=dark] .score-change,html[data-theme=dark] .credit-checks article,html[data-theme=dark] .credit-empty-guide,html[data-theme=dark] .credit-panel .credit-card,html[data-theme=dark] .debt-point-value,html[data-theme=dark] .credit-sections{background:#191919;border-color:#363636}
html[data-theme=dark] .icon,html[data-theme=dark] .category-picture,html[data-theme=dark] .budget-grid .interactive-card .category-picture,html[data-theme=dark] .credit-tile-icon,html[data-theme=dark] .bureau-mark,html[data-theme=dark] .coach-step,html[data-theme=dark] .credit-welcome-icon,html[data-theme=dark] .credit-learn-open>span{background:#2a2a2a}
html[data-theme=dark] .pill,html[data-theme=dark] .credit-account-due,html[data-theme=dark] .payment-dot.recorded{background:#232b27}
html[data-theme=dark] .bar,html[data-theme=dark] .score-position{background:#333}
html[data-theme=dark] th,html[data-theme=dark] .payment-dot,html[data-theme=dark] .bureau-switch button{background:#202020;border-color:#393939}
html[data-theme=dark] .mobile-menu{background:#151515;border-color:#3b3b3b}
html[data-theme=dark] #theme-toggle[aria-pressed=true]{background:#222}
html[data-theme=dark] .coach-action{border-color:#303030}
html[data-theme=dark] dialog::backdrop{background:#000b}
@media(max-width:650px){html[data-theme=dark] #nav{background:#080808f5}}

/* A quieter dashboard: clear figures, compact controls, fewer boxed sections. */
.card{border-radius:14px;box-shadow:none!important}
.interactive-card:hover{transform:none;box-shadow:none!important;border-color:var(--muted)}
.hero:after{display:none}
.hero{padding:32px}
.big,.number,.breakdown strong{font-variant-numeric:tabular-nums}
h1{letter-spacing:-.7px;font-weight:700}
.eyebrow{font-size:13px;letter-spacing:0;font-weight:500}
.brand .mark{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:8px;font-size:21px}
nav{gap:4px;margin-top:38px}nav a{border-radius:8px;padding:12px 14px}
.notice{border-radius:8px;background:transparent!important;border-color:var(--line)!important;color:var(--muted)!important}
button{border-radius:8px}.pill{border-radius:6px}.icon{border-radius:9px}
.pair{gap:0;border-block:1px solid var(--line);margin-bottom:24px}
.pair>.card{border:0;background:transparent!important;border-radius:0;margin:0;padding:22px}
.pair>.card+.card{border-inline-start:1px solid var(--line)}
.plan-note{background:transparent!important;border:0;border-top:1px solid var(--line);border-radius:0;padding:22px 0}
.plan-note h2{font-size:15px}.plan-note p{font-size:13px}
.aside-note p{line-height:1.7}footer{padding:24px 0;text-align:start;border-top:1px solid var(--line);margin-top:18px}
@media(max-width:650px){nav{margin:0}nav a{padding:8px 3px}.hero{padding:23px}.card{border-radius:12px}.pair>.card{padding:18px 12px}.pair>.card .number{font-size:22px}.plan-note{border-radius:0}.eyebrow{font-size:12px;letter-spacing:0}}
