/* Shared surfaces. Public pages follow the device; signed-in pages follow the in-app switch. */
:root {--paper:#fbf7fc;--sheet:#f1e5f4;--edge:#d5badc;--letter:#2e2035;--quiet:#624e69;--plum:#702b94;--accent:#7835ad;--hero:linear-gradient(122deg,#23182b 12%,#37213f 68%,#582b69);--action:linear-gradient(135deg,#8639b9,#63218f);--layer:linear-gradient(140deg,#faeffb,#eeddf3)}
body.dark {--paper:#18121e;--sheet:#302137;--edge:#664b72;--letter:#fff7ff;--quiet:#d6c4de;--plum:#dfb6ef;--accent:#d99ff3;--layer:linear-gradient(135deg,#392740,#2c1e33);color-scheme:dark}
@media(prefers-color-scheme:dark){body.theme-public{--paper:#18121e;--sheet:#302137;--edge:#664b72;--letter:#fff7ff;--quiet:#d6c4de;--plum:#dfb6ef;--accent:#d99ff3;--layer:linear-gradient(135deg,#392740,#2c1e33);color-scheme:dark}}
body.theme-public,body.compact-shell,body.dark.clean-dashboard-on,body.clean-dashboard-on:not(.dark){--bg:var(--paper);--p:var(--sheet);--surface:var(--sheet);--card:var(--sheet);--text:var(--letter);--ink:var(--letter);--muted:var(--quiet);--line:var(--edge);--b:var(--accent);--purple:var(--plum);--tile-fill:var(--layer);--tile-line:var(--edge);--tile-inner:var(--sheet);--tile-summary:var(--sheet)}
body.compact-shell .view :is(.panel,.card:not(.clean-balance),.settings-pane,.more-menu-list,.goal-card,.subscription-card,.manage-hub-grid),body.compact-shell #moreMenu .more-menu-list,body.compact-shell :is(.host-modal-card,dialog.review-dialog){background:var(--layer);border-color:var(--edge);color:var(--letter)}
body.compact-shell :is(.dialog,.host-auth-form,.more-tools-content){background-color:var(--sheet);color:var(--letter)}
body.compact-shell :is(.side,#desktopMorePanel){background-color:var(--paper);border-color:var(--edge)}
body.theme-public{background:var(--paper);color:var(--letter)}
body.theme-public :is(.hero,.final-cta,.phone-balance,.demo-balance){background:var(--hero);color:#fff}
body.theme-public .hero{border-bottom:1px solid var(--edge);padding-block:clamp(32px,5vw,76px)}
body.theme-public .site-header,.money-demo>header{background:#24192b;color:white}
body.theme-public :is(.hero-visual,.feature,.space-demo,.demo-card,.phone-log,.phone-preview,.demo-body>aside,.demo-more,.demo-totals>div,.demo-filter>span,.phone-preview-head){background:var(--layer);border-color:var(--edge);color:var(--letter);box-shadow:inset 0 1px 0 #ffffff12,0 6px 18px #1b092018}
body.theme-public .hero-visual{padding:clamp(9px,1.25vw,19px);border-radius:20px}
body.theme-public :is(.hero .preview-title,.hero .landing-preview-caption,.nav-item,.demo-heading p,.goal p,.log small,.goal small,.disclaimer,.phone-demo-note){color:var(--quiet)}
body.theme-public :is(.space-section,.footer,.preview-badge,.feature-icon,.space-row.selected,.demo-filter .selected,.nav-item.selected,.role){background:var(--sheet);color:var(--letter);border-color:var(--edge)}
body.theme-public .btn-primary{background:var(--action);color:white}
body.theme-public .eyebrow{color:var(--plum)}body.theme-public :is(.hero,.final-cta) .eyebrow{color:#e2c1ef}
body.theme-public :is(.skip-link:focus,.nav-signin){background:#f5e8f9;color:#3b2545}
body.theme-public .phone-preview{color:var(--letter)}
body.theme-public .phone-preview .phone-balance>div>span{background:#f1e4f4}
body.theme-public .phone-calendar,body.theme-public .demo-calendar{background:linear-gradient(135deg,#52246a,#753995);color:#fff}
body.theme-public .phone-log b,body.theme-public .negative{color:#ab243b}
@media(prefers-color-scheme:dark){body.theme-public .phone-log b,body.theme-public .negative{color:#ffb4c1}body.theme-public .positive{color:#a6e5bd}}
body.theme-public.info{font:17px/1.65 system-ui;margin:0}
.info main{background:var(--layer);border:1px solid var(--edge);border-radius:20px;box-sizing:border-box;width:min(720px,calc(100% - 32px));margin:clamp(18px,5vw,64px) auto;padding:clamp(20px,5vw,56px)}
.info main h1{color:var(--letter)}.info main :is(p,li){color:var(--quiet)}.info main a{color:var(--plum)}.info nav{border-color:var(--edge)}
.info main{overflow-wrap:anywhere}.info ul{padding-inline-start:1.3em}.info .analytics-preferences{max-width:calc(100% - 24px)}
body #hostAuth{background:var(--paper)!important}body #hostAuth .host-auth-hero{background:var(--hero)!important;color:white}body #hostAuth .host-auth-hero :is(h1,p,li){color:#f9effd!important}body #hostAuth .host-auth-form{background:var(--paper);color:var(--letter)}body #hostAuth .password-hint{color:var(--quiet)}body #hostAuth .host-auth-submit{background:var(--action)!important;color:white}
body.compact-shell .view .clean-card:not(.clean-balance){background:var(--layer);border-color:var(--edge)}

/* Match native checkbox hit areas to the visible squares in Quick Add. */
body #modal :is(#dualCurrencyEnabled,#makeRecurring){box-sizing:border-box;width:20px!important;height:20px!important;min-height:20px!important;min-width:20px!important;flex:0 0 20px;padding:0!important;cursor:pointer}

@media(min-width:1101px){
 body.compact-shell .side{background:linear-gradient(180deg,#311440,#412055)!important;border-color:#542d69}
 body.compact-shell .side #nav button{color:#fbf2ff!important}
 body.compact-shell .side #nav button:is(.on,:hover),body.compact-shell.desktop-more-open .side #nav button[data-view="more"]{background:#724791!important;color:white!important}
 body.compact-shell .side #nav button:focus-visible{outline:2px solid white;outline-offset:-3px}
}
body #defaultDashboard .clean-balance .overview-balance-figures{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"amount totals" "scope totals";align-items:end;column-gap:16px;padding:0!important;overflow:hidden;background:linear-gradient(115deg,#52236c,#763ca2)!important}
body #defaultDashboard .overview-balance-figures .clean-balance-value{grid-area:amount;margin:0;padding:24px 0 0 20px;min-width:0;font-variant-numeric:tabular-nums}
body #defaultDashboard .overview-balance-figures .clean-caption{grid-area:scope;align-self:start;margin:0;padding:6px 0 24px 20px}
body #defaultDashboard .clean-balance .overview-balance-figures .clean-totals{grid-area:totals;align-self:stretch;display:grid;align-content:center;background:var(--paper);gap:0;margin:0;padding:12px 16px;min-width:0}
body #defaultDashboard .clean-balance .overview-balance-figures .clean-totals>div{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 8px;border:0!important;background:transparent;box-shadow:none;border-radius:0;padding:12px 0!important}
body #defaultDashboard .clean-balance .overview-balance-figures .clean-totals>div:first-child{border-bottom:1px solid var(--edge)!important}
body #defaultDashboard .clean-totals>div>b{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
body #defaultDashboard .overview-balance-layout>.clean-activity{min-width:0;margin:0}
@media(min-width:1200px){
 body #defaultDashboard .clean-balance .overview-balance-layout{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:start}
 body #defaultDashboard .overview-balance-figures{grid-column:1/-1}
 body #defaultDashboard .overview-balance-layout .clean-activity li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}
 body #defaultDashboard .overview-balance-layout .clean-activity li>*{grid-area:auto}
 body #defaultDashboard .overview-balance-layout .clean-activity .clean-row-icon{display:none}
 body #defaultDashboard .overview-balance-layout .clean-activity .clean-row-amount{grid-column:2;grid-row:1/3}
}
@media(max-width:760px){
 body #defaultDashboard .clean-balance .overview-balance-figures{grid-template-columns:minmax(0,1fr);grid-template-areas:"amount" "scope" "totals"}
 body #defaultDashboard .overview-balance-figures .clean-balance-value{padding:18px 16px 0}
 body #defaultDashboard .overview-balance-figures .clean-caption{padding:4px 16px 16px}
}
body #defaultDashboard .clean-balance .overview-balance-figures .clean-totals{grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row}

/* Both tracks take the height needed by the larger goal. No fake progress on an unset limit. */
body #defaultDashboard .clean-balance .overview-balance-figures .clean-totals{grid-auto-rows:1fr;align-items:stretch}
body #defaultDashboard .clean-balance .overview-balance-figures .clean-totals>div{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;align-items:baseline;align-content:stretch;row-gap:8px;box-shadow:inset 0 -1px var(--edge);border:0!important}
body #defaultDashboard .clean-balance .overview-balance-figures .clean-totals>div:nth-child(2){box-shadow:none}
body #defaultDashboard .clean-balance .clean-totals .pocket-goal-summary{box-sizing:border-box;grid-column:1/-1;align-self:stretch;margin:0;display:grid;align-content:start;grid-template-rows:auto auto auto 6px;row-gap:4px;padding:10px 12px}
body #defaultDashboard .clean-balance .clean-totals .pocket-goal-summary strong{white-space:normal;font-size:1rem;line-height:1.35;letter-spacing:normal}
body #defaultDashboard .clean-balance .clean-totals .pocket-goal-summary progress{display:block;height:6px;margin:0}
body.theme-public .demo-body>aside{background:#381849;color:white}
body.theme-public .demo-body>aside .nav-item{color:white}body.theme-public .nav-item.selected{background:#71448e}
body.theme-public .demo-balance{display:grid;grid-template-columns:1fr 1.2fr;align-content:center;align-items:end;gap:4px 16px}
.demo-balance>.demo-totals{grid-area:1/2/3/3;grid-template-columns:1fr;grid-auto-rows:1fr;gap:4px}
.demo-totals>div,.phone-balance>div>span{display:grid;grid-template-columns:1fr auto;align-items:center}
.sample-goal{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px;padding-top:4px;border-top:1px solid var(--edge);font-size:12px}
.sample-goal small{font-size:11px}
body #defaultDashboard .clean-balance .overview-balance-figures .clean-totals>div:first-child{border:0!important}
