:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--page:#f9f9f7;--surface:#fcfcfb;--surface-2:#f0efec;--text:#0b0b0b;--text-2:#52514e;--muted:#898781;--grid:#e1e0d9;--axis:#c3c2b7;--border:#0b0b0b1a;--accent:#2a78d6;--accent-soft:#cde2fb;--bar:#86b6ef;--bar-strong:#2a78d6;--good:#0ca30c;--good-text:#006300;--warning:#fab219;--warning-text:#8a5a00;--critical:#d03b3b;--critical-text:#b42c2c;--radius:14px;--shadow:0 1px 2px #0000000a, 0 4px 16px #0000000a;--nav-h:64px;color:var(--text);background:var(--page);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.45}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--page:#0d0d0d;--surface:#1a1a19;--surface-2:#262624;--text:#f0efec;--text-2:#c3c2b7;--muted:#898781;--grid:#2c2c2a;--axis:#383835;--border:#ffffff1a;--accent:#3987e5;--accent-soft:#1c3557;--bar:#256abf;--bar-strong:#5598e7;--good-text:#0ca30c;--warning-text:#fab219;--critical-text:#ec6b6b;--shadow:none}}*{box-sizing:border-box}body{min-height:100dvh;margin:0}button,input,select{font:inherit;color:inherit}h1,h2,h3{margin:0;line-height:1.2}code{background:var(--surface-2);border-radius:4px;padding:1px 5px;font-size:.9em}.muted{color:var(--muted)}.small{font-size:.85rem}.error{color:var(--critical-text);margin:8px 0}.success{color:var(--good-text);margin:8px 0}.danger{color:var(--critical-text)!important}.shell{min-height:100dvh}.main{padding:16px 16px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom));max-width:760px;margin:0 auto}.nav{z-index:10;height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--border);justify-content:space-around;align-items:stretch;display:flex;position:fixed;inset:auto 0 0}.brand,.nav-sync{display:none}.nav-item{color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.72rem;text-decoration:none;transition:color .15s;display:flex}.nav-icon{font-size:1.35rem;line-height:1}.nav-item.active{color:var(--accent);font-weight:600}@media (width>=900px){.shell{grid-template-columns:220px 1fr;display:grid}.nav{border-top:0;border-right:1px solid var(--border);flex-direction:column;justify-content:flex-start;gap:4px;height:100dvh;padding:20px 12px;position:sticky;top:0}.brand{align-items:center;gap:10px;padding:4px 10px 20px;font-size:1.1rem;font-weight:700;display:flex}.nav-item{border-radius:10px;flex-direction:row;flex:none;justify-content:flex-start;gap:12px;padding:10px 12px;font-size:.95rem}.nav-item:hover{background:var(--surface-2)}.nav-item.active{background:var(--accent-soft);color:var(--text)}.nav-icon{text-align:center;width:20px;font-size:1.1rem}.nav-sync{border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:10px;align-items:center;gap:10px;margin-top:auto;padding:10px 12px;display:flex}.main{width:100%;padding:32px 32px 48px}}.page{flex-direction:column;gap:16px;display:flex}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.page-title{font-size:1.5rem}.btn{cursor:pointer;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:10px 16px;font-weight:600;text-decoration:none;transition:background .15s,transform .1s,opacity .15s;display:inline-flex}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.55;cursor:default}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover:not(:disabled){filter:brightness(1.07)}.btn-ghost{border-color:var(--border);background:0 0}.btn-ghost:hover:not(:disabled){background:var(--surface-2)}.btn-danger{border-color:var(--critical);color:var(--critical-text);background:0 0}.btn-sm{padding:6px 12px;font-size:.88rem}.btn-block{width:100%}.icon-btn{cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;width:36px;height:36px;font-size:1.4rem;display:inline-grid}.icon-btn:hover:not(:disabled){background:var(--surface-2)}.icon-btn:disabled{opacity:.3;cursor:default}.link{color:var(--accent);cursor:pointer;background:0 0;border:0;padding:0;font-weight:500;text-decoration:none}.input{border:1px solid var(--border);background:var(--surface);border-radius:10px;width:100%;min-height:42px;padding:10px 12px}.input:focus,.btn:focus-visible,.chip:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.field{color:var(--text-2);flex-direction:column;gap:6px;font-size:.9rem;display:flex}.check{cursor:pointer;align-items:center;gap:10px;display:flex}.check input{width:18px;height:18px;accent-color:var(--accent)}.month-picker{align-items:center;gap:4px;display:flex}.month-label{text-align:center;min-width:150px;font-size:1.15rem;font-weight:700}@media (width<=420px){.month-label{min-width:0;font-size:1.02rem}.page-head{flex-wrap:nowrap}}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.card-head{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.card-title{margin-bottom:12px;font-size:1rem;font-weight:600}.card-head .card-title{margin-bottom:0}.stats{grid-template-columns:1fr 1fr;gap:12px;display:grid}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:4px;padding:14px 16px;display:flex}.stat-hero{grid-column:1/-1;padding:20px}.stat-label{color:var(--text-2);font-size:.85rem}.stat-value{letter-spacing:-.02em;font-size:2.4rem;font-weight:700}.stat-value-sm{font-size:1.35rem}.delta{font-size:.88rem;font-weight:500}.delta-bad{color:var(--critical-text)}.delta-good{color:var(--good-text)}.callout{background:var(--accent-soft);border-radius:var(--radius);flex-direction:column;align-items:flex-start;gap:10px;padding:14px 16px;display:flex}.callout p{margin:0}.callout-warning{background:color-mix(in srgb, var(--warning) 22%, var(--surface))}.chart{position:relative}.chart svg{width:100%;height:auto;display:block;overflow:visible}.grid{stroke:var(--grid);stroke-width:1px}.axis-base{stroke:var(--axis);stroke-width:1px}.tick{fill:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.tick-strong{fill:var(--text);font-weight:600}.bar{fill:var(--bar);transition:opacity .15s}.bar-selected{fill:var(--bar-strong)}.bar-label{fill:var(--text);font-size:13px;font-weight:600}.chart-tip{color:var(--text-2);border-top:1px solid var(--grid);flex-wrap:wrap;gap:14px;margin-top:4px;padding-top:8px;font-size:.88rem;display:flex}.chart-tip strong{color:var(--text)}.chart-tip b{color:var(--text);font-variant-numeric:tabular-nums}.cat-list,.tx-list,.budget-list,.account-list,.simple-list{margin:0;padding:0;list-style:none}.cat-row{color:inherit;border-radius:10px;align-items:center;gap:12px;padding:10px 4px;text-decoration:none;display:flex}.cat-row:hover{background:var(--surface-2)}.cat-emoji{background:var(--surface-2);border-radius:12px;flex:none;place-items:center;width:38px;height:38px;font-size:1.15rem;display:grid}.cat-main{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.cat-line{justify-content:space-between;gap:8px;display:flex}.cat-name{font-weight:500}.cat-amount{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.hbar{background:var(--surface-2);border-radius:4px;height:6px;display:block;overflow:hidden}.hbar-fill{background:var(--accent);border-radius:4px;height:100%;display:block}.progress-wrap{flex-direction:column;gap:6px;width:100%;display:flex}.progress{background:var(--surface-2);border-radius:4px;height:8px;overflow:hidden}.progress-fill{border-radius:4px;height:100%;transition:width .4s cubic-bezier(.2,.8,.2,1)}.status-good{background:var(--good)}.status-warning{background:var(--warning)}.status-critical{background:var(--critical)}.progress-text{flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:.85rem;display:flex}.status-text{font-weight:600}.status-text-good{color:var(--good-text)}.status-text-warning{color:var(--warning-text)}.status-text-critical{color:var(--critical-text)}.filters{grid-template-columns:1fr;gap:8px;display:grid}@media (width>=600px){.filters{grid-template-columns:2fr 1fr}}.totals{margin:0;font-size:.88rem}.totals b{color:var(--text);font-variant-numeric:tabular-nums}.empty{text-align:center;padding:32px 0}.day-group{flex-direction:column;gap:4px;display:flex}.day-title{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;padding:0 4px;font-size:.8rem;font-weight:600}.tx-list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.tx-list li+li{border-top:1px solid var(--border)}.tx{text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;width:100%;padding:12px;display:flex}.tx:hover{background:var(--surface-2)}.tx-main{flex-direction:column;flex:1;min-width:0;display:flex}.tx-desc{white-space:nowrap;text-overflow:ellipsis;font-weight:500;overflow:hidden}.tx-sub{white-space:nowrap;text-overflow:ellipsis;font-size:.82rem;overflow:hidden}.tx-amount{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.amount-in{color:var(--good-text)}.sheet-backdrop{z-index:50;background:#0006;justify-content:center;align-items:flex-end;animation:.2s fade;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-width:560px;max-height:90dvh;padding:16px 16px calc(20px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;flex-direction:column;gap:12px;animation:.28s cubic-bezier(.2,.8,.2,1) up;display:flex;overflow:auto}@media (width>=900px){.sheet-backdrop{align-items:center}.sheet{border-radius:20px;padding-bottom:20px}}.sheet-head{justify-content:space-between;align-items:center;display:flex}.sheet-head h2{font-variant-numeric:tabular-nums;font-size:1.4rem}.sheet-desc{margin:0;font-weight:500}.sheet-actions{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.form{flex-direction:column;gap:12px;display:flex}@keyframes up{0%{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}@keyframes fade{0%{opacity:0}}.chip-grid{flex-wrap:wrap;gap:6px;display:flex}.chip{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:999px;padding:6px 12px;font-size:.88rem;transition:background .12s}.chip:hover{background:var(--surface-2)}.chip-on{background:var(--accent);border-color:var(--accent);color:#fff}.chip-on:hover{background:var(--accent)}.segmented{background:var(--surface-2);border-radius:10px;grid-template-columns:1fr 1fr;padding:3px;display:grid}.segmented button{cursor:pointer;color:var(--text-2);background:0 0;border:0;border-radius:8px;padding:8px;font-weight:600}.segmented button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.budget-list li+li{border-top:1px solid var(--border)}.budget-row{flex-direction:column;gap:8px;padding:10px 0;display:flex}.budget-head{align-items:center;gap:12px;display:flex}.budget-head .cat-name{flex:1}.budget-form,.inline-form{align-items:center;gap:8px;display:flex}.inline-form.wrap{flex-wrap:wrap;margin-top:12px}.inline-form.wrap .input{flex:140px;width:auto}.inline-form.wrap .input-emoji{text-align:center;flex:0 0 60px}.account-list{margin-bottom:14px}.account{justify-content:space-between;gap:12px;padding:12px 0;display:flex}.account+.account{border-top:1px solid var(--border)}.account-hidden{opacity:.5}.account-main{flex-direction:column;gap:2px;min-width:0;display:flex}.account-name{text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600}.account-name span{color:var(--muted);font-size:.8rem}.account-side{flex-direction:column;align-items:flex-end;gap:4px;display:flex}.account-balance{font-variant-numeric:tabular-nums;font-weight:700}.simple-list li{justify-content:space-between;align-items:center;gap:8px;padding:8px 0;display:flex}.simple-list li+li{border-top:1px solid var(--border)}.row-actions{flex-wrap:wrap;gap:8px;display:flex}.login{place-items:center;min-height:100dvh;padding:24px;display:grid}.login-card{text-align:center;background:var(--surface);border:1px solid var(--border);width:100%;max-width:360px;box-shadow:var(--shadow);border-radius:20px;flex-direction:column;align-items:center;gap:14px;padding:32px 24px;display:flex}.login-card .field{text-align:left;width:100%}.login-card p{margin:0}.toast{z-index:60;left:50%;bottom:calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));background:var(--text);color:var(--page);border-radius:12px;max-width:calc(100vw - 32px);padding:10px 16px;font-size:.9rem;animation:.25s up;position:fixed;transform:translate(-50%)}@media (width>=900px){.toast{bottom:24px}}.skeleton{text-align:center;color:var(--muted);padding:48px 0}.spin{animation:.9s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
