/* Zeus 方案评审网站 */
:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --line: #e6e8ee;
  --line-strong: #d5d9e2;
  --text: #121826;
  --text-2: #3d4556;
  --muted: #6b7385;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef0ff;
  --accent-ink: #ffffff;
  --ok: #047857;
  --ok-soft: #e8f8f1;
  --ok-line: #a7e3c9;
  --bad: #be123c;
  --bad-soft: #fff0f3;
  --bad-line: #f6b8c6;
  --warn: #a16207;
  --warn-soft: #fef8e6;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .10);
  --r: 12px;
  --r-sm: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --surface: #171b23;
    --surface-2: #1c212b;
    --line: #2a303c;
    --line-strong: #353c4a;
    --text: #eef0f4;
    --text-2: #c8cdd8;
    --muted: #9099ab;
    --accent: #8b87ff;
    --accent-hover: #a29fff;
    --accent-soft: #24234a;
    --accent-ink: #0d0f1a;
    --ok: #4ade9b;
    --ok-soft: #12301f;
    --ok-line: #1f5a3a;
    --bad: #fb7194;
    --bad-soft: #3a1520;
    --bad-line: #6b2337;
    --warn: #f5c451;
    --warn-soft: #34290f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14.5px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { color: var(--text); line-height: 1.35; }
h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 16.5px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 22px;
  padding: 0 24px; height: 58px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 15.5px; }
.brand:hover { color: var(--text); }
.mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 2px 6px rgba(99, 102, 241, .35);
}
nav { display: flex; gap: 4px; }
nav a { padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; }
nav a:hover { color: var(--text); background: var(--surface-2); }
nav a.on { color: var(--accent); background: var(--accent-soft); }
.spacer { flex: 1; }
.user { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13.5px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: var(--accent-soft); color: var(--accent); flex: none;
}
.avatar.lg { width: 36px; height: 36px; font-size: 15px; }
.avatar.ok { background: var(--ok-soft); color: var(--ok); }
.avatar.bad { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 640px) {
  .top { gap: 10px; padding: 0 14px; }
  .brand span:last-child, .user .uname { display: none; }
}

main { max-width: 1320px; margin: 0 auto; padding: 28px 24px 80px; }
@media (max-width: 640px) { main { padding: 20px 16px 60px; } }
main.bare { max-width: none; padding: 0; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 0; color: var(--muted); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.section-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 28px 0 10px; letter-spacing: .02em; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  height: 36px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); background: var(--bad-soft); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn.block { width: 100%; height: 42px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .seg button:focus-visible,
.verdict button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

label.f { display: block; font-weight: 600; font-size: 13.5px; margin: 18px 0 6px; color: var(--text); }
label.f .hint { font-weight: 400; color: var(--muted); margin-left: 6px; }
input[type=text], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
textarea:disabled, input:disabled, select:disabled { background: var(--surface-2); color: var(--text-2); }
.counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 3px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ---------- pills & badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
  white-space: nowrap;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }
