/* 文字稿纠错审核台：墨蓝 + 朱砂，沿用 IMA 同步页的视觉语言 */
#tab-corrections {
  --corr-ink: #14213d;
  --corr-accent: #a8323f;
  --corr-soft: #fbf0f1;
  --corr-line: #e3e6ec;
  --corr-muted: #6b7280;
  color: var(--corr-ink);
}
#tab-corrections .corr-masthead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding-bottom: 18px; border-bottom: 2px solid var(--corr-ink); margin-bottom: 20px;
}
#tab-corrections .corr-masthead h2 { font-size: 22px; margin: 0 0 6px; font-weight: 800; letter-spacing: -.3px; }
#tab-corrections .corr-masthead p { margin: 0; font-size: 13px; color: var(--corr-muted); line-height: 1.7; }
#tab-corrections .corr-tally { display: flex; gap: 10px; flex-shrink: 0; }
#tab-corrections .corr-tally-item {
  min-width: 82px; padding: 10px 12px; border: 1px solid var(--corr-line); border-radius: 4px;
  background: #fff; text-align: center;
}
#tab-corrections .corr-tally-item.is-on { border-color: var(--corr-accent); background: var(--corr-soft); }
#tab-corrections .corr-tally-item span:first-child {
  display: block; font-family: Georgia, serif; font-size: 24px; font-weight: 700; line-height: 1.1;
}
#tab-corrections .corr-tally-item span:last-child { font-size: 11px; color: var(--corr-muted); }
#tab-corrections .corr-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
#tab-corrections .corr-toolbar select { min-width: 130px; }
#tab-corrections .corr-select { color: var(--corr-ink); }
#tab-corrections .corr-note { font-size: 12px; color: var(--corr-muted); }
#tab-corrections .corr-btn {
  border: 1px solid var(--corr-line); background: #fff; color: var(--corr-ink);
  border-radius: 4px; padding: 7px 14px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
#tab-corrections .corr-btn:hover { border-color: var(--corr-ink); }
#tab-corrections .corr-btn.is-primary { background: var(--corr-ink); border-color: var(--corr-ink); color: #fff; }
#tab-corrections .corr-btn.is-danger { background: #fff; border-color: var(--corr-accent); color: var(--corr-accent); }
#tab-corrections .corr-list { border: 1px solid var(--corr-line); border-radius: 4px; overflow: hidden; background: #fff; }
#tab-corrections .corr-head, #tab-corrections .corr-row-main {
  display: grid; grid-template-columns: 52px 150px minmax(180px, 1fr) 64px 118px 150px 66px;
  gap: 10px; align-items: center; padding: 10px 14px;
}
#tab-corrections .corr-head { background: #f5f6f8; font-size: 12px; font-weight: 700; color: var(--corr-muted); }
#tab-corrections .corr-row + .corr-row { border-top: 1px solid var(--corr-line); }
#tab-corrections .corr-row-main { font-size: 13px; }
#tab-corrections .corr-id { font-family: Georgia, serif; color: var(--corr-muted); }
#tab-corrections .corr-who, #tab-corrections .corr-title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#tab-corrections .corr-sec { font-family: Georgia, serif; }
#tab-corrections .corr-status { font-size: 12px; font-weight: 700; white-space: nowrap; }
#tab-corrections .corr-status.is-wait { color: var(--corr-accent); }
#tab-corrections .corr-status.is-ok { color: #19714d; }
#tab-corrections .corr-status.is-no { color: var(--corr-muted); }
#tab-corrections .corr-when { font-size: 11px; color: var(--corr-muted); white-space: nowrap; }
#tab-corrections .corr-detail { padding: 4px 14px 16px 62px; background: #fafbfc; }
#tab-corrections .corr-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#tab-corrections .corr-diff-box {
  border: 1px solid var(--corr-line); border-radius: 4px; background: #fff; padding: 10px 12px;
}
#tab-corrections .corr-diff-box b { font-size: 12px; color: var(--corr-muted); }
#tab-corrections .corr-orig, #tab-corrections .corr-fixed {
  margin-top: 6px; font-size: 13px; line-height: 1.8; max-height: 168px; overflow: auto;
}
#tab-corrections .corr-orig { color: #8a3b41; text-decoration: line-through; text-decoration-color: #d6a5a9; }
#tab-corrections .corr-fixed { color: #14603f; font-weight: 600; }
#tab-corrections .corr-note, #tab-corrections .corr-reviewed {
  margin: 10px 0 0; font-size: 12px; color: var(--corr-muted);
}
#tab-corrections .corr-review {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--corr-line);
}
#tab-corrections .corr-review-label { font-size: 12px; font-weight: 700; }
#tab-corrections .corr-rewards { display: flex; gap: 6px; flex-wrap: wrap; }
#tab-corrections .corr-reward { position: relative; cursor: pointer; }
#tab-corrections .corr-reward input { position: absolute; opacity: 0; width: 0; height: 0; }
#tab-corrections .corr-reward span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px;
  border: 1px solid var(--corr-line); border-radius: 4px; background: #fff;
  font-family: Georgia, serif; font-size: 13px; font-weight: 700; color: var(--corr-ink);
}
#tab-corrections .corr-reward input:checked + span {
  background: var(--corr-accent); border-color: var(--corr-accent); color: #fff;
}
#tab-corrections .corr-reward input:focus-visible + span { outline: 2px solid var(--corr-ink); outline-offset: 2px; }
#tab-corrections .corr-review-note {
  flex: 1 1 200px; min-width: 160px; padding: 7px 10px; border: 1px solid var(--corr-line);
  border-radius: 4px; font-size: 13px; color: var(--corr-ink);
}
#tab-corrections .corr-empty { padding: 48px; text-align: center; color: var(--corr-muted); font-size: 13px; }
#tab-corrections .kb-pager {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  padding: 16px 0 4px;
}
#tab-corrections .kb-page {
  min-width: 30px; height: 28px; padding: 0 9px; border: 1px solid var(--corr-line);
  background: #fff; color: var(--corr-ink); border-radius: 4px; font-size: 12px; cursor: pointer;
}
#tab-corrections .kb-page[aria-current="page"] { background: var(--corr-ink); border-color: var(--corr-ink); color: #fff; }
#tab-corrections .kb-page:disabled { opacity: .4; cursor: not-allowed; }
#tab-corrections .kb-pager-note { font-size: 12px; color: var(--corr-muted); }

@media (max-width: 1100px) {
  #tab-corrections .corr-head, #tab-corrections .corr-row-main {
    grid-template-columns: 44px minmax(120px, 1fr) 60px 100px 60px;
  }
  #tab-corrections .corr-head span:nth-child(3),
  #tab-corrections .corr-row-main .corr-title,
  #tab-corrections .corr-head span:nth-child(6),
  #tab-corrections .corr-row-main .corr-when { display: none; }
  #tab-corrections .corr-detail { padding-left: 14px; }
  #tab-corrections .corr-diff { grid-template-columns: 1fr; }
}
