:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#f4f6f7;--surface:#fff;--surface-2:#eef1f3;--text:#17201d;--muted:#64706b;--border:#dde3e6;--accent:#0f7b63;--accent-strong:#0b5f4c;--accent-soft:#dcf1ea;--accent-text:#fff;--band:#e6f4ef;--band-edge:#b9e2d4;--positive:#157a46;--negative:#c4302b;--warning:#a35f00;--focus:#2b7fff;--radius:12px;--radius-sm:8px;--shadow:0 1px 2px #1018160f, 0 2px 8px #1018160f;--shadow-lg:0 12px 40px #10181638;--topbar:56px;--bottom-nav:0px;--safe-bottom:env(safe-area-inset-bottom,0px);color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:15px;line-height:1.45}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#0e1312;--surface:#161d1b;--surface-2:#1e2725;--text:#e5ece9;--muted:#94a39e;--border:#2a3532;--accent:#3cc49b;--accent-strong:#5fd6b0;--accent-soft:#3cc49b29;--accent-text:#06231a;--band:#3cc49b1a;--band-edge:#3cc49b59;--positive:#53cf8c;--negative:#ff7369;--warning:#f0b44c;--shadow:0 1px 2px #0006;--shadow-lg:0 12px 40px #0009}}*,:before,:after{box-sizing:border-box}html,body{min-height:100%;margin:0}body{overscroll-behavior-y:none}a{color:var(--accent)}h1,h2,h3{margin:0;line-height:1.25}h1{font-size:1.5rem}h2{font-size:1.05rem}h3{margin:1rem 0 .4rem;font-size:.95rem}small,.small{font-size:.82rem}code,.mono{word-break:break-all;font-family:ui-monospace,Cascadia Code,Menlo,Consolas,monospace}kbd{border:1px solid var(--border);background:var(--surface-2);color:var(--muted);white-space:nowrap;border-bottom-width:2px;border-radius:5px;padding:.05rem .4rem;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.78rem}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.muted{color:var(--muted)}.strong,.bold{font-weight:650}.block{display:block}.nowrap{white-space:nowrap}.positive{color:var(--positive)}.negative{color:var(--negative)}.amount{font-variant-numeric:tabular-nums;white-space:nowrap}.amount.zero,.amount.muted{color:var(--muted)}button{font:inherit;color:inherit}.button{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);min-height:38px;color:var(--text);cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;gap:.4rem;padding:.45rem .95rem;font-weight:550;transition:background .12s,border-color .12s;display:inline-flex}.button:hover:not(:disabled){background:var(--surface-2)}.button:disabled{opacity:.55;cursor:default}.button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.button.primary:hover:not(:disabled){background:var(--accent-strong)}.button.danger{background:var(--negative);border-color:var(--negative);color:#fff}.button.danger-text{color:var(--negative)}.button.small{min-height:32px;padding:.25rem .7rem;font-size:.88rem}.button.large{min-height:48px;padding:.7rem 1.6rem;font-size:1.05rem}.icon-button{border-radius:var(--radius-sm);min-width:36px;height:36px;color:var(--muted);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0 .4rem;font-size:1.25rem;display:inline-flex}.icon-button:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.icon-button:disabled{opacity:.35;cursor:default}.shell{flex-direction:column;min-height:100dvh;display:flex}.topbar{z-index:20;height:var(--topbar);padding:0 1rem;padding-top:env(safe-area-inset-top,0px);height:calc(var(--topbar) + env(safe-area-inset-top,0px));background:color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);align-items:center;gap:1rem;display:flex;position:sticky;top:0}.brand{color:var(--text);align-items:center;gap:.5rem;font-size:1.1rem;font-weight:700;text-decoration:none;display:flex}.tabs{scrollbar-width:none;gap:.15rem;display:flex;overflow-x:auto}.tab{border-radius:var(--radius-sm);color:var(--muted);white-space:nowrap;padding:.45rem .8rem;font-weight:550;text-decoration:none}.tab:hover{background:var(--surface-2);color:var(--text)}.tab.active{background:var(--accent-soft);color:var(--accent-strong)}.topbar-actions{align-items:center;gap:.5rem;margin-left:auto;display:flex}.live-badge{color:var(--positive);font-size:.82rem;font-weight:600}.avatar{background:var(--accent);width:34px;height:34px;color:var(--accent-text);cursor:pointer;border:none;border-radius:50%;font-weight:700}.main{width:100%;max-width:1440px;padding:1.25rem 1.25rem calc(1.5rem + var(--bottom-nav) + var(--safe-bottom));flex:1;margin:0 auto}.bottom-nav{display:none}.update-banner{background:var(--accent-soft);border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:center;align-items:center;gap:.75rem;padding:.5rem 1rem;display:flex}.page{flex-direction:column;gap:1rem;display:flex}.page.narrow{width:100%;max-width:820px;margin:0 auto}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;display:flex}.page-header h1{flex-wrap:wrap;align-items:baseline;gap:.5rem;display:flex}.page-header h1 small{font-size:.9rem;font-weight:400}.back-link{color:var(--muted);font-size:1.6rem;line-height:1;text-decoration:none}.toolbar{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.card-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:.75rem;padding:.8rem 1rem;display:flex}.card-header h2 small{color:var(--muted);font-weight:400}.card-note{margin:0;padding:.6rem 1rem .8rem}.empty,.loading{color:var(--muted);text-align:center;padding:1.5rem 1rem}.totals{color:var(--muted);border-top:1px solid var(--border);flex-wrap:wrap;justify-content:flex-end;gap:1.5rem;padding:.75rem 1rem;display:flex}.card.totals{border-top:1px solid var(--border)}.totals>span{align-items:baseline;gap:.4rem;display:inline-flex}.totals .amount,.totals strong{color:var(--text)}.totals .amount.negative{color:var(--negative)}.totals .amount.positive{color:var(--positive)}.badge{color:var(--accent)}.facts{grid-template-columns:max-content 1fr;gap:.4rem 1rem;margin:0;padding:1rem;display:grid}.facts dt{color:var(--muted)}.facts dd{min-width:0;margin:0}.table{border-collapse:collapse;width:100%}.table th,.table td{text-align:left;border-bottom:1px solid var(--border);vertical-align:middle;padding:.6rem 1rem}.table thead th{color:var(--muted);text-transform:uppercase;letter-spacing:.03em;background:var(--surface-2);font-size:.8rem;font-weight:600}.table tbody tr:last-child td{border-bottom:none}.table tfoot th,.table tfoot td{border-top:1px solid var(--border);border-bottom:none;font-weight:650}.table.compact th,.table.compact td{padding:.4rem 1rem}.table .num{text-align:right;font-variant-numeric:tabular-nums}.table .actions{text-align:right;width:1%;padding:.2rem .5rem}.table tr.child td:first-child{color:var(--muted);padding-left:1.6rem}.table tr.closed td{opacity:.55}.table.rows-clickable tbody tr{cursor:pointer}.table.rows-clickable tbody tr:hover,.table tbody tr.selected{background:var(--surface-2)}.table tbody tr:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.table .group-row th{background:var(--surface);cursor:pointer;padding-top:.9rem;font-size:.95rem}.progress{background:var(--surface-2);border:1px solid var(--border);vertical-align:middle;border-radius:99px;width:90px;height:8px;display:inline-block;overflow:hidden}.progress>span{background:var(--accent);height:100%;display:block}.progress.over>span{background:var(--negative)}.progress-cell{align-items:center;gap:.5rem;display:inline-flex}.show-sm{display:none}.menu{z-index:60;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);min-width:190px;box-shadow:var(--shadow-lg);padding:.3rem}.menu-item{cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:6px;outline:none;justify-content:space-between;align-items:center;gap:1rem;padding:.55rem .7rem;display:flex}.menu-item[data-highlighted]{background:var(--surface-2)}.menu-item[data-disabled]{opacity:.45;cursor:default}.menu-item.danger{color:var(--negative)}.menu-label{color:var(--muted);padding:.45rem .7rem;font-size:.85rem}.menu-separator{background:var(--border);height:1px;margin:.3rem}.row-menu{font-size:1.1rem}.overlay{z-index:40;background:#080e0c73;animation:.15s ease-out fade;position:fixed;inset:0}.dialog{z-index:50;background:var(--surface);border-radius:var(--radius);width:min(520px,100vw - 2rem);max-height:min(90dvh,900px);box-shadow:var(--shadow-lg);flex-direction:column;animation:.15s ease-out pop;display:flex;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.dialog-wide{width:min(780px,100vw - 2rem)}.dialog-header{justify-content:space-between;align-items:center;gap:1rem;padding:.9rem 1rem .5rem 1.25rem;display:flex}.dialog-title{font-size:1.15rem}.dialog-description{color:var(--muted);margin:0 1.25rem .5rem}@keyframes fade{0%{opacity:0}}@keyframes pop{0%{opacity:0;transform:translate(-50%,-48%)scale(.98)}}@keyframes rise{0%{opacity:.4;transform:translateY(30%)}}.form{flex-direction:column;min-height:0;display:flex}.form-body{flex-direction:column;gap:.85rem;padding:.5rem 1.25rem 1rem;display:flex;overflow-y:auto}.form-row{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.85rem;display:grid}.field{flex-direction:column;gap:.3rem;min-width:0;display:flex}.field>label,.field label{color:var(--muted);font-size:.85rem;font-weight:600}.field label>textarea{margin-top:.3rem}.hint{color:var(--muted);min-height:1em;font-size:.8rem}input,select,textarea{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);width:100%;min-height:40px;color:var(--text);font:inherit;padding:.5rem .65rem}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:none}input[aria-invalid=true]{border-color:var(--negative)}input[type=checkbox]{width:auto;min-height:0;accent-color:var(--accent)}.amount-field input,.amount-input{text-align:right;font-variant-numeric:tabular-nums}.date-input{gap:.25rem;display:flex;position:relative}.date-input .icon-button{height:40px}.date-picker{opacity:0;pointer-events:none;border:0;width:1px;height:1px;min-height:0;padding:0;position:absolute;bottom:0;right:0}.form-help{color:var(--muted);background:var(--surface-2);border-radius:var(--radius-sm);padding:.6rem .75rem;font-size:.85rem}.form-error{border-radius:var(--radius-sm);background:color-mix(in srgb, var(--negative) 12%, transparent);color:var(--negative);margin:0 1.25rem .5rem;padding:.6rem .75rem;font-weight:550}.form-actions{border-top:1px solid var(--border);justify-content:flex-end;align-items:center;gap:.5rem;padding:.75rem 1.25rem 1rem;display:flex}.form-actions.wrap{flex-wrap:wrap;justify-content:flex-start}.form-actions-secondary{margin-right:auto}.settings-form .form-actions{border-top:none}.segmented{border-radius:var(--radius-sm);background:var(--surface-2);grid-auto-columns:1fr;grid-auto-flow:column;padding:3px;display:grid}.segmented button{min-height:34px;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:6px;font-weight:600}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.switch{cursor:pointer;align-items:center;gap:.35rem;font-weight:550;display:inline-flex}.split-editor{flex-direction:column;gap:.5rem;display:flex}.split-line{grid-template-columns:minmax(0,2fr) minmax(90px,1fr) minmax(0,1.4fr) 36px;align-items:center;gap:.4rem;display:grid}.split-shares{color:var(--muted);grid-column:1/-1;padding-left:.3rem;font-size:.82rem}.split-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;display:flex}.split-totals{font-variant-numeric:tabular-nums;font-size:.85rem;font-weight:600}.pick-list{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.pick-list button,.pick-list a{border:none;border-bottom:1px solid var(--border);width:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;justify-content:space-between;align-items:center;gap:.75rem;padding:.75rem .5rem;text-decoration:none;display:flex}.pick-list button:hover,.pick-list a:hover{background:var(--surface-2)}.more-list{padding:0 1rem 1rem}.more-list a,.more-list button{justify-content:flex-start;font-weight:550}.search-form{gap:.5rem;padding:.25rem 1.25rem .5rem;display:flex}.palette{padding:0 1rem 1rem}.palette ul{max-height:50dvh;margin:.5rem 0 0;padding:0;list-style:none;overflow-y:auto}.palette li button{text-align:left;cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:space-between;width:100%;padding:.6rem .75rem;display:flex}.palette li[aria-selected=true] button{background:var(--accent-soft)}.help .keys{gap:.35rem;margin:0;display:grid}.help .keys>div{grid-template-columns:9rem 1fr;gap:.75rem;display:grid}.help .keys dd{margin:0}.toasts{z-index:70;right:1rem;bottom:calc(1rem + var(--bottom-nav) + var(--safe-bottom));flex-direction:column;gap:.5rem;max-width:min(420px,100vw - 2rem);display:flex;position:fixed}.toast{border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--accent);box-shadow:var(--shadow-lg);white-space:pre-line;cursor:pointer;flex-direction:column;gap:.15rem;padding:.7rem .9rem;animation:.18s ease-out rise;display:flex}.toast-error{border-left-color:var(--negative)}.toast-warning{border-left-color:var(--warning)}.toast-success{border-left-color:var(--positive)}.splash,.welcome{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:1rem;min-height:100dvh;padding:2rem;display:flex}.welcome h1{font-size:2.2rem}.welcome p{max-width:28rem;color:var(--muted);font-size:1.1rem}.welcome .form-error{margin:0}.welcome-actions{flex-wrap:wrap;justify-content:center;gap:.75rem;display:flex}.overview{grid-template-columns:minmax(0,1.4fr) minmax(330px,1fr);align-items:start;gap:1.25rem;display:grid}.overview-calendar{top:calc(var(--topbar) + 1.25rem);flex-direction:column;gap:.75rem;display:flex;position:sticky}.overview-details{flex-direction:column;gap:1rem;min-width:0;display:flex}.period-title{flex-wrap:wrap;align-items:center;gap:.4rem;min-height:36px;display:flex}.period-totals{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);color:var(--muted);flex-wrap:wrap;justify-content:space-around;gap:1rem;padding:.6rem 1rem;display:flex}.period-totals span{gap:.4rem;display:inline-flex}.period-picker{align-items:center;gap:.4rem;max-width:520px;display:flex}.calendar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:.6rem}.calendar-nav{align-items:center;gap:.3rem;padding:0 .2rem .5rem;display:flex}.calendar-nav h2{text-align:center;min-width:10rem;font-size:1.1rem}.calendar-nav .button{margin-left:auto}.calendar-grid{touch-action:pan-y;flex-direction:column;gap:4px;display:flex}.calendar-row{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;display:grid}.weekday{text-align:center;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:.75rem;font-weight:600}.day-cell{min-width:0}.day{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;text-align:left;flex-direction:column;justify-content:space-between;align-items:stretch;width:100%;height:clamp(54px,9.5vh,96px);padding:.3rem .4rem;display:flex;position:relative;overflow:hidden}.day:hover{border-color:var(--accent)}.day.outside{opacity:.45}.day.in-period{background:var(--band)}.day.period-start{border-left:3px solid var(--band-edge)}.day.period-end{border-right:3px solid var(--band-edge)}.day.selected{border:2px solid var(--accent);background:var(--accent-soft);opacity:1}.day:focus-visible{outline:2px solid var(--focus);outline-offset:1px}.day-number{color:var(--muted);font-size:.85rem;font-weight:600}.day.today .day-number{background:var(--accent);min-width:1.6rem;height:1.6rem;color:var(--accent-text);border-radius:99px;align-self:flex-start;place-items:center;display:inline-grid}.flow{font-variant-numeric:tabular-nums;white-space:nowrap;align-self:flex-end;font-size:.85rem;font-weight:650}.dot{display:none}.day-panel .card-header h2{font-size:1rem}.transaction-list{margin:0;padding:0;list-style:none}.transaction-list li{border-bottom:1px solid var(--border);align-items:center;display:flex}.transaction-list li:last-child{border-bottom:none}.transaction-list li.selected{background:var(--surface-2)}.transaction-row{text-align:left;cursor:pointer;background:0 0;border:none;flex:1;justify-content:space-between;align-items:center;gap:.75rem;min-width:0;padding:.65rem .25rem .65rem 1rem;display:flex}.transaction-main{flex-direction:column;min-width:0;display:flex}.transaction-title{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.transaction-sub{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;overflow:hidden}.transaction-list .row-menu{margin-right:.4rem}.fab{display:none}@media (max-width:1100px){.hide-md{display:none}.overview{grid-template-columns:minmax(0,1fr) minmax(300px,.85fr)}}@media (max-width:760px){:root{--bottom-nav:62px;font-size:15px}input,select,textarea{min-height:44px;font-size:16px}.tabs,.hide-mobile,.hide-sm{display:none}.show-sm{display:block}.topbar{padding:0 .75rem;padding-top:env(safe-area-inset-top,0px)}.main{padding:.75rem .75rem calc(1.25rem + var(--bottom-nav) + var(--safe-bottom))}.bottom-nav{z-index:30;height:calc(var(--bottom-nav) + var(--safe-bottom));padding-bottom:var(--safe-bottom);background:color-mix(in srgb, var(--surface) 94%, transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--border);grid-template-columns:repeat(5,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.bottom-nav a,.bottom-nav button{color:var(--muted);cursor:pointer;background:0 0;border:none;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:.7rem;font-weight:600;text-decoration:none;display:flex}.bottom-nav a.active,.bottom-nav button.active{color:var(--accent)}.page-header h1{font-size:1.3rem}.table th,.table td{padding:.55rem .6rem}.table .actions{padding:.1rem .2rem}.totals{justify-content:space-between;gap:.75rem}.overview{grid-template-columns:minmax(0,1fr);gap:.75rem}.overview-calendar{position:static}.calendar{padding:.4rem}.calendar-grid,.calendar-row{gap:2px}.day{border-radius:6px;height:52px;padding:.2rem .25rem}.flow{letter-spacing:-.02em;font-size:.68rem}.fab{z-index:25;right:1rem;bottom:calc(var(--bottom-nav) + var(--safe-bottom) + 1rem);background:var(--accent);width:56px;height:56px;color:var(--accent-text);box-shadow:var(--shadow-lg);cursor:pointer;border:none;border-radius:18px;place-items:center;font-size:1.9rem;display:grid;position:fixed}.dialog,.dialog-wide{width:100%;max-height:94dvh;padding-bottom:var(--safe-bottom);border-radius:18px 18px 0 0;animation:.2s ease-out rise;top:auto;bottom:0;left:0;transform:none}.form-actions{background:var(--surface);position:sticky;bottom:0}.form-actions .button{flex:1}.form-actions-secondary{flex:1;margin-right:0}.form-actions-secondary .button{width:100%}.split-line{grid-template-columns:minmax(0,1fr) 110px 36px}.split-line input:not(.amount-input){grid-area:2/1/auto/3}.split-line .icon-button{grid-area:1/3}.split-line{border-bottom:1px dashed var(--border);padding-bottom:.5rem}.help .keys>div{grid-template-columns:7rem 1fr}}@media (max-width:380px){.flow{display:none}.dot{background:var(--accent);border-radius:50%;align-self:center;width:6px;height:6px;display:block}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