.pill.info { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.score {
  display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 8px; font-size: 13px;
  font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums;
}

/* reviewer slots: one circle per reviewer */
.slots { display: inline-flex; gap: 5px; align-items: center; }
.slot {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--surface); color: var(--muted); border: 1.5px dashed var(--line-strong);
}
.slot.done { border-style: solid; border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.slot.ok { border: 1.5px solid var(--ok); background: var(--ok-soft); color: var(--ok); }
.slot.bad { border: 1.5px solid var(--bad); background: var(--bad-soft); color: var(--bad); }
.slots-label { font-size: 12.5px; color: var(--muted); margin-left: 4px; white-space: nowrap; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-hero {
  color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: radial-gradient(1200px 600px at -10% -20%, #8b5cf6 0%, transparent 60%),
    radial-gradient(900px 600px at 120% 120%, #0ea5e9 0%, transparent 55%), linear-gradient(135deg, #312e81, #4f46e5);
}
.auth-hero .brand { color: #fff; font-size: 17px; }
.auth-hero .mark { background: rgba(255, 255, 255, .18); box-shadow: none; }
.auth-hero h1 { color: #fff; font-size: 32px; line-height: 1.3; margin: 0 0 14px; max-width: 460px; }
.auth-hero p { color: rgba(255, 255, 255, .84); max-width: 460px; margin: 0; font-size: 15px; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 460px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .92); }
.auth-points b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .16); font-size: 13px; }
.auth-foot { color: rgba(255, 255, 255, .6); font-size: 12.5px; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-form form, .auth-form .box { width: 100%; max-width: 380px; }
.auth-form h2 { font-size: 22px; margin: 0 0 6px; }
.auth-form .lead { color: var(--muted); margin: 0 0 8px; }
.err { color: var(--bad); font-size: 13px; min-height: 20px; margin: 10px 0 2px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 22px; }
  .auth-hero h1 { font-size: 22px; }
  .auth-points, .auth-foot { display: none; }
}

/* ---------- my reviews ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .n { font-size: 28px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .l { color: var(--muted); font-size: 13px; }
.stat.hot .n { color: var(--accent); }
.list { display: grid; gap: 10px; }
.item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.item-title { font-weight: 650; font-size: 15.5px; color: var(--text); display: block; margin-bottom: 6px; }
.item-title:hover { color: var(--accent); }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: 13px; }
.item-side { display: flex; align-items: center; gap: 16px; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .big { font-size: 28px; margin-bottom: 6px; }
@media (max-width: 720px) {
  .stats { gap: 8px; }
  .stat { padding: 12px; }
  .stat .n { font-size: 22px; }
  .item { grid-template-columns: 1fr; gap: 12px; }
  .item-side { justify-content: space-between; }
}

/* ---------- one proposal ---------- */
.task-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.task-head h1 { font-size: 22px; max-width: 900px; }
.task-head .chips { margin-top: 10px; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, 1fr); gap: 20px; align-items: start; }
.viewer { position: sticky; top: 74px; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 13px; }
.viewer-bar b { font-size: 13.5px; }
.viewer iframe { width: 100%; height: calc(100vh - 150px); min-height: 520px; border: 0; background: #e9ebef; display: block; }
.abstract .k { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 12px 0 2px; }
.abstract .k:first-of-type { margin-top: 0; }
.abstract p { margin: 0; color: var(--text-2); }
.abstract ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.note { font-size: 13px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.note.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .viewer { position: static; }
  .viewer iframe { height: 72vh; }
}

/* verdict toggle */
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.verdict button {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--text-2); font: inherit; font-weight: 650; cursor: pointer; text-align: left; transition: all .15s;
}
.verdict button .ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
  background: var(--surface-2); color: var(--muted); flex: none; }
.verdict button small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.verdict button:hover:not(:disabled) { border-color: var(--text-2); }
.verdict button.on.accept { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.verdict button.on.accept .ico { background: var(--ok); color: #fff; }
.verdict button.on.reject { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.verdict button.on.reject .ico { background: var(--bad); color: #fff; }
.verdict button:disabled { cursor: default; }

/* segmented choice */
.seg { display: flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg button {
  flex: 1; height: 38px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--text-2);
  font: inherit; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; transition: background .12s, color .12s;
}
.seg button:first-child { border-left: 0; }
.seg button:hover:not(:disabled) { background: var(--surface-2); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.seg button:disabled { cursor: default; }
.seg-caption { font-size: 12.5px; color: var(--muted); margin-top: 5px; min-height: 19px; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.form-foot { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-foot .muted { flex: 1; font-size: 12.5px; }

/* reviews */
.review { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: var(--surface); }
.review + .review { margin-top: 12px; }
.review.accept { border-left: 3px solid var(--ok); }
.review.reject { border-left: 3px solid var(--bad); }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review-head .who { font-weight: 650; }
.review-head .when { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.review .k { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 12px 0 2px; }
.review .v { white-space: pre-wrap; color: var(--text-2); }
.locked { display: flex; gap: 14px; align-items: center; color: var(--muted); }
.locked .ico { font-size: 22px; }

/* ---------- admin ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; }
.tabs a { padding: 6px 14px; border-radius: 7px; color: var(--muted); font-weight: 500; }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--accent-soft); color: var(--accent); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
th { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
td .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
td.t-title { min-width: 260px; }
td.t-title a { font-weight: 600; color: var(--text); }
td.t-title a:hover { color: var(--accent); }
.people { display: grid; gap: 6px; }
.person { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .grid3 { grid-template-columns: 1fr; } }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.edit-row td { background: var(--surface-2); }
.edit-user { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 14px;
  width: min(640px, calc(100vw - 64px)); position: sticky; left: 14px; }   /* stays in view when the table scrolls */
.edit-user label.f { margin-top: 2px; }
.edit-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.edit-foot .muted { flex: 1; }
@media (max-width: 560px) { .edit-user { grid-template-columns: 1fr; } .edit-foot { flex-wrap: wrap; } }
.account { max-width: 480px; }
.account-level { max-width: 220px; }
.contributions .page-head h2 { margin-bottom: 4px; }
.contribution-filters label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.contribution-filters select { width: auto; max-width: min(280px, 60vw); }
.contribution-table td { white-space: nowrap; }
.contribution-table .t-title, .contribution-table .contribution-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.contribution-table .contribution-text { min-width: 200px; }
.contribution-table .quality-detail { min-width: 280px; max-width: 520px; }
.quality-counts { display: flex; gap: 8px; }
.quality-note { margin-top: 6px; }
.quality-detail blockquote { margin: 2px 0 6px; padding-left: 10px; border-left: 2px solid var(--line-strong); color: var(--text-2); }
.contribution-section { margin-top: 24px; }
.contributions h3 { margin: 0; }
.contribution-dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100% - 32px); color: var(--text); }
.contribution-dialog::backdrop { background: rgb(15 18 24 / .45); }

/* ---------- toast ---------- */
.toast {
  position: fixed; right: 22px; bottom: 22px; padding: 12px 16px; border-radius: 10px; background: var(--text); color: var(--bg);
  box-shadow: var(--shadow-lg); max-width: 420px; z-index: 30; font-size: 14px;
}
.toast.error { background: var(--bad); color: #fff; }

/* 4-point score picker: one row per score, the score is the vote */
.score-pick { display: grid; gap: 8px; }
.score-pick button {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; text-align: left; padding: 10px 14px;
  border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text-2);
  font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.score-pick button:hover:not(:disabled) { border-color: var(--text-2); }
.score-pick button:disabled { cursor: default; }
.score-pick .num {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; font-weight: 800;
  background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums;
}
.score-pick .txt b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text); }
.score-pick .txt em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.score-pick .yes .txt em { background: var(--ok-soft); color: var(--ok); }
.score-pick .no .txt em { background: var(--bad-soft); color: var(--bad); }
.score-pick .txt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 1px; }
.score-pick button.on.yes { border-color: var(--ok); background: var(--ok-soft); }
.score-pick button.on.yes .num { background: var(--ok); color: #fff; }
.score-pick button.on.no { border-color: var(--bad); background: var(--bad-soft); }
.score-pick button.on.no .num { background: var(--bad); color: #fff; }
.score.s4, .score.s3 { color: var(--ok); border-color: var(--ok-line); background: var(--ok-soft); }
.score.s2, .score.s1 { color: var(--bad); border-color: var(--bad-line); background: var(--bad-soft); }

/* ---------- 语料审查 ---------- */
.cp-progress { height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.cp-bar { height: 100%; background: var(--accent); }
.cp-howto { margin: 0; padding-left: 20px; color: var(--text-2); }
.cp-howto li { margin: 4px 0; }
.cp-pipe div, .cp-pipe span { display: block; margin: 2px 0; }
.cp-bar-top { position: sticky; top: 0; z-index: 5; margin-bottom: 12px; padding: 12px 14px; }
.cp-title { display: flex; flex-direction: column; gap: 4px; }
.cp-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.cp-actions input { flex: 1 1 260px; min-width: 200px; }
.cp-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-height: 120px; overflow: auto; }
.cp-flag { border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-2); border-radius: 8px;
  padding: 3px 8px; font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; }
.cp-flag b { color: var(--warn); font-weight: 600; }
.cp-flag.k-number b, .cp-flag.k-cite b, .cp-flag.k-missing b { color: var(--bad); }
.cp { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: 14px; align-items: start; }
@media (max-width: 960px) { .cp { grid-template-columns: 1fr; } }
.cp-editor, .cp-paper { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.cp-editor { padding: 6px 14px 14px; }
.cp-paper { position: sticky; top: 150px; max-height: calc(100vh - 170px); display: flex; flex-direction: column; }
.cp-paper-bar { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cp-paper-bar .tabs { margin: 0; }
.cp-paper-bar input { flex: 1 1 180px; }
.cp-pane { overflow: auto; padding: 10px 14px 18px; }
.cp-sec { margin-bottom: 14px; }
.cp-sec-title { font-weight: 600; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.cp-text { white-space: pre-wrap; word-break: break-word; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-2); }
.cp-text mark { background: #ffe58a; color: #111; border-radius: 2px; }
.cp-group { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.cp-group:first-child { border-top: 0; margin-top: 0; }
.cp-group-title { font-weight: 650; font-size: 13px; color: var(--muted); letter-spacing: .02em; margin-bottom: 6px; }
.cp-field { margin-bottom: 8px; border-radius: 8px; transition: background .3s; }
.cp-field.cp-hit { background: var(--warn-soft); }
.cp-field label.f { display: flex; gap: 6px; align-items: baseline; }
.cp-field textarea, .cp-field input[type=text], .cp-field select { width: 100%; }
.cp-lines { font: inherit; font-size: 13px; line-height: 1.55; resize: vertical; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 12.5px !important; }
.cp-flagdot { color: var(--bad); font-size: 12px; font-weight: 600; cursor: help; }
.cp-objs { display: flex; flex-direction: column; gap: 8px; }
.cp-obj { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 8px; position: relative; }
.cp-sub { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: start; margin-bottom: 5px; }
.cp-k { color: var(--muted); font-size: 12.5px; padding-top: 6px; }
.cp-del { position: absolute; top: 4px; right: 4px; }
.cp-warn { color: var(--warn); }

/* ---------- 语料审查：快审 ---------- */
.cp-steps { margin: 0 0 10px; padding-left: 22px; }
.cp-steps li { margin: 6px 0; }
.cp-steps li b { display: block; color: var(--text); }
.cp-steps li span { color: var(--text-2); font-size: 13.5px; }
.cp-ex { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; margin: 8px 0; background: var(--surface-2); }
.cp-ex-bad b { color: var(--bad); }
.cp-ex-good b { color: var(--ok); }
.cp-ex > div { margin: 2px 0; }
.cp-steps .cp-ex { margin: 6px 0 4px; font-size: 13.5px; }
.cp-steps .cp-ex b { display: inline; }
.cp-steps .cp-ex-good b { color: var(--ok); }
.cp-steps .cp-ex-bad b { color: var(--bad); }
.cp-table { border-collapse: collapse; width: 100%; }
.cp-table td { border-top: 1px solid var(--line); padding: 7px 8px; vertical-align: top; }
.cp-table td:first-child { white-space: nowrap; width: 1%; }
.cp-shares { margin-top: 14px; }
.cp-shares .cp-table { margin-top: 6px; }
.cp-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 8px; font-size: 13px; }
.cp-shares .cp-table td:first-child { width: auto; }
.cp-table tr.me td { background: var(--accent-soft); }
.cp-quick { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.cp-card { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface); }
.cp-card-head { display: flex; flex-direction: column; gap: 1px; margin-bottom: 8px; }
.cp-card-head b { font-size: 14px; }
.cp-banner { border-radius: var(--r-sm); padding: 9px 12px; border: 1px solid var(--line); margin: 6px 0; }
.cp-banner.ok { background: var(--ok-soft); border-color: var(--ok-line); }
.cp-banner.bad { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.cp-banner.info { background: var(--accent-soft); border-color: transparent; margin-top: 8px; }
.cp-item, .cp-unc, .cp-rflag { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 9px; margin-bottom: 8px; background: var(--surface-2); }
.cp-item-main { display: flex; gap: 8px; align-items: flex-start; }
.cp-item-main > :first-child { flex: 1 1 auto; min-width: 0; }
.cp-item-btns { display: flex; gap: 2px; flex: none; margin-left: auto; }
.cp-item-foot { display: flex; gap: 8px; align-items: center; margin-top: 2px; min-height: 26px; }
.cp-item-btns .btn.sm { height: 26px; padding: 0 8px; font-size: 12.5px; }
.cp-note { width: 100%; min-height: 0; font: inherit; font-size: 13.5px; line-height: 1.5; border: 1px solid transparent; background: transparent; resize: none; padding: 3px 5px; border-radius: 6px; color: var(--text); }
.cp-note:hover { border-color: var(--line); }
.cp-note:focus { border-color: var(--accent); background: var(--surface); outline: none; }
.cp-note.small { font-size: 12.5px; color: var(--text-2); }
.cp-res { display: flex; flex-direction: column; gap: 3px; }
.cp-evlabel { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.cp-evid { flex: 0 0 160px; width: 160px !important; height: 26px; padding: 0 6px; }
.cp-changed { border-color: var(--ok) !important; box-shadow: 0 0 0 1px var(--ok-line); }
.cp-changed-tag { color: var(--ok); font-size: 12px; font-weight: 600; margin-top: 2px; }
.cp-tofix { border-color: var(--warn) !important; background: var(--warn-soft) !important; }
.cp-deleted { opacity: .45; }
.cp-deleted .cp-note, .cp-bl.cp-deleted > span:first-child { text-decoration: line-through; }
.cp-fixtag { color: var(--warn); font-size: 12.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.cp-fixtag[hidden] { display: none; }
.cp-fixbox { margin-top: 6px; padding: 7px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--surface); }
.cp-fixrow { display: flex; gap: 6px; margin-top: 6px; }
.cp-fixrow input { flex: 1 1 auto; height: 30px; }
.cp-chip { border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-2); border-radius: 99px; padding: 2px 9px; font: inherit; font-size: 12px; cursor: pointer; }
.cp-chip:hover { border-color: var(--accent); color: var(--accent); }
.cp-iflags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cp-iflags .cp-flag { font-size: 12px; padding: 1px 7px; }
.cp-evidence { margin-top: 5px; }
.cp-nums { display: flex; flex-wrap: wrap; gap: 4px; }
.cp-num { border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 7px; font: inherit; font-size: 12px; cursor: pointer; background: var(--surface); color: var(--text-2); text-align: left; }
.cp-num b { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cp-num.s-ok { border-color: var(--ok-line); background: var(--ok-soft); }
.cp-num.s-ok b { color: var(--ok); }
.cp-num.s-else { border-color: var(--warn); background: var(--warn-soft); }
.cp-num.s-else b { color: var(--warn); }
.cp-num.s-none { border-color: var(--bad-line); background: var(--bad-soft); }
.cp-num.s-none b { color: var(--bad); }
.cp-ev { margin-top: 6px; }
.cp-ev-cap { font-size: 12px; color: var(--muted); margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-ev-cap b { color: var(--text-2); }
.cp-ev-sents { font-size: 12.5px; color: var(--text-2); line-height: 1.5; display: flex; flex-direction: column; gap: 3px; }
.cp-ev-sents mark, .cp-grid .hit { background: #ffe58a; color: #111; }
.cp-ev-miss { color: var(--bad); font-size: 12.5px; margin-top: 4px; }
.cp-grid { max-height: 230px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); position: relative; }
.cp-grid table { border-collapse: collapse; font-size: 11.5px; line-height: 1.35; }
.cp-grid th, .cp-grid td { border: 1px solid var(--line); padding: 2px 6px; white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.cp-grid th { background: var(--surface-2); font-weight: 600; color: var(--text-2); position: sticky; top: 0; }
.cp-grid .hit { font-weight: 700; outline: 2px solid #e0b100; outline-offset: -2px; }
.cp-figs summary { cursor: pointer; color: var(--muted); font-size: 12.5px; margin: 4px 0; }
.cp-bls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cp-bl { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; padding: 2px 4px 2px 8px; background: var(--surface-2); font-size: 13px; }
.cp-bl .pill { font-size: 11px; padding: 0 6px; }
.cp-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 4px; border-radius: 4px; }
.cp-x:hover { color: var(--bad); background: var(--bad-soft); }
.cp-bl-add { height: 28px; width: 150px; font-size: 12.5px; }
.cp-rest { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.cp-rest > summary { cursor: pointer; color: var(--text-2); font-size: 13px; }
.cp-rest[open] > summary { margin-bottom: 8px; }
.cp-rflag { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 4px 6px; }
.cp-rgroup { border-top: 1px dashed var(--line-strong); padding-top: 8px; margin-top: 8px; }
.cp-rgroup:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.cp-ghead { -webkit-line-clamp: 3; margin-bottom: 5px; }
.cp-gsticky { position: sticky; top: 132px; z-index: 2; margin-bottom: 8px; box-shadow: 0 4px 10px rgba(16, 24, 40, .08); border-radius: 6px; }
.cp-figimgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; align-items: flex-start; }
.cp-figimgs img { max-height: 300px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: zoom-in; }
.cp-figsticky { background: var(--surface); border: 1px solid var(--line); padding: 6px; }
.cp-figsticky .cp-figimgs { margin: 0; flex-wrap: nowrap; overflow-x: auto; }     /* subfigures side by side, scroll */
.cp-figsticky .cp-figimgs img { max-height: 210px; max-width: 88%; flex: 0 0 auto; }
.cp-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 12, 20, .82); display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 16px; }
.cp-lightbox img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 6px; }
.cp-grid .hit2 { background: #f5b700 !important; color: #111; outline: 2px solid #b45309; outline-offset: -2px; }
.cp-only-changed .cp-item:not(.cp-changed), .cp-only-changed .cp-rgroup:not(:has(.cp-changed)),
.cp-only-changed > .cp-card:not(:has(.cp-changed)) { display: none; }

/* 语料审查教程：合格标准、颜色表、例题 */
.cp-guide-h1, .card .cp-h2 { margin-top: 0; }
.cp-guide-cta { margin: 4px 0 10px; }
.cp-standard { display: flex; flex-direction: column; gap: 8px; font-size: 14px; margin-bottom: 16px; }
.cp-standard ol, .cp-standard ul { margin: 4px 0 0; padding-left: 22px; }
.cp-std-must { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 8px 10px; border-radius: 6px; }
.cp-colors td { vertical-align: middle; }
.cp-demo { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 12px 0; background: var(--surface); }
.cp-demo-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.cp-demo-n { font-size: 12px; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 1px 8px; font-weight: 600; }
.cp-demo-finding { font-size: 14px; margin-bottom: 4px; }
.cp-demo-ev { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.cp-demo-ev code { font-size: 12.5px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 6px; background: var(--surface); }
.cp-demo-quote { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.cp-demo-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-demo-q { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.cp-demo-ans { margin-top: 10px; padding: 10px 12px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.cp-demo-ans[hidden] { display: none; }
.cp-demo-verdict { font-weight: 600; }
.cp-demo-verdict.ok { color: var(--ok); }
.cp-demo-verdict.bad { color: var(--bad); }
.btn.cp-pick-ok { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.btn.cp-pick-bad { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
.cp-demo-btn { display: inline-block; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 7px; margin: 0 3px; font-size: 12.5px; background: var(--surface); white-space: nowrap; }
