:root{color-scheme:dark;--bg:#0d100e;--surface:#171b18;--surface-2:#202520;--text:#f2f6f3;--dim:#a6b0a9;--border:#2d352f;--accent:#52cf8a;--accent-soft:#173a28;--accent-ink:#9ce8bc;--danger:#ff9189;--danger-soft:#452523;--positive:#52cf8a;--negative:#ff766f;--yellow:#f3be4b;--blue:#5b9dff;--maroon:#52231c;--shadow:0 14px 44px rgba(0,0,0,.3);--radius:16px;font-family:"Aptos","Segoe UI",system-ui,sans-serif}
*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{overscroll-behavior-y:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 38%,transparent);outline-offset:2px}svg{width:20px;height:20px;display:block}
.app,.finance-shell{min-height:100vh;background:var(--bg)}main{width:min(100%,680px);margin:0 auto;padding:calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 104px)}.finance-shell main{padding-bottom:calc(env(safe-area-inset-bottom) + 160px)}
.loading{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:12px;color:var(--dim)}.spinner{width:26px;height:26px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .75s cubic-bezier(.42,.12,.58,.88) infinite}@keyframes spin{to{transform:rotate(360deg)}}
.topline{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:4px 2px 18px}.topline p{margin:0 0 3px;color:var(--dim);font-size:13px}.topline h1{margin:0;font-size:34px;line-height:1;letter-spacing:-1.2px;font-weight:760}
.hub-title{display:flex;justify-content:space-between;align-items:flex-start;padding:4px 2px 18px}.hub-title p{margin:0 0 3px;color:var(--dim);font-size:13px}.hub-title h1{margin:0;font-size:34px;line-height:1;letter-spacing:-1.2px;font-weight:760}.hub-title-actions{display:flex;gap:7px}
.icon-button{width:42px;height:42px;border:1px solid var(--border);border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--dim)}.icon-button.on{color:var(--accent-ink);border-color:color-mix(in srgb,var(--accent) 45%,var(--border))}
.main-nav{position:fixed;z-index:45;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,680px);height:calc(72px + env(safe-area-inset-bottom));padding:7px 10px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(5,1fr);gap:3px;border-top:1px solid var(--border);background:color-mix(in srgb,var(--surface) 96%,transparent);box-shadow:0 -8px 26px rgba(17,28,21,.08)}.main-nav button{min-width:0;border:0;border-radius:11px;background:transparent;color:var(--dim);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;font-weight:700}.main-nav button svg{width:21px;height:21px}.main-nav button.selected{background:var(--accent-soft);color:var(--accent-ink)}
@media(min-width:640px){.main-nav{bottom:10px;border:1px solid var(--border);border-radius:18px;height:70px;padding:7px 14px;box-shadow:var(--shadow)}main{padding-left:22px;padding-right:22px}}
.fab{position:fixed;z-index:10;right:max(18px,calc((100vw - 680px)/2 + 18px));bottom:calc(env(safe-area-inset-bottom) + 88px);height:52px;padding:0 18px;border:0;border-radius:26px;background:var(--accent);color:#06281a;display:flex;align-items:center;gap:7px;box-shadow:0 10px 28px color-mix(in srgb,var(--accent) 34%,transparent);font-weight:750}.fab svg{width:19px}
.overview{padding:18px;border:1px solid var(--border);border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}.overview-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--dim)}.overview-row strong{font-size:18px;color:var(--accent);font-variant-numeric:tabular-nums}
.hero-progress,.goal-track,.sub-track{overflow:hidden;background:var(--surface-2)}.hero-progress{height:10px;margin:13px 0 16px;border-radius:99px}.hero-progress i,.goal-track i,.sub-track i{display:block;height:100%;border-radius:99px;background:var(--accent);transition:width .55s cubic-bezier(.2,.8,.2,1)}
.account-backed-progress{position:relative;height:15px;overflow:visible;background:transparent;margin:13px 0 16px}.account-backed-progress:before{content:"";position:absolute;inset:0;border-radius:99px;background:var(--surface-2)}.account-backed-progress .account-backing{position:absolute;z-index:1;left:0;bottom:0;height:7px;border-radius:99px;background:var(--yellow);transition:width .55s cubic-bezier(.2,.8,.2,1)}.account-backed-progress .planned-checks-layer{position:absolute;z-index:0;left:0;bottom:0;height:7px;border-radius:99px;background:var(--blue);transition:width .55s cubic-bezier(.2,.8,.2,1)}.account-backed-progress .backed-savings{position:absolute;z-index:2;left:0;top:0;height:7px;border-radius:99px;background:var(--accent);transition:width .55s cubic-bezier(.2,.8,.2,1)}
.overview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}.overview-stats div{min-width:0;padding-right:13px;border-right:1px solid var(--border)}.overview-stats div:last-child{border:0;padding-right:0}.overview-stats span,.overview-stats b{display:block}.overview-stats span{margin-bottom:4px;font-size:11px;color:var(--dim);white-space:nowrap}.overview-stats b{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.overview-stats .dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin:0 5px 1px 0}
.alloc-layers{position:relative;height:18px;margin:14px 0 6px}.alloc-layers i{position:absolute;left:0;top:0;height:18px;border-radius:99px;transition:width .55s cubic-bezier(.2,.8,.2,1)}
.alloc-legend{display:grid;gap:4px;margin-top:10px}.alloc-legend div{display:flex;justify-content:space-between;font-size:12px;color:var(--dim)}.alloc-legend b{font-variant-numeric:tabular-nums;color:var(--text)}
.section-head{display:flex;align-items:center;justify-content:space-between;margin:24px 2px 11px}.section-head>div{display:flex;align-items:center;gap:8px}.section-head h2{margin:0;font-size:16px}.section-head span{padding:2px 7px;border-radius:99px;background:var(--surface-2);color:var(--dim);font-size:10px}.section-head>button{height:34px;padding:0 10px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--dim);font-size:11px}
.controls{display:grid;grid-template-columns:1fr 118px;gap:8px;margin-bottom:12px}.search,.sort{height:43px;border:1px solid var(--border);border-radius:12px;background:var(--surface);display:flex;align-items:center}.search{gap:8px;padding:0 11px;color:var(--dim)}.search input{width:100%;min-width:0;border:0;outline:0;background:transparent}.sort select{width:100%;height:100%;padding:0 11px;border:0;outline:0;background:transparent;font-size:12px}
.recurring-tabs,.savings-display-tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;margin:14px 0 13px;padding:4px;border-radius:13px;background:var(--surface-2)}.savings-display-tabs{grid-template-columns:repeat(4,1fr)}.recurring-tabs button,.savings-display-tabs button{height:40px;border:0;border-radius:10px;background:transparent;color:var(--dim);display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:700}.recurring-tabs button.selected,.savings-display-tabs button.selected{background:var(--surface);color:var(--text);box-shadow:0 2px 9px rgba(20,30,24,.08)}
.goal-list{display:grid;gap:18px}.goal-type-group{display:grid;gap:10px}.goal-type-heading{min-height:24px;padding:0 3px;display:flex;align-items:center;gap:7px;color:var(--dim)}.goal-type-heading h2{margin:0;color:var(--text);font-size:12px;font-weight:780}.goal-type-heading b{min-width:20px;padding:2px 6px;border-radius:99px;background:var(--surface-2);text-align:center;font-size:10px}.goal-type-dot{width:8px;height:8px;border-radius:50%;background:var(--accent)}
.goal{overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 4px 18px rgba(21,35,27,.04);transition:border-color .2s ease,box-shadow .2s ease}.goal.expanded{border-color:color-mix(in srgb,var(--accent) 40%,var(--border));box-shadow:var(--shadow)}.goal.is-done .goal-title{text-decoration:line-through;color:var(--dim)}.goal-main{padding:11px 12px 10px}.goal-open{width:100%;padding:0;border:0;background:transparent;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left}.goal-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--surface-2);font-size:20px;color:var(--accent)}.goal-icon svg{width:22px;height:22px}.goal-copy{min-width:0}.goal-copy>span{display:block}.goal-title{font-size:16.5px;font-weight:800;color:var(--text);white-space:normal;overflow-wrap:anywhere}.goal-caption{margin-top:3px;color:var(--dim);font-size:12px;font-variant-numeric:tabular-nums}.goal-side{display:flex;align-items:center;gap:7px}.goal-side b{color:var(--accent);font-size:13px}.goal-side svg{width:17px;color:var(--dim);transition:transform .24s ease}.goal.expanded .goal-side svg{transform:rotate(90deg)}.goal-track{height:4px;margin:11px 0 8px;border-radius:99px}.goal-track i{background:var(--accent)}.goal-foot{min-height:28px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.goal-foot>span{display:flex;align-items:center;gap:5px;color:var(--dim);font-size:11px}.goal-foot .overdue{color:var(--danger)}.quick-add{height:30px;padding:0 9px;border:0;border-radius:9px;background:var(--accent-soft);color:var(--accent-ink);display:flex;align-items:center;gap:4px;font-size:11px;font-weight:750;margin-left:auto}
.goal-details{padding:4px 12px 12px;border-top:1px solid var(--border);animation:reveal .24s ease-out}@keyframes reveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
.subgoal{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:6px;align-items:center;padding:9px 0;border-top:1px solid var(--border)}.subgoal:first-of-type{border-top:0}.sub-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--surface-2);font-size:16px;color:var(--accent)}.subgoal>div{min-width:0}.subgoal>div>b,.subgoal>div>span{display:block}.subgoal>div>b{font-size:13px;white-space:normal;overflow-wrap:anywhere}.subgoal>div>span{margin-top:2px;color:var(--dim);font-size:11px}.sub-track{height:3px;margin-top:6px;border-radius:99px}.subgoal>strong{font-size:12px;font-variant-numeric:tabular-nums}
.actions{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding-top:10px;border-top:1px solid var(--border)}.actions button{min-height:52px;padding:5px 3px;border:0;border-radius:10px;background:transparent;color:var(--dim);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10px}.actions button:hover{background:var(--surface-2)}.actions svg{width:17px;height:17px}.actions .danger{color:var(--danger)}
.history-list{display:grid;gap:2px;margin-bottom:8px}.history-row{display:grid;grid-template-columns:62px 1fr auto;gap:8px;align-items:center;padding:9px 0;border-top:1px solid var(--border)}.history-row>span{font-size:13px;font-weight:750}.history-row .positive{color:var(--accent)}.history-row .negative{color:var(--danger)}.history-row div b,.history-row div small{display:block}.history-row div b{font-size:11px}.history-row div small{margin-top:2px;color:var(--dim);font-size:10px}.detail-label{min-height:43px;display:flex;align-items:center;justify-content:space-between}.detail-label>span{font-size:12px;color:var(--dim);font-weight:700}.detail-toggle{width:100%;height:42px;margin:5px 0;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;color:var(--dim);font-size:12px}
.empty{padding:44px 24px;text-align:center}.empty h2{margin:0;font-size:18px}.empty p{max-width:330px;margin:7px auto 18px;color:var(--dim);font-size:13px;line-height:1.5}.empty button{min-height:42px;padding:0 15px;border:0;border-radius:11px;background:var(--accent);color:#06281a;font-size:13px;font-weight:750}

/* Accounts */
.account-summary{display:grid;grid-template-columns:1.15fr 1.15fr .7fr;gap:1px;overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--border);box-shadow:var(--shadow)}.account-summary div{min-width:0;padding:14px 12px;background:var(--surface)}.account-summary span,.account-summary b{display:block}.account-summary span{min-height:27px;color:var(--dim);font-size:10px;line-height:1.25}.account-summary b{overflow:hidden;text-overflow:ellipsis;font-size:14px;white-space:nowrap}
.accounts-history-panel{margin-top:12px;padding:2px 18px 14px;border:1px solid var(--border);border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}
.account-list{display:grid;gap:9px}.account-card{overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 4px 18px rgba(21,35,27,.04)}.account-card.expanded{border-color:color-mix(in srgb,var(--accent) 38%,var(--border));box-shadow:var(--shadow)}
.account-open{width:100%;min-height:70px;padding:11px 12px;border:0;background:transparent;display:grid;grid-template-columns:44px minmax(0,1fr) auto 18px;gap:10px;align-items:center;text-align:left}.account-mark{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:var(--surface-2);color:var(--accent);font-size:19px}.account-open>span:nth-child(2){min-width:0}.account-open b,.account-open small{display:block}.account-open b{font-size:14px;white-space:normal;overflow-wrap:anywhere}.account-open small{margin-top:4px;color:var(--dim);font-size:11px}.account-open strong{font-size:14px;font-variant-numeric:tabular-nums}.account-open>svg{width:16px;color:var(--dim);transition:transform .2s ease}.account-card.expanded .account-open>svg{transform:rotate(90deg)}
.account-detail{padding:4px 12px 13px;border-top:1px solid var(--border);animation:reveal .2s ease-out}
.account-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:11px 0}.account-actions button{min-height:48px;padding:6px 3px;border:0;border-radius:10px;background:var(--surface-2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--dim);font-size:10px;font-weight:650}.account-actions svg{width:17px;height:17px}
.ledger-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}.ledger-row>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center}.ledger-row>span svg{width:15px;height:15px}.money-in{background:var(--accent-soft);color:var(--accent-ink)}.money-out{background:var(--danger-soft);color:var(--danger)}.ledger-row>div{min-width:0}.ledger-row div b,.ledger-row div small{display:block}.ledger-row div b{font-size:12px;white-space:normal;overflow-wrap:anywhere}.ledger-row div small{margin-top:3px;color:var(--dim);font-size:10px}.ledger-row>strong{font-size:12px}.positive{color:var(--accent)}.negative{color:var(--danger)}
.posted-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}.posted-row>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center}.posted-row>span svg{width:15px;height:15px}.posted-row div b,.posted-row div small{display:block}.posted-row div b{font-size:12px}.posted-row div small{margin-top:3px;color:var(--dim);font-size:10px}.posted-row>strong{font-size:12px}
.card-entry{padding:13px 14px}.card-entry .util{height:6px;border-radius:99px;background:var(--surface-2);overflow:hidden;margin-top:10px}.card-entry .util i{display:block;height:100%;background:var(--accent);border-radius:99px;transition:width .55s cubic-bezier(.2,.8,.2,1)}.card-entry .util i.hot{background:var(--negative)}
/* Recurring */
.recurring-list{display:grid;gap:11px}.recurring-list article{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid var(--border);border-radius:15px;background:var(--surface)}.recurring-list article.paused{opacity:.58}.recurring-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-ink);font-size:17px}.recurring-open{min-width:0;padding:0;border:0;background:transparent;text-align:left}.recurring-open b,.recurring-open small{display:block}.recurring-open b{font-size:13px;white-space:normal;overflow-wrap:anywhere}.recurring-open small{margin-top:4px;color:var(--dim);font-size:10px}.recurring-amount{text-align:right}.recurring-amount b,.recurring-amount small{display:block}.recurring-amount b{font-size:12px}.recurring-amount small{margin-top:4px;color:var(--dim);font-size:9px}
/* Calendar */
.calendar-card{overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}.calendar-card>header{height:56px;padding:0 11px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.calendar-card>header h2{margin:0;font-size:16px}.calendar-card>header button{width:38px;height:38px;border:0;border-radius:10px;background:var(--surface-2);display:grid;place-items:center;color:var(--dim)}.weekday,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.weekday{padding:8px 7px 3px;color:var(--dim);font-size:9px;text-align:center}.calendar-grid{padding:0 7px 9px}.calendar-grid>div{position:relative;min-width:0;min-height:65px;padding:5px 3px;border-top:1px solid var(--border)}.calendar-grid>div>span{width:22px;height:22px;display:grid;place-items:center;font-size:10px}.calendar-grid .today>span{border-radius:50%;background:var(--accent);color:#06281a;font-weight:750}.calendar-grid .outside{opacity:.25}.cal-dot{width:100%;height:19px;margin-top:2px;padding:0 3px;border:0;border-radius:5px;display:flex;align-items:center;gap:2px;overflow:hidden;color:var(--accent-ink);background:var(--accent-soft);font-size:8px}.cal-dot.expense{color:var(--danger);background:var(--danger-soft)}.calendar-agenda{padding:15px;border-top:1px solid var(--border)}.calendar-agenda h3{margin:0 0 6px;font-size:13px}
/* Budget */
.budget-main{display:flex;flex-direction:column;gap:14px}.budget-chart-card,.budget-annual,.budget-alerts{overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}.budget-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 15px 10px}.budget-section-heading h2{margin:0;font-size:15px;letter-spacing:-.15px}.budget-section-heading p{margin:4px 0 0;color:var(--dim);font-size:10px;line-height:1.4}.budget-section-heading>span{flex:0 0 auto;padding:4px 8px;border-radius:99px;background:var(--accent-soft);color:var(--accent-ink);font-size:11px;font-weight:750}.budget-bill-list{border-top:1px solid var(--border)}.budget-bill-row{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 16px 10px 14px;border:0;border-top:1px solid var(--border);background:transparent;color:var(--text);text-align:left}.budget-bill-row:first-child{border-top:0}.budget-bill-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--surface-2);color:var(--accent);font-size:16px}.budget-bill-copy{min-width:0}.budget-bill-copy b,.budget-bill-copy small{display:block}.budget-bill-copy b{font-size:12px;white-space:normal;overflow-wrap:anywhere}.budget-bill-copy small{margin-top:3px;color:var(--dim);font-size:9px}.budget-bill-value{text-align:right}.budget-bill-value strong,.budget-bill-value>small{display:block}.budget-bill-value strong{font-size:12px;font-variant-numeric:tabular-nums}.budget-bill-value>small{margin-top:3px;color:var(--accent);font-size:9px;font-weight:700}
.budget-pie-wrap{display:flex;justify-content:center;padding:6px 0 14px}.budget-pie{width:190px;height:190px;border-radius:50%;box-shadow:var(--shadow)}
/* Paycheck */
.plan-switcher{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.plan-switcher button{height:36px;padding:0 13px;border:1px solid var(--border);border-radius:99px;background:var(--surface);color:var(--dim);font-size:12px;font-weight:700}.plan-switcher button.selected{border-color:color-mix(in srgb,var(--blue) 55%,var(--border));background:color-mix(in srgb,var(--blue) 16%,var(--surface));color:var(--text)}
.check-strip{padding:16px 18px;border:1px solid var(--border);border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}.check-strip .row{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--dim);padding:5px 0}.check-strip .row b{font-variant-numeric:tabular-nums;font-size:15px}.check-strip .planned b{color:var(--accent)}.check-strip .left b{color:var(--blue)}.check-bar{height:10px;border-radius:99px;overflow:hidden;display:flex;background:var(--surface-2);margin:10px 0 4px}.check-bar i{display:block;height:100%;transition:width .55s cubic-bezier(.2,.8,.2,1)}.check-bar .p{background:var(--accent)}.check-bar .l{background:var(--blue)}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}
.plan-item{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 14px;border:1px solid var(--border);border-top:0;background:var(--surface);color:var(--text);text-align:left}.plan-item:first-of-type{border-top:1px solid var(--border)}.plan-item b{font-size:13px;white-space:normal;overflow-wrap:anywhere;display:block}.plan-item small{color:var(--dim);font-size:10px;display:block;margin-top:3px}.plan-item strong{font-size:13px;font-variant-numeric:tabular-nums}
.calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.calc-grid label{display:flex;flex-direction:column;gap:6px}.calc-grid label>span{color:var(--dim);font-size:12px;font-weight:650}.calc-grid input{width:100%;height:46px;padding:0 12px;border:1px solid var(--border);border-radius:11px;background:var(--bg);outline:0}.calc-grid input:focus{border-color:var(--accent)}
.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;border-top:1px solid var(--border);margin-top:14px}.toggle-row b{font-size:13px}.toggle-row small{display:block;color:var(--dim);font-size:11px;margin-top:3px;line-height:1.4}.switch{position:relative;width:50px;height:30px;flex:0 0 auto;border:0;border-radius:99px;background:var(--surface-2);transition:background .25s ease}.switch i{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:var(--dim);transition:transform .25s cubic-bezier(.2,.8,.2,1),background .25s ease}.switch.on{background:var(--accent-soft)}.switch.on i{transform:translateX(20px);background:var(--accent)}
/* Sheets & auth */
.backdrop{position:fixed;inset:0;height:100dvh;z-index:50;padding:max(16px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));display:flex;justify-content:center;align-items:center;background:rgba(4,8,5,.68);animation:veil .18s ease-out}@keyframes veil{from{opacity:0}to{opacity:1}}.sheet{width:min(100%,520px);max-height:92dvh;overflow:auto;padding:18px;border:1px solid var(--border);border-radius:22px;background:var(--surface);box-shadow:0 -20px 70px rgba(0,0,0,.28);animation:sheet-up .28s cubic-bezier(.18,.8,.22,1)}@keyframes sheet-up{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.sheet-head h2{margin:0;font-size:21px;letter-spacing:-.35px}.sheet-head button{width:40px;height:40px;border:0;border-radius:50%;background:var(--surface-2);color:var(--dim);font-size:22px}.sheet>label,.field-grid>label{display:flex;flex-direction:column;gap:6px;margin-top:14px}.sheet label>span{color:var(--dim);font-size:12px;font-weight:650}.sheet input,.sheet select{width:100%;height:46px;padding:0 12px;border:1px solid var(--border);border-radius:11px;background:var(--bg);outline:0}.sheet input:focus,.sheet select:focus{border-color:var(--accent)}.autosave{display:flex;align-items:center;gap:7px;color:var(--dim);font-size:11px}.autosave span{width:7px;height:7px;border-radius:50%;background:var(--accent)}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.primary{width:100%;min-height:48px;margin-top:18px;border:0;border-radius:12px;background:var(--accent);color:#06281a;font-weight:750}.primary.secondary{background:var(--surface-2);color:var(--text)}.danger-btn{width:100%;min-height:44px;margin-top:10px;border:1px solid var(--border);border-radius:12px;background:transparent;color:var(--danger);font-weight:700}
.auth-wrap{min-height:100dvh;display:grid;place-items:center;padding:20px}.auth-card{width:min(100%,400px);padding:24px;border:1px solid var(--border);border-radius:22px;background:var(--surface);box-shadow:var(--shadow)}.auth-card h1{margin:0 0 6px;font-size:26px;letter-spacing:-.6px}.auth-card p{margin:0;color:var(--dim);font-size:13px;line-height:1.5}.auth-card label{display:flex;flex-direction:column;gap:6px;margin-top:14px}.auth-card label>span{color:var(--dim);font-size:12px;font-weight:650}.auth-card input{width:100%;height:46px;padding:0 12px;border:1px solid var(--border);border-radius:11px;background:var(--bg);outline:0}.auth-card input:focus{border-color:var(--accent)}.auth-error{margin-top:12px;padding:10px 12px;border-radius:10px;background:var(--danger-soft);color:var(--danger);font-size:12px}
.toast{position:fixed;z-index:60;left:50%;bottom:calc(env(safe-area-inset-bottom) + 86px);transform:translateX(-50%);min-height:42px;max-width:calc(100vw - 32px);padding:8px 14px;border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;gap:8px;background:var(--text);color:var(--bg);box-shadow:0 12px 30px rgba(0,0,0,.22);font-size:13px;animation:toast-in .22s ease-out}@keyframes toast-in{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
.graph-wrap{padding-top:12px}.graph-wrap svg{display:block;width:100%;height:118px}.graph-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.graph-axis{display:flex;justify-content:space-between;gap:8px;margin-top:6px;color:var(--dim);font-size:9.5px;font-variant-numeric:tabular-nums}
.quiet-actions{display:flex;justify-content:center;padding:14px 0 2px}.quiet-actions button{border:0;background:transparent;color:var(--dim);font-size:12px;font-weight:700}
.analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.analysis-grid .stat{padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.analysis-grid .stat span{display:block;color:var(--dim);font-size:11px;margin-bottom:5px}.analysis-grid .stat b{font-size:17px;font-variant-numeric:tabular-nums}
@media(max-width:370px){main{padding-left:12px;padding-right:12px}.overview{padding:15px}.topline h1,.hub-title h1{font-size:30px}.account-open{grid-template-columns:40px minmax(0,1fr) auto 15px}.account-mark{width:40px;height:40px}.calendar-grid>div{min-height:58px}.savings-display-tabs button{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
