:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color-scheme:light;--bg: #f7f7f6;--surface: #ffffff;--surface-soft: #f2f2f0;--surface-hover: #ececea;--text: #252525;--muted: #72726d;--faint: #85857f;--border: #e3e3df;--border-strong: #ccccc7;--primary: #292929;--on-primary: #ffffff;--selected: #efefed;--focus: #838b9b;--warning-bg: #f9f5ec;--warning-border: #e6dcc5;--warning: #866129;--error-bg: #faf0ef;--error-border: #e7ccc9;--error: #a64c45;--pdf-stage: #eaeae7;--shadow: 0 14px 48px rgb(0 0 0 / 10%);background:var(--bg);color:var(--text);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}:root[data-theme=dark]{color-scheme:dark;--bg: #191919;--surface: #202020;--surface-soft: #262626;--surface-hover: #303030;--text: #ededeb;--muted: #a3a39f;--faint: #92928e;--border: #343434;--border-strong: #4b4b49;--primary: #e9e9e6;--on-primary: #202020;--selected: #2b2b2a;--focus: #999fa9;--warning-bg: #29251f;--warning-border: #4b4030;--warning: #d7b98a;--error-bg: #302221;--error-border: #593a37;--error: #e6aaa3;--pdf-stage: #171717;--shadow: 0 14px 48px rgb(0 0 0 / 30%)}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;color:inherit;background:none}a{color:inherit;text-decoration:none}button:disabled{cursor:default;opacity:.45}button,a,input,summary{outline-offset:4px}:focus-visible{outline:2px solid var(--focus)}button,a,summary{touch-action:manipulation}button svg{flex-shrink:0}::selection{background:var(--border-strong);color:var(--text)}.app-shell{min-height:100svh}.app-header{height:76px;border-bottom:1px solid var(--border)}.header-inner{max-width:1280px;padding:0 40px;height:100%;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:inline-flex;align-items:center;gap:10px;font-size:20px;font-weight:650;letter-spacing:-.8px}.brand-light{font-weight:420}.brand-mark{width:33px;height:36px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border-strong);border-radius:9px;background:var(--surface)}.header-actions{display:flex;align-items:center;gap:8px}.header-divider{width:1px;height:18px;margin:0 7px;background:var(--border)}.theme-control{display:flex;align-items:center;padding:3px;gap:2px;border:1px solid var(--border);border-radius:9px;background:var(--surface-soft)}.theme-control button{width:31px;height:29px;padding:0;border-radius:5px;display:flex;align-items:center;justify-content:center;color:var(--muted)}.theme-control button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #00000014}.theme-control button:hover{color:var(--text)}.icon-button{width:34px;height:34px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;color:var(--muted)}.icon-button:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.main-content{width:min(100% - 80px,1120px);margin:0 auto;padding:58px 0 36px}.main-content.empty-state{max-width:760px;padding-top:clamp(56px,11vh,112px)}.page-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}.eyebrow{display:block;font-size:10px;font-weight:550;letter-spacing:1.8px;color:var(--faint);margin-bottom:13px}h1{font-size:34px;font-weight:540;line-height:1.2;letter-spacing:-1.25px;margin:0}.page-header p{margin:13px 0 0;color:var(--muted);font-size:14px;line-height:1.6}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:10px 16px;font-size:13px;font-weight:550;line-height:1.4;border:1px solid transparent;border-radius:8px;white-space:nowrap}.button.primary{color:var(--on-primary);background:var(--primary)}.button.primary:hover:not(:disabled){opacity:.86}.button.secondary{color:var(--text);background:var(--surface);border-color:var(--border)}.button.secondary:hover:not(:disabled){background:var(--surface-soft);border-color:var(--border-strong)}.button.small{min-height:34px;font-size:12px;padding:7px 11px}.upload-card{min-height:340px;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px dashed var(--border-strong);border-radius:15px;background:var(--surface);padding:45px 24px 34px;transition:border-color .15s,background .15s}.upload-card.dragging{border-style:solid;border-color:var(--text);background:var(--surface-soft)}.upload-symbol{width:62px;height:67px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:15px;background:var(--surface-soft);color:var(--muted);margin-bottom:24px}.upload-card h2{font-size:19px;font-weight:500;line-height:1.4;letter-spacing:-.3px;margin:0 0 22px;text-align:center}.upload-button{min-height:42px;padding:10px 19px}.file-limit{color:var(--muted);font-size:11px;margin-top:20px;line-height:1.5;text-align:center}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.alert{display:flex;align-items:center;gap:10px;border:1px solid var(--border);background:var(--surface);border-radius:9px;margin-bottom:20px;padding:13px 16px;font-size:12px;line-height:1.6;color:var(--muted)}.alert svg{flex-shrink:0}.alert .icon-button{margin-left:auto}.alert.error{color:var(--error);background:var(--error-bg);border-color:var(--error-border)}.file-bar{display:flex;align-items:center;gap:14px;border:1px solid var(--border);border-radius:12px;padding:20px;background:var(--surface)}.file-icon{width:43px;height:49px;flex-shrink:0;border:1px solid var(--border);border-radius:9px;background:var(--surface-soft);color:var(--muted);display:flex;align-items:center;justify-content:center}.file-bar>div:nth-child(2){min-width:0}.file-bar strong{display:block;font-size:14px;font-weight:550;overflow-wrap:anywhere}.file-bar>div>span{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-top:6px}.file-bar-actions{margin-left:auto;display:flex;align-items:center;gap:10px;flex-shrink:0}.badge{display:inline-flex;align-items:center;padding:4px 6px;border:1px solid var(--border);border-radius:4px;font-size:9px;letter-spacing:.8px;color:var(--muted)}.recognition-summary{display:flex;align-items:center;gap:11px;padding:19px 2px;font-size:12px}.recognition-symbol{display:flex;flex-shrink:0;color:var(--muted)}.recognition-symbol svg{width:19px;height:19px}.recognition-copy{flex:1;min-width:0}.recognition-copy strong{font-size:12px;font-weight:500}.recognition-copy p{font-size:11px;color:var(--muted);margin:5px 0 0;line-height:1.6}.recognition-summary.uncertain{border:1px solid var(--warning-border);color:var(--warning);background:var(--warning-bg);padding:16px;border-radius:10px;margin-top:18px}.recognition-summary.uncertain .recognition-symbol{color:var(--warning)}.parsing-notes{background:var(--warning-bg);border:1px solid var(--warning-border);color:var(--warning);border-radius:10px;padding:16px 18px;margin:2px 0 22px}.parsing-notes-title{display:flex;align-items:center;gap:8px;margin-bottom:6px}.parsing-notes-title strong{font-size:12px;font-weight:550}.parsing-notes-title>span{margin-left:auto;font-size:11px}.parsing-notes ul{padding:0;margin:0;list-style:none}.parsing-notes li{padding:7px 0;font-size:12px;line-height:1.6}.parsing-notes li button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:0;gap:12px;text-align:left;font-size:inherit;line-height:inherit;color:inherit}.parsing-notes li button:hover{text-decoration:underline}.parsing-notes li svg{flex-shrink:0}.parsing-notes small{display:block;margin-top:3px;font-size:10px;opacity:.85}.parsing-notes summary{cursor:pointer;font-size:11px;margin-top:7px}.result-preview{margin:7px 0 18px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.result-preview>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;list-style:none;font-size:12px;font-weight:500;padding:17px 18px}.result-preview>summary::-webkit-details-marker{display:none}.result-preview>summary svg{color:var(--muted);transition:transform .15s}.result-preview[open]>summary svg{transform:rotate(180deg)}.result-preview[open]>summary{border-bottom:1px solid var(--border)}.review-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 20px 12px}.review-heading h2{font-size:12px;font-weight:550;margin:0}.review-heading h2 span{color:var(--muted);font-size:11px;font-weight:400;margin-left:8px}.review-heading>span{font-size:10px;color:var(--muted)}.review-workspace{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:14px;margin:0 20px 20px}.source-panel,.transactions-panel{min-width:0;border:1px solid var(--border);border-radius:9px;background:var(--surface);overflow:hidden;display:flex;flex-direction:column}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;height:48px;padding:13px;border-bottom:1px solid var(--border);flex-shrink:0}.panel-heading>div{display:flex;align-items:center;gap:7px}.panel-heading strong{font-size:11px;font-weight:500}.panel-heading svg{color:var(--muted)}.subtle{font-size:10px;color:var(--muted)}.pdf-scroll{position:relative;padding:20px;min-height:440px;max-height:710px;flex:1;overflow:auto;background:var(--pdf-stage);scrollbar-width:thin}.pdf-paper{position:relative;background:#fff;margin:0 auto;box-shadow:0 2px 9px #00000017;flex-shrink:0}.pdf-paper canvas{display:block}.source-highlight{position:absolute;pointer-events:none;background:#ddba4d26;border:1px solid rgb(163 131 29 / 42%);min-height:7px}.pdf-error{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#fff;color:#994a43;font-size:12px;padding:20px}.pdf-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--border);padding:8px 12px;font-size:10px;color:var(--muted)}.pdf-footer>div{display:flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums}.pdf-footer>div>span{min-width:38px;text-align:center}.transaction-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:9px 12px 4px;min-height:48px}.filter-tabs{display:flex;gap:4px}.filter-tabs button{display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:5px;color:var(--muted);font-size:11px}.filter-tabs button.selected{color:var(--text);background:var(--selected)}.filter-tabs button span{color:var(--muted);font-size:10px}.filter-tabs button .amber{color:var(--warning)}.search-field{display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid var(--border);border-radius:6px;color:var(--muted);margin:6px 13px 12px}.search-field input{width:100%;min-width:0;border:0;padding:1px 0;background:transparent;color:var(--text);font-size:11px;outline:none}.search-field:focus-within{outline:2px solid var(--focus);outline-offset:2px}.search-field input::placeholder{color:var(--muted)}.transaction-list{max-height:660px;min-height:380px;flex:1;overflow:auto;scrollbar-width:thin;border-top:1px solid var(--border)}.table-labels{display:flex;justify-content:space-between;align-items:center;padding:9px 14px;font-size:10px;color:var(--muted);background:var(--surface-soft);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:1}.transaction{width:100%;display:flex;align-items:flex-start;gap:6px;border-bottom:1px solid var(--border);border-left:2px solid transparent;padding:14px 12px 14px 7px;text-align:left;min-height:73px}.transaction:hover{background:var(--surface-soft)}.transaction.selected{border-left-color:var(--muted);background:var(--selected)}.row-indicator{display:flex;justify-content:center;align-items:center;color:var(--warning);width:16px;height:20px;flex-shrink:0;margin-top:3px}.transaction-details{flex:1;min-width:0}.transaction-details time{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.transaction-details strong{display:block;font-size:11px;font-weight:500;line-height:1.7;margin-top:4px;overflow-wrap:anywhere}.transaction-details small{display:block;font-size:10px;line-height:1.7;color:var(--muted);white-space:pre-line;overflow-wrap:anywhere;margin-top:1px}.transaction-amount{min-width:72px;padding-top:4px;text-align:right;font-variant-numeric:tabular-nums}.transaction-amount strong{font-size:12px;font-weight:550;display:block}.transaction-amount span{font-size:9px;color:var(--muted);display:block;margin-top:5px}.list-empty{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:10px;padding:45px 20px;color:var(--muted);text-align:center;font-size:11px}.list-empty strong{color:var(--text);font-weight:500}.unsupported-preview{max-width:600px;margin-top:22px}.csv-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 2px 0;color:var(--muted);font-size:10px;line-height:1.7}.session-note{margin:25px 0 0;color:var(--faint);font-size:10px;text-align:center}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000007f;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:50;display:flex;align-items:center;justify-content:center;padding:24px}.modal{width:590px;max-width:100%;max-height:calc(100svh - 48px);overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:25px 28px;box-shadow:var(--shadow);scrollbar-width:thin}.modal>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.modal-symbol{display:flex;justify-content:center;align-items:center;width:42px;height:42px;color:var(--muted);background:var(--surface-soft);border:1px solid var(--border);border-radius:10px}.modal h2{margin:0 0 20px;font-size:23px;line-height:1.3;font-weight:550;letter-spacing:-.6px}.info-content h3{margin:22px 0 7px;font-size:12px;font-weight:550}.info-content p{margin:0;font-size:12px;line-height:1.85;color:var(--muted)}.modal footer{margin-top:25px;padding-top:18px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;align-items:center;gap:10px}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:10px;border:1px solid var(--border-strong);border-radius:10px;padding:10px 12px 10px 15px;color:var(--text);background:var(--surface);box-shadow:var(--shadow);font-size:12px;line-height:1.5;width:max-content;max-width:calc(100vw - 32px);z-index:100}.toast>svg{flex-shrink:0;color:var(--muted)}.toast .icon-button{margin-left:5px;flex-shrink:0}.spin{animation:spin 1.1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}@media(max-width:900px){.review-workspace{grid-template-columns:1fr}.pdf-scroll{min-height:340px;max-height:500px}.transaction-list{min-height:200px;max-height:470px}.panel-heading .subtle{display:none}}@media(max-width:620px){.app-header{height:65px}.header-inner{padding:0 20px;gap:12px}.brand{font-size:18px;gap:8px}.brand-mark{width:29px;height:32px}.brand-mark svg{width:18px}.header-actions{gap:3px}.header-divider{margin:0 3px}.header-actions .icon-button{width:29px}.theme-control{gap:0}.theme-control button{width:28px;height:27px}.main-content{width:calc(100% - 40px);padding-top:34px}.main-content.empty-state{padding-top:54px}.page-header{gap:16px;align-items:flex-start;margin-bottom:27px}h1{font-size:28px;letter-spacing:-.9px}.eyebrow{font-size:9px;margin-bottom:12px}.page-header p{font-size:12px;max-width:260px;line-height:1.7;margin-top:10px}.page-header>.button{font-size:11px;padding:8px 10px;min-height:35px;margin-top:20px}.upload-card{min-height:315px;padding:35px 20px 30px;border-radius:12px}.upload-card h2{font-size:17px}.file-bar{padding:16px;gap:11px;flex-wrap:wrap}.file-icon{width:34px;height:40px}.file-bar>div:nth-child(2){flex:1}.file-bar strong{font-size:12px}.file-bar>div>span{font-size:10px}.file-bar>.badge{display:none}.file-bar-actions{width:100%;margin:8px 0 0}.file-bar-actions .button{flex:1;min-height:42px;font-size:12px}.recognition-summary{padding:16px 1px}.recognition-summary.uncertain{flex-wrap:wrap;gap:10px;padding:14px}.recognition-summary.uncertain>.button{margin-left:29px}.recognition-copy p{font-size:10px}.parsing-notes{padding:13px 14px}.parsing-notes li{font-size:11px}.parsing-notes small{font-size:9px}.result-preview>summary{padding:15px 13px;font-size:11px}.review-heading{margin:16px 12px 10px}.review-heading h2{font-size:11px}.review-heading h2 span{font-size:9px;margin-left:5px}.review-workspace{gap:12px;margin:0 10px 12px}.pdf-scroll{padding:15px}.csv-footer{flex-direction:column;align-items:flex-start;gap:4px;font-size:9px}.session-note{font-size:9px}.modal-backdrop{padding:14px}.modal{padding:22px 20px;max-height:calc(100svh - 28px);border-radius:12px}.modal footer .button{font-size:11px;padding:9px 12px}.toast{bottom:18px;font-size:11px;padding:9px 10px}}@media(max-width:375px){.header-inner{padding:0 15px}.header-divider{display:none}.brand{font-size:17px;gap:6px}.header-actions{gap:0}.main-content{width:calc(100% - 30px)}}
