:root { font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif; font-size:16px; line-height:1.55; color:#25344a; background:#f5f7fb; --blue:#2864d8; --line:#e5eaf1; --muted:#65738a; }
* { box-sizing:border-box; }
body { margin:0; }
button,input,select,textarea { font:inherit; border-radius:8px; }
button { cursor:pointer; border:1px solid transparent; padding:9px 14px; min-height:40px; font-size:.875rem; font-weight:600; transition:background .15s,border-color .15s; }
button:disabled { cursor:default; opacity:.5; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #9fc2ff; outline-offset:2px; }
h1,h2,p { margin:0; }
h1 { font-size:1.6rem; line-height:1.35; font-weight:700; letter-spacing:.02em; color:#1b2b43; }
h2 { font-size:1.35rem; color:#1b2b43; }
.muted { color:var(--muted); font-size:.875rem; }
.primary { background:var(--blue); color:#fff; }
.primary:hover:not(:disabled) { background:#1c53bc; }
.secondary { background:#fff; color:#53647c; border-color:#dce3ed; }
.secondary:hover:not(:disabled) { color:var(--blue); border-color:#afc8ee; background:#f7faff; }
.quiet { color:#6b7b90; background:transparent; }
.quiet:hover:not(:disabled) { background:#f0f4f9; color:#2d4568; }
.workspace { max-width:1560px; margin:auto; padding:30px 36px 30px; height:100dvh; min-height:640px; display:flex; flex-direction:column; }
.page-header { display:flex; justify-content:space-between; align-items:center; gap:30px; margin-bottom:24px; }
.heading { display:flex; align-items:center; gap:14px; min-width:0; }
.brand-mark { display:grid; place-items:center; width:46px; height:46px; flex:none; border-radius:13px; background:#2864d8; color:white; font-size:1.45rem; font-weight:700; box-shadow:0 5px 12px #2864d81c; }
.heading .muted { margin-top:6px; font-size:.875rem; }
.header-meta { text-align:right; color:var(--muted); font-size:.875rem; flex:none; }
.account { display:inline-block; color:#4c657f; font-size:.8125rem; background:#eaf0f7; border-radius:5px; padding:2px 8px; margin-bottom:5px; }
.sync-warning { color:#a56710; margin-top:3px; }
.overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:22px; }
.stat-card { background:#fff; border:1px solid var(--line); border-radius:11px; padding:15px 22px 14px; position:relative; }
.stat-pending { border-color:#eddbc0; background:#fffdfa; }
.stat-label { font-size:.875rem; color:#69768b; }
.stat-number { display:flex; align-items:baseline; gap:10px; margin-top:5px; }
.stat-number strong { font-size:1.9rem; font-weight:650; line-height:1.25; font-variant-numeric:tabular-nums; color:#34465d; }
.stat-number span { font-size:.8125rem; color:#65738a; }
.stat-pending .stat-number strong { color:#ab6b15; }
.stat-notified .stat-number strong { color:#366bc5; }
.stat-returned .stat-number strong { color:#258171; }
.page-header,.overview,.notice { flex:none; }
.list-panel { background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; box-shadow:0 4px 18px #22395704; flex:1; min-height:0; display:flex; flex-direction:column; }
.toolbar,.filter-bar,.list-context,.list-footer,.empty { flex:none; }
.toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:8px 22px 0; border-bottom:1px solid var(--line); }
.tabs { display:flex; gap:16px; min-width:0; overflow-x:auto; scrollbar-width:thin; }
.tab { flex:none; position:relative; border-radius:0; background:transparent; color:#65738a; padding:14px 2px 16px; white-space:nowrap; font-weight:500; }
.tab.selected { color:var(--blue); font-weight:650; }
.tab.selected::after { content:''; position:absolute; height:3px; left:0; right:0; bottom:0; background:var(--blue); border-radius:3px 3px 0 0; }
.tab span { display:inline-block; min-width:23px; margin-left:5px; padding:0 5px; text-align:center; font-size:.8125rem; line-height:21px; background:#f0f3f7; color:#65738a; border-radius:5px; font-variant-numeric:tabular-nums; }
.tab.selected span { background:#eaf1ff; color:var(--blue); }
.toolbar>.secondary { flex:none; margin-bottom:9px; min-height:36px; padding:6px 12px; }
.filter-bar { display:flex; align-items:center; gap:16px; padding:18px 22px 10px; }
.search-box { flex:1; min-width:180px; position:relative; }
.search-icon { position:absolute; left:13px; top:13px; width:18px; height:18px; fill:none; stroke:#98a4b4; stroke-width:1.8; stroke-linecap:round; pointer-events:none; }
.search-box input { background:#f8fafc; padding-left:40px; padding-right:58px; }
.search-box button { position:absolute; top:4px; right:4px; min-height:36px; padding:6px 9px; font-weight:400; }
.filter-field { display:flex; align-items:center; gap:8px; }
.filter-field label { margin:0; white-space:nowrap; font-weight:400; color:#65738a; }
.filter-field select { width:auto; font-size:.875rem; }
.list-context { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:0 22px 14px; font-size:.875rem; color:#64758d; }
.list-context .muted { font-size:.8125rem; color:#65738a; }
.table-wrap { overflow:auto; flex:1; min-height:0; scrollbar-color:#cdd6e1 transparent; scrollbar-width:thin; }
.has-empty .table-wrap { flex:none; }
.has-empty .empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; }
table { width:100%; min-width:800px; border-collapse:separate; border-spacing:0; table-layout:fixed; }
th { position:sticky; top:0; z-index:1; background:#f6f8fb; padding:12px 18px; text-align:left; color:#65738a; font-size:.875rem; font-weight:500; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
th:nth-child(1) { width:33%; } th:nth-child(2) { width:26%; } th:nth-child(3) { width:14%; } th:nth-child(4) { width:12%; } th:nth-child(5) { width:15%; text-align:right; }
td { padding:19px 18px; vertical-align:top; font-size:1rem; overflow-wrap:anywhere; border-bottom:1px solid #edf0f5; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:#f9fbfe; }
.project-name { font-size:1rem; font-weight:600; line-height:1.65; color:#2b3d57; }
.sample-code { font-family:Consolas,"SFMono-Regular",monospace; font-size:.875rem; font-weight:650; color:#41628a; white-space:nowrap; }
.sample-sub { display:inline-flex; vertical-align:baseline; margin-top:6px; margin-right:6px; }
.type-badge { display:inline-block; padding:0 6px; border-radius:4px; font-size:.875rem; line-height:22px; font-weight:500; }
.type-mc { color:#426ba5; background:#edf3ff; }.type-mq { color:#3e737d; background:#edf5f6; }
.sample-name { display:inline; font-size:.875rem; color:#65738a; line-height:1.65; }
.entrust-code { margin-top:6px; font-family:Consolas,monospace; font-size:.8125rem; color:#65738a; }
.row-notes { border-left:2px solid #d6e0ed; padding-left:9px; font-size:.875rem; color:#65738a; margin-top:9px; white-space:pre-wrap; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.date { white-space:nowrap; font-size:.875rem; font-variant-numeric:tabular-nums; color:#65738a; }
.elapsed { margin-top:4px; color:#65738a; font-size:.8125rem; white-space:nowrap; }
.elapsed strong { font-size:1.125rem; font-weight:650; color:#596e8b; font-variant-numeric:tabular-nums; }
tr[data-status=unnotified] .elapsed strong { color:#ae751f; }
.status { display:inline-block; padding:3px 8px; border-radius:6px; font-size:.875rem; line-height:22px; font-weight:500; white-space:nowrap; }
.status-unnotified { color:#925900; background:#fff4df; }.status-notified { color:#3468bf; background:#eef4ff; }.status-declined { color:#7c8798; background:#f0f2f6; }.status-returned { color:#2c7d6b; background:#eaf6f1; }
.row-meta { margin-top:7px; color:#65738a; font-size:.8125rem; }
.row-actions { text-align:right; }
.row-actions button { display:block; margin-left:auto; padding:6px 10px; min-height:34px; white-space:nowrap; }
.quick-notify { color:#2864d8; background:#f1f6ff; border-color:#dde9ff; margin-bottom:5px; }
.quick-notify:hover { color:#fff; background:#2864d8; border-color:#2864d8; }
.row-edit { color:#65738a; background:transparent; font-weight:400; }
.row-edit:hover { background:#edf3fb; color:#2864d8; }
.list-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 20px; background:#fbfcfe; color:#65738a; padding:12px 22px; border-top:1px solid var(--line); font-size:.875rem; }
.notice { padding:12px 16px; margin-bottom:16px; border-radius:8px; background:#fff1ef; color:#ad4439; font-size:.875rem; }
.save-feedback { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:10; width:max-content; max-width:calc(100% - 32px); padding:13px 20px; border-radius:9px; background:#284669; color:white; font-size:.875rem; box-shadow:0 8px 28px #28466930; }
.empty { padding:46px 24px 50px; text-align:center; }.empty h2 { font-size:1.125rem; }.empty p { margin-top:9px; }.empty button { margin-top:18px; }
label { display:block; font-size:.875rem; font-weight:600; margin:18px 0 7px; color:#425570; }
input,select,textarea { width:100%; padding:10px 12px; min-height:44px; border:1px solid #dce4ee; background:#fff; color:#334861; }
input::placeholder,textarea::placeholder { color:#65738a; }
input[type=search]::-webkit-search-cancel-button { display:none; }
textarea { resize:vertical; line-height:1.65; }
.form-error { font-size:.875rem; color:#ae4439; background:#fff1ef; border-radius:7px; padding:11px 13px; margin-top:16px; white-space:pre-wrap; }
dialog { width:min(620px,calc(100% - 32px)); max-height:calc(100vh - 40px); overflow:auto; border:1px solid #e4eaf2; border-radius:16px; padding:30px; color:#253e5d; box-shadow:0 24px 90px #162c5133; }
dialog::backdrop { background:#243b5a55; backdrop-filter:blur(2px); }
.dialog-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.eyebrow { color:#65738a; font-size:.875rem; font-family:Consolas,monospace; }
.dialog-header h2 { margin-top:6px; }.dialog-header .quiet { min-height:34px; padding:4px 8px; }
.project-context { background:#f5f8fd; border:1px solid #edf2f8; border-radius:9px; color:#365074; font-size:1rem; font-weight:500; padding:14px 16px; margin-top:22px; }
.edit-detail { margin-top:10px; color:#65738a; }
.note-meta { display:flex; justify-content:space-between; gap:12px; color:#65738a; font-size:.8125rem; margin-top:5px; }
.dialog-actions { display:flex; justify-content:flex-end; gap:10px; border-top:1px solid var(--line); padding-top:20px; margin-top:22px; }
.discard-warning { padding:13px 15px; margin-top:16px; background:#fff8ed; border:1px solid #ecd9b6; border-radius:8px; font-size:.875rem; }.discard-warning>div { display:flex; gap:8px; margin-top:9px; }
.initial-state { padding:80px 24px; text-align:center; color:#7b899e; }.initial-state button { margin-top:16px; }
.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; }
[hidden] { display:none!important; }
@media(max-width:1100px) { .workspace { padding:26px 24px 30px; }.stat-card { padding:14px 18px; }.filter-bar { gap:12px; }th,td { padding-left:14px; padding-right:14px; }.tabs { gap:13px; } }
@media(max-width:850px) { .filter-bar { flex-wrap:wrap; }.search-box { flex-basis:100%; }.filter-field { flex:1; }.filter-field select { flex:1; min-width:0; }.header-meta { font-size:.8125rem; }.page-header { gap:16px; }.heading { gap:10px; }.heading .muted { font-size:.8125rem; } }
@media(max-width:760px) {
 .workspace { padding:20px 14px 26px; height:auto; min-height:100dvh; }.list-panel { flex:none; }.page-header { flex-direction:column; align-items:flex-start; gap:10px; margin-bottom:18px; }.header-meta { text-align:left; font-size:.875rem; }.account { display:none; }.heading .muted { font-size:.8125rem; }h1 { font-size:1.4rem; }.brand-mark { width:40px; height:40px; font-size:1.3rem; border-radius:11px; }
 .overview { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:16px; }.stat-card { padding:11px 16px; }.stat-number { margin-top:3px; gap:8px; }.stat-number strong { font-size:1.6rem; }
 .toolbar { padding:4px 14px 0; gap:10px; }.tabs { gap:14px; }.tab { padding-top:12px; padding-bottom:14px; }.filter-bar { padding:14px 14px 10px; gap:10px; }.filter-field { display:block; }.filter-field label { font-size:.875rem; margin-bottom:4px; }.filter-field select { width:100%; }.list-context { padding:0 14px 12px; gap:3px; flex-wrap:wrap; }
 .table-wrap { max-height:none; overflow:visible; }table { min-width:0; }thead { position:absolute; width:1px; height:1px; clip:rect(0,0,0,0); overflow:hidden; }tbody { display:block; }
 tbody tr { display:grid; grid-template-columns:1fr 1fr; gap:12px 16px; padding:18px 16px; border-top:1px solid var(--line); }td { padding:0; border:0; min-width:0; }td:nth-child(1),td:nth-child(2),td:nth-child(5) { grid-column:1 / -1; }.project-name { font-weight:600; }.sample-code { margin-bottom:3px; }.entrust-code { margin-top:4px; }.sample-sub { margin-top:3px; }.date::before { content:'批准于 '; }td:nth-child(4) { text-align:right; }
 .row-actions { display:flex; justify-content:flex-end; align-items:center; gap:10px; padding-top:2px; }.row-actions button { display:inline-block; min-height:40px; padding:8px 12px; margin:0; }.quick-notify { order:1; }.list-footer { padding:12px 16px; }dialog { padding:24px; }.dialog-actions { padding-top:16px; }
}
@media(prefers-reduced-motion:reduce) { button { transition:none; } }
