:root{font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#212529;background:#fff;font-synthesis:none}
*{box-sizing:border-box}
html{min-width:280px}
body{margin:0;min-height:100vh}
button,input{font:inherit}
button{cursor:pointer}
a{color:inherit}
[hidden]{display:none!important}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus-visible{outline:3px solid #42a7ed;outline-offset:3px}
.brand{display:inline-flex;align-items:center;gap:9px;color:#07434b;text-decoration:none;font-size:20px;font-weight:700;line-height:1;letter-spacing:-.025em;white-space:nowrap}
.brand-mark{display:inline-flex;width:29px;height:34px;color:#008de8}
.brand-mark svg{width:100%;height:100%}
.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:4px;min-height:36px;padding:0 18px;text-decoration:none;text-align:center;font-size:14px;font-weight:600;line-height:1.25;transition:background-color .15s,border-color .15s}
.button:disabled{cursor:not-allowed;opacity:.65}
.button-primary{color:#fff;background:#0078cc;border-color:#0078cc}
.button-primary:hover:not(:disabled){background:#005a99;border-color:#005a99}
.button-outline{color:#0078cc;background:#fff;border-color:#0078cc}
.button-outline:hover:not(:disabled){background:#f0f8ff}

/* Upload page: the reference's small header and FAQ/form columns. */
.page-upload{display:flex;flex-direction:column;font-size:16px}
.upload-header{height:60px;border-bottom:1px solid #e9ecef;background:#fff;flex:none}
.upload-header-inner{max-width:1420px;height:100%;margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.header-link{color:#0078cc;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}
.header-link:hover{text-decoration:underline}
.upload-main{width:100%;max-width:1320px;margin:0 auto;flex:1;padding:40px 24px 72px}
.upload-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:48px;align-items:start}
.upload-panel{order:2;min-width:0;max-width:540px;width:100%;justify-self:center}
.faq-panel{order:1;min-width:0}
.section-title{margin:0;font-size:22px;line-height:1.4;font-weight:700;color:#111}
.section-rule{height:1px;background:#ced4da;margin:10px 0}
.upload-stack{display:flex;flex-direction:column;gap:20px}
.dropzone{display:block;width:100%;min-height:156px;padding:16px;border:2px dashed #ced4da;border-radius:4px;background:#fff;color:#111;text-align:left;transition:background-color .15s,border-color .15s}
.dropzone:hover,.dropzone.is-dragging{background:#f8f9fa;border-color:#0096ff}
.dropzone-inner{display:flex;align-items:center;justify-content:center;gap:24px;min-height:120px}
.file-icon{width:50px;height:50px;flex:none;color:#111}
.dropzone-name{display:block;font-size:18px;line-height:1.35;font-weight:400}
.dropzone-hint{display:block;color:#868e96;margin-top:8px;font-size:12px;line-height:1.45}
.selected-file{display:flex;align-items:center;gap:11px;padding:10px 12px;border:1px solid #dbe8ee;border-radius:4px;background:#f6fbfe;min-width:0;margin-top:-6px}
.selected-file svg{width:22px;height:22px;color:#0078cc;flex:none}
.selected-file-info{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.selected-file-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600}
.selected-file-info small{color:#65727d;font-size:12px}
.remove-file{width:26px;height:26px;flex:none;border:0;background:transparent;color:#687782;font-size:23px;line-height:1}
.remove-file:hover{color:#b12222}
.progress-track{height:5px;width:100%;background:#e9ecef;border-radius:2px;overflow:hidden}
.progress-fill{width:0;height:100%;background:#0096ff;border-radius:2px;transition:width .1s linear}
.progress-label{min-height:0;margin:-16px 0 0;color:#56636e;font-size:12px}
.progress-label:empty{display:none}
.report-key-field{display:flex;flex-direction:column;gap:7px}
.report-key-field label{color:#263848;font-size:14px;font-weight:700}
.report-key-input-row{display:flex;align-items:stretch;gap:8px}
.report-key-input-row input{flex:1;min-width:0;min-height:40px;padding:8px 11px;border:1px solid #bfcbd3;border-radius:4px;background:#fff;color:#212529;font-size:15px}
.report-key-input-row input:focus{outline:3px solid #42a7ed;outline-offset:1px}
.report-key-input-row button{flex:none;padding:0 13px;border:1px solid #bfcbd3;border-radius:4px;background:#f8fafb;color:#386077;font-size:13px}
.report-key-input-row button:hover:not(:disabled){background:#eaf3f8}
.report-key-field p{margin:0;color:#657885;font-size:12px;line-height:1.5}
.report-key-field .report-key-status{font-size:13px;color:#237245}
.report-key-field .report-key-status[data-state="error"]{color:#b12222}
.upload-actions{display:flex;align-items:stretch;gap:12px}
.upload-submit{flex:1;min-width:0}
.upload-actions .button-outline{flex:none}
.form-error{margin:-8px 0 0;padding:10px 12px;border:1px solid #f5c2c7;border-radius:4px;background:#fff0f1;color:#a52c35;font-size:13px;line-height:1.5}
.faq-list{display:flex;flex-direction:column;gap:16px}
.faq-item{border:1px solid #dee2e6;border-radius:4px;background:#fff;color:#495057;font-size:14px;line-height:1.65;overflow:hidden}
.faq-item:not([open]){background:#f8f9fa;border-color:transparent}
.faq-item summary{position:relative;padding:16px 42px 16px 16px;color:#111;cursor:pointer;font-size:16px;font-weight:700;line-height:1.5;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"⌄";position:absolute;right:18px;top:14px;color:#111;font-size:20px;font-weight:400;transform:rotate(0)}
.faq-item[open] summary::after{transform:rotate(180deg)}
.faq-answer{padding:0 16px 16px;color:#495057}
.upload-footer{height:80px;border-top:1px solid #e9ecef;flex:none;color:#868e96}
.upload-footer-inner{max-width:1320px;margin:0 auto;padding:24px;font-size:16px}
.footer-disclosure{font-size:12px}
.confirm-dialog{border:0;border-radius:12px;padding:0;width:min(520px,calc(100% - 32px));max-width:none;color:#212529;box-shadow:0 18px 55px #0004}
.confirm-dialog::backdrop{background:#0008}
.confirm-content{padding:26px 28px 24px}
.confirm-content h2{margin:0 0 18px;font-size:20px;line-height:1.4}
.confirm-content p{margin:0 0 14px;color:#495057;font-size:14px;line-height:1.7}
.confirm-filename{overflow-wrap:anywhere;font-weight:700;color:#212529!important}
.confirm-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:26px}

/* Lookup and status pages: masthead, tabs, breadcrumb, pale content band. */
.classic-app{display:flex;min-height:100vh;flex-direction:column;background:#fff;font-family:"Helvetica Neue",Helvetica,Arial,"Noto Sans SC","Microsoft YaHei",sans-serif}
.classic-topline{height:7px;background:#c62520}
.classic-masthead{height:93px;padding:16px 30px;background:linear-gradient(#fff,#f0f0f0);display:flex;align-items:center}
.brand-large{font-size:27px}
.brand-large .brand-mark{width:39px;height:46px}
.classic-tabs{display:flex;align-items:end;gap:10px;height:34px;padding:0 0 0 0;border-bottom:3px solid #1676a0;background:#f9fbfc}
.classic-tabs a{display:inline-flex;align-items:center;height:31px;padding:0 16px;border-radius:4px 4px 0 0;background:#ebeff2;color:#5e6870;text-decoration:none;font-size:14px}
.classic-tabs a.active{background:#1676a0;color:#fff}
.classic-tabs a:hover:not(.active){background:#ddebf1}
.classic-main{flex:1;background:linear-gradient(#f0faff 0,#fff 170px)}
.classic-content{width:min(100% - 48px,1240px);margin:0 auto;padding:34px 0 74px}
.breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:#687c8b;font-size:12px;line-height:1.4;margin-bottom:35px}
.breadcrumbs a{color:#3174a8;text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}
.page-heading h1{margin:0;color:#1b2730;font-size:29px;font-weight:400;line-height:1.3}
.page-heading p{margin:12px 0 0;font-size:14px;line-height:1.55;color:#4c5a65}
.classic-button{color:#fff;background:#2f9cfa;border-color:#2088e2;font-weight:400;white-space:nowrap}
.classic-button:hover{background:#1689ec;border-color:#137ad1}
.lookup-form{display:flex;flex-direction:column;align-items:start;gap:8px;width:min(100%,420px)}
.lookup-form label{font-size:14px;color:#263b4b}
.lookup-form input{width:100%;height:36px;padding:6px 10px;border:1px solid #bfbfbf;border-radius:4px;color:#25333d;background:#fff;font-size:16px;outline:none}
.lookup-form input:focus{border-color:#359fee;box-shadow:0 0 0 2px #70bfff44}
.lookup-form input::placeholder{color:#aeb8c4}
.lookup-form .button{margin-top:6px}
.recent-receipt{margin-top:28px;color:#607281;font-size:13px}
.recent-receipt a{color:#237fbb;text-decoration:none;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.recent-receipt a:hover{text-decoration:underline}
.check-heading{margin-bottom:27px}
.check-heading p{max-width:760px}
.check-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 8px;color:#687c8b;font-size:13px}
.check-list-toolbar .refresh-button{padding:4px 0}
.check-table-scroll{width:100%;overflow-x:auto}
.submission-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;table-layout:fixed}
.submission-table th{padding:10px 9px;border-bottom:2px solid #d5dde3;color:#263848;font-weight:700;white-space:nowrap}
.submission-table td{padding:13px 9px;border-bottom:1px solid #e0e5e9;vertical-align:middle;color:#4b5b66;overflow-wrap:anywhere}
.submission-table th:nth-child(1){width:30%}
.submission-table th:nth-child(2){width:17%}
.submission-table th:nth-child(3){width:12%}
.submission-table th:nth-child(4),.submission-table th:nth-child(5){width:14%}
.submission-table th:nth-child(6){width:13%}
.submission-table tbody tr:not(.empty-row):hover{background:#f7fbff}
.submission-table a{color:#277eb8;text-decoration:none}
.submission-table a:hover{text-decoration:underline}
.submission-table .check-title-cell a{color:#243a48;font-weight:600}
.submission-table .status-badge{white-space:normal;text-align:center;line-height:1.25}
.check-download{white-space:nowrap}
.check-percent{color:#364b58;font-weight:600;white-space:nowrap}
.check-unavailable{color:#87949d;white-space:nowrap}
.check-options{white-space:nowrap}
.check-delete{border:0;background:none;padding:0;color:#b14135;font-size:13px}
.check-delete:hover:not(:disabled){text-decoration:underline;color:#8d251d}
.check-delete:disabled{cursor:wait;opacity:.5}
.submission-table .empty-row td{text-align:center;padding:44px 12px;color:#697782}
.lookup-section{margin-top:43px;max-width:570px;padding-top:20px;border-top:1px solid #e4ebef}
.lookup-section h2{margin:0 0 12px;color:#263848;font-size:16px;font-weight:600}
.lookup-form-inline{display:flex;flex-direction:row;align-items:center;gap:10px;width:100%}
.lookup-form-inline input{flex:1;min-width:0}
.lookup-form-inline .button{flex:none;margin-top:0}
.classic-footer{border-top:1px solid #e8eef2;color:#83919a;padding:20px max(24px,calc((100% - 1240px)/2));font-size:12px}

/* Submission detail and separate downloads. */
.status-alert{padding:12px 15px;border:1px solid;border-radius:3px;margin-bottom:20px;font-size:14px;line-height:1.5}
.status-info{color:#31708f;background:#d9edf7;border-color:#bce8f1}
.status-success{color:#3c763d;background:#dff0d8;border-color:#d6e9c6}
.status-error{color:#a94442;background:#f2dede;border-color:#ebccd1}
.submission-card{padding:22px 26px;border:1px solid #dfe6eb;border-radius:4px;background:#fff;box-shadow:0 2px 10px #1024380a}
.submission-card-head{display:flex;align-items:start;justify-content:space-between;gap:16px}
.eyebrow{display:block;color:#7b8994;font-size:12px;margin-bottom:6px}
.submission-card h2{margin:0;font-size:21px;line-height:1.35;font-weight:600;overflow-wrap:anywhere}
.status-badge{display:inline-block;flex:none;border-radius:3px;padding:5px 9px;font-size:12px;white-space:nowrap}
.status-pending{color:#5c6570;background:#edf0f2}
.status-working{color:#246798;background:#dceffa}
.status-done{color:#277042;background:#dcf1e3}
.status-failed{color:#9e3737;background:#fbe2e1}
.status-partial{color:#805d19;background:#fff0d0}
.submission-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0 0;padding-top:17px;border-top:1px solid #edf0f2}
.submission-meta div{min-width:0}
.submission-meta dt{color:#7b8994;font-size:12px;margin-bottom:6px}
.submission-meta dd{margin:0;color:#243a48;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.receipt-value{display:flex;align-items:center;gap:8px;min-width:0}
.receipt-value code{font-size:13px;overflow-wrap:anywhere}
.copy-button{border:1px solid #c7d7e1;border-radius:3px;padding:3px 7px;background:#fff;color:#237fbb;font-size:11px;line-height:1.2;flex:none}
.copy-button:hover{background:#f0f8ff}
.stage-line{margin:18px 0 0;color:#557084;font-size:13px;line-height:1.5}
.stage-line:empty{display:none}
.reports-section{margin-top:34px}
.reports-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.reports-heading h2{margin:0;color:#263848;font-size:20px;font-weight:600}
.refresh-button{border:0;background:none;color:#247db6;padding:6px 0;font-size:13px}
.refresh-button:hover{text-decoration:underline}
.refresh-button:disabled{opacity:.55;cursor:wait}
.reports-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.report-card{display:flex;align-items:center;gap:14px;min-width:0;padding:18px 19px;border:1px solid #dfe6eb;border-radius:4px;background:#fff}
.report-card-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border-radius:7px;color:#1676a0;background:#e6f3fb;font-size:15px;font-weight:700}
.similarity-icon{color:#896012;background:#fff1d7;font-size:20px}
.report-card-content{min-width:0;flex:1}
.report-card h3{margin:0 0 4px;color:#243a48;font-size:16px;font-weight:600}
.report-card p{margin:0;color:#778590;font-size:12px;line-height:1.4}
.report-download{min-height:34px;padding:0 12px}
.report-waiting{color:#87949d;font-size:12px;white-space:nowrap}
.source-note{margin:14px 0 0;color:#657885;font-size:12px;line-height:1.55}
.turnstile-challenge{min-height:65px;margin:6px 0 12px}

@media(max-width:991px){.upload-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px}.upload-actions{flex-wrap:wrap}.upload-actions .button{flex:1 1 auto}.report-card{flex-wrap:wrap}.report-download,.report-waiting{margin-left:58px}}
@media(max-width:767px){.upload-main{padding:34px 20px 58px}.upload-grid{grid-template-columns:minmax(0,1fr);gap:46px}.upload-panel{order:1;max-width:none}.faq-panel{order:2}.section-title{font-size:21px}.classic-content{width:min(100% - 36px,1240px)}.submission-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-grid{grid-template-columns:1fr}.submission-table,.submission-table tbody{display:block}.submission-table thead{display:none}.submission-table tbody tr:not(.empty-row){display:block;margin-bottom:14px;border:1px solid #dfe6eb;border-radius:4px;background:#fff}.submission-table tbody tr:not(.empty-row) td{display:grid;grid-template-columns:115px minmax(0,1fr);gap:12px;align-items:center;border-bottom:1px solid #eef1f3}.submission-table tbody tr:not(.empty-row) td:last-child{border-bottom:0}.submission-table tbody tr:not(.empty-row) td::before{content:attr(data-label);color:#687c8b;font-size:12px;font-weight:600}.submission-table .empty-row{display:block;border-bottom:1px solid #e0e5e9}.submission-table .empty-row td{display:block}.check-options{white-space:normal}}
@media(max-width:520px){.upload-header-inner{padding:0 16px}.brand{font-size:17px}.brand-mark{width:25px;height:30px}.header-link{font-size:13px}.upload-main{padding:32px 16px 56px}.dropzone-inner{gap:16px}.file-icon{width:42px;height:42px}.dropzone-name{font-size:16px}.upload-actions{flex-direction:column}.upload-actions .button{width:100%;min-height:40px}.faq-item summary{font-size:15px}.upload-footer-inner{padding:24px 16px}.confirm-content{padding:22px 20px}.confirm-actions{flex-direction:column-reverse}.confirm-actions .button{width:100%}.classic-masthead{height:82px;padding:12px 18px}.brand-large{font-size:21px}.brand-large .brand-mark{width:31px;height:37px}.classic-tabs{gap:4px}.classic-tabs a{padding:0 11px}.classic-content{width:min(100% - 32px,1240px);padding:28px 0 58px}.breadcrumbs{margin-bottom:26px}.page-heading{align-items:start;flex-direction:column;gap:18px}.page-heading h1{font-size:25px}.page-heading .button{align-self:flex-start}.submission-card{padding:18px 16px}.submission-meta{grid-template-columns:1fr;gap:12px}.report-card{padding:15px}.report-download,.report-waiting{margin-left:0}.classic-footer{padding:20px 16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
