@charset "UTF-8";
:root{
 color-scheme:light;
 --bg:#f4f5f1;--paper:#fff;--ink:#203430;--muted:#73817b;--line:#e0e6df;--green:#164d40;--dark:#112f2a;--mint:#d5ebba;
 --soft:#eaf1e8;--surface:#f0f2ec;--surface-alt:#f7f8f4;--field-bg:#fbfcf8;--avatar-bg:#e2eadb;--nav-bg:#f8faf4f5;
 --amber:#94602c;--amber-bg:#f7efdf;--amber-line:#e6d9c1;--danger:#a43b36;--danger-bg:#faeeea;--danger-line:#eed1c9;
 --burn:#8a4b28;--burn-bg:#f5e9df;--burn-line:#e9d4c2;--status-bg:#edf3e6;--status-line:#dbe5d1;--status-text:#63715e;
 --on-primary:#fff;--primary-hover:#112f2a;--hover-line:#b3c3b2;--focus:#88a976;--focus-soft:#bdd3a849;--chart-line:#588164;
 --hero-text:#f6fbf2;--hero-muted:#b4c9b6;--hero-danger:#f1c2a7;--hero-line:#28493f;--preview-bg:#e9e4f3;--preview-text:#756788;
 --planned:#2668c7;--planned-bg:#eaf1fc;--company-line:#2771d8;--shadow:0 12px 38px #17372a08;--radius:20px;--font:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
:root[data-theme="dark"]{
 color-scheme:dark;
 --bg:#101c19;--paper:#192a24;--ink:#edf4ee;--muted:#a8b9af;--line:#35473d;--green:#a4d6b6;--dark:#103529;--mint:#d5ebba;
 --soft:#233c2e;--surface:#213329;--surface-alt:#1d3027;--field-bg:#13241d;--avatar-bg:#2b4634;--nav-bg:#14251ff5;
 --amber:#edc58d;--amber-bg:#3b3021;--amber-line:#665135;--danger:#f1aaa1;--danger-bg:#3c2625;--danger-line:#6e4440;
 --burn:#edbd94;--burn-bg:#3b2d24;--burn-line:#644936;--status-bg:#263c2c;--status-line:#40563c;--status-text:#bccfb6;
 --on-primary:#10251a;--primary-hover:#c0e6c9;--hover-line:#6d8c73;--focus:#b5dc96;--focus-soft:#b5dc9629;--chart-line:#abd58c;
 --hero-text:#eff7eb;--hero-muted:#bfcec0;--hero-danger:#f3b09e;--hero-line:#44624e;--preview-bg:#312b3c;--preview-text:#d3c0e6;
 --planned:#8ebcff;--planned-bg:#253958;--company-line:#7ab5ff;--shadow:0 12px 38px #00000018;
}

html,body{touch-action:pan-x pan-y}
#toast{opacity:0;visibility:hidden;pointer-events:none}
#toast[hidden]{display:none!important}
#toast.show{opacity:1;visibility:visible}
.category-fields{margin-top:17px}
@media(max-width:700px){input:not(.amount-input),select,textarea{font-size:16px!important}}

*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 var(--font);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:34px;line-height:1.15;letter-spacing:-1.2px;font-weight:650}h2{font-size:21px;line-height:1.3;letter-spacing:-.5px;font-weight:650}h3{font-size:16px;font-weight:650}small,.small{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.7px;color:var(--muted);text-transform:uppercase}.skip{position:fixed;top:-100px;left:10px;background:var(--paper);padding:10px;z-index:100}.skip:focus{top:10px}.app-header{max-width:1400px;margin:auto;height:94px;padding:24px 38px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font-size:17px;font-weight:650;letter-spacing:-.6px}.brand small{display:block;font-weight:400;color:var(--muted);font-size:11px;letter-spacing:.1px}.brand-mark{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:var(--dark);color:var(--mint);border-radius:13px;font-size:29px;line-height:1;font-family:Georgia,serif;font-weight:bold}.brand-mark span{font-size:38px;line-height:1}.header-right{display:flex;gap:14px;align-items:center}.avatar{border:1px solid var(--line);width:38px;height:38px;display:grid;place-items:center;border-radius:50%;color:var(--green);background:var(--avatar-bg);font-size:13px;font-weight:750}.icon-button{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);background:transparent;border-radius:12px;color:var(--ink);font-size:23px;line-height:1}.icon-button:hover{background:var(--soft)}#connection{font-size:11px;color:var(--muted)}.app-layout{max-width:1400px;margin:auto;display:grid;grid-template-columns:174px minmax(0,1fr);gap:34px;padding:30px 38px 50px}.navigation{padding-top:14px;display:flex;flex-direction:column;gap:6px;position:sticky;top:24px;height:calc(100vh - 190px)}.navigation button{display:flex;align-items:center;gap:13px;border:0;background:none;border-radius:12px;padding:12px 15px;color:var(--muted);font-size:14px;text-align:left;min-height:48px;font-weight:550}.navigation button>span:first-child{font-size:22px;font-weight:400;width:22px;text-align:center;line-height:1}.navigation button.active{color:var(--green);background:var(--soft)}.navigation button:hover{color:var(--green)}.nav-note{margin-top:auto;padding:20px 15px;color:var(--muted);font-size:11px;line-height:1.9}main{min-width:0;padding-bottom:24px}.page-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:13px 0 26px}.page-head .eyebrow{display:block;margin-bottom:8px}.page-head p{color:var(--muted);font-size:13px;margin-top:9px}.page-controls{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.scope{display:inline-flex;border:1px solid var(--line);border-radius:12px;padding:4px;background:var(--surface)}.scope button{border:0;color:var(--muted);background:transparent;border-radius:8px;padding:7px 13px;font-size:12px;font-weight:600;min-height:34px}.scope button.active{background:var(--paper);color:var(--green);box-shadow:0 2px 5px #13352008}.btn{border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:10px 16px;border-radius:11px;font-size:12px;font-weight:650;display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:42px;line-height:1.4;text-decoration:none}.btn:hover{border-color:var(--hover-line);background:var(--soft)}.btn.primary{background:var(--green);color:var(--on-primary);border-color:var(--green)}.btn.primary:hover{background:var(--primary-hover)}.btn.burn{background:var(--burn-bg);border-color:var(--burn-line);color:var(--burn)}.btn.danger{color:var(--danger);background:var(--danger-bg);border-color:var(--danger-line)}.btn.quiet{background:transparent;border-color:transparent;color:var(--green);padding-left:4px;padding-right:4px}.btn .icon{width:16px;height:16px}.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:inline-block;vertical-align:middle;flex-shrink:0}.top-actions{display:flex;gap:10px;margin-bottom:25px}.top-actions .btn:first-child{margin-right:auto}.position-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}.metric{border:1px solid var(--line);background:var(--paper);border-radius:var(--radius);padding:22px 23px;display:flex;flex-direction:column;min-height:185px;box-shadow:var(--shadow)}.metric .metric-label{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.metric strong{font-size:30px;font-weight:600;letter-spacing:-1.1px;line-height:1.2;margin:21px 0 8px;font-variant-numeric:tabular-nums}.metric strong .unit{font-size:11px;font-weight:500;letter-spacing:0;margin-left:5px;color:var(--muted)}.metric p{font-size:11px;color:var(--muted);margin-top:auto}.metric.hero{grid-column:1 / -1;position:relative;overflow:hidden;background:var(--dark);color:var(--hero-text);border-color:var(--dark)}.metric.hero:after{content:"";position:absolute;width:125px;height:125px;right:-47px;bottom:-60px;border:26px solid #afcda214;border-radius:50%;pointer-events:none}.metric.hero strong{font-size:38px;color:var(--mint);margin:15px 0 11px}.metric.hero .metric-label,.metric.hero p,.metric.hero .unit{color:var(--hero-muted)}.metric.hero .hero-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;margin-top:auto;color:var(--hero-muted)}.metric.hero .hero-footer b{color:var(--hero-text);font-weight:550}.metric.hero.negative strong{color:var(--hero-danger)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr);gap:18px;align-items:start}.card{border:1px solid var(--line);background:var(--paper);border-radius:var(--radius);padding:23px;box-shadow:var(--shadow);min-width:0}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.card-head h2{font-size:17px;letter-spacing:-.3px}.card-head .btn{min-height:30px;font-size:11px;padding:4px}.card-subtitle{font-size:12px;color:var(--muted);margin-top:6px}.stack{display:flex;flex-direction:column;gap:18px}.status-card{background:var(--status-bg);border-color:var(--status-line)}.status-card.payment{background:var(--danger-bg);border-color:var(--danger-line)}.status-card.adjust{background:var(--amber-bg);border-color:var(--amber-line)}.status-kicker{display:flex;align-items:center;gap:7px;font-size:10px;text-transform:uppercase;letter-spacing:1.3px;font-weight:700;margin-bottom:12px;color:var(--green)}.status-card.payment .status-kicker{color:var(--danger)}.status-card.adjust .status-kicker{color:var(--amber)}.status-card h2{font-size:19px;line-height:1.4;margin-bottom:8px}.status-card p{font-size:12px;color:var(--status-text);line-height:1.7}.status-card.payment p{color:var(--danger)}.status-card.adjust p{color:var(--amber)}.status-card .btn{margin-top:16px;background:var(--paper);border-color:var(--line)}.status-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:currentColor}.timeline-intro{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;margin-bottom:18px}.timeline{display:flex;flex-direction:column}.timeline-day{position:relative;padding:0 0 20px 31px;border-left:1px solid var(--line);margin-left:5px}.timeline-day:last-child{padding-bottom:0;border-left-color:transparent}.timeline-day:before{content:"";width:9px;height:9px;background:var(--paper);border:2px solid var(--chart-line);border-radius:50%;position:absolute;top:5px;left:-6px}.timeline-day.income-day:before{background:var(--green);border-color:var(--green)}.day-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.day-title h3{font-size:13px}.day-title .date-label{font-size:10px;color:var(--muted);margin-left:7px;font-weight:400}.day-opening{font-size:10px;color:var(--muted)}.plan-row{display:flex;align-items:center;gap:10px;min-height:45px;margin-bottom:5px}.entry-icon{height:32px;width:32px;background:var(--surface);color:var(--muted);border-radius:10px;display:grid;place-items:center;flex-shrink:0;font-size:16px}.entry-icon.income{background:var(--soft);color:var(--green)}.entry-icon.shock{background:var(--burn-bg);color:var(--burn)}.entry-main{min-width:0;flex:1}.entry-main strong{display:block;font-size:12px;font-weight:550;overflow-wrap:anywhere;line-height:1.5}.entry-main small{overflow-wrap:anywhere;display:block;font-size:10px;color:var(--muted)}.entry-amount{font-size:13px;font-weight:550;white-space:nowrap;font-variant-numeric:tabular-nums}.positive{color:var(--green)}.entry-amount .small{display:block;font-weight:400;font-size:9px;color:var(--muted);text-align:right}.done{opacity:.48}.done .entry-main strong{text-decoration:line-through}.day-result{margin-top:8px;display:flex;justify-content:space-between;gap:10px;border-top:1px dashed var(--line);padding-top:8px;font-size:10px;color:var(--muted)}.day-result strong{font-size:12px;color:var(--ink);font-weight:600}.day-result strong.negative,.negative-text{color:var(--danger)}.next-date{font-size:10px;color:var(--muted);margin-bottom:14px}.account-mini{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.account-mini:last-child{border:0}.account-mini .account-title{display:flex;align-items:center;gap:7px}.account-mini strong{font-weight:550;font-variant-numeric:tabular-nums}.vault-icon{color:var(--green)}.mini-meta{font-size:10px;color:var(--muted);margin-top:12px}.notice{display:flex;align-items:flex-start;gap:11px;padding:14px 17px;background:var(--amber-bg);border:1px solid var(--amber-line);border-radius:13px;font-size:12px;color:var(--amber);line-height:1.65;margin-bottom:18px}.notice.neutral{background:var(--soft);border-color:var(--line);color:var(--status-text)}.notice .icon{margin-top:2px}.notice a,.notice button{color:inherit}.pill{font-size:9px;font-weight:650;text-transform:uppercase;letter-spacing:.6px;padding:3px 7px;background:var(--soft);border-radius:6px;color:var(--green);display:inline-flex;align-items:center;gap:5px;line-height:1.5}.pill.amber{background:var(--amber-bg);color:var(--amber)}.pill.red{background:var(--danger-bg);color:var(--danger)}.pill.gray{background:var(--surface);color:var(--muted)}.full-plan .timeline-day{padding-left:29px}.plan-detail{background:var(--surface-alt);border:1px solid var(--line);border-radius:13px;padding:15px 17px;margin-top:4px}.full-plan .plan-row{margin:4px 0}.full-plan .entry-main strong{font-size:13px}.row-tools{display:flex;gap:3px;margin-left:5px}.row-tools .icon-button{width:32px;height:32px;font-size:16px;border-color:transparent}.row-tools .icon-button:hover{border-color:var(--line)}.plan-stats{display:flex;justify-content:space-between;gap:12px;padding:11px 0 0;margin-top:10px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.plan-stats strong{display:block;font-size:14px;color:var(--ink);font-weight:600;margin-top:3px}.plan-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:19px;flex-wrap:wrap}.plan-toolbar>div{display:flex;gap:7px}.select-small{background:var(--paper);border:1px solid var(--line);padding:9px 10px;border-radius:10px;color:var(--ink);font-size:12px;min-height:40px;max-width:180px}.range-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.range-summary>div{padding:17px 20px;border:1px solid var(--line);border-radius:14px;background:var(--paper);font-size:11px;color:var(--muted)}.range-summary strong{display:block;font-size:22px;letter-spacing:-.5px;color:var(--ink);font-weight:600;margin-top:5px}.chart{display:block;width:100%;height:auto;margin:0 0 16px}.chart-text{font:9px var(--font);fill:var(--muted)}.empty{padding:24px;text-align:center;color:var(--muted);font-size:13px}.empty .icon{width:32px;height:32px;margin:0 auto 10px;color:var(--muted);display:block}.empty h3{color:var(--ink);margin-bottom:5px}.setup-card{padding:40px;max-width:740px}.setup-card .setup-symbol{display:grid;place-items:center;width:56px;height:56px;background:var(--soft);border-radius:16px;color:var(--green);margin-bottom:20px}.setup-card h2{font-size:28px;letter-spacing:-.8px;margin-bottom:12px}.setup-card p{color:var(--muted);max-width:520px;margin-bottom:20px;font-size:14px}.setup-steps{padding:0;list-style:none;margin:24px 0}.setup-steps li{display:flex;gap:14px;margin-bottom:17px;align-items:start;font-size:13px}.step-number{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--green);font-weight:650;font-size:11px;flex-shrink:0}.two-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.account-card{display:flex;align-items:start;gap:14px;padding:19px;border:1px solid var(--line);border-radius:15px;background:var(--paper)}.account-card .entry-icon{width:42px;height:42px;border-radius:13px}.account-card .account-body{flex:1;min-width:0}.account-card h3{font-size:14px}.account-card strong{display:block;font-size:23px;letter-spacing:-.7px;font-weight:600;margin:7px 0 0;line-height:1.3}.account-card .small{font-size:10px;color:var(--muted);margin-top:4px}.account-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:25px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:26px 0 16px}.section-head h2{font-size:18px}.reserve-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.reserve-card{background:var(--paper);border:1px solid var(--line);padding:20px;border-radius:16px}.reserve-card h3{display:flex;align-items:center;gap:8px;font-size:14px}.reserve-card .reserve-amount{font-size:25px;letter-spacing:-.7px;font-weight:600;margin:14px 0 8px}.reserve-card .reserve-amount span{font-size:11px;font-weight:400;color:var(--muted);letter-spacing:0}.progress{height:5px;background:var(--surface);border-radius:10px;overflow:hidden;margin:10px 0}.progress span{display:block;height:100%;background:var(--chart-line);max-width:100%}.reserve-card .reserve-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:10px;color:var(--muted);margin-top:12px}.reserve-card .btn{padding:5px 10px;font-size:10px;min-height:32px}.details-card{padding:19px 23px;background:var(--paper);border:1px solid var(--line);border-radius:15px;margin-top:18px}.details-card summary{cursor:pointer;font-size:13px;font-weight:600;list-style-position:outside;margin-left:14px}.details-card[open] summary{margin-bottom:16px}.audit-row{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:11px 0;border-top:1px solid var(--line);font-size:11px}.audit-row strong{font-size:12px;font-weight:550}.history-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.search{flex:1;min-width:180px;border:1px solid var(--line);border-radius:11px;padding:10px 13px;background:var(--paper);min-height:42px;color:var(--ink);font-size:12px}.month-nav{display:flex;align-items:center;gap:12px;font-size:13px;white-space:nowrap}.month-nav button{width:32px;height:38px;border:1px solid var(--line);background:var(--paper);border-radius:9px;color:var(--ink)}.history-day{margin-bottom:23px}.history-date{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);padding:0 3px 9px}.history-row{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:13px 0}.history-row:first-of-type{border:0}.history-row .entry-main strong{font-size:13px}.history-row .entry-main small{font-size:10px}.history-row .entry-amount{font-size:14px}.history-row .icon-button{border-color:transparent;width:30px;font-size:16px}.history-row.voided{opacity:.45}.budget-row{padding:13px 0;border-top:1px solid var(--line)}.budget-row-head{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px}.budget-row-head .btn{padding:0;min-height:26px}.budget-row .small{color:var(--muted);font-size:10px}.budget-row .over{background:var(--amber)}.inline-stat{padding:10px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;font-size:12px}.inline-stat b{font-weight:600}.loading-state{padding:90px 24px;text-align:center;color:var(--muted)}.loading-dot{width:9px;height:9px;display:inline-block;border-radius:50%;background:var(--green);margin-right:10px;animation:pulse 1.3s infinite}@keyframes pulse{50%{opacity:.2}}.error-card{margin-top:20px;border-color:var(--danger-line);max-width:660px}.error-card h2{margin-bottom:10px}.error-card p{color:var(--muted);font-size:13px;margin-bottom:20px}.preview-banner{padding:10px 14px;border-radius:10px;background:var(--preview-bg);color:var(--preview-text);font-size:11px;margin-bottom:18px}.check-toggle{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.check-toggle input{accent-color:var(--green)}.quiet-note{font-size:11px;color:var(--muted);line-height:1.7;margin-top:14px}dialog{border:1px solid var(--line);border-radius:23px;padding:0;max-width:600px;width:calc(100% - 32px);max-height:90dvh;color:var(--ink);background:var(--paper);box-shadow:0 30px 100px #142c3c26}dialog.wide{max-width:850px}dialog::backdrop{background:#13282366;backdrop-filter:blur(4px)}.sheet-head{padding:25px 27px 19px;display:flex;justify-content:space-between;gap:14px;align-items:start;border-bottom:1px solid var(--line)}.sheet-head h2{font-size:25px;margin-top:6px;letter-spacing:-.7px}.sheet-head .icon-button{border:0;background:var(--surface);border-radius:50%;width:32px;height:32px}#sheet-body{padding:22px 27px 26px;overflow-wrap:anywhere}.form-intro{font-size:12px;color:var(--muted);margin-bottom:19px;line-height:1.7}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;min-width:0}.form-grid .field{margin-bottom:0}.field>span,.field>label{font-size:11px;font-weight:650;color:var(--muted)}.field small{color:var(--muted);font-size:10px;line-height:1.6;font-weight:400}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);background:var(--field-bg);border-radius:10px;padding:11px 12px;color:var(--ink);min-height:46px;font-size:15px;min-width:0}.field textarea{min-height:96px;resize:vertical}.field input.amount-input{font-size:29px;font-weight:550;letter-spacing:-.7px;padding:16px}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--focus);outline:2px solid var(--focus-soft);outline-offset:0}.check-field{display:flex;align-items:flex-start;gap:9px;font-size:12px;margin:15px 0}.check-field input{margin-top:5px;accent-color:var(--green);width:16px;height:16px}.check-field small{display:block;font-size:10px;color:var(--muted)}.form-section{margin:22px 0 15px;font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px;border-top:1px solid var(--line);padding-top:18px}.form-actions .btn{font-size:12px;min-height:45px}.form-error{font-size:12px;color:var(--danger);background:var(--danger-bg);border-radius:9px;padding:12px;margin-top:15px;white-space:pre-wrap}.checkin-row{display:grid;grid-template-columns:minmax(100px,1fr) 1fr .85fr;gap:12px;padding:13px 0;border-top:1px solid var(--line);align-items:center}.checkin-row strong{font-size:12px;font-weight:600}.checkin-row small{font-size:10px;color:var(--muted);display:block}.checkin-row .field{margin:0}.checkin-row input{min-height:43px;font-size:13px}.checkin-head{display:grid;grid-template-columns:1fr 1fr .85fr;gap:12px;font-size:10px;color:var(--muted);margin:20px 0 7px}.impact{padding:16px;border:1px solid var(--line);background:var(--soft);border-radius:12px;margin-top:18px}.impact h3{font-size:12px;margin-bottom:9px}.impact-row{display:flex;justify-content:space-between;gap:10px;font-size:11px;padding:4px 0}.impact-row strong{font-weight:600}.impact p{font-size:11px;color:var(--status-text);margin-top:9px;line-height:1.7}.preset-buttons{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}.preset-buttons button{font-size:10px;border:1px solid var(--line);background:var(--surface);padding:6px 9px;border-radius:7px;color:var(--green);min-height:32px}.import-sample{font-family:ui-monospace,monospace;font-size:11px;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:12px;overflow:auto;white-space:pre;max-height:140px;margin-bottom:18px}.mapping-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.import-list{max-height:50dvh;overflow:auto}.import-row{display:grid;grid-template-columns:25px minmax(0,1fr) 120px;gap:9px;padding:13px 0;border-top:1px solid var(--line);align-items:start}.import-row input[type=checkbox]{margin:5px 0;accent-color:var(--green);width:17px;height:17px}.import-row strong{font-size:12px;overflow-wrap:anywhere;display:block}.import-row small{font-size:10px;color:var(--muted)}.import-row select{font-size:11px;width:100%;min-height:34px;border:1px solid var(--line);border-radius:7px;padding:5px;background:var(--field-bg);color:var(--ink);margin-top:6px}.import-row .entry-amount{font-size:13px;text-align:right}.import-row .repeat-check{font-size:9px;display:flex;align-items:center;gap:5px;margin-top:7px;color:var(--amber)}.import-row .repeat-check input{width:13px;height:13px;margin:0}.import-row .bad-row{color:var(--danger);font-size:11px}.import-footer{font-size:11px;color:var(--muted);margin-top:12px}.hidden{display:none!important}.noscript{padding:20px}.field details{font-size:11px;color:var(--muted)}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(120px);background:var(--dark);color:var(--on-primary);border:1px solid var(--hero-line);padding:12px 21px;border-radius:12px;z-index:150;font-size:12px;max-width:calc(100% - 32px);text-align:center;transition:transform .2s}#toast.show{transform:translateX(-50%) translateY(0)}.export-note{font-size:10px;color:var(--muted)}
@media(min-width:1250px){.app-layout{gap:44px;grid-template-columns:185px minmax(0,1fr)}.metric{padding:24px 25px}.dashboard-grid{grid-template-columns:minmax(0,1.8fr) minmax(275px,1fr)}}
@media(max-width:1050px){.app-layout{grid-template-columns:135px minmax(0,1fr);gap:22px;padding-left:24px;padding-right:24px}.app-header{padding-left:24px;padding-right:24px}.navigation button{padding-left:11px;font-size:13px}.metric{padding:19px}.metric strong{font-size:25px}.metric.hero strong{font-size:32px}.dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr)}.card{padding:20px}.page-head{align-items:start}.page-controls{max-width:250px}}
@media(max-width:780px){.app-header{height:76px;padding:16px 21px}.brand{font-size:16px}.brand-mark{width:36px;height:36px;border-radius:11px}.header-right{gap:9px}#connection{display:none}.avatar{width:34px;height:34px}.icon-button{width:34px;height:34px}.app-layout{display:block;padding:20px 21px 105px}.navigation{position:fixed;top:auto;bottom:0;left:0;right:0;height:auto;display:grid;grid-template-columns:repeat(4,1fr);z-index:50;background:var(--nav-bg);backdrop-filter:blur(15px);border-top:1px solid var(--line);padding:8px 12px calc(8px + env(safe-area-inset-bottom));gap:6px}.navigation button{flex-direction:column;gap:4px;justify-content:center;padding:7px 4px;text-align:center;border-radius:11px;font-size:10px;min-height:51px}.navigation button>span:first-child{font-size:22px;width:auto}.nav-note{display:none}.page-head{margin:4px 0 23px;gap:10px;align-items:start}.page-head h1{font-size:30px}.page-head p{font-size:12px;max-width:210px}.page-controls{gap:8px;max-width:160px}.scope{padding:3px}.scope button{font-size:10px;padding:5px 10px;min-height:31px}.check-toggle{font-size:10px;margin-top:4px}.position-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:17px}.metric{min-height:145px;padding:17px;border-radius:16px}.metric strong{font-size:26px;margin:15px 0 7px}.metric p{font-size:10px}.metric.hero{grid-column:1 / -1;min-height:179px;padding:21px 23px}.metric.hero strong{font-size:42px;line-height:1.1;margin:17px 0 13px}.metric.hero .metric-label{font-size:12px}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid>.stack{grid-row:1}.dashboard-grid>.stack .accounts-today{display:none}.dashboard-grid>.stack .status-card{padding:18px 21px}.dashboard-grid>.stack .status-card .status-kicker{margin-bottom:8px}.status-card h2{font-size:17px;margin-bottom:5px}.status-card p{font-size:11px}.status-card .btn{margin-top:10px;min-height:36px;padding:6px 12px;font-size:11px}.top-actions{gap:8px;margin-bottom:20px}.top-actions .btn{padding:10px 12px;font-size:11px;min-height:42px;flex:1}.top-actions .btn:first-child{margin-right:0}.top-actions .btn .icon{width:15px}.card{padding:20px;border-radius:17px}.two-column{grid-template-columns:1fr}.range-summary{gap:8px}.range-summary>div{padding:13px 12px;font-size:9px}.range-summary strong{font-size:19px}.account-grid{gap:10px}.account-card{padding:15px;gap:9px;border-radius:14px;position:relative}.account-card .entry-icon{width:31px;height:31px;border-radius:9px}.account-card strong{font-size:20px}.account-card h3{font-size:11px;padding-right:18px}.account-card .icon-button{position:absolute;right:6px;top:7px;font-size:15px;width:26px;height:26px;border:0}.account-card .small{font-size:9px}.reserve-grid{gap:10px}.reserve-card{padding:16px}.reserve-card h3{font-size:12px;overflow-wrap:anywhere}.reserve-card .reserve-amount{font-size:23px}.reserve-card .reserve-footer{flex-wrap:wrap}.history-toolbar .search{width:100%;flex-basis:100%}.history-toolbar .month-nav{margin-right:auto}.section-head{margin-top:24px}.setup-card{padding:26px 24px}.setup-card h2{font-size:24px}.setup-card p{font-size:13px}.notice{padding:12px 14px;font-size:11px}.full-plan .timeline-day{padding-left:20px}.plan-detail{padding:13px}.full-plan .entry-icon{width:28px;height:28px;font-size:14px}.full-plan .entry-main strong{font-size:12px}.full-plan .entry-main small{font-size:9px}.full-plan .entry-amount{font-size:12px}.full-plan .plan-row{gap:8px}.row-tools{gap:0;margin-left:0}.row-tools .icon-button{width:28px;height:30px}.plan-stats{font-size:9px}.plan-stats strong{font-size:12px}.chart{margin-top:5px}.quiet-note{font-size:10px}.history-row .entry-amount{font-size:13px}#toast{bottom:calc(86px + env(safe-area-inset-bottom))}dialog{position:fixed;bottom:0;top:auto;margin:0;width:100%;max-width:100%;max-height:94dvh;border-radius:23px 23px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}.sheet-head{padding:22px 22px 17px}.sheet-head h2{font-size:24px}#sheet-body{padding:20px 22px 23px}.field input,.field select,.field textarea{font-size:16px}.form-grid{gap:13px}.form-actions .btn{flex:1}.form-actions{gap:10px}.form-intro{font-size:12px}.checkin-row{grid-template-columns:.95fr 1.05fr .85fr;gap:8px}.checkin-head{grid-template-columns:.95fr 1.05fr .85fr;gap:8px}.checkin-row input{font-size:14px;padding:10px 8px}.mapping-grid{grid-template-columns:1fr 1fr}.import-row{grid-template-columns:23px minmax(0,1fr) 100px;gap:8px}}
@media(max-width:380px){.app-layout{padding-left:15px;padding-right:15px}.app-header{padding-left:15px;padding-right:15px}.page-head h1{font-size:27px}.metric strong{font-size:24px}.scope button{padding-left:8px;padding-right:8px}.top-actions .btn{font-size:10px;padding:9px}.top-actions .btn .icon{display:none}.entry-main strong{font-size:11px}.card{padding:17px}.reserve-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.account-card .entry-icon{display:none}.checkin-row strong{font-size:10px}.checkin-row input{font-size:13px}.checkin-head{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.navigation,.app-header,.top-actions,.page-controls,.btn,.row-tools,#toast{display:none!important}.app-layout{display:block;padding:0}body{background:var(--paper)}.card,.metric{box-shadow:none;break-inside:avoid}.dashboard-grid{display:block}.metric.hero{background:var(--paper);color:black}.metric.hero strong{color:black}}

/* Compact empty Plan dates and the History month view. */
.full-plan .timeline-day.empty-day{padding-bottom:12px}
.full-plan .empty-day .day-title{margin-bottom:0;flex-wrap:wrap}
.full-plan .empty-day::before{border-color:var(--line)}
.history-calendar{margin-bottom:18px}
.history-month-navigation{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:10px;margin-bottom:18px}
.history-month-navigation h2{text-align:center;font-size:17px}
#main:focus{outline:none}
.navigation button:focus:not(:focus-visible){outline:none}
.not-planned-obligations{margin-top:18px}
.stack>.not-planned-obligations{margin-top:0}
.not-planned-obligations .card-head{flex-wrap:wrap}
.obligation-row{padding:10px 0;border-top:1px solid var(--line)}
.outdated-plans{margin-bottom:22px}
.history-calendar-weekdays,.history-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.history-calendar-weekdays{text-align:center;margin-bottom:7px}
.history-calendar-day{display:flex;flex-direction:column;min-width:0;min-height:76px;padding:7px 3px;border:1px solid var(--line);border-radius:9px;background:var(--surface-alt);color:var(--ink);text-align:center}
.history-calendar-day>span{font-size:12px;font-weight:600;margin-bottom:3px}
.history-calendar-day small{font-size:clamp(9px,1.6vw,12px);line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:100%}
.history-calendar-planned{color:var(--planned)}
.history-calendar-day .history-calendar-planned{font-weight:600}
.pill.planned{color:var(--planned);background:var(--planned-bg);margin-left:4px;vertical-align:middle}
.history-toolbar .check-toggle{min-height:42px;margin:0;white-space:nowrap}
.history-timeline-row.voided{opacity:.45}
.history-timeline .day-title{flex-wrap:wrap}
.history-timeline .plan-detail .plan-row{padding:7px 0}
.history-timeline .plan-detail .plan-row+.plan-row{border-top:1px solid var(--line)}
.occurrence-change{gap:12px;flex-wrap:wrap}
.occurrence-change .btn{flex-shrink:0}
@media(max-width:780px){body[data-money-scope="company"] .navigation{border-top:3px solid var(--company-line)}}
.history-calendar-day:hover{background:var(--soft)}
.history-calendar-day[aria-current="date"]{border-color:var(--green)}
.history-calendar-day[aria-pressed="true"]{background:var(--soft);border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
@media(max-width:780px){.history-toolbar #history-type,.history-toolbar #history-account{flex:1;min-width:0;max-width:none}}

/* The appearance setting uses a native checkbox with a touch-sized switch. */
.theme-setting{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin:20px 0 4px;font-size:13px;font-weight:600;cursor:pointer}
.theme-setting>span:first-child{min-width:0}
.theme-switch-control{position:relative;display:flex;align-items:center;gap:8px;flex:0 0 80px;min-height:44px;font-size:12px;font-weight:500}
.theme-switch-control input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.theme-switch-track{position:relative;display:block;flex:0 0 44px;height:26px;background:var(--muted);border-radius:26px;pointer-events:none}
.theme-switch-track::before{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;background:var(--on-primary);border-radius:50%}
.theme-switch-control input:checked+.theme-switch-track{background:var(--green)}
.theme-switch-control input:checked+.theme-switch-track::before{transform:translateX(18px)}
.theme-switch-control input:focus-visible+.theme-switch-track{outline:2px solid var(--green);outline-offset:3px}
.theme-switch-on{display:none}.theme-switch-control input:checked~.theme-switch-on{display:inline}.theme-switch-control input:checked~.theme-switch-off{display:none}

/* Shared period, full-width titles, and compact scope in the header. */
.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}
.app-header{gap:16px}.brand{min-width:0}.brand-mark,.header-right,.avatar{flex-shrink:0}
#header-scope{display:flex;align-items:center}.header-right{gap:12px}.scope{flex-shrink:0}
.page-head{display:block}.page-head h1{max-width:none}.page-head p{max-width:none}
.spending-period{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px;color:var(--muted);font-size:11px}
.spending-context{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto;gap:16px;margin:0 0 22px;padding:0 4px 16px;border-bottom:1px solid var(--line);font-size:11px}
.spending-context>div{min-width:0;display:flex;flex-direction:column;gap:3px}.spending-context span,.spending-context small{color:var(--muted)}
.spending-context b{font-size:13px;font-weight:600}.spending-context small{font-size:10px;line-height:1.5}.spending-context>div:last-child{justify-content:center}
.metric.hero{min-width:0}.metric.hero p{margin-top:0}.metric.hero .hero-footer{margin-top:14px;flex-wrap:wrap}
.metric.hero .hero-footer .btn{color:var(--mint);font-size:11px;min-height:30px;padding:2px 0;text-decoration:underline;text-underline-offset:3px}
.metric.hero .hero-assumption{margin-top:8px;font-size:10px}.metric.hero .btn:hover{background:transparent;border-color:transparent;color:var(--hero-text)}
.range-summary>div{min-width:0}.range-summary strong{overflow-wrap:anywhere}.range-summary small{display:block;font-size:10px;margin-top:4px;color:var(--muted)}
.range-summary strong.negative-text{color:var(--danger)}.chart-key{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;font-size:10px;color:var(--muted);margin:-8px 0 20px}
.plan-row .entry-icon,.history-row .entry-icon{font-size:19px}
.plan-row .entry-icon.expense,.history-row .entry-icon.expense{background:var(--danger-bg);color:var(--danger)}
.icon.direction-icon{width:15px;height:15px;stroke-width:3;vertical-align:-2px}
.plan-stats strong.positive{color:var(--green)}
.plan-stats strong.negative-text,.spending-context .negative-text{color:var(--danger)}
.metric.hero .negative-text{color:#f1aaa1}
.chart-wrap{position:relative;min-width:0}
.chart[data-chart-points]{cursor:crosshair;touch-action:pan-y}
.chart-cursor,.chart-point{pointer-events:none}
.chart-tooltip{position:absolute;top:8px;max-width:100%;padding:7px 10px;background:var(--paper);border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow);color:var(--muted);font-size:10px;line-height:1.5;pointer-events:none;z-index:1;overflow-wrap:anywhere}
.chart-tooltip strong{display:block;font-size:12px;font-weight:650;color:var(--ink)}
.chart-help{flex-basis:100%}
.check-toggle{white-space:nowrap}.plan-toolbar>div{align-items:center;flex-wrap:wrap}.plan-toolbar .check-toggle{margin-top:0}
#toast{color:var(--hero-text)}
/* The dialog is the single vertical scroller. Every child can shrink. */
body.dialog-open{overflow:hidden}
dialog{max-height:90vh;max-height:90dvh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
.sheet-head{position:sticky;top:0;background:var(--paper);z-index:2}.sheet-head>div{min-width:0}.sheet-head .icon-button{flex-shrink:0}
#sheet-body,#sheet-body form,#sheet-body .form-grid,#sheet-body .mapping-grid,#sheet-body .impact{min-width:0;max-width:100%}
#sheet-body input:not([type="checkbox"]),#sheet-body select,#sheet-body textarea{display:block;min-width:0;max-width:100%;width:100%}
.field input[type="date"],.field input[type="datetime-local"]{min-inline-size:0;inline-size:100%;max-inline-size:100%;appearance:none;-webkit-appearance:none}
.field input::-webkit-date-and-time-value{text-align:left;min-width:0}.field input::-webkit-datetime-edit{padding:0;min-width:0}
.form-actions{flex-wrap:wrap}.form-actions .btn{min-width:0;white-space:normal}.checkin-label{display:none}
.import-sample{white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:hidden}.import-list{max-height:none;overflow:visible}
.import-row>*{min-width:0}.import-row .entry-amount{white-space:normal;overflow-wrap:anywhere}
.impact-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:start}.impact-row strong{text-align:right;overflow-wrap:anywhere}.impact-row small{grid-column:1 / -1;color:var(--muted);font-size:10px}
.review-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line)}.review-row>div{min-width:0;flex:1}.review-row strong{display:block;font-size:14px}.review-row small{display:block;color:var(--muted);font-size:11px}.review-row .btn{flex-shrink:0}
@media(max-width:780px){
 .app-header{gap:10px}.header-right{gap:8px}.brand{font-size:14px;gap:8px;white-space:nowrap}.brand small{display:none}.brand-mark{width:32px;height:32px;font-size:25px}
 .scope button{font-size:11px;padding:5px 8px;min-height:32px}.page-head h1{font-size:clamp(25px,6.4vw,30px)}
 .spending-context{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.spending-context>div:last-child{grid-column:1 / -1;display:block}
 .metric.hero strong{font-size:40px}.spending-period{font-size:10px}.spending-period .select-small{max-width:170px}
 dialog{max-height:94vh;max-height:94dvh}.sheet-head h2{font-size:22px}
}
@media(max-width:600px){
 .account-grid{grid-template-columns:minmax(0,1fr)}
 .form-grid,.mapping-grid{grid-template-columns:minmax(0,1fr)}
 .checkin-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.checkin-row>div{grid-column:1 / -1}.checkin-row strong{font-size:13px}.checkin-head{display:none}.checkin-label{display:block;font-size:10px!important}
 .import-row{grid-template-columns:23px minmax(0,1fr)}.import-row>div:last-child{grid-column:2}.import-row .entry-amount{text-align:left}
 .impact-row{grid-template-columns:minmax(0,1fr);gap:2px}.impact-row strong{text-align:left}.review-row{align-items:start;flex-wrap:wrap}.review-row>div{flex-basis:100%}
 .form-actions .btn{flex:1 1 110px}.sheet-head{padding-left:20px;padding-right:20px}#sheet-body{padding-left:20px;padding-right:20px}
}
@media(max-width:380px){
 .app-header{gap:8px}.brand{font-size:13px;gap:7px}.brand-mark{width:28px;height:28px;border-radius:9px;font-size:23px}.brand-mark span{font-size:31px}
 .header-right{gap:6px}.avatar{width:30px;height:30px}.scope button{font-size:10px;padding:5px 6px}.scope{padding:2px}
 .metric.hero strong{font-size:36px}.spending-period{flex-wrap:wrap}.range-summary>div{padding:12px 9px}.range-summary strong{font-size:17px}
}
@media print{
 :root[data-theme]{color-scheme:light;--bg:#fff;--paper:#fff;--ink:#000;--muted:#444;--line:#bbb;--green:#164d40;--soft:#f4f5f1;--surface:#f4f5f1;--surface-alt:#fff}
 .spending-period .select-small,.spending-context>div:last-child{display:none}
}

/* Daily activity, persistent balance explanations and category settings. */
.history-row.income{background:var(--surface)}
.day-navigation{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:12px;margin-bottom:18px}
.day-navigation h2{text-align:center;font-size:19px;min-width:0;overflow-wrap:anywhere}
.day-navigation .icon-button{font-size:25px}
.daily-activity .plan-row{padding:10px 0;border-top:1px solid var(--line)}
.daily-activity .entry-amount{min-width:0;max-width:42%;white-space:normal;overflow-wrap:anywhere;text-align:right}
.daily-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:16px}
.reconciliation-card{margin-bottom:20px}
.reconciliation-card .card-subtitle{margin-bottom:16px}
.reconciliation-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.65fr);gap:12px;padding:16px 0;border-top:1px solid var(--line)}
.reconciliation-row>div{min-width:0;overflow-wrap:anywhere}
.reconciliation-row strong{font-size:14px;font-weight:650}
.reconciliation-row small{display:block;font-size:11px;color:var(--muted);line-height:1.7}
.reconciliation-remaining{text-align:right}
.reconciliation-remaining strong{font-size:21px}
.reconciliation-actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px}
.reconciliation-actions .btn{white-space:normal}
.settings-categories{margin-top:20px}
.category-section{margin-top:22px;min-width:0}
.category-section>h3{font-size:14px}
.category-row strong{overflow-wrap:anywhere}
.category-row.sub-category{padding-left:14px}
.category-row>.category-row-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:8px}
.category-row .btn{min-height:36px;padding:7px 10px;font-size:11px}
@media(max-width:780px){
 .daily-activity .plan-row{gap:8px}.daily-activity .row-tools{gap:0;margin-left:0}.daily-activity .row-tools .icon-button{width:28px;height:30px}
 .daily-activity .entry-amount{font-size:12px}.daily-activity .entry-main strong{font-size:12px}
}
@media(max-width:600px){
 .reconciliation-row{grid-template-columns:minmax(0,1fr);gap:9px}.reconciliation-remaining{text-align:left}
 .reconciliation-actions .btn{flex:1 1 120px}.category-row>.category-row-actions{flex-basis:auto}
 .day-navigation{gap:8px}.day-navigation h2{font-size:17px}
}

