:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#101114;color:#eceef2;line-height:1.45;--app-bg: #101114;--ink: #eceef2;--muted: #969ca8;--muted-strong: #bdc2cc;--line: rgba(255, 255, 255, .1);--surface: #181a1f;--surface-soft: #22252c;--surface-subtle: #13151a;--field: #14161b;--brand: #426bd1;--brand-strong: #91aff8;--brand-soft: rgba(95, 133, 224, .16);--brand-ring: rgba(95, 133, 224, .22);--brand-shadow: rgba(95, 133, 224, .28);--income: #91aff8;--expense: #e1979f;--balance: #b2bbce;--income-soft: rgba(145, 175, 248, .15);--expense-soft: rgba(225, 151, 159, .15);--warning: #d2b780;--amber-soft: rgba(225, 178, 95, .14);--rose-soft: rgba(225, 151, 159, .13);--shadow-sm: 0 2px 6px rgba(0, 0, 0, .08);--shadow-lg: 0 16px 48px rgba(0, 0, 0, .2)}*{box-sizing:border-box}html{background:var(--app-bg)}body{margin:0;min-width:320px;background:var(--app-bg);color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.page{display:grid;gap:20px}.page-header{display:grid;gap:12px}.eyebrow{margin:0 0 4px;color:var(--brand-strong);font-size:.75rem;font-weight:600;letter-spacing:-.02em;letter-spacing:.08em;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h1{font-weight:600;margin-bottom:0;font-size:1.82rem;line-height:1.08;letter-spacing:-.02em}h2{font-weight:600;margin-bottom:12px;font-size:1.12rem;line-height:1.2}h3{font-weight:600;margin-bottom:8px;font-size:1rem}.muted{color:var(--muted)}.panel{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--shadow-sm)}.panel-inner{padding:16px}.grid-1,.grid-2,.grid-3{display:grid;grid-template-columns:1fr;gap:12px}.stack{display:grid;gap:14px}.stack-lg{display:grid;gap:20px}.button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;background:var(--brand);color:#fff;font-weight:600;padding:0 14px;transition:transform .14s ease,box-shadow .14s ease,background .14s ease,border-color .14s ease}.button:hover:not(:disabled){background:#365cbb;box-shadow:none;transform:none}.button:disabled{cursor:not-allowed;opacity:.58}.button.secondary{border:1px solid var(--line);background:var(--surface-soft);color:var(--ink)}.button.secondary:hover:not(:disabled){border-color:#ffffff2e;background:#2a2e37;color:var(--brand-strong)}.button.danger{color:var(--app-bg);background:var(--expense)}.button.success{color:var(--app-bg);background:var(--income)}.button.danger:hover:not(:disabled){background:#ecadb4;box-shadow:0 12px 22px #e1979f3d}.button.success:hover:not(:disabled){background:#a8bffc;box-shadow:0 12px 22px #91aff83d}.button.small{min-height:36px;padding:0 10px;font-size:.84rem}.field{display:grid;gap:6px}.field span{color:var(--muted-strong);font-size:.8rem;font-weight:500}.field-help{color:var(--muted);font-size:.78rem;font-weight:500;line-height:1.25}.input,.select{width:100%;min-height:46px;border:1px solid var(--line);border-radius:8px;background:var(--field);color:var(--ink);padding:0 12px}.input::placeholder{color:#858c99}.input:focus,.select:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-ring);outline:none}.select option{background:var(--field);color:var(--ink)}.select.tone-expense,.input.tone-expense{border-color:#e1979f5c;color:var(--expense)}.select.tone-income,.input.tone-income{border-color:#91aff857;color:var(--income)}.select.tone-expense:focus,.input.tone-expense:focus{border-color:var(--expense);box-shadow:0 0 0 3px #e1979f29}.select.tone-income:focus,.input.tone-income:focus{border-color:var(--income);box-shadow:0 0 0 3px #91aff829}.table-like{display:grid;gap:2px}.row{display:grid;grid-template-columns:1fr;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:13px 0}.amount-positive{color:var(--income);font-weight:600}.amount-negative{color:var(--expense);font-weight:600}.pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--brand-soft);color:var(--brand-strong);font-size:.78rem;font-weight:600;padding:5px 9px}.form-actions,.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.page-header .toolbar{width:100%}.page-header .toolbar .button{flex:1 1 150px}.desktop-toolbar{display:none}.notice{border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--muted-strong);font-size:.88rem;font-weight:500;padding:10px 12px}.segmented{display:inline-grid;grid-auto-columns:1fr;grid-auto-flow:column;gap:4px;border:1px solid var(--line);border-radius:8px;background:var(--surface-subtle);padding:4px}.segment{display:inline-flex;min-height:36px;align-items:center;justify-content:center;gap:6px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-weight:600;padding:0 12px}.segment.active{background:var(--surface-soft);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}.segment.tone-expense{color:var(--expense)}.segment.tone-income{color:var(--income)}.segment.tone-expense.active{background:var(--expense-soft);box-shadow:inset 0 0 0 1px #e1979f3d}.segment.tone-income.active{background:var(--income-soft);box-shadow:inset 0 0 0 1px #91aff838}.summary-band{display:grid;grid-template-columns:1fr;gap:12px}.hero-panel{overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}.hero-panel .eyebrow,.hero-panel .muted{color:var(--muted)}.hero-panel h1,.hero-panel h2,.hero-panel strong{color:var(--ink)}.hero-panel .amount-positive{color:var(--income)}.hero-panel .amount-negative{color:var(--expense)}@media(min-width:720px){.grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.row{grid-template-columns:1fr auto auto;gap:12px}}@media(min-width:921px){h1{font-size:2rem;line-height:1.04}.page{gap:18px}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.page-header .toolbar{width:auto}.page-header .toolbar .button{flex:0 0 auto}.desktop-toolbar{display:flex}.panel-inner{padding:20px}.summary-band{grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(150px,1fr));gap:14px}}:where(a,button):focus-visible{outline:2px solid var(--brand-strong);outline-offset:4px}strong,.amount-positive,.amount-negative{font-variant-numeric:tabular-nums}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}.sync-panel.svelte-58efr9{margin-bottom:16px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;color:var(--muted);font-size:.8rem}.sync-row.svelte-58efr9{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sync-row.svelte-58efr9>span:where(.svelte-58efr9){flex:1;min-width:130px}small.svelte-58efr9{display:block}p.svelte-58efr9{margin:8px 0}.text-action.svelte-58efr9{border:0;background:transparent;color:var(--brand-strong);padding:4px 0;text-decoration:underline;cursor:pointer;font:inherit}.shell.svelte-afo8v5{min-height:100vh;background:var(--app-bg)}.mobile-topbar.svelte-afo8v5{position:sticky;top:0;z-index:12;display:flex;min-height:72px;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);background:var(--app-bg);padding:12px 14px}.sidebar.svelte-afo8v5{display:none}.brand.svelte-afo8v5{display:flex;align-items:center;gap:11px;padding:0;color:var(--ink);font-size:1.04rem;font-weight:600}.brand-mobile.svelte-afo8v5{min-width:0}.brand.svelte-afo8v5 small:where(.svelte-afo8v5){display:block;margin-top:0;color:var(--muted);font-size:.72rem;font-weight:600}.brand-mark.svelte-afo8v5{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden;border-radius:8px;background:var(--surface)}.brand-mark.svelte-afo8v5 img:where(.svelte-afo8v5){width:100%;height:100%;display:block}.sidebar.svelte-afo8v5 nav:where(.svelte-afo8v5){display:grid;gap:6px}.nav-item.svelte-afo8v5{display:flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;color:var(--muted);font-weight:600;transition:color .14s ease,background .14s ease,transform .14s ease}.nav-item.svelte-afo8v5:hover,.nav-item.active.svelte-afo8v5{background:var(--brand-soft);color:var(--brand-strong)}.sidebar-card.svelte-afo8v5{display:flex;gap:10px;margin-top:auto;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--ink);padding:12px}.sidebar-card.svelte-afo8v5 strong:where(.svelte-afo8v5),.sidebar-card.svelte-afo8v5 span:where(.svelte-afo8v5){display:block}.user-card.svelte-afo8v5{align-items:center}.user-card.svelte-afo8v5>div:where(.svelte-afo8v5){min-width:0;flex:1}.user-card.svelte-afo8v5 span:where(.svelte-afo8v5){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon-button.svelte-afo8v5{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--muted-strong)}.icon-button.svelte-afo8v5:hover{color:var(--brand-strong)}.sidebar-card.svelte-afo8v5 strong:where(.svelte-afo8v5){font-size:.88rem}.sidebar-card.svelte-afo8v5 span:where(.svelte-afo8v5){margin-top:2px;color:var(--muted);font-size:.78rem;font-weight:700}.main-area.svelte-afo8v5{min-width:0}.content.svelte-afo8v5{width:100%;margin:0 auto;padding:18px 14px calc(106px + env(safe-area-inset-bottom))}.floating-action.svelte-afo8v5{position:fixed;right:18px;bottom:calc(82px + env(safe-area-inset-bottom));z-index:16;display:inline-flex;width:52px;height:52px;align-items:center;justify-content:center;border-radius:14px;background:var(--brand);color:#fff;box-shadow:0 18px 36px #0000003d}.bottom-nav.svelte-afo8v5{position:fixed;inset:auto 0 0 0;z-index:15;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:calc(72px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);padding:7px 8px calc(7px + env(safe-area-inset-bottom))}.bottom-nav.svelte-afo8v5 .nav-item:where(.svelte-afo8v5){min-width:0;flex-direction:column;font-size:.68rem;line-height:1;padding:6px 2px}.bottom-nav.svelte-afo8v5 .nav-item.active:where(.svelte-afo8v5){color:var(--brand);background:transparent}@media(min-width:861px){.mobile-topbar.svelte-afo8v5,.bottom-nav.svelte-afo8v5,.floating-action.svelte-afo8v5{display:none}.sidebar.svelte-afo8v5{position:fixed;inset:0 auto 0 0;width:248px;height:100vh;display:flex;flex-direction:column;overflow-y:auto;border-right:1px solid var(--line);background:var(--surface);padding:20px 16px}.brand.svelte-afo8v5{margin-bottom:28px;padding:0 8px}.sidebar.svelte-afo8v5 .nav-item:where(.svelte-afo8v5){min-height:44px;justify-content:flex-start;gap:10px;padding:0 12px}.sidebar.svelte-afo8v5 .nav-item.active:where(.svelte-afo8v5){box-shadow:inset 3px 0 0 var(--brand)}.main-area.svelte-afo8v5{margin-left:248px}.content.svelte-afo8v5{width:min(1180px,100%);padding:32px 28px 48px}}@media(max-width:380px){.bottom-nav.svelte-afo8v5 .nav-item:where(.svelte-afo8v5){font-size:.62rem}}.session-state.svelte-12qhfyh{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:12px;padding:24px;text-align:center}.session-state.svelte-12qhfyh img:where(.svelte-12qhfyh){width:52px;height:52px;border-radius:10px}.session-state.svelte-12qhfyh span:where(.svelte-12qhfyh){max-width:440px;color:var(--muted)}
