:root{color-scheme:dark;--bg-primary: #0f1828;--bg-secondary: #122036;--bg-tertiary: #1b2e4a;--bg-surface: rgba(18, 28, 45, .88);--bg-surface-strong: rgba(24, 36, 58, .96);--bg-surface-soft: rgba(21, 33, 51, .82);--bg-surface-hover: rgba(29, 45, 71, .96);--bg-overlay: rgba(2, 6, 23, .66);--glass-bg: rgba(18, 28, 45, .84);--glass-border: rgba(145, 168, 191, .18);--text-primary: #f4f8ff;--text-secondary: #cfdaea;--text-muted: #8fa6bf;--text-inverse: #0f1828;--border-subtle: rgba(145, 168, 191, .16);--border-strong: rgba(145, 168, 191, .24);--color-cyan: #5dd3ff;--color-emerald: #34d399;--color-purple: #a78bfa;--color-rose: #fb7185;--color-amber: #fbbf24;--color-blue: #8bd7ff;--color-blue-strong: #57bfff;--color-blue-soft: rgba(87, 191, 255, .16);--color-success-soft: rgba(52, 211, 153, .14);--color-warning-soft: rgba(251, 191, 36, .14);--color-danger-soft: rgba(251, 113, 133, .14);--font-family: Inter, "Noto Sans Thai", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--transition-smooth: all .22s cubic-bezier(.4, 0, .2, 1);--radius-sm: 12px;--radius-md: 16px;--radius-lg: 20px;--radius-xl: 24px;--shadow-soft: 0 12px 28px rgba(2, 8, 23, .16);--shadow-card: 0 20px 42px rgba(2, 8, 23, .2);--shadow-panel: 0 28px 60px rgba(2, 8, 23, .24);--focus-ring: 0 0 0 4px rgba(87, 191, 255, .22);color:var(--text-primary);background:radial-gradient(circle at top left,rgba(87,191,255,.18),transparent 28%),radial-gradient(circle at top right,rgba(96,165,250,.14),transparent 24%),radial-gradient(circle at bottom center,rgba(34,211,238,.08),transparent 28%),var(--bg-primary)}body{color:var(--text-primary);background:var(--bg-primary)}body:before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,#ffffff4d,#ffffff14),radial-gradient(circle at 10% 0%,rgba(87,191,255,.08),transparent 18%),radial-gradient(circle at 80% 5%,rgba(168,85,247,.05),transparent 18%);z-index:-1}:root{--content-width: 1600px;--panel-padding: 16px;--control-gap: 8px}.app-shell{min-height:100vh;display:flex;flex-direction:column;background:var(--bg-primary)}.app-topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:14px 24px;border-bottom:1px solid var(--border-subtle);background:var(--bg-surface);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:var(--shadow-soft)}.workspace-heading strong{display:block;color:var(--text-primary);font-size:17px;font-weight:800;letter-spacing:-.02em}.workspace-heading span{display:block;margin-top:3px;color:var(--text-muted);font-size:12px}.tabs-nav{display:flex;gap:8px;padding:14px 24px 0;border-bottom:1px solid var(--border-subtle);background:var(--bg-surface-soft);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.tab-btn{position:relative;padding:12px 18px 14px;border:0;border-radius:14px 14px 0 0;color:var(--text-muted);background:transparent;font-size:14px;font-weight:700;text-decoration:none}.tab-btn.active{color:var(--text-primary)}.tab-btn.active:after{content:"";position:absolute;right:12px;bottom:-1px;left:12px;height:2px;border-radius:999px;background:linear-gradient(90deg,var(--color-blue),var(--color-cyan))}.settings-workspace{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:18px;align-items:start}.settings-stage{display:grid;gap:16px;min-width:0}.settings-panel-frame,.settings-rail-hero{display:grid;gap:14px;min-width:0;padding:16px;border:1px solid var(--border-subtle);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.04),transparent 22%),var(--bg-surface);box-shadow:var(--shadow-card);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.settings-nav-item{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--border-subtle);border-radius:16px;color:var(--text-primary);text-align:left;background:var(--bg-surface-soft);box-shadow:var(--shadow-soft)}.settings-nav-item.active{border-color:#2563eb3d;background:linear-gradient(135deg,#2563eb24,#0891b214)}.settings-mapping-row{display:grid;grid-template-columns:minmax(180px,.9fr) minmax(220px,1.1fr) minmax(220px,1.1fr);gap:12px;align-items:start;padding:14px;border:1px solid var(--border-subtle);border-radius:18px;background:var(--bg-surface-soft);box-shadow:var(--shadow-soft)}.settings-mapping-meta{display:grid;gap:4px;min-width:0}.settings-mapping-meta span{color:var(--text-muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em}.settings-mapping-meta strong{color:var(--text-primary);font-size:14px;font-weight:800}.settings-mapping-meta small{color:var(--text-secondary);font-size:12px;line-height:1.45;word-break:break-word}.settings-nav-item span{color:var(--text-muted);font-size:12px;line-height:1.35}@media(max-width:1180px){.app-topbar{grid-template-columns:1fr;text-align:left}.workspace-heading{text-align:left}.topbar-actions{justify-self:start}.settings-workspace{grid-template-columns:1fr}.settings-rail{position:static}}@media(max-width:860px){.main-panel{padding:14px}.tabs-nav{padding:10px 16px 0;overflow-x:auto}}@media(max-width:560px){.main-panel{padding:10px}.app-topbar{padding:12px 14px}.tabs-nav{padding:8px 14px 0}.settings-mapping-row{grid-template-columns:1fr}}.primary-button,.ghost-button,.danger-button,.icon-button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 14px;border:1px solid transparent;border-radius:999px;font-weight:650;line-height:1;transition:var(--transition-smooth)}.primary-button{color:var(--text-inverse);border-color:#2563eb42;background:linear-gradient(135deg,var(--color-blue-strong),#0ea5e9);box-shadow:0 16px 28px #2563eb2e}.ghost-button{color:var(--text-primary);border-color:var(--border-subtle);background:var(--bg-surface);box-shadow:var(--shadow-soft)}.danger-button{color:#9f1239;border-color:#e11d482e;background:var(--color-danger-soft)}.icon-button{width:38px;padding:0;color:var(--text-primary);border-color:var(--border-subtle);background:var(--bg-surface)}.primary-button:hover,.ghost-button:hover,.danger-button:hover,.icon-button:hover{transform:translateY(-1px)}.primary-button:focus-visible,.ghost-button:focus-visible,.danger-button:focus-visible,.icon-button:focus-visible{outline:none;box-shadow:var(--focus-ring)}.page-header,.metric,.card,.review-section-panel,.review-table-panel,.settings-panel,.settings-home,.settings-home-footer,.setup-summary,.setup-banner,.issue-list,.chart-panel,.upload-panel,.activity-panel,.merge-candidate-panel,.merge-group,.empty-state{border:1px solid var(--border-subtle);border-radius:var(--radius-lg);background:var(--bg-surface);box-shadow:var(--shadow-card);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:var(--text-primary);font-size:14px;line-height:1.55;letter-spacing:-.01em}.page-header{position:relative;overflow:hidden;padding:18px 20px}.card{padding:16px}.metric{padding:15px}.metric:before{content:"";display:block;height:3px;margin-bottom:14px;border-radius:999px;background:linear-gradient(90deg,var(--color-blue),var(--color-cyan))}.metric span,.card-header span,.settings-card .card-head span,.info-row span,.chart-header span,.muted-note{color:var(--text-muted)}.page-header h1,.metric strong,.card-header strong,.settings-card .card-head strong,.setup-summary h2,.settings-home h3,.chart-header strong,.section-title{font-weight:800;letter-spacing:-.02em}.page-header h1{font-size:25px;line-height:1.12}.metric strong{font-size:28px;line-height:1.08;font-variant-numeric:tabular-nums}.card-header strong,.settings-card .card-head strong,.chart-header strong,.section-title,.setup-summary h2,.settings-home h3{font-size:17px;line-height:1.18}.card p,.settings-card p,.review-card p,.setup-summary p,.setup-banner p,.chart-panel p,.upload-panel p,.activity-panel p{margin:0;color:var(--text-secondary);line-height:1.58}.card strong,.settings-card strong,.review-card strong,.setup-summary strong,.setup-banner strong{color:var(--text-primary)}.card-header,.chart-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.review-card{display:grid;grid-template-columns:78px 1fr;gap:12px;padding:10px;border:1px solid var(--border-subtle);border-radius:18px;background:var(--bg-surface-soft);box-shadow:var(--shadow-soft)}.settings-card{display:grid;gap:10px;padding:14px;border:1px solid var(--border-subtle);border-radius:18px;background:var(--bg-surface-soft);box-shadow:var(--shadow-soft)}.review-metrics,.settings-health-strip,.settings-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.setup-summary,.setup-banner{display:flex;align-items:center;justify-content:space-between;gap:12px}.setup-summary h2,.settings-home h3{color:var(--text-primary)}.review-workspace,.settings-home,.issue-list,.chart-panel,.upload-panel,.activity-panel{display:grid;gap:14px}.empty-state{padding:22px;text-align:center;color:var(--text-secondary)}.table-shell{width:100%;overflow:auto;border:1px solid var(--border-subtle);border-radius:18px;box-shadow:var(--shadow-panel);background:var(--bg-surface)}.records-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;table-layout:auto;font-size:12.2px;color:var(--text-primary);white-space:nowrap}.records-table th,.records-table td{padding:8px 9px;border-right:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle);background:var(--bg-surface);text-align:left;vertical-align:middle}.records-table th{position:sticky;top:0;z-index:4;color:var(--color-blue-strong);background:linear-gradient(180deg,#edf4fffa,#e0ecfcfa);border-bottom:1px solid rgba(37,99,235,.18);font-weight:800}.records-table tr:nth-child(2n) td{background:#0c1524e6}.records-table tr:hover td{background:#1b2c46f5}.records-table tr.row-review td{background:linear-gradient(90deg,#1d4ed833,#0ea5e91a)}.records-table tr.is-selected td{background:linear-gradient(90deg,#1e40af47,#082f49eb);box-shadow:inset 0 0 0 1px #7dd3fc1f}.review-queue-table .review-user-cell,.review-queue-table .review-wrap-cell,.review-queue-table .ref-cell{white-space:normal}.ref-cell{width:200px;min-width:200px;max-width:200px;vertical-align:top;white-space:normal}.ref-link{display:block;max-width:186px;overflow:hidden;color:var(--color-blue-strong);font-weight:800;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.ref-secondary,.cell-text,.review-cell-value{display:block;overflow:hidden;color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap}.status,.health-pill,.chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:999px;font-size:12px;font-weight:700}.status{padding:3px 9px;border:1px solid var(--border-subtle);color:var(--text-primary);background:var(--bg-surface)}.health-pill{flex-direction:column;align-items:flex-start;gap:4px;padding:10px;border:1px solid var(--border-subtle);border-radius:16px;background:var(--bg-surface);box-shadow:var(--shadow-soft)}.health-pill span{color:var(--text-muted)}.chip{padding:4px 10px;border:1px solid var(--border-subtle);color:var(--text-primary);background:var(--bg-surface-soft)}.modal-overlay,.merge-modal-overlay{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:16px;background:var(--bg-overlay);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.modal-content,.merge-modal{width:min(1200px,100%);max-height:calc(100vh - 32px);display:grid;gap:14px;padding:18px;overflow:auto;border:1px solid var(--border-subtle);border-radius:22px;background:var(--bg-surface);box-shadow:var(--shadow-panel)}.modal-header,.merge-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.modal-header h2,.merge-modal-header h2{margin:0;color:var(--text-primary);font-size:20px}.modal-header p,.merge-modal-header p{margin:6px 0 0;color:var(--text-muted);font-size:13px}.modal-actions,.merge-modal-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.confirm-dialog{display:grid;gap:10px;padding:14px;border:1px solid var(--border-subtle);border-radius:18px;background:var(--bg-surface-soft)}input,select,textarea{font:inherit;color:var(--text-primary);border:1px solid var(--border-subtle);border-radius:14px;background:var(--bg-surface-strong);box-shadow:inset 0 1px #ffffff0a}input,select{height:38px;min-width:0;padding:0 10px}textarea{width:100%;min-width:0;min-height:84px;padding:10px;resize:vertical}input::placeholder,textarea::placeholder{color:var(--text-muted)}input:focus,select:focus,textarea:focus{border-color:#2563eb8c;box-shadow:var(--focus-ring);outline:none}.field{display:grid;gap:5px;color:var(--text-secondary);font-size:13px}.search-box{width:min(520px,100%);display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--border-subtle);border-radius:14px;background:var(--bg-surface-strong);box-shadow:inset 0 1px #ffffff0a}.search-box input{flex:1;padding:0;border:0;background:transparent;box-shadow:none;outline:none}.toolbar{display:flex;justify-content:space-between;gap:12px;padding:14px;border:1px solid var(--border-subtle);border-radius:18px;background:var(--bg-surface);box-shadow:var(--shadow-soft);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.toolbar-title{display:grid;gap:4px}.toolbar-title strong,.section-title{color:var(--text-primary)}.toolbar-title span{color:var(--text-muted);font-size:12px}.toolbar-content{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.upload-fields,.two-col{display:grid;gap:10px}.two-col{grid-template-columns:1fr 1fr}.upload-fields{grid-template-columns:minmax(180px,1.2fr) minmax(180px,1.2fr) minmax(170px,.65fr) 140px}:root{color-scheme:light dark;font-family:Inter,Noto Sans Thai,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:radial-gradient(circle at top left,rgba(37,99,235,.08),transparent 28%),radial-gradient(circle at top right,rgba(124,58,237,.06),transparent 22%),#edf2f7;color:#0f172a;--surface: rgba(255, 255, 255, .94);--surface-solid: #ffffff;--surface-soft: #f6f9fc;--surface-info: #eaf2ff;--surface-warm: #fff8ef;--border: #d6e0ec;--muted: #5f7087;--blue: #2563eb;--blue-dark: #1d4ed8;--green: #15803d;--yellow: #b45309;--red: #b91c1c;--shadow: 0 18px 45px rgba(25, 38, 56, .1);--shadow-soft: 0 10px 28px rgba(25, 38, 56, .08);--shadow-card: 0 12px 32px rgba(25, 38, 56, .08);--radius: 14px;--radius-sm: 10px;--select-column-width: 58px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:radial-gradient(circle at top left,rgba(15,105,200,.08),transparent 28%),radial-gradient(circle at top right,rgba(213,119,6,.06),transparent 22%),#edf2f7}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.app-shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr;background:linear-gradient(180deg,#ffffff73,#fff3),transparent}.sidebar{display:flex;flex-direction:column;gap:22px;padding:20px 14px;color:#fff;background:linear-gradient(180deg,#0d141ffa,#0b121cf5);box-shadow:18px 0 45px #0f172029}.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#fff;font-weight:800;background:linear-gradient(135deg,#60a5fa,#2563eb);box-shadow:0 10px 24px #2563eb47}.brand strong{display:block;font-size:15px}.brand span{display:block;margin-top:2px;color:#a9b7c8;font-size:12px}.sidebar nav{display:grid;gap:4px}.nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;color:#c9d4e2;text-decoration:none;font-size:14px;transition:background-color .15s ease,transform .15s ease,color .15s ease}.nav-item.active,.nav-item:hover{color:#fff;background:#ffffff14;transform:translate(2px)}.employee-chip{display:grid;gap:2px;padding-top:12px;border-top:1px solid #203344;color:#dbe7f4}.employee-chip span{color:#91a1b4;font-size:12px}.logout{margin-top:auto;color:#c9d4e2}.main-panel{min-width:0;padding:28px 30px 36px}.page{max-width:1600px;margin:0 auto}.records-page{max-width:1640px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px;padding:18px 20px;border:1px solid rgba(215,226,238,.85);border-radius:18px;background:#ffffffbd;box-shadow:var(--shadow-soft);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.page-header h1{margin:0;font-size:24px;letter-spacing:-.02em}.page-header p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.45}.page-actions,.record-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.record-summary span{height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 11px;border:1px solid var(--border);border-radius:999px;color:#0f172a;background:#f1f5f9f0;font-size:12px;box-shadow:var(--shadow-soft)}.record-summary strong{color:#0f172a;font-size:13px}.summary-metrics{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:10px;align-items:stretch}.summary-metrics-top{margin:16px 0 14px;padding:0 2px}.summary-metric{display:grid;gap:4px;min-width:128px;padding:12px 14px;border:1px solid rgba(148,163,184,.22);border-radius:18px;background:linear-gradient(180deg,#f8fafcfa,#e2eefff5);box-shadow:0 12px 26px #0f172a14}.summary-metric-label{color:#475569;font-size:12px;font-weight:700;letter-spacing:-.01em}.summary-metric strong{color:#0f172a;font-size:18px;line-height:1.1;font-weight:900;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.summary-metric-success{border-color:#10b98138;background:linear-gradient(180deg,#ecfdf5fa,#d1fae5f5)}.summary-metric-warning{border-color:#f59e0b38;background:linear-gradient(180deg,#fffbebfa,#fef3c7f5)}.summary-metric-info{border-color:#3b82f638;background:linear-gradient(180deg,#eff6fffa,#dbeafef5)}.code-block{margin:0 0 12px;padding:12px;overflow:auto;border-radius:8px;color:#e8eef6;background:#0f1720;font-size:12px;white-space:pre-wrap;word-break:break-word}input,select{height:38px;min-width:0;padding:0 10px;border:1px solid var(--border);border-radius:8px;color:#17202a;background:#fff}textarea{width:100%;min-width:0;padding:10px;border:1px solid var(--border);border-radius:var(--radius-sm);color:#17202a;background:#fff;resize:vertical}.primary-button,.ghost-button,.danger-button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 14px;border:1px solid transparent;border-radius:12px;font-weight:650;line-height:1;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease,border-color .15s ease,color .15s ease}.primary-button{color:#fff;background:linear-gradient(180deg,#1672d6,#0f69c8);box-shadow:0 10px 22px #0f69c82e}.primary-button:hover{background:linear-gradient(180deg,#0f69c8,#0a5bb0);transform:translateY(-1px)}.ghost-button{border-color:var(--border);color:#243344;background:#ffffffd1;text-decoration:none}.ghost-button:hover{border-color:#a9c5e6;box-shadow:0 8px 18px #19263814;transform:translateY(-1px)}.danger-button{border-color:#f2b8bf;color:var(--red);background:#fff;text-decoration:none}.danger-button:hover{background:#fdecef;transform:translateY(-1px)}.wide{width:100%}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px;margin-bottom:16px}.metric{padding:15px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(180deg,#fffffff0,#f8fbfff0);box-shadow:var(--shadow-soft)}.metric span{display:block;margin-bottom:8px;color:var(--muted);font-size:13px}.metric strong{font-size:24px;letter-spacing:-.01em}.metric .accent{color:var(--blue)}.metric.warning strong{color:var(--yellow)}.metric.danger strong{color:var(--red)}.chart-panel,.issue-list,.table-shell,.review-form,.slip-panel,.settings-grid,.upload-panel,.activity-panel{border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-card)}.chart-panel{margin-bottom:16px;padding:16px}.ops-grid{display:grid;grid-template-columns:minmax(360px,1fr) minmax(320px,.8fr);gap:14px;margin-bottom:16px}.chart-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.chart-header strong{display:inline-flex;align-items:center;gap:7px}.chart-header span{color:var(--muted);font-size:12px}.bar-row{display:grid;grid-template-columns:140px 1fr;align-items:center;gap:12px;margin:10px 0;font-size:13px}.bar-track{height:18px;overflow:hidden;border-radius:999px;background:#edf1f5}.bar-fill{height:100%;border-radius:999px;background:var(--green)}.bar-fill.warning{background:#d99026}.bar-fill.danger{background:var(--red)}.toolbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px;padding:12px;flex-wrap:wrap;border:1px solid rgba(215,224,234,.72);border-radius:16px;background:#ffffffc2;box-shadow:var(--shadow-soft);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.preset-bar{display:flex;align-items:center;gap:7px;margin-bottom:10px;flex-wrap:wrap}.preset-bar button{height:32px;padding:0 13px;border:1px solid var(--border);border-radius:999px;color:#334155;background:var(--surface);font-size:12px;font-weight:700}.preset-bar button:hover{border-color:#9bc7f4;color:var(--blue)}.preset-bar button.active{border-color:#0f69c8;color:#fff;background:#0f69c8;box-shadow:0 6px 16px #0f69c838}.search-box{width:min(520px,100%);display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--border);border-radius:14px;background:#ffffffeb;box-shadow:inset 0 1px #ffffff80}.search-box input{flex:1;padding:0;border:0;outline:none}.filter-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.filter-controls input{width:142px}.filter-controls select{min-width:150px}.filter-scope-pill{min-height:38px;display:inline-flex;align-items:center;padding:0 14px;border:1px solid rgba(14,165,233,.24);border-radius:999px;background:#0ea5e91a;color:#0369a1;font-size:13px;font-weight:800;white-space:nowrap}.review-date-filter-controls{justify-content:flex-start}.table-header-button{min-height:28px;display:inline-flex;align-items:center;gap:5px;padding:0;border:0;color:inherit;background:transparent;font:inherit;font-weight:800;cursor:pointer}.table-header-button:hover{color:var(--accent)}.merge-bar{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding:10px;border:1px solid var(--border);border-radius:14px;background:#f7f9fceb}.merge-bar span{min-width:80px;color:var(--muted);font-size:12px;font-weight:800}.merge-bar input{flex:1}.review-page{display:grid;gap:14px}.review-metrics{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));margin-bottom:0}.review-metrics .metric{padding:12px 14px;border-radius:12px;background:linear-gradient(180deg,#fff,#f8fbff)}.review-metrics .metric strong{font-size:20px}.review-workspace{display:grid;gap:14px}.review-section-panel{padding:14px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:var(--shadow-soft)}.review-candidate-panel{background:linear-gradient(180deg,#fbfcff,#f6f9fd)}.review-candidate-panel .chart-header{margin-bottom:10px}.merge-candidate-panel{margin-bottom:16px;padding:14px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(180deg,#f8fbfff5,#f4f7fbf5);box-shadow:var(--shadow-soft)}.merge-group-list{display:grid;gap:12px}.merge-group{padding:12px;border:1px solid rgba(94,106,210,.12);border-radius:14px;background:#ffffffdb}.merge-group-compact{border-color:#5e6ad21a;background:#fff;box-shadow:0 8px 20px #0f172a08}.merge-group-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}.merge-group-compact .merge-group-header{align-items:center;margin-bottom:6px}.merge-group-title{display:block;margin-bottom:2px;font-size:14px;line-height:1.35}.merge-group-meta{display:flex;gap:8px;margin-top:6px;flex-wrap:wrap;color:var(--muted);font-size:12px}.merge-group-meta span{min-height:24px;display:inline-flex;align-items:center;padding:0 9px;border:1px solid var(--border);border-radius:999px;background:#f7faff}.merge-job-list{display:flex;gap:8px;flex-wrap:wrap}.merge-job-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid rgba(94,106,210,.18);border-radius:999px;background:#fff}.merge-job-chip small{color:var(--muted)}.merge-job-chip-static{display:grid;align-items:start;gap:3px;border-radius:12px;background:#fafcff;box-shadow:inset 0 0 0 1px #7db5ef1f}.merge-job-chip-static.is-current{border-color:#7db5ef;background:#eff6ff}.merge-job-chip-static span,.merge-job-chip-static small{display:block;white-space:nowrap}.merge-modal-overlay{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:16px;background:#0f17208c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.merge-modal{width:min(1480px,100%);max-height:calc(100vh - 32px);display:grid;gap:14px;padding:18px;overflow:auto;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 28px 80px #0a121c47}.merge-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.merge-modal-header h2{margin:0;font-size:20px}.merge-modal-header p{margin:6px 0 0;color:var(--muted);font-size:13px}.merge-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.merge-summary-grid .info-row{padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft)}.merge-summary-grid .info-row span{font-size:11px}.merge-summary-grid .info-row strong{font-size:13px;word-break:break-word}.merge-warning-box{display:grid;align-items:start;gap:8px}.merge-warning-list{display:grid;gap:4px}.merge-modal-table-shell{max-height:360px;overflow:auto;border:1px solid var(--border);border-radius:12px}.merge-modal-table{min-width:1840px;width:max-content;table-layout:fixed;white-space:normal}.merge-modal-table th,.merge-modal-table td{padding-top:12px;padding-bottom:12px;vertical-align:top;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.35}.merge-modal-actions{justify-content:flex-end}.merge-modal .field textarea{min-height:84px}.merge-confirm-row{display:flex;align-items:center;gap:10px;margin-top:10px;color:var(--muted);font-size:.95rem}.merge-modal .select-col input[type=radio]{width:18px;height:18px}.merge-thumb-link{display:inline-flex;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:#f4f7fb}.merge-thumb{width:64px;height:78px;display:block;object-fit:contain;background:#fff}.merge-modal-table th:nth-child(1),.merge-modal-table td:nth-child(1){width:64px;min-width:64px}.merge-modal-table th:nth-child(2),.merge-modal-table td:nth-child(2){width:78px;min-width:78px}.merge-modal-table th:nth-child(3),.merge-modal-table td:nth-child(3){width:92px;min-width:92px}.merge-modal-table th:nth-child(4),.merge-modal-table td:nth-child(4){width:150px;min-width:150px}.merge-modal-table th:nth-child(5),.merge-modal-table td:nth-child(5){width:180px;min-width:180px}.merge-modal-table th:nth-child(6),.merge-modal-table td:nth-child(6){width:230px;min-width:230px}.merge-modal-table th:nth-child(7),.merge-modal-table td:nth-child(7){width:100px;min-width:100px}.merge-modal-table th:nth-child(8),.merge-modal-table td:nth-child(8){width:210px;min-width:210px}.merge-modal-table th:nth-child(9),.merge-modal-table td:nth-child(9){width:190px;min-width:190px}.merge-modal-table th:nth-child(10),.merge-modal-table td:nth-child(10){width:210px;min-width:210px}.merge-modal-table th:nth-child(11),.merge-modal-table td:nth-child(11){width:130px;min-width:130px}.merge-modal-table th:nth-child(12),.merge-modal-table td:nth-child(12){width:145px;min-width:145px}.merge-modal-table th:nth-child(13),.merge-modal-table td:nth-child(13){width:100px;min-width:100px}.merge-modal-table th:nth-child(14),.merge-modal-table td:nth-child(14){width:150px;min-width:150px}.table-shell{max-height:calc(100vh - 190px);overflow:auto;border-radius:16px;box-shadow:var(--shadow-soft)}.review-table-panel .table-shell{max-height:calc(100vh - 340px);box-shadow:none}.records-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;table-layout:auto;font-size:12.2px;white-space:nowrap}.records-table th,.records-table td{padding:8px 9px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);text-align:left;vertical-align:middle;background:var(--surface)}.summary-comparison-table td{height:48px}.summary-side-pill{display:inline-flex;align-items:center;justify-content:center;min-width:62px;padding:4px 9px;border-radius:999px;font-weight:800;border:1px solid var(--border)}.summary-side-pill.buy{color:#16a34a;background:#22c55e1f;border-color:#22c55e59}.summary-side-pill.sell{color:#ef4444;background:#ef44441f;border-color:#ef444459}.summary-side-pill.internal{color:var(--text-muted);background:#94a3b81f}.dashboard-summary-page{max-width:1480px}.dashboard-summary-page .page-header{align-items:center;min-height:92px;padding:22px 24px;border-radius:18px}.dashboard-summary-page .page-header h1{font-size:22px;line-height:1.18}.dashboard-summary-page .page-header p{margin-top:6px;font-size:12.5px}.dashboard-summary-page .toolbar{min-width:min(100%,780px);padding:12px 14px;border-radius:16px}.dashboard-summary-page .toolbar-content{gap:8px}.dashboard-summary-page .toolbar input,.dashboard-summary-page .toolbar select{height:36px;border-radius:8px;font-size:13px;font-weight:700}.dashboard-summary-page .metric-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.dashboard-summary-page .metric{min-height:112px;padding:13px 14px;border-radius:14px}.dashboard-summary-page .metric:before{height:3px;margin-bottom:12px}.dashboard-summary-page .metric>span{margin-bottom:7px;font-size:10.5px;line-height:1.2;letter-spacing:.04em}.dashboard-summary-page .metric strong{display:block;max-width:100%;overflow-wrap:anywhere;font-size:clamp(17px,1.25vw,23px);line-height:1.08;font-variant-numeric:tabular-nums}.dashboard-summary-page .metric.tone-success:before{background:linear-gradient(90deg,#22c55ef2,#10b981e0)}.dashboard-summary-page .metric.tone-success strong{color:#6ee7a8}.dashboard-summary-page .metric.tone-danger:before{background:linear-gradient(90deg,#f87171f2,#ef4444e0)}.dashboard-summary-page .metric.tone-danger strong{color:#fda4af}.dashboard-summary-page .metric-value-stack{display:grid;gap:5px;text-transform:none;letter-spacing:0}.dashboard-summary-page .metric-value-stack span{display:block;margin:0;color:inherit;font-size:clamp(17px,1.18vw,22px);line-height:1.06;text-transform:none;letter-spacing:0}.dashboard-summary-page .metric-value-stack small{display:block;color:var(--muted);font-size:13px;line-height:1.15;font-weight:800;text-transform:none;letter-spacing:0}.dashboard-summary-page .bank-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.dashboard-summary-page .bank-summary-card{padding:14px 15px;border:1px solid rgba(148,163,184,.16);border-radius:14px;background:linear-gradient(180deg,#0f172ad1,#0a101cc7);box-shadow:var(--shadow-soft)}.dashboard-summary-page .bank-summary-card span{display:block;margin-bottom:8px;color:#9ab0c7;font-size:11px;line-height:1.2;text-transform:uppercase;letter-spacing:.05em}.dashboard-summary-page .bank-summary-card strong{display:block;margin-bottom:6px;color:#f7fbff;font-size:clamp(17px,1.18vw,22px);line-height:1.06;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.dashboard-summary-page .bank-summary-card small{display:block;color:#9ab0c7;font-size:12px;line-height:1.15;font-weight:800}.dashboard-summary-page .summary-comparison-table{font-size:12.5px}.dashboard-summary-page .summary-comparison-table th{padding:10px 11px;font-size:11.5px;font-weight:900}.dashboard-summary-page .summary-comparison-table td{height:46px;padding:10px 11px;line-height:1.25}.records-table td{transition:background-color .15s ease}.records-table th{position:sticky;top:0;z-index:4;border-bottom:2px solid #c6d9ee;color:#0b4c88;background:linear-gradient(180deg,#e8f2ff,#dfeeff);font-weight:800}.column-header-helper{display:inline-flex;align-items:center;gap:4px;max-width:100%;cursor:help;white-space:nowrap}.column-header-label{min-width:0;overflow:hidden;text-overflow:ellipsis}.column-header-icon{flex:0 0 auto;color:currentColor;opacity:.62;transition:opacity .15s ease,transform .15s ease}.column-header-helper:hover .column-header-icon,.column-header-helper:focus-within .column-header-icon{opacity:1;transform:translateY(-1px)}.records-table tr:nth-child(2n) td{background:#f8fafc}.records-table tr:hover td{background:#eef6ff}.records-table tr.row-review td{background:#fffaf0}.records-table tr.row-review:hover td{background:#fff4dc}.records-table th:nth-child(1),.records-table td:nth-child(1){width:58px}.records-table th:nth-child(2),.records-table td:nth-child(2){width:210px}.records-table th:nth-child(3),.records-table td:nth-child(3){width:130px}.records-table th:nth-child(4),.records-table td:nth-child(4){width:100px}.records-table th:nth-child(5),.records-table td:nth-child(5){width:112px}.records-table th:nth-child(6),.records-table td:nth-child(6){width:140px}.records-table th:nth-child(7),.records-table td:nth-child(7){width:140px}.records-table th:nth-child(8),.records-table td:nth-child(8){width:190px}.records-table th:nth-child(9),.records-table td:nth-child(9){width:170px}.records-table th:nth-child(10),.records-table td:nth-child(10){width:165px}.records-table th:nth-child(11),.records-table td:nth-child(11){width:112px}.records-table th:nth-child(12),.records-table td:nth-child(12){width:102px}.records-table th:nth-child(13),.records-table td:nth-child(13){width:120px}.records-table th:nth-child(14),.records-table td:nth-child(14){width:76px}.records-table th:nth-child(15),.records-table td:nth-child(15){width:82px}.records-table th:nth-child(16),.records-table td:nth-child(16){width:125px}.records-table th:nth-child(17),.records-table td:nth-child(17){width:112px}.review-queue-table{min-width:1460px}.review-queue-table th{background:linear-gradient(180deg,#ecf4ff,#e3eeff)}.review-queue-table tr:nth-child(2n) td{background:#fafcff}.review-queue-table tr:hover td{background:#eef7ff}.review-queue-table tr.row-review td{background:#fff9ed}.review-queue-table tr.row-review:hover td{background:#fff3dc}.review-queue-table .sticky-col{left:0}.review-queue-table .row-actions{justify-content:flex-end}.review-queue-table th:nth-child(1),.review-queue-table td:nth-child(1){width:130px}.review-queue-table th:nth-child(2),.review-queue-table td:nth-child(2){width:200px}.review-queue-table th:nth-child(3),.review-queue-table td:nth-child(3){width:100px}.review-queue-table th:nth-child(4),.review-queue-table td:nth-child(4){width:220px}.review-queue-table th:nth-child(5),.review-queue-table td:nth-child(5){width:120px}.review-queue-table th:nth-child(6),.review-queue-table td:nth-child(6){width:126px}.review-queue-table th:nth-child(7),.review-queue-table td:nth-child(7){width:170px}.review-queue-table th:nth-child(8),.review-queue-table td:nth-child(8){width:110px}.review-queue-table th:nth-child(9),.review-queue-table td:nth-child(9){width:240px}.review-queue-table th:nth-child(10),.review-queue-table td:nth-child(10){width:160px}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.row-actions .ghost-button,.row-actions .danger-button{height:31px;padding:0 10px;font-size:12px}.sticky-col{position:sticky;left:var(--select-column-width, 58px);z-index:3;min-width:210px;box-shadow:6px 0 12px #19263812}th.sticky-col{z-index:5;background:#dfeeff}.ref-cell{white-space:normal}.ref-link{display:block;max-width:186px;overflow:hidden;color:#17324d;font-weight:800;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.ref-link:hover{color:var(--blue);text-decoration:underline}.ref-cell .ref-secondary{display:block;max-width:100%;margin-top:4px;overflow:hidden;color:var(--muted);font-size:11px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.records-table .ref-cell{width:200px;min-width:200px;max-width:200px;vertical-align:top;white-space:normal}.records-table .ref-cell .ref-link,.records-table .ref-cell .ref-secondary{width:100%;max-width:100%}.review-queue-table .ref-link{max-width:170px}.review-queue-table .ref-cell{width:200px;min-width:200px;max-width:200px;vertical-align:top;white-space:normal}.review-queue-table .ref-cell .ref-link,.review-queue-table .ref-cell .ref-secondary{width:100%;max-width:100%}.review-queue-table .cell-text{max-width:190px}.cell-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-queue-table .cell-stack,.merge-modal-table .cell-stack{display:flex;flex-direction:column;gap:2px}.review-queue-table .cell-stack small,.merge-modal-table .cell-stack small{color:var(--muted);font-size:11px}.select-col{text-align:center!important}.select-col input{width:18px;height:18px}.time-cell{color:#334155;font-variant-numeric:tabular-nums}.num{text-align:right!important}.mono{font-family:SFMono-Regular,Consolas,monospace}.review-date-cell{vertical-align:top;white-space:normal}.review-date-cell span,.review-date-cell small{display:block}.review-date-cell span{font-weight:600;white-space:nowrap}.review-date-cell small{margin-top:2px;color:var(--muted);white-space:nowrap}.review-user-cell{width:240px;min-width:240px;max-width:240px;vertical-align:top}.review-user-cell .cell-stack{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.review-user-cell .review-cell-value{display:block;width:100%;overflow:hidden;line-height:1.35;overflow-wrap:anywhere;text-overflow:ellipsis;white-space:normal;word-break:break-word}.review-user-cell small{display:block;width:100%;overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.customer-cell{display:-webkit-box;max-height:2.7em;overflow:hidden;line-height:1.35;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.image-button{height:28px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;border:1px solid #b9d7f7;border-radius:7px;color:var(--blue);background:#eff6ff;font-weight:700;text-decoration:none}.image-button:hover{background:#dceeff}.status{display:inline-flex;padding:3px 9px;border-radius:999px;color:#415269;background:#edf1f5;font-size:11px;font-weight:700;white-space:nowrap}.status.completed{color:var(--green);background:#e8f7f0}.status.needs_review,.status.retry_pending{color:var(--yellow);background:#fff4df}.status.ocr_failed{color:var(--red);background:#fdecef}.status.processing,.status.stored{color:var(--blue);background:var(--surface-info)}.status.deleted{color:#4b5563;background:#f3f4f6}.sync-mini{color:var(--muted);font-size:11px;font-weight:700}.review-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}.review-card{display:grid;grid-template-columns:78px 1fr;gap:12px;padding:10px;border:1px solid var(--border);border-radius:16px;color:inherit;background:linear-gradient(180deg,#fffffff5,#fafcfff5);text-decoration:none;box-shadow:var(--shadow-soft);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.review-card:hover{border-color:#7db5ef;box-shadow:var(--shadow-card);transform:translateY(-1px)}.review-card img{width:78px;height:96px;object-fit:cover;border-radius:10px;background:#e5eaf0}.review-card strong,.review-card span,.review-card small{display:block;margin-top:5px}.review-card span,.review-card small{color:var(--muted);font-size:12px}.detail-layout{display:grid;grid-template-columns:minmax(280px,390px) 1fr;align-items:start;gap:16px}.slip-panel{position:sticky;top:20px;display:grid;gap:12px;padding:12px}.slip-panel img{width:100%;border-radius:12px;background:#e5eaf0;box-shadow:var(--shadow-soft)}.review-form{display:grid;gap:12px;padding:16px;box-shadow:none}.review-detail-summary{margin-bottom:0}.review-detail-summary .metric{background:linear-gradient(180deg,#fff,#f9fbfe)}.detail-toolbar{margin-bottom:10px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.four-col{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.field{display:grid;gap:5px;color:var(--muted);font-size:13px}.field input{width:100%}.field small,.form-error{margin:0;color:var(--red)}.section-title{margin:4px 0 0;font-size:14px}.alert{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:8px;font-size:13px}.alert.warning{color:var(--yellow);background:#fff4df}.alert.danger{color:var(--red);background:#fdecef}.alert.success{color:#0e7f4c;background:#e8f8ee}.sync-panel,.settings-grid{display:grid;gap:8px;padding:12px;background:linear-gradient(180deg,#f8fafcf2,#f4f7fbf2);box-shadow:none}.upload-panel{display:grid;gap:10px;margin-bottom:14px;padding:14px;background:linear-gradient(180deg,#fffffff5,#f8fbfff5);box-shadow:var(--shadow-soft)}.upload-panel.compact{margin-bottom:12px}.upload-panel input[type=file]{height:auto;padding:10px;background:var(--surface-soft)}.file-drop-zone{display:grid;gap:8px;min-height:112px;padding:18px;border:1.5px dashed rgba(96,165,250,.58);border-radius:20px;align-content:center;background:linear-gradient(135deg,#3b82f61f,#14b8a614),#0f172a6b;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}.file-drop-zone:hover,.file-drop-zone:focus,.file-drop-zone.is-dragging{border-color:#7dd3fcf5;background:linear-gradient(135deg,#3b82f633,#14b8a624),#0f172a94;outline:none;transform:translateY(-1px)}.file-drop-zone.compact{min-height:86px;padding:14px}.file-drop-zone.is-disabled{cursor:default;opacity:.62}.file-drop-zone input[type=file]{width:100%;min-height:42px;padding:8px;border:0;background:transparent}.file-drop-title{color:var(--text);font-size:.96rem;font-weight:800}.upload-fields{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(180px,1.2fr) minmax(170px,.65fr) 140px;gap:8px}.decimal-input{min-width:170px;font-variant-numeric:tabular-nums}.muted-note{color:var(--muted)}.activity-panel{display:grid;gap:8px;padding:14px;background:linear-gradient(180deg,#fffffff5,#f8fbfff5);box-shadow:var(--shadow-soft)}.activity-row,.user-row{display:grid;grid-template-columns:120px 1fr auto;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--border);font-size:12px}.activity-row:last-child,.user-row:last-child{border-bottom:0}.activity-row span,.activity-row small,.user-row span{color:var(--muted)}.user-row.user-row-editable{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:start}.user-row-main{display:grid;gap:4px;min-width:0}.user-row-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end;flex-wrap:wrap}.user-row-actions select{min-width:160px}.bot-channel-list{display:grid;gap:10px}.bot-channel-card{display:grid;gap:10px;padding:12px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(180deg,#fff,#f7fbff);box-shadow:var(--shadow-soft)}.bot-channel-card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.bot-channel-card-header strong{display:block;margin-bottom:4px}.bot-channel-card-header span{color:var(--muted);font-size:12px}.bot-channel-status{padding:4px 10px;border-radius:999px;font-size:11px;font-weight:700}.bot-channel-status.on{color:#15803d;background:#e8f7ee}.bot-channel-status.off{color:#9f1239;background:#fce8e8}.bot-channel-meta{display:grid;gap:6px;padding:10px;border:1px dashed var(--border);border-radius:12px;color:var(--muted);background:#fff;font-size:12px}.bot-channel-meta span{overflow:hidden;color:#243449;text-overflow:ellipsis;white-space:nowrap}.bot-channel-actions{width:100%;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.bot-channel-actions .ghost-button,.bot-channel-actions .danger-button{white-space:nowrap}.bot-channel-actions .bot-action{height:34px;min-width:0;padding:0 10px;font-size:12px}.discovered-group-list{display:flex;gap:6px;flex-wrap:wrap}.discovered-group-list .ghost-button{height:30px;padding:0 10px;font-size:12px}.bot-channel-webhook-input{height:34px;min-width:220px;flex:1 1 220px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:#fff}.telegram-diagnostics-panel{width:100%;display:grid;gap:10px;margin-top:10px;padding:12px;border:1px solid var(--border);border-radius:10px;background:#f7fafc}.telegram-diagnostics-panel details{padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:#fff}.telegram-diagnostics-panel summary{cursor:pointer;font-weight:600}.telegram-diagnostics-panel pre{margin:8px 0 0;font-size:12px;white-space:pre-wrap;word-break:break-word}.bot-channel-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:center;gap:10px}.bot-channel-toolbar input,.bot-channel-toolbar select{height:34px}.bot-channel-toolbar input{min-width:180px}.bot-channel-toolbar select{min-width:150px}.health-row{display:grid;gap:8px;padding:10px;border:1px solid var(--border);border-radius:8px;background:#f8fbff}.settings-panel{display:grid;gap:10px;padding:14px;border:1px solid var(--border);border-radius:16px;background:#fffffff2;box-shadow:var(--shadow-soft)}.settings-home{display:grid;gap:14px}.setup-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;flex-wrap:wrap;border:1px solid var(--border);border-radius:16px;background:linear-gradient(145deg,#f6fbff,#f3f9ff);box-shadow:var(--shadow-soft)}.setup-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;flex-wrap:wrap;border:1px solid #bfd6f4;border-radius:16px;color:#143f82;background:#e8f1ff}.setup-banner p{margin:0;color:#2a4e83;font-size:12px}.settings-health-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(146px,1fr));gap:8px;margin-bottom:12px}.settings-summary{display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px;margin-bottom:12px}.settings-summary .ghost-button{height:34px}.progress-strip{display:grid;gap:8px;padding:12px;border:1px solid var(--border);border-radius:10px;background:#fff;box-shadow:var(--shadow-soft)}.progress-strip strong{font-size:13px}.progress-strip span{color:var(--muted);font-size:12px;font-weight:700}.progress-track{width:min(520px,100%);height:10px;overflow:hidden;border-radius:999px;background:#e8edf4}.progress-fill{width:0%;height:100%;background:linear-gradient(90deg,#1d6fd3,#0c9f6d);transition:width .25s ease}.health-pill{display:flex;flex-direction:column;gap:4px;padding:10px;border:1px solid var(--border);border-radius:14px;background:#f8fafc;box-shadow:var(--shadow-soft)}.health-pill span{color:var(--muted);font-size:12px}.health-pill strong{font-size:14px;text-transform:capitalize}.health-pill.ok{border-color:#a8e7ba;color:#126d41;background:#e9f8ef}.health-pill.warning{border-color:#f4ca70;color:#8f5c00;background:#fff7e6}.health-pill.danger{border-color:#f3afb9;color:#9a2333;background:#feecef}.settings-card{display:grid;gap:10px;padding:14px;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:var(--shadow-soft);text-align:left;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.settings-card:hover{border-color:#a9c5e6;box-shadow:var(--shadow-card);transform:translateY(-2px)}.settings-card[disabled]{cursor:not-allowed;opacity:.55}.settings-card[disabled] span,.settings-card[disabled] p,.settings-card[disabled] strong{opacity:.8}.settings-card[disabled] .card-head{pointer-events:none}.settings-card .card-head{display:grid;gap:6px}.settings-card .card-head strong{font-size:14px}.settings-card .card-head span{color:var(--muted);font-size:12px}.settings-card p{margin:0;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:0}.chip{padding:4px 10px;border:1px solid #c5dbf3;border-radius:999px;color:#1d4c82;background:#edf3fc;font-size:12px}.settings-home-footer{padding:12px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(145deg,#fbfdff,#f3f7fb);box-shadow:var(--shadow-soft)}.info-mini{display:grid;gap:8px}.wizard-stepper{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap}.settings-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(320px,1fr);align-items:start;gap:14px}.compact-form{box-shadow:var(--shadow-soft)}.info-row{display:flex;justify-content:space-between;gap:14px;padding:5px 0;border-bottom:1px solid var(--border);font-size:13px}.info-row span{color:var(--muted)}.info-row strong{text-align:right;overflow-wrap:anywhere}.settings-advanced{padding:8px 12px 2px;border:1px solid var(--border);border-radius:14px;background:#fafcffe6}.settings-advanced summary{cursor:pointer;color:#193a5d;font-weight:700}.issue-list{display:grid;gap:10px;padding:14px}.empty-state{padding:22px;border:1px dashed var(--border);border-radius:14px;color:var(--muted);background:#f7f9fcf2;text-align:center}.login-page,.screen-center{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(390px,100%);display:grid;gap:14px;padding:20px;border:1px solid var(--border);border-radius:18px;background:#ffffffeb;box-shadow:var(--shadow-card);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.login-brand{margin-bottom:6px}.login-card label{display:grid;gap:6px;color:var(--muted);font-size:13px}.login-password-label .password-field-wrap{position:relative}.login-password-label .password-field-wrap input{width:100%;padding-right:40px}.login-password-label .password-toggle{position:absolute;top:50%;right:8px;width:28px;height:28px;padding:0;border:0;border-radius:6px;color:#5f6d7f;background:transparent;transform:translateY(-50%)}.login-password-label .password-toggle:hover{color:#102948;background:#f1f6fd}@media(max-width:1180px){.app-shell{grid-template-columns:230px 1fr}.detail-layout{grid-template-columns:1fr}.slip-panel{position:static}.page-header{flex-direction:column;align-items:stretch}.page-actions{justify-content:flex-start}.toolbar,.settings-summary,.setup-summary,.merge-group-header,.bot-channel-card-header{flex-direction:column;align-items:flex-start}.merge-modal{width:min(1180px,100%)}.merge-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:860px){.app-shell{display:block;padding-bottom:66px}.sidebar{display:none}.main-panel{padding:14px}.page-header{flex-direction:column;align-items:flex-start}.page-header h1{font-size:22px}.page-actions{width:100%;justify-content:flex-start}.metric-grid,.settings-grid,.settings-health-strip,.review-metrics{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-layout,.settings-layout,.ops-grid,.two-col,.three-col,.four-col{grid-template-columns:1fr}.filter-controls,.toolbar{width:100%;justify-content:stretch}.filter-controls input,.filter-controls select,.search-box{width:100%}.upload-fields,.merge-bar{display:grid;grid-template-columns:1fr}.merge-modal{width:100%;max-height:calc(100vh - 20px);padding:12px}.merge-summary-grid{grid-template-columns:1fr}.merge-modal-table-shell{max-height:46vh}.records-table,.review-queue-table{min-width:1320px}.bottom-nav{position:fixed;right:0;bottom:0;left:0;z-index:20;display:grid;grid-template-columns:repeat(3,1fr);padding:6px;border-top:1px solid var(--border);background:#fff}.bottom-nav .nav-item{justify-content:center;color:#415269}.bottom-nav .nav-item span{font-size:11px}.bar-row{grid-template-columns:100px 1fr}.review-user-cell{width:220px;min-width:220px;max-width:220px}}@media(max-width:560px){.main-panel{padding:10px}.page-header{padding:14px}.metric-grid{grid-template-columns:1fr}.record-summary{align-items:stretch}.record-summary span{width:100%;justify-content:space-between}.primary-button,.ghost-button,.danger-button{width:100%}.row-actions{flex-direction:column;align-items:stretch}.row-actions .ghost-button,.row-actions .danger-button{width:100%}.bot-channel-toolbar{grid-template-columns:1fr}.bot-channel-toolbar input,.bot-channel-toolbar select{width:100%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.review-queue-table td{vertical-align:top}.review-queue-table .review-date-cell,.review-queue-table .review-user-cell,.review-queue-table .ref-cell{white-space:normal}.review-queue-table .review-status-cell{min-width:110px;white-space:nowrap}.review-queue-table .review-ellipsis-cell{min-width:170px}.review-queue-table .review-ellipsis-cell>span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-queue-table .review-wrap-cell{min-width:220px;white-space:normal}.review-queue-table .review-cell-value{display:block;max-width:100%;line-height:1.35;overflow-wrap:anywhere;word-break:break-word}.review-queue-table .review-user-cell small{max-width:100%}.merge-modal-table tbody tr{min-height:84px}.merge-date-cell,.merge-channel-cell{vertical-align:top;white-space:normal}.merge-date-cell span,.merge-date-cell small,.merge-channel-cell span,.merge-channel-cell small{display:block}.merge-date-cell span,.merge-channel-cell span{color:#17202a;font-weight:700}.merge-date-cell small,.merge-channel-cell small{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.3;overflow-wrap:anywhere}.merge-wrap-cell{vertical-align:top;white-space:normal!important}.merge-cell-value{display:block;max-width:100%;line-height:1.4;overflow-wrap:anywhere;white-space:normal;word-break:break-word}.merge-ellipsis-cell{vertical-align:top}.merge-ellipsis-cell>span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.merge-money-cell,.merge-quantity-cell{vertical-align:top;white-space:nowrap!important}.merge-status-cell{vertical-align:top}.merge-sender-cell{vertical-align:top;white-space:normal!important}.merge-sender-cell .cell-stack{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.merge-sender-cell small{display:block;max-width:100%;color:var(--muted);font-size:11px;line-height:1.35;overflow-wrap:anywhere;white-space:normal}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(15,105,200,.28);outline-offset:2px}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.65}:root{color-scheme:dark;font-family:Inter,Noto Sans Thai,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:radial-gradient(circle at top left,rgba(56,189,248,.12),transparent 28%),radial-gradient(circle at top right,rgba(168,85,247,.12),transparent 26%),radial-gradient(circle at bottom center,rgba(14,165,233,.06),transparent 34%),#08111f;color:#e6eef9;--surface: rgba(15, 23, 42, .78);--surface-solid: #0f172a;--surface-soft: rgba(17, 24, 39, .84);--surface-info: rgba(14, 116, 144, .18);--surface-warm: rgba(161, 98, 7, .14);--border: rgba(148, 163, 184, .18);--muted: #91a4bc;--blue: #60a5fa;--blue-dark: #2563eb;--green: #34d399;--yellow: #fbbf24;--red: #fb7185;--shadow: 0 30px 70px rgba(2, 8, 23, .35);--shadow-soft: 0 16px 40px rgba(2, 8, 23, .24);--shadow-card: 0 22px 50px rgba(2, 8, 23, .28)}body{color:#e6eef9;background:radial-gradient(circle at top left,rgba(56,189,248,.12),transparent 28%),radial-gradient(circle at top right,rgba(168,85,247,.12),transparent 26%),radial-gradient(circle at bottom center,rgba(14,165,233,.06),transparent 34%),#08111f}body:before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,#08111f0a,#08111f1f),radial-gradient(circle at 20% 10%,rgba(56,189,248,.08),transparent 22%),radial-gradient(circle at 80% 0%,rgba(168,85,247,.08),transparent 20%);z-index:-1}button,input,select,textarea{font-family:inherit}input,select,textarea{color:#ecf3ff;border:1px solid rgba(148,163,184,.18);background:#080f1cb8;box-shadow:inset 0 1px #ffffff08}input::placeholder,textarea::placeholder{color:#6f8098}input:focus,select:focus,textarea:focus{border-color:#60a5fab3;box-shadow:0 0 0 4px #60a5fa29;outline:none}.app-shell{min-height:100vh;display:flex;flex-direction:column;position:relative;background:linear-gradient(135deg,#08111fe6,#0b1424eb),transparent}.brand strong,.app-title,.login-logo{color:#f6f9ff}.brand span,.page-header p,.record-summary span,.chart-header span,.muted-note,.sync-mini{color:#8da0b9}.app-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 28px;border-bottom:1px solid rgba(148,163,184,.16);background:#080f1ce0;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 14px 34px #0208172e}.topbar-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.employee-chip{min-width:0;padding:0;border:0;color:#edf3fb}.employee-chip strong{display:block;font-size:14px}.employee-chip span{display:block;color:#8da0b9;font-size:12px}.tabs-nav{display:flex;align-items:center;gap:8px;padding:14px 28px 0;border-bottom:1px solid rgba(148,163,184,.16);background:#080f1ca8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.tab-btn{position:relative;padding:12px 18px 14px;border:0;border-radius:14px 14px 0 0;color:#93a6bd;background:transparent;font-size:14px;font-weight:700;text-decoration:none}.tab-btn:hover{color:#f6f9ff;background:#ffffff08}.tab-btn.active:after{content:"";position:absolute;right:12px;bottom:-1px;left:12px;height:2px;border-radius:999px;background:linear-gradient(90deg,#22d3ee,#a855f7);box-shadow:0 0 12px #22d3ee66}.main-panel{min-width:0;flex:1;padding:26px 28px 36px}.logout{border-color:#f8717138;background:#f8717112}.page,.records-page{max-width:1680px}.page-header{position:relative;overflow:hidden;border:1px solid rgba(148,163,184,.16);border-radius:20px;background:linear-gradient(180deg,#0f172ad6,#0b1220c7);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.page-header:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 0% 0%,rgba(96,165,250,.18),transparent 26%),radial-gradient(circle at 100% 0%,rgba(168,85,247,.16),transparent 24%)}.page-header h1{font-size:25px;letter-spacing:-.03em;color:#f6f9ff}.record-summary span{border-color:#94a3b829;color:#c2d1e3;background:#0f172ab3;box-shadow:var(--shadow-soft)}.primary-button{color:#fff;border:1px solid rgba(96,165,250,.24);background:linear-gradient(135deg,#2563eb,#06b6d4);box-shadow:0 16px 30px #2563eb38}.ghost-button{color:#dbe7f5;border:1px solid rgba(148,163,184,.16);background:#0f172aa3;box-shadow:var(--shadow-soft)}.metric-grid{gap:14px}.metric{border:1px solid rgba(148,163,184,.16);border-radius:20px;background:linear-gradient(180deg,#0f172ad1,#0b1220bd);box-shadow:var(--shadow-soft)}.metric span{color:#94a7bf;text-transform:uppercase;letter-spacing:.06em;font-size:11px}.metric strong{color:#f6f9ff;font-size:24px}.ops-grid,.chart-panel,.issue-list,.table-shell,.review-form,.slip-panel,.settings-grid,.upload-panel,.activity-panel,.settings-panel,.bot-channel-card,.health-row,.progress-strip,.settings-home-footer,.setup-summary,.setup-banner,.review-card,.merge-group,.merge-candidate-panel,.merge-modal,.empty-state{border-color:#94a3b829;background:linear-gradient(180deg,#0f172ac7,#0a101cc7);box-shadow:var(--shadow-card);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.chart-panel,.issue-list,.upload-panel,.activity-panel,.settings-panel,.settings-home-footer{padding:16px}.bar-track{background:#94a3b824}.bar-fill{background:linear-gradient(90deg,#22c55e,#10b981)}.bar-fill.warning{background:linear-gradient(90deg,#f59e0b,#fbbf24)}.bar-fill.danger{background:linear-gradient(90deg,#fb7185,#ef4444)}.preset-bar button{border-color:#94a3b829;color:#c2d1e3;background:#080f1cb3}.merge-bar{padding:12px 14px;color:#c2d1e3}.table-shell{border:1px solid rgba(148,163,184,.16);box-shadow:var(--shadow)}.metric-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.records-table tr:nth-child(2n) td{background:#0a101ce6}.sticky-col{box-shadow:8px 0 20px #02081738}th.sticky-col{background:linear-gradient(180deg,#111827fa,#182236fa)}.ref-cell .ref-secondary,.cell-text,.review-queue-table .cell-stack small,.merge-modal-table .cell-stack small,.review-date-cell small,.review-user-cell small,.review-card span,.review-card small,.sync-mini,.field,.info-row span,.activity-row span,.activity-row small,.user-row span,.settings-card .card-head span,.bot-channel-card-header span,.bot-channel-meta,.telegram-diagnostics-panel{color:#8da0b9}.cell-text,.review-cell-value{color:#e8f0fb}.review-queue-table .review-wrap-cell,.review-queue-table .review-user-cell,.review-queue-table .ref-cell{white-space:normal}.image-button{border-color:#60a5fa2e;color:#dbeafe;background:#1e293bc7}.image-button:hover{background:#2563eb2e}.review-page{gap:16px}.review-section-panel,.review-table-panel,.review-form,.slip-panel,.settings-panel,.issue-list,.chart-panel,.upload-panel,.activity-panel,.settings-home-footer{border-radius:18px}.review-metrics .metric,.review-detail-summary .metric{background:linear-gradient(180deg,#0f172adb,#0a101cc2)}.slip-panel{position:sticky;top:22px}.slip-panel img{border-radius:16px;box-shadow:var(--shadow-card)}.review-form{padding:18px}.section-title{color:#f7fbff;font-size:15px;letter-spacing:-.01em}.field{color:#b5c4d9}.field input,.field select,.field textarea,.login-card input{border-radius:14px}.alert{border:1px solid rgba(148,163,184,.16);border-radius:14px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.alert.warning{color:#fbbf24;background:#78350f38}.alert.danger{color:#fecdd3;background:#7f1d1d3d}.alert.success{color:#86efac;background:#14532d3d}.review-grid{grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}.review-card{border-radius:18px;background:linear-gradient(180deg,#0f172ad1,#0a101cc7);box-shadow:var(--shadow-soft)}.review-card strong,.review-card span,.review-card small{color:#ecf3ff}.review-card span,.review-card small{color:#94a7bf}.login-page,.screen-center{background:radial-gradient(circle at top left,rgba(56,189,248,.12),transparent 24%),radial-gradient(circle at bottom right,rgba(168,85,247,.1),transparent 20%),#08111f}.login-password-label .password-toggle:hover{color:#dbeafe;background:#ffffff0a}.bottom-nav{display:none}.merge-modal-header h2,.merge-summary-grid .info-row strong,.merge-modal-table td,.merge-modal .field span,.merge-modal .merge-warning-list,.merge-modal p{color:#edf4ff}@media(max-width:1180px){.main-panel{padding:22px}}@media(max-width:860px){.app-shell{padding-bottom:72px}.app-topbar{padding:14px 16px;flex-direction:column;align-items:flex-start}.main-panel{padding:14px}.tabs-nav{padding:10px 16px 0;gap:6px;overflow-x:auto}.tab-btn{white-space:nowrap}.page-header{border-radius:20px}.metric-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.toolbar,.merge-bar,.preset-bar{border-radius:16px}.records-table,.review-queue-table{min-width:1320px}}@media(max-width:560px){.main-panel{padding:10px}.app-topbar{padding:12px 14px}.tabs-nav{padding:8px 14px 0}.page-header{padding:14px}.page-header h1{font-size:22px}.record-summary span,.preset-bar button,.ghost-button,.danger-button,.primary-button,.page-actions,.toolbar,.merge-bar,.preset-bar,.filter-controls,.filter-controls input,.filter-controls select,.search-box{width:100%}.merge-modal{width:100%;max-height:calc(100vh - 18px);padding:14px}.review-grid,.detail-layout,.settings-layout,.ops-grid,.two-col,.upload-fields{grid-template-columns:1fr}}.settings-workspace{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:16px;align-items:start;width:100%}.settings-rail{display:grid;gap:14px;min-width:0;position:sticky;top:20px}.settings-rail-hero,.settings-stage,.settings-panel-frame{display:grid;gap:14px;min-width:0}.settings-rail-hero,.settings-panel-frame{padding:16px;border:1px solid rgba(148,163,184,.16);border-radius:18px;background:linear-gradient(180deg,#0f172ad1,#0a101cc7);box-shadow:var(--shadow-card);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.settings-rail-heading strong{display:block;color:#f7fbff;font-size:18px;font-weight:800;letter-spacing:-.02em}.settings-rail-heading span{display:block;margin-top:4px;color:#8ea1b8;font-size:12px;line-height:1.5}.settings-nav{display:grid;gap:8px}.settings-nav-item{display:grid;gap:4px;padding:12px 14px;border:1px solid rgba(148,163,184,.16);border-radius:16px;color:#dbe7f5;text-align:left;background:#080f1cb8;box-shadow:var(--shadow-soft);transition:transform .15s ease,border-color .15s ease,background-color .15s ease}.settings-nav-item:hover{transform:translateY(-1px);border-color:#60a5fa47;background:#111827e0}.settings-nav-item.active{border-color:#22d3ee61;background:linear-gradient(135deg,#2563eb57,#0f172adb)}.settings-nav-item strong{font-size:13px}.settings-nav-item span{color:#8ea1b8;font-size:12px;line-height:1.35}.settings-stage .settings-home,.settings-stage .settings-panel,.settings-stage .settings-home-footer{border-radius:18px}.settings-stage .settings-home{padding:16px;border:1px solid rgba(148,163,184,.16);border-radius:18px;background:linear-gradient(180deg,#0f172ad1,#0a101cc7);box-shadow:var(--shadow-card)}.settings-stage .settings-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.setup-banner.compact{align-items:center}.settings-stage .activity-panel{border-radius:18px}.settings-stage .settings-panel-frame .settings-panel{padding:0;border:0;box-shadow:none;background:transparent}.settings-stage .settings-panel-frame .chart-header{margin-bottom:8px}@media(max-width:1180px){.settings-workspace{grid-template-columns:1fr}.settings-rail{position:static}}@media(max-width:860px){.settings-stage .settings-home{padding:14px}}:root{color-scheme:dark;font-family:Inter,Noto Sans Thai,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:radial-gradient(circle at top left,rgba(59,130,246,.16),transparent 26%),radial-gradient(circle at top right,rgba(168,85,247,.16),transparent 24%),radial-gradient(circle at bottom center,rgba(34,211,238,.08),transparent 28%),#07101e;color:#e7eef9;--surface: rgba(13, 21, 37, .76);--surface-solid: #0f172a;--surface-soft: rgba(17, 24, 39, .82);--surface-info: rgba(30, 64, 175, .16);--surface-warm: rgba(161, 98, 7, .14);--border: rgba(148, 163, 184, .18);--muted: #8ea1b8;--blue: #60a5fa;--blue-dark: #2563eb;--green: #34d399;--yellow: #fbbf24;--red: #fb7185;--shadow: 0 30px 70px rgba(2, 8, 23, .34);--shadow-soft: 0 14px 34px rgba(2, 8, 23, .22);--shadow-card: 0 20px 48px rgba(2, 8, 23, .28)}body{color:#e7eef9;background:radial-gradient(circle at top left,rgba(59,130,246,.14),transparent 28%),radial-gradient(circle at top right,rgba(168,85,247,.14),transparent 24%),radial-gradient(circle at bottom center,rgba(34,211,238,.08),transparent 28%),#07101e}body:before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,#07101e0d,#07101e24),radial-gradient(circle at 10% 0%,rgba(56,189,248,.08),transparent 18%),radial-gradient(circle at 80% 5%,rgba(168,85,247,.08),transparent 18%);z-index:-1}.app-shell{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(135deg,#08111feb,#08101ef5),transparent}.app-topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:14px 24px;border-bottom:1px solid rgba(148,163,184,.16);background:#080f1ce6;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 14px 34px #02081729}.workspace-heading{min-width:0;text-align:center}.workspace-heading strong{display:block;color:#f7fbff;font-size:17px;font-weight:800;letter-spacing:-.02em}.workspace-heading span{display:block;margin-top:3px;color:#90a3ba;font-size:12px}.topbar-actions{display:flex;align-items:center;gap:12px;justify-self:end}.tabs-nav{display:flex;gap:8px;padding:14px 24px 0;border-bottom:1px solid rgba(148,163,184,.16);background:#080f1ca8;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.tab-btn{position:relative;padding:12px 18px 14px;border:0;border-radius:14px 14px 0 0;color:#95a7be;background:transparent;font-size:14px;font-weight:700;text-decoration:none}.tab-btn:hover{color:#f7fbff;background:#ffffff08}.tab-btn.active{color:#fff}.tab-btn.active:after{content:"";position:absolute;right:12px;bottom:-1px;left:12px;height:2px;border-radius:999px;background:linear-gradient(90deg,#22d3ee,#a855f7);box-shadow:0 0 12px #22d3ee6b}.main-panel{min-width:0;flex:1;padding:24px 24px 34px}.page,.records-page,.settings-page,.review-page{width:min(1600px,100%);margin:0 auto}.page-header{position:relative;overflow:hidden;border:1px solid rgba(148,163,184,.16);border-radius:20px;background:linear-gradient(180deg,#0f172adb,#0a101cd1);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.page-header:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 0% 0%,rgba(96,165,250,.18),transparent 26%),radial-gradient(circle at 100% 0%,rgba(168,85,247,.14),transparent 24%)}.page-header>div{position:relative;z-index:1}.page-header h1{color:#f7fbff;font-size:24px;letter-spacing:-.03em}.page-header p,.record-summary span,.chart-header span,.muted-note,.sync-mini,.field,.activity-row span,.activity-row small,.user-row span,.settings-card .card-head span,.bot-channel-card-header span,.bot-channel-meta,.telegram-diagnostics-panel,.info-row span{color:#8ea1b8}.page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.record-summary span,.preset-bar button,.ghost-button,.danger-button,.primary-button{border-radius:999px}.record-summary span{border-color:#94a3b829;color:#c5d3e3;background:#0f172ab3;box-shadow:var(--shadow-soft)}.record-summary strong{color:#f7fbff}.primary-button{color:#fff;border:1px solid rgba(96,165,250,.28);background:linear-gradient(135deg,#2563eb,#06b6d4);box-shadow:0 16px 28px #2563eb38}.ghost-button{color:#dbe7f5;border:1px solid rgba(148,163,184,.16);background:#0f172aa8;box-shadow:var(--shadow-soft)}.danger-button{color:#fecdd3;border:1px solid rgba(248,113,113,.22);background:#7f1d1d42}.metric-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.metric{border:1px solid rgba(148,163,184,.16);border-radius:20px;background:linear-gradient(180deg,#0f172ad6,#0a101cc7);box-shadow:var(--shadow-soft)}.metric:before{content:"";display:block;height:3px;margin-bottom:14px;border-radius:999px;background:linear-gradient(90deg,#60a5fae6,#2dd4bfd1)}.metric span{color:#97aaca;text-transform:uppercase;letter-spacing:.06em;font-size:11px}.metric strong{color:#f7fbff;font-size:24px}.metric .accent{color:#7dc4ff}.metric.warning strong{color:#fbbf24}.metric.danger strong{color:#fb7185}.ops-grid,.chart-panel,.issue-list,.table-shell,.review-form,.slip-panel,.settings-grid,.upload-panel,.activity-panel,.settings-panel,.bot-channel-card,.health-row,.progress-strip,.settings-home-footer,.setup-summary,.setup-banner,.review-card,.merge-group,.merge-candidate-panel,.merge-modal,.empty-state{border-color:#94a3b829;background:linear-gradient(180deg,#0f172acc,#0a101cc7);box-shadow:var(--shadow-card);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.ops-grid,.review-workspace,.detail-layout,.settings-home,.settings-panel,.settings-home-footer,.settings-summary,.settings-health-strip,.setup-summary,.issue-list,.chart-panel,.activity-panel,.upload-panel{width:100%;min-width:0}.review-workspace,.detail-layout{gap:16px}.review-page{display:grid;gap:16px}.review-section-panel,.review-table-panel{border-radius:18px}.review-table-panel{padding:0;overflow:hidden}.table-shell{width:100%;border:1px solid rgba(148,163,184,.16);box-shadow:var(--shadow)}.records-table{color:#ecf3ff}.records-table th,.records-table td{border-right-color:#94a3b81f;border-bottom-color:#94a3b81f;background:#0f172adb}.records-table th{color:#9fd0ff;background:linear-gradient(180deg,#111827f5,#182236f5);border-bottom-color:#60a5fa3d}.records-table tr:nth-child(2n) td{background:#0a101ceb}.records-table tr:hover td{background:#111f34f5}.records-table tr.row-review td{background:#78350f2e}.records-table tr.row-review:hover td{background:#92400e38}.review-queue-table th,.review-queue-table td,.merge-modal-table th,.merge-modal-table td,.review-queue-table .review-user-cell,.review-queue-table .review-wrap-cell,.review-queue-table .ref-cell{white-space:normal}.review-queue-table .review-status-cell{min-width:110px}.review-queue-table .review-actions-cell{min-width:160px}.review-queue-table .review-money-cell,.review-queue-table .review-quantity-cell{min-width:120px;white-space:nowrap}.ref-link{color:#dbeafe}.ref-link:hover{color:#7dd3fc}.ref-cell .ref-secondary,.cell-text,.review-cell-value,.review-card span,.review-card small,.settings-card p,.settings-card .card-head span,.info-row span,.activity-row span,.activity-row small,.user-row span,.sync-mini,.field,.bot-channel-card-header span,.bot-channel-meta,.telegram-diagnostics-panel,.review-date-cell small,.review-user-cell small{color:#8ea1b8}.status{border:1px solid rgba(148,163,184,.14);background:#0f172ad6;color:#d9e7f7}.status.completed{color:#86efac;background:#14532d52}.status.needs_review,.status.retry_pending{color:#fcd34d;background:#78350f5c}.status.ocr_failed{color:#fda4af;background:#7f1d1d5c}.status.processing,.status.stored{color:#93c5fd;background:#1e40af3d}.status.deleted{color:#cbd5e1;background:#1e293bb8}.merge-candidate-panel,.settings-panel,.settings-home-footer,.setup-summary,.setup-banner,.issue-list,.chart-panel,.upload-panel,.activity-panel{padding:16px}.merge-candidate-panel{border-radius:18px}.merge-group{border-radius:16px}.merge-modal-overlay{background:#020617b8}.merge-modal{border-radius:22px;background:linear-gradient(180deg,#0f172af0,#0a101ce6)}.merge-modal-header h2,.merge-summary-grid .info-row strong,.merge-modal-table td,.merge-modal .field span,.merge-modal p{color:#edf4ff}.merge-summary-grid .info-row{border-color:#94a3b824;background:#080f1cad}.merge-warning-box{color:#dbeafe}.login-page,.screen-center{background:radial-gradient(circle at top left,rgba(56,189,248,.12),transparent 24%),radial-gradient(circle at bottom right,rgba(168,85,247,.1),transparent 20%),#07101e}.login-card{position:relative;border-radius:24px;background:linear-gradient(180deg,#0f172ae0,#0a101cd1);box-shadow:var(--shadow)}.login-card:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at top right,rgba(96,165,250,.14),transparent 20%),radial-gradient(circle at bottom left,rgba(45,212,191,.08),transparent 18%)}.login-card>*{position:relative;z-index:1}.login-card label{color:#94a7bf}.login-card input,.field input,.field select,.field textarea,.upload-panel input,.upload-panel select,.upload-panel textarea,.settings-panel input,.settings-panel select,.settings-panel textarea{border-radius:14px}.settings-home{gap:16px;width:100%;align-self:stretch}.settings-summary{grid-template-columns:minmax(0,1fr) auto;align-items:end}.settings-health-strip{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.settings-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));width:100%;margin:0}.settings-card{border-radius:18px;background:linear-gradient(180deg,#0f172ad6,#0a101ccc)}.setup-summary{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;border-radius:18px}.setup-summary h2,.settings-home h3,.chart-header strong,.section-title{color:#f7fbff}.settings-home-footer{border-radius:18px}.progress-strip,.health-pill{border-radius:16px}.progress-track{background:#94a3b829}.progress-fill{background:linear-gradient(90deg,#1d6fd3,#22d3ee)}.page-header .page-actions{justify-content:flex-end}.record-summary span{min-height:34px}.upload-panel.compact{margin-bottom:14px}.search-box{border-color:#94a3b829;background:#080f1cbd}.toolbar,.merge-bar,.preset-bar{border:1px solid rgba(148,163,184,.16);border-radius:18px;background:#0f172ac2;box-shadow:var(--shadow-soft);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.toolbar{padding:14px}.preset-bar{padding:10px}.preset-bar button{border-color:#94a3b829;color:#c5d3e3;background:#080f1cb3}.preset-bar button.active{border-color:#60a5fa59;background:linear-gradient(135deg,#2563ebb8,#0e7490ad)}.merge-bar{padding:12px 14px;color:#c5d3e3}.empty-state{color:#aab7c8;background:#080f1cad}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(96,165,250,.28);outline-offset:2px}@media(max-width:1180px){.app-topbar{grid-template-columns:1fr;text-align:left}.workspace-heading{text-align:left}.topbar-actions{justify-self:start}.page-header{flex-direction:column;align-items:stretch}.page-actions{justify-content:flex-start}.detail-layout{grid-template-columns:1fr}.slip-panel{position:static}}@media(max-width:860px){.main-panel{padding:14px}.tabs-nav{padding:10px 16px 0;overflow-x:auto}.tab-btn{white-space:nowrap}.page-header{border-radius:20px}.metric-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.review-grid{grid-template-columns:1fr}.records-table,.review-queue-table{min-width:1320px}}@media(max-width:560px){.main-panel{padding:10px}.app-topbar{padding:12px 14px}.tabs-nav{padding:8px 14px 0}.page-header{padding:14px}.page-header h1{font-size:22px}.record-summary span,.preset-bar button,.ghost-button,.danger-button,.primary-button,.page-actions,.toolbar,.merge-bar,.preset-bar,.filter-controls,.filter-controls input,.filter-controls select,.search-box{width:100%}.detail-layout,.settings-layout,.ops-grid,.two-col,.upload-fields{grid-template-columns:1fr}.merge-modal{width:100%;max-height:calc(100vh - 18px);padding:14px}}body{color:#132033}.app-shell{background:linear-gradient(180deg,#eef3f8f5,#e5edf5fa)}.app-topbar,.tabs-nav{border-bottom-color:#94a3b82e;background:#ffffffd1;box-shadow:0 14px 30px #18263814}.workspace-heading strong,.page-header h1,.toolbar-title strong,.setup-summary h2,.settings-home h3,.chart-header strong,.section-title{color:#122033}.workspace-heading span,.page-header p,.record-summary span,.chart-header span,.muted-note,.sync-mini,.field,.activity-row span,.activity-row small,.user-row span,.settings-card .card-head span,.bot-channel-card-header span,.bot-channel-meta,.telegram-diagnostics-panel,.info-row span,.ref-secondary,.cell-text,.review-cell-value,.review-card span,.review-card small,.settings-card p{color:#5b6c83}.page-header,.metric,.card,.review-section-panel,.review-table-panel,.settings-panel,.settings-home,.settings-home-footer,.setup-summary,.setup-banner,.issue-list,.chart-panel,.upload-panel,.activity-panel,.merge-candidate-panel,.merge-group,.empty-state,.settings-rail-hero,.settings-panel-frame,.settings-nav-item,.review-card,.settings-card{border-color:#94a3b833;background:linear-gradient(180deg,#ffffffe6,#f6f9fceb);box-shadow:0 16px 34px #18263814}.tab-btn{color:#62758d}.tab-btn.active{color:#0f4fa3}.tab-btn.active:after{background:linear-gradient(90deg,#2563eb,#06b6d4)}.primary-button{border-color:#2563eb47;background:linear-gradient(135deg,#2563eb,#0ea5e9);box-shadow:0 12px 26px #2563eb2e}.ghost-button,.icon-button{color:#18324e;border-color:#94a3b838;background:#ffffffe0}.danger-button{color:#9f1d30;background:#fee2e2e0}.metric span,.card-header span,.settings-card .card-head span,.info-row span,.chart-header span{color:#6d7f95}.metric strong,.record-summary strong,.status{color:#132033}.status,.health-pill,.chip{background:#ffffffe0;border-color:#94a3b838}.status.completed,.health-pill.ok{color:#166534;background:#dcfce7eb}.status.needs_review,.status.retry_pending,.health-pill.warning{color:#b45309;background:#fef3c7eb}.status.ocr_failed,.health-pill.danger{color:#b91c1c;background:#fee2e2eb}.table-shell{border-color:#94a3b82e;box-shadow:0 22px 44px #18263814}.records-table th,.records-table td{color:#132033;border-right-color:#94a3b829;border-bottom-color:#94a3b829;background:#fffffff0}.records-table th{color:#0f4fa3;background:linear-gradient(180deg,#edf4fffa,#e0ecfcfa);border-bottom-color:#60a5fa38}.records-table tr:nth-child(2n) td{background:#f7fafcfa}.records-table tr:hover td{background:#e8f3fffa}.records-table tr.row-review td{background:#fff8e1fa}.records-table tr.row-review:hover td{background:#fff1bffa}.ref-link{color:#0f4fa3}.ref-link:hover{color:#0284c7}.search-box,.toolbar,.merge-bar,.preset-bar,.login-card,.modal-content,.merge-modal{border-color:#94a3b833;background:#ffffffe6;box-shadow:0 18px 36px #18263814}.search-box input,.field input,.field select,.field textarea,.upload-panel input,.upload-panel select,.upload-panel textarea,.settings-panel input,.settings-panel select,.settings-panel textarea,.login-card input{color:#132033;background:#fffffff0}.empty-state{color:#61738a;background:#ffffffeb}.modal-overlay,.merge-modal-overlay{background:#0f172a57}@media(max-width:860px){.records-table,.review-queue-table{min-width:1320px}}@media(prefers-color-scheme:dark){:root{color-scheme:dark;background:radial-gradient(circle at top left,rgba(56,189,248,.14),transparent 28%),radial-gradient(circle at top right,rgba(96,165,250,.1),transparent 22%),#0f1828;color:#f0f7ff;--surface: rgba(22, 33, 51, .86);--surface-solid: #152338;--surface-soft: rgba(26, 38, 58, .82);--surface-info: rgba(56, 189, 248, .12);--surface-warm: rgba(251, 191, 36, .1);--border: rgba(148, 163, 184, .2);--muted: #adc0d4;--blue: #8bd8ff;--blue-dark: #38bdf8;--green: #57d48f;--yellow: #ffd166;--red: #ff8aa0;--shadow: 0 30px 70px rgba(2, 8, 23, .2);--shadow-soft: 0 14px 34px rgba(2, 8, 23, .14);--shadow-card: 0 20px 48px rgba(2, 8, 23, .18)}body{color:#f0f7ff;background:radial-gradient(circle at top left,rgba(56,189,248,.12),transparent 28%),radial-gradient(circle at top right,rgba(96,165,250,.1),transparent 22%),#0f1828}.app-shell{background:linear-gradient(180deg,#0f18280a,#0f18281f),#0f1828}.app-topbar,.tabs-nav{border-bottom-color:#94a3b829;background:#162133d6;box-shadow:0 14px 34px #02081724}.workspace-heading strong,.page-header h1,.toolbar-title strong,.setup-summary h2,.settings-home h3,.chart-header strong,.section-title{color:#f7fbff}.workspace-heading span,.page-header p,.record-summary span,.chart-header span,.muted-note,.sync-mini,.field,.activity-row span,.activity-row small,.user-row span,.settings-card .card-head span,.bot-channel-card-header span,.bot-channel-meta,.telegram-diagnostics-panel,.info-row span,.ref-secondary,.cell-text,.review-cell-value,.review-card span,.review-card small,.settings-card p{color:#b4c6da}.page-header,.metric,.card,.review-section-panel,.review-table-panel,.settings-panel,.settings-home,.settings-home-footer,.setup-summary,.setup-banner,.issue-list,.chart-panel,.upload-panel,.activity-panel,.merge-candidate-panel,.merge-group,.empty-state,.settings-rail-hero,.settings-panel-frame,.settings-nav-item,.review-card,.settings-card,.search-box,.toolbar,.merge-bar,.preset-bar,.login-card,.modal-content,.merge-modal{border-color:#94a3b829;background:linear-gradient(180deg,#162133e0,#1a263acc);box-shadow:0 18px 36px #02081729}.tab-btn{color:#b4c6da}.tab-btn.active{color:#fff}.tab-btn.active:after{background:linear-gradient(90deg,#67d5ff,#8bbcff);box-shadow:0 0 12px #67d5ff3d}.primary-button{border-color:#60a5fa47;background:linear-gradient(135deg,#67d5ff,#3fa9f5);box-shadow:0 16px 28px #67d5ff2e}.ghost-button,.icon-button{color:#eef6ff;border-color:#94a3b829;background:#162133ad}.danger-button{color:#fecdd3;border-color:#f8717138;background:#7f1d1d3d}.status{color:#eef6ff;background:#162133d1}.status.completed,.health-pill.ok{color:#86efac;background:#14532d52}.status.needs_review,.status.retry_pending,.health-pill.warning{color:#fcd34d;background:#78350f5c}.status.ocr_failed,.health-pill.danger{color:#fda4af;background:#7f1d1d5c}.records-table th,.records-table td{color:#f3f8ff;border-right-color:#94a3b81f;border-bottom-color:#94a3b81f;background:#162133db}.records-table th{color:#d0ecff;background:linear-gradient(180deg,#1e2c44f5,#243652f5);border-bottom-color:#60a5fa3d}.records-table tr:nth-child(2n) td{background:#1a263ae6}.records-table tr:hover td{background:#243652f0}.records-table tr.row-review td{background:#78350f2e}.ref-link{color:#bfe6ff}.search-box input,.field input,.field select,.field textarea,.upload-panel input,.upload-panel select,.upload-panel textarea,.settings-panel input,.settings-panel select,.settings-panel textarea,.login-card input{color:#f3f8ff;background:#1a263ab8}.empty-state{color:#c6d6e6}.modal-overlay,.merge-modal-overlay{background:#020617b8}}html[data-theme=light]{color-scheme:light;--bg-primary: #eef4fb;--bg-secondary: #f7faff;--bg-tertiary: #e2ebf7;--bg-surface: rgba(255, 255, 255, .97);--bg-surface-strong: rgba(247, 250, 255, .99);--bg-surface-soft: rgba(241, 246, 252, .96);--bg-surface-hover: rgba(233, 241, 250, .98);--bg-overlay: rgba(15, 23, 42, .44);--glass-bg: rgba(255, 255, 255, .94);--glass-border: rgba(148, 163, 184, .24);--text-primary: #102033;--text-secondary: #334155;--text-muted: #475569;--text-inverse: #ffffff;--border-subtle: rgba(148, 163, 184, .22);--border-strong: rgba(100, 116, 139, .34);--color-blue: #2563eb;--color-blue-strong: #1d4ed8;--color-blue-soft: rgba(37, 99, 235, .12);--shadow-soft: 0 12px 28px rgba(25, 38, 56, .08);--shadow-card: 0 18px 40px rgba(25, 38, 56, .08);--shadow-panel: 0 24px 52px rgba(25, 38, 56, .1)}html[data-theme=light] body{color:#102033;background:radial-gradient(circle at top left,rgba(56,189,248,.1),transparent 28%),radial-gradient(circle at top right,rgba(99,102,241,.06),transparent 22%),#eef4fb}html[data-theme=light] body:before{background:linear-gradient(180deg,#ffffff9e,#ffffff2e),radial-gradient(circle at 10% 0%,rgba(56,189,248,.08),transparent 18%),radial-gradient(circle at 80% 5%,rgba(168,85,247,.05),transparent 18%)}html[data-theme=light] .app-shell{background:linear-gradient(180deg,#ffffffd1,#f3f7fdfa),#eef4fb}html[data-theme=light] .app-topbar,html[data-theme=light] .tabs-nav{background:#fffffff0;border-bottom-color:#94a3b838;box-shadow:0 14px 34px #1826381a}html[data-theme=light] .brand strong,html[data-theme=light] .workspace-heading strong,html[data-theme=light] .page-header h1,html[data-theme=light] .toolbar-title strong,html[data-theme=light] .setup-summary h2,html[data-theme=light] .settings-home h3,html[data-theme=light] .chart-header strong,html[data-theme=light] .section-title,html[data-theme=light] .metric strong,html[data-theme=light] .card strong,html[data-theme=light] .settings-card strong,html[data-theme=light] .review-card strong,html[data-theme=light] .setup-summary strong,html[data-theme=light] .setup-banner strong,html[data-theme=light] .app-topbar .employee-chip strong{color:#0f172a}html[data-theme=light] .brand span,html[data-theme=light] .workspace-heading span,html[data-theme=light] .page-header p,html[data-theme=light] .record-summary span,html[data-theme=light] .chart-header span,html[data-theme=light] .muted-note,html[data-theme=light] .sync-mini,html[data-theme=light] .field,html[data-theme=light] .activity-row span,html[data-theme=light] .activity-row small,html[data-theme=light] .user-row span,html[data-theme=light] .settings-card .card-head span,html[data-theme=light] .bot-channel-card-header span,html[data-theme=light] .bot-channel-meta,html[data-theme=light] .telegram-diagnostics-panel,html[data-theme=light] .info-row span,html[data-theme=light] .ref-secondary,html[data-theme=light] .cell-text,html[data-theme=light] .review-cell-value,html[data-theme=light] .review-card span,html[data-theme=light] .review-card small,html[data-theme=light] .settings-card p,html[data-theme=light] .empty-state,html[data-theme=light] .records-table td,html[data-theme=light] .records-table th{color:#475569}html[data-theme=light] .page-header,html[data-theme=light] .metric,html[data-theme=light] .card,html[data-theme=light] .review-section-panel,html[data-theme=light] .review-table-panel,html[data-theme=light] .settings-panel,html[data-theme=light] .settings-home,html[data-theme=light] .settings-home-footer,html[data-theme=light] .setup-summary,html[data-theme=light] .setup-banner,html[data-theme=light] .issue-list,html[data-theme=light] .chart-panel,html[data-theme=light] .upload-panel,html[data-theme=light] .activity-panel,html[data-theme=light] .merge-candidate-panel,html[data-theme=light] .merge-group,html[data-theme=light] .empty-state,html[data-theme=light] .settings-rail-hero,html[data-theme=light] .settings-panel-frame,html[data-theme=light] .settings-nav-item,html[data-theme=light] .review-card,html[data-theme=light] .settings-card,html[data-theme=light] .search-box,html[data-theme=light] .toolbar,html[data-theme=light] .merge-bar,html[data-theme=light] .preset-bar,html[data-theme=light] .login-card,html[data-theme=light] .modal-content,html[data-theme=light] .merge-modal{border-color:#94a3b838;background:linear-gradient(180deg,#fffffffa,#f6fafffa);box-shadow:0 18px 36px #1826381a}html[data-theme=light] .tab-btn{color:#42546b}html[data-theme=light] .tab-btn.active{color:#0ea5e9}html[data-theme=light] .tab-btn.active:after{background:linear-gradient(90deg,#38bdf8,#0ea5e9);box-shadow:0 0 12px #38bdf82e}html[data-theme=light] .primary-button{border-color:#38bdf838;background:linear-gradient(135deg,#38bdf8,#0ea5e9);box-shadow:0 14px 24px #38bdf829}html[data-theme=light] .ghost-button,html[data-theme=light] .icon-button,html[data-theme=light] .theme-toggle{color:#102033;border-color:#94a3b838;background:#fffffff5}html[data-theme=light] .danger-button{color:#9f1239;border-color:#f43f5e2e;background:#fee2e2db}html[data-theme=light] .status{color:#102033;background:#fffffff5}html[data-theme=light] .status.completed,html[data-theme=light] .health-pill.ok{color:#166534;background:#dcfce7eb}html[data-theme=light] .status.needs_review,html[data-theme=light] .status.retry_pending,html[data-theme=light] .health-pill.warning{color:#b45309;background:#fef3c7eb}html[data-theme=light] .status.ocr_failed,html[data-theme=light] .health-pill.danger{color:#b91c1c;background:#fee2e2eb}html[data-theme=light] .records-table th,html[data-theme=light] .records-table td{color:#102033;border-right-color:#94a3b833;border-bottom-color:#94a3b833;background:#fffffffa}html[data-theme=light] .records-table th{color:#0b6aa9;background:linear-gradient(180deg,#edf4fffa,#e1ecfcfa);border-bottom-color:#38bdf838}html[data-theme=light] .records-table tr:nth-child(2n) td{background:#f6f9fdfa}html[data-theme=light] .records-table tr:hover td{background:#e7f1fcfa}html[data-theme=light] .records-table tr.row-review td{background:#fff6dcf5}html[data-theme=light] .ref-link{color:#0b6aa9}html[data-theme=light] .search-box input,html[data-theme=light] .field input,html[data-theme=light] .field select,html[data-theme=light] .field textarea,html[data-theme=light] .upload-panel input,html[data-theme=light] .upload-panel select,html[data-theme=light] .upload-panel textarea,html[data-theme=light] .settings-panel input,html[data-theme=light] .settings-panel select,html[data-theme=light] .settings-panel textarea,html[data-theme=light] .login-card input{color:#102033;background:#fffffffa}html[data-theme=light] .empty-state{color:#475569}html[data-theme=light] .app-topbar .employee-chip strong{color:#102033}html[data-theme=light] .app-topbar .employee-chip span{color:#475569}html[data-theme=light] .settings-nav-item{background:#fffffff5}html[data-theme=light] .settings-nav-item.active{border-color:#38bdf83d;background:linear-gradient(135deg,#38bdf824,#0ea5e91a)}html[data-theme=light] .theme-toggle{min-width:130px}html[data-theme=light] .theme-toggle span{font-size:13px}html[data-theme=light] .theme-toggle:hover,html[data-theme=light] .ghost-button:hover,html[data-theme=light] .icon-button:hover{background:#fff}html[data-theme=dark]{color-scheme:dark}html[data-theme=dark] body{color:#f0f7ff;background:radial-gradient(circle at top left,rgba(56,189,248,.12),transparent 28%),radial-gradient(circle at top right,rgba(96,165,250,.1),transparent 22%),#0f1828}html[data-theme=dark] .app-shell{background:linear-gradient(180deg,#0f18280a,#0f18281f),#0f1828}html[data-theme=dark] .app-topbar,html[data-theme=dark] .tabs-nav{background:#162133d6}html[data-theme=dark] .page-header,html[data-theme=dark] .metric,html[data-theme=dark] .card,html[data-theme=dark] .review-section-panel,html[data-theme=dark] .review-table-panel,html[data-theme=dark] .settings-panel,html[data-theme=dark] .settings-home,html[data-theme=dark] .settings-home-footer,html[data-theme=dark] .setup-summary,html[data-theme=dark] .setup-banner,html[data-theme=dark] .issue-list,html[data-theme=dark] .chart-panel,html[data-theme=dark] .upload-panel,html[data-theme=dark] .activity-panel,html[data-theme=dark] .merge-candidate-panel,html[data-theme=dark] .merge-group,html[data-theme=dark] .empty-state,html[data-theme=dark] .settings-rail-hero,html[data-theme=dark] .settings-panel-frame,html[data-theme=dark] .settings-nav-item,html[data-theme=dark] .review-card,html[data-theme=dark] .settings-card,html[data-theme=dark] .search-box,html[data-theme=dark] .toolbar,html[data-theme=dark] .merge-bar,html[data-theme=dark] .preset-bar,html[data-theme=dark] .login-card,html[data-theme=dark] .modal-content,html[data-theme=dark] .merge-modal{background:linear-gradient(180deg,#162133e0,#1a263acc)}html[data-theme=dark] .records-table th{color:#d0ecff;background:linear-gradient(180deg,#1e2c44f5,#243652f5)}html[data-theme=dark] .records-table td{background:#162133db}html[data-theme=dark] .app-topbar,html[data-theme=dark] .tabs-nav,html[data-theme=dark] .page-header,html[data-theme=dark] .metric,html[data-theme=dark] .card,html[data-theme=dark] .review-section-panel,html[data-theme=dark] .review-table-panel,html[data-theme=dark] .settings-panel,html[data-theme=dark] .settings-home,html[data-theme=dark] .settings-home-footer,html[data-theme=dark] .setup-summary,html[data-theme=dark] .setup-banner,html[data-theme=dark] .issue-list,html[data-theme=dark] .chart-panel,html[data-theme=dark] .upload-panel,html[data-theme=dark] .activity-panel,html[data-theme=dark] .merge-candidate-panel,html[data-theme=dark] .merge-group,html[data-theme=dark] .empty-state,html[data-theme=dark] .settings-rail-hero,html[data-theme=dark] .settings-panel-frame,html[data-theme=dark] .settings-nav-item,html[data-theme=dark] .review-card,html[data-theme=dark] .settings-card,html[data-theme=dark] .search-box,html[data-theme=dark] .toolbar,html[data-theme=dark] .merge-bar,html[data-theme=dark] .preset-bar,html[data-theme=dark] .login-card,html[data-theme=dark] .modal-content,html[data-theme=dark] .merge-modal{border-color:#91a8bf29;background:linear-gradient(180deg,#121c2deb,#162338d6),var(--bg-surface);box-shadow:0 24px 54px #0208173d;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}html[data-theme=dark] .app-topbar{border-bottom-color:#91a8bf29}html[data-theme=dark] .tabs-nav{border-bottom-color:#91a8bf24}html[data-theme=dark] .page-header h1,html[data-theme=dark] .card strong,html[data-theme=dark] .settings-card strong,html[data-theme=dark] .review-card strong,html[data-theme=dark] .metric strong,html[data-theme=dark] .setup-summary h2,html[data-theme=dark] .settings-home h3,html[data-theme=dark] .chart-header strong,html[data-theme=dark] .section-title{color:#f6fbff;font-weight:760;letter-spacing:-.025em}html[data-theme=dark] .page-header p,html[data-theme=dark] .metric span,html[data-theme=dark] .card p,html[data-theme=dark] .settings-card p,html[data-theme=dark] .review-card span,html[data-theme=dark] .review-card small,html[data-theme=dark] .setup-summary p,html[data-theme=dark] .setup-banner p,html[data-theme=dark] .chart-panel p,html[data-theme=dark] .upload-panel p,html[data-theme=dark] .activity-panel p,html[data-theme=dark] .muted-note,html[data-theme=dark] .sync-mini,html[data-theme=dark] .field span,html[data-theme=dark] .activity-row span,html[data-theme=dark] .activity-row small,html[data-theme=dark] .user-row span,html[data-theme=dark] .settings-card .card-head span,html[data-theme=dark] .bot-channel-card-header span,html[data-theme=dark] .bot-channel-meta,html[data-theme=dark] .telegram-diagnostics-panel,html[data-theme=dark] .info-row span,html[data-theme=dark] .cell-text,html[data-theme=dark] .review-cell-value,html[data-theme=dark] .ref-secondary{color:#9ab0c7}html[data-theme=dark] .metric:before{background:linear-gradient(90deg,#57bfff,#5dd3ff)}html[data-theme=dark] .records-table th,html[data-theme=dark] .records-table td{border-right-color:#91a8bf1f;border-bottom-color:#91a8bf1f}html[data-theme=dark] .records-table th{color:#d8f1ff;background:linear-gradient(180deg,#18263cfa,#1f304cfa);border-bottom-color:#57bfff38}html[data-theme=dark] .records-table tr:nth-child(2n) td{background:#101928f0}html[data-theme=dark] .records-table tr:hover td{background:#1d2d46f5}html[data-theme=dark] .records-table tr.row-review td,html[data-theme=dark] .records-table tr.is-selected td{background:linear-gradient(90deg,#1e40af3d,#0e74901f);box-shadow:inset 0 0 0 1px #7dd3fc1a}html[data-theme=dark] .records-table tr.row-review:hover td,html[data-theme=dark] .records-table tr.is-selected:hover td{background:linear-gradient(90deg,#2563eb4d,#0891b229)}html[data-theme=dark] .ref-link{color:#d9f0ff}html[data-theme=dark] .ref-link:hover{color:#7dd3fc}html[data-theme=dark] .review-card{grid-template-columns:72px 1fr;gap:14px;padding:12px;background:#0f1828c7}html[data-theme=dark] .review-card img{border-color:#91a8bf24}html[data-theme=dark] .review-card strong{display:block;margin-bottom:2px;font-size:15px;line-height:1.3}html[data-theme=dark] .review-card span,html[data-theme=dark] .review-card small{display:block;font-size:12px;line-height:1.45}html[data-theme=dark] .settings-nav-item.active{border-color:#57bfff42;background:linear-gradient(135deg,#2563eb38,#0891b21a)}html[data-theme=dark] .primary-button{box-shadow:0 16px 30px #2563eb3d}html[data-theme=dark] .ghost-button,html[data-theme=dark] .icon-button,html[data-theme=dark] .theme-toggle{color:#e7f2ff;border-color:#91a8bf29;background:#121c2dd1}html[data-theme=dark] .ghost-button:hover,html[data-theme=dark] .icon-button:hover,html[data-theme=dark] .theme-toggle:hover{background:#1d2d46f5}html[data-theme=dark] .field input,html[data-theme=dark] .field select,html[data-theme=dark] .field textarea,html[data-theme=dark] .search-box input,html[data-theme=dark] .login-card input,html[data-theme=dark] .settings-panel input,html[data-theme=dark] .settings-panel select,html[data-theme=dark] .settings-panel textarea,html[data-theme=dark] .upload-panel input,html[data-theme=dark] .upload-panel select,html[data-theme=dark] .upload-panel textarea{color:#eef6ff;border-color:#91a8bf2e;background:#0b1320c7}html[data-theme=dark] .status{color:#dfefff;background:#121c2de6}html[data-theme=dark] .status.needs_review,html[data-theme=dark] .status.retry_pending{color:#facc15;background:#78350f47}html[data-theme=dark] .status.completed{color:#86efac;background:#14532d4d}html[data-theme=dark] .status.ocr_failed,html[data-theme=dark] .status.deleted{color:#fda4af;background:#7f1d1d47}html[data-theme=dark] .merge-modal{background:linear-gradient(180deg,#111827f5,#0b1320eb),var(--bg-surface)}html[data-theme=dark] .merge-modal .merge-warning-box,html[data-theme=dark] .merge-warning-box{color:#d7eaff}.review-page{width:min(1680px,100%);gap:18px}.review-detail-summary{gap:14px}.review-detail-summary .metric{padding:16px 17px;background:linear-gradient(180deg,#111a2af5,#0b121fe6),var(--bg-surface)}.review-detail-summary .metric strong{font-size:22px}.detail-layout{grid-template-columns:minmax(400px,440px) minmax(0,1fr);gap:18px}.slip-panel{align-self:start;gap:14px;padding:14px;border:1px solid rgba(145,168,191,.16);border-radius:22px;background:linear-gradient(180deg,#121c2df0,#0b1320e6),var(--bg-surface);box-shadow:var(--shadow-card);overflow:hidden}.slip-panel img{display:block;width:100%;max-height:520px;object-fit:contain;border:1px solid rgba(145,168,191,.12);border-radius:18px;background:#070e18b3}.additional-image-panel{display:grid;gap:12px;padding:14px;border:1px solid rgba(145,168,191,.16);border-radius:18px;background:linear-gradient(180deg,#0b1320c7,#101928b8),var(--bg-surface-soft);box-shadow:var(--shadow-soft)}.additional-image-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px}.additional-image-thumb{display:grid;gap:8px;padding:8px;border:1px solid rgba(125,211,252,.18);border-radius:16px;background:#080f1ba8;color:var(--text-primary);text-decoration:none;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.additional-image-thumb:hover,.additional-image-thumb:focus-visible{border-color:#7dd3fc8c;box-shadow:0 12px 28px #0ea5e92e;transform:translateY(-1px);outline:none}.slip-panel .additional-image-thumb img{width:100%;aspect-ratio:4 / 5;max-height:none;object-fit:cover;border-radius:12px;background:#070e18eb}.additional-image-thumb span{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:28px;color:var(--text-primary);font-size:13px;font-weight:800}.slip-preview-fallback{display:grid;place-items:center;gap:10px;width:100%;min-height:260px;padding:22px;border:1px dashed rgba(125,211,252,.35);border-radius:18px;background:linear-gradient(180deg,#0e1a2beb,#070e18e0);color:#f8fafc;text-align:center}.slip-preview-fallback svg{color:#7dd3fc}.slip-preview-fallback strong{color:#fff;font-size:16px;line-height:1.35}.slip-preview-fallback span{max-width:280px;color:#cbd5e1;font-size:13px;line-height:1.45}.slip-preview-fallback.compact{min-height:88px;padding:10px;gap:5px;border-radius:14px}.slip-preview-fallback.compact strong{font-size:11px}.slip-panel>.ghost-button{justify-content:center;width:100%}.review-form{gap:14px;padding:18px;border:1px solid rgba(145,168,191,.16);border-radius:22px;background:linear-gradient(180deg,#121c2deb,#0b1320e0),var(--bg-surface);box-shadow:var(--shadow-card)}.sync-panel{gap:10px;padding:14px;border:1px solid rgba(145,168,191,.16);border-radius:18px;background:linear-gradient(180deg,#0b1320c7,#101928b8),var(--bg-surface-soft);box-shadow:var(--shadow-soft)}.info-row{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid rgba(145,168,191,.12);font-size:13px}.info-row:last-child{border-bottom:0}.info-row span{color:#94a7bf}.info-row strong{color:#f5f9ff;text-align:right;overflow-wrap:anywhere}.field small{color:var(--text-muted)}.field .form-error{color:var(--color-rose)}.alert.warning{color:#fbbf24;border:1px solid rgba(251,191,36,.18);background:#78350f38}.alert.danger{color:#fecdd3;border:1px solid rgba(251,113,133,.18);background:#7f1d1d3d}.alert.success{color:#86efac;border:1px solid rgba(52,211,153,.18);background:#14532d3d}.review-form .two-col{gap:12px}.review-customer-heading{display:grid;justify-items:start;gap:10px;margin-bottom:10px}.review-customer-heading .section-title{margin:0}.review-confirm-button{min-width:104px}.review-key-data-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:14px}.review-key-data-grid .info-row{min-width:0;padding:10px 12px;border:1px solid rgba(145,168,191,.18);border-radius:10px;background:#ffffffa8}.review-key-data-grid .info-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-key-field{min-width:0;display:grid;gap:6px;padding:10px 12px;border:1px solid rgba(145,168,191,.18);border-radius:8px;background:#ffffffa8}.review-key-field span{overflow:hidden;color:#64748b;font-size:12px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.review-key-field input,.review-key-field select{width:100%;min-width:0;padding:0;border:0;border-radius:0;background:transparent;color:#0f172a;font-size:15px;font-weight:900;text-align:right;box-shadow:none}.review-key-field select{text-align-last:right}.review-key-field input:focus,.review-key-field select:focus{outline:2px solid rgba(59,130,246,.45);outline-offset:4px}.records-open-col{width:84px;min-width:84px;text-align:center}.table-open-button{min-height:30px;padding:5px 10px;white-space:nowrap}.records-table tr.is-openable{cursor:pointer}.review-line-items-panel{display:grid;gap:12px;padding:14px;margin-bottom:14px;border:1px solid rgba(145,168,191,.18);border-radius:8px;background:#ffffff8a}.review-form .field span{color:#aec0d6;font-size:13px;font-weight:600}.review-form input,.review-form select,.review-form textarea{background:#0a111dc2}.review-form .page-actions{padding-top:2px;border-top:1px solid rgba(145,168,191,.12)}.review-page .alert{border-radius:14px}.review-page .merge-modal-overlay{align-items:start}.review-page .merge-modal{margin-top:20px}@media(max-width:1180px){.review-key-data-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-layout{grid-template-columns:1fr}.slip-panel{position:static}}@media(max-width:720px){.review-confirm-bar{align-items:stretch;flex-direction:column}.review-confirm-bar .primary-button{width:100%}.review-key-data-grid{grid-template-columns:1fr}}html[data-theme=dark] body,html[data-theme=dark] .app-shell,html[data-theme=dark] .main-panel,html[data-theme=dark] .page,html[data-theme=dark] .records-page,html[data-theme=dark] .review-page,html[data-theme=dark] .settings-page{background:radial-gradient(circle at top left,rgba(87,191,255,.1),transparent 28%),radial-gradient(circle at top right,rgba(96,165,250,.08),transparent 22%),#0f1828}html[data-theme=dark] .page-header,html[data-theme=dark] .toolbar,html[data-theme=dark] .search-box,html[data-theme=dark] .filter-controls,html[data-theme=dark] .table-shell,html[data-theme=dark] .upload-panel,html[data-theme=dark] .issue-list,html[data-theme=dark] .activity-panel,html[data-theme=dark] .settings-panel,html[data-theme=dark] .settings-card,html[data-theme=dark] .settings-home,html[data-theme=dark] .settings-home-footer,html[data-theme=dark] .settings-panel-frame,html[data-theme=dark] .review-form,html[data-theme=dark] .slip-panel,html[data-theme=dark] .sync-panel,html[data-theme=dark] .empty-state,html[data-theme=dark] .login-card,html[data-theme=dark] .modal-content,html[data-theme=dark] .merge-modal,html[data-theme=dark] .merge-candidate-panel,html[data-theme=dark] .merge-group{border-color:#91a8bf29;background:linear-gradient(180deg,#121c2df2,#0b1320eb),var(--bg-surface);box-shadow:0 24px 54px #0208173d}html[data-theme=dark] .upload-panel,html[data-theme=dark] .issue-list,html[data-theme=dark] .activity-panel,html[data-theme=dark] .settings-panel,html[data-theme=dark] .settings-home,html[data-theme=dark] .settings-home-footer,html[data-theme=dark] .review-form,html[data-theme=dark] .slip-panel,html[data-theme=dark] .sync-panel{background:linear-gradient(180deg,#111a2af5,#09101cf0),var(--bg-surface)}html[data-theme=dark] .toolbar,html[data-theme=dark] .search-box,html[data-theme=dark] .filter-controls,html[data-theme=dark] .merge-bar,html[data-theme=dark] .preset-bar{background:linear-gradient(180deg,#101826eb,#0a111ee0),var(--bg-surface-soft)}html[data-theme=dark] .search-box input,html[data-theme=dark] .filter-controls input,html[data-theme=dark] .filter-controls select,html[data-theme=dark] .upload-panel input,html[data-theme=dark] .upload-panel select,html[data-theme=dark] .upload-panel textarea,html[data-theme=dark] .settings-panel input,html[data-theme=dark] .settings-panel select,html[data-theme=dark] .settings-panel textarea,html[data-theme=dark] .review-form input,html[data-theme=dark] .review-form select,html[data-theme=dark] .review-form textarea{color:#f4f8ff;border-color:#91a8bf2e;background:#080f1ad1}html[data-theme=dark] .filter-scope-pill{background:#0ea5e924;border-color:#38bdf852;color:#bae6fd}html[data-theme=dark] .records-table th{color:#def4ff;background:linear-gradient(180deg,#172539fa,#111d2ffa)}html[data-theme=dark] .records-table td{color:#e9f2ff;background:#0b131ff5}html[data-theme=dark] .records-table tr:nth-child(2n) td{background:#0e1624f5}html[data-theme=dark] .records-table tr:hover td{background:#16253cfa}html[data-theme=dark] .records-table tr.row-review td,html[data-theme=dark] .records-table tr.is-selected td{background:linear-gradient(90deg,#1e40af42,#0b4e632e)}html[data-theme=dark] .records-table tr.row-review:hover td,html[data-theme=dark] .records-table tr.is-selected:hover td{background:linear-gradient(90deg,#2563eb52,#0891b238)}html[data-theme=dark] .empty-state,html[data-theme=dark] .sync-panel,html[data-theme=dark] .info-row{color:#d7e4f3}html[data-theme=dark] .record-summary span,html[data-theme=dark] .chip,html[data-theme=dark] .status{color:#f8fbff;border-color:#7dd3fc3d;background:linear-gradient(180deg,#2563eb3d,#0ea5e929);box-shadow:0 10px 24px #02081729}html[data-theme=dark] .status.needs_review,html[data-theme=dark] .status.retry_pending{color:#fde68a}html[data-theme=dark] .status.completed{color:#86efac}html[data-theme=dark] .status.deleted{color:#cbd5e1}html[data-theme=dark] .alert.warning,html[data-theme=dark] .alert.danger,html[data-theme=dark] .alert.success{border-radius:14px}html[data-theme=light] .page-header h1,html[data-theme=light] .metric strong,html[data-theme=light] .card strong,html[data-theme=light] .settings-card strong,html[data-theme=light] .review-card strong,html[data-theme=light] .setup-summary strong,html[data-theme=light] .setup-banner strong,html[data-theme=light] .record-summary strong,html[data-theme=light] .app-topbar .employee-chip strong{color:#0b1220!important;text-shadow:none!important;font-weight:850!important}html[data-theme=light] .page-header p,html[data-theme=light] .metric span,html[data-theme=light] .card p,html[data-theme=light] .settings-card p,html[data-theme=light] .review-card span,html[data-theme=light] .review-card small,html[data-theme=light] .setup-summary p,html[data-theme=light] .setup-banner p,html[data-theme=light] .chart-panel p,html[data-theme=light] .upload-panel p,html[data-theme=light] .activity-panel p,html[data-theme=light] .muted-note,html[data-theme=light] .sync-mini,html[data-theme=light] .field,html[data-theme=light] .activity-row span,html[data-theme=light] .activity-row small,html[data-theme=light] .user-row span,html[data-theme=light] .settings-card .card-head span,html[data-theme=light] .bot-channel-card-header span,html[data-theme=light] .bot-channel-meta,html[data-theme=light] .telegram-diagnostics-panel,html[data-theme=light] .info-row span,html[data-theme=light] .cell-text,html[data-theme=light] .review-cell-value,html[data-theme=light] .ref-secondary,html[data-theme=light] .app-topbar .employee-chip span{color:#475569!important}html[data-theme=light] .record-summary span{color:#0b1220!important;background:linear-gradient(180deg,#fffffffc,#e2eefffa)!important;border-color:#60a5fa47!important;box-shadow:0 10px 24px #0f172a14!important;font-weight:850!important}html[data-theme=light] .status{color:#0b1220!important;background:linear-gradient(180deg,#f1f5f9fc,#e2e8f0fa)!important;border-color:#94a3b847!important}html[data-theme=light] .status.completed{color:#14532d!important;background:linear-gradient(180deg,#dcfce7fa,#bbf7d0f5)!important}html[data-theme=light] .status.needs_review,html[data-theme=light] .status.retry_pending{color:#92400e!important;background:linear-gradient(180deg,#fef3c7fa,#fde68af5)!important}html[data-theme=light] .status.ocr_failed,html[data-theme=light] .status.deleted{color:#9f1239!important;background:linear-gradient(180deg,#fee2e2fa,#fca5a5f5)!important}html[data-theme=dark] .page-header h1,html[data-theme=dark] .metric strong,html[data-theme=dark] .card strong,html[data-theme=dark] .settings-card strong,html[data-theme=dark] .review-card strong,html[data-theme=dark] .setup-summary strong,html[data-theme=dark] .setup-banner strong,html[data-theme=dark] .record-summary strong,html[data-theme=dark] .app-topbar .employee-chip strong{color:#fff!important;text-shadow:0 1px 0 rgba(2,6,23,.28)!important;font-weight:850!important}html[data-theme=dark] .page-header p,html[data-theme=dark] .metric span,html[data-theme=dark] .card p,html[data-theme=dark] .settings-card p,html[data-theme=dark] .review-card span,html[data-theme=dark] .review-card small,html[data-theme=dark] .setup-summary p,html[data-theme=dark] .setup-banner p,html[data-theme=dark] .chart-panel p,html[data-theme=dark] .upload-panel p,html[data-theme=dark] .activity-panel p,html[data-theme=dark] .muted-note,html[data-theme=dark] .sync-mini,html[data-theme=dark] .field,html[data-theme=dark] .activity-row span,html[data-theme=dark] .activity-row small,html[data-theme=dark] .user-row span,html[data-theme=dark] .settings-card .card-head span,html[data-theme=dark] .bot-channel-card-header span,html[data-theme=dark] .bot-channel-meta,html[data-theme=dark] .telegram-diagnostics-panel,html[data-theme=dark] .info-row span,html[data-theme=dark] .cell-text,html[data-theme=dark] .review-cell-value,html[data-theme=dark] .ref-secondary,html[data-theme=dark] .app-topbar .employee-chip span{color:#d6e4f3!important}html[data-theme=dark] .record-summary span{color:#0b1220!important;background:linear-gradient(180deg,#fffffffc,#e2eefffa)!important;border-color:#93c5fd70!important;box-shadow:0 12px 26px #02081724!important;font-weight:850!important}html[data-theme=dark] .status{color:#f8fbff!important;background:linear-gradient(180deg,#2563eb52,#0ea5e933)!important;border-color:#7dd3fc4d!important}html[data-theme=dark] .status.completed{color:#bbf7d0!important;background:linear-gradient(180deg,#14532d66,#14532d38)!important}html[data-theme=dark] .status.needs_review,html[data-theme=dark] .status.retry_pending{color:#fde68a!important;background:linear-gradient(180deg,#78350f6b,#78350f38)!important}html[data-theme=dark] .status.ocr_failed,html[data-theme=dark] .status.deleted{color:#fecdd3!important;background:linear-gradient(180deg,#7f1d1d6b,#7f1d1d3d)!important}html[data-theme=light] .record-summary span{color:#0f172a;background:linear-gradient(180deg,#fffffffa,#e2eefffa);border-color:#60a5fa38;box-shadow:0 10px 24px #0f172a14}html[data-theme=light] .record-summary strong{color:#0f172a}html[data-theme=light] .status{color:#0f172a;background:linear-gradient(180deg,#f1f5f9fa,#e2e8f0fa);border-color:#94a3b83d}html[data-theme=light] .status.completed{color:#14532d;background:linear-gradient(180deg,#dcfce7fa,#bbf7d0f5)}html[data-theme=light] .status.needs_review,html[data-theme=light] .status.retry_pending{color:#92400e;background:linear-gradient(180deg,#fef3c7fa,#fde68af5)}html[data-theme=light] .status.ocr_failed,html[data-theme=light] .status.deleted{color:#9f1239;background:linear-gradient(180deg,#fee2e2fa,#fca5a5f5)}html[data-theme=dark] .record-summary span{color:#0f172a;background:linear-gradient(180deg,#f1f5f9fa,#bfdbfeeb);border-color:#93c5fd66;box-shadow:0 12px 26px #02081724}html[data-theme=dark] .record-summary strong{color:#0f172a}html[data-theme=dark] .status{color:#f8fbff;background:linear-gradient(180deg,#2563eb47,#1e293bf5);border-color:#7dd3fc47}html[data-theme=dark] .status.completed{color:#bbf7d0;background:linear-gradient(180deg,#14532d66,#14532d38)}html[data-theme=dark] .status.needs_review,html[data-theme=dark] .status.retry_pending{color:#fde68a;background:linear-gradient(180deg,#78350f6b,#78350f38)}html[data-theme=dark] .status.ocr_failed,html[data-theme=dark] .status.deleted{color:#fecdd3;background:linear-gradient(180deg,#7f1d1d6b,#7f1d1d3d)}html[data-theme=dark] .page-header h1,html[data-theme=dark] .metric strong,html[data-theme=dark] .card strong,html[data-theme=dark] .settings-card strong,html[data-theme=dark] .review-card strong,html[data-theme=dark] .setup-summary strong,html[data-theme=dark] .setup-banner strong,html[data-theme=dark] .record-summary strong,html[data-theme=dark] .app-topbar .employee-chip strong{color:#fff}html[data-theme=dark] .page-header p,html[data-theme=dark] .metric span,html[data-theme=dark] .card p,html[data-theme=dark] .settings-card p,html[data-theme=dark] .review-card span,html[data-theme=dark] .review-card small,html[data-theme=dark] .setup-summary p,html[data-theme=dark] .setup-banner p,html[data-theme=dark] .chart-panel p,html[data-theme=dark] .upload-panel p,html[data-theme=dark] .activity-panel p,html[data-theme=dark] .muted-note,html[data-theme=dark] .sync-mini,html[data-theme=dark] .field span,html[data-theme=dark] .field small,html[data-theme=dark] .activity-row span,html[data-theme=dark] .activity-row small,html[data-theme=dark] .user-row span,html[data-theme=dark] .settings-card .card-head span,html[data-theme=dark] .bot-channel-card-header span,html[data-theme=dark] .bot-channel-meta,html[data-theme=dark] .telegram-diagnostics-panel,html[data-theme=dark] .info-row span,html[data-theme=dark] .cell-text,html[data-theme=dark] .review-cell-value,html[data-theme=dark] .ref-secondary,html[data-theme=dark] .empty-state{color:#d7e7f6}.page-header .record-summary span,.page-header .record-summary strong,.page-header .record-summary span *{color:#0b1220!important;text-shadow:none!important;font-weight:900!important}html[data-theme=dark] .page-header .record-summary span,html[data-theme=dark] .page-header .record-summary strong{background:linear-gradient(180deg,#fffffffc,#f1f5f9fa)!important;border-color:#93c5fd80!important;box-shadow:0 14px 30px #0208172e!important}html[data-theme=light] .page-header .record-summary span,html[data-theme=light] .page-header .record-summary strong{background:linear-gradient(180deg,#fffffffc,#e2eefffa)!important;border-color:#60a5fa4d!important;box-shadow:0 10px 24px #0f172a14!important}.page-header .record-summary span{min-height:38px;padding-inline:12px}.page-header .record-summary strong{font-size:14px!important}.page-header h1,.metric strong,.card strong,.settings-card strong,.review-card strong,.setup-summary strong,.setup-banner strong,.app-topbar .employee-chip strong{color:#f8fbff!important;text-shadow:0 1px 0 rgba(2,6,23,.28)!important}html[data-theme=light] .page-header h1,html[data-theme=light] .metric strong,html[data-theme=light] .card strong,html[data-theme=light] .settings-card strong,html[data-theme=light] .review-card strong,html[data-theme=light] .setup-summary strong,html[data-theme=light] .setup-banner strong,html[data-theme=light] .app-topbar .employee-chip strong{color:#0b1220!important;text-shadow:none!important}.merge-bar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}.records-table-profiled .records-col-reference,.records-table-profiled .records-col-source-account,.records-table-profiled .records-col-destination-account,.records-table-profiled .records-col-product,.records-table-profiled .records-col-customer,.records-table-profiled .records-col-source-bank,.records-table-profiled .records-col-destination-bank{overflow-wrap:anywhere;word-break:break-word}.records-table-profiled .records-col-reference{min-width:220px;max-width:280px}.records-table-profiled .records-col-customer{min-width:160px;max-width:220px}.records-table-profiled .records-col-type{min-width:84px}.records-table-profiled .records-col-amount,.records-table-profiled .records-col-quantity{min-width:128px}.records-table-profiled .records-col-source-bank,.records-table-profiled .records-col-destination-bank,.records-table-profiled .records-col-source-account,.records-table-profiled .records-col-destination-account{min-width:168px}.records-table-profiled .records-col-chat-time,.records-table-profiled .records-col-transfer-date,.records-table-profiled .records-col-transfer-time{min-width:122px}.records-table-profiled .records-col-product{min-width:120px}.records-table-profiled .records-col-image{min-width:84px}.records-table-profiled .records-col-status{min-width:118px}.records-table-profiled .records-col-sync{min-width:96px}.records-table-profiled .ref-cell .ref-link,.records-table-profiled .ref-cell .ref-secondary{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.records-column-modal{width:min(1180px,100%)}.column-modal-note{padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft);color:var(--muted);font-size:13px;line-height:1.5}.column-option-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:13px}.column-option-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.column-option{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft);cursor:pointer;transition:border-color .12s ease,background .12s ease,box-shadow .12s ease,transform .12s ease}.column-option:hover{border-color:#3b82f659;transform:translateY(-1px)}.column-option.is-selected{border-color:#3b82f673;background:#eff6ffd1;box-shadow:0 12px 32px #3b82f614}.column-option input{width:16px;height:16px;margin-top:2px;flex:0 0 auto;accent-color:var(--primary)}.column-option span{display:grid;gap:4px;min-width:0}.column-option strong{font-size:14px;line-height:1.35}.column-option small{color:var(--muted);font-size:12px;line-height:1.45}.tab-btn{display:inline-flex;align-items:center;gap:8px}.nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 7px;border:1px solid rgba(56,189,248,.42);border-radius:999px;background:#0ea5e929;color:#e0f2fe;font-size:12px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}.tab-btn.active .nav-count{border-color:#38bdf8;background:#0ea5e9;color:#fff}html[data-theme=light] .nav-count{border-color:#7dd3fc;background:#e0f2fe;color:#075985}html[data-theme=light] .tab-btn.active .nav-count{border-color:#0284c7;background:#0284c7;color:#fff}.toast-stack{position:fixed;right:24px;bottom:24px;z-index:9999;display:grid;gap:10px;width:min(420px,calc(100vw - 32px));pointer-events:none}.toast{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;border:1px solid rgba(148,163,184,.26);border-radius:18px;background:#fff;color:#0f172a;box-shadow:0 18px 44px #0f172a38;font-size:15px;font-weight:800;line-height:1.45;pointer-events:auto}.toast-success{border-color:#10b98173}.toast-success svg{color:#047857}.toast-error{border-color:#ef444480}.toast-error svg{color:#dc2626}.toast-info svg{color:#0284c7}.settings-subpanel{display:grid;gap:12px;padding:16px;border:1px solid var(--border);border-radius:20px;background:#ffffff0a}.rate-tier-panel{display:grid;gap:12px;padding:14px;border:1px solid rgba(124,184,255,.24);border-radius:16px;background:#07132352}.rate-tier-panel .chart-header{align-items:flex-start}.rate-tier-empty{display:grid;gap:4px;padding:14px;border:1px dashed rgba(148,163,184,.4);border-radius:14px;color:var(--muted);background:#ffffff08}.rate-tier-empty strong{color:var(--text)}.rate-tier-row{display:grid;gap:10px;padding:12px;border:1px solid var(--border);border-radius:14px;background:#ffffff0a}.rate-tier-row-header{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--text)}.rate-tier-row-header span{color:var(--cyan);font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}.opening-balance-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) minmax(80px,.5fr) minmax(100px,.7fr) auto;gap:10px;align-items:center}.opening-balance-row input{min-width:0}.manual-record-modal{width:min(1120px,calc(100vw - 32px));max-height:min(88vh,980px);overflow:auto}.manual-record-modal .three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.review-attach-cell{min-width:132px}.review-attach-cell .ghost-button{white-space:nowrap}.product-transfer-panel{display:grid;gap:14px;margin:18px 0 20px;padding:18px;border:1px solid rgba(45,212,191,.36);border-radius:24px;background:linear-gradient(135deg,#14b8a629,#0ea5e914),#081627eb;box-shadow:0 18px 48px #06b6d41f}.product-transfer-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.product-transfer-header strong{display:block;color:#ecfeff;font-size:1.05rem;letter-spacing:-.01em}.product-transfer-header span,.product-transfer-summary span,.product-transfer-empty{color:#a7f3d0}.product-transfer-add,.product-transfer-save,.product-transfer-remove{border:1px solid rgba(125,211,252,.46);border-radius:999px;color:#f0f9ff;background:linear-gradient(135deg,#0891b2,#2563eb);font-weight:800;white-space:nowrap}.product-transfer-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.product-transfer-add{padding:10px 16px}.product-transfer-save{padding:10px 18px;color:#082f49;background:linear-gradient(135deg,#a7f3d0,#7dd3fc);border-color:#a5f3fcc2;box-shadow:0 12px 28px #2dd4bf2e}.product-transfer-remove{padding:9px 12px;align-self:end;color:#fff7ed;background:#7f1d1d70;border-color:#fb923c6b}.product-transfer-add:disabled,.product-transfer-save:disabled,.product-transfer-remove:disabled{cursor:not-allowed;opacity:.5}.product-transfer-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product-transfer-summary>div{padding:14px;border:1px solid rgba(103,232,249,.25);border-radius:18px;background:#0206176b}.product-transfer-summary strong{display:block;margin-top:4px;color:#fff;font-size:1.08rem}.product-transfer-summary .is-over{border-color:#fbbf248c;background:#713f1247}.product-transfer-list{display:grid;gap:12px}.product-transfer-row{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(120px,.7fr) minmax(130px,.75fr) minmax(110px,.65fr) minmax(150px,1fr) minmax(180px,1.2fr) auto;gap:10px;align-items:end;padding:14px;border:1px solid rgba(125,211,252,.24);border-radius:20px;background:#0f172a9e}.product-transfer-row .field{gap:6px}.product-transfer-row input{min-width:0}.product-transfer-empty{padding:16px;border:1px dashed rgba(45,212,191,.34);border-radius:18px;background:#02061747}html[data-theme=light] .product-transfer-panel{background:linear-gradient(135deg,#ecfeff,#eff6ff);border-color:#67e8f9;box-shadow:0 18px 42px #0891b224}html[data-theme=light] .product-transfer-header strong,html[data-theme=light] .product-transfer-summary strong{color:#0f172a}html[data-theme=light] .product-transfer-header span,html[data-theme=light] .product-transfer-summary span,html[data-theme=light] .product-transfer-empty{color:#0f766e}html[data-theme=light] .product-transfer-summary>div,html[data-theme=light] .product-transfer-row,html[data-theme=light] .product-transfer-empty{background:#ffffffd1}html[data-theme=light] .settings-subpanel{background:#f8fafc}.matching-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.matching-workspace-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}.matching-review-panel{display:grid;grid-template-columns:1.1fr repeat(5,minmax(130px,1fr));gap:12px;align-items:stretch;margin-bottom:16px;padding:16px;border:1px solid rgba(125,211,252,.24);border-radius:18px;background:#02061780}.matching-review-panel>div,.matching-review-panel .info-row{min-width:0}.matching-review-panel .muted-text{display:block;margin-bottom:4px;color:var(--muted);font-size:.78rem}.matching-review-panel input{grid-column:1 / -1}.matching-actions{grid-column:1 / -1;display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.matching-column{min-width:0;padding:16px;border:1px solid rgba(148,163,184,.2);border-radius:18px;background:#0f172a8f}.matching-card-list{display:grid;gap:12px}.matching-card{min-width:0;width:100%;color:inherit;text-align:left;padding:14px;border:1px solid rgba(125,211,252,.18);border-radius:16px;background:#02061761}.matching-card.selectable{cursor:pointer}.matching-card.selectable:hover{border-color:#7dd3fc70;background:#0ea5e91c}.matching-card.selected{border-color:#7dd3fce0;box-shadow:0 0 0 2px #7dd3fc24 inset;background:#0ea5e929}.matching-card-head{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:10px}.matching-card .info-row{grid-template-columns:minmax(92px,.7fr) minmax(0,1fr)}html[data-theme=light] .matching-column{background:#f8fafc;border-color:#cbd5e1}html[data-theme=light] .matching-review-panel{background:#f8fafc;border-color:#bfdbfe}html[data-theme=light] .matching-card{background:#fff;border-color:#dbeafe}@media(max-width:780px){.toast-stack{right:16px;bottom:16px}.opening-balance-row,.manual-record-modal .three-col,.product-transfer-header,.product-transfer-summary,.product-transfer-row{grid-template-columns:1fr}.product-transfer-header{align-items:stretch}.product-transfer-actions{justify-content:stretch}.product-transfer-actions button{width:100%}.matching-kpis,.matching-workspace-grid,.matching-review-panel{grid-template-columns:1fr}.matching-column,.matching-card{border-radius:14px}}
