.finance-page{min-width:0}.finance-heading{justify-content:space-between;align-items:flex-start;gap:16px;margin:4px 0 10px;display:flex}.finance-heading h1{overflow-wrap:anywhere;margin:0 0 4px;font-size:24px;font-weight:650;line-height:1.4}.finance-heading p{color:var(--muted);margin:0;font-size:13px;line-height:1.6}.finance-nav{border-bottom:1px solid var(--line);gap:4px;margin-bottom:20px;display:flex;overflow-x:auto}.finance-nav a{min-height:44px;color:var(--muted);border-bottom:2px solid #0000;flex-shrink:0;align-items:center;padding:8px 12px;font-size:13px;text-decoration:none;display:flex}.finance-nav a[aria-current]{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}.finance-page>.toolbar{justify-content:flex-start;gap:12px;margin-bottom:12px}.finance-page>.hero{border-bottom:1px solid var(--line);padding:16px 0}.finance-page .section-head{flex-wrap:wrap}.finance-columns{gap:24px;min-width:0;display:grid}.finance-columns>.section,.finance-columns>div{min-width:0}.finance-page .rows{font-size:14px}.finance-page .row-main{gap:12px}.finance-page .row-sub{font-size:12px;line-height:1.6}.finance-page .chart{width:100%}.finance-detail-grid{gap:24px;min-width:0;display:grid}.finance-detail-grid>div{min-width:0}.finance-detail-grid>div>.section:first-child{margin-top:0}.finance-page .back-link{font-size:13px}@media (width>=1000px){.main:has(.finance-page){max-width:1280px;padding-inline:32px}.finance-columns,.finance-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.finance-columns>.section{margin-top:24px}.finance-page .sticky-foot{padding-inline:max(32px,50vw - 712px);left:208px}}@media (width<=699px){.finance-heading h1{font-size:22px}.finance-heading{gap:8px}.finance-nav{gap:0;margin-bottom:16px}.finance-nav a{padding-inline:10px}.finance-columns,.finance-detail-grid{gap:0}.finance-page .row-link,.finance-page .row-static{min-height:52px;padding-block:8px}.finance-page .valuate-row .row-main{gap:8px}}.finance-heading h1:focus{outline:none}.finance-primary-action{margin-left:auto}.desktop-record{display:none}@media (width>=1000px){.desktop-record{display:inline-flex}.main:has(.finance-txns)~.fab{display:none}.finance-page .valuate-row{gap:4px;padding-block:10px}.finance-page .valuate-row .row-main{grid-template-columns:minmax(0,1fr) 272px;align-items:center;display:grid}.finance-page .valuate-row .row-main>label{grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:16px;display:grid}.finance-page .valuate-input{grid-template-columns:180px 80px;align-items:center;gap:12px;width:auto;max-width:none;display:grid}.finance-page .valuate-row .row-sub{margin:0}}.household h1{overflow-wrap:anywhere;margin:4px 0 0;font-size:26px;line-height:1.3}.household h2{margin:24px 0 12px;font-size:18px}.household-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.household-agenda{border-block:1px solid var(--line);color:var(--text);justify-content:space-between;align-items:center;gap:16px;padding:18px 0;text-decoration:none;display:flex}.household-agenda strong,.household-agenda .muted{display:block}.household-agenda strong{margin-bottom:4px;font-size:19px}.household-categories{flex-wrap:wrap;gap:8px;margin:20px 0;display:flex}.household-categories a{color:var(--text);border:1px solid var(--line);border-radius:8px;padding:10px 12px;text-decoration:none}.household-categories a[aria-current]{background:var(--accent-fill);color:var(--on-accent);border-color:var(--accent-fill)}.household-categories span{opacity:.75;margin-left:4px}.household-add{margin-bottom:16px}.household label{flex-direction:column;gap:6px;min-width:0;font-size:13px;display:flex}.household label>.muted{font-size:12px}.household input:not([type=checkbox]),.household select,.household textarea{width:100%;min-width:0;min-height:44px;font-size:16px}.household input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.household fieldset{border:0;min-width:0;margin:0;padding:0}.household-filters{grid-template-columns:2fr 1fr;gap:12px;margin:20px 0;display:grid}.household-summary{border-bottom:1px solid var(--line);margin:20px 0;padding:1px 0 12px}.household-summary dl{grid-template-columns:1fr 1fr;gap:16px;display:grid}.household-summary dt{color:var(--muted);font-size:13px}.household-summary dd{font-variant-numeric:tabular-nums;margin:4px 0 0;font-size:19px}.household-list,.household-history,.household-events{margin:12px 0 24px;padding:0;list-style:none}.household-list li{border-bottom:1px solid var(--line)}.household-list a{color:var(--text);justify-content:space-between;gap:12px;padding:18px 0;text-decoration:none;display:flex}.household-list a>div:first-child{overflow-wrap:anywhere;flex-direction:column;gap:4px;min-width:0;display:flex}.household-list strong{font-size:17px}.household-list .muted,.household-hint{font-size:13px}.household-list-end{text-align:right;overflow-wrap:anywhere;flex-direction:column;justify-content:space-between;align-items:flex-end;gap:8px;max-width:45%;display:flex}.household-hint{color:var(--attention)}.household-editor{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel);margin:16px 0 24px;padding:16px}.household-editor h2{margin-top:0}.household-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:20px;display:grid}.household-form-grid .wide{grid-column:1/-1}.household .household-members{flex-wrap:wrap;gap:12px;margin:20px 0;display:flex}.household-members legend{margin-bottom:8px;font-size:13px}.household-members label{flex-direction:row;align-items:center}.household-details{margin:16px 0}.household-details>div{border-bottom:1px solid var(--line);grid-template-columns:minmax(100px,1fr) 2fr;gap:16px;padding:10px 0;display:grid}.household-details dt{color:var(--muted)}.household-details dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.household-history li{border-bottom:1px solid var(--line);padding:16px 0}.household-history li>div:first-child,.household-events li{justify-content:space-between;gap:12px;display:flex}.household-history time{color:var(--muted);flex-shrink:0;font-size:13px}.household-history p{overflow-wrap:anywhere;white-space:pre-wrap;margin:8px 0}.household-events li{padding:10px 0}.household-first-member{margin-bottom:20px}.household-presets{flex-wrap:wrap;gap:8px 18px;margin:12px 0;font-size:13px;display:flex}.household-presets a{color:var(--accent);padding:8px 0}.household-add{vertical-align:middle;margin:0 20px 0 0;display:inline-flex}.household-presets{vertical-align:middle;display:inline-flex}.household-heading{margin-bottom:12px}.household-filters{margin:12px 0}.household-summary{margin:12px 0;padding-bottom:8px}.household-summary h2{margin:12px 0 6px}.household-summary dl{margin:8px 0}.household-extra{border-top:1px solid var(--line);padding-top:12px}.household-extra summary{cursor:pointer;color:var(--accent);padding:8px 0}.household-table{border-collapse:collapse;background:var(--surface);width:100%;font-size:13px}.household-table th,.household-table td{text-align:left;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere;padding:12px}.household-table th{color:var(--muted);background:var(--bg);font-weight:500}.household-table a{color:var(--accent);text-decoration:none}.household-table a:hover{text-decoration:underline}.household-table small{color:var(--muted);margin-top:4px;font-size:12px;display:block}.household-table .household-amount{text-align:right;font-variant-numeric:tabular-nums}.household-table tbody tr:hover{background:color-mix(in srgb,var(--accent) 3%,var(--surface))}@media (width>=1000px){.main:has(.household){max-width:1440px;padding-inline:32px}.household h1{font-size:24px}.household-agenda{padding:10px 0}.household-agenda strong{font-size:15px}.household-categories{border-bottom:1px solid var(--line);gap:0}.household-categories a{border:0;border-radius:0;padding:10px 14px;font-size:13px}.household-filters{grid-template-columns:2fr repeat(4,minmax(0,1fr));gap:12px}.household-summary dl{grid-template-columns:repeat(4,minmax(0,1fr))}.household-editor{border-radius:6px;padding:20px}.household-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;display:grid}}@media (width<=699px){.household-categories{flex-wrap:nowrap;gap:0;margin:12px 0;overflow-x:auto}.household-categories a{border:0;border-radius:0;flex-shrink:0;padding:10px;font-size:13px}.household-table,.household-table tbody{display:block}.household-table thead{clip:rect(0,0,0,0);width:1px;height:1px;position:absolute;overflow:hidden}.household-table tr{border-bottom:1px solid var(--line);grid-template-columns:repeat(2,minmax(0,1fr));padding:12px 0;display:grid}.household-table td{border:0;padding:5px 10px;display:block}.household-table td:first-child{grid-column:1/-1;font-size:15px}.household-table td:not(:first-child):before{content:attr(data-label);color:var(--muted);margin-bottom:3px;font-size:12px;display:block}.household-table .household-amount{text-align:left}}@media (width<=420px){.household-form-grid{grid-template-columns:minmax(0,1fr)}.household-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.household-filters label:first-child{grid-column:1/-1}.household-list a{flex-direction:column;gap:8px}.household-list-end{text-align:left;flex-direction:row;max-width:none}}.household-categories{margin:0 0 12px}.household-presets-menu{margin:8px 0;display:inline-block}.household summary{cursor:pointer;min-height:44px;color:var(--accent);align-items:center;display:flex}.household-presets-menu[open]{border:1px solid var(--line);background:var(--surface);padding:8px 12px}.household-search{align-items:end;gap:12px;margin:12px 0;display:flex}.household-search>label{flex:1}.household-filter-menu[open]{flex:2}.household-filters{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}.household-cost-strip{border-block:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:8px 20px;margin-bottom:8px;padding:8px 0;font-size:13px;display:flex}.household-cost-strip details[open]{flex-basis:100%}.household-cost-strip p{margin:4px 0}.household-cost-strip strong{font-variant-numeric:tabular-nums;margin-left:6px}.household-table .table-action{min-height:44px;padding-top:10px;font-weight:600;display:block}.linked-record{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.linked-record>div{min-width:0}.linked-record a{overflow-wrap:anywhere}.linked-record span{margin-top:4px;font-size:13px;display:block}.household .sheet{max-width:760px}.household .sheet-head h2{margin:0}.household .sheet-body .household-editor{background:0 0;border:0;border-radius:0;margin:0;padding:0}.household .sheet-foot .toolbar{flex-wrap:wrap;justify-content:flex-start;margin:0}.household .sheet-foot button{min-height:44px}.editor-context{margin:0 0 12px;font-weight:600}.action-preview{border-top:1px solid var(--line);padding:12px 0 0;font-size:14px}.action-preview p{color:var(--muted);margin:6px 0}.member-add-actions{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}@media (width>=1000px){.main:has(.household){max-width:1280px}}@media (width<=699px){.household-search{flex-wrap:wrap}.household-filter-menu[open]{flex-basis:100%}.household-table td[data-label=资料],.household-table td[data-label=成员]{display:none}.household-table tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:8px 0}.household-table td:first-child{grid-column:1}.household-table td[data-label=金额]{text-align:right;grid-area:1/2}.household-table td[data-label=金额]:before,.household-table td[data-label=状态]:before{display:none}.household-table td[data-label=状态]{text-align:right}.household .sheet{max-height:94dvh}.linked-record{align-items:flex-start}.linked-record .button{flex-shrink:0}}.household-list-tools{flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:12px;display:flex}.household-list-tools .household-add,.household-list-tools .household-presets-menu{flex-shrink:0;margin:0}.household-list-tools .household-search{flex:1;order:-1;min-width:280px;margin:0}.household-list-tools .household-presets-menu[open]{flex-basis:100%}@media (width<=699px){.household-list-tools .household-search{flex-basis:100%;min-width:0}}.household-heading h1:focus{outline:none}.household-categories{border-bottom:1px solid var(--line);gap:4px}.household-categories a{min-height:44px;color:var(--muted);border:0;border-bottom:2px solid #0000;border-radius:0;align-items:center;padding:8px 12px;font-size:13px;display:flex}.household-categories a[aria-current]{color:var(--accent);border-bottom-color:var(--accent);background:0 0;font-weight:600}:root{--bg:#f6f6f7;--surface:#fff;--text:#17181c;--muted:#5d636e;--line:#e2e3e7;--accent:#2459d6;--accent-fill:#2459d6;--on-accent:#fff;--negative:#b8332a;--positive:#1b7447;--attention:#955400;--attention-bg:#fdf3e3;--danger-bg:#fbecea;--toast-bg:#1f2126;--toast-text:#f3f3f5;--skeleton:#e9eaee;--c0:#2459d6;--c1:#1b9e77;--c2:#d98b1a;--c3:#8e5bd6;--c4:#d6487e;--c5:#8a9099;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--radius-control:8px;--radius-panel:16px;--fs-hero:36px;--fs-title:17px;--fs-body:15px;--fs-small:13px;--tabbar-h:56px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#121316;--surface:#1b1d21;--text:#e9e9ec;--muted:#a2a8b3;--line:#2d3036;--accent:#8ab0fa;--accent-fill:#2d5fd0;--on-accent:#fff;--negative:#f08a7b;--positive:#6cc79a;--attention:#f2b766;--attention-bg:#2e2517;--danger-bg:#331d1b;--toast-bg:#e9e9ec;--toast-text:#17181c;--skeleton:#262930;--c0:#6f9bf5;--c1:#4cc39b;--c2:#efab4b;--c3:#b08cf0;--c4:#ef7ba6;--c5:#8f96a3;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html{touch-action:manipulation;-webkit-tap-highlight-color:color-mix(in srgb, var(--accent) 15%, transparent);scroll-padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--space-4))}html:has(.sticky-foot){scroll-padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 96px)}body{background:var(--bg);color:var(--text);font:var(--fs-body) / 1.5 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;-webkit-text-size-adjust:100%;margin:0}::selection{background:color-mix(in srgb, var(--accent) 30%, transparent)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.app{min-height:100dvh}.main{max-width:720px;padding:var(--space-4) var(--space-4) calc(var(--tabbar-h) + 88px + env(safe-area-inset-bottom));margin:0 auto}.tabbar{z-index:20;height:calc(var(--tabbar-h) + 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;bottom:0;left:0;right:0}.tabbar a{min-height:44px;color:var(--muted);font-size:var(--fs-small);flex:1;justify-content:center;align-items:center;text-decoration:none;display:flex}.tabbar a[aria-current=page]{color:var(--accent);font-weight:600}.fab{z-index:21;right:max(var(--space-4), calc((100vw - 720px) / 2 + var(--space-4)));bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--space-4));background:var(--accent-fill);min-height:48px;color:var(--on-accent);border-radius:24px;align-items:center;padding:0 22px;font-weight:600;text-decoration:none;display:inline-flex;position:fixed;box-shadow:0 4px 12px #0000002e}body.sheet-open .fab{display:none}body.sheet-open{overflow:hidden}@media (width>=768px){.tabbar{height:var(--tabbar-h);border-top:none;border-bottom:1px solid var(--line);justify-content:flex-start;gap:var(--space-2);padding:0 calc(50vw - 360px);position:sticky;top:0;bottom:auto}.tabbar a{padding:0 var(--space-4);font-size:var(--fs-body);flex:none}.main{padding-bottom:120px}.fab{bottom:var(--space-5)}html{scroll-padding-top:calc(var(--tabbar-h) + var(--space-2));scroll-padding-bottom:var(--space-4)}html:has(.sticky-foot){scroll-padding-bottom:96px}}.page{flex-direction:column;display:flex}.page-title{margin:var(--space-2) 0 var(--space-4);font-size:22px}.back-link{min-height:44px;color:var(--accent);align-self:flex-start;align-items:center;text-decoration:none;display:inline-flex}.section{margin-top:var(--space-5)}.section:first-child{margin-top:0}.section-head{justify-content:space-between;align-items:center;gap:var(--space-2);margin-bottom:var(--space-2);display:flex}.section-head h2{font-size:var(--fs-title);margin:0;font-weight:600}h3{font-size:var(--fs-body);margin:var(--space-4) 0 var(--space-2);font-weight:600}.toolbar{justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-3);margin-bottom:var(--space-4);flex-wrap:wrap;display:flex}.toolbar.wrap{flex-wrap:wrap;justify-content:flex-start}.toolbar select{width:auto}.updating{margin-left:var(--space-2);font-size:var(--fs-small);color:var(--muted);font-weight:400}.is-stale{opacity:.4;transition:opacity .2s ease-out}.hero{gap:var(--space-1);flex-direction:column;display:flex}.hero-label{font-size:var(--fs-small);color:var(--muted)}.hero-sub{font-size:var(--fs-small);color:var(--muted);font-variant-numeric:tabular-nums;margin:0}.big-amount{font-size:var(--fs-hero);letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600;line-height:1.15;display:block}.big-amount.muted{color:var(--muted)}.big-currency{margin-right:2px;font-size:.6em}.big-decimal{color:var(--muted);font-size:.6em}.figures{gap:var(--space-3);margin:var(--space-2) 0;grid-template-columns:repeat(3,1fr);display:grid}.figure dt{font-size:var(--fs-small);color:var(--muted)}.figure dd{font-size:var(--fs-title);font-variant-numeric:tabular-nums;white-space:nowrap;margin:2px 0 0}.chart{max-width:480px;margin:0}.chart svg{width:100%;height:auto;display:block}.chart-base{stroke:var(--line);stroke-width:1px}.chart-line{stroke:var(--accent);stroke-width:2px;stroke-linecap:round}.chart-dot{fill:var(--accent)}.chart-dot.partial{fill:var(--surface);stroke:var(--attention);stroke-width:1.5px}.chart-axis{margin-top:var(--space-1);font-size:var(--fs-small);color:var(--muted);font-variant-numeric:tabular-nums;justify-content:space-between;display:flex}.share-list h3{justify-content:space-between;display:flex}.deltas{gap:var(--space-1) var(--space-4);margin:var(--space-1) 0 0;font-size:var(--fs-body);font-variant-numeric:tabular-nums;flex-wrap:wrap;display:flex}.delta{color:var(--muted)}.delta .positive,.delta .negative{font-weight:600}.chart-area{fill:color-mix(in srgb, var(--accent) 12%, transparent)}.month-rows{margin-top:var(--space-3)}.tag.attention{color:var(--attention);border-color:currentColor;margin:0 0 0 6px}.chart-views{margin-bottom:var(--space-2);overflow-x:auto}.chart-select{margin-bottom:var(--space-2)}.series-line{stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.series-line.c0{stroke:var(--c0)}.series-line.c1{stroke:var(--c1)}.series-line.c2{stroke:var(--c2)}.series-line.c3{stroke:var(--c3)}.series-line.c4{stroke:var(--c4)}.series-line.c5{stroke:var(--c5)}.series-line.neg{stroke:var(--negative)}.swatch.neg{background:var(--negative)}.legend.inline{gap:var(--space-1) var(--space-3);margin-top:var(--space-2);flex-wrap:wrap;display:flex}.stack-bar{background:var(--line);height:12px;margin:var(--space-2) 0 var(--space-3);border-radius:6px;display:flex;overflow:hidden}.stack-bar>span{height:100%;display:block}.stack-bar>.c0{background:var(--c0)}.stack-bar>.c1{background:var(--c1)}.stack-bar>.c2{background:var(--c2)}.file-button{position:relative;overflow:hidden}.file-button input[type=file]{opacity:0;cursor:pointer;position:absolute;inset:0}.file-button:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}.restore-plan{margin-top:var(--space-3)}.plan-table{border-collapse:collapse;width:100%;font-size:var(--fs-small);font-variant-numeric:tabular-nums}.plan-table th,.plan-table td{text-align:right;border-bottom:1px solid var(--line);padding:6px 4px}.plan-table th:first-child,.plan-table tbody th{text-align:left;font-weight:500}.readonly-banner{margin:0 0 var(--space-3);padding:var(--space-2) var(--space-3);border-radius:var(--radius-control);background:var(--attention-bg);color:var(--attention);font-size:var(--fs-small)}.mask-toggle{white-space:nowrap;margin-left:auto}.chevron{color:var(--muted);margin-left:6px;font-size:11px}.month-breakdown{margin:0 0 var(--space-2);padding:var(--space-2) var(--space-3);background:var(--surface);border-radius:var(--radius-control);font-size:var(--fs-small);list-style:none}.month-breakdown li{justify-content:space-between;gap:var(--space-2);font-variant-numeric:tabular-nums;padding:3px 0;display:flex}.month-change{margin-left:var(--space-3);font-size:var(--fs-small);font-variant-numeric:tabular-nums}.chart-months{margin-top:var(--space-1);color:var(--muted);font-variant-numeric:tabular-nums;justify-content:space-between;font-size:11px;display:flex}.chart-months span{white-space:nowrap;justify-content:center;width:0;display:flex}.row-sub.split{justify-content:space-between;gap:var(--space-2);font-variant-numeric:tabular-nums;display:flex}.donut-wrap{align-items:center;gap:var(--space-4);margin:var(--space-2) 0 var(--space-3);display:flex}.donut{flex:none;width:112px;height:112px}.donut circle{fill:none;stroke-width:16px}.donut-track{stroke:var(--line)}.legend{gap:var(--space-1);font-size:var(--fs-small);margin:0;padding:0;list-style:none;display:grid}.swatch{vertical-align:0;background:var(--c5);border-radius:3px;width:10px;height:10px;margin-right:6px;display:inline-block}.group-head{font-size:var(--fs-small);color:var(--muted);margin:var(--space-3) 0 0;justify-content:space-between;font-weight:600;display:flex}.donut-seg.c0{stroke:var(--c0)}.swatch.c0{background:var(--c0)}.donut-seg.c1{stroke:var(--c1)}.swatch.c1{background:var(--c1)}.donut-seg.c2{stroke:var(--c2)}.swatch.c2{background:var(--c2)}.donut-seg.c3{stroke:var(--c3)}.swatch.c3{background:var(--c3)}.donut-seg.c4{stroke:var(--c4)}.swatch.c4{background:var(--c4)}.donut-seg.c5{stroke:var(--c5)}.swatch.c5{background:var(--c5)}.share{align-items:center;gap:var(--space-2);margin-top:var(--space-1);display:flex}.share-bar{background:var(--accent);border-radius:2px;height:4px}.share-bar.liability{background:var(--negative)}.share-text{font-size:var(--fs-small);color:var(--muted);font-variant-numeric:tabular-nums}.rows{margin:0;padding:0;list-style:none}.rows>li{border-bottom:1px solid var(--line)}.rows>li:last-child{border-bottom:none}.row-link,.row-static{width:100%;min-height:52px;padding:var(--space-2) 0;color:inherit;text-align:left;font:inherit;cursor:pointer;background:0 0;border:none;border-radius:0;flex-direction:column;justify-content:center;gap:2px;text-decoration:none;display:flex}.row-static{cursor:default}button.row-link{align-items:stretch;padding-left:0;padding-right:0;font-weight:400}.row-link.selected{background:color-mix(in srgb, var(--accent) 10%, transparent)}.rows.compact .row-link{min-height:44px}.row-main{justify-content:space-between;align-items:center;gap:var(--space-3);display:flex}.row-main>:first-child{overflow-wrap:anywhere;min-width:0}.row-sub{font-size:var(--fs-small);color:var(--muted);display:block}.row-actions{align-items:center;gap:var(--space-2);display:flex}.row-state{font-size:var(--fs-small)}.amount{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}.negative{color:var(--negative)}.positive{color:var(--positive)}.muted{color:var(--muted)}.hint{font-size:var(--fs-small);color:var(--muted);margin:var(--space-2) 0 0}.attention-text{color:var(--attention)}.danger-text{color:var(--negative)}.tag{border:1px solid var(--line);color:var(--muted);vertical-align:1px;border-radius:4px;margin:0 6px 0 0;padding:0 6px;font-size:12px;line-height:18px;display:inline-block}.row-main .tag:not(:first-child){margin:0 0 0 6px}.tag.income{color:var(--positive);border-color:currentColor}.tag.expense{color:var(--negative);border-color:currentColor}.tag.transfer{color:var(--muted)}.filter-chip{align-items:center;gap:var(--space-2);margin:var(--space-2) 0 0;font-size:var(--fs-small);color:var(--muted);display:inline-flex}details.closed-list{margin-top:var(--space-5)}details.closed-list summary{cursor:pointer;min-height:44px;color:var(--muted);align-items:center;display:flex}.field{margin-bottom:var(--space-3);display:block}.field-label{font-size:var(--fs-small);color:var(--muted);margin-bottom:var(--space-1);display:block}.field-error{margin-top:var(--space-1);font-size:var(--fs-small);color:var(--negative);display:block}.field-error:empty{display:none}.field.has-error input,.field.has-error select{border-color:var(--negative)}input,select{border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface);width:100%;min-height:44px;color:var(--text);font:inherit;padding:9px 10px;font-size:16px}input[type=checkbox]{width:20px;height:20px;min-height:20px;accent-color:var(--accent-fill)}.amount-input{font-variant-numeric:tabular-nums;font-size:28px;font-weight:600}.inline-field{align-items:center;gap:var(--space-2);font-size:var(--fs-small);color:var(--muted);white-space:nowrap;display:flex}.inline-field input{width:auto}.check{align-items:center;gap:var(--space-2);min-height:44px;margin-bottom:var(--space-3);display:flex}button,.button{min-height:44px;padding:0 var(--space-4);border:1px solid var(--accent-fill);border-radius:var(--radius-control);background:var(--accent-fill);color:var(--on-accent);font:inherit;font-size:var(--fs-body);cursor:pointer;justify-content:center;align-items:center;font-weight:600;text-decoration:none;display:inline-flex}button:disabled{opacity:.55;cursor:default}button.secondary,.button.secondary{color:var(--accent);border-color:var(--line);background:0 0}button.block{width:100%}button.danger{background:var(--negative);border-color:var(--negative);color:var(--on-accent)}.text-button{min-height:44px;padding:0 var(--space-2);color:var(--accent);background:0 0;border:none;font-weight:400}.text-button.on-dark{color:var(--toast-text);font-weight:600;text-decoration:underline}.text-button.danger-text{color:var(--negative)}.text-link{color:var(--accent);white-space:nowrap;align-items:center;min-height:44px;text-decoration:none;display:inline-flex}.icon-button{min-width:44px;min-height:44px;color:var(--muted);background:0 0;border:none;padding:0;font-size:20px;font-weight:400}.danger-button{width:100%;margin-top:var(--space-5);border:1px solid var(--line);color:var(--negative);background:0 0;font-weight:400}.button-row{gap:var(--space-2);justify-content:flex-end;display:flex}.button-row.start{justify-content:flex-start}.disclosure-block{margin-top:var(--space-3)}.disclosure-block>summary{cursor:pointer;color:var(--accent);padding:var(--space-2) 0}.segmented{border-radius:var(--radius-control);background:var(--skeleton);max-width:100%;padding:2px;display:inline-flex;overflow-x:auto}.segmented button{min-height:40px;padding:0 var(--space-3);color:var(--text);white-space:nowrap;background:0 0;border:none;font-weight:400}.segmented button.active{background:var(--surface);color:var(--text);font-weight:600;box-shadow:0 1px 2px #0000001f}.sheet .segmented{margin-bottom:var(--space-4);display:flex}.sheet .segmented button{flex:1}.chip-group{margin:0 0 var(--space-3);border:none;min-width:0;padding:0}.chip-group .group-label{font-size:var(--fs-small);color:var(--muted);margin-bottom:var(--space-1);padding:0;display:block}.chips{gap:var(--space-2);flex-wrap:wrap;display:flex}.chip{min-height:40px;padding:0 var(--space-3);border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:20px;font-weight:400}.chip.active{border-color:var(--accent-fill);background:var(--accent-fill);color:var(--on-accent)}.chip.ghost{color:var(--accent)}.chip.static{align-items:center;gap:2px;min-height:36px;padding-right:0;display:inline-flex}.chip-remove{min-width:36px;min-height:36px;color:var(--muted);background:0 0;border:none;padding:0;font-weight:400}.disclosure{width:100%;margin-bottom:var(--space-3);border:1px solid var(--line);color:var(--text);background:0 0;justify-content:space-between;font-weight:400}.inline-form{align-items:flex-end;gap:var(--space-2);margin-top:var(--space-3);flex-wrap:wrap;display:flex}.inline-form .field{flex:140px;margin-bottom:0}.panel{padding:var(--space-4);margin-bottom:var(--space-4);border-radius:var(--radius-panel);background:var(--surface);border:1px solid var(--line)}.danger-zone{border-color:color-mix(in srgb, var(--negative) 40%, var(--line))}.notice{justify-content:space-between;align-items:center;gap:var(--space-2);margin:var(--space-2) 0;padding:var(--space-2) var(--space-3);border-radius:var(--radius-control);font-size:var(--fs-small);display:flex}.notice.danger{background:var(--danger-bg);color:var(--negative)}.notice.attention{background:var(--attention-bg);color:var(--attention)}.notice .text-button,.notice .text-link{color:inherit;flex:none;font-weight:600}.empty{padding:var(--space-5) 0;color:var(--muted)}.empty p{margin:0 0 var(--space-3)}.toast-region{z-index:40;left:0;right:0;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 80px);pointer-events:none;padding:0 var(--space-4);justify-content:center;display:flex;position:fixed}.toast{pointer-events:auto;align-items:center;gap:var(--space-3);max-width:560px;padding:var(--space-1) var(--space-2) var(--space-1) var(--space-4);background:var(--toast-bg);color:var(--toast-text);border-radius:12px;animation:.2s ease-out rise;display:flex;box-shadow:0 6px 20px #00000040}.summary{margin:0 0 var(--space-2);font-size:var(--fs-small);justify-content:space-between;align-items:center;display:flex}.skeleton{gap:var(--space-2);flex-direction:column;display:flex}.sk{background:var(--skeleton);border-radius:6px}.sk-hero{width:70%;height:44px;margin-bottom:var(--space-2)}.sk-line{height:14px}.sheet-backdrop{z-index:30;background:#00000059;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{border-radius:var(--radius-panel) var(--radius-panel) 0 0;background:var(--surface);flex-direction:column;width:100%;max-width:720px;max-height:92dvh;animation:.2s ease-out rise;display:flex}.sheet-head{padding:var(--space-2) var(--space-2) 0 var(--space-4);justify-content:space-between;align-items:center;display:flex}.sheet-head h2{font-size:var(--fs-title);margin:0}.sheet-body{overscroll-behavior:contain;padding:var(--space-3) var(--space-4);overflow-y:auto}.sheet-foot{padding:var(--space-2) var(--space-4) calc(var(--space-2) + env(safe-area-inset-bottom));border-top:1px solid var(--line)}@media (width>=768px){.sheet-backdrop{align-items:center}.sheet{border-radius:var(--radius-panel);max-height:86dvh}}.onboarding{margin-top:var(--space-5)}.steps{margin:0;padding:0;list-style:none}.step{gap:var(--space-3);padding:var(--space-3) 0;border-bottom:1px solid var(--line);display:flex}.step:last-child{border-bottom:none}.step-mark{background:var(--skeleton);width:24px;height:24px;font-size:var(--fs-small);border-radius:50%;flex:none;justify-content:center;align-items:center;display:flex}.step.done .step-mark{background:var(--positive);color:var(--surface)}.step.current .step-mark{background:var(--accent-fill);color:var(--on-accent)}.step.done strong{color:var(--muted);font-weight:400}.step-body{flex:1;min-width:0}.step-form{margin-top:var(--space-3)}.step-actions{gap:var(--space-2);margin-top:var(--space-3);flex-wrap:wrap;display:flex}.valuate-row .row-main{align-items:flex-start}.valuate-input{flex-direction:column;flex:none;align-items:flex-end;width:44%;max-width:180px;display:flex}.valuate-input input{text-align:right;font-variant-numeric:tabular-nums}.with-sticky-foot{padding-bottom:120px}.sticky-foot{z-index:22;left:0;right:0;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom));padding:var(--space-2) max(var(--space-4), calc((100vw - 720px) / 2 + var(--space-4)));background:var(--surface);border-top:1px solid var(--line);position:fixed}@media (width>=768px){.sticky-foot{bottom:0}}.fold-group{margin:var(--space-4) 0}.fold-group>summary{cursor:pointer;min-height:44px;color:var(--muted);align-items:center;display:flex}.main:has(.sticky-foot)~.fab{display:none}.category-group h3{margin-top:var(--space-3)}@media (hover:hover){button:not(:disabled):hover,.button:hover{background:color-mix(in srgb, var(--accent-fill) 88%, var(--text))}button.secondary:not(:disabled):hover,.button.secondary:hover,.disclosure:not(:disabled):hover,.chip:not(.active):not(:disabled):hover{background:color-mix(in srgb, var(--text) 6%, var(--surface))}button.danger:not(:disabled):hover{background:color-mix(in srgb, var(--negative) 88%, var(--text))}.text-button:not(:disabled):hover,.text-link:hover,.back-link:hover{background:0 0;text-decoration:underline}.icon-button:not(:disabled):hover,.chip-remove:not(:disabled):hover{color:var(--text);background:0 0}.danger-button:not(:disabled):hover{background:var(--danger-bg)}.row-link:not(.selected):hover{background:color-mix(in srgb, var(--text) 4%, transparent)}.segmented button:not(.active):not(:disabled):hover{background:color-mix(in srgb, var(--surface) 50%, transparent)}.segmented button.active:hover{background:var(--surface)}.tabbar a:hover{color:var(--text)}.tabbar a[aria-current=page]:hover{color:var(--accent)}.fab:hover{background:color-mix(in srgb, var(--accent-fill) 88%, var(--text))}details>summary:hover{color:var(--text)}}@keyframes rise{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}:root{--bg:#f5f6f8;--surface:#fff;--text:#252b38;--muted:#586174;--accent:#3b4bb5;--accent-fill:#3b4bb5;--line:#dce0e8;--fs-body:15px}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#171a22;--surface:#20242e;--text:#ecedf2;--muted:#afb6c7;--accent:#adb9ff;--accent-fill:#4555b5;--line:#3b4252}}.home-heading{justify-content:space-between;align-items:center;gap:16px;margin:4px 0 10px;display:flex}.home-heading h1{margin:0 0 4px;font-size:24px;font-weight:650;line-height:1.4}.home-date{color:var(--muted);margin:0;font-size:13px}.home-quick{flex-wrap:wrap;align-items:center;gap:4px 18px;padding:0 0 16px;font-size:13px;display:flex}.home-quick>a,.home-create summary{align-items:center;min-height:44px;display:inline-flex}.home-quick .home-record{font-weight:600}.home-create{position:relative}.home-create summary{cursor:pointer;color:var(--accent);gap:6px}.home-create summary:after{content:"＋";font-size:16px}.home-create[open] summary:after{content:"−"}.home-create nav{z-index:5;border:1px solid var(--line);background:var(--surface);min-width:160px;padding:4px 8px;position:absolute;top:100%;right:0;box-shadow:0 4px 12px #0002}.home-create nav a{align-items:center;min-height:44px;padding:4px 8px;display:flex}.home-event-action{white-space:nowrap;align-items:center;min-height:44px;font-weight:600;display:inline-flex}.home-agenda .ledger-table td{vertical-align:middle}.home-agenda .ledger-table td:first-child small.negative{color:var(--negative)}.home-plan{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0}.home-quick a,.home-section-heading a,.home-empty a,.ledger-table a,.home-footer a{color:var(--accent)}.home-metrics{border:1px solid var(--line);background:var(--surface);grid-template-columns:1.4fr 1fr 1fr;margin:0 0 24px;display:grid}.home-metrics>div{border-right:1px solid var(--line);min-width:0;padding:12px}.home-metrics>div:last-child{border:0}.home-metrics dt{color:var(--muted);font-size:13px}.home-metrics dd{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:7px 0;font-size:21px;font-weight:650}.home-metrics dd a{color:var(--text);text-decoration:none}.home-metrics small{color:var(--muted);font-size:12px;font-weight:400}.home-section-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.home-section-heading h2{margin:0;font-size:17px}.home-section-heading a{font-size:13px}.ledger-section{min-width:0;margin-bottom:24px}.ledger-section>.hint{margin:4px 0 12px;font-size:12px}.ledger-scroll{border:1px solid var(--line);background:var(--surface);overflow-x:auto}.ledger-table{border-collapse:collapse;text-align:left;width:100%;font-size:13px}.ledger-table th{color:var(--muted);background:var(--bg);white-space:nowrap;font-size:12px;font-weight:500}.ledger-table th,.ledger-table td{border-bottom:1px solid var(--line);vertical-align:top;padding:10px 12px}.ledger-table tr:last-child td{border-bottom:0}.ledger-table td:first-child{font-variant-numeric:tabular-nums}.ledger-table time{white-space:nowrap}.ledger-table small,.ledger-list small{color:var(--muted);margin-top:3px;font-size:12px;display:block}.ledger-list{margin:0;padding:0;list-style:none}.ledger-list li{border-bottom:1px solid var(--line)}.ledger-list li a{color:var(--text);justify-content:space-between;align-items:center;gap:12px;padding:11px 0;font-size:13px;text-decoration:none;display:flex}.ledger-list li a>span{overflow-wrap:anywhere;min-width:0}.ledger-list strong,.ledger-list time{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:13px}.home-empty{color:var(--muted);margin:0;padding:18px 0;font-size:13px;line-height:1.8}.home-costs{font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:8px 20px;padding:8px 0 12px;font-size:18px;display:flex}.home-family{border-top:1px solid var(--line);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.home-family li{flex:1;min-width:160px}.home-family a{color:var(--text);flex-direction:column;gap:6px;padding:14px 12px 14px 0;font-size:14px;text-decoration:none;display:flex}.home-family span{color:var(--muted);font-size:12px}.home-footer{border-top:1px solid var(--line);flex-wrap:wrap;gap:20px;padding-top:16px;font-size:13px;display:flex}.app-brand,.tabbar .nav-secondary{display:none}.mobile-utilities{justify-content:flex-end;gap:18px;padding-bottom:14px;font-size:12px;display:flex}.mobile-utilities a{color:var(--muted)}.demo-banner{background:var(--attention-bg);color:var(--text);border:1px solid var(--line);border-radius:4px;margin-bottom:18px;padding:10px 12px;font-size:12px}.demo-actions{justify-content:space-between;align-items:center;gap:12px;display:flex}.demo-actions strong{white-space:nowrap;flex:1}.demo-actions button{padding:4px 0;font-size:12px}.demo-actions a{color:var(--accent);white-space:nowrap;font-size:12px}.demo-banner p{margin:4px 0 0;font-size:12px}.login-welcome{max-width:560px;margin:0 auto;padding:32px 0}.login-welcome h1{margin:0 0 16px;font-size:32px;line-height:1.3}.login-welcome p{color:var(--muted);line-height:1.8}.login-welcome .button{justify-content:center;margin-top:16px;display:flex}.members-layout{grid-template-columns:170px minmax(0,1fr);gap:24px;display:grid}.members-nav{flex-direction:column;align-self:start;gap:2px;display:flex}.members-nav a{color:var(--text);overflow-wrap:anywhere;border-left:3px solid #0000;flex-direction:column;gap:4px;padding:12px;font-size:14px;text-decoration:none;display:flex}.members-nav a[aria-current=page]{border-color:var(--accent);background:var(--surface)}.members-nav span{color:var(--muted);font-size:12px}.members-content{min-width:0}.member-profile{flex-wrap:wrap;gap:18px 36px;font-size:13px;display:flex}.member-profile dt{color:var(--muted);margin-bottom:5px}.member-profile dd{overflow-wrap:anywhere;margin:0}.member-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.member-editor fieldset{border:0;min-width:0;margin:0;padding:0}.member-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.member-form-grid label{flex-direction:column;gap:6px;min-width:0;font-size:13px;display:flex}.member-form-grid input,.member-form-grid textarea{width:100%}.member-form-note{grid-column:1/-1}@media (width>=1000px){.app{padding-left:208px}.main{padding-top:28px}:is(.main:has(.home-page),.main:has(.members-page)){max-width:1280px;padding-inline:32px}.tabbar{border:0;border-right:1px solid var(--line);flex-direction:column;align-items:stretch;gap:4px;width:208px;height:100dvh;padding:28px 14px;display:flex;position:fixed;inset:0 auto 0 0}.tabbar a,.tabbar .nav-secondary{border-radius:4px;flex:0;justify-content:flex-start;padding:11px 16px;font-size:14px;display:flex}.tabbar a[aria-current=page]{background:color-mix(in srgb,var(--accent) 10%,transparent)}.tabbar .nav-secondary{border-top:1px solid var(--line);border-radius:0;margin-top:auto}.app-brand{color:var(--text);margin:0 0 28px;padding:0 16px;font-size:20px;font-weight:700;display:block}.mobile-utilities{display:none}}@media (width<=699px){.home-heading{align-items:flex-start;gap:8px;margin-bottom:12px}.home-heading h1{font-size:22px}.home-date{font-size:12px}.home-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.home-metrics>div{padding:10px}.home-metrics>div:first-child{border-right:0;border-bottom:1px solid var(--line);grid-column:1/-1}.home-metrics dd{font-size:20px}.ledger-table th,.ledger-table td{padding:9px 8px}.ledger-table{min-width:0}.ledger-table,.ledger-table tbody{display:block}.ledger-table thead{clip:rect(0,0,0,0);width:1px;height:1px;position:absolute;overflow:hidden}.ledger-table tr{border-bottom:1px solid var(--line);grid-template-columns:repeat(2,minmax(0,1fr));padding:7px 0;display:grid}.ledger-table td{overflow-wrap:anywhere;border:0;display:block}.ledger-table td:before{content:attr(data-label);color:var(--muted);margin-bottom:3px;font-size:12px;display:block}.home-page .ledger-table tr{grid-template-columns:minmax(0,1fr) auto;padding:8px 0}.home-page .ledger-table td{padding:3px 10px}.home-page .ledger-table td:before{display:none}.home-page .ledger-table td:nth-child(2){grid-area:1/1;font-size:14px}.home-page .ledger-table td:first-child{grid-area:2/1;font-size:12px}.home-page .ledger-table td:first-child small{margin-left:10px;display:inline}.home-page .ledger-table td:nth-child(3){clip:rect(0,0,0,0);width:1px;height:1px;position:absolute;overflow:hidden}.home-page .ledger-table td:last-child{text-align:right;grid-area:1/2/3;align-self:center}.ledger-table a{padding-block:5px;display:inline-block}.members-layout{grid-template-columns:1fr;gap:18px}.members-nav{flex-direction:row;overflow:auto}.members-nav a{border-bottom:3px solid #0000;border-left:0;min-width:100px;padding:8px}.member-form-grid{grid-template-columns:1fr}.member-form-note{grid-column:auto}.home-quick{gap:0 16px}.home-family li{min-width:140px}}@media (width<=360px){.home-quick{gap:0 10px;font-size:12px}}
