@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{font-family:'DM Sans',Arial,sans-serif;color:#1d2925;background:#f7f8f6;font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}button,input{font:inherit}button{cursor:pointer}a{color:inherit}a:hover{text-decoration-color:#41775c}.masthead{border-bottom:1px solid #dce3dc;background:#f7f8f6}.masthead-inner{max-width:1320px;margin:auto;padding:0 42px;height:68px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-family:'IBM Plex Mono',monospace;font-size:15px;font-weight:600;letter-spacing:.05em;color:#18372c}.brand-light{font-weight:400;margin-left:4px}.brand-mark{width:30px;height:30px;background:#1b3831;display:flex;align-items:center;justify-content:center;gap:3px;border-radius:4px}.brand-mark i{width:3px;background:#d8ee88;border-radius:2px}.brand-mark i:nth-child(1){height:12px}.brand-mark i:nth-child(2){height:19px}.brand-mark i:nth-child(3){height:9px}.masthead-right{display:flex;align-items:center;gap:21px;font-size:13px}.masthead-right a{text-underline-offset:4px}.edition,.eyebrow{font:600 11px/1.4 'IBM Plex Mono',monospace;letter-spacing:.09em;color:#557067}.header-divider{height:18px;width:1px;background:#cbd6ce}.page{max-width:1320px;margin:auto;padding:42px 42px 80px}.intro-row{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:31px}.eyebrow{margin:0 0 12px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(31px,3.2vw,47px);font-weight:600;line-height:1.08;letter-spacing:0;margin-bottom:0;color:#1b3029}.intro-note{max-width:248px;color:#5d6c63;font-size:14px;line-height:1.5;margin-bottom:4px}.summary{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(350px,1.1fr);background:#1b3831;color:#f7faf4;min-height:242px}.headline-metric{padding:30px 34px;border-right:1px solid #416052;display:flex;flex-direction:column;justify-content:space-between}.metric-topline{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font:600 11px 'IBM Plex Mono',monospace;letter-spacing:.07em;color:#b7cfc1}.scenario-pill{font:500 10px 'IBM Plex Mono',monospace;letter-spacing:.05em;padding:5px 8px;border:1px solid #547362;color:#d7ee88}.metric-value{font:500 clamp(50px,5.4vw,79px)/1 'IBM Plex Mono',monospace;letter-spacing:-.045em;color:#d9ef8d;font-variant-numeric:tabular-nums;margin:13px 0 10px}.metric-subline{font-size:13px;color:#c4d3c9}.budget-view{padding:32px 34px;display:flex;flex-direction:column;justify-content:center;gap:25px}.budget-line-label{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin-bottom:9px}.budget-line-label strong{font:500 14px 'IBM Plex Mono',monospace;font-variant-numeric:tabular-nums}.track{height:15px;background:#385248;overflow:hidden}.bar{height:100%;transition:width .25s ease}.spending-bar{background:#91a29a}.revenue-bar{background:#d9ef8d}.budget-caption{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #416052;padding-top:14px;color:#bdd1c2;font-size:12px}.budget-caption strong{color:#f4f9ef}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 345px;gap:54px;margin-top:52px;align-items:start}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.section-heading h2,.impact-panel h2,.method-title h2{font-size:27px;line-height:1.15;letter-spacing:0;font-weight:600;margin:0}.reset-button{border:1px solid #cfdbd1;background:transparent;color:#2d5743;padding:9px 12px;font-size:13px;font-weight:600;display:flex;align-items:center;gap:7px;border-radius:3px;white-space:nowrap}.reset-button span{font-size:20px;line-height:12px}.reset-button:hover:not(:disabled){background:#e9eee8}.reset-button:disabled{color:#9eaca2;cursor:default}.control-context{max-width:670px;margin:14px 0 28px;color:#637269;font-size:14px;line-height:1.5}.tax-group{border-top:1px solid #d6ded7;margin-top:33px}.tax-group:first-child{margin-top:0}.group-header{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding:19px 0 17px}.group-header h3{margin:0;font-size:17px;font-weight:700}.group-header span{font:500 11px 'IBM Plex Mono',monospace;color:#65756a;letter-spacing:.02em;text-align:right}.tax-row{display:grid;grid-template-columns:minmax(175px,1.3fr) minmax(130px,1fr) 78px;gap:17px;align-items:center;min-height:73px;border-top:1px solid #e4e9e4;padding:11px 0}.tax-row:first-of-type{border-top:0}.tax-label{font-size:14px;font-weight:600;line-height:1.28}.tax-detail{display:block;font-size:12px;font-weight:400;color:#77847b;margin-top:4px;line-height:1.4}.rate-slider{width:100%;height:24px;margin:0;accent-color:#2b7655;cursor:pointer}.rate-entry{height:36px;border:1px solid #cbd8cf;background:#fff;display:flex;align-items:center;padding:0 8px;border-radius:3px}.rate-entry:focus-within{border-color:#2b7655;box-shadow:0 0 0 2px #cee5d4}.rate-entry input{border:0;outline:0;background:transparent;width:100%;min-width:0;text-align:right;color:#1d382b;font:600 14px 'IBM Plex Mono',monospace;font-variant-numeric:tabular-nums}.rate-entry span{font:500 13px 'IBM Plex Mono',monospace;color:#61736a;margin-left:2px}.impact-panel{background:#fff;border:1px solid #d9e2da;padding:26px 25px 24px;position:sticky;top:24px;border-radius:4px}.impact-top .eyebrow{margin-bottom:9px}.impact-panel h2{font-size:22px}.impact-total{font:500 37px/1.1 'IBM Plex Mono',monospace;letter-spacing:-.04em;margin-top:26px;color:#1d4d37;font-variant-numeric:tabular-nums}.impact-total.negative{color:#b65c3e}.impact-caption{color:#68796d;font-size:13px;margin:4px 0 0}.impact-divider{height:1px;background:#dce5dc;margin:24px 0 18px}.impact-list{display:flex;flex-direction:column;gap:16px}.impact-item{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;font-size:13px}.impact-item span{color:#5d6d62}.impact-item strong{font:500 13px 'IBM Plex Mono',monospace;color:#25362c}.impact-item strong.pos{color:#2b7655}.impact-item strong.neg{color:#b65c3e}.impact-footnote{border-top:1px solid #dce5dc;padding-top:16px;margin:21px 0 0;color:#748179;font-size:12px;line-height:1.45}.methodology{border-top:1px solid #d1dcd2;margin-top:75px;padding-top:32px}.method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:39px;margin-top:26px}.method-grid h3{font-size:15px;margin:0 0 8px}.method-grid p{font-size:13px;line-height:1.6;color:#627167;margin:0}.sources{display:flex;flex-wrap:wrap;gap:9px 18px;border-top:1px solid #dce5dc;margin-top:29px;padding-top:19px;font-size:12px;color:#53665a}.sources strong{color:#1e3d2c}.sources a{text-underline-offset:3px}.disclaimer{font-size:12px;color:#7a867e;margin:20px 0 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.workspace{grid-template-columns:minmax(0,1fr) 290px;gap:25px}.tax-row{grid-template-columns:minmax(125px,1.2fr) minmax(95px,1fr) 70px;gap:10px}.impact-panel{padding:21px}.summary{grid-template-columns:1fr 1fr}.headline-metric,.budget-view{padding:27px}.metric-value{font-size:52px}}@media(max-width:720px){.masthead-inner{height:60px;padding:0 20px}.edition,.header-divider{display:none}.page{padding:27px 20px 60px}.intro-row{display:block;margin-bottom:24px}.intro-note{max-width:none;margin-top:14px;margin-bottom:0}.intro-row h1 br{display:none}.summary{grid-template-columns:1fr}.headline-metric{border-right:0;border-bottom:1px solid #416052;min-height:165px}.metric-value{font-size:58px}.budget-view{gap:17px}.workspace{grid-template-columns:1fr;gap:30px;margin-top:38px}.impact-panel{position:static}.impact-list{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.methodology{margin-top:54px}.method-grid{grid-template-columns:1fr;gap:23px}}@media(max-width:440px){.brand{font-size:13px}.masthead-right{font-size:12px}.metric-value{font-size:48px}.summary{min-height:auto}.headline-metric,.budget-view{padding:23px}.budget-caption{font-size:11px}.tax-row{grid-template-columns:minmax(0,1fr) 80px;gap:7px 15px;padding:14px 0}.tax-label{grid-column:1/-1}.rate-slider{grid-column:1}.rate-entry{grid-column:2}.impact-list{grid-template-columns:1fr}.group-header span{max-width:130px}.sources{gap:10px 16px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.bar{transition:none}}
@media(max-width:440px){.page{padding-top:21px}.intro-row{margin-bottom:19px}.intro-row .eyebrow{margin-bottom:9px}h1{font-size:29px;line-height:1.08}.intro-note{margin-top:10px;line-height:1.4}.headline-metric{min-height:140px;padding:19px 20px}.metric-value{margin:8px 0 6px;font-size:46px}.budget-view{padding:18px 20px;gap:12px}.budget-line-label{margin-bottom:6px}.track{height:12px}.budget-caption{padding-top:10px}.workspace{margin-top:28px}.control-context{margin:10px 0 18px}.group-header{padding:14px 0 12px}}
.rate-entry input{appearance:textfield;-moz-appearance:textfield}.rate-entry input::-webkit-inner-spin-button,.rate-entry input::-webkit-outer-spin-button{appearance:none;margin:0}

.summary-anchor{height:1px;margin-bottom:-1px}
.people-track{display:flex}
.people-track .bar{width:0;flex-shrink:0}
.mild-bar{background:#f6dc60}
.angry-bar{background:#ff9a45}
.pissed-bar{background:#ff646b}
.people-line small{font-size:12px;color:#bdd1c2}
.people-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px;font-size:12px;line-height:1.4;color:#f7faf4}
.people-legend>span{display:flex;align-items:baseline;gap:5px;min-width:0}
.people-legend i{width:8px;height:8px;flex-shrink:0}
.people-legend strong{display:block;font:500 12px/1.4 'IBM Plex Mono',monospace;font-variant-numeric:tabular-nums}
.bracket-population{font-size:12px}
@media(max-width:600px){.summary.is-pinned .people-legend{font-size:10px;gap:4px}.summary.is-pinned .people-legend>span{gap:3px}.summary.is-pinned .people-legend i{width:5px;height:5px}.summary.is-pinned .people-legend strong{font-size:10px}.summary.is-pinned .people-line small{font-size:10px}}
.masthead-inner{gap:16px}
.brand{min-width:0}
.brand-mark{flex-shrink:0}
.brand-name{min-width:0;line-height:1.3}
@media(max-width:600px){.masthead-inner{height:auto;min-height:60px;flex-wrap:wrap;padding:14px 20px;gap:12px}.brand{flex-basis:100%}.masthead-right{width:100%;justify-content:space-between;font-size:13px}.masthead-right .header-divider{display:none}}
.summary{position:sticky;top:12px;z-index:10}
.summary.is-pinned{min-height:160px;box-shadow:0 8px 20px #10291c26}
.summary.is-pinned .headline-metric{padding:18px 26px}
.summary.is-pinned .metric-value{font-size:52px;margin:8px 0}
#balanceLabel{color:#ff8181}
.headline-metric.is-surplus #balanceLabel{color:#65ff8f}
.summary.is-pinned .budget-view{padding:18px 26px;gap:14px}
.summary.is-pinned .budget-caption{padding-top:10px}
.impact-column{align-self:stretch}
.impact-panel{top:calc(var(--summary-height,242px) + 36px)}
.tax-row,.methodology{scroll-margin-top:calc(var(--summary-height,242px) + 36px)}
.budget-nav{display:flex;gap:24px;flex-wrap:wrap;border-bottom:1px solid #d6ded7;padding:18px 0;font-size:14px;font-weight:600;color:#2d5743}
.budget-nav a{text-underline-offset:4px}
.workspace{margin-top:32px}
.spending-section{border-top:1px solid #d1dcd2;padding-top:32px;margin-top:52px}
#tax-section,#spending-section{scroll-margin-top:calc(var(--summary-height,242px) + 36px)}
.cut-savings{display:block;color:#2b7655;font-size:12px;font-weight:400;line-height:1.4;margin-top:4px}
.cut-savings.spending-increase{color:#b65c3e}
.spending-impact{border-top:1px solid #dce5dc;margin-top:18px;padding-top:18px}
.method-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.tax-row{grid-template-columns:minmax(175px,1.3fr) minmax(130px,1fr) 144px}
.rate-actions{display:grid;grid-template-columns:76px 28px 32px;gap:4px;align-items:center;height:44px}
.tax-row.spending-row{grid-template-columns:minmax(175px,1.3fr) minmax(130px,1fr) 144px}
.spending-row .rate-actions{grid-template-columns:108px 32px}
.spending-row .rate-entry span:first-child{margin-left:0}
.rate-actions .rate-entry{height:44px;grid-column:auto}
.rate-steppers{display:grid;grid-template-rows:22px 22px}
.tax-subheading{font-size:16px;line-height:1.4;margin:22px 0 0;padding:16px 0 12px;border-top:1px solid #d6ded7;scroll-margin-top:calc(var(--summary-height,242px) + 36px)}
[data-theme="dark"] .tax-subheading{border-color:#3b4840}
.rate-action{display:flex;align-items:center;justify-content:center;padding:0;border:1px solid #cbd8cf;background:#fff;color:#1d382b;border-radius:3px;min-width:0;height:22px}
.rate-steppers .rate-action:first-child{border-radius:3px 3px 0 0}
.rate-steppers .rate-action:last-child{border-radius:0 0 3px 3px;border-top:0}
.rate-reset{height:44px}
.rate-action:hover:not(:disabled){background:#e9eee8;border-color:#779c85}
.rate-action:focus-visible{outline:2px solid #2b7655;outline-offset:2px}
.rate-action:disabled{cursor:default;background:#f7f8f6}
.rate-action:disabled img{opacity:.25}
.tax-linked-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:17px;align-items:center;border-top:1px solid #e4e9e4;min-height:73px;padding:14px 0}
.tax-linked-row>a{font-size:12px;line-height:1.5;color:#2d5743;text-align:right;text-underline-offset:3px}
.tax-linked-note{border-top:1px solid #e4e9e4;padding-top:14px;margin:0;font-size:12px;line-height:1.6;color:#637269}
.tax-linked-note a{text-underline-offset:3px}
#income-title{scroll-margin-top:calc(var(--summary-height,242px) + 36px)}
.tax-linked-row.fixed-interest-row{grid-template-columns:minmax(0,1fr) 108px}
.fixed-interest-row .tax-label{grid-column:auto}
.fixed-interest-amount{height:44px;background:#eef2ed}
.fixed-interest-amount strong{flex:1;text-align:right;color:#1d382b;font:600 14px 'IBM Plex Mono',monospace;font-variant-numeric:tabular-nums}
.fixed-interest-amount span:first-child{margin-left:0}
.tax-linked-row.fixed-interest-row{grid-template-columns:minmax(0,1fr) auto}
.interest-actions{display:flex;gap:10px;align-items:center}
.fixed-interest-amount{width:108px;flex-shrink:0}
.default-debt{height:44px;padding:0 12px;border:1px solid #b54848;border-radius:3px;background:transparent;color:#a83232;font-size:13px;font-weight:600}
.default-debt:hover:not(:disabled){background:#ffeded}
.default-debt:focus-visible{outline:2px solid #b54848;outline-offset:3px}
.default-debt:disabled{opacity:.5;cursor:default}
.game-limit{font-size:12px;line-height:1.4;color:#bdd1c2;margin-top:-10px}
.game-limit strong{color:#f7faf4;font-variant-numeric:tabular-nums}
.game-status{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;border-bottom:1px solid #d6ded7;font:600 12px 'IBM Plex Mono',monospace;color:#557067}
.game-status.is-lost{color:#b54848}
.game-status.is-won{color:#2b7655}
.mode-toolbar{display:flex;align-items:center;gap:12px;margin:0 0 18px;font-size:14px;font-weight:600}
.mode-toolbar select{font:inherit;letter-spacing:0;min-height:40px;max-width:100%;border:1px solid #cbd8cf;border-radius:3px;padding:8px 34px 8px 12px;background:#fff;color:#1d382b}
.mode-toolbar select:focus-visible{outline:2px solid #2b7655;outline-offset:2px}
.method-page{max-width:960px}
.method-page .methodology{margin-top:0;padding-top:0;border-top:0;scroll-margin-top:24px}
.method-page .method-grid{display:block;margin-top:0}
.method-page .method-grid>div{padding:28px 0;border-top:1px solid #d1dcd2}
.method-page .method-grid h2{font-size:22px;line-height:1.3;letter-spacing:0;margin:0 0 14px}
.method-page .method-grid p{font-size:16px;line-height:1.7;margin:0 0 14px;overflow-wrap:anywhere}
.method-page .method-grid p:last-child{margin-bottom:0}
[data-theme="dark"] .method-page .method-grid>div{border-color:#3b4840}
.game-limit[hidden],.default-debt[hidden]{display:none}
.game-status [hidden]{display:none}
.game-loss-dialog{width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:30px;border:1px solid #cbd8cf;border-top:4px solid #c34949;border-radius:6px;background:#f7f8f6;color:#1d2925}
.game-loss-dialog::backdrop{background:#0009}
.game-loss-dialog .eyebrow{color:#a83232}
.game-loss-dialog h2{font-size:27px;line-height:1.2;letter-spacing:0;margin-bottom:16px}
.game-loss-dialog>p:not(.eyebrow){font-size:16px;line-height:1.6;margin-bottom:24px}
.game-loss-actions{display:flex;flex-wrap:wrap;gap:10px}
.restart-primary{display:flex;align-items:center;gap:8px;min-height:42px;padding:9px 14px;border:1px solid #1b3831;border-radius:3px;background:#1b3831;color:#f7faf4;font-size:14px;font-weight:600}
.restart-primary img{filter:invert(1)}
.restart-primary:focus-visible{outline:2px solid #2b7655;outline-offset:3px}
.benchmark-details{margin-top:12px;font-size:13px;line-height:1.6}
.benchmark-details summary{cursor:pointer;font-weight:600}
.benchmark-details p{margin-top:10px}
[data-theme="dark"] .default-debt{color:#ff9c9c;border-color:#b65d5d}
[data-theme="dark"] .default-debt:hover:not(:disabled){background:#442525}
[data-theme="dark"] .game-status{color:#acc2b4;border-color:#3b4840}
[data-theme="dark"] .game-status.is-lost{color:#ff9c9c}
[data-theme="dark"] .game-status.is-won{color:#91d4a5}
[data-theme="dark"] .mode-toolbar select{background:#222a25;border-color:#526258;color:#e4eee7}
[data-theme="dark"] .mode-toolbar select:focus-visible{outline-color:#8bd19f}
[data-theme="dark"] .game-loss-dialog{background:#1e2520;color:#e7ece8;border-color:#526258;border-top-color:#ff8181}
[data-theme="dark"] .game-loss-dialog .eyebrow{color:#ff9c9c}
.game-win-dialog{border-top-color:#2b7655}
.game-win-dialog .eyebrow{color:#2b7655}
.game-win-dialog #gameWinTime{color:#256b46;font-variant-numeric:tabular-nums}
.game-win-dialog>p.win-context{font-size:14px;margin-bottom:24px}
.game-win-dialog .win-context a{text-underline-offset:3px}
[data-theme="dark"] .game-win-dialog{border-top-color:#a5f06f}
[data-theme="dark"] .game-win-dialog .eyebrow,[data-theme="dark"] .game-win-dialog #gameWinTime{color:#a5f06f}
[data-theme="dark"] .restart-primary{background:#d9ef8d;color:#18372c;border-color:#d9ef8d}
[data-theme="dark"] .restart-primary img{filter:none}
@media(max-width:720px){.tax-linked-row.fixed-interest-row{grid-template-columns:minmax(0,1fr)}.interest-actions{justify-content:flex-end}.game-loss-dialog{padding:24px}.summary.is-pinned .game-limit{font-size:10px;margin-top:-3px}}
.theme-toggle{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;padding:0;border:1px solid #cbd8cf;background:#fff;border-radius:4px}
.impact-column{align-self:start;position:sticky;top:calc(var(--summary-height,242px) + 36px)}
.impact-panel{position:static;max-height:calc(100dvh - var(--summary-height,242px) - 162px);overflow-y:auto}
.section-jumps{display:flex;flex-wrap:wrap;gap:0 24px;margin-top:20px;padding-top:16px;border-top:1px solid #d1dcd2;color:#2d5743}
.section-jumps h2{flex-basis:100%;font-size:16px;line-height:1.4;margin:0 0 4px}
.section-jumps a{display:flex;align-items:center;min-height:44px;font-size:14px;font-weight:600;text-underline-offset:4px}
.section-jumps a:focus-visible{outline:2px solid #2b7655;outline-offset:3px}
[data-theme="dark"] .section-jumps{border-color:#3b4840;color:#b5d9bf}
[data-theme="dark"] .section-jumps a:focus-visible{outline-color:#8bd19f}
@media(max-width:720px){.impact-column{position:static}.impact-panel{max-height:none;overflow-y:visible}}
.theme-toggle:hover{background:#e9eee8}
.theme-toggle:focus-visible{outline:2px solid #2b7655;outline-offset:3px}
html[data-theme="dark"]{color-scheme:dark;color:#e7ece8;background:#141716}
[data-theme="dark"] .masthead{background:#141716;border-color:#39443e}
[data-theme="dark"] .brand,[data-theme="dark"] h1{color:#e1eee5}
[data-theme="dark"] .header-divider{background:#46544b}
[data-theme="dark"] .edition,[data-theme="dark"] .eyebrow{color:#acc2b4}
[data-theme="dark"] .control-context,[data-theme="dark"] .intro-note,[data-theme="dark"] .tax-detail,[data-theme="dark"] .group-header span,[data-theme="dark"] .tax-linked-note,[data-theme="dark"] .method-grid p,[data-theme="dark"] .impact-caption,[data-theme="dark"] .impact-item span,[data-theme="dark"] .impact-footnote,[data-theme="dark"] .disclaimer{color:#abbab1}
[data-theme="dark"] .tax-group,[data-theme="dark"] .budget-nav,[data-theme="dark"] .spending-section,[data-theme="dark"] .methodology,[data-theme="dark"] .sources{border-color:#3b4840}
[data-theme="dark"] .tax-row,[data-theme="dark"] .tax-linked-row,[data-theme="dark"] .tax-linked-note,[data-theme="dark"] .spending-impact,[data-theme="dark"] .impact-footnote{border-color:#303d35}
[data-theme="dark"] .budget-nav,[data-theme="dark"] .tax-linked-row>a,[data-theme="dark"] .sources{color:#b5d9bf}
[data-theme="dark"] .sources strong{color:#e1eee5}
[data-theme="dark"] .rate-entry,[data-theme="dark"] .rate-action,[data-theme="dark"] .theme-toggle{background:#222a25;border-color:#526258}
[data-theme="dark"] .rate-entry input,[data-theme="dark"] .fixed-interest-amount strong{color:#e4eee7}
[data-theme="dark"] .rate-entry span{color:#b1c3b7}
[data-theme="dark"] .rate-slider{accent-color:#7bbb92}
[data-theme="dark"] .rate-entry:focus-within{border-color:#8bd19f;box-shadow:0 0 0 2px #366344}
[data-theme="dark"] .reset-button{color:#b5d9bf;border-color:#526258}
[data-theme="dark"] .reset-button:hover:not(:disabled),[data-theme="dark"] .rate-action:hover:not(:disabled),[data-theme="dark"] .theme-toggle:hover{background:#344139;border-color:#91b69e}
[data-theme="dark"] .reset-button:disabled{color:#829388}
[data-theme="dark"] .rate-action:disabled{background:#1d241f}
[data-theme="dark"] .rate-action img,[data-theme="dark"] .reset-button img,[data-theme="dark"] .theme-toggle img{filter:invert(1)}
[data-theme="dark"] .rate-action:focus-visible,[data-theme="dark"] .theme-toggle:focus-visible{outline-color:#8bd19f}
[data-theme="dark"] .fixed-interest-amount{background:#1b221d}
[data-theme="dark"] .impact-panel{background:#1e2520;border-color:#45544a}
[data-theme="dark"] .impact-divider{background:#3b4840}
[data-theme="dark"] .impact-total,[data-theme="dark"] .impact-item strong.pos,[data-theme="dark"] .cut-savings{color:#91d4a5}
[data-theme="dark"] .impact-item strong{color:#e4eee7}
[data-theme="dark"] .impact-total.negative,[data-theme="dark"] .impact-item strong.neg,[data-theme="dark"] .cut-savings.spending-increase{color:#f1a288}
@media(max-width:1000px){
  .tax-row{grid-template-columns:minmax(0,1fr) 144px;gap:7px 15px;padding:14px 0}
  .tax-label{grid-column:1/-1}
  .rate-slider{grid-column:1}
  .rate-actions{grid-column:2}
  .tax-row.spending-row{grid-template-columns:minmax(0,1fr) 144px}
  .tax-linked-row{grid-template-columns:minmax(0,1fr);gap:8px}
  .tax-linked-row>a{text-align:left}
}
@media(max-width:720px){
  .method-grid{grid-template-columns:1fr}
  .summary{top:0}
  .summary.is-pinned{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);min-height:0}
  .summary.is-pinned .headline-metric{padding:14px 12px;border-bottom:0;border-right:1px solid #416052;min-height:0}
  .summary.is-pinned .metric-topline{font-size:10px;letter-spacing:0}
  .summary.is-pinned .scenario-pill{display:none}
  .summary.is-pinned .metric-value{font-size:24px;margin:10px 0;letter-spacing:0}
  .summary.is-pinned .metric-subline{font-size:11px;line-height:1.4}
  .summary.is-pinned .budget-view{padding:14px 12px;gap:10px;min-width:0}
  .summary.is-pinned .budget-line-label{font-size:12px;gap:5px;flex-wrap:wrap;margin-bottom:5px}
  .summary.is-pinned .budget-line-label strong{font-size:12px}
  .summary.is-pinned .track{height:8px}
  .summary.is-pinned .budget-caption{font-size:10px;line-height:1.4;padding-top:7px}
  .summary.is-pinned .budget-caption>span:last-child{display:none}
}
