@font-face { font-family: Anton; src: url('/brand/display-font.ttf') format('truetype'); }
@font-face { font-family: Inter; src: url('/brand/body-font.ttf') format('truetype'); font-weight: 100 900; }

:root {
  --black: #0b0d10; --blue: #0088FC; --navy: #0A3C5F; --sky: #6CCFF6;
  --ink: #111; --muted: #667; --line: #d8dde3; --bg: #f4f6f8;
  --amber: #f5a623; --amber-bg: #fff4e0; --red: #d93025; --green: #1e9e57;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }  /* #modal sets display:flex, which would otherwise beat the hidden attribute */
html, body { margin: 0; height: 100%; }
/* touch-action: manipulation switches off double-tap-to-zoom, so fast taps on the code pad stay taps. */
html, body, button, input { touch-action: manipulation; }
body { font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 18px; }
/* No text selection on tap targets only. Never on inputs or their parents: iOS can refuse to focus inside them. */
header, button, .pad, .display { -webkit-user-select: none; user-select: none; }

header#bar { display: flex; align-items: center; gap: 16px; background: var(--black); color: #fff;
  padding: calc(10px + env(safe-area-inset-top)) 20px 10px; min-height: 64px; }
.logo { height: 40px; }
#who { flex: 1; font-size: 16px; line-height: 1.3; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
#who b { color: var(--blue); }
.who-actions { display: flex; gap: 8px; margin-left: auto; }
/* Sign out's way on to admin sign-in, at the foot of the combine list (10 Nov 2026). */
.admin-way { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
/* Results this iPad still held for another combine, sent from the combine list (B44, 11 Nov 2026). */
.held { margin-top: 24px; padding: 12px 16px; border-left: 4px solid var(--amber); background: var(--amber-bg); border-radius: 8px; font-size: 17px; }
.held p { margin: 6px 0; }
.held.ok { border-left-color: var(--green); background: #e6f6ec; }
.sync { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: #222; white-space: nowrap; }
.sync.ok { color: #8fe3b0; } .sync.wait { color: var(--amber); } .sync.off { color: #ff8a80; }

main { max-width: 900px; margin: 0 auto; padding: 24px 20px 120px; }
h1, h2, .big { font-family: Anton, Impact, sans-serif; font-weight: 400; letter-spacing: .5px; text-transform: uppercase; }
h1 { font-size: 34px; margin: 0 0 16px; } h2 { font-size: 26px; margin: 0 0 12px; }
.muted { color: var(--muted); }

button { font: inherit; border: 0; border-radius: 12px; cursor: pointer; }
.btn { background: var(--blue); color: #fff; font-weight: 700; font-size: 22px; padding: 18px 28px; min-height: 68px; }
.btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn.warn { background: var(--amber); color: #111; }
.btn.small { font-size: 15px; padding: 8px 14px; min-height: 0; }
.btn:disabled { opacity: .35; cursor: default; }
.row { display: flex; gap: 14px; flex-wrap: wrap; } .row > .btn { flex: 1; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.grid .btn { text-align: left; }
.grid .btn small { display: block; font-weight: 400; font-size: 15px; opacity: .85; }

.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 460px; margin: 0 auto; }
.pad button { background: #fff; border: 2px solid var(--line); font-size: 38px; font-weight: 700; height: 92px; }
.pad button:active { background: var(--sky); }
.pad .fn { font-size: 20px; color: var(--muted); }
.display { font-family: Anton, Impact, sans-serif; font-size: 72px; letter-spacing: 18px; text-align: center;
  min-height: 100px; margin: 4px 0 18px; }
.display.err { color: var(--red); animation: shake .3s; }
.hint { text-align: center; margin: 0 0 10px; }
.hint.prompt { font-family: Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .5px; font-size: 62px; line-height: 1.05; color: var(--navy); }
.station-title { text-align: center; font-size: 48px; color: var(--blue); margin: 0 0 4px; }
@keyframes shake { 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }

.card { background: #fff; border-radius: 16px; padding: 24px; margin-bottom: 18px; border: 1px solid var(--line); }
.name { font-family: Anton, Impact, sans-serif; font-size: 64px; line-height: 1.05; text-transform: uppercase; }
.name .first { color: var(--blue); }
.dob { font-size: 40px; font-weight: 700; margin-top: 8px; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 15px; }
.medical { border-radius: 12px; padding: 16px 18px; font-size: 22px; margin-top: 18px; }
.medical.has { background: var(--amber-bg); border: 3px solid var(--amber); font-weight: 700; }
.medical.none { background: #eef1f4; color: var(--muted); }

.attempt { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.attempt label { width: 210px; font-weight: 600; }
.attempt label small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.attempt input { flex: 1; font-size: 34px; font-weight: 700; padding: 12px 16px; border: 2px solid var(--line);
  border-radius: 12px; min-width: 0; }
.attempt input:focus { outline: none; border-color: var(--blue); }
.attempt input.out { border-color: var(--amber); background: var(--amber-bg); }
.attempt .unit { width: 60px; font-size: 22px; color: var(--muted); }
.attempt .calc { width: 120px; font-size: 20px; font-weight: 700; color: var(--navy); }
.best { font-size: 22px; margin: 6px 0 18px; } .best b { color: var(--blue); }
.done-list { margin: 0 0 16px; padding: 0; list-style: none; color: var(--muted); }

.photo-full { position: fixed; inset: 0; background: #000; z-index: 20; display: flex; flex-direction: column; }
.photo-full img { flex: 1; object-fit: contain; min-height: 0; width: 100%; }
.photo-full .row { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--green); color: #fff;
  padding: 16px 26px; border-radius: 12px; font-size: 20px; font-weight: 700; z-index: 40; max-width: 90vw;
  pointer-events: none; /* taps go through to the buttons underneath: on a phone it sits over Cancel/Save */ }
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 30; display: flex; align-items: center; justify-content: center; padding: 20px; }
#modal .card { max-width: 620px; width: 100%; }

/* roll call */
.rc { display: grid; gap: 8px; }
.rc-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 2px solid var(--line);
  border-radius: 12px; padding: 14px 16px; font-size: 20px; min-height: 64px; }
.rc-row.here { background: #e6f6ec; border-color: var(--green); }
.rc-id { font-family: Anton, Impact, sans-serif; color: var(--blue); min-width: 56px; font-size: 24px; }
.rc-nm { flex: 1; font-weight: 700; }
.rc-st { font-size: 16px; color: var(--muted); }
.rc-row.here .rc-st { color: var(--green); font-weight: 700; }

/* Phones */
@media (max-width: 600px) {
  body { font-size: 16px; }
  header#bar { flex-wrap: wrap; gap: 8px 12px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; }
  .logo { height: 32px; }
  .sync { margin-left: auto; font-size: 13px; }
  #who { order: 3; flex-basis: 100%; font-size: 15px; }
  .who-line { flex-basis: 100%; }
  .who-actions { flex-basis: 100%; margin-left: 0; flex-wrap: wrap; }
  .who-actions .btn { flex: 1; padding: 10px 8px; }
  main { padding: 16px 16px 100px; }
  h1 { font-size: 26px; } h2 { font-size: 22px; }
  .btn { font-size: 19px; padding: 14px 18px; min-height: 58px; }
  .pad { gap: 10px; } .pad button { height: 72px; font-size: 32px; }
  .display { font-size: 56px; letter-spacing: 12px; min-height: 76px; }
  .hint.prompt { font-size: 48px; }
  .station-title { font-size: 38px; }
  .name { font-size: 42px; } .dob { font-size: 28px; }
  .medical { font-size: 18px; }
  .attempt { flex-wrap: wrap; gap: 6px 10px; }
  .attempt label { width: 100%; }
  .attempt input { font-size: 28px; }
  .attempt .calc { width: auto; }
}

/* Make-up day banner (7 Nov 2026): the combine is closed, only missing tests can be entered. */
.makeup-banner { background: #fff4e0; color: #8a5a00; border-radius: 10px; padding: 8px 12px; font-size: 18px; text-align: center; margin: 0 0 10px; }
.mk-here { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.mk-pick { font: inherit; font-size: 17px; background: #fff; color: #222; border: 1px solid #e0c48a; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.mk-row { cursor: default; }
.mk-tests { display: block; color: #8a5a00; font-size: 15px; margin-top: 2px; }