:root{--bg:#f6f5f2;--surface:#fff;--ink:#1d1f23;--muted:#6b6f76;--line:#e6e3dd;--accent:#1f6f50;--accent-ink:#fff;--pos:#1f7a4d;--neg:#b3361e;--chip:#efece6;--radius:14px;--s1:#2a78d6;--s2:#eb6834;--s3:#1baf7a;--s4:#eda100;--s5:#e87ba4;--s6:#008300;--grid:#ebe8e2;--warn:#9a5b00;--warn-bg:#fbf1de;--bad-bg:#fbe9e5;--ok-bg:#e6f3ec;--axis:#c9c5bd;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#16171a;--surface:#1f2125;--ink:#ecebe8;--muted:#9a9ea6;--line:#2e3136;--accent:#4fb589;--accent-ink:#0f1a14;--pos:#5cc493;--neg:#f08a73;--chip:#2a2d32;--s1:#3987e5;--s2:#d95926;--s3:#199e70;--s4:#c98500;--s5:#d55181;--s6:#0ca30c;--grid:#2c2e32;--warn:#e9a83a;--warn-bg:#2f2716;--bad-bg:#33201c;--ok-bg:#18291f;--axis:#3d4046}}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);-webkit-tap-highlight-color:transparent;margin:0}h2{margin:0 0 .6rem;font-size:.95rem;font-weight:600}button,input,select{font:inherit;color:inherit}button{cursor:pointer}.sr-only{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.muted{color:var(--muted)}.pos{color:var(--pos)}.neg{color:var(--neg)}.error{color:var(--neg);margin:0;font-size:.9rem}.page{max-width:640px;padding:16px 16px calc(96px + env(safe-area-inset-bottom));margin:0 auto}.hero{padding:8px 4px 16px}.label{color:var(--muted);font-size:.8rem}.hero .label{margin:0}.big{letter-spacing:-.02em;margin:2px 0 4px;font-size:clamp(2.5rem,7vw,3.2rem);font-weight:700}.split{gap:24px;display:flex}.split>div{flex-direction:column;gap:2px;display:flex}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:12px;padding:14px 16px}.card h2{justify-content:space-between;display:flex}.card h2 .sum{font-weight:600}.month dl{grid-template-columns:repeat(3,1fr);gap:8px;margin:0;display:grid}.month dt{color:var(--muted);font-size:.8rem}.month dd{margin:2px 0 0;font-weight:600}.month small{color:var(--muted);font-weight:400}.rows{margin:0;padding:0;list-style:none}.rows li{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:9px 0;display:flex}.rows li:first-child{border-top:0}.tag{color:var(--muted);background:var(--chip);border-radius:999px;margin-left:6px;padding:2px 8px;font-size:.72rem}.actions{justify-content:space-between;align-items:center;margin-top:16px;display:flex}.search{border-radius:var(--radius);border:1px solid var(--line);background:var(--surface);width:100%;margin-bottom:12px;padding:12px 14px}.day h2{color:var(--muted);margin:16px 4px 6px;font-weight:500}.day h2:first-letter{text-transform:uppercase}.day .card{padding:2px 12px}.entry{all:unset;box-sizing:border-box;cursor:pointer;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;width:100%;padding:4px 0;display:grid}.entry:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}.ico{background:var(--chip);border-radius:10px;place-items:center;width:36px;height:36px;display:grid}.txt{flex-direction:column;min-width:0;display:flex}.txt strong{white-space:nowrap;text-overflow:ellipsis;font-weight:500;overflow:hidden}.txt small{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tabbar{max-width:640px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));z-index:5;background:color-mix(in srgb, var(--bg) 88%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--line);grid-template-columns:1fr 1fr auto 1fr 1fr;align-items:center;margin:0 auto;display:grid;position:fixed;bottom:0;left:0;right:0}.tabbar button{color:var(--muted);background:0 0;border:0;min-height:44px;padding:10px 4px;font-size:.85rem;font-weight:500}.tabbar button.on{color:var(--ink)}.tabbar .fab{background:var(--accent);width:56px;height:56px;color:var(--accent-ink);border-radius:50%;margin:-20px 16px 0;font-size:1.8rem;line-height:1;box-shadow:0 4px 14px #0000002e}.sheet{background:var(--bg);width:100%;max-width:560px;max-height:92dvh;color:var(--ink);border:0;border-radius:20px 20px 0 0;margin:auto auto 0;padding:0}.sheet::backdrop{background:#0006}.sheet header{justify-content:space-between;align-items:center;padding:16px 16px 4px;display:flex}.sheet header h2{margin:0;font-size:1.05rem}@media (width>=700px){.sheet{border-radius:20px;margin:auto}}.icon{width:44px;height:44px;color:var(--muted);background:0 0;border:0;border-radius:50%}.form{flex-direction:column;gap:14px;padding:8px 16px 20px;display:flex}.form label{color:var(--muted);flex-direction:column;gap:6px;font-size:.85rem;display:flex}.form input,.form select{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;width:100%;min-height:44px;padding:11px 12px}.form input[aria-invalid=true]{border-color:var(--neg)}.row2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.amount{justify-content:center;align-items:baseline;gap:6px;flex-direction:row!important}.amount input{text-align:right;font-size:2.6rem;font-weight:700;width:9ch!important;color:var(--ink)!important;background:0 0!important;border:0!important;padding:0!important}.amount input:focus{outline:none}.amount span{color:var(--muted);font-size:1.6rem}.segmented{background:var(--chip);border-radius:12px;grid-template-columns:repeat(3,1fr);padding:4px;display:grid}.segmented button{color:var(--muted);background:0 0;border:0;border-radius:9px;padding:9px;font-weight:500}.segmented button[aria-checked=true]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px #0000001f}.picker{border:0;flex-direction:column;gap:10px;margin:0;padding:0;display:flex}.picker legend{color:var(--muted);margin-bottom:6px;font-size:.85rem}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;min-height:40px;padding:8px 12px}.chip.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;display:grid}.grid button{border:1px solid var(--line);background:var(--surface);text-align:center;border-radius:12px;flex-direction:column;align-items:center;gap:4px;min-height:72px;padding:10px 6px;font-size:.78rem;display:flex}.grid button span{font-size:1.4rem}.primary{background:var(--accent);color:var(--accent-ink);border:0;border-radius:12px;min-height:48px;padding:14px;font-weight:600}.primary:disabled{opacity:.45;cursor:default}.secondary{background:var(--surface);border:1px solid var(--line);border-radius:12px;min-height:44px;padding:11px 16px;font-weight:500}.danger{border:1px solid var(--line);color:var(--neg);background:0 0;border-radius:12px;min-height:44px;padding:12px}.link{color:var(--muted);text-align:left;text-underline-offset:3px;background:0 0;border:0;padding:8px 0;text-decoration:underline}.rows li,.report,.rank-value,.tip strong,.entry>span:last-child{font-variant-numeric:tabular-nums}.page-head{flex-wrap:wrap;align-items:center;gap:12px;margin:4px 0 14px;display:flex}.page-head h1{flex:1;margin:0;font-size:1.4rem}.year{color:var(--muted);align-items:center;gap:8px;font-size:.85rem;display:flex}.year select{border:1px solid var(--line);background:var(--surface);border-radius:10px;min-height:40px;padding:8px 10px}.subnav{flex-basis:100%}.filters{flex-wrap:wrap;gap:8px;margin-bottom:12px;display:flex}.chip[aria-checked=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.delta{margin-bottom:12px;font-size:.85rem;display:inline-block}.tile .delta{margin:0}.tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px;display:grid}.tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;gap:4px;min-width:0;padding:12px 14px;display:flex}.tile strong{font-size:1.2rem;font-weight:600}.tile small{font-size:.78rem}@media (width>=760px){.tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}.grid-2{gap:12px;margin-bottom:12px;display:grid}.grid-2 .card{min-width:0;margin-bottom:0}.card h2 .link.small{padding:0;font-size:.8rem;font-weight:400}.chart{margin:0}.legend{color:var(--muted);flex-wrap:wrap;gap:6px 14px;margin:0 0 6px;padding:0;font-size:.8rem;list-style:none;display:flex}.sw{vertical-align:middle;margin-right:6px;display:inline-block}.sw.rect{border-radius:3px;width:10px;height:10px}.sw.line{border-radius:1px;width:14px;height:2px}.tip{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:8px 10px;font-size:.82rem;box-shadow:0 4px 16px #00000024}.tip-title{color:var(--muted);margin-bottom:4px}.tip-row{align-items:center;gap:8px;padding:1px 0;display:flex}.tip-row .key{border-radius:1px;flex:none;width:12px;height:2px}.tip-row span:last-child{color:var(--muted)}.rank{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.rank li{grid-template-columns:1fr auto;gap:4px 12px;font-size:.9rem;display:grid}.rank-track{background:color-mix(in srgb, var(--s1) 16%, var(--surface));border-radius:999px;grid-column:1/-1;height:8px}.rank-track span{background:var(--s1);border-radius:999px;height:100%;display:block}.card.flush{padding:14px 0 0;overflow:hidden}.card.flush>h2,.card.flush>p{padding:0 16px}.table-wrap{overflow-x:auto}.table-wrap:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.report{border-collapse:separate;border-spacing:0;width:100%;font-size:.82rem}.report th,.report td{white-space:nowrap;border-bottom:1px solid var(--line);padding:7px 10px}.report thead th{color:var(--muted);text-align:right;background:var(--surface);font-weight:500}.report thead th:first-child{text-align:left}.report th[scope=row],.report thead th:first-child{z-index:1;background:var(--surface);text-align:left;text-overflow:ellipsis;min-width:190px;max-width:280px;box-shadow:1px 0 0 var(--line);font-weight:400;position:sticky;left:0;overflow:hidden}.report td{text-align:right}.report tr.section>*{font-weight:600}.report tr.subtotal>*{background:var(--chip);font-weight:600}.report tr.total>*{border-top:1px solid var(--ink);font-weight:700}.report tr.note>*{color:var(--muted)}.report td.neg{color:var(--neg)}.toggle{all:unset;cursor:pointer;align-items:center;gap:6px;display:inline-flex}.toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}.chev{width:1em;color:var(--muted)}.leaf{padding-left:calc(1em + 6px);display:inline-block}.status{margin:10px 16px 14px;font-size:.85rem}.status.ok{color:var(--pos)}.status.bad{color:var(--neg);font-weight:600}.bridge li.strong{font-weight:700}.sidebar{display:none}@media (width>=960px){.shell{grid-template-columns:232px minmax(0,1fr);min-height:100dvh;display:grid}.sidebar{border-right:1px solid var(--line);background:var(--surface);flex-direction:column;gap:16px;height:100dvh;padding:20px 16px;display:flex;position:sticky;top:0}.sidebar nav{flex-direction:column;gap:2px;display:flex}.sidebar nav button{text-align:left;color:var(--muted);background:0 0;border:0;border-radius:10px;padding:10px 12px;font-weight:500}.sidebar nav button:hover{color:var(--ink)}.sidebar nav button.on{background:var(--chip);color:var(--ink)}.brand{margin:0 4px;font-size:1.15rem;font-weight:700}.tabbar,.subnav{display:none!important}.page{width:100%;max-width:1120px;padding:28px 32px 48px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.auth{max-width:420px;padding-top:10vh}.auth .brand{margin:0 0 16px;font-size:1.2rem;font-weight:700}.auth h1{color:var(--ink);margin:0;font-size:1.3rem}.auth .card{padding:20px}.qr{background:#fff;border-radius:12px;align-self:center;padding:8px}.small{font-size:.8rem}code{word-break:break-all}.brand .tag{vertical-align:middle}.logout{margin-top:auto}h3{color:var(--muted);margin:14px 0 6px;font-size:.85rem;font-weight:600}.status-banner{text-align:left;border:1px solid var(--line);border-radius:var(--radius);background:var(--ok-bg);width:100%;color:var(--pos);align-items:center;gap:8px;margin:0 0 12px;padding:11px 14px;font-weight:600;display:flex}.status-banner.warn{background:var(--warn-bg);color:var(--warn)}.status-banner.bad{background:var(--bad-bg);color:var(--neg)}.status-banner .go{margin-left:auto;font-size:1.2rem}button.status-banner{cursor:pointer;font:inherit;font-weight:600}.alerts{margin:0;padding:0;list-style:none}.alerts li{border-top:1px solid var(--line);grid-template-columns:28px 1fr;gap:4px 10px;padding:12px 0;display:grid}.alerts li:first-child{border-top:0}.alerts .sev{border-radius:50%;place-items:center;width:24px;height:24px;font-size:.8rem;font-weight:700;display:grid}.alerts .error .sev{background:var(--bad-bg);color:var(--neg)}.alerts .warning .sev{background:var(--warn-bg);color:var(--warn)}.alerts .info .sev{background:var(--chip);color:var(--muted)}.alerts .txt{flex-direction:column;gap:2px;display:flex}.alerts .txt small{color:var(--muted)}.alerts .acts{flex-wrap:wrap;grid-column:2;align-items:center;gap:10px;display:flex}.alerts .acts .secondary{min-height:36px;padding:7px 12px}.checklist{flex-direction:column;gap:6px;margin:0 0 6px;padding:0;font-size:.9rem;list-style:none;display:flex}.checklist .yes span{color:var(--pos)}.checklist .no span{color:var(--neg)}.checklist .maybe span{color:var(--warn)}.checklist span{width:1.2em;font-weight:700;display:inline-block}.verify li{flex-wrap:wrap}.verify .vals{align-items:center;gap:10px;margin-left:auto;display:flex}.verify .secondary{min-height:36px;padding:6px 12px}.dot{width:1.2em;font-weight:700;display:inline-block}.dot.ok{color:var(--pos)}.dot.diff{color:var(--neg)}.dot.todo{color:var(--muted)}.card h2 .small{font-weight:400}.tag.warn{background:var(--warn-bg);color:var(--warn)}.tag.bad{background:var(--bad-bg);color:var(--neg)}.count{border-radius:999px;margin-left:8px;padding:1px 7px;font-size:.72rem;font-weight:700}.count.warn{background:var(--warn-bg);color:var(--warn)}.count.bad{background:var(--bad-bg);color:var(--neg)}.acc-row{all:unset;box-sizing:border-box;cursor:pointer;justify-content:space-between;align-items:center;gap:12px;width:100%;display:flex}.acc-row:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}.big-sm{margin:0;font-size:1.6rem;font-weight:700}.form.flat{padding:0}.export{margin:-4px 16px 6px auto;display:block}.rank li.over .rank-track span{background:var(--warn)}.over-note{color:var(--warn);grid-column:1/-1;font-size:.8rem;font-weight:600}.budget-edit li{gap:12px}.budget-edit label{color:var(--ink);flex:1;font-size:.95rem}.budget-edit input{text-align:right;width:120px}.sidebar nav button{align-items:center;display:flex}.status-line{font:inherit;color:var(--pos);cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;margin:0 0 10px;padding:6px 0;font-weight:600;display:inline-flex}.status-line.warn{color:var(--warn)}.status-line.bad{color:var(--neg)}.home{gap:12px;display:grid}@media (width>=760px){.home{grid-template-columns:repeat(3,minmax(0,1fr))}}.home-card{text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);font:inherit;color:inherit;cursor:pointer;flex-direction:column;gap:8px;min-width:0;padding:16px;display:flex}.home-card:hover{border-color:var(--muted)}.home-head,.home-row,.home-line{justify-content:space-between;align-items:center;gap:12px;display:flex}.home-big{letter-spacing:-.02em;font-size:1.9rem;font-weight:700}.home-line.strong{border-top:1px solid var(--line);padding-top:8px;font-weight:600}.home-row{flex-wrap:wrap}.spark{flex:80px;max-width:140px;height:32px}.cell-link{all:unset;cursor:pointer;border-bottom:1px dotted var(--axis)}.cell-link:hover{border-bottom-color:currentColor}.cell-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}.segmented.two{grid-template-columns:1fr 1fr}.block{display:block}.form label.check{color:var(--ink);flex-direction:row;align-items:center;gap:10px}.form label.check input{flex:none;width:20px;min-height:20px}.form label.inline{color:var(--ink);flex-direction:row;justify-content:space-between;align-items:center;gap:12px}.form label.inline input{text-align:right;width:9ch}.goal{flex-direction:column;gap:6px;display:flex}
