:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --line: #e3e8f0;
  --ink: #1c2430;
  --sub: #6b7787;
  --brand: #2f6fed;
  --brand-dark: #1f55c4;
  --ok: #1f9d55;
  --warn: #d97706;
  --bad: #d92d20;
  --shadow: 0 2px 10px rgba(20, 35, 70, .06);
  --radius: 14px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  padding: 14px 14px 40px;
  max-width: 720px;
  margin: 0 auto;
}
h1 { font-size: 20px; margin: 6px 0 4px; }
h2 { font-size: 16px; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
h2 .bar { width: 4px; height: 16px; background: var(--brand); border-radius: 2px; }
.sub { color: var(--sub); font-size: 13px; margin: 0 0 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 130px; }
label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 5px; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,111,237,.12); }
textarea { min-height: 76px; resize: vertical; }
button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
button:hover { background: var(--brand-dark); }
button:disabled { background: #b9c3d1; cursor: not-allowed; }
button.ghost { background: #eef2f9; color: var(--brand); }
button.ghost:hover { background: #e2e9f6; }
button.wide { width: 100%; }
.tip { font-size: 12.5px; color: var(--sub); }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; background: #eef2f9; color: var(--brand);
}
.badge.ok { background: #e6f6ec; color: var(--ok); }
.badge.warn { background: #fdf3e3; color: var(--warn); }
.badge.bad { background: #fdeceb; color: var(--bad); }
.msg { margin-top: 12px; padding: 11px 13px; border-radius: 10px; font-size: 14px; }
.msg.ok { background: #e6f6ec; color: #14663a; }
.msg.err { background: #fdeceb; color: #96231b; }
.cand {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--line); border-radius: 12px;
  padding: 13px; margin-bottom: 10px; cursor: pointer; background: #fff;
}
.cand:active { transform: scale(.995); }
.cand.sel { border-color: var(--brand); background: #f2f7ff; }
.cand.dis { opacity: .5; cursor: not-allowed; }
.cand .grp {
  flex: 0 0 44px; height: 44px; border-radius: 10px; background: #eef2f9;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--brand); font-size: 13px;
}
.cand .who { flex: 1; min-width: 0; }
.cand .who b { font-size: 16px; }
.cand .who span { display: block; color: var(--sub); font-size: 13px; }
.cand .radio { flex: 0 0 20px; height: 20px; border: 2px solid #c9d3e2; border-radius: 50%; }
.cand.sel .radio { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--sub); font-weight: 600; font-size: 12.5px; }
td.num, th.num { text-align: right; }
.bar-row { margin-bottom: 12px; }
.bar-row .lab { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 5px; }
.bar { height: 10px; background: #eef2f9; border-radius: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, #5b93ff, var(--brand)); border-radius: 6px; transition: width .4s; }
.bar-row.win .lab b { color: var(--bad); }
.bar-row.win .bar > i { background: linear-gradient(90deg, #ffb36b, #f08a24); }
.kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.kpi { flex: 1 1 90px; background: #f8fafd; border: 1px solid var(--line); border-radius: 12px; padding: 11px; text-align: center; }
.kpi b { display: block; font-size: 22px; line-height: 1.2; }
.kpi span { font-size: 12px; color: var(--sub); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 9px; border-radius: 8px; background: #eef2f9; font-size: 13px; }
.chip.miss { background: #fdeceb; color: #96231b; }
.chip.hit { background: #e6f6ec; color: #14663a; }
.nav { display: flex; gap: 8px; margin-bottom: 14px; }
.nav a {
  flex: 1; text-align: center; text-decoration: none; padding: 9px;
  border-radius: 10px; background: #fff; border: 1px solid var(--line);
  color: var(--sub); font-size: 13.5px;
}
.nav a.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.hide { display: none !important; }
.foot { text-align: center; color: #9aa5b4; font-size: 12px; margin-top: 22px; }
@media (max-width: 420px) {
  .row > * { flex: 1 1 100%; }
}
