.csv-app { --soft-gold:#f0e4ce; --green-bg:#e9f0e6; --red-bg:#f8e7e2; font-size:14px; overflow-wrap:anywhere; }
.csv-app .sr-only { top:0; left:0; }
.demo-notice { display:flex; justify-content:space-between; gap:14px; padding:11px 32px; background:var(--ink); color:#f8f5ed; font-size:11px; letter-spacing:.025em; }
.demo-notice strong { color:#e3b45f; font-weight:600; }
.app-header { display:flex; align-items:center; justify-content:space-between; gap:24px; max-width:1560px; margin:auto; padding:23px 32px; border-bottom:1px solid var(--line); }
.app-brand { display:flex; align-items:center; gap:10px; text-decoration:none; font-size:16px; font-weight:650; }
.app-brand img { border-radius:7px; }
.app-brand small { display:block; font:10px var(--mono); color:var(--muted); margin-top:2px; text-transform:uppercase; letter-spacing:.08em; }
.app-header nav { display:flex; flex-wrap:wrap; gap:12px 24px; font-size:12px; }
.app-header nav a { text-decoration:none; min-height:30px; display:inline-flex; align-items:center; }
.app-header nav a:hover,.app-footer a:hover { text-decoration:underline; text-underline-offset:4px; }
main { max-width:1560px; margin:auto; padding:30px 32px 56px; }
.workspace-title { display:flex; justify-content:space-between; align-items:center; gap:28px; }
.workspace-title > div { min-width:0; }
.eyebrow { color:var(--muted); font:10px var(--mono); text-transform:uppercase; letter-spacing:.13em; margin:0 0 9px; }
h1,h2,h3,p { margin-top:0; }
h1 { font-size:clamp(32px,3.8vw,50px); line-height:1.12; letter-spacing:-.055em; margin-bottom:12px; }
h1 span { color:#8b631c; }
.intro { color:var(--muted); font-size:15px; margin-bottom:0; max-width:62ch; }
.workspace-status { display:flex; align-items:center; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:11px; }
.status-dot { width:7px; height:7px; border-radius:50%; background:var(--good); flex:none; }
.workspace-status .button { margin-left:10px; }
.button { min-height:39px; border:1px solid var(--line); background:var(--panel); border-radius:8px; padding:8px 13px; display:inline-flex; align-items:center; justify-content:center; gap:8px; color:var(--ink); text-decoration:none; font-size:12px; font-weight:600; line-height:1.3; }
.button:hover:not(:disabled) { border-color:#797c6e; background:#fffdf6; }
.button.primary { background:var(--accent); border-color:var(--accent); color:#211d12; }
.button.primary:hover { background:#d3a04b; }
.button.dark { background:var(--ink); border-color:var(--ink); color:var(--panel); }
.button.dark:hover:not(:disabled) { background:#34372b; }
.button.subtle { background:transparent; }
.button.text-button { padding-inline:5px; border-color:transparent; background:transparent; font-weight:500; }
.button:disabled { opacity:.42; }
.flow-strip { display:flex; align-items:center; gap:15px; padding:20px 0; margin-top:8px; color:var(--muted); font-size:11px; }
.flow-strip span { display:flex; gap:7px; align-items:center; }
.flow-strip b { font:10px var(--mono); color:#8b631c; }
.flow-strip i { font-style:normal; color:#b8bbaf; }
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; margin-bottom:22px; }
.stat-card { border:1px solid var(--line); background:rgba(250,248,242,.7); border-radius:13px; padding:17px 21px; }
.stat-card p { color:var(--muted); margin:0 0 4px; font-size:11px; }
.stat-card strong { font-size:33px; letter-spacing:-.05em; line-height:1.25; }
.stat-card small { display:block; color:var(--muted); font-size:10px; margin-top:3px; }
.stat-card.good { background:var(--green-bg); border-color:#d2decc; }
.stat-card.good strong { color:var(--good); }
.workspace-grid { display:grid; grid-template-columns:330px minmax(0,1fr); align-items:start; gap:20px; }
.workspace-grid,.workspace-grid > *, .tab-panel,.table-tools,.scope-grid > * { min-width:0; }
.panel { border:1px solid var(--line); background:var(--panel); border-radius:16px; min-width:0; overflow:hidden; }
.source-panel { padding:22px; }
.panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.panel-heading h2 { font-size:18px; letter-spacing:-.025em; line-height:1.3; margin-bottom:11px; }
.small-pill { white-space:nowrap; font:9px var(--mono); border:1px solid var(--line); border-radius:20px; padding:5px 7px; color:var(--muted); }
.helper { color:var(--muted); font-size:12px; line-height:1.65; }
.source-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:16px 0; }
.source-actions .button { font-size:11px; }
.file-label { position:relative; cursor:pointer; }
.file-label:focus-within { outline:3px solid #856024; outline-offset:3px; }
.field-label { display:block; font-size:11px; font-weight:650; margin-bottom:8px; }
.field-label span { display:block; font-weight:400; color:var(--muted); font-size:10px; margin-top:2px; }
textarea { width:100%; resize:vertical; min-height:200px; max-height:600px; border:1px solid var(--line); border-radius:9px; padding:12px; background:#f3f1e9; font:10px/1.7 var(--mono); tab-size:2; }
.schema-note { color:var(--muted); font-size:10px; line-height:1.7; margin:10px 0 20px; }
code { overflow-wrap:anywhere; font-family:var(--mono); }
.schema-note b { color:var(--ink); font-weight:500; }
.rules { border:0; padding:0; margin:0; min-inline-size:0; }
.rules legend { font-size:11px; font-weight:650; padding:0; margin-bottom:12px; }
.rules label { display:flex; align-items:flex-start; gap:9px; margin-bottom:14px; }
.rules input { margin:3px 0 0; accent-color:#94702e; width:15px; height:15px; flex:none; }
.rules b { display:block; font-size:11px; font-weight:600; }
.rules small { display:block; font-size:10px; line-height:1.6; margin-top:2px; color:var(--muted); }
.run-button { width:100%; margin-top:4px; min-height:43px; justify-content:space-between; }
.pipeline-status { margin:11px 0 0; font-size:11px; color:var(--muted); min-height:18px; }
.pipeline-status.is-stale { color:var(--warning); }
.source-error { margin-top:12px; padding:12px; border-radius:8px; background:var(--red-bg); border:1px solid #e4beb3; color:#842f28; font-size:11px; line-height:1.6; }
.source-error strong { display:block; }
.local-note { display:flex; align-items:flex-start; gap:7px; margin:18px 0 0; font-size:10px; line-height:1.6; color:var(--muted); border-top:1px solid var(--line); padding-top:14px; }
.result-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:22px 24px 16px; }
.result-heading h2 { font-size:21px; line-height:1.2; letter-spacing:-.035em; margin-bottom:0; }
.export-actions { display:flex; flex-wrap:wrap; gap:7px; justify-content:flex-end; }
.export-actions .button { font-size:11px; }
.result-note { margin:0 24px 18px; padding:10px 12px; background:#f0eee5; border-radius:8px; color:var(--muted); font-size:11px; line-height:1.6; }
.result-note.warning { background:var(--soft-gold); color:#715018; }
.tabs { display:flex; padding:0 24px; gap:22px; border-bottom:1px solid var(--line); overflow-x:auto; }
.tabs button { display:flex; align-items:center; gap:6px; padding:13px 0 12px; min-height:44px; white-space:nowrap; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--muted); font-size:12px; }
.tabs button[aria-selected="true"] { color:var(--ink); border-bottom-color:var(--ink); font-weight:650; }
.tabs button span { font:9px var(--mono); padding:2px 5px; background:#e8e7df; border-radius:4px; }
.tab-panel { min-height:360px; }
.table-tools { display:flex; gap:14px; justify-content:space-between; align-items:center; padding:18px 24px 8px; }
.search-field { flex:1; max-width:310px; }
input[type="search"],select { min-height:36px; border:1px solid var(--line); border-radius:7px; padding:7px 10px; background:#fffdf8; font-size:11px; }
input[type="search"] { width:100%; }
.status-control { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:10px; }
.rows-shown { color:var(--muted); font-size:10px; padding:0 24px; margin:3px 0 12px; }
.table-scroll { width:100%; overflow-x:auto; position:relative; }
table { border-collapse:collapse; width:100%; text-align:left; }
.preview-table { min-width:740px; font-size:11px; }
thead th { background:#f0eee6; color:var(--muted); font-size:9px; font-weight:500; letter-spacing:.045em; text-transform:uppercase; padding:12px; border-bottom:1px solid var(--line); }
thead th:first-child,tbody td:first-child { padding-left:24px; }
tbody td { padding:14px 12px; border-bottom:1px solid #e7e4da; vertical-align:middle; }
tbody tr:last-child td { border-bottom:0; }
.preview-table tbody tr:hover { background:#f3f0e6; }
.numeric { text-align:right; font-variant-numeric:tabular-nums; }
.row-number { color:var(--muted); font:10px var(--mono); }
.record-id { display:block; font-weight:650; font-size:11px; }
.customer-name { display:block; color:var(--muted); max-width:145px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; margin-top:2px; }
.email-cell { color:var(--muted); max-width:165px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.status-chip { display:inline-flex; align-items:center; padding:4px 7px; border-radius:5px; font-size:9px; font-weight:600; white-space:nowrap; background:#e8ece2; color:var(--good); }
.status-chip.rejected,.status-chip.conflict { background:var(--red-bg); color:#923c31; }
.status-chip.duplicate { background:var(--soft-gold); color:#805d21; }
.change-count { display:block; margin-top:4px; font-size:9px; color:var(--muted); }
.row-inspect { min-width:34px; min-height:34px; border:1px solid var(--line); border-radius:6px; background:transparent; color:var(--ink); font-size:15px; }
.row-inspect:hover { background:#ece8da; }
.empty-state { padding:38px 24px; text-align:center; color:var(--muted); }
.empty-state > span { display:block; font-size:36px; color:#a9a995; margin-bottom:8px; }
.empty-state h3 { font-size:16px; color:var(--ink); margin-bottom:7px; }
.empty-state p { font-size:12px; margin-bottom:0; }
.section-explanation { padding:22px 24px 0; }
.section-explanation h3 { font-size:16px; letter-spacing:-.02em; margin-bottom:6px; }
.section-explanation p { color:var(--muted); font-size:11px; line-height:1.65; max-width:70ch; }
.issues-list { padding:0 24px 24px; display:grid; gap:9px; }
.issue-card { border:1px solid var(--line); border-radius:9px; padding:12px 14px; border-left:3px solid #aa5141; }
.issue-card.warning { border-left-color:var(--accent); }
.issue-card h4 { display:flex; justify-content:space-between; flex-wrap:wrap; gap:7px; font-size:11px; margin:0 0 6px; }
.issue-card h4 small { font-weight:400; font:9px var(--mono); color:var(--muted); }
.issue-card p { color:var(--muted); margin:0; font-size:11px; line-height:1.6; }
.issue-value { display:block; font:10px var(--mono); white-space:pre-wrap; overflow-wrap:anywhere; margin-top:6px; color:#6b4a24; }
.report-stats { display:grid; grid-template-columns:1fr 1fr; margin:20px 24px; border:1px solid var(--line); border-radius:10px; }
.report-stats > div { padding:17px 19px; }
.report-stats > div + div { border-left:1px solid var(--line); }
.report-stats span { display:block; font-size:10px; color:var(--muted); }
.report-stats strong { display:block; font-size:25px; letter-spacing:-.04em; margin-top:3px; }
.report-block { padding:0 24px 24px; }
.report-block h3 { font-size:12px; margin-bottom:17px; }
.region-chart { display:grid; gap:14px; }
.bar-label { display:flex; justify-content:space-between; gap:12px; font-size:11px; margin-bottom:5px; }
.bar-label small { color:var(--muted); margin-left:5px; }
.bar-track { height:8px; border-radius:10px; background:#ebe7da; overflow:hidden; }
.bar-fill { height:100%; background:var(--accent); border-radius:10px; }
.month-table { font-size:11px; min-width:260px; }
.month-table td:first-child,.month-table th:first-child { padding-left:12px; }
.scope-panel { margin-top:34px; padding:30px 0 0; border-top:1px solid var(--line); }
.scope-panel h2 { font-size:25px; letter-spacing:-.035em; margin-bottom:22px; }
.scope-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; }
.scope-grid h3 { font-size:12px; margin-bottom:8px; }
.scope-grid p,.scope-panel details { font-size:11px; line-height:1.75; color:var(--muted); }
.scope-panel details { border-top:1px solid var(--line); margin-top:12px; padding-top:16px; }
.scope-panel summary { cursor:pointer; color:var(--ink); font-size:12px; padding-block:5px; }
.scope-panel li { margin:7px 0; }
.app-footer { max-width:1560px; margin:auto; display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px; padding:22px 32px 30px; border-top:1px solid var(--line); color:var(--muted); font-size:10px; }
.app-footer a { text-decoration:none; }
dialog { width:min(820px,calc(100% - 28px)); max-height:90svh; border:1px solid var(--line); border-radius:16px; padding:25px; background:var(--panel); color:var(--ink); box-shadow:0 28px 90px #16180f42; }
dialog::backdrop { background:#2427198c; }
.dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.dialog-heading h2 { font-size:23px; letter-spacing:-.035em; margin:0 0 13px; }
.compare-table-wrap { overflow-x:auto; margin-top:18px; }
.compare-table { min-width:500px; font-size:11px; }
.compare-table th,.compare-table td { padding:12px; max-width:260px; overflow-wrap:anywhere; white-space:pre-wrap; }
.compare-table td:first-child { font:10px var(--mono); }
.compare-table .changed { background:#f2e9d6; }
.dialog-issues { display:grid; gap:8px; margin-top:20px; }
@media(min-width:1450px) { .workspace-grid { grid-template-columns:360px minmax(0,1fr); } }
@media(max-width:1100px) { .workspace-grid { grid-template-columns:295px minmax(0,1fr); gap:14px; } .source-panel { padding:18px; } .result-heading { align-items:flex-start; flex-direction:column; } .export-actions { justify-content:flex-start; } .tabs { gap:15px; } .report-stats strong { font-size:21px; } }
@media(max-width:850px) { .workspace-grid { grid-template-columns:minmax(0,1fr); } .source-panel { padding:22px; } .source-panel textarea { min-height:170px; } .rules { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; } .rules legend { grid-column:1/-1; } .run-button { max-width:300px; } .result-heading { flex-direction:row; align-items:center; } .stats-grid { gap:9px; } .stat-card { padding:15px; } .scope-grid { gap:20px; } }
@media(max-width:600px) { .demo-notice { flex-direction:column; gap:5px; padding:10px 18px; font-size:9px; } .app-header { padding:17px 18px; align-items:flex-start; gap:15px; } .app-header nav { gap:4px 15px; justify-content:flex-end; font-size:10px; max-width:160px; } .app-header nav a:first-child { display:none; } .app-brand { font-size:13px; gap:7px; } .app-brand img { width:27px; height:27px; } .app-brand small { font-size:8px; } main { padding:24px 16px 35px; } .workspace-title { display:block; } .workspace-status { margin-top:18px; } .workspace-status .button { margin-left:auto; } .intro { font-size:13px; } .flow-strip { gap:8px; font-size:9px; flex-wrap:wrap; } .flow-strip span { gap:4px; } .flow-strip i { display:none; } .stats-grid { grid-template-columns:1fr 1fr; gap:9px; } .stat-card { padding:13px 15px; } .stat-card strong { font-size:29px; } .stat-card p { font-size:10px; } .stat-card small { font-size:9px; } .source-panel { padding:19px; } .rules { display:block; } .run-button { max-width:none; } .result-heading { display:block; padding:20px 18px 15px; } .result-heading h2 { font-size:20px; } .export-actions { margin-top:16px; gap:7px; } .export-actions .button { flex:1; min-height:42px; } .result-note { margin-inline:18px; } .tabs { padding-inline:18px; gap:20px; } .tabs button { font-size:11px; } .table-tools { padding:16px 18px 8px; flex-wrap:wrap; gap:9px; } .search-field { max-width:none; flex-basis:100%; } .search-field input { min-height:42px; } .status-control select { min-height:40px; } .rows-shown { padding-inline:18px; } thead th:first-child,tbody td:first-child { padding-left:18px; } .section-explanation { padding-inline:18px; } .issues-list { padding-inline:18px; } .report-stats { margin-inline:18px; } .report-stats > div { padding:14px 12px; } .report-stats strong { font-size:19px; } .report-block { padding-inline:18px; } .scope-grid { grid-template-columns:1fr; gap:12px; } .scope-panel h2 { font-size:23px; } .app-footer { padding-inline:18px; } dialog { padding:18px; } .dialog-heading { align-items:flex-start; } }
