:root {
  color-scheme: light;
  --canvas: #f5f2eb;
  --paper: #fffcf8;
  --ink: #122a23;
  --muted: #52635a;
  --line: #dedfd3;
  --forest: #103429;
  --forest-deep: #0b281f;
  --lime: #dcf579;
  --sand: #c9b9ac;
  --sage: #dce5d2;
  --serif: Georgia, "Noto Serif", "Times New Roman", serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 290px; }
button, input, select { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid #4d7152; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }

.page { max-width: 1512px; margin: auto; padding: 21px clamp(22px, 4vw, 66px) 52px; }
.masthead { display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; gap: 13px; align-items: center; text-decoration: none; font-size: .99rem; font-weight: 720; white-space: nowrap; }
.brand-icon { width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; flex: none; }
.brand-icon::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--ink); background: var(--lime); border-radius: 50%; }
.masthead-rule { height: 1px; background: #99a196; flex: 1; }
.text-button { border: 0; background: none; padding: 5px 0; font-size: .9rem; font-weight: 680; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { margin: 25px 0 29px; font: 600 clamp(2.4rem, 5vw, 5.2rem)/1.01 var(--serif); letter-spacing: -.052em; text-wrap: balance; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr); align-items: start; gap: clamp(16px, 2vw, 29px); }
.inputs, .output { display: grid; gap: 12px; min-width: 0; }
.output { gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(14px, 1.45vw, 21px); min-width: 0; }
h2 { font-size: clamp(1.12rem, 1.58vw, 1.43rem); letter-spacing: -.032em; line-height: 1.14; font-weight: 760; }
.card > h2 { margin-bottom: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head strong, .total-field strong { font-variant-numeric: tabular-nums; }
.section-head strong { text-align: right; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d5dacd; border-radius: 11px; overflow: hidden; min-width: 0; }
.segmented button { display: grid; place-content: center; min-height: 44px; padding: 8px; border: 0; border-radius: 10px; background: transparent; font-size: .9rem; line-height: 1.21; text-align: center; }
.segmented button[aria-pressed="true"] { background: var(--lime); color: var(--ink); font-weight: 720; }
.segmented button:hover:not([aria-pressed="true"]) { background: #e7eddc; }
.segmented button:focus-visible { outline-offset: -3px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.goal-fields { margin-top: 12px; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.field, .total-field { display: grid; gap: 4px; min-width: 0; font-size: .86rem; font-weight: 560; }
.input-shell, .select-shell { display: flex; border: 1px solid #c9cfc2; border-radius: 8px; min-width: 0; min-height: 42px; align-items: center; background: #fffefa; }
.input-shell:focus-within, .select-shell:focus-within { border-color: #537653; box-shadow: 0 0 0 2px #cbd9c4; }
.input-shell > input, .select-shell > select { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; width: 100%; min-width: 0; padding: 8px 10px; background: transparent; border: 0; outline: 0; }
.input-shell > span { padding-right: 10px; color: var(--muted); font-weight: 530; }
.select-shell { position: relative; }
.select-shell::after { content: ""; position: absolute; right: 12px; top: 15px; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.select-shell > select { appearance: none; padding-right: 25px; }
.total-field strong { background: #f0f3e8; border: 1px solid #e3e8da; border-radius: 8px; min-height: 42px; padding: 9px 10px; font-size: 1rem; }
.hint { color: var(--muted); font-size: .83rem; line-height: 1.4; }
.rows { display: grid; gap: 5px; }
.income-rows { margin-top: 7px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .7fr) 30px; gap: 8px; align-items: center; min-width: 0; }
.row .input-shell { min-height: 35px; }
.row .input-shell > input { font-size: .9rem; padding: 6px 8px; }
.row .input-shell > span { padding-right: 8px; font-size: .85rem; }
.name-input { border: 1px solid transparent; border-radius: 6px; height: 36px; width: 100%; min-width: 0; background: transparent; padding: 3px 4px; font-size: .91rem; }
.name-input:hover { border-color: var(--line); }
.remove { border: 0; border-radius: 7px; min-height: 35px; font-size: 1.18rem; padding: 0; background: none; color: var(--muted); }
.remove:hover { color: #813421; background: #f6e8df; }
.remove:disabled { visibility: hidden; }
.add { margin-top: 6px; min-height: 36px; }
.add::before { content: "+"; font-size: 1.13em; margin-right: 5px; }

.budget { display: flex; height: 15px; background: #eceee4; border-radius: 6px; overflow: hidden; }
.budget span { width: 0; transition: width 150ms ease; height: 100%; }
.budget-expense, .swatch.expense { background: var(--sand); }
.budget-contribution, .swatch.contribution { background: var(--lime); }
.budget-rest, .swatch.rest { background: var(--sage); }
.budget-legend { display: flex; flex-wrap: wrap; gap: 4px 13px; margin: 7px 0 10px; font-size: .8rem; color: var(--muted); }
.budget-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.budget-legend strong { color: var(--ink); }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.expense-rows .row { grid-template-columns: minmax(0, 1.06fr) minmax(32px, 1fr) minmax(85px, .72fr) 28px; gap: 6px; }
input[type="range"] { appearance: none; min-width: 0; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 9px; background: linear-gradient(to right, var(--forest) var(--progress, 0%), #dce2d5 var(--progress, 0%)); }
input[type="range"]::-moz-range-track { height: 5px; border-radius: 9px; background: linear-gradient(to right, var(--forest) var(--progress, 0%), #dce2d5 var(--progress, 0%)); }
input[type="range"]::-webkit-slider-thumb { appearance: none; background: #fffcf8; border: 1.5px solid var(--forest); width: 16px; height: 16px; border-radius: 50%; margin-top: -5.5px; }
input[type="range"]::-moz-range-thumb { background: #fffcf8; border: 1.5px solid var(--forest); width: 14px; height: 14px; border-radius: 50%; }
.contribution-options { display: grid; gap: 7px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.check { display: flex; gap: 8px; align-items: center; font-size: .87rem; min-height: 32px; cursor: pointer; }
.check input { width: 17px; height: 17px; flex: none; accent-color: var(--forest); }
.manual-contribution { max-width: 280px; }
.budget-note, .allocation-note { color: #7e422a; }

.return-label { color: var(--forest); font-size: .88rem; font-weight: 690; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chips button { padding: 5px 11px; min-height: 34px; border: 1px solid #dce5d1; background: #edf2e4; border-radius: 30px; font-size: .84rem; }
.chips button::before { content: "+ "; }
.chips button:hover { background: #e0ead3; }
.table-head, .investment-rows .row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(54px, .52fr) minmax(75px, .9fr) 28px; gap: 6px; align-items: center; }
.table-head { margin-bottom: 3px; padding: 0 4px; color: var(--muted); font-size: .76rem; }
.allocation-note { margin-top: 7px; }

.result { scroll-margin-top: 14px; background: radial-gradient(ellipse at 86% 0%, #174234, transparent 70%), var(--forest-deep); border: 1px solid #12382c; border-radius: 18px; color: #fbf3e4; min-width: 0; padding: clamp(17px, 2.3vw, 36px); }
.result-top { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.result h2 { color: #f2efdd; }
.active-plan { color: var(--lime); font-size: .78rem; text-align: right; }
.duration { margin: 8px 0 22px; font: 570 clamp(2.15rem, 4.77vw, 4.84rem)/1.035 var(--serif); letter-spacing: -.052em; overflow-wrap: anywhere; }
.duration.long { font-size: clamp(1.85rem, 3.65vw, 3.8rem); }
.metrics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr); }
.metrics > div { display: grid; align-content: start; gap: 4px; padding-right: 10px; }
.metrics > div + div { border-left: 1px solid #526d5d; padding-left: clamp(9px, 2vw, 28px); padding-right: 0; }
.metrics span { font-size: .88rem; color: #d3ddce; line-height: 1.3; }
.metrics strong { font-size: clamp(1.36rem, 2.7vw, 2.65rem); line-height: 1.05; letter-spacing: -.045em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.result-note { margin-top: 12px; color: #e3e7d8; font-size: .86rem; line-height: 1.42; }
.chart { position: relative; margin: 22px -4px 0; height: clamp(175px, 19.5vw, 278px); }
.chart:focus-visible { outline-color: var(--lime); }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .axis { fill: #b6c8b7; font-size: 11px; font-family: inherit; }
.chart .grid { stroke: #648775; stroke-opacity: .3; }
.chart .series { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart .capital { stroke: var(--lime); stroke-width: 2.7; }
.chart .target { stroke: #e0d9ca; stroke-width: 1.55; stroke-dasharray: 6 6; }
.chart .marker { fill: var(--lime); stroke: var(--forest); stroke-width: 1.8; }
.chart .crosshair { stroke: #e2e8d6; stroke-opacity: .65; stroke-dasharray: 3 4; }
.chart-tip { position: absolute; z-index: 1; top: 5px; display: grid; pointer-events: none; gap: 2px; background: #f8f6e9; color: var(--ink); border-radius: 7px; padding: 7px 9px; line-height: 1.4; font-size: .75rem; white-space: nowrap; box-shadow: 0 5px 15px #091c16a0; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 5px 0 15px; color: #e1e9d8; font-size: .84rem; }
.chart-legend > span { display: inline-flex; gap: 7px; align-items: center; }
.chart-legend i { width: 22px; border-top: 3px solid var(--lime); border-radius: 2px; }
.chart-legend > span + span i { border-top: 2px dashed #e0d9ca; }
.price-toggle { border-color: #688271; }
.price-toggle button { color: #f5f1e0; }
.price-toggle button:hover:not([aria-pressed="true"]) { background: #254c3d; }
.price-toggle button:focus-visible { outline-color: var(--lime); }
.compare-toggle button { min-height: 58px; gap: 3px; }
.compare-toggle button strong { font-weight: 750; }
.compare-settings { margin: 11px 0 7px; }
.method { font-size: .92rem; color: var(--muted); padding: 0 5px; }
.method summary { min-height: 38px; padding: 8px 0; font-weight: 680; color: var(--ink); }
.method p { margin-bottom: 8px; line-height: 1.5; }
.method p:last-child { margin-bottom: 0; }

.site-footer { margin-top: 32px; padding-top: 13px; border-top: 1px solid #d5dad0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.authors-label { margin: 0 0 2px; }
.authors-names { margin: 0; color: var(--ink); font-weight: 650; }

.mobile-result { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .page { padding: 14px 14px calc(88px + env(safe-area-inset-bottom)); max-width: 590px; }
  .masthead { gap: 10px; }
  .brand { gap: 8px; font-size: .9rem; }
  .brand-icon { width: 22px; height: 22px; }
  .brand-icon::before { width: 10px; height: 10px; }
  h1 { margin: 18px 0 20px; font-size: clamp(2.05rem, 8.6vw, 3.4rem); text-wrap: initial; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .inputs, .output { gap: 10px; }
  .card { border-radius: 13px; }
  .result { border-radius: 14px; }
  .duration { font-size: clamp(2rem, 8.7vw, 3.45rem); }
  .duration.long { font-size: clamp(1.75rem, 7.3vw, 2.7rem); }
  .metrics strong { font-size: clamp(1.38rem, 5.85vw, 2.08rem); }
  .chart { height: 184px; }
  .row input, .row .input-shell > input { font-size: 16px; }
  .mobile-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: fixed; z-index: 3; bottom: 0; left: 0; right: 0; background: #103429; color: #fff8e9; padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 24px #172f2230; }
  .mobile-result > div { min-width: 0; display: grid; gap: 2px; }
  .mobile-result span { font-size: .76rem; color: #c4d2c2; }
  .mobile-result strong { font-size: .96rem; }
  .mobile-result a { flex: none; min-height: 44px; display: grid; place-content: center; border-radius: 8px; background: var(--lime); color: var(--ink); padding: 6px 11px; font-weight: 710; font-size: .82rem; text-decoration: none; }
}
@media (max-width: 370px) {
  .masthead { gap: 7px; }
  .brand { font-size: .79rem; gap: 6px; }
  .pair { gap: 8px; }
  .expense-rows .row { grid-template-columns: minmax(0, 1fr) minmax(28px, .56fr) minmax(73px, .86fr) 23px; gap: 4px; }
  .row .input-shell > input { padding-left: 5px; padding-right: 4px; }
  .row .input-shell > span { padding-right: 5px; }
  .budget-legend { gap: 3px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.with-icon { display: flex; align-items: center; gap: .45em; }
.section-icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: #42705a; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.result .section-icon { stroke: #cbe883; }

.passive-source { margin-top: 9px; border-color: #e0e7d8; }
.passive-source button { min-height: 37px; font-size: .83rem; }
.input-shell:has(input[readonly]) { background: #edf2e4; }
.input-shell input[readonly] { cursor: default; }
.passive-from-goal { margin-top: 10px; padding: 10px 12px; background: #eef3e6; border-radius: 9px; }
.passive-from-goal > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.passive-from-goal span { font-size: .85rem; }
.passive-from-goal strong { font-size: 1.12rem; white-space: nowrap; }
.passive-from-goal p { margin-top: 2px; }

.instrument-tax { grid-column: 1 / -2; min-height: 33px; width: fit-content; max-width: 100%; margin: -2px 0 5px 4px; background: #eef2e8; }
.instrument-tax::after { top: 11px; }
.instrument-tax select { font-size: .83rem; padding: 6px 25px 6px 8px; }
.tax-settings { margin-top: 8px; border-top: 1px solid var(--line); }
.tax-settings summary, .tax-ledger summary { padding: 8px 0; color: var(--ink); font-size: .88rem; font-weight: 690; }
.tax-settings label { max-width: 28rem; margin-top: 7px; }

.chart-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.chart-heading h3 { margin: 0; color: #e5ecd9; font-size: .92rem; font-weight: 690; letter-spacing: -.01em; }
.chart-period-label { padding: 5px 8px; border: 1px solid #577768; border-radius: 7px; color: #e5ecd9; font-size: .78rem; }

.chart { margin-top: 6px; touch-action: pan-y; }
.chart .vertical-grid { stroke-opacity: .18; }
.chart .gross { stroke: #8bb9c1; stroke-width: 1.9; }
.chart .target { stroke: #e0d9ca; }
.chart .goal-guide { stroke: #d7f477; stroke-opacity: .55; stroke-dasharray: 2 4; }
.chart .goal-halo { fill: #d7f477; fill-opacity: .24; }
.chart-legend .legend-gross i { border-top: 2px solid #8bb9c1; }
.chart-legend .legend-target i { border-top: 2px dashed #e0d9ca; }
.chart-tip { padding: 9px 10px; min-width: 182px; line-height: 1.35; }
.chart-tip > strong { padding-bottom: 4px; margin-bottom: 2px; border-bottom: 1px solid #dfe1d5; }
.chart-tip > div { display: flex; justify-content: space-between; gap: 10px; }

.tax-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tax-totals > div { display: grid; align-content: start; gap: 4px; min-width: 0; border-radius: 9px; padding: 9px 10px; background: #eef2e8; }
.tax-totals span { color: var(--muted); font-size: .82rem; }
.tax-totals strong { font-size: clamp(1.02rem, 2vw, 1.3rem); overflow-wrap: anywhere; }
.tax-ledger { margin-top: 6px; }
.ledger-wrap { overflow-x: auto; margin: 8px 0 0; }
.tax-ledger table { width: 100%; border-collapse: collapse; font-size: .83rem; font-variant-numeric: tabular-nums; }
.tax-ledger th, .tax-ledger td { padding: 7px 5px; border-bottom: 1px solid var(--line); }
.tax-ledger thead th { color: var(--muted); font-weight: 670; }
.tax-ledger th:first-child { text-align: left; }
.tax-ledger th:not(:first-child), .tax-ledger td { text-align: right; }
.tax-ledger td { white-space: nowrap; }
.tax-ledger td[colspan] { white-space: normal; text-align: left; }
.tax-ledger tr:last-child td, .tax-ledger tr:last-child > th { border-bottom-color: transparent; }
.method a { text-underline-offset: .13em; }
@media (max-width: 430px) {
  .with-icon { gap: .34em; }
  .chart-legend { gap: 4px 11px; }
  .chart-legend > span { font-size: .76rem; gap: 5px; }
  .chart-legend i { width: 15px; }
  .tax-ledger thead th { font-size: .74rem; }
}

.export-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #3c5a4a; }
.export-excel { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 8px 11px; border: 1px solid #a6c38b; border-radius: 9px; background: #e7f2d5; color: #173327; font-size: .91rem; font-weight: 720; }
.export-excel:hover:not(:disabled) { background: #f0f9e3; border-color: #e0edca; }
.export-excel:focus-visible { outline-color: var(--lime); }
.export-excel:disabled { cursor: progress; opacity: .8; }
.result .export-excel .section-icon { stroke: #2a6947; width: 18px; height: 18px; }
.export-format { padding: 3px 5px; background: #d3e6ba; border-radius: 4px; color: #355d3b; font-size: .7rem; font-weight: 680; }
.export-status { color: #f2eade; font-size: .82rem; }

.page h1 { margin-bottom: 16px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 16px; }
.demo-action, .clear-action { min-height: 40px; padding: 7px 12px; border: 1px solid #c9d4c3; border-radius: 8px; color: var(--ink); font-size: .88rem; font-weight: 690; }
.demo-action { background: #e2efc9; }
.demo-action:hover { background: #d7e9b5; }
.clear-action { background: #f9f8f2; }
.clear-action:hover { background: #ecf1e4; }
.action-status { color: var(--muted); font-size: .82rem; padding-left: 3px; }

.help-heading, .help-inline { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.card > .help-heading { margin-bottom: 12px; }
.field-help { display: inline-grid; place-items: center; padding: 0; width: 23px; min-width: 23px; height: 23px; color: #355b46; background: #edf2e8; border: 1px solid #c8d7c6; border-radius: 50%; font-size: .78rem; font-weight: 730; line-height: 1; }
.field-help:hover { background: #dce9d5; border-color: #9eb79f; }
.result .field-help { color: #e2efd4; background: #284c3d; border-color: #587d66; }
.result .field-help:hover { background: #375e4d; }
.help-field { position: relative; min-width: 0; }
.help-field > label.field { padding-right: 27px; min-height: 23px; }
.help-field .input-shell, .help-field .select-shell { margin-right: -27px; }
.help-field > .field-help { position: absolute; top: -1px; right: 0; }
.help-field > .check { padding-right: 30px; }
.help-field:has(> .check) > .field-help { top: 5px; }
.help-field[data-for="contribution-field"] { max-width: 280px; }
.tax-settings .help-field { max-width: 28rem; }
.table-head .field-help { width: 18px; min-width: 18px; height: 18px; }
.tax-type-hint { margin: 5px 0; }

.help-dialog { width: min(460px, calc(100% - 28px)); max-height: 90vh; padding: 19px; border: 1px solid #ccd8c9; border-radius: 15px; color: var(--ink); background: #f8f7ed; box-shadow: 0 16px 70px #112c2270; }
.help-dialog::backdrop { background: #10251c75; }
.help-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.help-top h2 { margin: 0; }
.help-close { width: 34px; min-width: 34px; height: 34px; font-size: 1.4rem; border: 0; border-radius: 8px; background: #e9eee2; color: var(--ink); line-height: 1; }
.help-dialog p { margin: 11px 0 16px; line-height: 1.47; }
.passive-explain { margin-top: 8px; }
.passive-metrics { margin-top: 16px; padding-top: 13px; border-top: 1px solid #3c5a4a; }
.passive-metrics strong { font-size: clamp(1.15rem, 2.2vw, 1.85rem); }
.passive-metrics small { color: #a9bbac; font-size: .75rem; }

.deposit-payout { grid-column: 1 / -1; margin: 0 0 5px 4px; background: #eef2e8; }
.deposit-payout button { min-height: 38px; font-size: .79rem; }

.income-columns, .income-rows .row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1fr) 24px;
  gap: 7px;
  align-items: center;
}
.income-columns { margin: 11px 0 0; color: var(--muted); font-size: .79rem; }
.income-rows { margin-top: 4px; }
.income-indexation { border-color: #9baa8a; background: #fbfff0; }
.expense-indexation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-bottom: 8px;
  padding: 9px 11px;
  border: 1px solid #dce5d2;
  border-radius: 9px;
  background: #eef3e7;
  font-size: .86rem;
}
#expense-index-rate { white-space: nowrap; font-weight: 720; }
.indexed-metrics { grid-template-columns: 1fr 1fr; }
.indexed-metrics strong { font-size: clamp(1.05rem, 2.2vw, 1.55rem); }
.budget-ledger h2 { margin-bottom: 6px; }
.budget-ledger table { width: 100%; border-collapse: collapse; font-size: .87rem; font-variant-numeric: tabular-nums; }
.budget-ledger thead { background: #edf2e4; }
.budget-ledger th, .budget-ledger td { padding: 8px 6px; text-align: right; }
.budget-ledger th:first-child { text-align: left; }
.budget-ledger tbody tr { border-bottom: 1px solid var(--line); }
.budget-ledger tbody td:last-child { font-weight: 720; }
.budget-ledger .hint:last-child { margin-top: 8px; }
@media (max-width: 430px) {
  .income-columns, .income-rows .row { gap: 4px; }
  .income-columns { font-size: .74rem; }
  .budget-ledger th, .budget-ledger td { padding: 7px 4px; }
}

.input-shell:has(> input[aria-invalid="true"]) {
  border-color: #9f382f;
  box-shadow: 0 0 0 2px #f4d4cb;
}
