/* Referee onboarding, from Designs/Referee Onboarding. Scoped so it does not restyle the rest of the app. */
body.ref-shell { margin: 0; background: #fff; }
@media (prefers-color-scheme: dark) {
  body.ref-shell { background: #0F1217; }
}
.ref-page {
  --bg: #fff; --band: #F3F4F6; --text: #0E1116; --muted: #4B5563; --faint: #6B7280;
  --rule: #E2E5E9; --strong: #C9CED6; --accent: #1B3A8C; --accent-soft: #E8EEFA;
  --amber-bg: #FFF4DB; --amber: #7A4A00; --amber-line: #E0A93A;
  --ink: #0E1116; --on-ink: #fff; --err: #A61B1B; --ok: #146C3A;
  color-scheme: light;
  background: var(--bg); color: var(--text);
  font: 15px/1.35 system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  max-width: 720px; margin: 0 auto;
}
@media (prefers-color-scheme: dark) {
  .ref-page {
    --bg: #0F1217; --band: #181C23; --text: #F3F4F6; --muted: #B4BCC8; --faint: #9AA3AF;
    --rule: #262B33; --strong: #3A414C; --accent: #8FB0FF; --accent-soft: #1B2440;
    --amber-bg: #3A2A0A; --amber: #FFD27A; --amber-line: #8A6416;
    --ink: #F3F4F6; --on-ink: #0F1217; --err: #FF9B9B; --ok: #7FD6A4;
    color-scheme: dark;
  }
}
.ref-page * { box-sizing: border-box; }
.ref-page a { color: var(--accent); font-weight: 700; text-decoration: none; }
.ref-page a:hover { color: var(--text); }
.ref-page .bar { height: 4px; background: var(--accent); }
.ref-page .head { padding: 14px 12px 12px; }
.ref-page .eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ref-page .h1 { margin: 2px 0 6px; font-size: 22px; line-height: 26px; font-weight: 800; letter-spacing: -.01em; }
.ref-page .back { display: inline-block; margin-bottom: 8px; font-size: 14px; }
.ref-page .hint { font-size: 13px; line-height: 18px; color: var(--muted); margin: 0; }
.ref-page .prog { display: flex; gap: 3px; margin-top: 10px; }
.ref-page .prog i { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--rule); font-style: normal; }
.ref-page .prog i.d { background: var(--accent); }
.ref-page .secs { display: flex; flex-direction: column; }
.ref-page .sec { border-top: 1px solid var(--strong); }
.ref-page .sh { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 12px; background: var(--band); border-bottom: 1px solid var(--rule); }
.ref-page .sh h2 { margin: 0; font-size: 14px; font-weight: 800; }
.ref-page .n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; }
.ref-page .opt-tag, .ref-page #dbs-under-16 { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 600; }
.ref-page .body { display: flex; flex-direction: column; gap: 16px; padding: 14px 12px 18px; }
.ref-page .f { display: flex; flex-direction: column; gap: 6px; }
.ref-page .lb { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.ref-page .lb i { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--faint); }
.ref-page .in { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--strong); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.ref-page .in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ref-page .in.bad { border-color: var(--err); }
.ref-page .in.good { border-color: var(--ok); }
.ref-page .num { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.ref-page textarea.in { min-height: 96px; resize: vertical; line-height: 1.4; }
.ref-page .ro { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; background: var(--band); border: 1px solid var(--rule); font-size: 15px; font-weight: 600; }
.ref-page .ro small { font-size: 12px; color: var(--faint); font-weight: 600; }
.ref-page .seg { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--band); border: 1px solid var(--rule); }
.ref-page .seg label { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 8px; border-radius: 6px; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; position: relative; }
.ref-page .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ref-page .seg label:has(input:checked) { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.ref-page .stack { display: flex; flex-direction: column; gap: 8px; }
.ref-page .choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--strong); background: var(--bg); color: var(--text); font-size: 15px; font-weight: 700; cursor: pointer; position: relative; }
.ref-page .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ref-page .choice .dot { width: 18px; height: 18px; border-radius: 9px; border: 1.5px solid var(--strong); flex: 0 0 auto; }
.ref-page .choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ref-page .choice:has(input:checked) .dot { border: 5px solid var(--accent); }
.ref-page .pills { display: flex; gap: 8px; }
.ref-page .pill { flex: 1 1 0; display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 22px; border: 1.5px solid var(--strong); background: none; color: var(--text); font-weight: 700; cursor: pointer; position: relative; }
.ref-page .pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ref-page .pill:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.ref-page .tg { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 6px 12px 6px 14px; border-radius: 10px; border: 1px solid var(--rule); background: var(--band); cursor: pointer; }
.ref-page .tg b { display: block; font-size: 15px; font-weight: 800; }
.ref-page .tg small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.ref-page .tg input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 46px; height: 28px; border-radius: 14px; background: var(--strong); position: relative; margin: 0; cursor: pointer; }
.ref-page .tg input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; transition: left .15s; }
.ref-page .tg input:checked { background: var(--accent); }
.ref-page .tg input:checked::after { left: 21px; }
.ref-page .reveal { display: flex; flex-direction: column; gap: 6px; margin: -6px 0 0; padding: 12px 12px 12px 14px; border-radius: 0 0 10px 10px; background: var(--band); border: 1px solid var(--rule); border-top: 0; }
.ref-page .msg { font-size: 13px; font-weight: 700; margin: 0; }
.ref-page .msg.e { color: var(--err); }
.ref-page .msg.o { color: var(--ok); }
.ref-page .file { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 10px; border: 1.5px dashed var(--strong); cursor: pointer; color: var(--muted); font-size: 14px; position: relative; }
.ref-page .file b { color: var(--text); }
.ref-page .file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ref-page .btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 8px 16px; border-radius: 10px; border: 0; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; text-decoration: none; }
.ref-page .btn.dark { background: var(--ink); color: var(--on-ink); }
.ref-page .btn.ghost { background: none; color: var(--faint); font-size: 14px; font-weight: 700; min-height: 44px; }
.ref-page .btn.ghost:hover { color: var(--muted); }
.ref-page .foot { display: flex; flex-direction: column; gap: 6px; padding: 18px 12px 40px; }
.ref-page .call { display: flex; gap: 10px; padding: 12px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--text); font-size: 14px; line-height: 19px; }
.ref-page .call b { color: var(--accent); }
.ref-page .hidden { display: none !important; }
.ref-page .consent { align-items: flex-start; }
.ref-page .consent span { font-size: 14px; line-height: 1.35; font-weight: 600; }
@media (min-width: 900px) {
  .ref-page .head { padding: 36px 40px 20px; }
  .ref-page .eyebrow { font-size: 13px; letter-spacing: .08em; }
  .ref-page .h1 { font-size: 36px; line-height: 44px; letter-spacing: -.015em; }
  .ref-page .secs { margin: 0 40px; border: 1px solid var(--strong); border-radius: 10px; overflow: hidden; }
  .ref-page .sec:first-child { border-top: 0; }
  .ref-page .sh { padding: 8px 16px; }
  .ref-page .sh h2 { font-size: 16px; }
  .ref-page .body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; padding: 18px 16px 22px; }
  .ref-page .body .w { grid-column: 1 / -1; }
  .ref-page .foot { padding: 20px 40px 48px; flex-direction: row-reverse; align-items: center; }
  .ref-page .foot .btn { width: auto; padding: 8px 28px; }
  .ref-page .foot .msg, .ref-page .foot .call { width: 100%; }
}
