:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f5f6f8; --surface: #fff; --ink: #202735; --muted: #657184;
  --border: #e1e5ed; --accent: #365fba; --soft: #e9effb; --hero: #233f78; --hero-end: #496aaa;
  --shadow: 0 12px 40px rgba(22, 37, 70, .06); --danger: #a63742;
  color: var(--ink); background: var(--bg);
  font-synthesis: none;
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #12151c; --surface: #1c212c; --ink: #eef1f8; --muted: #a0acc0; --border: #30394a; --accent: #a8c0ff; --soft: #283a5b; --hero: #283f6b; --hero-end: #374f7c; --danger: #ffadb5; }
:root[data-accent="sage"] { --accent: #32644c; --soft: #e5f0e9; --hero: #244f3e; --hero-end: #507b60; }
:root[data-accent="violet"] { --accent: #7052b0; --soft: #eee8fa; --hero: #47336f; --hero-end: #8464b2; }
:root[data-theme="dark"][data-accent="sage"] { --accent: #a2d2b6; --soft: #263c30; }
:root[data-theme="dark"][data-accent="violet"] { --accent: #c8aff8; --soft: #392f4e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #12151c; --surface: #1c212c; --ink: #eef1f8; --muted: #a0acc0; --border: #30394a; --danger: #ffadb5; }
  :root:not([data-theme="light"])[data-accent="blue"], :root:not([data-theme="light"]):not([data-accent]) { --accent: #a8c0ff; --soft: #283a5b; --hero: #283f6b; --hero-end: #374f7c; }
  :root:not([data-theme="light"])[data-accent="sage"] { --accent: #a2d2b6; --soft: #263c30; }
  :root:not([data-theme="light"])[data-accent="violet"] { --accent: #c8aff8; --soft: #392f4e; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .6; }
button, input, select, textarea { transition: border-color .15s, background-color .15s, box-shadow .15s; }
button:hover:not(:disabled) { filter: brightness(.97); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.65rem, 4vw, 2.1rem); letter-spacing: -.04em; font-weight: 720; }
h2 { margin-bottom: 14px; font-size: 1.15rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; }
p { line-height: 1.6; }
small { line-height: 1.5; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.app-shell { width: min(100%, 860px); margin: auto; padding: max(22px, env(safe-area-inset-top)) 26px calc(108px + env(safe-area-inset-bottom)); }
.topbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; color: var(--ink); font-size: 1.22rem; font-weight: 740; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; background: var(--accent); color: var(--bg); display: grid; place-items: center; font-size: 1.6rem; }
.brand small { display: block; color: var(--muted); font-size: .7rem; font-weight: 450; letter-spacing: .02em; }
.more-button { display: flex; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: .85rem; }
.more-button.active { border-color: var(--accent); color: var(--accent); }
.page-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.page-heading { margin-bottom: 24px; }
.eyebrow { margin-bottom: 5px; font-size: .72rem; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; }
.section { margin-top: 28px; }
.section-heading { margin-bottom: 12px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .secondary { white-space: nowrap; }
.section-heading .secondary { white-space: nowrap; }
.section-heading .secondary { white-space: nowrap; }
.finance-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 5px; margin: -5px 0 24px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.finance-tab { min-height: 40px; padding: 8px 10px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 650; }
.finance-tab.active { background: var(--soft); color: var(--accent); }
.finance-attention { padding: 22px; }
.attention-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.attention-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); font-size: .8rem; }
.attention-list li span { color: var(--muted); text-align: right; }
.finance-recent { padding: 22px; }
.finance-hint { padding: 22px; }
.muted { color: var(--muted); }
.small { font-size: .78rem; }
.text-button { border: 0; padding: 10px 0; background: none; color: var(--accent); font-size: .82rem; font-weight: 650; white-space: nowrap; }
.primary, .secondary, .on-hero, .danger-button { min-height: 44px; padding: 11px 17px; border-radius: 13px; font-size: .9rem; font-weight: 650; border: 1px solid transparent; }
.primary { background: var(--accent); color: var(--bg); }
.secondary { background: var(--surface); color: var(--accent); border-color: var(--border); }
.danger-button { background: transparent; color: var(--danger); border-color: var(--danger); }
.hero { padding: 28px; border-radius: 25px; color: #fff; background: linear-gradient(115deg, var(--hero), var(--hero-end)); box-shadow: var(--shadow); }
.hero .pill { display: inline-block; color: #fff; background: rgba(255,255,255,.13); padding: 6px 10px; border-radius: 8px; font-size: .7rem; }
.hero h2 { font-size: clamp(1.45rem, 4vw, 1.95rem); margin: 18px 0 10px; }
.hero .hero-amount { font-size: clamp(1.7rem, 4.5vw, 2.7rem); word-break: break-word; }
.hero p { max-width: 52ch; font-size: .9rem; color: #e4eafa; }
.hero small { display: block; color: #e4eafa; margin-top: 12px; font-size: .7rem; }
.on-hero { background: #fff; color: var(--hero); }
.welcome-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.welcome-link { min-height: 44px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.38); border-radius: 13px; color: #fff; background: transparent; font-size: .84rem; font-weight: 650; }
.welcome-link:hover { background: rgba(255,255,255,.1); }
.onboarding-intro > p:first-child { margin-bottom: 18px; }
.onboarding-points { display: grid; gap: 10px; }
.onboarding-points > div { display: grid; grid-template-columns: 38px 1fr; column-gap: 11px; align-items: center; padding: 13px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.onboarding-points span { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--soft); color: var(--accent); font-size: 1.1rem; }
.onboarding-points strong { font-size: .86rem; }
.onboarding-points small { color: var(--muted); font-size: .72rem; }
.onboarding-intro > .muted { margin: 16px 0 0; }
.save-confirmation { margin: -8px 0 18px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 13px; background: var(--soft); color: var(--accent); font-size: .84rem; font-weight: 650; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric { min-width: 0; border: 1px solid var(--border); border-radius: 18px; padding: 20px; background: var(--surface); }
.metric span, .metric small { display: block; color: var(--muted); font-size: .78rem; }
.metric strong { display: block; font-size: clamp(1rem, 3vw, 1.65rem); margin: 10px 0 8px; overflow-wrap: anywhere; }
.metric small { font-size: .69rem; }
.soft-pill { display: inline-block; padding: 7px 10px; border-radius: 999px; background: var(--soft); color: var(--accent); font-size: .72rem; font-weight: 650; white-space: nowrap; }
.budget-panel { padding: 22px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); font-size: .85rem; font-weight: 650; }
.action-symbol, .transaction-icon { display: grid; place-items: center; border-radius: 10px; width: 34px; height: 34px; flex: 0 0 34px; background: var(--soft); font-size: 1.3rem; color: var(--accent); }
.income .action-symbol, .transaction-icon.income { background: #e3f0e9; color: #31694e; }
.expense .action-symbol, .transaction-icon.expense { background: #f4e6e7; color: #9a4650; }
.panel { border: 1px solid var(--border); background: var(--surface); border-radius: 20px; padding: 24px; }
.empty { text-align: center; padding: 36px 22px; border: 1px dashed var(--border); border-radius: 18px; color: var(--muted); }
.empty h2, .empty h3 { color: var(--ink); }
.empty p { max-width: 55ch; margin-left: auto; margin-right: auto; }
.empty.compact { padding: 24px 18px; }
.empty.compact p { margin-bottom: 4px; }
.large-symbol { display: block; font-size: 3.5rem; line-height: 1.5; color: var(--accent); }
.feature-chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.feature-chips span { padding: 8px 12px; font-size: .75rem; background: var(--soft); color: var(--accent); border-radius: 999px; }
.accounts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.account-card { display: block; text-align: left; padding: 20px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.account-card h3 { margin: 12px 0 8px; overflow-wrap: anywhere; }
.account-card strong { display: block; font-size: 1.4rem; overflow-wrap: anywhere; }
.account-card small { display: block; color: var(--accent); margin-top: 16px; }
.account-tag { color: var(--muted); font-size: .72rem; }
.fixed-payments { padding: 22px; }
.fixed-payment-summary { display: flex; gap: 18px; flex-wrap: wrap; margin: 4px 0 16px; color: var(--muted); font-size: .78rem; }
.fixed-payment-summary strong { display: block; margin-top: 4px; color: var(--ink); font-size: .98rem; }
.fixed-payment-list { border-top: 1px solid var(--border); }
.fixed-payment-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.fixed-payment-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fixed-payment-main { min-width: 0; flex: 1; }
.fixed-payment-main strong, .fixed-payment-main small { display: block; overflow-wrap: anywhere; }
.fixed-payment-main strong { font-size: .86rem; }
.fixed-payment-main small { color: var(--muted); font-size: .7rem; margin-top: 4px; }
.fixed-payment-side { display: grid; justify-items: end; gap: 8px; flex-shrink: 0; }
.fixed-payment-side > strong { font-size: .86rem; }
.paid-toggle { min-height: 35px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--accent); font-size: .72rem; font-weight: 650; }
.paid-toggle.is-paid { border-color: var(--accent); background: var(--soft); }
.cashback-panel { padding: 22px; }
.cashback-list { border-top: 1px solid var(--border); }
.cashback-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cashback-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cashback-main { min-width: 0; flex: 1; }
.cashback-main strong, .cashback-main small { display: block; overflow-wrap: anywhere; }
.cashback-main strong { font-size: .84rem; }
.cashback-main small { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.cashback-percent { color: var(--accent); white-space: nowrap; }
.cashback-delete { font-size: .73rem; }
.cashback-preview { min-height: 1.2em; margin: -6px 0 14px; }
.deposit-panel { padding: 22px; }
.deposit-list { border-top: 1px solid var(--border); }
.deposit-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.deposit-row:last-child { border-bottom: 0; padding-bottom: 0; }
.deposit-main { min-width: 0; flex: 1; }
.deposit-main strong, .deposit-main small { display: block; overflow-wrap: anywhere; }
.deposit-main strong { font-size: .85rem; }
.deposit-main small { color: var(--muted); font-size: .7rem; margin-top: 4px; }
.deposit-side { display: grid; justify-items: end; gap: 3px; flex-shrink: 0; }
.deposit-side > strong { color: var(--accent); font-size: .9rem; }
.deposit-side > small { color: var(--muted); font-size: .68rem; }
.deposit-delete { font-size: .73rem; }
.debt-panel { padding: 22px; }
.debt-summary { margin: -5px 0 14px; }
.debt-list { border-top: 1px solid var(--border); }
.debt-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.debt-row:last-child { border-bottom: 0; padding-bottom: 0; }
.debt-row.is-closed { opacity: .62; }
.debt-main { min-width: 0; flex: 1; }
.debt-main strong, .debt-main small { display: block; overflow-wrap: anywhere; }
.debt-main strong { font-size: .85rem; }
.debt-main small { color: var(--muted); font-size: .7rem; margin-top: 4px; }
.debt-side { display: grid; justify-items: end; gap: 4px; flex-shrink: 0; }
.debt-side > strong { color: var(--accent); font-size: .9rem; }
.debt-side > small { color: var(--muted); font-size: .68rem; }
.debt-side .secondary { padding: 7px 10px; font-size: .72rem; }
.debt-delete { font-size: .73rem; }
.health-chart-panel { padding: 22px; }
.health-chart-wrap { width: 100%; overflow: hidden; }
.health-chart { display: block; width: 100%; min-height: 180px; margin-top: 6px; }
.chart-axis { stroke: var(--border); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.chart-caption { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .7rem; }
.chart-caption strong { color: var(--accent); font-weight: 650; }
.measurement-list { border-top: 1px solid var(--border); }
.measurement-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.measurement-row:last-child { border-bottom: 0; padding-bottom: 0; }
.measurement-main { min-width: 0; flex: 1; }
.measurement-main strong, .measurement-main small { display: block; overflow-wrap: anywhere; }
.measurement-main strong { font-size: .85rem; }
.measurement-main small { color: var(--muted); font-size: .7rem; margin-top: 4px; }
.measurement-delete { font-size: .73rem; }
.reminder-panel { padding: 22px; }
.reminder-list { border-top: 1px solid var(--border); }
.reminder-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.reminder-row:last-child { border-bottom: 0; padding-bottom: 0; }
.reminder-row.is-disabled { opacity: .58; }
.reminder-check { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1; margin: 0; font-weight: 400; }
.reminder-check input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); margin: 2px 0 0; }
.reminder-check span { min-width: 0; }
.reminder-check strong, .reminder-check small { display: block; overflow-wrap: anywhere; }
.reminder-check strong { font-size: .85rem; }
.reminder-check small { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.reminder-delete { font-size: .73rem; }
.weekday-fieldset { grid-column: 1/-1; min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.weekday-fieldset legend { margin-bottom: 7px; font-size: .83rem; font-weight: 550; }
.weekday-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.weekday-grid label { display: flex; min-height: 44px; align-items: center; gap: 6px; margin: 0; padding: 9px 6px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); font-size: .74rem; font-weight: 600; }
.weekday-grid input { width: 16px; height: 16px; accent-color: var(--accent); }
.weekday-grid label:has(input:checked) { border-color: var(--accent); color: var(--accent); background: var(--soft); }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.filters .search-field { grid-column: 1/-1; }
label { display: block; font-size: .83rem; font-weight: 550; margin-bottom: 16px; }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; min-width: 0; margin-top: 7px; background: var(--bg); border: 1px solid var(--border); border-radius: 11px; padding: 12px; color: var(--ink); font-size: 16px; }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; font-weight: 400; }
.check-label input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); margin: 2px 0 0; }
.transaction-list { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden; }
.transaction-row { display: flex; align-items: center; text-align: left; width: 100%; gap: 12px; padding: 17px; border: 0; border-bottom: 1px solid var(--border); background: none; }
.transaction-row:last-child { border-bottom: 0; }
.transaction-description { flex: 1; min-width: 0; }
.transaction-description strong, .transaction-description small { display: block; overflow-wrap: anywhere; }
.transaction-description strong { font-size: .85rem; font-weight: 600; }
.transaction-description small { font-size: .68rem; color: var(--muted); margin-top: 4px; }
.amount { flex-shrink: 0; font-size: .9rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.amount.income { color: var(--accent); }
.bottom-nav { position: fixed; z-index: 5; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 32px), 550px); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 8px 36px rgba(0,0,0,.13); padding: 6px; }
.agenda-list { padding-left: 20px; line-height: 1.8; margin-bottom: 0; }
.study-main { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.study-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.bottom-nav button { display: grid; min-width: 0; gap: 4px; justify-items: center; padding: 9px 3px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font-size: .69rem; line-height: 1.15; overflow-wrap: anywhere; }
.bottom-nav button span { font-size: 1.2rem; height: 24px; }
.bottom-nav .active { color: var(--accent); background: var(--soft); font-weight: 700; }
.local-note { margin-top: 30px; text-align: center; color: var(--muted); font-size: .68rem; }
dialog { width: min(540px, calc(100% - 24px)); max-height: calc(100dvh - 40px); margin: auto; padding: 26px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(13, 20, 35, .55); backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.dialog-heading h2 { margin: 0; overflow-wrap: anywhere; }
.close-button { width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 1.6rem; }
.form-footer { margin-top: 22px; }
.form-footer button { width: 100%; }
.form-error { padding: 12px; background: var(--bg); border-left: 3px solid var(--danger); color: var(--danger); font-size: .85rem; }
.detail-amount { font-size: 2rem; font-weight: 700; margin: 14px 0; overflow-wrap: anywhere; }
dl { display: grid; grid-template-columns: 100px 1fr; gap: 14px; font-size: .85rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-wrap; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.salary-list { list-style: none; padding: 0; }
.salary-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.work-list { border-top: 1px solid var(--border); }
.work-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.work-row:last-child { border-bottom: 0; padding-bottom: 0; }
.work-row.is-done strong { color: var(--muted); text-decoration: line-through; }
.work-check { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1; margin: 0; font-weight: 400; }
.work-check input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); margin: 2px 0 0; }
.work-check span { min-width: 0; }
.work-check strong, .work-check small { display: block; overflow-wrap: anywhere; }
.work-check strong { font-size: .85rem; }
.work-check small { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.work-delete { font-size: .73rem; }
.import-actions { margin-top: 4px; }
.import-preview { margin-top: 20px; max-height: 320px; overflow: auto; }
.import-table { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.import-table table { width: 100%; border-collapse: collapse; font-size: .72rem; }
.import-table th, .import-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.import-table tr:last-child td { border-bottom: 0; }
.import-ok { color: var(--accent); }
.import-error { color: var(--danger); }
.toast { position: fixed; z-index: 20; bottom: 104px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 32px), 520px); background: var(--ink); color: var(--bg); padding: 15px 19px; border-radius: 15px; font-size: .84rem; line-height: 1.5; box-shadow: var(--shadow); pointer-events: none; }
.toast[data-error="true"] { border: 2px solid var(--danger); }
@media (max-width: 520px) {
  .app-shell { padding-left: 16px; padding-right: 16px; }
  .topbar { margin-bottom: 23px; padding-bottom: 18px; }
  .hero { padding: 23px; }
  .metric { padding: 16px; }
  .quick-grid { gap: 8px; }
  .quick { flex-direction: column; padding: 14px 6px; gap: 7px; font-size: .8rem; }
  .accounts-grid { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .fixed-payments { padding: 18px; }
  .budget-panel { padding: 18px; }
  .fixed-payment-row { align-items: flex-start; }
  .cashback-panel { padding: 18px; }
  .cashback-row { align-items: flex-start; flex-wrap: wrap; }
  .cashback-delete { margin-left: auto; }
  .deposit-panel { padding: 18px; }
  .deposit-row { align-items: flex-start; }
  .debt-panel { padding: 18px; }
  .debt-row { flex-wrap: wrap; }
  .debt-side { margin-left: auto; }
  .health-chart-panel { padding: 18px; }
  .health-chart-panel .section-heading { align-items: flex-start; }
  .health-chart-panel .section-heading .secondary { flex-shrink: 0; }
  .measurement-row { flex-wrap: wrap; }
  .measurement-delete { margin-left: auto; }
  .reminder-panel { padding: 18px; }
  .reminder-row { flex-wrap: wrap; }
  .reminder-delete { margin-left: auto; }
  .work-row { flex-wrap: wrap; }
  .work-delete { margin-left: auto; }
  dialog { padding: 21px; }
  .transaction-row { gap: 9px; padding: 14px 11px; }
  .transaction-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .amount { font-size: .8rem; }
  .section-heading .muted { font-size: .72rem; }
  .finance-tabs { margin-bottom: 20px; }
  .finance-tab { padding-left: 4px; padding-right: 4px; font-size: .72rem; }
  .attention-list li { display: grid; gap: 3px; }
  .attention-list li span { text-align: left; }
  .weekday-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 380px) {
  .bottom-nav button { font-size: .63rem; padding-left: 2px; padding-right: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
