:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#f6f7f9;--surface:#fff;--surface-2:#eef0f4;--text:#1c2230;--muted:#5d6679;--border:#d9dde5;--accent:#1f6f5c;--accent-text:#fff;--positive:#1b7a46;--negative:#b3261e;--warning-bg:#fff4d6;--radius:10px;--font:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}:root:not([data-theme=light]){--bg:#12151c;--surface:#1a1f2a;--surface-2:#232937;--text:#e8ebf2;--muted:#9aa3b5;--border:#2f3748;--accent:#3fb59a;--accent-text:#08201a;--positive:#5fd08f;--negative:#ff8b82;--warning-bg:#4a3a12}}:root[data-theme=dark]{--bg:#12151c;--surface:#1a1f2a;--surface-2:#232937;--text:#e8ebf2;--muted:#9aa3b5;--border:#2f3748;--accent:#3fb59a;--accent-text:#08201a;--positive:#5fd08f;--negative:#ff8b82;--warning-bg:#4a3a12}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);font:16px/1.5 var(--font);margin:0}h1,h2{margin:0;line-height:1.25}h1{font-size:1.6rem}h2{font-size:1.05rem}section>h2,.columns>div>section>h2{margin-bottom:.75rem}a{color:var(--accent)}p{margin:.25rem 0}.muted{color:var(--muted);font-size:.9rem}.positive{color:var(--positive)}.negative{color:var(--negative)}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.topbar{z-index:10;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:.5rem 1.25rem;padding:.6rem 1rem;display:flex;position:sticky;top:0}.brand{color:var(--text);font-size:1.15rem;font-weight:700;text-decoration:none}.topbar nav{flex:1;gap:.25rem;display:flex;overflow-x:auto}.topbar nav a{color:var(--muted);white-space:nowrap;border-radius:999px;padding:.35rem .7rem;text-decoration:none}.topbar nav a[aria-current=page]{background:var(--surface-2);color:var(--text);font-weight:600}.banner{background:var(--surface-2);color:var(--muted);text-align:center;padding:.5rem 1rem;font-size:.85rem}.banner.warning{background:var(--warning-bg);color:var(--text)}main{max-width:1080px;margin:0 auto;padding:1.25rem 1rem 4rem}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem 1.5rem;margin-bottom:1.25rem;display:flex}.columns{gap:1.5rem 2rem;margin-top:1.5rem;display:grid}@media (width>=800px){.columns{grid-template-columns:1.4fr 1fr}}.columns>div>section+section{margin-top:1.5rem}button,.button,select,input,textarea{font:inherit;color:inherit}button,.button{border:1px solid var(--border);background:var(--surface);cursor:pointer;color:var(--text);border-radius:8px;padding:.45rem .9rem;text-decoration:none;display:inline-block}button:hover,.button:hover{background:var(--surface-2)}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:600}button.primary:hover{filter:brightness(1.08)}button.danger{color:var(--negative)}button.link{color:var(--accent);background:0 0;border:0;padding:.25rem .4rem;text-decoration:underline}button.icon-button{background:0 0;border:0;padding:.1rem .5rem;font-size:1.5rem;line-height:1}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input:not([type=checkbox]):not([type=radio]),select,textarea{border:1px solid var(--border);background:var(--surface);border-radius:8px;width:100%;padding:.45rem .6rem}input[aria-invalid=true]{border-color:var(--negative)}input[type=checkbox]{width:1.15rem;height:1.15rem;accent-color:var(--accent)}.field{flex-direction:column;gap:.25rem;min-width:0;display:flex}.field>span:first-child{color:var(--muted);font-size:.9rem}.field.grow{flex:14rem}.error{color:var(--negative);font-size:.85rem}.form{flex-direction:column;gap:.9rem;display:flex}.row{grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.9rem;display:grid}.check{align-items:center;gap:.5rem;display:flex}.actions{flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.5rem;display:flex}.actions.center{justify-content:center}.spacer{flex:1}.stack{flex-direction:column;align-items:flex-start;gap:.6rem;display:flex}.segmented{border:0;flex-wrap:wrap;gap:.4rem;margin:0;padding:0;display:flex}.segmented legend{color:var(--muted);margin-bottom:.25rem;padding:0;font-size:.9rem}.segmented label{border:1px solid var(--border);cursor:pointer;border-radius:999px;padding:.4rem .8rem}.segmented label.selected{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.segmented input{opacity:0;pointer-events:none;position:absolute}.segmented label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}.period-nav{align-items:center;gap:.5rem;display:flex}.period-label{flex-direction:column;align-items:center;min-width:11rem;line-height:1.3;display:flex}.cards{grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1rem;margin:0;padding:0;list-style:none;display:grid}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem 1.1rem}.card.highlight{border-color:var(--accent)}.card h2{color:var(--muted);font-size:.9rem;font-weight:600}.big{font-variant-numeric:tabular-nums;margin:.2rem 0;font-size:1.7rem;font-weight:700}progress,meter{width:100%;height:.7rem}.meters{flex-direction:column;gap:.8rem;margin:0;padding:0;list-style:none;display:flex}.meter-head{justify-content:space-between;align-items:baseline;gap:1rem;display:flex}.list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin:0;padding:0;list-style:none}.row-item{border-top:1px solid var(--border);grid-template-columns:auto 1fr auto;grid-template-areas:"check main amount""check main date";align-items:center;gap:0 .8rem;padding:.6rem .9rem;display:grid}.row-item:first-child{border-top:0}.row-item input[type=checkbox]{grid-area:check}.row-main{text-align:left;background:0 0;border:0;flex-direction:column;grid-area:main;align-items:flex-start;min-width:0;padding:0;display:flex}.row-main:hover{background:0 0}.row-title{flex-wrap:wrap;align-items:center;gap:.2rem .5rem;font-weight:600;display:flex}.row-date{color:var(--muted);grid-area:date;justify-self:end;font-size:.85rem}.row-date.overdue{color:var(--negative);font-weight:600}.row-amount{font-variant-numeric:tabular-nums;grid-area:amount;justify-self:end;font-weight:600}.row-item.is-paid .row-title,.row-item.is-paid .row-amount{color:var(--muted);text-decoration:line-through}.badge{background:var(--surface-2);color:var(--muted);border-radius:999px;padding:0 .5rem;font-size:.75rem;font-weight:500}.badge.kind-debt{color:var(--negative)}.badge.kind-loan{color:var(--positive)}.filters{flex-wrap:wrap;align-items:center;gap:.6rem;margin-bottom:1rem;display:flex}.list-head{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem;display:flex}.empty-state{text-align:center;max-width:34rem;margin:3rem auto}.empty-state p{color:var(--muted);margin:.75rem 0 1.25rem}.notes{resize:vertical;min-height:55vh}.name-list{flex-direction:column;gap:.5rem;margin:0 0 .75rem;padding:0;list-style:none;display:flex}.name-list li,.inline-form{gap:.5rem;display:flex}.modal{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:min(34rem,100vw - 1.5rem);max-height:calc(100vh - 1.5rem);color:var(--text);padding:0}.modal::backdrop{background:#00000080}.modal-body{padding:1rem 1.25rem 1.25rem}.modal-head{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}@media (width<=639px){.topbar .brand{flex:1}.topbar nav{flex-basis:100%;order:3}}@media (width>=640px){.row-item{grid-template-columns:auto 1fr 7rem 8rem;grid-template-areas:"check main date amount"}}
