:root { --c: #1f5fbf; --bg: #f5f7fb; --line: #e2e7ef; --warn: #fff3c4; --bad: #ffe1d6; --ok: #e3f6e8; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: #1d2533; }
a { color: var(--c); text-decoration: none; }
header { background: #fff; border-bottom: 1px solid var(--line); padding: 0 20px; display: flex; align-items: center; gap: 18px; height: 56px; position: sticky; top: 0; z-index: 5; }
header .brand { font-weight: 700; font-size: 17px; color: #1d2533; }
header nav { display: flex; gap: 14px; flex: 1; flex-wrap: wrap; }
header nav a { padding: 4px 2px; }
header .me { color: #667; font-size: 13px; }
.badge { background: #e8453c; color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; margin-left: 3px; }
main { max-width: 1180px; margin: 22px auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
h1 { font-size: 22px; margin: 0 0 12px; } h2 { font-size: 18px; margin: 4px 0 10px; }
.muted { color: #778; font-size: 13px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: #f0f3f8; font-weight: 600; font-size: 13px; white-space: nowrap; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid #c9d1de; border-radius: 6px; background: #fff; }
input[type=text], input[type=password], textarea { width: 100%; }
button, .btn { font: inherit; background: var(--c); color: #fff; border: 0; border-radius: 6px; padding: 8px 16px; cursor: pointer; display: inline-block; }
button.ghost, .btn.ghost { background: #fff; color: var(--c); border: 1px solid var(--c); }
button.danger { background: #c0392b; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.msg { background: var(--ok); padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; }
.err { background: var(--bad); padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; }
.chips a { display: inline-block; padding: 3px 10px; margin: 0 6px 6px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #334; font-size: 13px; }
.chips a.on { background: var(--c); color: #fff; border-color: var(--c); }
.pill { display: inline-block; padding: 0 8px; border-radius: 10px; font-size: 12px; background: #eef1f6; color: #445; }
.pill.review { background: var(--warn); } .pill.failed { background: var(--bad); } .pill.auto, .pill.confirmed, .pill.done { background: var(--ok); }
.vals span { display: inline-block; margin: 0 10px 2px 0; }
.vals .n { color: #889; font-size: 12px; }
.conflict { background: #fffaf0; }
.review-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.imgbox { position: sticky; top: 70px; background: #222; border-radius: 10px; overflow: auto; max-height: calc(100vh - 90px); }
.imgbox img { width: 100%; display: block; transform-origin: center; }
.fgrid { display: grid; grid-template-columns: 130px 1fr; gap: 6px 10px; align-items: center; }
.fgrid label { font-size: 13px; color: #556; }
.fgrid .flag input { background: var(--warn); border-color: #e0b400; }
.hint { font-size: 12px; color: #8a6d00; }
.cands label { display: block; padding: 4px 0; }
.login { max-width: 360px; margin: 12vh auto; }
@media (max-width: 800px) { .review-wrap { grid-template-columns: 1fr; } .imgbox { position: static; max-height: none; }
  header { height: auto; padding: 8px 12px; flex-wrap: wrap; gap: 6px 14px; } header nav { order: 3; flex: 0 0 100%; gap: 18px; font-size: 15px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
  header .me { margin-left: auto; } main { margin: 12px auto; padding: 0 10px; } .card { padding: 14px; border-radius: 12px; }
  table { font-size: 13px; } th, td { padding: 6px; } .fgrid { grid-template-columns: 96px 1fr; } }
