:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface-soft: #f0f1ef;
  --surface-raised: #ffffff;
  --ink: #151719;
  --muted: #6f7479;
  --faint: #a6aaae;
  --line: rgba(21, 23, 25, .09);
  --line-strong: rgba(21, 23, 25, .16);
  --primary: #3167f6;
  --primary-soft: #edf2ff;
  --income: #168a5b;
  --income-soft: #eaf8f1;
  --expense: #d95050;
  --expense-soft: #fff0ef;
  --warning: #bd7412;
  --warning-soft: #fff6e5;
  --balance: #161d2d;
  --balance-2: #202a40;
  --shadow-1: 0 1px 2px rgba(18, 24, 36, .05), 0 5px 12px rgba(18, 24, 36, .04);
  --shadow-2: 0 20px 55px rgba(18, 24, 36, .18);
  --focus: 0 0 0 3px rgba(49, 103, 246, .23);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --sidebar: 240px;
  color-scheme: light;
}

:root.dark {
  --bg: #0d1017;
  --surface: #151a24;
  --surface-soft: #1b222e;
  --surface-raised: #202735;
  --ink: #f2f4f7;
  --muted: #9aa3b2;
  --faint: #667084;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .15);
  --primary: #6d92ff;
  --primary-soft: #1b294d;
  --income: #56d19b;
  --income-soft: #153228;
  --expense: #ff8585;
  --expense-soft: #3a2227;
  --warning: #f6bd62;
  --warning-soft: #352d1d;
  --balance: #202a40;
  --balance-2: #293651;
  --shadow-1: 0 5px 14px rgba(0, 0, 0, .18);
  --shadow-2: 0 24px 64px rgba(0, 0, 0, .45);
  --focus: 0 0 0 3px rgba(109, 146, 255, .28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 0; box-shadow: var(--focus); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar);
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: 1px 0 0 var(--line);
}
.brand, .mobile-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand { min-height: 48px; padding: 0 8px; margin-bottom: 26px; }
.brand-glyph { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--primary); }
.brand-glyph i { font-size: 21px; }
.brand b, .mobile-brand b { display: block; font: 700 19px/1 'Outfit', 'Inter', sans-serif; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.desktop-nav { display: grid; gap: 5px; }
.desktop-nav button {
  min-height: 46px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, transform .12s ease;
}
.desktop-nav button i { font-size: 19px; }
.desktop-nav button:hover { color: var(--ink); background: var(--surface-soft); }
.desktop-nav button.active { color: var(--primary); background: var(--primary-soft); }
.desktop-nav button:active { transform: scale(.96); }
.sync-card {
  width: 100%;
  min-height: 58px;
  margin-top: auto;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 9px 1fr auto;
  gap: 9px;
  align-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
  transition: background-color .16s ease, transform .12s ease;
}
.sync-card:hover { background: var(--primary-soft); }
.sync-card:active { transform: scale(.96); }
.sync-light { width: 8px; height: 8px; border-radius: 50%; background: var(--income); box-shadow: 0 0 0 3px var(--income-soft); }
.sync-light.warn { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-soft); }
.sync-card b, .sync-card small { display: block; }
.sync-card b { font-size: 11px; }
.sync-card small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.sync-card > i { color: var(--faint); }

.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  height: 70px;
  padding: 0 clamp(24px, 3vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 75%, transparent);
  backdrop-filter: blur(18px);
}
.desktop-title h1 { margin: 0; font: 600 23px/1 'Outfit', 'Inter', sans-serif; letter-spacing: -.02em; }
.desktop-title span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.mobile-brand { display: none; }
.sync-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: background-color .16s ease, transform .12s ease;
}
.sync-button:hover { background: var(--surface-soft); }
.sync-button:active { transform: scale(.96); }
.sync-button > i { font-size: 20px; }
.sync-button .sync-light { position: absolute; right: 5px; top: 5px; width: 6px; height: 6px; }

main { width: min(1120px, 100%); margin: 0 auto; padding: 28px clamp(22px, 3vw, 42px) 64px; }
.page-stack { display: grid; gap: 24px; }
.surface { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.section-heading h2 { margin: 0; font: 600 18px/1.2 'Outfit', 'Inter', sans-serif; letter-spacing: -.015em; text-wrap: balance; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; text-wrap: pretty; }
.link-button { min-height: 42px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: var(--primary); font-size: 11px; font-weight: 700; cursor: pointer; transition: background-color .16s ease, transform .12s ease; }
.link-button:hover { background: var(--primary-soft); }
.link-button:active { transform: scale(.96); }

.period-switcher { display: inline-grid; grid-template-columns: 44px minmax(132px, auto) 44px; align-items: center; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-1); }
.period-switcher button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; transition: background-color .16s ease, transform .12s ease; }
.period-switcher button:hover { background: var(--surface-soft); }
.period-switcher button:active { transform: scale(.96); }
.period-switcher strong { text-align: center; font-size: 11px; text-transform: capitalize; }

