:root{
  --bg: #f3f4fa;
  --bg-grad-a: rgba(99, 102, 241, .10);
  --bg-grad-b: rgba(168, 85, 247, .07);
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --surface-3: #eef0f8;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: rgba(15, 23, 42, .08);
  --line-strong: rgba(15, 23, 42, .14);
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-2: #7c3aed;
  --brand-soft: rgba(79, 70, 229, .09);
  --pos: #059669;
  --pos-soft: rgba(5, 150, 105, .10);
  --neg: #e11d48;
  --neg-soft: rgba(225, 29, 72, .09);
  --warn: #b45309;
  --warn-soft: rgba(245, 158, 11, .14);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-2: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -14px rgba(15, 23, 42, .16);
  --shadow-3: 0 24px 60px -20px rgba(15, 23, 42, .35);
  --ring: 0 0 0 3px rgba(79, 70, 229, .22);
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
html.dark{
  --bg: #0a0f1d;
  --bg-grad-a: rgba(99, 102, 241, .16);
  --bg-grad-b: rgba(168, 85, 247, .10);
  --surface: #121a2e;
  --surface-2: #172138;
  --surface-3: #1e2a45;
  --ink: #eef1f9;
  --ink-2: #cdd5e6;
  --muted: #9aa7c2;
  --faint: #6f7c99;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --brand: #8b93ff;
  --brand-600: #a5acff;
  --brand-soft: rgba(139, 147, 255, .14);
  --pos: #34d399;
  --pos-soft: rgba(52, 211, 153, .13);
  --neg: #fb7185;
  --neg-soft: rgba(251, 113, 133, .13);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .14);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 32px -16px rgba(0, 0, 0, .7);
  --shadow-3: 0 28px 70px -20px rgba(0, 0, 0, .85);
  --ring: 0 0 0 3px rgba(139, 147, 255, .30);
}
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(900px 480px at 8% -8%, var(--bg-grad-a), transparent 60%),
    radial-gradient(800px 420px at 100% 0%, var(--bg-grad-b), transparent 55%);
  background-attachment: fixed;
  color: var(--ink);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body .num,body .tabular,body #totalIncome,body #totalExpense,body #netBalance,body #footIncome,body #footExpense,body #footNet,body .tx-table td[data-col="amt"],body .rv-row input[type="number"]{ font-variant-numeric: tabular-nums; }
