:root{--bg: #f4f5f7;--surface: #ffffff;--surface-2: #f9fafb;--border: #e5e7eb;--border-strong: #d0d5dd;--text: #101828;--text-muted: #667085;--text-subtle: #98a2b3;--accent: #2563eb;--accent-strong: #1d4ed8;--accent-soft: #eff4ff;--green: #047857;--green-soft: #d1fadf;--yellow: #b54708;--yellow-soft: #fef3c7;--red: #b42318;--red-soft: #fee4e2;--blue: #1849a9;--blue-soft: #dbe9ff;--radius: 8px;--radius-sm: 6px;--shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);--shadow-md: 0 4px 12px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif}*{box-sizing:border-box}html,body{margin:0;padding:0;height:100%}body{font-family:var(--font);color:var(--text);background:var(--bg);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,h4{margin-top:0;letter-spacing:-.01em;color:var(--text)}h2{font-size:22px;font-weight:600;margin-bottom:16px}h3{font-size:16px;font-weight:600;margin-bottom:12px}h4{font-size:13px;font-weight:600;margin-bottom:8px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}p{margin:0 0 12px}.muted{color:var(--text-muted)}.subtle{color:var(--text-subtle)}.app{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:#0c111d;color:#cdd5e0;padding:28px 16px;position:sticky;top:0;height:100vh;overflow-y:auto;display:flex;flex-direction:column}.sidebar h1{font-size:16px;font-weight:600;color:#fff;margin:0 12px 28px;letter-spacing:-.01em;display:flex;align-items:center;gap:8px}.sidebar h1:before{content:"";width:8px;height:8px;border-radius:2px;background:linear-gradient(135deg,#60a5fa,#2563eb)}.sidebar nav{display:flex;flex-direction:column;gap:2px}.sidebar nav a{display:block;padding:9px 12px;border-radius:var(--radius-sm);color:#cdd5e0;font-size:14px;transition:background 80ms ease,color 80ms ease}.sidebar nav a:hover{background:#1a2032;color:#fff;text-decoration:none}.sidebar nav a.active{background:#1e293b;color:#fff;font-weight:500}.content{padding:32px 40px;max-width:1400px;width:100%}button,.btn{background:var(--accent);color:#fff;border:1px solid var(--accent);padding:8px 14px;border-radius:var(--radius-sm);cursor:pointer;font-size:13px;font-weight:500;font-family:inherit;line-height:1.3;transition:background 80ms ease,border-color 80ms ease,color 80ms ease,transform 60ms ease;display:inline-flex;align-items:center;gap:6px}button:hover,.btn:hover{background:var(--accent-strong);border-color:var(--accent-strong)}button:active{transform:translateY(.5px)}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:disabled{opacity:.5;cursor:not-allowed}button.secondary,.btn.secondary{background:var(--surface);color:var(--text);border:1px solid var(--border-strong)}button.secondary:hover{background:var(--surface-2);border-color:var(--text-muted)}button.ghost{background:transparent;border-color:transparent;color:var(--text-muted)}button.ghost:hover{background:var(--surface-2);color:var(--text)}button.danger{background:var(--red);border-color:var(--red)}button.danger:hover{background:#912a1f;border-color:#912a1f}button.success{background:var(--green);border-color:var(--green)}button.success:hover{background:#036249;border-color:#036249}button.sm{padding:5px 10px;font-size:12px}input,select,textarea{padding:8px 12px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);font-size:13px;font-family:inherit;background:var(--surface);color:var(--text);transition:border-color 80ms ease,box-shadow 80ms ease}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #2563eb1f}label{display:block;font-size:12px;color:var(--text-muted);margin-bottom:5px;font-weight:500}.row{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.row>div{flex:1;min-width:140px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-sm);margin-bottom:16px}.card.compact{padding:14px 16px}table{width:100%;border-collapse:separate;border-spacing:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}th,td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--border);font-size:13px}tr:last-child td{border-bottom:none}th{background:var(--surface-2);font-weight:500;color:var(--text-muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em}tbody tr:hover{background:var(--surface-2)}.pill{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:500;letter-spacing:.01em;background:var(--surface-2);color:var(--text-muted);border:1px solid var(--border)}.pill.pending{background:var(--yellow-soft);color:var(--yellow);border-color:transparent}.pill.approved{background:var(--green-soft);color:var(--green);border-color:transparent}.pill.rejected{background:var(--red-soft);color:var(--red);border-color:transparent}.pill.exported{background:var(--blue-soft);color:var(--blue);border-color:transparent}.pill.failed,.pill.needs_review{background:var(--red-soft);color:var(--red);border-color:transparent}.flag{display:inline-flex;align-items:center;font-size:11px;color:var(--red);background:var(--red-soft);padding:1px 6px;border-radius:4px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0}.dot.ready{background:var(--green)}.dot.attention{background:#d97706}.dot.blocked{background:var(--red)}.dot.done,.dot.rejected{background:var(--text-subtle)}.filter-bar{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}.filter-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:var(--surface);border:1px solid var(--border);border-radius:999px;font-size:13px;font-weight:500;color:var(--text-muted);cursor:pointer;transition:background 80ms ease,border-color 80ms ease,color 80ms ease}.filter-chip:hover{background:var(--surface-2);color:var(--text)}.filter-chip.active{background:var(--text);border-color:var(--text);color:#fff}.filter-chip .count{background:#0000000f;padding:0 6px;border-radius:999px;font-size:11px;min-width:20px;text-align:center}.filter-chip.active .count{background:#ffffff2e;color:#fff}.queue-page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px;gap:16px;flex-wrap:wrap}.queue-header-meta{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--text-muted)}.live-pulse{display:inline-flex;align-items:center;gap:6px}.live-pulse:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--green);animation:pulse 1.6s ease-in-out infinite}@keyframes pulse{0%,to{opacity:.4}50%{opacity:1}}.queue-split{display:grid;grid-template-columns:minmax(380px,1fr) minmax(440px,1.2fr);gap:16px;align-items:start}.queue-list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;max-height:calc(100vh - 220px);overflow-y:auto}.queue-list-header{padding:10px 16px;font-size:12px;color:var(--text-muted);background:var(--surface-2);border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.queue-row{padding:12px 16px;border-bottom:1px solid var(--border);cursor:pointer;display:grid;grid-template-columns:auto 12px 1fr auto;gap:12px;align-items:center;transition:background 60ms ease}.queue-row .row-check,.queue-list-header .row-check{width:15px;height:15px;cursor:pointer;accent-color:var(--accent);margin:0}.bulk-bar{display:flex;align-items:center;gap:10px;padding:10px 14px;margin-bottom:12px;background:var(--accent-soft);border:1px solid var(--accent);border-radius:var(--radius-sm)}.bulk-bar .count{font-size:13px;font-weight:600;color:var(--text)}.queue-row:last-child{border-bottom:none}.queue-row:hover{background:var(--surface-2)}.queue-row.selected{background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}.queue-row .name{font-weight:500;font-size:13px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.queue-row .meta{font-size:12px;color:var(--text-muted);display:flex;gap:10px;align-items:center}.queue-row .id-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;color:var(--text-subtle)}.queue-row .quick-actions{display:flex;gap:4px;opacity:0;transition:opacity 80ms ease}.queue-row:hover .quick-actions,.queue-row.selected .quick-actions{opacity:1}.detail-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);position:sticky;top:24px;max-height:calc(100vh - 220px);overflow-y:auto}.detail-empty{padding:64px 24px;text-align:center;color:var(--text-muted)}.detail-empty .icon{width:48px;height:48px;margin:0 auto 12px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:24px;color:var(--text-subtle)}.detail-section{padding:18px 20px;border-bottom:1px solid var(--border)}.detail-section:last-child{border-bottom:none}.detail-section h4{margin-top:0;margin-bottom:12px}.detail-header{padding:18px 20px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.detail-header .title{display:flex;flex-direction:column;gap:4px}.detail-header .title .name{font-size:16px;font-weight:600}.detail-header .title .sub{font-size:12px;color:var(--text-muted);font-family:ui-monospace,monospace}.day-strip{display:flex;flex-wrap:wrap;gap:4px;padding:4px 0}.day-chip{width:30px;height:36px;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px;font-weight:600;cursor:default;transition:transform 80ms ease;position:relative;border:1px solid transparent}.day-chip:hover{transform:translateY(-1px)}.day-chip .num{font-size:11px}.day-chip .dow{font-size:9px;opacity:.7;font-weight:400}.day-chip.workday-counted{background:var(--accent);color:#fff}.day-chip.weekend-counted{background:#93c5fd;color:var(--accent-strong)}.day-chip.weekend-skipped{background:var(--surface-2);color:var(--text-subtle);border-color:var(--border)}.day-chip.holiday-counted{background:#fdba74;color:#7c2d12}.day-chip.holiday-skipped{background:#fed7aa;color:#9a3412;opacity:.6}.legend{display:flex;flex-wrap:wrap;gap:14px;font-size:11px;color:var(--text-muted)}.legend-item{display:inline-flex;align-items:center;gap:5px}.legend-swatch{width:12px;height:12px;border-radius:3px}.match-card{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--border)}.match-card.exact{background:var(--green-soft);border-color:transparent}.match-card.fuzzy{background:var(--yellow-soft);border-color:transparent}.match-card.miss{background:var(--red-soft);border-color:transparent}.match-icon{width:32px;height:32px;border-radius:50%;background:#ffffffb3;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:13px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-grid>div{display:flex;flex-direction:column;gap:4px}.field-grid label{margin-bottom:0}.conf{font-size:10px;padding:1px 5px;border-radius:3px;font-weight:500;font-family:ui-monospace,monospace;background:var(--surface-2);color:var(--text-muted)}.conf.low{background:var(--red-soft);color:var(--red)}.conf.med{background:var(--yellow-soft);color:var(--yellow)}.conf.high{background:var(--green-soft);color:var(--green)}.drop-zone{border:2px dashed var(--border-strong);border-radius:var(--radius);padding:56px 24px;text-align:center;background:var(--surface);transition:background .1s ease,border-color .1s ease;cursor:pointer}.drop-zone:hover,.drop-zone.dragging{border-color:var(--accent);background:var(--accent-soft)}.drop-zone .big{font-size:28px;margin-bottom:6px;color:var(--accent)}.drop-zone .hint{color:var(--text-muted);font-size:13px}.upload-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;padding:10px 12px;align-items:center;border-bottom:1px solid var(--border);font-size:13px}.upload-row:last-child{border-bottom:none}.upload-row .status-text.ok{color:var(--green)}.upload-row .status-text.err{color:var(--red)}.kbd{font-family:ui-monospace,SFMono-Regular,monospace;font-size:10px;background:var(--surface-2);border:1px solid var(--border);padding:1px 5px;border-radius:3px;color:var(--text-muted)}.empty-state{padding:48px 24px;text-align:center;color:var(--text-muted)}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:999px}::-webkit-scrollbar-thumb:hover{background:var(--text-subtle)}
