@import url("/static/tokens.css");
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:14px/1.55 "Microsoft YaHei","PingFang SC",system-ui,sans-serif; }
a { color:var(--brand); text-decoration:none; }
button,input,select { font:inherit; }
button,.button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:34px; padding:6px 14px; border:1px solid transparent; border-radius:6px; background:var(--brand); color:white; font-size:14px; cursor:pointer; white-space:nowrap; }
button:hover,.button:hover { background:var(--brand-hover); }
button:disabled { opacity:.45; cursor:not-allowed; }
button.secondary,.button.secondary { background:white; border-color:#CFDAEB; color:#4A5568; }
button.secondary:hover,.button.secondary:hover { background:#F3F7FE; border-color:#9DB9E8; }
.text-btn { min-height:28px; padding:3px 6px; border:0; background:transparent!important; color:var(--brand); font-weight:400; }
.text-btn:hover { color:var(--brand-hover); text-decoration:underline; }
.small { min-height:30px; padding:4px 10px; font-size:13px; }
.icon-button { width:32px; min-height:32px; padding:0; border-color:var(--line); background:white; color:#53637D; font-size:18px; }
.icon-button:hover { background:var(--pale); color:var(--brand); }
input,select { min-height:34px; padding:6px 10px; border:1px solid #CFD9E9; border-radius:6px; color:var(--ink); background:white; max-width:100%; }
input::placeholder { color:#8B95A5; }
input:focus,select:focus,button:focus-visible,a:focus-visible,summary:focus-visible { outline:2px solid #92B4EE; outline-offset:2px; }
select { appearance:none; padding-right:30px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position:right 8px center; background-repeat:no-repeat; }
label { display:block; font-size:13px; }
label>input:not([type=file]) { display:block; width:100%; margin-top:5px; }
h1,h2,h3,p { margin-top:0; }
h1 { font-size:21px; line-height:1.35; margin-bottom:6px; font-weight:600; }
h2 { font-size:16px; line-height:1.4; margin-bottom:8px; font-weight:600; }
h3 { font-size:14px; margin-bottom:8px; }
p { margin-bottom:10px; }
.muted { color:var(--muted); font-size:13px; }
.eyebrow,.module-number { display:none; }
.layout { display:grid; grid-template-columns:200px minmax(0,1fr); min-height:100vh; }
.sidebar { position:sticky; top:0; display:flex; flex-direction:column; height:100vh; min-width:0; padding:20px 12px 14px; background:white; border-right:1px solid var(--line); overflow-y:auto; }
.brand { display:flex; align-items:center; gap:10px; margin:0 8px 24px; color:#263B5B; font-size:17px; font-weight:600; }
.brand-mark { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:32px; height:32px; border-radius:6px; background:var(--brand); color:white; font-size:20px; font-weight:600; }
.brand-sub { display:block; margin-top:2px; color:var(--muted); font-size:12px; font-weight:400; }
.nav-item { display:flex; align-items:center; gap:10px; min-height:40px; margin-bottom:5px; padding:8px 12px; border-radius:6px; color:#566278; font-size:14px; }
.nav-item.active { color:var(--brand); background:var(--pale); font-weight:600; }
.nav-item:hover { background:#F3F7FE; }
.nav-icon { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:24px; height:24px; color:var(--brand); font-size:13px; background:#F2F6FD; border-radius:4px; }
.sidebar-bottom { display:flex; align-items:center; gap:8px; margin-top:auto; border-top:1px solid var(--line); padding:14px 6px 0; font-size:13px; min-width:0; }
.sidebar-user { min-width:0; overflow-wrap:anywhere; }
.sidebar-user small { display:block; color:var(--muted); font-size:12px; }
.avatar { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:28px; height:28px; border-radius:50%; background:var(--pale); color:var(--brand); }
.main-shell { min-width:0; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:0 16px; border-bottom:1px solid var(--line); background:white; color:var(--muted); font-size:13px; }
.topbar-start { display:flex; align-items:center; gap:12px; min-width:0; }
.topbar-start>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar strong { color:#34435D; font-weight:500; }
.user-actions { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.topbar-user { color:#4B5565; font-size:13px; max-width:140px; overflow:hidden; text-overflow:ellipsis; }
.is-collapsed { grid-template-columns:64px minmax(0,1fr); }
.is-collapsed .sidebar { padding-right:8px; padding-left:8px; }
.is-collapsed .brand { justify-content:center; margin-right:0; margin-left:0; }
.is-collapsed .brand-copy,.is-collapsed .nav-text,.is-collapsed .sidebar-user { display:none; }
.is-collapsed .nav-item { justify-content:center; padding:8px; }
.is-collapsed .sidebar-bottom { justify-content:center; padding-right:0; padding-left:0; }
#main { min-width:0; padding:16px 18px 24px; max-width:1800px; margin:auto; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.page-heading p:last-child { margin:4px 0 0; }
.panel,.module-card,.recent-card { min-width:0; background:white; border:1px solid var(--line); border-radius:8px; }
.panel { padding:16px; margin-bottom:12px; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.section-heading h2 { margin:0; }
.section-heading p { margin:5px 0 0; }
.actions,.filter-actions { display:flex; align-items:center; gap:8px; }
.filter-bar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; margin-bottom:14px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.filter-bar>label { flex:1 1 160px; min-width:140px; max-width:240px; }
.filter-bar>label.wide-filter { flex:2 1 280px; max-width:480px; }
.filter-bar select,.filter-bar input { display:block; width:100%; margin-top:5px; }
.filter-actions { flex-shrink:0; }
.list-heading { margin-top:4px; }
.batch-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:12px 14px; margin-bottom:12px; background:white; border:1px solid var(--line); border-radius:8px; }
.batch-toolbar label { display:flex; align-items:center; gap:10px; flex:1; }
.batch-toolbar select { min-width:180px; width:100%; max-width:380px; }
.batch-toolbar>.muted { font-size:12px; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.stat { min-width:0; padding:14px 16px; background:white; border:1px solid var(--line); border-radius:8px; }
.stat>span { display:block; color:var(--muted); font-size:13px; }
.stat strong { display:block; margin:6px 0 2px; font-size:22px; line-height:1.4; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.stat small { color:var(--muted); font-size:12px; }
.stat em { margin-left:6px; color:var(--muted); font-size:13px; font-style:normal; }
.stat.accent { background:#F7FAFF; border-color:#CFDDF5; }
.stat.accent strong { color:var(--brand); }
summary { cursor:pointer; font-size:13px; font-weight:500; }
summary span { margin-left:12px; font-weight:400; color:var(--muted); font-size:12px; }
.import-overview { padding:12px 14px; }
.import-overview>p { margin:12px 0 0; }
.source-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-top:16px; }
.source-grid>div { min-width:0; border-right:1px solid var(--line); padding-right:12px; }
.source-grid>div:last-child { border:0; }
.source-grid strong { font-size:14px; }
.file-name { margin:4px 0 10px; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.source-line { display:flex; justify-content:space-between; gap:8px; margin:6px 0; font-size:12px; }
.source-line b { font-weight:500; white-space:nowrap; }
.source-note { display:block; color:var(--warning); font-size:12px; margin-top:6px; }
.round-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:16px 0 12px; }
.round-tab { display:flex; align-items:center; justify-content:flex-start; gap:8px; padding:10px 12px; text-align:left; background:white; border:1px solid var(--line); color:#5B677B; font-weight:400; }
.round-tab:hover { color:var(--brand); background:#F7FAFF; }
.round-tab.selected { color:var(--brand); background:#F7FAFF; border-color:var(--brand); }
.round-tab strong { display:block; font-size:14px; }
.round-tab small { display:block; margin-top:2px; color:var(--muted); font-size:12px; }
.step-number { color:#8593A9; font-size:14px; }
.selected .step-number { color:var(--brand); }
.stage-label { margin-left:auto; color:var(--muted); font-size:12px; }
.result-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); padding:10px 0; margin-bottom:12px; font-size:13px; }
.result-toolbar label { display:flex; align-items:center; gap:8px; }
.divider { margin:0 10px; color:#A3ADC0; }
.amber { color:var(--warning); }
.match-group { border:1px solid var(--line); border-radius:6px; margin:12px 0; overflow:hidden; }
.bank-heading { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:12px 14px; background:#F5F8FE; }
.bank-icon { display:flex; align-items:center; justify-content:center; width:28px; height:28px; border:1px solid #D5E1F4; background:white; border-radius:4px; color:var(--brand); font-size:13px; }
.bank-heading strong { font-size:14px; }
.bank-heading small { display:block; margin-top:2px; color:var(--muted); font-size:12px; }
.bank-amount { margin-left:auto; font-size:18px!important; font-variant-numeric:tabular-nums; }
.badge { display:inline-block; padding:2px 7px; border-radius:4px; font-size:12px; white-space:nowrap; }
.warning-badge { background:#FFF3DF; color:var(--warning); }
.success-badge { background:#EAF6EE; color:var(--success); }
.neutral-badge { background:#EFF3F8; color:#667085; }
.candidate-list { padding:0 14px; }
.candidate { padding:12px 0; border-bottom:1px solid var(--line); }
.candidate:last-child { border:0; }
.candidate-heading { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:14px; }
.candidate-number { width:21px; height:21px; border:1px solid var(--line); border-radius:4px; color:var(--muted); text-align:center; line-height:19px; font-size:12px; }
.channel { padding:2px 6px; border-radius:4px; background:var(--pale); color:#536B90; font-size:12px; }
.candidate-total { margin-left:auto; font-weight:600; font-variant-numeric:tabular-nums; }
.candidate details { margin-top:10px; }
.candidate details>summary { color:var(--brand); font-size:13px; }
.candidate-footer { display:flex; justify-content:flex-end; margin-top:10px; }
.conflict-note { margin:8px 0 0; color:var(--warning); font-size:12px; }
.table-wrap { min-width:0; width:100%; max-width:100%; overflow:auto; }
.candidate .table-wrap { margin-top:10px; }
table { width:100%; border-collapse:collapse; font-size:14px; white-space:nowrap; }
th { background:#F2F6FD; color:#5C6B83; font-size:13px; font-weight:500; text-align:left; }
th,td { padding:9px 12px; border-bottom:1px solid #E5EBF5; }
tbody tr:hover { background:#F8FAFE; }
tfoot td { background:#F7F9FD; font-weight:600; }
.number { text-align:right; font-variant-numeric:tabular-nums; }
.operation-column { text-align:right; }
.operation-column .actions { justify-content:flex-end; }
.source-column { width:80px; color:var(--muted); font-size:12px; }
.table-title { margin:18px 0 10px; }
.table-title span { margin-left:8px; color:var(--muted); font-size:12px; font-weight:400; }
.empty-cell { padding:24px 12px; text-align:center; color:var(--muted); font-size:13px; }
.pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; color:var(--muted); font-size:13px; }
.page-controls { display:flex; align-items:center; gap:10px; }
.empty { padding:28px 16px; text-align:center; color:var(--muted); }
.empty h2,.empty h3 { color:var(--ink); }
.empty p { margin:8px 0 12px; font-size:13px; }
.empty.large { padding:32px 20px; }
.empty-symbol,.process-preview { display:none; }
.warning { margin:12px 0; padding:10px 12px; border:1px solid #F0DCB5; border-radius:6px; background:#FFF8EA; color:var(--warning); font-size:13px; }
.warning strong { display:block; }
.inline-note { margin:10px 0 0; color:var(--muted); font-size:12px; }
.next-round { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:14px; margin-top:14px; border-top:1px solid var(--line); }
.next-round p { margin:0; }
.home-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.module-card { display:block; padding:18px; color:var(--ink); }
.module-card:hover { border-color:#9AB8EA; }
.module-icon { display:flex; align-items:center; justify-content:center; float:left; width:32px; height:32px; margin:0 10px 10px 0; border-radius:6px; background:var(--pale); color:var(--brand); font-size:18px; }
.module-card h2 { margin:4px 0 12px; font-size:17px; }
.module-card p { clear:both; color:var(--muted); font-size:13px; margin:0 0 12px; }
.module-bottom { display:flex; justify-content:space-between; gap:10px; padding-top:10px; border-top:1px solid var(--line); font-size:13px; }
.module-bottom strong { color:var(--brand); font-weight:500; }
.recent-home { margin-top:12px; }
.recent-row { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--line); color:var(--ink); font-size:14px; }
.recent-row small { display:block; margin-top:3px; color:var(--muted); font-size:12px; }
.recent-row>span:last-child { color:var(--brand); }
.loading { padding:28px 16px; text-align:center; color:var(--muted); font-size:13px; }
dialog { width:720px; max-width:calc(100vw - 32px); max-height:90vh; padding:20px; border:1px solid var(--line); border-radius:8px; color:var(--ink); box-shadow:0 12px 40px #14294A20; }
dialog::backdrop { background:#1C2E4B50; }
.account-dialog { width:540px; }
.account-dialog form>label { margin-top:14px; }
.account-dialog label>select { display:block; width:100%; margin-top:5px; }
.permission-fields { margin:16px 0; padding:10px 14px; border:1px solid var(--line); border-radius:6px; }
.permission-fields legend { padding:0 6px; color:var(--muted); font-size:13px; }
.check-option { display:flex; align-items:center; gap:8px; margin:10px 0; }
.check-option>input:not([type=file]) { display:inline-block; width:16px; min-height:16px; height:16px; margin:0; accent-color:var(--brand); }
.upload-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.file-input { min-width:0; padding:14px; border:1px dashed #B9CBE8; border-radius:6px; background:#FBFCFF; }
.file-input>span { display:block; font-weight:500; }
.file-input b { margin-right:6px; color:#7E91AD; font-size:12px; }
.file-input small { display:block; color:var(--muted); font-size:12px; margin:4px 0 10px; }
.file-input input { width:100%; min-height:30px; padding:0; border:0; background:none; font-size:12px; }
.file-input input::file-selector-button { min-height:30px; padding:4px 10px; margin-right:8px; border:1px solid #CFD9E9; border-radius:6px; background:white; color:var(--brand); cursor:pointer; }
.dialog-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:14px; margin-top:16px; border-top:1px solid var(--line); }
.dialog-footer .muted { font-size:12px; }
.form-error { min-height:18px; color:var(--danger); font-size:13px; margin:12px 0 6px; }
.form-error:empty { display:none; }
#toast { position:fixed; z-index:1000; bottom:24px; left:50%; transform:translateX(-50%) translateY(12px); max-width:90vw; padding:10px 18px; border-radius:6px; background:var(--success); color:white; opacity:0; pointer-events:none; font-size:13px; transition:opacity .15s,transform .15s; }
#toast.visible { opacity:1; transform:translateX(-50%); }
#toast.error { background:var(--danger); }
.login-layout { display:flex; align-items:center; justify-content:center; min-height:100vh; padding:24px 16px; }
.login-card { width:400px; max-width:100%; padding:28px; border:1px solid var(--line); border-radius:8px; background:white; box-shadow:0 8px 30px #184EAD08; }
#app>.login-card { margin:60px auto; }
.login-brand { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.login-brand h1 { margin:0; font-size:21px; }
.login-card label { margin-top:16px; }
.login-card>button { width:100%; margin-top:16px; }
.spinner { display:inline-block; width:24px; height:24px; border:3px solid #DDE7F9; border-top-color:var(--brand); border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@media(max-width:1150px) { .stage-label { display:none; } .source-grid { grid-template-columns:1fr 1fr; } .stat strong { font-size:20px; } .batch-toolbar>.muted { display:none; } }
@media(max-width:900px) { .topbar-user { display:none; } .topbar { gap:8px; } .round-tabs { grid-template-columns:1fr 1fr; } .stats { grid-template-columns:1fr 1fr; } }
@media(max-width:760px) {
  .layout { grid-template-columns:176px minmax(0,1fr); }
  .layout.is-collapsed { grid-template-columns:56px minmax(0,1fr); }
  .sidebar { padding:16px 8px 12px; }
  .brand { margin:0 4px 18px; font-size:15px; gap:7px; }
  .brand-sub { font-size:12px; }
  .nav-item { padding:8px; gap:6px; font-size:13px; }
  .is-collapsed .nav-item { padding:8px 4px; }
  #main { padding:12px; }
  .topbar { padding:0 10px; }
  .topbar-start { gap:6px; }
  .topbar-start>span { max-width:120px; font-size:12px; }
  .user-actions { gap:3px; }
  .user-actions .text-btn { font-size:12px; padding:3px; }
  .page-heading { align-items:flex-start; flex-wrap:wrap; }
  h1 { font-size:20px; }
  .panel { padding:12px; }
  .home-grid,.source-grid,.upload-grid { grid-template-columns:1fr; }
  .source-grid>div { border-right:0; border-bottom:1px solid var(--line); padding:0 0 10px; }
  .stats { gap:8px; }
  .stat { padding:10px; }
  .stat strong { font-size:18px; }
  .round-tab { padding:8px; }
  .round-tab small { white-space:normal; }
  .section-heading { flex-wrap:wrap; }
  .filter-bar>label { max-width:none; }
  .batch-toolbar label { flex-basis:100%; }
  .batch-toolbar select { min-width:0; }
  .candidate-total { margin-left:0; }
  .next-round,.dialog-footer { flex-wrap:wrap; }
  .bank-heading { padding:10px; }
  .bank-amount { font-size:16px!important; }
}
@media(prefers-reduced-motion:reduce) { * { animation:none!important; transition:none!important; } }
