:root{--bg:#f4f5f7;--surface:#fff;--surface-2:#f0f2f5;--text:#16181d;--muted:#646b78;--line:#e1e4ea;--accent:#2456d6;--accent-text:#fff;--positive:#127a43;--negative:#c42b2b;--warning-bg:#fff4dc;--warning-line:#f0c36d;--radius:14px;--nav-height:64px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.45}*{box-sizing:border-box}body{min-height:100dvh;margin:0}h1,h2,h3{margin:0;line-height:1.2}h1{font-size:1.6rem}h2{margin-bottom:.75rem;font-size:1.1rem}h3{margin:1rem 0 .5rem;font-size:.95rem}p{margin:.5rem 0}small{color:var(--muted);font-size:.82rem;display:block}button,input,select{font:inherit;color:inherit}.muted{color:var(--muted)}.positive{color:var(--positive)}.negative{color:var(--negative)}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.kicker{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:0 0 .2rem;font-size:.82rem}.shell{min-height:100dvh}.nav{z-index:10;height:calc(var(--nav-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--line);display:flex;position:fixed;inset:auto 0 0}.nav .brand{display:none}.nav a{color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.72rem;text-decoration:none;display:flex}.nav a span{font-size:1.15rem;line-height:1}.nav a.active{color:var(--accent);font-weight:600}.main{padding:1rem 1rem calc(var(--nav-height) + env(safe-area-inset-bottom) + 1.5rem);max-width:1180px;margin:0 auto}@media (width>=900px){.nav{border-top:0;border-right:1px solid var(--line);flex-direction:column;gap:.25rem;width:220px;height:auto;padding:1.25rem .75rem;inset:0 auto 0 0}.nav .brand{padding:0 .75rem 1rem;font-size:1.1rem;display:block}.nav a{border-radius:10px;flex-direction:row;flex:none;justify-content:flex-start;gap:.75rem;padding:.6rem .75rem;font-size:.95rem}.nav a.active{background:var(--surface-2)}.main{margin-left:220px;padding:2rem 2.5rem}}.screen{gap:1rem;display:grid}.screen-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:1rem;display:flex}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-width:0;padding:1rem}.card-header{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.card-header h2{margin:0}details.card>summary{cursor:pointer;font-weight:600}.today-grid,.settings-grid,.review-grid,.incomes{gap:1rem;display:grid}@media (width>=900px){.today-grid,.settings-grid,.review-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.today-grid .hero{grid-row:span 2}.incomes{grid-template-columns:repeat(auto-fill,minmax(420px,1fr));align-items:start}}.button{border:1px solid var(--line);background:var(--surface);cursor:pointer;white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;min-height:44px;padding:.5rem 1rem;font-weight:500;display:inline-flex}.button:hover{background:var(--surface-2)}.button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.button.primary:hover{filter:brightness(1.08)}.button.danger{color:var(--negative);border-color:color-mix(in srgb, var(--negative) 40%, var(--line))}.button:disabled{opacity:.55;cursor:default}.icon-button{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:10px;min-width:44px;min-height:44px;font-size:1.1rem}.link{color:var(--accent);cursor:pointer;background:0 0;border:0;padding:0;font-weight:500}.actions{flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.75rem;display:flex}.month-nav{gap:.5rem;display:flex}.field{gap:.3rem;margin-bottom:.85rem;display:grid}.field>span{color:var(--muted);font-size:.88rem}.field input,.field select{border:1px solid var(--line);background:var(--surface);border-radius:10px;width:100%;min-height:46px;padding:.55rem .75rem;font-size:1rem}.field input:focus,.field select:focus{outline:2px solid color-mix(in srgb, var(--accent) 35%, transparent);border-color:var(--accent)}.field input[aria-invalid=true]{border-color:var(--negative)}.field-row{grid-template-columns:1fr 1fr;gap:.75rem;display:grid}.hint{color:var(--muted);margin:0;font-size:.85rem}.hint.error{color:var(--negative)}.check{cursor:pointer;align-items:flex-start;gap:.6rem;margin-bottom:.85rem;display:flex}.check input{width:22px;height:22px;accent-color:var(--accent);flex:none;margin:0}.sheet{background:var(--surface);width:100%;max-width:100%;max-height:92dvh;color:var(--text);border:0;border-radius:18px 18px 0 0;margin:auto 0 0;padding:0}.sheet::backdrop{background:#0f172a73}.sheet form{flex-direction:column;max-height:92dvh;display:flex}.sheet header{justify-content:space-between;align-items:center;padding:1rem 1rem .5rem;display:flex}.sheet h2{margin:0}.sheet-body{padding:.5rem 1rem;overflow-y:auto}.sheet footer{padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom));border-top:1px solid var(--line);justify-content:space-between;gap:.5rem;display:flex}.sheet footer .primary{margin-left:auto}@media (width>=700px){.sheet{border-radius:18px;width:520px;margin:auto}}.banner{z-index:20;justify-content:space-between;align-items:center;gap:1rem;padding:.6rem 1rem;display:flex;position:sticky;top:0}.banner.error{color:var(--negative);background:#fde8e8;border-bottom:1px solid #f3b6b6}.notice{background:var(--surface-2);border-radius:10px;margin:0;padding:.6rem .8rem;font-size:.92rem}.notice.warning{background:var(--warning-bg);border:1px solid var(--warning-line)}.splash{text-align:center;min-height:100dvh;color:var(--muted);place-content:center;gap:1rem;padding:2rem;display:grid}.empty{color:var(--muted);padding:.75rem 0}.empty strong{color:var(--text);display:block}.hero-value{letter-spacing:-.02em;margin:.25rem 0;font-size:2.6rem;font-weight:700}.hero-value.muted{font-size:1.6rem}.hero-margin{margin:0;font-size:1.15rem;font-weight:600}.balance-form{border-top:1px solid var(--line);gap:.25rem;margin-top:1rem;padding-top:1rem;display:grid}.hero .notice{margin-top:.75rem}.breakdown{gap:.4rem;margin:0;display:grid}.breakdown>div{justify-content:space-between;gap:1rem;display:flex}.breakdown dt{color:var(--muted)}.breakdown dd{margin:0}.breakdown .total{border-top:1px solid var(--line);padding-top:.4rem;font-weight:600}.breakdown .total dt{color:var(--text)}.breakdown .overdue dt{color:var(--negative)}.breakdown dt small{color:var(--negative);display:inline}.chart{width:100%;height:120px;margin:.5rem 0;display:block}.chart .axis{stroke:var(--line);stroke-width:1px;vector-effect:non-scaling-stroke}.chart .bar.positive{fill:color-mix(in srgb, var(--positive) 75%, white)}.chart .bar.negative{fill:color-mix(in srgb, var(--negative) 75%, white)}.rows{margin:0;padding:0;list-style:none}.rows>li{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:.75rem;padding:.6rem 0;display:flex}.rows>li:first-child{border-top:0}.rows>li>span:first-child{min-width:0}.rows>li.inactive{opacity:.55}.row-button,.event-row{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;justify-content:space-between;align-items:center;gap:.75rem;min-height:44px;padding:0;display:flex}.event-figures{text-align:right}.tag{vertical-align:middle;background:var(--surface-2);color:var(--muted);border-radius:999px;margin:0 .4rem;padding:.05rem .45rem;font-size:.72rem;font-weight:600;display:inline-block}.tag:first-child{margin-left:0}.tag.life{color:var(--positive);background:#e3f4ea}.tag.savings{color:var(--accent);background:#e6eefc}.tag.event{color:#7a3bb8;background:#f3e8fd}.tag.debt{color:var(--negative);background:#fde8e8}.tag.personal{color:#9a5a00;background:#fff1db}.summary{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem;display:grid}.summary>div:not(.actions){gap:.1rem;display:grid}.summary>div>span:first-child{color:var(--muted);font-size:.85rem}.summary .money{font-size:1.2rem;font-weight:600}.summary .actions{grid-column:1/-1;margin-top:0}.income>header{justify-content:space-between;gap:.75rem;display:flex}.income h2{margin-bottom:.1rem}.income h2 .tag{margin-left:.4rem}.income-amount{text-align:right;font-size:1.1rem;font-weight:600}.income>footer{border-top:1px solid var(--line);padding-top:.5rem}.income>footer .actions{margin-top:.5rem}.allocations{margin:.75rem 0;padding:0;list-style:none}.allocations li{border-top:1px solid var(--line);align-items:center;gap:.6rem;display:flex}.allocations li.settled .allocation-main{color:var(--muted)}.allocations input[type=checkbox]{width:22px;height:22px;accent-color:var(--positive);flex:none;margin:0}.paid-mark{text-align:center;width:22px;color:var(--muted);flex:none}.allocation-main{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;justify-content:space-between;align-items:center;gap:.75rem;min-width:0;min-height:48px;padding:.35rem 0;display:flex}.fix{border:1px dashed var(--line);color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border-radius:999px;flex:none;padding:.2rem .55rem;font-size:.78rem}.fix.done{border-style:solid;border-color:var(--positive);color:var(--positive);background:#e3f4ea}.fix:disabled{opacity:.45;cursor:not-allowed}.income header .fix{margin-top:.35rem}.allocations li.needs{background:var(--warning-bg)}.weekdays{border:0;flex-wrap:wrap;gap:.25rem .9rem;margin:0;padding:0;display:flex}.weekdays legend{color:var(--muted);margin-bottom:.25rem;font-size:.9rem}.debt+.debt{border-top:1px solid var(--line);margin-top:.75rem;padding-top:.75rem}.items{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%}.items th{text-align:left;color:var(--muted);padding:.4rem .3rem;font-size:.85rem;font-weight:500}.items td{border-top:1px solid var(--line);vertical-align:top;padding:.55rem .3rem}.items th:not(:first-child),.items td:not(:first-child){text-align:right;white-space:nowrap}.items tbody tr{cursor:pointer}.items tbody tr:hover{background:var(--surface-2)}.items tfoot td{font-weight:600}.login{place-items:center;min-height:100dvh;padding:1rem;display:grid}.login .card{gap:.25rem;width:min(380px,100%);display:grid}.login h1{margin-bottom:0}.link .money:not(.positive):not(.negative){color:var(--text)}
