:root{font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:#243041;background:#f3f5f8;font-synthesis:none;line-height:1.5;--accent:#205ac0;--line:#dce2eb;--muted:#687587}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}[hidden]{display:none!important}.shell{max-width:970px;margin:0 auto;padding:38px 24px 52px}.page-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.eyebrow{margin:0 0 5px;color:var(--muted);font-size:13px;letter-spacing:.06em}h1{margin:0;font-size:30px;font-weight:720;letter-spacing:-.02em}.subtitle{margin:7px 0 0;color:var(--muted)}h2{font-size:18px;margin:0 0 19px;font-weight:670}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:25px;margin:0 0 19px;box-shadow:0 3px 10px #24304104}.login-card{max-width:430px;margin:28px auto}.login-card h2{margin-bottom:6px}.login-card form{margin-top:22px}.muted{color:var(--muted)}.small{font-size:13px}.notice{min-height:24px;margin:0 0 15px;padding:10px 13px;background:#eaf1fc;color:#234e8b;border-radius:8px;font-size:14px}.notice:empty{display:none}.notice.error{background:#fff0f0;color:#a22a2a}.notice.success{background:#e9f6f0;color:#24644a}label{display:block;font-size:14px;font-weight:580;margin-bottom:7px}input:not([type=checkbox]):not([type=radio]),select{display:block;width:100%;height:43px;border:1px solid #cbd3df;border-radius:7px;background:white;color:inherit;padding:8px 11px;min-width:0}.login-card input{margin-bottom:18px}input[type=checkbox],input[type=radio]{width:17px;height:17px;accent-color:var(--accent);flex-shrink:0;margin:0}input:disabled,select:disabled{background:#f4f6f9;color:#788492}button:disabled{opacity:.55;cursor:wait}.button{border:1px solid transparent;border-radius:7px;min-height:42px;padding:9px 17px;cursor:pointer;font-weight:600;white-space:nowrap}.primary{background:var(--accent);color:white}.primary:hover:not(:disabled){background:#164baf}.secondary{background:#fff;color:#34445d;border-color:#cbd3df}.secondary:hover:not(:disabled){background:#f3f6fc}.wide{width:100%}.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:18px}.section-heading h2{margin:0}.company-form{display:flex;align-items:flex-end;gap:12px}.grow{flex:1;min-width:0}fieldset{border:0;padding:0;margin:0;min-width:0}legend{padding:0;font-size:14px;font-weight:600}.dates{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:580px;margin-bottom:24px}.choice-group{margin:0 0 22px}.choice-group>legend{margin-bottom:12px}.report-options,.project-mode{display:flex;flex-wrap:wrap;align-items:center;gap:12px 25px}.check-label{display:flex;align-items:center;gap:8px;font-weight:500;margin:0;cursor:pointer}.report-options .check-label{padding:11px 14px;border:1px solid var(--line);border-radius:8px;background:#fafbfd}.project-mode{margin-bottom:8px}.project-actions{display:flex;gap:15px;margin-bottom:10px}.text-button{background:none;border:0;padding:4px 0;color:var(--accent);font-size:13px;cursor:pointer}.project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 14px;max-height:240px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:9px 12px;background:#fafbfd}.project-list:empty{display:none}.project-list .check-label{font-size:13px;padding:7px 2px;line-height:1.5;word-break:break-word}.project-list .empty-message{grid-column:1/-1;margin:6px 0;color:var(--muted);font-size:14px}.export-footer{border-top:1px solid var(--line);padding-top:19px;display:flex;justify-content:space-between;align-items:center;gap:18px}.export-footer p{margin:0}.status-badge{font-size:13px;font-weight:600;color:var(--accent);background:#edf3fe;padding:3px 10px;border-radius:20px}.status-badge.finished{color:#24644a;background:#e9f6f0}.status-badge.failed{color:#a22a2a;background:#fff0f0}.result-list{display:grid;gap:9px}.result-row{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid var(--line);border-radius:9px;padding:14px 16px}.result-name{font-weight:600;font-size:14px;margin:0}.result-detail{font-size:13px;color:var(--muted);margin:4px 0 0}.download{display:inline-block;color:var(--accent);font-size:14px;font-weight:600;white-space:nowrap;text-decoration:none;padding:7px 11px;border-radius:6px;background:#edf3fe}.download:hover{background:#e0eaff}#refresh-job{margin-top:16px}:focus-visible{outline:3px solid #94b7f4;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.compact{min-height:34px;padding:6px 12px;font-size:13px}.batch-list{display:grid;gap:13px}.batch-item{border:1px solid var(--line);border-radius:9px;padding:15px}.batch-heading,.batch-report{display:flex;justify-content:space-between;align-items:center;gap:15px}.batch-heading{align-items:flex-start}.batch-heading .status-badge{white-space:nowrap}.batch-report{border-top:1px solid var(--line);margin-top:12px;padding-top:11px}.batch-report .result-detail{margin:0}.batch-heading .result-detail{line-height:1.7}
.company-progress{border-top:1px solid var(--line);margin-top:18px;padding-top:13px}.company-progress p{margin:0}.company-progress-actions{display:flex;flex-wrap:wrap;gap:10px}.company-progress-actions .button{margin-top:10px}
.batch-actions{display:flex;justify-content:flex-end;margin-top:13px}.preview-boundary{display:inline-block;color:#755512;background:#fff5da;border-radius:6px;padding:5px 9px;font-size:13px;margin:0 0 6px}.preview-scope{font-size:14px;font-weight:600;overflow-wrap:anywhere}.preview-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fafbfd}.preview-counts p{margin:0;font-size:13px}.preview-sources{display:grid;gap:8px;margin:16px 0}.preview-sources summary,.source-details summary{cursor:pointer;color:var(--accent);font-size:12px;overflow-wrap:anywhere}.source-hash{font-family:ui-monospace,monospace;font-size:11px;overflow-wrap:anywhere}.preview-section{margin-top:25px}.preview-section h3{font-size:16px;margin:0 0 11px}.preview-table-scroll{overflow:auto;max-width:100%;max-height:490px;border:1px solid var(--line);border-radius:8px}.preview-table{border-collapse:collapse;min-width:100%;width:max-content;font-size:12px}.preview-table th,.preview-table td{padding:10px 12px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);vertical-align:top;text-align:left;max-width:260px;overflow-wrap:anywhere}.preview-table th{position:sticky;top:0;background:#f0f4fa;white-space:nowrap;z-index:1}.preview-table .money-cell{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.preview-table .date-cell{white-space:nowrap;font-variant-numeric:tabular-nums}.preview-table .review-row{background:#fffcf3}.source-details{min-width:170px;max-width:330px}.raw-fields{display:grid;grid-template-columns:minmax(85px,1fr) minmax(85px,1fr);gap:7px 12px;font-size:12px;max-height:280px;overflow:auto}.raw-fields dt{color:var(--muted)}.raw-fields dd{margin:0;overflow-wrap:anywhere}.preview-issue{border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin:8px 0}.preview-issue .result-name{font-size:13px;margin-bottom:7px}
@media(max-width:640px){.shell{padding:25px 15px 35px}.page-header{align-items:flex-start;gap:10px}h1{font-size:25px}.subtitle{font-size:14px}.page-header .button{padding:8px 10px;font-size:13px;min-height:37px}.card{padding:20px 17px;border-radius:11px}.company-form{display:block}.company-form .button{width:100%;margin-top:12px}.dates{gap:12px}.project-list{grid-template-columns:1fr;max-height:260px}.report-options{gap:9px}.report-options .check-label{width:100%}.export-footer{display:block}.export-footer .button{width:100%;margin-top:13px}.result-row{padding:12px;gap:10px}.section-heading{gap:8px}.section-heading .small{max-width:50%;text-align:right}.login-card{margin-top:21px}.batch-item{padding:12px}.batch-heading,.batch-report{gap:10px}.batch-heading .result-detail{font-size:12px}}
.batch-actions{flex-wrap:wrap;gap:8px}.batch-document-message{margin:9px 0 0;color:var(--muted);overflow-wrap:anywhere}.batch-document-message:empty{display:none}.batch-document-message.error{color:#a22a2a}.batch-heading .result-detail{overflow-wrap:anywhere}
@media(max-width:640px){.batch-actions{justify-content:flex-start}.batch-actions .button{flex:1}.export-footer p{line-height:1.65}}
.summary-filter-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:20px;margin-top:19px}.summary-filter-grid legend .small{font-weight:400;margin-left:5px}.summary-options{display:grid;gap:3px;max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:9px 12px;background:#fafbfd}.summary-options .check-label{font-size:13px;padding:7px 2px;overflow-wrap:anywhere}.summary-options:empty::after{content:'本批没有可筛选项';font-size:13px;color:var(--muted)}.summary-result{border-top:1px solid var(--line);margin-top:21px;padding-top:18px}.summary-result-actions{display:flex;flex-wrap:wrap;gap:10px}#summary-message.error{color:#a22a2a}#summary-scope:empty{display:none}
.payment-confirmation{border:1px solid #cbdaf2;border-radius:8px;background:#f4f7fd;padding:16px;margin-top:16px}.payment-confirmation p{margin:0 0 14px;font-size:14px;line-height:1.7}.payment-panel .small{line-height:1.7}.payment-panel .status-badge{white-space:nowrap}#payment-message:empty,#payment-results:empty{display:none}#payment-results{margin-top:20px}
.payment-row-confirmation{min-width:190px;max-width:250px}.payment-row-confirmation p{margin:0 0 9px;line-height:1.6}.payment-row-confirmation .button{white-space:normal;margin:0 5px 7px 0}
@media(max-width:640px){.summary-filter-grid{grid-template-columns:1fr;gap:0}.summary-result-actions .button{width:100%}}

/* The current batch stays ahead of history; the action dock belongs to this batch. */
.shell{max-width:1120px}.button:disabled{cursor:not-allowed}
.setup-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}
.setup-heading::-webkit-details-marker{display:none}.setup-heading strong{font-size:18px}.setup-heading>span:first-child{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.disclosure-hint{font-size:12px;color:var(--accent);white-space:nowrap}
.setup-content{margin-top:24px}.setup-company{border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:23px}.setup-company h2,.setup-scope h2{font-size:15px}
.current-workspace{border-top:3px solid var(--accent);padding-top:22px}.current-batch-header .eyebrow{font-size:12px;color:var(--accent);font-weight:650}.current-batch-header .section-heading{margin-bottom:13px}.current-batch-header h2{font-size:21px;scroll-margin-top:20px}
.preview-scope{font-size:13px;line-height:1.8;margin:0;padding:12px 15px;background:#f5f7fb;border-radius:8px;font-weight:500}
.workflow-steps{display:flex;flex-wrap:wrap;gap:12px 24px;list-style:none;padding:17px 0;margin:0;color:var(--muted);font-size:13px;border-bottom:1px solid var(--line);counter-reset:workflow}
.workflow-steps li{display:flex;align-items:center;gap:8px;counter-increment:workflow}.workflow-steps li::before{content:counter(workflow);display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#edf3fe;color:var(--accent);font-size:12px;font-weight:650}
.workflow-section{padding-top:22px}.workflow-section .section-heading{margin-bottom:12px}.workflow-section h2{font-size:16px}.summary-filter-grid{margin-top:14px}.summary-options{max-height:210px}.summary-result{margin-top:18px;padding-top:15px}.summary-result .result-name{font-size:16px}.summary-result>p{margin:0 0 9px}
.help-disclosure{font-size:13px;color:var(--muted);margin:12px 0}.help-disclosure>summary,.batch-files>summary{cursor:pointer;color:var(--accent);font-size:13px}.help-disclosure p{line-height:1.8;margin:10px 0}
.workflow-actions{position:sticky;top:12px;z-index:5;background:#fff;border:1px solid #cbd8ed;border-radius:10px;padding:15px;margin-top:20px;box-shadow:0 5px 20px #24304112}
.workflow-actions .payment-confirmation{margin:0 0 13px;padding:13px}.workflow-actions .payment-confirmation p{margin-bottom:10px}.workflow-actions>.summary-result-actions{align-items:center}.workflow-actions>.summary-result-actions .button{min-height:42px}
.payment-panel{border-top:1px solid var(--line);margin-top:20px}.payment-panel .section-heading{margin-bottom:10px}.payment-panel>p{margin:8px 0}.payment-panel>.help-disclosure{margin:8px 0 12px}.payment-panel #offer-payment-read{margin:6px 0 8px}
.history-panel{margin-top:26px}.history-heading-actions{display:flex;align-items:center;gap:16px}.history-toggle{margin-top:15px}.batch-list{gap:10px}.batch-item{padding:14px 16px;background:#fff}.batch-item.selected-batch{border-color:#8cafea;background:#fbfdff}.batch-heading .result-detail{margin:2px 0;font-size:12px}.batch-heading .result-name{font-size:14px}.batch-files{margin-top:9px}.batch-files>summary{font-size:12px}.batch-files[open]>summary{margin-bottom:10px}.batch-report{margin-top:8px;padding-top:8px}.batch-actions{margin-top:10px}.batch-actions .button{min-height:34px}.history-panel>.small{margin:10px 0}
#preview-heading{scroll-margin-top:20px}
@media(max-width:640px){.setup-heading{align-items:flex-start}.setup-heading>span:first-child{display:block}.setup-heading #setup-summary{display:block;margin-top:5px;line-height:1.6}.setup-heading strong{font-size:17px}.workflow-steps{gap:8px 14px;font-size:12px}.workflow-steps li{gap:5px}.workflow-steps li::before{width:20px;height:20px}.current-batch-header h2{font-size:19px}.workflow-actions{position:static;padding:12px}.workflow-actions>.summary-result-actions{gap:8px}.workflow-actions .button{min-height:44px}.history-heading-actions{gap:10px;flex-wrap:wrap;justify-content:flex-end}.history-heading-actions .text-button{font-size:12px}.history-panel .section-heading{align-items:center}.history-panel h2 .small{display:block;text-align:left;max-width:none;margin-top:4px}.batch-actions .button{min-height:40px}.preview-scope{padding:10px 12px}.current-workspace{padding-top:18px}}

.batch-item{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:22px}.batch-heading,.batch-files{grid-column:1}.batch-item>.batch-actions{grid-column:2;grid-row:1 / span 2;align-self:center;flex-direction:column;min-width:104px;margin-top:0}
@media(max-width:640px){.batch-item{display:block}.batch-item>.batch-actions{flex-direction:row;margin-top:12px}.workflow-steps{column-gap:10px}}
