:root{--bg:#f2f3f5;--surface:#fff;--surface-2:#f6f7f9;--border:#e1e4e9;--ink:#15171c;--muted:#596070;--accent:#2f45c8;--accent-ink:#fff;--accent-soft:#e9ecfc;--income:#0b7550;--income-soft:#e2f3eb;--bar:#c7ccd6;--agent:#a84e06;--agent-soft:#fcefe0;--danger:#b42318;--danger-soft:#fdecea;--shadow:0 10px 40px #1018282e;--radius:14px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--bg:#0d0f13;--surface:#15181e;--surface-2:#1b1f27;--border:#272c36;--ink:#e8eaee;--muted:#9ea5b2;--accent:#8f9bff;--accent-ink:#0d0f13;--accent-soft:#222844;--income:#4ccb98;--income-soft:#10291f;--bar:#3a404c;--agent:#f2a33a;--agent-soft:#33240f;--danger:#ff8f87;--danger-soft:#3a1714;--shadow:0 10px 40px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;font-family:Onest,system-ui,sans-serif;font-size:14px;line-height:1.45}button,input,select,textarea{font:inherit;color:inherit}a{color:var(--accent)}a:hover{color:var(--ink)}h1,h2,h3{margin:0}.num{font-variant-numeric:tabular-nums;white-space:nowrap;font-family:IBM Plex Mono,ui-monospace,monospace}.muted{color:var(--muted)}.small{font-size:12.5px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.app{flex-wrap:wrap;align-items:stretch;min-height:100vh;display:flex}.sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;flex:232px;gap:4px;max-width:264px;padding:20px 14px;display:flex}.brand{align-items:center;gap:10px;padding:4px 10px 20px;font-size:15px;font-weight:600;display:flex}.brand-logo{flex:none;width:30px;height:30px;display:block}.nav-link{color:var(--muted);border-radius:9px;align-items:center;gap:12px;padding:10px 12px;text-decoration:none;display:flex}.nav-link:hover{color:var(--ink);background:var(--surface-2)}.nav-link.active{color:var(--ink);background:var(--surface-2);font-weight:600}.nav-sep{background:var(--border);height:1px;margin:12px 10px}.main{flex-direction:column;flex:999 560px;gap:20px;min-width:0;padding:28px 36px 48px;display:flex}.page-head{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.page-head h1{letter-spacing:-.01em;font-size:26px;font-weight:600}.page-title{flex-direction:column;gap:2px;margin-right:auto;display:flex}.tabbar{display:none}.btn{cursor:pointer;border:1px solid var(--border);background:var(--surface);height:40px;color:var(--ink);white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-weight:500;text-decoration:none;display:inline-flex}.btn:hover{background:var(--surface-2);color:var(--ink)}.btn:disabled{opacity:.55;cursor:default}.btn-primary{background:var(--accent);color:var(--accent-ink);border:0;font-weight:600}.btn-primary:hover{background:var(--accent);color:var(--accent-ink);filter:brightness(1.06)}.btn-danger{color:var(--danger)}.btn-danger.armed{background:var(--danger);color:#fff;border-color:var(--danger)}.btn-sm{border-radius:9px;height:34px;padding:0 12px;font-size:13.5px}.btn-icon{width:40px;padding:0}.btn-ghost{background:0 0;border-color:#0000}.btn-ghost:hover{background:var(--surface-2)}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field>label,.field-label{color:var(--muted);font-size:13px;font-weight:500}.input,.select,.textarea{border:1px solid var(--border);background:var(--surface);height:44px;color:var(--ink);border-radius:10px;width:100%;min-width:0;padding:0 12px}.textarea{resize:vertical;height:auto;padding:10px 12px}.input:focus,.select:focus,.textarea:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:#0000}.amount-input{height:60px;font-family:IBM Plex Mono,ui-monospace,monospace;font-size:26px}.field-error{color:var(--danger);font-size:12.5px}.form-error{color:var(--danger);background:var(--danger-soft);border-radius:10px;padding:10px 12px;font-size:13.5px}.row{flex-wrap:wrap;gap:12px;display:flex}.row>*{flex:180px}.segmented{background:var(--surface);border:1px solid var(--border);border-radius:10px;gap:2px;padding:3px;display:inline-flex}.segmented button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;padding:7px 14px;font-weight:500}.segmented button[aria-pressed=true],.segmented button[aria-selected=true]{background:var(--accent-soft);color:var(--accent)}.segmented.wide{background:var(--surface-2);display:flex}.segmented.wide button{flex:1 1 0;padding:9px 0;font-weight:600}.segmented.wide button[aria-selected=true]{background:var(--surface);color:var(--ink)}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:9px;height:34px;padding:0 12px;font-weight:500}.chip[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.card-pad{flex-direction:column;gap:12px;padding:20px 22px;display:flex}.card h2{font-size:16px;font-weight:600}.cards{flex-wrap:wrap;gap:16px;display:flex}.kpi{flex-direction:column;flex:220px;gap:6px;padding:18px 20px;display:flex}.kpi .value{font-size:22px;font-weight:600}.list-head{background:var(--surface-2);border-bottom:1px solid var(--border);align-items:baseline;gap:12px;padding:12px 22px;font-size:13px;display:flex}.list-row{border-bottom:1px solid var(--border);text-align:left;cursor:pointer;width:100%;color:var(--ink);background:0 0;border-top:0;border-left:0;border-right:0;flex-wrap:wrap;align-items:center;gap:14px;padding:12px 22px;display:flex}.list-row:hover{background:var(--surface-2)}.list-row:last-child{border-bottom:0}.chip-letter{background:var(--surface-2);width:36px;height:36px;color:var(--muted);border-radius:10px;flex:none;place-items:center;font-size:13px;font-weight:600;display:grid}.agent-badge{background:var(--agent-soft);color:var(--agent);border-radius:6px;align-items:center;gap:4px;padding:1px 7px;font-size:11.5px;font-weight:600;display:inline-flex}.badge{background:var(--surface-2);border:1px solid var(--border);color:var(--muted);border-radius:6px;align-items:center;padding:2px 8px;font-size:12px;font-weight:600;display:inline-flex}.amount-income{color:var(--income)}.amount-transfer{color:var(--muted)}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:12px;padding:40px 22px;display:flex}.overlay{z-index:50;background:#0d0f1373;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.dialog{background:var(--surface);width:100%;max-width:560px;max-height:calc(100vh - 32px);box-shadow:var(--shadow);border:1px solid var(--border);border-radius:16px;flex-direction:column;display:flex;overflow:auto}.dialog-head{align-items:center;gap:12px;padding:20px 24px 12px;display:flex}.dialog-head h2{margin-right:auto;font-size:20px;font-weight:600}.dialog-body{flex-direction:column;gap:16px;padding:8px 24px 20px;display:flex}.dialog-foot{border-top:1px solid var(--border);gap:10px;padding:16px 24px 20px;display:flex}.dialog-foot .grow{margin-right:auto}.note-box{background:var(--surface-2);border-radius:10px;flex-direction:column;gap:4px;padding:12px 14px;font-size:13px;display:flex}.toast{z-index:60;background:var(--ink);color:var(--bg);box-shadow:var(--shadow);border-radius:10px;padding:10px 16px;font-size:13.5px;position:fixed;bottom:20px;left:50%;transform:translate(-50%)}.spinner{border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:18px;height:18px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.center-page{place-items:center;min-height:100vh;padding:24px;display:grid}.kpi .caption{color:var(--muted);font-size:12.5px}.kpi-error{color:var(--danger);flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;display:flex}.legend{color:var(--muted);align-items:center;gap:6px;font-size:12.5px;display:inline-flex}.legend i{border-radius:3px;width:10px;height:10px;display:inline-block}.chart{flex-direction:column;flex:auto;gap:8px;display:flex}.chart-bars{border-bottom:1px solid var(--border);flex:auto;align-items:flex-end;gap:8px;min-height:190px;padding-top:14px;display:flex}.chart-col{flex:1 1 0;justify-content:center;align-items:flex-end;gap:4px;min-width:0;height:100%;display:flex}.chart-bar{border-radius:5px 5px 0 0;width:clamp(6px,30%,18px)}.chart-bar.income{background:var(--income)}.chart-bar.expense{background:var(--bar)}.chart-labels{gap:8px;display:flex}.chart-labels span{text-align:center;min-width:0;color:var(--muted);flex:1 1 0;font-size:12px}.cat-list{flex-direction:column;gap:12px;display:flex}.cat-row{flex-direction:column;gap:6px;display:flex}.cat-line{align-items:baseline;gap:10px;font-size:13.5px;display:flex}.cat-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;margin-right:auto;overflow:hidden}.cat-pct{text-align:right;width:38px;font-size:12.5px}.cat-track{background:var(--surface-2);border-radius:3px;height:6px;overflow:hidden}.cat-fill{background:var(--accent);border-radius:3px;height:100%}.rates-card{border-radius:var(--radius);border:1px dashed var(--border);color:var(--muted);flex-direction:column;gap:6px;padding:16px 20px;font-size:13px;display:flex}.rates-card strong{color:var(--ink);font-weight:500}.rate-warnings{color:var(--muted);flex-direction:column;gap:2px;font-size:12.5px;display:flex}.equiv{color:var(--muted);font-size:12px}@media (max-width:720px){.sidebar,.page-head .desktop-only{display:none}input,select,textarea{font-size:16px}.main{padding:16px 16px calc(96px + env(safe-area-inset-bottom));gap:16px}.page-head h1{font-size:22px}.tabbar{z-index:40;padding:6px 8px calc(10px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);justify-content:space-around;align-items:center;display:flex;position:fixed;bottom:0;left:0;right:0}.tab{width:64px;min-height:48px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:11px;font-weight:500;text-decoration:none;display:flex}.tab.active{color:var(--accent);font-weight:600}.tab-add{cursor:pointer;background:var(--accent);width:52px;height:52px;color:var(--accent-ink);border:0;border-radius:16px;place-items:center;display:grid}.cards{scroll-snap-type:x mandatory;flex-wrap:nowrap;margin:0 -16px;padding:0 16px;overflow-x:auto}.cards>.kpi{scroll-snap-align:start;flex:0 0 78%}.overlay{place-items:stretch stretch;padding:0}.dialog{border:0;border-radius:0;max-width:none;height:100%;max-height:none}.dialog-foot{padding-bottom:calc(16px + env(safe-area-inset-bottom))}}
