:root{--navy:#102744;--blue:#1664d9;--blue2:#e8f2ff;--ink:#18304d;--muted:#586f8b;--line:#d9e2ed;--bg:#f5f8fc;--white:#fff;--green:#0e8355;--greenbg:#dcf6e9;--amber:#926013;--amberbg:#fff1cf;--red:#bc3e43;--redbg:#ffe7e6;--shadow:0 10px 30px rgba(22,53,94,.055)}
*{box-sizing:border-box}html{font-size:16px}body{margin:0;font-family:system-ui,-apple-system,'Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR',sans-serif;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{text-decoration:none}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #80b2fa;outline-offset:2px}
.topbar{height:78px;background:var(--navy);color:white}.top-inner{height:100%;max-width:1500px;padding:0 26px;margin:auto;display:flex;align-items:center;gap:23px}.home{border:1px solid #56708d;border-radius:12px;color:white;padding:10px 16px;font-weight:800;white-space:nowrap}.brand{display:flex;align-items:center;gap:12px}.mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#ffcd58;color:#182943;font-size:30px;font-weight:900;box-shadow:inset 0 -4px #e6ae2e;transform:rotate(-6deg)}.brand strong{display:block;font-size:23px;letter-spacing:-.75px}.brand span{display:block;font-weight:800;font-size:10px;letter-spacing:1.8px;color:#a7c5e5}.top-badges{margin-left:auto;display:flex;gap:8px}.badge{border:1px solid #4e6884;color:#bcd0e6;border-radius:30px;padding:8px 12px;font-weight:750;font-size:12px}.badge.beta{color:#ffd87b;border-color:#867344}
.shell{max-width:1500px;margin:auto;padding:25px 26px 24px}.hero{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 25px}.eyebrow{font-weight:850;color:var(--blue);font-size:13px;letter-spacing:.3px;margin-bottom:4px}.hero h1{margin:0 0 6px;font-size:27px;letter-spacing:-1.25px;line-height:1.3}.hero h1 em{font-style:normal;color:var(--blue)}.hero p{margin:0;color:var(--muted);font-size:14px;line-height:1.65}.hero-actions{display:flex;gap:8px;flex-shrink:0}.btn{border:1px solid var(--line);padding:12px 16px;border-radius:12px;font-size:14px;font-weight:850;background:white;color:var(--ink);transition:transform .1s ease,box-shadow .1s ease}.btn:hover:not(:disabled){box-shadow:0 3px 12px #1d457721;transform:translateY(-1px)}.btn.light{background:#fff;color:#1864ce}.btn.ghost{background:transparent}.btn.primary{background:#1466e4;color:white;border-color:#1466e4;font-size:17px}.btn.outline{border:2px solid #91b8ee;color:#1e61bf;background:#f6faff}.btn.mini{font-size:12px;padding:9px 11px;border-radius:9px}.btn.solid{background:var(--navy);border-color:var(--navy);color:white}.btn.full{width:100%}
.workspace{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(355px,.92fr);gap:20px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.section-head>div:first-child{display:flex;align-items:center;gap:9px}.section-head h2{font-size:18px;margin:0;letter-spacing:-.5px}.step{background:var(--navy);color:#fff;font-size:11px;letter-spacing:.3px;padding:6px 8px;border-radius:7px;font-weight:900}.section-head small{color:var(--muted);font-size:12px;font-weight:650}.sources,.process{min-width:0}.source-panel,.process-panel,.results{border:1px solid var(--line);background:white;border-radius:17px;box-shadow:var(--shadow)}.source-panel{padding:15px 18px;margin-bottom:13px}.source-head,.source-title{display:flex;align-items:center;gap:10px}.source-head{justify-content:space-between;margin-bottom:10px}.source-title h3{margin:0;font-size:15px;line-height:1.4}.source-title span:not(.type-icon){color:var(--muted);font-size:12px}.type-icon{display:grid;place-items:center;border-radius:12px;width:38px;height:38px;font-size:25px}.card-icon{background:#dfedff;color:#276bd6}.action-icon{background:#e0f5ed;color:#1c8b66}.count{font-size:13px;background:#f1f4f8;border-radius:30px;padding:6px 10px;white-space:nowrap}.dropzone{min-height:85px;border:2px dashed #b6cce3;border-radius:12px;background:#f8fbff;display:flex;align-items:center;justify-content:center;gap:12px;padding:13px;flex-wrap:wrap;cursor:pointer}.dropzone:hover,.dropzone.dragging{background:#ebf5ff;border-color:var(--blue)}.dropzone strong{font-size:13px}.dropzone small{color:var(--muted);font-size:11px}.upload-icon{width:30px;height:30px;display:grid;place-items:center;border:1px solid #a7c6eb;border-radius:10px;color:var(--blue);font-size:22px}.gallery{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.gallery:empty{display:none}.thumb{position:relative;display:flex;align-items:center;gap:8px;border:1px solid #d4e4f3;border-radius:9px;padding:5px 7px 5px 5px;background:#fafcff;color:var(--ink);font-size:11px;max-width:100%;font-weight:700}.thumb img{width:32px;height:32px;object-fit:cover;border-radius:5px}.thumb span{max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thumb .remove{background:transparent;border:0;color:#b13a3a;font-weight:900;padding:4px}.source-actions{display:flex;gap:7px;justify-content:flex-end;margin-top:8px}
.process-panel{padding:19px}.setting-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:12px}.setting-head strong{font-size:15px}.setting-head small{font-size:11px;color:var(--muted)}.segment{display:grid;grid-template-columns:repeat(4,1fr);background:#eef3f9;border-radius:12px;padding:4px;gap:4px}.segment button{font-size:13px;font-weight:800;color:#506b89;border:0;background:transparent;border-radius:9px;padding:12px 4px}.segment button.active{background:var(--blue);color:#fff;box-shadow:0 2px 7px #2969c834}.info-line{margin:13px 0 16px;display:flex;align-items:center;gap:8px;color:#617793;font-size:12px}.dot{width:7px;height:7px;border-radius:50%;background:#6ba3ef}.ai-setting{border:1px solid #dbe8f8;background:#f8fbff;border-radius:14px;padding:15px}.ai-title{display:flex;align-items:center;gap:8px}.ai-title>span:first-child{color:var(--blue);font-size:22px}.ai-title strong{font-size:15px}.tag{border-radius:7px;padding:3px 6px;background:#e1efff;color:#3370b6;font-size:11px;font-weight:800}.ai-setting p{font-size:12px;color:#556d88;line-height:1.65;margin:9px 0}.checkline{display:flex;gap:8px;align-items:flex-start;font-size:12px;font-weight:700;line-height:1.5;padding:8px 0;cursor:pointer}.checkline input{width:18px;height:18px;accent-color:var(--blue);margin:0;flex-shrink:0}.code-label{display:block;font-size:12px;font-weight:800;margin-top:8px}.code-label small{font-weight:500;color:var(--muted)}.code-input{width:100%;border-radius:8px;border:1px solid #b9cde3;padding:10px 11px;margin:7px 0 10px;background:#fff;font-size:14px}.privacy{display:block;font-size:11px;color:#7d5a22;line-height:1.5;margin-top:9px}.run-area{margin-top:14px;text-align:center}.run-area small{display:block;margin-top:9px;font-size:11px;color:var(--muted)}
.results{margin-top:13px;padding:18px 18px 12px}.result-head{margin-bottom:15px}.result-tools{display:flex;align-items:center;gap:8px}.filter-label{font-size:12px;font-weight:800;display:flex;align-items:center;gap:7px}.filter-label select{border-radius:8px;border:1px solid var(--line);padding:8px;background:white;font-weight:700;color:var(--ink);font-size:12px}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:11px;margin-bottom:15px}.stat{border-radius:11px;background:#f3f6fa;padding:14px 15px;min-height:73px}.stat span{display:block;font-size:12px;color:#526c87;font-weight:750;margin-bottom:5px}.stat strong{font-size:22px;font-variant-numeric:tabular-nums;line-height:1}.stat.match{background:#e8f8ee}.stat.match strong{color:var(--green)}.stat.review{background:#fff4dc}.stat.review strong{color:var(--amber)}.stat.missing{background:#fff0f0}.stat.missing strong{color:var(--red)}.table-wrap{overflow:auto;border:1px solid #e0e7f0;border-radius:12px;max-height:370px}.result-table{width:100%;border-collapse:collapse;font-size:12px;min-width:870px}.result-table th{text-align:left;position:sticky;top:0;background:#eef4fb;color:#3b536d;padding:12px 10px;font-size:12px;white-space:nowrap;z-index:1}.result-table th.right,.result-table td.right{text-align:right}.result-table td{border-top:1px solid #edf0f5;padding:10px;vertical-align:middle}.result-table tbody tr:hover{background:#f9fbfe}.result-table td.money{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.result-table .empty{text-align:center;padding:34px;color:var(--muted);font-size:14px}.status-pill{white-space:nowrap;padding:5px 8px;border-radius:7px;font-size:11px;font-weight:850;display:inline-block}.status-pill.match{background:var(--greenbg);color:var(--green)}.status-pill.review{background:var(--amberbg);color:var(--amber)}.status-pill.card-only,.status-pill.action-only{background:var(--redbg);color:var(--red)}.small-action{border:1px solid #bdd4ee;border-radius:7px;background:#f4f9ff;color:#1d5cae;padding:6px 8px;font-size:11px;font-weight:800;white-space:nowrap}.reason{max-width:230px;color:#607791;font-size:11px}.result-foot{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:10px;font-size:11px;color:#637991}.result-foot #status{color:#1d63be;font-weight:700}.footer{display:flex;gap:20px;justify-content:space-between;align-items:center;color:#7990aa;font-size:10px;padding-top:15px;font-weight:700;letter-spacing:.1px}
.modal{border:0;border-radius:16px;max-width:calc(100vw - 40px);box-shadow:0 25px 80px #0c23436e;padding:0;width:780px;color:var(--ink)}.modal::backdrop{background:rgba(9,27,51,.68)}.modal-head{padding:17px 20px;display:flex;justify-content:space-between;align-items:center;background:#f4f8fd;border-bottom:1px solid var(--line)}.modal-head strong{font-size:18px}.close{border:0;background:#e8eff7;border-radius:9px;width:33px;height:33px}.modal-foot{padding:14px 20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.image-modal{width:min(1180px,98vw)}.image-canvas{padding:10px;max-height:78vh;overflow:auto;text-align:center}.image-canvas img{max-width:100%;height:auto;object-fit:contain}.edit-scroll{max-height:55vh;overflow:auto}.edit-description{font-size:12px;color:var(--muted);padding:12px 20px}.edit-table{border-collapse:collapse;width:100%;min-width:630px}.edit-table th{background:#eff5fd;font-size:12px;padding:10px}.edit-table td{padding:6px;border-bottom:1px solid #e7edf4}.edit-table input,.paste-modal textarea{border:1px solid var(--line);border-radius:8px;padding:9px 7px;width:100%;font-size:13px;color:var(--ink)}.edit-table input[type=date]{min-width:145px}.edit-table input[type=number]{min-width:125px}.edit-table input[type=text]{min-width:170px}.edit-table small{color:var(--muted)}.delete-row{border:0;background:#ffeaea;border-radius:6px;color:#a93636;font-weight:800;padding:7px 9px}.paste-modal{width:610px}.paste-modal p{font-size:13px;line-height:1.7;padding:0 20px}.paste-modal textarea{width:calc(100% - 40px);margin:0 20px 10px;font-family:monospace;line-height:1.5;resize:vertical}
@media(max-width:1100px){.workspace{grid-template-columns:1fr}.sources{display:grid;grid-template-columns:1fr 1fr;gap:13px}.sources>.section-head{grid-column:1 / -1;margin-bottom:0}.source-panel{margin:0}.process-panel{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}.process-panel .ai-setting{grid-column:1 / -1}.process-panel .run-area{grid-column:1 / -1}.process-panel .info-line{margin:0;align-self:center}.stats{grid-template-columns:repeat(5,1fr)}}
@media(max-width:720px){.topbar{height:auto;min-height:70px}.top-inner{padding:12px 16px;gap:10px}.brand strong{font-size:18px}.brand span{font-size:8px}.mark{height:33px;width:33px;font-size:22px}.home{padding:7px 10px}.top-badges .secure{display:none}.badge{font-size:10px;padding:6px}.shell{padding:17px 12px}.hero{align-items:stretch;flex-direction:column;gap:13px}.hero h1{font-size:23px}.hero p{font-size:13px}.hero-actions{justify-content:space-between}.hero-actions .btn{flex:1}.sources{display:block}.sources>.section-head{margin-bottom:11px}.source-panel{margin-bottom:12px}.process-panel{display:block}.process-panel .info-line{margin:12px 0}.workspace{gap:10px}.stats{grid-template-columns:repeat(3,1fr);gap:7px}.stat{padding:11px;min-height:70px}.stat strong{font-size:20px}.result-head{align-items:flex-start;flex-direction:column}.result-tools{width:100%;justify-content:space-between}.results{padding:14px 10px}.footer{flex-direction:column;gap:5px;text-align:center}.top-badges{margin-left:auto}.brand{gap:7px}}
@media(prefers-reduced-motion:reduce){.btn{transition:none}}

/* v0.1.1: screenshot clipboard paste selection for either source */
.source-actions{flex-wrap:wrap}
.btn.paste-select{border-color:#91b8ee;color:#1e61bf;background:#f6faff}
.btn.paste-select.selected{background:#1466e4;border-color:#1466e4;color:#fff}
.dropzone.paste-ready{border-color:#1466e4;background:#eff6ff;box-shadow:0 0 0 2px #dcecff}
.paste-hint{text-align:right;margin-top:7px;color:#586f8b;font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.paste-hint kbd{display:inline-block;line-height:1.3;border:1px solid #c4d5e6;border-radius:4px;background:#f6f9ff;padding:1px 4px;font:inherit;font-weight:750}
@media(max-width:650px){.paste-hint{text-align:left}.source-actions{justify-content:flex-start}}

/* v0.2 — on-device OCR pilot */
.ocr-setting{border:1px solid #8ab9e9;background:#eef7ff;border-radius:14px;padding:15px;margin:0 0 14px}
.ocr-setting h3{font-size:17px;letter-spacing:-.3px;margin:0 0 8px;color:#164779}
.ocr-setting p{font-size:13px;color:#335873;margin:0 0 12px;line-height:1.65}
.ocr-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ocr-controls label{font-size:12px;font-weight:800;color:#345f81}
.ocr-controls select{border:1px solid #a7c7e6;background:#fff;padding:8px;border-radius:8px;font-size:12px}
.ocr-setting .btn{margin-top:10px;font-size:16px}
.ocr-hint{display:block;color:#586f8b;font-size:12px;line-height:1.6;margin-top:8px}
.ocr-status{display:block;color:#1a5a9b;font-size:13px;line-height:1.5;margin:8px 0;font-weight:750}
.ocr-progress{width:100%;height:11px;accent-color:#1466e4}
.ocr-raw{border:1px solid #90b6de;border-radius:7px;background:#f0f7ff;color:#155995;font-weight:800;font-size:11px;padding:5px 8px}
.ocr-text-modal{width:min(900px,96vw)}
.ocr-text-meta{font-size:12px;padding:9px 18px;color:#55708c}
.ocr-text-body{max-height:60vh;overflow:auto;white-space:pre-wrap;word-break:break-word;font-family:Consolas,'Malgun Gothic',monospace;font-size:14px;line-height:1.65;padding:16px;background:#fbfdff;border-top:1px solid #dfebf7}
@media(max-width:640px){.ocr-setting{padding:12px}.ocr-controls{align-items:stretch}.ocr-controls select{max-width:100%}}
/* v0.3 OCR sum reconciliation */
.amount-audit{margin-top:8px;padding:10px 12px;border:1px solid #cce0f5;background:#f8fbff;border-radius:10px}
.amount-audit label{display:block;font-size:12px;font-weight:800;color:#235386;margin-bottom:6px}
.amount-audit label span{font-weight:600;color:#657b94}
.amount-audit input{width:100%;padding:9px 10px;border-radius:8px;border:1px solid #bed1e6;background:#fff;font-size:14px;font-variant-numeric:tabular-nums}
.amount-audit small{display:block;color:#536e8a;font-size:12px;line-height:1.5;margin-top:7px}
.amount-audit small.audit-error{color:#b23339;font-weight:850}
.amount-audit small.audit-ok{color:#0e8355;font-weight:850}
.ocr-line{max-width:280px;color:#5e748b;font-size:11px;white-space:normal;word-break:break-word;line-height:1.45;margin-top:5px;background:#eef5ff;border-radius:6px;padding:5px}
/* Optional OCR preprocessing for small spreadsheet-style screenshots */
.ocr-controls .ocr-enhance{display:flex;align-items:center;gap:7px;color:#235386;font-size:12px;white-space:normal}
.ocr-controls .ocr-enhance input{height:18px;width:18px;accent-color:#1664d9}

/* v0.4.0: evidence review, bidirectional links and residual balance */
.inspection{margin-top:17px}
.detail-heading{margin-bottom:11px}
.inspection-lead{background:#edf5ff;border:1px solid #c9dcf1;border-radius:10px;padding:12px 15px;font-size:13px;color:#36597f;line-height:1.65;margin:0 0 14px}
.inspection-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:13px}
.inspection-panel,.cancel-detail,.balance-panel{background:#fff;border:1px solid #d9e2ed;border-radius:15px;box-shadow:var(--shadow);min-width:0;overflow:hidden}
.inspection-panel summary,.cancel-detail summary{display:flex;gap:10px;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;padding:15px 17px;background:#f7fbff;font-size:15px;color:#173657}
.inspection-panel summary::-webkit-details-marker,.cancel-detail summary::-webkit-details-marker{display:none}
.inspection-panel summary::after,.cancel-detail summary::after{content:'⌄';font-size:20px;color:#53718c}
.inspection-panel:not([open]) summary::after,.cancel-detail:not([open]) summary::after{content:'›'}
.inspection-panel summary strong,.cancel-detail summary strong{font-weight:850}
.inspection-panel summary span,.cancel-detail summary span{color:#516d86;font-size:13px;font-weight:750;margin-left:auto}
.inspection-stats{padding:9px 16px;background:#fbfdff;border-top:1px solid #ebf0f5;font-size:12px;color:#526c87;line-height:1.6}
.inspection-scroll{overflow:auto;max-height:410px;border-top:1px solid #e1eaf3}
.inspection-table{border-collapse:collapse;width:100%;min-width:620px;font-size:12px}
.inspection-table th{position:sticky;top:0;background:#e9f2fe;text-align:left;color:#415b77;white-space:nowrap;padding:11px 9px;z-index:1}
.inspection-table th.right,.inspection-table td.right{text-align:right}
.inspection-table td{padding:10px 9px;border-bottom:1px solid #e8eff5;vertical-align:top}
.inspection-table tbody tr:nth-child(even){background:#fcfdff}
.inspection-table tbody tr.row-target{background:#dceeff;outline:2px solid #1970dc;outline-offset:-2px}
.inspection-table .empty{text-align:center;color:#637991;padding:30px}
.record-ref{display:inline-block;font-size:12px;font-weight:850;color:#185cb6;white-space:nowrap}
.record-merchant{font-weight:750;line-height:1.35;max-width:180px;overflow-wrap:anywhere}
.record-ocr{font-size:10px;max-width:230px;line-height:1.4;color:#71849b;margin-top:5px;overflow-wrap:anywhere}
.record-money{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:850}
.record-money.negative{color:#b53645}
.record-linked{border:1px solid #aacbe9;background:#eff7ff;border-radius:7px;color:#215bb1;padding:5px 7px;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer}
.record-edit{border:none;background:none;color:#4b719e;text-decoration:underline;font-weight:750;font-size:11px;cursor:pointer;margin-left:6px}
.inspection-state{font-size:11px;font-weight:850;border-radius:7px;padding:5px 7px;display:inline-block;white-space:nowrap}
.inspection-state.match{color:#0e8355;background:#e0f7ea}
.inspection-state.review{color:#91600f;background:#fff1cf}
.inspection-state.unmatched{color:#b63340;background:#ffe7e6}
.inspection-state.cancelled{color:#566b84;background:#e8eef5}
.cancel-detail{margin-top:14px}
.cancel-detail summary{background:#f8f9fe}
.balance-panel{display:flex;align-items:stretch;gap:8px;padding:15px;margin-top:14px;flex-wrap:wrap}
.balance-unit{flex:1;min-width:155px;display:flex;flex-direction:column;gap:6px;background:#f6f9fd;border-radius:10px;padding:13px}
.balance-unit small{font-size:12px;font-weight:850;color:#58738d}
.balance-unit strong{font-size:23px;font-weight:900;white-space:nowrap;font-variant-numeric:tabular-nums}
.balance-unit span{font-size:11px;color:#687e91}
.balance-symbol{display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900;color:#7593b4;min-width:20px}
.balance-difference{background:#e9f3ff}
.balance-difference.balance-alert{background:#fff1e9}
.balance-difference.balance-alert strong{color:#b44736}
.balance-difference.balance-ok{background:#e5f7eb}
.balance-difference.balance-ok strong{color:#0e8355}
.balance-explanation{width:100%;font-size:12px;line-height:1.5;color:#607790;margin:3px 4px 0}
@media(max-width:1190px){.inspection-grid{grid-template-columns:1fr}.inspection-table{min-width:720px}}
@media(max-width:760px){.balance-panel{gap:4px}.balance-unit{min-width:42%;flex-basis:42%}.balance-symbol{min-width:14px}.balance-unit strong{font-size:19px}}

/* v0.5 matching priority displays and grouped card references */
.stage-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.stage-stat{padding:11px 13px;border:1px solid #d5e1ee;border-radius:10px;display:flex;justify-content:space-between;gap:10px;align-items:center;background:#f8fbff}
.stage-stat strong{font-size:12px;color:#375878}
.stage-stat span{font-size:18px;color:#155bb2;font-weight:850;font-variant-numeric:tabular-nums;white-space:nowrap}
.stage-stat.date{background:#fffaf0}.stage-stat.date span{color:#956312}
.stage-stat.sum{background:#f1f1ff}.stage-stat.sum span{color:#6244a0}
.match-stage{display:block;font-size:11px;font-weight:800;margin-top:6px;white-space:nowrap;color:#3c648b}
.match-stage.date{color:#956312}.match-stage.sum{color:#694ba6}
.group-cards{min-width:150px}.group-link{display:block;text-align:left;margin:0 0 4px;width:fit-content;max-width:230px;white-space:normal;word-break:break-word}
.result-actions{min-width:110px;white-space:normal}.result-actions button{margin-right:4px;margin-bottom:5px}
.record-stage{margin-top:6px;font-size:11px;font-weight:800;color:#215f9b}
.record-stage.date{color:#96650e}.record-stage.sum{color:#6743a9}
.inspection-table .record-linked{display:inline-block;margin:0 4px 5px 0}
@media(max-width:760px){.stage-stats{grid-template-columns:1fr}.stage-stat strong{font-size:13px}}
/* Reusable browser capture action for both input sides */
.source-actions .screen-capture-launch{background:#e1efff;border-color:#90b7e9;color:#1858ab;font-weight:850}
.source-actions .screen-capture-launch:hover{background:#cce4ff}

/* Card capture: inspect OCR transactions under the captured source, before matching. */
.card-capture-list{margin:11px 0 12px;border:1px solid #c8d9ed;background:#fff;border-radius:12px;overflow:hidden}
.card-capture-list>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;padding:12px 14px;background:#edf5ff;color:#20548e;font-size:15px;font-weight:850}
.card-capture-list>summary::-webkit-details-marker{display:none}
.card-capture-list>summary::before{content:'▸';color:#2867b8;font-size:17px;margin-right:2px}
.card-capture-list[open]>summary::before{content:'▾'}
.card-capture-list>summary strong{padding:4px 10px;border-radius:999px;background:#fff;color:#245b98;border:1px solid #c7dff7;font-size:13px;margin-left:auto}
.card-capture-list-content{padding:12px 12px 11px}
.card-list-status{font-size:13px;line-height:1.5;margin:0 0 9px;color:#486987}
.card-list-status.error{color:#ad323e;font-weight:800}
.card-list-scroll{overflow:auto;max-height:345px;border:1px solid #dce6f0;border-radius:8px}
.card-list-table{border-collapse:collapse;width:100%;min-width:610px;font-size:13px}
.card-list-table thead th{position:sticky;top:0;background:#f0f6fc;color:#35516d;z-index:1;text-align:left;padding:9px 10px;font-weight:850;border-bottom:1px solid #d3e2ee}
.card-list-table th.right,.card-list-table td.right{text-align:right}
.card-list-table tbody td{padding:9px 10px;border-bottom:1px solid #e9eff6;vertical-align:middle;color:#23405d}
.card-list-table tbody tr:nth-child(even){background:#fafcff}
.card-list-table .empty{text-align:center;padding:20px 12px;white-space:normal;color:#667f98}
.card-list-table tbody td.money{font-weight:850;white-space:nowrap;font-variant-numeric:tabular-nums}
.card-list-table tbody td.money.negative{color:#b23848}
.card-list-table tfoot th,.card-list-table tfoot td{background:#f0f6fd;padding:10px;font-size:12px;color:#315b86;border-top:1px solid #cddded}
.card-list-table tfoot td[id]{font-size:15px;font-weight:900;white-space:nowrap;color:#164f90}
.card-list-ref{font-weight:850;color:#375d81;white-space:nowrap}
.card-list-merchant{max-width:160px;overflow-wrap:anywhere}
.card-list-origin{font-size:12px;color:#647991;white-space:nowrap}
.card-list-actions{white-space:nowrap}
.card-list-actions button{padding:5px 8px;border:1px solid #c5d9ec;border-radius:7px;background:#f5faff;color:#255b98;font-size:12px;font-weight:800;margin:2px;cursor:pointer}
.card-list-actions button:hover{background:#dceeff}
.card-list-tip{font-size:12px;line-height:1.55;color:#657d94;margin:9px 0 0}
/* v0.6.2: OCR grouped-amount correction must be visible for human verification. */
.card-list-table tbody td.money.reconstructed{background:#fff7e3;color:#945300}
.card-list-table .card-list-origin.recovered{color:#965900;font-weight:850;white-space:normal;min-width:83px}

/* v0.7 — staged card-first reconciliation and two independently reviewable ledgers. */
.source-ledger-summary{display:flex;align-items:center;flex-wrap:wrap;gap:7px 11px;margin:10px 0 7px;padding:10px 12px;background:#f3f8ff;border:1px solid #d8e6f5;border-radius:11px}
.action-panel .source-ledger-summary{background:#f0faf5;border-color:#c8e9d8}
.source-ledger-summary>span{font-size:13px;font-weight:700;color:#566f88}
.source-ledger-summary strong{font-size:18px;font-weight:900;font-variant-numeric:tabular-nums;color:#144d96}
.source-ledger-summary strong:last-child{margin-left:auto;font-size:21px}
.action-panel .source-ledger-summary strong{color:#14704d}
.workflow-run{margin:0 0 17px;border:2px solid #b9d9ff;border-radius:14px;background:#f5faff;padding:17px;text-align:left}
.workflow-run>strong{font-size:17px;line-height:1.55;display:block;color:#163f70}
.workflow-run>p{font-size:13px;line-height:1.6;color:#516e88;margin:7px 0 10px}
.workflow-run .analysis-readiness{padding:10px 12px;background:#e9eef5;border-radius:9px;font-size:13px;font-weight:800;margin-bottom:11px;color:#5c7290}
.workflow-run .analysis-readiness.ready{background:#dcf6e9;color:#0b7650}
.workflow-run .analysis-readiness.busy{background:#fff2d7;color:#83550f}
.workflow-run #runBtn:disabled{background:#b5c3d4;color:#eaf0f7;border-color:#b5c3d4}
.workflow-run small{font-size:12px;line-height:1.6}
.coverage-banner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 18px;align-items:center;border:1px solid #cbdff0;background:#f1f8ff;border-radius:13px;margin-bottom:12px;padding:15px}
.coverage-banner strong{font-size:17px;font-weight:900;color:#165594}
.coverage-banner span{font-size:13px;color:#496781}
.coverage-banner.complete{background:#e2f7e8;border-color:#b5dec4}
.coverage-banner.complete strong{color:#0a7845}
.coverage-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.coverage-stat{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px;border:2px solid transparent;border-radius:11px;padding:12px 14px;min-width:0;cursor:pointer}
.coverage-stat span{font-size:13px;font-weight:750;color:#526d86;word-break:keep-all}
.coverage-stat strong{font-size:22px;font-weight:900;font-variant-numeric:tabular-nums}
.coverage-stat b{font-size:15px;font-weight:850;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.coverage-stat.matched{background:#e8f7ed;color:#0c7d4a}
.coverage-stat.review{background:#fff3d9;color:#94601a}
.coverage-stat.missing{background:#ffeded;color:#b53d43}
.coverage-stat.residual{background:#eff3f9;color:#46617e}
.coverage-stat[aria-pressed="true"]{border-color:currentColor;box-shadow:0 0 0 2px #ffffff inset}
.coverage-stat:hover{transform:translateY(-1px)}
.coverage-fineprint{font-size:12px;color:#59718b;line-height:1.65;margin:6px 0 15px}
.payment-list{border-color:#b9ddcb;background:#fbfffc}
.payment-summary{display:flex;gap:12px;align-items:center;background:#e5f7ec;border-radius:10px;padding:9px 13px;color:#086b41;font-weight:800}
.payment-summary strong{font-size:20px;font-variant-numeric:tabular-nums}
.payment-explain{font-size:13px;line-height:1.7;margin:4px 0 13px;color:#45627b}
.payment-explain strong{color:#114e87}
.payment-table{min-width:740px}
.payment-table td{font-size:13px}
.payment-table .payment-number{font-weight:900;color:#175a94}
.payment-table .payment-money{font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.payment-table .payment-pair button{margin:2px 4px 2px 0}
.results[hidden],.inspection[hidden],.payment-list[hidden]{display:none!important}
@media(max-width:1120px){.coverage-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.coverage-stat{padding:12px}.coverage-stat strong{font-size:19px}.coverage-stat b{font-size:14px}.payment-summary strong{font-size:17px}.source-ledger-summary strong:last-child{font-size:19px}}



/* v0.7.1 — manual reconciliation: unmatched card -> remaining expenditure. */
.result-actions .manual-link-action{
  background:#e9f2ff;border:1px solid #8cb6e9;color:#155cb5;
  font-size:13px;font-weight:900;white-space:nowrap
}
.result-actions .manual-unlink-action{
  background:#f5f6fa;border:1px solid #c7cbd6;color:#52657a
}
.match-stage.manual,.record-stage.manual{color:#3859a0;font-weight:850}
.manual-match-dialog{width:min(1040px,calc(100vw - 26px));max-width:none;max-height:92vh}
.manual-match-dialog .modal-head{padding:16px 20px}
.manual-match-inner{padding:18px 20px 10px}
.manual-match-intro{margin:0 0 12px;color:#4d6884;font-size:14px;line-height:1.75}
.manual-match-target{background:#eaf4ff;color:#195a9e;border:1px solid #bddaf5;
  border-radius:10px;padding:14px 15px;font-size:16px;font-weight:850;line-height:1.6;
  margin-bottom:17px;word-break:keep-all}
.manual-match-search-label{display:block;font-size:13px;font-weight:850;
  color:#455d7a;margin:0 0 7px}
.manual-match-search{display:block;width:100%;border:1px solid #b8cee4;
  border-radius:10px;padding:12px 14px;font-size:15px;background:#fff;
  color:#183b60;margin-bottom:9px}
.manual-match-info{font-size:13px;line-height:1.5;color:#4d6d90;margin:0 0 10px}
.manual-match-table-scroll{max-height:min(43vh,430px);overflow:auto;
  border-radius:10px;border:1px solid #d4e0ed}
.manual-match-table{width:100%;min-width:760px;border-collapse:collapse;font-size:13px}
.manual-match-table thead th{position:sticky;top:0;z-index:1;text-align:left;
  background:#ecf4fc;color:#355372;padding:11px 10px;border-bottom:1px solid #ccdbeb}
.manual-match-table thead th.right,.manual-match-table tbody td.right{text-align:right}
.manual-match-table tbody td{padding:10px;border-bottom:1px solid #e8eef5;
  vertical-align:middle;line-height:1.5;color:#2a435d}
.manual-match-table tbody tr:nth-child(even){background:#fafcff}
.manual-match-table tbody tr.selected{background:#e0f3ff;box-shadow:inset 4px 0 #2b74d1}
.manual-match-table tbody tr.same-amount td.manual-diff-ok{color:#0c7748;font-weight:900}
.manual-candidate-btn{border:1px solid #a8c6e8;background:#fff;color:#245e9e;
  border-radius:8px;padding:7px 11px;min-width:75px;font-size:13px;font-weight:850}
.manual-candidate-btn[aria-pressed="true"]{background:#1466e4;color:#fff;border-color:#1466e4}
.manual-candidate-btn:focus-visible{outline:3px solid #71a9f9;outline-offset:2px}
.manual-ref{font-weight:900;white-space:nowrap;color:#1b598f}
.manual-merchant{max-width:260px;min-width:100px;overflow-wrap:anywhere}
.manual-amount{white-space:nowrap;font-weight:900;font-variant-numeric:tabular-nums}
.manual-diff-ok{white-space:nowrap;color:#0b8255;font-weight:900}
.manual-diff-warning{color:#a8620d;font-weight:850;white-space:nowrap}
.manual-match-decision{font-size:13px;line-height:1.65;margin-top:12px;
  padding:12px 14px;background:#fff8e8;color:#74501a;border-radius:9px;min-height:44px}
.manual-match-footer{display:flex;align-items:center;justify-content:flex-end;
  flex-wrap:wrap;gap:10px;border-top:1px solid #e0e8f0;padding:13px 20px}
.manual-match-footer .btn.primary{min-width:210px;font-size:15px}
.manual-match-footer .btn:disabled{background:#bac8d8;color:#eff4f9;border-color:#bac8d8}
@media(max-width:700px){
  .manual-match-inner{padding:13px 12px 10px}
  .manual-match-dialog .modal-head{padding:12px 14px}
  .manual-match-target{font-size:14px}
  .manual-match-table{min-width:700px}
  .manual-match-footer{padding:12px}
  .manual-match-footer .btn{flex:1}
}

/* Guide the user directly from the unmatched-card status to source candidates. */
.manual-match-guidance{margin:2px 0 12px;padding:11px 14px;font-size:13px;
  line-height:1.65;color:#345c85;background:#eff7ff;border:1px solid #c8dff7;
  border-radius:10px;word-break:keep-all}
.manual-match-guidance strong{color:#1260af}
.manual-match-guidance b{color:#1e5e9e}


/* CAPTURE CARD 0.8 — generous type, compact one-page desktop workflow.
   Keep all original functional selectors and forms; move only their appearance. */
:root{
  --navy:#0d3048;--blue:#117784;--blue2:#e8f7f7;--ink:#173448;
  --muted:#5e7686;--line:#d6e5ed;--bg:#f4f8fb;--green:#08794e;
  --shadow:0 5px 18px #174b5a0a
}
html{font-size:16px}
body{background:var(--bg);color:var(--ink)}
.topbar{height:76px;background:#0c2e43}
.top-inner{max-width:1550px;padding:0 22px;gap:20px}
.home{font-size:15px;padding:10px 14px;border-radius:10px}
.capture-brand-icon{display:block;width:65px;height:65px;object-fit:contain;flex-shrink:0;
  filter:drop-shadow(0 3px 4px #0418284d)}
.brand{gap:12px}
.brand strong{font-size:23px;letter-spacing:-.65px}
.brand span{font-size:12px;letter-spacing:1.05px;color:#b4d8df}
.top-badges .badge{font-size:13px;padding:7px 11px}
.shell{max-width:1530px;padding:16px 24px 22px}
.hero{margin:0 0 12px;align-items:center;gap:14px}
.hero h1{font-size:29px;letter-spacing:-1px;line-height:1.24;margin:1px 0 5px}
.hero h1 em{color:#13818a}
.eyebrow{color:#177980;font-size:12px;letter-spacing:.8px;margin:0 0 3px}
.hero p{font-size:15px;line-height:1.55;max-width:950px}
.hero-actions{gap:9px}
.hero-actions .btn{min-height:45px;font-size:15px;padding:10px 13px}
.btn{font-size:15px;line-height:1.25}
.btn.primary{background:#087783;border-color:#087783}
.btn.primary:hover:not(:disabled){background:#09646f}
.btn.mini{font-size:14px;line-height:1.25;padding:10px 11px}
.workflow-steps{display:flex;align-items:stretch;gap:8px;margin:0 0 13px;
  padding:7px;background:#eaf2f6;border:1px solid #d8e6ee;border-radius:13px}
.workflow-step{min-width:0;flex:1;display:flex;align-items:center;justify-content:center;
  gap:11px;padding:10px 8px;border-radius:9px;color:#566f82;font-size:15px;
  line-height:1.2;font-weight:850;background:#f8fbfd;white-space:nowrap;transition:background .15s}
.workflow-step .flow-number{display:grid;place-items:center;flex-shrink:0;
  width:32px;height:32px;border-radius:10px;background:#dfebf2;color:#4b657b;
  font-size:14px;font-weight:900}
.workflow-step.current{background:#0f7180;color:#fff;box-shadow:0 2px 7px #0c71842b}
.workflow-step.current .flow-number{background:#e0fff4;color:#086455}
.workflow-step.done{background:#ddf5eb;color:#126c51}
.workflow-step.done .flow-number{background:#bcead9;color:#0e6246}
.flow-arrow{display:grid;place-items:center;flex:none;width:9px;font-size:23px;color:#7b9cac}
.workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
.sources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch;min-width:0}
.sources>.section-head{grid-column:1/-1;margin-bottom:0}
.section-head{margin-bottom:7px;gap:10px}
.section-head h2{font-size:19px;letter-spacing:-.5px}
.section-head small{font-size:13px;line-height:1.35}
.step{font-size:13px;padding:7px 10px;border-radius:8px;background:#176778}
.source-panel{display:flex;flex-direction:column;min-width:0;
  height:auto;padding:13px 15px;margin:0;background:#fff;border:1px solid #d1e2e9;
  border-radius:15px}
.source-head{order:0;margin-bottom:7px;gap:9px}
.source-title h3{font-size:19px;line-height:1.25;letter-spacing:-.45px}
.source-title span:not(.type-icon){font-size:13px}
.type-icon{width:40px;height:40px;border-radius:11px;font-size:25px;flex-shrink:0}
.count{padding:7px 11px;font-size:15px;font-weight:850}
.source-actions{order:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;margin:0 0 7px;justify-content:stretch}
.source-actions .btn{white-space:normal;min-height:43px;display:flex;align-items:center;
  justify-content:center;text-align:center;padding:8px 7px;border-radius:9px;
  font-size:14px;letter-spacing:-.2px;font-weight:800}
.source-actions .screen-capture-launch{grid-column:span 2;min-height:48px;
  background:linear-gradient(135deg,#087786,#1196a0);border-color:#0a808e;
  color:white;font-size:17px;box-shadow:0 3px 8px #128d9a29}
.source-actions .screen-capture-launch:hover{background:#0b6974}
.source-actions .paste-select{background:#e9f7f9;color:#0d6573;border-color:#acd9de}
.source-actions .paste-select.selected{background:#d1f1e6;border-color:#30a987}
.dropzone{order:2;min-height:44px;padding:7px 9px;border:1.5px dashed #9fbfcd;
  border-radius:9px;gap:7px;background:#fafcfd;justify-content:center}
.dropzone strong{font-size:14px}
.dropzone small{font-size:12px}
.upload-icon{width:28px;height:28px;font-size:19px;border-radius:7px}
.gallery{order:3;margin-top:5px;gap:7px}
.thumb{font-size:13px;max-width:46%}
.thumb span{max-width:180px}
.source-ledger-summary{order:4;display:grid;grid-template-columns:auto auto auto minmax(0,1fr);
  gap:8px 9px;align-items:center;margin:8px 0 6px;padding:10px 12px;
  min-height:58px;background:#edf9fa;border-color:#cbe9eb}
.action-panel .source-ledger-summary{background:#eef9f4;border-color:#c8e7d9}
.source-ledger-summary>span{font-size:14px;font-weight:750;white-space:nowrap}
.source-ledger-summary strong{font-size:19px;color:#0c6c76;white-space:nowrap}
.source-ledger-summary strong:last-child{font-size:24px;text-align:right;margin:0}
.action-panel .source-ledger-summary strong{color:#086c51}
.card-capture-list{order:5;margin:0 0 7px;border-radius:9px;border-color:#cce0e7}
.card-capture-list>summary{min-height:43px;padding:9px 12px;font-size:15px;background:#f4f9fc}
.card-capture-list>summary strong{font-size:14px}
.card-capture-list-content{padding:9px}
.card-list-scroll{max-height:190px}
.card-list-table{font-size:14px;min-width:630px}
.card-list-table thead th,.card-list-table tbody td{font-size:14px;padding:8px 9px}
.card-list-table .card-list-origin{font-size:13px}
.card-list-status{font-size:14px;margin:2px 0 8px}
.card-list-tip{font-size:13px}
.card-list-actions button{font-size:13px}
.source-audit{order:6;border-top:1px solid #e6eef2;padding:3px 0 0}
.source-guide{order:7}
.source-audit>summary,.source-guide>summary{cursor:pointer;padding:8px 4px;
  font-size:14px;font-weight:800;color:#577084;list-style:none}
.source-audit>summary::-webkit-details-marker,.source-guide>summary::-webkit-details-marker{display:none}
.source-audit>summary::before,.source-guide>summary::before{content:'▸';margin-right:6px;color:#20858e}
.source-audit[open]>summary::before,.source-guide[open]>summary::before{content:'▾'}
.source-audit>summary span{color:#8394a3;font-size:12px;font-weight:650;margin-left:4px}
.source-audit .amount-audit{margin:4px 0 6px}
.source-guide .paste-hint{font-size:14px;line-height:1.5;margin:1px 4px 9px}
.process{min-width:0}
.process>.section-head{margin-bottom:6px}
.process-panel{padding:12px 14px;border-radius:15px}
.workflow-run{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,320px);
  align-items:center;gap:14px;padding:11px 14px;margin:0;
  border:1px solid #c4e2e6;background:#edf9f9;border-radius:12px}
.workflow-run>strong,.run-primary-copy>strong{display:block;margin-bottom:3px;
  color:#164b60;font-size:20px;font-weight:900}
.workflow-run .run-primary-copy p{margin:0 0 5px;font-size:14px;line-height:1.4;color:#52717e}
.workflow-run .analysis-readiness{padding:6px 10px;margin:0;min-height:31px;
  border-radius:8px;font-size:13px;line-height:1.35}
.workflow-run #runBtn{width:100%;height:68px;display:flex;align-items:center;
  justify-content:center;gap:9px;border-radius:12px;padding:10px 14px;
  font-size:21px;font-weight:900;white-space:nowrap}
.workflow-run #runBtn span{font-size:30px;line-height:1}
.advanced-panel{margin-top:7px;border-top:1px solid #e6eef2}
.advanced-panel>summary{cursor:pointer;list-style:none;padding:11px 7px 5px;
  font-size:15px;font-weight:850;color:#426879}
.advanced-panel>summary::-webkit-details-marker{display:none}
.advanced-panel>summary::before{content:'▸';color:#14878a;margin-right:8px}
.advanced-panel[open]>summary::before{content:'▾'}
.advanced-panel>summary span{font-size:13px;font-weight:500;color:#6f8697;margin-left:7px}
.advanced-panel-body{padding:14px 8px 4px;border-top:1px solid #e5eef1;margin-top:6px}
.ocr-setting{margin-top:14px}
.ocr-setting p,.ai-setting p{font-size:14px}
.ocr-setting h3{font-size:17px}
.ocr-setting .ocr-hint,.ocr-setting .ocr-status{font-size:13px}
.setting-head strong{font-size:16px}
.setting-head small{font-size:13px}
.segment button{font-size:14px;min-height:44px}
.info-line{font-size:14px}
.results{margin-top:11px;padding:13px 16px;border-radius:15px}
.result-head{margin-bottom:9px}
.result-tools{flex-wrap:wrap}
.filter-label,.filter-label select{font-size:14px}
.coverage-banner{padding:11px 13px;margin-bottom:9px;gap:6px}
.coverage-banner strong{font-size:19px}
.coverage-banner span{font-size:14px}
.coverage-stats{gap:9px;margin:9px 0}
.coverage-stat{padding:11px 13px;min-height:92px}
.coverage-stat span{font-size:14px}
.coverage-stat strong{font-size:24px}
.coverage-stat b{font-size:16px}
.manual-match-guidance{font-size:14px;margin:9px 0;padding:9px 11px}
.manual-match-guidance[hidden]{display:none!important}
.coverage-fineprint{font-size:13px;line-height:1.5;margin:8px 0}
.stage-detail-fold,.result-detail-fold,.payment-detail-fold,.inspection-fold{
  border-top:1px solid #e5edf1;padding:0;margin:7px 0 0}
.stage-detail-fold>summary,.result-detail-fold>summary,
.payment-detail-fold>summary,.inspection-fold>summary{
  list-style:none;cursor:pointer;padding:12px 3px;
  color:#235e76;font-size:15px;font-weight:850}
.stage-detail-fold>summary::-webkit-details-marker,
.result-detail-fold>summary::-webkit-details-marker,
.payment-detail-fold>summary::-webkit-details-marker,
.inspection-fold>summary::-webkit-details-marker{display:none}
.stage-detail-fold>summary::before,.result-detail-fold>summary::before,
.payment-detail-fold>summary::before,.inspection-fold>summary::before{
  content:'▸';margin-right:8px;color:#1c8792}
.stage-detail-fold[open]>summary::before,.result-detail-fold[open]>summary::before,
.payment-detail-fold[open]>summary::before,.inspection-fold[open]>summary::before{content:'▾'}
.result-detail-fold>summary span,.payment-detail-fold>summary span{
  font-size:13px;font-weight:650;color:#7892a4;margin-left:8px}
.result-table{font-size:14px}
.result-table th,.result-table td,.result-table .reason{font-size:13px}
.result-table th{padding:10px 9px}
.result-table td{padding:9px}
.small-action{font-size:13px}
.status-pill{font-size:13px}
.result-foot{font-size:13px;padding:5px 0}
.payment-list{background:#fff;border-color:#cee5db}
.payment-preview{font-size:14px;font-weight:700;line-height:1.55;
  color:#3d6b5e;background:#f0faf4;padding:10px 12px;border-radius:9px;margin-top:8px}
.payment-summary{padding:7px 11px}
.payment-explain{font-size:14px;line-height:1.5;margin:2px 0}
.inspection{margin-top:11px}
.inspection-lead{font-size:13px;line-height:1.55}
.inspection-fold{margin-top:8px}
.inspection-table{font-size:13px}
.inspection-table th,.inspection-table td{font-size:13px}
.manual-match-dialog{font-size:15px}
.manual-match-intro,.manual-match-info,.manual-match-decision{font-size:14px}
.manual-match-table{font-size:14px}
.manual-match-table th,.manual-match-table tbody td{font-size:14px}
.footer{font-size:12px;padding:12px 0}
@media(max-width:1250px){
 .sources{gap:10px}
 .source-panel{padding:12px}
 .source-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .source-actions .screen-capture-launch{grid-column:span 1}
 .source-ledger-summary{grid-template-columns:auto auto auto minmax(0,1fr)}
 .source-ledger-summary strong:last-child{font-size:20px}
}
@media(max-width:920px){
 .topbar{height:auto;min-height:73px}
 .top-inner{min-height:73px;flex-wrap:wrap;padding:8px 15px;gap:10px}
 .capture-brand-icon{width:58px;height:58px}
 .top-badges{margin-left:auto}
 .shell{padding:15px}
 .hero{align-items:flex-start;flex-wrap:wrap}
 .hero h1{font-size:25px}
 .workflow-steps{gap:4px;padding:5px}
 .workflow-step{font-size:13px;gap:4px;flex-direction:column;padding:9px 4px}
 .workflow-step .flow-number{width:25px;height:25px;font-size:12px}
 .flow-arrow{width:5px;font-size:17px}
 .sources{grid-template-columns:1fr}
 .source-ledger-summary strong:last-child{font-size:23px}
 .workflow-run{grid-template-columns:1fr;gap:10px}
 .workflow-run #runBtn{height:58px}
}
@media(max-width:600px){
 .top-badges .badge{font-size:11px;padding:6px}
 .brand strong{font-size:19px}
 .brand span{font-size:10px}
 .hero h1{font-size:23px}
 .hero p{font-size:14px}
 .hero-actions{width:100%;justify-content:flex-end}
 .source-title h3{font-size:17px}
 .source-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .source-actions .screen-capture-launch{grid-column:span 2}
 .source-ledger-summary{grid-template-columns:auto auto auto minmax(0,1fr)}
 .source-ledger-summary strong:last-child{font-size:19px}
 .coverage-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .coverage-stat strong{font-size:22px}
 .workflow-step span:last-child{font-size:12px}
}
/* Keep scroll-heavy OCR data inside each ledger rather than stretching the page. */
.card-list-scroll{max-height:150px}

/* v0.8.1 — full title belongs beside the Capture icon; no duplicate hero. */
.brand strong{font-size:23px;letter-spacing:-.7px;line-height:1.2}
.hero.hero-compact{display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin:0 0 10px;min-height:45px}
.hero.hero-compact>p{flex:1;min-width:0;max-width:none;margin:0;
  color:var(--muted);font-size:15px;line-height:1.4}
.hero.hero-compact>.hero-actions{flex-shrink:0}
@media(min-width:921px) and (max-width:1180px){
 .top-inner{gap:12px}
 .brand strong{font-size:20px}
 .brand span{font-size:11px}
 .top-badges{gap:5px}
 .top-badges .badge{font-size:12px;padding:6px 8px}
}
@media(max-width:920px){
 .brand strong{font-size:clamp(17px,3.1vw,22px);line-height:1.22}
 .hero.hero-compact{flex-wrap:wrap;gap:8px}
 .hero.hero-compact>p{flex-basis:100%;font-size:14px}
}
@media(max-width:600px){
 .brand strong{font-size:18px;letter-spacing:-.5px}
 .hero.hero-compact{margin-bottom:9px}
 .hero.hero-compact>.hero-actions{width:100%;justify-content:flex-end}
}


/* v0.9.0 — white-first, strong black typography, single-screen overview.
 * Preserve match color semantics, but remove gray/green tint from the page.
 * Heavy transaction tables live in large modal dialogs, not card panels.
 */
:root{--bg:#ffffff;--white:#ffffff;--ink:#111111;--muted:#111111;
  --line:#c5d3dc;--navy:#103548;--blue:#0f7783;--blue2:#ffffff;
  --shadow:none}
html,body{background:#ffffff;color:#111111}
body{font-weight:700}
.shell{max-width:1640px;padding:9px 20px 16px;background:#ffffff}
.topbar{height:70px}
.top-inner{height:70px}
.home{color:#fff}
.brand strong{font-size:23px;font-weight:900}
.brand span{color:#ffffff;font-size:12px;font-weight:800}
.hero.hero-compact{margin:0 0 5px;min-height:38px;gap:10px}
.hero.hero-compact>p{font-size:14px;line-height:1.35;color:#111111;font-weight:750}
.hero-actions .btn{min-height:38px;padding:8px 12px;font-size:14px}
.workflow-steps,.workflow-steps[hidden]{display:none!important}
.workspace{gap:7px}
.sources{gap:11px;grid-template-columns:repeat(2,minmax(0,1fr))}
.sources>.section-head{margin-bottom:0}
.section-head h2{font-size:19px;font-weight:900;color:#101010}
.section-head small{font-size:13px;font-weight:750;color:#111111}
.step{font-size:13px;font-weight:900;background:#126c79}
.source-panel,.process-panel,.results,.payment-list,.inspection{background:#ffffff;box-shadow:none}
.source-panel{display:flex;flex-direction:column;gap:6px;margin:0;padding:12px 15px 10px;
  border:1.5px solid #aebeca;border-radius:12px;min-height:0}
.source-head{order:0;margin:0;gap:9px}
.source-title h3{font-size:20px;font-weight:900;color:#111111}
.source-title span:not(.type-icon){color:#111111;font-size:13px;font-weight:750}
.type-icon{width:38px;height:38px;background:#ffffff;border:1px solid #9bb7cb;color:#075c78}
.action-icon{border-color:#90bba6;color:#08714c}
.count[hidden]{display:none!important}
.capture-primary-buttons.source-actions{order:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;margin:2px 0 1px}
.capture-primary-buttons .btn,.capture-primary-buttons .screen-capture-launch{
  display:flex;align-items:center;justify-content:center;min-width:0;width:100%;
  grid-column:span 1;height:54px;min-height:54px;margin:0;padding:9px;
  border-radius:9px;font-size:18px;font-weight:900;line-height:1.2;
  white-space:normal;text-align:center;box-shadow:none}
.capture-primary-buttons .screen-capture-launch{
  color:#ffffff;background:#0d7885;border:1.5px solid #086674}
.capture-primary-buttons .screen-capture-launch:hover{background:#086c78}
.capture-primary-buttons .paste-select{background:#ffffff;color:#0b6272;border:1.5px solid #0e8190}
.capture-primary-buttons .paste-select.selected{background:#e6faf4;color:#0c644b;border-color:#13a87e}
.source-ledger-summary{order:2;display:flex;align-items:center;justify-content:space-between;
  gap:15px;margin:1px 0 0;padding:6px 10px;min-height:47px;border-radius:8px;
  background:#ffffff!important;border:1.5px solid #9eb5c0}
.source-ledger-summary strong{color:#111111!important;font-size:20px;font-weight:900}
.source-ledger-summary strong:last-child{color:#111111!important;font-size:26px;
  margin:0;white-space:nowrap;tab-size:4;text-align:right}
.source-ledger-summary.needs-check{border-color:#bd5c1a;background:#fffaf2!important}
.source-ledger-summary.needs-check strong:last-child{color:#a24914!important}
.source-list-open{order:3;display:flex;align-items:center;justify-content:space-between;
  width:100%;height:39px;min-height:39px;padding:8px 12px;min-width:0;
  color:#0c576f;background:#ffffff;border:1.5px solid #a7bfce;
  border-radius:8px;font-size:15px;font-weight:900}
.source-list-open:hover{background:#f1fafe}
.source-list-open span:last-child{font-size:22px;line-height:1}
.gallery{order:4;margin:0;min-height:0;max-height:38px;overflow-x:auto;
  overflow-y:hidden;flex-wrap:nowrap;gap:7px;padding:1px 0}
.gallery:empty{display:none}
.gallery .thumb{flex-shrink:0;max-width:230px;max-height:37px;padding:3px 5px;
  font-size:12px;border-color:#b1c5d2}
.gallery .thumb img{height:26px;width:26px}
.gallery .thumb span{max-width:90px}
.gallery .ocr-raw{font-size:12px;font-weight:800}
.source-aux{order:5;max-width:100%;border-top:1px solid #d4e1e8}
.source-aux>summary{font-size:14px;font-weight:850;cursor:pointer;color:#111111;
  padding:7px 2px 2px;list-style:none}
.source-aux>summary::-webkit-details-marker{display:none}
.source-aux>summary::before{content:'▸';color:#117b87;margin-right:8px}
.source-aux[open]>summary::before{content:'▾'}
.source-aux-content{padding:7px 2px}
.source-aux .dropzone{display:flex;width:100%;min-height:47px;padding:8px;
  border:1.5px dashed #a0bbc8}
.source-aux .dropzone strong,.source-aux .dropzone small{font-size:13px;color:#111111}
.source-aux-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;margin-top:9px}
.source-aux-actions .btn{font-size:14px;font-weight:850;min-height:41px;padding:8px 5px}
.source-aux .source-guide>summary{font-size:14px;color:#111111}
.source-aux .source-guide .paste-hint{font-size:13px;color:#111111}
.amount-audit[hidden]{display:none!important}
.process{margin-top:3px}
.process>.section-head{margin:0 0 5px}
.process-panel{padding:0;border:0}
.workflow-run{display:grid;grid-template-columns:minmax(0,1fr) minmax(225px,330px);
  gap:11px;align-items:center;padding:8px 13px;margin:0;background:#ffffff;
  border:1.5px solid #9ebbc7;border-radius:11px}
.run-primary-copy>strong{display:block;font-size:18px;font-weight:900;color:#111111;margin:0}
.workflow-run .run-primary-copy p{display:none}
.workflow-run .analysis-readiness{font-size:13px;font-weight:800;line-height:1.25;
  color:#111111;min-height:0;margin:2px 0 0;padding:2px 0;background:transparent}
.workflow-run .analysis-readiness.ready{color:#086d50;background:transparent}
.workflow-run .analysis-readiness.busy{color:#a55a11;background:transparent}
.workflow-run #runBtn{height:55px;min-height:55px;border-radius:9px;
  font-size:20px;font-weight:900;background:#0b7581;color:#ffffff}
.workflow-run #runBtn:disabled{background:#e3ebef;color:#111111;border-color:#b2c3ce}
.advanced-panel{margin:0}
.advanced-panel>summary{padding:6px 4px;color:#111111;font-size:14px;font-weight:800}
.advanced-panel>summary span{font-size:13px;color:#111111}
.advanced-panel-body{background:#ffffff}
.compact-overview{border:1.5px solid #afc0cc;border-radius:12px;background:#ffffff;
  padding:10px 13px;margin:9px 0 0}
.compact-overview-heading{display:flex;align-items:center;justify-content:space-between;
  gap:10px;margin:0 0 8px}
.compact-overview-heading>div{display:flex;align-items:center;gap:10px}
.compact-overview-heading h2{margin:0;font-size:19px;line-height:1.2;font-weight:900;color:#111111}
.compact-overview-heading>strong{color:#111111;font-size:14px;font-weight:850}
.overview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.overview-stat{display:flex;flex-direction:column;text-align:left;align-items:flex-start;
  justify-content:center;gap:3px;min-width:0;padding:9px 13px;min-height:85px;
  border:1.5px solid #a6b8c5;border-radius:9px;background:#ffffff;color:#111111;
  cursor:pointer}
.overview-stat:disabled{opacity:1;cursor:default}
.overview-stat:hover:not(:disabled){border-color:#087985;background:#f7ffff}
.overview-stat span{font-size:14px;font-weight:850;color:#111111;line-height:1.2}
.overview-stat strong{font-size:24px;font-weight:900;line-height:1.12}
.overview-stat b{font-size:16px;font-weight:850;line-height:1.2;white-space:normal}
.overview-stat.matched{border-left:6px solid #16985c}
.overview-stat.review{border-left:6px solid #e2a41d}
.overview-stat.missing{border-left:6px solid #db5858}
.overview-stat.residual{border-left:6px solid #4e89b8}
.overview-stat.matched strong{color:#07643d}
.overview-stat.review strong{color:#89550b}
.overview-stat.missing strong{color:#ad282b}
.overview-stat.residual strong{color:#24547b}
.compact-payment{display:flex;align-items:center;gap:18px;padding:9px 2px 0;
  border-top:1px solid #c4d3dd;margin-top:9px}
.compact-payment-name{display:flex;align-items:center;gap:9px;flex:1}
.compact-payment-name strong{font-size:18px;font-weight:900}
.compact-payment-numbers{display:flex;gap:12px;align-items:center;justify-content:flex-end}
.compact-payment-numbers strong{font-size:22px;font-weight:900}
.compact-payment-numbers b{font-size:23px;font-weight:900;white-space:nowrap}
.payment-open{display:flex;align-items:center;gap:10px;justify-content:center;min-height:48px;
  padding:9px 18px;color:#ffffff;border-radius:8px;background:#0d7885;border-color:#096b78;
  font-size:17px;font-weight:900;white-space:nowrap}
.payment-open:disabled{opacity:1;background:#e3ebef;color:#111111;border-color:#b0c5d0}
.lower-details{margin:8px 0;border:1px solid #bfd0d9;background:#ffffff;border-radius:11px}
.lower-details>summary{list-style:none;cursor:pointer;padding:12px 16px;color:#111111;
  font-size:15px;font-weight:900}
.lower-details>summary::-webkit-details-marker{display:none}
.lower-details>summary::before{content:'▸';color:#107784;margin-right:8px}
.lower-details[open]>summary::before{content:'▾'}
.lower-details>summary span{font-size:13px;font-weight:700;color:#111111;margin-left:8px}
.lower-detail-body{padding:0 11px 12px}
.lower-details .results,.lower-details .inspection{background:#ffffff}
.lower-details .coverage-banner,.lower-details .payment-preview{background:#ffffff}
.lower-details .coverage-stat{background:#ffffff}
.lower-details .manual-match-guidance{background:#ffffff}
.lower-details .coverage-fineprint,.lower-details .payment-explain,
.lower-details .inspection-lead,.lower-details .result-foot{color:#111111}
.lower-details .table-wrap{max-height:420px}
.source-list-dialog{display:block;width:min(96vw,1450px);max-width:none;max-height:94vh;
  overflow:auto;padding:0;color:#111111;background:#ffffff;border:2px solid #193c52;border-radius:15px}
.source-list-dialog:not([open]){display:none}
.source-list-dialog::backdrop{background:#0c243bb8}
.source-list-head{position:sticky;top:0;z-index:3;background:#ffffff;border-bottom:1px solid #b6cbd5;
  padding:14px 19px}
.source-list-head strong{font-size:22px;color:#111111}
.source-list-dialog .card-capture-list{margin:0;border:0;border-radius:0}
.source-list-dialog .card-capture-list>summary{min-height:45px;padding:10px 19px;
  font-size:16px;font-weight:900;color:#111111;background:#ffffff}
.source-list-dialog .card-capture-list>summary strong{font-size:15px;color:#111111}
.source-list-dialog .card-capture-list-content{padding:10px 16px 16px}
.source-list-dialog .card-list-status{font-size:15px;font-weight:800;color:#111111}
.source-list-dialog .card-list-scroll{border:2px solid #536b7c;max-height:60vh;
  overflow:auto;border-radius:0}
.source-list-dialog .card-list-table{min-width:950px;width:100%;border-collapse:collapse;
  font-size:16px;color:#111111}
.source-list-dialog .card-list-table thead th{position:sticky;top:0;
  font-size:16px;color:#111111;background:#ffffff;font-weight:900;padding:13px 12px;
  border:1px solid #9bb2c3;border-bottom:2px solid #4f6778}
.source-list-dialog .card-list-table td,.source-list-dialog .card-list-table tbody td{
  font-size:15px;color:#111111;line-height:1.45;font-weight:750;padding:11px 12px;
  border:1px solid #b8c9d5;vertical-align:middle}
.source-list-dialog .card-list-table tbody tr:nth-child(even){background:#ffffff}
.source-list-dialog .card-list-table tbody tr:hover{background:#f3fbfe}
.source-list-dialog .card-list-merchant{max-width:none}
.source-list-dialog .card-list-table tbody td.money{font-size:17px;font-weight:900}
.source-list-dialog .card-list-origin{font-size:14px;color:#111111;font-weight:800}
.source-list-dialog .card-list-table tfoot th,.source-list-dialog .card-list-table tfoot td{
  background:#ffffff;font-size:15px;color:#111111;padding:13px 12px;
  border:1px solid #9bb2c3;border-top:2px solid #40586c}
.source-list-dialog .card-list-table tfoot td[id]{font-size:19px;color:#111111}
.source-list-dialog .card-list-actions button{font-size:14px;font-weight:900;padding:8px 12px}
.source-list-dialog .card-list-tip{font-size:14px;color:#111111}
.source-list-foot{display:flex;align-items:center;justify-content:space-between;
  gap:10px;padding:10px 18px;border-top:1px solid #b1c6d2;background:#ffffff}
.source-list-foot span{font-size:14px;font-weight:750;color:#111111}
.source-list-foot .btn{padding:9px 25px;font-size:16px}
.footer{color:#111111;font-size:12px;font-weight:700;padding:8px 0}
.footer span{color:#111111}
@media(max-width:1100px){
  .shell{padding:9px 12px}
  .sources{gap:8px}
  .source-panel{padding:10px}
  .capture-primary-buttons .btn,.capture-primary-buttons .screen-capture-launch{font-size:16px}
  .source-ledger-summary strong:last-child{font-size:22px}
  .overview-stat{padding:8px}
  .overview-stat b{font-size:14px}
}
@media(max-width:920px){
  .sources{grid-template-columns:1fr}
  .workflow-run{grid-template-columns:1fr}
  .compact-overview{padding:9px}
  .overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .compact-payment{flex-wrap:wrap}
  .compact-payment-name{flex:1 1 45%}
  .compact-payment-numbers{flex:1 1 35%}
  .payment-open{flex:1 1 100%}
}
@media(max-width:600px){
  .topbar,.top-inner{height:auto;min-height:70px}
  .hero.hero-compact{display:flex;flex-wrap:wrap}
  .source-panel{padding:9px}
  .capture-primary-buttons .btn,.capture-primary-buttons .screen-capture-launch{font-size:15px}
  .source-ledger-summary strong{font-size:17px}
  .source-ledger-summary strong:last-child{font-size:20px}
  .overview-stat strong{font-size:21px}
  .overview-stat span{font-size:13px}
  .source-list-dialog{width:98vw;max-height:95vh}
  .source-list-dialog .card-list-table{min-width:850px}
  .source-list-head strong{font-size:18px}
}

/* Always-visible single-line status: errors remain noticeable, neutral text black. */
.compact-notice{font-size:13px;font-weight:800;line-height:1.4;color:#111111;
  margin:7px 2px 0;padding:6px 0 0;border-top:1px solid #c6d6df;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-notice.error{color:#af272b}
.compact-overview-heading>strong.finished{color:#087347}
.source-list-dialog .card-list-table tbody td.card-list-origin{color:#111111;font-weight:850}
.source-list-dialog .card-list-table tbody td.card-list-origin.recovered{color:#98620b}
@media(max-width:600px){.compact-notice{white-space:normal;font-size:13px}}

/* Secondary prose remains legible black throughout opened detail views. */
.result-table th,.result-table td,.result-table .reason,
.inspection-table th,.inspection-table td,.record-ocr,.record-merchant,
.inspection-stats,.inspection-lead,.payment-explain,.balance-explanation,
.coverage-fineprint,.coverage-banner span,.manual-match-intro,.manual-match-info,
.manual-match-table thead th,.manual-match-table tbody td,.source-list-foot span,
.source-list-dialog .card-list-tip,.source-list-dialog .card-list-status{
  color:#111111;font-weight:700}
.result-table th,.inspection-table th,.manual-match-table thead th{font-weight:900}
input::placeholder,textarea::placeholder{color:#313131;opacity:1}
/* v0.9.1 — clear blue, source cards and results in one workspace. */
:root{--blue:#245ec7;--navy:#173c73;--line:#c6d6ec}
.topbar{height:auto;background:#fff;padding:14px 20px 0;box-shadow:none;border:0}
.top-inner{max-width:1536px;height:100px;border:1px solid #c9dcf6;border-radius:16px;background:#f3f7ff;padding:16px 20px;color:#111}
.home{color:#173c73;background:white;border:1px solid #c6d6ec}
.brand strong{color:#101c30;font-size:27px;line-height:1.35}
.brand span{color:#294e81;font-size:12px;letter-spacing:1.6px}
.top-badges .badge{color:#173c73;background:white;border:1px solid #bbcee9}
.shell{max-width:1576px;padding:12px 20px 20px}
.hero.hero-compact{min-height:44px;margin-bottom:12px}
.workspace{display:grid;grid-template-columns:minmax(0,1.48fr) minmax(420px,1fr);gap:16px;align-items:start}
.sources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border:1px solid #c5d7ef;border-radius:16px;padding:18px;background:#fff}
.sources>.section-head{grid-column:1/-1;display:block;margin-bottom:4px}
.section-head h2,.compact-overview-heading h2{font-size:21px;line-height:1.4}
.section-head small{display:block;margin-top:6px;font-size:14px;line-height:1.5}
.step{background:#e7f0ff;color:#245ec7;border:1px solid #cbdfff;width:32px;height:32px;border-radius:50%}
.source-panel{padding:16px;gap:13px;border:1px solid #baccE5;border-radius:13px;background:#fff}
.source-title h3{font-size:21px}.source-title span:not(.type-icon){font-size:14px;margin-top:3px}
.type-icon,.action-icon{background:#edf3ff;color:#245ec7;border-color:#c7daff}
.capture-primary-buttons.source-actions{gap:8px}
.capture-primary-buttons .btn,.capture-primary-buttons .screen-capture-launch{font-size:16px;min-height:56px;height:56px}
.capture-primary-buttons .screen-capture-launch{background:#245ec7;border-color:#245ec7}
.capture-primary-buttons .screen-capture-launch:hover{background:#194dab}
.capture-primary-buttons .paste-select{background:#fff;color:#204e98;border-color:#86a8dc}
.capture-primary-buttons .paste-select.selected{background:#eaf1ff;color:#173c73;border-color:#245ec7}
.source-ledger-summary{min-height:65px;border:1px dashed #8baee2;background:#f8fbff!important;padding:12px}
.source-ledger-summary strong{font-size:19px}.source-ledger-summary strong:last-child{font-size:25px}
.source-list-open{height:44px;font-size:16px;color:#173c73;border-color:#b6cbe9}
.source-aux>summary{font-size:14px;padding-top:12px}
.process{margin:0;border:1px solid #c5d7ef;border-radius:16px;padding:18px;min-width:0;background:#fff}
.process>.section-head{display:block;margin:0 0 14px}
.process-panel{display:block}.workflow-run{display:block;border:1px solid #bfd2ee;background:#f7faff;padding:14px}
.workflow-run .run-primary-copy>strong{font-size:18px}.workflow-run .analysis-readiness{font-size:14px;line-height:1.5;margin:7px 0 12px}
.workflow-run #runBtn{width:100%;background:#245ec7;border-color:#245ec7;height:52px;font-size:19px}
.advanced-panel>summary{padding:12px 2px;color:#111}
.compact-overview{border:0;border-top:1px solid #c5d7ef;border-radius:0;margin-top:8px;padding:16px 0 0}
.overview-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.overview-stat{min-height:94px;border:1px solid #bfd0e7;border-radius:10px;padding:10px 12px;background:white}
.overview-stat span{font-size:14px;color:#111}.overview-stat strong{font-size:25px}.overview-stat b{font-size:16px;color:#111}
.overview-stat:enabled:hover{background:#f0f5ff;border-color:#245ec7}
.compact-payment{display:grid;grid-template-columns:1fr auto;margin-top:14px;padding:13px;background:#f3f7ff;border:1px solid #c5d7ef;gap:12px;border-radius:11px}
.compact-payment-name,.compact-payment-numbers{min-width:0}.compact-payment-name strong{font-size:17px}
.payment-open{grid-column:1/-1;width:100%;background:#245ec7;color:white;min-height:43px;font-size:16px}
.compact-notice{white-space:normal;font-size:14px;line-height:1.5;margin-top:12px;padding-top:11px}
.detail-launch{display:flex;justify-content:space-between;width:100%;margin-top:15px;padding:15px 18px;border:1px solid #c5d7ef;border-radius:12px;color:#173c73;background:white;font-size:16px}
.result-dialog{width:min(1500px,96vw);max-height:92vh;overflow:auto;border:1px solid #b6cbe9}
.result-dialog>.modal-head{position:sticky;top:0;z-index:5;background:#f3f7ff}
.result-dialog .lower-details{border:0;margin:0}.result-dialog .lower-details>summary{display:none}
.reading-activity[hidden]{display:none}.reading-activity{display:flex;flex-wrap:wrap;align-items:center;gap:9px;background:#edf4ff;padding:12px;margin-top:12px;border-radius:9px;font-size:14px}
.reading-activity .ocr-progress{width:100%;margin:0;accent-color:#245ec7}
.reading-spinner{width:18px;height:18px;border:3px solid #b4cbef;border-top-color:#245ec7;border-radius:50%;animation:reading-spin 1s linear infinite;flex-shrink:0}
@keyframes reading-spin{to{transform:rotate(360deg)}}
@media(max-width:1150px){.workspace{grid-template-columns:1fr}.process{display:block}.source-panel{min-height:280px}.overview-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.topbar{padding:10px 12px 0}.top-inner{height:auto;min-height:95px;padding:12px;flex-wrap:wrap}.brand strong{font-size:20px}.brand span{font-size:9px}.top-badges{display:none}.shell{padding:10px 12px}.sources{grid-template-columns:1fr;padding:13px}.process{padding:13px}.source-panel{min-height:0}.overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hero.hero-compact{display:block}.hero-actions{margin-top:10px}.result-dialog{max-width:98vw;width:98vw}.compact-payment-name{flex-basis:auto}}
@media(prefers-reduced-motion:reduce){.reading-spinner{animation:none}}
@media(min-width:1151px){
.top-inner{height:88px}.hero.hero-compact{min-height:36px;margin-bottom:8px}
.workflow-run .run-primary-copy>strong{display:none}.workflow-run .analysis-readiness{margin:0 0 10px}
.process{padding:15px}.process>.section-head{margin-bottom:10px}.compact-overview{padding-top:12px}
.overview-stat{min-height:78px;padding:8px 10px}.overview-stat strong{font-size:22px}
.compact-payment{margin-top:10px;padding:10px}.compact-notice{font-size:13px;margin-top:8px;padding-top:8px}
.capture-primary-buttons .btn{font-size:15px}.brand strong{font-size:26px}
}
.source-list-dialog .card-list-actions{white-space:normal;min-width:205px}
.source-list-dialog .card-list-actions button{margin:2px}
.source-list-dialog .card-list-actions .source-delete{color:#a51e32;border-color:#ddb7bf;background:#fff8f9}
.source-list-dialog .card-list-actions .source-restore{color:#204e98;background:#edf3ff}
.source-list-dialog .source-row-deleted>td:not(.card-list-actions){text-decoration:line-through;text-decoration-thickness:1.5px;color:#535b66;background:#f3f4f6}
.source-list-dialog .source-row-deleted>td.card-list-actions{background:#f3f4f6}
.source-list-dialog .source-inline-input{width:100%;min-width:105px;padding:9px 7px;border:2px solid #5081cf;border-radius:6px;background:white;color:#111;font:inherit}
.source-list-dialog .source-inline-input[type=number]{min-width:130px;text-align:right}
.source-list-dialog .source-inline-input[type=date]{min-width:150px}
.source-inline-error{display:block;color:#a51e32;font-size:13px;line-height:1.4}
/* Reading progress occupies the source's count and total area. */
.source-ledger-summary .source-reading[hidden]{display:none!important}
.source-ledger-summary.is-reading>strong{display:none}
.source-reading{width:100%;display:flex;flex-direction:column;gap:9px;padding:2px 0;color:#111;font-size:14px;font-weight:800}
.source-reading progress{display:block;width:100%;height:8px;accent-color:#245ec7;border:0;border-radius:10px;overflow:hidden}
.source-reading progress::-webkit-progress-bar{background:#dce7f8;border-radius:10px}
.source-reading progress::-webkit-progress-value{background:#245ec7;border-radius:10px;transition:width .2s ease}
.source-ledger-summary.is-reading{border-color:#8baee2;background:#f3f7ff!important}
.source-ledger-summary.just-read>strong{animation:source-result-appear .3s ease-out}
#readingActivity{display:none!important}
@keyframes source-result-appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.source-ledger-summary.just-read>strong{animation:none}.source-reading progress::-webkit-progress-value{transition:none}}
/* Desktop: four reconciliation states share one row above payment targets. */
.overview-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.overview-stat{padding:9px 8px;min-width:0;min-height:84px}
.overview-stat span{font-size:12px;line-height:1.4;white-space:normal;min-height:34px}
.overview-stat strong{font-size:22px}.overview-stat b{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:600px){.overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-stat span{font-size:14px;min-height:0}.overview-stat b{font-size:15px}}
.overview-stat span{word-break:keep-all;overflow-wrap:normal}
/* Focused result and payment dialogs, each with one readable table. */
.result-dialog,.payment-dialog{width:min(1500px,96vw);max-width:96vw;max-height:92dvh;padding:0;border:1px solid #c6d6ec;border-radius:15px;background:white;color:#111;overflow:auto}
.result-dialog>.modal-head,.payment-dialog>.modal-head{position:sticky;top:0;z-index:6;padding:18px 22px;background:#f3f7ff;border-bottom:1px solid #c6d6ec}
.result-dialog>.modal-head strong,.payment-dialog>.modal-head strong{font-size:23px;font-weight:850;color:#152b4c}
.result-dialog .lower-detail-body{padding:0}.result-dialog .results,.payment-dialog .payment-list{margin:0;padding:18px 22px;border:0;border-radius:0;background:white;box-shadow:none}
.result-dialog .result-head{justify-content:flex-end;margin-bottom:14px}.result-dialog .result-head>div:first-child{display:none}
.result-dialog .filter-label,.result-dialog .filter-label select{font-size:15px}.result-dialog .result-tools .btn{font-size:14px;min-height:40px;padding:9px 14px}
.result-dialog .coverage-banner{display:block;padding:13px 15px;border:1px solid #c8d9f1;border-radius:10px;background:#f7faff}
.result-dialog .coverage-banner strong{font-size:17px;line-height:1.5;color:#173c73}.result-dialog .coverage-banner span{display:block;margin-top:3px;font-size:13px;color:#111}
.result-dialog .coverage-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:13px 0}
.result-dialog .coverage-stat{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px;padding:11px 13px;border:1px solid #c6d6ec;border-radius:9px;min-height:67px;background:white}
.result-dialog .coverage-stat span{font-size:14px;font-weight:750;color:#111;word-break:keep-all}.result-dialog .coverage-stat strong{font-size:22px}.result-dialog .coverage-stat b{grid-column:1/-1;font-size:14px;color:#111}
.result-dialog .coverage-stat[aria-pressed=true]{background:#eef4ff;border-color:#245ec7;box-shadow:inset 0 0 0 1px #245ec7}
.result-dialog .stage-detail-fold{margin:10px 0;border:0;border-bottom:1px solid #d7e2f1;padding-bottom:10px}.result-dialog .stage-detail-fold>summary{font-size:14px;color:#173c73}
.result-dialog .manual-match-guidance,.result-dialog .coverage-fineprint{font-size:14px;line-height:1.7;padding:10px 0;border:0;color:#111;background:white}
.result-dialog #resultListDetails>summary,.payment-dialog #paymentListDetails>summary{display:none}
.result-dialog .table-wrap,.payment-dialog .table-wrap{max-height:56dvh;overflow:auto;border:1px solid #9bb3d2;border-radius:9px}
.result-dialog .result-table,.payment-dialog .payment-table{width:100%;border-collapse:collapse;min-width:1220px;font-size:15px;color:#111}
.result-dialog .result-table thead th,.payment-dialog .payment-table thead th{position:sticky;top:0;z-index:2;padding:14px 12px;background:#edf3fc;color:#152b4c;font-size:14px;font-weight:850;border-bottom:1px solid #9bb3d2;text-align:left}
.result-dialog .result-table tbody td,.payment-dialog .payment-table tbody td{padding:14px 12px;font-size:15px;font-weight:600;line-height:1.5;border-bottom:1px solid #dbe4f0;vertical-align:middle;color:#111}
.result-dialog .result-table tbody tr:nth-child(even),.payment-dialog .payment-table tbody tr:nth-child(even){background:#fafcff}
.result-dialog .result-table tbody tr:hover,.payment-dialog .payment-table tbody tr:hover{background:#f0f5ff}
.result-dialog .result-table .money,.payment-dialog .payment-table .payment-money{font-size:16px;font-weight:850;white-space:nowrap}
.result-dialog .result-table th:nth-child(4){min-width:220px}.result-dialog .result-table .reason{min-width:150px;max-width:230px;font-size:13px;color:#111}
.result-dialog .result-table .match-stage{display:none}.result-dialog .status-pill{font-size:13px;padding:5px 8px;white-space:nowrap}
.result-dialog .small-action,.payment-dialog .small-action{padding:8px 10px;font-size:13px;border:1px solid #b8cdeb;background:#f7faff;color:#204e98;border-radius:6px;line-height:1.3}
.result-dialog .result-actions{min-width:170px}.result-dialog .result-actions button{margin:2px}
.result-dialog .result-foot{margin-top:12px;font-size:13px;line-height:1.5;color:#111}.result-dialog .result-foot #status{display:none}
.result-dialog .inspection{margin:0 22px 18px;padding:12px 0;border:0;border-top:1px solid #d7e2f1}.result-dialog .inspection .detail-heading,.result-dialog .inspection .inspection-lead{display:none}
.result-dialog .inspection-fold>summary{font-size:14px;color:#173c73}
.payment-dialog .result-head{display:flex;justify-content:flex-end;margin:0 0 10px}.payment-dialog .result-head>div:first-child{display:none}
.payment-dialog .payment-summary{display:flex;align-items:baseline;gap:12px;background:#edf4ff;border:1px solid #c6d6ec;border-radius:10px;padding:13px 17px;color:#173c73}
.payment-dialog .payment-summary span{font-size:17px;font-weight:800}.payment-dialog .payment-summary strong{font-size:26px;font-weight:900;color:#152b4c}
.payment-dialog .payment-explain{font-size:14px;line-height:1.7;margin:0 0 15px;color:#111}
.payment-dialog .payment-preview{display:none}.payment-dialog .payment-table{min-width:1020px}
.payment-dialog .payment-table th:nth-child(3){min-width:330px}.payment-dialog .payment-table .payment-number{font-size:15px;color:#204e98;font-weight:800;white-space:nowrap}
.payment-dialog-foot{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 22px;border-top:1px solid #c6d6ec;background:#f8faff;font-size:13px;color:#111}
.payment-dialog-foot .btn{background:#245ec7;color:white;padding:10px 25px;font-size:15px;border:0}
@media(max-width:700px){.result-dialog .results,.payment-dialog .payment-list{padding:12px}.result-dialog .coverage-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.result-dialog>.modal-head,.payment-dialog>.modal-head{padding:14px}.result-dialog .coverage-banner strong{font-size:15px}.payment-dialog .payment-summary strong{font-size:22px}.payment-dialog .payment-table{min-width:850px}}
.result-dialog .result-table thead th.right,.payment-dialog .payment-table thead th.right{text-align:right}
/* Keep references, dates and row actions on a single line; scroll wide tables. */
.result-dialog .result-table{min-width:1450px}
.result-dialog .result-table td:nth-child(2),.result-dialog .result-table td:nth-child(5){white-space:nowrap;min-width:185px}
.result-dialog .result-table .group-cards{white-space:nowrap}
.result-dialog .result-table .group-link{display:inline-flex;align-items:center;width:auto;max-width:none;white-space:nowrap;word-break:normal;overflow-wrap:normal;margin:2px 5px 2px 0}
.result-dialog .result-table .result-actions{white-space:nowrap;width:1%;min-width:280px}
.result-dialog .result-table .result-actions button{display:inline-flex;align-items:center;white-space:nowrap;margin:2px 4px 2px 0}
.payment-dialog .payment-pair{white-space:nowrap}.payment-dialog .payment-pair button{white-space:nowrap;display:inline-flex;margin:2px 5px 2px 0}
/* Compact payment ledger: preserve type size and fit more transactions vertically. */
.payment-dialog>.modal-head{padding:12px 18px}.payment-dialog>.modal-head strong{font-size:21px}
.payment-dialog .payment-list{padding:10px 16px}
.payment-dialog .result-head{margin:0 0 6px}.payment-dialog .payment-summary{padding:7px 12px;gap:9px;border-radius:8px}
.payment-dialog .payment-summary strong{font-size:23px}.payment-dialog .payment-summary span{font-size:15px}
.payment-dialog .payment-explain{margin:0 0 8px;font-size:13px;line-height:1.45}
.payment-dialog .table-wrap{max-height:65dvh}
.payment-dialog .payment-table thead th{padding:9px 10px;font-size:14px}
.payment-dialog .payment-table tbody td{padding:7px 10px;line-height:1.35;font-size:15px}
.payment-dialog .payment-table .payment-money{font-size:15px}
.payment-dialog .payment-pair .small-action{padding:4px 8px;margin:0 4px 0 0;font-size:13px;line-height:1.2;min-height:0}
.payment-dialog-foot{padding:9px 16px}.payment-dialog-foot .btn{padding:8px 22px;font-size:14px;min-height:0}
/* Give analysis more room; use clear capture controls instead of filenames. */
@media(min-width:1151px){.workspace{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}}
.sources{padding:14px;gap:12px}.source-panel{padding:12px;gap:10px}.source-title h3{font-size:19px}
.capture-primary-buttons .btn,.capture-primary-buttons .screen-capture-launch{height:50px;min-height:50px;font-size:14px;padding:6px}
.source-list-open{height:40px;min-height:40px;font-size:15px}
.gallery{display:flex;flex-direction:column;flex-wrap:nowrap;gap:6px;max-height:144px;overflow:auto;padding:1px 0}
.gallery>.thumb{display:flex;align-items:center;flex-shrink:0;width:100%;max-width:none;min-height:44px;max-height:none;padding:5px 6px;gap:6px;border:1px solid #c4d5ed;background:#f8fbff}
.gallery .thumb-open{display:flex;align-items:center;gap:6px;flex:1;min-width:0;border:0;padding:0;background:transparent;color:#173c73;font-size:13px;font-weight:800;cursor:pointer;text-align:left}
.gallery .thumb-open img{width:28px;height:28px;object-fit:cover;border:1px solid #c6d6ec;border-radius:4px;flex:none}
.gallery .thumb-open span{max-width:none;white-space:nowrap;font-size:13px}
.gallery .ocr-raw{padding:7px 9px;font-size:12px;line-height:1.3;min-height:32px;white-space:nowrap;border-radius:6px;flex:none}
.gallery .thumb .remove{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:34px;padding:7px 9px;background:#fff5f6;color:#a51e32;border:1px solid #dcacb7;border-radius:6px;font-size:13px;font-weight:800;white-space:nowrap;cursor:pointer;flex:none}
.gallery .thumb .remove:hover{background:#ffe6eb;border-color:#b8546b}
.gallery .thumb-open:focus-visible,.gallery .remove:focus-visible{outline:2px solid #245ec7;outline-offset:2px}
/* Series navigation lives at the header's right edge. */
.top-inner{height:auto;min-height:96px;padding:12px 20px}
.header-side{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;align-self:stretch;gap:10px;flex:none;margin-left:auto}
.header-side .top-badges{margin-left:0}
.top-inner .series-home{display:inline-flex;align-items:center;justify-content:flex-end;padding:0;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#245ec7;font-size:12px;font-weight:850;line-height:1.4;text-decoration:none;white-space:nowrap}
.top-inner .series-home:hover{text-decoration:underline;color:#173c73}
@media(max-width:700px){.top-inner{padding:12px;gap:9px}.header-side{justify-content:flex-end;gap:0}.top-inner .series-home{font-size:11px}}
.payment-download-actions{display:flex;align-items:center;gap:8px;flex:none}
.payment-dialog-foot #paymentDialogDone{background:white;color:#173c73;border:1px solid #c6d6ec}
.payment-dialog-foot #paymentExcelBtn:disabled{opacity:.5;cursor:not-allowed}
.source-format-notice{grid-column:1/-1;padding:10px 12px;border:1px solid #ead5a2;border-radius:8px;background:#fffaf0;color:#5c431b;font-size:13px;line-height:1.5}
.capture-window-notice{margin:8px 0 0;padding:8px 10px;border-left:3px solid #258396;border-radius:4px;background:#eef8fa;color:#183a44;font-size:13px;line-height:1.55;word-break:keep-all;overflow-wrap:break-word}
.hero-actions a.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:600px){.payment-dialog-foot{flex-wrap:wrap}.payment-download-actions{width:100%;justify-content:flex-end}}
/* Unresolved OCR candidates remain visible, outside financial totals. */
.source-row-review{background:#fff7dc!important}
.source-row-review .needs-review{color:#8a4c00;font-weight:800;white-space:nowrap}
.source-row-review .card-list-actions{flex-wrap:wrap;min-width:145px}

/* Business-facing comparison: one line per purchase, no internal references. */
.result-dialog .comparison-table-wrap{overflow-x:hidden;max-height:60dvh}
.result-dialog .comparison-table{width:100%;min-width:0;table-layout:fixed}
.comparison-status-col{width:9%}.comparison-card-col{width:42%}.comparison-action-col{width:32%}.comparison-decision-col{width:17%}
.result-dialog .comparison-table th:nth-child(n),.result-dialog .comparison-table td:nth-child(n){min-width:0;max-width:none;white-space:normal;padding:12px;vertical-align:top}
.result-dialog .comparison-table th{font-size:14px}.result-dialog .comparison-table td{font-size:14px}
.comparison-card-line{display:grid;grid-template-columns:84px 100px minmax(0,1fr);gap:8px;align-items:start;padding:7px 0}
.comparison-card-line+.comparison-card-line{border-top:1px solid #e1e8ec}
.comparison-date{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.comparison-money{font-size:15px;font-weight:850;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.comparison-merchant,.comparison-action-title{min-width:0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
.comparison-sum{display:flex;justify-content:space-between;gap:12px;margin-top:5px;padding-top:8px;border-top:1px solid #b9cdd5;font-size:13px;font-weight:800}
.comparison-action-head{display:flex;justify-content:space-between;gap:8px;align-items:start;padding:7px 0}
.comparison-action-title{margin-top:3px}.comparison-empty{display:block;padding-top:7px;font-size:13px;color:#667580}
.comparison-equality{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:12px;padding:9px 10px;border:1px solid #add9c3;border-radius:7px;background:#f0faf4;color:#17613f;font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums}
.comparison-equality strong{font-size:14px;white-space:nowrap}.comparison-equality span{overflow-wrap:anywhere}
.comparison-refund .comparison-money{color:#ad342e}.comparison-refund-label{display:inline-block;margin-left:6px;padding:0 5px;border-radius:4px;background:#fff0ed;color:#a7362d;font-size:11px;font-weight:750}
#resultConfirmEqual[hidden]{display:none!important}
.comparison-action-record+.comparison-action-record{margin-top:8px;padding-top:6px;border-top:1px solid #d9e6eb}
.manual-group-dialog{width:min(1200px,96vw);max-width:96vw;padding:0;max-height:92dvh;overflow:auto;color:#17333f;border:1px solid #bfd4dd;border-radius:12px}
.manual-group-dialog>.modal-head{position:sticky;top:0;z-index:3;padding:16px 20px;background:#f2fafb}
.manual-group-help{margin:0;padding:12px 20px;font-size:13px;line-height:1.6;color:#506975}
.manual-group-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:0 20px 18px}
.manual-group-side{min-width:0;border:1px solid #c6dce5;border-radius:9px;overflow:hidden}
.manual-group-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;padding:12px;background:#f1f8fa}
.manual-group-heading h3{margin:0;font-size:17px}.manual-group-side-total{font-size:17px;color:#096f81;font-variant-numeric:tabular-nums}
.manual-group-search{display:block;width:calc(100% - 24px);margin:12px;padding:9px;border:1px solid #bfd1dc;border-radius:6px}
.manual-group-list{max-height:44dvh;overflow:auto;padding:0 12px 12px}
.manual-choice{display:flex;align-items:flex-start;gap:10px;padding:12px 10px;margin:0 0 7px;border:1px solid #dbe6eb;border-radius:7px;cursor:pointer;background:white}
.manual-choice.selected{border-color:#24859b;background:#edf8fc}.manual-choice.recommended{border:2px solid #30936a;background:#f0faf4;font-weight:800}
.manual-choice>input{width:18px;height:18px;min-width:18px;margin:3px 0 0;accent-color:#147f91}
.manual-choice-content{min-width:0;flex:1}.manual-choice-top{display:flex;gap:12px;justify-content:space-between;font-size:13px;font-variant-numeric:tabular-nums}.manual-choice-top strong{font-size:15px;white-space:nowrap}.manual-choice-top .negative{color:#a9362b}
.manual-choice-name{margin-top:6px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.manual-choice-tag{margin-left:5px;padding:1px 5px;background:#ffede9;color:#a2392b;border-radius:4px;font-size:11px}.manual-choice-tag.recommended-tag{background:#d8f0e0;color:#216e45}
.manual-choice-tag.linked-tag{background:#e7eef8;color:#435d82}
.manual-group-footer{position:sticky;bottom:0;z-index:3;padding:14px 20px;background:white;border-top:1px solid #ccdce4;display:flex;justify-content:space-between;gap:15px;align-items:center}
.manual-group-balance{display:flex;flex-direction:column;gap:5px;font-size:13px;line-height:1.5}.manual-group-balance strong{font-size:17px;font-variant-numeric:tabular-nums}.manual-group-balance.equal{color:#136942}.manual-group-balance.different{color:#a03929}.manual-group-controls{display:flex;gap:8px;flex:none}
@media(max-width:700px){.manual-group-grid{grid-template-columns:1fr;padding:0 12px 12px;gap:12px}.manual-group-list{max-height:28dvh}.manual-group-help{padding:12px}.manual-group-footer{align-items:stretch;flex-direction:column;padding:12px}.manual-group-controls{justify-content:flex-end;flex-wrap:wrap}.manual-group-balance strong{font-size:15px}.manual-group-dialog>.modal-head{padding:12px}}
.comparison-note{margin:3px 0 9px;font-size:13px;line-height:1.45;color:#52636b}
.comparison-note.amount-difference,.comparison-difference{color:#a12a23;font-weight:850}
.comparison-buttons{display:flex;gap:6px;flex-wrap:wrap}
.result-dialog .comparison-button{display:inline-flex;justify-content:center;align-items:center;min-height:35px;margin:0;padding:7px 10px;font-size:13px;line-height:1.35;white-space:normal}
.result-dialog .comparison-primary{color:white;background:#147f91;border-color:#147f91;font-weight:850}
.result-dialog .comparison-cancel,.result-dialog .comparison-details{background:white;color:#354e5b}
.comparison-new{outline:2px solid #3095a3;outline-offset:-2px}
.result-dialog .result-foot{display:none}
.statement-caution{margin:14px 0 0;padding:10px 12px;border:1px solid #e9ddbd;border-radius:7px;background:#fffbf0;color:#705c31;font-size:12px;line-height:1.6;word-break:keep-all}
.payment-dialog .statement-caution{margin:0 0 14px}.payment-preview[hidden]{display:none!important}
.payment-dialog .payment-table{min-width:0;table-layout:fixed}
.payment-dialog .payment-table th,.payment-dialog .payment-table td{min-width:0;overflow-wrap:anywhere;word-break:keep-all}
.comparison-detail-dialog{width:min(900px,96vw);max-width:96vw;max-height:90dvh;padding:0;border:1px solid #bfd2dc;border-radius:12px;overflow:auto;color:#172d39}
.comparison-detail-dialog>.modal-head{position:sticky;top:0;z-index:2;background:#f2fafb;padding:16px 20px}
.comparison-detail-content{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px}
.comparison-detail-content>p,.comparison-detail-content>details{grid-column:1/-1;margin:0}
.comparison-detail-section{min-width:0}.comparison-detail-section h3{margin:0 0 12px;font-size:17px}
.comparison-detail-record{padding:12px;border:1px solid #dce6eb;border-radius:8px;margin-bottom:10px;overflow-wrap:anywhere;line-height:1.6}
.comparison-detail-record>p{margin:5px 0 10px}.comparison-card-code{font-size:12px;color:#61737c}
.comparison-original{margin-top:10px;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.comparison-original>summary{cursor:pointer;font-weight:700;color:#59717e}
.comparison-original>p{margin:8px 0;white-space:pre-wrap}
.comparison-detail-dialog>.modal-foot{position:sticky;bottom:0;z-index:2;margin:0;padding:14px 20px;border-top:1px solid #dce6eb;background:white;display:flex;gap:8px;justify-content:flex-end}
@media(max-width:1100px){.comparison-card-line{grid-template-columns:84px minmax(0,1fr)}.comparison-card-line>.comparison-merchant{grid-column:1/-1}.comparison-card-line>.comparison-money{justify-self:end}.result-dialog .comparison-table th:nth-child(n),.result-dialog .comparison-table td:nth-child(n){padding:10px}.comparison-status-col{width:11%}.comparison-card-col{width:36%}.comparison-action-col{width:32%}.comparison-decision-col{width:21%}}
@media(max-width:700px){
 .result-dialog .comparison-table-wrap{max-height:none;overflow:visible}.comparison-table,.comparison-table tbody{display:block}
 .comparison-table colgroup,.comparison-table thead{display:none}.comparison-table tr.comparison-row{display:block;margin:0 0 12px;padding:12px;border:1px solid #c8d9e1;border-radius:9px;background:white!important}
 .result-dialog .comparison-table td:nth-child(n){display:block;border:0;padding:7px 0;width:100%}
 .comparison-cards:before,.comparison-expenditure:before{content:attr(data-label);display:block;margin-bottom:5px;font-size:12px;font-weight:850;color:#52717d}
 .comparison-card-line{grid-template-columns:84px 96px minmax(0,1fr)}.comparison-card-line>.comparison-merchant{grid-column:auto}
 .comparison-expenditure{margin-top:6px;padding-top:12px!important;border-top:1px solid #dce6eb!important}
 .comparison-note{margin-top:5px}.comparison-buttons button{flex:0 1 auto}
 .comparison-detail-content{grid-template-columns:1fr;padding:14px}.comparison-detail-dialog>.modal-foot{padding:12px;flex-wrap:wrap}
 .payment-dialog .payment-table,.payment-dialog .payment-table tbody{display:block}.payment-table colgroup,.payment-table thead{display:none}
 .payment-dialog .payment-table tbody tr{display:grid;grid-template-columns:1fr 1fr;padding:12px;border-bottom:1px solid #cbdce4}
 .payment-dialog .payment-table tbody td{display:block;padding:5px 0;border:0}.payment-table td:nth-child(1){grid-column:1;grid-row:1}.payment-table td:nth-child(2){grid-column:1/-1;grid-row:2}.payment-table td:nth-child(3){grid-column:2;grid-row:1;text-align:right}.payment-table td:nth-child(4){grid-column:1/-1;grid-row:3}
}
@media(max-width:440px){.comparison-card-line{grid-template-columns:84px minmax(0,1fr)}.comparison-card-line>.comparison-merchant{grid-column:1/-1}}

/* Unified review surfaces: reuse the main screen's cards, colours and spacing. */
.review-dialog{--review-ink:#15374a;--review-muted:#526b7d;--review-line:#bedce8;--review-accent:#07859a;color:var(--review-ink);background:#fff;border:1px solid var(--review-line);border-radius:16px;box-shadow:0 20px 70px #173c7330}
.review-dialog:not([open]){display:none}.review-dialog [hidden]{display:none!important}
.review-dialog::backdrop{background:#16364c80;backdrop-filter:blur(2px)}
.review-dialog>.modal-head{flex:none;position:relative;top:auto;padding:16px 22px;background:linear-gradient(110deg,#f0f9fd,#fff);border-bottom:1px solid var(--review-line);gap:16px}
.review-dialog>.modal-head strong{font-size:22px;font-weight:850;letter-spacing:-.5px;color:#12364d}
.review-dialog .dialog-heading{display:flex;align-items:center;gap:12px;min-width:0}.review-dialog .dialog-heading>div{min-width:0}
.review-dialog .dialog-heading p{margin:4px 0 0;font-size:12px;line-height:1.4;color:var(--review-muted);font-weight:650}
.review-dialog .step{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:1px solid #bce5f0;border-radius:50%;background:#ecfaff;color:#087e98;font-weight:800}
.review-dialog>.modal-head .close{flex:none;width:36px;height:36px;border:1px solid #bcd9e7;border-radius:10px;background:#fff;color:#1a4961;font-size:17px}
.review-dialog .btn,.review-dialog .small-action{border-radius:8px;box-shadow:none;transition:background .12s,border-color .12s}
.review-dialog .btn:hover:not(:disabled){transform:none;box-shadow:none}
.review-dialog .btn:not(.primary):not(.solid):not(#paymentExcelBtn){background:#fff;border:1px solid #b8d7e5;color:#17475d}
.review-dialog .btn.primary,.review-dialog .btn.solid,.review-dialog #paymentExcelBtn{background:#07859a;border:1px solid #07859a;color:#fff}
.review-dialog .btn:disabled{opacity:.55}.review-dialog .btn:focus-visible,.review-dialog .small-action:focus-visible{outline:3px solid #8bd3e2;outline-offset:3px}
.result-dialog.review-dialog[open],.payment-dialog.review-dialog[open]{display:flex}
.result-dialog.review-dialog{flex-direction:column;width:min(1500px,96vw);height:min(940px,92dvh);max-height:92dvh;overflow:hidden}
.result-dialog.review-dialog .lower-details{display:block;flex:1;min-height:0;overflow:auto;margin:0;border:0;border-radius:0;background:#f6fafc;scroll-padding-top:12px}
.result-dialog.review-dialog .lower-detail-body{padding:20px 22px;background:#f6fafc}
.result-dialog.review-dialog .results{margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.result-summary-panel{padding:16px;background:#fff;border:1px solid var(--review-line);border-radius:13px}
.result-dialog.review-dialog .coverage-banner{position:relative;min-height:46px;padding:0 0 0 47px;border:0;border-radius:0;background:transparent}
.result-dialog.review-dialog .coverage-banner:before{content:'!';position:absolute;left:0;top:0;display:grid;place-items:center;width:34px;height:34px;border:1px solid #bfe0eb;border-radius:10px;background:#edf8fc;color:#087e98;font-size:19px;font-weight:850}
.result-dialog.review-dialog .coverage-banner.complete:before{content:'✓';border-color:#b9dfcc;background:#effaf4;color:#177047}
.result-dialog.review-dialog .coverage-banner strong{display:block;font-size:17px;font-weight:850;line-height:1.5;color:#096f84}
.result-dialog.review-dialog .coverage-banner.complete strong{color:#176d49}
.result-dialog.review-dialog .coverage-banner span{margin-top:2px;font-size:13px;line-height:1.55;color:#405e70;font-weight:600}
.result-dialog.review-dialog .coverage-stats{gap:10px;margin:14px 0 0}
.result-dialog.review-dialog .coverage-stat{--state:#247c98;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-height:100px;padding:12px 15px;border:1px solid #bfd6e4;border-left:5px solid var(--state);border-radius:10px;background:#fff;text-align:left;color:#16394b;transition:background .12s,border-color .12s}
.result-dialog.review-dialog .coverage-stat.matched{--state:#149463}.result-dialog.review-dialog .coverage-stat.review{--state:#dfa41b}.result-dialog.review-dialog .coverage-stat.missing{--state:#df5b5b}.result-dialog.review-dialog .coverage-stat.residual{--state:#4f89b6}
.result-dialog.review-dialog .coverage-stat span{font-size:13px;font-weight:750;line-height:1.3;color:#294b5f}.result-dialog.review-dialog .coverage-stat strong{font-size:26px;font-weight:850;line-height:1.15;color:var(--state);font-variant-numeric:tabular-nums}.result-dialog.review-dialog .coverage-stat b{font-size:15px;font-weight:750;line-height:1.3;color:#183a4d}
.result-dialog.review-dialog .coverage-stat:hover{background:#f5fbfe;border-color:var(--state)}
.result-dialog.review-dialog .coverage-stat[aria-pressed=true]{background:#f1f8fc;border-color:var(--state);box-shadow:0 0 0 1px var(--state)}
.result-dialog.review-dialog .coverage-stat.matched[aria-pressed=true]{background:#f1fbf5}.result-dialog.review-dialog .coverage-stat.review[aria-pressed=true]{background:#fffaf0}.result-dialog.review-dialog .coverage-stat.missing[aria-pressed=true]{background:#fff6f5}
.result-dialog.review-dialog .result-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0 4px;flex-wrap:wrap}
.result-dialog.review-dialog .result-head>.result-list-heading:first-child{display:flex;align-items:center;gap:9px}.result-dialog .result-list-heading h2{font-size:18px;color:#183d52;font-weight:850}
.result-list-count{padding:3px 9px;border:1px solid #c5dfe9;border-radius:20px;background:#fff;color:#3c6277;font-size:12px;font-weight:750}
.result-dialog.review-dialog .result-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;width:auto}
.result-dialog.review-dialog .filter-label{font-size:13px;color:#3f5e71;gap:7px}.result-dialog.review-dialog .filter-label select{height:38px;padding:7px 30px 7px 10px;border:1px solid #b9d8e5;border-radius:8px;background:#fff;font-size:13px;color:#173e54}
.result-dialog.review-dialog .result-tools .btn{min-height:38px;padding:8px 12px;font-size:13px;line-height:1.4;white-space:normal}
.result-dialog.review-dialog .comparison-table-wrap{max-height:none;overflow:visible;border:0;border-radius:0;background:transparent}
.result-dialog.review-dialog .comparison-table{min-width:0;width:100%;border-collapse:separate;border-spacing:0 9px;table-layout:fixed}
.result-dialog.review-dialog .comparison-table th:nth-child(n){position:sticky;top:0;z-index:2;min-width:0;padding:11px 14px;border:0;background:#eaf4f9;color:#32566c;font-size:13px;font-weight:800;white-space:normal}
.result-dialog.review-dialog .comparison-table th:first-child{border-radius:8px 0 0 8px}.result-dialog.review-dialog .comparison-table th:last-child{border-radius:0 8px 8px 0}
.result-dialog.review-dialog .comparison-table tbody td:nth-child(n){padding:13px 14px;vertical-align:top;border-top:1px solid #cde0e9;border-bottom:1px solid #cde0e9;background:#fff;color:#17384a;font-weight:600;font-size:14px}
.result-dialog.review-dialog .comparison-table tbody tr:nth-child(n){background:transparent}
.result-dialog.review-dialog .comparison-table tbody tr:hover>td{background:#fbfdff}
.result-dialog.review-dialog .comparison-row>td:first-child{border-left:4px solid #86bdce;border-radius:11px 0 0 11px}
.result-dialog.review-dialog .comparison-row.match>td:first-child{border-left-color:#29a171}.result-dialog.review-dialog .comparison-row.review>td:first-child{border-left-color:#e5af31}.result-dialog.review-dialog .comparison-row.card-only>td:first-child{border-left-color:#e27a73}.result-dialog.review-dialog .comparison-row.action-only>td:first-child{border-left-color:#6597c2}
.result-dialog.review-dialog .comparison-row>td:last-child{border-right:1px solid #cde0e9;border-radius:0 11px 11px 0}
.result-dialog .comparison-status-col{width:9%}.result-dialog .comparison-card-col{width:39%}.result-dialog .comparison-action-col{width:36%}.result-dialog .comparison-decision-col{width:16%}
.result-dialog.review-dialog .status-pill{padding:5px 8px;border-radius:7px;font-size:12px;font-weight:800}.result-dialog.review-dialog .status-pill.action-only{background:#eaf2fb;color:#35658c}
.result-dialog .comparison-card-line{padding:5px 0;gap:7px;grid-template-columns:84px 100px minmax(0,1fr)}
.result-dialog .comparison-date{color:#526c7d;font-weight:650;font-size:12px}.result-dialog .comparison-money{color:#123345;font-size:15px;font-weight:850}.result-dialog .comparison-refund .comparison-money{color:#ad342c}
.result-dialog .comparison-merchant,.result-dialog .comparison-action-title{color:#17384a;font-size:14px;font-weight:650;line-height:1.55}
.result-dialog .comparison-sum{padding-top:8px;margin-top:6px;border-color:#cbdfe9;color:#456375;font-size:12px}.result-dialog .comparison-sum .comparison-money{color:#123345}
.result-dialog .comparison-action-head{padding:5px 0}.result-dialog .comparison-action-title{margin-top:2px}
.result-dialog .comparison-equality{gap:3px 10px;margin-top:9px;padding:7px 9px;border:1px dashed #9bceb4;border-radius:8px;background:#f4fbf7;color:#216c49;font-size:12px;line-height:1.5}.result-dialog .comparison-equality strong{font-size:12px}
.result-dialog .comparison-note{color:#587080;font-size:12px;margin:3px 0 9px}.result-dialog .comparison-note.amount-difference{color:#a3362a}
.result-dialog.review-dialog .comparison-button{min-height:34px;margin:0;padding:7px 10px;border:1px solid #bdd8e5;border-radius:8px;background:#fff;color:#24546a;font-size:12px;font-weight:750;line-height:1.35}
.result-dialog.review-dialog .comparison-primary{color:#fff;background:#07859a;border-color:#07859a}.result-dialog.review-dialog .comparison-cancel{color:#9d3d35;border-color:#e6cbc7}
.result-dialog .comparison-buttons{gap:6px}.result-dialog .comparison-empty{color:#6a8190;font-size:13px;font-weight:600}
.result-dialog.review-dialog .comparison-table.is-empty thead{display:none}.result-dialog.review-dialog .comparison-table .empty{border:1px solid #cde0e9;border-radius:12px;padding:28px}
.comparison-empty-state{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:150px;gap:10px;text-align:center}
.comparison-empty-icon{display:grid;place-items:center;width:46px;height:46px;margin-bottom:3px;background:#eef8fc;border:1px solid #c3e1ec;border-radius:14px;color:#13859c;font-size:24px}
.comparison-empty-state strong{font-size:17px;font-weight:800;color:#294e63}.comparison-empty-state p{margin:0;max-width:440px;color:#5a7485;font-size:13px;font-weight:600;line-height:1.6}
.result-dialog.review-dialog .statement-caution{margin:8px 0 14px;border-color:#e8dfc8;border-radius:8px;background:#fffcf4;color:#7a6541;font-size:12px;font-weight:600}
.result-dialog.review-dialog .stage-detail-fold{padding:12px 15px;margin:10px 0;border:1px solid #cfdee6;border-radius:10px;background:#fff}.result-dialog.review-dialog .stage-detail-fold>summary{font-size:13px;color:#3c6377;font-weight:750}
.result-dialog.review-dialog .inspection{margin:10px 0 0;padding:14px 15px;border:1px solid #cfdee6;border-radius:10px;background:#fff}.result-dialog.review-dialog .inspection-fold>summary{font-size:13px;font-weight:750;color:#3c6377}
.payment-dialog.review-dialog{flex-direction:column;max-height:90dvh;overflow:hidden;background:#f6fafc}
.payment-dialog.review-dialog .payment-list{min-height:0;overflow:auto;padding:20px 22px;background:transparent}
.payment-dialog.review-dialog .result-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 13px}.payment-dialog.review-dialog .result-head>div:first-child{display:flex;align-items:center;gap:9px}.payment-dialog.review-dialog .result-head h2{font-size:17px;color:#2b5065}
.payment-dialog.review-dialog .payment-summary{gap:12px;padding:10px 14px;background:#fff;border:1px solid #bedce8;border-radius:10px;color:#376479}.payment-dialog.review-dialog .payment-summary strong{font-size:24px;color:#123a50}
.payment-dialog.review-dialog .payment-explain{font-size:13px;color:#4d6b7e;line-height:1.6;margin:0 0 12px}
.payment-dialog.review-dialog .table-wrap{max-height:none;overflow:visible;border:0;border-radius:0}
.payment-dialog.review-dialog .payment-table{min-width:0;border-collapse:separate;border-spacing:0 7px;table-layout:fixed}
.payment-dialog.review-dialog .payment-table th:nth-child(n){min-width:0;padding:10px 13px;border:0;background:#eaf4f9;color:#32566c;font-size:13px}
.payment-dialog.review-dialog .payment-table td{padding:12px 13px;border-top:1px solid #cde0e9;border-bottom:1px solid #cde0e9;background:#fff;color:#17384a;font-size:14px}
.payment-dialog.review-dialog .payment-table td:first-child{border-left:1px solid #cde0e9;border-radius:9px 0 0 9px}.payment-dialog.review-dialog .payment-table td:last-child{border-right:1px solid #cde0e9;border-radius:0 9px 9px 0}
.payment-dialog.review-dialog .payment-money{font-size:16px;font-weight:850}.payment-dialog.review-dialog .payment-dialog-foot{flex:none;background:#fff;border-color:#c6dfe9;padding:13px 20px;color:#547286;font-size:12px}
.manual-group-dialog.review-dialog{background:#f6fafc}.manual-group-dialog.review-dialog>.modal-head{position:sticky;top:0;z-index:3}
.manual-group-dialog.review-dialog .manual-group-help{color:#4c687b;font-size:13px;padding-top:14px;padding-bottom:14px}
.manual-group-dialog.review-dialog .manual-group-side{background:#fff;border-color:#c4dce6;border-radius:12px}
.manual-group-dialog.review-dialog .manual-group-heading{padding:13px;background:#f1f8fb}.manual-group-dialog.review-dialog h3{font-size:18px;color:#20485e}.manual-group-dialog.review-dialog .manual-group-side-total{color:#087f95}
.manual-group-dialog.review-dialog .manual-choice:not(.selected){border-color:#d6e4eb}.manual-group-dialog.review-dialog .manual-choice:not(.selected):hover{background:#f6fbfe;border-color:#a8cbdc}
.manual-group-dialog.review-dialog .manual-group-footer{background:#fff;border-color:#c6dfe9}.manual-group-dialog.review-dialog .manual-group-balance strong{color:#1c5665}.manual-group-dialog.review-dialog .manual-group-balance.equal strong{color:#176d49}.manual-group-dialog.review-dialog .manual-group-balance.different strong{color:#a0392f}
.comparison-detail-dialog.review-dialog .comparison-detail-content{background:#f6fafc}.comparison-detail-dialog.review-dialog .comparison-detail-section h3{font-size:17px;color:#235268}.comparison-detail-dialog.review-dialog .comparison-detail-record{background:#fff;border-color:#c8dfe9;border-radius:11px;padding:14px}
.comparison-detail-dialog.review-dialog>.modal-foot{background:#fff;border-color:#c6dfe9}
@media(max-width:1100px){.result-dialog .comparison-card-line{grid-template-columns:84px minmax(0,1fr)}.result-dialog .comparison-card-line>.comparison-merchant{grid-column:1/-1}.result-dialog .comparison-status-col{width:11%}.result-dialog .comparison-card-col{width:34%}.result-dialog .comparison-action-col{width:34%}.result-dialog .comparison-decision-col{width:21%}}
@media(max-width:700px){
 .result-dialog.review-dialog{width:98vw;max-width:98vw;height:94dvh;max-height:94dvh;border-radius:13px}
 .review-dialog>.modal-head{padding:13px 14px}.review-dialog>.modal-head strong{font-size:19px}.review-dialog .dialog-heading{gap:9px}.review-dialog .dialog-heading p{font-size:11px}.review-dialog .step{width:31px;height:31px;font-size:12px}
 .result-dialog.review-dialog .lower-detail-body{padding:12px}.result-summary-panel{padding:12px;border-radius:11px}.result-dialog.review-dialog .coverage-banner{padding-left:39px}.result-dialog.review-dialog .coverage-banner:before{width:29px;height:29px;border-radius:9px;font-size:16px}
 .result-dialog.review-dialog .coverage-banner strong{font-size:15px}.result-dialog.review-dialog .coverage-banner span{font-size:12px}
 .result-dialog.review-dialog .coverage-stats{gap:8px;margin-top:12px}.result-dialog.review-dialog .coverage-stat{min-height:90px;padding:10px 11px;gap:4px}.result-dialog.review-dialog .coverage-stat span{font-size:12px}.result-dialog.review-dialog .coverage-stat strong{font-size:23px}.result-dialog.review-dialog .coverage-stat b{font-size:13px}
 .result-dialog.review-dialog .result-head{margin-top:16px;gap:10px;align-items:stretch}.result-dialog.review-dialog .result-tools{width:100%;justify-content:flex-start;gap:7px}.result-dialog.review-dialog .result-tools .btn{min-height:36px;font-size:12px;padding:7px 10px}.result-dialog.review-dialog .filter-label select{height:36px;font-size:12px}
 .result-dialog.review-dialog .comparison-table tbody tr.comparison-row{border:0;border-left:4px solid #86bdce;border-radius:11px;box-shadow:0 0 0 1px #cde0e9;margin:10px 0 13px;padding:10px 12px;background:#fff!important}
 .result-dialog.review-dialog .comparison-table tbody tr.match{border-left-color:#29a171}.result-dialog.review-dialog .comparison-table tbody tr.review{border-left-color:#e5af31}.result-dialog.review-dialog .comparison-table tbody tr.card-only{border-left-color:#e27a73}.result-dialog.review-dialog .comparison-table tbody tr.action-only{border-left-color:#6597c2}
 .result-dialog.review-dialog .comparison-table tbody td:nth-child(n){padding:7px 0;border:0;border-radius:0;background:transparent!important}.result-dialog.review-dialog .comparison-table tbody td.comparison-expenditure{border-top:1px solid #d9e7ee!important}
 .result-dialog.review-dialog .comparison-table .empty{display:block;width:100%;padding:20px;border:1px solid #cde0e9;background:#fff!important}.comparison-empty-state{min-height:170px}.comparison-empty-state strong{font-size:16px}
 .result-dialog .comparison-equality{font-size:12px}.result-dialog .comparison-table tbody tr:not(.comparison-row){display:block}
 .payment-dialog.review-dialog .payment-list{padding:14px}.payment-dialog.review-dialog .result-head{align-items:flex-start}.payment-dialog.review-dialog .payment-summary strong{font-size:21px}
 .payment-dialog.review-dialog .payment-table tbody tr{margin-bottom:10px;padding:10px 12px;border:1px solid #cde0e9;border-radius:10px;background:#fff}.payment-dialog.review-dialog .payment-table td:nth-child(n){border:0;border-radius:0;padding:5px 0;background:transparent}.payment-dialog.review-dialog .payment-dialog-foot{padding:12px 14px}
}

/* Summary cards share the protected overview component used by the main page. */
.result-dialog.review-dialog .coverage-stat span{min-height:0}
.result-dialog.review-dialog .coverage-stat.matched{--state:#16985c}.result-dialog.review-dialog .coverage-stat.review{--state:#e2a41d}.result-dialog.review-dialog .coverage-stat.missing{--state:#db5858}.result-dialog.review-dialog .coverage-stat.residual{--state:#4e89b8}
.result-dialog.review-dialog .coverage-stat.matched strong{color:#07643d}.result-dialog.review-dialog .coverage-stat.review strong{color:#89550b}.result-dialog.review-dialog .coverage-stat.missing strong{color:#ad282b}.result-dialog.review-dialog .coverage-stat.residual strong{color:#24547b}

.sources>.source-statement-notice{grid-column:1/-1;margin:-5px 0 0;padding:9px 12px;border-color:#ead5a2;background:#fffaf0;color:#725932;font-size:12px;font-weight:600;line-height:1.6}

.payment-dialog.review-dialog .payment-table td.empty{border:1px solid #cde0e9;border-radius:10px;padding:24px;text-align:center;white-space:normal;color:#587486}
@media(max-width:700px){.payment-dialog.review-dialog .payment-table td.empty{grid-column:1/-1;grid-row:auto;padding:20px}}

/* Compact, symmetric reconciliation rows and a single statement notice. */
.source-format-notice p{margin:0;font:inherit;color:inherit;line-height:inherit}
.source-format-notice p+p{margin-top:3px}
.result-dialog.review-dialog .comparison-table{border-spacing:0 5px}
.result-dialog.review-dialog .comparison-table tbody td:nth-child(n){padding:9px 12px}
.result-dialog .comparison-action-record.comparison-card-line{margin:0;padding:3px 0}
.result-dialog .comparison-action-record+.comparison-action-record{padding-top:5px;margin-top:2px;border-top:1px solid #e1e8ec}
.result-dialog .comparison-card-line{padding:3px 0;align-items:center}
.result-dialog .comparison-card-line .comparison-date,.result-dialog .comparison-card-line .comparison-money,.result-dialog .comparison-card-line .comparison-merchant{font-size:13px;line-height:1.5}
.result-dialog .comparison-card-line .comparison-merchant{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.manual-group-controls .manual-unlink{color:#a23d32;border-color:#e6bcb5}
.manual-group-dialog.review-dialog .manual-choice-tag.linked-tag{display:inline-block;padding:2px 7px;border:1px solid #146d45;border-radius:5px;background:#18794e;color:#fff;font-size:12px;font-weight:800;line-height:1.4;white-space:nowrap}
@media(min-width:761px){.result-dialog .comparison-card-line{grid-template-columns:80px 88px minmax(0,1fr);gap:7px}.result-dialog .comparison-card-line>.comparison-merchant{grid-column:auto}}
