/* Pickup Pass (demo). Plain, high contrast, big targets: it is used outdoors, standing up. */

:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --ink: #14171c;
  --muted: #464e5b;
  --line: #d3d8e0;
  --btn: #1b1e24;
  --btn-ink: #ffffff;
  --go: #0f5b2f;
  --go-bg: #e2f3e7;
  --stop: #952019;
  --stop-bg: #fde7e5;
  --note: #6e4a00;
  --note-bg: #fff2cf;
  --focus: #2563eb;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --surface: #181b21;
    --surface-2: #1f232a;
    --ink: #eef1f5;
    --muted: #a6afbc;
    --line: #2f3540;
    --btn: #eef1f5;
    --btn-ink: #111418;
    --go: #6ad893;
    --go-bg: #12301d;
    --stop: #ff8f86;
    --stop-bg: #3b1714;
    --note: #ffd36e;
    --note-bg: #33280c;
    --focus: #7aa7ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #181b21;
  --surface-2: #1f232a;
  --ink: #eef1f5;
  --muted: #a6afbc;
  --line: #2f3540;
  --btn: #eef1f5;
  --btn-ink: #111418;
  --go: #6ad893;
  --go-bg: #12301d;
  --stop: #ff8f86;
  --stop-bg: #3b1714;
  --note: #ffd36e;
  --note-bg: #33280c;
  --focus: #7aa7ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: 28px; }
h2 { font-size: 23px; }
h3 { font-size: 20px; }
p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- frame */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 21px; text-decoration: none; margin-right: auto; }
.brand span { font-weight: 500; color: var(--muted); }
.nav { display: flex; gap: 8px; }
.nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px;
  border: 2px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 700;
}
.nav a.on { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }

main { max-width: 1100px; margin: 0 auto; padding: 16px; outline: none; }
.foot { max-width: 1100px; margin: 8px auto 40px; padding: 0 16px; color: var(--muted); font-size: 14px; }
.warn { background: var(--stop-bg); color: var(--stop); font-weight: 700; padding: 12px 16px; text-align: center; }

/* ---------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 22px;
  border: 2px solid var(--btn); border-radius: 12px;
  background: var(--btn); color: var(--btn-ink);
  font: inherit; font-weight: 700; font-size: 19px;
  cursor: pointer; text-decoration: none;
  touch-action: manipulation;
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.go { background: var(--go); border-color: var(--go); color: #fff; }
.btn.stop { background: var(--stop); border-color: var(--stop); color: #fff; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 16px; }
.btn.wide { width: 100%; }
.btn.big { min-height: 72px; font-size: 22px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack > * + * { margin-top: 12px; }

input[type="text"], input[type="search"], input[type="tel"], input[type="email"], select, textarea {
  font: inherit; font-size: 19px;
  min-height: 56px; width: 100%;
  padding: 0 14px;
  border: 2px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink);
}
label.field { display: block; font-weight: 700; margin-bottom: 12px; }
label.field > span { display: block; margin-bottom: 6px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 600; cursor: pointer; }
.check input { width: 28px; height: 28px; flex: 0 0 auto; accent-color: var(--btn); }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  min-height: 48px; padding: 0 16px;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 17px; cursor: pointer;
}
.seg button.on { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }

/* ---------- surfaces */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
/* One slim status line on staff pages: the sync state and who is on duty, side by side. */
.duty {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 8px; margin-bottom: 12px;
}
.sync {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
  border-radius: 10px; padding: 4px 6px 4px 12px; font-size: 15px;
}
.duty .sync { flex: 1 1 320px; }
.duty select { min-height: 44px; font-size: 17px; padding: 0 10px; }
.sync + h1, .sync + .reg-steps { margin-top: 12px; }
/* A control that only stands in for something real: a dashed edge and the word DEMO. */
.demo-ctl { border-style: dashed !important; border-width: 2px; border-color: currentColor; }
.demo-tag {
  display: inline-block; margin-left: 8px; padding: 0 6px; vertical-align: middle;
  border: 1.5px dashed currentColor; border-radius: 6px;
  font-size: 11px; font-weight: 900; letter-spacing: .1em; line-height: 1.6; text-transform: uppercase;
}
.sync.on { background: var(--go-bg); color: var(--go); }
.sync.off { background: var(--note-bg); color: var(--note); font-weight: 600; }
.sync .btn { color: inherit; border-color: currentColor; background: transparent; }
.duty label { display: flex; align-items: center; gap: 10px; font-weight: 700; flex: 0 1 auto; min-width: 0; max-width: 100%; }
.duty select { flex: 1 1 auto; width: auto; min-width: 0; max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 14px; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--line);
}
.chip.go { background: var(--go-bg); color: var(--go); border-color: transparent; }
.chip.stop { background: var(--stop-bg); color: var(--stop); border-color: transparent; }
.chip.note { background: var(--note-bg); color: var(--note); border-color: transparent; }
.note {
  background: var(--note-bg); color: var(--note);
  border-radius: 10px; padding: 8px 12px; font-weight: 700;
}
.note.big { font-size: 22px; padding: 14px 16px; }