.balance-card {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 30px;
  color: #f7f8fb;
  background: var(--balance);
  box-shadow: 0 14px 34px rgba(17, 25, 43, .16);
}
.balance-main { position: relative; z-index: 2; display: flex; flex-direction: column; }
.balance-label { color: #aeb8ca; font-size: 11px; font-weight: 600; }
.balance-value { margin-top: 12px; font: 600 clamp(38px, 5vw, 54px)/1 'Outfit', 'Inter', sans-serif; letter-spacing: -.04em; }
.balance-meta { margin-top: 8px; color: #aeb8ca; font-size: 10px; }
.account-strip { margin-top: auto; padding-top: 24px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.account-strip::-webkit-scrollbar { display: none; }
.account-pill { min-width: 124px; padding: 9px 11px; border-radius: 11px; background: rgba(255,255,255,.085); }
.account-pill span, .account-pill b { display: block; }
.account-pill span { color: #aeb8ca; font-size: 9px; }
.account-pill b { margin-top: 4px; font-size: 12px; }
.account-pill.stale { opacity: .56; }
.forecast-panel { position: relative; z-index: 2; min-width: 0; padding: 18px; border-radius: 14px; background: var(--balance-2); display: flex; flex-direction: column; }
.forecast-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.forecast-head span { color: #aeb8ca; font-size: 10px; }
.forecast-head b { font-size: 12px; }
.forecast-line { flex: 1; min-height: 95px; margin: 14px -4px 5px; }
.forecast-line svg { width: 100%; height: 100%; overflow: visible; }
.forecast-bottom { display: flex; justify-content: space-between; gap: 16px; color: #aeb8ca; font-size: 9px; }
.forecast-bottom b { display: block; margin-top: 3px; color: #fff; font-size: 12px; }

.flow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flow-card { min-height: 104px; padding: 17px 18px; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
.flow-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; }
.flow-card.income .flow-icon { color: var(--income); background: var(--income-soft); }
.flow-card.expense .flow-icon { color: var(--expense); background: var(--expense-soft); }
.flow-copy span, .flow-copy b, .flow-copy small { display: block; }
.flow-copy span { color: var(--muted); font-size: 10px; }
.flow-copy b { margin-top: 4px; font: 600 23px/1 'Outfit', 'Inter', sans-serif; }
.flow-copy small { margin-top: 6px; color: var(--muted); font-size: 9px; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 20px; align-items: start; }
.chart-card { padding: 20px; }
.cashflow-chart { height: 190px; margin-top: 12px; }
.cashflow-chart svg { width: 100%; height: 100%; overflow: visible; }
.chart-axis { fill: var(--muted); font-size: 9px; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-income { stroke: var(--income); }
.chart-expense { stroke: var(--expense); }
.chart-legend { display: flex; gap: 16px; color: var(--muted); font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 3px; }

.upcoming-list { overflow: hidden; }
.upcoming-row { width: 100%; min-height: 69px; padding: 12px 15px; display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; border: 0; background: transparent; text-align: left; box-shadow: inset 0 -1px var(--line); cursor: pointer; transition: background-color .16s ease; }
.upcoming-row:last-child { box-shadow: none; }
.upcoming-row:hover { background: var(--surface-soft); }
.date-tile { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.date-tile b, .date-tile span { display: block; text-align: center; }
.date-tile b { font-size: 14px; line-height: 1; }
.date-tile span { margin-top: 2px; font-size: 8px; text-transform: uppercase; }
.row-main { min-width: 0; }
.row-main strong, .row-main small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main strong { font-size: 11px; }
.row-main small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.row-amount { font-size: 11px; font-weight: 700; white-space: nowrap; }

.plan-glance { padding: 19px; }
.plan-glance-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.plan-glance-head span { color: var(--muted); font-size: 10px; }
.plan-glance-head b { font-size: 13px; }
.plan-track { height: 9px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: var(--surface-soft); }
.plan-track i { display: block; height: 100%; width: min(var(--p), 100%); border-radius: inherit; background: var(--primary); transition: width .35s cubic-bezier(.16,1,.3,1); }
.plan-track i.over { background: var(--expense); }
.plan-glance-foot { margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; }

.operations-toolbar { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.filter-scroller { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filter-scroller::-webkit-scrollbar { display: none; }
.filter-chip { min-height: 40px; padding: 0 13px; border: 0; border-radius: 10px; background: var(--surface); color: var(--muted); box-shadow: var(--shadow-1); font-size: 10px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .16s ease, background-color .16s ease, transform .12s ease; }
.filter-chip.active { color: var(--primary); background: var(--primary-soft); }
.filter-chip:active { transform: scale(.96); }
.date-group { display: grid; gap: 8px; }
.date-group-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; color: var(--muted); font-size: 10px; }
.date-group-head b { color: var(--ink); }
.operation-list { overflow: hidden; }
.operation-row { width: 100%; min-height: 70px; padding: 12px 15px; display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; border: 0; background: transparent; text-align: left; box-shadow: inset 0 -1px var(--line); cursor: pointer; transition: background-color .16s ease; }
.operation-row:last-child { box-shadow: none; }
.operation-row:hover { background: var(--surface-soft); }
.bank-logo { position: relative; width: 42px; height: 42px; padding: 4px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: #fff; outline: 1px solid rgba(0,0,0,.1); }
:root.dark .bank-logo { outline-color: rgba(255,255,255,.1); }
.bank-logo img { width: 100%; height: 100%; object-fit: contain; }
.operation-copy { min-width: 0; }
.operation-copy strong, .operation-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operation-copy strong { font-size: 11px; }
.operation-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.operation-amount { font-size: 11px; font-weight: 700; white-space: nowrap; }
.operation-amount.in { color: var(--income); }

.plan-summary { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr 1fr; gap: 12px; }
.plan-summary-card { min-height: 116px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.plan-summary-card span { color: var(--muted); font-size: 10px; }
.plan-summary-card b { font: 600 23px/1 'Outfit', 'Inter', sans-serif; }
.plan-summary-card small { color: var(--muted); font-size: 9px; }
.budget-list { overflow: hidden; }
.budget-row { min-height: 78px; padding: 13px 16px; display: grid; grid-template-columns: 40px minmax(150px, 1fr) minmax(170px, .8fr) 134px; gap: 12px; align-items: center; box-shadow: inset 0 -1px var(--line); }
.budget-row:last-child { box-shadow: none; }
.category-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-soft); color: var(--muted); font-weight: 700; }
.budget-copy strong, .budget-copy small { display: block; }
.budget-copy strong { font-size: 11px; }
.budget-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.budget-progress-head { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: 8px; }
.money-field { position: relative; }
.money-field input { width: 100%; height: 44px; padding: 0 31px 0 11px; border: 0; border-radius: 10px; outline: 1px solid var(--line); background: var(--surface-soft); color: var(--ink); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .16s ease, outline-color .16s ease, box-shadow .16s ease; }
.money-field input:focus { background: var(--surface); outline-color: var(--primary); box-shadow: var(--focus); }
.money-field > span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 10px; }
.money-field.saving::after { content: ''; position: absolute; right: 11px; top: 14px; width: 12px; height: 12px; border: 2px solid var(--line-strong); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
.money-field.saving > span { opacity: 0; }

.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.primary-button, .secondary-button, .danger-button { min-height: 44px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; font-size: 11px; font-weight: 700; cursor: pointer; transition: background-color .16s ease, color .16s ease, transform .12s ease, opacity .16s ease; }
.primary-button { color: #fff; background: var(--primary); }
.primary-button:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.secondary-button { color: var(--ink); background: var(--surface-soft); }
.secondary-button:hover { background: var(--primary-soft); color: var(--primary); }
.danger-button { color: var(--expense); background: var(--expense-soft); }
.primary-button:active, .secondary-button:active, .danger-button:active { transform: scale(.96); }
.primary-button:disabled, .secondary-button:disabled, .danger-button:disabled { opacity: .5; cursor: wait; }
.calendar-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calendar-stat { min-height: 92px; padding: 15px; }
.calendar-stat span, .calendar-stat b { display: block; }
.calendar-stat span { color: var(--muted); font-size: 9px; }
.calendar-stat b { margin-top: 9px; font: 600 19px/1 'Outfit', 'Inter', sans-serif; }
.month-calendar { padding: 18px; }
.weekday-row, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.weekday-row span { padding-bottom: 10px; color: var(--faint); font-size: 8px; text-align: center; text-transform: uppercase; }
.calendar-day { position: relative; min-height: 82px; padding: 8px; border: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; transition: background-color .16s ease; }
.calendar-day:nth-child(7n+1) { border-left: 0; }
.calendar-day:hover { background: var(--surface-soft); }
.calendar-day.muted { opacity: .35; }
.calendar-day.today .day-number { color: #fff; background: var(--primary); }
.calendar-day.selected { background: var(--primary-soft); }
.day-number { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; font-size: 10px; font-weight: 600; }
.day-actual { display: block; margin-top: 6px; color: var(--expense); font-size: 8px; font-weight: 600; }
.day-planned { display: block; margin-top: 3px; padding: 3px 4px; overflow: hidden; border-radius: 5px; background: var(--warning-soft); color: var(--warning); font-size: 7px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.day-detail { padding: 18px; }
.day-detail-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.day-detail-title h3 { margin: 0; font: 600 16px/1.2 'Outfit', 'Inter', sans-serif; }
.day-detail-title span { color: var(--muted); font-size: 9px; }
.event-row { width: 100%; min-height: 62px; padding: 0; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; border: 0; background: transparent; text-align: left; box-shadow: inset 0 -1px var(--line); cursor: pointer; }
.event-row:last-child { box-shadow: none; }
.event-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--warning); background: var(--warning-soft); }
.event-row.paid .event-icon { color: var(--income); background: var(--income-soft); }
.event-row.skipped { opacity: .55; }

.empty-state, .error-state { padding: 42px 20px; text-align: center; color: var(--muted); }
.empty-icon { width: 46px; height: 46px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 13px; background: var(--surface-soft); color: var(--primary); font-size: 21px; }
.empty-state strong, .error-state strong { display: block; color: var(--ink); font: 600 16px/1.2 'Outfit', 'Inter', sans-serif; }
.empty-state p, .error-state p { max-width: 370px; margin: 6px auto 0; font-size: 10px; text-wrap: pretty; }
.empty-state button, .error-state button { margin-top: 16px; }

.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(6, 10, 18, .48); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.overlay.show { opacity: 1; }
.sheet { position: fixed; z-index: 80; right: 16px; top: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); overflow-y: auto; border-radius: 18px; background: var(--surface-raised); box-shadow: var(--shadow-2); transform: translateX(calc(100% + 28px)); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.sheet.show { transform: translateX(0); }
.sheet-head { position: sticky; top: 0; z-index: 2; min-height: 64px; padding: 10px 12px 10px 18px; display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--surface-raised) 94%, transparent); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.sheet-head h2 { margin: 0; font: 600 19px/1 'Outfit', 'Inter', sans-serif; }
.icon-button { width: 44px; height: 44px; border: 0; border-radius: 11px; background: var(--surface-soft); cursor: pointer; transition: background-color .16s ease, transform .12s ease; }
.icon-button:hover { background: var(--primary-soft); }
.icon-button:active { transform: scale(.96); }
.sheet-body { padding: 18px; }
.form-grid { display: grid; gap: 15px; }
.field { display: grid; gap: 6px; }
.field > span { color: var(--muted); font-size: 9px; font-weight: 600; }
.field input, .field select { width: 100%; height: 46px; padding: 0 12px; border: 0; border-radius: 10px; outline: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 11px; transition: outline-color .16s ease, box-shadow .16s ease; }
.field input:focus, .field select:focus { outline-color: var(--primary); box-shadow: var(--focus); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-actions { display: flex; gap: 8px; margin-top: 20px; }
.sheet-actions > * { flex: 1; }
.bank-list { display: grid; gap: 10px; }
.bank-card { padding: 14px; display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-1); }
.bank-card strong, .bank-card small { display: block; }
.bank-card strong { font-size: 11px; }
.bank-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.status-badge { min-height: 25px; padding: 0 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; background: var(--income-soft); color: var(--income); font-size: 8px; font-weight: 700; }
.status-badge.warn { background: var(--warning-soft); color: var(--warning); }
.status-badge.bad { background: var(--expense-soft); color: var(--expense); }
.settings-block { margin-top: 22px; }
.settings-block h3 { margin: 0 0 10px; font: 600 14px/1.2 'Outfit', 'Inter', sans-serif; }
.setting-row { width: 100%; min-height: 54px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-1); cursor: pointer; }
.setting-row span { font-size: 10px; font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; min-height: 44px; max-width: calc(100vw - 28px); padding: 0 15px; display: flex; align-items: center; gap: 8px; border-radius: 11px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); font-size: 10px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast i { color: var(--income); font-size: 17px; }
.toast.error i { color: var(--expense); }

.page-loader { display: grid; gap: 14px; }
.skeleton { min-height: 120px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--surface-soft) 20%, var(--surface) 48%, var(--surface-soft) 76%); background-size: 220% 100%; animation: shimmer 1.35s ease-in-out infinite; }
.balance-skeleton { min-height: 286px; }
.mobile-nav { display: none; }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
