/* HeadJudge's look, as the Broadcaster app (headjudge.css): --accent and --brand are its yellow (a company's own colour where it has
   one: review.js), for what's chosen and what to press; --live is red, for LIVE and trouble */
:root { --bg: #12161c; --ink: #1c222a; --line: #343c46; --accent: #ffc400; --brand: #ffc400; --on-brand: #101010; --live: #e2231a; --muted: #a3acb7; --green: #3ddc97; --amber: #ffb020;
  --font: Barlow, -apple-system, "Segoe UI", system-ui, sans-serif; --display: "Barlow Condensed", "Arial Narrow", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: #fff; font: 15px/1.45 var(--font); -webkit-tap-highlight-color: transparent; }
/* (30 Nov 2026: "make sure its consistant") the website's header (headjudge.css .top, .mark, .appTabs, .profileMenu): the company's name,
   the tabs, the profile circle; under them a row of this page's own controls */
header { border-bottom: 3px solid var(--brand); background: var(--bg); position: relative; z-index: 5; }
header .topbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px clamp(16px, 4vw, 40px) 12px; }
header .brandline { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
header .mark { font: italic 800 28px var(--display); text-transform: uppercase; color: #f4f6f8; text-decoration: none; white-space: nowrap; }
header .mark span { color: var(--accent); }
header .toolbar { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 0 clamp(16px, 4vw, 40px) 12px; }
header .toolbar .spacer { flex: 1 1 0; }
header .allcams { color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.profileMenu { position: relative; margin-inline-start: auto; }
.profileBtn { width: 40px; height: 40px; border-radius: 50%; padding: 0; display: grid; place-items: center; cursor: pointer; background: var(--brand); color: var(--on-brand); border: 2px solid var(--brand); font: italic 800 1.25rem var(--display); }
.profileBtn:hover, .profileBtn[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--brand); }
.profilePanel { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); /* (the circle's end, whichever way the language reads) */ z-index: 60; width: min(300px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 12px; background: var(--ink); border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(0, 0, 0, .5); }
.profileWho { display: grid; gap: 2px; padding: 2px 8px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.profileWho b { font-size: 1.05rem; overflow-wrap: anywhere; } .profileWho .muted { font-size: .88rem; }
.profilePanel a, .profilePanel .phonebtn { display: block; width: 100%; padding: 9px 8px; color: #f4f6f8; background: none; border: 0; font: 600 15px var(--font); text-decoration: none; text-align: start; cursor: pointer; }
.profilePanel a:hover, .profilePanel .phonebtn:hover { background: var(--bg); color: var(--accent); }
.profileLang { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 8px; margin: 4px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.profileLang .langPick { max-width: 60%; }
.profilePanel .signout { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
h1 { margin: 0; font: italic 800 28px var(--display); text-transform: uppercase; letter-spacing: .01em; }
h1 span { color: var(--accent); }
h2 { margin: 18px 0 8px; font: 700 21px var(--display); text-transform: uppercase; letter-spacing: .01em; }
header .tabs { display: flex; gap: 6px; flex: 1 1 auto; flex-wrap: wrap; min-width: 0; }
header .tabs button { display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: var(--muted); border: 1px solid var(--line); padding: 8px 15px; font: 700 15px var(--font); cursor: pointer; }
header .tabs button:hover { color: #f4f6f8; }
header .tabs button.on { background: #f4f6f8; color: var(--bg); border-color: #f4f6f8; }
/* above a phone's width: the name, the tabs and the circle on one row (as the website's: headjudge.css), the tabs tighter on a tablet */
@media (min-width: 761px) {
  header .topbar { flex-wrap: nowrap; }
  header .brandline { flex: 0 1 auto; } header .mark { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 26vw; }
  header .tabs { flex: 1 1 0; } .profileMenu { flex: none; }
}
@media (min-width: 761px) and (max-width: 1050px) { header .tabs button { padding: 7px 10px; font-size: 14px; } header .mark { font-size: 24px; } header .topbar { gap: 12px; } }
.dayPick select { padding: 8px; font-size: 15px; }
.dayPick { display: flex; align-items: center; gap: 6px; color: var(--muted); }
/* (30 Nov 2026) the company's other live events, on Live and the Live Scoreboard */
.eventPick { display: flex; align-items: center; gap: 6px; color: var(--muted); } .eventPick select { padding: 8px; font-size: 15px; max-width: 260px; }
/* the camera log, folded away under Cameras */
.logBox { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 12px; } .logBox > summary { cursor: pointer; font-weight: 700; text-transform: uppercase; font-size: 15px; } .logBox .row { margin: 10px 0; }
.numSearch { position: relative; }
.numSearch input { width: 190px; padding: 8px 10px; font-size: 15px; }
.numresults { position: absolute; inset-inline-end: 0; top: calc(100% + 4px); width: min(440px, 92vw); background: var(--ink); border: 1px solid var(--line); z-index: 8; display: grid; gap: 2px; padding: 6px; max-height: 70vh; overflow: auto; }
.numresults button { display: flex; gap: 10px; align-items: center; text-align: left; background: #232a33; color: #fff; border: 0; padding: 6px 8px; cursor: pointer; font-size: 14px; }
.numresults button:hover { background: #2c3540; }
.numresults img { width: 36px; height: 48px; object-fit: cover; background: #000; }
.numresults small { color: var(--muted); }
.numresults p { margin: 6px; }
.phonedlg { background: var(--ink); color: #fff; border: 1px solid var(--line); padding: 20px 22px; width: min(380px, calc(100vw - 32px)); text-align: center; }
.phonedlg::backdrop { background: rgba(0, 0, 0, .65); }
.phonedlg h3 { margin: 0 0 8px; }
.phonedlg p { margin: 0 0 12px; line-height: 1.45; }
.phonedlg img { display: block; margin: 0 auto 10px; width: min(260px, 70vw); height: auto; aspect-ratio: 1; background: #fff; }
@media (max-width: 760px) { header .phonebtn { display: none; } }

.clock { text-align: right; } .clock b { font: 700 22px Consolas, ui-monospace, monospace; display: block; } .clock small { color: var(--muted); }
.banner { background: #3a0d0b; border-bottom: 2px solid var(--live); padding: 10px 18px; font-weight: 700; }
.pane { padding: 14px 18px 40px; }
/* kept running out of sight (a judge, an uploaded video being judged) */
.offstage { position: fixed !important; left: -20000px !important; top: 0 !important; width: 1280px !important; pointer-events: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 12px; }
.grid.single { grid-template-columns: 1fr; }
.tile { position: relative; background: #000; aspect-ratio: 16 / 9; border-top: 4px solid #333; }
.tile video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.tile .label, .jtile .label { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.65); padding: 3px 9px; font-weight: 800; text-transform: uppercase; pointer-events: none; z-index: 2; }
.tile .label small, .jtile .label small { font-weight: 600; margin-left: 6px; color: var(--muted); text-transform: none; }
.tile .msg, .jtile .msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 700; text-align: center; padding: 20px; pointer-events: none; }
.tile .dl { position: absolute; right: 8px; top: 8px; background: rgba(0,0,0,.65); color: #fff; padding: 3px 9px; text-decoration: none; font-weight: 700; font-size: 13px; z-index: 2; }
.tile .cfgbtn { position: absolute; right: 8px; bottom: 8px; z-index: 3; padding: 5px 9px; font-size: 13px; background: rgba(28,34,42,.92); }
.tile.big { grid-column: 1 / -1; }
.btn { background: #232a33; color: #fff; border: 1px solid #3d4652; padding: 10px 14px; font-weight: 700; font-size: 15px; cursor: pointer; border-radius: 0; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.red { background: var(--brand); border-color: var(--brand); color: var(--on-brand); text-transform: uppercase; }
input, select { background: #12161c; color: #fff; border: 1px solid #3d4652; padding: 10px; font-size: 16px; }
label { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.find { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.quick { display: inline-flex; gap: 6px; flex-wrap: wrap; }
#ranges { margin: 6px 0 12px; }
#replayGrid > p { margin: 30px 0; }

/* the timeline */
.dvr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; }
.dvr .tlwrap { flex: 1 1 220px; min-width: 180px; }
.dvr details.more summary { cursor: pointer; color: var(--muted); padding: 8px; list-style-position: inside; }
.dvr details.more[open] { flex-basis: 100%; }
.morebox { display: grid; gap: 10px; justify-items: start; padding: 8px 0 4px; }
.dvr #goLive.on { background: #232a33; border-color: #3d4652; color: var(--muted); }
.tlwrap { flex: 1; position: relative; min-width: 0; }
.tlwrap input[type=range] { width: 100%; accent-color: var(--accent); height: 30px; padding: 0; }
.tlmarks { position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.tlmarks button.seen { background: var(--amber); color: #000; }
.tlmarks button { position: absolute; transform: translateX(-50%); padding: 0 5px; height: 16px; font: 700 11px system-ui; line-height: 16px; border: 0; color: #fff; cursor: pointer; white-space: nowrap; border-radius: 3px; }
.tlmarks button::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 2px; height: 6px; background: inherit; transform: translateX(-50%); }
.at { font: 700 20px Consolas, ui-monospace, monospace; min-width: 110px; }
.dvr2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dvr2 details.more summary { cursor: pointer; color: var(--muted); padding: 8px; }
.dvr2 details.more[open] { flex-basis: 100%; }
.viewpick { display: inline-flex; gap: 4px; }
.transport { position: sticky; bottom: 0; background: var(--ink); padding: 10px 12px; margin-top: 12px; border-top: 2px solid var(--line); z-index: 2; }
.transport .row { gap: 8px; }
.timeline input { width: 100%; padding: 0; accent-color: var(--accent); height: 28px; }
.speeds { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.btn.danger { background: #dc2626; border-color: #dc2626; color: #fff; text-transform: uppercase; }
.vovrow .speeds .btn { padding: 5px 9px; font-size: 13px; }
.busynote { flex-wrap: wrap; font-weight: 600; margin: 10px 18px; }
.banner.pick { background: #2e2a1a; border-bottom: 0; border-left: 4px solid var(--amber); display: flex; align-items: center; gap: 12px; margin: 10px 0; }
body.picking #replayGrid .tile { cursor: crosshair; outline: 2px dashed var(--amber); outline-offset: -2px; }

/* the live cameras with their AI judges */
.judgegrid { position: absolute; z-index: 1; }
.judgegrid .jtile { container-type: inline-size; position: relative; background: #000; aspect-ratio: 16 / 10; max-width: 100%; border-top: 4px solid #333; cursor: zoom-in; }
.judgegrid .jtile.live { border-top-color: var(--green); }
.judgegrid .jtile.big { grid-column: 1 / -1; aspect-ratio: auto; height: calc(100vh - 230px); min-height: 320px; cursor: zoom-out; }
.judgegrid.focused .jtile:not(.big) { display: none; }
/* a new try at the picture, out of sight under the last one until its first picture is in (review.js plainView) */
.judgegrid video.plain.incoming { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.judgegrid iframe, .judgegrid video.plain { width: 100%; height: 100%; border: 0; display: block; background: #000; object-fit: contain; }
/* the picture held up: its last frame stays, with this across the foot (review.js showPaused) */
.jtile .paused { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); max-width: calc(100% - 20px); background: rgba(13,17,22,.86); color: #fff; border-left: 4px solid var(--amber); padding: 6px 12px; font-weight: 700; font-size: clamp(12px, 2.6cqw, 15px); z-index: 3; pointer-events: none; text-align: center; }
/* on the live picture (switched at its top): the drawing layer, and the switches */
.jtile canvas.ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
/* the switches (Rep counts, Skeletons, Activity zone, Athlete markers, Speak): one look, at the top of every picture they're used on
   (28 Nov 2026, the owner: "put this at top on all of the screens we use it": at the foot they sat over the video's own controls) */
.ovbar { display: flex; gap: 4px; padding: 4px; background: rgba(13,17,22,.78); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ovbar button { flex: none; border: 0; border-radius: 999px; padding: 5px 11px; background: transparent; color: var(--muted);
  font: 700 clamp(11px, 2.3cqw, 13px) var(--font); cursor: pointer; white-space: nowrap; }
.ovbar button::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; border: 1.5px solid currentColor; vertical-align: 1px; }
.ovbar button:hover { color: #fff; }
.ovbar button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.ovbar button[aria-pressed="true"]::before { background: currentColor; }
.ovbar button.dim { opacity: .45; }
/* a live camera's: under its name, across the middle */
.jtile .ovtop { position: absolute; left: 8px; right: 8px; top: 40px; z-index: 3; display: flex; justify-content: center; pointer-events: none; }
.jtile .ovtop .ovbar { pointer-events: auto; }
.jtile:not(.hasview) .ovbar { display: none; }
.jtile.hasview .paused { bottom: 52px; }
.jtile .livetag { position: absolute; right: 8px; top: 8px; background: var(--live); color: #fff; font-weight: 800; font-size: 12px; padding: 2px 8px; z-index: 2; pointer-events: none; }
.jtile:not(.live) .livetag { display: none; }
.jtile .tools { position: absolute; left: 50%; transform: translateX(-50%); top: 8px; z-index: 3; display: flex; gap: 6px; }
.jtile .tools .btn { padding: 6px 10px; font-size: 13px; background: rgba(28,34,42,.92); }
.jtile .tools .btn.red { background: var(--accent); border-color: var(--accent); }

.settingsbox { background: var(--ink); padding: 10px; display: grid; gap: 10px; margin-bottom: 12px; }
.settingsbox iframe { width: 100%; height: 75vh; border: 0; background: var(--bg); }
.settingsbox.popout { position: fixed; z-index: 200; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, 94vw); max-height: 92vh; margin: 0; padding: 0; gap: 0;
  border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 100vmax rgba(6, 8, 11, .74), 0 24px 60px rgba(0, 0, 0, .55); grid-template-rows: auto minmax(0, 1fr); animation: sheetIn .18s ease-out; }
.settingsbox.popout iframe { height: min(76vh, 760px); background: var(--ink); }
/* the sheet's header: what it is, its note, all cameras, and ✕ */
.sheethead { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 14px 14px 12px 20px; border-bottom: 1px solid var(--line); background: var(--ink); }
.sheettitle { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.sheettitle b { font: 700 1.45rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.sheethead .check { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); white-space: nowrap; }
.sheetx { flex: none; width: 38px; height: 38px; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.sheetx:hover, .sheetx:focus-visible { background: var(--bg); color: #fff; border-color: var(--line); }
@keyframes sheetIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); } }
@media (prefers-reduced-motion: reduce) { .settingsbox.popout { animation: none; } }
.settingsbox .check { display: inline-flex; align-items: center; gap: 6px; }
.jtile .msg.waiting { pointer-events: auto; overflow: auto; padding: 42px 12px 12px; place-items: start center; font-weight: 500; }
.waitCard { display: grid; gap: 8px; justify-items: center; color: #fff; }
.waitCard h4 { margin: 0; font-size: 1rem; }
.waitQrs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.waitQrs figure { margin: 0; display: grid; gap: 4px; justify-items: center; font-size: .82rem; color: var(--muted); }
.waitQrs img { width: clamp(96px, 15vw, 170px); height: auto; background: #fff; }
#analysis iframe { height: 80vh; }

/* one athlete (timeline marker / number search) */
.athletepop { background: var(--ink); border-left: 4px solid var(--amber); padding: 10px 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; position: sticky; top: 64px; z-index: 4; }
.athletepop img { width: 54px; height: 72px; object-fit: cover; background: #000; }
.athletepop .info { display: grid; gap: 2px; }
.athletepop b { font-size: 18px; }

/* Upload video */
.uploadbar { margin-bottom: 12px; }
/* (30 Nov 2026, the owner: "put this on the right") Upload a video at the right-hand end, what happens to it just before it */
.uploadbar { justify-content: flex-end; } .uploadbar #upStatus { order: -1; text-align: right; flex: 1 1 260px; min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.splitmain { min-width: 0; }
.side { position: sticky; top: 72px; display: flex; flex-direction: column; max-height: calc(100vh - 86px); min-width: 0; }
.side h2 { margin-top: 0; }
.side h2 small { font-size: 13px; font-weight: 600; text-transform: none; }
.sidefilters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.sidefilters input, .sidefilters select { min-width: 0; width: 100%; padding: 7px; font-size: 14px; }
.side .athletes { grid-template-columns: minmax(0, 1fr); overflow-y: auto; align-content: start; }
.side .ath { grid-template-columns: 72px minmax(0, 1fr); }
.side .ath .pic { width: 72px; height: 96px; }
.side .ath .info { font-size: 13px; }
.side .empty { color: var(--muted); padding: 12px 2px; }
@media (max-width: 1050px) { .split { grid-template-columns: minmax(0, 1fr); } .side { position: static; max-height: none; } }
.uploadbar .upload { display: inline-flex; align-items: center; cursor: pointer; }
.uploadbar select { max-width: 320px; font-size: 15px; padding: 9px; }
#upStatus { flex: 1 1 300px; }
.upstage { position: relative; background: #000; aspect-ratio: 16 / 9; max-height: calc(100vh - 200px); width: 100%; }
.upstage video { width: 100%; height: 100%; display: block; background: #000; }
.upstage .msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 700; }

/* AI judge: everyone tracked */
.filters { margin-bottom: 12px; gap: 10px; }
.filters input, .filters select { padding: 8px; font-size: 15px; }
.filters #fNum { width: 110px; }
#athleteSummary { margin: 0 0 10px; }
.athletes { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 10px; }
.ath { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 12px; background: var(--ink); border-left: 4px solid var(--green); padding: 10px; }
.ath.going { border-left-color: var(--amber); }
.ath .pic { grid-row: span 2; width: 96px; height: 128px; background: #000; display: grid; place-items: center; overflow: hidden; }
.ath .pic img { width: 100%; height: 100%; object-fit: cover; }
.ath .pic span { color: var(--muted); font-size: 12px; text-align: center; }
.ath .info { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.ath .info span { color: var(--muted); overflow-wrap: anywhere; }
.ath .num { font-size: 16px; line-height: 1.2; }
.ath .num small { font-size: 13px; color: var(--muted); font-weight: 600; }
.ath .reps { color: #fff !important; }
.ath .reps b { font-size: 30px; font-weight: 900; }
.ath .acts { display: flex; gap: 8px; flex-wrap: wrap; align-self: end; }
.ath .acts { flex-wrap: nowrap; align-items: center; grid-column: 2; }
.ath .acts .btn { padding: 7px 10px; font-size: 13px; }
.btn.watch { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.linkbtn { white-space: nowrap; background: none; border: 0; padding: 7px 4px; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: #fff; }
.ath .info .reps { line-height: 1.1; }
.ath .info .reps small { color: var(--muted); font-size: 13px; font-weight: 600; }
.ath .info .going { color: var(--amber); font-weight: 700; }
.ath .info .reps small.tocheck { color: var(--amber); }

.list { width: 100%; border-collapse: collapse; }
.list td, .list th { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list th { color: var(--muted); font-weight: 600; }
.list td.t { font-family: Consolas, ui-monospace, monospace; white-space: nowrap; }
.list .lost { color: #ff6b6b; } .list .connected { color: var(--green); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #232a33; padding: 10px 16px; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 9; font-weight: 600; }
#toast.on { opacity: 1; }
@media (max-width: 760px) { .grid, .athletes { grid-template-columns: 1fr; } header .tabs button { padding: 8px 10px; } .numSearch input { width: 150px; } .athletepop { top: 0; position: relative; } }
/* running: the judge draws its clock along the top and its details along the bottom left, so our buttons sit bottom right */
.jtile:has(iframe) .tools { top: auto; bottom: 8px; left: auto; right: 8px; transform: none; }
.jtile:has(iframe) .livetag, .jtile:has(iframe) .label { display: none; }
/* not running: the camera's name along the top, Start AI judge in the middle, what it's waiting for under it */
.jtile:not(:has(iframe)) .tools { top: 50%; bottom: auto; left: 50%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 16px); align-items: stretch; }
.jtile .tools .btn { white-space: nowrap; }
.jtile .tools .btn.track.red { font-size: clamp(13px, 3.4cqw, 19px); padding: clamp(7px, 2cqw, 12px) clamp(10px, 4cqw, 24px); box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.jtile:not(:has(iframe)) .msg { place-items: end center; padding: 0 8px 12%; }
/* while the QR codes are showing, the buttons go below them rather than over them */
.jtile:has(.msg.waiting) .tools { top: 8px; bottom: auto; left: auto; right: 8px; transform: none; }
.jtile:has(.msg.waiting) .tools .btn.track.red { font-size: 13px; padding: 6px 10px; box-shadow: none; }
.jtile .msg.waiting { padding-top: 52px; }
.jtile .label { max-width: calc(100% - 70px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ath .acts .btn.del { margin-left: auto; background: none; border-color: transparent; color: var(--muted); }
.ath .acts .btn.del:hover { color: #ff6b6b; }
/* the Live tab fits the window (--avail: the height left for the cameras, see fitLive) */
#live { padding-bottom: 0; }
.judgegrid .jtile, #replayGrid .tile { max-height: var(--avail, 70vh); }
.judgegrid .jtile.big, #replayGrid .tile.big { height: var(--avail, 70vh); aspect-ratio: auto; }
.judgegrid.single .jtile:not([hidden]), #replayGrid.single .tile:not([hidden]) { height: var(--avail, 70vh); aspect-ratio: auto; }
.transport { margin-top: 8px; }
/* Watch: the AI judge's skeleton and count over the recording */
.proofstage { position: relative; background: #000; }
#proofVideo { display: block; width: 100%; height: 68vh; background: #000; }
#proof.counting #proofVideo { height: calc(100vh - 476px); min-height: 240px; }
#proof.comparing #proofVideo { height: 38vh; min-height: 220px; }
#proofCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.proofreps { display: flex; flex-wrap: wrap; gap: 6px; max-height: 18vh; overflow: auto; }
.proofreps .btn { padding: 6px 10px; font-size: 13px; }
.proofreps .btn small { color: var(--muted); font-weight: 400; }
.proofreps .btn.good { border-color: var(--green); }
.proofreps .btn.bad { border-color: #ef4444; }
.countbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; }
/* (28 Nov 2026) counting by hand: a click or tap on the picture is a good rep, with a ring where it was; the video's own controls along
   its foot stay clickable */
.counttap { position: absolute; left: 0; right: 0; top: 0; bottom: 52px; z-index: 2; cursor: crosshair; touch-action: manipulation; }
.tapring { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 4px solid var(--green, #33d17a); border-radius: 50%; pointer-events: none; animation: tapring .6s ease-out forwards; }
.tapring.bad { border-color: #ef4444; }
@keyframes tapring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tapring { animation-duration: .9s; animation-name: tapfade; } @keyframes tapfade { from { opacity: 1; } to { opacity: 0; } } }
#proof.counting #proofSpeeds { display: none; }   /* (the count bar has its own, up to 4×) */
.countbar .speeds .btn { padding: 6px 9px; font-size: 13px; }
.countbar .btn.bad { border-color: #ef4444; }
.countintro { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
/* picking who to count: a click on them in the video */
.upstage .counttap { bottom: 52px; }
#upStage.picking { outline: 3px dashed var(--amber); outline-offset: -3px; }
.countkeys { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; }
.countkeys kbd { background: #232a33; border: 1px solid #3d4652; color: #fff; padding: 1px 7px; margin-right: 3px; font: 700 13px system-ui, sans-serif; }
.counttally { font-size: 22px; }
.countresult { padding: 10px 0; }
.countresult table { border-collapse: collapse; margin: 6px 0 12px; }
.countresult th, .countresult td { padding: 6px 18px 6px 0; text-align: left; }
.countresult td.big { font-size: 26px; font-weight: 900; }
.countscore { font-size: 22px; font-weight: 900; }
.countrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.countrow > div { flex: 1 1 240px; min-width: 0; }
.countwarn { color: var(--amber); }
#countList .btn { padding: 6px 10px; font-size: 13px; }
.proofsync { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.proofsync[hidden] { display: none; }
.proofsync .btn { padding: 2px 10px; }
/* Watch: the same switches in a row of their own under the picture, where the video's own controls stay clear */
#proofOv { justify-self: start; }

/* the company's brand (the Cameras tab's codes went to the website's Home, 29 Nov 2026) */
.brandlogo { height: 38px; max-width: 160px; object-fit: contain; }
.btn.red { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* the tabs' icons and short names are for phones; the filters' fold is too */
header .tabs svg, header .tabs .ts { display: none; }
.filterbox > summary { display: none; }

/* ---------------------------------------------------------------- on a phone */
@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  /* the header: the company's name and the circle; then the controls, the clock first */
  header .topbar { padding: 10px 14px 8px; gap: 10px; }
  header .mark { font-size: 22px; } header .brandlogo { height: 30px; }
  header .toolbar { padding: 0 14px 10px; gap: 8px 10px; }
  header .toolbar .spacer { display: none; }
  header .clock { order: -1; flex: 1 1 100%; text-align: left; } .clock b { font-size: 17px; display: inline; } .clock small { display: none; }
  header .bookCam { padding: 6px 10px; font-size: 13px; }
  header .dayPick select { padding: 7px; }
  header .eventPick { font-size: 0; gap: 0; flex: 1 1 100%; } .eventPick select { padding: 7px; font-size: 15px; max-width: none; width: 100%; }
  header .numSearch { flex: 1 1 140px; } .numSearch input { width: 100%; padding: 7px 10px; }
  /* the tabs: a bar along the bottom, like an app */
  header .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0;
    background: #0d1116; border-top: 1px solid var(--line); padding: 0 0 env(safe-area-inset-bottom); box-shadow: 0 -6px 18px rgba(0, 0, 0, .35); }
  header .tabs button { display: grid; justify-items: center; gap: 3px; padding: 9px 2px 8px; background: none; color: var(--muted); font-size: 11.5px; font-weight: 700; border: 0; border-top: 3px solid transparent; }
  header .tabs button.on { background: none; color: #fff; border-top-color: var(--brand); }
  header .tabs svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  header .tabs .tl { display: none; } header .tabs .ts { display: block; }
  #toast { bottom: calc(80px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); }
  .transport { bottom: calc(62px + env(safe-area-inset-bottom)); }
  .pane { padding: 10px 12px 28px; }
  .banner { padding: 10px 14px; }
  .busynote { margin: 10px 12px; }

  /* Live: the live button and time, the timeline the full width, then what's shown */
  .dvr { gap: 8px; margin: 18px 0 10px; }
  .dvr #goLive { order: 1; padding: 8px 12px; }
  .dvr .at { order: 2; margin-left: auto; min-width: 0; font-size: 17px; text-align: right; }
  .dvr .tlwrap { order: 3; flex: 1 1 100%; margin-top: 14px; }
  .dvr .viewpick, .dvr #pickBtnTop, .dvr details.more { order: 4; }
  .dvr .viewpick { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .dvr .viewpick .btn, .dvr #pickBtnTop { padding: 8px 10px; font-size: 13.5px; white-space: nowrap; }
  .dvr details.more summary { padding: 8px 4px; }
  header .dayPick { font-size: 0; gap: 0; } /* just the day, no "Day" */
  .judgegrid .jtile { aspect-ratio: 16 / 10; }
  /* a camera waiting for its phone shows its codes in full, with its buttons under them */
  .judgegrid .jtile:has(.msg.waiting) { aspect-ratio: auto; max-height: none; cursor: default; }
  .jtile .msg.waiting { position: relative; inset: auto; padding: 44px 12px 66px; overflow: visible; }
  .jtile:has(.msg.waiting) .tools { top: auto; bottom: 12px; left: 50%; right: auto; transform: translateX(-50%); }
  .jtile:has(.msg.waiting) .tools .btn.track.red { font-size: 14px; padding: 8px 14px; }
  .waitQrs { gap: 10px; flex-wrap: nowrap; width: 100%; }
  .waitQrs figure { flex: 1 1 0; min-width: 0; text-align: center; }
  .waitQrs img { width: min(150px, 100%); }

  /* Config: the whole screen */
  .settingsbox.popout { left: 0; top: 0; transform: none; width: 100vw; height: 100dvh; max-height: none; border: 0; border-radius: 0; padding: 0 0 env(safe-area-inset-bottom); z-index: 300; animation: none; }
  .settingsbox.popout iframe { height: 100%; }
  .settingsbox.popout > .row { gap: 4px 10px; }
  .settingsbox.popout #settingsNote { display: none; }

  /* Results: the filters fold away, the cards are tighter */
  .filterbox { margin-bottom: 10px; }
  .filterbox > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 9px 14px; background: #232a33; border: 1px solid #3d4652; font-weight: 700; list-style: none; }
  .filterbox > summary::-webkit-details-marker { display: none; }
  .filterbox > summary::after { content: "▾"; color: var(--muted); }
  .filterbox[open] > summary::after { content: "▴"; }
  .filterbox .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0; }
  .filterbox .filters label { display: grid; gap: 3px; font-size: 13px; }
  .filterbox .filters input, .filterbox .filters select, .filters #fNum { width: 100%; min-width: 0; }
  .filterbox .filters label:has(#fSrc) { grid-column: 1 / -1; }
  .filterbox .filters .spacer { display: none; }
  .athletes { gap: 8px; }
  .ath, .side .ath { grid-template-columns: 64px minmax(0, 1fr); gap: 2px 10px; padding: 8px; }
  .ath .pic, .side .ath .pic { width: 64px; height: 84px; }
  .ath .reps b { font-size: 26px; }
  .ath .acts { flex-wrap: wrap; }
  .side .athletes { max-height: none; }

  /* Watch */
  #proofVideo { height: auto; aspect-ratio: 16 / 9; max-height: 56vh; }
  #proof .row { gap: 8px; }

  .list td, .list th { padding: 7px 5px; font-size: 14px; }
}

/* Start AI judge: a small box, the camera's name and what it judges */
.quickbox { position: fixed; z-index: 210; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 24px)); background: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--brand); padding: 18px 18px 16px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .72); display: grid; gap: 6px; }
.quickbox h3 { margin: 0 0 8px; font-size: 18px; text-transform: uppercase; }
.quickbox label.field { display: block; color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 6px; }
.quickbox input, .quickbox select { width: 100%; }
.quickbox .quickadv { justify-self: start; margin-top: 8px; padding-left: 0; font-size: 14px; }
/* (26 Nov 2026) YouTube in the setup box: the switch, then the key (masked once saved) and how it's doing */
.quickyt { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.quickyt p { margin: 0; }
.quickyt .check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.quickbox .quickyt input[type="checkbox"] { width: auto; margin: 0; }
.quickyt #quickYtFields { display: grid; gap: 6px; }
.quickyt .ytkey { display: flex; gap: 6px; align-items: center; }
.quickyt .ytkey input { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, Consolas, monospace; }
.quickyt .ytsaved { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.quickyt .ytsaved b { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.quickyt a { color: var(--brand); }
.quickyt .ytstatus.live { color: var(--green); } .quickyt .ytstatus.trouble { color: var(--amber); }
.quickyt .yterr { color: #fff; background: var(--live); padding: 4px 8px; border-radius: 4px; }
.quickacts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.quickacts .btn { flex: 0 0 auto; }
@media (max-width: 760px) { .quickbox { top: auto; bottom: 0; transform: translateX(-50%); width: 100vw; padding-bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 260; } .quickacts .btn { flex: 1 1 0; padding: 13px; } }

/* Watch: everyone in the video, across it */
.proofpeople { display: grid; gap: 8px; margin: 10px 0 6px; }
.pphead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pphead b { font-size: 14px; text-transform: uppercase; }
.ppbar { position: relative; height: calc(var(--lanes, 1) * 12px + 6px); background: #0d1116; border: 1px solid var(--line); }
.ppbar button { position: absolute; top: calc(var(--lane, 0) * 12px + 3px); height: 9px; border: 0; padding: 0; background: #5d6875; cursor: pointer; border-radius: 2px; }
.ppbar button:hover { background: #fff; }
.ppbar button.on { background: var(--brand); }
/* (30 Nov 2026) who's on camera, under a whole video: taller rows, each named */
.vovstrip { display: grid; gap: 6px; margin: 8px 0 4px; }
.vovstrip .ppbar { height: calc(var(--lanes, 1) * 20px + 6px); }
/* (30 Nov 2026, the owner: "need a scroller on this so it doesnt overlap the below stuff") a crowd's rows scroll in their own box */
.vovstrip .ppscroll { max-height: 186px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.vovstrip .ppbar button { top: calc(var(--lane, 0) * 20px + 3px); height: 17px; background: #2f6f9f; overflow: hidden; text-align: left; }
.vovstrip .ppbar button span { display: block; padding: 0 4px; color: #fff; font: 700 11px/17px system-ui, sans-serif; white-space: nowrap; }
.vovstrip .vovhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; }
.pplist { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pchip { flex: 0 0 auto; display: grid; gap: 1px; text-align: left; background: #232a33; color: #fff; border: 1px solid #3d4652; padding: 6px 10px; cursor: pointer; font: inherit; }
.pchip b { font-size: 14px; } .pchip small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pchip:hover { border-color: #fff; }
.pchip.on { border-color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); cursor: default; }

/* Watch opens big: the whole window, the video as large as fits, everything else under it (the switches' row, 46px, among it: 26 Nov 2026) */
/* (rows as tall as what is in them: in a box the height of the window, the switches under the picture were squashed to half
   their height: 26 Nov 2026) */
#proof:not([hidden]) { position: fixed; inset: 0; z-index: 150; margin: 0; overflow-y: auto; padding: 10px 14px 16px; background: var(--bg); align-content: start; grid-auto-rows: max-content; }
#proofVideo { height: calc(100vh - 316px); min-height: 240px; }
@media (max-width: 760px) { #proof:not([hidden]) { padding: 8px 8px calc(16px + env(safe-area-inset-bottom)); } #proofVideo { height: auto; max-height: calc(100dvh - 346px); }
  /* (the four switches in one row on a 360px phone: closer together, so Speak isn't cut off at the side) */
  #proofOv { gap: 2px; } #proofOv button { padding: 5px 7px; } #proofOv button::before { margin-right: 4px; } }

/* Results: where they're from (the live cameras, a previous recording, an upload) */
.srcbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 4px 0 14px; }
.srcbar button { display: grid; gap: 2px; text-align: left; padding: 10px 14px; background: #232a33; color: #fff; border: 1px solid #3d4652; border-top: 3px solid transparent; cursor: pointer; font: inherit; }
.srcbar button b { font-size: 15px; } .srcbar button small { color: var(--muted); font-size: 12.5px; }
.srcbar button:hover { border-color: #8a929c; }
.srcbar button.on { background: var(--ink); border-color: var(--line); border-top-color: var(--brand); cursor: default; }
.recpick { margin-bottom: 12px; }
.recshown { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--ink); border-left: 4px solid var(--brand); }
.reclist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.recday { grid-column: 1 / -1; margin: 10px 0 2px; font-size: 14px; color: var(--muted); text-transform: uppercase; }
.recitem { display: grid; gap: 2px; text-align: left; padding: 10px 12px; background: var(--ink); color: #fff; border: 1px solid var(--line); cursor: pointer; font: inherit; }
.recitem:hover, .recitem:focus-visible { border-color: #fff; }
.rechead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.recselbar, .recconfirm { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 8px 0; padding: 10px 12px; background: var(--ink); border-left: 4px solid var(--red, #e2231a); }
.recconfirm p { margin: 0; flex: 1 1 260px; }
.reclist.selecting .recitem { position: relative; padding-left: 40px; }
.reclist.selecting .recitem::before { content: ""; position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; border: 2px solid var(--muted); border-radius: 4px; }
.reclist.selecting .recitem.picked { border-color: var(--red, #e2231a); }
.reclist.selecting .recitem.picked::before { content: "✓"; display: grid; place-items: center; background: var(--red, #e2231a); border-color: var(--red, #e2231a); color: #fff; font-weight: 800; font-size: 13px; }
.recitem span { color: var(--muted); font-size: 13.5px; } .recitem small { color: var(--muted); font-size: 12.5px; } .recitem small.found { color: var(--green); font-weight: 700; }
/* an upload being analysed: how much of it is done */
.upprogress { display: grid; gap: 6px; margin: 10px 0 4px; }
.upprogress .bar { height: 10px; background: #0d1116; border: 1px solid var(--line); overflow: hidden; }
.upprogress .bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .6s ease; }
.upprogress[data-state="done"] .bar i { background: var(--green); }
.upprogress[data-state="waiting"] .bar i { background: var(--amber); }
.upprogress span { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .upprogress .bar i { transition: none; } }
@media (max-width: 760px) {
  .srcbar { gap: 6px; } .srcbar button { padding: 8px 8px; } .srcbar button b { font-size: 13.5px; } .srcbar button small { display: none; }
  .reclist { grid-template-columns: 1fr; }
}
.samebox { display: grid; gap: 6px; max-width: 460px; border-top: 1px solid var(--line, #333); padding-top: 10px; }
.samebox label { display: flex; gap: 8px; align-items: center; }

/* a camera whose connection keeps dropping */
.jtile .label small.dropping { color: #fff; background: var(--live); padding: 1px 6px; border-radius: 4px; }

/* Results, laid out as the website's Results page is: what's being watched on the left (an empty stage until someone's chosen),
   the athletes in a card beside it, one to a row with their buttons at the end. One column on a phone. */
.resgrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.resgrid:has(> #athleteBox[hidden]) { grid-template-columns: minmax(0, 1fr); }
.rescol { display: grid; gap: 12px; min-width: 0; }
.rescol > .settingsbox { margin-bottom: 0; }
.stageempty { aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); }
.rescol:has(> .settingsbox:not([hidden])) > .stageempty { display: none; }
.rescard { background: var(--ink); border: 1px solid var(--line); padding: 14px 16px; min-width: 0; }
.rescard h2 { margin: 0 0 8px; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; }
.rescard h2 small { font-size: 15px; color: var(--muted); font-weight: 600; }
.rescard #athleteSummary { margin: 0 0 8px; }
#athleteBox .athletes { grid-template-columns: minmax(0, 1fr); gap: 0; }
#athleteBox .ath { grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; background: none; border-left: 0; border-top: 1px solid var(--line); padding: 10px 0; }
#athleteBox .ath.going { box-shadow: inset 3px 0 0 var(--amber); padding-left: 8px; }
#athleteBox .ath .pic { width: 58px; height: 74px; grid-row: auto; }
#athleteBox .ath .acts { grid-column: 3; grid-row: 1; display: grid; gap: 6px; justify-items: stretch; align-self: center; }
#athleteBox .ath .acts .btn { text-align: center; }
#athleteBox .ath .acts .linkbtn { justify-self: center; }
#athleteBox .ath .acts .btn.del { margin-left: 0; justify-self: end; padding: 2px 6px; }
.side .ath [data-save], .athletepop [data-save] { display: none; }
.numrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.numrow b { font-size: 17px; }
.numrow small { display: block; color: var(--muted); }
@media (max-width: 860px) { .resgrid { grid-template-columns: minmax(0, 1fr); } }
/* Download with tracking: the video being made, small, with how far it's got */
.savebox { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--ink); border: 1px solid var(--line); }
.savebox > div:last-child { flex: 1; min-width: 0; }
.savebox p { margin: 0 0 6px; }
.savebox progress { display: block; width: 100%; margin-bottom: 8px; }
.saveview { position: relative; flex: none; width: 150px; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.saveview video, .saveview canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* a recording a crowd was in, counted again in full afterwards (deep analysis): how far it has got */
.deepnote { margin: 0 0 10px; display: grid; gap: 6px; } .deepnote p { margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-left: 4px solid var(--green); font-size: 14px; line-height: 1.35; }
.deepnote p.going { border-left-color: var(--amber); } .deepnote p.bad { border-left-color: #e2231a; }
/* a camera with a picture: Stop judging / Config at its foot, out of the picture's way (before it has one, the foot isn't a box of
   its own and the buttons sit where they always have) */
.jtile .foot { display: contents; }
.jtile.hasview .foot { display: flex; position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; gap: 6px; align-items: center; justify-content: space-between; flex-wrap: wrap-reverse; pointer-events: none; }
.jtile.hasview .foot > * { pointer-events: auto; }
.jtile.hasview .foot .tools { position: static; transform: none; width: auto; margin-left: auto; }
.jtile.hasview .foot .tools .btn { padding: 6px 10px; font-size: 13px; border-radius: 999px; }
.jtile.hasview .foot .tools .btn.track.red { font-size: 13px; padding: 6px 12px; box-shadow: none; }

/* scores and the tolerance (27 Nov 2026): one small box an attempt on each athlete's card, and the bar that sets the tolerance */
.ath .info .scores { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.sc { font-style: normal; font-size: 11px; font-weight: 800; line-height: 1; min-width: 22px; padding: 3px 3px; text-align: center; border: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
/* (30 Nov 2026) a score with its moment: a click there goes to it */
.proofscores { display: flex; flex-wrap: wrap; gap: 3px; margin: 2px 0 8px; } .proofscores .scores { display: contents; }
.sc[data-at] { cursor: pointer; } .sc[data-at]:hover, .sc[data-at]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sc.rep { background: rgba(51, 209, 122, .16); border-color: var(--green); color: #fff; }
.sc.questionable { background: rgba(255, 176, 32, .16); border-color: var(--amber); color: #fff; }
.sc.norep { border-color: #a33; color: #f99; }
.sc.over { opacity: .45; }
.tolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; margin: 8px 0; background: var(--ink); border-left: 4px solid var(--line); font-size: 13px; }
.tolbar.set { border-left-color: var(--brand); }
.tolbar label { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.tolbar select { font: inherit; }
.tolbar .tolrange { flex: 1 1 140px; min-width: 120px; accent-color: var(--brand); }
.tolbar .tolval { min-width: 2.2em; font-size: 20px; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }
.tolbar .btn { padding: 6px 10px; font-size: 12px; }
.tolbar .tolnote { flex: 1 1 100%; color: var(--muted); }
.tolbar .tolhow { flex: 1 1 100%; color: var(--muted); font-size: 12px; margin-top: -4px; }
.tolbar.off label, .tolbar.off .tolrange { opacity: .5; }

/* the tolerance in the start box, and the judge's view on uploaded videos and replays (27 Nov 2026) */
.quickbox .quicktol input[type="range"] { width: 100%; accent-color: var(--brand); }
.quickbox .quicktol label b { color: #fff; font-variant-numeric: tabular-nums; margin-left: 4px; }
.quickbox .quicktol p { margin: 2px 0 0; }
.vovcanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.vovrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 8px 0; }
.vovrow .followbtn.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tile .vovbar { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); z-index: 3; max-width: calc(100% - 16px); }

.tolbar.under { margin: 8px 0 0; }
/* (28 Nov 2026) the tolerance as a chip in a video's switches, "Tolerance 50", opening its slider over the picture */
.ovbar .tolchip { color: #fff; }
.ovbar .tolchip::before { content: none; }
.ovbar .tolchip.set { background: var(--brand); color: var(--on-brand); }
.ovbar .tolchip[aria-expanded="true"] { box-shadow: inset 0 0 0 2px #fff; }
.tolpop { position: absolute; left: 8px; z-index: 7; width: min(460px, calc(100% - 16px)); background: rgba(13, 17, 22, .95); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); cursor: default; }
.tolpop .tolbar { margin: 0; background: transparent; border-left-width: 4px; }
.tolpop .tolbar .tolcam { display: none; }   /* (the camera is the one it's opened on) */
.tolbar .tolsame { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.tolbar .tolsame[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* the Video review (27 Nov 2026): one tab for Live, a previous recording and an uploaded video */
#judge #filterBox, #judge #athleteBox, #judge #stageEmpty { display: none !important; }
#judge .resgrid { grid-template-columns: minmax(0, 1fr); }
/* (28 Nov 2026) an uploaded video's card, among the recordings */
.recitem.upitem { border-left: 3px solid var(--line); }
/* (1 Dec 2026) the recordings' filters, and each camera's pieces an hour to a card that opens to show them (review.js drawRecordings) */
.recfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 4px; }
.recfilters label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.recfilters select, .recfilters input { font: inherit; color: #fff; background: var(--ink); border: 1px solid var(--line); padding: 4px 6px; min-width: 0; }
.recitem.recgroup { position: relative; padding-right: 34px; border-left: 3px solid var(--brand); }
.recitem.recgroup.open { grid-column: 1 / -1; }
.recitem b .reccam { color: inherit; font-size: inherit; }
.recitem .recev { font-style: normal; font-size: 12.5px; color: #fff; overflow-wrap: anywhere; }
.recitem.recgroup .recopen { position: absolute; right: 12px; top: 10px; font-style: normal; color: var(--muted); }
.recpieces { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; padding: 0 0 8px 14px; border-left: 3px solid var(--line); margin-left: 2px; }
.reclist.selecting .recitem.recgroup.part { border-color: var(--live); }
.reclist.selecting .recitem.recgroup.part::before { content: "–"; display: grid; place-items: center; color: var(--live); font-weight: 800; }
/* a previous recording's results: what the live judge counted, then what an analysis of it found, each under its heading */
.sidehead { margin: 14px 0 6px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sidehead:first-child { margin-top: 0; } .sidehead span { color: #fff; margin-left: 6px; }
#recAnalyse.busy { opacity: 1; cursor: progress; border-color: var(--brand); color: var(--brand); }
/* a recording's card: its deep analysis going, or only the live judge's count so far */
.recitem small.going { color: var(--brand); font-weight: 700; } .recitem small.liveonly { color: #fff; font-weight: 600; }
#quickModeNote { margin: 8px 0 0; }
.quickwarn { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid var(--amber); background: rgba(255, 176, 32, .08); color: #fff; }
.quickwarn .linkbtn { padding: 0; font-size: inherit; }
#recBox .recitem.on { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.whatcounts { margin: 6px 0 0; }

/* the switches at the top of an uploaded or previous video, as on a live camera (clear of the video's own controls) */
.upstage .vovrow { position: absolute; left: 8px; top: 8px; z-index: 3; margin: 0; flex-wrap: nowrap; justify-content: flex-start; max-width: calc(100% - 16px); pointer-events: none; }
.upstage .vovrow > * { pointer-events: auto; }
.upstage .vovrow .followbtn { border-radius: 999px; padding: 6px 12px; font-size: 13px; }

/* the Live Scoreboard (27 Nov 2026): each camera's athletes in its picture now, big enough to read across a room */
#board { --lane1: #3b82f6; --lane2: #e8590c; --lane3: #12b886; --lane4: #c2255c; --lane5: #7950f2; --lane6: #f59f00; }
/* (28 Nov 2026) someone counted outside the camera's activity zone, or away from its athlete markers: flagged, for the reviewer */
.outside { color: var(--amber, #ffb020); font-weight: 700; }
/* the activity zone and athlete markers: who set them, with Change (review.js areaChips), and their editor over the picture (area-edit.js) */
.areachips { position: absolute; left: 8px; right: 8px; top: 84px; z-index: 6; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.areachip { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; background: rgba(18,22,28,.88); color: #e6e9ee; border: 1px solid rgba(255,196,0,.5); border-radius: 6px; padding: 3px 4px 3px 8px; font-size: 12px; }
.areachip b { color: #ffc400; }
.btn.small { padding: 2px 8px; font-size: 12px; }
.areaedit { position: absolute; inset: 0; z-index: 8; cursor: default; }
.areasvg { position: absolute; touch-action: none; cursor: crosshair; overflow: visible; }
.areasvg .zonefill { fill: rgba(255,196,0,.18); stroke: #ffc400; stroke-width: 2.5; stroke-dasharray: 9 6; cursor: move; }
.areasvg .zonecorner { fill: #ffc400; stroke: #12161c; stroke-width: 2.5; cursor: grab; }
.areasvg .zoneadd circle { fill: rgba(18,22,28,.85); stroke: #ffc400; stroke-width: 1.5; cursor: copy; }
.areasvg .zoneadd text { fill: #ffc400; font: 800 14px Barlow, system-ui, sans-serif; pointer-events: none; }
.areasvg .marker circle { fill: rgba(18,22,28,.8); stroke: #ffc400; stroke-width: 3; cursor: grab; }
.areasvg .marker.on circle { fill: #ffc400; }
.areasvg .marker text { fill: #ffc400; font: 800 13px Barlow, system-ui, sans-serif; paint-order: stroke; stroke: rgba(0,0,0,.8); stroke-width: 3px; pointer-events: none; }
.areabar { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: rgba(18,22,28,.94); color: #e6e9ee; border: 1px solid rgba(255,196,0,.5); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.areabar b { color: #ffc400; }
.areabar .areahint { color: #a8b0ba; flex: 1 1 260px; }
.areabar .areaname input { width: 130px; margin-left: 4px; }
.areabar .areaerr { color: #ff6b6b; }
.uparea .upareastage { position: relative; aspect-ratio: 16 / 9; max-height: 60vh; background: #000; border-radius: 8px; overflow: hidden; margin: 8px 0; }
.uparea .upareastage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.uparea .upareastage .areaprev { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#board:fullscreen { background: var(--bg); padding: 18px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); overflow: auto; }
.boardbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; justify-content: space-between; margin: 4px 0 10px; }
.boardbar p { margin: 0; flex: 1 1 280px; }
#board:fullscreen .boardbar p { display: none; }
.boardlist { display: grid; gap: 22px; }
.bcam h2 { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: clamp(20px, 2.2vw, 30px); }
.bcam h2 small { font-size: .62em; color: var(--muted); text-transform: none; font-weight: 600; }
.bcam h2 small.on { color: var(--green); }
.bcam.off h2 { color: var(--muted); }
.bcards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.bcard { background: var(--ink); border-top: 8px solid var(--c, var(--line)); padding: 10px 12px 12px; text-align: center; min-width: 0; transition: background .2s; }
.bcard.rep { background: rgba(61, 220, 151, .22); }
.bcard.norep { background: rgba(255, 176, 32, .2); }
.bcard .bwho { font: 700 clamp(18px, 1.9vw, 28px) var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard .bsub { color: var(--muted); font-size: clamp(13px, 1.2vw, 17px); min-height: 1.3em; }
.bcard .bn { font: 800 clamp(64px, min(10vw, 20vh), 190px)/1 var(--display); font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.bcard .bn small { font-size: .3em; color: var(--muted); font-weight: 700; margin-left: 4px; }
.bcard .blast { font-weight: 700; font-size: clamp(14px, 1.4vw, 21px); min-height: 1.4em; }
.bcard .blast.good { color: var(--green); } .bcard .blast.bad { color: var(--amber); }
.bcard .bnr { color: var(--muted); font-size: clamp(13px, 1.2vw, 17px); min-height: 1.3em; }
.bcard.done .bn { color: var(--green); }
.boardempty { color: var(--muted); background: var(--ink); padding: 16px; margin: 0; }
.bwait { color: var(--muted); margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .bcard { transition: none; } }


/* the language menu (i18n.js fills it) */
.langPick { font: inherit; font-size: .85rem; color: var(--text, #fff); background: transparent; border: 1px solid var(--line); padding: 3px 5px; border-radius: 8px; max-width: 9em; }
.langPick option { color: #000; background: #fff; }
html[lang="ar"] *, html[lang="th"] * { font-style: normal !important; letter-spacing: 0 !important; }

/* (29 Nov 2026) the Map view: the company's event map, a camera opened by a tap */
.mapview { margin: 0 0 12px; position: relative; }
/* (29 Nov 2026) the map made small in the bottom left corner over a camera's picture (review.js miniMap): a tap opens it again */
.mapview.mini { position: fixed; left: max(12px, env(safe-area-inset-left)); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(300px, 42vw); height: 200px; z-index: 70; margin: 0; background: #0f1318; border: 2px solid var(--brand); box-shadow: 0 6px 24px #000a; cursor: pointer; overflow: hidden; }
.mapview.mini .mapviewbar, .mapview.mini .mapwho, .mapview.mini .mapempty, .mapview.mini .hjmCtl { display: none !important; }
.mapview.mini .mapsplit { display: block; height: 100%; }
.mapview.mini .mapstage { height: 100%; min-height: 0; border: 0; }
.mapminix, .mapminicap { display: none; }
.mapview.mini .mapminix { display: grid; place-items: center; position: absolute; top: 4px; right: 4px; z-index: 600; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #000c; color: #fff; font-size: 14px; cursor: pointer; }
.mapview.mini .mapminicap { display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; padding: 4px 8px; background: #000b; color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
@media (max-width: 760px) { .mapview.mini { bottom: calc(80px + env(safe-area-inset-bottom)); width: 46vw; height: 140px; } }
.mapviewbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 8px; }
.mapviewbar b { font-size: 16px; text-transform: uppercase; }
.mapviewbar #mapClose { margin-left: auto; }
.mapviewbar a { color: var(--accent); font-weight: 700; }
.mapstage { height: min(68vh, 720px); min-height: 320px; border: 1px solid var(--line); }
.mapstage .hjmCam { cursor: pointer; }
.mapempty { border: 1px solid var(--line); padding: 18px; background: var(--ink); }
.mapempty a { color: var(--accent); font-weight: 700; }
.mapsplit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mapsplit:has(> .mapwho:not([hidden])) { grid-template-columns: minmax(0, 1fr) 260px; }
@media (max-width: 900px) { .mapsplit:has(> .mapwho:not([hidden])) { grid-template-columns: minmax(0, 1fr); } }
.mapwho { border: 1px solid var(--line); background: var(--ink); padding: 10px; max-height: min(68vh, 720px); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mapwho h3 { margin: 0; font-size: 15px; text-transform: uppercase; }
.mapwho input { width: 100%; padding: 7px 9px; }
.mapwholist { overflow: auto; display: grid; gap: 4px; align-content: start; }
.mapwholist button { text-align: left; background: none; border: 1px solid var(--line); color: #fff; padding: 6px 8px; cursor: pointer; font: inherit; }
.mapwholist button:hover { border-color: var(--muted); }
.mapwholist b { font-size: 16px; } .mapwholist small { display: block; color: var(--muted); }
.mapwholist .fresh b { color: var(--green); }
.mapstage .hjmTag { cursor: pointer; }

/* (29 Nov 2026) Book a camera: the website's booking page */
header .bookCam { font: 700 14px Barlow, system-ui, sans-serif; padding: 7px 12px; background: none; color: var(--text, #fff); border: 1px solid var(--line, #333); cursor: pointer; white-space: nowrap; }
header .bookCam:hover { border-color: currentColor; }
.exName { color: var(--brand); font-weight: 800; }
.proofovrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.proofovrow .ovbar { flex: 0 1 auto; min-width: 0; }
.proofwho { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(13,17,22,.78); }
.proofwho button { border: 0; border-radius: 999px; padding: 5px 12px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.proofwho button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.jtile .label .camFor { color: var(--brand); font-weight: 800; }
