:root {
  --bg: #f5f6f8; --card: #fff; --line: #e5e7eb;
  --text: #1f2329; --muted: #8a919f;
  --blue: #1677ff; --green: #22a06b; --orange: #e8951c; --red: #e5484d; --purple: #7c5cff;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
.container { max-width: 640px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
h1 { font-size: 20px; margin-bottom: 4px; }
h2 { font-size: 16px; margin-bottom: 10px; }
.muted { color: var(--muted); font-size: 13px; }
button { border: 0; border-radius: 8px; padding: 10px 18px; font-size: 15px; cursor: pointer; background: var(--blue); color: #fff; }
button.ghost { background: #f0f1f3; color: var(--text); }
button.small { padding: 4px 10px; font-size: 13px; border-radius: 6px; }
button:disabled { opacity: .5; }
.progress-track { height: 10px; border-radius: 5px; background: #eceef1; overflow: hidden; margin: 8px 0; }
.progress-bar { height: 100%; border-radius: 5px; background: var(--green); transition: width .4s; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.tag.self, .tag.covered, .tag.pass { background: #e6f6ee; color: var(--green); }
.tag.others { background: #fdf0e0; color: var(--orange); }
.tag.unknown, .tag.fail { background: #fdebec; color: var(--red); }
.tag.ambiguous, .tag.disputed { background: #f0ecff; color: var(--purple); }
.tag.pending { background: #eceef1; color: var(--muted); }
.tag.manual { background: #e8f3ff; color: var(--blue); }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.grow { flex: 1; min-width: 0; }
.code-num { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 16px; }
input[type=text] { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 15px; width: 100%; }
textarea { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; width: 100%; resize: vertical; }
.toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); background: rgba(0,0,0,.75); color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 14px; z-index: 99; }
.photo-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; z-index: 100; }
.overlay img { max-width: 96vw; max-height: 96vh; }
.fab { position: fixed; right: 20px; bottom: 28px; width: 60px; height: 60px; border-radius: 50%; font-size: 26px; box-shadow: 0 4px 14px rgba(22,119,255,.4); }

/* 核对台 PC 双栏 */
.review-layout { max-width: 1280px; margin: 0 auto; padding: 16px; }
@media (min-width: 1024px) {
  .review-layout { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
  .holder-list { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
  .photo-thumb { width: 140px; height: 140px; }
  .photo-grid { display: flex; flex-wrap: wrap; gap: 10px; }
  table.codes { width: 100%; border-collapse: collapse; font-size: 14px; }
  table.codes th, table.codes td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
  table.codes th { color: var(--muted); font-weight: 500; }
}
.holder-item { cursor: pointer; border-left: 3px solid transparent; padding-left: 8px; }
.holder-item.active { border-left-color: var(--blue); background: #f5f9ff; }
