@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2) format("woff2-variations");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-wght-normal-CkhJZR-_.woff2) format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-wght-normal-Dx4kXJAl.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{color-scheme:light;--bg: #f4f6f8;--surface: #ffffff;--surface-2: #f8fafb;--border: #e3e8ec;--border-strong: #cfd7de;--text: #0f1b24;--text-2: #4d5d69;--muted: #7a8893;--brand: #0d9488;--brand-strong: #0b7f75;--brand-soft: #e3f4f2;--series-income: #2a78d6;--series-expense: #eb6834;--pos: #0f8a5f;--neg: #d23d3d;--neg-soft: #fdecec;--private: #6b4fd8;--shadow: 0 1px 2px rgba(15, 27, 36, .04), 0 4px 16px rgba(15, 27, 36, .06);--shadow-lg: 0 12px 40px rgba(15, 27, 36, .18);--radius: 16px;--radius-sm: 10px;--font: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--safe-b: env(safe-area-inset-bottom, 0px);--safe-t: env(safe-area-inset-top, 0px)}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--bg: #0c1419;--surface: #131e25;--surface-2: #18252d;--border: #22323c;--border-strong: #2e414d;--text: #e8eef2;--text-2: #a9b8c2;--muted: #7d8d98;--brand: #14b8a6;--brand-strong: #2dd4bf;--brand-soft: #123532;--series-income: #3987e5;--series-expense: #d95926;--pos: #34c38f;--neg: #f07171;--neg-soft: #3a1d1f;--private: #a993ec;--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);--shadow-lg: 0 12px 40px rgba(0, 0, 0, .5)}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.45 var(--font);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}button,input,select{font:inherit;color:inherit}button{cursor:pointer}h1,h2,h3,h4{margin:0;letter-spacing:-.01em}.num,.grid td,.kpi strong{font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.small{font-size:13px}.row{display:flex;align-items:center}.gap{gap:10px}.wrap{flex-wrap:wrap}.spacer{flex:1}.neg{color:var(--neg)!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border-radius:12px;border:1px solid transparent;font-weight:600;text-decoration:none;transition:background .15s,transform .05s;white-space:nowrap}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.55;cursor:default}.btn-primary{background:var(--brand);color:#fff}.btn-primary:hover:not(:disabled){background:var(--brand-strong)}.btn-ghost{background:var(--surface);border-color:var(--border-strong);color:var(--text)}.btn-ghost:hover{background:var(--surface-2)}.btn-danger-ghost{background:transparent;color:var(--neg);border-color:transparent;padding:0 8px}.btn-sm{height:36px;padding:0 12px;font-size:13px}.btn-block{width:100%}.btn-link{background:none;border:0;padding:0;color:var(--brand);font-weight:600}.icon-btn{width:36px;height:36px;border-radius:50%;border:0;background:transparent;display:grid;place-items:center;font-size:20px;color:var(--text-2)}.icon-btn:hover:not(:disabled){background:var(--surface-2)}.icon-btn:disabled{opacity:.3}.form{display:grid;gap:16px}.field{display:grid;gap:6px}.field>span{font-size:13px;font-weight:600;color:var(--text-2)}.field-row{display:flex;justify-content:space-between;align-items:center}input,select{width:100%;height:46px;padding:0 14px;border-radius:12px;border:1px solid var(--border-strong);background:var(--surface);font-size:16px;outline:none;transition:border-color .15s,box-shadow .15s}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8893' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}input:focus,select:focus{border-color:var(--brand);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 18%,transparent)}input[aria-invalid=true]{border-color:var(--neg)}.alert{background:var(--neg-soft);color:var(--neg);padding:10px 14px;border-radius:10px;font-size:14px;display:grid;gap:4px;justify-items:start}.amount-input{position:relative}.amount-input em{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-style:normal;font-weight:600;color:var(--muted);font-size:14px}.amount-input input{padding-left:54px;font-variant-numeric:tabular-nums}.amount-field .amount-input input{height:58px;font-size:26px;font-weight:700}.segmented{display:inline-flex;padding:3px;gap:2px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border);max-width:100%;overflow-x:auto;scrollbar-width:none}.segmented button{border:0;background:transparent;padding:8px 14px;border-radius:9px;font-weight:600;font-size:14px;color:var(--text-2);white-space:nowrap;flex:1}.segmented button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0000001f}.segmented.sm button{padding:5px 10px;font-size:13px}.spinner{width:28px;height:28px;border-radius:50%;border:3px solid var(--border);border-top-color:var(--brand);animation:spin .8s linear infinite;margin:16px auto}.spinner.sm{width:18px;height:18px;border-width:2px;margin:0;border-color:#fff6;border-top-color:#fff}@keyframes spin{to{transform:rotate(360deg)}}.splash{min-height:60vh;display:grid;place-items:center}.brand{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:500;letter-spacing:-.01em}.brand b{font-weight:800;color:var(--brand)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.card-head{display:flex;justify-content:space-between;align-items:baseline;padding:16px 18px 0;gap:8px}.card-head h3{font-size:15px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:1px}.dot.income{background:var(--series-income)}.dot.expense{background:var(--series-expense)}.badge{display:inline-block;font-size:11px;font-weight:700;color:var(--brand);background:var(--brand-soft);padding:2px 8px;border-radius:99px}.auth-layout{min-height:100dvh;display:grid;grid-template-columns:1fr}.auth-hero{display:none}.auth-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:calc(24px + var(--safe-t)) 16px calc(24px + var(--safe-b));gap:20px}.auth-card{width:100%;max-width:420px;background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:28px 22px;box-shadow:var(--shadow)}.auth-card h2{font-size:24px;margin-bottom:4px}.auth-card>.muted,.auth-card>p.muted{margin:0 0 20px}.auth-mobile-brand,.center-brand{margin-bottom:22px}.google-btn{min-height:44px;display:flex;justify-content:center}.divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;margin:18px 0;text-transform:uppercase;letter-spacing:.06em}.divider:before,.divider:after{content:"";flex:1;height:1px;background:var(--border)}.switch{text-align:center;color:var(--text-2);margin:20px 0 0;font-size:14px}.sent{text-align:center;display:grid;gap:10px;justify-items:center}.sent-icon{font-size:44px}.sent .row{justify-content:center;flex-wrap:wrap}.app-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;max-width:420px}.app-links .hint{flex-basis:100%;text-align:center;font-size:13px;color:var(--text-2);margin:4px 0 0}.center-page{min-height:100dvh;display:grid;place-items:center;padding:16px}@media(min-width:960px){.auth-layout{grid-template-columns:1.05fr 1fr}.auth-hero{display:flex;flex-direction:column;justify-content:space-between;padding:40px 48px;background:radial-gradient(1200px 500px at -10% 110%,#14b8a6 0%,transparent 60%),linear-gradient(160deg,#0b3d3a,#0a2530);color:#e6fffb}.auth-hero .brand b{color:#5eead4}.auth-hero-copy h1{font-size:44px;line-height:1.1;letter-spacing:-.02em;max-width:520px}.auth-hero-copy p{color:#a7d9d2;font-size:17px;max-width:460px}.auth-points{list-style:none;padding:0;display:grid;gap:10px;color:#cdeee9}.auth-points span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#5eead42e;color:#5eead4;margin-right:10px;font-size:12px}.auth-mobile-brand{display:none}.auth-card{padding:36px 32px}}.hero-preview{background:#ffffff12;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:20px;max-width:460px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.hp-top{display:flex;justify-content:space-between;align-items:start}.hp-top small{display:block;color:#a7d9d2}.hp-top strong{font-size:28px}.hp-chip{background:#5eead42e;color:#5eead4;padding:4px 10px;border-radius:99px;font-weight:700;font-size:13px}.hp-bars{display:flex;align-items:end;gap:6px;height:90px;margin-top:16px}.hp-bars i{flex:1;background:linear-gradient(#5eead4,#14b8a6);border-radius:4px 4px 0 0;opacity:.9}.topbar{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);border-bottom:1px solid var(--border);padding-top:var(--safe-t)}.topbar-inner{max-width:1280px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;gap:10px}.topbar-controls{display:flex;align-items:center;gap:8px}.year-select select{height:36px;padding:0 30px 0 12px;font-weight:700;font-size:15px;border-radius:10px;width:auto}.avatar{width:36px;height:36px;border-radius:50%;border:0;background:var(--brand);color:#fff;font-weight:700;overflow:hidden;padding:0}.avatar img{width:100%;height:100%;object-fit:cover}.menu-wrap{position:relative}.menu-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:29}.menu{position:absolute;right:0;top:44px;z-index:30;min-width:240px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-lg);padding:6px;display:grid}.menu-user{padding:10px 12px 12px;border-bottom:1px solid var(--border);margin-bottom:4px;display:grid}.menu-user small{color:var(--muted);overflow:hidden;text-overflow:ellipsis}.menu button,.menu a{text-align:left;background:none;border:0;padding:10px 12px;border-radius:9px;font-size:14px;color:var(--text);text-decoration:none;display:flex;gap:8px;align-items:center}.menu button:hover,.menu a:hover{background:var(--surface-2)}.save-bar{height:2px;background:var(--brand);transform:scaleX(0);transform-origin:left;transition:transform .3s}.save-bar.on{transform:scaleX(.85);transition:transform 2s ease-out}@media(max-width:520px){.topbar .brand span{display:none}}.content{max-width:1280px;margin:0 auto;padding:16px 16px calc(96px + var(--safe-b));display:grid;gap:16px}.kpis{display:grid;grid-template-columns:1fr 1fr;gap:12px}.kpi{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;display:grid;gap:2px;box-shadow:var(--shadow);min-width:0}.kpi small{color:var(--text-2);font-weight:600;font-size:13px}.kpi strong{font-size:21px;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kpi .sub{color:var(--muted);font-size:12px}.kpis .kpi:last-child{grid-column:1 / -1}.kpi.hero{grid-column:1 / -1;background:linear-gradient(135deg,#0d9488,#0b6e7a);color:#fff;border:0;padding:18px 20px}.kpi.hero small,.kpi.hero .sub{color:#ffffffd1}.kpi.hero strong{font-size:34px}.meter{height:6px;border-radius:99px;background:var(--surface-2);border:1px solid var(--border);overflow:hidden;margin-top:6px}.meter i{display:block;height:100%;background:var(--brand);border-radius:99px}@media(min-width:900px){.kpis{grid-template-columns:1.5fr 1fr 1fr 1fr}.kpi.hero{grid-column:auto}.kpis .kpi:last-child{grid-column:auto}.kpi strong{font-size:24px}}.charts{display:grid;gap:16px}@media(min-width:900px){.charts{grid-template-columns:1fr 1fr}}.chart{position:relative;padding:4px 8px 8px}.chart svg{width:100%;height:auto;display:block;touch-action:pan-y}.axis text{font-size:11px;fill:var(--muted)}@media(max-width:640px){.axis text{font-size:19px}.direct-label{font-size:20px}}.axis .gridline{stroke:var(--border);stroke-width:1}.axis .zero{stroke:var(--border-strong);stroke-width:1}.series-line{fill:none;stroke:var(--brand);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}.series-dot{fill:var(--brand);stroke:var(--surface);stroke-width:2;transition:r .1s}.direct-label{font-size:12px;font-weight:700;fill:var(--text)}.crosshair{stroke:var(--text-2);stroke-dasharray:3 3;stroke-width:1}.today-band{fill:var(--brand);opacity:.07}.hover-band{fill:var(--text);opacity:.05}.bar.income{fill:var(--series-income)}.bar.expense{fill:var(--series-expense)}.legend{display:flex;gap:14px;font-size:12px;color:var(--text-2);padding:8px 10px 0}.legend .sw{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}.sw.income{background:var(--series-income)}.sw.expense{background:var(--series-expense)}.chart-tip{position:absolute;top:8px;pointer-events:none;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-lg);border-radius:10px;padding:8px 10px;font-size:12px;min-width:150px;z-index:2}.chart-tip b{display:block;margin-bottom:4px}.tip-row{display:flex;align-items:center;gap:6px;color:var(--text-2)}.tip-row i{width:8px;height:8px;border-radius:2px}.tip-row strong{margin-left:auto;color:var(--text);font-variant-numeric:tabular-nums}.view-switch{display:flex;align-items:center;gap:14px;justify-content:space-between}@media(max-width:640px){.hide-sm{display:none}.view-switch .segmented{width:100%}}.sheet-wrap{overflow:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);max-height:75vh;-webkit-overflow-scrolling:touch}.grid{border-collapse:separate;border-spacing:0;width:100%;font-size:14px}.grid th,.grid td{padding:0;border-bottom:1px solid var(--border);white-space:nowrap}.grid thead th{position:sticky;top:0;z-index:2;background:var(--surface-2);font-size:12px;font-weight:700;color:var(--text-2);text-transform:uppercase;letter-spacing:.04em;padding:10px 12px;text-align:right}.grid thead th.now{color:var(--brand)}.grid tbody th,.grid tfoot th{position:sticky;left:0;z-index:1;background:var(--surface);text-align:left;font-weight:600;min-width:170px;max-width:250px;border-right:1px solid var(--border)}.grid thead th.corner{left:0;z-index:3;text-align:left;border-right:1px solid var(--border);color:var(--text);font-size:14px}.grid td{text-align:right;min-width:70px}.grid td.now{background:color-mix(in srgb,var(--brand) 6%,transparent)}.grid td.total,.grid th.total{background:var(--surface-2);font-weight:700;padding:0 12px}.grid tr.section th{padding:14px 12px 6px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);border-bottom:0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.grid tr.section td{border-bottom:0}.add-chip{border:1px dashed var(--border-strong);background:transparent;color:var(--brand);font-size:12px;font-weight:700;padding:2px 8px;border-radius:99px;text-transform:none;letter-spacing:0}.row-name{width:100%;text-align:left;background:none;border:0;padding:10px 12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center}.row-name:hover{color:var(--brand)}.is-income .row-name:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--series-income);margin-right:8px;vertical-align:2px}.cell{width:100%;text-align:right;background:none;border:0;padding:10px 9px;font-variant-numeric:tabular-nums;border-radius:0}.cell:hover{background:var(--brand-soft);color:var(--brand-strong);box-shadow:inset 0 0 0 1.5px var(--brand)}.cell.is-zero{color:var(--border-strong)}.grid tfoot td{padding:10px 9px;font-weight:600;background:var(--surface-2)}.grid tfoot th{padding:10px 12px;background:var(--surface-2)}.grid tfoot tr:first-child>*{border-top:2px solid var(--border-strong)}.grid tr.saved td{color:var(--pos)}.grid tr.balance td,.grid tr.balance th{background:var(--brand-soft);color:var(--brand-strong);font-weight:800}.grid tr.home td{color:var(--text-2);font-weight:500}.placeholder .row-name{font-weight:500;font-style:italic}.months-view{display:grid;gap:12px}.month-strip{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;margin:0 -16px;padding:2px 16px 6px}.month-strip::-webkit-scrollbar{display:none}.month-strip button{flex:0 0 auto;scroll-snap-align:center;min-width:66px;padding:8px 10px;border-radius:14px;border:1px solid var(--border);background:var(--surface);display:grid;gap:1px;text-align:center}.month-strip button span{font-weight:700;font-size:14px}.month-strip button small{font-size:11px;color:var(--pos);font-variant-numeric:tabular-nums}.month-strip button.now{border-color:var(--brand)}.month-strip button.on{background:var(--text);color:var(--surface);border-color:var(--text)}.month-strip button.on small{color:inherit;opacity:.8}.month-card{padding:8px 0;max-width:760px;width:100%;justify-self:center}.mc-head{display:flex;align-items:center;justify-content:space-between;padding:6px 10px}.mc-head>div{text-align:center;display:grid;justify-items:center;gap:2px}.mc-head h2{font-size:18px}.mc-hero{padding:6px 20px 16px;display:grid;gap:4px}.mc-hero small{color:var(--text-2);font-weight:600}.mc-hero strong{font-size:36px;letter-spacing:-.02em;color:var(--pos)}.mc-hero .meter{height:8px}.mc-hero .meter i{background:linear-gradient(90deg,var(--series-expense),color-mix(in srgb,var(--series-expense) 70%,#fff))}.mc-split{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--text-2);margin-top:4px}.mc-balance{margin:0 16px 6px;padding:12px 14px;border-radius:12px;background:var(--brand-soft);display:flex;justify-content:space-between;gap:10px}.mc-balance small{display:block;color:var(--text-2);font-size:12px;font-weight:600}.mc-balance b{color:var(--brand-strong);font-size:17px}.mc-balance .right{text-align:right}.list-title{padding:16px 20px 6px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.item-list{list-style:none;margin:0;padding:0 8px}.item-list button{width:100%;display:flex;align-items:center;gap:10px;background:none;border:0;padding:12px;border-radius:12px;min-height:52px;text-align:left}.item-list button:hover{background:var(--surface-2)}.item-list li+li button{border-top:1px solid var(--border);border-radius:0}.item-list li+li button:hover{border-radius:12px}.il-name{font-weight:600;flex:0 1 auto;min-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.il-bar{flex:1;height:6px;border-radius:99px;background:var(--surface-2);overflow:hidden;min-width:30px}.il-bar i{display:block;height:100%;background:color-mix(in srgb,var(--series-expense) 75%,transparent);border-radius:99px}.il-amt{margin-left:auto;font-weight:700}.zero .il-amt,.zero .il-name{color:var(--muted);font-weight:500}.chev{color:var(--muted);font-size:20px}.add-row{color:var(--brand);font-weight:700}.add-row .plus{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--brand-soft)}.fab{position:fixed;right:18px;bottom:calc(20px + var(--safe-b));width:58px;height:58px;border-radius:18px;border:0;background:var(--brand);color:#fff;font-size:30px;font-weight:300;box-shadow:0 10px 24px #0d948873;z-index:15}.fab:active{transform:scale(.95)}@media(min-width:900px){.fab{display:none}}.empty-state{text-align:center;padding:80px 16px;display:grid;gap:16px;justify-items:center}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#080f1473;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}.sheet{width:100%;max-height:92dvh;background:var(--surface);border-radius:22px 22px 0 0;display:flex;flex-direction:column;box-shadow:var(--shadow-lg);animation:up .22s cubic-bezier(.2,.8,.2,1);padding-bottom:var(--safe-b)}.sheet-grip{width:40px;height:5px;border-radius:99px;background:var(--border-strong);margin:8px auto 0}.sheet-head{display:flex;justify-content:space-between;align-items:center;padding:10px 14px 4px 20px}.sheet-head h3{font-size:17px}.sheet-body{overflow-y:auto;padding:10px 20px 20px}.sheet-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;padding-top:4px}.sheet-actions .btn-primary{min-width:110px}@media(min-width:640px){.sheet-backdrop{align-items:center}.sheet{max-width:480px;border-radius:20px}.sheet-grip{display:none}}@keyframes up{0%{transform:translateY(40px);opacity:0}}@keyframes fade{0%{opacity:0}}.grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.quick-fill{display:grid;gap:10px}.quick-fill select{width:auto;height:36px;font-size:14px}.month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.month-grid label{display:grid;gap:2px;font-size:12px;font-weight:600;color:var(--text-2)}.month-grid input{height:40px;padding:0 10px;text-align:right;font-variant-numeric:tabular-nums}.fill-right{grid-column:1 / -1;justify-self:start}@media(min-width:640px){.month-grid{grid-template-columns:repeat(4,1fr)}}.choice-list{display:grid;gap:8px}.choice{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid var(--border-strong);border-radius:12px;cursor:pointer}.choice.on{border-color:var(--brand);background:var(--brand-soft)}.choice input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--brand);flex:none}.choice b{display:block;font-size:15px}.choice small{color:var(--text-2)}.toast{position:fixed;left:50%;bottom:calc(24px + var(--safe-b));transform:translate(-50%);background:var(--text);color:var(--surface);padding:12px 18px;border-radius:12px;font-weight:600;font-size:14px;z-index:60;box-shadow:var(--shadow-lg);animation:up .2s;max-width:calc(100vw - 32px)}.person-avatar{display:inline-grid;place-items:center;flex:none;border-radius:50%;color:#fff;font-weight:700;overflow:hidden;vertical-align:middle;letter-spacing:0;line-height:1}.person-avatar img{width:100%;height:100%;object-fit:cover}.person-avatar.shared{background:var(--surface-2);color:var(--muted);border:1px solid var(--border-strong)}.person-avatar.pending{background:var(--brand-soft);color:var(--brand);font-size:16px}.row-name .person-avatar{margin-right:8px}.is-income .row-name:has(.person-avatar):before{display:none}.item-list .person-avatar{margin-right:-2px}.household-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.household-name{display:inline-flex;align-items:center;gap:10px;border:0;background:none;padding:4px 0;font-weight:700;font-size:15px;color:var(--text)}.household-name:hover{color:var(--brand)}.household-name .stack{display:inline-flex}.household-name .stack .person-avatar{box-shadow:0 0 0 2px var(--bg)}.household-name .stack .person-avatar+.person-avatar{margin-left:-8px}@media(max-width:640px){.household-bar .segmented{width:100%}}.banners{padding-bottom:0}.invite-banner{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 16px;border-radius:var(--radius);background:linear-gradient(135deg,var(--brand-soft),var(--surface));border:1px solid color-mix(in srgb,var(--brand) 35%,var(--border));box-shadow:var(--shadow)}.invite-icon{font-size:26px}.invite-text{flex:1 1 220px;display:grid;gap:2px}.invite-text small{color:var(--text-2)}.invite-actions{display:flex;gap:8px;margin-left:auto}.invite-note{background:var(--brand-soft);color:var(--text);border-radius:12px;padding:10px 14px;font-size:14px;margin-bottom:18px}.household-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.household-title h4{font-size:17px}.member-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}.member-list li{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--border)}.member-list li:last-child{border-bottom:0}.member-text{flex:1;min-width:0;display:grid}.member-text small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-list .invited b{font-weight:600}.person-picker{display:flex;flex-wrap:wrap;gap:8px}.person-picker button{display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border-radius:99px;border:1px solid var(--border-strong);background:var(--surface);font-weight:600;font-size:14px}.person-picker button.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-strong);box-shadow:0 0 0 1px var(--brand)}.menu-group{border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:4px 0;padding:4px 0;display:grid}.menu-group small{padding:6px 12px 2px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em}.menu .check{width:16px;display:inline-block;color:var(--brand);font-weight:800}.shell{--nav-w: 248px;min-height:100dvh}.sidenav{position:fixed;inset:0 auto 0 0;width:var(--nav-w);z-index:40;display:flex;flex-direction:column;gap:6px;background:var(--surface);border-right:1px solid var(--border);padding:calc(14px + var(--safe-t)) 12px calc(12px + var(--safe-b));overflow-y:auto;transform:translate(-100%);transition:transform .22s cubic-bezier(.2,.8,.2,1)}.nav-open .sidenav{transform:none;box-shadow:var(--shadow-lg)}.nav-scrim{display:none}.nav-open .nav-scrim{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:35;background:#080f1473}.sidenav-head{padding:4px 8px 10px}.sidenav nav{display:grid;gap:2px}.nav-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;color:var(--text-2);text-decoration:none;font-weight:600;font-size:15px;border:0;background:none;text-align:left;width:100%}.nav-item:hover{background:var(--surface-2);color:var(--text)}.nav-item.on{background:var(--brand-soft);color:var(--brand-strong)}.nav-item.on-soft{color:var(--text)}.nav-icon{width:22px;display:inline-grid;place-items:center;font-size:17px}.nav-badge{margin-left:auto;background:var(--neg);color:#fff;font-size:11px;font-weight:800;border-radius:99px;padding:1px 7px}.nav-group{border-top:1px solid var(--border);margin-top:6px;padding-top:6px;display:grid;gap:2px}.nav-group small{padding:6px 12px 2px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em}.household-chip{display:flex;align-items:center;gap:10px;margin:0 4px 6px;padding:8px 10px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border);color:var(--text);text-decoration:none;font-weight:700;font-size:14px}.household-chip .stack{display:inline-flex}.household-chip .stack .person-avatar{box-shadow:0 0 0 2px var(--surface-2)}.household-chip .stack .person-avatar+.person-avatar{margin-left:-7px}.hc-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidenav-foot{margin-top:auto;border-top:1px solid var(--border);padding-top:8px;display:grid;gap:4px}.me{display:flex;align-items:center;gap:10px;padding:8px 6px 0}.me-text{flex:1;min-width:0;display:grid}.me-text small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.avatar.sm{width:32px;height:32px;display:inline-grid;place-items:center;flex:none}.hamburger{font-size:22px;color:var(--text)}.page-title{font-weight:800;font-size:17px;flex:1}.topbar-controls{margin-left:auto}@media(min-width:1024px){.sidenav{transform:none}.main{margin-left:var(--nav-w)}.hamburger,.nav-scrim{display:none!important}.page-title{font-size:18px}}.content.narrow{max-width:860px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}.page-head h2{font-size:22px}.page-head p{margin:4px 0 0;max-width:560px}.list-cards{list-style:none;margin:0;padding:0;display:grid;gap:10px}.list-card{display:flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding-right:8px}.list-card.on{border-color:var(--brand)}.lc-main{flex:1;display:flex;align-items:center;gap:14px;padding:14px 16px;border:0;background:none;text-align:left;min-width:0}.lc-icon{font-size:26px;width:40px;text-align:center}.lc-text{flex:1;display:grid;gap:2px;min-width:0}.lc-text b{font-size:16px}.support{color:var(--text-2)}.support b{color:var(--text)}.muted-badge{background:var(--surface-2);color:var(--text-2)}.badge.warn{background:color-mix(in srgb,var(--series-expense) 16%,transparent);color:var(--series-expense)}.icon-btn.danger:hover{background:var(--neg-soft);color:var(--neg)}.card.pad{padding:18px;display:grid;gap:10px}.card-head.flush{padding:0}.danger-zone h3{color:var(--neg)}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.person-label{display:inline-flex;align-items:center;gap:8px}.cat-bars{list-style:none;margin:0;padding:12px 18px 18px;display:grid;gap:10px}.cat-bars li{display:grid;grid-template-columns:26px minmax(80px,1.1fr) 2fr auto 38px;align-items:center;gap:10px;font-size:14px}.cat-icon{font-size:18px;text-align:center}.cat-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cat-bar{height:10px;border-radius:99px;background:var(--surface-2);overflow:hidden}.cat-bar i{display:block;height:100%;background:var(--brand);border-radius:99px}.cat-amt{font-weight:700;text-align:right}.cat-pct{font-size:12px;text-align:right}@media(max-width:520px){.cat-bars li{grid-template-columns:24px 1fr auto 34px}.cat-bar{display:none}}.goal-mini-list{padding:12px 18px 18px;display:grid;gap:14px}.goal-mini{display:grid;gap:6px}.goal-mini-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.goal-list{display:grid;gap:12px}.goal-card{text-align:left;padding:18px;display:grid;gap:8px;border:1px solid var(--border);cursor:pointer}.goal-card:hover{border-color:var(--brand)}.goal-target{font-size:22px}.goal-target small{font-size:13px;font-weight:500}.meter.big{height:10px}.goal-advice{color:var(--series-expense)}.row-cat{margin-right:8px;font-size:14px}.cur-tag{margin-left:6px;font-size:10px;font-weight:800;color:var(--text-2);background:var(--surface-2);border:1px solid var(--border);border-radius:6px;padding:1px 5px;vertical-align:1px}.il-cat{font-size:18px;width:24px;text-align:center;flex:none}.il-name,.il-amt{display:grid}.il-sub{font-size:12px;color:var(--muted);font-weight:500}.il-amt .il-sub{text-align:right}.kpi.hero .all-cur{font-size:14px;font-weight:600;color:#ffffffeb}.kpi.hero .rates{font-size:11px}.cur-list{list-style:none;margin:4px 0 6px;padding:0;display:grid;gap:8px}.cur-list li{display:grid;grid-template-columns:48px auto 1fr auto auto;align-items:center;gap:10px}.cur-list input[inputmode]{height:40px}.cur-code{font-size:15px}.cur-updated{grid-column:2 / -1;margin-top:-4px}.auto-toggle{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--text-2)}.auto-toggle input{width:18px;height:18px;accent-color:var(--brand)}.goal-section{display:grid;gap:10px}.goal-section-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.goal-section-head h3{font-size:17px}.goal-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.goal-stats span{display:grid;background:var(--surface-2);border-radius:10px;padding:8px 10px}.goal-stats small{color:var(--muted);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}.goal-chart-wrap{margin:0}.goal-chart{width:100%;height:72px;display:block}.goal-chart path,.goal-chart line{vector-effect:non-scaling-stroke}.goal-chart-axis{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);margin-top:4px}.goal-path{fill:none;stroke:var(--brand);stroke-width:2.5;stroke-linejoin:round}.goal-area{fill:var(--brand);opacity:.1}.goal-target-line{stroke:var(--text-2);stroke-dasharray:4 4;stroke-width:1.2}.goal-date-line{stroke:var(--border-strong);stroke-width:1}.goal-line{color:var(--text-2)}.goal-preview-text{margin:0;padding:10px 12px;border-radius:10px;background:var(--brand-soft);font-size:14px}.savings-plan{display:grid;gap:8px}.sp-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:14px;color:var(--text-2)}.sp-row b{color:var(--text);font-size:16px}.sp-row small{font-weight:500;color:var(--muted);margin-left:2px}.sp-bar{height:12px;border-radius:99px;background:var(--surface-2);border:1px solid var(--border);overflow:hidden;display:flex;gap:2px}.sp-bar i{display:block;height:100%;background:var(--brand)}.sp-free{font-weight:700;color:var(--pos);font-size:14px}.sp-free.neg{color:var(--neg)}.sp-list{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:13px;color:var(--text-2)}.sp-list li{display:flex;justify-content:space-between}@media(max-width:520px){.goal-stats{grid-template-columns:1fr 1fr}.cur-list li{grid-template-columns:44px 1fr auto auto}.cur-list li>.muted.small{display:none}}.page-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:520px){.topbar-inner{gap:6px;padding-left:12px;padding-right:12px}.topbar-controls{gap:6px;flex-shrink:0}.year-select select{width:84px;padding:0 22px 0 10px;background-position:right 6px center}.page-title{font-size:16px}.topbar-controls .segmented button{padding-left:8px;padding-right:8px}}.household-bar{min-width:0}.household-bar .segmented{min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap}.household-bar .segmented::-webkit-scrollbar{display:none}.household-bar .segmented button{flex-shrink:0}.content,.months-view{grid-template-columns:minmax(0,1fr)}.content>*,.months-view>*{min-width:0}.pos{color:var(--pos)}.warn-text{color:var(--series-expense);font-weight:600}.splash.sm{min-height:120px}.version-chip{display:flex;align-items:center;gap:8px;margin:0 4px 10px;padding:8px 10px;border-radius:12px;border:1px dashed var(--border-strong);background:var(--surface);color:var(--text);font-weight:600;font-size:13px;text-align:left}.version-chip .vc-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.version-chip .vc-caret{color:var(--muted)}.version-chip.private{border-style:solid;border-color:color-mix(in srgb,var(--private) 45%,transparent);background:color-mix(in srgb,var(--private) 10%,var(--surface));color:var(--private)}.version-chip.forecast{border-style:solid;border-color:var(--border-strong);background:var(--surface-2)}.version-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:1280px;margin:12px auto 0;padding:12px 14px;border-radius:var(--radius);border:1px solid var(--border);width:calc(100% - 32px)}.version-banner.private{background:color-mix(in srgb,var(--private) 10%,var(--surface));border-color:color-mix(in srgb,var(--private) 35%,transparent)}.version-banner.forecast{background:var(--surface-2)}.vb-icon{font-size:22px}.vb-text{flex:1 1 260px;display:grid;gap:2px;min-width:0}.version-banner.private .vb-text b{color:var(--private)}.vb-text small{color:var(--text-2);font-size:13px}.vb-actions{display:flex;gap:6px;flex-wrap:wrap}.version-pick{list-style:none;margin:0;padding:0;display:grid;gap:6px}.version-pick button{width:100%;display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;border:1px solid var(--border);background:var(--surface);text-align:left;color:var(--text)}.version-pick button.on{border-color:var(--brand);background:var(--brand-soft)}.vp-icon{font-size:20px}.vp-text{flex:1;display:grid;min-width:0}.vp-text small{color:var(--muted)}.version-group{display:grid;gap:10px}.version-group h3{font-size:15px;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}.version-group h3 small{font-weight:500;font-size:13px}.version-card{flex-wrap:wrap;padding-right:0}.version-card .lc-main{flex:1 1 100%;padding-bottom:6px}.vc-actions{display:flex;gap:6px;flex-wrap:wrap;padding:0 14px 12px 70px}@media(max-width:520px){.vc-actions{padding-left:14px}}.compare-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.compare-kpis>div{display:grid;gap:2px;padding:12px;border-radius:12px;background:var(--surface-2)}.compare-kpis small{color:var(--muted);font-size:12px}.compare-kpis b{font-size:18px}.compare-rows{list-style:none;margin:0;padding:0}.compare-rows li{display:flex;justify-content:space-between;gap:10px;padding:10px 2px;border-bottom:1px solid var(--border);font-size:14px}@media(max-width:520px){.compare-kpis{grid-template-columns:1fr}.version-banner{margin-top:8px}}.part-lines{list-style:none;margin:0;padding:0;display:grid;gap:8px}.part-lines li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) auto;gap:6px;align-items:center}.amount-input select{position:absolute;left:4px;top:50%;transform:translateY(-50%);z-index:1;width:70px;height:34px;border:0;background-color:transparent;font-weight:700;font-size:14px;color:var(--text-2);padding:0 18px 0 8px;background-position:right 2px center}.amount-input:has(select) input{padding-left:78px}.add-line{justify-self:start}.part-summary{display:grid;gap:6px;padding:12px;border-radius:12px;background:var(--surface-2);font-size:14px}.part-summary>div{display:flex;justify-content:space-between;gap:10px}.part-summary .raise{color:var(--series-expense);flex-wrap:wrap}.part-summary .total{border-top:1px solid var(--border);padding-top:6px;font-weight:700}.part-sublist{list-style:none;margin:-4px 0 6px 44px;padding:0 0 0 10px;border-left:2px solid var(--border)}.item-list .part-sublist button{min-height:34px;padding:6px 10px;border:0!important;font-size:13px;color:var(--text-2);justify-content:space-between}.part-sublist .others button{font-style:italic}.part-sublist .over{padding:4px 10px;font-size:12px;color:var(--series-expense)}.ps-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.part-sublist .num{text-align:right;display:grid;justify-items:end}.grid tbody th .expand{position:absolute;left:0;top:50%;transform:translateY(-50%);width:20px;height:28px;border:0;background:none;color:var(--muted);font-size:11px;padding:0;transition:transform .15s}.grid tbody th .expand.on{transform:translateY(-50%) rotate(90deg);color:var(--brand)}.grid tbody th:has(.expand){padding-left:10px}.grid tr.part-row th,.grid tr.part-row td{background:var(--surface-2);font-size:13px}.grid tr.part-row th{font-weight:500;color:var(--text-2)}.grid tr.part-row .part-name{display:flex;align-items:center;gap:6px;padding:7px 12px 7px 34px}.grid tr.part-row.others .part-name{font-style:italic}.grid tr.part-row .cell{color:var(--text-2)}.events-card{padding-bottom:8px}.events-card .card-head{align-items:center}.events-card .card-head h3 small{font-weight:500;font-size:12px;margin-left:4px}.events-card>p{padding:8px 18px;margin:0}.event-list{list-style:none;margin:8px 0 0;padding:0 8px}.event-list button{width:100%;display:flex;align-items:center;gap:12px;padding:10px;border:0;background:none;border-radius:12px;text-align:left;color:var(--text)}.event-list button:hover{background:var(--surface-2)}.event-list li+li button{border-top:1px solid var(--border);border-radius:0}.ev-month{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:var(--brand-soft);color:var(--brand-strong);line-height:1.1;flex-shrink:0}.ev-month small{font-size:10px}.ev-text{flex:1;display:grid;gap:2px;min-width:0}.ev-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ev-amt{font-weight:700;display:grid;justify-items:end}.topbar-add{display:none}@media(min-width:900px){.topbar-add{display:inline-flex;align-items:center}}.add-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.add-choices button{display:grid;gap:4px;justify-items:start;text-align:left;padding:16px;border-radius:14px;border:1px solid var(--border);background:var(--surface);color:var(--text);min-height:120px}.add-choices button:hover{border-color:var(--brand);background:var(--brand-soft)}.add-choices button>span{font-size:28px}.add-choices button b{font-size:16px}.add-choices button small{color:var(--muted);font-size:12px;line-height:1.35}.big-amount .amount-input input{height:64px;font-size:30px}.suggest-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:-6px}.suggest-chips button,.month-chips button{border:1px solid var(--border-strong);background:var(--surface);color:var(--text);border-radius:99px;padding:6px 12px;font-size:13px;font-weight:600;min-height:34px}.suggest-chips button:hover{border-color:var(--brand);color:var(--brand)}.month-chips{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.month-chips button{border-radius:10px;padding:8px 0}.month-chips button.on{background:var(--brand);border-color:var(--brand);color:#fff}.inline-field{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.inline-field select{width:auto}.form .segmented{max-width:100%;overflow-x:auto;scrollbar-width:none}.form .segmented button{flex-shrink:0}.more-toggle{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);text-align:left}.more-toggle>span:first-child{display:grid;gap:2px;min-width:0}.more-toggle small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.more-options{display:grid;gap:14px;padding:4px 2px 0}.more-options>.btn{justify-self:start}kbd{font:inherit;font-size:11px;padding:1px 5px;border-radius:5px;border:1px solid var(--border-strong);background:var(--surface)}.grid td{position:relative}.grid td.editing{padding:0;background:var(--brand-soft)}.cell-input{width:100%;min-width:70px;height:40px;border:2px solid var(--brand);border-radius:0;padding:0 8px;text-align:right;font-size:14px;font-variant-numeric:tabular-nums;background:var(--surface)}.fill-handle{position:absolute;right:1px;bottom:1px;width:8px;height:8px;border-radius:2px;background:var(--brand);cursor:ew-resize;opacity:0}.grid td:hover .fill-handle{opacity:1}.grid td.fill-preview{background:color-mix(in srgb,var(--brand) 14%,transparent);outline:1px dashed var(--brand);outline-offset:-2px}@media(max-width:520px){.form .segmented{flex-wrap:wrap;overflow:visible}.form .segmented button{flex:1 1 40%}}.content.wide{max-width:1840px}.view-switch{flex-wrap:wrap}@media(min-width:900px){.sheet-wrap{max-height:none}.grid td{min-width:0}.grid tbody th,.grid tfoot th{min-width:150px;max-width:230px}.grid thead th,.cell{padding:10px 8px}.grid td.total,.grid th.total{padding:0 10px}.grid tfoot td{padding:10px 8px}}.sheet-wrap.fits{overflow:clip}.sheet-wrap.fits .grid thead th{top:var(--topbar-h, 57px)}.sheet-full{position:fixed;top:0;right:0;bottom:0;left:0;z-index:45;background:var(--bg);display:flex;flex-direction:column;gap:10px;padding:calc(10px + var(--safe-t)) 16px calc(12px + var(--safe-b))}.sf-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sf-head h2{font-size:18px}.sheet-full .sheet-wrap,.sheet-full .sheet-wrap.fits{flex:1;min-height:0;max-height:none;overflow:auto}.sheet-full .sheet-wrap .grid thead th{top:0}.sheet-full .grid{font-size:15px}@media(min-width:1600px){.sheet-full .grid{font-size:16px}.sheet-full .cell{padding:12px 10px}}@media(min-width:900px)and (max-width:1599px){.grid tbody th,.grid tfoot th{min-width:140px;max-width:190px}.grid tr.section th{padding-left:10px;padding-right:8px}}@media(min-width:900px)and (max-width:1365px){.content.wide{padding-left:12px;padding-right:12px}.grid{font-size:13px}.grid thead th,.cell,.grid tfoot td{padding-left:5px;padding-right:5px}.grid tbody th,.grid tfoot th{min-width:130px;max-width:170px}.row-name{padding-left:8px;padding-right:6px}}.sheet-wrap.is-grid:focus{outline:none}.sheet-wrap.is-grid:focus-visible{box-shadow:var(--shadow),0 0 0 2px color-mix(in srgb,var(--brand) 35%,transparent)}.grid td.gcell{cursor:cell;-webkit-user-select:none;user-select:none}.grid td.gcell .cell{display:block}.grid td.gcell:hover{background:color-mix(in srgb,var(--brand) 5%,transparent)}.grid td.sel{background:color-mix(in srgb,var(--brand) 12%,var(--surface))}.grid td.active{box-shadow:inset 0 0 0 2px var(--brand);background:var(--surface)}.grid td.sel.active{background:color-mix(in srgb,var(--brand) 6%,var(--surface))}.cell-cur{position:absolute;left:4px;top:50%;transform:translateY(-50%);font-style:normal;font-size:10px;font-weight:700;color:var(--muted);pointer-events:none}.grid td.editing .cell-input{padding-left:30px}.grid td .fill-handle{opacity:1;right:-4px;bottom:-4px;width:8px;height:8px;border:1px solid var(--surface);cursor:crosshair;z-index:2}.sheet-status{position:sticky;bottom:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:-8px;padding:8px 14px;font-size:13px;background:color-mix(in srgb,var(--surface-2) 92%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid var(--border);border-radius:0 0 var(--radius) var(--radius)}.sheet-status .stats{display:flex;gap:18px}.sheet-status .stats b{margin-left:4px}.sheet-full .sheet-status{margin-top:-10px}.grid-scrim{z-index:46}.grid-menu{position:fixed;right:auto;top:0;min-width:230px;z-index:47}.grid-menu button{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;text-align:left;background:none;border:0;padding:8px 10px;border-radius:8px;color:var(--text);font-size:14px}.grid-menu button:hover{background:var(--surface-2)}.grid-menu kbd{color:var(--muted)}.grid-menu hr{border:0;border-top:1px solid var(--border);margin:4px 0;width:100%}.check{display:flex;align-items:flex-start;gap:10px;cursor:pointer}.check input{width:20px;height:20px;margin-top:2px;accent-color:var(--brand);flex-shrink:0}.check>span{display:grid;gap:2px}.check small{font-size:12px}.check.inline{align-items:center;align-self:end;height:46px}.bill-box{display:grid;gap:12px;padding:12px;border-radius:12px;border:1px solid var(--border);background:var(--surface)}.bill-fields{display:grid;gap:12px}.due-group+.due-group{margin-top:4px}.due-group .list-title{padding:6px 0 4px}.due-list{list-style:none;margin:0;padding:0}.due-list li{display:flex;align-items:center;gap:12px;padding:10px 2px;border-bottom:1px solid var(--border)}.due-list li:last-child{border-bottom:0}.due-list.compact{padding:6px 18px 4px}.due-list li.paid .due-text b{text-decoration:line-through;color:var(--muted)}.due-list li.overdue .due-text small{color:var(--neg)}.due-icon{font-size:20px;width:28px;text-align:center;flex-shrink:0}.due-text{flex:1;display:grid;gap:2px;min-width:0}.due-text b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.due-amt{font-weight:700;display:grid;justify-items:end;white-space:nowrap}.paid-check{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text-2);cursor:pointer;padding:6px 8px;border-radius:10px;border:1px solid var(--border)}.paid-check input{width:18px;height:18px;accent-color:var(--pos)}.bill-rows{list-style:none;margin:0;padding:0}.bill-rows button{width:100%;display:flex;align-items:center;gap:12px;padding:10px 4px;border:0;border-bottom:1px solid var(--border);background:none;text-align:left;color:var(--text)}.bill-rows li:last-child button{border-bottom:0}.bill-rows button:hover{background:var(--surface-2)}.br-text{flex:1;display:grid;gap:2px;min-width:0}.br-amt{font-weight:700;display:grid;justify-items:end}.loan-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}.loan-card{padding:16px 18px;display:grid;gap:12px}.lc-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.lc-top h3{font-size:17px}.lc-emi{display:grid;justify-items:end}.lc-emi b{font-size:20px}.lc-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}.lc-stats>div{display:grid;gap:2px;padding:10px 12px;border-radius:12px;background:var(--surface-2)}.lc-stats small{color:var(--muted);font-size:12px}.lc-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.prepay-line{grid-template-columns:1fr 1fr 1.4fr 1.4fr auto!important}.year-chips{margin-bottom:10px}.schedule-wrap{overflow:auto;max-height:60vh;border:1px solid var(--border);border-radius:12px}.schedule{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}.schedule th,.schedule td{padding:8px 10px;text-align:right;border-bottom:1px solid var(--border);white-space:nowrap}.schedule th:first-child,.schedule td:first-child{text-align:left}.schedule thead th{position:sticky;top:0;background:var(--surface-2);font-size:12px;color:var(--text-2)}.schedule tfoot th,.schedule tfoot td{font-weight:700;background:var(--surface-2)}.doc-usage{display:grid;gap:4px}.doc-filters{display:flex;gap:8px;flex-wrap:wrap}.doc-filters input{flex:1 1 220px}.doc-filters select{width:auto}.doc-card .lc-main{flex:1}.doc-actions{display:flex;gap:2px}.badge.private-badge{background:color-mix(in srgb,var(--private) 14%,transparent);color:var(--private)}.hide-toggle.on{background:var(--brand-soft)}@media(max-width:520px){.prepay-line{grid-template-columns:1fr 1fr 1fr!important}.lc-top{flex-direction:column}.lc-emi{justify-items:start}.topbar .hide-toggle{width:34px;padding:0}}.hide-amounts .num,.hide-amounts .grid td,.hide-amounts .cell,.hide-amounts .il-amt,.hide-amounts .il-sub,.hide-amounts .kpi strong,.hide-amounts .kpi .sub,.hide-amounts .cat-amt,.hide-amounts .sp-row b,.hide-amounts .due-amt,.hide-amounts .month-strip small,.hide-amounts .chart-tip,.hide-amounts svg text,.hide-amounts .compare-kpis b,.hide-amounts .goal-card .stat b,.hide-amounts .ev-amt,.hide-amounts .lc-emi b,.hide-amounts .lc-stats b,.hide-amounts .sp-free,.hide-amounts .sp-list,.hide-amounts .goal-mini small,.hide-amounts .goal-stats,.hide-amounts .goal-target,.hide-amounts .goal-line,.hide-amounts .goal-advice,.hide-amounts .goal-preview-text,.hide-amounts .goal-chart-axis,.hide-amounts .br-amt,.hide-amounts .mc-split,.hide-amounts .schedule td,.hide-amounts .part-summary b,.hide-amounts .sheet-status .stats,.hide-amounts .lc-top small{filter:blur(7px);transition:filter .15s}.doc-preview{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface-2)}.doc-preview iframe{display:block;width:100%;height:min(70vh,760px);border:0;background:#fff}.doc-preview img{display:block;max-width:100%;max-height:70vh;margin:0 auto}.doc-preview p{padding:24px;margin:0}.sheet:has(.doc-preview){max-width:900px}.btn-warn{background:color-mix(in srgb,var(--series-expense) 14%,var(--surface));color:var(--series-expense);border-color:color-mix(in srgb,var(--series-expense) 40%,transparent)}.vc-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.badge.default-badge{background:color-mix(in srgb,#f5b301 18%,transparent);color:#a86f00}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .badge.default-badge{color:#f5c542}}