/* ---------- faces */
.face {
  display: inline-block; flex: 0 0 auto;
  width: var(--size, 56px); height: var(--size, 56px);
  border-radius: 22%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  vertical-align: middle;
}
.face svg { display: block; width: 100%; height: 100%; }
.initials {
  display: inline-block; min-width: 2.4em; text-align: center;
  font-size: 13px; font-weight: 800; letter-spacing: .06em;
  padding: 1px 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person .who { min-width: 0; }
.name { font-weight: 800; }

/* ---------- office */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile b { display: block; font-size: 40px; line-height: 1.1; }
.tile.go b { color: var(--go); }
@media (min-width: 820px) { .tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.list li.wrap { flex-wrap: wrap; }
.row-buttons { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.cols { display: grid; gap: 16px; }
@media (min-width: 820px) { .cols { grid-template-columns: 1fr 1fr; } }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1 1 auto; min-width: 0; }

.family h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kids { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.kid { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 8px 12px 8px 8px; }
.adult { border-top: 1px solid var(--line); padding: 14px 0; }
.adult-main { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.adult-main .who { flex: 1 1 220px; min-width: 0; }
.adult-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adult .note { display: inline-block; margin-top: 6px; }
.edit-box { background: var(--surface-2); border-radius: 12px; padding: 12px; margin-top: 10px; }
.edit-grid { display: grid; gap: 0 12px; }
@media (min-width: 700px) { .edit-grid { grid-template-columns: 1fr 1fr; } }

.log { width: 100%; border-collapse: collapse; font-size: 16px; }
.log th, .log td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.log th { font-size: 14px; color: var(--muted); border-top: 0; }
.log td:first-child { white-space: nowrap; }
@media (max-width: 719px) {
  .log thead { display: none; }
  .log, .log tbody, .log tr, .log td { display: block; width: 100%; }
  .log tr { border-top: 1px solid var(--line); padding: 10px 0; }
  .log td { border: 0; padding: 2px 0; }
  .log td[data-k]::before { content: attr(data-k) ": "; color: var(--muted); font-size: 14px; }
}

/* ---------- pass */
body.holder .nav { display: none; }
body.holder .phone { border: 0; box-shadow: none; border-radius: var(--radius); }
.pass-wrap { display: grid; gap: 16px; justify-items: center; }
.phone {
  width: min(100%, 380px);
  background: var(--surface); color: var(--ink);
  border: 10px solid #22252b; border-radius: 40px;
  padding: 26px 20px 24px; text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.phone .face { margin: 6px auto 10px; display: block; }
.qr { position: relative; display: inline-block; background: #fff; border-radius: 10px; padding: 0; line-height: 0; }
.qr img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.phone .qr { width: 100%; max-width: 300px; margin: 10px auto; }
.passno { font: 800 26px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.void {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(179, 38, 30, .78); color: #fff;
  font: 900 34px/1 system-ui, sans-serif; letter-spacing: .12em;
  border-radius: 10px;
}

.wallet { display: grid; gap: 16px; width: 100%; justify-items: center; }
.card-face {
  width: min(100%, 520px); aspect-ratio: 85.6 / 54;
  background: #fff; color: #111;
  border: 1px solid #c9ced6; border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  display: flex; gap: 18px; padding: 20px; overflow: hidden;
}
.card-face .qr { width: 42%; flex: 0 0 auto; align-self: center; }
.card-face .side { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; font-size: clamp(11px, 2.9vw, 16px); }
.card-face .title { font-weight: 900; font-size: 1.25em; }
.card-face .nm { font-weight: 800; font-size: 1.35em; }
.card-face .passno { font-size: 1.15em; }
.card-back { flex-direction: column; justify-content: center; font-size: clamp(11px, 2.9vw, 16px); }
.card-back p { margin: 0 0 .6em; }

.tag {
  position: relative;
  width: min(100%, 360px); aspect-ratio: 4 / 9.5;
  background: #fff; color: #111;
  border: 1px solid #c9ced6; border-radius: 26px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 100px 20px 24px; text-align: center; overflow: hidden;
}
.tag::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 60px; aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed #9aa1ab; background: #f3f4f6;
}
.tag .title { font-weight: 900; font-size: 22px; }
.tag .qr { width: 100%; }
.tag .passno { font-size: 34px; }
.tag .small { color: #444; }

/* ---------- scanner */
.scan-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .scan-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
#reader { width: 100%; min-height: 260px; background: #0d0f12; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #cfd5dd; text-align: center; }
#reader video { width: 100% !important; height: auto !important; display: block; }
#reader .hint { padding: 24px; font-size: 17px; }
.manual input { font: 800 28px/1 ui-monospace, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; text-align: center; min-height: 68px; }
.file-label { display: inline-flex; }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1 1 auto; min-width: 0; }
.car-actions { display: grid; gap: 10px; margin: 14px 0; }
@media (min-width: 600px) { .car-actions { grid-template-columns: 2fr 1fr; } }
.car-actions .btn { min-height: 84px; font-size: 22px; }
.verdict.car .big-person .name { font-size: 34px; }
.hits { display: flex; flex-wrap: wrap; gap: 8px; }
.lookup-panel { border-top: 1px solid var(--line); margin-top: 14px; }

/* ---------- the device sets the top bar; the mode sets the banner and the page tint */
body.dev-car .top { background: #f5b700; border-bottom-color: #c99700; }
body.dev-car .top, body.dev-car .brand, body.dev-car .brand span { color: #111; }
body.dev-car .nav a { border-color: rgba(0, 0, 0, .35); color: #111; }
body.dev-car .nav a.on { background: #111; color: #fff; border-color: #111; }
body.dev-office .top { background: #24303e; border-bottom-color: #18212b; }
body.dev-office .top, body.dev-office .brand, body.dev-office .brand span { color: #fff; }
body.dev-office .nav a { border-color: rgba(255, 255, 255, .45); color: #fff; }
body.dev-office .nav a.on { background: #fff; color: #111; border-color: #fff; }
.nav a.device-pill { border-style: dashed; }
.nav { flex-wrap: wrap; }
@media (max-width: 640px) {
  .top { position: static; }
  .brand { font-size: 18px; }
  .nav { gap: 6px; }
  .nav a { min-height: 44px; padding: 0 12px; font-size: 16px; }
  .mode-title { font-size: 20px; }
}
body.mode-dropoff { --mode: #1a56a8; --mode-tint: #e8f0fb; background: var(--mode-tint); }
body.mode-pickup { --mode: #5b2d9e; --mode-tint: #efe9f9; background: var(--mode-tint); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.mode-dropoff { --mode-tint: #0f1826; }
  :root:not([data-theme="light"]) body.mode-pickup { --mode-tint: #1a1226; }
}
:root[data-theme="dark"] body.mode-dropoff { --mode-tint: #0f1826; }
:root[data-theme="dark"] body.mode-pickup { --mode-tint: #1a1226; }
.mode-banner {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--mode, var(--btn)); color: #fff;
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px;
}
.mode-title { font-size: 24px; font-weight: 900; line-height: 1.2; }
.mode-sub { font-size: 16px; opacity: .92; }
.mode-seg button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.mode-seg button.on { background: #fff; color: var(--mode, var(--btn)); border-color: #fff; }

/* ---------- which device is this? */
.device-grid { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.device-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  min-height: 200px; padding: 22px;
  background: var(--surface); color: var(--ink);
  border: 3px solid var(--line); border-radius: 18px; font: inherit; cursor: pointer;
}
.device-card[data-place="car"] { border-top: 14px solid #f5b700; }
.device-card[data-place="office"] { border-top: 14px solid #24303e; }
.device-card[data-place="parent"] { border-top: 14px solid #0d5a4d; }

/* ---------- the parent phone: its own look, no drop-off or pickup mode */
body.dev-parent .top { background: #0d5a4d; border-bottom-color: #0a4d42; }
body.dev-parent .top, body.dev-parent .brand, body.dev-parent .brand span { color: #fff; }
body.dev-parent .nav a { border-color: rgba(255, 255, 255, .5); color: #fff; }
body.dev-parent .nav a.on { background: #fff; color: #0d5a4d; border-color: #fff; }
body.dev-parent { --mode: #0d5a4d; --mode-tint: #e6f3f0; background: var(--mode-tint); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.dev-parent { --mode-tint: #0c1c19; }
}
:root[data-theme="dark"] body.dev-parent { --mode-tint: #0c1c19; }
.reg-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.reg-steps li { padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 700; color: var(--muted); }
.reg-steps li.done { color: var(--go); border-color: var(--go); }
.reg-steps li.done::before { content: "\2713\00a0"; }
.reg-steps li.on { background: var(--mode); border-color: var(--mode); color: #fff; }
.reg-steps li.stop { color: var(--stop); border-color: var(--stop); }
.reg-person { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.card h2 + .reg-person, .card > .reg-person:first-of-type { border-top: 0; }
.reg-fields { flex: 1 1 240px; min-width: 0; }
.photo-box { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 112px; }
.photo-empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 96px; height: 96px; border: 2px dashed var(--line); border-radius: 22%;
  font-size: 13px; color: var(--muted); background: var(--surface-2);
}
.device-card.on { border-color: var(--go); }
.device-title { font-size: 28px; font-weight: 900; }
.device-line { color: var(--muted); }

/* ---------- the car line */
.next-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.carno {
  display: inline-block; font: 900 54px/1 ui-monospace, Consolas, monospace;
  background: #111; color: #fff; border-radius: 12px; padding: 10px 16px; min-width: 120px; text-align: center;
}
.carno.small { font-size: 20px; padding: 4px 10px; min-width: 64px; }
.next-label { font-size: 14px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--go); }
.line-list .pos { font-weight: 900; min-width: 22px; }
.sendout { border: 3px solid var(--mode, var(--line)); }
.pick.driver button { min-height: 120px; }

/* ---------- the map */
.map-card { padding: 8px; overflow: hidden; }
.campus { width: 100%; height: auto; display: block; border-radius: 10px; }
.campus .grass { fill: #dfe9d6; }
.campus .road { fill: none; stroke: #8f959e; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; }
.campus .ring { fill: #cfe0c4; }
.campus .dash { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 14 12; }
.campus .zone { fill: none; stroke: #f5b700; stroke-width: 30; opacity: .9; }
.campus .island { fill: #cfe0c4; }
.campus .lot { fill: #b9bec6; }
.campus .stalls line { stroke: #fff; stroke-width: 2; }
.campus .bldg { fill: #c7ccd4; stroke: #6b7280; stroke-width: 2; }
.campus .wait { fill: #fff4c2; stroke: #b08a00; }
.campus .lbl { font: 700 18px system-ui, sans-serif; fill: #1b1e24; text-anchor: middle; }
.campus .lbl.small { font-size: 14px; }
.campus .lbl.start { text-anchor: start; }
.campus .pin circle { fill: #952019; stroke: #fff; stroke-width: 3; }
.campus .map-car { transition: transform .9s ease; }
.campus .map-car rect { fill: #1b1e24; stroke: #fff; stroke-width: 2; }
.campus .map-car.next rect { fill: #0f5b2f; }
.campus .map-car text { fill: #fff; font: 800 15px system-ui, sans-serif; text-anchor: middle; }
.map-line li { padding: 4px 0; }

/* ---------- the car number on the hang tag */
.tag .tag-car { font: 900 72px/1 ui-monospace, Consolas, monospace; }
.tag .tag-car span { display: block; font-size: 15px; letter-spacing: .4em; }

/* ---------- a symbol on every result, not color alone */
.verdict.ask { background: var(--surface); border-color: var(--mode, var(--line)); }
.verdict.ask h1 { color: var(--mode, var(--ink)); }
.verdict.go > h1::before { content: "\2713\00a0"; }
.verdict.stop > h1::before { content: "\2715\00a0"; }

/* ---------- roll call */
.roll-list { display: grid; gap: 8px; }
@media (min-width: 700px) { .roll-list { grid-template-columns: 1fr 1fr; } }
.roll-row {
  display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 68px; padding: 8px 12px;
  background: var(--surface); color: var(--ink);
  border: 3px solid var(--line); border-radius: 14px;
  font: inherit; cursor: pointer;
}
.roll-row .grow { flex: 1 1 auto; min-width: 0; }
.roll-row.ok { border-color: var(--go); background: var(--go-bg); }
.roll-row.miss { border-color: var(--stop); }
.roll-row[disabled] { cursor: default; }
.warn-card { border: 3px solid var(--note); background: var(--note-bg); }
.warn-card h2, .warn-card p { color: var(--note); }
.card-face.staff-card .title { color: #fff; background: #1b1e24; padding: 2px 10px; border-radius: 6px; align-self: flex-start; letter-spacing: .1em; }
details.card > summary { list-style-position: inside; min-height: 44px; display: flex; align-items: center; }
.file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.verdict { border-radius: var(--radius); padding: 18px 18px 14px; margin-bottom: 16px; border: 3px solid transparent; }
.verdict.go { background: var(--go-bg); border-color: var(--go); }
.verdict.stop { background: var(--stop-bg); border-color: var(--stop); }
.verdict h1 { font-size: 30px; }
.verdict.go h1 { color: var(--go); }
.verdict.stop h1 { color: var(--stop); }
.big-person { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.big-person .name { font-size: 30px; font-weight: 900; line-height: 1.15; }
.step-title { font-size: 21px; font-weight: 800; margin: 6px 0 12px; }
.pick { display: grid; gap: 10px; }
@media (min-width: 600px) { .pick { grid-template-columns: 1fr 1fr; } }
.pick button {
  display: flex; align-items: center; gap: 14px; text-align: left;
  min-height: 84px; padding: 10px 14px;
  background: var(--surface); color: var(--ink);
  border: 3px solid var(--line); border-radius: 14px;
  font: inherit; cursor: pointer;
}
.pick button .name { font-size: 21px; font-weight: 800; }
.pick button.on { border-color: var(--go); background: var(--go-bg); }
.pick button.on::after { content: "Leaving"; margin-left: auto; font-weight: 900; color: var(--go); }
.pick.in button.on::after { content: "Getting out"; }
.pick button[disabled] { opacity: .55; cursor: not-allowed; }
.steps { list-style: none; padding: 0; margin: 0 0 14px; counter-reset: s; }
.steps li { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.steps li.done { border-color: var(--go); }
.steps .check { font-size: 20px; }
.steps .say { margin: 4px 0 0 40px; color: var(--muted); }

/* ---------- toast */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(calc(100% + 40px));
  max-width: calc(100% - 32px);
  background: var(--btn); color: var(--btn-ink);
  padding: 14px 20px; border-radius: 12px; font-weight: 700;
  transition: transform .2s ease, visibility .2s; z-index: 50;
  visibility: hidden;
}
.toast.show { transform: translateX(-50%) translateY(0); visibility: visible; }

/* ---------- print: only the chosen pass, at real size, black on white */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .top, .foot, .warn, .toast, .no-print { display: none !important; }
  main { padding: 0; max-width: none; }
  body.print-card .tag, body.print-card .phone { display: none !important; }
  body.print-tag .wallet, body.print-tag .phone { display: none !important; }
  .pass-wrap { display: block; }
  .card-face { width: 3.37in; height: 2.125in; aspect-ratio: auto; box-shadow: none; border: 1px dashed #777; border-radius: .125in; margin: 0 0 .3in; font-size: 9pt; padding: .14in; break-inside: avoid; }
  .card-face .side, .card-back { font-size: 9pt; }
  .tag { width: 4in; height: 9.5in; aspect-ratio: auto; box-shadow: none; border: 1px dashed #777; break-inside: avoid; padding: 1.3in .3in .3in; }
  .void { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- feedback: a button on every screen, a short form */
textarea { padding: 10px 14px; min-height: 96px; resize: vertical; line-height: 1.4; }
.fb-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  background: var(--btn); color: var(--btn-ink); border-radius: 999px;
  font-weight: 800; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.fb-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
body { padding-bottom: 80px; }
@media print { .fb-btn { display: none !important; } }

/* ---------- the office's two plain buttons */
.office-quick { margin: -4px 0 14px; }

/* ---------- the kid's screen: the waiting area */
.call {
  display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-bottom: 14px; padding: 16px;
  background: var(--go-bg); border: 3px solid var(--go); border-radius: var(--radius);
}
.call .kids { margin: 0; }
.call .kid { background: var(--surface); }
.call .kid .name { font-size: 28px; }
.call-go { font-size: 22px; font-weight: 900; color: var(--go); }

/* ---------- told ahead, and messages with the front office */
input[type="date"], input[type="time"] {
  font: inherit; font-size: 19px; min-height: 56px; width: 100%; padding: 0 14px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
}
.thread { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.msg { max-width: 85%; padding: 8px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.msg.me { align-self: flex-end; background: var(--surface); border: 2px solid var(--ink); }
.msg.told { border-left: 6px solid var(--note); }
.msg-who { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.msg-text { font-size: 17px; overflow-wrap: anywhere; }
.msg-cols { display: grid; gap: 12px; }
@media (min-width: 820px) { .msg-cols { grid-template-columns: 280px 1fr; align-items: start; } }
.thread-list { display: flex; flex-direction: column; gap: 6px; }
.thread-pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: 12px; font: inherit; cursor: pointer;
}
.thread-pick.on { border-color: var(--ink); }
.expected .chip { min-width: 92px; text-align: center; }