/* Recorded daily totals, account ordering and expense reports. */
.activity-totals{margin-top:20px;min-width:0}
.activity-totals .form-section{margin-bottom:6px}
.activity-totals .plan-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:0}
.activity-totals .plan-stats>div{min-width:0;overflow-wrap:anywhere}
.activity-totals strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#account-order-list .icon-button{min-width:40px;min-height:40px}
#sheet-body .history-row .entry-amount{min-width:0;max-width:40%;white-space:normal;overflow-wrap:anywhere;text-align:right}
.past-other-expenses .history-day{margin-top:18px}
.past-other-expenses .entry-amount{min-width:0;max-width:40%;white-space:normal;text-align:right;overflow-wrap:anywhere}
.past-other-expenses .plan-row{gap:8px}
.reports-controls,.reports-card{margin-bottom:18px}
.reports-card .card-head{flex-wrap:wrap}
.reports-range{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end}
.reports-range .field{margin:0}
.reports-range>.btn{min-height:46px}
.reports-breakdown{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:25px;align-items:start}
.reports-donut{position:relative;min-width:0;max-width:240px;width:100%;margin:auto}
.reports-donut svg{display:block;width:100%;height:auto}
.reports-donut-total{position:absolute;inset:31%;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;text-align:center;color:var(--muted);font-size:11px}
.reports-donut-total strong{font-size:19px;color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.reports-legend{min-width:0}
.reports-category,.reports-day-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;color:var(--ink);font-size:12px;min-height:48px}
.reports-category:hover,.reports-day-row:hover{background:var(--surface)}
.reports-category>span:nth-child(2),.reports-day-row>span{min-width:0;flex:1;overflow-wrap:anywhere}
.reports-category>strong,.reports-day-row>strong{min-width:0;max-width:42%;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.reports-category small,.reports-day-row small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:3px}
.reports-color{display:block;flex:0 0 10px;height:10px;border-radius:50%}
.reports-spending-chart{width:100%;height:auto;display:block;touch-action:pan-y}
.reports-spending-chart [data-report-bar]{cursor:pointer;outline:none}
.reports-spending-chart [data-report-bar]:focus-visible rect{stroke:var(--ink);stroke-width:2}
.reports-spending-chart [data-report-bar]:hover rect{opacity:.7}
.reports-plan-split.progress{background:var(--danger-bg)}
@media(max-width:780px){
 .navigation{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
 .reports-range{grid-template-columns:repeat(2,minmax(0,1fr))}
 .reports-range>.field:first-child{grid-column:1 / -1}
 .reports-range>.btn{grid-column:1 / -1}
 .reports-breakdown{grid-template-columns:minmax(0,1fr);gap:14px}
 .reports-donut{max-width:210px}
 .reports-category,.reports-day-row{gap:9px}
}
@media(max-width:380px){
 .navigation{padding-left:6px;padding-right:6px}
 .reports-range{grid-template-columns:minmax(0,1fr)}
 .activity-totals .plan-stats{gap:6px}
 .past-other-expenses{padding-left:13px;padding-right:13px}
}

/* Visible offline status; pending entries reuse the existing vertical dialog. */
.offline-status{align-items:center;justify-content:space-between;gap:10px}
.offline-status>div{min-width:0;flex:1;overflow-wrap:anywhere}
.offline-status strong{font-size:12px}.offline-status small{display:block;font-size:10px}
.offline-status .btn{flex-shrink:0;max-width:35%;white-space:normal}
.offline-pending{align-items:start}.offline-pending .category-row-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.offline-pending .form-error{font-size:11px;overflow-wrap:anywhere}
@media print{.offline-status{display:none!important}}

/* Forwarded text suggestions reuse the normal editable expense form. */
.notification-inbox{margin-bottom:22px}
.notification-row{display:flex;align-items:flex-start;gap:18px;padding:16px 0;border-top:1px solid var(--line)}
.notification-row .entry-main{min-width:0;flex:1}
.notification-row .entry-main>small{display:block;margin-top:5px;color:var(--muted)}
.notification-row details{margin-top:8px}
.notification-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
.notification-tools{text-align:right;flex-shrink:0}
.notification-tools>strong{display:block;margin-bottom:10px;font-variant-numeric:tabular-nums}
.notification-tools>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.deletion-choice{padding:17px 0;border-top:1px solid var(--line)}
.deletion-choice p{font-size:13px;line-height:1.6;color:var(--muted)}
@media(max-width:600px){.notification-row{display:block}.notification-tools{text-align:left;margin-top:12px}.notification-tools>div{justify-content:flex-start}}

/* Shared action launcher stays above the mobile navigation and safe area. */
:root{--quick-actions-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
main{padding-bottom:104px}
.quick-actions{position:fixed;right:calc(24px + env(safe-area-inset-right,0px));bottom:var(--quick-actions-bottom);z-index:70}
.quick-actions[hidden],.quick-actions-list[hidden]{display:none!important}
.quick-actions-toggle{display:grid;place-items:center;width:56px;height:56px;padding:0;border:1px solid var(--green);border-radius:50%;background:var(--green);color:var(--on-primary);box-shadow:0 7px 24px #112f2a33}
.quick-actions-toggle:hover{background:var(--primary-hover)}
.quick-actions-toggle .icon{width:26px;height:26px;stroke-width:2.2;transition:transform .15s}
.quick-actions.is-open .quick-actions-toggle .icon{transform:rotate(45deg)}
.quick-actions-list{position:absolute;right:0;bottom:calc(100% + 12px);width:250px;max-width:calc(100vw - 48px - env(safe-area-inset-right,0px));max-height:calc(100vh - var(--quick-actions-bottom) - 88px);max-height:calc(100dvh - var(--quick-actions-bottom) - 88px);overflow-y:auto;overscroll-behavior:contain;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:7px;box-shadow:0 14px 45px #112f2a26}
.quick-action{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:11px 12px;border:0;border-radius:10px;background:transparent;color:var(--ink);font-size:13px;font-weight:600;text-align:left;line-height:1.4}
.quick-action:hover{background:var(--soft)}
.quick-action>.icon{width:20px;height:20px;color:var(--green)}
.quick-action-burn>.icon{color:var(--burn)}
.quick-action:focus-visible{outline-offset:-3px}
.settings-tools{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}
.setup-actions{display:flex;margin-top:16px}
.dialog-open .quick-actions{visibility:hidden;pointer-events:none}
@media(max-width:780px){
 :root{--quick-actions-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
 .quick-actions{right:calc(21px + env(safe-area-inset-right,0px))}
 .quick-actions-list{max-width:calc(100vw - 42px - env(safe-area-inset-right,0px))}
}
@media print{.quick-actions{display:none!important}}

/* Allocation amounts are metadata on one recorded transaction. */
.plan-allocation-summary{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface-alt);margin:18px 0}
.plan-allocation-summary h3{font-size:14px;margin-bottom:10px}
.plan-allocation-summary .inline-stat{gap:12px}
.plan-allocation-summary .inline-stat span{min-width:0;overflow-wrap:anywhere}
.plan-allocation-summary .inline-stat b{flex-shrink:0;white-space:nowrap}
#settle-allocation-preview,#plan-allocation-preview{font-size:12px;line-height:1.7;margin:12px 0;overflow-wrap:anywhere}
[data-allocation-id]+[data-allocation-id]{margin-top:17px}

/* Family controls belong to the owner account; the member page has its own UI. */
.owner-locked .app-layout,.owner-locked #sheet,.owner-locked #toast{display:none!important}
.family-share{padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:var(--surface-alt);margin:17px 0}
.family-share .check-field{margin:0}
.family-overview{margin-top:20px;display:flex;gap:18px;align-items:center;justify-content:space-between}
.family-overview h2{font-size:21px;margin:5px 0}.family-overview>div:last-child{display:flex;gap:10px;flex-wrap:wrap}
.family-admin-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}
.family-admin-summary>div{padding:14px;background:var(--surface-alt);border:1px solid var(--line);border-radius:12px;min-width:0}
.family-admin-summary strong{display:block;font-size:16px;margin-top:5px;overflow-wrap:anywhere}
.family-topup-list{border-top:1px solid var(--line);margin-top:25px;padding-top:20px}
.family-topup-list h3{margin-bottom:13px}
@media(max-width:600px){.family-overview{display:block}.family-overview>div:last-child{margin-top:16px}.family-admin-summary{grid-template-columns:1fr}.family-admin-summary>div{padding:12px}}
