:root{--bg:#f2f2f7;--card:#fff;--text:#1c1c1e;--secondary:#6c6c70;--separator:#3c3c432e;--fill:#76768024;--bar:#f9f9fbd1;--accent:#0066d6;--accent-fill:#007aff;--raised:#fff;--income:#007aff;--expense:#e8710a;--green:#1d7a34;--orange:#9a5700;--red:#c9251c;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;-webkit-font-smoothing:antialiased;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,system-ui,sans-serif;font-size:16px}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#000;--card:#1c1c1e;--text:#fff;--secondary:#98989f;--separator:#54545899;--fill:#76768042;--bar:#1e1e20d1;--accent:#409cff;--accent-fill:#0a84ff;--raised:#636366;--income:#0a84ff;--expense:#d97a06;--green:#30d158;--orange:#ff9f0a;--red:#ff6961}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;line-height:1.35}h1,h2,h3,p,ul{margin:0}ul{padding:0;list-style:none}h1{letter-spacing:-.022em;font-size:2.1rem;font-weight:700}h2{font-size:1.05rem;font-weight:600}h3{color:var(--secondary);margin:0 16px 6px;font-size:.8rem;font-weight:500}button,input,select{font:inherit;color:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;padding:0}button:disabled{opacity:.4;cursor:default}:focus-visible{outline:3px solid color-mix(in srgb, var(--accent-fill) 60%, transparent);outline-offset:2px}code{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.9em}nav{z-index:5;padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:var(--bar);border-top:.5px solid var(--separator);-webkit-backdrop-filter:saturate(180%)blur(20px);display:flex;position:fixed;inset:auto 0 0}nav a{min-width:0;color:var(--secondary);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;min-height:44px;font-size:.65rem;font-weight:500;text-decoration:none;display:flex}nav a[aria-current=page]{color:var(--accent)}.brand{display:none}main{max-width:980px;padding:calc(16px + env(safe-area-inset-top)) 16px calc(88px + env(safe-area-inset-bottom));flex-direction:column;gap:16px;margin:0 auto;display:flex}.title-bar{justify-content:space-between;align-items:center;gap:12px;display:flex}.add{background:var(--accent-fill);color:#fff;border-radius:50%;place-items:center;width:38px;height:38px;display:grid}@media (width>=700px){nav{border-top:0;border-right:.5px solid var(--separator);flex-direction:column;gap:2px;width:220px;padding:20px 10px;inset:0 auto 0 0}nav a{min-height:36px;color:var(--text);border-radius:8px;flex-direction:row;flex:none;justify-content:flex-start;gap:10px;padding:0 10px;font-size:.9rem}nav a svg{color:var(--accent)}nav a:hover{background:var(--fill)}nav a[aria-current=page]{background:var(--fill);color:var(--text);font-weight:600}.brand{color:var(--secondary);padding:0 10px 8px;font-size:.75rem;font-weight:600;display:block}.app{padding-left:220px}main{padding:28px 28px 40px}}.card{background:var(--card);border-radius:14px;flex-direction:column;gap:12px;min-width:0;padding:16px;display:flex}.card-title{justify-content:space-between;align-items:center;gap:8px;display:flex}.tiles{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;display:grid}.tile{gap:4px}.tile span{color:var(--secondary);font-size:.85rem}.tile strong{letter-spacing:-.02em;font-size:1.7rem}.split{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));align-items:start;gap:16px;display:grid}@media (width<=380px){.split{grid-template-columns:1fr}}.dot{border-radius:50%;flex:none;width:10px;height:10px;margin-right:8px;display:inline-block}.row>.dot{margin:0}.income{background:var(--income)}.expense{background:var(--expense)}.secondary,.hint,.totals{color:var(--secondary)}.hint,.totals{margin:0 16px;font-size:.8rem}.negative,.error{color:var(--red)}.error{font-size:.9rem}.accent{color:var(--accent)}.chevron{color:var(--secondary);display:grid}.row-line{font-variant-numeric:tabular-nums;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;display:flex}.row-line.account+.account{border-top:.5px solid var(--separator);padding-top:12px}.category-bar{flex-direction:column;gap:6px;font-size:.9rem;display:flex}.bar{border-radius:0 4px 4px 0;min-width:2px;height:8px;display:block}.budget{flex-direction:column;gap:6px;width:100%;font-size:.9rem;display:flex}.progress{background:var(--fill);border-radius:4px;height:8px;overflow:hidden}.progress i{background:var(--accent-fill);border-radius:4px;height:100%;display:block}.progress.warning i{background:#ff9500}.progress.exceeded i{background:#ff3b30}.status{color:var(--secondary);align-items:center;gap:5px;font-size:.8rem;display:flex}.status.warning{color:var(--orange)}.status.exceeded{color:var(--red)}.legend{color:var(--secondary);gap:16px;font-size:.8rem;display:flex}.readout{font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:2px 14px;font-size:.85rem;display:flex}.readout strong{flex-basis:100%}.chart{gap:8px;display:flex}.y-axis{height:180px;color:var(--secondary);text-align:right;white-space:nowrap;flex-direction:column;justify-content:space-between;font-size:.7rem;display:flex}.columns{background:linear-gradient(var(--separator), var(--separator)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--separator), var(--separator)) 0 90px / 100% 1px no-repeat;flex:1;min-width:0;display:flex}.column{border-radius:6px;flex-direction:column;flex:1;align-items:stretch;gap:4px;min-width:0;display:flex}.column.active{background:var(--fill)}.bars{border-bottom:1px solid var(--secondary);justify-content:center;align-items:flex-end;gap:2px;height:180px;padding:0 2px;display:flex}.bars i{border-radius:4px 4px 0 0;width:100%;max-width:18px}.column small{color:var(--secondary);font-size:.65rem;overflow:hidden}.table-scroll{overflow-x:auto}table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:.8rem}th,td{text-align:right;border-bottom:.5px solid var(--separator);white-space:nowrap;padding:7px 6px;font-weight:400}th:first-child{text-align:left}thead th{color:var(--secondary)}.group{background:var(--card);border-radius:12px;width:100%;overflow:hidden}.group>*+*{border-top:.5px solid var(--separator)}.row{text-align:left;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 16px;display:flex}.row:hover{background:var(--fill)}.row:focus-visible{outline-offset:-3px}.row-main{overflow-wrap:anywhere;flex-direction:column;flex:1;min-width:0;display:flex}.row-main small{color:var(--secondary);font-size:.78rem}.avatar{color:#fff;border-radius:9px;flex:none;place-items:center;width:34px;height:34px;font-style:normal;font-weight:600;display:grid}.avatar.transfer{background:#8e8e93}.amount-in,.amount-out{font-variant-numeric:tabular-nums;white-space:nowrap}.amount-in{color:var(--green);font-weight:600}.month-nav{justify-content:space-between;align-self:flex-start;align-items:center;gap:8px;min-width:250px;display:flex}.icon-button{width:36px;height:36px;color:var(--accent);border-radius:50%;place-items:center;display:grid}.icon-button:hover{background:var(--fill)}.toolbar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.button{background:var(--fill);min-height:36px;color:var(--accent);cursor:pointer;border-radius:9px;justify-content:center;align-items:center;gap:6px;padding:0 14px;font-size:.9rem;font-weight:500;text-decoration:none;display:inline-flex}.link{color:var(--accent);min-height:32px;font-size:.9rem}.link.strong{font-weight:600}.search{background:var(--fill);min-height:36px;color:var(--secondary);border-radius:9px;flex:220px;align-items:center;gap:6px;padding:0 10px;display:flex}.search input{min-width:0;color:var(--text);background:0 0;border:0;outline:0;flex:1}.search:focus-within{outline:3px solid color-mix(in srgb, var(--accent-fill) 60%, transparent)}.filters{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));align-items:start;gap:12px;display:grid}.field{justify-content:space-between;align-items:center;gap:12px;min-height:46px;padding:6px 16px;display:flex}.field>span{flex:none}.field input:not([type=checkbox]),.field select{text-align:right;text-align-last:right;min-width:0;max-width:62%;color:var(--accent);background:0 0;border:0;flex:1}input[role=switch]{appearance:none;background:var(--fill);cursor:pointer;border-radius:16px;width:51px;height:31px;margin:0;transition:background .2s;position:relative}input[role=switch]:after{content:"";background:#fff;border-radius:50%;width:27px;height:27px;transition:translate .2s;position:absolute;top:2px;left:2px;box-shadow:0 2px 5px #00000040}input[role=switch]:checked{background:#34c759}input[role=switch]:checked:after{translate:20px}.segmented{background:var(--fill);border-radius:9px;flex:none;padding:2px;display:flex}.segmented button{border-radius:7px;flex:1;min-height:32px;font-size:.85rem;font-weight:500}.segmented button[aria-pressed=true]{background:var(--raised);box-shadow:0 1px 4px #00000029}.swatches{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.swatches button{border-radius:50%;width:34px;height:34px}.swatches button[aria-pressed=true]{box-shadow:0 0 0 3px var(--bg), 0 0 0 5px var(--accent-fill)}.empty{text-align:center;color:var(--secondary);padding:32px 16px}.empty strong{color:var(--text);display:block}.sheet{color:var(--text);background:var(--bg);border:0;border-radius:14px;width:min(460px,100%);max-height:min(88dvh,760px);padding:0;overflow:auto;box-shadow:0 24px 70px #00000059}.sheet::backdrop{background:#00000059}.sheet[open]{animation:.22s ease-out appear}.sheet header{z-index:1;background:var(--bar);border-bottom:.5px solid var(--separator);-webkit-backdrop-filter:blur(20px);grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:10px 16px;display:grid;position:sticky;top:0}.sheet header h2{text-align:center;font-size:.98rem}.sheet header>:first-child{justify-self:start}.sheet header>:last-child{justify-self:end}.sheet-body{padding:16px 16px calc(20px + env(safe-area-inset-bottom));flex-direction:column;gap:14px;display:flex}.sheet-body ul:not(.group){padding-left:20px;font-size:.9rem;list-style:outside}.destructive{color:var(--red);min-height:46px}.amount{justify-content:center;align-items:baseline;gap:6px;font-size:2.4rem;font-weight:600;display:flex}.amount input{font-size:inherit;border:0;border-bottom:2px solid var(--separator);text-align:center;background:0 0;outline:0;width:6.5em}.amount input:focus{border-bottom-color:var(--accent-fill)}@keyframes appear{0%{opacity:0;transform:scale(.96)}}@keyframes rise{0%{transform:translateY(100%)}}@media (width<=699px){.sheet{border-radius:14px 14px 0 0;width:100%;max-width:100%;max-height:92dvh;margin:auto 0 0}.sheet[open]{animation:.28s cubic-bezier(.2,.8,.2,1) rise}.month-nav{align-self:stretch}.readout{font-size:.8rem}.column small{font-size:.58rem}input,select{font-size:16px}}@media (prefers-reduced-motion:reduce){*,:after{transition:none!important;animation:none!important}}@media (prefers-reduced-transparency:reduce){nav,.sheet header{background:var(--card);-webkit-backdrop-filter:none;backdrop-filter:none}}.auth{text-align:center;justify-content:center;align-items:center;max-width:400px;min-height:100dvh}.auth form{text-align:left;flex-direction:column;gap:14px;width:100%;display:flex}.auth .error{text-align:center}.primary{background:var(--accent-fill);color:#fff;border-radius:12px;min-height:46px;font-weight:600}.group input.row{color:var(--secondary);background:0 0;border:0;font-size:.85rem}section>.destructive{margin-top:16px}
