@layer legacy, direction;
@layer legacy {
/* Alaago Books — reference-led palette. Geist is bundled; license at /geist-license.txt. */
@font-face{font-family:Geist;src:url('/geist-variable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{
 --font:Geist,Arial,sans-serif;
 --navy:#0f1b33;--charcoal:#12161d;--orange:#ff5a1f;--canvas:#fbfbfc;
 --ink:var(--charcoal);--primary:var(--navy);--surface:#fff;--subtle:#f3f5f8;
 --muted:#626d7c;--brand-gray:#86909c;--line:#e2e6ed;--field-line:#a6afbd;
 --orange-soft:#fff4ee;--warm:#fff4e8;--warm-ink:#874713;--danger:#a22f29;
 font-family:var(--font);color:var(--ink);background:var(--canvas);color-scheme:light;
 font-synthesis:none;-webkit-font-smoothing:antialiased;
}
*{box-sizing:border-box}
body{margin:0}
header,footer{padding:25px 6vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.brand{font:700 32px var(--font);color:var(--navy);text-decoration:none}
.brand span{display:block;font:10px var(--font);letter-spacing:3px;margin-top:6px}
.badge,.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:var(--muted)}
main{max-width:1100px;padding:65px 30px;margin:auto;min-height:75vh}
#login{max-width:520px}
h1{font:normal clamp(36px,5vw,58px)/1.08 var(--font);margin:20px 0}
h2{font:normal 26px var(--font);margin-top:36px}
.intro{font-size:18px;color:var(--muted);line-height:1.6}
form{max-width:380px;margin-top:30px}
label{display:block;font-size:14px;margin:20px 0}
input{display:block;width:100%;margin-top:9px;padding:14px;border:1px solid var(--field-line);border-radius:6px;font:inherit;background:var(--surface)}
button{background:var(--orange);color:var(--charcoal);border:0;border-radius:6px;padding:15px 24px;font:600 15px var(--font);cursor:pointer}
button:disabled{opacity:.6}
button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
.note,footer{font-size:12px;line-height:1.7;color:var(--muted)}
.note{max-width:540px;margin-top:24px}
.heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.secondary{background:transparent;color:var(--navy);border:1px solid var(--field-line)}
.notice{padding:16px;background:var(--subtle);border-left:3px solid var(--orange)}
.client{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:6px}
table{width:100%;border-collapse:collapse;background:var(--surface);text-align:left}
th,td{padding:15px;border-bottom:1px solid var(--line);font-size:14px}
.table-wrap{overflow:auto}
#message{color:var(--muted);font-size:13px;line-height:1.6}
#message:empty{display:none}
#message[role="alert"]{color:var(--danger)}
footer{border-top:1px solid var(--line);border-bottom:0;gap:20px}
footer a{color:var(--navy)}
[hidden]{display:none!important}
@media(max-width:600px){header,footer{flex-wrap:wrap}
.heading{align-items:flex-start;flex-direction:column}
main{padding-top:35px}
.badge{font-size:9px}
}

#mfa-qr{display:block;background:var(--surface);padding:12px;border:1px solid var(--line);border-radius:12px;max-width:100%;height:auto;margin:20px 0}
#mfa-manual{max-width:440px;margin:20px 0}
#mfa-manual summary{cursor:pointer;color:var(--navy);font-size:14px}

select{display:block;width:100%;margin-top:9px;padding:14px;border:1px solid var(--field-line);border-radius:6px;font:inherit;background:var(--surface);color:inherit}
select:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
#banks{margin:30px 0;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:6px}
#banks h2{margin-top:0}
.bank-scope,.bank-actions{display:flex;gap:16px;flex-wrap:wrap}
.bank-scope label{flex:1;min-width:180px}
#bank-accounts{border:0;padding:0;margin:16px 0}
#bank-accounts label{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:6px}
#bank-accounts input{width:auto;margin:0;flex-shrink:0}
#bank-status{line-height:1.6}
button:disabled,select:disabled{cursor:default}


/* Monthly bookkeeping workspace. Financial state and layout selectors are preserved. */

body{line-height:1.5}
main{max-width:1320px;padding:48px 36px 72px}
button{transition:background .15s ease,border-color .15s ease}
button:hover:not(:disabled){background:#eb4a12}
.secondary:hover:not(:disabled){background:var(--subtle)}
.compact{padding:10px 14px;font-size:13px}
.workspace-heading{align-items:flex-start}
.workspace-heading h1{margin:14px 0 18px}
.workspace-heading .intro{font-size:16px;margin:0;max-width:700px}
.workspace-heading #logout{margin-top:8px;white-space:nowrap}
.access-line{display:flex;flex-wrap:wrap;gap:8px 18px;margin:20px 0 28px;font-size:12px;color:var(--muted)}
.access-item{padding-left:13px;position:relative}
.access-item:before{content:'';position:absolute;width:5px;height:5px;left:0;top:7px;background:var(--orange);border-radius:50%}
.filters{display:grid;grid-template-columns:1.05fr .85fr .9fr 1.3fr;gap:18px;padding:22px 24px;border:1px solid var(--line);border-radius:10px;background:var(--subtle)}
.filters label{margin:0;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.filters select,.filters input[type="month"]{margin-top:7px;padding:11px 34px 11px 12px;font-size:14px;letter-spacing:normal;text-transform:none;font-weight:400;min-width:0;background:var(--surface)}

.workspace-nav{display:flex;gap:24px;border-bottom:1px solid var(--line);margin:22px 0 0}
.workspace-nav button{transition:color .15s ease;border-radius:0;background:transparent;color:var(--muted);padding:17px 2px;border-bottom:3px solid transparent;font-size:14px}
.workspace-nav button:hover:not(:disabled){background:transparent;color:var(--primary)}
.workspace-nav button[aria-selected=true]{border-bottom-color:var(--primary);color:var(--primary)}
#review-tab-count:not(:empty){margin-left:6px;padding:3px 6px;border-radius:4px;font-size:11px;background:var(--orange-soft);color:var(--primary)}
.feedback{color:var(--warm-ink);font-size:14px;margin:20px 0}
.feedback:empty{display:none}
#book-retry{margin-bottom:20px}
[role=tabpanel]{padding-top:26px}
[role=tabpanel]:focus-visible{outline:2px solid var(--orange);outline-offset:5px}
.section-line{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.section-line .eyebrow{margin:0}
.section-line h2{margin:6px 0 0;font-size:30px}
.section-line h3{margin:0}
.pill{display:inline-block;font-size:11px;letter-spacing:.01em;line-height:1.4;padding:6px 9px;background:var(--subtle);border:1px solid var(--line);color:var(--navy);border-radius:5px;white-space:normal}
.pill.attention{background:var(--warm);border-color:#ecd8c5;color:var(--warm-ink)}
.pill.approved{background:#edf6f0;border-color:#cce3d4;color:#246441}
.summary-grid{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:18px}
.metric{display:flex;align-items:flex-start;flex-direction:column;padding:24px;border-radius:10px;border:1px solid var(--line);background:var(--surface);min-height:212px}
.metric p{font-size:13px;margin:0 0 16px;color:var(--muted)}
.metric>strong{font:normal clamp(28px,3vw,40px)/1.2 var(--font);margin-bottom:14px;color:var(--ink)}
.metric>span{font-size:12px;color:var(--muted);line-height:1.7}
.metric .word-value{font-size:28px}
.metric.review-metric{background:var(--orange-soft);border-color:#f5d6c7}
.waiting-metric{background:transparent;border-style:dashed}
.text-button{background:transparent;color:var(--primary);border:0;padding:14px 0 0;font-size:13px}
.text-button:hover:not(:disabled){background:transparent;text-decoration:underline}
.formula-note{font-size:13px;color:var(--muted);line-height:1.8;margin:20px 0 28px;padding-left:15px;border-left:2px solid var(--orange)}
.formula-note strong{font-weight:500;color:var(--ink)}
.overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.panel-heading{padding:24px 24px 18px}
.panel-heading .eyebrow{font-size:10px;margin:0 0 9px;letter-spacing:1.6px}
.panel-heading h2{font-size:28px;margin:0 0 9px}
.panel-heading>p:last-child{font-size:12px;color:var(--muted);margin:0;line-height:1.7}
.group-list{padding:0 24px 15px}
.group-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:15px 0;border-top:1px solid var(--line);font-size:13px}
.group-row strong{font-weight:500}
.group-row .muted{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.group-amount{text-align:right;font-variant-numeric:tabular-nums;flex-shrink:0;font-size:12px}
.vendor-panel{margin-top:22px}
th{font-size:10px;letter-spacing:.07em;text-transform:uppercase;font-weight:700;color:var(--muted);background:var(--subtle)}
th,td{padding:15px 18px}
tbody tr:last-child td{border-bottom:0}
td{font-size:13px;vertical-align:middle}
.numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
td small{display:block;font-size:11px;color:var(--muted);margin-top:6px;line-height:1.5}
td strong{font-weight:500}
.source-hint{max-width:230px}
.amount{font-weight:500}
.source-coverage{display:grid;grid-template-columns:1.2fr 1fr;gap:48px;padding:32px 2px 0;font-size:12px;color:var(--muted)}
.source-coverage h2{font-size:24px;margin:12px 0}
.source-coverage p{line-height:1.8}
.source-coverage ul{padding-left:18px;line-height:1.9}
.source-coverage li{margin-bottom:12px}
.section-description{color:var(--muted);font-size:14px;max-width:760px;margin:0 0 20px;line-height:1.8}
.inline-filter{display:flex;align-items:center;gap:12px;margin:0;font-size:12px;white-space:nowrap}
.inline-filter select{margin:0;padding:10px 30px 10px 12px;font-size:13px}
#transaction-coverage{max-width:none;margin:0 0 16px}
.table-wrap{position:relative;border-radius:7px}
#transactions{border:1px solid var(--line)}
#transactions td:first-child{min-width:140px}
#transactions td:nth-child(2){min-width:180px}
#transactions td:nth-child(4){min-width:155px}
#transactions td:last-child{width:80px}
.pagination{display:flex;align-items:center;justify-content:space-between;padding:17px 0;color:var(--muted);font-size:12px}
.pagination>div{display:flex;gap:10px}
.empty-state{font-size:13px;color:var(--muted);line-height:1.8;padding:18px 0;margin:0}
.vendor-panel>.empty-state{padding:4px 24px 24px}
.rules-panel{margin-top:28px}
.rule-list{padding:0 24px}
.rule-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0;border-top:1px solid var(--line);font-size:13px}
.rule-row strong{font-weight:500}
.rule-row p{margin:6px 0}
.rule-row small{font-size:11px;color:var(--muted)}
.rule-action{display:flex;align-items:center;gap:12px}
.panel-note{padding:0 24px 18px;max-width:none;font-size:11px}
.connection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.connection-card{padding:24px;border-radius:9px;border:1px solid var(--line);background:var(--surface);overflow-wrap:anywhere}
.connection-card .eyebrow{font-size:10px;margin:0 0 13px}
.connection-card h3{font:normal 22px/1.3 var(--font);margin:0 0 18px}
.connection-card p:not(.eyebrow){font-size:12px;color:var(--muted);line-height:1.8}
.connection-card small{font-size:11px;color:var(--muted)}
.connection-card .history-note{padding-top:12px;border-top:1px solid var(--line);margin-bottom:0}
.connection-grid>.empty-state{grid-column:1/-1;padding:24px;background:var(--subtle);border-radius:8px}
#banks{padding:28px;background:var(--surface);border-radius:10px}
#banks h2{font-size:28px}
#bank-setup>p{font-size:13px;color:var(--muted);max-width:730px;line-height:1.8}
#bank-status{font-size:14px}
.bank-scope{max-width:650px}
.bank-scope label{font-size:12px;margin:12px 0 20px}
.bank-scope select{padding:12px;font-size:14px}
#bank-accounts label{max-width:650px;font-size:13px}
#bank-selection{margin-top:28px;padding-top:18px;border-top:1px solid var(--line)}
#bank-selection p{font-size:13px;color:var(--muted)}
.bank-actions{margin-top:16px}
.integration-note{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px dashed var(--field-line);border-radius:10px;padding:24px}
.integration-note .eyebrow{font-size:10px;margin:0 0 8px}
.integration-note h3{font:normal 22px var(--font);margin:0 0 8px}
.integration-note p:not(.eyebrow){margin:0;font-size:12px;color:var(--muted)}

dialog{color:var(--ink);background:var(--canvas);border:1px solid var(--line);border-radius:14px;padding:28px;width:min(840px,calc(100vw - 32px));max-height:90vh;box-shadow:0 20px 80px #0f1b3326;overscroll-behavior:contain}
dialog::backdrop{background:#0f1b3399}
dialog form{max-width:none;margin-top:26px}
.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.dialog-heading .eyebrow{font-size:10px;margin-top:0}
.dialog-heading h2{font-size:28px;margin:0;overflow-wrap:anywhere}
.dialog-heading>button{flex-shrink:0}
.source-card{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:20px;margin:22px 0 18px}
.source-card h3{font:normal 22px var(--font)}
.source-card .section-line{margin-bottom:14px}
.source-card dl{display:grid;grid-template-columns:120px 1fr;gap:10px 22px;font-size:13px;margin:0}
.source-card dt{color:var(--muted)}
.source-card dd{margin:0;overflow-wrap:anywhere}
.source-card p,.trace-detail p{font-size:11px;color:var(--muted);line-height:1.8;margin-bottom:0}
#review-permission{font-size:12px;line-height:1.8}
#review-form h3{font:normal 24px var(--font);margin:26px 0 14px}
.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.form-columns label{margin-bottom:0}
#review-form label{font-size:12px}
#review-form input,#review-form select,textarea{font-size:14px}
textarea{display:block;width:100%;margin-top:9px;padding:12px;border:1px solid var(--field-line);border-radius:6px;font-family:inherit;line-height:1.6;resize:vertical;background:var(--surface);color:var(--ink)}
textarea:focus-visible,summary:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
.optional{font-size:11px;color:var(--muted);font-weight:400}
.check-label{display:flex;align-items:flex-start;gap:12px;line-height:1.8}
.check-label input{width:17px;height:17px;flex-shrink:0;margin:3px 0 0;accent-color:var(--primary)}
.suggestion{padding:12px 14px;border:1px solid #f0d7c9;background:var(--orange-soft);border-radius:6px;font-size:12px;line-height:1.8}
.dialog-actions{display:flex;align-items:center;gap:20px;margin:22px 0}
.dialog-actions span{font-size:11px;line-height:1.7;color:var(--muted);max-width:240px}
#detail-feedback,#rule-feedback{font-size:13px;line-height:1.7;color:var(--warm-ink)}
.trace-detail{border-top:1px solid var(--line);padding:16px 0;font-size:12px}
.trace-detail summary{cursor:pointer;color:var(--primary)}
pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:380px;overflow:auto;background:var(--subtle);padding:15px;border-radius:6px;font-size:11px;line-height:1.7}
#rule-dialog{max-width:560px}
#rule-dialog>p{font-size:13px;line-height:1.8}
button:disabled{cursor:default}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:1020px){.filters{grid-template-columns:1fr 1fr}
.summary-grid{gap:12px}
.metric{padding:20px}
.connection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.group-row{gap:14px}
.group-amount{max-width:45%;white-space:normal}
.rule-action{flex-direction:column;align-items:flex-end}
}

@media(max-width:720px){main{padding:28px 20px 50px}
header,footer{padding:22px 20px}
.workspace-heading{flex-direction:row}
.workspace-heading h1{font-size:38px}
.workspace-heading .intro{font-size:14px}
.workspace-heading #logout{font-size:11px;padding:9px}
.filters{gap:15px;padding:18px}
.filters select,.filters input[type="month"]{font-size:13px}
.filters label:nth-child(n+3){grid-column:1/-1}
.summary-grid{grid-template-columns:1fr}
.metric{min-height:0;padding:21px}
.metric>strong{font-size:36px}
.metric p{margin-bottom:12px}
.metric>strong{margin-bottom:10px}
.waiting-metric .word-value{font-size:26px}
.overview-grid{grid-template-columns:1fr}
.section-line{align-items:flex-start}
.section-line>.pill{font-size:10px;max-width:145px}
.workspace-nav{gap:20px}
.workspace-nav button{font-size:13px}
.source-coverage{grid-template-columns:1fr;gap:4px}
.connection-grid{grid-template-columns:1fr}
.rule-row{align-items:flex-start;gap:18px}
.rule-action .compact{max-width:125px;padding:9px;white-space:normal}
.rule-list{padding:0 20px}
.panel-heading{padding:22px 20px 18px}
.group-list{padding:0 20px 14px}
.form-columns{grid-template-columns:1fr;gap:0}
dialog{padding:20px}
.source-card{padding:16px}
.source-card dl{grid-template-columns:90px 1fr;gap:9px 13px;font-size:12px}
.dialog-heading h2{font-size:24px}
.dialog-actions{align-items:flex-start;flex-direction:column;gap:12px}
#banks{padding:22px}
.integration-note{align-items:flex-start}
.inline-filter{font-size:11px;gap:7px}
.inline-filter select{max-width:150px;font-size:12px}
.section-line h2{font-size:28px}
.page-description{font-size:11px}
}

@media(prefers-reduced-motion:reduce){button{transition:none}
}


/* Read-only Shopmonkey reports reuse the workspace panels and tables. */
.filter-scope-note{font-size:11px;color:var(--muted);margin:10px 0 0;line-height:1.7}
.workspace-nav{overflow-x:auto}
.workspace-nav button{white-space:nowrap}
.report-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:18px 0}
.report-summary{margin:20px 0}
.report-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0;padding:0 24px 12px}
.report-count{border-top:1px solid var(--line);padding:12px 0}
.report-count dt{font-size:11px;color:var(--muted)}
.report-count dd{font-size:14px;margin:8px 0 0;font-variant-numeric:tabular-nums}
.report-coverage{margin:28px 0}
.report-coverage>h3{font:normal 24px var(--font)}
.report-warning{color:var(--warm-ink)!important}
.report-notes{font-size:12px;line-height:1.9;color:var(--muted);padding-left:20px}
.report-reference{font-size:11px;max-width:280px;min-width:125px}
.report-reference summary{cursor:pointer;color:var(--primary)}
.report-reference p{overflow-wrap:anywhere;line-height:1.7}
.report-history-note{max-width:none}
#shopmonkey-payments td:first-child{min-width:145px}
#shopmonkey-payments td:nth-child(4){min-width:175px}
#shopmonkey-vendors td:first-child{overflow-wrap:anywhere;max-width:300px}
.report-summary .panel-heading h3{font:normal 22px var(--font);margin:0}
.report-summary .panel-heading h2{font-variant-numeric:tabular-nums}
.waiting-metric #shopmonkey-collections{font-size:clamp(24px,3vw,36px)}

@media(max-width:720px){.report-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 20px 12px}
.report-actions{align-items:flex-start;gap:10px}
.report-actions .pill{font-size:10px}
.report-coverage .connection-card{padding:20px}
#shopmonkey-pagination{align-items:flex-start;gap:12px;flex-direction:column}
}


/* Transaction search and explicit batch review. */
.transaction-search{display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(160px,1fr) auto;gap:16px;align-items:end;max-width:none;margin:20px 0}
.transaction-search label{margin:0;font-size:12px}
.transaction-search input,.transaction-search select{padding:11px 12px;font-size:14px}
.transaction-search>div{display:flex;gap:8px;padding-bottom:1px}
.bulk-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:18px;background:var(--subtle);border:1px solid var(--line);border-radius:9px;margin:20px 0}
.bulk-toolbar>div{display:flex;flex-wrap:wrap;gap:8px}
.bulk-toolbar p{flex-basis:100%;font-size:12px;color:var(--muted);margin:0}
#transactions td:first-child{min-width:42px;width:42px;padding-right:0}
#transactions td:nth-child(2){min-width:140px}
#transactions td:nth-child(3){min-width:180px}
#transactions td:nth-child(4){min-width:0}
#transactions td:nth-child(5){min-width:155px}
#transactions input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--primary);cursor:pointer}
.bulk-preview{list-style:none;padding:0;max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.bulk-preview li{display:grid;gap:5px;padding:13px 16px;font-size:13px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.bulk-preview li:last-child{border-bottom:0}
.bulk-preview strong{font-weight:600}
.bulk-preview span,.bulk-preview small{font-size:12px;color:var(--muted)}
#bulk-dialog .section-description{margin-top:18px}
#bulk-dialog .note{max-width:none;margin-top:12px}
#bulk-feedback{font-size:13px;color:var(--warm-ink);line-height:1.7}
#bulk-totals{font-size:13px;font-variant-numeric:tabular-nums}
#bulk-form label{font-size:12px}

@media(max-width:900px){.transaction-search{grid-template-columns:1fr 1fr}
.transaction-search>div{grid-column:1/-1}
.bulk-toolbar>button{margin-left:auto}
}
@media(max-width:520px){.transaction-search{grid-template-columns:1fr}
.bulk-toolbar>button{margin-left:0}
.bulk-toolbar>div{width:100%}
}


/* Traceable historical identifiers. */
.knowledge-search{max-width:none;display:flex;align-items:flex-end;gap:14px;margin:24px 0}
.knowledge-search label{margin:0;flex:1;max-width:540px;font-size:12px}
.knowledge-search input{font-size:14px;padding:11px}
.knowledge-search>div{display:flex;gap:8px}
.knowledge-scope-note{max-width:none;margin:12px 0 20px}
.knowledge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.knowledge-card{padding:21px;border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow-wrap:anywhere}
.knowledge-card .eyebrow{font-size:10px;margin:0 0 10px}
.knowledge-card h3{font:normal 21px/1.3 var(--font);margin:0 0 14px}
.knowledge-card p{font-size:12px;line-height:1.7;margin:9px 0}
.knowledge-card small{font-size:11px;color:var(--muted);display:block}
.knowledge-note{color:var(--muted)}
.knowledge-provenance{margin:16px 0 0;border-top:1px solid var(--line);padding-top:12px;font-size:12px}
.knowledge-provenance summary{cursor:pointer}
.knowledge-provenance small{overflow-wrap:anywhere}
.knowledge-detail{margin:24px 0}
.knowledge-detail>h3{font:normal 24px var(--font)}
.knowledge-detail .knowledge-card{margin:12px 0}
.knowledge-card button{margin-top:15px}
.knowledge-detail .note{max-width:none}
@media(max-width:720px){.knowledge-grid{grid-template-columns:1fr}
.knowledge-search{align-items:stretch;flex-direction:column}
.knowledge-search label{max-width:none}
}

/* Brand shell, hierarchy and component finish. No bookkeeping behavior is defined here. */
body{font-size:15px}
h1,h2,h3{color:var(--navy);font-family:var(--font);letter-spacing:-.035em;font-weight:550}
h1{line-height:1.08;font-weight:550}
h2{font-weight:550}
a{color:var(--navy)}
button,input,select,textarea{font-family:var(--font);border-radius:10px;min-height:44px}
button{font-weight:600;transition:background .18s ease,border-color .18s ease,color .18s ease}
button:disabled{opacity:.48;cursor:not-allowed}
input,select,textarea{color:var(--ink);border-color:var(--field-line)}
input[type=checkbox],input[type=radio]{min-height:0;accent-color:var(--navy)}
:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
#main-content:focus{outline:none}
.skip-link{position:fixed;left:16px;top:-80px;z-index:20;background:var(--navy);color:#fff;border-radius:8px;padding:12px 18px}
.skip-link:focus{top:12px}
.app-header{max-width:1440px;margin:auto;padding:24px 48px;background:var(--canvas);min-height:106px}
.brand{display:inline-flex;align-items:center;gap:20px;color:var(--navy);text-decoration:none;font-family:var(--font)}
.brand-wordmark{display:block;width:151px;height:44px;overflow:visible}
.brand .brand-product{display:inline-block;border-left:1px solid #cdd3dc;padding-left:20px;margin:0;font:450 24px/1 var(--font);letter-spacing:-.8px}
.badge{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:450;letter-spacing:0;color:var(--muted)}
.brand-spark{width:7px;height:7px;border-radius:50%;background:var(--orange)}
.orange-dot{color:var(--orange)}
main{padding:44px 48px 72px;max-width:1440px}
.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:600;color:var(--muted)}
.workspace-heading{gap:24px}
.workspace-heading h1{font-size:clamp(36px,4.1vw,58px);margin:15px 0 14px}
.workspace-heading .intro{font-size:15px;color:var(--muted)}
.workspace-heading #logout{border-radius:24px;padding:10px 20px;font-size:12px}
.access-line{margin:20px 0 28px;font-size:12px}
.access-item:before{top:8px}
.filters{border-radius:16px;background:var(--surface);padding:20px 24px;gap:20px;box-shadow:0 3px 14px #0f1b3303}
.filters label{font-size:11px;letter-spacing:.06em;color:var(--muted)}
.filters select,.filters input[type=month]{border-color:var(--line);background:var(--canvas);font-weight:500;border-radius:9px;min-height:44px}
.filter-scope-note{font-size:11px;line-height:1.6;margin:12px 2px 0}
.workspace-nav{gap:30px;margin-top:24px;scrollbar-width:thin}
.workspace-nav button{display:inline-flex;align-items:center;gap:9px;padding:18px 2px 16px;font-size:13px;font-weight:500;min-height:56px}
.workspace-nav button[aria-selected=true]{border-bottom-color:var(--orange);color:var(--navy);font-weight:650}
.workspace-nav .nav-icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#review-tab-count:not(:empty){border-radius:6px;background:var(--orange-soft);color:#963808}
[role=tabpanel]{padding-top:28px}
.pill{border-radius:7px;padding:6px 9px;font-size:11px}
.section-line h2{font-size:30px;font-weight:550}
.summary-grid{gap:18px;grid-template-columns:1.15fr 1fr 1fr}
.metric{border-radius:18px;padding:26px;min-height:220px;box-shadow:0 5px 18px #0f1b3303}
.metric p{font-size:13px;font-weight:500;color:var(--muted);margin-bottom:19px}
.metric>strong{font-family:var(--font);font-weight:550;letter-spacing:-.055em;font-size:clamp(30px,3.2vw,44px);font-variant-numeric:tabular-nums;color:var(--navy)}
.metric>span{font-size:12px;line-height:1.7}
.metric.review-metric{background:var(--orange-soft);border-color:#f2dace}
.waiting-metric{background:var(--surface);border-style:solid}
.text-button{font-size:12px;padding:12px 0 0;min-height:40px;margin-top:auto;color:var(--navy);border-radius:4px}
.text-button span{margin-left:4px;color:#a74013}
.formula-note{margin:22px 0 30px;padding-left:16px;font-size:12px;border-left-width:3px}
.formula-note strong{font-weight:550}
.panel{border-radius:16px;box-shadow:0 4px 18px #0f1b3303}
.panel-heading{padding:26px 26px 20px}
.panel-heading .eyebrow{font-size:10px;letter-spacing:.14em}
.panel-heading h2{font-size:26px;font-weight:550}
.panel-heading>p:last-child{font-size:12px;line-height:1.7}
.group-list{padding:0 26px 16px}
.group-row{padding:17px 0;font-size:13px}
.group-row strong,.group-amount{font-weight:550}
.group-row .muted{font-size:11px}
.table-wrap{border-radius:12px;border:1px solid var(--line)}
.panel .table-wrap{border-radius:0;border-width:1px 0 0}
th{background:var(--subtle);color:var(--muted);font-size:10px;letter-spacing:.07em;padding:14px 20px;white-space:nowrap}
td{padding:18px 20px;border-color:var(--line);font-size:13px}
tbody tr:hover{background:#f9fafc}
td strong{font-weight:550}
.numeric,.amount{font-variant-numeric:tabular-nums;font-feature-settings:'tnum'}
.source-coverage{gap:40px;padding-top:30px}
.source-coverage h2{font-size:24px;font-weight:550}
.source-coverage p,.source-coverage ul{font-size:12px}
.source-coverage .eyebrow{font-size:10px}
.secondary{border-color:var(--line);color:var(--navy);background:var(--surface)}
.secondary:hover:not(:disabled){background:var(--subtle);border-color:#abb5c5}
.compact{font-size:12px;padding:10px 15px;min-height:44px}
.connection-card,.knowledge-card{border-radius:16px;background:var(--surface);padding:24px;box-shadow:0 4px 16px #0f1b3303}
.connection-card h3,.knowledge-card h3,.integration-note h3{font-family:var(--font);font-size:21px;font-weight:550;letter-spacing:-.025em}
.knowledge-detail>h3,.report-coverage>h3,.source-card h3,#review-form h3,.report-summary .panel-heading h3{font-family:var(--font);font-weight:550;font-size:22px;letter-spacing:-.03em}
.report-summary .panel-heading h2{font-size:40px;font-weight:550;letter-spacing:-.05em}
.report-count dd{font-weight:550}
.report-counts{gap:20px}
.report-notes,.report-history-note{font-size:12px}
.bulk-toolbar{background:var(--subtle);border-radius:12px}
.transaction-search input,.transaction-search select,.knowledge-search input{min-height:44px}
.rule-list{padding:0 26px}
.rule-row strong{font-weight:550}
.connection-grid>.empty-state{background:var(--subtle);border:1px solid var(--line);border-radius:14px}
#banks{border-radius:16px;margin-top:24px}
#banks h2{font-weight:550}
.source-card{border-radius:12px}
.source-card dt,.source-card dd{font-size:13px}
.suggestion{border-radius:10px}
dialog{background:var(--canvas);border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:0 24px 100px #0f1b3340}
dialog::backdrop{background:#0f1b3399}
.dialog-heading h2{font-weight:550;letter-spacing:-.035em}
.trace-detail summary,.report-reference summary,.knowledge-provenance summary{min-height:28px}
.trace-detail pre{background:var(--subtle)}
.feedback,#message{padding:0;line-height:1.7}
#invite,#mfa{max-width:600px;margin:35px auto 65px;padding:40px;background:var(--surface);border:1px solid var(--line);border-radius:22px}
#invite h1,#mfa h1{font-size:44px}
#invite form,#mfa form{max-width:none}
#mfa-qr{border-radius:14px}
.auth-layout{display:grid;grid-template-columns:1.1fr 1fr;max-width:1120px!important;margin:16px auto 36px;border:1px solid var(--line);border-radius:24px;overflow:hidden;background:var(--surface);box-shadow:0 12px 48px #0f1b3306}
.auth-story{padding:54px 48px;background:var(--navy);color:#fff;display:flex;flex-direction:column;min-height:578px}
.auth-story .eyebrow{color:#c0c9da;font-size:10px;letter-spacing:.17em;margin:0 0 36px}
.auth-story h1{color:#fff;font-weight:500;font-size:clamp(42px,4.2vw,60px);letter-spacing:-.055em;margin:0 0 25px;line-height:1.1}
.auth-story .intro{color:#c4cdde;font-size:15px;line-height:1.8;margin:0}
.auth-story-footer{display:flex;align-items:center;gap:16px;margin-top:auto;padding-top:72px}
.auth-story-footer p{font-size:9px;letter-spacing:.22em;line-height:1.9;color:#c4cdde;margin:0}
.brand-orbit{display:block;width:32px;height:32px;border:6px solid #fff;border-radius:50%;position:relative}
.brand-orbit:after{content:'';position:absolute;width:8px;height:8px;background:var(--orange);border-radius:50%;right:-13px;bottom:-5px}
.auth-form-panel{padding:53px 54px;display:flex;flex-direction:column;justify-content:center}
.auth-form-panel .eyebrow{margin:0 0 12px;font-size:10px}
.auth-form-panel h2{margin:0 0 12px;font-size:32px;line-height:1.2;font-weight:550}
.auth-form-panel .intro{font-size:14px;margin:0;line-height:1.65}
.auth-form-panel form{max-width:none;margin:16px 0 0}
.auth-form-panel label{font-size:12px;font-weight:550;margin:20px 0}
.auth-form-panel input{background:var(--canvas);border-color:#c2c9d4;min-height:48px;font-size:15px;font-weight:400;margin-top:8px}
.auth-form-panel button{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:26px;min-height:48px;padding:14px 18px;font-size:13px}
.auth-form-panel .note{font-size:11px;margin:20px 0 0;line-height:1.7}
.auth-assurance{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);margin-top:26px}
.auth-assurance svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.app-footer{max-width:1440px;margin:auto;padding:26px 48px;border-top:1px solid var(--line);font-size:10px;flex-wrap:wrap;color:var(--muted)}
.footer-brand{color:var(--navy);font-weight:650;font-size:22px;letter-spacing:-.08em}
.footer-brand>span:last-child{font-size:14px;font-weight:450;letter-spacing:-.03em;margin-left:4px}
@media(max-width:1100px){.workspace-nav{gap:22px}.workspace-nav button{font-size:12px;gap:7px}.auth-story{padding:42px 36px}.auth-form-panel{padding:42px 36px}.summary-grid{gap:14px}.metric{padding:22px}.metric>strong{font-size:35px}}
@media(max-width:800px){.app-header{padding:22px 24px;min-height:90px}.brand-wordmark{width:130px;height:39px}.brand{gap:14px}.brand .brand-product{font-size:21px;padding-left:14px}.badge{font-size:11px}main{padding:30px 24px 54px}.auth-layout{grid-template-columns:1fr}.auth-story{min-height:0;padding:36px}.auth-story .eyebrow{margin-bottom:24px}.auth-story h1{font-size:46px;max-width:520px}.auth-story-footer{display:none}.auth-form-panel{padding:36px}.app-footer{padding:24px}.app-footer>span:last-child{flex-basis:100%}}
@media(max-width:720px){.workspace-heading h1{font-size:38px}.workspace-heading .intro{font-size:14px}.workspace-heading #logout{font-size:11px;min-height:44px;padding:9px 14px}.summary-grid{grid-template-columns:1fr}.metric{min-height:190px;padding:24px}.metric>strong{font-size:40px}.workspace-nav{gap:24px}.workspace-nav button{font-size:12px}.section-line h2{font-size:27px}.section-line>.pill{max-width:155px}.panel-heading{padding:24px 22px 18px}.group-list{padding:0 22px 14px}.overview-grid{gap:18px}.form-columns{grid-template-columns:1fr}.source-coverage{gap:8px}.app-header .badge{display:none}.filters{padding:18px;gap:14px}.filters label:nth-child(n+3){grid-column:1/-1}.filters select,.filters input[type=month]{font-size:14px}.transaction-search{grid-template-columns:1fr}.connection-card,.knowledge-card{padding:22px}.knowledge-grid{grid-template-columns:1fr}.pagination{gap:16px;align-items:flex-start;flex-wrap:wrap}.source-card dt,.source-card dd{font-size:12px}.dialog-heading h2{font-size:24px}.inline-filter select{max-width:145px}dialog{padding:20px}.app-footer{gap:16px}}
@media(max-width:420px){main{padding:24px 18px 44px}.app-header{padding:19px 20px;min-height:84px}.workspace-heading{gap:12px}.workspace-heading h1{font-size:33px}.workspace-heading #logout{padding:8px 11px}.workspace-heading .eyebrow{font-size:9px}.access-line{font-size:11px}.filters{padding:16px;gap:12px}.filters label{font-size:10px}.section-line{gap:12px}.section-line>.eyebrow{font-size:10px}.summary-grid{gap:12px}.auth-story,.auth-form-panel{padding:29px 25px}.auth-story h1{font-size:41px}.auth-form-panel h2{font-size:29px}.auth-layout{margin:4px 0 24px;border-radius:18px}#invite,#mfa{padding:26px;margin-top:8px}.brand-wordmark{width:127px}.report-counts{grid-template-columns:1fr 1fr}.inline-filter{white-space:normal;align-items:flex-start;flex-direction:column;gap:6px}.dialog-actions{gap:14px}.bulk-toolbar>div{display:grid;grid-template-columns:1fr}.bank-actions{flex-direction:column;align-items:stretch}.source-card dl{grid-template-columns:82px 1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Client workspace: shared scope, persistent navigation, clear drilldowns. */
body:has(#workspace:not([hidden])) main{max-width:1600px;padding:32px 36px 64px 270px}
.workspace-nav{position:fixed;left:24px;top:125px;bottom:28px;width:210px;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:22px 12px;background:var(--navy);border:0;border-radius:18px;overflow:auto;z-index:10}
.workspace-nav .nav-heading{color:#acb9d0;font-size:10px;font-weight:600;letter-spacing:.12em;padding:4px 14px 18px;margin:0}
.workspace-nav button{flex:none;text-align:left;justify-content:flex-start;white-space:normal;border:0;border-radius:10px;color:#d3dced;min-height:50px;margin:0;padding:13px 14px;font-size:13px;gap:12px}
.workspace-nav button[aria-selected=true]{background:var(--surface);color:var(--navy);box-shadow:inset 3px 0 var(--orange)}
.workspace-nav button:hover:not([aria-selected=true]){background:#24334e;color:#fff}
.workspace-nav button:after{display:none}.workspace-nav .nav-icon{flex-shrink:0;width:19px;height:19px}
.workspace-nav #review-tab-count:empty{display:none}.nav-toggle{display:none}
.workspace-heading{margin-bottom:18px}.workspace-heading h1{font-size:clamp(30px,3vw,44px);letter-spacing:-.045em}
.filters{box-shadow:none;gap:16px;padding:18px 20px}.filter-scope-note{font-size:12px;margin:10px 0 26px}
.summary-grid{gap:18px}.metric{border-radius:18px;min-height:205px;padding:26px}.metric>strong{font-size:clamp(28px,2.5vw,39px);letter-spacing:-.045em}.metric.waiting-metric{background:var(--navy);color:#fff}.metric.waiting-metric p,.metric.waiting-metric span,.metric.waiting-metric .text-button{color:#d3dced}.metric.waiting-metric strong{color:#fff}
.result-banner{display:flex;align-items:center;justify-content:space-between;gap:32px;margin:22px 0;padding:24px 28px;border:1px solid var(--line);border-left:4px solid var(--orange);border-radius:14px;background:var(--surface)}
.result-banner h2{margin:0;font-size:25px}.result-banner .eyebrow{margin:0 0 6px}.result-banner>p{max-width:600px;margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.category-panel{margin:24px 0}.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 24px 24px}.category-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;min-width:0;padding:20px;background:var(--canvas);color:var(--navy);border:1px solid var(--line);border-radius:12px;transition:background .15s,border-color .15s}
.category-card:hover{background:#fff5f0;border-color:#e58d67}.category-card strong{font-size:25px;letter-spacing:-.04em}.category-card small{font-size:12px;color:var(--muted);font-weight:400}.category-name{font-size:13px;font-weight:600}.category-card:focus-visible,.group-row:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
button.group-row{width:100%;text-align:left;background:transparent;color:var(--navy);border:0;border-bottom:1px solid var(--line);border-radius:0;padding:17px 0;min-height:60px;font-size:13px}button.group-row:hover{background:var(--subtle)}
.check-evidence{border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:24px;background:var(--canvas)}.check-evidence h3{margin:0}.check-evidence p{font-size:13px;color:var(--muted)}.check-image-wrap{max-width:100%;overflow:auto}.check-image-wrap img{display:block;width:100%;height:auto;background:var(--surface);border:1px solid var(--line);margin:12px 0}.check-image-wrap img.enlarged{width:150%;max-width:none}.check-image-wrap button{position:sticky;left:0}
#transaction-dialog{width:min(960px,94vw)}#transactions td:last-child{min-width:100px}#transactions .text-button{display:block;min-height:44px;font-size:12px}button,input,select{touch-action:manipulation}
@media(min-width:721px) and (max-width:1100px){body:has(#workspace:not([hidden])) main{padding-left:230px;padding-right:24px}.workspace-nav{left:16px;width:190px}.summary-grid{grid-template-columns:1fr}.metric{min-height:150px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.result-banner{align-items:flex-start;flex-direction:column;gap:12px}}
@media(max-width:720px){body:has(#workspace:not([hidden])) main{padding:22px 18px 44px}.nav-toggle{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 0 18px;min-height:46px}.workspace-nav{display:none;position:static;width:auto;padding:12px;margin:0 0 22px;gap:6px}.workspace-nav.is-open{display:flex}.workspace-nav .nav-heading{padding-bottom:6px}.workspace-nav button{min-height:48px;font-size:14px}.filters{grid-template-columns:1fr 1fr;padding:16px}.filters label:nth-child(n+3){grid-column:auto}.summary-grid{grid-template-columns:1fr}.metric{min-height:160px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px 16px;gap:10px}.category-card{padding:16px 12px}.category-card strong{font-size:22px}.category-name{font-size:12px}.result-banner{align-items:flex-start;flex-direction:column;gap:12px;padding:22px}.check-evidence{padding:14px}.check-evidence .section-line{align-items:flex-start;flex-direction:column}.panel-heading{padding:22px 18px}.filter-scope-note{margin-bottom:16px}.workspace-heading .intro{max-width:30ch}}
@media(prefers-reduced-motion:reduce){.category-card{transition:none}}

#google-login{width:100%;margin-bottom:8px}#admin-clients{margin-bottom:28px}#admin-create-form{max-width:600px;display:grid;gap:16px}#admin-create-form textarea{font:inherit;border:1px solid #86909c;border-radius:10px;padding:12px;max-width:100%;resize:vertical}#panel-admin .connection-card{overflow-wrap:anywhere}

/* Task-based navigation: a consistent workspace rail and focused destinations. */
body:has(#workspace:not([hidden])){background:var(--canvas)}
body:has(#workspace:not([hidden])) .app-header{position:fixed;left:0;top:0;width:244px;height:98px;min-height:0;padding:28px 24px;z-index:21;background:var(--surface);border-right:1px solid var(--line);border-bottom:0}
body:has(#workspace:not([hidden])) .app-header .badge{display:none}
body:has(#workspace:not([hidden])) .brand{gap:10px}
body:has(#workspace:not([hidden])) .brand-wordmark{width:126px;height:38px}
body:has(#workspace:not([hidden])) .brand-product{font-size:20px;padding-left:10px}
body:has(#workspace:not([hidden])) main{max-width:1720px;min-height:100vh;margin:0 auto;padding:38px 40px 64px 284px}
.workspace-nav{left:0;top:98px;bottom:0;width:244px;padding:14px 16px 24px;border-radius:0;background:var(--surface);border-right:1px solid var(--line);gap:5px}
.workspace-nav .nav-heading{padding:10px 14px;color:#747e8e;font-size:10px;letter-spacing:.13em}
.workspace-nav .nav-management{margin-top:24px}
.workspace-nav button{color:#566174;font-size:14px;font-weight:500;min-height:48px;background:transparent;padding:12px 14px}
.workspace-nav button:hover:not([aria-current=page]){background:#f3f5f8;color:var(--navy)}
.workspace-nav button[aria-current=page]{color:var(--navy);background:#fff0e8;box-shadow:inset 3px 0 var(--orange);font-weight:650}
.nav-footer{margin-top:auto;padding:30px 12px 0;display:grid;gap:10px}
.nav-private{font-size:11px;color:var(--muted)}
.workspace-nav .nav-footer button{border:1px solid var(--line);font-size:12px;justify-content:center;text-align:center}
#clients{display:none}
.workspace-heading{align-items:center;margin:0 0 28px;gap:24px}
.workspace-heading h1{font-size:clamp(30px,3vw,42px);margin:10px 0 12px;font-weight:550}
.workspace-heading .intro{font-size:14px;margin:0;max-width:62ch;line-height:1.6}
.workspace-heading .eyebrow{font-size:10px;letter-spacing:.13em;margin:0}
#workspace-find{display:flex;align-items:center;gap:9px;white-space:nowrap;background:var(--surface);flex-shrink:0}
#workspace-find .nav-icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}
.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:16px 20px}
.filters label{font-size:11px;margin:0;min-width:0;font-weight:550;color:var(--muted)}
.filters select,.filters input[type=month]{font-size:13px;min-height:44px;margin-top:6px;border:1px solid #e0e4eb;background:#fafbfc;padding:9px 10px;width:100%;min-width:0;color:var(--navy)}
.filter-scope-note{font-size:11px;margin:10px 2px 24px;color:var(--muted)}
#book-feedback:empty{display:none}
#panel-transactions,#panel-connections,#panel-admin,#panel-knowledge{margin-top:26px}
#panel-shopmonkey,#panel-spending{margin-top:22px}
#panel-overview{margin-top:24px}
[role=region]:focus,#panel-spending:focus{outline:none}
.section-line h2{font-size:24px;margin:0}
.section-description{font-size:13px;line-height:1.7}
.result-banner{background:var(--navy);color:#fff;border:0;border-radius:18px;padding:28px 30px;align-items:center;margin:0 0 20px}
.result-banner .eyebrow{color:#d0d9ea;font-size:10px}
.result-banner h2{font-size:40px;font-weight:550;letter-spacing:-.04em;color:#fff;margin:5px 0 0}
.result-banner>p{color:#d0d9ea;font-size:12px;max-width:50ch}
.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.metric{min-height:200px;padding:24px;border-radius:16px;box-shadow:none;background:var(--surface)}
.metric.waiting-metric{background:var(--surface);color:var(--navy)}
.metric.waiting-metric p,.metric.waiting-metric span,.metric.waiting-metric .text-button{color:var(--muted)}
.metric.waiting-metric strong{color:var(--navy)}
.metric>strong{font-size:34px;margin:12px 0}
.metric>p{font-size:13px}.metric>span{font-size:12px;line-height:1.65}
.metric.review-metric{background:#fff9f5;border:1px solid #f1dccc}
.overview-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}
.destination-card{display:flex;flex-direction:column;gap:12px;align-items:stretch;text-align:left;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--navy);padding:25px}
.destination-card:hover{border-color:#e59872;background:#fffaf7}
.destination-card .eyebrow{font-size:9px}
.destination-card strong{font-size:19px;font-weight:550;display:flex;justify-content:space-between}
.destination-card>span:last-child{font-size:12px;line-height:1.65;color:var(--muted);font-weight:400}
.coverage-disclosure{margin-top:28px;border-top:1px solid var(--line);padding-top:18px}
.coverage-disclosure>summary{font-size:12px;font-weight:550;cursor:pointer;min-height:44px;padding:12px 0}
.coverage-disclosure .source-coverage{padding-top:12px;margin:0}
.section-tabs{display:flex;gap:6px;padding:6px;background:#eaeef3;border-radius:12px;width:fit-content;max-width:100%;margin:18px 0 24px}
.section-tabs button{background:transparent;color:#566174;border:0;border-radius:8px;padding:12px 20px;min-height:44px;font-size:13px;white-space:nowrap}
.section-tabs button[aria-selected=true]{background:var(--surface);color:var(--navy);box-shadow:0 1px 5px #0f1b3310}
#panel-spending .category-panel{margin:0 0 24px}
#panel-spending .panel-heading h2{font-size:22px}
#panel-spending .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#panel-spending .vendor-panel{margin-top:0}
#panel-spending .panel{box-shadow:none}
#vendor-table .text-button{font-size:13px;min-height:44px;text-align:left;white-space:normal}
.drill-back{margin:0 0 18px;min-height:44px;font-size:13px}
#panel-knowledge .rules-panel{margin:24px 0}
#panel-knowledge .panel-heading h2{font-size:23px}
body:has(#workspace:not([hidden])) .app-footer{margin-left:244px}
.mobile-navigation{display:none}
#mobile-menu{width:min(380px,calc(100vw - 24px));max-height:85dvh;padding:22px;border-radius:20px}
#mobile-menu h2{font-size:24px;margin:0}
#mobile-menu-links{display:grid;gap:6px;margin:20px 0}
#mobile-menu-links button{display:flex;align-items:center;gap:14px;background:transparent;color:var(--navy);min-height:48px;text-align:left;padding:12px;border:0;border-radius:10px;font-size:15px}
#mobile-menu-links button[aria-current=page]{background:var(--orange-soft)}
#mobile-menu .nav-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}
#mobile-signout{width:100%;min-height:46px}
@media(min-width:901px) and (max-width:1200px){
 body:has(#workspace:not([hidden])) main{padding-left:260px;padding-right:24px}
 body:has(#workspace:not([hidden])) .app-header,.workspace-nav{width:228px}
 .summary-grid{grid-template-columns:1fr 1fr}.summary-grid .review-metric{grid-column:1/-1;min-height:130px}
 .filters{grid-template-columns:1fr 1fr}.workspace-heading{align-items:flex-start}#workspace-find{font-size:11px;padding:10px}
 .result-banner{align-items:flex-start;flex-direction:column;gap:16px}.result-banner>p{max-width:none}
}
@media(max-width:900px){
 body:has(#workspace:not([hidden])) .app-header{position:static;width:100%;height:76px;padding:18px 24px;border-right:0;border-bottom:1px solid var(--line)}
 body:has(#workspace:not([hidden])) main{padding:26px 22px 106px;margin:0;min-height:calc(100vh - 76px)}
 .workspace-nav{display:none}
 body:has(#workspace:not([hidden])) .app-footer{margin:0;padding-bottom:100px}
 .mobile-navigation{position:fixed;left:0;right:0;bottom:0;z-index:25;display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border-top:1px solid var(--line);padding:7px 8px max(8px,env(safe-area-inset-bottom))}
 .mobile-navigation button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:transparent;color:var(--muted);border:0;border-radius:10px;font-size:10px;font-weight:550;min-height:53px;margin:0;padding:7px 3px;width:auto}
 .mobile-navigation button[aria-current=page]{color:var(--navy);background:var(--orange-soft)}
 .mobile-navigation .nav-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .workspace-heading h1{font-size:32px}.workspace-heading{gap:18px;margin-bottom:22px;flex-wrap:wrap}
 .workspace-heading .intro{font-size:13px}.workspace-heading .eyebrow{font-size:9px}
 #workspace-find{font-size:12px;min-height:44px;padding:10px 14px}
 .filters{grid-template-columns:1fr 1fr;padding:14px;gap:12px}.filters label:nth-child(n+3){grid-column:auto}
 .summary-grid{grid-template-columns:1fr 1fr}.summary-grid .review-metric{grid-column:1/-1;min-height:150px}
 .result-banner{flex-direction:column;align-items:flex-start;gap:16px;padding:26px}.result-banner>p{max-width:none}
 #panel-spending .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .section-tabs{width:100%}.section-tabs button{flex:1;padding:11px 8px;font-size:12px}
 .overview-shortcuts{grid-template-columns:1fr}.destination-card{padding:23px}
}
@media(max-width:480px){
 body:has(#workspace:not([hidden])) main{padding-left:16px;padding-right:16px}
 .summary-grid{grid-template-columns:1fr}.summary-grid .review-metric{grid-column:auto}
 .metric{min-height:165px;padding:22px}.metric>strong{font-size:36px}
 .workspace-heading h1{font-size:30px}.result-banner h2{font-size:36px}
 .category-card strong{font-size:22px}
}
.metric.ready-metric{background:var(--surface);color:var(--navy);box-shadow:none}.metric.ready-metric p,.metric.ready-metric span{color:var(--muted)}.metric.ready-metric strong,.metric.ready-metric .text-button,.metric.waiting-metric .text-button{color:var(--navy)}

#statement-comparison-values { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; margin: 24px 0; }
#statement-comparison-values dt { margin: 0; }
#statement-comparison-values dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Label catalog and continuous review */
.catalog-panel{margin-bottom:24px}.catalog-list{list-style:none;padding:0;margin:0;max-height:280px;overflow:auto}
.catalog-list li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--border,#e5e7eb)}
.catalog-list li span{color:var(--muted,#68717c);font-size:.86rem}.grow{flex:1;min-width:0}
#catalog-dialog{max-width:540px}#catalog-entry-form{display:grid;gap:16px}
#review-save-next{min-width:140px}
@media(max-width:600px){.catalog-panel .section-line,#review-form>.section-line{align-items:stretch;flex-direction:column}.catalog-list li{flex-direction:column;gap:4px}}
/* Workspace redesign: restrained typography, persistent context, neutral status. */
:root{--canvas:#f8f9fb;--subtle:#f4f6f8;--line:#e7eaf0;--field-line:#d3d9e3;--muted:#657083;--warm:#f3f5f8;--warm-ink:#475569;--orange-soft:#f3f5f8}
body{font-size:15px;letter-spacing:-.012em}
button,input,select,textarea{font-family:var(--font);letter-spacing:-.01em}
button{border-radius:9px;font-weight:600;background:var(--navy);color:#fff;min-height:44px}
button:hover:not(:disabled){background:#24364f}
.secondary{background:var(--surface);color:var(--navy);border-color:var(--line)}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #a3b4d2;outline-offset:3px}
body:has(#workspace:not([hidden])) main{max-width:1800px;padding:0 44px 64px 288px}
body:has(#workspace:not([hidden])) .app-header{width:232px;height:90px;padding:25px 25px;background:var(--surface)}
.workspace-nav{width:232px;top:90px;padding:12px 14px 24px;background:var(--surface)}
.workspace-nav .nav-heading{font-size:11px;letter-spacing:.08em;color:#7a8391;font-weight:550}
.workspace-nav button{font-size:14px;min-height:45px;border-radius:8px;gap:11px}
.workspace-nav button[aria-current=page]{background:#edf1f7;color:#14233c;box-shadow:none;font-weight:650}
.workspace-nav button[aria-current=page] .nav-icon{color:#ff5a1f}
body:has(#workspace:not([hidden])) .app-footer{margin-left:232px}
.workspace-scope.filters{display:flex;flex-wrap:wrap;align-items:center;gap:20px;padding:23px 0 20px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.scope-identity{display:flex;gap:18px;align-items:center;flex:1;min-width:250px}
.workspace-scope label,.period-switch>label{margin:0;font-size:11px;font-weight:550;letter-spacing:.01em;text-transform:none;color:var(--muted)}
.scope-identity label{flex:1;min-width:100px}.workspace-scope select{margin-top:6px;border-color:var(--line);background:var(--surface);padding:10px 30px 10px 12px;min-height:44px;font-size:14px;font-weight:550;border-radius:9px}
.period-switch{flex:0 1 auto;min-width:270px}.period-controls{display:flex;align-items:center;gap:5px;margin-top:6px}
.period-controls #book-month{min-width:150px;width:166px;margin:0;border:1px solid var(--line);border-radius:8px;padding:10px;font:550 14px var(--font);height:44px;background:var(--surface)}
.period-controls .month-arrow{width:38px;min-width:38px;padding:0;font-size:25px;line-height:1;min-height:44px}
#month-today{font-size:12px;white-space:nowrap;padding:9px 12px;margin-left:5px}
.account-switch{flex-basis:170px;min-width:140px}.filter-scope-note{margin:9px 0 28px;font-size:12px;color:#737e8d}
.workspace-heading{margin:0 0 26px;gap:20px;align-items:center}.workspace-heading h1{font:600 clamp(27px,2.6vw,36px)/1.18 var(--font);letter-spacing:-.045em;margin:5px 0 9px}
.workspace-heading .eyebrow{font-size:10px;letter-spacing:.1em;font-weight:550}.workspace-heading .intro{font-size:14px;line-height:1.5;color:var(--muted)}
#workspace-find{background:var(--surface);box-shadow:0 1px 2px #0f1b3304;font-size:13px}.access-line{margin:0 0 12px;font-size:11px}
[role=tabpanel]{padding-top:12px}#panel-overview>.section-line,.section-line{margin-bottom:16px}
.pill,.pill.attention,.review-status,.report-warning{background:var(--subtle);color:#526075;border-color:#e3e8ef;border-radius:6px;font-size:12px;font-weight:500}
.pill.attention{padding:6px 9px}.feedback,.notice,.suggestion{background:var(--subtle);color:#45566e;border-color:#cbd5e1;border-radius:8px}
.feedback{padding:11px 14px;font-size:13px;margin:12px 0}.feedback:empty{display:none}.notice{border-left-width:2px}
.result-banner{background:var(--surface);color:var(--navy);border:1px solid var(--line);border-radius:14px;padding:28px 30px;box-shadow:0 2px 8px #0f1b3303;align-items:center;gap:28px;margin-bottom:18px}
.result-banner .eyebrow{color:var(--muted);font-size:11px;letter-spacing:.04em}.result-banner h2{color:var(--navy);font:600 clamp(34px,3.8vw,52px)/1.1 var(--font);letter-spacing:-.055em;margin:9px 0 0;font-variant-numeric:tabular-nums}
.result-banner>p{color:var(--muted);font-size:13px;line-height:1.65;max-width:360px;border-left:1px solid var(--line);padding-left:26px}
.summary-grid{gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}.summary-grid .metric{min-height:174px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--navy);padding:23px;box-shadow:none}
.metric p,.metric.waiting-metric p,.metric.review-metric p{font-size:13px;color:var(--muted);font-weight:500;margin:0 0 14px}.metric>strong,.metric.waiting-metric strong{font:600 clamp(27px,2.7vw,37px)/1.12 var(--font);letter-spacing:-.045em;color:var(--navy);margin-bottom:12px}
.metric span,.metric.waiting-metric span{color:var(--muted);font-size:12px;line-height:1.55}.metric .text-button,.metric.waiting-metric .text-button{color:var(--navy);font-size:12px}.text-button:hover:not(:disabled){background:transparent;color:#ff5a1f}
.overview-shortcuts{gap:16px;margin-top:22px}.destination-card{background:transparent;border:1px solid var(--line);border-radius:12px;padding:22px;min-height:140px;color:var(--navy);box-shadow:none}
.destination-card:hover:not(:disabled){background:var(--surface);border-color:#bac5d5}.destination-card strong{font-size:18px;font-weight:550;letter-spacing:-.025em}.destination-card .eyebrow{font-size:10px;color:var(--muted)}
.panel,.connection-card,.knowledge-card,#banks{border-radius:12px;box-shadow:none;border-color:var(--line);background:var(--surface)}.panel-heading h2,.section-line h2{font-size:24px;font-weight:600;letter-spacing:-.035em}.panel-heading{padding:23px}.panel-heading>p:last-child{font-size:13px}
.coverage-disclosure{border-color:var(--line);background:transparent;border-radius:8px}.coverage-disclosure summary{font-size:13px;color:var(--muted);padding:16px 0}.source-coverage{padding:18px 0;gap:24px}
.table-wrap{border-radius:10px;border-color:var(--line)}th{font-size:11px;text-transform:none;letter-spacing:0;font-weight:600;background:var(--subtle);padding:13px 18px}td{font-size:13px;padding:16px 18px}tbody tr:hover{background:#f6f8fb}
.transaction-search{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px;gap:14px}.transaction-search label{font-size:12px}.bulk-toolbar{padding:12px 15px;background:#f1f4f8;border:0}.bulk-toolbar .secondary{background:var(--surface)}
.category-card{border-radius:10px;border-color:var(--line);background:var(--surface);box-shadow:none}.category-card:hover{background:#f6f8fb}.category-card strong{font-size:27px}.section-tabs{background:#edf1f6;border:0;border-radius:9px;padding:4px}.section-tabs button{border-radius:6px;min-height:40px;font-size:13px}.section-tabs button[aria-selected=true]{background:var(--surface);color:var(--navy);box-shadow:0 1px 4px #0f1b3310}
dialog{background:var(--surface);border-radius:16px;padding:26px;border:1px solid var(--line)}dialog::backdrop{background:#0f1b3366}.dialog-heading h2{font-size:25px;font-weight:600}.source-card,.check-evidence{background:var(--subtle);border-color:var(--line);border-radius:10px}
input,select,textarea{border-radius:8px;border-color:var(--field-line)}.form-columns label,#review-form label{font-size:13px}.auth-story h1{font-weight:600;letter-spacing:-.05em}.auth-form-panel h2{font-weight:600}
.month-skeleton{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;min-height:330px}.month-skeleton div{height:174px;background:#edf0f5;border-radius:12px}.month-skeleton div:first-child{grid-column:1/-1;height:140px}
@media(min-width:901px) and (max-width:1250px){body:has(#workspace:not([hidden])) main{padding-left:260px;padding-right:28px}.workspace-scope{gap:14px}.scope-identity{flex-basis:100%}.account-switch{flex:1}.period-switch{flex:1}.result-banner>p{max-width:280px}.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.summary-grid .review-metric{grid-column:auto}}
@media(max-width:900px){body:has(#workspace:not([hidden])) .app-header{position:static;width:100%;height:68px;padding:15px 22px;border-right:0}.workspace-nav{display:none}body:has(#workspace:not([hidden])) main{padding:0 22px 105px;margin:0}body:has(#workspace:not([hidden])) .app-footer{margin-left:0}.workspace-scope.filters{gap:15px;padding:18px 0}.scope-identity{flex-basis:100%;min-width:0}.period-switch{flex:1;min-width:0}.account-switch{flex:1;min-width:140px}.workspace-heading h1{font-size:29px}.workspace-heading{margin-bottom:20px}.workspace-heading .intro{max-width:none}.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.summary-grid .review-metric{grid-column:auto}.metric{padding:18px!important}.result-banner{padding:24px;flex-direction:row}.result-banner>p{max-width:260px}.mobile-navigation button[aria-current=page]{background:#edf1f7;color:var(--navy)}.mobile-navigation button{font-size:11px}.filter-scope-note{margin-bottom:24px}}
@media(max-width:600px){body:has(#workspace:not([hidden])) main{padding-left:16px;padding-right:16px}.period-switch{flex-basis:100%}.period-controls #book-month{flex:1;width:0;min-width:110px;font-size:16px}.account-switch{flex-basis:100%}.workspace-scope.filters select{font-size:16px}.workspace-heading{align-items:flex-start;gap:14px}.workspace-heading h1{font-size:28px}#workspace-find{min-height:42px;font-size:12px;padding:9px 12px}.workspace-heading .intro{font-size:13px}.summary-grid{grid-template-columns:1fr}.summary-grid .metric{min-height:150px}.metric>strong{font-size:34px}.result-banner{flex-direction:column;align-items:flex-start;gap:16px;padding:23px}.result-banner>p{border-left:0;border-top:1px solid var(--line);padding:15px 0 0;margin:0;max-width:none}.result-banner h2{font-size:42px}.section-line>.pill{max-width:none;font-size:11px}.section-line{flex-wrap:wrap}.transaction-search{grid-template-columns:1fr;padding:15px}.transaction-search>div{grid-column:auto}.month-skeleton{grid-template-columns:1fr}.month-skeleton div{height:150px}.month-skeleton div:first-child{height:190px}.scope-identity{gap:12px}.overview-shortcuts{grid-template-columns:1fr}.destination-card{min-height:120px}.panel-heading{padding:20px}.report-counts{grid-template-columns:1fr 1fr}dialog input,dialog select,dialog textarea{font-size:16px}}
#panel-transactions>.section-line>div{display:none}
#panel-transactions>.section-line{justify-content:flex-end;margin-top:0}
@media(max-width:380px){.period-controls{flex-wrap:wrap}.period-controls #book-month{min-width:170px}#month-today{flex-basis:100%;margin:2px 0 0}.scope-identity{flex-wrap:wrap}.scope-identity .client-switch,.scope-identity .shop-switch{min-width:125px}}

/* Rounded Alaago typography and the original spacious sidebar. */
@font-face{font-family:Manrope;src:url('/manrope-variable.woff2') format('woff2');font-style:normal;font-weight:200 800;font-display:swap}
:root{--font:Manrope,Arial,sans-serif;--canvas:#fbfbfc;--orange-soft:#fff1e9}
body{font-size:15px;letter-spacing:0}h1,h2,h3{font-family:var(--font);font-weight:650;letter-spacing:-.035em}
.workspace-heading h1{font-weight:650;letter-spacing:-.04em;font-size:clamp(30px,3vw,42px)}.workspace-heading .intro{font-size:15px;line-height:1.65}
.eyebrow{letter-spacing:.09em;font-size:10px}.metric>strong,.result-banner h2{font-weight:650;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
body:has(#workspace:not([hidden])) .app-header{width:244px;height:98px;padding:25px 28px}
body:has(#workspace:not([hidden])) main{padding-left:288px}.workspace-nav{width:244px;top:98px;padding:14px 16px 24px;overflow-y:auto}
.workspace-nav button{min-height:48px;font-weight:550;border-radius:10px;padding:12px 14px}
.workspace-nav button[aria-current=page]{background:var(--orange-soft);box-shadow:inset 3px 0 var(--orange);font-weight:700}
.workspace-nav .scope-identity{display:grid;gap:12px;min-width:0;flex:none;padding:8px 10px 24px;border-bottom:1px solid var(--line);margin-bottom:12px}
.scope-identity label{font-size:11px;color:var(--muted);font-weight:600}.scope-identity select{font:650 14px var(--font);max-width:100%;width:100%;padding:12px 8px;margin-top:6px;border:1px solid var(--line);background:var(--surface);border-radius:9px}
body:has(#workspace:not([hidden])) .app-footer{margin-left:244px}
.account-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px;margin:22px 0}
.account-card{border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:24px;min-width:0}.account-card h3{font-size:18px;margin:0 0 20px}.account-card dl{display:grid;grid-template-columns:1fr auto;gap:12px;font-size:13px}.account-card dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums}.account-card dt{color:var(--muted)}.account-card .text-button{margin-top:18px}.account-card small{display:block;color:var(--muted);line-height:1.65}
.profit-bridge{margin:24px 0}.profit-bridge .group-list{padding:0 24px}.profit-bridge .panel-note{padding:0 24px 22px;line-height:1.7}
@media(max-width:900px){body:has(#workspace:not([hidden])) .app-header{position:static;width:100%;height:76px;padding:18px 22px}body:has(#workspace:not([hidden])) main{padding-left:22px}.workspace-nav{display:none}.workspace-scope .scope-identity{display:flex;flex-basis:100%;border-bottom:1px solid var(--line);padding:0 0 16px}.scope-identity label{flex:1}body:has(#workspace:not([hidden])) .app-footer{margin-left:0}.account-cards{grid-template-columns:1fr}}

.workspace-nav{margin-top:0}.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.account-card>strong{font-size:32px;letter-spacing:-.035em;display:block;margin-bottom:14px}@media(max-width:1200px){.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.summary-grid{grid-template-columns:1fr}}

/* Readable interaction states and source-specific surfaces. */
body{background:#f2f4f8}::selection{background:#ffd9c7;color:#0f1b33}
button.category-card:hover:not(:disabled),button.destination-card:hover:not(:disabled),button.group-row:hover:not(:disabled){background:#fff0e7;color:#0f1b33;border-color:#eab798}
/* Child text inherits semantic row colors; fixed descendant hover colors are intentionally removed. */
.section-tabs button:hover:not(:disabled){background:#dce5f0;color:#0f1b33}
.workspace-nav button[aria-current=page]:hover:not(:disabled){background:#ffe2d2;color:#0f1b33}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #c64719;outline-offset:3px}
.revenue-sources{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.revenue-sources .panel{min-width:0;margin-top:0}.revenue-sources .group-list{padding:0 24px 20px}.revenue-sources .panel-note{padding:0 24px 20px}
.source-shop{border-top:3px solid #657da2;background:#f8faff}.source-bank{border-top:3px solid #578578;background:#f5faf8}
.revenue-metrics .account-card{background:#e9eef7;border-color:#d8e1ef}.revenue-metrics .collected-card{background:#0f1b33;border-color:#0f1b33;color:#fff}.revenue-metrics .collected-card small{color:#cbd6e6}.revenue-metrics .cash-card{background:#e7f1ed;border-color:#ccdfd6}
.card-breakdown{margin-top:22px;padding-top:18px;border-top:1px solid #dbe3ec}.card-breakdown h4{margin:0 0 14px;font-size:14px}#debt-accounts .account-card{background:linear-gradient(145deg,#eaf0f8,#fff 65%);border-top:3px solid #657da2}#debt-accounts .text-button{display:block;text-align:left}
@media(max-width:900px){.revenue-sources{grid-template-columns:1fr}.revenue-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.revenue-metrics{grid-template-columns:1fr}}
.revenue-metrics .collected-card h3{color:#fff}

.profit-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px}.profit-pair .result-banner{display:block;margin:0;min-width:0;background:#e9eef7;border:1px solid #d6dfed;padding:26px;border-radius:16px}.profit-pair .result-banner p{max-width:none}.profit-pair .result-banner h2{margin:14px 0}.profit-pair .realized-banner{background:#e7f1ed;border-color:#c8ddd3}@media(max-width:900px){.profit-pair{grid-template-columns:1fr}}

.password-field{margin:20px 0}.password-field label{margin:0 0 9px}.password-control{display:flex;align-items:stretch;gap:8px}.password-control input{margin:0;min-width:0;flex:1}.password-control #login-password-toggle{width:auto;min-width:70px;min-height:44px;margin:0;padding:10px 14px;flex:none}

/* Client-facing polish: Alaago accents, sentence case, and accessible controls. */
:root{--focus:#b43b12;--success-ink:#245b46;--success-surface:#edf5f0}
.eyebrow,.nav-heading{font-size:12px;letter-spacing:.035em;text-transform:none}
.workspace-heading .eyebrow,.workspace-nav .nav-heading{font-size:12px;letter-spacing:.035em}
.filters label{letter-spacing:0;text-transform:none}
.workspace-nav button[aria-current=page]{background:#fff0e7;color:var(--navy)}
.workspace-nav button:hover:not(:disabled){color:var(--navy)}
.source-bank,.revenue-metrics .cash-card{background:var(--success-surface)}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.auth-form-panel #google-login{width:100%;min-height:48px;background:var(--surface);color:var(--navy);border:1px solid var(--field-line);margin-top:0}
.auth-form-panel #google-login:hover:not(:disabled){background:var(--subtle);border-color:var(--navy)}
.auth-form-panel #google-note{margin-top:10px;font-size:13px}
.auth-divider{display:flex;align-items:center;gap:14px;margin:24px 0;color:var(--muted);font-size:13px}
.auth-divider:before,.auth-divider:after{content:'';flex:1;height:1px;background:var(--line)}
.auth-divider:not([hidden])+form{margin-top:0}
@media(prefers-reduced-motion:reduce){button,input,select,a{transition:none!important}}
/* In-place breakdowns and client-ready monthly reports. */
.workspace-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.monthly-dialog{width:min(1000px,calc(100vw - 32px));max-width:none;max-height:90dvh;padding:0;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:var(--surface);overflow:auto}
.monthly-dialog::backdrop{background:#0f1b3366}
.monthly-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;border-bottom:1px solid var(--line);background:var(--surface)}
.monthly-dialog-header h2{margin:0;font-size:23px}
.monthly-scope,.monthly-status{margin:16px 26px;color:var(--muted);font-size:13px}
.monthly-dialog-body{padding:0 26px 26px}
.breakdown-drawer{margin:16px 16px 16px auto;height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);width:min(960px,calc(100vw - 32px))}
.breakdown-controls{display:flex;gap:16px;margin-bottom:20px}.breakdown-controls label{margin:0;min-width:220px}
.breakdown-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:22px}
.monthly-dialog th,.monthly-dialog td{padding:12px 10px}.monthly-dialog .text-button{text-align:left;white-space:normal}
.report-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:20px 0;font-size:13px;color:var(--muted)}
.report-brand{padding:22px 0;border-bottom:3px solid var(--orange);display:flex;align-items:center;justify-content:space-between;gap:24px;color:var(--navy)}
.report-brand svg{width:145px;height:48px;flex-shrink:0}.report-brand span{font-size:14px}
#monthly-report-dialog h1{font-size:28px;margin:28px 0 10px}.report-section{margin:28px 0}.report-section h3{font-size:18px;margin-bottom:12px}
.report-caption{color:var(--muted);font-size:12px;line-height:1.7}.report-footer{padding:18px 0;font-size:12px;border-top:1px solid var(--line)}
@media(max-width:600px){.workspace-actions{justify-content:flex-start}.monthly-dialog-header{padding:18px}.monthly-dialog-body{padding:0 18px 20px}.monthly-scope,.monthly-status{margin:14px 18px}.report-brand{align-items:flex-start;flex-direction:column;gap:10px}.monthly-dialog th,.monthly-dialog td{font-size:12px}}
@media print{
 @page{size:A4;margin:16mm}
 body:has(#monthly-report-dialog[open]){background:#fff!important}
 body:has(#monthly-report-dialog[open])>*:not(#monthly-report-dialog){display:none!important}
 #monthly-report-dialog[open]{position:static!important;display:block!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;border:0!important;box-shadow:none!important;color:#12161d;background:var(--surface)}
 #monthly-report-dialog::backdrop{display:none}
 #monthly-report-dialog .monthly-dialog-header,#monthly-report-dialog .report-actions{display:none!important}
 #monthly-report-dialog .monthly-dialog-body{padding:0}#monthly-report-dialog .monthly-scope,#monthly-report-dialog .monthly-status{margin:0 0 8px}
 #monthly-report-dialog .table-wrap{overflow:visible}#monthly-report-dialog table{width:100%;table-layout:fixed}#monthly-report-dialog td,#monthly-report-dialog th{overflow-wrap:anywhere;font-size:10pt;padding:8px}
 #monthly-report-dialog thead{display:table-header-group}#monthly-report-dialog tr{break-inside:avoid}#monthly-report-dialog h3{break-after:avoid}#monthly-report-dialog .report-brand{break-inside:avoid}
 #monthly-report-dialog{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* Stable refresh feedback and reachable review actions. */
.data-updated{margin:0;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.data-updated:empty{display:none}
#transaction-dialog{scroll-padding-bottom:100px}
#review-form .dialog-actions{position:sticky;bottom:-1px;z-index:2;background:var(--surface);padding:16px 0;border-top:1px solid var(--line);margin-top:24px}
#review-form input,#review-form select,#review-form textarea{min-height:44px}
#review-form input[type=checkbox]{min-height:0}
#detail-feedback:not(:empty){padding:12px 16px;border-radius:10px;background:var(--subtle);color:var(--navy)}
@media(max-width:600px){
 #transaction-dialog{width:calc(100vw - 20px);max-width:none;max-height:calc(100dvh - 20px);padding:20px 16px;border-radius:16px}
 #transaction-dialog .form-columns{grid-template-columns:1fr}
 #transaction-dialog .dialog-heading h2{font-size:22px;overflow-wrap:anywhere}
 #review-form .dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
 #review-form .dialog-actions button{min-height:48px;padding:12px;font-size:14px}
 #review-save-note{grid-column:1 / -1;font-size:11px}
 #review-form input,#review-form select,#review-form textarea{font-size:16px}
}
.report-brand{flex-wrap:wrap}.report-client-logo{width:220px;max-width:100%;height:auto;object-fit:contain}.report-brand>span{flex-basis:100%}

.payout-report{margin:16px 0;border:1px solid var(--line);border-radius:12px;padding:16px}.payout-report summary{cursor:pointer;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}.payout-report summary span{font-size:13px;color:var(--muted)}.payout-report h3{margin:20px 0 10px}.payout-report td{overflow-wrap:anywhere}.payout-report table{min-width:520px}

/* Workspace refinement: one type scale, compact context, clear financial hierarchy. */
:root{--font:Geist,Arial,sans-serif;--canvas:#f6f7f9;--muted:#5f6b7a}
body{background:var(--canvas)}
#mobile-context-slot,#mobile-filters-toggle{display:none}
h1,h2,h3{letter-spacing:-.03em;text-wrap:balance}
button,input,select,textarea{font-family:var(--font)}
button{transition:background-color 150ms ease,color 150ms ease,border-color 150ms ease}
button:active:not(:disabled){opacity:1}
.workspace-heading h1{font-size:32px;letter-spacing:-.035em;margin:0 0 8px}
.workspace-heading .eyebrow,.filter-scope-note{display:none}
.workspace-heading{margin:26px 0 18px}
.workspace-heading .intro{font-size:14px}
.workspace-nav button[aria-current=page]{background:#edf0f5;box-shadow:none;color:var(--navy)}
.workspace-nav button[aria-current=page] .nav-icon{color:#bb410e}
.workspace-nav .scope-identity{padding:4px 8px 20px}
.workspace-nav .scope-identity select{font-weight:600}
.workspace-nav .nav-heading{letter-spacing:0;color:var(--muted)}
#overview-content>.section-line{gap:8px;margin:12px 0}
#month-scope{font-size:12px;letter-spacing:0;text-transform:none;line-height:1.5;margin:0}
#overview-content>.section-line .pill{font-size:11px;padding:5px 8px}
.profit-summary{background:var(--navy);color:#fff;border-radius:16px;margin-bottom:20px;overflow:hidden}
.profit-summary .profit-pair{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0}
.profit-summary .result-banner{padding:26px 28px;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;min-width:0;display:block;color:#fff}
.profit-summary .realized-banner{border-left:1px solid #ffffff26}
.profit-summary .result-banner>p{padding:0;border:0;margin:0;max-width:none;letter-spacing:0}
.profit-summary .profit-label{font-size:14px;color:#e5ebf5;line-height:1.4;font-weight:500}
.profit-summary .result-banner h2{font:550 40px/1.15 var(--font);letter-spacing:-.035em;font-variant-numeric:tabular-nums;margin:12px 0 8px;color:#fff;overflow-wrap:anywhere}
.profit-summary .profit-caption{font-size:12px;color:#bdc9dc;line-height:1.5}
.profit-explanation{border-top:1px solid #ffffff26;padding:0 28px}
.profit-explanation summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:10px;font-size:12px;color:#e5ebf5;list-style:none}
.profit-explanation summary::-webkit-details-marker{display:none}
.profit-explanation summary::after{content:'+';margin-left:auto;font-size:18px}
.profit-explanation[open] summary::after{content:'−'}
.profit-explanation p{font-size:13px;line-height:1.6;color:#d4deee;max-width:75ch;margin:0 0 16px}
.summary-grid{gap:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.summary-grid .metric{border:0;border-radius:0;min-height:0;background:transparent;padding:22px;border-right:1px solid var(--line);box-shadow:none}
.summary-grid .metric:last-child{border-right:0}
.summary-grid .metric p{font-size:13px;line-height:1.5;margin:0 0 12px;font-weight:500;color:var(--muted)}
.summary-grid .metric>strong{font-size:28px;letter-spacing:-.03em;font-weight:600;color:var(--navy);overflow-wrap:anywhere}
.summary-grid .metric span{font-size:12px;line-height:1.5;color:var(--muted)}
.summary-grid .metric .text-button{font-size:12px;min-height:44px;text-align:left;padding:8px 0;color:var(--navy)}
.panel-heading h2,.section-line h2{font-size:22px;letter-spacing:-.025em}
.panel-heading>.eyebrow{display:none}
.panel-heading p{line-height:1.6}
.group-row{min-height:48px;gap:12px}
.group-row>span:first-child{min-width:0;overflow-wrap:anywhere}
.category-card{border-radius:12px}
.revenue-metrics .account-card{background:var(--surface);border-color:var(--line)}
.revenue-metrics .collected-card{background:var(--navy)}
.revenue-metrics .cash-card{background:var(--surface)}
.source-shop,.source-bank{border:1px solid var(--line);background:var(--surface)}
#debt-accounts .account-card{background:var(--surface);border:1px solid var(--line)}
@media screen and (max-width:1200px){.summary-grid .metric:nth-child(2){border-right:0}.summary-grid .metric:nth-child(n+3){border-top:1px solid var(--line)}}
@media screen and (max-width:900px){
 .profit-summary .result-banner{padding:24px}
 .profit-summary .result-banner h2{font-size:34px}
 .workspace-heading h1{font-size:28px}
}
@media screen and (max-width:600px){
 body:has(#workspace:not([hidden])) .app-header{height:auto;min-height:64px;padding:10px 18px;gap:18px;background:var(--surface)}
 body:has(#workspace:not([hidden])) .app-header .brand{gap:8px;flex:none}
 body:has(#workspace:not([hidden])) .app-header .brand-wordmark{width:108px;height:36px;max-height:36px}
 body:has(#workspace:not([hidden])) .app-header .brand-product{font-size:14px;padding-left:8px;margin:0;letter-spacing:-.03em}
 body:has(#workspace:not([hidden])) #mobile-context-slot{display:block;min-width:0;max-width:52%;margin-left:auto}
 #mobile-context-slot .scope-identity{display:flex;flex-wrap:wrap;gap:4px;min-width:0;margin:0;padding:0;border:0}
 #mobile-context-slot label{font-size:0;margin:0;min-width:0;width:100%}
 #mobile-context-slot select{width:100%;min-width:0;min-height:44px;font-size:16px;font-weight:600;border:0;background:transparent;margin:0;padding:8px 2px;color:var(--navy)}
 body:has(#workspace:not([hidden])) main{padding:0 18px calc(96px + env(safe-area-inset-bottom));min-width:0}
 .workspace-scope.filters{display:grid;grid-template-columns:minmax(0,1fr) 94px;gap:12px;padding:12px 0;margin:0;border:0}
 .workspace-scope .period-switch{min-width:0;max-width:100%;margin:0}
 .period-switch>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .period-controls{gap:0;margin:0;flex-wrap:nowrap;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:10px}
 .period-controls .month-arrow{width:36px;min-width:36px;height:44px;border:0;background:transparent;color:var(--navy);border-radius:8px}
 .period-controls #book-month{min-width:0;width:0;flex:1;height:44px;padding:6px 0;font-size:16px;border:0;background:transparent;text-align:center}
 #month-today{display:none}
 #mobile-filters-toggle{display:block;min-width:0;min-height:46px;padding:8px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:10px}
 #mobile-filters-toggle[aria-expanded=true]{background:var(--navy);color:white}
 .workspace-scope #account-filter-label{display:none;grid-column:1/-1;min-width:0;margin:0;font-size:12px}
 .workspace-scope.mobile-filters-open #account-filter-label:not([hidden]){display:block}
 .workspace-scope #account-filter-label select{font-size:16px}
 .workspace-scope:has(#account-filter-label[hidden]) #mobile-filters-toggle{display:none}
 .workspace-scope:has(#account-filter-label[hidden]) .period-switch{grid-column:1/-1}
 .workspace-heading .intro{display:none}
 .workspace-heading{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
 .workspace-heading h1{font-size:26px;line-height:1.2;margin:0;letter-spacing:-.035em}
 .workspace-actions{display:flex;gap:8px;width:100%;margin:0;justify-content:flex-start}
 .workspace-actions button,#workspace-find{min-height:44px;font-size:12px;padding:8px 12px;justify-content:center;border:0;background:transparent;box-shadow:none;color:var(--muted)}
 .workspace-actions button:first-child{padding-left:0}
 .data-updated{font-size:12px;margin:0 0 8px}
 .access-line:empty{display:none}
 #overview-content>.section-line{gap:4px;margin:8px 0 12px;align-items:flex-start;flex-direction:column}
 #month-scope{font-size:11px;line-height:1.4}
 #overview-content>.section-line .pill{font-size:11px;background:transparent;border:0;padding:0;color:var(--muted)}
 .profit-summary{border-radius:14px;margin-bottom:16px}
 .profit-summary .profit-pair{grid-template-columns:1fr}
 .profit-summary .result-banner{padding:20px}
 .profit-summary .result-banner h2{font-size:38px;margin:8px 0 6px;line-height:1.15}
 .profit-summary .realized-banner{border:0;border-top:1px solid #ffffff26;padding:16px 20px;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px;row-gap:4px}
 .profit-summary .realized-banner .profit-label{font-size:12px}
 .profit-summary .realized-banner h2{font-size:24px;grid-column:2;grid-row:1/3;margin:0}
 .profit-summary .realized-banner .profit-caption{grid-column:1;font-size:11px}
 .profit-explanation{padding:0 20px}
 .profit-explanation summary{font-size:12px}
 .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
 .summary-grid .metric{padding:16px;border-radius:0}
 .summary-grid .metric p{font-size:12px;margin-bottom:8px}
 .summary-grid .metric>strong{font-size:24px}
 .summary-grid .metric span{font-size:11px;line-height:1.5}
 .summary-grid .review-metric{grid-column:auto}
 .panel-heading{padding:18px}.panel-heading h2,.section-line h2{font-size:20px}
 .group-row{padding:14px 12px}
 .mobile-navigation{padding:6px 10px max(8px,env(safe-area-inset-bottom));box-shadow:none}
 .mobile-navigation button{min-height:52px;font-size:11px;border-radius:10px;gap:4px}
 .mobile-navigation button[aria-current=page]{background:#edf0f5;color:var(--navy);font-weight:650}
 .mobile-navigation button[aria-current=page] .nav-icon{color:#bb410e}
 .monthly-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}
 .monthly-dialog-header{position:sticky;top:0;z-index:2;background:var(--surface);padding:14px 18px;gap:12px;border-bottom:1px solid var(--line)}
 .monthly-dialog-header h2{font-size:20px;line-height:1.25}.monthly-dialog-header button{min-height:44px}
 .monthly-dialog-body{padding:0 18px calc(24px + env(safe-area-inset-bottom))}
 .monthly-scope,.monthly-status{margin:12px 18px;font-size:12px;line-height:1.5}
 .payout-report{padding:14px;margin:12px 0}.payout-report summary strong{font-size:14px}.payout-report summary span{font-size:12px;line-height:1.5}
 .report-section{margin:20px 0}.report-section h3{font-size:18px}
 .revenue-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .revenue-metrics .account-card{padding:16px}.revenue-metrics .account-card h3{font-size:14px;margin-bottom:14px}
 .revenue-metrics .account-card>strong{font-size:24px;overflow-wrap:anywhere}
 .revenue-metrics .account-card small{font-size:12px}
}
@media(prefers-reduced-motion:reduce){button{transition:none}}

@media screen and (max-width:360px){
 .profit-summary .realized-banner{grid-template-columns:1fr}
 .profit-summary .realized-banner h2{grid-column:1;grid-row:auto;font-size:28px;margin:4px 0}
 .profit-summary .realized-banner .profit-caption{grid-row:3}
 .period-controls .month-arrow{width:32px;min-width:32px}
 .workspace-scope.filters{grid-template-columns:minmax(0,1fr) 78px;gap:8px}
}
/* Customer workspace system. Appearance only; source and calculation rules stay separate. */
:root{
 --canvas:#f5f6f8;--surface:#fff;--subtle:#eef1f5;--ink:#202a3b;--navy:#14213a;
 --muted:#637084;--line:#dfe4ec;--field-line:#c6cedb;--focus:#bd4519;
 --accent-ink:#a63a13;--accent-soft:#fff0e8;--rail:#fbfcfd;--hero:#14213a;
 --warm:#fbf4e8;--warm-ink:#78521c;--danger:#ad3434;--success-surface:#edf5f0;--success-ink:#245b46;
 --shadow:0 2px 8px #14213a06;--skeleton:#e5eaf0;--skeleton-highlight:#f4f6f9;
 color-scheme:light;
}
:root[data-theme=dark]{
 --canvas:#10151e;--surface:#19212e;--subtle:#222d3d;--ink:#e7edf5;--navy:#e7edf5;
 --muted:#a5b1c3;--line:#303d50;--field-line:#4d5e75;--focus:#ff9a6b;
 --accent-ink:#ffad86;--accent-soft:#372921;--rail:#141c28;--hero:#1e304a;
 --warm:#312a20;--warm-ink:#e9c185;--danger:#ffaaa6;--success-surface:#203b33;--success-ink:#a2d9bd;
 --orange-soft:var(--accent-soft);--primary:var(--ink);--charcoal:var(--ink);
 --shadow:0 2px 8px #0002;--skeleton:#253145;--skeleton-highlight:#35445a;
 color-scheme:dark;
}
body{color:var(--ink);background:var(--canvas);font-size:14px}
button,input,select,textarea{border-radius:10px}
input,select,textarea{color:var(--ink);background:var(--surface);border-color:var(--field-line)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
button{min-height:44px;transition:background-color 160ms ease,border-color 160ms ease,color 160ms ease;letter-spacing:-.01em}
button{background:var(--hero);color:#fff}
button:hover:not(:disabled){background:var(--hero);color:#fff}
button.secondary:hover:not(:disabled),button.text-button:hover:not(:disabled){background:var(--subtle);color:var(--ink)}
.secondary{background:var(--surface);border-color:var(--line);color:var(--ink);box-shadow:var(--shadow)}
.secondary:hover:not(:disabled){background:var(--subtle);border-color:var(--field-line)}
button:disabled{cursor:not-allowed;opacity:.5}
a,.text-button{color:var(--navy)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.theme-toggle{display:grid;place-items:center;flex:none;width:40px;min-height:40px;padding:9px;margin-left:14px;color:var(--ink);border:1px solid var(--line);background:var(--surface)}
.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-sun{display:none}[data-theme=dark] .theme-sun{display:block}[data-theme=dark] .theme-moon{display:none}
body:has(#workspace:not([hidden])) .app-header{background:var(--rail);width:248px;height:94px;padding:25px 24px}
body:has(#workspace:not([hidden])) .theme-toggle{position:fixed;right:32px;top:24px;z-index:25}
body:has(#workspace:not([hidden])) main{max-width:1800px;padding:24px 32px 64px 280px}
.workspace-nav{width:248px;top:94px;background:var(--rail);padding:8px 16px 24px;border-right:1px solid var(--line);gap:4px}
.workspace-nav .scope-identity{padding:8px 8px 22px;border-bottom:1px solid var(--line);margin-bottom:10px}
.workspace-nav .scope-identity label{font-size:12px;font-weight:500;color:var(--muted)}
.workspace-nav .scope-identity select{min-height:46px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px;font-size:15px}
.workspace-nav .nav-heading{padding:8px 12px;margin:8px 0;color:var(--muted);font-size:11px;font-weight:500;letter-spacing:.02em}
.workspace-nav button{min-height:46px;border-radius:10px;color:var(--muted);font-size:14px;padding:12px;gap:12px;box-shadow:none}
.workspace-nav button:hover:not([aria-current=page]){background:var(--subtle);color:var(--ink)}
.workspace-nav button[aria-current=page]{background:var(--accent-soft);color:var(--ink);box-shadow:none;font-weight:600}
.workspace-nav button[aria-current=page] .nav-icon{color:var(--accent-ink)}
.nav-footer{padding:24px 8px 0}.nav-private{font-size:12px}.nav-footer #logout{background:var(--surface)}
.workspace-scope.filters{padding:0 60px 20px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;gap:20px;align-items:end}
.workspace-scope label{font-size:12px;font-weight:500;color:var(--muted)}
.workspace-scope select,.workspace-scope input[type=month]{background:var(--surface);border-color:var(--line);font-size:14px;font-weight:500;min-height:44px}
.period-controls{gap:6px}.period-controls .month-arrow{background:var(--surface);border:1px solid var(--line);border-radius:10px;min-height:44px;color:var(--ink)}
.workspace-heading{margin:26px 0 16px;gap:24px}.workspace-heading h1{font-size:32px;font-weight:600;letter-spacing:-.04em;line-height:1.2}
.workspace-heading .intro{font-size:14px;color:var(--muted)}
.workspace-actions{gap:8px}.workspace-actions button,#workspace-find{font-size:13px;background:var(--surface);border:1px solid var(--line);color:var(--ink);padding:10px 14px}
#panel-overview,#panel-spending,#panel-shopmonkey{margin-top:16px}
.data-updated{font-size:12px;margin:0 0 12px}
#overview-content>.section-line{margin:12px 0;align-items:center}
.pill,.pill.attention,.pill.ready{border-radius:6px;background:var(--subtle);color:var(--muted);border-color:var(--line);font-weight:500}
.pill.attention{background:var(--warm);color:var(--warm-ink)}
.profit-summary{background:var(--hero);border:1px solid #ffffff0a;box-shadow:var(--shadow);border-radius:16px;margin-bottom:18px}
.profit-summary .result-banner{padding:28px 30px}.profit-summary .result-banner h2{font-size:44px;font-weight:550;letter-spacing:-.04em}
.profit-summary .profit-label{font-size:14px;font-weight:500}.profit-summary .profit-caption{font-size:12px}
.summary-grid{background:var(--surface);box-shadow:var(--shadow);border-color:var(--line);border-radius:14px}
.summary-grid .metric{padding:24px}.summary-grid .metric>strong{font-size:30px;font-weight:600;letter-spacing:-.035em}
.panel,.account-card,.connection-card,.knowledge-card,.source-card,.client,#banks,.category-card,.destination-card,.source-shop,.source-bank,#debt-accounts .account-card,.revenue-metrics .account-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);color:var(--ink)}
.revenue-metrics .collected-card{background:var(--hero);color:#fff}.revenue-metrics .collected-card :is(h3,strong,small){color:#fff}
.revenue-metrics .cash-card{background:var(--success-surface)}
.panel-heading{padding:24px 24px 18px}.panel-heading h2,.section-line h2{font-size:22px;font-weight:600;letter-spacing:-.025em}
.panel-heading p,.panel-note,.section-description{font-size:13px;color:var(--muted);line-height:1.65}
.panel-note{padding:16px 24px;border-top:1px solid var(--line);margin:0;background:var(--surface);border-radius:0 0 14px 14px}
.group-list{padding:0 24px 16px}.group-row{padding:14px 0;border-color:var(--line);font-size:14px}.group-row strong{font-variant-numeric:tabular-nums;font-weight:600}
.group-row:hover{background:var(--subtle)}
.category-grid{gap:12px}.category-card{padding:20px;text-align:left}.category-card:hover,.destination-card:hover{background:var(--subtle);border-color:var(--field-line)}
.category-card strong{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.035em}
.category-name{font-size:13px;color:var(--muted)}
.destination-card{padding:24px;gap:10px}.destination-card .eyebrow{display:none}.destination-card strong{font-size:18px}.destination-card>span:last-child{font-size:13px}
.section-tabs{padding:4px;background:var(--subtle);border:1px solid var(--line);border-radius:12px;margin:16px 0 24px;gap:4px;overflow:auto}
.section-tabs button{color:var(--muted);border-radius:8px;min-height:42px;padding:10px 18px}.section-tabs button[aria-selected=true]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
table{background:var(--surface);color:var(--ink)}th{background:var(--subtle);color:var(--muted);font-size:12px;font-weight:600;letter-spacing:0;text-transform:none}td{font-size:13px;line-height:1.6}
th,td{padding:15px 16px;border-color:var(--line)}tbody tr:hover{background:var(--subtle)}
.table-wrap{border:1px solid var(--line);border-radius:12px;background:var(--surface);scrollbar-width:thin}
.transaction-search,.bulk-toolbar{background:var(--surface);border-color:var(--line);border-radius:12px}
.transaction-search label{font-size:12px;color:var(--muted)}.transaction-search input,.transaction-search select{background:var(--surface);border-color:var(--field-line);color:var(--ink)}
.feedback{color:var(--muted);font-size:13px;line-height:1.65}#detail-feedback:not(:empty){background:var(--subtle);color:var(--ink)}
.notice,.notice-detail,.bank-status,.report-caption{color:var(--muted)}
dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:0 20px 80px #0003;border-radius:16px}dialog::backdrop{background:#090f1b80}
.dialog-heading,.monthly-dialog-header{border-color:var(--line)}.dialog-heading h2,.monthly-dialog-header h2{font-size:22px;font-weight:600;letter-spacing:-.025em}
.source-card,.source-evidence{background:var(--subtle);color:var(--ink)}
#review-form .dialog-actions{background:var(--surface)}
.auth-layout{border-color:var(--line);box-shadow:var(--shadow)}.auth-story{background:var(--hero);color:#fff}.auth-form-panel{background:var(--surface);color:var(--ink)}
.auth-form-panel h2{color:var(--ink);font-size:30px}.auth-form-panel input{background:var(--canvas);color:var(--ink)}
.auth-story h1{font-size:48px;font-weight:550;letter-spacing:-.045em}.auth-story p{color:#c8d4e5}
.mobile-navigation,#mobile-menu{background:var(--surface);border-color:var(--line)}.mobile-navigation button{color:var(--muted)}
.mobile-navigation button[aria-current=page],#mobile-menu-links button[aria-current=page]{background:var(--accent-soft);color:var(--ink)}
.mobile-navigation button[aria-current=page] .nav-icon{color:var(--accent-ink)}
/* Skeletons have real layout space. Motion never blocks interaction or simulates amounts. */
.month-skeleton{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;min-height:400px}
.month-skeleton div{height:140px;background:var(--skeleton);border-radius:14px;animation:surface-pulse 1.6s ease-in-out infinite}
.month-skeleton div:first-child{grid-column:1/-1;height:210px}
@keyframes surface-pulse{50%{background-color:var(--skeleton-highlight)}}
#panel-transactions[aria-busy=true]:not(:has(#transactions:not([hidden])))::after,
#panel-shopmonkey[aria-busy=true]::after,
.monthly-dialog-body:empty::before{content:'';display:block;min-height:240px;border-radius:12px;background:var(--skeleton);animation:surface-pulse 1.6s ease-in-out infinite}
#panel-overview[aria-busy=true]:has(#overview-content:not([hidden])) .profit-summary{outline:1px solid var(--field-line)}
.monthly-dialog-body:empty{padding-bottom:24px}.monthly-status:empty{display:none}
@media(min-width:901px){.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.summary-grid .metric:nth-child(n){border-top:0;border-right:1px solid var(--line)}.summary-grid .metric:last-child{border-right:0}.summary-grid .metric{padding:20px}.summary-grid .metric>strong{font-size:26px}.workspace-scope.filters{grid-template-columns:minmax(260px,1fr) minmax(180px,260px)}.overview-shortcuts{grid-template-columns:1fr 1fr}}
@media(min-width:901px) and (max-width:1200px){body:has(#workspace:not([hidden])) main{padding-left:264px;padding-right:24px}.workspace-nav,body:has(#workspace:not([hidden])) .app-header{width:240px}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-grid .metric:nth-child(2){border-right:0}.summary-grid .metric:nth-child(n+3){border-top:1px solid var(--line)}}
@media(max-width:900px){
 body:has(#workspace:not([hidden])) .app-header{position:static;width:100%;height:auto;min-height:68px;padding:14px 24px;background:var(--rail)}
 body:has(#workspace:not([hidden])) .theme-toggle{position:static;margin-left:12px}
 body:has(#workspace:not([hidden])) main{padding:16px 24px calc(100px + env(safe-area-inset-bottom))}
 .workspace-scope.filters{padding-right:0}.workspace-heading h1{font-size:28px}
 .profit-summary .result-banner h2{font-size:36px}.profit-summary .result-banner{padding:24px}
 .app-header .badge{display:none}.app-header .theme-toggle{margin-left:auto}
}
@media(max-width:600px){
 body:has(#workspace:not([hidden])) .app-header{padding:10px 16px;gap:8px;flex-wrap:nowrap}
 body:has(#workspace:not([hidden])) .app-header .brand-wordmark{width:88px;height:32px}
 body:has(#workspace:not([hidden])) .app-header .brand-product{font-size:12px;padding-left:6px}
 body:has(#workspace:not([hidden])) .app-header .brand{gap:6px}
 body:has(#workspace:not([hidden])) .theme-toggle{margin:0;width:36px;min-height:40px;padding:8px}
 body:has(#workspace:not([hidden])) #mobile-context-slot{margin-left:auto;max-width:42%}
 #mobile-context-slot select{font-size:14px;color:var(--ink);background:transparent;font-weight:600;min-height:44px}
 #mobile-context-slot .scope-identity .shop-switch,#mobile-context-slot .scope-identity .client-switch{min-width:0}
 body:has(#workspace:not([hidden])) main{padding:0 16px calc(96px + env(safe-area-inset-bottom))}
 .workspace-scope.filters{grid-template-columns:minmax(0,1fr) 88px;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
 .period-controls{background:var(--surface);border-color:var(--line);gap:0}.period-controls .month-arrow{width:32px;min-width:32px;border:0;background:transparent}
 .period-controls #book-month{font-size:16px;background:transparent;border:0;min-width:0}
 #mobile-filters-toggle{font-size:12px;background:var(--surface);color:var(--ink)}#mobile-filters-toggle[aria-expanded=true]{background:var(--subtle);border-color:var(--field-line)}
 .workspace-heading{margin:18px 0 12px;gap:6px}.workspace-heading h1{font-size:26px;letter-spacing:-.035em}
 .workspace-actions{gap:16px}.workspace-actions button,#workspace-find{border:0;padding:6px 0;min-height:36px;background:transparent;font-size:12px;box-shadow:none;color:var(--muted)}
 .data-updated{margin:0 0 6px;font-size:11px}#panel-overview{margin-top:10px}
 #overview-content>.section-line{align-items:flex-start;margin:8px 0 12px}#overview-content>.section-line .pill{background:transparent;color:var(--muted);border:0;padding:0}
 .profit-summary .result-banner{padding:20px}.profit-summary .result-banner h2{font-size:38px}.profit-summary .realized-banner{padding:16px 20px}.profit-summary .realized-banner h2{font-size:24px}
 .summary-grid .metric{padding:16px}.summary-grid .metric>strong{font-size:24px}.summary-grid .metric p{font-size:12px}.summary-grid .metric span{font-size:12px}
 .panel-heading{padding:20px 16px 14px}.panel-heading h2,.section-line h2{font-size:20px}.group-list{padding:0 16px 12px}.panel-note{padding:14px 16px;font-size:12px}
 .group-row{font-size:13px;gap:12px}.destination-card{padding:20px;min-height:110px}.destination-card strong{font-size:17px}
 .category-card{padding:16px}.category-card strong{font-size:24px}.category-grid{gap:10px}
 .section-tabs{gap:2px}.section-tabs button{font-size:12px;padding:10px 8px;min-height:44px}
 th,td{padding:12px;font-size:13px}.table-wrap{border-radius:10px}
 .monthly-dialog{border-radius:0}.monthly-dialog-header h2,.dialog-heading h2{font-size:20px}
 .monthly-dialog-header{padding:14px 16px}.monthly-dialog-body{padding:0 16px 24px}
 .breakdown-controls label{min-width:0;width:100%}.breakdown-pagination{flex-wrap:wrap}
 .mobile-navigation{background:var(--surface);border-top:1px solid var(--line);padding:6px 8px max(8px,env(safe-area-inset-bottom))}
 .mobile-navigation button{min-height:50px;font-size:11px}.mobile-navigation .nav-icon{width:20px;height:20px}
 .auth-story{padding:28px}.auth-story h1{font-size:34px}.auth-form-panel{padding:28px 24px}
 .month-skeleton{grid-template-columns:1fr 1fr;min-height:370px}.month-skeleton div:first-child{height:220px}.month-skeleton div{height:130px}
}
@media(max-width:360px){.profit-summary .realized-banner h2{font-size:28px}.workspace-scope.filters{grid-template-columns:minmax(0,1fr) 76px;gap:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{:root,:root[data-theme=dark]{--surface:#fff;--canvas:#fff;--ink:#12161d;--navy:#0f1b33;--muted:#515d6c;--line:#dfe4ec;--subtle:#f3f5f8;--hero:#14213a;color-scheme:light}.theme-toggle{display:none!important}.monthly-dialog-body:empty::before{display:none}}


/* Legacy component states share the same semantic palette. */
.review-status,.report-warning,.notice,.suggestion,.check-evidence,.bulk-toolbar,.source-card{background:var(--subtle);color:var(--muted);border-color:var(--line)}
button.category-card:hover:not(:disabled),button.destination-card:hover:not(:disabled),button.group-row:hover:not(:disabled){background:var(--subtle);color:var(--ink);border-color:var(--field-line)}
.workspace-nav button[aria-current=page]:hover:not(:disabled){background:var(--accent-soft);color:var(--ink)}
#book-feedback{background:transparent;padding:0;color:var(--muted)}
#mfa-qr{background:#fff}

.batch-actions{margin:12px 0;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.batch-actions>summary{padding:12px 16px;min-height:44px;cursor:pointer;font-size:13px;color:var(--muted)}
.batch-actions .bulk-toolbar{margin:0;border-radius:0 0 10px 10px}
@media(max-width:600px){
 #panel-transactions>.section-description{display:none}
 #panel-transactions>.section-line{margin:12px 0}
 #panel-transactions .inline-filter{flex-direction:row;align-items:center;gap:10px;margin:0}
 #panel-transactions .inline-filter select{min-height:44px;margin:0;max-width:none;font-size:14px}
 .transaction-search{grid-template-columns:1fr;gap:10px;padding:14px;margin-top:12px}
 .transaction-search label{margin:0}.transaction-search label:first-child{font-size:0}
 .transaction-search input[type=search]{margin:0;font-size:16px}
 .transaction-search label:nth-child(2){display:flex;align-items:center;gap:12px;font-size:12px}
 .transaction-search select{margin:0;min-width:0;font-size:16px}
 .transaction-search>div{display:flex;gap:8px}.transaction-search>div button{flex:1;min-height:44px}
 #transaction-coverage{font-size:12px;margin:12px 0;line-height:1.6}
 #transactions{display:block;min-width:0;background:transparent}
 #transactions thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #transactions tbody{display:grid;gap:12px}
 #panel-transactions>.table-wrap{border:0;background:transparent;overflow:visible}
 #transactions tr{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:8px 10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px;align-items:center}
 #transactions td:nth-child(n){display:block;min-width:0;width:auto;border:0;padding:0}
 #transactions td:first-child{grid-column:1;grid-row:1/3}
 #transactions td:nth-child(2){grid-column:2;grid-row:1;font-size:12px;color:var(--muted)}
 #transactions td:nth-child(3){grid-column:2/-1;grid-row:2}
 #transactions td:nth-child(3) button{display:block;white-space:normal;text-align:left;background:transparent;border:0;box-shadow:none;color:var(--ink);font-size:14px;padding:0;min-height:44px}
 #transactions td:nth-child(3) small{font-size:12px;display:block;color:var(--muted)}
 #transactions td:nth-child(4){grid-column:3;grid-row:1;font-size:15px;font-weight:600;white-space:nowrap}
 #transactions td:nth-child(5){grid-column:2/-1;grid-row:3;font-size:13px;padding:6px 0}
 #transactions td:nth-child(6){grid-column:2;grid-row:4}
 #transactions td:nth-child(7){grid-column:3;grid-row:4;text-align:right}
 #transactions td:nth-child(7) button{min-height:44px;font-size:12px}
}

}
/* Editorial ledger: a replacement visual direction, separated from legacy component mechanics. */
@layer direction {
:root{--canvas:#f3f3ef;--surface:#fff;--subtle:#f3f4f1;--rail:#142033;--ink:#222b32;--navy:#202b36;--muted:#5d6765;--line:#dfe3de;--field-line:#b9c2bc;--accent-ink:#a73913;--accent-soft:#fae9de;--hero:#142033;--shadow:none;--focus:#a43b16;--font:Geist,Arial,sans-serif}
:root[data-theme=dark]{--canvas:#151b21;--surface:#1b242c;--subtle:#232e37;--rail:#101820;--ink:#e9eee9;--navy:#e9eee9;--muted:#a2afa9;--line:#35423f;--field-line:#56695f;--accent-ink:#ffb895;--accent-soft:#403025;--hero:#142033;--focus:#ffb895}
body{background:var(--canvas);color:var(--ink);letter-spacing:-.01em}
.skip-link,.skip-link:focus{background:var(--ink);color:var(--surface)}
body:has(#workspace:not([hidden])){background:var(--canvas)}
h1,h2,h3{font-family:var(--font);font-weight:500;letter-spacing:-.03em;text-wrap:balance}
button,input,select,textarea{border-radius:8px;box-shadow:none;font-weight:500}
button{background:var(--ink);color:var(--surface);min-height:44px}
button:hover:not(:disabled){background:var(--ink);color:var(--surface)}
.secondary{border:1px solid var(--line);color:var(--ink);background:transparent;box-shadow:none}
.secondary:hover:not(:disabled){background:var(--subtle);color:var(--ink);border-color:var(--field-line)}
.text-button,.text-button:hover:not(:disabled){background:transparent;color:var(--ink);text-decoration:none}
input,select,textarea{background:var(--surface);color:var(--ink);border-color:var(--field-line)}
body:has(#workspace:not([hidden])) .app-header{background:var(--rail);width:224px;height:104px;padding:30px 24px;border:0}
body:has(#workspace:not([hidden])) .brand{color:#f3f5f7;gap:8px}
body:has(#workspace:not([hidden])) .brand-wordmark{width:119px;height:38px}
body:has(#workspace:not([hidden])) .brand-product{font-size:17px;padding-left:8px;border-left-color:#ffffff38}
body:has(#workspace:not([hidden])) main{max-width:1800px;margin:0 auto;padding:44px 48px 64px 272px}
body:has(#workspace:not([hidden])) .theme-toggle{position:fixed;top:auto;right:auto;bottom:26px;left:168px;z-index:30;width:34px;min-height:38px;border:1px solid #ffffff35;background:transparent;color:#e8edf4;border-radius:8px;margin:0}
.workspace-nav{left:0;top:104px;bottom:0;width:224px;background:var(--rail);border:0;border-radius:0;padding:0 14px 22px;gap:3px;overflow:auto}
.workspace-nav .scope-identity{padding:0 8px 22px;border-bottom:1px solid #ffffff1c;margin:0 0 20px}
.workspace-nav .scope-identity label{color:#b0bfcc;font-size:11px;font-weight:400;margin:0 0 8px}
.workspace-nav .scope-identity select{font-size:14px;font-weight:500;background:#ffffff0b;color:#fff;border:1px solid #ffffff24;border-radius:8px;padding:10px;min-height:44px;margin:8px 0 0;color-scheme:dark}
.workspace-nav option{background:#142033;color:#fff}
.workspace-nav .nav-heading{font-size:11px;color:#93a5b5;font-weight:400;letter-spacing:0;margin:0 0 8px;padding:0 12px}
.workspace-nav .nav-management{margin-top:28px}
.workspace-nav button{color:#b7c5d2;background:transparent;font-size:13px;font-weight:450;padding:12px;min-height:46px;border-radius:8px;gap:12px;border:0;box-shadow:none}
.workspace-nav button:hover:not(:disabled){background:#ffffff0d;color:#fff}
.workspace-nav button[aria-current=page],.workspace-nav button[aria-current=page]:hover:not(:disabled){background:#ffffff12;color:#fff;font-weight:550;box-shadow:none}
.workspace-nav button[aria-current=page] .nav-icon{color:#ff9869}
.nav-icon{width:19px;height:19px;stroke-width:1.6}
.workspace-nav .nav-footer{padding:24px 8px 0;margin-top:auto;border:0;gap:16px}
.nav-private{font-size:13px;color:#e8edf4;line-height:1.8}.nav-private small{font-size:11px;color:#93a5b5}
.workspace-nav .nav-footer #logout{justify-content:flex-start;text-align:left;background:transparent;border:0;border-radius:0;padding:0;min-height:38px;width:110px;color:#b7c5d2;font-size:12px}
.workspace-masthead{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:18px}
.workspace-heading{margin:0 0 28px;align-items:center;gap:24px}
.workspace-heading h1{font-size:40px;font-weight:500;letter-spacing:-.035em;line-height:1.15;margin:0 0 9px}
.workspace-heading .intro{font-size:13px;margin:0;color:var(--muted);line-height:1.5}
.workspace-actions{gap:10px;align-items:center}
.workspace-actions button,#workspace-find{border-radius:7px;font-size:12px;min-height:42px;background:transparent;border:1px solid var(--line);padding:10px 13px;box-shadow:none;color:var(--ink)}
#monthly-report-open{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.workspace-scope.filters{display:flex;align-items:center;gap:22px;background:transparent;border:0;padding:0;margin:0;border-radius:0}
.period-switch{display:flex;align-items:center;gap:14px}.period-switch>label{display:none}
.period-controls{display:flex;flex-wrap:nowrap;gap:0;background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:0;margin:0}
.period-controls .month-arrow{border:0;background:transparent;color:var(--ink);width:36px;min-width:36px;min-height:40px;height:40px;border-radius:0;font-size:22px}
.period-controls #book-month{background:transparent;width:160px;min-width:0;height:40px;min-height:40px;border:0;margin:0;padding:8px 4px;font-size:13px;font-weight:500;text-align:center}
#month-today{display:none}
.workspace-scope #account-filter-label{display:flex;align-items:center;gap:12px;font-size:12px;margin:0;min-width:0;color:var(--muted);font-weight:400}
.workspace-scope #account-filter-label select{min-width:170px;max-width:260px;font-size:13px;background:transparent;border:0;border-bottom:1px solid var(--field-line);border-radius:0;margin:0;padding:8px 24px 8px 4px;min-height:40px;color:var(--ink)}
.data-updated{font-size:11px;text-align:right;margin:-6px 0 12px;color:var(--muted)}
#panel-overview,#panel-transactions,#panel-spending,#panel-shopmonkey,#panel-knowledge,#panel-connections{margin-top:0}
#overview-content>.section-line{margin:0 0 20px;align-items:center;gap:12px}
#month-scope{font-size:12px;font-weight:400;color:var(--muted)}
#overview-content>.section-line .pill{background:transparent;border:0;padding:0;font-size:11px;color:var(--muted);max-width:none}
.overview-position{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:42px;padding:0 0 32px;border-bottom:1px solid var(--line);margin-bottom:32px}
.profit-summary{background:transparent;color:var(--ink);border:0;border-radius:0;box-shadow:none;margin:0;overflow:visible;min-width:0}
.profit-summary .profit-pair{display:flex;flex-direction:column;gap:0;margin:0}
.profit-summary .result-banner{padding:0;margin:0;display:block;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--ink);min-width:0}
.profit-summary .realized-banner{padding:20px 0 28px;border:0}
.profit-summary .profit-label{color:var(--ink);font-size:14px;font-weight:500;margin:0;line-height:1.5}
.profit-summary .result-banner h2{font-size:60px;font-weight:450;line-height:1.1;letter-spacing:-.04em;color:var(--ink);margin:18px 0 14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.profit-summary .profit-caption{font-size:12px;color:var(--muted);line-height:1.6;margin:0}
.profit-summary .projected-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:22px 0 14px}
.profit-summary .projected-banner .profit-label{font-size:13px}
.profit-summary .projected-banner h2{font-size:28px;margin:0;line-height:1.2;letter-spacing:-.03em;flex:none;max-width:55%}
.profit-summary .projected-banner .profit-caption{font-size:11px}
.profit-explanation{border:0;padding:0;margin:4px 0 0}
.profit-explanation summary{font-size:11px;color:var(--muted);min-height:36px;display:flex;justify-content:flex-start;gap:8px}
.profit-explanation summary::after{margin-left:0;font-size:15px}
.profit-explanation p{color:var(--muted);font-size:12px;margin:10px 0}
.summary-grid{display:block;background:var(--surface);border:0;border-radius:12px;box-shadow:none;overflow:hidden;margin:0;padding:22px 26px}
.ledger-heading{font-size:16px;font-weight:550;margin:0 0 10px;color:var(--ink)}
.summary-grid .metric{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;min-height:0;padding:18px 0;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--ink)}
.summary-grid .metric:nth-child(n){border:0;border-bottom:1px solid var(--line)}
.summary-grid .metric:last-child{border-bottom:0;padding-bottom:0}
.summary-grid .metric p{font-size:12px;font-weight:400;color:var(--muted);margin:0;align-self:center}
.summary-grid .metric>strong{font-size:22px;font-weight:500;letter-spacing:-.025em;margin:0;color:var(--ink);line-height:1.4;overflow-wrap:anywhere}
.metric-context{grid-column:1/-1}.metric-context>summary{font-size:11px;min-height:28px;padding:4px 0;color:var(--muted);cursor:pointer;list-style:none}
.metric-context>summary::after{content:' +';color:var(--muted)}.metric-context[open]>summary::after{content:' −'}
.metric-context span{font-size:12px;line-height:1.6;display:block;color:var(--muted);margin:6px 0}
.metric-context .text-button{font-size:12px;min-height:36px;padding:4px 0;text-align:left}
.overview-detail-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:42px;align-items:start}
.panel,.account-card,.connection-card,.knowledge-card,.source-shop,.source-bank,#debt-accounts .account-card,.revenue-metrics .account-card{background:var(--surface);border:0;border-radius:12px;box-shadow:none;color:var(--ink)}
.profit-bridge.panel{background:transparent;overflow:visible}
.profit-bridge .panel-heading{padding:0 0 22px}
.panel-heading h2,.section-line h2{font-size:22px;font-weight:500;letter-spacing:-.025em}
.panel-heading p{font-size:12px;line-height:1.6;color:var(--muted)}
.profit-bridge .group-list{padding:0}
.group-row{padding:16px 0;font-size:13px;gap:20px;border-top:1px solid var(--line)}
button.group-row,button.category-card{background:transparent;color:var(--ink)}
button.group-row:hover:not(:disabled),button.group-row:active:not(:disabled){background:var(--subtle);color:var(--ink)}
button.category-card strong,button.group-row strong,button.group-row .group-amount{color:inherit}
button.group-row .muted,button.category-card small{color:var(--muted)}
.group-row strong{font-weight:500;font-size:15px}.group-row .muted{font-size:11px;line-height:1.5}
.profit-bridge .panel-note{background:transparent;border:0;border-top:1px solid var(--line);padding:18px 0;margin:10px 0 0;font-size:11px;color:var(--muted)}
.overview-next{min-width:0}
.overview-next .review-metric{background:var(--accent-soft);border:0;border-radius:12px;padding:22px;min-height:0;box-shadow:none;margin:0}
.review-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.review-heading p{font-size:13px;font-weight:500;margin:0}.review-heading strong{font-size:32px;font-weight:500;letter-spacing:-.03em}
.overview-next .review-metric>span{font-size:12px;color:var(--muted);line-height:1.6;margin:12px 0;display:block}
.overview-next .review-metric .text-button{font-size:12px;min-height:36px;padding:8px 0;text-align:left;color:var(--ink);display:flex;justify-content:space-between;width:100%}
.overview-shortcuts{display:block;margin:18px 0 0}
.destination-card{width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:20px 0;gap:7px;min-height:0;color:var(--ink)}
.destination-card strong{font-size:14px;font-weight:500;display:flex;justify-content:space-between}.destination-card>span:last-child{font-size:12px;color:var(--muted)}
button.destination-card:hover:not(:disabled){background:transparent;border-color:var(--ink);color:var(--ink)}
.coverage-disclosure{margin:18px 0 0;padding:0;border-top:1px solid var(--line)}.coverage-disclosure>summary{font-size:12px;padding:16px 0;min-height:48px;font-weight:400}
.section-tabs{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;gap:24px;padding:0;width:100%;margin:18px 0 28px}
.section-tabs button{border-radius:0;background:transparent;border:0;border-bottom:2px solid transparent;color:var(--muted);padding:14px 0;font-size:13px;min-height:48px;flex:none;box-shadow:none}
.section-tabs button[aria-selected=true]{background:transparent;color:var(--ink);border-bottom-color:var(--accent-ink);box-shadow:none}
.section-tabs button:hover:not(:disabled){background:transparent;color:var(--ink)}
.account-cards{gap:16px;margin-bottom:28px}.account-card{padding:24px}.account-card h3{font-size:15px;font-weight:500}.account-card dt{font-size:12px}.account-card dd{font-size:14px;font-weight:500}
.category-grid,#panel-spending .category-grid{grid-template-columns:1fr;gap:0;padding:0 24px 12px}
.category-card{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;width:100%;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:18px 0;box-shadow:none;min-height:72px}
.category-card strong{font-size:24px;margin-left:auto;letter-spacing:-.03em;font-weight:500}.category-name{font-size:14px;color:var(--ink)}
button.category-card:hover:not(:disabled){background:var(--subtle);color:var(--ink);border-color:var(--line)}
#spending-categories{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;align-items:start}
#panel-spending .category-panel{margin:0}.panel-heading{padding:24px 24px 18px}
.revenue-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:var(--surface);border-radius:12px;overflow:hidden;margin:24px 0}
.revenue-metrics .account-card{background:transparent;border:0;border-right:1px solid var(--line);border-radius:0;padding:24px}
.revenue-metrics .account-card:last-child{border-right:0}
.revenue-metrics .account-card h3{font-size:12px;color:var(--muted);margin:0 0 18px;font-weight:400}
.revenue-metrics .account-card>strong{font-size:28px;font-weight:500;color:var(--ink);letter-spacing:-.03em}
.revenue-metrics .account-card small{font-size:11px;color:var(--muted);line-height:1.6;margin-top:12px}
.revenue-metrics .collected-card{background:var(--accent-soft)}
.source-shop,.source-bank{border-top:0}.collection-comparison{gap:20px}
.transaction-search{border:0;background:var(--surface);border-radius:12px;padding:18px;gap:16px;align-items:end}
.transaction-search label{font-size:12px;font-weight:400}.transaction-search input,.transaction-search select{background:transparent;border:0;border-bottom:1px solid var(--field-line);border-radius:0;padding-left:0}
.batch-actions{background:transparent;border:0;border-radius:0;margin:8px 0}.batch-actions>summary{padding:12px 0;color:var(--muted);font-size:12px}
.table-wrap{border:0;border-radius:12px;box-shadow:none;background:var(--surface)}table{background:transparent;border:0}th{background:var(--surface);color:var(--muted);font-size:11px;font-weight:450;border-bottom:1px solid var(--line);padding:18px 16px}td{font-size:13px;padding:18px 16px;border-color:var(--line)}
#transactions{border:0}#transactions td:nth-child(3) button{background:transparent;color:var(--ink);border:0;border-radius:0;box-shadow:none;padding:0;text-align:left}
.pill,.pill.attention,.pill.approved{border:0;background:var(--subtle);color:var(--muted);font-size:11px;border-radius:4px;font-weight:400}
.section-description{font-size:13px;line-height:1.7;max-width:760px}.feedback{font-size:12px;color:var(--muted)}
.monthly-dialog{border:0;border-radius:12px;background:var(--surface)}.monthly-dialog-header{padding:24px 28px;background:var(--surface);border-bottom:1px solid var(--line)}.monthly-dialog-header h2{font-size:24px;font-weight:500}
#transaction-dialog{border:0;border-radius:12px}.dialog-heading h2{font-size:26px;font-weight:500}.source-card{background:var(--subtle);border:0;border-radius:8px}
.month-skeleton{display:grid;grid-template-columns:1.15fr 1fr;gap:30px;min-height:500px}.month-skeleton div:first-child{grid-column:auto;height:300px}.month-skeleton div{height:300px;border-radius:12px}.month-skeleton div:nth-child(n+3){height:190px}
/* Authentication follows the same editorial language, not a decorative hero card. */
.auth-layout{background:transparent;border:0;border-radius:0;box-shadow:none;grid-template-columns:1.2fr 1fr;gap:80px;align-items:center;margin:40px auto 60px}
.auth-story{background:transparent;color:var(--ink);padding:0;min-height:0}.auth-story h1{font-size:64px;font-weight:450;letter-spacing:-.04em;line-height:1.07;color:var(--ink)}.auth-story .intro{font-size:16px;line-height:1.7;color:var(--muted)}.auth-story .eyebrow{font-size:12px;letter-spacing:0;color:var(--muted);margin-bottom:32px}.auth-story-footer{display:none}
.auth-form-panel{background:var(--surface);padding:36px;border-radius:12px}.auth-form-panel>.eyebrow{display:none}.auth-form-panel h2{font-size:28px;font-weight:500}.auth-form-panel .intro{font-size:13px}.auth-form-panel input{background:transparent;border:0;border-bottom:1px solid var(--field-line);border-radius:0;padding-left:0}.auth-form-panel button{border-radius:8px}
body:has(#workspace:not([hidden])) .app-footer{margin-left:224px;padding:24px 48px;background:transparent}
@media(min-width:1600px){.profit-summary .result-banner h2{font-size:72px}.profit-summary .projected-banner h2{font-size:32px}.overview-position{gap:64px}}
@media(min-width:901px) and (max-width:1150px){body:has(#workspace:not([hidden])) main{padding:32px 28px 60px 244px}.workspace-nav,body:has(#workspace:not([hidden])) .app-header{width:216px}.overview-position,.overview-detail-layout{gap:24px}.profit-summary .result-banner h2{font-size:46px}.profit-summary .projected-banner h2{font-size:24px}.summary-grid{padding:20px}.summary-grid .metric>strong{font-size:20px}.workspace-heading{align-items:flex-start}.workspace-heading h1{font-size:34px}.workspace-actions{flex-direction:column;align-items:stretch}.revenue-metrics{grid-template-columns:1fr 1fr}.revenue-metrics .account-card:nth-child(2){border-right:0}.revenue-metrics .account-card:nth-child(n+3){border-top:1px solid var(--line)}}
@media(max-width:900px){
 body:has(#workspace:not([hidden])) .app-header{position:static;width:100%;height:auto;min-height:66px;background:var(--rail);padding:12px 24px;border:0}
 body:has(#workspace:not([hidden])) .theme-toggle{position:static;margin:0 0 0 auto;min-height:40px;width:36px}
 body:has(#workspace:not([hidden])) main{padding:28px 24px calc(100px + env(safe-area-inset-bottom))}
 .workspace-heading h1{font-size:34px}.workspace-scope.filters{flex-wrap:wrap;gap:16px}.workspace-scope .scope-identity{display:flex;flex-basis:100%;gap:16px}.scope-identity label{margin:0}
 .workspace-scope .scope-identity select{background:var(--surface);border:1px solid var(--line);color:var(--ink)}
 .overview-position{gap:28px}.profit-summary .result-banner h2{font-size:48px}.profit-summary .projected-banner h2{font-size:26px}.overview-detail-layout{gap:28px}
 .summary-grid{padding:20px}.summary-grid .metric>strong{font-size:20px}.revenue-metrics{grid-template-columns:1fr 1fr}.revenue-metrics .account-card:nth-child(2){border-right:0}.revenue-metrics .account-card:nth-child(n+3){border-top:1px solid var(--line)}
 body:has(#workspace:not([hidden])) .app-footer{margin-left:0;padding:24px}
 .mobile-navigation{background:var(--surface);border-top:1px solid var(--line)}.mobile-navigation button{background:transparent;color:var(--muted)}.mobile-navigation button[aria-current=page]{background:transparent;color:var(--ink);font-weight:600}.mobile-navigation button[aria-current=page] .nav-icon{color:var(--accent-ink)}
 .auth-layout{gap:36px}.auth-story h1{font-size:48px}
}
@media(max-width:600px){
 body:has(#workspace:not([hidden])) .app-header{padding:10px 18px;gap:10px;min-height:64px;flex-wrap:nowrap}
 body:has(#workspace:not([hidden])) .brand-wordmark{width:93px;height:32px}body:has(#workspace:not([hidden])) .brand-product{font-size:12px;padding-left:7px}
 body:has(#workspace:not([hidden])) .theme-toggle{margin:0;flex:none;width:32px;min-height:38px;border:0}
 body:has(#workspace:not([hidden])) #mobile-context-slot{max-width:42%;margin-left:auto}
 #mobile-context-slot .scope-identity{margin:0;padding:0}#mobile-context-slot select{background:transparent;border:0;color:#edf2f6;font-size:13px;min-height:42px;font-weight:500;color-scheme:dark}#mobile-context-slot option{background:#142033}
 body:has(#workspace:not([hidden])) main{padding:24px 20px calc(88px + env(safe-area-inset-bottom))}
 .workspace-masthead{padding-bottom:16px;margin-bottom:12px}.workspace-heading{margin:0 0 18px;gap:12px;display:flex;align-items:flex-start;flex-direction:column}
 .workspace-heading h1{font-size:30px;font-weight:500;line-height:1.15;margin:0}.workspace-heading .intro{display:none}
 .workspace-actions{width:100%;display:flex;flex-direction:row;gap:16px}.workspace-actions button,#workspace-find{font-size:11px;min-height:36px;background:transparent;color:var(--muted);border:0;padding:0;border-radius:0;box-shadow:none}
 .workspace-scope.filters{display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:10px;padding:0;border:0;align-items:center}
 .period-switch{min-width:0;width:100%}.period-controls{width:100%;border:0;border-radius:0;background:transparent;gap:0}
 .period-controls .month-arrow{min-width:28px;width:28px;height:40px;min-height:40px}.period-controls #book-month{font-size:15px;height:40px;width:0;flex:1;padding:8px 0;text-align:center}
 #mobile-filters-toggle{display:block;background:transparent;border:1px solid var(--line);border-radius:6px;font-size:11px;min-height:40px;color:var(--ink);padding:8px}
 #mobile-filters-toggle[aria-expanded=true]{background:var(--surface)}
 .workspace-scope #account-filter-label{display:none;grid-column:1/-1}.workspace-scope.mobile-filters-open #account-filter-label:not([hidden]){display:flex;justify-content:space-between}.workspace-scope #account-filter-label select{max-width:220px;width:65%;font-size:16px}
 .data-updated{font-size:10px;margin:0 0 12px;text-align:left}
 #overview-content>.section-line{margin:0 0 16px;gap:4px}#month-scope{font-size:10px}#overview-content>.section-line .pill{font-size:10px}
 .overview-position{display:flex;flex-direction:column;gap:26px;padding-bottom:24px;margin-bottom:28px}
 .profit-summary .realized-banner{padding:8px 0 24px}.profit-summary .profit-label{font-size:13px}
 .profit-summary .result-banner h2{font-size:52px;line-height:1.1;margin:14px 0 12px;font-weight:450;letter-spacing:-.04em;grid-column:auto;grid-row:auto}
 .profit-summary .profit-caption{font-size:11px}
 .profit-summary .projected-banner{padding:18px 0 10px;gap:12px}.profit-summary .projected-banner h2{font-size:26px;margin:0;max-width:52%}.profit-summary .projected-banner .profit-label{font-size:12px}.profit-summary .projected-banner .profit-caption{font-size:10px}
 .profit-explanation{margin-top:2px}.profit-explanation summary{font-size:11px;min-height:36px}
 .summary-grid{padding:22px;background:var(--surface);border-radius:12px;display:block}.ledger-heading{font-size:16px;margin:0 0 8px}
 .summary-grid .metric{padding:16px 0;gap:4px 10px;min-height:0}.summary-grid .metric p{font-size:12px}.summary-grid .metric>strong{font-size:22px}
 .summary-grid .metric span{font-size:12px}.metric-context>summary{font-size:10px;min-height:24px}
 .overview-detail-layout{display:flex;flex-direction:column;gap:24px}.profit-bridge,.overview-next{width:100%}
 .profit-bridge .panel-heading{padding:0 0 18px}.profit-bridge .panel-heading h2{font-size:23px}.profit-bridge .group-list{padding:0}.profit-bridge .panel-note{padding:16px 0;font-size:11px}
 .overview-next .review-metric{padding:20px}.review-heading strong{font-size:30px}.overview-shortcuts{margin-top:10px}.destination-card{padding:18px 0}
 #spending-categories{display:block}#spending-categories>.panel{margin-bottom:20px}.category-grid,#panel-spending .category-grid{padding:0 18px 10px}.category-card{padding:16px 0;min-height:68px}.category-name{font-size:13px}.category-card strong{font-size:22px}
 .section-tabs{gap:22px;overflow:auto;justify-content:flex-start;margin:14px 0 22px}.section-tabs button{flex:none;padding:12px 0;font-size:12px;min-height:44px}
 .panel-heading{padding:20px 18px 16px}.panel-heading h2,.section-line h2{font-size:21px}.group-list{padding:0 18px 14px}
 .account-card{padding:20px}.account-card h3{font-size:15px}
 .revenue-metrics .account-card{padding:20px 16px}.revenue-metrics .account-card h3{font-size:12px;margin-bottom:14px}.revenue-metrics .account-card>strong{font-size:24px}.revenue-metrics .account-card small{font-size:11px;line-height:1.5}
 .monthly-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.monthly-dialog-header{padding:18px 20px}.monthly-dialog-header h2{font-size:22px}.monthly-dialog-body{padding:0 20px 24px}
 .month-skeleton{grid-template-columns:1fr;min-height:650px;gap:24px}.month-skeleton div:first-child{height:270px}.month-skeleton div{height:240px}.month-skeleton div:nth-child(n+3){display:none}
 .mobile-navigation{padding:6px 12px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}.mobile-navigation button{border-radius:0;min-height:48px;font-size:10px;gap:5px}.mobile-navigation .nav-icon{width:21px;height:21px}
 .auth-layout{display:block;margin:0}.auth-story{padding:0 0 28px}.auth-story h1{font-size:42px;margin:0 0 18px}.auth-story .eyebrow{margin:0 0 18px}.auth-story .intro{font-size:13px;margin:0}.auth-form-panel{padding:24px}.auth-form-panel h2{font-size:26px}.auth-layout .auth-story-footer{display:none}
}
@media(max-width:360px){body:has(#workspace:not([hidden])) main{padding-left:16px;padding-right:16px}.workspace-heading h1{font-size:28px}.profit-summary .result-banner h2{font-size:44px}.profit-summary .projected-banner h2{font-size:23px}.summary-grid{padding:18px}.summary-grid .metric>strong{font-size:20px}.overview-position{gap:22px}}
@media print{:root,:root[data-theme=dark]{--surface:#fff;--canvas:#fff;--ink:#12161d;--navy:#0f1b33;--muted:#515d6c;--line:#dfe4ec;--subtle:#f3f5f8;color-scheme:light}.theme-toggle{display:none}.monthly-dialog{border:0;box-shadow:none}}
}

@layer direction {
.workspace-scope #account-filter-label{flex:0 0 auto;width:auto;white-space:nowrap;max-width:none}
.profit-summary .projected-banner{flex-direction:row;text-align:left}
.review-heading{width:100%;justify-content:space-between}
@media(max-width:600px){
 #monthly-report-open{background:transparent;color:var(--muted);border:0;padding:0}
 .profit-summary .projected-banner{flex-direction:row;align-items:center;text-align:left}
 .profit-summary .projected-banner>div{min-width:0}
 .workspace-scope #account-filter-label{white-space:normal}
 #overview-content>.section-line{align-items:flex-start}
}
}
