:root{color-scheme:light;--font-body: "Manrope", "Segoe UI", Arial, sans-serif;--font-display: "Manrope", "Segoe UI", Arial, sans-serif;--font-editorial: "Literata", Georgia, serif;--font-size-body: .9375rem;--line-height-body: 1.5rem;--font-size-caption: .8125rem;--line-height-caption: 1.25rem;--font-size-label: .875rem;--line-height-label: 1.25rem;--font-size-h1: 2rem;--line-height-h1: 2.5rem;--font-size-h1-mobile: 1.5rem;--line-height-h1-mobile: 2rem;--font-size-h2: 1.25rem;--line-height-h2: 1.75rem;--font-size-h3: 1.125rem;--line-height-h3: 1.625rem;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--letter-spacing-heading: -.02em;--letter-spacing-label: .04em;--numeric-variant: tabular-nums;--space-1: .25rem;--space-2: .5rem;--space-3: .75rem;--space-4: 1rem;--space-5: 1.25rem;--space-6: 1.5rem;--space-8: 2rem;--space-10: 2.5rem;--space-12: 3rem;--radius-small: .25rem;--radius-control: .5rem;--radius-card: .75rem;--radius-sheet: 1.25rem;--radius-full: 9999px;--motion-fast: .15s;--motion-normal: .2s;--motion-sheet: .22s;--motion-easing: cubic-bezier(.16, 1, .3, 1);--layout-sidebar-width: 260px;--layout-topbar-height: 64px;--layout-content-width: 1440px;--layout-bottom-nav-height: 64px;--layout-control-height: 44px;--layout-icon-size: 20px;--layout-mobile-breakpoint: 768px;--color-background: #f6fbf5;--color-surface: #ffffff;--color-elevated: #ffffff;--color-surface-subtle: #f0f5f0;--color-surface-hover: #ebefea;--color-text: #181d1a;--color-text-muted: #586159;--color-border: #c1c8c2;--color-border-control: #727974;--color-accent: #2a4b3c;--color-accent-hover: #133426;--color-accent-soft: #c6ebd6;--color-on-accent: #ffffff;--color-success: #2c4d3e;--color-success-soft: #c6ebd6;--color-warning: #5a4300;--color-warning-soft: #ffdf99;--color-error: #ba1a1a;--color-error-soft: #ffdad6;--color-focus: #133426;--color-chart-protected: #8060a5;--color-overlay: rgba(24, 29, 26, .6);--shadow-subtle: 0 1px 3px rgba(32, 37, 34, .05);--shadow-floating: 0 12px 32px rgba(24, 29, 26, .14)}:root[data-theme=dark]{color-scheme:dark;--color-background: #151a17;--color-surface: #1e2520;--color-elevated: #2e3a32;--color-surface-subtle: #263029;--color-surface-hover: #334037;--color-text: #edf1ec;--color-text-muted: #b8c1b8;--color-border: #37423a;--color-border-control: #828f85;--color-accent: #9bc4a8;--color-accent-hover: #b2d6bd;--color-accent-soft: #1e3326;--color-on-accent: #0d2115;--color-success: #7beaa6;--color-success-soft: #183321;--color-warning: #fcd34d;--color-warning-soft: #332410;--color-error: #fca5a5;--color-error-soft: #341818;--color-focus: #9bc4a8;--color-chart-protected: #bba0d5;--color-overlay: rgba(13, 20, 15, .72);--shadow-subtle: 0 1px 3px rgba(0, 0, 0, .14);--shadow-floating: 0 12px 32px rgba(0, 0, 0, .32)}@font-face{font-family:Manrope;src:url(/assets/fonts/manrope/Manrope-Variable.ttf) format("truetype");font-style:normal;font-weight:200 800;font-display:swap}@font-face{font-family:Literata;src:url(/assets/fonts/literata/Literata-Variable.woff2) format("woff2");font-style:normal;font-weight:200 900;font-display:swap}:root{--bg: var(--color-background);--surface: var(--color-surface);--surface2: var(--color-surface-subtle);--surface-alt: var(--color-accent-soft);--line: var(--color-border);--text: var(--color-text);--muted: var(--color-text-muted);--accent: var(--color-accent);--accent-text: var(--color-on-accent);--secondary: var(--color-success);--danger: var(--color-error);--warning: var(--color-warning);--focus: var(--color-focus);font-family:var(--font-body);font-size:100%;line-height:var(--line-height-body);background:var(--bg);color:var(--text)}*{box-sizing:border-box}html,body,#root{min-height:100%}html{-webkit-text-size-adjust:100%}body{min-width:320px;margin:0;background:var(--bg);font-size:var(--font-size-body);line-height:var(--line-height-body)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}h1,h2,h3,h4{color:var(--text);line-height:1.2;letter-spacing:-.025em;margin:0}h1{font-size:clamp(1.8rem,3vw,2.6rem)}h2{font-size:1.28rem}h3{font-size:1.07rem}p{line-height:1.55}small{line-height:1.45}.money,.hero-amount,.metric-value{font-variant-numeric:var(--numeric-variant)}.money{white-space:normal;overflow-wrap:anywhere}.muted,.page-head p,.card p,.optional{color:var(--muted)}.error{color:var(--danger)!important}.eyebrow,.nav-label,.top-caption,.card-label{font-size:.73rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}.eyebrow,.dot{color:var(--accent)}.app{min-height:100vh;display:flex;background:var(--bg)}.sidebar{position:sticky;top:0;align-self:flex-start;display:flex;flex-direction:column;flex:none;width:226px;height:100vh;padding:25px 14px;background:var(--surface);border-right:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;margin:4px 10px 35px;color:var(--text);font-size:.85rem;font-weight:760;letter-spacing:.045em;line-height:1.25}.brandmark{display:grid;place-items:center;width:39px;height:39px;color:var(--accent);border:1px solid var(--line);border-radius:12px;font-size:1.1rem;letter-spacing:-.12em}.brandmark span{color:var(--secondary)}.nav-label{padding:0 12px 10px;color:var(--muted)}.sidebar nav{display:grid;gap:3px;overflow:auto}.sidebar nav a{display:flex;align-items:center;gap:10px;min-height:40px;padding:7px 12px;border-radius:10px;color:var(--muted);font-size:.91rem}.sidebar nav a span{width:21px;font-size:1.08rem;text-align:center}.sidebar nav a:hover,.sidebar nav a.active{color:var(--text);background:var(--surface2);text-decoration:none}.sidebar nav a.active{color:var(--accent);font-weight:700}.side-foot{display:grid;gap:3px;margin-top:auto}.main{flex:1;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;height:69px;padding:0 clamp(18px,4vw,60px);background:var(--surface);border-bottom:1px solid var(--line)}.topbar>div{display:flex;gap:14px;align-items:center}.top-caption{color:var(--muted)}.online{color:var(--secondary);font-size:.75rem}.content{width:100%;max-width:1400px;min-width:0;margin:auto;padding:35px clamp(18px,4vw,60px) 100px}.page-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}.page-head>div{min-width:0;flex:1 1 320px}.page-head p{margin:9px 0 0}.card{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:17px}.panel,.hero,.metric{padding:clamp(18px,2.4vw,28px)}.hero-grid{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));gap:15px;margin-bottom:18px}.hero{background:linear-gradient(120deg,var(--surface),var(--surface2))}.hero-amount{margin:22px 0 6px;font-size:clamp(2rem,3.7vw,3.15rem);font-weight:730;overflow-wrap:anywhere}.hero-line{height:1px;margin:24px 0 15px;background:var(--line)}.hero-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center;color:var(--muted);font-size:.78rem}.hero-bottom strong{color:var(--text);font-size:1rem}.metric-value{margin-top:27px;font-size:clamp(1.35rem,2.4vw,2rem);font-weight:700;overflow-wrap:anywhere}.card-label{display:flex;justify-content:space-between;align-items:center;color:var(--muted)}.card-label span{color:var(--secondary)}.two-col{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:start;gap:18px}.panel-head,.goal-values{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head{margin-bottom:16px}.panel-head a{font-size:.87rem;font-weight:650}.empty{padding:18px 0;color:var(--muted)}.empty-state{display:grid;justify-items:start;gap:5px;padding:10px 0;color:var(--muted)}.empty-state img{width:125px;height:90px;object-fit:contain}.onboarding{margin-bottom:18px;border-color:var(--secondary)}.tx-row,.account-row{display:flex;align-items:center;gap:13px;min-width:0;min-height:65px;padding:12px 0;border-top:1px solid var(--line)}.tx-icon,.account-symbol{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:var(--secondary);background:var(--surface2)}.tx-detail,.account-row>div:nth-child(2){display:grid;flex:1;min-width:0;gap:4px}.tx-detail strong,.account-row strong{overflow-wrap:anywhere;font-size:.92rem}.tx-detail small,.account-row small,.goal-row small{color:var(--muted)}.tx-row>strong,.account-row>strong{text-align:right}.positive{color:var(--secondary)}.tx-actions,.occ-actions{display:flex;flex-wrap:wrap;gap:5px}.goal-row,.goal-card{padding:17px 0;border-top:1px solid var(--line)}.goal-row>div{display:flex;justify-content:space-between;gap:10px}.goal-row small{text-align:right}progress{width:100%;height:8px;accent-color:var(--secondary)}form{display:grid;gap:15px;margin-top:18px}label{display:grid;gap:7px;min-width:0;color:var(--text);font-size:.88rem;font-weight:600}input,select,textarea{width:100%;min-width:0;min-height:44px;padding:10px 12px;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:9px;outline:none}input::placeholder{color:var(--muted);opacity:1}input:focus,select:focus,textarea:focus{border-color:var(--focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 22%,transparent)}select option{color:var(--text);background:var(--surface)}.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 12px;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:9px;text-align:left}.select-trigger[data-placeholder]{color:var(--muted)}.select-trigger:hover{border-color:var(--accent)}.select-trigger:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.select-trigger[data-disabled]{opacity:.55}select.select-trigger{display:block;max-width:100%;appearance:none;padding-right:32px;overflow:hidden;text-overflow:ellipsis;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%237b8984' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}.select-content{z-index:100;width:min(var(--radix-select-trigger-width),calc(100vw - 16px));max-height:min(360px,var(--radix-select-content-available-height));overflow:hidden;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:11px;box-shadow:0 15px 38px #00000038;animation:select-in .15s ease-out}.select-viewport{padding:5px;max-height:min(340px,var(--radix-select-content-available-height))}.select-item{position:relative;display:flex;align-items:center;min-height:39px;padding:8px 31px 8px 11px;border-radius:7px;font-size:.88rem;cursor:default;-webkit-user-select:none;user-select:none;outline:none;overflow-wrap:anywhere}.select-item[data-highlighted]{color:var(--accent-text);background:var(--accent)}.select-item[data-disabled]{opacity:.45}.select-indicator{position:absolute;right:10px;color:var(--secondary)}.select-item[data-highlighted] .select-indicator{color:var(--accent-text)}.select-scroll{display:grid;place-items:center;height:25px;color:var(--muted);background:var(--surface)}@keyframes select-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}button.add,button.primary,.primary{min-height:44px;padding:10px 18px;border:1px solid var(--accent);border-radius:9px;color:var(--accent-text);background:var(--accent);font-weight:700}button.secondary,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 15px;border:1px solid var(--accent);border-radius:9px;color:var(--accent);background:transparent;font-weight:670}button.ghost,.ghost{padding:9px 11px;border:0;border-radius:8px;color:var(--muted);background:transparent;text-align:left}button:hover:not(:disabled),a.secondary:hover{filter:brightness(.94)}.primary{width:100%}.small{font-size:.78rem}.inline-form,.category-form{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin-top:12px}.inline-form>*{min-width:0;flex:1 1 125px}.inline-form button{min-height:44px;border:1px solid var(--accent);border-radius:9px;color:var(--accent);background:transparent}.inline-form button.primary{color:var(--accent-text);background:var(--accent)}section[aria-label="История импорта"]{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}.checkbox{display:flex;align-items:center;gap:9px}.checkbox input{width:18px;min-height:18px}.optional{font-weight:400}.overlay{position:fixed;inset:0;z-index:30;display:flex;justify-content:flex-end;align-items:center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#18141099}.dialog{width:min(100%,470px);max-height:min(850px,calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px));overflow:auto;overscroll-behavior:contain;padding:25px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 70px #00000040}.dialog-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.icon-button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;background:var(--surface2);border:1px solid var(--line);border-radius:9px;color:var(--text);font-size:1.3rem}.tabs{display:flex;gap:6px;margin-top:18px;border-bottom:1px solid var(--line)}.tabs button{flex:1;padding:12px;border:0;border-radius:8px 8px 0 0;color:var(--muted);background:transparent}.tabs button.selected{color:var(--accent);background:var(--surface2);border-bottom:2px solid var(--accent)}.login{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);min-height:100dvh;background:var(--bg)}.login-card{align-self:center;justify-self:center;width:min(440px,86%);padding:40px 0}.login-card h1{font-size:clamp(2.35rem,4.6vw,3.65rem)}.login-card em{color:var(--accent);font-style:normal}.login-card form{margin-top:30px}.login-switch{display:block;margin-top:14px;padding:0;border:0;background:none;color:var(--accent);text-align:left;font-weight:700;cursor:pointer}.login-switch:hover{text-decoration:underline}.login-note{font-size:.9rem;color:var(--muted);margin-top:12px}.login-art{position:relative;display:grid;place-items:center;overflow:hidden;background:var(--surface2);border-left:1px solid var(--line)}.login-art img{display:block;width:min(74%,520px);filter:drop-shadow(0 20px 30px rgba(0,0,0,.08))}.loading{padding:35px}.mobile-nav,.mobile-more{display:none}.avatar-preview{display:grid;place-items:center;width:96px;height:96px;margin:17px 0;border-radius:50%;color:var(--accent);background:var(--surface2);font-size:2rem;overflow:hidden}.avatar-preview img{width:100%;height:100%;object-fit:cover}details{margin-top:15px;color:var(--muted)}summary{color:var(--accent);cursor:pointer}.split-editor,.debt-schedule,.category-card{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.split-line{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:7px;align-items:end}.category-title{display:flex;justify-content:space-between;gap:10px}.chip-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.chip{padding:5px 9px;color:var(--muted);background:var(--surface2);border:1px solid var(--line);border-radius:99px}.import-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.debt-pay-form{align-items:end}.debt-pay-form label{flex:1 1 120px}.debt-pay-form button{flex:1 1 100%}.debt-chart{height:125px;padding:12px;color:var(--secondary);background:var(--surface2);border-radius:9px}.debt-chart svg{width:100%;height:100%}.debt-table{max-height:320px;overflow:auto}.debt-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:9px 2px;border-top:1px solid var(--line);font-size:.8rem}.debt-row span:not(:first-child){text-align:right}.debt-header{position:sticky;top:0;background:var(--surface);font-weight:700}.money-movement{margin:24px 0;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.movement-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:16px}.movement-head h3{margin:0}.movement-head p{color:var(--muted);margin:5px 0 0}.movement-head label{min-width:150px}.movement-chart{display:block;width:100%;height:auto;margin-top:15px;overflow:visible;color:var(--muted);font-size:10px}.chart-axis{stroke:var(--line);stroke-width:1}.chart-event{stroke:var(--muted);stroke-width:.7;stroke-dasharray:2 4;opacity:.45}.chart-line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.chart-cash{stroke:var(--accent)}.chart-protected{stroke:var(--color-chart-protected);stroke-dasharray:6 4}.chart-free{stroke:var(--secondary)}.chart-legend{display:flex;flex-wrap:wrap;gap:14px;color:var(--muted);font-size:.84rem}.chart-legend span{display:inline-flex;align-items:center;gap:6px}.chart-legend i{width:11px;height:11px;border-radius:50%}.legend-cash{background:var(--accent)}.legend-protected{background:var(--color-chart-protected)}.legend-free{background:var(--secondary)}.history-choice{margin:10px 0;padding:12px;border:1px solid var(--line);border-radius:10px}.history-choice legend{padding:0 5px;font-weight:650}.history-choice label{display:flex;align-items:flex-start;gap:9px;margin:8px 0}.history-choice input{width:auto;margin-top:4px}.month-detail-button{border:0;padding:0;background:transparent;color:var(--accent);font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.movement-waterfall{margin-top:16px}.waterfall-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.waterfall-grid>div{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--line);border-radius:10px}.waterfall-grid strong{font-variant-numeric:tabular-nums}@media(max-width:600px){.waterfall-grid{grid-template-columns:1fr}.movement-waterfall{padding:14px}}.movement-table-wrap{max-width:100%;overflow-x:auto;margin:14px 0 8px}.movement-table{width:100%;min-width:1100px;border-collapse:collapse;font-size:.82rem}.movement-table caption{padding:8px;text-align:left;font-weight:700}.movement-table th,.movement-table td{padding:9px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}.movement-table th:first-child,.movement-table td:first-child{text-align:left}.movement-table thead th{position:sticky;top:0;z-index:2;background:var(--surface2)}.movement-table tbody th:first-child,.movement-table thead th:first-child{position:sticky;left:0;z-index:3;background:var(--surface2)}.movement-table tbody th:first-child{background:var(--surface)}.movement-table-title{display:flex;justify-content:space-between;gap:12px;color:var(--muted);margin-top:20px}.month-cards{display:none}.planning-anchor{margin:14px 0 20px;min-width:0}.planning-anchor p{max-width:75ch}.planning-advanced{margin:8px 0 16px;padding:12px;border:1px solid var(--line);border-radius:12px}.planning-advanced>summary{cursor:pointer;font-weight:700}.planning-advanced[open]>summary{margin-bottom:14px}.danger-action{color:var(--danger)}.plan-start-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.plan-start-form label{width:min(100%,250px)}.history-completeness{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:7px}.history-completeness label{display:flex;align-items:center;gap:9px;min-width:0;padding:9px 11px;border:1px solid var(--line);border-radius:10px}.history-completeness input{width:18px;height:18px;flex:none}.month-card{margin:8px 0;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.month-card>summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:13px;cursor:pointer;list-style-position:inside}.month-card>summary strong{font-size:1rem;margin-right:auto}.month-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 12px 12px}.month-card-grid>div{min-width:0;overflow-wrap:anywhere;padding:10px;background:var(--surface2);border-radius:10px;color:var(--muted)}.month-card-grid strong{display:block;margin-top:4px;color:var(--text);font-variant-numeric:tabular-nums}.month-explanation{margin:0 12px 12px;padding:10px;border-top:1px solid var(--line)}.month-explanation p{margin:8px 0}.help-link{white-space:nowrap}.planning-help{max-width:100ch}.planning-help li{margin:10px 0}.planning-help dl{display:grid;grid-template-columns:minmax(210px,.7fr) minmax(0,1.3fr);gap:8px 18px}.planning-help dt{font-weight:700}.planning-help dd{margin:0;color:var(--muted)}.net-worth-breakdown{margin:12px 0 22px}.net-worth-breakdown summary{cursor:pointer;font-weight:700}@media(max-width:1100px){.sidebar{width:195px}.hero-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-column:span 2}.two-col{grid-template-columns:minmax(0,1fr)}}@media(max-width:720px){.sidebar{display:none}.topbar{height:60px;padding:0 17px}.content{padding:22px 15px calc(104px + env(safe-area-inset-bottom))}.page-head{align-items:start;gap:12px}.page-head>div{flex-basis:100%}.page-head .secondary{display:inline-flex;width:100%}input,select,textarea{font-size:16px}.panel-head,.movement-head{align-items:stretch;flex-direction:column}.panel-head>*{min-width:0;max-width:100%}.movement-head label{min-width:0;width:100%}.account-row{flex-wrap:wrap}.account-row>div:nth-child(2){flex:1 1 120px}.account-row>strong,.tx-row>strong{min-width:0;max-width:100%;overflow-wrap:anywhere}button.small,.ghost.small,.icon-button{min-height:44px}.hero-grid{gap:9px}.hero,.metric,.panel{padding:17px}.hero-amount{font-size:2rem}.metric-value{font-size:1.28rem}.mobile-nav{position:fixed;z-index:20;left:0;right:0;bottom:0;display:flex;height:calc(66px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);border-top:1px solid var(--line);background:var(--surface)}.mobile-nav a,.mobile-nav button{display:grid;place-content:center;gap:2px;width:20%;color:var(--muted);background:transparent;border:0;text-align:center;font-size:.71rem}.mobile-nav a span{font-size:1.2rem}.mobile-nav a.active{color:var(--accent)}.mobile-more{position:fixed;z-index:21;right:8px;bottom:calc(68px + env(safe-area-inset-bottom));display:grid;width:min(290px,calc(100vw - 16px));max-height:70dvh;overflow:auto;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:13px;box-shadow:0 10px 30px #0003}.mobile-more a,.mobile-more button{padding:11px;text-align:left;color:var(--text);background:transparent;border:0}.overlay{align-items:flex-end;padding:env(safe-area-inset-top) 0 0}.dialog{width:100%;max-width:none;max-height:calc(100dvh - env(safe-area-inset-top));margin-top:auto;padding:20px 18px calc(22px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0}.login{grid-template-columns:minmax(0,1fr)}.login-art{display:none}.login-card{width:min(420px,88%)}.tx-row{flex-wrap:wrap}.tx-actions{width:100%}.goal-row>div{display:block}.goal-row small{display:block;text-align:left}}@media(max-width:390px){.hero-grid{grid-template-columns:minmax(0,1fr)}.hero{grid-column:auto}.debt-row{font-size:.69rem}.split-line{grid-template-columns:repeat(2,minmax(0,1fr))}.money-movement{padding:13px}}@media(max-width:720px){.import-grid{grid-template-columns:minmax(0,1fr)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}@media(max-width:720px){.movement-table-wrap,.movement-table-title{display:none}.month-cards{display:block;margin-top:14px}.movement-chart{min-height:150px}.movement-chart text{font-size:12px}.planning-help dl{grid-template-columns:minmax(0,1fr)}.planning-help dd{margin-bottom:10px}.planning-anchor .panel-head{align-items:start;flex-wrap:wrap}}@media(min-width:721px){.month-cards{display:none}}@media(max-width:390px){.month-card>summary{align-items:start;flex-direction:column}.month-card-grid,.history-completeness{grid-template-columns:minmax(0,1fr)}.plan-start-form{align-items:stretch}}.paycheck-plan{margin-top:20px}.paycheck-plan>p:first-of-type{max-width:78ch;color:var(--muted)}.paycheck-card,.paycheck-goal{margin-top:14px;padding:16px;border:1px solid var(--line);border-radius:13px;background:var(--surface2)}.paycheck-title{display:flex;align-items:start;justify-content:space-between;gap:14px}.paycheck-title h3{margin:0 0 4px}.paycheck-title strong,.paycheck-title span:last-child{overflow-wrap:anywhere}.paycheck-payments{display:grid;gap:8px;margin-top:12px}.paycheck-payment{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:10px 12px;border-radius:9px;background:var(--surface)}.paycheck-payment strong,.paycheck-payment small{min-width:0;overflow-wrap:anywhere}.paycheck-payment small{color:var(--muted)}.paycheck-payment .money{grid-column:2;grid-row:1 / span 2;align-self:center;text-align:right}.paycheck-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;margin:14px 0}.paycheck-breakdown>div{display:flex;justify-content:space-between;align-items:start;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.paycheck-breakdown dt{color:var(--muted)}.paycheck-breakdown dd{margin:0;font-weight:700;text-align:right;overflow-wrap:anywhere}.paycheck-available{color:var(--secondary);font-weight:700}.paycheck-allocation{margin-top:12px}.paycheck-allocation ul{margin:8px 0;padding-left:20px}.paycheck-goals-heading{margin-top:24px}.paycheck-month{display:grid;grid-template-columns:1fr minmax(0,2fr);gap:6px 14px;padding:12px 0;border-top:1px solid var(--line)}.paycheck-month p{margin:0}.paycheck-month small{grid-column:1 / -1;color:var(--muted)}.paycheck-goal+.paycheck-goal{margin-top:10px}.shortfall-options{padding:12px;border-left:3px solid var(--warning);border-radius:6px;background:var(--surface)}.shortfall-options p{margin-bottom:0}.account-row:has(>.account-symbol){display:grid;grid-template-columns:38px minmax(0,1fr);align-items:start;gap:5px 12px;min-height:0;margin:10px 0;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface2)}.account-row:has(>.account-symbol)>.account-symbol{grid-column:1;grid-row:1 / span 5}.account-row:has(>.account-symbol)>div:nth-child(2){grid-column:2;grid-row:1}.account-row:has(>.account-symbol)>div:nth-child(2)>strong,.account-row:has(>.account-symbol)>div:nth-child(2)>small{display:block;overflow-wrap:anywhere}.account-row:has(>.account-symbol)>div:nth-child(2)>small{margin-top:5px}.account-row:has(>.account-symbol)>strong{grid-column:2;grid-row:2;text-align:left}.account-row:has(>.account-symbol)>button,.account-row:has(>.account-symbol)>.occ-actions{grid-column:2;justify-self:start;max-width:100%}.account-row:has(>.account-symbol)>.occ-actions{grid-row:auto;min-width:0}@media(max-width:720px){.paycheck-card,.paycheck-goal{padding:13px}.paycheck-breakdown{grid-template-columns:minmax(0,1fr);gap:0}.paycheck-title{flex-direction:column}.paycheck-month{grid-template-columns:minmax(0,1fr)}.paycheck-month small{grid-column:1}.paycheck-payment{grid-template-columns:minmax(0,1fr)}.paycheck-payment .money{grid-column:1;grid-row:auto;text-align:left}.account-row:has(>.account-symbol){grid-template-columns:30px minmax(0,1fr)}}.brand small{display:block;font-size:.65rem;letter-spacing:0;font-weight:400;margin-top:5px;color:var(--muted)}.sidebar nav a{min-height:48px}.side-foot>a{padding:12px;color:var(--muted)}.money{white-space:nowrap;overflow-wrap:normal}.content{max-width:1600px}button,input,select,.select-trigger{min-height:44px}.small{min-height:44px!important}.card{box-shadow:0 3px 18px #203e3210}.hero-amount,.metric-value{overflow-wrap:normal;letter-spacing:-.04em}.plan-toolbar,.calendar-toolbar,.operation-tools{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin:0 0 22px}.plan-toolbar label,.calendar-toolbar label{margin:0}.plan-toolbar a,.operation-tools a{font-size:.87rem}.plan-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.segmented{display:flex;flex-wrap:wrap;background:var(--surface2);padding:4px;gap:4px;border-radius:12px}.segmented button{border:0;background:transparent;color:var(--muted);padding:10px 14px;border-radius:9px;font-size:.88rem}.segmented button.selected{background:var(--surface);color:var(--text);box-shadow:0 2px 6px #1c38321a;font-weight:650}.plan-hero{padding:30px;display:flex;justify-content:space-between;gap:30px;margin-bottom:18px;background:linear-gradient(125deg,var(--surface),var(--surface2))}.plan-hero .hero-amount{margin:14px 0 16px}.plan-hero-aside{max-width:230px;display:flex;flex-direction:column;gap:10px;align-self:center;color:var(--muted)}.plan-hero-aside strong{color:var(--text)}.plan-hero details{margin-top:18px}.plan-hero details summary{font-size:.9rem;color:var(--muted)}.status-chip{display:inline-flex;border-radius:30px;padding:8px 13px;font-size:.86rem;background:var(--surface2)}.status-chip.success{color:var(--secondary)}.status-chip.danger{color:var(--danger)}.plan-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:18px 0}.plan-metrics .metric{display:flex;flex-direction:column;gap:12px}.plan-metrics .metric>span{color:var(--muted);font-size:.88rem}.plan-metrics .metric>strong{font-size:clamp(1.15rem,2vw,1.8rem);font-variant-numeric:tabular-nums}.plan-metrics small{display:block;color:var(--muted);font-size:.78rem}.plan-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;align-items:start}.plan-right{display:grid;gap:20px}.month-list{display:grid;gap:12px}.month-card{border:1px solid var(--line);border-radius:14px;padding:16px 18px;transition:background .16s ease}.month-card[open]{background:var(--surface2)}.month-card summary{display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer;min-height:44px}.month-card summary strong{text-transform:capitalize}.month-card summary span{font-variant-numeric:tabular-nums;font-weight:650}.month-card summary:before{content:"›";font-size:1.4rem;transition:transform .16s}.month-card[open] summary:before{transform:rotate(90deg)}.money-breakdown{display:grid;gap:0;margin:14px 0}.money-breakdown>div{display:flex;align-items:start;justify-content:space-between;gap:15px;padding:10px 0}.money-breakdown dt{color:var(--muted);min-width:0;overflow-wrap:anywhere}.money-breakdown dd{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;font-weight:600}.money-breakdown small{display:block;font-size:.7rem}.money-breakdown .allocation-heading{border-top:1px solid var(--line);padding-top:16px;font-size:.73rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.money-breakdown .breakdown-total{border-top:1px solid var(--line);font-weight:700}.breakdown-total dt{color:var(--text)}.paycheck-card h2{margin-top:14px;overflow-wrap:anywhere}.paycheck-amount{display:block;font-size:clamp(1.5rem,2.7vw,2.1rem);font-variant-numeric:tabular-nums;margin:10px 0}.compact-goal{padding:16px 0;border-top:1px solid var(--line);display:grid;gap:8px}.compact-goal strong{overflow-wrap:anywhere}.compact-goal small{color:var(--muted)}.compact-goal progress{width:100%}.plan-calendar,.plan-details{margin-top:20px}.plan-details>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600}.plan-details .inline-form{margin-top:20px}.risk-card,.notice{padding:18px 22px;border:1px solid color-mix(in srgb,var(--danger) 35%,var(--line));border-radius:14px;background:var(--surface);margin:18px 0}.risk-card p{margin:10px 0;color:var(--muted)}.calendar-list{display:grid}.calendar-event{display:flex;align-items:center;gap:12px;padding:16px 0;border-top:1px solid var(--line);min-width:0;flex-wrap:wrap}.event-description{flex:1;min-width:130px;display:grid;gap:5px;overflow-wrap:anywhere}.event-description small{color:var(--muted)}.event-icon{width:38px;height:38px;border-radius:12px;background:var(--surface2);display:grid;place-items:center;color:var(--secondary);flex:none}.event-icon.expense{color:var(--accent)}.vacation-band{padding:12px 14px;background:var(--surface2);border-radius:10px;margin-bottom:10px;color:var(--secondary);display:flex;flex-wrap:wrap;gap:10px}.undo-toast{display:flex;flex-wrap:wrap;justify-content:space-between;gap:15px;align-items:center;border:1px solid var(--secondary);border-radius:12px;background:var(--surface);padding:15px;margin:15px 0}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}.weekday{padding:12px;text-align:center;background:var(--surface2);font-size:.8rem}.calendar-day,.calendar-blank{background:var(--surface);min-height:120px;padding:8px;min-width:0}.calendar-day>strong{font-size:.8rem;color:var(--muted)}.calendar-day .calendar-event{padding:8px 0;gap:4px;display:grid;border:0;font-size:.7rem}.calendar-day .event-icon,.calendar-day .occ-actions{display:none}.calendar-day .event-description{min-width:0}.calendar-day .event-description small{display:none}.calendar-day .money{font-size:.7rem;white-space:normal}.vacation-label{display:block;font-size:.65rem;color:var(--secondary);background:var(--surface2);padding:3px;border-radius:4px}.drawer-overlay{display:flex;justify-content:flex-end;padding:0!important}.dialog.drawer{width:min(620px,100%);max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:18px 0 0 18px;overflow-y:auto;padding:28px;padding-bottom:max(32px,env(safe-area-inset-bottom));animation:drawer-in .16s ease-out}.drawer .dialog-head{position:sticky;top:-28px;background:var(--surface);z-index:2;padding:14px 0}.drawer .dialog-head h2{overflow-wrap:anywhere}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.drawer details{margin:20px 0}.drawer details summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.drawer fieldset{border:1px solid var(--line);border-radius:12px;margin:16px 0;padding:12px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.preview-box{border:1px solid var(--secondary);border-radius:14px;padding:20px;margin:20px 0;background:var(--surface2)}.preview-box p{font-size:.9rem}.salary-preview-month{padding:14px 0;border-top:1px solid var(--line)}.salary-preview-month>small{display:block;margin-top:8px;color:var(--muted)}.employment-card{padding:20px 0;border-top:1px solid var(--line)}.employment-card p{font-size:.88rem}.employment-card .panel-head{margin-bottom:4px}.history-month{width:100%;display:block;text-align:left;border:1px solid var(--line);padding:12px;background:var(--surface);margin:8px 0;border-radius:8px}.category-bar{display:block;width:100%;text-align:left;border:0;background:transparent;padding:14px 4px;border-radius:10px}.category-bar.selected{background:var(--surface2)}.category-bar>span{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.category-bar progress{width:100%;height:9px}.skeleton{background:var(--surface2);min-height:140px;display:flex;align-items:center;justify-content:center;color:var(--muted)}@keyframes drawer-in{0%{transform:translate(20px);opacity:.5}to{transform:translate(0);opacity:1}}@media(max-width:1100px){.sidebar{width:200px}.content{padding-inline:22px}.plan-grid{grid-template-columns:minmax(0,1fr) minmax(0,.9fr)}.plan-hero-aside{display:none}.calendar-event .occ-actions{width:100%}}@media(max-width:768px){.plan-grid{grid-template-columns:1fr}.plan-metrics{gap:9px}.plan-metrics .metric{padding:15px 12px}.plan-metrics .metric>strong{font-size:1.14rem}.plan-metrics small{font-size:.7rem}.plan-hero{padding:22px}.calendar-toolbar{gap:10px}.dialog.drawer{border-radius:18px 18px 0 0;padding:22px;height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);align-self:flex-end}.drawer .dialog-head{top:-22px}.plan-actions .ghost{padding-inline:8px}.month-grid .calendar-day{padding:4px;min-height:90px}.month-grid .calendar-event,.calendar-day .money{font-size:.6rem}.calendar-day .event-description{overflow-wrap:anywhere}.event-description{min-width:100px}.month-card{padding:12px}.calendar-event>.money{font-size:.95rem}.calendar-event .occ-actions{flex-wrap:wrap}.category-bar>span{flex-wrap:wrap}}@media(max-width:430px){.content{padding:22px 14px 100px}.plan-metrics{grid-template-columns:1fr}.plan-metrics .metric{display:grid;grid-template-columns:1fr auto;gap:8px}.plan-metrics .metric small{grid-column:1/-1}.plan-metrics .metric>strong{font-size:1.25rem}.plan-actions{gap:6px}.plan-actions button{font-size:.83rem}.hero-amount{font-size:1.85rem}.form-grid{grid-template-columns:1fr}.money-breakdown>div{gap:8px}.money-breakdown{font-size:.87rem}.month-card summary span{font-size:.85rem}.month-card summary{gap:6px}.calendar-event{gap:8px}.segmented button{padding:9px;font-size:.77rem}.drawer .dialog-head h2{font-size:1.1rem}.calendar-toolbar label{width:100%}}.page-head>.plan-actions{flex:0 1 auto}.plan-actions .primary,.page-head>.primary{width:auto}.sidebar .brand{margin-inline:5px}.sidebar .brand small{max-width:130px}.history-missing{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.history-missing button{font-size:.82rem}.plan-toolbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));align-items:end}.plan-toolbar>*,.plan-grid>*,.plan-hero>*,.panel-head>*,.employment-card{min-width:0}.plan-toolbar input,.calendar-toolbar input{box-sizing:border-box;min-width:0;max-width:100%}.plan-toolbar .segmented{width:max-content;max-width:100%;align-self:end}.month-list .month-card summary{display:grid;grid-template-columns:18px minmax(0,1fr) minmax(0,1fr)}.month-list .month-card summary>strong{grid-column:2;grid-row:1;overflow-wrap:normal}.month-list .month-card summary>.month-summary-values{grid-column:2/-1;grid-row:2;min-width:0;white-space:normal;gap:var(--space-3)}.month-list .month-card summary>.month-summary-values>span{min-width:0;white-space:normal}.month-list .month-card summary>span:last-child{grid-column:3;grid-row:1;min-width:0;max-width:100%;overflow-x:auto;white-space:nowrap;text-align:right;justify-self:stretch}.money-breakdown>div{display:grid;grid-template-columns:minmax(0,1fr) auto;min-width:0}.money-breakdown dd{min-width:0;white-space:nowrap}.money-breakdown dt{line-height:1.5}.paycheck-amount,.hero-amount{white-space:nowrap;font-size:clamp(1.3rem,3vw,2.1rem)}.panel-head{flex-wrap:wrap}.panel-head h2,.panel-head h3{overflow-wrap:anywhere}.dialog.drawer{height:min(var(--drawer-height,100dvh),100dvh);max-height:min(var(--drawer-height,100dvh),100dvh);padding-bottom:max(32px,env(safe-area-inset-bottom))}.drawer form>.primary,.drawer .dialog-actions{margin-bottom:max(12px,env(safe-area-inset-bottom))}.calendar-selected{margin-top:16px}.calendar-day button{width:100%;padding:4px;border:0;background:transparent;text-align:left;color:var(--text)}.calendar-day[aria-selected=true]{background:var(--surface2)}.calendar-day small{display:block;overflow-wrap:anywhere}@media(max-width:1100px){.plan-toolbar>a{align-self:start}}@media(max-width:540px){.plan-toolbar{grid-template-columns:minmax(0,1fr);gap:12px}.plan-toolbar>label{width:100%}.plan-toolbar .segmented{width:100%;box-sizing:border-box;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.plan-toolbar .segmented button{min-width:0}.money-breakdown>div{grid-template-columns:minmax(0,1fr);gap:4px}.money-breakdown dd{text-align:right;justify-self:end}.month-list .month-card summary{grid-template-columns:16px minmax(0,1fr)}.month-list .month-card summary>.month-summary-values{grid-column:2;justify-self:stretch}.month-list .month-card summary>span:last-child{grid-column:2;grid-row:3;justify-self:stretch}.paycheck-amount,.hero-amount{font-size:1.5rem}.dialog.drawer{height:min(var(--drawer-height,100dvh),100dvh - 8px);max-height:min(var(--drawer-height,100dvh),100dvh - 8px)}}.month-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr))}.goals-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px;align-items:start}.goal-heading{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.goal-heading h2{margin:0;overflow-wrap:anywhere}.goal-card small,.actionable-destinations small{display:block;margin-top:4px;color:var(--muted)}.goal-card progress{width:100%;max-width:100%}.goal-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0}.goal-menu{position:relative}.goal-menu summary{cursor:pointer;padding:10px}.goal-menu[open]{display:flex;flex-direction:column}.goal-amount strong{font-size:1.35rem}.goal-card .plan-details{margin-top:16px}.money-breakdown dt{min-width:0;overflow-wrap:anywhere}.money-breakdown dd{max-width:100%;overflow-wrap:anywhere}.month-summary-values{display:flex;gap:12px;flex-wrap:wrap;font-weight:400;font-size:.85rem}@media(max-width:430px){.goals-grid{gap:12px}.goal-card{padding:16px}.actionable-destinations>div{gap:8px}.money-breakdown dd{font-size:.95rem}.goal-actions button{flex:1}.goal-menu{width:100%}}.payment-options{display:grid;gap:.5rem;margin-top:.7rem}.payment-options button,.funding-sources summary,.received-funding summary{display:flex;flex-wrap:wrap;gap:.5rem 1rem;justify-content:space-between;align-items:flex-start;text-align:left;width:100%}.payment-options button span,.funding-sources summary span,.received-funding summary span{flex:1 1 12rem;min-width:0;overflow-wrap:anywhere}.payment-options small,.funding-sources small,.received-funding small{display:block}.payment-options strong,.funding-sources summary strong,.received-funding summary strong{flex-shrink:0}.payment-options button[aria-pressed=true]{border-color:var(--accent);background:var(--surface-alt)}.paycheck-edit{display:flex;justify-content:center;margin-top:.5rem;white-space:normal}.received-funding{margin-block:1rem}.funding-sources{display:grid;gap:.5rem}.money-breakdown dt{overflow-wrap:anywhere}.money-breakdown dd{white-space:nowrap}.money-breakdown dt details p{font-weight:400}.payment-picker summary{cursor:pointer}.month-cashflow h3{margin-top:1rem}@media(max-width:430px){.money-breakdown>div{flex-wrap:wrap;gap:.3rem}.money-breakdown dd{margin-left:auto}.paycheck-card>.secondary{width:100%}.plan-hero .hero-amount{font-size:clamp(1.7rem,8vw,3rem)}}@media(prefers-reduced-motion:reduce){.payment-options *,.funding-sources *{transition:none!important;animation:none!important}}.financial-chat-page{display:grid;gap:16px;min-width:0}.financial-chat-header{display:flex;justify-content:space-between;align-items:center;gap:20px}.financial-chat-header p{margin:8px 0 0;color:var(--muted)}.chat-header-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.chat-state{max-width:760px}.financial-chat-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:14px;min-width:0;align-items:stretch}.chat-history{display:flex;flex-direction:column;min-height:520px;padding:16px;min-width:0}.chat-history-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.chat-history-close,.mobile-history-open{display:none}.chat-search input{font-size:.9rem}.chat-history-list{display:grid;align-content:start;gap:5px;overflow:auto;min-height:0;flex:1;margin:12px -5px;padding:0 5px}.chat-history-item{display:flex;align-items:center;gap:3px;min-width:0;padding:3px;border-radius:10px}.chat-history-item.selected{background:var(--surface2)}.chat-history-select{display:grid;flex:1;min-width:0;gap:4px;padding:9px 8px;border:0;border-radius:8px;color:var(--text);background:transparent;text-align:left}.chat-history-select strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}.chat-history-select small{color:var(--muted);font-size:.76rem}.chat-delete{width:34px;height:34px;flex:none;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:1.15rem}.chat-delete:hover{background:var(--surface);color:var(--danger)}.chat-owner-note{color:var(--muted);border-top:1px solid var(--line);padding-top:11px}.chat-column{display:flex;flex-direction:column;min-width:0;min-height:560px;height:min(76dvh,900px);padding:0;overflow:hidden}.chat-toolbar{display:flex;align-items:center;gap:14px;min-width:0;padding:13px 17px;border-bottom:1px solid var(--line)}.chat-model-label{display:grid;grid-template-columns:auto minmax(170px,1fr);align-items:center;gap:9px;min-width:0;flex:1;font-weight:650;font-size:.84rem}.chat-model-label select{min-height:40px;font-size:.86rem}.chat-freshness{display:flex;align-items:center;gap:7px;min-width:0;color:var(--muted);font-size:.78rem}.chat-freshness>span:first-child{color:var(--secondary);font-size:.65rem}.chat-coverage{padding:8px 17px;border-bottom:1px solid var(--line);color:var(--muted);font-size:.79rem}.chat-coverage summary,.chat-cost summary{cursor:pointer;font-weight:650;color:var(--muted)}.chat-coverage p,.chat-cost p{margin:7px 0 0;line-height:1.45}.chat-transcript{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px clamp(16px,3vw,38px);scrollbar-gutter:stable}.chat-welcome{max-width:650px;margin:5vh auto 28px;text-align:center}.chat-sparkle{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 14px;border:1px solid var(--line);border-radius:15px;color:var(--accent);background:var(--surface2);font-size:1.3rem}.chat-welcome p{color:var(--muted)}.chat-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:22px;text-align:left}.chat-suggestions button{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:56px;padding:12px;border:1px solid var(--line);border-radius:12px;color:var(--text);background:var(--surface);text-align:left;font-size:.87rem;line-height:1.35}.chat-suggestions button:hover{border-color:var(--accent);background:var(--surface2)}.chat-suggestions button span{flex:none;color:var(--accent)}.chat-message{display:flex;align-items:flex-start;gap:11px;max-width:920px;margin:0 auto 22px}.chat-message.chat-user{flex-direction:row-reverse}.chat-avatar{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid var(--line);border-radius:11px;color:var(--accent);background:var(--surface2);font-size:.71rem;font-weight:700}.chat-user .chat-avatar{color:var(--secondary)}.chat-message-body{min-width:0;max-width:min(88%,760px)}.chat-user .chat-message-body{padding:11px 14px;border:1px solid var(--line);border-radius:14px 4px 14px 14px;background:var(--surface2)}.chat-message-name{margin-bottom:5px;color:var(--muted);font-size:.75rem;font-weight:700}.chat-user .chat-message-name{text-align:right}.chat-markdown{min-width:0;overflow-wrap:anywhere;line-height:1.6}.chat-markdown p{margin:0 0 10px}.chat-markdown p:last-child{margin-bottom:0}.chat-markdown h3,.chat-markdown h4,.chat-markdown h5{margin:14px 0 7px}.chat-markdown ul,.chat-markdown ol{padding-left:1.35rem;margin:7px 0 12px}.chat-markdown li{padding-left:2px;margin:4px 0}.chat-markdown strong{font-weight:750}.chat-markdown code{padding:2px 5px;border-radius:5px;background:var(--surface2);font-family:ui-monospace,Consolas,monospace;font-size:.9em}.chat-markdown a,.chat-sources a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}.chat-table-wrap{max-width:100%;overflow-x:auto;margin:10px 0 13px;border:1px solid var(--line);border-radius:9px}.chat-table-wrap table{border-collapse:collapse;width:100%;font-size:.88rem}.chat-table-wrap th,.chat-table-wrap td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;white-space:normal}.chat-table-wrap th{background:var(--surface2)}.chat-table-wrap tr:last-child td{border-bottom:0}.chat-sources{display:flex;gap:6px 12px;flex-wrap:wrap;margin-top:10px;color:var(--muted);font-size:.78rem}.chat-sources span{font-weight:700}.chat-message-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px;color:var(--muted);font-size:.75rem}.chat-message-meta details{display:flex;gap:5px}.chat-message-meta summary{cursor:pointer}.chat-progress{display:flex;align-items:center;gap:9px;max-width:920px;margin:0 auto 12px;color:var(--muted);font-size:.84rem}.chat-spinner{width:15px;height:15px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:chat-spin .8s linear infinite}@keyframes chat-spin{to{transform:rotate(360deg)}}.chat-inline-error{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:920px;margin:8px auto;padding:10px 12px;border:1px solid color-mix(in srgb,var(--danger) 35%,var(--line));border-radius:10px;color:var(--danger);font-size:.86rem}.chat-new-messages{position:absolute;z-index:1;left:50%;bottom:12px;transform:translate(-50%);padding:9px 14px;border:1px solid var(--line);border-radius:999px;color:var(--text);background:var(--surface);box-shadow:0 5px 20px #0002}.chat-composer{display:grid;gap:8px;padding:12px 16px;border-top:1px solid var(--line);background:var(--surface)}.chat-composer textarea{min-height:58px;max-height:180px;resize:vertical;padding:12px 14px;border-radius:12px;line-height:1.45}.chat-composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.chat-composer-bottom>span{color:var(--muted);font-size:.75rem}.chat-composer-bottom .primary{display:flex;align-items:center;gap:9px;min-height:40px;padding:8px 14px}.chat-stop{min-height:40px;padding:8px 13px;border:1px solid var(--line);border-radius:9px;color:var(--danger);background:var(--surface)}.chat-cost{padding:9px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:.75rem}.chat-consent{max-width:850px;width:100%;margin-inline:auto}.chat-consent .panel-head{align-items:flex-start}.chat-consent .panel-head h2{margin-top:6px}.consent-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:18px 0}.consent-options label{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid var(--line);border-radius:12px;cursor:pointer}.consent-options label.active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.consent-options input{width:18px;height:18px;min-height:18px;flex:none;margin-top:2px;accent-color:var(--accent)}.consent-options span{display:grid;gap:5px}.consent-options small{color:var(--muted);line-height:1.45}.consent-provider-details{margin:10px 0;color:var(--muted);font-size:.85rem}.consent-provider-details summary{cursor:pointer;font-weight:650}.consent-provider-details p{margin:8px 0}.chat-consent-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:900px){.financial-chat-layout{grid-template-columns:minmax(0,1fr)}.chat-history{display:none}.mobile-history-open{display:inline-flex}.chat-column{height:min(75dvh,850px)}}@media(max-width:680px){.financial-chat-header{align-items:flex-start;flex-direction:column}.chat-header-actions{justify-content:flex-start;width:100%}.chat-toolbar{flex-wrap:wrap;gap:8px;padding:10px 12px}.chat-model-label{grid-template-columns:1fr;gap:4px;flex-basis:100%}.chat-freshness{font-size:.74rem}.chat-column{height:calc(100dvh - 250px);min-height:430px}.chat-suggestions{grid-template-columns:1fr}.chat-composer{padding:10px}.chat-composer-bottom>span{max-width:55%;font-size:.68rem}.consent-options{grid-template-columns:1fr}.financial-chat-layout.history-open:before{content:"";position:fixed;z-index:39;inset:0;background:#0007}.financial-chat-layout.history-open .chat-history{display:flex;position:fixed;z-index:40;inset:0 auto 0 0;width:min(88vw,340px);min-height:100dvh;border-radius:0 17px 17px 0}.financial-chat-layout.history-open .chat-history-close{display:inline-grid}}@media(max-width:430px){.chat-message{gap:7px}.chat-avatar{width:28px;height:28px}.chat-message-body{max-width:calc(100% - 35px)}.chat-transcript,.chat-cost{padding-inline:11px}.chat-suggestions button{font-size:.82rem}.chat-toolbar .chat-freshness{max-width:100%}}@media(prefers-reduced-motion:reduce){.chat-spinner{animation:none}.chat-new-messages{scroll-behavior:auto}}h1,h2,h3,h4{font-family:var(--font-display);letter-spacing:var(--letter-spacing-heading)}h1{font-size:var(--font-size-h1);line-height:var(--line-height-h1);font-weight:var(--font-weight-semibold)}h2{font-size:var(--font-size-h2);line-height:var(--line-height-h2)}h3{font-size:var(--font-size-h3);line-height:var(--line-height-h3)}button,a,input,select,textarea,summary{transition:color var(--motion-fast) ease-out,background-color var(--motion-fast) ease-out,border-color var(--motion-fast) ease-out}button:hover:not(:disabled),a.secondary:hover{filter:none}input,select,textarea,.select-trigger{min-height:var(--layout-control-height);padding:var(--space-2) var(--space-3);border-color:var(--color-border-control);border-radius:var(--radius-control)}textarea::placeholder{color:var(--color-text-muted);opacity:1}select.select-trigger{appearance:auto;background-image:none;padding-right:var(--space-3)}.select-content{background:var(--color-elevated);border-color:var(--color-border-control);border-radius:var(--radius-control);box-shadow:var(--shadow-floating);animation-duration:var(--motion-fast)}.select-scroll{background:var(--color-elevated)}.card{border-radius:var(--radius-card);box-shadow:var(--shadow-subtle)}.hero{background:var(--color-surface)}button.add,button.primary,.primary,button.secondary,.secondary,button.ghost,.ghost,.icon-button{min-height:var(--layout-control-height);padding:var(--space-2) var(--space-4);border-radius:var(--radius-control);font-weight:var(--font-weight-semibold)}button.add:hover:not(:disabled),button.primary:hover:not(:disabled),.primary:hover:not(:disabled){background:var(--color-accent-hover);border-color:var(--color-accent-hover)}button.secondary:hover:not(:disabled),a.secondary:hover,button.ghost:hover:not(:disabled),.icon-button:hover:not(:disabled){background:var(--color-surface-hover)}.icon-button{padding:var(--space-2);border-color:var(--color-border-control)}.overlay{z-index:40;background:var(--color-overlay)}.overlay:not(.drawer-overlay){justify-content:center}.dialog{background:var(--color-elevated);border-radius:var(--radius-sheet);box-shadow:var(--shadow-floating)}.dialog.drawer{padding:var(--space-6);padding-bottom:max(var(--space-8),env(safe-area-inset-bottom));animation-duration:var(--motion-sheet);border-radius:var(--radius-sheet) 0 0 var(--radius-sheet)}.drawer .dialog-head{top:calc(-1 * var(--space-6));background:var(--color-elevated)}.segmented button.selected{box-shadow:var(--shadow-subtle)}.status-chip.success{color:var(--color-success);background:var(--color-success-soft)}.status-chip.danger{color:var(--color-error);background:var(--color-error-soft)}.status-chip.warning{color:var(--color-warning);background:var(--color-warning-soft)}.app-shell{min-height:100dvh}.app-shell .sidebar{width:var(--layout-sidebar-width);height:100dvh;padding:0;overflow:hidden}.app-shell .brand{flex:none;min-height:var(--layout-topbar-height);margin:0;padding:var(--space-3) var(--space-4);gap:var(--space-3);border-bottom:1px solid var(--color-border);letter-spacing:0}.app-shell .brandmark{width:var(--layout-control-height);height:var(--layout-control-height);border-radius:var(--radius-control);background:var(--color-accent-soft);border-color:var(--color-border)}.app-shell .brand small{max-width:none;margin-top:var(--space-1);font-size:var(--font-size-caption)}.app-shell .nav-label{padding:var(--space-4) var(--space-4) var(--space-2);font-size:var(--font-size-caption);letter-spacing:var(--letter-spacing-label)}.app-shell .sidebar>nav{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:var(--space-2);gap:var(--space-1)}.app-shell .sidebar nav a,.shell-more nav a{display:flex;align-items:center;gap:var(--space-3);min-height:var(--layout-control-height);padding:var(--space-2) var(--space-3);border-radius:var(--radius-control);color:var(--color-text-muted);font-size:var(--font-size-label);line-height:var(--line-height-label);text-decoration:none}.app-shell .sidebar nav a>span{width:auto;font-size:inherit;text-align:left}.app-shell .sidebar nav a:hover,.shell-more nav a:hover{color:var(--color-text);background:var(--color-surface-hover)}.app-shell .sidebar nav a.active,.shell-more nav a.active{color:var(--color-accent);background:var(--color-accent-soft);font-weight:var(--font-weight-semibold);box-shadow:inset 3px 0 0 var(--color-accent)}.app-shell .side-foot{flex:none;gap:var(--space-2);padding:var(--space-3);border-top:1px solid var(--color-border)}.app-shell .side-foot>a{display:flex;align-items:center;gap:var(--space-3);min-height:var(--layout-control-height);padding:var(--space-2) var(--space-3);border-radius:var(--radius-control);font-size:var(--font-size-label);text-decoration:none}.app-shell .side-foot>a.active{color:var(--color-accent);background:var(--color-accent-soft)}.shell-tools-label{margin-top:var(--space-3)}.app-shell .topbar{position:sticky;top:0;z-index:15;min-width:0;height:var(--layout-topbar-height);padding-inline:var(--space-8)}.app-shell .topbar>div{min-width:0;gap:var(--space-3)}.app-shell .top-caption{color:var(--color-text-muted);font-size:var(--font-size-caption);letter-spacing:var(--letter-spacing-label)}.app-shell .content{width:100%;max-width:var(--layout-content-width);padding:var(--space-8) var(--space-8) var(--space-12)}.shell-theme{margin:0;gap:var(--space-2);color:var(--color-text-muted);font-size:var(--font-size-caption);font-weight:var(--font-weight-medium)}.app-shell .topbar .shell-context{display:flex;flex-direction:column;align-items:start;flex:1;min-width:0;gap:0;padding-right:var(--space-3)}.shell-route{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text);font-size:var(--font-size-label);font-weight:var(--font-weight-semibold)}.shell-identity{max-width:18rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text-muted);font-size:var(--font-size-label)}.shell-header-actions{flex:none}.shell-household-switch{display:grid;gap:var(--space-1);min-width:0;color:var(--color-text-muted);font-size:var(--font-size-caption)}.shell-household-switch select{max-width:15rem;min-width:9rem;height:var(--layout-control-height);font-size:var(--font-size-caption)}.shell-search-button{flex:none;width:var(--layout-control-height);padding:var(--space-2)}.shell-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:var(--space-3)}.shell-search-form label{display:grid;gap:var(--space-1);min-width:0;color:var(--color-text-muted);font-size:var(--font-size-caption)}.shell-search-form input{width:100%;min-width:0}.shell-search-results{display:grid;gap:var(--space-2);margin-top:var(--space-4)}.shell-search-results>a{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-width:0;padding:var(--space-3);border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--color-surface);color:var(--color-text);text-decoration:none}.shell-search-results>a>span{display:grid;gap:var(--space-1);min-width:0}.shell-search-results>a strong,.shell-search-results>a small{overflow-wrap:anywhere}.shell-search-results>a small{color:var(--color-text-muted)}.shell-search-results .ui-money{flex:none;text-align:right}.family-access{margin-top:var(--space-6)}.family-access-list{display:grid;gap:var(--space-2);margin-block:var(--space-4)}.family-member{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-width:0;padding:var(--space-3);border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--color-surface)}.family-member>div{display:grid;gap:var(--space-1);min-width:0}.family-member strong,.family-member small,.family-invite-token code{overflow-wrap:anywhere}.family-member small{color:var(--color-text-muted)}.family-invite-form{display:grid;grid-template-columns:minmax(12rem,1fr) auto;align-items:end;gap:var(--space-3);margin-top:var(--space-3)}.family-invite-form label{display:grid;gap:var(--space-1);min-width:0}.family-invite-token{display:grid;gap:var(--space-2);margin-top:var(--space-3);padding:var(--space-3);border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--color-surface-subtle)}.family-invite-token code{font-variant-numeric:var(--numeric-variant);-webkit-user-select:all;user-select:all}.family-join{display:grid;gap:var(--space-2);margin-top:var(--space-6);padding-top:var(--space-4);border-top:1px solid var(--color-border)}.family-join h3,.family-join p{margin:0}.family-join form{grid-template-columns:minmax(0,1fr) auto;align-items:end}.app-shell .brand:hover{text-decoration:none}.shell-more{display:grid;gap:var(--space-4)}.shell-more nav{display:grid;gap:var(--space-1)}.shell-more .ui-icon,.app-shell .sidebar .ui-icon,.app-shell .mobile-nav .ui-icon{flex:none;width:var(--layout-icon-size);height:var(--layout-icon-size)}.skip-link{position:fixed;top:var(--space-2);left:var(--space-2);z-index:100;padding:var(--space-3) var(--space-4);border-radius:var(--radius-control);color:var(--color-on-accent);background:var(--color-accent);transform:translateY(-200%)}.skip-link:focus{transform:translateY(0)}.ui-icon{display:inline-block;flex:none;width:1em;height:1em;vertical-align:-.125em}.ui-page-header{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:var(--space-4);margin-bottom:var(--space-6)}.ui-page-header-copy{flex:1 1 20rem;min-width:0}.ui-page-title{overflow-wrap:anywhere}.ui-page-description{max-width:75ch;margin:var(--space-2) 0 0;color:var(--color-text-muted)}.ui-eyebrow{margin:0 0 var(--space-2);color:var(--color-accent);font-size:var(--font-size-caption);font-weight:var(--font-weight-semibold)}.ui-page-actions{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-2);max-width:100%}.ui-money{display:inline-block;max-width:100%;overflow-x:auto;vertical-align:bottom;text-align:right;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:var(--numeric-variant)}.ui-money-unknown{color:var(--color-text-muted)}.ui-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);width:auto;max-width:100%;min-height:var(--layout-control-height);padding:var(--space-2) var(--space-4);border:1px solid transparent;border-radius:var(--radius-control);font-size:var(--font-size-label);line-height:var(--line-height-label);font-weight:var(--font-weight-semibold);text-decoration:none}.ui-button-primary{color:var(--color-on-accent);background:var(--color-accent);border-color:var(--color-accent)}.ui-button-primary:hover:not(:disabled){color:var(--color-on-accent);background:var(--color-accent-hover);border-color:var(--color-accent-hover)}.ui-button-secondary{color:var(--color-text);background:var(--color-surface);border-color:var(--color-border-control)}.ui-button-ghost{color:var(--color-text-muted);background:transparent}.ui-button-secondary:hover:not(:disabled),.ui-button-ghost:hover:not(:disabled){background:var(--color-surface-hover)}.ui-button-danger{color:var(--color-error);background:var(--color-error-soft);border-color:var(--color-error)}.ui-button-danger:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--color-error)}.ui-button:disabled{opacity:.55}.ui-button-busy{cursor:progress}.ui-icon-button{flex:none;width:var(--layout-control-height);min-width:var(--layout-control-height);height:var(--layout-control-height);padding:var(--space-2)}.ui-field,.ui-month-picker{display:grid;min-width:0;gap:var(--space-2)}.ui-field-label{font-size:var(--font-size-label);line-height:var(--line-height-label);font-weight:var(--font-weight-semibold);color:var(--color-text)}.ui-field-control{max-width:100%}.ui-field-control[aria-invalid=true]{border-color:var(--color-error)}.ui-field-hint{color:var(--color-text-muted);font-size:var(--font-size-caption);line-height:var(--line-height-caption)}.ui-month-picker input{font-variant-numeric:var(--numeric-variant)}.ui-tabs{min-width:0}.ui-tab-list{display:flex;max-width:100%;overflow-x:auto;gap:var(--space-1);padding:var(--space-1);background:var(--color-surface-subtle);border-radius:var(--radius-control)}.ui-tab{flex:1 0 auto;min-height:var(--layout-control-height);padding:var(--space-2) var(--space-3);border:1px solid transparent;border-radius:var(--radius-small);color:var(--color-text-muted);background:transparent;font-size:var(--font-size-label);font-weight:var(--font-weight-medium)}.ui-tab[aria-selected=true]{color:var(--color-text);background:var(--color-surface);border-color:var(--color-border-control);box-shadow:var(--shadow-subtle);font-weight:var(--font-weight-semibold)}.ui-tab-panel{min-width:0;padding-block:var(--space-4)}.ui-empty-state{display:grid;justify-items:start;gap:var(--space-2);padding:var(--space-6) 0;color:var(--color-text-muted)}.ui-empty-state>.ui-icon{width:var(--space-8);height:var(--space-8);color:var(--color-accent)}.ui-empty-state h3,.ui-empty-state p{margin:0}.ui-empty-action{margin-top:var(--space-2)}.ui-loading-state{display:grid;gap:var(--space-3);min-width:0;padding-block:var(--space-4)}.ui-skeleton{display:block;width:100%;min-height:var(--space-4);background:var(--color-surface-hover);border-radius:var(--radius-small)}.ui-skeleton-heading{width:60%;height:var(--space-6)}.ui-skeleton-line{height:var(--space-4)}.ui-inline-error{display:flex;align-items:start;flex-wrap:wrap;gap:var(--space-2);margin-block:var(--space-3);padding:var(--space-3);border:1px solid var(--color-error);border-radius:var(--radius-control);color:var(--color-error);background:var(--color-error-soft);font-size:var(--font-size-label)}.ui-inline-error>.ui-icon{margin-top:var(--space-1)}.ui-inline-error>div:not(.ui-error-action){flex:1;min-width:0;overflow-wrap:anywhere}.ui-error-action{margin-left:auto}.ui-status-badge{display:inline-flex;align-items:center;gap:var(--space-1);max-width:100%;padding:var(--space-1) var(--space-2);border-radius:var(--radius-full);font-size:var(--font-size-caption);line-height:var(--line-height-caption);font-weight:var(--font-weight-semibold)}.ui-status-neutral{color:var(--color-text);background:var(--color-surface-hover)}.ui-status-accent{color:var(--color-accent);background:var(--color-accent-soft)}.ui-status-success{color:var(--color-success);background:var(--color-success-soft)}.ui-status-warning{color:var(--color-warning);background:var(--color-warning-soft)}.ui-status-error{color:var(--color-error);background:var(--color-error-soft)}.ui-summary{display:grid;min-width:0;gap:var(--space-2);padding:var(--space-6);border:1px solid var(--color-border);border-radius:var(--radius-card);color:var(--color-text);background:var(--color-surface)}.ui-summary-label{color:var(--color-text-muted);font-size:var(--font-size-label);font-weight:var(--font-weight-medium)}.ui-summary-value{min-width:0;text-align:right;font-size:var(--font-size-h2);line-height:var(--line-height-h2);font-weight:var(--font-weight-semibold)}.ui-summary-description{margin:0;color:var(--color-text-muted);font-size:var(--font-size-caption);line-height:var(--line-height-caption)}.ui-summary-accent{border-color:var(--color-accent)}.ui-summary-success .ui-summary-value{color:var(--color-success)}.ui-summary-warning .ui-summary-value{color:var(--color-warning)}.ui-summary-error .ui-summary-value{color:var(--color-error)}.ui-goal-progress{display:grid;min-width:0;gap:var(--space-2)}.ui-goal-progress-label{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:var(--space-2);color:var(--color-text-muted);font-size:var(--font-size-caption)}.ui-goal-progress-label>span{min-width:0}.ui-goal-progress-track{height:var(--space-2);overflow:hidden;background:var(--color-surface-hover);border-radius:var(--radius-full)}.ui-goal-progress-fill{display:block;height:100%;width:var(--progress);background:var(--color-accent);border-radius:inherit}@media(max-width:768px){h1{font-size:var(--font-size-h1-mobile);line-height:var(--line-height-h1-mobile)}.app-shell .sidebar{display:none}.app-shell .topbar{padding-inline:var(--space-4)}.app-shell .topbar>div{gap:var(--space-2)}.shell-identity{display:none}.shell-household-switch{display:flex;align-items:center}.shell-household-switch select{max-width:9rem;min-width:7rem}.shell-search-form,.family-invite-form,.family-join form{grid-template-columns:minmax(0,1fr)}.app-shell .content{padding:var(--space-6) var(--space-4) calc(var(--layout-bottom-nav-height) + var(--space-6) + env(safe-area-inset-bottom))}.app-shell .mobile-nav{position:fixed;z-index:20;inset:auto 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:calc(var(--layout-bottom-nav-height) + env(safe-area-inset-bottom));padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);border-top:1px solid var(--color-border);background:var(--color-surface)}.app-shell .mobile-nav a,.app-shell .mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-1);width:auto;min-width:0;min-height:var(--layout-control-height);padding:var(--space-2) var(--space-1);border:0;color:var(--color-text-muted);background:transparent;font-size:var(--font-size-caption);line-height:var(--line-height-caption);text-decoration:none}.app-shell .mobile-nav a.active,.app-shell .mobile-nav button[aria-expanded=true]{color:var(--color-accent);background:var(--color-accent-soft);font-weight:var(--font-weight-semibold)}.app-shell.keyboard-open .mobile-nav,.app-shell.shell-dialog-open .mobile-nav,body.has-modal-dialog .app-shell .mobile-nav{display:none}.app-shell.keyboard-open .content{padding-bottom:var(--space-6)}.app-shell .two-col,.app-shell .plan-grid,.app-shell .hero-grid{grid-template-columns:minmax(0,1fr)}.app-shell .hero{grid-column:auto}.ui-page-header{align-items:start}.ui-page-header-copy{flex-basis:100%}.ui-page-actions{width:100%}.ui-page-actions .ui-button{flex:1 1 auto}.dialog.drawer{width:100%;border-radius:var(--radius-sheet) var(--radius-sheet) 0 0;padding:var(--space-4);padding-bottom:max(var(--space-6),env(safe-area-inset-bottom))}.drawer .dialog-head{top:calc(-1 * var(--space-4))}input,select,textarea{font-size:1rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.family-plan{display:grid;min-width:0;gap:var(--space-6)}.fp-toolbar{display:grid;grid-template-columns:minmax(12rem,.8fr) minmax(17rem,1fr) auto auto;align-items:end;gap:var(--space-4);min-width:0}.fp-toolbar-settings{display:none}.fp-toolbar .ui-tabs,.fp-toolbar .ui-month-picker,.fp-horizon{min-width:0}.fp-toolbar .ui-month-picker{width:100%}.fp-horizon{display:flex;flex-wrap:wrap;gap:var(--space-1)}.fp-summary{display:grid;gap:var(--space-3);min-width:0;padding:var(--space-5);border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface)}.fp-summary-heading,.fp-subsection-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);min-width:0}.fp-summary-heading h2,.fp-subsection-heading h2{margin:var(--space-1) 0 0}.fp-kicker{color:var(--color-accent);font-size:var(--font-size-caption);font-weight:var(--font-weight-semibold)}.fp-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-4)}.fp-summary-grid article{display:grid;align-content:start;min-width:0;gap:var(--space-2);padding:var(--space-4);border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--color-surface-subtle)}.fp-summary-grid article>span{color:var(--color-text-muted);font-size:var(--font-size-label)}.fp-summary-grid article>strong{min-width:0;font-size:var(--font-size-h2);line-height:var(--line-height-h2);text-align:right;font-variant-numeric:var(--numeric-variant)}.fp-summary-grid article>small{color:var(--color-text-muted);font-size:var(--font-size-caption)}.fp-summary-grid article.is-deficit{border-color:var(--color-error);background:var(--color-error-soft)}.fp-summary-grid article.is-residual{border-color:var(--color-border-control)}.fp-summary-facts{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-5);padding-top:var(--space-3);border-top:1px solid var(--color-border);color:var(--color-text-muted);font-size:var(--font-size-caption)}.fp-summary-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-3)}.fp-summary-groups>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:var(--space-2);min-width:0;font-size:var(--font-size-caption)}.fp-summary-groups>div span{color:var(--color-text-muted)}.fp-summary-groups>div strong{min-width:0;text-align:right;font-variant-numeric:var(--numeric-variant)}.fp-deficit,.fp-reconciliation{display:grid;gap:var(--space-2);min-width:0;padding:var(--space-4);border:1px solid var(--color-error);border-radius:var(--radius-card);color:var(--color-text);background:var(--color-error-soft)}.fp-deficit h2,.fp-reconciliation h2{margin:0;font-size:var(--font-size-h2)}.fp-deficit p,.fp-reconciliation p{margin:0}.fp-load-error,.fp-load-state{display:grid;gap:var(--space-2);min-width:0;padding:var(--space-4)}.fp-load-error h2{margin:0}.fp-paycheck-list,.fp-month-list,.fp-next-list{display:grid;gap:var(--space-4);min-width:0}.fp-paycheck{display:grid;gap:var(--space-4);min-width:0;overflow:visible;padding:var(--space-6);border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface)}.fp-paycheck-next{border-inline-start:4px solid var(--color-accent)}.fp-paycheck-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--space-4);min-width:0;padding-bottom:var(--space-4);border-bottom:1px solid var(--color-border)}.fp-income-icon,.ui-allocation-icon{display:grid;place-items:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-control);color:var(--color-accent);background:var(--color-accent-soft)}.fp-paycheck-heading{min-width:0}.fp-paycheck-heading h2{margin:var(--space-2) 0;overflow-wrap:anywhere}.fp-date-line{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-2);color:var(--color-text-muted);font-size:var(--font-size-caption)}.fp-nearest{color:var(--color-accent);font-weight:var(--font-weight-semibold)}.fp-income-amount{display:block;text-align:left;font-size:var(--font-size-h1);line-height:var(--line-height-h1);font-variant-numeric:var(--numeric-variant)}.fp-paycheck-actions{display:grid;justify-items:stretch;gap:var(--space-2)}.fp-paycheck-actions>a,.fp-allocation-actions>a,.fp-detail a,.fp-explanation a{display:inline-flex;align-items:center;min-height:var(--layout-control-height)}.fp-paycheck-tally{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-3);padding:var(--space-3) var(--space-4);border-radius:var(--radius-control);color:var(--color-text);background:var(--color-accent-soft)}.fp-paycheck-tally>span,.fp-paycheck-footer>span{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--space-2);min-width:0}.fp-paycheck-tally strong,.fp-paycheck-footer strong{font-variant-numeric:var(--numeric-variant)}.fp-allocation-section{display:grid;gap:var(--space-3);min-width:0;padding-top:var(--space-3)}.fp-section-heading{display:flex;align-items:end;justify-content:space-between;gap:var(--space-3);min-width:0}.fp-section-heading h3{display:flex;align-items:center;gap:var(--space-2);margin:0;font-size:var(--font-size-label)}.fp-section-heading small{color:var(--color-text-muted);font-size:var(--font-size-caption)}.fp-section-heading>strong{flex:none;font-variant-numeric:var(--numeric-variant)}.fp-allocation-list{display:grid;gap:var(--space-2);min-width:0}.ui-allocation-row{display:grid;grid-template-columns:var(--space-10) minmax(0,1fr) minmax(5rem,max-content);align-items:start;gap:var(--space-3);min-width:0;padding:var(--space-4);border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--color-surface-subtle)}.ui-allocation-icon{grid-column:1;grid-row:1/span 2}.ui-allocation-copy{display:grid;align-content:start;gap:var(--space-2);min-width:0}.ui-allocation-title{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-2);min-width:0;font-weight:var(--font-weight-semibold);overflow-wrap:anywhere}.ui-allocation-caption{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-4);min-width:0;color:var(--color-text-muted);font-size:var(--font-size-caption)}.ui-allocation-amount{grid-column:3;grid-row:1;max-width:100%;text-align:right;font-size:var(--font-size-label);font-variant-numeric:var(--numeric-variant)}.ui-allocation-actions{grid-column:3;grid-row:2;min-width:0;text-align:right;font-size:var(--font-size-caption);overflow-wrap:anywhere}.ui-allocation-details{grid-column:2/-1;min-width:0}.fp-paycheck-footer{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-3) var(--space-5);min-width:0;padding-top:var(--space-3);border-top:1px solid var(--color-border)}.fp-paycheck-explanation{flex:1 1 100%;min-width:0}.fp-paycheck-explanation summary,.fp-detail summary,.fp-explanation>summary{display:flex;align-items:center;min-height:var(--layout-control-height);gap:var(--space-2);cursor:pointer;font-weight:var(--font-weight-semibold)}.fp-covered{padding-block:var(--space-3);border-top:1px solid var(--color-border)}.fp-covered p{margin:var(--space-1) 0}.fp-detail{min-width:0;border-top:1px solid var(--color-border)}.fp-detail .funding-sources{padding-block:var(--space-2)}.fp-month-card{min-width:0;overflow:hidden;border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface)}.fp-month-title{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:var(--space-3);min-height:var(--space-12);padding:var(--space-4) var(--space-5);cursor:pointer;list-style:none}.fp-month-title::-webkit-details-marker{display:none}.fp-month-title h2{margin:0;font-size:var(--font-size-h2)}.fp-month-free{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin-inline-start:auto}.fp-month-free>span{color:var(--color-text-muted);font-size:var(--font-size-caption)}.fp-month-free>strong{font-variant-numeric:var(--numeric-variant)}.fp-month-body{display:grid;gap:var(--space-3);min-width:0;padding:0 var(--space-5) var(--space-5);border-top:1px solid var(--color-border)}.fp-month-body>.muted{margin:var(--space-3) 0 0}.fp-unknown{padding:var(--space-3);border-inline-start:3px solid var(--color-warning);color:var(--color-text);background:var(--color-warning-soft)}.fp-next-payments,.fp-explanation{display:grid;gap:var(--space-4);min-width:0;padding:var(--space-5);border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface)}.fp-next-row{min-width:0;overflow:hidden;padding:var(--space-4)}.fp-next-row>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--space-2) var(--space-4);min-height:var(--layout-control-height);cursor:pointer}.fp-next-row>summary>strong{text-align:right;font-variant-numeric:var(--numeric-variant)}.fp-next-row>summary>span:last-of-type{grid-column:1/-1;color:var(--color-text-muted);font-size:var(--font-size-caption)}.fp-next-row>.fp-paycheck{margin-top:var(--space-4);padding:var(--space-4)}.fp-explanation>summary{cursor:pointer;list-style:none}.fp-explanation>summary::-webkit-details-marker{display:none}.fp-explanation>div{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-3) var(--space-5)}.fp-explanation>div>p{flex:1 1 100%;margin:0;color:var(--color-text-muted)}@media(max-width:1100px){.fp-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:end}.fp-toolbar>.fp-horizon{grid-column:2;grid-row:2}.fp-paycheck-header{grid-template-columns:auto minmax(0,1fr)}.fp-paycheck-actions{grid-column:2;display:flex;align-items:center;flex-wrap:wrap}}@media(max-width:768px){.fp-summary,.fp-paycheck,.fp-next-payments,.fp-explanation{padding:var(--space-4)}.fp-summary-grid{grid-template-columns:minmax(0,1fr);gap:var(--space-2)}.fp-summary-grid article{grid-template-columns:minmax(0,1fr) auto;align-items:baseline}.fp-summary-grid article>small{grid-column:1/-1}.fp-summary-grid article>strong{text-align:right}.fp-summary-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3)}.fp-toolbar{grid-template-columns:minmax(0,1fr);align-items:stretch}.fp-toolbar .fp-horizon{grid-column:1;grid-row:auto}.fp-toolbar>.ui-tabs{width:100%}.fp-horizon .ui-button{flex:1 1 auto}.fp-paycheck-header{grid-template-columns:auto minmax(0,1fr);gap:var(--space-3)}.fp-paycheck-actions{grid-column:1/-1;align-items:flex-start}.fp-month-body,.fp-month-title{padding-inline:var(--space-3)}}@media(max-width:430px){.ui-allocation-row{grid-template-columns:var(--space-8) minmax(0,1fr);gap:var(--space-2);padding:var(--space-3)}.ui-allocation-icon{width:var(--space-8);height:var(--space-8)}.ui-allocation-amount{grid-column:2;grid-row:2;justify-self:end}.ui-allocation-actions{grid-column:2;grid-row:3;text-align:right}.ui-allocation-details{grid-column:1/-1}.fp-summary-groups{grid-template-columns:minmax(0,1fr)}.fp-paycheck-tally{align-items:flex-start;flex-direction:column}.fp-month-free{flex:1 1 100%;margin-inline-start:0}}.dashboard-next-action{display:grid;grid-template-columns:minmax(12rem,.75fr) minmax(0,1.6fr);align-items:center;gap:var(--space-4);margin-block:var(--space-6);min-width:0}.dashboard-next-action h2{margin:var(--space-1) 0 0;font-size:var(--font-size-h3)}.dashboard-next-content{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:var(--space-4);min-width:0}.dashboard-next-content>div{display:grid;gap:var(--space-1);min-width:0}.dashboard-next-content>div strong{overflow-wrap:anywhere}.dashboard-next-content small{color:var(--color-text-muted)}.transaction-groups{display:grid;gap:var(--space-6)}.transaction-filters{display:grid;grid-template-columns:minmax(12rem,2fr) repeat(3,minmax(8rem,1fr));gap:var(--space-3);margin-block:var(--space-4)}.transaction-filters label{display:grid;align-content:start;gap:var(--space-1);min-width:0;color:var(--color-text-muted);font-size:var(--font-size-caption)}.transaction-filters input,.transaction-filters select{min-width:0;width:100%}.quick-parse{display:grid;gap:var(--space-3);min-width:0;margin:0 0 var(--space-4);padding:var(--space-4);border:1px solid var(--color-border);border-radius:var(--radius-panel);background:var(--color-surface-subtle)}.quick-parse legend{padding-inline:var(--space-2);font-weight:var(--font-weight-semibold)}.quick-parse label{display:grid;gap:var(--space-1);min-width:0}.quick-parse textarea{min-height:5.5rem;resize:vertical}.quick-parse p{margin:0;color:var(--color-text-muted);font-size:var(--font-size-caption)}.transaction-day{min-width:0}.transaction-day-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-3);padding-block:var(--space-2);border-bottom:1px solid var(--color-border)}.transaction-day-head h3{margin:0;text-transform:capitalize;font-size:var(--font-size-h3)}.transaction-day-head span{flex:none;color:var(--color-text-muted);font-size:var(--font-size-caption)}.transaction-day .tx-list{padding-top:var(--space-2)}.transaction-day .tx-row{min-width:0}.tx-detail{min-width:0;overflow-wrap:anywhere}.tx-detail small{line-height:1.45}.tx-cancelled{opacity:.68}.goal-fact-percent{margin-left:var(--space-2);color:var(--color-success);font-size:var(--font-size-caption);font-weight:var(--font-weight-semibold);white-space:nowrap}.analytics-period{margin-bottom:var(--space-4)}.analytics-period-note{padding:var(--space-3) var(--space-4);border-radius:var(--radius-control);background:var(--color-warning-soft);color:var(--color-warning)}.analytics-metrics .metric{min-width:0}.analytics-metrics .metric strong{overflow-wrap:anywhere}.analytics-comparison{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);margin-block:var(--space-4)}.analytics-comparison>div{display:grid;gap:var(--space-1);min-width:0}.analytics-comparison small{color:var(--color-text-muted);overflow-wrap:anywhere}.analytics-comparison p{margin:0;max-width:44rem}.analytics-grid{align-items:start}.analytics-grid .panel-head{align-items:center}.analytics-grid .panel-head small{color:var(--color-text-muted)}.analytics-trend{margin-block:var(--space-4);min-width:0}.analytics-month-bars{display:grid;grid-auto-columns:minmax(3.5rem,1fr);grid-auto-flow:column;align-items:end;gap:var(--space-3);min-width:0;overflow:auto;padding:var(--space-3) 0}.analytics-month-bar{display:grid;justify-items:center;gap:var(--space-1);min-width:3.5rem;text-align:center;font-variant-numeric:var(--numeric-variant)}.analytics-month-bar strong{font-size:var(--font-size-caption);font-weight:var(--font-weight-medium);text-transform:capitalize}.analytics-month-bar span{font-size:.7rem;color:var(--color-text-muted);overflow-wrap:anywhere}.analytics-month-bar small{font-size:.65rem;color:var(--color-warning)}.analytics-bar-track{display:flex;align-items:end;width:2rem;height:8rem;overflow:hidden;border-radius:var(--radius-control);background:var(--color-surface-subtle)}.analytics-bar-fill{width:100%;min-height:0;border-radius:var(--radius-control) var(--radius-control) 0 0;background:var(--color-accent)}.analytics-trend-table{max-width:100%;margin-top:var(--space-3);overflow-x:auto;border:1px solid var(--color-border);border-radius:var(--radius-control)}.category-chart{min-width:0}.analytics-table-wrap{width:100%;max-width:100%;overflow:auto;border:1px solid var(--color-border);border-radius:var(--radius-control)}.analytics-table{width:100%;min-width:42rem;border-collapse:collapse;table-layout:fixed;font-variant-numeric:var(--numeric-variant)}.analytics-table th,.analytics-table td{padding:var(--space-3);border-bottom:1px solid var(--color-border);text-align:left;overflow-wrap:anywhere;vertical-align:top}.analytics-table thead th{background:var(--color-surface-subtle);font-size:var(--font-size-caption)}.analytics-table-hint{display:none;margin:0 0 var(--space-2);color:var(--color-text-muted);font-size:var(--font-size-caption)}.analytics-table tbody tr:last-child>*{border-bottom:0}.analytics-table td:not(:first-child){text-align:right}.category-table-filter{min-height:unset;padding:0;border:0;background:transparent;color:var(--color-accent);text-align:left;text-decoration:underline;text-underline-offset:2px}.analytics-transactions{min-width:0}.analytics-months .account-row{flex-wrap:wrap;gap:var(--space-3)}.onboarding-page{display:grid;gap:var(--space-4);min-width:0}.onboarding-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--space-6);padding:clamp(var(--space-4),3vw,var(--space-8))}.onboarding-intro h1{margin:var(--space-3) 0;font-size:var(--font-size-h1)}.onboarding-intro p{max-width:60rem;margin:var(--space-2) 0 0;color:var(--color-text-muted)}.onboarding-intro .ui-status-badge{width:max-content}.onboarding-layout{display:grid;grid-template-columns:minmax(15rem,.72fr) minmax(0,1.6fr);align-items:start;gap:var(--space-4);min-width:0}.onboarding-route,.onboarding-step-panel{min-width:0;padding:var(--space-6)}.onboarding-route{position:sticky;top:var(--space-4)}.onboarding-route h2{display:flex;align-items:center;gap:var(--space-2);font-size:var(--font-size-h3)}.onboarding-route ol{display:grid;gap:var(--space-2);padding:0;margin:var(--space-4) 0;list-style:none}.onboarding-route li{min-width:0;border-radius:var(--radius-control)}.onboarding-route li.current{background:var(--color-surface-subtle)}.onboarding-route li button{display:flex;align-items:flex-start;gap:var(--space-3);width:100%;min-height:var(--layout-touch-target);padding:var(--space-3);border:0;border-radius:inherit;background:transparent;color:var(--color-text);text-align:left}.onboarding-route li button>span:last-child{display:grid;gap:var(--space-1);min-width:0}.onboarding-route li small{color:var(--color-text-muted);overflow-wrap:anywhere}.onboarding-step-number{display:grid;place-items:center;flex:none;width:2rem;height:2rem;border-radius:50%;background:var(--color-surface-subtle);font-variant-numeric:var(--numeric-variant)}.onboarding-route li.done .onboarding-step-number{background:var(--color-success-soft);color:var(--color-success)}.onboarding-progress{height:.5rem;overflow:hidden;border-radius:var(--radius-full);background:var(--color-surface-subtle)}.onboarding-progress span{display:block;height:100%;border-radius:inherit;background:var(--color-success);transition:width var(--motion-normal) var(--motion-easing)}.onboarding-step-panel>header{padding-bottom:var(--space-4);border-bottom:1px solid var(--color-border)}.onboarding-step-panel>header h2{margin:var(--space-2) 0;font-size:var(--font-size-h2)}.onboarding-step-panel>header p{margin:0;color:var(--color-text-muted)}.onboarding-eyebrow{color:var(--color-text-muted);font-size:var(--font-size-caption);font-weight:var(--font-weight-semibold);text-transform:uppercase;letter-spacing:.04em}.onboarding-facts{display:grid;gap:var(--space-3);padding-block:var(--space-4)}.onboarding-fact{display:grid;gap:var(--space-3);min-width:0;padding:var(--space-4);border-radius:var(--radius-card);background:var(--color-surface-subtle)}.onboarding-fact h3,.onboarding-fact p{margin:0}.onboarding-fact p{color:var(--color-text-muted)}.onboarding-hero-money{font-size:var(--font-size-h1);font-weight:var(--font-weight-semibold)}.onboarding-data-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);min-width:0;padding-block:var(--space-2);border-top:1px solid var(--color-border)}.onboarding-data-row>span{display:grid;gap:var(--space-1);min-width:0}.onboarding-data-row strong,.onboarding-data-row small{overflow-wrap:anywhere}.onboarding-data-row small{color:var(--color-text-muted)}.onboarding-data-row .ui-money{flex:none;text-align:right}.onboarding-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-2);padding-top:var(--space-4);border-top:1px solid var(--color-border)}.onboarding-shortcuts{display:flex;flex-wrap:wrap;gap:var(--space-2)}.onboarding-open-link{display:inline-flex;align-items:center;justify-content:center;min-height:var(--layout-control-height);padding-inline:var(--space-4);border-radius:var(--radius-control);background:var(--color-accent);color:var(--color-on-accent);font-weight:var(--font-weight-semibold);text-decoration:none}.onboarding-retry{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-2);margin:0;color:var(--color-text-muted);font-size:var(--font-size-caption)}@media(max-width:768px){.onboarding-layout{grid-template-columns:minmax(0,1fr)}.onboarding-route{position:static}.transaction-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-next-action{grid-template-columns:minmax(0,1fr);gap:var(--space-3)}.dashboard-next-content{grid-template-columns:minmax(0,1fr) auto;gap:var(--space-3)}.dashboard-next-content .secondary{grid-column:1/-1;width:100%}.analytics-comparison{align-items:flex-start;flex-direction:column}.month-grid{grid-template-columns:minmax(0,1fr);gap:var(--space-1);background:transparent;border:0;overflow:visible}.month-grid .weekday,.month-grid .calendar-blank{display:none}.month-grid .calendar-day{display:grid;grid-template-columns:3.75rem minmax(0,1fr);align-items:start;gap:var(--space-2);min-height:0;padding:var(--space-2);border:1px solid var(--color-border);border-radius:var(--radius-control)}.month-grid .calendar-day>button{width:3.75rem;min-height:44px;text-align:center}.month-grid .calendar-day .calendar-event{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--space-2);font-size:var(--font-size-caption)}.month-grid .calendar-day .event-icon{display:grid}.month-grid .calendar-day .event-description small{display:block}.month-grid .calendar-day .money{font-size:var(--font-size-label);white-space:nowrap}}@media(min-width:431px){.family-plan{gap:var(--space-4);margin-top:calc(-1 * var(--space-2))}}@media(max-width:430px){.onboarding-intro{grid-template-columns:minmax(0,1fr);gap:var(--space-3);padding:var(--space-4)}.onboarding-intro h1{font-size:1.45rem}.onboarding-intro>button{width:100%}.onboarding-route,.onboarding-step-panel{padding:var(--space-4)}.onboarding-actions{display:grid;grid-template-columns:1fr 1fr}.onboarding-actions .onboarding-open-link{grid-column:1/-1;grid-row:1}.onboarding-actions>button:last-child{grid-column:1/-1}.onboarding-shortcuts{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.onboarding-data-row{align-items:flex-start;flex-direction:column;gap:var(--space-1)}.onboarding-data-row .ui-money{text-align:left}.transaction-filters{grid-template-columns:minmax(0,1fr)}.dashboard-next-content{grid-template-columns:minmax(0,1fr);align-items:start}.dashboard-next-content>.ui-money{justify-self:start}.dashboard-next-content .secondary{grid-column:auto}.transaction-day-head h3{font-size:var(--font-size-label)}.analytics-comparison{padding:var(--space-4)}.analytics-table{font-size:var(--font-size-caption)}.analytics-table th,.analytics-table td{padding:var(--space-2)}.analytics-table-hint{display:block}}.goals-page{display:grid;gap:var(--space-5);min-width:0}.goals-page>.ui-page-header .ui-page-title{font-family:var(--font-editorial);font-weight:500;letter-spacing:-.03em}.goals-page .goal-detail>h3{font-family:var(--font-body)}.goals-page>.ui-tabs{margin-top:calc(-1 * var(--space-2))}.goals-page .goals-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:var(--space-4);min-width:0;align-items:stretch}.goals-page .goal-card{display:grid;align-content:start;gap:var(--space-3);min-width:0;padding:var(--space-5);border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface);box-shadow:var(--shadow-subtle)}.goals-page .goal-heading{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:var(--space-3);min-width:0}.goals-page .goal-heading>div{min-width:0}.goals-page .goal-heading h2{font-size:var(--font-size-h2);overflow-wrap:anywhere}.goal-type-label,.goals-page .goal-heading p{margin:var(--space-1) 0 0;color:var(--color-text-muted);font-size:var(--font-size-caption)}.goal-fact-row{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-3);min-width:0}.goal-fact-row>div{min-width:0}.goal-fact-row .muted{display:block;margin-bottom:var(--space-1);font-size:var(--font-size-caption)}.goals-page .goal-amount{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--space-1);margin:0;font-size:var(--font-size-h2);font-weight:var(--font-weight-semibold);font-variant-numeric:var(--numeric-variant)}.goals-page .goal-amount>span{color:var(--color-text-muted);font-size:var(--font-size-label);font-weight:var(--font-weight-normal)}.goals-page .goal-fact-percent{margin:0;color:var(--color-success);font-size:var(--font-size-label);font-weight:var(--font-weight-semibold);font-variant-numeric:var(--numeric-variant)}.goal-meta-row,.goal-detail-row{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-3);min-width:0;padding-block:var(--space-2);border-top:1px solid var(--color-border)}.goal-meta-row>span,.goal-detail-row>span{min-width:0;color:var(--color-text-muted);overflow-wrap:anywhere}.goal-meta-row>strong,.goal-detail-row>strong{flex:none;max-width:65%;text-align:right;overflow-wrap:anywhere;font-variant-numeric:var(--numeric-variant)}.goal-forecast{display:grid;gap:var(--space-2);padding:var(--space-3);border-radius:var(--radius-control);background:var(--color-surface-subtle)}.goal-forecast p{margin:0}.goals-page .goal-actions{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;margin:var(--space-1) 0 0}.goals-page .goal-menu{position:relative;margin-left:auto}.goals-page .goal-menu>summary{display:grid;place-items:center;min-width:var(--layout-control-height);min-height:var(--layout-control-height);padding:var(--space-2);border:1px solid var(--color-border);border-radius:var(--radius-control);cursor:pointer;list-style:none}.goals-page .goal-menu>summary::-webkit-details-marker{display:none}.goals-page .goal-menu[open]{display:block}.goals-page .goal-menu>div{position:absolute;z-index:5;right:0;bottom:calc(100% + var(--space-1));display:grid;min-width:12rem;padding:var(--space-1);border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--color-elevated);box-shadow:var(--shadow-floating)}.goals-page .goal-menu button{min-height:40px;padding:var(--space-2) var(--space-3);border:0;border-radius:var(--radius-small);background:transparent;color:var(--color-text);text-align:left}.goals-page .goal-menu button:hover,.goals-page .goal-menu button:focus-visible{background:var(--color-surface-hover)}.goals-page .goal-menu .destructive-action{color:var(--color-error)}.goals-empty-span{grid-column:1/-1}.goal-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-6);padding:var(--space-4) var(--space-5);border-block:1px solid var(--color-border);background:var(--color-surface-subtle)}.goal-summary article{display:grid;gap:var(--space-1);min-width:0;padding-inline:var(--space-3);border-right:1px solid var(--color-border)}.goal-summary article:last-child{border-right:0}.goal-summary article>span{color:var(--color-text-muted);font-size:var(--font-size-caption);font-weight:var(--font-weight-medium)}.goal-summary article>strong{font-family:var(--font-editorial);font-size:var(--font-size-h2);font-weight:500;font-variant-numeric:var(--numeric-variant);overflow-wrap:anywhere}.goal-summary article>small{color:var(--color-text-muted)}.goals-notice{margin:0;padding:var(--space-3) var(--space-4);border-radius:var(--radius-control);background:var(--color-success-soft);color:var(--color-success)}.goal-form,.goal-detail{display:grid;gap:var(--space-4);min-width:0}.goal-form>p,.goal-detail>p{margin:0}.goal-form>label{display:grid;gap:var(--space-1);min-width:0;font-weight:var(--font-weight-medium)}.goal-form input:not([type=checkbox]),.goal-form select{width:100%;min-width:0;min-height:var(--layout-control-height);padding:var(--space-2) var(--space-3);border:1px solid var(--color-border-control);border-radius:var(--radius-control);background:var(--color-surface);color:var(--color-text)}.goal-form .check-label,.check-label{display:flex;align-items:flex-start;gap:var(--space-2);font-weight:var(--font-weight-normal)}.goal-form .check-label input,.check-label input{flex:none;margin-top:.35rem}.goal-form .risk-card{margin:0;padding:var(--space-4)}.goal-form .goal-actions{display:flex;gap:var(--space-2);flex-wrap:wrap}.goal-detail h3{margin-top:var(--space-2);font-size:var(--font-size-h3)}.goal-detail-disclosure{padding-top:var(--space-2);border-top:1px solid var(--color-border)}.goal-detail-disclosure>summary{min-height:var(--layout-control-height);cursor:pointer;font-weight:var(--font-weight-semibold)}.goal-completion-mode{padding:var(--space-3);border-radius:var(--radius-control);background:var(--color-surface-subtle)}.family-plan>.ui-page-header .ui-page-title{font-family:var(--font-editorial);font-weight:500;letter-spacing:-.03em}.family-plan .fp-summary-grid strong,.family-plan .fp-income-amount{font-family:var(--font-editorial);font-weight:500;letter-spacing:-.025em}@media(max-width:768px){.goal-summary{grid-template-columns:minmax(0,1fr);gap:0;padding:var(--space-2) var(--space-4)}.goal-summary article,.goal-summary article:last-child{grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:var(--space-3) 0;border-right:0;border-bottom:1px solid var(--color-border)}.goal-summary article:last-child{border-bottom:0}.goal-summary article>strong{grid-column:2;grid-row:1/3;font-size:var(--font-size-h3);text-align:right}.goal-summary article>small{grid-column:1}.goals-page .goals-grid{grid-template-columns:minmax(0,1fr)}.goals-page .goal-card{padding:var(--space-4)}.goals-page .goal-actions>.ui-button{flex:1 1 9rem}.goal-meta-row,.goal-detail-row{gap:var(--space-2)}}@media(max-width:430px){.goals-page .goal-actions>.ui-button{flex:1 1 100%}.goals-page .goal-menu{margin-left:0}.goals-page .goal-menu>div{right:0;bottom:auto;top:calc(100% + var(--space-1))}.goal-meta-row>strong,.goal-detail-row>strong{max-width:58%}}.fp-plan-status{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:var(--space-3);min-width:0;padding:var(--space-4) var(--space-6);border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface-subtle)}.fp-plan-status>svg{width:var(--layout-icon-size);height:var(--layout-icon-size);color:var(--color-success)}.fp-plan-status>div{min-width:0}.fp-plan-status strong{font-size:var(--font-size-label)}.fp-plan-status p{margin:var(--space-1) 0 0;color:var(--color-text-muted);font-size:var(--font-size-caption)}.fp-plan-status a{white-space:nowrap;font-size:var(--font-size-caption)}.fp-plan-status.is-warning{border-color:var(--color-warning);background:var(--color-warning-soft)}.fp-plan-status.is-warning>svg{color:var(--color-warning)}.family-plan>.ui-page-header{align-items:center;margin-bottom:0}.fp-heading-controls{display:flex;align-items:end;justify-content:flex-end;gap:var(--space-3);min-width:0;flex-wrap:wrap}.fp-heading-controls .ui-month-picker{min-width:10rem}.fp-heading-controls .ui-tabs{min-width:15rem}.fp-heading-controls .ui-tab-list{min-height:var(--layout-control-height)}.fp-toolbar{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap}.fp-toolbar .fp-horizon{margin-right:auto}.fp-summary-three{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-4)}.fp-summary-three article{padding:var(--space-2) var(--space-4);border:0!important;border-right:1px solid var(--color-border)!important;border-radius:0!important;background:transparent!important}.fp-summary-three article:last-child{border-right:0!important}.fp-summary-three article>span{text-transform:uppercase;letter-spacing:var(--letter-spacing-label)}.fp-summary-three article>strong{font-size:var(--font-size-h1);line-height:var(--line-height-h1);text-align:left!important}.fp-summary-structure{display:grid;gap:var(--space-3);padding-top:var(--space-3);border-top:1px solid var(--color-border)}.fp-summary-structure-title{display:flex;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap;font-size:var(--font-size-caption)}.fp-summary-structure-title>span{color:var(--color-text-muted)}.fp-summary-bar{display:flex;overflow:hidden;min-height:var(--space-3);border-radius:var(--radius-full);background:var(--color-surface-subtle)}.fp-summary-segment{display:block;min-width:0;background:var(--color-accent)}.segment-1{background:var(--color-success)}.segment-2{background:var(--color-warning)}.segment-3{background:var(--color-border-control)}.segment-4{background:var(--color-border)}.fp-summary-legend{display:flex;justify-content:space-between;gap:var(--space-2) var(--space-4);flex-wrap:wrap;color:var(--color-text-muted);font-size:var(--font-size-caption)}.fp-summary-legend>span{display:flex;align-items:center;gap:var(--space-1)}.fp-summary-legend i{display:inline-block;width:var(--space-2);height:var(--space-2);border-radius:var(--radius-small);background:var(--color-accent)}.fp-summary-legend i.segment-1{background:var(--color-success)}.fp-summary-legend i.segment-2{background:var(--color-warning)}.fp-summary-legend i.segment-3{background:var(--color-border-control)}.fp-summary-legend i.segment-4{background:var(--color-border)}@media(max-width:1000px){.fp-plan-status{grid-template-columns:auto minmax(0,1fr) auto}.fp-plan-status a:last-child{grid-column:2/-1}.fp-heading-controls{justify-content:flex-start}}@media(max-width:768px){.fp-plan-status{grid-template-columns:auto minmax(0,1fr);align-items:start;padding:var(--space-4)}.fp-plan-status>svg{grid-row:1/3}.fp-plan-status a{grid-column:2;white-space:normal}.fp-heading-controls{display:grid;grid-template-columns:minmax(0,1fr);width:100%;justify-content:stretch}.fp-heading-controls .ui-month-picker,.fp-heading-controls .ui-tabs{width:100%;min-width:0}.fp-heading-controls .ui-tab-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.fp-heading-controls>button{width:100%}.fp-summary-three{grid-template-columns:minmax(0,1fr);gap:0}.fp-summary-three article,.fp-summary-three article:last-child{grid-template-columns:minmax(0,1fr) auto;border-right:0!important;border-bottom:1px solid var(--color-border)!important;padding:var(--space-3) 0}.fp-summary-three article:last-child{border-bottom:0!important}.fp-summary-three article>strong{grid-column:2;grid-row:1/3;text-align:right!important;font-size:var(--font-size-h2)}.fp-summary-three article>small{grid-column:1}.fp-summary-legend{justify-content:flex-start}.fp-toolbar .fp-horizon{margin-right:0}}@media(max-width:430px){.family-plan{display:flex;flex-direction:column;gap:var(--space-4)}.family-plan>.ui-page-header{order:1;margin:0}.family-plan>.fp-plan-status{order:2;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3)}.family-plan>.fp-plan-status>svg{grid-row:1;align-self:start}.family-plan>.fp-plan-status>div .fp-plan-status-detail{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.family-plan>.fp-plan-status>div p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}.family-plan>.fp-plan-status>a:first-of-type{grid-column:3;grid-row:1/3;white-space:normal}.family-plan>.fp-plan-status>a:last-child{display:none}.family-plan>.ui-page-header .ui-page-header-copy{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.family-plan>.ui-page-header .ui-page-actions{width:100%;margin:0}.fp-heading-controls{grid-template-columns:minmax(8.75rem,.8fr) minmax(0,1.2fr);gap:var(--space-2);align-items:stretch}.fp-heading-controls .ui-month-picker{grid-column:1;grid-template-columns:minmax(0,1fr);align-items:center;gap:0}.fp-heading-controls .ui-month-picker label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.fp-heading-controls .ui-month-picker input{min-width:0;padding-inline:var(--space-2)}.fp-heading-controls .ui-tabs{grid-column:2;align-self:center}.fp-heading-controls .ui-tab{min-width:0;padding-inline:var(--space-1);font-size:var(--font-size-caption);white-space:nowrap}.fp-heading-controls .ui-month-picker input{padding-right:var(--space-6);font-size:var(--font-size-caption)}.fp-heading-controls>button{display:none}.fp-toolbar-settings{display:inline-flex}.family-plan>.fp-summary{order:3;gap:var(--space-3);padding:var(--space-4)}.family-plan>.fp-summary{gap:var(--space-2)}.family-plan>#family-plan-view-panel-payments,.family-plan>#family-plan-view-panel-months{order:4}.family-plan>.fp-deficit,.family-plan>.fp-reconciliation{order:4}.family-plan>.fp-toolbar{order:5}.family-plan>.fp-next-payments{order:6}.family-plan>.fp-explanation{order:7}.fp-summary-three article>small{font-size:var(--font-size-caption)}.fp-summary-three article{gap:var(--space-1);padding-block:var(--space-2)}.fp-summary-three article>small{line-height:var(--line-height-caption)}.fp-summary-structure{gap:var(--space-2)}.fp-summary-structure-title{align-items:flex-start;flex-direction:column;gap:var(--space-1)}}
