:root{--ink: #0E3B43;--ink-2: #16525C;--mist: #EAF1EE;--paper: #FFFFFF;--text: #13282C;--muted: #5C7378;--line: #D5E1DD;--good: #23895E;--warn: #C98A12;--bad: #D14B3F;--sun: #F2C14E;--r-lg: 22px;--r-sm: 10px;--display: "Secular One", "Assistant", system-ui, sans-serif;--body: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;--safe-b: env(safe-area-inset-bottom, 0px)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;background:var(--mist);color:var(--text);font-family:var(--body);font-size:17px;line-height:1.45}body{padding-bottom:calc(76px + var(--safe-b));min-height:100vh}button,input,select{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:3px solid var(--sun);outline-offset:2px;border-radius:6px}.num{font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate;display:inline-block}main{max-width:560px;margin:0 auto}.pad{padding:0 18px}h1,h2,h3{margin:0;font-weight:700}h2{font-size:1.15rem;margin:28px 18px 10px}.sub{color:var(--muted);font-size:.92rem}.hero{background:var(--ink);color:#fff;padding:calc(18px + env(safe-area-inset-top,0px)) 20px 22px;border-radius:0 0 var(--r-lg) var(--r-lg)}.hero-top{display:flex;justify-content:space-between;align-items:center;font-size:.95rem;color:#bfd6d3}.hero-top button{background:none;border:0;color:#bfd6d3;padding:6px;display:flex;align-items:center;gap:6px;font-size:.9rem}.hero-top button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}.hero-top button.spinning svg{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.hero-q{margin:18px 0 0;font-size:1.05rem;color:#d8e8e5}.hero-n{font-family:var(--display);font-size:clamp(3rem,15vw,4.3rem);line-height:1;margin:6px 0 4px;letter-spacing:-.01em}.hero-n.neg{color:#ff9c90}.hero-note{color:#bfd6d3;font-size:.95rem}.runway{margin:22px 0 6px;position:relative;height:34px}.runway-track{position:absolute;inset:14px 0 auto;height:6px;border-radius:3px;background:#ffffff24;overflow:hidden}.runway-spent{position:absolute;inset:0 0 0 auto;background:#7fb7ae;border-radius:3px}.runway-today{position:absolute;top:4px;width:26px;height:26px;margin-inline-start:-13px;border-radius:50%;background:var(--sun);color:var(--ink);font:700 .8rem/26px var(--body);text-align:center;box-shadow:0 0 0 4px var(--ink)}.runway-labels{display:flex;justify-content:space-between;font-size:.8rem;color:#95b5b1}.today-box{margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#ffffff1f;border-radius:16px;overflow:hidden}.today-box>div{background:var(--ink-2);padding:12px 14px}.today-box b{display:block;font-family:var(--display);font-size:1.6rem;font-weight:400;line-height:1.15}.today-box span{font-size:.85rem;color:#bfd6d3}.today-box .over b{color:#ff9c90}.tip{margin:18px 18px 0;background:var(--paper);border-radius:var(--r-lg);padding:16px 18px;border-inline-start:5px solid var(--ink)}.tip.warn{border-color:var(--bad)}.tip.good{border-color:var(--good)}.tip.idea{border-color:var(--sun)}.tip h3{font-size:1.05rem;display:flex;gap:8px;align-items:flex-start}.tip p{margin:6px 0 0;color:#33494d}.tip details{margin-top:8px;font-size:.9rem;color:var(--muted)}.tip summary{cursor:pointer;color:var(--ink-2);font-weight:600;list-style:none}.tip summary::-webkit-details-marker{display:none}.tip-nav{display:flex;justify-content:space-between;align-items:center;margin:8px 18px 0;color:var(--muted);font-size:.9rem}.tip-nav button{background:none;border:0;color:var(--ink-2);font-weight:600;padding:8px 4px}.dots{display:flex;gap:5px}.dots i{width:6px;height:6px;border-radius:50%;background:var(--line)}.dots i.on{background:var(--ink);width:16px;border-radius:3px}.list{background:var(--paper);margin:0 18px;border-radius:var(--r-lg);overflow:hidden}.row{display:block;width:100%;text-align:start;background:none;border:0;padding:14px 16px;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0}.cat-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.cat-name{font-weight:700}.cat-amt{font-weight:600}.cat-amt small{color:var(--muted);font-weight:400}.bar{position:relative;height:8px;margin-top:8px;border-radius:4px;background:#e7eeec}.bar-fill{position:absolute;inset:0 0 0 auto;border-radius:4px;background:var(--ink-2)}.bar-fill.fast{background:var(--warn)}.bar-fill.over{background:var(--bad)}.bar-pace{position:absolute;top:-3px;width:2px;height:14px;background:var(--text);margin-inline-start:-1px;border-radius:1px}.cat-foot{font-size:.85rem;color:var(--muted);margin-top:6px}.cat-foot.fast{color:#9a6a0c}.cat-foot.over{color:var(--bad)}.legend{margin:8px 18px 0;font-size:.82rem;color:var(--muted);display:flex;align-items:center;gap:6px}.legend i{width:2px;height:12px;background:var(--text);display:inline-block}.fixed-sum{display:flex;justify-content:space-between;align-items:center}.fixed-sum .sub{margin-top:2px}.chev{width:20px;height:20px;stroke:var(--muted);fill:none;stroke-width:2;transition:transform .2s}details[open]>summary .chev{transform:rotate(180deg)}details>summary{list-style:none}details>summary::-webkit-details-marker{display:none}.mini{display:flex;justify-content:space-between;padding:8px 16px;font-size:.95rem}.mini.up{color:var(--muted)}.tx-top{position:sticky;top:0;z-index:5;background:var(--mist);padding:calc(14px + env(safe-area-inset-top,0px)) 18px 10px}.tx-top h1{font-family:var(--display);font-weight:400;font-size:1.7rem}.month-switch{display:flex;align-items:center;justify-content:space-between;margin-top:6px}.month-switch button{background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:6px 14px}.month-switch button:disabled{opacity:.35}.filters{display:flex;gap:8px;overflow-x:auto;padding:10px 0 2px;scrollbar-width:none}.filters button{flex:none;border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:6px 14px;font-size:.92rem}.filters button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}.day{margin:16px 18px 6px;font-size:.9rem;color:var(--muted);font-weight:600;display:flex;justify-content:space-between}.tx{display:grid;grid-template-columns:1fr auto;gap:2px 12px;align-items:center}.tx-biz{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-amt{font-weight:700}.tx-amt.inc{color:var(--good)}.chip{justify-self:start;display:inline-flex;gap:6px;align-items:center;border-radius:999px;padding:2px 10px;font-size:.85rem;background:#e3eeeb;color:var(--ink);border:0}.chip.manual{background:#fff1cf;color:#6b4b00}.chip svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2.2}.tx-meta{font-size:.8rem;color:var(--muted)}.badge{font-size:.72rem;padding:1px 7px;border-radius:999px;background:var(--sun);color:var(--ink);font-weight:700;margin-inline-start:6px;vertical-align:2px}.empty{text-align:center;color:var(--muted);padding:40px 24px}.page-head{padding:calc(18px + env(safe-area-inset-top,0px)) 18px 4px}.page-head h1{font-family:var(--display);font-weight:400;font-size:1.7rem}.equation{margin:14px 18px 0;background:var(--ink);color:#fff;border-radius:var(--r-lg);padding:18px}.eq-row{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.12);font-size:1rem}.eq-row span:first-child{color:#cfe2df}.eq-row.total{border:0;padding-top:12px;font-family:var(--display);font-size:1.5rem}.eq-row.total span:first-child{color:#fff}.eq-goal{margin-top:10px;font-size:.92rem;color:#cfe2df}.cuts{margin:12px 18px 0;background:#fff6de;border-radius:var(--r-lg);padding:14px 16px;color:#5a4200;font-size:.95rem}.cuts b{color:#3b2c00}.goal{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center}.stepper{display:flex;align-items:center;gap:4px;direction:ltr}.stepper button{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--paper);font-size:1.2rem;line-height:1}.stepper input,.field .stepper input[type=number]{width:84px;text-align:center;border:0;border-bottom:2px solid var(--line);padding:6px 0;font-weight:700;background:none}.goal-why{grid-column:1 / -1;font-size:.82rem;color:var(--muted)}.goal-why button{background:none;border:0;color:var(--ink-2);font-weight:600;padding:0;font-size:.82rem;text-decoration:underline}.hist{display:flex;align-items:flex-end;gap:10px;height:120px;padding:16px}.hist-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;height:100%;justify-content:flex-end;font-size:.75rem;color:var(--muted)}.hist-bar{width:100%;max-width:44px;display:flex;flex-direction:column-reverse;border-radius:6px;overflow:hidden}.hist-bar i{display:block}.hist-bar .f{background:#9fb9b5}.hist-bar .v{background:var(--ink-2)}.hist-col.partial .v{background:repeating-linear-gradient(45deg,var(--ink-2) 0 4px,#3E7880 4px 8px)}.hist-legend{display:flex;gap:14px;padding:0 16px 14px;font-size:.8rem;color:var(--muted)}.hist-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-inline-end:4px;vertical-align:-1px}.field{padding:14px 16px;border-bottom:1px solid var(--line)}.field:last-child{border:0}.field label{font-weight:700;display:block}.field p{margin:4px 0 10px;font-size:.9rem;color:var(--muted)}.field input[type=text],.field input[type=password],.field input[type=number]{width:100%;padding:12px 14px;border-radius:var(--r-sm);border:1px solid var(--line);background:#f8fbfa}.switch{display:flex;justify-content:space-between;align-items:center;gap:12px}.switch input{appearance:none;width:50px;height:30px;border-radius:15px;background:#c9d6d2;position:relative;flex:none;transition:background .2s}.switch input:after{content:"";position:absolute;top:3px;right:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:right .2s}.switch input:checked{background:var(--good)}.switch input:checked:after{right:23px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:0;border-radius:999px;padding:12px 20px;background:var(--ink);color:#fff;font-weight:700}.btn.full{width:100%}.btn.ghost{background:#e3eeeb;color:var(--ink)}.btn:disabled{opacity:.5}.status-line{display:flex;gap:8px;align-items:center;font-size:.92rem}.dot{width:9px;height:9px;border-radius:50%;background:var(--good);flex:none}.dot.bad{background:var(--bad)}.steps{margin:6px 0 10px;padding-inline-start:20px;font-size:.92rem;color:#33494d}.steps li{margin-bottom:4px}a{color:var(--ink-2)}.banner{margin:14px 18px 0;background:#fde7e4;color:#7a1e15;border-radius:16px;padding:12px 14px;font-size:.95rem;display:flex;gap:10px;align-items:center;justify-content:space-between}.banner a{font-weight:700;color:#7a1e15;white-space:nowrap}.login{min-height:100vh;background:var(--ink);color:#fff;padding:64px 28px;display:flex;flex-direction:column;gap:18px}.login h1{font-family:var(--display);font-weight:400;font-size:2.6rem;line-height:1.05}.login p{color:#bfd6d3;margin:0}.login input{width:100%;padding:14px 16px;border-radius:14px;border:0;font-size:1.1rem;background:#fff;color:var(--text)}.login .who{display:flex;gap:10px}.login .who button{flex:1;padding:12px;border-radius:14px;border:2px solid rgba(255,255,255,.25);background:none;color:#fff;font-weight:700}.login .who button[aria-pressed=true]{border-color:var(--sun);background:#f2c14e24}.login .btn{background:var(--sun);color:var(--ink);padding:15px;font-size:1.1rem}.err{color:#ffb3a9;min-height:1.4em}.tabs[hidden]{display:none}.tabs{position:fixed;bottom:0;inset-inline:0;z-index:10;display:grid;grid-template-columns:repeat(4,1fr);background:var(--paper);border-top:1px solid var(--line);padding-bottom:var(--safe-b)}.tabs a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 0 8px;font-size:.8rem;color:var(--muted);text-decoration:none;font-weight:600}.tabs svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tabs a.on{color:var(--ink)}.tabs a.on svg{stroke-width:2.5}.scrim{position:fixed;inset:0;background:#081e2273;z-index:20;animation:fade .18s ease-out}.sheet{position:fixed;bottom:0;inset-inline:0;z-index:21;background:var(--paper);border-radius:24px 24px 0 0;padding:10px 18px calc(18px + var(--safe-b));max-height:86vh;overflow-y:auto;animation:up .24s cubic-bezier(.2,.8,.2,1);max-width:560px;margin:0 auto}.sheet .grab{width:40px;height:5px;border-radius:3px;background:var(--line);margin:0 auto 12px}.sheet h3{font-size:1.15rem}.sheet .sub{margin:2px 0 14px}.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.cat-grid button{border:1px solid var(--line);background:#f6faf9;border-radius:12px;padding:12px 6px;font-weight:600;font-size:.92rem}.cat-grid button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}.sheet .switch{margin:16px 0;padding:12px 14px;border-radius:14px;background:#f1f6f4}.sheet .new-cat{display:flex;gap:8px;margin-top:10px}.sheet .new-cat input{flex:1;padding:10px 12px;border-radius:12px;border:1px solid var(--line)}@keyframes up{0%{transform:translateY(100%)}}@keyframes fade{0%{opacity:0}}.toast{position:fixed;bottom:calc(88px + var(--safe-b));left:50%;transform:translate(-50%) translateY(20px);background:var(--text);color:#fff;padding:10px 18px;border-radius:999px;font-size:.95rem;opacity:0;pointer-events:none;transition:.2s;z-index:30;white-space:nowrap}.toast.on{opacity:1;transform:translate(-50%)}.skeleton{height:340px;background:var(--ink);border-radius:0 0 var(--r-lg) var(--r-lg)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.sheet-foot{position:sticky;bottom:calc(-18px - var(--safe-b));background:var(--paper);margin:0 -18px;padding:4px 18px calc(18px + var(--safe-b));box-shadow:0 -8px 16px -12px #081e2259}.sheet-foot .switch{margin:8px 0 12px}.intro{margin:-4px 18px 10px;font-size:.9rem;color:var(--muted)} 