@charset "UTF-8";

/* Balance — a neutral workspace, blue actions, semantic financial colors. */
:root {
  --bg: #f4f6fa;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #5f6b80;
  --faint: #69788f;
  --line: #e0e5ee;
  --surface: #f8f9fc;
  --blue: #2b55d9;
  --blue-hover: #2245b4;
  --blue-soft: #eef3ff;
  --income: #087855;
  --income-soft: #eaf8f1;
  --expense: #b45309;
  --expense-soft: #fff4e9;
  --red: #c02c42;
  --navy: #14213b;
  --radius: 14px;
  --shadow: 0 2px 4px #13233a04, 0 8px 24px #13233a03;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  font-synthesis: none;
  font-weight: 400;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .45; }
input, select, textarea { min-width: 0; }
input[type=checkbox] { accent-color: var(--blue); width: 17px; height: 17px; flex-shrink: 0; }
:focus-visible { outline: 3px solid #93b0ff; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 20px; letter-spacing: -.4px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
strong { font-weight: 650; }
[hidden] { display: none !important; }
svg { display: block; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.rotate { transform: rotate(180deg); }
.muted { color: var(--muted); }
.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; }

/* Navigation and controls */
.topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 32px; min-height: 80px; padding: 14px max(32px, calc((100vw - 1280px)/2)); border-bottom: 1px solid var(--line); background: var(--paper); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 700; letter-spacing: -.4px; white-space: nowrap; }
.brand small { display: block; color: var(--muted); font-size: 8px; font-weight: 550; letter-spacing: 1.6px; margin-top: 1px; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--blue); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 8px; box-shadow: 0 3px 8px #2b55d91f; }
.brand-mark i { display: block; width: 22px; height: 5px; border-radius: 2px; background: white; }
.brand-mark i:first-child { margin-left: -1px; }
.brand-mark i:last-child { align-self: flex-end; }
.topbar nav { display: flex; align-items: center; gap: 6px; }
.nav-link { position: relative; padding: 10px 13px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 550; white-space: nowrap; }
.nav-link:hover { background: var(--surface); color: var(--ink); }
.nav-link.active { color: var(--blue); background: var(--blue-soft); }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.language-control { display: flex; align-items: center; gap: 6px; min-height: 40px; color: var(--muted); }
.language-control>span:first-child { font-size: 25px; line-height: 1; }
.language-control select { appearance: auto; background: transparent; border: 0; color: var(--ink); font-size: 12px; padding: 8px 0; max-width: 110px; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.button:hover { background: var(--surface); border-color: #b7c2d3; }
.button:active { transform: translateY(1px); }
.button .icon { width: 16px; height: 16px; }
.compact { font-size: 12px; padding: 8px 12px; }
.primary { background: var(--blue); border-color: var(--blue); color: white; }
.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: white; }
.share-button { background: #172033; border-color: #172033; color: white; }
.share-button:hover { background: #2c3a52; border-color: #2c3a52; }
.x-mark { font-size: 17px; line-height: 1; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 7px; flex-shrink: 0; color: var(--muted); }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button:hover { color: var(--blue); background: var(--blue-soft); }
.text-button { color: var(--blue); font-size: 12px; padding: 4px 0; white-space: nowrap; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Month overview */
main { max-width: 1280px; margin: 0 auto; padding: 24px 0 0; }
.page-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1.8px; margin-bottom: 10px; }
.eyebrow>span { width: 5px; height: 5px; background: var(--blue); border-radius: 50%; }
.month-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 40px; line-height: 1.15; font-weight: 720; letter-spacing: -1.4px; font-variant-numeric: tabular-nums; }
.month-heading-label { color: var(--muted); font-size: 13px; font-weight: 550; letter-spacing: 0; border-left: 1px solid #cbd3e0; padding-left: 16px; }
.date-toolbar { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.month-switcher { display: flex; align-items: center; background: white; padding: 4px; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.month-select { display: flex; align-items: center; gap: 9px; padding: 5px 9px; min-height: 36px; font-size: 14px; font-weight: 600; }
.month-select .icon { width: 17px; height: 17px; color: var(--muted); }
.small-chevron { color: var(--muted); font-size: 15px; margin-left: 2px; }
.today-button { min-height: 46px; background: white; color: var(--blue); border-color: #c8d5f7; }
.today-button:hover { background: var(--blue-soft); border-color: #a8bff5; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr 1.12fr; gap: 20px; }
.summary-card { min-width: 0; position: relative; overflow: hidden; padding: 24px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.summary-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; color: var(--muted); font-size: 14px; font-weight: 550; }
.summary-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.expense-summary .summary-icon { background: var(--expense-soft); color: var(--expense); }
.income-summary .summary-icon { background: var(--income-soft); color: var(--income); }
.summary-amount { display: flex; align-items: baseline; gap: 8px; margin: 13px 0 15px; font-variant-numeric: tabular-nums; }
.summary-amount>span { font-size: 21px; color: var(--faint); }
.summary-amount strong { font-size: 42px; font-weight: 700; letter-spacing: -1.4px; line-height: 1.25; white-space: nowrap; }
.expense-summary .summary-amount strong { color: #a94d10; }
.income-summary .summary-amount strong { color: var(--income); }
.summary-card>p { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.summary-note { display: none; }
.mini-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.expense-dot { background: var(--expense); }
.income-dot { background: var(--income); }
.balance-summary { background: var(--navy); border-color: var(--navy); color: white; }
.balance-summary .summary-top { color: #c8d4eb; }
.balance-summary .summary-top>.icon { color: #98b0df; }
.balance-summary .summary-amount>span { color: #96accf; }
.balance-summary .summary-amount strong { color: #68e2ae; }
.balance-summary.negative .summary-amount strong { color: #ff97a2; }
.balance-summary.neutral .summary-amount strong { color: white; }
.balance-summary>p { color: #bccae0; }
.balance-art { display: none; }

/* Editable ledger and recurring shortcuts */
.section-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 34px 0 16px; }
.section-line>div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; min-width: 0; }
.section-line>div:first-child>span { color: var(--muted); font-size: 12px; }
.save-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; flex-shrink: 0; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--income); }
.save-status.failed { color: var(--red); }
.save-status.failed .status-dot { background: var(--red); }
.quick-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.quick-tools-caption { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; }
.quick-tools-caption>.icon { color: var(--blue); }
.quick-tools-caption small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.6; }
.quick-tool-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.quick-tool-actions .button { min-height: 36px; font-size: 12px; padding: 8px 12px; }
#recurring-count { background: #ffffff26; padding: 1px 5px; min-width: 20px; border-radius: 4px; font-size: 11px; }
.ledger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ledger-card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; gap: 10px; }
.heading-label { display: flex; align-items: center; gap: 8px; }
.type-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--expense); background: var(--expense-soft); }
.income-ledger .type-icon { color: var(--income); background: var(--income-soft); }
.type-icon .icon { width: 17px; height: 17px; }
.count-badge { min-width: 22px; padding: 1px 6px; background: #f0f2f7; border-radius: 5px; text-align: center; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.add-button { min-height: 34px; font-size: 12px; padding: 7px 10px; color: var(--blue); border-color: #cdd9f5; }
.add-button:hover { background: var(--blue-soft); border-color: #a8bff5; }
.ledger-columns { margin: 0 22px; padding: 0 80px 10px 12px; display: grid; grid-template-columns: minmax(0,1fr) 142px; gap: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.ledger-columns>span:last-child { text-align: right; }
.entry-list { padding: 12px 22px 18px; min-height: 236px; max-height: 430px; overflow: auto; flex: 1; scrollbar-width: thin; }
.entry-row { display: grid; grid-template-columns: minmax(0,1fr) 142px 64px; gap: 8px; align-items: center; margin-bottom: 8px; }
.entry-row:last-child { margin-bottom: 0; }
.name-field, .amount-field { height: 42px; background: var(--surface); border: 1px solid #e0e5ed; border-radius: 7px; transition: border-color .15s, background .15s; }
.name-field { width: 100%; padding: 9px 11px; font-size: 13px; color: var(--ink); text-overflow: ellipsis; }
.name-field::placeholder { color: #718095; }
.name-field:hover, .amount-field:hover { border-color: #b5c1d3; }
.name-field:focus, .amount-field:focus-within { outline: 0; border-color: var(--blue); background: white; box-shadow: 0 0 0 3px #2b55d912; }
.amount-field { display: flex; align-items: center; gap: 4px; padding: 0 10px; }
.amount-field>span { font-size: 12px; color: var(--muted); }
.amount-field input { width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.amount-field input::placeholder { font-size: 12px; font-weight: 400; color: #718095; }
.amount-field:has([aria-invalid=true]) { border-color: var(--red); background: #fff7f8; }
.entry-actions { display: flex; align-items: center; }
.entry-actions button { display: grid; place-items: center; width: 32px; height: 36px; border-radius: 6px; padding: 0; color: #6b7a91; }
.entry-actions .icon { width: 16px; height: 16px; }
.recurring-entry:hover, .recurring-entry.configured { color: var(--blue); background: var(--blue-soft); }
.entry-actions .delete-entry:hover { color: var(--red); background: #fff0f2; }
.empty-ledger { min-height: 205px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; padding: 16px 0; }
.empty-ledger-art { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; background: var(--surface); color: #7e8ea7; border: 1px solid var(--line); border-radius: 12px; }
.empty-ledger strong { color: #41506a; font-size: 13px; }
.empty-ledger p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty-ledger button { color: var(--blue); font-size: 12px; padding-top: 6px; }
.templates { padding: 14px 22px 18px; border-top: 1px solid var(--line); min-height: 98px; }
.template-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.template-heading>span { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #43516a; }
.template-heading .icon { width: 14px; height: 14px; color: var(--blue); }
.template-heading small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.manage-templates { flex-shrink: 0; font-size: 11px; }
.template-list { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; max-height: 130px; overflow: auto; padding: 2px; }
.template-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: #45546b; text-align: left; word-break: break-word; font-size: 12px; }
.template-chip>span:last-child { color: var(--blue); font-size: 14px; }
.template-chip:hover { color: var(--blue); border-color: #b7c9f6; background: var(--blue-soft); }
.template-chip.removing { color: var(--red); border-color: #edbdc5; background: #fff7f8; }
.template-empty { font-size: 12px; color: var(--muted); padding: 3px 0; }
.ledger-subtotal { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border-top: 1px solid var(--line); padding: 14px 22px; font-size: 12px; color: var(--muted); }
.ledger-subtotal strong { font-size: 17px; color: var(--expense); font-variant-numeric: tabular-nums; white-space: nowrap; }
.income-ledger .ledger-subtotal strong { color: var(--income); }
.ledger-hint { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 7px; margin: 12px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.ledger-hint .icon { width: 14px; height: 14px; margin-top: 2px; }
.ledger-hint>span[data-i18n] { flex: 1; min-width: 200px; }
.ledger-hint button { margin-left: auto; padding: 0; font-size: 11px; }

/* Charts and annual table */
.unit-label { color: var(--muted); font-size: 12px; }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr .95fr; gap: 20px; }
.chart-card { min-width: 0; min-height: 284px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chart-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 26px; }
.chart-title h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; line-height: 1.5; }
.chart-title>span { color: var(--muted); font-size: 11px; text-align: right; flex-shrink: 0; max-width: 30%; }
.chart-title>.icon { width: 17px; height: 17px; color: #8391a8; }
.bar-chart { margin-top: 22px; max-height: 220px; overflow: auto; scrollbar-width: thin; padding-right: 2px; }
.bar-row { margin-bottom: 18px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #41516a; font-size: 12px; }
.bar-label>span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label strong { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-track { height: 9px; background: #f0f3f8; border-radius: 3px; overflow: hidden; }
.bar-track>div { height: 100%; min-width: 2px; border-radius: 3px; background: var(--expense); transition: width .2s; }
.income-chart .bar-track>div { background: var(--income); }
.empty-chart { min-height: 190px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; }
.empty-bars { display: flex; align-items: flex-end; justify-content: center; gap: 10px; width: 130px; height: 65px; border-bottom: 1px dashed var(--line); }
.empty-bars i { width: 20px; height: 37px; border-radius: 4px 4px 0 0; background: #edf0f6; }
.empty-bars i:nth-child(2) { height: 60px; background: #dde5f4; }
.empty-bars i:nth-child(3) { height: 46px; }
.empty-bars i:nth-child(4) { height: 23px; }
.empty-chart p { font-size: 12px; color: var(--muted); text-align: center; }
.comparison { display: flex; flex-direction: column; align-items: center; padding-top: 18px; }
.donut { position: relative; display: grid; place-items: center; width: 148px; height: 148px; border-radius: 50%; background: #edf0f6; flex-shrink: 0; }
.donut:before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: white; }
.donut-label { position: relative; display: flex; align-items: center; flex-direction: column; gap: 3px; z-index: 1; }
.donut-label strong { font-size: 28px; letter-spacing: -.8px; font-weight: 700; color: var(--ink); }
.donut-label span { font-size: 11px; color: var(--muted); }
.donut-label small { max-width: 116px; font-size: 9px; line-height: 1.5; text-align: center; color: var(--muted); }
.compare-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; width: 100%; }
.compare-legend>div { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 11px; }
.compare-legend strong { font-size: 12px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.annual-section { margin-top: 34px; scroll-margin-top: 24px; }
.annual-section .section-line { margin-top: 0; }
.year-switcher { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; font-weight: 600; }
.annual-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.annual-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 22px 24px; }
.annual-header>div:first-child { display: flex; align-items: center; gap: 12px; }
.annual-year { font-size: 24px; font-weight: 650; letter-spacing: -.5px; }
.annual-header>div:first-child>span:last-child { color: var(--muted); font-size: 12px; }
.annual-sums { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 30px; color: var(--muted); font-size: 11px; }
.annual-sums>span { display: flex; flex-direction: column; gap: 3px; }
.annual-sums strong { color: var(--ink); font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.annual-sums strong.positive, .annual-table .positive { color: var(--income); }
.annual-sums strong.negative, .annual-table .negative { color: var(--red); }
.table-scroll { overflow-x: auto; margin: 0 24px; scrollbar-width: thin; scrollbar-color: #bec9da transparent; }
.annual-table { width: 100%; min-width: 1080px; border-collapse: collapse; table-layout: fixed; font-size: 12px; font-variant-numeric: tabular-nums; }
.annual-table th, .annual-table td { height: 48px; padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); font-weight: 500; white-space: nowrap; }
.annual-table thead th { background: var(--surface); color: var(--muted); }
.annual-table thead th:first-child { width: 106px; }
.annual-table thead button { min-height: 32px; padding: 4px; width: 100%; font-size: 12px; border-radius: 5px; white-space: nowrap; }
.annual-table thead button:hover { background: #dfe8ff; color: var(--blue); }
.annual-table tbody th { position: sticky; left: 0; z-index: 1; padding-left: 12px; background: white; box-shadow: 4px 0 8px #ffffffdd; color: var(--muted); text-align: left; }
.annual-table td { color: #43516b; }
.annual-table .selected { background: var(--blue-soft); }
.annual-table thead .selected { color: var(--blue); }
.annual-table .no-data { color: #8c98ab; }
.annual-table tbody tr:last-child th, .annual-table tbody tr:last-child td { border-bottom: 0; height: 66px; }
.mini-donut { position: relative; width: 29px; height: 29px; margin: auto; border-radius: 50%; background: #e8edf5; }
.mini-donut:after { content: ""; position: absolute; inset: 6px; background: white; border-radius: 50%; }
.selected .mini-donut:after { background: var(--blue-soft); }
.annual-footnote { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 24px 18px; color: var(--muted); font-size: 11px; }
.annual-footnote>span:first-child { display: flex; align-items: center; gap: 6px; }
.annual-footnote .income-dot { margin-left: 12px; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 36px; padding: 24px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer>span { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; line-height: 1.7; }
.footer-projects { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px; flex-basis: 100%; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer-projects-label { color: var(--muted); font-size: 12px; font-weight: 600; padding-right: 8px; }
.footer-project-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); text-decoration: none; transition: border-color .15s, background .15s; }
.footer-project-link:hover { border-color: var(--blue); background: var(--blue-soft); }
.footer-project-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.footer-project-link strong { display: block; color: var(--ink); font-size: 13px; font-weight: 650; line-height: 1.5; }
.footer-project-link small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.project-arrow { flex-shrink: 0; color: var(--blue); font-size: 20px; }
.footer-logo { font-size: 25px; line-height: 12px; color: var(--blue); margin-right: 4px; }
.footer-divider { color: #acb7c8; margin: 0 7px; }
footer .icon { width: 14px; height: 14px; }
.footer-privacy { display: flex; align-items: center; gap: 11px; max-width: 540px; margin-left: auto; padding: 10px 14px; border-left: 3px solid var(--blue); border-radius: 3px 8px 8px 3px; background: var(--blue-soft); }
.footer-privacy>.icon { width: 23px; height: 23px; color: var(--blue); }
.footer-privacy strong { display: block; color: #244473; font-size: 13px; line-height: 1.6; font-weight: 650; }
.footer-privacy p { margin-top: 2px; color: #526785; font-size: 11px; line-height: 1.6; }

/* Dialogs, backup, and recurring forms */
dialog { width: min(550px, calc(100% - 32px)); max-height: 90vh; padding: 28px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: white; overflow: auto; box-shadow: 0 28px 100px #101c3640; }
dialog::backdrop { background: #15233c66; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.dialog-heading h2 { font-size: 22px; font-weight: 650; line-height: 1.4; }
.dialog-heading .eyebrow { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 7px; }
.dialog-heading>.icon-button { margin: -3px -6px 0 0; }
.dialog-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 18px; }
.month-dialog { width: min(370px, calc(100% - 32px)); }
.month-dialog .dialog-heading h2 { font-size: 19px; }
.picker-year { display: flex; align-items: center; justify-content: space-between; margin: 20px 0; }
.picker-year label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.picker-year input { width: 88px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 7px; padding: 8px 4px; text-align: center; font-size: 20px; appearance: textfield; }
.picker-year input::-webkit-inner-spin-button { display: none; }
.month-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.month-grid button { position: relative; min-height: 46px; padding: 10px 2px; border-radius: 7px; background: var(--surface); color: #495974; font-size: 13px; }
.month-grid button:hover { background: var(--blue-soft); color: var(--blue); }
.month-grid button.selected { background: var(--blue); color: white; }
.month-grid button.current:after { content: ""; position: absolute; bottom: 5px; left: calc(50% - 2px); width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.privacy-explanation { display: flex; align-items: flex-start; gap: 12px; padding: 16px; margin-top: 20px; border-radius: 10px; background: var(--blue-soft); border: 1px solid #d6e1fb; }
.privacy-explanation>.icon { color: var(--blue); margin-top: 2px; }
.privacy-explanation strong { font-size: 14px; color: #284775; }
.privacy-explanation p { color: #506582; font-size: 12px; line-height: 1.8; margin-top: 7px; }
.backup-summary { font-size: 12px; color: var(--muted); margin: 20px 0 12px; }
.backup-option { display: flex; align-items: center; gap: 13px; padding: 16px; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.backup-option:hover { background: var(--surface); border-color: #b7c7e6; }
.option-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }
.backup-option>span:nth-child(2) { flex: 1; min-width: 0; }
.backup-option strong { display: block; font-size: 14px; }
.backup-option small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.backup-option>.icon { width: 16px; color: var(--muted); }
.import-review { margin-top: 16px; padding: 17px; background: #fff9ee; border: 1px solid #efd7a9; border-radius: 10px; color: #815215; }
.import-review h3 { font-size: 14px; }
.import-review p { margin-top: 8px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.import-review label { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 12px; line-height: 1.8; }
.import-review>div { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.wide-dialog { width: min(690px, calc(100% - 32px)); }
.flow-description { color: #4c5d76; font-size: 13px; line-height: 1.8; margin-bottom: 18px; overflow-wrap: anywhere; }
.flow-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 16px; overflow-wrap: anywhere; }
.form-feedback { margin-top: 12px; min-height: 0; font-size: 12px; line-height: 1.7; color: var(--red); }
.form-feedback:empty { display: none; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.carry-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: #4e5e76; font-size: 12px; }
.carry-toolbar label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.carry-toolbar select, .carry-row select, .rule-form select, .rule-form input:not([type=checkbox]) { border: 1px solid #cbd4e3; border-radius: 7px; background: white; color: var(--ink); padding: 9px 10px; }
.carry-toolbar select { font-size: 12px; padding: 7px; }
.carry-list { max-height: 43vh; overflow: auto; margin-top: 16px; scrollbar-width: thin; }
.carry-group+.carry-group { margin-top: 18px; }
.carry-group h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.carry-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.carry-row>label { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; cursor: pointer; }
.carry-row>label>span { min-width: 0; }
.carry-row strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.carry-row small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.carry-row select { max-width: 180px; font-size: 12px; padding: 8px; }
.carry-row.unavailable { color: var(--muted); }
.carry-row.unavailable select { opacity: .55; }
.carry-toolbar input, .carry-row input { margin: 0; }
.flow-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 190px; padding: 22px 12px; text-align: center; }
.flow-empty strong { font-size: 15px; }
.flow-empty p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.flow-empty-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 26px; margin-bottom: 5px; }
.rules-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 18px 0 15px; font-size: 12px; color: var(--muted); }
.rule-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-height: 49vh; overflow: auto; scrollbar-width: thin; }
.rule-list>.flow-empty { grid-column: 1/-1; }
.rule-item { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.rule-item-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.rule-item-title>strong { font-size: 14px; overflow-wrap: anywhere; }
.rule-type { border-radius: 4px; padding: 2px 6px; font-size: 10px; }
.rule-type.expense { background: var(--expense-soft); color: var(--expense); }
.rule-type.income { background: var(--income-soft); color: var(--income); }
.rule-state { font-size: 10px; color: var(--muted); margin-left: auto; }
.rule-state.active { color: var(--income); }
.rule-amount { color: var(--ink); font-size: 15px; font-weight: 600; margin-top: 13px; }
.rule-item-bottom { display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 11px; margin-top: 5px; }
.rule-item-bottom>div { display: flex; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.rule-item-bottom button { color: var(--blue); font-size: 12px; padding: 2px 0; }
.rule-item-bottom .rule-delete { color: var(--red); margin-left: auto; }
.rule-deleted { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; margin-top: 14px; border-radius: 8px; background: var(--blue-soft); color: #39537e; font-size: 12px; }
.rule-form { display: flex; flex-direction: column; gap: 17px; }
.rule-form label { display: flex; flex-direction: column; gap: 7px; color: #465672; font-size: 13px; line-height: 1.6; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rule-form input:not([type=checkbox]), .rule-form select { width: 100%; min-height: 44px; font-size: 14px; }
.rule-form input::placeholder { color: #738198; }
.rule-form .flow-note { margin-top: -5px; }
.rule-form .checkbox-label, .checkbox-label { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.optional { color: var(--muted); font-size: 11px; font-weight: 400; }
.rule-form label:has(.optional) { position: relative; }
.rule-form .optional { position: absolute; top: 2px; right: 0; }

/* Share studio, messages, and privacy states */
#share-dialog { width: min(860px, calc(100% - 32px)); }
.share-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.share-controls>label:first-child { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.share-controls select { max-width: 100%; padding: 9px 12px; border-radius: 7px; border: 1px solid #cbd4e3; color: var(--ink); background: white; font-size: 13px; }
.share-controls .checkbox-label { font-size: 12px; line-height: 1.6; color: #43536c; }
#share-canvas { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 9px; border: 1px solid var(--line); background: white; }
.share-copy-label { display: block; margin: 20px 0 8px; color: #34455f; font-size: 13px; font-weight: 600; }
#share-copy { width: 100%; min-height: 110px; padding: 12px 14px; color: var(--ink); background: var(--surface); border: 1px solid #cbd4e3; border-radius: 8px; resize: vertical; font-size: 13px; line-height: 1.7; }
.share-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
#share-data-note { color: #395b8b; margin-top: 12px; }
#share-feedback { color: #395b8b; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 20px; padding: 14px 18px; border-radius: 10px; background: var(--navy); color: white; font-size: 13px; box-shadow: 0 8px 40px #14213b33; }
.toast>button { color: #a9c2ff; font-size: 12px; white-space: nowrap; }
.toast .toast-close { color: #bccbe5; font-size: 22px; }
.warning-banner, .demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 22px; border-radius: 8px; font-size: 12px; line-height: 1.8; }
.warning-banner { background: #fff7e8; border: 1px solid #efd5a4; color: #8a5711; }
.demo-banner { background: #e9eef8; border: 1px solid #d7e0f0; color: #506686; }
.demo-banner>span { display: flex; align-items: center; gap: 8px; }
.demo-banner .icon { width: 16px; height: 16px; }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; padding: 20px; text-align: center; background: #fff7e8; color: #8a5711; }

/* Tablet and multilingual expansion */
@media (max-width: 1370px) {
  main { margin: 0 32px; }
  .topbar { gap: 24px; }
  .summary-amount strong { font-size: 38px; }
  .entry-row { grid-template-columns: minmax(0,1fr) 128px 64px; }
  .ledger-columns { grid-template-columns: minmax(0,1fr) 128px; }
}
@media (max-width: 1150px) {
  .topbar { gap: 18px; }
  .topbar nav { gap: 0; }
  .nav-link { padding: 10px; font-size: 12px; }
  .header-actions { gap: 8px; }
  .header-actions .button { font-size: 12px; padding: 9px 11px; }
  .summary-card { padding: 20px; }
  .summary-amount strong { font-size: 34px; }
  .quick-tools { align-items: flex-start; flex-direction: column; gap: 12px; }
  .quick-tool-actions { justify-content: flex-start; }
  .entry-row { grid-template-columns: minmax(0,1fr) 112px 60px; gap: 6px; }
  .entry-actions button { width: 30px; }
  .ledger-columns { grid-template-columns: minmax(0,1fr) 112px; padding-right: 72px; }
  .card-heading, .templates, .ledger-subtotal { padding-left: 18px; padding-right: 18px; }
  .entry-list { padding-left: 18px; padding-right: 18px; }
  .ledger-columns { margin: 0 18px; }
  .template-heading small { display: none; }
  .chart-card { padding: 20px 18px; }
  .chart-title>span { display: none; }
  .annual-sums { gap: 12px 20px; }
}
@media (max-width: 960px) {
  .summary-grid.has-wide-amounts { grid-template-columns: 1fr; }
  .topbar { gap: 8px 18px; }
  .topbar nav { margin-left: auto; }
  .header-actions { width: 100%; margin-top: 3px; }
  .language-control { margin-right: auto; }
  .summary-grid, .ledger-grid, .charts-grid { gap: 16px; }
  .summary-amount strong { font-size: 31px; }
  .summary-top { font-size: 13px; }
  .ledger-grid { grid-template-columns: 1fr; }
  .entry-list { min-height: 210px; }
  .entry-row { grid-template-columns: minmax(0,1fr) 180px 64px; gap: 8px; }
  .entry-actions button { width: 32px; }
  .ledger-columns { grid-template-columns: minmax(0,1fr) 180px; padding-right: 80px; }
  .template-heading small { display: inline; }
  .charts-grid { grid-template-columns: 1fr 1fr; }
  .compare-card { grid-column: 1/-1; min-height: 210px; }
  .comparison { flex-direction: row; justify-content: center; gap: 48px; }
  .compare-legend { width: 190px; grid-template-columns: 1fr; gap: 20px; margin: 0; }
  .compare-legend>div { justify-content: flex-start; font-size: 12px; }
  .compare-legend strong { margin-left: auto; font-size: 14px; }
  .annual-header>div:first-child>span:last-child { display: none; }
}
@media (max-width: 640px) {
  .footer-projects { grid-template-columns: 1fr; gap: 8px; padding-bottom: 16px; }
  .footer-projects-label { padding: 0 0 2px; }
  .footer-project-link { padding: 10px 12px; }
  main { margin: 0 16px; padding-top: 20px; }
  .topbar { padding: 12px 16px; min-height: 115px; gap: 7px 12px; }
  .brand { font-size: 21px; gap: 9px; }
  .brand-mark { width: 34px; height: 34px; padding: 8px 6px; border-radius: 9px; gap: 5px; }
  .brand-mark i { height: 5px; width: 20px; }
  .brand small { font-size: 7px; letter-spacing: 1.2px; }
  .topbar nav { gap: 0; }
  .topbar nav .nav-link:first-child { display: none; }
  .nav-link { padding: 8px; font-size: 11px; }
  .header-actions { gap: 8px; }
  .header-actions .button { min-height: 38px; padding: 8px 10px; font-size: 11px; }
  .header-actions .button .icon { display: none; }
  .header-actions #backup-open { width: 38px; padding: 8px; }
  .header-actions #backup-open .icon { display: block; width: 17px; height: 17px; }
  .header-actions #backup-open>span { display: none; }
  .language-control { min-height: 38px; gap: 5px; }
  .language-control select { max-width: 94px; font-size: 12px; }
  .page-intro { gap: 12px; margin-bottom: 16px; }
  .month-heading { font-size: 34px; gap: 12px; letter-spacing: -1.2px; }
  .month-heading-label { font-size: 12px; padding-left: 12px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .date-toolbar { width: 100%; gap: 8px; }
  .month-switcher { flex: 1; min-width: 0; justify-content: space-between; }
  .month-select { flex: 1; justify-content: center; min-width: 0; font-size: 12px; padding: 4px; gap: 6px; }
  .month-select .icon { width: 15px; }
  .month-switcher .icon-button { width: 30px; }
  .today-button { font-size: 12px; max-width: 106px; padding: 8px 12px; white-space: normal; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .summary-card { padding: 16px 14px; border-radius: 12px; }
  .summary-top { font-size: 12px; gap: 6px; min-height: 28px; }
  .summary-icon { width: 25px; height: 25px; border-radius: 6px; }
  .summary-icon .icon { width: 15px; height: 15px; }
  .summary-amount { gap: 4px; margin: 12px 0; }
  .summary-amount>span { font-size: 16px; }
  .summary-amount strong { font-size: 29px; letter-spacing: -.8px; }
  .summary-card>p { font-size: 11px; gap: 5px; }
  .balance-summary { grid-column: 1/-1; padding: 20px; }
  .balance-summary .summary-top { font-size: 13px; min-height: 22px; }
  .balance-summary .summary-amount { margin: 10px 0; }
  .balance-summary .summary-amount strong { font-size: 40px; letter-spacing: -1px; }
  .section-line { align-items: flex-start; row-gap: 7px; margin: 28px 0 14px; }
  .section-line h2 { font-size: 19px; }
  .section-line>div:first-child { gap: 6px; }
  .section-line>div:first-child>span { font-size: 11px; }
  .save-status { font-size: 11px; }
  .quick-tools { padding: 14px; }
  .quick-tools-caption { align-items: flex-start; font-size: 13px; gap: 9px; }
  .quick-tools-caption>.icon { width: 17px; height: 17px; margin-top: 2px; }
  .quick-tools-caption small { font-size: 11px; }
  .quick-tool-actions { flex-shrink: 1; gap: 7px; }
  .quick-tool-actions .button { min-height: 38px; padding: 8px 10px; font-size: 11px; white-space: normal; }
  .card-heading { padding: 18px 14px; gap: 8px; }
  .heading-label { gap: 6px; }
  .heading-label h3 { font-size: 16px; }
  .type-icon { width: 28px; height: 28px; }
  .add-button { font-size: 11px; min-height: 34px; padding: 7px 9px; }
  .entry-list { padding: 12px 14px 16px; min-height: 216px; }
  .entry-row { grid-template-columns: minmax(0,1fr) 108px 60px; gap: 5px; }
  .entry-actions button { width: 30px; height: 40px; }
  .ledger-columns { margin: 0 14px; padding-left: 9px; padding-right: 70px; grid-template-columns: minmax(0,1fr) 108px; gap: 5px; font-size: 11px; }
  .name-field, .amount-field { height: 44px; }
  .name-field { padding: 8px 9px; font-size: 16px; }
  .amount-field { padding: 0 7px; }
  .amount-field input { font-size: 16px; }
  .amount-field input::placeholder { font-size: 11px; }
  .templates { padding: 14px; }
  .template-heading small { display: none; }
  .template-heading>span { font-size: 11px; }
  .template-chip { min-height: 32px; }
  .ledger-subtotal { padding: 14px; font-size: 12px; }
  .ledger-subtotal>span { max-width: 55%; }
  .ledger-subtotal strong { font-size: 16px; }
  .unit-label { font-size: 10px; max-width: 135px; text-align: right; }
  .chart-section-heading>div:first-child>span { display: none; }
  .charts-grid { gap: 12px; }
  .chart-card { padding: 17px 14px; min-height: 255px; }
  .chart-title h3 { font-size: 12px; gap: 6px; }
  .bar-label { flex-wrap: wrap; gap: 2px; font-size: 11px; }
  .bar-label strong { font-size: 11px; }
  .bar-chart { max-height: 225px; margin-top: 18px; }
  .bar-row { margin-bottom: 14px; }
  .bar-track { height: 7px; }
  .compare-card { min-height: 190px; }
  .comparison { gap: 22px; padding-top: 16px; }
  .donut { width: 128px; height: 128px; }
  .donut:before { inset: 14px; }
  .donut-label strong { font-size: 25px; }
  .donut-label small { font-size: 8px; max-width: 96px; }
  .compare-legend { width: auto; flex: 1; gap: 17px; }
  .compare-legend>div { gap: 5px; font-size: 11px; }
  .compare-legend strong { font-size: 12px; }
  .annual-section .section-line>div:first-child>span { display: none; }
  .year-switcher { gap: 4px; font-size: 15px; }
  .year-switcher .icon-button { width: 30px; height: 30px; }
  .annual-header { padding: 18px 16px; gap: 14px; }
  .annual-sums { width: 100%; gap: 12px 22px; }
  .annual-sums strong { font-size: 13px; }
  .table-scroll { margin: 0 16px; }
  .annual-footnote { padding: 14px 16px 16px; font-size: 10px; }
  footer { margin-top: 28px; padding: 21px 0; font-size: 10px; gap: 10px; }
  footer>span { gap: 5px; }
  .footer-divider { margin: 0 4px; }
  .footer-privacy { width: 100%; max-width: none; padding: 10px 12px; gap: 9px; }
  .footer-privacy strong { font-size: 12px; }
  .footer-privacy>.icon { width: 21px; height: 21px; }
  dialog, #share-dialog { padding: 22px 20px; border-radius: 14px; }
  .dialog-heading h2 { font-size: 20px; }
  .dialog-heading .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
  .dialog-heading { margin-bottom: 18px; gap: 10px; }
  .privacy-explanation { padding: 13px; gap: 10px; }
  .privacy-explanation strong { font-size: 13px; }
  .privacy-explanation p, .backup-option small { font-size: 11px; }
  .backup-option { padding: 13px; gap: 10px; }
  .backup-option strong { font-size: 13px; }
  .dialog-actions .button { font-size: 12px; }
  .carry-toolbar { align-items: flex-start; flex-direction: column; }
  .carry-row { gap: 8px; }
  .carry-row>label { gap: 7px; }
  .carry-row strong { font-size: 13px; }
  .carry-row small { font-size: 11px; }
  .carry-row select { max-width: 130px; padding: 8px 6px; font-size: 11px; }
  .rule-list, .form-two { grid-template-columns: 1fr; }
  .rule-form input:not([type=checkbox]), .rule-form select { font-size: 16px; }
  .share-controls { gap: 12px; }
  .share-controls>label:first-child { flex-wrap: wrap; font-size: 12px; }
  #share-copy { font-size: 16px; }
  .share-actions { gap: 8px; }
  .share-actions .button { padding: 10px 12px; font-size: 12px; }
  #share-x { flex-basis: 100%; }
  .warning-banner, .demo-banner { align-items: flex-start; font-size: 11px; padding: 11px 13px; }
  .demo-banner>span { align-items: flex-start; }
  .demo-banner button { font-size: 11px; }
  .toast { bottom: 18px; padding: 12px 14px; font-size: 12px; gap: 14px; }
}
@media (max-width: 359px) {
  .header-actions { gap: 6px; }
  .header-actions .button { font-size: 10px; padding: 8px; }
  .entry-row { grid-template-columns: minmax(0,1fr) 100px 54px; gap: 4px; }
  .entry-actions button { width: 27px; }
  .ledger-columns { grid-template-columns: minmax(0,1fr) 100px; padding-right: 62px; }
  .month-heading-label { border: 0; padding: 0; }
  .chart-card { padding: 15px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
