:root{color-scheme:dark;--page:#0b0d10;--panel:#14171c;--raised:#1b1f26;--control:#1a1e25;--line:#2c323d;--text:#f2f4f7;--muted:#9199a6;--mint:#5ef0b5;--selected:#17322b;--coral:#ff9c74;--blue:#6cb8ff;--yellow:#ffd166;--over:#ff8a5b;--neutral:#b4bcd0;--track:#232832}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--page);color:var(--text);font-family:Geist,Inter,system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.45;font-variant-numeric:tabular-nums}[hidden]{display:none!important}button,input,select{font:inherit}button,a.button{cursor:pointer}a{color:inherit;text-decoration:none}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 16px;border:0;border-radius:12px;font-weight:600;text-decoration:none}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--mint);color:#0b2117}.quiet{background:var(--control);color:var(--text)}button:hover:not(:disabled),.button:hover{filter:brightness(1.12)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--mint);outline-offset:3px}.muted{color:var(--muted)}.small{font-size:13px}.eyebrow{font-family:"Geist Mono",ui-monospace,monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:0 0 12px}.brand{display:inline-flex;align-items:center;gap:10px;font-size:18px;font-weight:650;letter-spacing:-.03em}.brand-dot{width:7px;height:7px;background:var(--mint);border-radius:50%}.site-header{border-bottom:1px solid #1b1f26}.header-inner{max-width:1248px;margin:auto;padding:18px 24px;display:flex;align-items:center;gap:30px}.header-inner nav{display:flex;gap:8px;flex:1}.header-inner nav a{padding:12px 16px;border-radius:22px;background:var(--control);font-size:14px}.header-inner form{margin:0}.dashboard{max-width:1248px;margin:auto;padding:32px 24px 48px}.page-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.page-heading{margin-bottom:26px}h1{font-size:36px;letter-spacing:-.04em;line-height:1.1;margin:0}h2{font-size:19px;letter-spacing:-.025em;margin:0}.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.summary-card,.panel,.landing-card{background:var(--panel);border-radius:24px;padding:24px}.summary-card p:last-child{margin-bottom:0}.count{font-size:48px;line-height:1.1;letter-spacing:-.045em;font-weight:600}.notice{border:1px dashed var(--line);border-radius:16px;padding:16px 20px;margin:20px 0}.import-notice{display:flex;justify-content:space-between;gap:30px;background:#111419}.import-notice p{margin:5px 0 0}.history-note{max-width:380px}.error{border-style:solid;border-color:#66402f;color:var(--coral)}.section{margin:30px 0}.section-heading{margin-bottom:18px}.section-heading p{margin:5px 0 0}.account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.account-card{display:block;text-align:left;background:var(--panel);padding:20px;min-height:132px;border:1px solid transparent;border-radius:16px;min-width:0}.account-card[aria-pressed=true]{background:var(--selected);border-color:#39634f}.account-card strong{font-size:16px;display:block;overflow-wrap:anywhere}.account-card .account-meta{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:6px}.account-card .account-count{display:block;font-size:14px;font-weight:500;margin-top:16px}.panel{margin-top:24px}.filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding-bottom:20px;border-bottom:1px solid #232832}.filters label{display:grid;gap:7px;font-size:12px;color:var(--muted)}input,select{background:var(--control);border:1px solid var(--line);border-radius:10px;padding:0 12px;color:var(--text);height:44px;max-width:100%}select{min-width:220px;max-width:360px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}th{padding:16px 12px;color:var(--muted);font-size:11px;letter-spacing:.06em;text-transform:uppercase;font-weight:500;white-space:nowrap}td{padding:17px 12px;border-top:1px solid #232832;vertical-align:top}.amount-cell{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.movement-label{font-weight:550;display:block;max-width:290px;overflow-wrap:anywhere}.movement-meta{display:flex;flex-wrap:wrap;max-width:290px;align-items:center;gap:6px;margin-top:6px;font-size:12px;color:var(--muted)}.movement-meta span:not(.status-pill){overflow-wrap:anywhere}.status-pill{font-size:11px;padding:2px 7px;border:1px solid var(--line);border-radius:20px;color:var(--muted);white-space:nowrap}.status-pending{border-style:dashed}.status-reversed{opacity:.7}.positive{color:var(--mint)}.date-cell{white-space:nowrap;color:var(--muted);font-family:ui-monospace,monospace;font-size:12px}.item-toggle{background:var(--raised);min-width:68px;font-size:12px;white-space:nowrap}.table-state{padding:35px 16px;text-align:center;color:var(--muted)}.pagination{display:flex;align-items:center;gap:15px;justify-content:center;margin-top:18px}.detail-cell{padding:0 12px 20px;background:#101319}.detail-box{background:var(--raised);padding:20px;border-radius:14px}.detail-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px}.detail-heading strong{font-size:14px}.items-entered{margin:0 0 12px}.item-list{display:grid;gap:0}.item-row{display:flex;justify-content:space-between;align-items:start;gap:20px;border-top:1px solid var(--line);padding:12px 0}.item-row:first-child{border:0}.item-description{font-size:14px;overflow-wrap:anywhere}.item-categories{font-size:12px;color:var(--muted);margin-top:4px}.item-amount{white-space:nowrap}.coverage-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.coverage-entry{padding:14px 16px;border:1px dashed var(--line);border-radius:12px;min-width:0}.coverage-entry strong{font-size:13px;display:block}.coverage-entry p{font-size:12px;color:var(--muted);margin:5px 0 0;overflow-wrap:anywhere}.coverage-panel>p{margin-bottom:0}footer{margin-top:28px}.landing{max-width:640px;margin:0 auto;padding:70px 24px}.landing>.brand{margin-bottom:40px}.landing-card{padding:36px}.landing h1{font-size:42px;max-width:420px}.intro{color:var(--muted);font-size:16px;margin:22px 0 30px;line-height:1.65}.landing .button{min-height:48px}.landing .small{margin-top:20px}.loading{opacity:.7}@media(max-width:900px){.account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-grid{gap:12px}.summary-card{padding:20px}.count{font-size:40px}.header-inner{gap:15px}.header-inner nav a{padding:12px}.coverage-list{grid-template-columns:1fr}}@media(max-width:600px){.header-inner{padding:14px 16px;flex-wrap:wrap;gap:10px 18px}.header-inner nav{order:3;flex-basis:100%}.header-inner form{margin-left:auto}.header-inner nav a{min-height:44px;padding:10px 16px}.dashboard{padding:24px 16px 36px}.page-heading{align-items:end}.page-heading h1{font-size:28px}.summary-grid{grid-template-columns:1fr;gap:12px}.summary-card{display:grid;grid-template-columns:1fr auto;padding:20px;border-radius:20px;align-items:center}.summary-card .eyebrow{margin-bottom:4px}.count{font-size:36px;grid-row:1/3;grid-column:2;padding-left:18px}.summary-card p:last-child{margin:0;max-width:220px}.import-notice{display:block;padding:16px}.history-note{margin-top:14px!important}.account-grid{grid-template-columns:1fr}.account-card{min-height:104px;padding:18px}.account-card .account-count{margin-top:12px}.section-heading{align-items:start}.section-heading>span{max-width:140px;text-align:right}.panel{padding:18px 16px;border-radius:20px}.filters label:first-child{width:100%}select{width:100%;min-width:0;max-width:100%}.filters label{flex:1;min-width:120px}.filters label:first-child{flex-basis:100%}.filters button{flex:1}.filters{gap:12px}th,td{padding:15px 10px}.table-scroll{margin:0 -10px}table{min-width:710px}.landing{padding:40px 20px}.landing-card{padding:28px 24px;border-radius:20px}.landing h1{font-size:36px}.pagination{flex-direction:column}.detail-box{padding:16px}.coverage-list{grid-template-columns:1fr}}

.account-profile{background:var(--panel);border-radius:16px;overflow:hidden}.account-profile .account-card{width:100%;border-radius:16px 16px 0 0}.profile-edit{font-size:12px;min-height:36px;margin:0 16px 14px}.profile-form{padding:0 18px 18px}.profile-form label{display:grid;gap:8px;font-size:13px;color:var(--muted)}.profile-form input{width:100%;margin-top:5px}.profile-form p{margin:10px 0}.profile-actions{display:flex;gap:8px}.profile-message{color:var(--coral);overflow-wrap:anywhere}.renew-link{color:var(--mint);text-decoration:underline}.merchant-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.merchant-row{border:1px solid var(--line);border-radius:14px;padding:18px;min-width:0}.merchant-name{display:block;overflow-wrap:anywhere;margin-bottom:14px}.merchant-row .profile-edit{margin:0}.merchant-row .profile-form{padding:0}.merchant-row .profile-actions button{min-height:40px}@media(max-width:600px){.merchant-list{grid-template-columns:1fr}.profile-actions button{flex:1}}

.transaction-account{display:inline-flex;align-items:center;gap:8px;min-width:110px;max-width:220px}.institution-icon{display:block;width:20px;height:20px;flex:0 0 20px;object-fit:contain;border-radius:3px}.institution-fallback{font-size:17px;line-height:20px;text-align:center;filter:grayscale(1);opacity:.75}.transaction-account-label{overflow-wrap:break-word;word-break:normal;min-width:0}

.header-inner nav button{background:transparent;color:var(--muted);border-radius:22px;font-size:14px}.header-inner nav button[aria-pressed=true]{background:var(--control);color:var(--text)}.cash-hero{margin-top:0;padding:28px}.hero-heading{display:flex;justify-content:space-between;align-items:start;gap:24px}.hero-amount{font-size:64px;line-height:1.1;font-weight:600;letter-spacing:-.045em}.hero-amount .cents{font-size:.5em;color:var(--muted)}.hero-heading .eyebrow{margin-bottom:6px}.hero-heading p{margin:7px 0}.range-controls{display:flex;flex-wrap:wrap;gap:4px}.range-controls button{min-width:48px;background:transparent;color:var(--muted);padding:0 12px}.range-controls button[aria-pressed=true]{background:#232832;color:var(--text)}.change-pill{display:inline-flex;padding:5px 11px;border-radius:99px;background:var(--control);font-size:13px;margin-top:7px}.change-pill.positive{background:#143a2d}.cash-chart{min-height:260px;margin-top:22px}.cash-chart svg{display:block;width:100%;height:280px;overflow:visible}.chart-caption{display:flex;justify-content:space-between;gap:20px}.mono{font-family:ui-monospace,monospace;font-size:11px;letter-spacing:.04em}.balance-notice{margin-top:16px;color:var(--muted)}.day-controls,.balance-dates{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:18px}.day-controls label,.balance-dates label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.balance-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px}.balance-columns .panel{min-width:0;margin-top:20px}.current-total{font-size:34px;font-weight:600;letter-spacing:-.03em;margin-bottom:18px}.cash-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cash-account-tile{display:block;background:var(--raised);text-align:left;padding:16px;border:1px solid transparent;min-width:0;font-weight:400}.cash-account-tile[aria-pressed=true]{border-color:#9199a6}.cash-account-tile .transaction-account{min-width:0;max-width:none;font-size:13px;color:var(--muted)}.cash-account-amount{display:block;font-size:23px;font-weight:600;letter-spacing:-.03em;margin:9px 0}.cash-account-tile .small{display:block;color:var(--muted);font-size:11px}.trace-total{font-size:30px;letter-spacing:-.03em}.evidence-row{padding:14px 0;border-top:1px solid #232832}.evidence-heading{display:flex;justify-content:space-between;gap:12px}.evidence-row p{margin:7px 0 0}.provenance{overflow-wrap:anywhere;font-family:ui-monospace,monospace;font-size:10px}.records-meta{margin-top:28px;color:var(--muted)}.records-meta summary{cursor:pointer;padding:12px 0}.records-meta .summary-grid{margin-top:16px}.records-meta .count{font-size:30px}.cash-chart .chart-empty{border:1px dashed var(--line);border-radius:16px;min-height:240px;display:grid;place-items:center;color:var(--muted);text-align:center;padding:24px}.chart-dot{cursor:pointer}.chart-dot:focus{outline:none;stroke:white;stroke-width:4}.cash-account-tile:hover{filter:brightness(1.08)}
@media(max-width:850px){.balance-columns{grid-template-columns:1fr}.hero-amount{font-size:54px}.hero-heading{flex-wrap:wrap}.header-inner nav{gap:0}.header-inner nav a,.header-inner nav button{padding:0 12px}.cash-account-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.dashboard{padding:18px 16px 96px}.page-heading{margin-bottom:18px}.page-heading h1{font-size:24px}.cash-hero{padding:20px 16px}.hero-amount{font-size:44px}.hero-heading{gap:16px}.range-controls{width:100%;justify-content:space-between}.range-controls button{min-height:44px;padding:0 10px}.cash-chart{min-height:200px;margin-top:18px}.cash-chart svg{height:220px}.chart-caption{flex-direction:column;gap:6px}.balance-columns{gap:0}.balance-columns .panel{margin-top:12px}.cash-account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-account-tile{padding:12px}.cash-account-amount{font-size:20px}.current-total{font-size:30px}.header-inner nav{position:fixed;bottom:12px;left:16px;right:16px;z-index:10;background:#1a1e25ed;border:1px solid var(--line);border-radius:20px;box-shadow:0 5px 30px #0008;justify-content:space-around;backdrop-filter:blur(16px);padding:4px}.header-inner nav a,.header-inner nav button{font-size:12px;min-height:48px;padding:0 10px;background:transparent}.header-inner{flex-wrap:nowrap}.day-controls label{flex:1;min-width:120px}.balance-dates label{flex:1;min-width:120px}.day-controls select{min-width:0;width:100%}.page-heading .eyebrow{display:none}}

.balance-layout{display:flex;flex-direction:column}

/* Completed section shell: five primary destinations and dedicated record/settings views. */
.header-inner{gap:16px;flex-wrap:wrap}.header-inner nav{gap:2px}.header-inner nav svg{display:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.secondary-nav{display:flex;gap:14px;font-size:12px;color:var(--muted)}.secondary-nav a{min-height:44px;display:flex;align-items:center}.secondary-nav a[aria-current=page]{color:var(--text)}.header-inner form button{font-size:12px;padding:0 12px}.page-heading p{margin:8px 0 0}.empty-card{border:1px dashed var(--line);padding:28px;border-radius:18px}.empty-card h2{font-size:24px;margin-bottom:10px}.empty-card p{color:var(--muted);max-width:640px}.empty-card .prompt-box{margin-top:20px}.prompt-box{padding:16px;background:var(--raised);border-radius:14px;font-size:13px;overflow-wrap:anywhere}.prompt-box p{margin:0 0 16px;color:var(--muted)}.prompt-box button{font-size:13px}.category-name{overflow-wrap:anywhere}.proof-details{display:grid;gap:10px;border-top:1px solid #232832;padding-top:16px}.proof-details>div{display:flex;justify-content:space-between;gap:16px;font-size:13px}.review-item{border-top:1px solid #232832;padding:20px 0}.review-item:first-child{border:0}.review-item summary{cursor:pointer;min-height:44px;display:flex;justify-content:space-between;align-items:center;gap:20px}.review-item summary>div{min-width:0}.review-item summary strong{display:block;overflow-wrap:anywhere}.review-item .review-detail{margin-top:18px;background:var(--raised);border-radius:16px;padding:18px}.review-item .review-detail p{overflow-wrap:anywhere}.review-item .prompt-box{background:var(--panel)}.bridge-unavailable{border:1px dashed var(--line)}.bridge-unavailable p:last-child{margin-bottom:0}.settings-title{margin-top:28px}.page-heading .quiet{flex-shrink:0}.notice{overflow-wrap:anywhere}
@media(max-width:1050px){.header-inner{gap:10px}.header-inner nav button{padding:0 11px}.secondary-nav{gap:10px}}
@media(max-width:800px){.header-inner .brand{font-size:16px}.header-inner nav{flex-basis:100%;order:4}.secondary-nav{margin-left:auto}}
@media(max-width:600px){.header-inner{padding:10px 16px;gap:8px;flex-wrap:wrap}.header-inner .brand{margin-right:auto}.secondary-nav{order:3;width:100%;gap:18px;margin:0}.secondary-nav a{min-height:38px}.header-inner form{margin:0}.header-inner nav{flex-basis:auto;bottom:max(10px,env(safe-area-inset-bottom));left:12px;right:12px;gap:0;border-radius:20px;padding:5px}.header-inner nav button{min-width:0;min-height:54px;flex:1;padding:5px 1px;flex-direction:column;gap:4px;border-radius:14px;font-size:10px}.header-inner nav svg{display:block}.header-inner nav button[aria-pressed=true]{background:var(--selected);color:var(--mint)}.dashboard{padding:18px 12px 100px}.page-heading{align-items:start;gap:10px}.page-heading h1{font-size:26px}.page-heading p{font-size:11px;max-width:250px}.page-heading .quiet{min-width:44px;font-size:12px;padding:0 10px}.empty-card{padding:20px 16px}.review-item summary{gap:12px}.review-item summary>span{white-space:nowrap;font-size:13px}.review-item .review-detail{padding:16px 12px}.prompt-box{padding:14px}.records-meta{margin-top:18px}.cash-chart svg{overflow:hidden}}
.review-groups{display:grid;gap:14px}.review-group{border:1px solid var(--line);border-radius:18px;padding:20px;background:var(--panel)}.review-group-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.review-group-heading>div{min-width:0}.review-group h3{font-size:20px;letter-spacing:-.025em;overflow-wrap:anywhere;margin:0}.review-group-heading p{margin:4px 0}.review-later{display:inline-flex;align-items:center;min-height:28px;margin-top:8px;padding:0 10px;border:1px dashed #b79952;border-radius:99px;color:#f0d28d;font-size:12px}.review-group-detail{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.review-members{display:grid;gap:8px}.review-member{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:12px;padding:12px;border-radius:12px;background:var(--raised);cursor:pointer}.review-member input,.review-remember input{width:20px;height:20px;accent-color:var(--mint);margin:2px 0}.review-member>span{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}.review-answer-controls{display:grid;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.review-category-label{display:grid;gap:8px;color:var(--muted)}.review-category-label select{width:100%;max-width:none}.review-category-label textarea{width:100%;resize:vertical;background:var(--control);border:1px solid var(--line);border-radius:10px;padding:10px 12px;color:var(--text);font:inherit}.review-actions{display:flex;gap:8px;flex-wrap:wrap}.review-remember{display:flex;align-items:center;gap:10px;cursor:pointer;min-height:44px}.review-answer-status{min-height:20px;margin:0;color:var(--mint)}
.review-groups{gap:6px}.review-group{padding:0;border-radius:14px;overflow:hidden}.review-group.is-open{border-color:#5ef0b5}.review-inbox-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-height:76px;padding:10px 14px;border:0;border-radius:inherit;background:transparent;color:var(--text);text-align:left;cursor:pointer}.review-inbox-row:hover,.review-group.is-open .review-inbox-row{background:var(--raised)}.review-inbox-row:focus-visible{outline:2px solid var(--mint);outline-offset:-2px}.review-inbox-copy{display:grid;gap:4px;min-width:0}.review-inbox-title{display:flex;align-items:center;gap:7px;min-width:0}.review-inbox-title strong{font-size:15px;line-height:1.25;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-source-tag{flex:none;color:var(--muted);font-size:10px;line-height:1.4;letter-spacing:.04em;text-transform:uppercase}.review-inbox-context{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px;line-height:1.35}.review-inbox-amount{font-size:14px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}.review-group-detail{margin:0 14px;padding:12px 0 14px}.review-detail-context{display:grid;gap:2px;padding:0 2px 8px}.review-detail-context p{margin:2px 0}.review-selection-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:4px 0 8px}.review-selection-toolbar p{flex:1 1 auto;min-width:0;margin:0}.review-selection-toolbar button{min-height:44px;padding:0 6px;font-size:12px;white-space:nowrap}.review-answer-controls{margin:0 0 12px;padding:12px 0 0}.review-members{max-height:min(46vh,380px);overflow:auto;overscroll-behavior:contain;padding:2px}.review-member{min-height:62px}.review-member strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-member input{width:22px;height:22px}.review-later{margin-top:0}
.review-inbox-row{grid-template-columns:minmax(0,1fr) auto 12px;gap:8px}.review-inbox-chevron{display:flex;align-items:center;justify-content:center;width:12px;min-width:12px;min-height:44px;color:var(--muted);font-size:16px}.review-detail-context summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:var(--muted);font-size:13px}.review-detail-context summary:focus-visible{outline:2px solid var(--mint);outline-offset:2px;border-radius:8px}
.review-detail-context div,.review-detail-context p{overflow-wrap:anywhere}

/* Trust-first Review and QA. */
.adds-up-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px}.adds-up-toolbar h2{margin:4px 0 0;font-size:24px}.adds-up-summary{margin:14px 0;color:var(--muted);font-size:14px}.adds-up-counts{padding:14px 16px;border-radius:14px;background:var(--panel)}.adds-up-account{position:relative}.adds-up-account-name{font-size:17px;margin:0 0 12px}.adds-up-drill{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}.adds-up-drill summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--mint)}.adds-up-month{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:13px}.off-text{color:var(--coral)}.adds-up-transaction{display:grid;grid-template-columns:82px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:44px;border-top:1px solid var(--line);font-size:13px}.source-link{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:14px;color:var(--muted);font-size:13px}.review-order{display:flex;gap:4px;padding:4px;border-radius:22px;background:var(--control)}.review-order button{min-height:40px;padding:0 12px;border:0;border-radius:20px;background:transparent;color:var(--muted)}.review-order button[aria-pressed=true]{background:var(--raised);color:var(--text)}.review-filters{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;margin:10px -2px 16px;padding:2px 2px 6px;scrollbar-width:thin}.review-filter{flex:none;min-height:44px;padding:0 15px;border-radius:24px;background:var(--panel);color:var(--muted);font-size:13px}.review-filter[aria-pressed=true]{background:var(--raised);color:var(--text)}.review-progress{height:8px;margin:8px 0 3px;border-radius:8px;background:var(--track);color:var(--muted);font-size:12px}.review-progress:not(:empty){height:auto;background:transparent;margin:4px 0 12px}.review-question{margin-top:20px;max-width:900px}.review-question h2{margin:4px 0 8px}.category-search{width:100%;min-height:46px;margin:12px 0;background:var(--control);border:1px solid var(--line);border-radius:12px;padding:10px 14px;color:var(--text)}.review-choice-list{display:grid;gap:12px}.review-choice{min-width:0;padding:16px;border-radius:14px;background:var(--raised)}.review-choice-heading{display:grid;gap:4px;margin-bottom:12px}.review-choice-title-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.review-choice-title-row strong{min-width:0;overflow-wrap:anywhere}.review-choice-total{flex:none;font-weight:600;white-space:nowrap}.review-choice-sub{min-width:0;overflow:hidden}.review-inbox-row{grid-template-columns:minmax(0,1fr) auto;cursor:pointer}.review-undo{position:sticky;bottom:80px;z-index:9;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;margin-top:12px;border-radius:14px;background:var(--raised);box-shadow:0 4px 24px #0008}.review-undo[hidden]{display:none}
@media(max-width:600px){.adds-up-toolbar{align-items:flex-start;flex-direction:column;gap:8px}.adds-up-toolbar .range-controls{width:100%;overflow-x:auto;flex-wrap:nowrap}.adds-up-toolbar .range-controls button{flex:none;min-height:44px}.adds-up-account{padding:20px 16px}.review-order{margin-top:10px}.review-order button{min-height:44px}.review-inbox-row{min-height:76px;padding:10px}.review-inbox-title strong{white-space:normal;display:block}.review-choice{padding:14px 12px}.review-question{padding:20px 16px}.adds-up-transaction{grid-template-columns:66px minmax(0,1fr) auto;font-size:12px}}
.category-parent{color:var(--muted);font-weight:400}.category-path-separator{color:var(--muted);padding:0 2px}.category-leaf{font-weight:600;color:var(--text)}.category-path{overflow-wrap:anywhere}.source-disclosure{margin-top:10px;border-top:1px solid var(--line);padding-top:8px}.source-disclosure summary,.source-details summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--muted)}.source-detail-body{padding:4px 10px}.source-detail-body p{overflow-wrap:anywhere}.source-details{margin:18px auto;max-width:1248px;padding:0 24px}.review-rule-scope{display:grid;gap:12px;margin:10px 0;padding:14px;border-radius:14px;background:var(--raised)}.review-rule-scope[hidden]{display:none}.review-rule-amounts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.review-rule-amounts label{color:var(--muted);font-size:12px}.review-rule-amounts input{width:100%}.status-exception{color:var(--coral)}
@media(min-width:1000px){#review-section:not([hidden]){display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);align-items:start;gap:20px}#review-section>.panel:first-child{grid-column:1}#review-question{grid-column:2;grid-row:1;position:sticky;top:20px;margin-top:0}#review-undo,#review-section>.source-link{grid-column:1/-1}}
.category-tree-current{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--control);color:var(--text);text-align:left;overflow-wrap:anywhere}.category-tree-current:after{content:'⌄';color:var(--muted)}.category-tree-options{display:grid;gap:4px;max-height:260px;overflow:auto;margin-top:6px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.category-tree-option{min-height:44px;padding:8px 10px 8px calc(10px + min(var(--depth,0),5)*14px);border:0;border-radius:7px;background:transparent;color:var(--text);text-align:left}.category-tree-option:hover,.category-tree-option:focus-visible{background:var(--raised)}.category-tree-option.no-line{color:var(--muted);font-style:italic;border-bottom:1px solid var(--line);border-radius:0}
/* Accepted compact Review inbox and focused question view */
.review-page-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 20px 0}.review-page-header h1{margin:0;font-size:18px}.review-hero{padding:14px 20px 4px}.review-hero-count{display:flex;align-items:baseline;gap:10px;margin-top:2px}.review-hero-count strong{font-size:46px;line-height:1.05;letter-spacing:-.04em}.review-hero-count span{color:var(--muted)}.review-progress-track{height:8px;margin-top:14px;border-radius:5px;background:var(--track);overflow:hidden}.review-progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:var(--mint);transition:width .2s}.review-progress{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;line-height:1.4}.review-list-panel{padding:4px 16px;border-radius:20px;background:var(--panel)}.review-groups{display:block}.review-group,.review-group.is-open{padding:0;border:0;border-radius:0;background:transparent;overflow:visible}.review-group+.review-group{border-top:1px solid var(--line)}.review-inbox-row{grid-template-columns:10px minmax(0,1fr) auto 12px auto;min-height:76px;padding:12px 0;border-radius:0;cursor:pointer}.review-inbox-copy{gap:3px}.review-inbox-title strong{white-space:nowrap;font-size:15px}.review-inbox-context{line-height:1.35}.review-status-dot{width:9px;height:9px;border-radius:50%;background:var(--mint)}.review-status-dot.is-off{background:var(--coral)}.review-status-dot.is-later{background:var(--muted)}.review-inbox-chevron{grid-column:auto;grid-row:auto;min-height:44px;width:12px;color:var(--muted);font-size:20px}.review-question{margin-top:8px}.review-back{min-height:44px;margin-bottom:8px;padding:0 8px}.review-context{display:none}
@media(max-width:600px){.review-page-header{padding:8px 20px 0}.review-page-header h1{font-size:15px}.review-hero{padding:12px 20px 0}.review-hero-count strong{font-size:46px}.review-filters{margin:0 -2px;padding:2px 2px 6px}.review-list-panel{padding:4px 16px;border-radius:20px}.review-inbox-row{grid-template-columns:10px minmax(0,1fr) auto 12px auto;gap:8px;min-height:76px;padding:12px 0}.review-inbox-copy{min-width:0}.review-inbox-title strong{max-width:100%}.review-inbox-amount{font-size:15px}.review-question{margin-top:12px}.review-choice{padding:14px 10px}.review-choice-list{gap:8px}}
.adds-up-hero{padding:8px 4px 14px}.adds-up-hero-value{display:block;margin-top:3px;font-size:44px;line-height:1.05;letter-spacing:-.04em}.adds-up-values{padding:12px 16px;border-radius:18px;background:var(--panel)}.adds-up-value{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:40px;border-top:1px solid var(--line);font-size:14px}.adds-up-value:first-child{border-top:0}.adds-up-value strong{white-space:nowrap}.adds-up-accounts{padding:4px 16px;border-radius:18px;background:var(--panel)}.adds-up-account-row{display:grid;grid-template-columns:minmax(0,1fr) auto 12px;align-items:center;gap:8px;width:100%;min-height:72px;padding:10px 0;border:0;border-top:1px solid var(--line);background:none;color:var(--text);text-align:left}.adds-up-account-row:first-child{border-top:0}.adds-up-row-name{font-weight:600}.adds-up-row-status{white-space:nowrap;font-size:13px}.adds-up-row-chevron{font-size:20px;color:var(--muted)}.adds-up-detail{padding:18px}.adds-up-detail-status{margin:3px 0 8px}.adds-up-back{min-height:44px}
@media(max-width:600px){.adds-up-values{padding:8px 14px}.adds-up-accounts{padding:4px 16px}.adds-up-account-row{min-height:72px}.adds-up-hero-value{font-size:44px}.adds-up-detail{padding:16px}}
@media(max-width:600px){body:has(#dashboard[data-page="review"]) .page-heading{display:none}body:has(#dashboard[data-page="review"]) .site-header .brand,body:has(#dashboard[data-page="review"]) .site-header form{display:none}body:has(#dashboard[data-page="review"]) .header-inner{padding:4px 8px;display:flex;flex-wrap:wrap;gap:3px}body:has(#dashboard[data-page="review"]) .header-inner nav{order:0;flex-basis:100%;overflow-x:auto;gap:3px;scrollbar-width:none}body:has(#dashboard[data-page="review"]) .header-inner nav::-webkit-scrollbar{display:none}body:has(#dashboard[data-page="review"]) .header-inner nav button{flex:none;min-height:40px;padding:0 9px}body:has(#dashboard[data-page="review"]) .secondary-nav{order:1;display:flex;gap:6px;padding:0 4px}body:has(#dashboard[data-page="review"]) .secondary-nav a{min-height:36px;padding:6px 8px;font-size:12px}body:has(#dashboard[data-page="review"]) .dashboard{padding-top:10px}}
@media(max-width:600px){body:has(#dashboard[data-page="adds-up"]) .page-heading{display:none}body:has(#dashboard[data-page="adds-up"]) .site-header .brand,body:has(#dashboard[data-page="adds-up"]) .site-header form{display:none}body:has(#dashboard[data-page="adds-up"]) .header-inner{padding:4px 8px;display:flex;flex-wrap:wrap;gap:3px}body:has(#dashboard[data-page="adds-up"]) .header-inner nav{order:0;flex-basis:100%;overflow-x:auto;gap:3px;scrollbar-width:none}body:has(#dashboard[data-page="adds-up"]) .header-inner nav::-webkit-scrollbar{display:none}body:has(#dashboard[data-page="adds-up"]) .header-inner nav button{flex:none;min-height:40px;padding:0 9px}body:has(#dashboard[data-page="adds-up"]) .secondary-nav{order:1;display:flex;gap:6px;padding:0 4px}body:has(#dashboard[data-page="adds-up"]) .secondary-nav a{min-height:36px;padding:6px 8px;font-size:12px}body:has(#dashboard[data-page="adds-up"]) .dashboard{padding-top:10px}}
@media(max-width:600px){.adds-up-toolbar .range-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;overflow:visible}.adds-up-toolbar .range-controls button{min-width:0;padding:0 3px;white-space:nowrap;font-size:12px}.adds-up-account-row{grid-template-columns:minmax(0,1fr) 12px;grid-template-rows:auto auto auto;min-width:0;gap:4px 8px}.adds-up-row-name{grid-column:1;grid-row:1;min-width:0;white-space:nowrap;overflow-wrap:normal}.adds-up-account-row>.small.muted{grid-column:1;grid-row:3;min-width:0;overflow-wrap:anywhere;line-height:1.3}.adds-up-row-status{grid-column:1;grid-row:2;justify-self:start;white-space:nowrap;font-size:12px}.adds-up-row-chevron{grid-column:2;grid-row:1/4;align-self:center}}
@media(max-width:600px){body:has(#dashboard[data-page="review"]) .header-inner nav button,body:has(#dashboard[data-page="adds-up"]) .header-inner nav button{min-height:44px}}
@media(max-width:600px){body:has(#dashboard[data-page="review"]) .secondary-nav a,body:has(#dashboard[data-page="adds-up"]) .secondary-nav a{min-height:44px}}
.review-inbox-copy>.category-path{display:none}.review-inbox-copy>.review-inbox-context{display:block}.review-inbox-copy{grid-template-columns:minmax(0,1fr)}.review-inbox-title strong{min-width:0;white-space:nowrap;display:block;overflow:hidden;text-overflow:ellipsis}.review-inbox-copy .review-row-context{display:flex;align-items:baseline;gap:6px;min-width:0;color:var(--muted);font-size:12px;line-height:1.25}.review-row-context>.review-inbox-context:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-row-context .category-path{display:inline;min-width:0;white-space:normal}.review-row-context .review-context-count{white-space:nowrap}
@media(max-width:600px){.review-filters{scrollbar-width:none}.review-filters::-webkit-scrollbar{display:none}.review-inbox-row{min-height:76px}.review-inbox-copy{min-width:0;gap:3px}}
.review-txn-list{display:grid;margin-top:12px;border-top:1px solid var(--line)}.review-txn-rows{display:grid;margin:0;padding:0;list-style:none}.review-txn{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:60px;padding:8px 0;border-bottom:1px solid var(--line)}.review-txn:focus-visible{outline:2px solid var(--mint);outline-offset:-2px}.review-txn-main{display:grid;gap:3px;min-width:0;overflow:hidden}.review-txn-name{font-size:15px;font-weight:600;overflow-wrap:anywhere}.review-txn-meta{display:flex;flex-wrap:wrap;align-items:center;gap:2px 0;margin-left:-17px;color:var(--muted);font-size:13px}.review-txn-meta>*{position:relative;padding-left:17px}.review-txn-meta>*:before{content:"·";position:absolute;left:6px;top:50%;transform:translateY(-50%)}.review-txn-date{white-space:nowrap}.review-txn-account-slot{display:inline-flex;align-items:center;min-width:0}.review-txn-meta .transaction-account{min-width:0;max-width:none;gap:6px}.review-txn-meta .institution-icon{width:16px;height:16px;flex-basis:16px}.review-txn-amount{font-size:15px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}.review-txn-month{margin:0;padding:16px 0 8px;border-bottom:1px solid var(--line);font-weight:500}.review-txn-more{justify-self:start;min-height:44px;margin-top:8px}

/* Review questions, category picker and the quiet interpretation Log */
.nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:12px;background:var(--coral-pill);color:var(--coral);font-size:11px;font-weight:700}.nav-count[hidden]{display:none}.review-status-dot{background:#6F7885}.review-status-dot.is-conflict{background:var(--coral)}.review-status-dot.is-later{background:var(--muted)}.category-tree-option{border-left:3px solid var(--category-color,transparent)}.review-group.is-open .review-inbox-row{background:var(--selected);box-shadow:inset 2px 0 var(--mint)}.review-question-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-bottom:18px}.review-question-top .review-back{justify-self:start}.review-question-top .review-later{justify-self:end}.review-question-amount{font-size:42px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.05}.review-question-reason{max-width:60ch;margin-bottom:20px}.review-answer-buttons{display:flex;flex-wrap:wrap;gap:8px}.review-answer-button{min-height:46px;padding:8px 16px;border:0;border-radius:24px;background:var(--raised);color:var(--text);text-align:left}.review-answer-button[aria-pressed=true]{background:var(--selected);box-shadow:inset 0 0 0 1.5px var(--mint)}.category-tree-picker{display:block}.category-tree-current{width:auto;min-height:44px;border-radius:24px;color:var(--muted)}.category-tree-options:not([hidden]){position:fixed;inset:0;z-index:31;max-height:100dvh;margin:0;padding:100px 20px 24px;border:0;border-radius:0;background:var(--page);overflow:auto}.category-search:not([hidden]){position:fixed;z-index:32;top:30px;left:20px;right:20px;width:calc(100% - 40px);max-width:1248px;margin:0 auto;background:var(--control)}.review-txn{grid-template-columns:auto minmax(0,1fr) auto}.review-txn input[type=checkbox]{width:22px;height:22px;accent-color:var(--mint)}.review-log-controls{display:grid;gap:12px;margin:12px 0}.review-log-controls>input{width:100%;min-height:46px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--control);color:var(--text)}.review-log-row{display:grid;grid-template-columns:minmax(0,1fr) auto 12px;align-items:center;gap:4px 12px;width:100%;min-height:72px;padding:12px 0;border:0;border-top:1px solid var(--line);background:none;color:var(--text);text-align:left}.review-log-row:first-child{border-top:0}.review-log-title{grid-column:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-log-row>.small{grid-column:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-log-amount{grid-column:2;grid-row:1/3;white-space:nowrap}.review-log-row>.review-inbox-chevron{grid-column:3;grid-row:1/3}.review-log-transaction{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px 0;border-top:1px solid var(--line)}.review-log-transaction>.small{grid-column:1}.review-log-transaction>span:last-child{grid-column:2;grid-row:1/3;align-self:center}.review-log-correction{display:grid;gap:10px;padding:14px;margin:14px 0;background:var(--raised);border-radius:14px}.review-log-correction label{display:grid;gap:8px}.review-log-correction textarea{width:100%;min-height:72px}.review-log-correction button{min-height:44px}
@media(min-width:1000px){#review-section:not([hidden]){display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);align-items:start;gap:20px}#review-inbox-screen,#review-log-screen{grid-column:1;min-width:0}#review-question,#review-log-entry{grid-column:2;grid-row:1;position:sticky;top:20px;margin-top:0}#review-log-entry{grid-row:2}#review-undo,#review-section>.source-link{grid-column:1/-1}}
@media(max-width:999px){#review-section:has(#review-question:not([hidden])) #review-inbox-screen{display:none}}
@media(max-width:600px){.review-question-top{margin-bottom:14px}.review-question-amount{font-size:38px}.review-answer-buttons{display:grid}.review-answer-button{text-align:left}.review-log-row{grid-template-columns:minmax(0,1fr) auto 12px}.review-log-screen,.review-log-entry{padding:0 2px}.category-tree-options:not([hidden]){padding:92px 16px 20px}.category-search:not([hidden]){top:18px;left:16px;width:calc(100% - 32px)}}
/* Compact path rows inside the shared full-height category sheet. */
.category-tree-options{align-content:start}
.category-tree-option{display:block;align-self:start;width:100%;height:auto;min-height:44px;white-space:normal;line-height:1.35}
.review-answer-button[data-category-color]::before,.category-tree-option:not(.no-line)::before{content:"";display:inline-block;width:8px;height:8px;margin-right:9px;border-radius:50%;background:var(--category-color,#9199A6);vertical-align:1px}
.category-sheet-close{justify-self:start;min-height:44px;padding:0 10px}
.category-tree-options:not([hidden]){padding-top:88px}
.category-search:not([hidden]){top:18px}
/* Phone widths (where the tab bar is fixed to the bottom): an open question replaces the tab bar with its own pinned save bar. The category sheet (z-index 31) still covers it. */
@media(max-width:600px){body:has(#review-section:not([hidden]) #review-question:not([hidden])) .header-inner nav{display:none}body:has(#review-section:not([hidden]) #review-question:not([hidden])) .dashboard{padding-bottom:max(24px,env(safe-area-inset-bottom))}#review-question .review-savebar{position:sticky;bottom:0;z-index:20;margin:16px -16px 0;padding:10px 16px max(10px,env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--line)}.review-savebar .review-actions{display:grid}.review-savebar .review-actions button{width:100%}.review-savebar .review-answer-status{margin:8px 0 0}.review-savebar .review-answer-status:empty{display:none}}
.review-answer-button.has-caption{display:grid;gap:2px;justify-items:start;min-width:0;max-width:100%;padding:8px 18px;border-radius:18px}.review-answer-button.has-caption::before{content:none}.review-answer-caption{display:block;line-height:1.3}.review-answer-value{display:block;min-width:0;overflow-wrap:anywhere}.review-answer-button.has-caption[data-category-color] .review-answer-value::before{content:"";display:inline-block;width:8px;height:8px;margin-right:9px;border-radius:50%;background:var(--category-color,#9199A6);vertical-align:1px}.review-savebar button[data-needs-pick]:disabled{cursor:not-allowed}

/* Budget sheet: one dense table. The name column and both header rows stay in view while it scrolls inside its own box. Held cells are opaque and stack, top to bottom: the corner, the header rows, the name column, the body. */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
#budget-section .notice{margin-top:0}
#budget-retry{margin:0 0 20px}
.sheet-scroll{overflow:auto;max-width:100%;max-height:max(320px,calc(100dvh - 250px));background:var(--panel);border-radius:20px}
.sheet-scroll:focus-visible{outline:2px solid var(--mint);outline-offset:2px}
.sheet{width:100%;border-collapse:separate;border-spacing:0;font-size:14px;line-height:1.3}
.sheet-col-name{width:20%}
.sheet th,.sheet td{height:34px;padding:3px 10px;border-top:1px solid #232832;background:var(--panel);color:var(--text);font-size:inherit;font-weight:inherit;letter-spacing:0;text-transform:none;text-align:right;white-space:nowrap;vertical-align:middle}
.sheet .sheet-edge{border-left:1px solid #232832}
.sheet thead th{position:sticky;z-index:3;border-top:0;border-bottom:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:500}
.sheet .sheet-groups th{top:0;height:22px;padding:0 10px;border-bottom:0;font-size:11px;text-align:center}
.sheet .sheet-head{top:22px;height:26px;padding:0 10px}
.sheet .sheet-name{position:sticky;left:0;z-index:2;min-width:150px;padding:0;box-shadow:1px 0 0 var(--line);text-align:left;white-space:normal;overflow-wrap:break-word}
.sheet thead .sheet-name{top:0;z-index:4;height:auto;padding:0 10px}
.sheet-net th,.sheet-net td{font-size:15px;font-weight:600}
.sheet-top th,.sheet-top td,.sheet-cat th,.sheet-cat td{font-weight:500}
.sheet-open th,.sheet-open td{background:var(--raised);font-weight:600}
.sheet-line th,.sheet-line td,.sheet-more-row th,.sheet-more-row td{height:30px}
.sheet-line th{font-size:13px;font-weight:400}
.sheet-line td{color:var(--muted);font-size:13px}
.sheet-other th,.sheet-more-row th{font-weight:400}
.sheet-last-total th,.sheet-last-total td{border-bottom:8px solid var(--page)}
.sheet td.is-over{color:var(--coral)}
.sheet-lead{display:flex;align-items:center;gap:0;min-width:0;padding:3px 10px 3px calc(10px + var(--depth,0)*18px)}
.sheet-toggle{width:100%;min-height:33px;border-radius:0;background:transparent;color:inherit;font:inherit;justify-content:flex-start;text-align:left;white-space:normal;overflow-wrap:anywhere}
.sheet-toggle:focus-visible{outline-offset:-2px;border-radius:6px}
.sheet-line .sheet-toggle,.sheet-more-row .sheet-toggle{min-height:29px}
.sheet-more{color:var(--muted);font-size:13px;font-weight:400;white-space:nowrap}
.sheet-chevron{flex:none;width:16px;color:var(--muted);text-align:center}
.sheet-label{min-width:0}
.sheet-count{display:block;color:var(--muted);font-size:12px;font-weight:400}
/* The line under the table is a quiet link (muted text and a chevron, no fill) that opens the transactions it counts. */
#budget-not-counted{margin:6px 0 0;padding:0 4px;background:transparent;color:var(--muted);font-size:13px;font-weight:400;text-align:left;justify-content:flex-start;gap:.35em}
.budget-not-counted-chevron{flex:none}
@media(hover:hover){#budget-not-counted:hover:not(:disabled){color:var(--text);filter:none;text-decoration:underline;text-underline-offset:3px}}
@media(max-width:600px){.sheet-scroll{max-height:max(320px,calc(100dvh - 300px))}.sheet-col-name{width:140px}.sheet .sheet-name{min-width:140px}.sheet-lead{padding-left:calc(10px + var(--depth,0)*12px)}}
/* A phone held sideways has little height: the title waits, and once the page is scrolled past the site header the table fills the screen with its header held. */
@media(max-height:500px){#dashboard[data-page=budget] .page-heading{display:none}#dashboard[data-page=budget]{padding-top:12px}.sheet-scroll{max-height:calc(100dvh - 8px)}}
/* A Budget figure opens the transactions behind it. The button is the whole cell and adds nothing to the row's height; the list takes the table's place. */
.sheet td.sheet-fig-cell{padding:0}
.sheet-fig,.sheet-open-name{background:transparent;color:inherit;font:inherit;letter-spacing:0;border-radius:0}
.sheet-fig{display:flex;align-items:center;justify-content:flex-end;width:100%;min-height:33px;padding:3px 10px;text-align:right;white-space:nowrap}
.sheet-open-name{width:100%;min-height:33px;justify-content:flex-start;text-align:left;white-space:normal;overflow-wrap:anywhere}
.sheet-line .sheet-fig,.sheet-line .sheet-open-name{min-height:29px}
.sheet-fig:focus-visible,.sheet-open-name:focus-visible{outline-offset:-2px;border-radius:6px}
@media(hover:hover){.sheet-fig:hover,.sheet-open-name:hover{background:var(--control);text-decoration:underline;text-underline-offset:3px}}
.budget-tx-screen{max-width:820px}
.budget-tx-title{margin:4px 0 0;font-size:22px;letter-spacing:-.025em;overflow-wrap:anywhere}
.budget-tx-title:focus-visible{outline:2px solid var(--mint);outline-offset:3px;border-radius:6px}
.budget-tx-summary{margin:6px 0 14px}
#budget-tx-windows{margin-bottom:14px}
#budget-tx-retry,#budget-tx-more{margin:12px 0 0}
.budget-tx-rows{margin:14px 0 0;padding:0 16px;list-style:none;background:var(--panel);border-radius:20px}
.budget-tx-rows:empty{display:none}
.budget-tx{border-top:1px solid #232832}
.budget-tx:first-child{border-top:0}
.budget-tx:focus-visible{outline:2px solid var(--mint);outline-offset:-2px;border-radius:8px}
.budget-tx-name,.budget-tx-line,.budget-tx-account{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.budget-tx-name{font-weight:600}
/* The muted words after a row's name, inside the same cell so the row keeps its cells and its height: the merchant when the row is an item, which takes only what the name leaves; or what the charge still needs, which keeps its whole width while the name gives way. */
.budget-tx-name.has-aside{display:flex;align-items:baseline;gap:.4em}
.budget-tx-main{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.budget-tx-aside{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:400;color:var(--muted)}
.budget-tx-note{flex:none}
.budget-tx-date,.budget-tx-account,.budget-tx-line{color:var(--muted)}
.budget-tx-date{white-space:nowrap}
.budget-tx-amount{white-space:nowrap;font-weight:600;text-align:right}
.budget-tx-summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* PLAN-0073: a row of the not-counted list with a question in Review ends with a quiet link to Review. */
.budget-tx-review{display:inline-flex;align-items:center;gap:.3em;color:var(--muted);white-space:nowrap}
@media(hover:hover){.budget-tx-review:hover{color:var(--text);text-decoration:underline;text-underline-offset:3px}}
/* A ledger: from 700px up one 32px line a transaction in columns; below it two lines of about 48px, the merchant and amount over a muted line of date, line and account. */
@media(min-width:700px){.budget-tx{display:grid;grid-template-columns:96px minmax(0,1fr) minmax(0,1fr) 100px;align-items:center;column-gap:14px;min-height:32px;font-size:14px}.has-line>.budget-tx{grid-template-columns:96px minmax(0,1.3fr) minmax(0,1.6fr) minmax(0,1fr) 100px}.has-review>.budget-tx{grid-template-columns:96px minmax(0,1.3fr) minmax(0,1.4fr) minmax(0,1.2fr) 100px 76px}.budget-tx-review{justify-self:end}.budget-tx-name{font-weight:500}.budget-tx-line .category-leaf{font-weight:500}.budget-tx-amount{font-weight:500}}
@media(max-width:699px){.budget-tx{display:flex;flex-wrap:wrap;align-items:center;min-height:48px;padding:5px 0}.budget-tx::before{content:"";order:3;flex-basis:100%;height:0}.budget-tx-name{order:1;flex:1 1 0;font-size:15px}.budget-tx-amount{order:2;margin-left:12px;font-size:15px}.budget-tx-date,.budget-tx-line,.budget-tx-account{font-size:12px;line-height:1.35}.budget-tx-date{order:4;flex:none}.budget-tx-line{order:5;flex:0 1 auto}.budget-tx-account{order:6;flex:0 1 auto}.budget-tx-line::before,.budget-tx-account::before{content:"·";padding:0 6px}.budget-tx-review{order:7;flex:none;margin:-6px 0 -6px auto;padding:6px 0 6px 10px;font-size:12px;line-height:1.35}}
@media(max-width:600px){#budget-tx-windows{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;overflow:visible}#budget-tx-windows button{min-width:0;padding:0 3px;white-space:nowrap;font-size:12px}.budget-tx-rows{padding:0 14px}}
/* A phone held sideways has little height: the list's heading, summary and period control share the top rows. */
@media(max-height:500px){.budget-tx-screen:not([hidden]){display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"back title windows" "back summary summary";align-items:center;column-gap:12px}#budget-tx-back{grid-area:back;margin:0}.budget-tx-title{grid-area:title;margin:0;font-size:18px}.budget-tx-summary{grid-area:summary;margin:0}#budget-tx-windows{grid-area:windows;margin:0}#budget-tx-state,#budget-tx-retry,.budget-tx-rows,#budget-tx-more{grid-column:1/-1}}
/* PLAN-0074: a row of the not-counted list opens a category picker. The merchant is a button whose ::after covers the whole row (no padding added, no mark at rest but a chevron, a mint ring inside the row on focus, a faint fill and an underline under a pointer). Once a choice is made the chevron reads "Change ›" and the line column ends with the word for how the amount counts. */
.budget-tx{position:relative}
.budget-tx-open{min-height:0;padding:0;background:transparent;color:inherit;border-radius:0;text-align:left;justify-content:flex-start;gap:0}
.budget-tx-open:not(.has-aside){display:block}
.budget-tx-open:hover:not(:disabled){filter:none}
.budget-tx-open::after{content:"";position:absolute;inset:0;border-radius:8px}
.budget-tx-open:focus-visible{outline:none}
.budget-tx-open:focus-visible::after{outline:2px solid var(--mint);outline-offset:-2px}
.budget-tx[data-pick]::after{content:"›";content:"›" / "";color:var(--muted);white-space:nowrap;justify-self:end}
@media(min-width:700px){.budget-tx[data-pick=saved]::after{content:"Change ›";content:"Change ›" / ""}}
@media(hover:hover){.budget-tx[data-pick]:hover{background:var(--raised);border-radius:8px}.budget-tx[data-pick]:hover .budget-tx-open{text-decoration:underline;text-underline-offset:3px}}
.budget-tx-line.has-state{display:flex;align-items:baseline;min-width:0}
.budget-tx-line.has-state .category-path{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.budget-tx-state{flex:none;margin-left:.5em;font-weight:500}
.budget-tx-state.is-counted{color:var(--mint)}
.budget-tx-state.is-muted{color:var(--muted)}
@media(max-width:699px){.budget-tx[data-pick]::after{order:7;margin-left:auto;padding-left:10px;font-size:12px;line-height:1.35}.has-review>.budget-tx .budget-tx-account{flex:1 1 0}}
/* The picker: a full-height sheet on a phone, a dialog of at most 480px from 601px up. Its lines are Review's own (.category-tree-option); the container is not Review's full-screen one. */
.budget-picker{position:fixed;inset:0;z-index:40;display:flex;justify-content:center;background:var(--page)}
.budget-picker-card{display:flex;flex-direction:column;width:100%;min-height:0;padding:max(16px,env(safe-area-inset-top)) 16px 0}
.budget-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.budget-picker-title{margin:6px 0 0;font-size:18px;letter-spacing:-.02em;overflow-wrap:anywhere}
.budget-picker-search{width:100%;min-height:48px}
.budget-picker-options{display:grid;align-content:start;gap:4px;flex:1 1 auto;min-height:0;margin-top:10px;padding:6px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.budget-picker-options:empty{display:none}
.budget-picker .category-tree-option[aria-pressed=true]{background:var(--selected);box-shadow:inset 0 0 0 1px var(--mint)}
.budget-picker .category-tree-option[aria-pressed=true]:not(.no-line)::after{content:"✓";float:right;color:var(--mint)}
#budget-picker-empty{margin:10px 0 0}
.budget-picker-foot{display:grid;gap:10px;margin-top:auto;padding:12px 0 max(12px,env(safe-area-inset-bottom))}
.budget-picker-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.budget-picker-status-row:has(#budget-picker-status:empty):has(#budget-picker-action[hidden]){display:none}
.budget-picker-status{margin:0;color:var(--coral)}
#budget-picker-action{flex:none;min-height:36px;padding:0 12px;font-size:13px}
#budget-picker-save{width:100%;min-height:52px;text-align:center}
@media(min-width:601px){.budget-picker{align-items:center;background:rgba(5,7,9,.72)}.budget-picker-card{width:min(480px,calc(100% - 32px));height:min(640px,calc(100dvh - 48px));padding:20px 20px 0;border:1px solid var(--line);border-radius:20px;background:var(--panel)}.budget-picker-options{background:var(--page)}}

/* PLAN-0089: the front page, the last 365 days. Three numbers, one coral line only while an account is off, then the budgets from the most over down. */
.overview-front{display:flex;flex-direction:column;gap:20px}
.overview-front .notice{margin:0}
.overview-cards{display:flex;flex-wrap:wrap;align-items:flex-start;gap:20px}
.overview-card{flex:1 1 300px;min-width:0;margin-top:0;padding:24px 28px}
.overview-card .eyebrow{margin:0;font-size:11px;letter-spacing:.08em}
.overview-card>p{margin:8px 0 0;font-size:14px}
.overview-amount{margin-top:4px;font-size:48px;line-height:1.05;font-weight:600;letter-spacing:-.035em}
.overview-amount .cents{font-size:24px;letter-spacing:-.02em;color:var(--muted)}
.overview-amount.is-gain{color:var(--mint)}
.overview-card-list{margin:10px 0 0;padding:0;list-style:none}
.overview-card-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 12px;min-height:40px;padding:8px 0 10px;border-top:1px solid var(--track);font-size:14px}
.overview-card-track{flex:0 0 100%;height:6px;margin-top:6px;border-radius:3px;background:var(--track)}
.overview-card-fill{display:block;height:6px;border-radius:3px;background:var(--neutral)}
.overview-spark{margin-top:12px}
.overview-spark svg,.overview-plot svg{display:block;max-width:100%}
.overview-card-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.overview-card-date{margin-left:8px;font-size:12px}
.overview-card-amount{flex:none;font-weight:600;white-space:nowrap}
.overview-card-amount.muted{font-weight:400}
.overview-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;min-height:56px;padding:12px 28px;border-radius:20px;background:var(--panel);color:var(--text)}
.overview-line-off{font-weight:600;color:var(--over)}
.overview-line-go{display:inline-flex;align-items:center;gap:8px;font-size:14px}
@media(hover:hover){.overview-line:hover{background:var(--raised)}}
.overview-budgets{margin-top:0;padding:24px 28px 12px}
.overview-budgets-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;margin-bottom:8px}
.overview-budgets-head h2{font-size:17px;font-weight:600;letter-spacing:0}
.overview-budget-cols,.overview-budget-open{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.1fr);align-items:center;gap:16px}
.overview-budget-cols{min-height:32px;font:10px/1 "Geist Mono",ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.overview-budget-cols span:nth-child(n+3){text-align:right}
.overview-budget-rows{margin:0;padding:0;list-style:none}
.overview-budget{border-top:1px solid #232832}
.overview-budget-open{width:100%;min-height:56px;padding:0;border-radius:0;background:transparent;color:var(--text);font-size:14px;font-weight:400;text-align:left;justify-content:normal}
.overview-budget-open:focus-visible{outline:2px solid var(--mint);outline-offset:-2px;border-radius:8px}
@media(hover:hover){.overview-budget-open:hover{background:var(--raised);border-radius:8px}}
.overview-path{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.overview-bar{display:flex;height:8px;border-radius:4px;overflow:hidden;background:#232832}
.overview-bar-mint{flex:none;background:var(--mint)}
.overview-bar-over{flex:none;background:var(--over)}
.overview-fig,.overview-diff{text-align:right;white-space:nowrap}
.overview-diff{font-weight:600}
.overview-diff.muted{font-weight:400}
.overview-diff.is-over{color:var(--over)}
.overview-more{width:100%;min-height:48px;margin-top:4px;border-top:1px solid #232832;border-radius:0;background:none;color:var(--muted);font-size:14px;font-weight:500}
.overview-chart{margin-top:0;padding:24px 28px 20px}
.overview-chart-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px}
.overview-chart h2{font-size:17px;font-weight:600;letter-spacing:0}
.overview-chart-head p{margin:4px 0 0;font-size:14px}
.overview-legend{display:flex;flex-wrap:wrap;gap:4px 20px;font-size:13px;color:var(--muted)}
.overview-legend span{display:inline-flex;align-items:center;gap:8px}
.ov-key{display:inline-block;flex:none}
.ov-key.line{width:16px;height:2px;border-radius:1px}
.ov-key.square{width:10px;height:10px;border-radius:2px}
.ov-key.mint{background:var(--mint)}.ov-key.blue{background:var(--blue)}.ov-key.yellow{background:var(--yellow)}
.overview-plot{position:relative;margin-top:16px}
.overview-plot svg{touch-action:pan-y}
#overview-run-note{margin:8px 0 0}
.ov-grid{stroke:var(--track);stroke-width:1}
.ov-grid.zero{stroke:var(--line)}
.ov-axis{font:10px "Geist Mono",ui-monospace,monospace;fill:var(--muted)}
.ov-month{letter-spacing:.08em}
.ov-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.ov-line.mint{stroke:var(--mint)}.ov-line.blue{stroke:var(--blue)}
.ov-area{fill:var(--mint);fill-opacity:.1}
.ov-dot{stroke:var(--panel);stroke-width:2}
.ov-dot.mint{fill:var(--mint)}.ov-dot.blue{fill:var(--blue)}
.ov-end{font:600 13px Geist,Inter,system-ui,sans-serif;fill:var(--text)}
.ov-col.blue{fill:var(--blue)}.ov-col.yellow{fill:var(--yellow)}
.ov-cross{stroke:var(--muted);stroke-width:1;pointer-events:none}
.ov-hit{fill:transparent;outline:none}
.ov-hit:hover,.ov-hit:focus{fill:rgba(242,244,247,.05)}
.ov-hit:focus-visible{stroke:var(--mint);stroke-width:2}
.overview-tip{position:absolute;top:8px;z-index:2;min-width:150px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--raised);font-size:13px;line-height:1.5;pointer-events:none;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.overview-tip-title{font-weight:600;margin-bottom:2px}
.overview-tip-row{display:flex;align-items:center;gap:8px}
.overview-pair{display:flex;flex-wrap:wrap;align-items:flex-start;gap:20px}
.overview-pair>.overview-chart{flex:1 1 480px;min-width:0}
.overview-cats{margin:12px 0 0;padding:0;list-style:none}
.ov-cat{border-top:1px solid var(--track)}
.ov-cat-open{display:grid;grid-template-columns:104px minmax(0,1fr) 190px;align-items:center;gap:14px;width:100%;min-height:40px;padding:0;border-radius:0;background:transparent;color:var(--text);font-size:14px;font-weight:400;text-align:left;justify-content:normal}
.ov-cat-open:focus-visible{outline:2px solid var(--mint);outline-offset:-2px;border-radius:8px}
@media(hover:hover){.ov-cat-open:hover{background:var(--raised);border-radius:8px}}
.ov-cat-name{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ov-cat-bar{position:relative;display:flex;height:8px;border-radius:4px;background:var(--track)}
.ov-seg{flex:none;height:8px}
.ov-seg.mint{background:var(--mint);border-radius:4px 0 0 4px}
.ov-seg.over{background:var(--over);border-radius:0 4px 4px 0}
.ov-seg.neutral{background:var(--neutral);border-radius:4px}
.ov-seg.mint+.ov-seg.neutral{border-radius:0 4px 4px 0}
.ov-tick{position:absolute;top:-4px;width:2px;height:16px;border-radius:1px;background:var(--text)}
.ov-cat-figs{text-align:right;white-space:nowrap}
.ov-cat-more{display:flex;justify-content:space-between;align-items:center;min-height:40px;border-top:1px solid var(--track);font-size:13px;color:var(--muted)}
/* Below 700px a row is its path, then the bar, then three figures across, each with its label above. */
@media(max-width:699px){.overview-budget-cols{display:none}.overview-budget-open{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px 12px;padding:12px 0}.overview-path{grid-column:1/-1;font-size:15px}.overview-bar{grid-column:1/-1}.overview-fig{text-align:left}.overview-fig::before{display:block;content:attr(data-label);font:10px/1.6 "Geist Mono",ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}}
@media(max-width:600px){.overview-cards>*,.overview-pair>*{flex-basis:100%}.overview-pair{gap:12px}.overview-chart{padding:18px 16px 14px}.overview-line{padding:12px 16px}.ov-cat-open{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:10px 0}.ov-cat-bar{grid-column:1/-1;grid-row:2}.ov-cat-figs{grid-row:1;grid-column:2}.ov-cat-name{grid-row:1;grid-column:1}.overview-front,.overview-cards{gap:12px}.overview-card{padding:18px 16px}.overview-amount{font-size:40px}.overview-amount .cents{font-size:20px}.overview-budgets{padding:18px 16px 8px}}