::selection{ background: rgba(99, 102, 241, .28); }
body :focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
body .sr-only{ position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
body .no-scrollbar::-webkit-scrollbar{ display: none; }
body .no-scrollbar{ -ms-overflow-style: none; scrollbar-width: none; }
*{ scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
html.dark .bg-white{ background-color: var(--surface) !important; }
html.dark .bg-slate-50,html.dark .bg-slate-50\/70,html.dark .bg-slate-50\/80{ background-color: var(--surface-2) !important; }
html.dark .bg-slate-100,html.dark .bg-slate-100\/80,html.dark .bg-slate-200\/70{ background-color: var(--surface-3) !important; }
html.dark .bg-slate-200{ background-color: #2a3858 !important; }
html.dark .hover\:bg-slate-50:hover,html.dark .hover\:bg-slate-50\/80:hover{ background-color: var(--surface-2) !important; }
html.dark .hover\:bg-slate-100:hover,html.dark .hover\:bg-slate-200:hover{ background-color: var(--surface-3) !important; }
html.dark .text-slate-900,html.dark .text-slate-800{ color: var(--ink) !important; }
html.dark .text-slate-700,html.dark .text-slate-600{ color: var(--ink-2) !important; }
html.dark .text-slate-500,html.dark .text-slate-400{ color: var(--muted) !important; }
html.dark .border-slate-100,html.dark .border-slate-200,html.dark .border-slate-200\/80,html.dark .border-slate-200\/70,html.dark .divide-slate-100 > * + *,html.dark .divide-slate-200 > * + *{ border-color: var(--line) !important; }
html.dark input,html.dark select,html.dark textarea{ background-color: var(--surface-2) !important; color: var(--ink) !important; border-color: var(--line-strong) !important; }
html.dark input::placeholder,html.dark textarea::placeholder{ color: var(--faint) !important; }
html.dark input[type="date"],html.dark input[type="month"]{ color-scheme: dark; }
html.dark .shadow-sm,html.dark .shadow-md,html.dark .shadow-xl,html.dark .shadow-2xl{ box-shadow: var(--shadow-2) !important; }
html.dark .bg-indigo-50,html.dark .bg-indigo-50\/30,html.dark .bg-indigo-50\/40,html.dark .bg-indigo-50\/50,html.dark .bg-indigo-100{ background-color: var(--brand-soft) !important; }
html.dark .bg-emerald-50,html.dark .bg-emerald-100{ background-color: var(--pos-soft) !important; }
html.dark .bg-rose-50,html.dark .bg-rose-100{ background-color: var(--neg-soft) !important; }
html.dark .bg-amber-50,html.dark .bg-amber-50\/70,html.dark .bg-amber-100{ background-color: var(--warn-soft) !important; }
html.dark .bg-sky-50,html.dark .bg-sky-50\/70,html.dark .bg-blue-50{ background-color: rgba(56, 189, 248, .12) !important; }
html.dark .border-indigo-100,html.dark .border-indigo-200,html.dark .border-indigo-200\/80{ border-color: rgba(139, 147, 255, .30) !important; }
html.dark .border-emerald-200{ border-color: rgba(52, 211, 153, .30) !important; }
html.dark .border-rose-200{ border-color: rgba(251, 113, 133, .30) !important; }
html.dark .border-amber-200,html.dark .border-amber-200\/80{ border-color: rgba(251, 191, 36, .30) !important; }
html.dark .border-sky-200{ border-color: rgba(56, 189, 248, .30) !important; }
html.dark .text-indigo-900,html.dark .text-indigo-800,html.dark .text-indigo-700,html.dark .text-indigo-600,html.dark .text-indigo-500{ color: #b4baff !important; }
html.dark .text-emerald-800,html.dark .text-emerald-700,html.dark .text-emerald-600{ color: var(--pos) !important; }
html.dark .text-rose-800,html.dark .text-rose-700,html.dark .text-rose-600,html.dark .text-rose-500{ color: var(--neg) !important; }
html.dark .text-amber-900,html.dark .text-amber-800,html.dark .text-amber-700,html.dark .text-amber-600{ color: var(--warn) !important; }
html.dark .text-sky-900,html.dark .text-sky-800,html.dark .text-blue-600,html.dark .text-blue-500{ color: #7dd3fc !important; }
html.dark .text-white{ color: #fff !important; }
html.dark .bg-slate-900,html.dark .bg-slate-800{ background-color: #eef1f9 !important; color: #0f172a !important; }
html.dark .bg-slate-900 *,html.dark .bg-slate-800 *{ color: inherit; }
html.dark .hover\:bg-slate-800:hover,html.dark .hover\:bg-slate-900:hover{ background-color: #ffffff !important; }
body .app-shell{ max-width: 1280px; margin: 0 auto; padding: 0 16px 40px; }
body .appbar{
  position: sticky; top: 0; z-index: 40;
  margin: 0 -16px; padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
body .appbar-inner{ display: flex; align-items: center; gap: 14px; min-height: 48px; }
body .brand{ display: flex; align-items: center; gap: 11px; flex: none; }
body .brand-mark{
  width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 18px;
  box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
body .brand-text{ flex: none; line-height: 1.15; }
body .brand-text h1{ font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
body .brand-text p{ display: none; font-size: 11px; color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
@media (min-width: 1500px){body .brand-text p{ display: block; }
 }
body .brand-short{ display: none; }
body .appbar-actions{ margin-left: auto; display: flex; align-items: center; gap: 8px; }
body .ic{ width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body .ic-lg{ width: 22px; height: 22px; }
body .icon-btn{
  width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; cursor: pointer;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform .15s, background .15s, border-color .15s;
}
body .icon-btn:hover{ background: var(--surface-2); border-color: var(--line-strong); }
body .icon-btn:active{ transform: scale(.94); }
body #darkModeIcon .i-sun{ display: none; }
html.dark #darkModeIcon .i-sun{ display: block; }
html.dark #darkModeIcon .i-moon{ display: none; }
body .seg{ display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line); }
body .seg button{ padding: 5px 10px; border-radius: 9px; font-size: 11px; font-weight: 700; color: var(--muted); transition: all .15s; }
body .seg button.bg-white{ color: var(--ink) !important; background: var(--surface) !important; box-shadow: var(--shadow-1); }
body #cloudStatusBadge,body #subscriptionBadge{ white-space: nowrap; line-height: 1.2; padding: 5px 10px !important; font-size: 11px !important; }
body .tabs-desktop{ display: flex; min-width: 0; overflow-x: auto; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line); margin-left: 8px; }
body .tab{
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--muted); transition: color .15s, background .15s, box-shadow .15s; cursor: pointer;
}
body .tab:hover{ color: var(--ink); }
body .tab.is-active{ color: var(--ink); background: var(--surface); box-shadow: var(--shadow-2); }
body .tab.is-active .ic{ color: var(--brand); }
body .tab.tab-admin{ color: var(--warn); }
body .tab.tab-admin.is-active{ background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
body .tab.hidden,body .bn-item.hidden,body .sheet-item.hidden{ display: none !important; }
body .bottom-nav{
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 6px 8px calc(6px + var(--safe-b));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(15, 23, 42, .35);
}
body .bn-wrap{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; max-width: 520px; margin: 0 auto; }
body .bn-item{
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px; border-radius: 14px;
  font-size: 10.5px; font-weight: 600; color: var(--muted); position: relative; transition: color .15s, background .15s; min-height: 52px;
}
body .bn-item .ic{ width: 22px; height: 22px; }
body .bn-item.is-active{ color: var(--brand); background: var(--brand-soft); }
body .bn-item:active{ transform: scale(.96); }
body .sheet-backdrop{ position: fixed; inset: 0; z-index: 60; background: rgba(8, 12, 24, .5); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .2s; }
body .sheet-backdrop.open{ opacity: 1; pointer-events: auto; }
body .sheet{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; padding: 10px 14px calc(18px + var(--safe-b));
  background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-3);
  transform: translateY(105%); transition: transform .28s cubic-bezier(.22, 1, .36, 1); max-height: 86vh; overflow: auto;
}
body .sheet.open{ transform: translateY(0); }
body .sheet-grab{ width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 4px auto 12px; }
body .sheet-title{ font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 4px 8px 8px; }
body .sheet-item{
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 12px; border-radius: 14px; font-size: 15px; font-weight: 600; color: var(--ink); text-align: left;
}
body .sheet-item:active,body .sheet-item:hover{ background: var(--surface-2); }
body .sheet-item .ic{ color: var(--brand); width: 20px; height: 20px; }
body .sheet-item.danger,body .sheet-item.danger .ic{ color: var(--neg); }
body .sheet-sep{ height: 1px; background: var(--line); margin: 8px 4px; }
body .btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border-radius: 12px;
  font-size: 13px; font-weight: 700; line-height: 1.1; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s, filter .15s;
}
body .btn:active{ transform: translateY(1px) scale(.985); }
body .btn[disabled]{ opacity: .55; pointer-events: none; }
body .btn-primary{ color: #fff; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .7), inset 0 1px 0 rgba(255, 255, 255, .22); }
body .btn-primary:hover{ filter: brightness(1.07); box-shadow: 0 10px 24px -8px rgba(79, 70, 229, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
body .btn-ghost{ color: var(--ink-2); background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-1); }
body .btn-ghost:hover{ background: var(--surface-2); }
body .btn-soft{ color: var(--brand); background: var(--brand-soft); }
body .btn-soft:hover{ filter: brightness(.97); }
body .btn-danger{ color: var(--neg); background: var(--neg-soft); }
body .btn-danger:hover{ filter: brightness(.97); }
body .btn-dark{ color: #fff; background: #0f172a; }
html.dark .btn-dark{ color: #0f172a; background: #eef1f9; }
body .btn-block{ width: 100%; }
body .btn-lg{ padding: 13px 18px; font-size: 14px; border-radius: 14px; }
body .toolbar{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 4px; }
body .toolbar .spacer{ flex: 1; }
body .menu-wrap{ position: relative; }
body .menu{
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 230px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity .15s, transform .15s;
}
body .menu.open{ opacity: 1; transform: none; pointer-events: auto; }
body .menu button{ display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink); text-align: left; }
body .menu button:hover{ background: var(--surface-2); }
body .menu button .ic{ color: var(--muted); }
body .menu .menu-sep{ height: 1px; background: var(--line); margin: 5px 4px; }
body .menu .danger,body .menu .danger .ic{ color: var(--neg); }
body #mainAppContainer main{ margin-top: 18px; }
body #mainAppContainer main .bg-white.rounded-2xl,body #mainAppContainer main .bg-white.rounded-xl,body .card{
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-2) !important;
}
body #mainAppContainer main h2{ letter-spacing: -.015em; }
body #mainAppContainer main h2.text-base,body #mainAppContainer main h2.text-sm{ font-weight: 800; }
body #mainAppContainer main .space-y-6 > * + *{ margin-top: 1.25rem; }
body .stats-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body .stat{
  position: relative; overflow: hidden; padding: 16px 16px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 10px; min-height: 112px;
}
body .stat-top{ display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body .stat-label{ font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
body .stat-ic{ width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; }
body .stat-ic .ic{ width: 16px; height: 16px; }
body .stat-ic.pos{ color: var(--pos); background: var(--pos-soft); }
body .stat-ic.neg{ color: var(--neg); background: var(--neg-soft); }
body .stat-value{ font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
body .stat-value.pos{ color: var(--pos); }
body .stat-value.neg{ color: var(--neg); }
body .stat-sub{ font-size: 11px; color: var(--faint); }
body .stat-hero{
  grid-column: 1 / -1; color: #fff; border: 0;
  background:
    radial-gradient(420px 200px at 100% -20%, rgba(168, 85, 247, .55), transparent 60%),
    radial-gradient(360px 220px at -10% 120%, rgba(56, 189, 248, .30), transparent 60%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%);
  box-shadow: 0 22px 44px -22px rgba(49, 46, 129, .85);
}
body .stat-hero .stat-label,body .stat-hero .stat-sub{ color: rgba(255, 255, 255, .72); }
body .stat-hero .stat-ic{ background: rgba(255, 255, 255, .16); color: #fff; }
body .stat-hero .stat-value{ font-size: 34px; color: #fff; }
body .stat-hero .stat-value.is-neg{ color: #fecdd3; }
body .stat-hero .hero-meta{ display: flex; gap: 8px; flex-wrap: wrap; }
body .pill{ display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
body .stat-hero .pill{ background: rgba(255, 255, 255, .14); color: #fff; }
body #mainAppContainer label,body .modal label{ letter-spacing: .005em; }
body #mainAppContainer input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),body #mainAppContainer select,body #mainAppContainer textarea,body .modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),body .modal select,body .modal textarea,body #authPortal input,body #authPortal select{
  border-radius: var(--radius-sm) !important; border: 1px solid var(--line-strong);
  background-color: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
body #mainAppContainer input:focus,body #mainAppContainer select:focus,body #mainAppContainer textarea:focus,body .modal input:focus,body .modal select:focus,body .modal textarea:focus,body #authPortal input:focus{
  outline: none !important; border-color: var(--brand) !important; box-shadow: var(--ring) !important;
}
body #mainAppContainer input[type="file"]::file-selector-button{ border-radius: 10px; }
body .switch{ display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink-2); user-select: none; }
body .switch input{ position: absolute; opacity: 0; pointer-events: none; }
body .switch .track{ width: 38px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .2s; flex: none; }
body .switch .track::after{ content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
body .switch input:checked + .track{ background: var(--brand); }
body .switch input:checked + .track::after{ transform: translateX(16px); }
body .switch input:focus-visible + .track{ box-shadow: var(--ring); }
body #mainAppContainer table{ border-collapse: separate; border-spacing: 0; }
body #mainAppContainer thead th{ font-size: 10.5px !important; letter-spacing: .08em; font-weight: 700; color: var(--muted) !important; background: var(--surface-2) !important; border-bottom: 1px solid var(--line); }
body #mainAppContainer thead th:first-child{ border-top-left-radius: 12px; }
body #mainAppContainer thead th:last-child{ border-top-right-radius: 12px; }
body #mainAppContainer tbody tr{ transition: background .12s; }
body #mainAppContainer tbody tr:hover{ background: var(--surface-2); }
body #mainAppContainer tbody td{ border-bottom: 1px solid var(--line); }
body #mainAppContainer tbody tr:last-child td{ border-bottom: 0; }
body .tx-table td[data-col="amt"]{ font-weight: 800; white-space: nowrap; text-align: right; }
body .tx-table th:nth-child(4){ text-align: right; }
body .tx-chip{ display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
body .tx-chip.transfer{ background: var(--warn-soft); color: var(--warn); }
body .tx-acc{ display: flex; width: fit-content; align-items: center; gap: 4px; margin-top: 3px; font-size: 10.5px; font-weight: 700; color: var(--brand); }
body .tx-row.tx-muted td[data-col="desc"],body .tx-row.tx-muted td[data-col="amt"]{ opacity: .62; }
body .tx-row.tx-muted td[data-col="amt"]{ text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
body .tx-act{ display: inline-flex; gap: 6px; }
body .tx-act button{ padding: 5px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 700; }
body .tx-act .rcpt{ color: var(--brand); background: var(--brand-soft); }
body .tx-act .del{ color: var(--neg); background: var(--neg-soft); }
body .history-filters{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
body .history-filters .search-wrap{ grid-column: 1 / -1; }
body .history-filters input,body .history-filters select{ width: 100%; padding: 9px 12px; font-size: 13px; min-height: 40px; }
body #emptyMessage{ padding: 40px 12px !important; }
body #emptyMessage::before{ content: '🗂️'; display: block; font-size: 30px; margin-bottom: 8px; opacity: .8; }
body #plannerModal,body #categoryModal,body #loanPaymentModal,body #pdfStatementModal,body .modal{
  background: rgba(8, 12, 24, .55) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px; z-index: 70 !important; animation: fadeIn .18s ease-out;
}
body .modal-panel,body #plannerModal > div,body #categoryModal > div,body #loanPaymentModal > div{
  background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 22px !important;
  box-shadow: var(--shadow-3) !important; animation: popIn .22s cubic-bezier(.22, 1, .36, 1);
}
body .modal-panel{ width: 100%; max-width: 760px; max-height: min(92vh, 900px); display: flex; flex-direction: column; overflow: hidden; }
body .modal-head{ display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
body .modal-head h3{ font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
body .modal-head p{ font-size: 12px; color: var(--muted); margin-top: 2px; }
body .modal-head .icon-btn{ margin-left: auto; }
body .modal-ic{ width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
body .modal-body{ padding: 18px 20px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; -webkit-overflow-scrolling: touch; }
body .modal-foot{ position: sticky; bottom: 0; padding: 12px 20px calc(14px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }
body .modal-grab{ display: none; width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 8px auto 0; }
body .steps{ display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
body .steps li{ flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--faint); }
body .steps li span{ width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface-3); color: var(--muted); flex: none; transition: all .2s; }
body .steps li.is-on{ color: var(--ink); }
body .steps li.is-on span{ background: var(--brand); color: #fff; }
body .steps li.is-done span{ background: var(--pos); color: #fff; }
body .steps li::after{ content: ''; height: 2px; flex: 1; border-radius: 2px; background: var(--line); }
body .steps li:last-child::after{ display: none; }
body .field-label{ display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
body .field-row{ display: flex; gap: 8px; }
body .field-row select{ flex: 1; padding: 10px 12px; font-size: 14px; font-weight: 600; min-height: 44px; }
body .dropzone{
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  padding: 26px 18px; border-radius: 18px; cursor: pointer; color: var(--ink-2);
  border: 2px dashed var(--line-strong); background: var(--surface-2); transition: all .18s;
}
body .dropzone:hover,body .dropzone.is-over{ border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
body .dropzone .dz-ic{ width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); margin-bottom: 4px; }
body .dropzone b{ font-size: 14px; color: var(--ink); }
body .dropzone span{ font-size: 12.5px; color: var(--muted); }
body .dropzone small{ font-size: 11px; color: var(--faint); margin-top: 4px; line-height: 1.5; }
body .dropzone .bank-tags{ display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 6px; }
body .dropzone .bank-tags i{ font-style: normal; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
body .dropzone.is-compact{ flex-direction: row; justify-content: flex-start; text-align: left; padding: 12px 14px; gap: 12px; border-width: 1.5px; }
body .dropzone.is-compact .dz-ic{ width: 36px; height: 36px; margin: 0; flex: none; }
body .dropzone.is-compact .bank-tags,body .dropzone.is-compact small{ display: none; }
body .dropzone.is-compact b{ font-size: 13px; }
body .dropzone.is-compact span:not(.dz-ic){ font-size: 12px; }
body .status{ font-size: 12.5px; color: var(--muted); text-align: center; padding: 2px 4px; line-height: 1.5; }
body .progress{ height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
body .progress span{ display: block; height: 100%; width: 38%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); animation: indet 1.1s ease-in-out infinite; }
body .progress.hidden{ display: none; }
body .raw{ background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 11px; }
body .raw summary{ cursor: pointer; font-weight: 700; color: var(--ink-2); }
body .raw pre{ margin-top: 8px; max-height: 180px; overflow: auto; white-space: pre-wrap; color: var(--muted); font-size: 11px; }
body .sum-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body .sum-cell{ padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
body .sum-cell small{ display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
body .sum-cell b{ display: block; margin-top: 3px; font-size: 15px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
body .sum-cell.pos b{ color: var(--pos); }
body .sum-cell.neg b{ color: var(--neg); }
body .sum-cell.net b{ color: var(--brand); }
body .hint{ display: flex; gap: 8px; padding: 10px 12px; border-radius: 14px; font-size: 12px; line-height: 1.5; background: var(--warn-soft); color: var(--warn); }
body .review-wrap{ border: 1px solid var(--line); border-radius: 16px; overflow: auto; max-height: 320px; }
body .review-table{ width: 100%; font-size: 12px; text-align: left; }
body .review-table thead th{ position: sticky; top: 0; z-index: 1; padding: 9px 10px; white-space: nowrap; }
body .review-table td{ padding: 7px 8px; vertical-align: middle; }
body .review-table input,body .review-table select{ border-radius: 9px !important; padding: 6px 8px; font-size: 12px; background: var(--surface); border: 1px solid var(--line-strong); max-width: 100%; }
body .review-table .rv-desc{ width: 100%; min-width: 180px; }
body .rv-row.rv-warn{ background: var(--warn-soft); }
body .rules{ border-top: 1px solid var(--line); padding-top: 14px; }
body .rules h4{ font-size: 13px; font-weight: 800; color: var(--ink); }
body .rule-badge{ display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); font-size: 11px; color: var(--ink-2); }
body #keywordRulesBadgeList > span{ display: inline-flex !important; align-items: center; gap: 6px; padding: 5px 10px !important; border-radius: 999px !important; background: var(--surface-3) !important; border: 1px solid var(--line) !important; font-size: 11px; color: var(--ink-2) !important; }
body #keywordRulesBadgeList b{ color: var(--ink); }
body #keywordRulesBadgeList b.text-indigo-700{ color: var(--brand) !important; }
body .toast-stack{ position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
body .toast{
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13px; font-weight: 600; line-height: 1.45;
  color: #fff; background: #0f172a; box-shadow: var(--shadow-3); animation: toastIn .28s cubic-bezier(.22, 1, .36, 1); pointer-events: auto;
}
html.dark .toast{ background: #eef1f9; color: #0f172a; }
body .toast.ok{ background: #047857; }
body .toast.warn{ background: #b45309; }
body .toast.err{ background: #be123c; }
html.dark .toast.ok,html.dark .toast.warn,html.dark .toast.err{ color: #fff; }
body .toast.out{ animation: toastOut .22s ease-in forwards; }
@keyframes fadeIn{ from { opacity: 0 } to { opacity: 1 } }
@keyframes popIn{ from { opacity: 0; transform: translateY(10px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes sheetIn{ from { transform: translateY(100%) } to { transform: none } }
@keyframes toastIn{ from { opacity: 0; transform: translateY(12px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes toastOut{ to { opacity: 0; transform: translateY(8px) scale(.97) } }
@keyframes indet{ 0% { transform: translateX(-100%) } 100% { transform: translateX(280%) } }
body #mainAppContainer main:not(.hidden){ animation: fadeUp .35s cubic-bezier(.22, 1, .36, 1); }
@keyframes fadeUp{ from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce){*,*::before,*::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
 }
body #landingPage{ background: transparent !important; }
body #landingPage > nav{ background: color-mix(in srgb, var(--bg) 80%, transparent) !important; backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line) !important; }
body #landingPage section:first-of-type h1{ letter-spacing: -.035em; background: linear-gradient(135deg, var(--ink) 20%, var(--brand) 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
body #landingPage .bg-slate-900.rounded-2xl{ box-shadow: 0 40px 90px -30px rgba(49, 46, 129, .6) !important; }
body #landingPage button.bg-indigo-600,body #landingPage .bg-indigo-600{ background-image: linear-gradient(135deg, var(--brand), var(--brand-2)) !important; background-color: var(--brand) !important; }
body #landingPage section .rounded-2xl{ border-radius: var(--radius) !important; }
@media (min-width: 1024px){body .app-shell{ padding: 0 28px 56px; }
body .appbar{ margin: 0 -28px; padding: 12px 28px; }
body .stats-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .stat-value{ font-size: 26px; }
body .stat-hero .stat-value{ font-size: 38px; }

}
@media (max-width: 1480px){body .tab:not(.is-active) > span{ display: none; }
body .tab{ padding: 9px 12px; }
body .appbar-actions{ gap: 6px; }
 }
@media (min-width: 961px){body .sheet,body .sheet-backdrop,body .bottom-nav{ display: none !important; }
 }
@media (max-width: 960px){body .tabs-desktop{ display: none; }
body .bottom-nav{ display: block; }
body .app-shell{ padding-bottom: calc(96px + var(--safe-b)); }

}
@media (max-width: 640px){body .app-shell{ padding-left: 12px; padding-right: 12px; }
body .appbar{ margin: 0 -12px; padding: 8px 12px; }
body .brand-full,body #subscriptionBadge,body #loggedUserLabel{ display: none !important; }
body .brand-short{ display: inline; }
body .appbar-actions{ gap: 6px; }
body .appbar .seg{ display: none; }
body .toolbar{ gap: 8px; flex-wrap: nowrap; }
body .toolbar .spacer{ display: none; }
body .toolbar .menu-wrap{ margin-left: auto; }
body .toolbar .btn{ padding: 10px 12px; }
body .toolbar .btn-label-md{ display: none; }
body #mainAppContainer main .bg-white.rounded-2xl{ border-radius: 16px !important; }
body .stat-hero .stat-value{ font-size: 30px; }
body .stat-value{ font-size: 20px; }
body .stat{ padding: 14px; min-height: 100px; }
body #mainAppContainer input,body #mainAppContainer select,body #mainAppContainer textarea,body .modal input,body .modal select,body .modal textarea,body #authPortal input{ font-size: 16px !important; min-height: 44px; }
body #mainAppContainer .rounded-xl.py-2{ min-height: 44px; }
body .history-filters{ grid-template-columns: 1fr 1fr; }
body .history-filters .search-wrap{ grid-column: 1 / -1; }
body #plannerModal,body #categoryModal,body #loanPaymentModal,body #pdfStatementModal,body .modal{ align-items: flex-end !important; padding: 0 !important; }
body .modal-panel,body #plannerModal > div,body #categoryModal > div,body #loanPaymentModal > div{
    max-width: none !important; width: 100% !important; max-height: 92vh !important; border-radius: 24px 24px 0 0 !important;
    animation: sheetIn .3s cubic-bezier(.22, 1, .36, 1); overflow-y: auto;
  }
body .modal-panel{ max-height: 94vh !important; }
body .modal-grab{ display: block; }
body .modal-head{ padding: 12px 16px 12px; }
body .modal-body{ padding: 14px 16px 18px; }
body .modal-foot{ padding: 12px 16px calc(14px + var(--safe-b)); }
body .steps li{ font-size: 11px; }
body .steps li::after{ display: none; }
body .sum-grid{ gap: 6px; }
body .sum-cell{ padding: 9px 8px; }
body .sum-cell b{ font-size: 13px; }
body .dropzone{ padding: 22px 14px; }
body .tx-table,body .tx-table tbody{ display: block; width: 100%; min-width: 0 !important; }
body .tx-table thead{ display: none; }
body .tx-table tbody tr.tx-row{
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "desc desc amt" "date cat act";
    column-gap: 8px; row-gap: 8px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line);
  }
body .tx-table tbody tr.tx-row:last-child{ border-bottom: 0; }
body .tx-table tbody tr.tx-row td{ display: block; padding: 0 !important; border: 0 !important; }
body .tx-table td[data-col="desc"]{ grid-area: desc; font-size: 14px; line-height: 1.35; min-width: 0; word-break: break-word; }
body .tx-table td[data-col="amt"]{ grid-area: amt; font-size: 15px; align-self: start; }
body .tx-table td[data-col="date"]{ grid-area: date; font-size: 11.5px; }
body .tx-table td[data-col="cat"]{ grid-area: cat; min-width: 0; }
body .tx-table td[data-col="cat"] .tx-chip{ max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
body .tx-table td[data-col="act"]{ grid-area: act; justify-self: end; }
body .tx-table tfoot{ display: block; margin-top: 10px; border-radius: 14px; background: var(--surface-2); padding: 6px 12px; }
body .tx-table tfoot tr{ display: flex; justify-content: space-between; align-items: center; background: transparent !important; }
body .tx-table tfoot td{ display: block; padding: 7px 0 !important; width: auto !important; }
body .tx-table + #emptyMessage,body #emptyMessage{ padding: 32px 8px !important; }
body .overflow-x-auto:has(> .tx-table){ overflow: visible; }
body .review-wrap{ max-height: none; overflow: visible; border: 0; }
body .review-table,body .review-table tbody{ display: block; }
body .review-table thead{ display: none; }
body .review-table tr.rv-row{
    display: grid; grid-template-columns: 1fr 1fr auto; grid-template-areas: "desc desc del" "date type amt" "cat cat cat";
    gap: 8px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2);
  }
body .review-table tr.rv-row td{ display: block; padding: 0 !important; border: 0 !important; min-width: 0; }
body .review-table td[data-col="desc"]{ grid-area: desc; }
body .review-table td[data-col="date"]{ grid-area: date; }
body .review-table td[data-col="type"]{ grid-area: type; }
body .review-table td[data-col="amt"]{ grid-area: amt; }
body .review-table td[data-col="cat"]{ grid-area: cat; }
body .review-table td[data-col="del"]{ grid-area: del; align-self: start; }
body .review-table input,body .review-table select{ width: 100%; min-height: 40px; }
body .review-table td[data-col="amt"] input{ width: 96px; text-align: right; }
body .toast-stack{ bottom: calc(92px + var(--safe-b)); }

}
@media (min-width: 641px){body .history-filters{ grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.3fr); }
body .history-filters .search-wrap{ grid-column: auto; }

}
@media (min-width: 1280px){body .history-filters{ grid-template-columns: 160px 1fr 1.4fr; }
 }
@media print{body .appbar,body .bottom-nav,body .toolbar,body .toast-stack,body .sheet,body .sheet-backdrop{ display: none !important; }
body{ background: #fff !important; }
 }
body .only-mobile{ display: none !important; }
html.no-scroll,body.no-scroll{ overflow: hidden; }
body .sidebar{
  position: fixed; left: 0; top: 0; bottom: 0; width: 256px; z-index: 60; display: flex; flex-direction: column; gap: 14px;
  padding: 16px 14px 14px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto;
}
body .sidebar-backdrop{ display: none; position: fixed; inset: 0; z-index: 55; background: rgba(8, 12, 24, .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
body .sb-brand{ display: flex; align-items: center; gap: 10px; padding: 2px 4px 4px; }
body .sb-brand .brand-text{ min-width: 0; flex: 1; }
body .sb-brand h1{ font-size: 14px; font-weight: 700; letter-spacing: -.005em; line-height: 1.2; white-space: normal; }
body .sb-brand p{ display: block !important; max-width: 100%; font-size: 11px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .sb-close{ display: none !important; margin-left: auto; }
body .entity-switch{ position: relative; }
body .entity-btn{
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; cursor: pointer; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line); transition: border-color .15s, background .15s;
}
body .entity-btn:hover{ border-color: var(--line-strong); background: var(--surface-3); }
body .ent-ic{ width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
body .ent-txt{ flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
body .ent-txt small{ font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
body .ent-txt b{ font-size: 13.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .ent-chev{ color: var(--muted); }
body .entity-menu{
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; padding: 6px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-3, 0 18px 40px -16px rgba(15, 23, 42, .45));
}
body .entity-menu.open{ display: block; }
body .entity-menu button{ width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: left; cursor: pointer; }
body .entity-menu button:hover{ background: var(--surface-3); }
body .entity-menu button.is-on{ color: var(--brand); background: var(--brand-soft); }
body .entity-menu .ck{ margin-left: auto; }
body .entity-menu .menu-sep{ height: 1px; background: var(--line); margin: 5px 4px; }
body .sb-nav{ display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
body .sb-group{ margin: 16px 10px 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
body .sb-item{
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; cursor: pointer; width: 100%; text-align: left;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s;
}
body .sb-item:hover{ background: var(--surface-3); color: var(--ink); }
body .sb-item.is-active{ background: var(--brand-soft); color: var(--brand); }
body .sb-item.is-active .ic{ color: var(--brand); }
body .sb-item.tab-admin{ color: var(--warn); }
body .sb-item.hidden{ display: none !important; }
body .sb-foot{ display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (min-width: 961px){body .app-shell{ max-width: none; padding: 0 28px 56px 284px; }
body .appbar{ margin: 0 -28px 0 -284px; padding: 12px 28px 12px 284px; }
body .app-shell > main,body .app-shell > .toolbar{ max-width: 1240px; }

}
@media (max-width: 960px){body .only-mobile{ display: inline-grid !important; }
body .sidebar{ transform: translateX(-104%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); width: min(300px, 86vw); padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(14px + var(--safe-b)); box-shadow: none; }
body .sidebar.open{ transform: none; box-shadow: 0 0 60px rgba(8, 12, 24, .5); }
body .sidebar-backdrop{ display: block; }
body .sidebar-backdrop.open{ opacity: 1; pointer-events: auto; }
body .sb-close{ display: inline-grid !important; }
body .appbar .brand,body .brand-full{ display: none; }

}
body .page-title{ font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
@media (min-width: 961px){body .page-title{ font-size: 19px; }
 }
html.privacy .stat-value,html.privacy .amt,html.privacy .tx-table td[data-col="amt"],html.privacy .sum-cell b{ filter: blur(9px); transition: filter .2s; user-select: none; }
html.privacy .stat-value:hover,html.privacy .amt:hover{ filter: none; }
body .home-head{ display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
body .home-title{ font-size: 24px; font-weight: 800; letter-spacing: -.015em; color: var(--ink); line-height: 1.15; }
body .home-sub{ margin-top: 4px; font-size: 13px; color: var(--muted); }
body .quick{ display: flex; flex-wrap: wrap; gap: 8px; }
body .home-stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .home-stats .stat-hero{ grid-column: 1 / -1; }
@media (min-width: 760px){body .home-stats{ grid-template-columns: 1.3fr 1fr 1fr; }
body .home-stats .stat-hero{ grid-column: auto; }
 }
body .home-grid{ display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 900px){body .home-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .home-grid > :first-child{ grid-column: 1 / -1; }
 }
body .card-head{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
body .card-head h3{ font-size: 14.5px; font-weight: 700; letter-spacing: -.005em; color: var(--ink); }
body .link{ font-size: 12px; font-weight: 700; color: var(--brand); cursor: pointer; }
body .link:hover{ text-decoration: underline; }
body .muted{ font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
body .legend{ display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
body .legend i{ width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
body .tr-in{ background: var(--pos, #10b981); }
body .tr-ex{ background: var(--neg, #f43f5e); }
body .trend{ display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 170px; }
body .tr-col{ display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
body .tr-bars{ display: flex; align-items: flex-end; gap: 4px; width: 100%; height: calc(100% - 22px); justify-content: center; }
body .tr-bars i{ width: 38%; max-width: 26px; border-radius: 6px 6px 3px 3px; min-height: 2px; transition: height .5s cubic-bezier(.2, .8, .2, 1); }
body .tr-col span{ font-size: 11px; font-weight: 600; color: var(--muted); }
body .list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
body .list li{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
body .list li:last-child{ border-bottom: 0; }
body .list li > div{ min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body .list li b{ font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .list li small{ font-size: 11.5px; color: var(--muted); }
body .list li.empty{ justify-content: center; color: var(--faint); font-size: 13px; padding: 22px 0; }
body .amt{ font-size: 13px; font-weight: 700; white-space: nowrap; }
body .amt.pos{ color: var(--pos, #059669); }
body .amt.neg{ color: var(--neg, #e11d48); }
body .dot{ width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
body .dot-rose{ background: #f43f5e; }
body .dot-emerald{ background: #10b981; }
body .dot-amber{ background: #f59e0b; }
body .dot-sky,body .dot-blue{ background: #0ea5e9; }
body .dot-violet{ background: #8b5cf6; }
body .ent-list{ display: flex; flex-direction: column; gap: 8px; }
body .ent-row{ display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); flex-wrap: wrap; }
body .ent-row.is-arch{ opacity: .6; }
body .ent-meta{ flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 2px; }
body .ent-meta b{ font-size: 14px; font-weight: 700; color: var(--ink); }
body .ent-meta small{ font-size: 12px; color: var(--muted); }
body .ent-act{ display: flex; gap: 6px; }
body .ent-act .btn{ padding: 7px 12px; font-size: 12px; }
html.dark body{ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
html.dark h1,html.dark h2,html.dark h3,html.dark h4,html.dark .font-black,html.dark .font-extrabold,html.dark .font-bold{ font-weight: 700 !important; letter-spacing: -.005em !important; }
html.dark .stat-value,html.dark .home-title{ font-weight: 800 !important; letter-spacing: -.015em !important; }
html.dark .tracking-tight,html.dark .tracking-wide{ letter-spacing: normal !important; }
html.dark .text-xs,html.dark .text-sm,html.dark label,html.dark small{ color: var(--ink-2); }
html.dark .text-slate-500,html.dark .text-slate-400,html.dark .stat-sub,html.dark .muted{ color: #9aa6c3 !important; }
html.dark [class*="text-slate-3"]{ color: #b7c1da !important; }
html.dark .text-indigo-600,html.dark .text-indigo-700,html.dark .text-blue-500,html.dark .text-blue-600{ color: #a5b4fc !important; }
html.dark .text-emerald-600,html.dark .text-emerald-700{ color: #34d399 !important; }
html.dark .text-rose-500,html.dark .text-rose-600,html.dark .text-rose-700{ color: #fb7185 !important; }
html.dark .text-amber-700,html.dark .text-amber-800{ color: #fbbf24 !important; }
html.dark .bg-emerald-50{ background-color: rgba(16, 185, 129, .14) !important; }
html.dark .bg-rose-50{ background-color: rgba(244, 63, 94, .14) !important; }
html.dark .bg-amber-50,html.dark .bg-amber-100{ background-color: rgba(245, 158, 11, .14) !important; }
html.dark .bg-indigo-50,html.dark .bg-blue-50{ background-color: rgba(99, 102, 241, .16) !important; }
html.dark .border-emerald-200,html.dark .border-rose-200,html.dark .border-amber-200,html.dark .border-amber-300,html.dark .border-indigo-200,html.dark .border-blue-200{ border-color: rgba(255, 255, 255, .12) !important; }
html.dark .sidebar{ background: #0e1527; }
html.dark .entity-btn{ background: #121a2e; }
html.dark .list li b{ color: #eef2ff; }
body .card{ padding: 18px 18px 14px; }
@media (max-width: 640px){body .card{ padding: 15px 14px 10px; }
 }
body .home-grid > *,body .home-stats > *{ min-width: 0; }
body .trend{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 640px){body .quick{ display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
body .quick .btn{ justify-content: center; padding-left: 10px; padding-right: 10px; }
body .home-title{ font-size: 21px; }
body .trend{ height: 150px; gap: 6px; }
body .stat-label{ font-size: 10.5px; }

}
body .field-row input[type=text]{ flex: 1; min-width: 0; }
html.dark [class*="bg-emerald-50"],html.dark [class*="bg-emerald-100"]{ background-color: rgba(16, 185, 129, .13) !important; }
html.dark [class*="bg-rose-50"],html.dark [class*="bg-rose-100"]{ background-color: rgba(244, 63, 94, .13) !important; }
html.dark [class*="bg-amber-50"],html.dark [class*="bg-amber-100"],html.dark [class*="bg-yellow-50"]{ background-color: rgba(245, 158, 11, .13) !important; }
html.dark [class*="bg-indigo-50"],html.dark [class*="bg-blue-50"],html.dark [class*="bg-sky-50"],html.dark [class*="bg-violet-50"]{ background-color: rgba(99, 102, 241, .15) !important; }
body .bill-wide{ grid-column: 1 / -1; }
body .bill-form{ display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .bill-form label{ display: flex; flex-direction: column; gap: 5px; min-width: 0; }
body .bill-form label > span{ font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
body .bill-form input,body .bill-form select{ width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 14px; }
body .bill-form .bf-name,body .bill-form .bf-actions{ grid-column: 1 / -1; }
@media (min-width: 900px){body .bill-form{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
body .bill-form .bf-name{ grid-column: span 2; }
 }
body .seg-bar{ display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 6px; }
body .seg-b{ flex: none; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
body .seg-b.on{ color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; }
body .bill-list .bill-row{ display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; }
body .bill-main{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body .bill-main b{ font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
body .bill-main small{ font-size: 12px; color: var(--muted); }
body .bill-main .bill-paid{ color: var(--pos); }
body .bill-side{ display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
body .bill-act{ grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
body .bill-chip{ display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
body .chip-overdue{ color: var(--neg); background: var(--neg-soft); }
body .chip-soon{ color: var(--warn); background: var(--warn-soft); }
body .chip-later,body .chip-done{ color: var(--muted); background: var(--surface-3); }
body .bill-overdue{ border-left: 3px solid var(--neg); padding-left: 10px; }
body .bill-empty{ display: block !important; text-align: center; padding: 22px 8px !important; }
body .bill-alert{ box-shadow: 0 0 0 1px var(--neg-soft), var(--shadow-2); }
html.dark .bill-form input,html.dark .bill-form select{ background: var(--surface-2); }
body .bill-list .bill-row > .bill-act{ flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
body .bill-list .bill-row > .bill-side{ flex-direction: column; align-items: flex-end; }
body .bill-list .bill-row > .bill-main{ flex-direction: column; align-items: flex-start; }
@media (min-width: 900px){body .bill-list .bill-row{ grid-template-columns: minmax(0, 1fr) auto auto; }
body .bill-list .bill-row > .bill-act{ grid-column: auto; }

}
body .vh-head{ align-items: flex-start; flex-wrap: wrap; }
body .vh-title h3{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body .vh-title small{ display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
body .plate{ display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--ink); background: var(--surface-3); border: 1px solid var(--line-strong); }
body .vh-actions{ display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
body .vh-spend{ font-size: 12.5px; margin: 0 0 8px; }
body .vh-panel{ padding: 14px; margin: 10px 0 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
body .vh-ptitle{ font-size: 13px; font-weight: 800; color: var(--ink); }
body .vh-svc{ display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .vh-svc.hidden{ display: none; }
body .vh-svc label{ display: flex; flex-direction: column; gap: 5px; min-width: 0; }
body .vh-pact{ display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px){body .vh-actions{ width: 100%; }
body .vh-actions .btn{ flex: 1 1 auto; justify-content: center; }
 }
body .vh-sub{ margin: 14px 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
body .vh-hist{ margin-bottom: 6px; }
body .vh-filters{ display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
body .vh-filters select{ min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; }
body .vh-total{ margin-left: auto; font-size: 12.5px; color: var(--muted); }
body .vh-total b{ color: var(--ink); font-size: 14px; }
body .vh-facts{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
body .vh-fact{ padding: 5px 10px; border-radius: 999px; font-size: 12px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }
body .vh-fact b{ color: var(--ink); font-weight: 700; }
body .vh-break{ list-style: none; margin: 0 0 8px; padding: 12px; display: grid; gap: 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
body .vh-break li{ display: grid; grid-template-columns: minmax(70px, 28%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; }
body .vh-bl{ color: var(--ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .vh-bar{ height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
body .vh-bar i{ display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
body .vh-bv{ color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
body .vh-bv small{ color: var(--muted); font-weight: 600; }
html.dark .vh-filters select{ background: var(--surface-2); }
@media (max-width: 640px){body .vh-total{ margin-left: 0; width: 100%; }
 }
body .vh-hist .bill-list .bill-row{ grid-template-columns: minmax(0, 1fr) auto auto; }
body .vh-hist .bill-list .bill-row > .bill-act{ grid-column: auto; flex-wrap: nowrap; }
@media (max-width: 640px){body .vh-hist .bill-list .bill-row > .bill-act{ gap: 6px; }
body .vh-hist .bill-list .bill-row > .bill-side{ align-self: center; }
 }
body .pa-note{ font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
body .pa-warn{ margin-top: 12px; color: var(--warn); }
body .pa-row{ padding: 12px; margin-bottom: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); }
body .pa-row.pa-off{ opacity: .65; border-style: dashed; }
body .pa-head{ display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
body .pa-head b{ font-size: 14px; color: var(--ink); }
body .pa-id{ font-size: 11px; color: var(--faint); font-family: ui-monospace, monospace; }
body .pa-actions{ margin-left: auto; display: inline-flex; gap: 6px; }
body .pa-grid{ display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .pa-f{ display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body .pa-f > span{ font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
body .pa-f input[type="text"],body .pa-f input[type="number"],body .pa-f textarea{ width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 13px; }
body .pa-wide{ grid-column: span 1; }
body .pa-chk{ flex-direction: row; align-items: center; gap: 8px; grid-column: 1 / -1; }
body .pa-chk > span{ text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
body .pa-bar{ display: flex; gap: 8px; flex-wrap: wrap; }
body .pa-bar .btn-primary{ margin-left: auto; }
@media (min-width: 900px){body .pa-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
body .pa-wide{ grid-column: span 2; }
 }
html.dark .pa-f input,html.dark .pa-f textarea{ background: var(--surface-2); }
body .qa-card{ background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 10px 12px; }
body .qa-row{ display: flex; align-items: center; gap: 10px; }
body .qa-ic{ color: var(--brand); flex: none; }
body .qa-input{ flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 15px; padding: 8px 2px; color: var(--ink); outline: none; }
body .qa-go[disabled]{ opacity: .45; pointer-events: none; }
body .qa-prev{ margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
body .qa-sum{ font-size: 14px; margin-bottom: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; color: var(--ink); }
body .qa-pos{ color: var(--pos); }
body .qa-neg{ color: var(--neg); }
body .qa-fields{ display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
body .qa-fields label{ display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); font-weight: 600; }
body .qa-fields select,body .qa-fields input{ font-size: 13px; padding: 7px 8px; }
body .qa-hint{ margin-top: 6px; font-size: 11px; color: var(--faint); line-height: 1.4; }
body .qa-card .hidden,body .qa-prev.hidden{ display: none; }
body .csv-card{ border: 1px solid var(--line-strong); border-radius: 16px; padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
body .csv-head{ font-size: 13px; color: var(--ink); }
body .csv-head span{ color: var(--muted); font-size: 12px; margin-left: 6px; }
body .csv-cols{ display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
body .csv-cols label{ display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink); min-width: 0; }
body .csv-cols label > span{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .csv-cols small{ display: block; font-weight: 500; color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
body .csv-cols select,body .csv-opts select{ font-size: 12px; padding: 6px 8px; }
body .csv-opts{ display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink); }
body .csv-warn{ margin: 0; font-size: 12px; color: var(--warn); }
body .csv-prev{ width: 100%; font-size: 12px; border-collapse: collapse; }
body .csv-prev th{ text-align: left; color: var(--muted); font-weight: 600; padding: 4px 6px; }
body .csv-prev td{ padding: 4px 6px; border-top: 1px solid var(--line); color: var(--ink); }
body .csv-sum{ margin: 0; font-size: 12px; color: var(--muted); }
body .csv-act{ display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
body .csv-act button[disabled]{ opacity: .45; pointer-events: none; }
body .bd-month{ display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
body .bd-row{ list-style: none; padding: 12px 0; border-top: 1px solid var(--line); }
body .bd-row:first-child{ border-top: 0; }
body .bd-top{ display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
body .bd-top b{ color: var(--ink); font-size: 14px; }
body .bd-top small,body .bd-amts small{ color: var(--muted); font-size: 12px; display: block; }
body .bd-amts{ text-align: right; }
body .bd-bar{ height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 8px 0 6px; }
body .bd-bar i{ display: block; height: 100%; border-radius: 999px; background: var(--pos); transition: width .3s; }
body .bd-l1 .bd-bar i{ background: var(--warn); }
body .bd-l2 .bd-bar i{ background: var(--neg); }
body .bd-foot{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
body .bd-foot small{ color: var(--muted); font-size: 12px; }
body .bd-foot .bill-act{ margin-left: auto; display: inline-flex; gap: 4px; }
body .bd-proj{ color: var(--warn) !important; font-weight: 600; }
body .bd-unb{ margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
body .bd-unb > small{ display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
body .bd-chips{ display: flex; gap: 8px; flex-wrap: wrap; }
body .chip-btn{ border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 11px; font-size: 12px; cursor: pointer; }
body .chip-btn b{ color: var(--brand); margin-left: 2px; }
body .bd-sg{ display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; font-size: 13px; color: var(--ink); }
body .bd-hint{ grid-column: 1 / -1; color: var(--muted); }
body .bd-hrow{ list-style: none; padding: 8px 0; }
body .bd-hrow .bd-bar{ margin: 6px 0 0; }
body .list .bd-row,body .list .bd-hrow{ display: block; }
body .bd-row .bd-top,body .bd-hrow .bd-top{ width: 100%; }
body .list .bd-row .bd-top,body .list .bd-hrow .bd-top{ display: flex !important; flex-direction: row !important; justify-content: space-between; align-items: baseline; }
body .list .bd-row .bd-foot{ display: flex !important; flex-direction: row !important; justify-content: space-between; align-items: center; flex-wrap: wrap; }
body .list .bd-row .bd-foot .bill-act{ margin-left: auto; }
body .fc-ctl{ display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
body .fc-ctl label{ display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
body .fc-ctl select{ font-size: 13px; padding: 8px 10px; min-width: 150px; }
body .fc-seg{ margin: 0; }
body .fc-alert{ border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.5; margin-bottom: 14px; font-weight: 600; }
body .fc-alert.ok{ background: color-mix(in srgb, var(--pos) 12%, transparent); color: var(--pos); }
body .fc-alert.warn{ background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
body .fc-alert.bad{ background: color-mix(in srgb, var(--neg) 12%, transparent); color: var(--neg); }
body .fc-svg{ width: 100%; height: auto; display: block; }
body .fc-grid{ stroke: var(--line); stroke-width: 1; }
body .fc-tx{ fill: var(--muted); font-size: 10px; }
body .fc-zero{ stroke: var(--neg); stroke-width: 1.2; stroke-dasharray: 4 3; }
body .fc-safe{ stroke: var(--warn); stroke-width: 1.2; stroke-dasharray: 2 3; }
body .fc-line{ fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linejoin: round; }
body .fc-line.neg{ stroke: var(--neg); }
body .fc-area{ fill: var(--brand); opacity: .1; }
body .fc-area.neg{ fill: var(--neg); }
body .fc-dot{ fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
body .fc-dot.neg{ fill: var(--neg); }
body .fc-note{ margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
body .fc-set{ display: flex; flex-direction: column; gap: 12px; }
body .fc-set small{ display: block; color: var(--muted); font-size: 12px; margin-top: 2px; font-weight: 500; }
body .fc-fields{ display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
body .fc-fields label{ display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink); }
body .fc-chk{ font-size: 12px; color: var(--ink); line-height: 1.4; }
body .tk-quick{ display: flex; gap: 8px; }
body .tk-quick input{ flex: 1; min-width: 0; }
body .tk-hint{ display: block; color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.5; }
body .list .tk-row{ display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
body .list .tk-row:first-child{ border-top: 0; }
body .tk-chk{ width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-strong); background: var(--surface); color: #fff; font-weight: 800; cursor: pointer; flex: none; line-height: 1; }
body .tk-done .tk-chk{ background: var(--pos); border-color: var(--pos); }
body .tk-main{ flex: 1; min-width: 0; }
body .tk-main b{ display: block; color: var(--ink); font-size: 14px; word-break: break-word; }
body .tk-main small{ color: var(--muted); font-size: 12px; }
body .tk-done .tk-main b{ text-decoration: line-through; color: var(--muted); }
body .tk-overdue .tk-main small:first-line{ color: var(--neg); }
body .tk-hi{ color: var(--neg); font-weight: 800; }
body .tk-md{ color: var(--warn); font-weight: 800; }
body .tk-act{ display: inline-flex; gap: 4px; }
body .list .tk-edit{ display: block; }
body .nt-search{ width: 100%; margin: 4px 0 12px; }
body .nt-grid{ display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
body .nt-card{ border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px; cursor: pointer; background: var(--surface); }
body .nt-card:hover{ border-color: var(--brand); }
body .nt-pin{ background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
body .nt-top{ display: flex; justify-content: space-between; gap: 6px; align-items: start; }
body .nt-top b{ color: var(--ink); font-size: 14px; }
body .nt-card p{ margin: 6px 0; color: var(--muted); font-size: 12.5px; white-space: pre-wrap; word-break: break-word; max-height: 5.5em; overflow: hidden; }
body .nt-card small{ color: var(--faint); font-size: 11px; }
body .nt-act{ display: inline-flex; gap: 2px; }
body .nt-act .icon-btn{ width: 28px; height: 28px; font-size: 12px; }
body .nt-form{ display: flex; flex-direction: column; gap: 10px; }
body .nt-form textarea{ width: 100%; resize: vertical; min-height: 200px; }
body .nt-bar{ display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink); }
body .nt-sp{ flex: 1; }
body .jv-bar{ display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
body .jv-mood{ margin-left: auto; display: inline-flex; gap: 4px; }
body .jv-m{ border: 1px solid transparent; background: transparent; font-size: 22px; border-radius: 10px; padding: 2px 6px; cursor: pointer; opacity: .55; }
body .jv-m.on{ opacity: 1; border-color: var(--brand); background: var(--brand-soft); }
body .jv-text{ width: 100%; resize: vertical; margin-top: 8px; }
body .jv-list{ display: flex; flex-direction: column; gap: 8px; }
body .jv-past{ border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
body .jv-past:hover{ border-color: var(--brand); }
body .jv-past b{ font-size: 13px; color: var(--ink); }
body .jv-past p{ margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
body .list .ag-row{ display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
body .list .ag-row:first-child{ border-top: 0; }
body .ag-ic{ font-size: 18px; flex: none; }
body .ag-main{ flex: 1; min-width: 0; }
body .ag-main b{ display: block; font-size: 13.5px; color: var(--ink); }
body .ag-main small{ color: var(--muted); font-size: 12px; }
body .ag-urgent .ag-main small{ color: var(--neg); font-weight: 600; }
body .text-pos{ color: var(--pos); }
body .text-neg{ color: var(--neg); }
body .chip-btn.is-on{ background: var(--brand); color: #fff; border-color: var(--brand); }
body .bd-tabs{ display: flex; gap: 6px; flex-wrap: wrap; }
body .pr-sum{ display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
body .pr-sum > div{ background: var(--surface-2, var(--line)); border-radius: 12px; padding: 10px 12px; }
body .pr-sum small{ display: block; color: var(--muted); font-size: 11px; }
body .pr-sum b{ font-size: 15px; }
body .pr-wrap{ overflow-x: auto; }
body .pr-tbl{ width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
body .pr-tbl th{ text-align: right; color: var(--muted); font-size: 11px; text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid var(--line); }
body .pr-tbl th:first-child,body .pr-tbl td:first-child{ text-align: left; }
body .pr-tbl td{ text-align: right; padding: 9px 6px; border-bottom: 1px solid var(--line); }
body .pr-row{ cursor: pointer; }
body .pr-row:hover,body .pr-row.is-open{ background: var(--line); }
body .pr-detail > td{ background: transparent; text-align: left !important; padding: 6px 4px 12px; }
body .pr-actions{ margin-bottom: 6px; }
body .pr-tx{ list-style: none; margin: 0; padding: 0; }
body .pr-tx li{ display: grid; grid-template-columns: 84px 1fr auto auto; gap: 10px; padding: 5px 0; font-size: 12px; align-items: center; }
body .pr-tx .pr-d{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .rp-ctl{ display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; }
body .rp-ctl input,body .rp-ctl select{ border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 10px; background: var(--surface); color: var(--ink); font-size: 13px; }
body .rp-btns{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
body .rp-two{ display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
body .rp-two h4{ margin: 0 0 8px; font-size: 13px; }
body .rp-list{ list-style: none; margin: 0; padding: 0; }
body .rp-list li{ display: grid; grid-template-columns: minmax(70px, 1fr) 70px auto; gap: 8px; align-items: center; font-size: 12px; padding: 4px 0; }
body .rp-bar{ height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; display: block; }
body .rp-bar i{ display: block; height: 100%; border-radius: 99px; }
body .rp-btns .btn-primary{ padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; border: 0; cursor: pointer; }
body .rc-head h3{ margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--ink); }
body #billsRecurWrap .card{ box-shadow: none; border: 0; padding: 0; background: transparent; margin-top: 10px; }
body #billsRecurWrap .card .card-head{ display: none; }
body #billsRecurWrap .stats-grid{ grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
body #billsRecurWrap .stat{ box-shadow: none; border: 1px solid var(--line); min-height: 0; padding: 12px 16px; }
body #billsRecurWrap .stat .stat-value{ font-size: 22px; }
body #billsRecurWrap .bill-wide{ grid-column: auto; }
body #billsRecurWrap ul,body #billsRecurWrap .list,body #billsRecurWrap section{ box-shadow: none !important; border: 0 !important; padding-left: 0; padding-right: 0; background: transparent !important; }
body .rc-toggle{ display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 2px 0; cursor: pointer; text-align: left; color: var(--ink); font-size: 16px; }
body .rc-toggle .rc-sum{ font-size: 12px; }
body .rc-chev{ margin-left: auto; color: var(--muted); }
body .rc-empty{ margin: 6px 0 0; font-size: 13px; }
body #billsRecurWrap .stats-grid{ display: none; }
body .pl-layers{ display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0 10px; }
body .pl-sep{ width: 1px; height: 18px; background: var(--line-strong); margin: 0 4px; }
body .pl-preset,body .pl-chip-t{ border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 11px; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
body .pl-preset.on{ background: var(--brand); color: #fff; border-color: var(--brand); }
body .pl-chip-t i{ width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
body .pl-chip-t.on{ background: var(--surface-2, rgba(79,70,229,.08)); font-weight: 600; }
body .t-plan i{ background: #3b82f6; }
body .t-rem i{ background: #f59e0b; }
body .t-rec i{ background: #10b981; }
body .t-task i{ background: #8b5cf6; }
body .t-tx i{ background: #64748b; }
body .pl-chip-t:not(.on){ opacity: .55; }
body .pl-chip-t:not(.on) i{ background: var(--line-strong); }
body .pl-arrow{ border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 12px; width: 34px; height: 34px; font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
body .pl-arrow:hover{ background: var(--line); }
body #calendarGrid{ display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
body .pl-cell{ min-height: 96px; background: var(--surface); border-right: 1px solid var(--line); border-top: 1px solid var(--line); padding: 4px 5px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; overflow: hidden; position: relative; }
body .pl-cell:hover{ background: var(--line); }
body .pl-empty{ background: transparent; cursor: default; }
body .pl-empty:hover{ background: transparent; }
body .pl-cell.is-sel{ outline: 2px solid var(--brand); outline-offset: -2px; }
body .pl-dn{ font-size: 12px; font-weight: 700; color: var(--ink); }
body .pl-today{ background: #f43f5e; color: #fff; border-radius: 999px; padding: 1px 7px; }
body .pl-ev{ font-size: 10px; line-height: 1.25; padding: 2px 4px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; }
body .pl-more{ font-size: 10px; color: var(--muted); }
body .c-blue{ background: rgba(59,130,246,.14); border-color: #3b82f6; }
body .c-emerald{ background: rgba(16,185,129,.14); border-color: #10b981; }
body .c-rose{ background: rgba(244,63,94,.14); border-color: #f43f5e; }
body .c-amber{ background: rgba(245,158,11,.16); border-color: #f59e0b; }
body .c-purple{ background: rgba(139,92,246,.14); border-color: #8b5cf6; }
body .c-rem{ background: rgba(245,158,11,.16); border-color: #f59e0b; }
body .c-rec{ background: rgba(16,185,129,.14); border-color: #10b981; }
body .c-task{ background: rgba(139,92,246,.14); border-color: #8b5cf6; }
body .c-late{ background: rgba(244,63,94,.16); border-color: #f43f5e; }
body .pl-dots{ display: none; gap: 3px; flex-wrap: wrap; }
body .pl-dots i,body .dot{ width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
body .pl-dots i.c-blue,body .dot.c-blue{ background: #3b82f6; }
body .pl-dots i.c-rem,body .dot.c-rem,body .pl-dots i.c-amber,body .dot.c-amber{ background: #f59e0b; }
body .pl-dots i.c-rec,body .dot.c-rec,body .pl-dots i.c-emerald,body .dot.c-emerald{ background: #10b981; }
body .pl-dots i.c-task,body .dot.c-task,body .pl-dots i.c-purple,body .dot.c-purple{ background: #8b5cf6; }
body .pl-dots i.c-late,body .dot.c-late,body .pl-dots i.c-rose,body .dot.c-rose{ background: #f43f5e; }
body .dot{ margin-right: 6px; flex: none; }
body .pl-net{ margin-top: auto; font-size: 10px; font-weight: 700; text-align: right; }
body .pos{ color: var(--pos); }
body .neg{ color: var(--neg); }
body .pl-totals{ display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
body .pl-totals.hidden{ display: none; }
body .pl-totals > div{ background: var(--line); border-radius: 12px; padding: 9px 12px; }
body .pl-totals small{ display: block; color: var(--muted); font-size: 11px; }
body .pl-totals b{ font-size: 15px; }
body .pl-day{ margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
body .pl-dh{ display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
body .pl-act{ display: flex; gap: 6px; }
body .pl-sec{ margin-top: 10px; }
body .pl-sec h5{ margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
body .pl-row{ display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
body .pl-row .pl-l{ display: flex; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .pl-row .pl-m{ color: var(--muted); font-size: 12px; }
body .pl-r{ text-align: right; }
@media (max-width: 640px){body .pl-cell{ min-height: 58px; padding: 3px; }
body .pl-items{ display: none; }
body .pl-dots{ display: flex; }
body .pl-net{ font-size: 9px; }
body .pl-row{ grid-template-columns: minmax(0, 1fr) auto; }
body .pl-row .pl-m{ display: none; }

}
@media (max-width: 640px){body .pl-arrow{ width: 30px; height: 32px; font-size: 18px; border-radius: 10px; }
body #plannerMonthSelect,body #plannerYearSelect{ min-width: 0; padding-left: 6px !important; padding-right: 0 !important; font-size: 10px !important; letter-spacing: -0.2px; }
body #plannerMonthSelect{ flex: 1 1 0 !important; }

}
body .pl-view{ margin: 0 0 8px; }
body .pl-list{ display: flex; flex-direction: column; gap: 8px; }
body .pl-ld{ border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--surface); }
body .pl-ld.past{ opacity: .6; }
body .pl-ld.is-today{ border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
body .pl-ldh{ display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 2px; }
body .pl-ldh em{ font-style: normal; font-size: 10px; font-weight: 700; background: #f43f5e; color: #fff; border-radius: 999px; padding: 1px 8px; }
body .pl-list.hidden,body .pl-day.hidden,body .pl-view.hidden{ display: none !important; }
body .pl-modal{ position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 16px; }
body .pl-modal.open{ display: flex; }
body .pl-modal-bg{ position: absolute; inset: 0; background: rgba(15,23,42,.45); }
body .pl-modal-panel{ position: relative; background: var(--surface); border-radius: 18px; width: min(480px, 100%); max-height: 82vh; overflow-y: auto; padding: 16px 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
body .pl-modal .pl-day{ margin: 0; border: 0; padding: 0; }
body .pl-x{ position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--line); color: var(--ink); cursor: pointer; font-size: 12px; }
body .pl-modal .pl-dh{ padding-right: 34px; margin-bottom: 8px; }
body .pl-qa{ display: flex; gap: 6px; margin-bottom: 6px; }
body .pl-qa input{ flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 10px; padding: 7px 10px; font-size: 13px; background: var(--surface); color: var(--ink); }
body .pl-qa2{ display: flex; gap: 6px; margin-bottom: 10px; }
@media (max-width: 640px){body .pl-modal{ align-items: flex-end; padding: 0; }
body .pl-modal-panel{ width: 100%; border-radius: 18px 18px 0 0; max-height: 80vh; }
 }
body .t-hol i{ background: #ef4444; }
body .c-hol{ background: rgba(239,68,68,.13); border-color: #ef4444; }
body .pl-cell.is-hol .pl-dn span:not(.pl-today){ color: #dc2626; }
body .pl-gear{ padding: 5px 9px; opacity: 1 !important; }
body .hl-h{ font-size: 16px; font-weight: 800; margin: 0 0 10px; padding-right: 30px; }
body .hl-h2{ font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
body .hl-l{ display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
body .hl-n{ font-size: 11px; color: var(--muted); margin: 6px 0; line-height: 1.45; }
body .hl-in{ width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 7px 10px; font-size: 13px; background: var(--surface); color: var(--ink); margin-bottom: 6px; }
body .hl-row{ display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
body .hl-row .hl-in{ flex: 1; min-width: 0; margin: 0; }
body .hl-prev{ border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin: 8px 0; max-height: 220px; overflow-y: auto; }
body .hl-pr{ display: flex; gap: 8px; align-items: center; font-size: 12px; padding: 3px 0; }
body .hl-pr span{ color: var(--muted); white-space: nowrap; }
body .hl-pr em{ font-style: normal; flex: 1; }
body .hl-list{ max-height: 160px; overflow-y: auto; }
body #hlModal{ z-index: 75; }
body #hlModal .pl-modal-panel{ width: min(520px, 100%); }
body .pl-modal .pl-l{ white-space: normal !important; overflow: visible !important; text-overflow: clip !important; min-width: 0; }
body #sectionSettings .seg-bar{ margin-bottom: 4px; }
body .st-kv{ display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
body .st-kv:last-of-type{ border-bottom: 0; }
body .st-kv span{ color: var(--muted); }
body .st-kv b{ text-align: right; word-break: break-all; }
body .st-act{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
body .st-pill{ padding: 2px 10px; border-radius: 999px; font-size: 12px; }
body .st-pill.ok{ background: rgba(16,185,129,.14); color: #047857; }
body .st-pill.warn{ background: rgba(245,158,11,.16); color: #b45309; }
body .st-pill.bad{ background: rgba(244,63,94,.14); color: #be123c; }
body .st-warn{ color: #b45309; }
body .st-note{ font-size: 12px; color: #b45309; background: rgba(245,158,11,.1); border-radius: 10px; padding: 8px 10px; margin: 8px 0 0; line-height: 1.45; }
body .st-plans{ display: grid; gap: 8px; margin-top: 12px; }
body .st-plan{ display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; }
body .st-plan b{ flex: 1; }
body .st-plan span{ font-size: 12px; color: var(--muted); }
body .st-in{ width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font-size: 13px; background: var(--surface); color: var(--ink); margin-bottom: 10px; }
body .st-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px){body .st-grid{ grid-template-columns: 1fr; }
 }
body .st-logo{ display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; flex-wrap: wrap; }
body .st-logo-img{ width: 92px; height: 64px; border: 1px dashed var(--line-strong); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); overflow: hidden; background: var(--surface-2); }
body .st-logo-img img{ max-width: 100%; max-height: 100%; }
body .st-cnts{ display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
body .st-cnt{ background: var(--surface-2); border-radius: 12px; padding: 10px; text-align: center; }
body .st-cnt b{ display: block; font-size: 18px; }
body .st-cnt span{ font-size: 11px; color: var(--muted); }
body .st-danger{ border-color: rgba(244,63,94,.3); }
body .st-del{ color: #be123c !important; border-color: rgba(244,63,94,.4) !important; }
body .st-pane{ display: flex; flex-direction: column; gap: 16px; }
body .st-pane.hidden{ display: none !important; }
body #gdModal{ z-index: 75; }
body #gdModal .pl-modal-panel{ width: min(520px, 100%); }
body .gd-list{ display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
body .gd-row{ display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
body .gd-row > div{ flex: 1; min-width: 0; }
body .gd-row b{ display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .gd-row small{ color: var(--muted); font-size: 11px; }
body .c-pay{ background: rgba(16,185,129,.16); border-color: #059669; }
body .pl-dot.c-pay,body .dot.c-pay{ background: #059669; }
body .pl-dots i.c-hol,body .dot.c-hol{ background: #ef4444; }
body .pl-dots i.c-pay,body .dot.c-pay{ background: #059669; }
body .st-chk{ display: flex; gap: 8px; align-items: center; font-size: 13px; margin-top: 4px; }
body .st-ent{ border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
body .st-ent-h{ display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
body .st-sw{ display: inline-flex; gap: 5px; }
body .st-swb{ width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; font-size: 11px; color: var(--muted); padding: 0; box-shadow: 0 0 0 1px var(--line-strong); }
body .st-swb.on{ border-color: var(--ink); }
body .st-grid3{ display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 10px; }
@media (max-width: 640px){body .st-grid3{ grid-template-columns: 1fr; }
 }
body .pin-lock{position:fixed;inset:0;z-index:99999;background:rgba(15,23,42,.97);display:flex;align-items:center;justify-content:center}
body .pin-lock.hidden{display:none!important}
body .pin-box{background:#fff;border-radius:18px;padding:22px;width:min(320px,92vw);text-align:center}
body .pin-dots{display:flex;gap:10px;justify-content:center;margin:12px 0}
body .pin-dots i{width:12px;height:12px;border-radius:50%;border:2px solid #94a3b8}
body .pin-dots i.on{background:#4f46e5;border-color:#4f46e5}
body .pin-msg{min-height:18px;font-size:12px;color:#e11d48}
body .pin-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0}
body .pin-pad button{padding:14px 0;font-size:18px;font-weight:600;border-radius:12px;background:#f1f5f9}
body .pin-act{display:flex;justify-content:space-between;align-items:center;gap:10px}
body .st-crow{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #e2e8f0;font-size:13px}
body .st-crow small{margin-left:4px}
body .pl-chips{ display: contents; }
body .pl-hl-m,body .pl-vm{ display: none; }
body .pl-ls{ display: none; }
@media (max-width: 640px){body .pl-lf{ display: none; }
body .pl-ls{ display: inline; }
 }
body .pl-yr-h{ cursor: default; }
@media (max-width: 640px){body .pl-hdr{ flex-direction: row !important; align-items: center !important; flex-wrap: wrap; gap: 6px !important; padding-bottom: 8px !important; }
body .pl-hdr > div{ display: contents; }
body .pl-hdr .text-2xl,body .pl-hdr [data-i18n="planner_hint"]{ display: none; }
body #plPrev{ order: 1; }
body .pl-tbox{ order: 2; flex: 1 1 0%; text-align: center; min-width: 0; cursor: pointer; }
body #plNext{ order: 3; }
body .pl-hdr button[data-i18n="btn_today"]{ order: 3; padding: 6px 10px !important; font-size: 12px !important; flex: 0 0 auto; margin: 0 !important; }
body #plNext{ order: 4 !important; }
body .pl-tbox h2{ font-size: 15px !important; letter-spacing: 0 !important; }
body .pl-tbox h2::after{ content: " ▾"; font-size: 12px; opacity: .6; }
body #plannerMonthSelect,body #plannerYearSelect{ order: 5; display: none; }
body .pl-tbox h2{ white-space: nowrap; }
body .pl-hdr.pl-pick #plannerMonthSelect{ display: block; flex: 2 1 55% !important; }
body .pl-hdr.pl-pick #plannerYearSelect{ display: block; flex: 1 1 30% !important; }
body .pl-hdr.pl-pick #plannerMonthSelect,body .pl-hdr.pl-pick #plannerYearSelect{ font-size: 13px !important; padding: 8px 10px !important; min-width: 0; letter-spacing: 0 !important; }
body #plView,body .pl-sep{ display: none !important; }
body #plLayers{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
body .pl-gear{ order: 5; }
body .pl-vm{ display: block; order: 6; margin-left: auto; }
body .pl-vm .seg button{ padding: 6px 9px !important; font-size: 12px !important; }
body #plLayers{ flex-wrap: wrap; }
body .pl-preset{ padding: 6px 11px !important; font-size: 12px !important; }
body .pl-chips{ display: none; order: 10; flex-basis: 100%; flex-wrap: wrap; gap: 6px; }
body #plLayers.pl-open .pl-chips{ display: flex; }
body .pl-hl-m{ display: inline-flex; }
body .pl-yr > :not(.pl-yr-h){ display: none; }
body .pl-yr.pl-yr-open > :not(.pl-yr-h){ display: block; }
body .pl-yr-h{ cursor: pointer; flex-direction: row !important; justify-content: space-between; }
body .pl-yr-h::after{ content: "▾"; color: var(--muted); }
body .pl-yr{ padding-top: 12px !important; padding-bottom: 12px !important; }
body .pl-yr:not(.pl-yr-open) .pl-yr-h{ border: 0; padding-bottom: 0; }

}
body .ag-buckets{ display: grid; gap: 8px; }
body .ag-b{ display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
body .ag-bar{ height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
body .ag-bar i{ display: block; height: 100%; border-radius: 99px; }
body .ag-grp{ border-top: 1px solid var(--line); padding: 8px 0; }
body .ag-grp summary{ display: flex; justify-content: space-between; gap: 10px; cursor: pointer; align-items: center; font-size: 14px; list-style: none; }
body .ag-row{ display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0 8px 12px; border-bottom: 1px dashed var(--line); font-size: 13px; }
body .ag-r{ display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body .ag-r .btn{ padding: 5px 10px; font-size: 12px; }
body .ag-chip{ font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
@media (max-width: 640px){body .ag-b{ grid-template-columns: 84px 1fr auto; font-size: 12px; }
 }
body .ri-box{ padding: 12px 14px; }
body .ri-box > summary{ cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
body .ri-row{ display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
body .ri-r{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body .ri-r .btn{ padding: 5px 10px; font-size: 12px; }
body .ri-form{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body .ri-form label span{ display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
body .ri-form .st-in{ margin: 0; }
body .ri-act{ display: flex; gap: 8px; margin-top: 10px; grid-column: 1 / -1; }
@media (max-width: 640px){body .ri-form{ grid-template-columns: 1fr; }
 }
body .qa-kinds{ display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
body .qa-kind{ border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; cursor: pointer; }
body .qa-kind.on{ background: var(--brand); border-color: var(--brand); color: #fff; }
body .qa-learn{ margin-top: 8px; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: var(--brand-soft); color: var(--ink); }
body .qa-learn.hidden{ display: none; }
body .qa-sug{ display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
body .qa-sg{ display: flex; justify-content: space-between; gap: 10px; align-items: center; text-align: left; padding: 7px 10px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; background: var(--card, #fff); font-size: 13px; cursor: pointer; }
body .qa-sg:hover{ background: rgba(99, 102, 241, .08); }
body .qa-sg span{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .hero-io,body .qa-exb{ display: none; }
@media (max-width: 640px){body .home-stats .stat-io{ display: none; }
body .hero-io{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; }
body .hero-io > div{ background: rgba(255, 255, 255, .14); border-radius: 12px; padding: 8px 10px; }
body .hero-io span{ display: block; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .75); }
body .hero-io b{ font-size: 16px; color: #fff; }
body .qa-exb{ display: block; margin: 6px 2px 0; padding: 4px 0; border: 0; background: none; font-size: 12px; font-weight: 600; color: #64748b; cursor: pointer; }
body .qa-mount:not(.qa-ex-open) .qa-hint[data-qa=hint]{ display: none; }
body .qa-mount.qa-ex-open .qa-exb span{ display: inline-block; transform: rotate(180deg); }

}
body .acx-card{ margin-bottom: 4px; }
body .acx-tot{ margin-left: auto; font-size: 13px; color: var(--muted); }
body .acx-tot b{ font-size: 17px; color: var(--ink); }
body .acx-neg{ color: #e11d48 !important; }
body .acx-pos{ color: #059669; }
body .acx-btns{ display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
body .acx-sug{ font-size: 13px; background: rgba(245, 158, 11, .1); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
body .acx-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body .acx-acc{ display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
body .acx-acc > div{ min-width: 0; }
body .acx-acc b{ font-size: 14px; }
body .acx-acc small{ display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
body .acx-warn{ color: #b45309 !important; }
body .acx-ent{ color: var(--faint, #94a3b8) !important; }
body .acx-bal{ text-align: right; flex: none; }
body .acx-bal > span:first-child{ font-weight: 800; font-size: 16px; display: block; }
body .acx-acts{ display: flex; gap: 10px; justify-content: flex-end; margin-top: 3px; }
body .acx-acts .link{ font-size: 12px; }
body .acx-note{ font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
body .acx-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body .acx-modal label{ display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
body .acx-modal label > input,body .acx-modal label > select{ display: block; width: 100%; margin-top: 4px; }
body .acx-err{ color: #e11d48; font-size: 13px; min-height: 16px; }
body .acx-cur{ font-size: 13px; color: var(--muted); }
body .acx-pairs{ display: grid; gap: 8px; }
body .acx-pair{ display: flex !important; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink) !important; font-weight: 500 !important; }
body .acx-pair small{ display: block; font-size: 11px; color: var(--muted); }
@media (max-width: 640px){body .acx-row{ grid-template-columns: 1fr; }
body .acx-acc{ padding: 9px 10px; }
 }
body .acx-mini{ display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; margin-top: 8px; font-size: 14px; font-weight: 700; }
body .acx-toggle,body .acx-idle{ display: block; background: none; border: 0; padding: 6px 0; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--brand, #5b45e6); cursor: pointer; text-align: left; }
body .acx-idle{ color: var(--muted); font-weight: 600; }
body .acx-warnbar{ font-size: 13px; background: rgba(245, 158, 11, .12); color: #92560a; border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
body .acx-sort{ display: flex; align-items: center; gap: 6px; justify-content: flex-end; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
body .acx-list{ display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 6px; }
body .acx-acc{ display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; position: relative; }
body .acx-main{ flex: 1; min-width: 0; }
body .acx-main b{ font-size: 14px; }
body .acx-main small{ display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
body .acx-bal{ text-align: right; font-weight: 800; font-size: 15px; flex: none; }
body .acx-debt{ font-size: 11px; font-weight: 600; color: #e11d48; }
body .acx-mini .acx-neg,body .acx-bal .acx-neg{ color: #e11d48; }
body .acx-dots{ flex: none; width: 32px; height: 32px; border-radius: 10px; border: 0; background: transparent; font-size: 20px; font-weight: 900; line-height: 1; color: var(--muted); cursor: pointer; }
body .acx-dots:hover{ background: rgba(99, 102, 241, .1); }
body .acx-menu{ background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 6px; display: flex; flex-direction: column; }
body .acx-menu button{ text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
body .acx-menu button:hover{ background: rgba(99, 102, 241, .1); }
body .acx-menu .acx-warnbtn{ color: #b45309; }
body .acx-seg{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
body .acx-seg button{ border: 1px solid var(--line); background: var(--surface, #fff); border-radius: 10px; padding: 7px 10px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
body .acx-seg button.on{ background: #5b45e6; color: #fff; border-color: #5b45e6; }
body .acx-lbl{ font-size: 12px; font-weight: 700; color: var(--muted); }
body .acx-arch{ list-style: none; margin: 4px 0 0; padding: 0; }
body .acx-arch li{ display: flex; justify-content: space-between; padding: 6px 2px; font-size: 14px; border-bottom: 1px solid var(--line); }
@media (min-width: 961px){body .acx-list{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
body .acx-acc{ flex-wrap: wrap; align-items: flex-start; }
body .acx-main{ flex: 1 1 calc(100% - 44px); }
body .acx-dots{ position: absolute; right: 8px; top: 8px; }
body .acx-bal{ flex: 1 1 100%; text-align: left; font-size: 17px; margin-top: 4px; }

}
body .acx-ls{ display: none; }
@media (max-width: 640px){body .acx-btns{ flex-wrap: nowrap; gap: 6px; }
body .acx-btns .btn{ padding: 8px 11px; font-size: 13px; white-space: nowrap; }
body .acx-lf{ display: none; }
body .acx-ls{ display: inline; }

}
body .acx-alert{ font-size: 13px; background: rgba(225, 29, 72, .08); color: #9f1239; border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; line-height: 1.45; }
body .acx-ok{ color: #059669; font-weight: 700; margin-top: 6px; }
body .acx-find{ margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--ink); }
body .qm-h{ font-size: 13px; font-weight: 800; color: var(--ink); margin: 14px 0 4px; }
body #qmCard .st-crow{ align-items: flex-start; gap: 10px; }
body #qmCard .st-crow > span:last-child{ display: flex; gap: 10px; flex: none; }
body .qa-tag{ display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; color: #4b3fd6; background: rgba(99, 102, 241, .12); border-radius: 8px; padding: 1px 6px; vertical-align: 1px; text-transform: none; letter-spacing: 0; }
body .qa-recur{ background: rgba(245, 158, 11, .1) !important; border-color: rgba(245, 158, 11, .35) !important; }
body .qa-lt{ display: block; }
body .qa-lt .qa-tag{ margin-left: 6px; }
body .qa-links{ display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
body .qa-bkb{ border: 0; background: none; font-size: 12px; font-weight: 600; color: #4b3fd6; cursor: pointer; padding: 4px 0; margin-top: 6px; }
body .qa-bulk{ margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
body .qa-bulk.hidden{ display: none; }
body .qa-bulk-open .qa-row,body .qa-bulk-open .qa-sug,body .qa-bulk-open .qa-prev,body .qa-bulk-open .qa-links,body .qa-bulk-open .qa-hint[data-qa=hint]{ display: none !important; }
body .qb-h{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
body .qb-ta{ width: 100%; box-sizing: border-box; font-size: 14px; line-height: 1.6; padding: 10px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); resize: vertical; font-family: inherit; }
body .qb-bar{ display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
body .qb-sec{ border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
body .qb-row{ padding: 9px 0; border-top: 1px solid var(--line); }
body .qb-row.off .qb-top,body .qb-row.off .qb-tags > label{ opacity: .5; }
body .qb-top{ display: flex; gap: 8px; align-items: center; }
body .qb-cb{ width: 18px; height: 18px; flex: none; }
body .qb-d{ flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; padding: 6px 8px; }
body .qb-x{ padding: 6px 0; }
body .qb-a{ width: 86px; flex: none; font-size: 14px; font-weight: 700; padding: 6px 8px; text-align: right; }
body .qb-sg{ flex: none; width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 16px; font-weight: 800; cursor: pointer; }
body .qb-sg.expense{ color: #e11d48; }
body .qb-sg.income{ color: #059669; }
body .qb-tags{ display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0 26px; align-items: center; }
body .qb-chip{ display: inline-flex; align-items: center; gap: 3px; border-radius: 999px; background: rgba(99, 102, 241, .08); border: 1px solid var(--line); padding: 0 8px; font-size: 12px; max-width: 100%; }
body .qb-chip i{ font-style: normal; font-size: 10px; color: #4b3fd6; }
body .qb-chip select,body .qb-chip input{ border: 0; background: transparent; font-size: 12px; padding: 4px 2px; color: var(--ink); max-width: 150px; min-width: 0; }
body .qb-chip input[type=date]{ max-width: 118px; }
body .qb-chip input[data-bf=project]{ width: 96px; }
body .qb-chip.hist{ background: rgba(99, 102, 241, .16); border-color: rgba(99, 102, 241, .35); }
body .qb-chip.warn{ background: #fff4e5; border-color: #f5c27a; }
body .qb-ar{ color: var(--muted); }
body .qb-fw{ display: contents; }
body .qb-fl{ font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(99, 102, 241, .1); color: #4b3fd6; }
body .qb-fl.warn{ background: #fff4e5; color: #b45309; }
body .qb-fl.dup{ background: #fee2e2; color: #b91c1c; }
body .qb-sum{ display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12.5px; padding: 10px 0 4px; border-top: 2px solid var(--line-strong); margin-top: 4px; }
body .qb-done{ background: #ecfdf5; color: #065f46; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
body .qb-done span{ font-size: 12px; }
@media (max-width: 640px){body .qb-tags{ margin-left: 0; }
body .qb-a{ width: 78px; }
 }
body .qa-bulk .qb-chip select,body .qa-bulk .qb-chip input{ padding: 3px 2px !important; min-height: 0 !important; height: auto !important; width: auto; border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; font-size: 12px !important; line-height: 1.3; }
body .qa-bulk .qb-chip input[data-bf=project]{ width: 84px; }
body .qa-bulk .qb-chip input[type=date]{ width: 132px; }
body .qa-bulk .qb-chip select{ max-width: 132px; }
body .qa-bulk .qb-chip{ padding: 0 8px; min-height: 0; height: 26px; }
body .qa-bulk .qb-d,body .qa-bulk .qb-a{ padding: 5px 8px !important; min-height: 0 !important; height: 32px !important; }
body .qa-bulk .qb-cb{ padding: 0 !important; height: 18px !important; min-height: 0 !important; }
body .qa-bulk .qb-tags{ gap: 5px; }
body .vh-tiles{ display: flex; gap: 8px; }
body .vh-tile{ flex: 1 1 0; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 9px 11px; box-shadow: var(--shadow-sm, none); }
body .vh-tile b{ display: block; font-size: 17px; line-height: 1.25; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .vh-tile b.vh-neg{ color: #e11d48; }
body .vh-tile span{ display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); }
body .vh-tile small{ display: block; font-size: 10px; color: var(--faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .vh-toolbar{ position: relative; margin: 12px 0; }
body .vh-toolbar > .btn{ display: inline-flex; align-items: center; gap: 6px; }
body .vh-formcard{ margin-top: 10px; }
body .vh-formcard.vh-closed{ display: none !important; }
body .vh-row{ display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; cursor: pointer; color: var(--ink); font: inherit; }
body .vh-row.on{ border-color: var(--brand); background: var(--brand-soft); }
body .vh-ic{ font-size: 20px; flex: none; }
body .vh-nm{ flex: 1 1 auto; min-width: 0; font-size: 14px; }
body .vh-nm b{ font-weight: 700; }
body .vh-nm small{ display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 2px; }
body .vh-st{ flex: none; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
body .vh-chev{ flex: none; color: var(--muted); font-size: 12px; }
body .chip-done{ color: #166534; background: #dcfce7; }
body .vh-acc{ display: grid; gap: 8px; }
body .vh-acc .vh-card{ padding: 4px; }
body .vh-acc .vh-row{ border: 0; background: transparent; }
body .vh-acc .vh-card.open .vh-row{ border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
body .vh-body{ padding: 10px 10px 8px; }
body .vh-bt{ display: none; align-items: center; gap: 10px; margin-bottom: 2px; }
body .vh-bt h3{ margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 18px; }
body .vh-meta,body .vh-spend{ margin: 2px 0 6px; font-size: 12.5px; }
body .vh-actions{ display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 4px; }
body .vh-more{ position: relative; }
body .vh-more summary{ list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; font-size: 18px; font-weight: 800; }
body .vh-more summary::-webkit-details-marker{ display: none; }
body .vh-menu{ position: absolute; right: 0; top: 40px; z-index: 15; min-width: 170px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 4px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); }
body .vh-menu button{ display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
body .vh-menu button:hover{ background: var(--surface-2); }
body .vh-menu .vh-del{ color: #e11d48; }
body .vh-t-month{ display: none; }
@media (max-width: 640px){body .vh-actions .btn{ flex: 1 1 auto; justify-content: center; }
body .vh-actions .vh-more{ flex: none; }
 }
@media (min-width: 961px){body .vh-t-month{ display: block; }
body .vh-tile b{ font-size: 19px; }
body .vh-formcard{ position: absolute; left: 0; top: 100%; width: 380px; z-index: 30; box-shadow: 0 16px 44px rgba(79, 70, 229, .25); border: 1.5px solid var(--line-strong); }
body .vh-split{ display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; align-items: start; }
body .vh-side{ display: grid; gap: 8px; }
body .vh-chev{ display: none; }
body .vh-bt{ display: flex; }
body .vh-main .vh-body{ padding: 4px 4px 0; }

}
body .vh-formcard .bill-form{ display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px 12px; }
body .vh-formcard .bill-form .bf-name,body .vh-formcard .bill-form .bf-actions{ grid-column: 1 / -1 !important; }
body .vh-formcard .bill-form label{ min-width: 0; }
body .vh-formcard .bill-form input,body .vh-formcard .bill-form select{ width: 100%; min-width: 0; box-sizing: border-box; }
@media (min-width: 961px){body .vh-formcard{ width: 420px; }
 }
body .vh-t-wide{ flex: 1.5 1 0; }
body .vh-tile small{ display: none; }
@media (min-width: 961px){body .vh-tile small{ display: block; }
body .vh-t-wide{ flex: 1 1 0; }
 }
body .pls-orig{ display: none !important; }
body .pls-bar{ display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
body .pls-chip{ display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; }
body .pls-chip.on{ background: var(--brand); border-color: var(--brand); color: #fff; }
body .pls-mon input{ border: 0; background: transparent; font-size: 12px; font-weight: 700; color: inherit; padding: 0; width: 118px; font-family: inherit; }
body .pls-mon.on input{ color-scheme: dark; }
body .pls-q{ flex: 1 1 130px; min-width: 110px; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; background: var(--surface); color: var(--ink); }
body .pls-mh{ display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 10px 0 4px; border-bottom: 1px solid var(--line); }
body .pls-row{ display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
body .pls-row.past{ opacity: .55; }
body .pls-d{ flex: none; width: 58px; text-align: center; background: var(--brand-soft); border-radius: 10px; padding: 4px 2px; }
body .pls-d b{ display: block; font-size: 15px; line-height: 1.2; color: var(--ink); white-space: nowrap; }
body .pls-d i{ display: block; font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
body .pls-e{ flex: 1 1 auto; min-width: 0; }
body .pls-t{ font-size: 13.5px; font-weight: 700; color: var(--ink); }
body .pls-e em{ font-style: normal; font-size: 10px; font-weight: 800; color: #059669; background: #dcfce7; border-radius: 99px; padding: 1px 7px; margin-left: 6px; }
body .pls-e small{ display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
body .pls-tag{ flex: none; font-size: 10px; font-weight: 700; border-radius: 7px; padding: 2px 8px; border: 1px solid; }
body .pls-tag.t-blue{ background: #e0ecff; color: #1d4ed8; border-color: #bcd3fb; }
body .pls-tag.t-emerald{ background: #dcfce7; color: #047857; border-color: #a7e3c3; }
body .pls-tag.t-rose{ background: #ffe4e6; color: #be123c; border-color: #f9b4be; }
body .pls-tag.t-amber{ background: #fef3c7; color: #b45309; border-color: #f5d58b; }
body .pls-tag.t-purple{ background: #f3e8ff; color: #7e22ce; border-color: #d9b8f7; }
body .pls-act{ flex: none; display: flex; gap: 10px; align-items: center; }
body .pls-a{ border: 0; background: none; color: #2563eb; font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px 2px; font-family: inherit; }
body .pls-a.pls-x{ color: #e11d48; }
body .pls-more{ display: none; position: relative; }
body .pls-more summary{ list-style: none; cursor: pointer; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: var(--muted); }
body .pls-more summary::-webkit-details-marker{ display: none; }
body .pls-menu{ position: absolute; right: 0; top: 34px; z-index: 15; min-width: 130px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 4px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); }
body .pls-menu button{ display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
body .pls-menu .pls-x{ color: #e11d48; }
body .pls-more-btn{ display: block; width: 100%; text-align: center; border: 0; background: none; padding: 12px; font-size: 12.5px; font-weight: 700; color: var(--brand); cursor: pointer; font-family: inherit; }
body .pls-more-btn span{ color: var(--muted); font-weight: 600; }
body .pls-empty{ text-align: center; color: var(--muted); font-size: 12.5px; padding: 22px 8px; margin: 0; }
@media (max-width: 640px){body .pls-tag{ display: none; }
body .pls-act .pls-a{ display: none; }
body .pls-more{ display: block; }
body .pls-q{ flex: 1 1 100%; }
body .pls-row{ gap: 10px; }

}
body .pls .pls-mon input{ padding: 0 !important; min-height: 0 !important; height: auto !important; border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; width: 142px; font-size: 12px !important; }
body .pls .pls-q{ padding: 6px 10px !important; min-height: 0 !important; height: 34px !important; box-sizing: border-box; }
body .pls .pls-chip{ min-height: 0; height: 30px; }
@media (max-width: 640px){body .pls .pls-chip{ padding: 4px 10px; font-size: 11.5px; height: 28px; }
body .pls .pls-bar{ gap: 5px; }
 }
body #plsBox .pls-mon input[type="month"]{ font-size: 12px !important; width: 150px !important; }
body .as-edit{ background: #4f46e5; color: #fff; font-size: 11px; font-weight: 800; border-radius: 8px; padding: 4px 9px; margin-right: 6px; border: 0; cursor: pointer; }
body .as-bg{ position: fixed; inset: 0; z-index: 400; background: rgba(15, 23, 42, .5); display: flex; align-items: center; justify-content: center; padding: 16px; }
body .as-box{ width: 100%; max-width: 380px; max-height: 92vh; overflow: auto; background: var(--surface, #fff); color: var(--ink, #0f172a); border-radius: 18px; padding: 18px; box-shadow: 0 24px 60px rgba(15, 23, 42, .35); }
body .as-box h4{ margin: 0 0 2px; font-size: 16px; }
body .as-box small{ color: var(--muted, #64748b); font-size: 12px; }
body .as-l{ font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #64748b); margin: 14px 0 6px; }
body .as-chips{ display: flex; gap: 6px; flex-wrap: wrap; }
body .as-c{ border: 1.5px solid var(--line-strong, #cbd5e1); background: var(--surface, #fff); color: inherit; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
body .as-c.on{ background: #4f46e5; border-color: #4f46e5; color: #fff; }
body .as-box input[type=number],body .as-box input[type=date]{ border: 1.5px solid var(--line-strong, #cbd5e1); border-radius: 10px; padding: 8px 10px; font-size: 14px; background: var(--surface, #fff); color: inherit; min-height: 0; }
body .as-box input.on{ border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); }
body .as-row{ display: flex; align-items: center; gap: 8px; }
body .as-row input{ width: 90px; }
body .as-res{ margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #ecfdf5; color: #065f46; font-size: 13px; font-weight: 600; }
body .as-res.bad{ background: #fff1f2; color: #be123c; }
body .as-bar{ display: flex; gap: 8px; margin-top: 16px; }
body .as-card{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--surface-2, #f6f7fb); border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: 12px 14px; margin: 10px 0; font-size: 13px; }
body .as-card small{ flex: 1 1 100%; color: var(--muted, #64748b); font-size: 11.5px; }
body .as-card .as-row input{ width: 70px; text-align: center; font-weight: 800; border: 1.5px solid var(--line-strong, #cbd5e1); border-radius: 10px; padding: 6px; min-height: 0; background: var(--surface, #fff); color: inherit; }
body #sectionAdmin{ gap: 10px; }
body #sectionAdmin > * + *{ margin-top: 10px !important; }
body #sectionAdmin .as-stats{ display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px !important; }
body #sectionAdmin .as-stat{ padding: 8px 4px !important; border-radius: 12px !important; text-align: center; cursor: pointer; user-select: none; }
body #sectionAdmin .as-stat > span{ display: block; font-size: 10px !important; letter-spacing: 0 !important; text-transform: none !important; }
body #sectionAdmin .as-stat > p{ font-size: 20px !important; line-height: 1.2; margin-top: 2px !important; }
body #sectionAdmin .as-stat.on{ outline: 2px solid #4f46e5; outline-offset: -1px; }
@media (min-width: 641px){body #sectionAdmin .as-stat{ padding: 12px 8px !important; }
body #sectionAdmin .as-stat > span{ font-size: 11px !important; }
body #sectionAdmin .as-stat > p{ font-size: 26px !important; }
 }
body #sectionAdmin .as-tools{ flex: 1; min-width: 0; }
body #sectionAdmin .as-tools input{ flex: 1; min-width: 0; font-size: 13px !important; min-height: 38px !important; }
body #sectionAdmin .as-rf{ min-height: 38px; min-width: 38px; }
body #sectionAdmin .as-set{ display: flex; flex-direction: column; gap: 10px; }
body #sectionAdmin .as-acc,body #sectionAdmin .as-trialbox{ background: var(--surface, #fff) !important; border-radius: 16px !important; padding: 0 !important; border: 1px solid var(--line, #e2e8f0) !important; }
body #sectionAdmin .as-acc > summary,body #sectionAdmin .as-trialbox > summary{ padding: 12px 14px; font-size: 13px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
body #sectionAdmin .as-acc > summary::-webkit-details-marker,body #sectionAdmin .as-trialbox > summary::-webkit-details-marker{ display: none; }
body #sectionAdmin .as-acc > summary::after,body #sectionAdmin .as-trialbox > summary::after{ content: '\25BE'; color: #94a3b8; }
body #sectionAdmin details[open] > summary::after{ content: '\25B4'; }
body #sectionAdmin .as-acc > div,body #sectionAdmin .as-trialbox > .as-card{ margin: 0 12px 12px; }
body #sectionAdmin .as-trialbox > .as-card > b{ display: none; }
body .as-list{ display: none; }
body .as-u{ border-top: 1px solid var(--line, #eef0f6); padding: 9px 0; }
body .as-u:first-child{ border-top: 0; }
body .as-u1{ display: flex; align-items: center; gap: 8px; }
body .as-un{ flex: 1; min-width: 0; }
body .as-un b{ display: block; font-size: 13px; }
body .as-un small{ display: block; color: var(--muted, #64748b); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .as-bd{ font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: #dcfce7; color: #15803d; white-space: nowrap; }
body .as-bd.trial{ background: #e0e7ff; color: #4338ca; }
body .as-bd.expired{ background: #ffe4e6; color: #be123c; }
body .as-mb{ border: 0; background: none; font-size: 20px; font-weight: 800; width: 36px; height: 36px; cursor: pointer; color: inherit; }
body .as-acts{ display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 2px; }
body .as-ab{ border: 1px solid var(--line-strong, #cbd5e1); background: var(--surface, #fff); color: inherit; border-radius: 8px; padding: 5px 10px; font-size: 11px; font-weight: 800; cursor: pointer; }
body .as-ab.bad{ color: #be123c; background: #fff1f2; border-color: #fecdd3; }
body .as-acts .as-edit{ margin: 0; padding: 5px 10px; }
body .as-empty{ text-align: center; padding: 20px 0; color: #94a3b8; font-size: 12px; }
@media (max-width: 640px){body #sectionAdmin .as-main{ padding: 12px !important; }
body #sectionAdmin .as-main > div:first-child{ padding-bottom: 8px; flex-direction: column; align-items: stretch; gap: 8px; }
body #sectionAdmin .as-main h2{ font-size: 15px; }
body #sectionAdmin .as-sub,body #sectionAdmin .as-rft{ display: none; }
body #sectionAdmin .as-main .overflow-x-auto{ display: none; }
body #sectionAdmin .as-list{ display: block; }
body #sectionAdmin .as-main > div:first-child .as-tools{ display: flex; }

}
body .tx-act .edt{ color: var(--ink, #0f172a); background: var(--surface-2, #f1f5f9); }
body .te-box{ max-width: 420px; }
body .te-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
body .te-grid label{ display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted, #64748b); min-width: 0; }
body .te-grid .te-w{ grid-column: 1 / -1; }
body .te-grid input,body .te-grid select{ border: 1.5px solid var(--line-strong, #cbd5e1); border-radius: 10px; padding: 8px 10px; font-size: 14px !important; min-height: 40px !important; background: var(--surface, #fff); color: var(--ink, #0f172a); width: 100%; box-sizing: border-box; font-weight: 600; }
body .te-err{ color: #be123c; font-size: 12px; font-weight: 700; min-height: 16px; margin-top: 8px; }
@media (max-width: 420px){body .te-grid{ grid-template-columns: 1fr; }
 }
body .acx-ctl{ display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; }
body .acx-ctl label{ display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted, #64748b); }
body #mainAppContainer .acx-ctl select.acx-dd{ font-size: 13px !important; font-weight: 800; min-height: 34px !important; height: 34px; padding: 0 26px 0 10px !important; border-radius: 10px !important; width: auto !important; }
body .acx-rk{ display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #4f46e5; color: #fff; font-size: 10px; font-weight: 800; margin-right: 6px; vertical-align: 1px; }
body .acx-rk.g{ background: var(--line-strong, #cbd5e1); color: var(--muted, #64748b); }
body .acx-ord{ display: inline-flex; gap: 3px; }
body .acx-ord button{ width: 26px; height: 28px; border-radius: 8px; border: 1px solid var(--line, #e2e8f0); background: var(--surface-2, transparent); color: inherit; font-size: 11px; cursor: pointer; padding: 0; }
body .acx-ord button:disabled{ opacity: .3; cursor: default; }
body .acx-cut{ grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 800; color: #818cf8; margin: 6px 0; }
body .acx-cut:before,body .acx-cut:after{ content: ""; flex: 1; border-top: 1px dashed #818cf8; }
@media (min-width: 961px){body .acx-ord{ position: absolute; right: 44px; top: 8px; }
 }
body .toolbar.hidden,body .menu button.hidden,body .stat.hidden{ display: none !important; }
@media (max-width: 960px){body .only-desktop{ display: none !important; }
 }
@media (max-width: 640px){body .history-filters .acc-wrap{ grid-column: auto; }
 }

