:root{--bg:#f6f7f6;--surface:#fff;--text:#17201d;--muted:#66736e;--line:#e3e7e5;--accent:#0f766e;--accent-soft:#e2f3f0;--accent-text:#fff;--pos:#0f7a4a;--pos-soft:#e3f5ea;--neg:#b4402f;--neg-soft:#fbe9e5;--radius:14px;--shadow:0 1px 2px #0000000a, 0 2px 8px #0000000a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#101413;--surface:#181e1c;--text:#e8eeeb;--muted:#94a19c;--line:#29312e;--accent:#2bb3a3;--accent-soft:#163330;--accent-text:#06201d;--pos:#4fd18b;--pos-soft:#14301f;--neg:#f08a76;--neg-soft:#3a1e19;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}h1{letter-spacing:-.01em;margin:.2em 0 .4em;font-size:1.6rem}h2{margin:0 0 .4em;font-size:1.15rem}a{color:var(--accent);text-decoration:none}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.page{max-width:640px;padding:max(12px, env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom));margin:0 auto}.page.narrow{max-width:460px}.center{place-items:center;min-height:60vh;display:grid}.center-text{text-align:center;padding:24px 0}.muted{color:var(--muted)}.small{font-size:.85rem}.error{color:var(--neg);margin:0}.note{background:var(--accent-soft);border-radius:10px;margin:0;padding:10px 12px;font-size:.92rem}.pos{color:var(--pos)}.neg{color:var(--neg)}.stack{flex-direction:column;gap:14px;display:flex}.topbar{justify-content:space-between;align-items:center;min-height:48px;display:flex}.topbar h1{margin:0;font-size:1.35rem}.back{padding:8px 0;font-weight:500}.avatar{background:var(--accent-soft);width:36px;height:36px;color:var(--accent);border-radius:50%;place-items:center;font-weight:700;display:grid}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}.card p{margin:0 0 12px}.card.stack p{margin:0}label,legend{color:var(--muted);flex-direction:column;gap:6px;font-size:.88rem;font-weight:600;display:flex}fieldset{border:0;flex-direction:column;gap:8px;margin:0;padding:0;display:flex}legend{margin-bottom:8px}input,select{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:10px;width:100%;min-height:46px;padding:12px;font-weight:400}input:focus,select:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:#0000}input.amount{padding:10px 12px;font-size:1.6rem;font-weight:600}.two{grid-template-columns:1fr 1fr;gap:12px;display:grid}button{font:inherit;cursor:pointer;color:inherit}button,.button{background:var(--surface);border:1px solid var(--line);min-height:46px;color:var(--text);border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:0 18px;font-weight:600;display:inline-flex}button:disabled{opacity:.6;cursor:default}.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.button.small{border-radius:10px;min-height:34px;padding:0 12px;font-size:.85rem}button.link{min-height:0;color:var(--accent);background:0 0;border:0;justify-content:flex-start;padding:0;font-weight:500}button.icon{background:0 0;border:0;padding:0 8px;font-size:1.4rem}.danger-btn{border-color:var(--line);color:var(--neg);background:0 0;width:100%}.seg{background:var(--line);border-radius:12px;gap:3px;padding:3px;display:flex}.seg button{min-height:38px;color:var(--muted);background:0 0;border:0;border-radius:9px;flex:1;padding:0 8px;font-size:.9rem}.seg button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border-radius:999px;min-height:38px;padding:0 14px;font-size:.92rem;font-weight:500}.chip.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.choice{grid-template-columns:1fr 1fr;gap:10px;display:grid}.choice button{text-align:left;flex-direction:column;align-items:flex-start;gap:4px;min-height:0;padding:14px;font-weight:400}.choice button.on{border-color:var(--accent);background:var(--accent-soft);outline:1px solid var(--accent)}.list{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin:8px 0;padding:0;list-style:none;overflow:hidden}.list:empty{display:none}.list li+li{border-top:1px solid var(--line)}.row{color:inherit;align-items:center;gap:12px;min-height:64px;padding:14px 16px;display:flex}.row:active{background:var(--bg)}.row-main{flex-direction:column;flex:1;min-width:0;display:flex}.row-main strong{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.date{width:44px;color:var(--muted);text-align:center;flex-shrink:0;font-size:.78rem;line-height:1.2}.bal{text-align:right;white-space:nowrap;flex-direction:column;align-items:flex-end;display:flex}.bal strong{font-variant-numeric:tabular-nums}.totals{margin:4px 0 14px}.totals-row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.totals-row>div{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;padding:12px 14px;display:flex}.totals-row strong{font-variant-numeric:tabular-nums;font-size:1.3rem}.empty{text-align:center;padding:28px 20px}.empty p{max-width:32ch;margin:0 auto 18px}.fab{right:max(20px,50vw - 300px);bottom:calc(24px + env(safe-area-inset-bottom));background:var(--accent);width:58px;height:58px;color:var(--accent-text);border-radius:50%;place-items:center;font-size:2rem;line-height:1;display:grid;position:fixed;box-shadow:0 4px 14px #0003}.ledger-title{margin-bottom:0}.ledger-title+p{margin-top:2px}.hero{margin:16px 0}.headline{border-radius:var(--radius);flex-direction:column;gap:2px;padding:18px 20px;display:flex}.headline span{font-weight:500}.headline strong{letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:2.2rem;line-height:1.15}.headline.pos{background:var(--pos-soft);color:var(--pos)}.headline.neg{background:var(--neg-soft);color:var(--neg)}.headline.even{background:var(--surface);border:1px solid var(--line);color:var(--muted)}.transfers{flex-direction:column;gap:8px;margin:10px 0 0;padding:0;list-style:none;display:flex}.transfers li{background:var(--surface);border:1px solid var(--line);border-radius:12px;align-items:center;gap:10px;padding:8px 8px 8px 14px;display:flex}.transfers li>span:first-child{flex:1;font-size:.92rem}.transfers .amt{font-variant-numeric:tabular-nums;font-weight:600}.invite-card{margin:16px 0}.actions{grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 20px;display:grid}.tabs{border-bottom:1px solid var(--line);gap:20px;margin-bottom:4px;display:flex}.tabs button{min-height:40px;color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;margin-bottom:-1px;padding:0 2px}.tabs button.on{color:var(--text);border-bottom-color:var(--accent)}.activity-row{flex-direction:column;gap:2px;padding:12px 16px;font-size:.93rem;display:flex}.activity-row .link{margin-top:4px}.menu-wrap{position:relative}.menu{z-index:10;background:var(--surface);border:1px solid var(--line);border-radius:12px;flex-direction:column;min-width:180px;display:flex;position:absolute;top:100%;right:0;overflow:hidden;box-shadow:0 8px 24px #00000024}.menu button{background:0 0;border:0;border-radius:0;justify-content:flex-start;font-weight:500}.menu button+button{border-top:1px solid var(--line)}.menu .danger{color:var(--neg)}.exact{flex-direction:column;gap:8px;display:flex}.exact-row{color:var(--text);flex-direction:row;justify-content:space-between;align-items:center;font-weight:500}.exact-row input{text-align:right;width:130px}.auth{padding-top:10vh}.brand{text-align:center;margin-bottom:20px}.brand h1{margin:8px 0 2px}.brand p{margin:0}@media (width<=380px){.choice,.actions{grid-template-columns:1fr}}.lang-footer{justify-content:center;margin-top:20px;display:flex}.lang-switch{width:220px}.field-label{color:var(--muted);font-size:.88rem;font-weight:600}
