/* Driver website. Phone first: designed at 360px wide, a mid-range Android on
 * mobile data. System fonts only, no images, one stylesheet. Same race theme
 * as the venue screens, in a light, readable version. */

:root {
  --bg: #f4f5f8;
  --card: #ffffff;
  --ink: #12141a;
  --muted: #5d6475;
  --line: #e2e5ec;
  --accent: #e0291d;        /* Xtreme red, darkened for contrast on white */
  --accent-ink: #ffffff;
  --purple: #7b2fd6;        /* fastest lap, as on the screens */
  --green: #138a4b;         /* improvement */
  --dark: #0f1117;
  --checker: conic-gradient(#e7e9ef 0 25%, #0b0c10 0 50%, #e7e9ef 0 75%, #0b0c10 0) 0 0 / 12px 12px;
  /* Numbers: plain zeros (no dot), equal-width digits so times line up (user, 24/11/2026). */
  --mono: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f14;
    --card: #161a23;
    --ink: #eef0f6;
    --muted: #9aa2b6;
    --line: #262c3a;
    --accent: #ff4a3d;
    --purple: #b98bff;
    --green: #3ddc84;
    color-scheme: dark;                 /* the browser's own lists and pickers draw dark too */
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
/* Easier to read (user, 25/11/2026): bold text is semi-bold everywhere, not heavy. */
b, strong, th { font-weight: 600; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

a { color: var(--accent); }

h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 0.4rem; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; margin: 0 0 0.6rem; }
p  { margin: 0 0 0.8rem; }

/* -- header ------------------------------------------------------------- */

.top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  background: var(--dark);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.top::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1.8rem;
  background: var(--checker);
  opacity: 0.7;
}

.brand { text-decoration: none; font-style: italic; text-transform: uppercase; white-space: nowrap; }
.brand__x { color: #ff4a3d; font-weight: 900; letter-spacing: 0.03em; font-size: 1.2rem; }
.brand__rest { color: #fff; font-weight: 600; letter-spacing: 0.12em; font-size: 0.8rem; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; font-size: 0.95rem; min-width: 0; }
.nav a, .nav .link { color: #dfe3ec; text-decoration: none; }
.nav__out { margin: 0; }

.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* -- layout ------------------------------------------------------------- */

.wrap { max-width: 44rem; margin: 0 auto; padding: 1.2rem 1rem 2rem; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1rem;
  margin: 0 0 1rem;
}

.narrow { max-width: 28rem; margin-left: auto; margin-right: auto; }

.panel--danger { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

.foot {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
.foot p { margin: 0.2rem 0; }

.eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.muted { color: var(--muted); }
.small { font-size: 0.9rem; color: var(--muted); }
.hint  { font-size: 0.85rem; color: var(--muted); margin-top: -0.3rem; }
.opt   { font-weight: 400; color: var(--muted); }
/* Red star next to what a form needs (user, 25/11/2026). The screen-reader text says "required". */
.req   { color: #ff4a3d; font-weight: 600; margin-left: 0.15em; }
.req .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.up    { color: var(--green); font-weight: 600; }

/* -- landing ------------------------------------------------------------ */

.hero { padding: 1.2rem 0 1.6rem; }
.hero h1 { font-size: 2.1rem; font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.hl { color: var(--accent); }
.lead { font-size: 1.1rem; color: var(--muted); }

.cards3 { display: grid; gap: 0.8rem; }
.tile { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 0.9rem 1rem; }
.tile h2 { font-size: 1rem; margin-bottom: 0.2rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (min-width: 40rem) {
  .cards3 { grid-template-columns: repeat(3, 1fr); }
}

/* -- forms -------------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 0.5rem; }
.form--row { flex-direction: row; }
.form--row input { flex: 1; }

label { font-weight: 600; font-size: 0.95rem; }

input[type="text"], input:not([type]), input[type="tel"], input[type="date"], input[type="password"], input[type="number"], input[type="email"] {
  width: 100%;
  min-height: 48px;           /* thumb-sized */
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 2px;
}

.pin { font-family: var(--mono); font-size: 1.8rem !important; letter-spacing: 0.4em; text-align: center; }

.ticks { border: 1px solid var(--line); border-radius: 10px; padding: 0.4rem 0.9rem 0.6rem; margin: 0.6rem 0 0.4rem; }
.ticks legend { font-weight: 600; padding: 0 0.3rem; }

.tick {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.5rem;
  align-items: start;
  font-weight: 400;
  padding: 0.5rem 0;
  white-space: pre-line;      /* consent wording keeps its paragraph break */
}
.tick input { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; accent-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn--big { width: 100%; font-size: 1.1rem; margin: 0.6rem 0; }
.btn--small { min-height: 48px; padding: 0.5rem 1rem; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--danger { background: #b4231a; }
.btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.note { padding: 0.7rem 0.9rem; border-radius: 10px; font-size: 0.95rem; }
.note--err { background: color-mix(in srgb, var(--accent) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
.note--ok  { background: color-mix(in srgb, var(--green) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--green) 40%, var(--line)); }
.note--dev { background: color-mix(in srgb, var(--purple) 12%, var(--card)); border: 1px dashed var(--purple); font-family: var(--mono); font-size: 0.9rem; }

/* -- profile ------------------------------------------------------------ */

.family { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.chip {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.chip--on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip--add { color: var(--accent); border-style: dashed; }

.driver { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 0.6rem; }
.driver h1 { margin: 0; }
.driver p { margin: 0; }

/* Kart number plate, as on the screens. */
.plate {
  flex: none;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  background: #e6e9ef;
  color: #0b0d12;
  font-weight: 700;
  font-family: var(--mono);
  font-size: 1rem;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12);
}

.racer-hint { font-size: 0.9rem; color: var(--muted); }

.pbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.8rem; margin: 0 0 1rem; }
.pb {
  background: var(--dark);
  color: #fff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  border-top: 4px solid var(--purple);
}
.pb p { margin: 0; }
.pb__track { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #aab1c3; }
.pb__time  { font-family: var(--mono); font-size: 2rem; font-weight: 600; color: #c79bff; line-height: 1.2; }
.pb__meta  { font-size: 0.8rem; color: #aab1c3; }

.chart { width: 100%; height: auto; display: block; margin: 0.4rem 0; }
.chart .axis  { stroke: var(--line); stroke-width: 1; }
.chart .trend { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt    { fill: var(--card); stroke: var(--accent); stroke-width: 2; }
.chart .pt--best { fill: var(--purple); stroke: var(--purple); }
.chart .ax    { fill: var(--muted); font-size: 10px; font-family: var(--mono); }
.chart .ax--y { text-anchor: end; }
.chart .ax--end { text-anchor: end; }
.chart .ax--mid { text-anchor: middle; }
.chart .bar { fill: color-mix(in srgb, var(--accent) 70%, var(--card)); }
.chart .bar--best { fill: var(--purple); }
.chart .bar--out { fill: var(--line); }

.races { list-style: none; margin: 0; padding: 0; }
.races li + li { border-top: 1px solid var(--line); }
.races a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "when best" "where best";
  padding: 0.7rem 0.2rem;
  color: var(--ink);
  text-decoration: none;
}
.races__when  { grid-area: when; font-weight: 600; }
.races__when small { color: var(--muted); font-weight: 400; }
.races__where { grid-area: where; color: var(--muted); font-size: 0.9rem; }
.races__best  { grid-area: best; align-self: center; font-family: var(--mono); font-weight: 600; font-size: 1.15rem; }

/* -- race detail -------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0.8rem 0 0.6rem; }
.stats div { background: var(--bg); border-radius: 10px; padding: 0.6rem; text-align: center; }
.stats p { margin: 0; }
.stats__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stats__value { font-family: var(--mono); font-size: 1.25rem; font-weight: 600; }
.stats__value--best { color: var(--purple); }

.laps { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.laps th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0.4rem 0.3rem; }
.laps td { padding: 0.45rem 0.3rem; border-top: 1px solid var(--line); font-family: var(--mono); }
.laps .is-best td { color: var(--purple); font-weight: 600; }
.laps .is-out td { color: var(--muted); }

/* -- staff counter screen ----------------------------------------------- *
 * Used on a reception PC or tablet, so it widens out, but still works on a
 * phone. Same palette as the driver site; a different header colour so staff
 * can tell at a glance they are on the counter screen. */

.top--staff { background: #1b1030; border-bottom-color: var(--purple); }
.nav__who { color: #b9a6dd; font-size: 0.85rem; }
.wrap--wide { max-width: 64rem; }

/* A drop-down's open list must always be readable (25/11/2026: Swap kart showed white text on white). */
select option, select optgroup { background-color: var(--card); color: var(--ink); }

select {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.mono { font-family: var(--mono); }
.search input { font-size: 1.15rem; }
.panel--action { border: 2px solid var(--purple); }

.grid { width: 100%; border-collapse: collapse; margin: 0.6rem 0 1rem; font-size: 0.95rem; }
.grid th { text-align: left; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0.5rem 0.4rem; }
.grid td { padding: 0.55rem 0.4rem; border-top: 1px solid var(--line); vertical-align: top; }

.badge { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.badge--ok    { background: color-mix(in srgb, var(--green) 18%, var(--card)); color: var(--green); }
.badge--wait  { background: color-mix(in srgb, #d98a00 20%, var(--card)); color: #b06f00; }
.badge--child { background: color-mix(in srgb, var(--purple) 16%, var(--card)); color: var(--purple); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0.9rem 0 0.6rem; }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0; font-weight: 600; }

.daynav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 1rem; }
.daynav .form--row { gap: 0.4rem; }

details summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.fix { margin-top: 0.5rem; gap: 0.35rem; min-width: 14rem; }
.fix input { min-height: 40px; font-size: 0.95rem; }

@media (max-width: 40rem) {
  .grid thead { display: none; }
  .grid tr { display: block; border-top: 1px solid var(--line); padding: 0.4rem 0; }
  .grid td { display: inline-block; border: 0; padding: 0.2rem 0.4rem; }
}

/* Browser autofill paints its own light background and hides our text colour,
 * so a saved (possibly wrong) password showed as an empty white box and staff
 * couldn't see it was there. Keep autofilled fields in the theme and outline
 * them so they are noticed. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  box-shadow: 0 0 0 1000px var(--bg) inset;
  border-color: var(--purple);
}

/* -- screens page -------------------------------------------------------- *
 * Live previews are the real display pages in a 16:9 frame. The displays are
 * sized in vw/vh, so a small frame shows the whole layout, just smaller. */

.section-h { margin: 1.4rem 0 0.6rem; }
.previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.preview { margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.preview figcaption { display: flex; flex-direction: column; gap: 0.1rem; }
.preview__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #07080c;
  border: 3px solid #1d2130;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.6);
}
.preview__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }

.screen-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; }
.screen-card { display: flex; flex-direction: column; gap: 0.6rem; margin: 0; }
.screen-card__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.screen-card h3 { margin: 0; font-size: 1.1rem; }
.screen-card p { margin: 0; }

.choose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
.choose__btn {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.choose__btn:hover { border-color: var(--accent); }
.choose__btn.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tv-url { word-break: break-all; background: var(--bg); padding: 0.5rem 0.6rem; border-radius: 8px; user-select: all; }
.tick--inline { padding: 0.1rem 0 0.3rem; font-size: 0.9rem; }

/* Staff Timing page: live laps. A new row flashes once; non-laps are dimmed. */
@keyframes row-new { from { background: color-mix(in srgb, var(--green) 28%, var(--card)); } to { background: transparent; } }
tr.row-new td { animation: row-new 1.6s ease-out; }
tr.row-muted td { color: var(--muted); }
td.warn { color: #b06f00; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { tr.row-new td { animation: none; } }

/* Staff pages on a phone: wide tables scroll inside their panel, never the page. */
.staff .panel { overflow-x: auto; }

/* Today's races on Race links. */
.race-card { border-top: 1px solid var(--line); padding: 0.8rem 0; }
.race-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.4rem; }
.race-card .btns form { display: inline; }
/* Cancel race: top right of each queued race card (user, 26/11/2026). */
.race-cancel { margin-left: auto; }
.rc-card__head:has(.race-cancel) { justify-content: flex-start; }

/* Race control: one landscape PC; the table is the main thing on screen. */
.control__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(16rem, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .control__grid { grid-template-columns: minmax(0, 1fr); } }
.control__head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.control__head h2 { margin: 0; }
.clock { text-align: center; padding: 0.4rem 1rem; border: 1px solid var(--line); border-radius: 12px; }
.clock__label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.clock__value { font-family: var(--mono); font-size: 2.2rem; font-weight: 600; }
.clock--up { border-color: #b4231a; }
.clock--up .clock__value { color: #b4231a; font-size: 1.4rem; }
.btn--big-ctl { min-height: 56px; font-size: 1.1rem; padding: 0.6rem 1.4rem; }
.control__table td.big { font-size: 1.25rem; font-weight: 600; }
.control__table td.kart-cell { font-size: 1.15rem; font-weight: 600; }
.control__actions { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.control__actions .btn { min-height: 40px; padding: 0.3rem 0.7rem; }
.new-race { margin-top: 1rem; }

/* Website results: the signed-in driver's own rows stand out. */
tr.mine td { background: color-mix(in srgb, var(--green) 14%, var(--card)); }

/* Race result sheet: A4 portrait, modern, prints in colour or black and white.
 * Built to match the venue's WinTime printout's content (photos, 14/11/2026). */
body.sheet-page { background: #e9ebf0; color: #111827; margin: 0; padding: 16px; }
.sheet-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  max-width: 210mm; margin: 0 auto 12px; color: #111827; }
.sheet-tools a { color: #111827; }
.sheet {
  box-sizing: border-box; width: 100%; max-width: 210mm; min-height: 297mm; margin: 0 auto;
  background: #fff; color: #111827; padding: 12mm 12mm 10mm;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-size: 11px; line-height: 1.4;
  box-shadow: 0 6px 24px rgba(17, 24, 39, 0.15);
  display: flex; flex-direction: column; gap: 4.5mm;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.sheet h1, .sheet h2, .sheet p { margin: 0; }
.sheet__band { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  background: #111827; color: #fff; padding: 4mm 6mm; border-radius: 3mm; }
.sheet__brand { font-weight: 900; letter-spacing: 0.12em; font-size: 15px; }
.sheet__x { color: #e1251b; }
.sheet__contact { font-size: 10.5px; opacity: 0.85; }
.sheet__hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm;
  border-bottom: 2px solid #111827; padding-bottom: 4mm; }
.sheet__eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: #e1251b; font-weight: 800; }
.sheet__name { font-size: 34px; font-weight: 900; line-height: 1.05; letter-spacing: -0.01em; word-break: break-word; }
.sheet__meta { color: #4b5263; margin-top: 1mm; }
.sheet__place { text-align: center; background: #e1251b; color: #fff; border-radius: 3mm; padding: 2mm 6mm; min-width: 26mm; }
.sheet__place span { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em; }
.sheet__place b { display: block; font-size: 28px; line-height: 1.1; }
.sheet__place small { font-size: 10px; }
.sheet__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; }
.stile { border: 1px solid #d9dce3; border-radius: 3mm; padding: 2.5mm 3mm; }
.stile span { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: #5b6270; }
.stile b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.stile small { color: #5b6270; font-size: 9.5px; }
.stile--best { border-color: #7c3aed; background: #f5f0ff; }
.stile b.record { display: inline; font-size: 10px; color: #e1251b; }
.stile--best b { color: #6d28d9; }
.sheet__cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 6mm; flex: 1; }
.sheet__block { margin-bottom: 4mm; }
.sheet__block h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; border-bottom: 1px solid #d9dce3;
  padding-bottom: 1mm; margin-bottom: 2mm; }
.lapgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1mm 2mm;
  font-variant-numeric: tabular-nums; }
.lapgrid li { display: flex; gap: 1.5mm; align-items: baseline; padding: 0.6mm 1mm; border-radius: 1.5mm; }
.lapgrid li span { color: #8a91a0; font-size: 9px; min-width: 4mm; text-align: right; }
.lapgrid li.is-slow { color: #e1251b; }
.lapgrid li.is-best { background: #7c3aed; color: #fff; font-weight: 600; }
.lapgrid li.is-best span { color: #e9ddff; }
.sheet__top3 { margin-top: 2mm; }
.muted-print { color: #5b6270; }
.chart { width: 100%; height: auto; display: block; }
.legend { font-size: 9.5px; color: #5b6270; display: flex; gap: 2mm 3mm; align-items: center; flex-wrap: wrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot--best { background: #7c3aed; }
.dot--slow { background: #e1251b; }
.dash { display: inline-block; width: 14px; border-top: 1px dashed #e1251b; }
.sheet__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet__table th { text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: #5b6270;
  padding: 0.8mm 1mm; border-bottom: 1px solid #d9dce3; }
.sheet__table td { padding: 0.6mm 1mm; border-bottom: 1px solid #f0f1f4; font-size: 10.5px; }
.sheet__table tr.gap td { text-align: center; color: #8a91a0; padding: 0; border: 0; }
.h2-note { float: right; text-transform: none; letter-spacing: 0; font-weight: 400; color: #5b6270; }
.sheet__table tr.is-me td { background: #fde8e7; font-weight: 800; }
.sheet__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2mm 6mm; font-size: 9px; color: #5b6270;
  border-top: 1px solid #d9dce3; padding-top: 2mm; }
@media (max-width: 700px) {
  .sheet { min-height: 0; padding: 16px; }
  .sheet__tiles { grid-template-columns: repeat(2, 1fr); }
  .sheet__cols { grid-template-columns: 1fr; }
  .lapgrid { grid-template-columns: repeat(3, 1fr); }
  .sheet__name { font-size: 26px; }
}
@media print {
  @page { size: A4 portrait; margin: 0; }
  body.sheet-page { background: #fff; padding: 0; }
  .sheet-tools { display: none; }
  .sheet { box-shadow: none; max-width: none; width: 210mm; height: 297mm; min-height: 0; overflow: hidden; }
}
.top3 { margin: 0.4rem 0 0; padding-left: 1.4rem; font-size: 1.1rem; }
.top3 li { margin: 0.2rem 0; }

/* Race control v2 (14/11/2026): full width for the racing PC, one line per kart. */
.wrap--full { max-width: 1680px; padding-left: clamp(12px, 2vw, 32px); padding-right: clamp(12px, 2vw, 32px); }
.rc__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .rc__grid { grid-template-columns: minmax(0, 1fr); } }
.rc__main, .rc__side { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.rc__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .rc__bar { grid-template-columns: 1fr; } }
.rc__eyebrow { margin: 0; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rc__title h1 { margin: 2px 0; font-size: 1.6rem; line-height: 1.15; }
.rc__state { margin: 0; color: var(--muted); }
.rc__clock { text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 18px; min-width: 150px; }
.rc__clock span { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rc__clock b { font-family: var(--mono); font-size: 2.3rem; line-height: 1.1; }
.rc__clock.is-up { border-color: #e1251b; }
.rc__clock.is-up b { color: #ff5a4f; font-size: 1.3rem; }
.rc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; white-space: nowrap; }
.rc-btn:hover { filter: brightness(1.08); }
.rc-btn--flag { background: #fff; color: #111; min-height: 56px; font-size: 1.1rem; }
.rc-btn--go { background: var(--green); color: #04110a; min-height: 56px; font-size: 1.05rem; }
.rc-btn--wide { width: 100%; }
.rc__add { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 8px; margin: 14px 0 4px; }
.rc input, .rc select { min-height: 44px; min-width: 0; width: 100%; box-sizing: border-box; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 0.95rem; }
.rc__tablewrap { overflow-x: auto; margin-top: 10px; }
.rc__table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rc__table th { text-align: left; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rc__table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.rc__table tbody tr:hover td { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.rc__table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rc__table .pos { font-weight: 700; font-size: 1.1rem; width: 2.5em; }
.rc__table .kart { display: inline-block; min-width: 2.2em; text-align: center; padding: 3px 6px; border-radius: 8px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-family: var(--mono); }
.rc__table .who b { display: block; }
.rc__table .who small { color: var(--muted); font-family: var(--mono); }
.rc__table .who.none { color: #ff6b61; font-weight: 600; }
.rc__table .onlap { font-weight: 700; font-size: 1.15rem; }
.rc__table .done { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.rc__table .warn-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fbbf24; color: #1a1300;
  font-weight: 600; font-size: 0.8rem; }
.rc__right { text-align: right; }
.rc__ctl { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.rc-mini { min-height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent;
  color: var(--ink); font-weight: 600; font-size: 0.82rem; cursor: pointer; white-space: nowrap; }
.rc-mini:hover { border-color: var(--ink); }
.rc-mini--warn { border-color: #b8860b; color: #fbbf24; }
.rc-mini--pen { border-color: #b4231a; color: #ff6b61; }
.rc select.rc-mini { width: auto; min-height: 34px; padding: 0 8px; font-size: 0.82rem; }
.rc__help { margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); }
.rc__side h2 { margin: 0 0 12px; font-size: 1.05rem; }
.rc-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: var(--bg); }
.rc-card--new { background: transparent; border-style: dashed; }
.rc-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.rc-card__head b { font-size: 1.02rem; }
.rc-card__head span { color: var(--muted); font-size: 0.82rem; }
.rc-card__warn { margin: 0 0 8px; color: #ff6b61; font-size: 0.85rem; font-weight: 600; }
.rc-card__list { list-style: none; margin: 0 0 8px; padding: 0; font-size: 0.9rem; }
.rc-card__list li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.rc-card__list span { display: inline-block; min-width: 4.2em; color: var(--muted); font-family: var(--mono); }
.rc-stack { display: flex; flex-direction: column; gap: 8px; }
.rc-row { display: flex; gap: 8px; }
.rc-row > * { flex: 1; }
.rc-row .rc-btn { flex: 0 0 auto; }
.rc-row .rc-min { flex: 0 0 76px; }

/* Add-a-driver and new-race rows on Race links: every box wide enough to read. */
.fieldrow { display: grid; gap: 8px; margin: 10px 0; align-items: center; }
.fieldrow--add { grid-template-columns: minmax(14rem, 2fr) minmax(9rem, 1fr) auto; }
/* Reception has no kart box any more (27/11/2026): the driver box and the button only. */
.fieldrow--add:not(:has(select)) { grid-template-columns: minmax(14rem, 1fr) auto; }
.fieldrow--new { grid-template-columns: minmax(12rem, 1fr) minmax(12rem, 1.4fr) 5rem auto; }
@media (max-width: 760px) { .fieldrow--add, .fieldrow--new { grid-template-columns: 1fr; } }
.fieldrow input, .fieldrow select { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; }

/* Driver type-ahead: a list under the box while typing. */
.picker-wrap { position: relative; }
.picker { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px;
  list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); max-height: 320px; overflow-y: auto; }
.picker li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between;
  gap: 10px; align-items: center; }
.picker li:hover, .picker li.is-active { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.picker li b { display: block; }
.picker li small { color: var(--muted); font-family: var(--mono); }
.picker li .tag { font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.picker li .tag--ok { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
.picker li .tag--no { background: color-mix(in srgb, #ff6b61 20%, transparent); color: #ff6b61; }
.picker li.is-blocked { cursor: not-allowed; opacity: 0.75; }
.picker li.picker__empty { cursor: default; color: var(--muted); }
.picked { margin-top: 4px; font-size: 0.82rem; color: var(--green); }

/* Race control: a queued driver's kart and remove button. */
.rc-card__list li { display: flex; align-items: center; gap: 6px; }
.rc-entry { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.rc-entry__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-assign { display: flex; gap: 6px; align-items: center; }
.rc-assign input { min-height: 34px; width: 13rem; }

.note--warn { background: color-mix(in srgb, #fbbf24 12%, var(--card)); border: 1px solid color-mix(in srgb, #fbbf24 45%, var(--line)); }
.pending-offer p { margin: 0 0 6px; }
.rc .pending-offer select, .pending-offer select { min-height: 44px; }

/* Queue and check lap on Race control. */
.rc-btn--out { background: transparent; color: var(--green); border: 2px solid var(--green); min-height: 56px; font-size: 1.05rem; }
.rc__actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.rc-place { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; height: 1.6em;
  border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 0.8rem; margin-right: 4px; }
.rc-out { color: var(--green); }
.rc-move { display: flex; gap: 6px; margin-bottom: 8px; }
.rc-check { margin: 14px 0; padding: 14px; border: 2px solid var(--green); border-radius: 12px; }
.rc-check h2 { margin: 0 0 4px; font-size: 1.1rem; }
.rc-check__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.rc-check__list li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.rc-check__list li.is-seen { border-color: var(--green); }
.rc-check__list .tick { font-size: 1.3rem; width: 1.4em; text-align: center; }
.rc-check__list small { display: block; color: var(--muted); }

/* Race timing panel (Race links and Race control): its own section with one tile per figure. */
.outlook--panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 10px;
  margin: 14px 0; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.outlook--panel[hidden] { display: none; }
.outlook--panel .outlook__title { grid-column: 1 / -1; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); }
.outlook--panel .outlook__item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 7%, var(--card)); border: 1px solid var(--line); }
.outlook--panel .outlook__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.outlook--panel .outlook__value { font-size: 1.6rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.outlook--panel .outlook__sub { font-size: 0.85rem; color: var(--muted); }

/* "Runs past closing": clear but not shouting. */
.note--closing { margin: 10px 0 0; padding: 10px 14px; border-radius: 8px; font-size: 1rem; font-weight: 600;
  color: #ffb4ac; background: color-mix(in srgb, #ef4444 16%, var(--card)); border: 1px solid #ef4444; border-left-width: 6px; }

/* -- bookings (staff) ---------------------------------------------------- */

.bk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; }
.bk-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.bk-list li { display: grid; grid-template-columns: 3.6rem 1fr; gap: 0.6rem; align-items: start; }
.bk-time { font-family: var(--mono); font-weight: 600; padding-top: 0.75rem; }
.bk-open > span:last-child { padding: 0.7rem 0.9rem; border-radius: 10px; border: 1px dashed var(--line);
  color: var(--green); font-weight: 600; }
.bk-card { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.7rem 0.9rem; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--purple); color: var(--ink);
  text-decoration: none; min-height: 44px; }
.bk-card:hover { border-color: var(--purple); }
.bk-title { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.bk-line { font-size: 0.95rem; }
.bk-races { color: var(--muted); }
.bk-due { color: #b06f00; }
.bk-item--off .bk-card { opacity: 0.6; text-decoration: line-through; border-left-color: var(--line); }
.bk-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.6rem 1rem; }
.bk-summary { border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem; margin: 0.6rem 0; }
.bk-summary p { margin: 0.2rem 0; }
.bk-code { font-size: 2.4rem; font-weight: 600; letter-spacing: 0.12em; margin: 0.4rem 0 0.8rem; user-select: all; }
.bk-message { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; margin-bottom: 0.6rem; }
.bk-void td { text-decoration: line-through; color: var(--muted); }
.bk-void td:last-child { text-decoration: none; }
.bk-history { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.6rem 0.8rem; }
.bk-grid label { display: flex; flex-direction: column; gap: 0.25rem; }
.bk-off { opacity: 0.7; }
#bk-new [hidden] { display: none !important; }  /* .tick and .form set display, which beats the hidden attribute */

/* -- hover descriptions: hover over a title, label or menu item to read what it does -- */
:has(> .tip) { position: relative; cursor: help; }
.tip { display: contents; }
.tip::after { content: attr(data-tip); position: absolute; z-index: 100; top: calc(100% + 6px); left: 0;
  width: max-content; max-width: min(19rem, 80vw); padding: 0.55rem 0.7rem; border-radius: 8px;
  background: var(--dark); color: #eef0f6; border: 1px solid var(--purple); box-shadow: 0 6px 18px rgb(0 0 0 / 35%);
  font: 400 0.85rem/1.35 system-ui, sans-serif; text-align: left; text-transform: none; letter-spacing: 0;
  font-style: normal; white-space: normal; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.12s 0.25s; }
.tip--end::after { left: auto; right: 0; }
:has(> .tip):hover > .tip::after { opacity: 1; visibility: visible; }
.search { margin: 0.4rem 0 0; }
.search + .hint { margin: 0.5rem 0 1.2rem; }  /* the hint was pulled up against the search box */
.bk-views { display: inline-flex; gap: 0.3rem; margin-left: auto; }
.bk-views b.btn { cursor: default; }
.bk-item--off .badge { text-decoration: none; }
.bk-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; }
.bk-day { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem; min-width: 0; }
.bk-day--closed { opacity: 0.55; }
.bk-day--today { border-color: var(--purple); }
.bk-day__head { display: flex; flex-direction: column; gap: 0.15rem; color: var(--ink); text-decoration: none; min-height: 44px; }
.bk-fill { font-weight: 600; font-size: 0.85rem; }
.bk-fill--low { color: var(--green); }
.bk-fill--mid { color: #d98a00; }
.bk-fill--high { color: var(--accent); }
.bk-meter { display: block; height: 6px; border-radius: 3px; background: var(--line); margin: 0.4rem 0; overflow: hidden; }
.bk-meter__bar { display: block; height: 100%; background: currentColor; width: 0; }
.bk-w10 { width: 10%; } .bk-w20 { width: 20%; } .bk-w30 { width: 30%; } .bk-w40 { width: 40%; } .bk-w50 { width: 50%; }
.bk-w60 { width: 60%; } .bk-w70 { width: 70%; } .bk-w80 { width: 80%; } .bk-w90 { width: 90%; } .bk-w100 { width: 100%; }
.bk-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.bk-chip { display: block; padding: 0.35rem 0.45rem; border-radius: 6px; border-left: 3px solid var(--purple);
  background: var(--bg); color: var(--ink); text-decoration: none; font-size: 0.85rem; overflow-wrap: anywhere; }
.bk-chip--off { opacity: 0.55; text-decoration: line-through; border-left-color: var(--line); }
@media (max-width: 900px) {  /* tablet portrait / phone: one row per day */
  .bk-week { grid-template-columns: 1fr; }
  .bk-day { display: grid; grid-template-columns: 9rem 1fr; gap: 0 0.6rem; align-items: start; }
  .bk-meter { grid-column: 1; }
  .bk-chips { grid-column: 2; grid-row: 1 / span 2; }
}
.pr-text { white-space: pre-wrap; overflow-wrap: anywhere; }
input[type="file"] { min-height: 48px; padding: 0.5rem 0; font: inherit; }

/* -- phones (user, 15/11/2026: "fix the mobile sizing") ----------------- */
/* A hidden description must take no room: an invisible box off the right edge
 * made every page wider than the phone, so the whole page scrolled sideways. */
.tip::after { display: none; }
:has(> .tip):hover > .tip::after { display: block; }
html, body { overflow-x: clip; }

@media (max-width: 640px) {
  /* On a phone the description sits at the bottom of the screen, full width. */
  .tip::after { position: fixed; top: auto; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto; max-width: none; }

  /* Header: brand on one line, the menu wraps onto as many lines as it needs. It used to be one row
     you swiped sideways with the scrollbar hidden, so pages at the end (Audit) looked missing (18/11/2026). */
  .top { padding: 0.55rem 0.75rem 0.55rem 2.2rem; gap: 0.35rem; }
  .top::before { width: 1.4rem; }
  .top .nav { flex-wrap: wrap; width: 100%; gap: 0 1.1rem; padding-bottom: 0.25rem; }
  .top .nav::-webkit-scrollbar { display: none; }
  .top .nav > * { flex: none; white-space: nowrap; }
  .top .nav a, .top .nav .link { display: inline-block; padding: 0.45rem 0; }
  .nav__who { font-size: 0.78rem; }

  .wrap { padding: 0.9rem 0.75rem 1.5rem; }
  .panel { padding: 0.85rem 0.8rem; }
  h1 { font-size: 1.35rem; line-height: 1.2; }
  h2 { font-size: 1.1rem; }

  /* Buttons: still easy to tap (44 px), less padding. */
  .btn { min-height: 44px; padding: 0.5rem 0.9rem; font-size: 0.95rem; }
  .btn--small { min-height: 44px; padding: 0.4rem 0.75rem; }
  .btn--big { min-height: 50px; }

  /* Day navigation: the date on its own row, then back / forward / today side by side. */
  .daynav { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .daynav .form--row { order: -1; flex: 1 1 100%; gap: 0.4rem; }
  .daynav input[type="date"] { flex: 1; min-width: 0; padding: 0.4rem 0.6rem; }
  .daynav > a.btn { flex: 1 1 0; min-width: 0; padding: 0.4rem 0.4rem; font-size: 0.85rem; white-space: nowrap; }
  .daynav .bk-views { flex: 1 1 100%; margin-left: 0; }
  .daynav .bk-views > * { flex: 1; }

  /* Booking pages */
  .bk-head { gap: 0.5rem; }
  .bk-head .btns { width: 100%; }
  .bk-head .btns .btn { flex: 1 1 auto; }
  .bk-list li { grid-template-columns: 3rem minmax(0, 1fr); gap: 0.4rem; }
  .bk-time { font-size: 0.85rem; }
  .bk-card { padding: 0.6rem 0.7rem; }
  .bk-code { font-size: 1.9rem; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .facts dd { margin-bottom: 0.5rem; }
  .bk-day { grid-template-columns: 6.5rem minmax(0, 1fr); }

  /* Tables that turn into cards on a phone: forms inside them get full width. */
  .grid td:has(> form.form--row), .grid td:has(> form .form--row) { display: block; }
  .grid .form--row { flex-wrap: wrap; }
  .grid .form--row input, .grid .form--row select { flex: 1 1 6rem; min-width: 6rem; width: auto; }
  .grid .form--row .btn { flex: 0 0 auto; }
  .grid .form--row select { min-width: 8rem; }

  .outlook--panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

  /* Race control */
  .wrap--full { padding-left: 0.6rem; padding-right: 0.6rem; }
  .rc__main, .rc__side { padding: 12px; border-radius: 12px; }
  .rc__bar { gap: 10px; }
  .rc__title h1 { font-size: 1.3rem; }
  .rc__clock b { font-size: 1.9rem; }
  .rc__add { grid-template-columns: minmax(0, 1fr) minmax(0, 7.5rem); }
  .rc__add .rc-btn { grid-column: 1 / -1; }
  .rc-btn--out, .rc-btn--go, .rc-btn--flag { width: 100%; white-space: normal; }
  .rc__actions { display: flex; flex-direction: column; gap: 8px; }
  .rc__actions form { width: 100%; }
}

/* -- public website (15/11/2026): the look of xtremeindoorkarting.co.za --------
 * Black diamond-plate background, Xtreme red, tall condensed capitals, slanted
 * red buttons and the venue's own photos. Dark only, like the venue's site.
 * Scoped to body.pub so the staff pages keep their own look. */
body.pub {
  --bg: #0b0b0d; --card: #16171b; --ink: #f2f2f4; --muted: #a7abb5; --line: #2a2c33;
  --accent: #ff3b30; --x-red: #e3141b; --green: #3ddc84; --purple: #b98bff;
  --x-cond: "Bahnschrift Condensed", "Bahnschrift SemiCondensed", "Roboto Condensed", "Arial Narrow", "sans-serif-condensed", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.028) 0 2px, transparent 2px 16px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.028) 0 2px, transparent 2px 16px);
  color: var(--ink);
  overflow-x: clip;
}
.x-container { max-width: 72rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.x-red { color: var(--x-red); }
.x-muted { color: var(--muted); }
.x-small { font-size: .88rem; color: var(--muted); }

/* top strip and header */
.x-strip { background: #000; font-size: .82rem; }
.x-strip__in { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; padding-block: .4rem; }
.x-strip a { color: #fff; text-decoration: none; }
.x-strip a::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .4rem; background: var(--x-red); transform: skewX(-20deg); }
.x-strip__hours { color: var(--muted); margin-left: auto; }
.x-head { position: sticky; top: 0; z-index: 20; background: rgba(8,8,10,.94); border-bottom: 3px solid var(--x-red); backdrop-filter: blur(6px); }
.x-head__in { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; }
.x-logo { display: inline-flex; flex-direction: column; line-height: .9; text-decoration: none; text-transform: uppercase; font-style: italic; flex: none; }
.x-logo__x { font-family: var(--x-cond); font-weight: 900; font-size: 1.9rem; color: var(--x-red); letter-spacing: .02em; text-shadow: 2px 2px 0 #000; }
.x-logo__rest { font-family: var(--x-cond); font-weight: 700; font-size: .78rem; color: #fff; letter-spacing: .22em; }
.x-nav { display: flex; align-items: center; gap: .2rem 1.3rem; margin-left: auto; font-family: var(--x-cond); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.x-nav a, .x-nav button { color: #fff; text-decoration: none; font: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: 0; padding: .4rem 0; cursor: pointer; white-space: nowrap; }
.x-nav a:hover, .x-nav button:hover { color: var(--x-red); }
.x-nav a[aria-current="page"] { color: var(--x-red); }
.x-nav__out { margin: 0; }
.x-head__book { flex: none; }

/* buttons */
.x-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .55rem 1.6rem; font-family: var(--x-cond); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; color: #fff !important; background: var(--x-red); }
.x-btn--slant { clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-left: 1.9rem; padding-right: 1.9rem; }
.x-btn:hover { background: #ff2a22; }
.x-btn--ghost { background: transparent; border: 2px solid #fff; }
.x-btn--ghost:hover { background: #fff; color: #000 !important; }
.x-btn--big { min-height: 54px; font-size: 1.15rem; }
.x-btn--small { min-height: 40px; padding: .35rem 1.3rem; font-size: .9rem; }
.x-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* headings */
.x-kicker { margin: 0 0 .3rem; font-family: var(--x-cond); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; color: var(--x-red); }
.x-h1, .x-h2, .x-h3, .x-hero__h { font-family: var(--x-cond); text-transform: uppercase; font-weight: 700; letter-spacing: .01em; line-height: .98; margin: 0 0 .6rem; text-wrap: balance; }
.x-h1 { font-size: clamp(2.3rem, 7vw, 4rem); font-style: italic; }
.x-h2 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); }
.x-h3 { font-size: 1.5rem; }
.x-lead { font-size: 1.12rem; color: #d6d8de; max-width: 40rem; }

/* home hero */
.x-main { padding: 0; }
.x-hero { position: relative; isolation: isolate; min-height: min(78vh, 640px); display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.x-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; max-width: none; }
.x-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 45%, rgba(11,11,13,.97) 100%), linear-gradient(90deg, rgba(0,0,0,.6), transparent 70%); }
.x-hero__in { padding-block: 4rem 3rem; width: 100%; }
.x-hero__h { font-size: clamp(2.6rem, 9vw, 5.6rem); font-style: italic; max-width: 14ch; text-shadow: 0 3px 18px rgba(0,0,0,.6); }
.x-hero__lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 36rem; color: #e6e7eb; }
.x-hero__btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }

/* facts strip */
.x-facts { background: var(--x-red); clip-path: polygon(0 0, 100% 10px, 100% 100%, 0 calc(100% - 10px)); }
.x-facts__in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; padding-block: 1.4rem; text-align: center; }
.x-facts b { display: block; font-family: var(--x-cond); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1; font-style: italic; }
.x-facts span { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

/* sections */
.x-section { padding-block: 3.5rem 1rem; }
.x-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.4rem; }
.x-card { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.x-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; max-width: 100%; }
.x-card__body { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.x-card h3 { font-family: var(--x-cond); text-transform: uppercase; font-size: 1.6rem; line-height: 1; margin: 0; }
.x-card p { margin: 0; color: var(--muted); }
.x-card .x-btn { margin-top: auto; align-self: flex-start; }
.x-card p.x-from { color: #fff; }
.x-from b { font-family: var(--x-cond); font-size: 1.5rem; color: var(--x-red); }

.x-band { margin-top: 3rem; background: linear-gradient(100deg, #1a0a0b, #0b0b0d 60%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.x-band__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: 3rem; }
.x-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; counter-reset: st; }
.x-steps li { counter-increment: st; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: .8rem; background: rgba(255,255,255,.04); border-left: 4px solid var(--x-red); padding: .8rem 1rem; }
.x-steps li::before { content: counter(st); grid-row: span 2; font-family: var(--x-cond); font-weight: 700; font-style: italic; font-size: 2.4rem; color: var(--x-red); line-height: 1; }
.x-steps b { font-family: var(--x-cond); text-transform: uppercase; font-size: 1.2rem; }
.x-steps span { color: var(--muted); }

.x-venues { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.x-venue { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--x-red); padding: 1.2rem; min-width: 0; scroll-margin-top: 6rem; }
.x-venue h3 { font-family: var(--x-cond); text-transform: uppercase; font-size: 1.6rem; margin: 0 0 .2rem; }
.x-venue__len { color: var(--x-red); font-weight: 600; margin: 0 0 .6rem; }
.x-hours { border-collapse: collapse; width: 100%; }
.x-hours th, .x-hours td { text-align: left; padding: .4rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.x-hours td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.x-cta { margin-top: 3rem; padding-block: 3rem; text-align: center; background: var(--x-red); }
.x-cta .x-btn { background: #000; }
.x-cta .x-btn:hover { background: #222; }
.x-cta__in p { font-size: 1.15rem; }

/* inner page header */
.x-pagehead { position: relative; isolation: isolate; overflow: hidden; padding-block: 4rem 2.4rem; background: #000; }
.x-pagehead--short { padding-block: 3rem 1.8rem; }
.x-pagehead__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; max-width: none; }
.x-pagehead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(11,11,13,.95)); }
.x-stack { display: flex; flex-direction: column; gap: 1.6rem; padding-block: 2rem 3rem; }

.x-jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.x-jump a { color: #fff; text-decoration: none; border: 1px solid var(--line); padding: .45rem .9rem; font-family: var(--x-cond); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; background: var(--card); }
.x-jump a:hover { border-color: var(--x-red); }
.x-pkg { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--card); border: 1px solid var(--line); scroll-margin-top: 6rem; }
.x-pkg__img { width: 100%; height: 100%; min-height: 14rem; object-fit: cover; display: block; max-width: 100%; }
.x-pkg__body { padding: 1.4rem; min-width: 0; }
.x-prices { list-style: none; margin: 1rem 0 0; padding: 0; }
.x-prices li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .5rem 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.x-prices__what { display: flex; flex-direction: column; min-width: 0; }
.x-prices__what span { color: var(--muted); font-size: .9rem; }
.x-prices__price { text-align: right; white-space: nowrap; }
.x-prices__price b { display: block; font-family: var(--x-cond); font-size: 1.6rem; line-height: 1; color: #fff; }
.x-prices__price span { color: var(--muted); font-size: .85rem; }
.x-rules { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--x-red); padding: 1.4rem; }
.x-rules ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .4rem; }

.x-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem; align-items: center; }
.x-split__img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; max-width: 100%; }
.x-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.x-tile { background: var(--card); border: 1px solid var(--line); padding: 1.2rem; text-align: center; }
.x-tile b { display: block; font-family: var(--x-cond); font-size: 2.6rem; font-style: italic; color: var(--x-red); line-height: 1; }
.x-tile span { text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 600; }

/* booking */
.x-book { display: flex; flex-direction: column; gap: 1.2rem; padding-block: 2rem 3rem; max-width: 46rem; }
.x-panel { background: var(--card); border: 1px solid var(--line); padding: 1.4rem; }
.x-step { display: flex; align-items: center; gap: .7rem; font-family: var(--x-cond); text-transform: uppercase; font-size: 1.5rem; margin: .4rem 0; }
.x-step span { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; background: var(--x-red); color: #fff; font-style: italic; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.x-summary { margin: 0; }
.x-times { border: 0; padding: 0; margin: .4rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .5rem; }
.x-times legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.x-time { position: relative; }
.x-time input { position: absolute; opacity: 0; pointer-events: none; }
.x-time span { display: block; text-align: center; padding: .7rem 0; border: 1px solid var(--line); background: var(--bg); font-variant-numeric: tabular-nums; font-weight: 600; cursor: pointer; }
.x-time input:checked + span { background: var(--x-red); border-color: var(--x-red); }
.x-time input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.x-signin { border: 1px dashed var(--x-red); padding: 1rem; margin-top: .6rem; }
.x-ref { font-size: 1.2rem; }
.x-ref b { font-family: var(--mono); color: var(--x-red); }
.x-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1.2rem; margin: 1rem 0; }
.x-dl dt { color: var(--muted); }
.x-dl dd { margin: 0; }
.x-code { border: 2px solid var(--x-red); padding: 1rem; margin: 1rem 0; text-align: center; }
.x-code p { margin: 0; }
.x-code b { display: block; font-family: var(--mono); font-size: 2rem; letter-spacing: .15em; margin: .3rem 0; }

/* the shared form bits on the public pages */
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.choice legend { font-weight: 600; margin-bottom: .3rem; padding: 0; }
.choice__item { display: flex; align-items: center; gap: .45rem; border: 1px solid var(--line); padding: .6rem 1rem; background: var(--bg); cursor: pointer; }
.choice__item:has(input:checked) { border-color: var(--accent); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .6rem; }
.pair > .form { min-width: 0; }
.contact { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.contact .small { display: inline-block; min-width: 5.5rem; }
.pub .panel { border-radius: 0; }
.pub input, .pub select, .pub textarea { border-radius: 0; }

/* footer */
.x-foot { background: #000; border-top: 3px solid var(--x-red); padding-block: 2.4rem 1rem; }
.x-foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.6rem; }
.x-foot p { margin: 0 0 .7rem; }
.x-foot a { color: #fff; text-decoration: none; }
.x-foot a:hover { color: var(--x-red); }
.x-foot__h { font-family: var(--x-cond); text-transform: uppercase; letter-spacing: .1em; font-size: 1.05rem; color: var(--x-red); margin: 0 0 .6rem; }
.x-foot__muted { color: var(--muted); }
.x-foot__social { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; }
.x-social { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; }
.x-social-row { display: inline-flex; flex-wrap: wrap; gap: .2rem 1rem; vertical-align: middle; }
.x-social__icon { flex: none; display: block; }
.x-logo--foot { margin-bottom: .6rem; }
.x-foot__small { text-align: center; color: #6e727c; font-size: .8rem; margin: 2rem 0 0; padding-inline: 16px; }
.x-foot__small a { color: #8a8e98; }

@media (max-width: 960px) {
  .x-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-foot__grid { grid-template-columns: 1fr 1fr; }
  .x-band__in, .x-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .x-head__in { flex-wrap: wrap; gap: .4rem .8rem; }
  .x-nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: 0 1rem; padding-bottom: .1rem; }  /* wraps: a hidden sideways scroll cut items off */
  .x-nav::-webkit-scrollbar { display: none; }
  .x-head__book { margin-left: auto; }
  .x-strip__hours { display: none; }
  .x-facts__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-facts__in > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }  /* five facts: "2 indoor tracks" on its own row, then the two circuits side by side */
  .x-pkg { grid-template-columns: minmax(0, 1fr); }
  .x-pkg__img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .x-cards--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .x-cards { grid-template-columns: minmax(0, 1fr); }
  .x-foot__grid { grid-template-columns: minmax(0, 1fr); }
  .x-prices li { grid-template-columns: minmax(0, 1fr) auto; }
  .x-prices li .x-btn { grid-column: 1 / -1; justify-self: start; }
  .x-logo__x { font-size: 1.6rem; }
  .x-hero { min-height: 560px; }
}
@media (prefers-reduced-motion: reduce) { .x-head { backdrop-filter: none; } }

/* Every page fills the screen, so a short page (sign in) keeps the footer at the bottom. */
body.pub { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.pub > main { flex: 1 0 auto; width: 100%; }
/* The profile and sign-in pages inside the new look: square, condensed buttons and chips. */
.pub .wrap { padding-top: 2rem; padding-bottom: 3rem; }
.pub .btn { border-radius: 0; font-family: var(--x-cond); text-transform: uppercase; letter-spacing: .08em; background: var(--x-red); color: #fff; }
.pub .btn:hover { background: #ff2a22; }
.pub .btn--ghost { background: transparent; border: 2px solid #fff; color: #fff; }
.pub .chip { border-radius: 0; font-family: var(--x-cond); text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.pub .chip--on { background: var(--x-red); border-color: var(--x-red); color: #fff; }
.pub .chip--add { color: #ff5a4f; }
.pub .panel { border-radius: 0; }
.pub .narrow h1 { font-family: var(--x-cond); text-transform: uppercase; font-size: 2rem; font-style: italic; }

/* -- Karts page: a real table, every box wide enough to read, in/out of service at a glance -- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kart-stats__in { color: var(--green); }
.kart-stats__out { color: var(--accent); }
.kart-table { table-layout: fixed; }
.kart-table td { vertical-align: middle; }
.kart-table input, .kart-table select { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; }
.kart-table__num { width: 5.5rem; }
.kart-table__num input { font-weight: 600; text-align: center; }
.kart-table__tx { width: 10rem; }
.kart-table__status { width: 10.5rem; }
.kart-table__act { width: 11rem; }
.kart-table__btns { display: flex; gap: 0.4rem; align-items: center; }
.kart-table__btns form { margin: 0; }
.kart-status--in { border-color: color-mix(in srgb, var(--green) 55%, var(--line)); color: var(--green); font-weight: 600; }
.kart-status--out { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.kart-row--out td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
@media (max-width: 40rem) {
  .kart-table { table-layout: auto; }
  .kart-table td { display: block; width: auto; }
  .kart-table__num { padding-top: 0.6rem; }
}

/* Export: the frame that loads a driver's sheet for auto-print. Kept out of sight but still loaded,
 * so it can print (an inline style="display:none" is blocked by the page's security policy). */
.print-frame { position: absolute; width: 0; height: 0; border: 0; overflow: hidden; }
/* Race control: a driver still on a kart that is out of service (on track, or from before the fix). */
.rc-mini--off { border-color: var(--accent); color: var(--accent); font-weight: 600; }
/* Race control: the buttons wrap onto a second line instead of hiding behind a sideways scroll. */
.rc__table td:last-child { white-space: normal; }
.rc__ctl { flex-wrap: wrap; width: 12.5rem; margin-left: auto; }
.rc__table td, .rc__table th { padding-left: 6px; padding-right: 6px; }
/* Website version 1: Enquire now, walk-in label on Arrive and drive, the privacy page. */
.x-agree { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: 1rem 0; line-height: 1.4; }
.x-agree input { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; margin-top: .15rem; }
.x-walkin { white-space: nowrap; font-size: .9rem; }
.x-prose { max-width: 46rem; padding-block: 2rem 3rem; }
.x-prose p { line-height: 1.6; }
/* Availability page and the home page "today" strip (18/11/2026). */
.x-jump a[aria-current="page"] { border-color: var(--x-red); background: var(--x-red); }
.x-avail__days { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.x-avail__day { display: flex; gap: 1rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); padding: .8rem 1rem; }
.x-avail__day.is-closed { opacity: .65; }
.x-avail__date { flex: 0 0 5.2rem; display: flex; flex-direction: column; }
.x-avail__date b { font-family: var(--x-cond); text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; }
.x-avail__date span { color: var(--muted); font-size: .9rem; }
.x-avail__times { display: flex; flex-wrap: wrap; gap: .4rem; }
.x-slot { display: inline-block; padding: .35rem .7rem; font-size: .95rem; font-variant-numeric: tabular-nums; border: 1px solid var(--line); white-space: nowrap; }
.x-slot--open { border-color: #2e9e5b; color: #9be3b6; background: rgba(46, 158, 91, .12); }
.x-slot--busy { border-color: var(--x-red); color: #ffb3ad; background: rgba(226, 35, 26, .12); }
.x-slot--closed { color: var(--muted); }
.x-today { background: var(--card); border-bottom: 1px solid var(--line); }
.x-today__in { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; padding-block: .9rem; }
.x-today__venue { display: flex; flex-direction: column; text-decoration: none; color: #fff; border-left: 4px solid var(--line); padding-left: .7rem; }
.x-today__venue b { font-family: var(--x-cond); text-transform: uppercase; letter-spacing: .05em; }
.x-today__venue span { color: var(--muted); font-size: .95rem; }
.x-today__venue--open { border-left-color: #2e9e5b; }
.x-today__venue--later { border-left-color: #d9a400; }
.x-today__venue--closed { border-left-color: var(--x-red); }
.x-today__more { margin-left: auto; color: #fff; }
@media (max-width: 560px) { .x-avail__day { flex-direction: column; gap: .4rem; } .x-today__more { margin-left: 0; } }
/* Staff: Sign up a customer at Reception (18/11/2026). */
.bk-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.6rem 1rem; margin-bottom: .4rem; }
.su-text { margin: .4rem 0 .8rem; }
.su-text p { white-space: pre-line; max-height: 14rem; overflow-y: auto; border: 1px solid var(--line); padding: .6rem .8rem; }
.su-cta { display: inline-block; margin: .2rem 0 .8rem; }
/* Suspected crash: a lap > 10 s slower than the driver's usual lap (label only, 18/11/2026). */
.crash-badge { display: inline-block; margin-top: .15rem; padding: .05rem .35rem; font-size: .72rem; font-weight: 600; color: #1b1b1f; background: #ffb020; border-radius: 3px; white-space: nowrap; }
.crash { font-style: normal; font-size: .7em; font-weight: 600; }
/* Race control's driver search: compact, one line per driver, at most 5, never covering the race table. */
.picker--compact { padding: 2px; max-height: 11.5rem; overflow-y: auto; }
.picker--compact li { padding: 4px 8px; font-size: .9rem; align-items: baseline; }
.picker--compact li div { display: flex; gap: .5rem; align-items: baseline; min-width: 0; }
.picker--compact li b { display: inline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker--compact li small { font-size: .78rem; }
/* Manager Overview and Staff logins (18/11/2026). */
.ov-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .7rem; margin: 1rem 0; }
.ov-tile { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: inherit; text-decoration: none; }
.ov-tile:hover { border-color: var(--accent); }
.ov-tile span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.ov-tile b { font-size: 1.35rem; line-height: 1.2; }
.ov-tile small { color: var(--muted); }
.ov-tile--ok { border-left: 4px solid var(--green); }
.ov-tile--bad { border-left: 4px solid #ff6b61; }
.ov-warn { color: #ffb020 !important; font-weight: 600; }
.ov-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; }
.ov-list { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-direction: column; gap: .35rem; }
.ho { border: 2px solid #ffb020; }
.ho-dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: .6rem 0; }
.ho-dl dt { color: var(--muted); }
.ho-big { font-size: 1.3rem; letter-spacing: .06em; }
.lg-inline { margin: 0; }
.lg-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.lg-actions form { margin: 0; }
tr.is-off td { opacity: .55; }
.mg-drop { border: 2px dashed #ff6b61; }
/* Race again in the top bar, shown once the chequered flag is out (18/11/2026). */
.rc-btn--again { background: transparent; color: #ffb020; border: 2px solid #ffb020; min-height: 56px; font-size: 1.05rem; }
@media (max-width: 760px) { .rc-btn--again { width: 100%; white-space: normal; } }
/* Home page cover fills the screen below the header; race types follow, then today's availability (18/11/2026). */
.x-cover { display: flex; flex-direction: column; min-height: calc(100vh - var(--cover-top, 90px)); min-height: calc(100svh - var(--cover-top, 90px)); }
.x-cover .x-hero { flex: 1 1 auto; min-height: 0; }
.x-cover .x-facts { flex: none; }

/* Race control (23/11/2026): the next race sits in the middle with Start race (no check lap),
 * and the rest of the queue is listed under the table instead of down the side. */
.rc-next { margin: 14px 0; }
.rc-card--next { border: 2px solid var(--green); background: var(--card); padding: 16px; }
.rc-card--next .rc-card__head b { font-size: 1.15rem; }
.rc-card--next .rc-card__list { font-size: 1rem; }
.rc-queue { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.rc-queue h2 { margin: 0 0 10px; font-size: 1.05rem; }
.rc-queue__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; align-items: start; }
.rc-queue__list .rc-card { margin-bottom: 0; }
@media (max-width: 640px) { .rc-queue__list { grid-template-columns: minmax(0, 1fr); } }

/* Race control (23/11/2026): each driver's own time on track, minutes picker, profile links. */
.rc__table td.drive-time { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.rc__table td.drive-time.is-low { color: #fbbf24; }
.rc__table td.drive-time.is-up { color: #ff6b61; }
.rc__table .who a.who__link { display: block; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); }
.rc__table .who a.who__link:hover { text-decoration-color: currentColor; }
a.rc-entry__name { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); }
.rc-mins { margin: 0; }
.rc-mins select.rc-mini { width: auto; }
.rc__add { grid-template-columns: minmax(0, 1fr) 150px 110px auto; }
@media (max-width: 640px) { .rc__add { grid-template-columns: minmax(0, 1fr) minmax(0, 7.5rem); } }
.rc-row .rc-min { flex: 0 0 96px; }

/* Race control: drag a queued driver to another race (23/11/2026). */
.rc-drag { cursor: grab; color: var(--muted); font-size: 1.1rem; padding: 0 4px; user-select: none; }
li[data-entry] { cursor: default; }
li[data-entry].is-dragging { opacity: 0.45; }
.rc-card.is-drop { outline: 3px dashed var(--green); outline-offset: 2px; }
.rc-card__list span.rc-drag { min-width: 0; }

/* Booking emails on the staff booking page (24/11/2026). */
.bk-emails { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.bk-email { padding: .45rem .7rem; border-radius: 8px; border-left: 4px solid var(--line); background: var(--bg); font-size: .92rem; }
.bk-email--ok { border-left-color: var(--green); }
.bk-email--wait { border-left-color: #d98a00; }
.bk-email--err { border-left-color: var(--accent); }
.bk-email-form { gap: .4rem; margin-bottom: .2rem; }

/* Equal-width digits wherever numbers line up (times, codes, karts). */
.mono, .num, .rc__table, .laps, .grid, .pb__time, .stats__value, .clock__value, .rc__clock b, .bk-time { font-variant-numeric: tabular-nums; }

/* Easier to read (user, 24/11/2026): upright text everywhere; italics only on the Xtreme logo. */
body *:not([class*="logo"]):not([class*="brand"]) { font-style: normal !important; }
[class*="logo"], [class*="brand"] { font-style: italic; }

/* -- Colour language for staff (24/11/2026) ------------------------------------------------------
 * green = do this next, amber = needs attention, red = careful (changes or removes something),
 * blue = not paid yet, grey = finished or cancelled. Used the same way on every staff page. */
.staff { --go: #16a34a; --go-ink: #ffffff; --warn: #f59e0b; --warn-ink: #1a1300; --info: #3b82f6; --unpaid: #3b82f6; --off: #6b7280; }
.btn--go { background: var(--go); color: var(--go-ink); }
.btn--go:hover { filter: brightness(1.1); }
.btn--warn { background: var(--warn); color: var(--warn-ink); }
.btn--info { background: transparent; color: var(--ink); border: 2px solid var(--info); }
.btn--info:hover { background: color-mix(in srgb, var(--info) 18%, transparent); }
.btn--danger-line { background: transparent; color: #ff6b61; border: 1px solid #b4231a; }
.btn-back { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem 1rem; margin: 0 0 .6rem;
  border-radius: 10px; border: 2px solid var(--info, #3b82f6); background: color-mix(in srgb, var(--info, #3b82f6) 14%, var(--card));
  color: var(--ink); font-weight: 600; text-decoration: none; font-size: 1rem; }
.btn-back:hover { background: color-mix(in srgb, var(--info, #3b82f6) 28%, var(--card)); }
.bk-card--paid { border-left-color: var(--go); }
.bk-card--unpaid { border-left-color: var(--unpaid); background: color-mix(in srgb, var(--unpaid) 9%, var(--card)); }
.bk-card--off { border-left-color: var(--off); opacity: .65; }
.bk-due { color: var(--warn); }
.badge--wait { background: color-mix(in srgb, var(--warn) 22%, var(--card)); color: var(--warn); }
.note--warn { border-left: 6px solid var(--warn, #f59e0b); }
.note--ok { border-left: 6px solid var(--go, #16a34a); }
.note--err { border-left: 6px solid #ef4444; }

/* Team relay staff page (24/11/2026). */
.relay__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 14px; }
.relay__bar h1 { margin: 2px 0; }
.relay__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.relay__setup { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.relay__tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; }
.relay__count { align-items: center; gap: 8px; }
.relay__count select { width: auto; min-height: 44px; }
.relay__teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.relay-team { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--team); border-radius: 14px; padding: 12px; }
.relay-team__head { margin-bottom: 8px; }
.relay-team__form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.relay-team__name-input { flex: 1 1 8rem; min-height: 40px; font-weight: 600; }
.relay-team__title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.relay-team__pos { display: inline-flex; align-items: center; justify-content: center; min-width: 2em; height: 2em; border-radius: 999px; background: var(--team); color: #fff; font-weight: 700; }
.relay-team__title .kart { margin-left: auto; padding: 2px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 700; }
.relay-team__nums { display: flex; gap: 14px; margin-top: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.relay-team__nums b { color: var(--ink); font-size: 1.2rem; }
.relay-team__drivers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.relay-team__drivers li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--bg); }
.relay-team__drivers li.is-driving { outline: 2px solid var(--go, #16a34a); }
.relay-team__drivers .rc-entry__name { flex: 1; font-weight: 600; }
.relay-driver__stats { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.relay-driver__stats b.is-team-best, b.is-team-best { color: var(--purple); }

/* Team colours as classes (the staff pages' security policy blocks inline styles). */
.team-1 { --team: #ef4444; }
.team-2 { --team: #3b82f6; }
.team-3 { --team: #22c55e; }
.team-4 { --team: #f59e0b; }
.team-5 { --team: #a855f7; }
.team-6 { --team: #14b8a6; }
.team-7 { --team: #ec4899; }
.team-8 { --team: #eab308; }
.team-9 { --team: #6366f1; }
.team-10 { --team: #f97316; }
.relay-team__drivers li { flex-wrap: wrap; row-gap: 4px; }
.relay-team__drivers .rc-entry__name { flex: 1 1 100%; overflow: visible; white-space: normal; }
.relay-team__drivers .relay-driver__stats { flex: 1; }

/* Overview with a section sidebar (user, 25/11/2026, built to the approved mockup): a dark sidebar down the
 * left quarter (the Overview's sections, then every other staff page), always dark, and the page in the other
 * three quarters, light or dark as the browser is set (user, 25/11/2026). No top bar on this page. Without JavaScript every
 * section shows, one under the other. */
body.ov-page { --ov-warn: #a15c00; --ov-bad: #c0281d; --ov-ok-bg: #e3f6ec; --ov-ok-ink: #0b5a30;
               --ov-wait-bg: #fdeccf; --ov-wait-ink: #7a4a00; background: var(--bg); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  body.ov-page { --ov-warn: #ffb020; --ov-bad: #ff6b61; --ov-ok-bg: #12351f; --ov-ok-ink: #7be3a3;
                 --ov-wait-bg: #3a2a08; --ov-wait-ink: #ffcf70; }
}
.ov-page .wrap--ov { max-width: none; margin: 0; padding: 0; }
.ov-page .link-banner { margin: 0; border-radius: 0; }
.ov-shell { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); min-height: 100vh; align-items: stretch; }
.ov-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
           background: #0a0b0f; color: #c9cedb; padding-bottom: .5rem; border-right: 1px solid #262b38; scrollbar-width: thin; scrollbar-color: #262b38 transparent; }
.ov-side__brand { display: flex; flex-direction: column; padding: .8rem 1rem .65rem; border-bottom: 1px solid #262b38;
                  text-decoration: none; }
.ov-side__brand b { color: #fff; font-size: 1.1rem; letter-spacing: .08em; font-style: italic; }
.ov-side__brand small { color: #8b93a7; font-size: .7rem; letter-spacing: .2em; }
.ov-side__group { padding: .4rem 0 .1rem; }
.ov-side__head { margin: 0 1rem .25rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #6d7488; }
.ov-side__link { display: flex; align-items: center; gap: .65rem; min-height: 32px; padding: .2rem 1rem .2rem calc(1rem - 3px);
                 color: #c9cedb; text-decoration: none; border-left: 3px solid transparent; font-size: .93rem; }
.ov-side__link:hover { background: #1b1f2b; color: #fff; }
.ov-side__link:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.ov-side__link.is-on { background: #1d2230; color: #fff; border-left-color: var(--accent); }
.ov-side__text { flex: 1; }
.ov-side__link b { min-width: 1.7rem; padding: 0 .4rem; border-radius: 6px; background: #262b38; color: #fff;
                   text-align: center; font-size: .8rem; font-variant-numeric: tabular-nums; }
.ov-side__link.is-warn b { background: #f59e0b; color: #1a1300; }
.ov-side__link.is-bad .ov-side__text::after { content: ""; display: inline-block; width: .45rem; height: .45rem;
                                             margin-left: .45rem; border-radius: 50%; background: #ff6b61; vertical-align: middle; }
.ov-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
          stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.ov-side__who { margin-top: auto; padding: .6rem 1rem 0; border-top: 1px solid #262b38; display: flex; flex-direction: column;
                font-size: .85rem; }
.ov-side__who b { color: #fff; }
.ov-side__who small { color: #8b93a7; }
.ov-side__who form { margin: .35rem 0 0; }
.ov-side__who .link { color: #c9cedb; padding: 0; }
.ov-main { min-width: 0; display: flex; flex-direction: column; }
.ov-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.5rem;
           background: var(--card); border-bottom: 1px solid var(--line); }
.ov-head h1 { margin: 0; font-size: 1.35rem; }
.ov-head p { margin: .1rem 0 0; font-size: .85rem; }
.ov-body { padding: 1.25rem 1.5rem 1rem; }
.ov-panel { margin-bottom: 1.5rem; }
.ov-panel > h2 { margin: 0 0 .75rem; font-size: 1.15rem; }
.ov-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; margin-bottom: .75rem; }
.ov-kpi { display: flex; flex-direction: column; gap: .1rem; padding: .75rem .9rem; background: var(--card);
          border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 0 0 8px 8px; color: inherit; text-decoration: none; }
.ov-kpi span { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ov-kpi b { font-size: 1.45rem; line-height: 1.2; }
.ov-kpi small { color: var(--muted); font-size: .82rem; }
/* Analytics (owner figures, 26/11/2026): change against the period before, section headings, hints. */
.ov-change { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--muted); }
.ov-change.is-up { color: var(--green); }
.ov-change.is-down { color: var(--ov-bad); }
.ov-sub { margin: 1rem 0 .5rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ov-hint { margin: .5rem 0 0; font-size: .82rem; color: var(--muted); }
a.ov-kpi:hover { border-left-color: var(--muted); border-right-color: var(--muted); border-bottom-color: var(--muted); }
.ov-kpi--live { border-top-color: var(--accent); }
.ov-kpi--ok { border-top-color: var(--green); }
.ov-kpi--ok b { color: var(--green); }
.ov-kpi--bad { border-top-color: var(--ov-bad); }
.ov-kpi--bad b { color: var(--ov-bad); }
.ov-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; margin-bottom: .75rem; }
.ov-mini { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .9rem;
           background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: inherit; text-decoration: none; }
.ov-mini > span { color: var(--muted); font-size: .9rem; }
.ov-mini .is-ok { color: var(--green); }
.ov-mini .is-warn { color: var(--ov-warn); }
.ov-mini .is-bad { color: var(--ov-bad); }
.ov-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: .75rem; }
.ov-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin-bottom: .75rem; overflow: hidden; }
.ov-card__head { margin: 0; padding: .6rem .9rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.ov-card__head small { color: var(--muted); font-weight: 400; margin-left: .3rem; }
.ov-card__body { padding: .6rem .9rem .8rem; }
.ov-card__empty { margin: 0; padding: .7rem .9rem; color: var(--muted); }
.ov-card .table { margin: 0; }
.ov-rows { list-style: none; margin: 0; padding: 0; }
.ov-rows li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem .9rem;
              border-bottom: 1px solid var(--line); }
.ov-rows li:last-child { border-bottom: 0; }
.ov-rows a { color: inherit; }
.ov-page .badge--ok { background: var(--ov-ok-bg); color: var(--ov-ok-ink); }
.ov-page .badge--wait { background: var(--ov-wait-bg); color: var(--ov-wait-ink); }
.ov-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); gap: .75rem; }
.ov-chart { margin: 0; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart__fill { fill: var(--accent); }
.chart__hit { fill: transparent; }
.chart__bar:hover .chart__fill { fill: var(--ink); }
.chart__base { stroke: var(--line); stroke-width: 1; }
.chart__label { fill: var(--muted); font-size: 12px; }
.chart__label--cat { fill: var(--ink); font-size: 14px; }
.chart__value { fill: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ov-chart__table { margin-top: .4rem; font-size: .9rem; }
.ov-chart__table summary { cursor: pointer; color: var(--muted); }
.ov-foot { color: var(--muted); font-size: .8rem; text-align: center; margin: 1rem 0 0; }
@media (max-width: 900px) {
  .ov-shell { grid-template-columns: 1fr; }
  .ov-side { position: static; height: auto; }
  .ov-side__group { display: flex; flex-wrap: wrap; padding: .3rem .4rem; }
  .ov-side__head { flex-basis: 100%; margin: .3rem .6rem .15rem; }
  .ov-side__link { border-left: 0; border-bottom: 3px solid transparent; padding: .35rem .6rem; }
  .ov-side__link.is-on { border-bottom-color: var(--accent); }
  .ov-side__who { flex-direction: row; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; padding-bottom: .4rem; }
  .ov-split { grid-template-columns: 1fr; }
  .ov-charts { grid-template-columns: 1fr; }
  .ov-head, .ov-body { padding-left: 1rem; padding-right: 1rem; }
}

/* The page you're on is marked in the menus (user, 25/11/2026): a red bar under it, brighter text. */
.top--staff .nav a { padding: .3rem 0; border-bottom: 3px solid transparent; }
.top--staff .nav a:hover { color: #fff; border-bottom-color: #6b5a8e; }
.top--staff .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.x-nav a { border-bottom: 3px solid transparent; }
.x-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--x-red); }
.x-head__book[aria-current="page"] { box-shadow: inset 0 -3px 0 #fff; }

/* Every button reacts (user, 25/11/2026): a little brighter under the pointer, pressed down when clicked,
 * a clear outline from the keyboard, and dimmed with a "not allowed" pointer when it can't be used. */
button, .btn, .x-btn, .choose__btn, .rc-mini, .btn-back, input[type="submit"], input[type="button"] {
  cursor: pointer;
  transition: filter .12s ease, transform .08s ease, background-color .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}
button:not(:disabled):hover, .btn:hover, .x-btn:hover, .choose__btn:hover, .btn-back:hover,
input[type="submit"]:not(:disabled):hover { filter: brightness(1.12); }
.btn--ghost:hover, .rc-mini:hover, .choose__btn:hover { background-color: color-mix(in srgb, var(--ink) 8%, transparent); }
button:not(:disabled):active, .btn:active, .x-btn:active, .choose__btn:active, .rc-mini:active, .btn-back:active,
input[type="submit"]:not(:disabled):active { transform: translateY(1px) scale(.98); filter: brightness(.94); }
button.link:hover, button.link:active { transform: none; filter: none; text-decoration: underline; }
button:disabled, .btn[aria-disabled="true"], input[type="submit"]:disabled { cursor: not-allowed; opacity: .55; filter: none; }
.btn:focus-visible, .choose__btn:focus-visible, .rc-mini:focus-visible, .btn-back:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  button, .btn, .x-btn, .choose__btn, .rc-mini, .btn-back { transition: none; }
  button:active, .btn:active, .x-btn:active, .choose__btn:active, .rc-mini:active, .btn-back:active { transform: none; }
}

/* Website, meeting 23/11/2026: red "Check availability" links in every section, and the availability strip
 * at the top of the home page, bigger. */
.x-checkav { display: inline-block; margin-top: .6rem; color: var(--x-red); font-family: var(--x-cond); font-weight: 600;
           text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border-bottom: 2px solid transparent; }
.x-checkav::after { content: " \203A"; }
.x-checkav:hover { border-bottom-color: var(--x-red); }
.x-card__body .x-checkav { display: block; width: fit-content; }
.x-pkg__body > .x-checkav { margin-top: 1rem; }
.x-pkg__notes { margin: .8rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.x-pkg__notes li { font-weight: 600; }
.x-today { border-bottom: 3px solid var(--x-red); }
/* The same red line under every page's photo banner as under the home page's "today" strip (user, 05/12/2026). */
.x-pagehead { border-bottom: 3px solid var(--x-red); }
.x-today__in { padding-block: 1.3rem; gap: .9rem 2rem; }
.x-today__h { flex-basis: 100%; margin: 0; font-family: var(--x-cond); text-transform: uppercase; letter-spacing: .04em;
              font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.x-today__venue { padding: .3rem 0 .3rem .9rem; }
.x-today__venue b { font-size: 1.2rem; }
.x-today__venue span { font-size: 1.05rem; }
.x-today__more { color: #fff; }
.x-kind-note { min-height: 1.4em; margin-top: .35rem; }

/* Text links inside the red "Ready to race?" band are white, not red on red (sweep, 25/11/2026). */
.x-cta a:not(.x-btn) { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
/* Sweep fixes, 25/11/2026 */
.rc-card__head .rc-place { color: var(--bg); font-size: 0.8rem; }   /* queue place numbers: dark on the pale circle (a card-heading rule made them grey) */
b.btn, span.btn { cursor: default; }                  /* "Day" / "Week": marks the view you're on, not a button */
b.btn:hover, span.btn:hover, b.btn:active, span.btn:active { filter: none; transform: none; }
.nav__out .link, .ov-side__who .link { display: inline-flex; align-items: center; min-height: 32px; }

/* Scroll-in animation (user, 25/11/2026); site.js adds .x-reveal, then .is-in when the item comes into view. */
.x-reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
            transition-delay: var(--reveal-delay, 0ms); }
.x-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .x-reveal { opacity: 1; transform: none; transition: none; } }

/* Website header, final (user, 25/11/2026). One row across the full width with even gaps between four groups:
 * the real logo (Kyle's PNG, 18/11/2026), the menu, phone · email · hours on ONE line, and Enquire now.
 * Black like the logo's own background; a red line underneath; the current page is a white bar on that line. */
.x-head { background: #000; backdrop-filter: none; border-bottom: 3px solid var(--x-red); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.x-head .x-container { max-width: none; padding-left: clamp(16px, 2.5vw, 40px); padding-right: clamp(16px, 2.5vw, 40px); }
.x-head__in { min-height: 76px; padding-block: 0; align-items: stretch; justify-content: space-between; gap: 1.5rem; }
.x-logo--img { align-self: center; display: block; line-height: 0; padding: 0; margin: 0; border: 0; }
.x-logo--img img { display: block; height: 60px; width: auto; }
.x-nav { margin: 0; align-items: stretch; gap: 0; }
.x-nav a, .x-nav button { position: relative; display: flex; align-items: center; padding: 0 .8rem; border-bottom: 0;
                          font-size: .98rem; color: #fff; }
.x-nav a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -3px; height: 3px; background: transparent; }
.x-nav a:hover, .x-nav button:hover { color: #fff; background: #141518; }
.x-nav a:hover::after { background: #6b6e78; }
.x-nav a[aria-current="page"] { color: #fff; border-bottom: 0; }
.x-nav a[aria-current="page"]::after { background: #fff; }
.x-nav__out { display: flex; }
.x-head__contact { display: flex; align-items: center; gap: 1.2rem; margin: 0; padding: 0; border: 0;
                   font-size: .9rem; white-space: nowrap; }
.x-head__contact a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.x-head__contact a::before { content: ""; width: .5rem; height: .5rem; background: var(--x-red); transform: skewX(-20deg); }
.x-head__contact a:hover { color: var(--x-red); }
.x-head__hours { color: #a9adb5; padding-left: 1.2rem; border-left: 1px solid #2a2c33; }
.x-head__book { align-self: center; flex: none; min-height: 46px; margin: 0; padding: 0 1.8rem; box-shadow: none;
                clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.x-head__book[aria-current="page"] { box-shadow: inset 0 -3px 0 #fff; }
@media (max-width: 1540px) { .x-head__hours { display: none; } }   /* below this the Enquire button was pushed off the edge (30/11/2026) */
@media (max-width: 1150px) { .x-head__email { display: none; } }
@media (max-width: 960px)  { .x-head__contact { display: none; } }
@media (max-width: 760px) {
  .x-head__in { min-height: 0; flex-wrap: wrap; align-items: center; padding-block: .5rem 0; gap: .4rem .8rem; }
  .x-logo--img img { height: 46px; }
  .x-head__book { margin-left: auto; min-height: 44px; padding: 0 1.3rem; }
  .x-nav { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 6px; border-top: 1px solid #1d1e22;
           justify-content: space-between; }
  .x-nav a, .x-nav button { padding: .7rem .45rem; font-size: .9rem; letter-spacing: .03em; }
  .x-nav a::after { left: .45rem; right: .45rem; }
}
.x-logo--foot.x-logo--img img { height: 56px; }

/* The red facts strip is a straight band (user, 25/11/2026: the slanted cut looked skew). */
.x-facts { clip-path: none; }
/* "Ready to race?" is the solid red band again (user, 25/11/2026: changed back from the track photo). */

/* Error pages (25/11/2026): a big red code beside the explanation and the way back. */
.x-error { padding-block: clamp(3rem, 10vh, 7rem); }
.x-error__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.x-error__code { margin: 0; font-family: var(--x-cond); font-weight: 700; font-style: italic; line-height: .85;
                 font-size: clamp(5rem, 16vw, 11rem); color: var(--x-red); }
@media (max-width: 760px) { .x-error__in { grid-template-columns: 1fr; gap: 1rem; } }

/* Photo focus points (user, 25/11/2026: "the picture is too the side" on a phone). A tall, narrow box
 * shows only a slice of a wide photo, and the slice was the middle, so the driver was cut off at the
 * edge. Each class keeps that photo's driver in view. Only the sideways position matters: on wide
 * screens the photo fits across and this has no effect. Set again when the owner's own photos arrive. */
.x-ph-track  { object-position: 70% 50%; }
.x-ph-podium { object-position: 84% 50%; }
.x-ph-corner { object-position: 55% 50%; }
.x-ph-party  { object-position: 56% 50%; }
.x-ph-group  { object-position: 50% 50%; }

/* -- staff layout (user, 27/11/2026): menu on the left, the page in a frame on the right (staff/shell.html).
 * The menu reuses the Overview's dark sidebar. Pages inside the frame get body.is-framed and drop their own
 * top menu (base.html); the Overview drops its own sidebar there, so there is only ever one menu. */
body.shell-page { margin: 0; height: 100vh; overflow: hidden; background: var(--bg); }
.shell { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); height: 100vh; }
.shell__main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.shell__main .link-banner { margin: 0; border-radius: 0; }
.shell__frame { flex: 1; display: block; width: 100%; min-height: 0; border: 0; background: var(--bg); }
.is-framed .ov-side { display: none; }
.is-framed .ov-shell { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  /* Tablet or phone: the menu becomes a strip of links at the top, the page fills the rest. */
  body.shell-page { height: auto; overflow: visible; }
  .shell { grid-template-columns: 1fr; height: auto; }
  .shell__side { position: static; height: auto; }
  .shell__side .ov-side__group { display: flex; flex-wrap: wrap; padding: .3rem .4rem; }
  .shell__side .ov-side__head { flex-basis: 100%; margin: .3rem .6rem .15rem; }
  .shell__side .ov-side__link { border-left: 0; border-bottom: 3px solid transparent; padding: .35rem .6rem; }
  .shell__side .ov-side__link.is-on { border-bottom-color: var(--accent); }
  .shell__side .ov-side__who { flex-direction: row; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; padding-bottom: .4rem; }
  .shell__main { height: auto; }
  .shell__frame { height: 100vh; flex: none; }
}
/* Icons-only menu (27/11/2026): for a narrow screen such as the Race control PC; each PC remembers it. */
.shell__top { display: flex; align-items: stretch; border-bottom: 1px solid #262b38; }
.shell__top .ov-side__brand { flex: 1; border-bottom: 0; }
.shell__toggle { flex: none; width: 2.6rem; display: inline-flex; align-items: center; justify-content: center; background: none;
                 border: 0; color: #8b93a7; cursor: pointer; }
.shell__toggle:hover { color: #fff; background: #1b1f2b; }
.shell__toggle:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.shell__out { display: inline-flex; align-items: center; gap: .45rem; }
.shell.is-small { grid-template-columns: 3.6rem minmax(0, 1fr); }
.shell.is-small .shell__top { flex-direction: column; }
.shell.is-small .ov-side__brand small, .shell.is-small .ov-side__head, .shell.is-small .ov-side__text,
.shell.is-small .ov-side__who b, .shell.is-small .ov-side__who small { display: none; }
.shell.is-small .ov-side__brand { padding: .6rem 0; align-items: center; }
.shell.is-small .ov-side__brand b { font-size: .8rem; letter-spacing: 0; }
.shell.is-small .shell__toggle { width: 100%; min-height: 34px; }
.shell.is-small .shell__toggle .ov-ico { transform: rotate(180deg); }
.shell.is-small .ov-side__group { padding: .3rem 0; border-top: 1px solid #1b1f2b; }
.shell.is-small .ov-side__link { justify-content: center; padding-left: 0; padding-right: 3px; }
.shell.is-small .ov-side__who { align-items: center; padding: .5rem 0 0; }
@media (max-width: 900px) { .shell__toggle { display: none; } .shell.is-small { grid-template-columns: 1fr; } }

/* Race types in colour on Reception (user, 27/11/2026): a coloured tag and a coloured left edge per type, so
 * Reception sees at a glance what each race in the queue is. The word is always shown too (never colour alone). */
.race-card { --race-c: #6b7280; border-left: 6px solid var(--race-c); padding-left: .9rem; }
.race-type { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--race-c); color: #fff;
             font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.race-card--arrive, .race-type--arrive { --race-c: #2563eb; }       /* Arrive & Drive: blue */
.race-card--relay, .race-type--relay { --race-c: #7c3aed; }         /* Team relay: purple */
.race-card--party, .race-type--party { --race-c: #db2777; }         /* Kids party: pink */
.race-card--corporate, .race-type--corporate { --race-c: #0f766e; } /* Corporate: teal */
.race-card--group_events, .race-type--group_events { --race-c: #0e7490; } /* Group event: cyan */
.race-card--group, .race-type--group { --race-c: #4f46e5; }         /* Group race: indigo */
.race-card--grand_prix, .race-type--grand_prix { --race-c: #d97706; color: #fff; } /* Grand Prix: amber */
.race-card--coaching, .race-type--coaching { --race-c: #15803d; }   /* Coaching: green */
.race-card--booking, .race-type--booking { --race-c: #6b7280; }     /* Other booking: grey */
.race-type--grand_prix { color: #1a1300; }

/* Enquiries page (redone 27/11/2026): counts, tabs and a numbered table. */
.enq__counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: .4rem 0 1rem; }
.enq__count { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 10px; padding: .7rem .9rem; }
.enq__count b { display: block; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.enq__count span { color: var(--muted); font-size: .88rem; }
.enq__count.is-warn { border-top-color: #f59e0b; }
.enq__tabs { display: flex; gap: .4rem; margin: 0 0 .8rem; }
.enq__tabs a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.enq__tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.enq__wrap { padding: 0; overflow-x: auto; }
.enq__table { margin: 0; }
.enq__table th, .enq__table td { padding: .6rem .7rem; }
.enq__table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.enq__table tr.is-off td { opacity: .6; }
.enq__table tr.is-late td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
.enq__no { font-weight: 800; white-space: nowrap; }
.enq__people { font-size: 1.15rem; font-weight: 800; text-align: center; }
.enq__wait { display: inline-block; white-space: nowrap; margin-top: .2rem; padding: .05rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
             background: color-mix(in srgb, #f59e0b 18%, var(--card)); color: #b06f00; }
.enq__reach { display: inline-flex; gap: .3rem; margin-top: .3rem; }
.enq__reach .btn { min-height: 32px; padding: .2rem .6rem; }
.enq__msg { max-width: 22rem; white-space: pre-line; }
@media (max-width: 640px) { .enq__counts { grid-template-columns: 1fr; } }

/* Bookings paper sheet and both-tracks list (two-way sync, 27/11/2026) */
.paper-table { width: 100%; border-collapse: collapse; margin: 0.4rem 0 1rem; }
.paper-table th, .paper-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; font-size: 0.9rem; }
.paper-table--blank td { height: 2.1rem; }
@media print {
  .paper-tools, .staff-nav, header, nav { display: none !important; }
  .paper, .paper * { color: #000 !important; background: #fff !important; }
  .paper-table th, .paper-table td { border-color: #000; }
}

/* "This booking will end after closing" on the staff booking forms (user, 24/11/2026): bold red, not only a tick box. */
.bk-late { color: var(--accent); font-weight: 700; }

/* Reception's race cards in Race control's layout (user, 01/12/2026). The kart number as a small badge, the
 * take-out button at the end of the line, a short link line under the add box. */
.rc-card__list .kart { display: inline-block; min-width: 2.2em; text-align: center; padding: 2px 6px; border-radius: 8px;
                       background: var(--ink); color: var(--bg); font-weight: 700; font-family: var(--mono); }
.rc-card__list .rc-entry__name { flex: 1; min-width: 0; }
.rc-card__out { margin: 0 0 0 auto; }
.rc-card__foot { margin: 8px 0 0; }
.rc-card__head .race-type { color: #fff; font-size: .72rem; }
.rc-card__head .race-type--grand_prix { color: #1a1300; }

/* Reception, 01/12/2026: one Add a driver box above the races, then every race as a small card in a grid
 * (about 10 on a laptop screen). Details opens the full driver list inside the card. */
.rx-add { margin: 12px 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.rx-add label { display: block; margin-bottom: 6px; }
.rx-add__row { display: flex; gap: 8px; flex-wrap: wrap; }
.rx-add__row input { flex: 2 1 16rem; min-width: 0; }
.rx-add__row > .picker-wrap { flex: 2 1 16rem; min-width: 0; }   /* the driver search wraps the box (staff.js) */
.rx-add__row > .picker-wrap input { width: 100%; }
.rx-add__row select { flex: 1 1 12rem; min-width: 0; width: auto; max-width: 20rem; }
.rx-add__row .rc-btn { flex: 0 0 auto; }
.rx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; align-items: start; }
.rx-card { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg); min-width: 0; }
.rx-card--on { border-color: var(--green); background: var(--card); }
.rx-card--chosen { box-shadow: 0 0 0 2px var(--ink); }
.rx-card__top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rx-card__top .race-type { font-size: .68rem; padding: .1rem .5rem; }
.rx-card__top .badge { font-size: .7rem; }
.rx-card__title { display: block; margin-top: 4px; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-card__meta { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.rx-card .rc-card__warn { margin: 4px 0 0; font-size: .76rem; }
.rx-card__names { margin: 4px 0 0; font-size: .82rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
                  line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.rx-card__actions { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; margin-top: 6px; }
.rx-card__actions .rc-mini { min-height: 30px; font-size: .8rem; }
.rx-more > summary { display: inline-flex; align-items: center; list-style: none; cursor: pointer; }
.rx-more > summary::-webkit-details-marker { display: none; }
.rx-more[open] { flex: 1 1 100%; }
.rx-more[open] > summary { border-color: var(--ink); }
.rx-more__body { margin-top: 6px; }
.rx-more__body .rc-card__list { font-size: .85rem; }

/* Reception's Add to queue (user, 01/12/2026): light grey, apart from the red Add driver. */
.btn.btn--queue { background: #d4d7de; color: #12141a; border-color: #d4d7de; }
.btn.btn--queue:hover { background: #e4e6eb; border-color: #e4e6eb; filter: none; }

/* Reception cards, 01/12/2026: drivers in rows like Race control, not a cut-off list of names. */
.rx-list { margin: 6px 0 0; font-size: .85rem; }
.rx-list li { padding: 2px 0; gap: 6px; }
.rx-list .rc-mini { min-height: 26px; padding: 0 8px; font-size: .75rem; }
.rx-card__none { margin: 6px 0 0; }
.rx-card__actions .rx-cancel { color: #ff6b61; border-color: #b4231a; margin-left: auto; }
.rx-card__actions .race-cancel { margin-left: auto; }
.rx-card__hint { margin: 6px 0 0; font-size: .76rem; }
.rc-card__list span.rx-n { min-width: 1.4em; color: var(--muted); font-size: .75rem; font-family: inherit; text-align: right; }   /* driver count, no box */

/* Watch Race control (manager, read-only; race_watch.py) */
.watch__venues { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.watch { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.watch__bar h1 { margin: 2px 0; }
.watch__h2 { margin: 22px 0 8px; font-size: 1.1rem; }
.watch__queue { margin: 0; padding-left: 1.4em; }
.watch__queue li { padding: 4px 0; }
.watch__foot { margin: 16px 0 0; font-size: 0.85rem; }
@media (max-width: 640px) { .watch { padding: 12px; } .watch__bar { grid-template-columns: 1fr; } }

/* Enquire: venue picker (user, 05/12/2026). Nothing picked to start; the picked card turns red. */
.choice--venue { margin-bottom: 1rem; }
.choice--venue .hint { flex-basis: 100%; margin: 0 0 .2rem; }
.choice__venue { flex: 1 1 12rem; justify-content: space-between; padding: 1rem 1.1rem; font-size: 1.1rem; font-weight: 700;
                 border-width: 2px; transition: background-color .15s, border-color .15s, color .15s; }
.choice__venue input { accent-color: var(--accent-ink); width: 1.15rem; height: 1.15rem; margin: 0; }
.choice__venue > span:first-of-type { flex: 1; }
.choice__venue:hover { border-color: var(--accent); }
.choice__venue:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.choice__venue:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice__tick { visibility: hidden; font-size: 1.2rem; }
.choice__venue:has(input:checked) .choice__tick { visibility: visible; }
.choice--venue.is-missing .choice__venue { border-color: var(--accent); }
.choice__nag { flex-basis: 100%; margin: .2rem 0 0; }
.choice__nag[hidden], .x-venue-toast[hidden] { display: none !important; }
.x-venue-toast { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 50; display: flex; align-items: center;
                 gap: .8rem; padding: .7rem .8rem .7rem 1.1rem; background: var(--card); color: inherit;
                 border: 2px solid var(--accent); box-shadow: 0 6px 24px rgba(0,0,0,.25); width: max-content; max-width: calc(100vw - 2rem); }
.x-venue-toast .x-btn { white-space: nowrap; }

/* Our own calendar for the Enquire and Book day (user, 05/12/2026) */
.cal { position: relative; }
.cal__field { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .7rem .9rem; text-align: left; font: inherit;
              background: var(--bg); color: inherit; border: 1px solid var(--line); cursor: pointer; }
.cal__field:hover, .cal__field[aria-expanded="true"] { border-color: var(--accent); }
.cal__field.is-empty .cal__value { color: var(--muted); }
.cal__panel { margin-top: .4rem; padding: .8rem; background: var(--card); border: 1px solid var(--line); min-width: 16.5rem; }
.cal__panel[hidden], .cal__error[hidden], .cal__legend[hidden] { display: none !important; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal__title { font-size: 1.05rem; }
.cal__nav { width: 2.6rem; height: 2.6rem; font-size: 1.5rem; line-height: 1; background: var(--bg); color: inherit;
            border: 1px solid var(--line); cursor: pointer; }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; }
.cal__wd { text-align: center; font-size: .75rem; color: var(--muted); padding-bottom: .2rem; }
.cal__day { position: relative; aspect-ratio: 1; min-height: 2.4rem; font: inherit; font-weight: 600; background: var(--bg);
            color: inherit; border: 1px solid var(--line); cursor: pointer; }
.cal__day:hover:not(:disabled) { border-color: var(--accent); }
.cal__day:disabled { opacity: .3; cursor: default; font-weight: 400; }
.cal__day.is-full { opacity: .45; text-decoration: line-through;
                    background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--muted) 25%, transparent) 5px 7px); }
.cal__day.is-some::after { content: ""; position: absolute; left: 50%; bottom: .25rem; width: .35rem; height: .35rem;
                           margin-left: -.175rem; border-radius: 50%; background: #fbbf24; }
.cal__day.is-today { border-color: var(--muted); }
.cal__day.is-picked { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cal__legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .7rem 0 0; font-size: .8rem; color: var(--muted); }
.cal__key { display: inline-block; width: .9rem; height: .9rem; border: 1px solid var(--line); }
.cal__key--full { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--muted) 3px 4px); opacity: .7; }
.cal__key--some { border: 0; width: .45rem; height: .45rem; border-radius: 50%; background: #fbbf24; margin-left: .6rem; }
.cal__note { margin: .4rem 0 0; font-size: .8rem; color: var(--muted); }
.cal__foot { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .6rem; }
.cal__clear, .cal__close { font: inherit; font-size: .9rem; padding: .4rem .8rem; background: none; color: inherit;
                           border: 1px solid var(--line); cursor: pointer; }
.cal__error { margin: .4rem 0 0; color: var(--accent); font-weight: 600; font-size: .9rem; }
.cal__day:focus-visible, .cal__nav:focus-visible, .cal__field:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Date of birth: Day / Month / Year (user, 05/12/2026) */
.dob { display: grid; grid-template-columns: 5rem minmax(0, 1fr) 6.5rem; gap: .5rem; }
