/* Foos App — the TD's tools (T1_TOURNAMENT_TOOLS_DIRECTION.md): console mode, the Track,
   and the create flow. Ported from the v2 mockups' td.css onto the app kit (foos.css);
   tokens only. Loaded by the pages that use it (content_for :head). */

/* ---------- Console mode (§4, amendment A-T1) ----------
   The create flow takes the whole phone; the console takes every width. */
@media (max-width: 1023.98px) {
  body.console-create .app-header, body.console-create .tabbar,
  body.console-create .playbar, body.console-create .site-legal { display: none; }
  body.console-create.foos-app.is-signed-in { padding-bottom: 0; }
  body.console-create .shell { padding: 0; }
  body.console-create .toast-dock { bottom: calc(var(--btn-h-lg) + 25px + env(safe-area-inset-bottom) + 16px); }
}
body.console-manage .navrail, body.console-manage .app-header, body.console-manage .tabbar,
body.console-manage .playbar, body.console-manage .site-legal, body.console-manage .tonight { display: none; }
body.console-manage.foos-app.is-signed-in, body.console-manage.foos-app.is-signed-in.has-playbar { padding-bottom: 0; }
body.console-manage .frame.has-nav { display: block; }
body.console-manage .shell { max-width: none; padding: 0; }
/* the Reconnecting strip sits in flow above the console; it never covers the command bar */
body.console-manage .strip { position: static; }
@media (max-width: 1023.98px) {
  body.console-manage .toast-dock { bottom: calc(var(--btn-h-lg) + 25px + env(safe-area-inset-bottom) + 16px); }
}
/* Key caps (§5.17) and the switch (§5.12) live in foos.css with the Tally, which uses both. */

/* ---------- The Track (§5.2) ---------- */
.track { --n: 4; --at: 0; --from: 0; position: relative; min-width: 0; }
.track__rail { position: relative; display: block; height: 2px; border-radius: 1px; background: var(--line); }
.track__fill {
  position: absolute; left: 0; top: 0; height: 2px; border-radius: 1px; background: var(--ink);
  width: calc((var(--at) + 0.5) / var(--n) * 100%);
}
.track__ball {
  position: absolute; top: 1px; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--ink); left: calc((var(--at) + 0.5) / var(--n) * 100%);
  transition: left var(--dur-roll) var(--ease-roll);
}
.track__fill { transition: width var(--dur-roll) var(--ease-roll); }
@media (prefers-reduced-motion: reduce) { .track__ball, .track__fill { transition: none; } }
.track--steps { display: flex; align-items: center; gap: 14px; }
.track--steps .track__rail { flex: 1; }
.track--steps .track__fill { width: calc(var(--at) / var(--n) * 100%); }
.track--steps .track__ball { left: calc(var(--at) / var(--n) * 100%); }
.track__count { flex: none; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Console header (§4.1): the base .con-head lives in foos.css ---------- */

/* the dock (§5.1): one 56px button, pinned */
.td-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-direction: column; gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface-1); border-top: 1px solid var(--line);
}
.td-dock__meta { text-align: center; color: var(--ink-2); }
.td-dock__plate { margin: 0; color: var(--ink-2); }

/* ---------- Group heads ---------- */
.group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px;
  color: var(--ink-2); font-stretch: var(--wdth-plate); font-weight: 700; font-size: var(--fs-plate);
  line-height: 1.2; letter-spacing: var(--track-plate); text-transform: uppercase;
}

/* ---------- Create (§4.3, §5.11–§5.15, §6) ---------- */
/* "Run a night" is where you are: the ball beside it in the rail */
.navrail__cta[aria-current="page"] { border-color: var(--ink); }
.navrail__cta[aria-current="page"]::before { content: ""; flex: none; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--ink); }

.create { display: block; }
.create__main { min-width: 0; }
.create__title { margin-bottom: 20px; }
.create-head, .step-top, .td-dock.create-dock { display: none; }

/* START FROM (§6.1, §6.3) */
.startfrom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 8px 4px 16px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-control); }
.startfrom__txt { min-width: 0; color: var(--ink); }
.start { display: flex; flex-direction: column; gap: 28px; }
.start__sec { display: flex; flex-direction: column; gap: 8px; }
.rb-list { border-top: 1px solid var(--line); }
.rb-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rb-row[hidden] { display: none; }
.rb-row__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; color: var(--ink); text-align: left; }
.rb-row__meta { color: var(--ink-2); }
.rb-row .btn { flex: none; height: var(--tap); padding: 0 14px; }
.jmore { align-self: flex-start; }
.preset-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.preset-group { display: flex; flex-direction: column; gap: 8px; }
.preset-group + .preset-group { margin-top: 12px; }
.preset-group > .t-plate { display: flex; align-items: center; min-height: 32px; color: var(--ink-2); }

/* a section: Plate "1 · WHERE" over the question, then the controls */
.csec { display: flex; flex-direction: column; gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.csec:last-of-type { border-bottom: 0; }
.csec__head { display: flex; flex-direction: column; gap: 6px; }
.csec__num { color: var(--ink-2); }
.csec__meta { color: var(--ink-2); }
.csec__meta:empty { display: none; }
.csec__group { display: flex; flex-direction: column; gap: 10px; }
.csec__group + .csec__group { margin-top: 8px; }
.csec__group-label { color: var(--ink-2); }
.csec__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.csec__acts .btn--tertiary, .csec__line .btn--tertiary { font-size: var(--fs-meta); }
.csec__line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; color: var(--ink-2); }
.csec .input-error { margin-top: -6px; }
[hidden] { display: none !important; }

/* place rows (§6.2 step 1) */
.places { display: flex; flex-direction: column; gap: 8px; }
.places:not(:has(.place)) { display: none; }
.csec__group--places:not(:has(.place)) { display: contents; }
.place {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 48px 8px 14px;
  background: var(--surface-1); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-card); cursor: pointer;
}
.place > input { position: absolute; opacity: 0; pointer-events: none; }
.place > .icon { flex: none; width: 20px; height: 20px; color: var(--ink-2); }
.place__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.place__name { font-stretch: var(--wdth-name); font-weight: 700; font-size: var(--fs-name); line-height: 1.2; }
.place__meta { color: var(--ink-2); }
.place .choice__check { top: 50%; margin-top: -10px; }
.place:has(input:checked) { border: 1.5px solid var(--ink); padding: 7.5px 47.5px 7.5px 13.5px; }
.place:has(input:checked) .choice__check { display: grid; }
.place:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.event-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 4px 4px 4px 14px; border: 1px solid var(--line); border-radius: var(--radius-control); }
.input-with-icon { position: relative; }
.input-with-icon > .icon { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.input-with-icon > .input { padding-left: 46px; }

/* choice card (§5.11) */
.choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.choice {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px;
  background: var(--surface-1); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-card); text-align: left;
}
.choice > input, .choice__label > input { position: absolute; opacity: 0; pointer-events: none; }
.choice__label { display: flex; flex-direction: column; gap: 4px; min-width: 0; cursor: pointer; }
.choice__label::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.choice > .btn--tertiary, .choice > .choice__more { position: relative; z-index: 1; }
.choice__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-right: 28px; }
.choice__title { font-weight: 600; }
.choice__rec { color: var(--ink-2); white-space: nowrap; }
.choice__tag { color: var(--ink); }
.choice__sum { color: var(--ink-2); }
.choice__check {
  position: absolute; top: 14px; right: 14px; display: none; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: var(--ink); color: var(--on-ink);
}
.choice__check .icon { width: 14px; height: 14px; stroke-width: 3; }
.choice:has(input:checked) { border: 1.5px solid var(--ink); padding: 15.5px; }
.choice:has(input:checked) .choice__check { display: grid; }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice .btn--tertiary { align-self: flex-start; min-height: var(--tap); margin: -6px 0 -10px; padding: 0; font-size: var(--fs-meta); }
.choice__more { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); }
.choice__more ol { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-left: 18px; list-style: decimal; color: var(--ink); }
.choice--compact { gap: 2px; width: 100%; padding: 12px 14px; }
.choice--compact:hover { border-color: var(--line-strong); }
.choice__help { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* option chips (§5.11) */
.ochips { display: flex; flex-wrap: wrap; gap: 8px; }
.ochip {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: var(--tap); padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-control); color: var(--ink); background: transparent; cursor: pointer;
  font-stretch: var(--wdth-read); font-weight: 600; font-size: var(--fs-body); line-height: 1; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ochip > input { position: absolute; opacity: 0; pointer-events: none; }
.ochip--num { font-stretch: var(--wdth-live); font-weight: 800; font-size: var(--fs-figure); font-variant-numeric: tabular-nums; }
.ochip:has(input:checked), .ochip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.ochip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.ochip:disabled { opacity: .4; cursor: default; }
.ochip .icon { width: 18px; height: 18px; margin-right: 8px; }
.ochip-input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

/* stepper row (§5.13) on the app's stepper */
.step-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.step-row__label { font-weight: 600; }
.step-row .st-val { width: 64px; min-width: 64px; font-size: var(--fs-figure); }
.step-row .st-btn .icon { width: 20px; height: 20px; }
.money-in { position: relative; display: inline-flex; align-items: center; }
.money-in > span { position: absolute; left: 8px; color: var(--ink-2); font-stretch: var(--wdth-live); font-weight: 800; font-size: var(--fs-figure); pointer-events: none; }
.money-in > .st-val { width: 96px; padding-left: 18px; }

.name-field { display: flex; flex-direction: column; gap: 8px; }
.name-field .input { font-weight: 600; }
.sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.sugg .ochip { height: auto; min-height: var(--tap); padding: 8px 14px; white-space: normal; text-align: left; }

/* summary ticket (§5.15) */
.sum {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.sum__see { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.sum__label { color: var(--ink-2); }
.ticket { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-card); }
.ticket__name { overflow-wrap: anywhere; }
.sum__details { display: flex; flex-direction: column; padding: 16px 16px 0; border-top: 1px solid var(--line); }
.sum__rows { display: flex; flex-direction: column; margin-top: 4px; }
.sum__row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 20px; align-items: center; column-gap: 12px; min-height: 48px; padding: 6px 0;
  border-bottom: 1px solid var(--line); color: var(--ink); text-align: left; width: 100%;
}
.sum__row:last-child { border-bottom: 0; }
.sum__row > .t-plate { color: var(--ink-2); }
.sum__row > .icon { width: 20px; height: 20px; color: var(--ink-2); }
.sum__val { display: flex; flex-direction: column; overflow-wrap: anywhere; }
.sum__val.is-unset { color: var(--ink-2); }
.sum__err { color: var(--alert); }
.sum__foot { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }
.sum__foot .t-meta { color: var(--ink-2); text-align: center; }
.copied { color: var(--ink-2); }
.dupe { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--surface-2); border-radius: var(--radius-control); }
.dupe > .t-plate { color: var(--ink-2); }
.dupe .btn { align-self: flex-start; margin-top: 8px; height: var(--tap); }
.dupe:empty { display: none; }
/* T1b §2.2: where the new tournament lands */
.night-slot { display: flex; flex-direction: column; gap: 8px; }
.night-slot:empty { display: none; }
.night-note .t-meta { color: var(--ink); }
.night-note > .t-plate { color: var(--ink-2); }
.csec__fold { display: none; }
.csec.is-folded > :not(.csec__head):not(.csec__fold) { display: none; }
.csec.is-folded .csec__fold { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.csec.is-folded .csec__fold .btn { height: var(--tap); padding: 0; }
.sum__row.is-night { cursor: default; }
.sum__row.is-night > svg { visibility: hidden; }
.ticket__also { margin-top: 4px; }
.form-error { color: var(--alert); }

/* new-place sheet */
.np { display: flex; flex-direction: column; gap: 14px; }
.np__row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; }
.np__nights { display: flex; flex-direction: column; gap: 12px; }
.np__night { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-control); }
#np-state { text-transform: uppercase; }
.np__days .ochip { min-width: 48px; padding: 0 10px; }
.zone-pick { max-width: 100%; }
.sheet-list { margin-top: 16px; }
.confirm__actions { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.confirm__actions .btn--tertiary { align-self: center; }
/* Settings (§6.6): locked controls at 40% with their reason beside them; the rare actions at the bottom */
.create fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.create .is-locked { opacity: .4; }
.csec__lockable { display: flex; flex-direction: column; gap: 16px; }
.set-acts { display: flex; flex-direction: column; gap: 12px; padding-top: 32px; border-top: 1px solid var(--line); }
.set-acts__row { display: flex; flex-wrap: wrap; gap: 8px; }
.set-acts .set-acts__alert { color: var(--alert); }
.set-acts__off { display: flex; flex-direction: column; gap: 4px; }
.set-acts__off .t-meta { color: var(--ink-2); }
.set-cert { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 32px; border-top: 1px solid var(--line); }
.set-cert__h { color: var(--ink-2); }
.set-cert__line { margin: 0; }
.set-cert .switch-list { align-self: stretch; }
.reset-field { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.reset-field .input { text-transform: uppercase; }
.reset-field__warn { color: var(--alert); }
#reset-sheet .btn--destructive:disabled { --btn-fg: var(--alert); background: transparent; }
.cmp { display: flex; flex-direction: column; gap: 20px; }
.cmp__item { display: flex; flex-direction: column; gap: 6px; }
.cmp__item ol { margin: 0; padding-left: 18px; }

/* ---------- Phone: one step per screen (§6.2) ---------- */
@media (max-width: 1023.98px) {
  .create { padding-bottom: calc(var(--btn-h-lg) + 25px + env(safe-area-inset-bottom) + 24px); }
  .create.is-review { padding-bottom: calc(var(--btn-h-lg) + 60px + env(safe-area-inset-bottom) + 24px); }
  .create-head { display: flex; }
  .create .step-top { position: sticky; top: var(--header-h); z-index: 49; display: flex; flex-direction: column; gap: 16px; padding: 4px 16px 12px; background: var(--surface-0); }
  .create .step-top:empty, .create.is-start .step-top { display: none; }
  .create .td-dock.create-dock { display: flex; }
  .create.is-start .td-dock.create-dock { display: none; }
  .create__main { padding: 0 16px; }
  .create__title, .startfrom, .csec__head { display: none; }
  .create .csec { display: none; padding: 16px 0 24px; border-bottom: 0; }
  .create .csec.is-current { display: flex; }
  .create .start { display: none; padding: 16px 0 24px; }
  .create.is-start .start { display: flex; }
  .create__side { display: none; flex-direction: column; gap: 12px; padding: 16px; }
  .create.is-review .create__side { display: flex; }
  .create .sum__foot { display: none; }
  .dupe-slot:not(:empty), .night-slot:not(:empty) { padding: 0 16px 16px; }
  .create.is-edit .track { display: none; }
  .create.is-edit.is-review .step-top, .create.is-edit .sum__see { display: none; }
  .create.is-edit .sum__details { border-top: 0; }
  .create.is-edit .sum__row { min-height: 56px; }
  .create .set-acts, .create .set-cert { display: none; margin: 8px 16px 0; padding-top: 24px; }
  .create.is-review .set-acts, .create.is-review .set-cert { display: flex; }
  .set-acts__row { flex-direction: column; }
  .set-acts__row .btn { width: 100%; }
  .set-acts__rare { display: none; }
}

/* ---------- Laptop: two panes, the ticket sticky (§4.3, §6.3) ---------- */
@media (min-width: 1024px) {
  body.console-create .shell { max-width: none; padding: 28px 40px 64px; }
  .create { display: grid; grid-template-columns: minmax(0, 640px) 360px; gap: 40px; align-items: start; }
  .create .copied { display: none; }
  .create__side { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 12px; }
  .set-acts, .set-cert { grid-column: 1; }
  .csec { scroll-margin-top: calc(var(--header-h) + 16px); }
  .dupe-slot:not(:empty), .night-slot:not(:empty) { padding: 0 16px 16px; }
  .sum__row { grid-template-columns: 96px minmax(0, 1fr); }
  .sum__row > .icon { display: none; }
  .choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start { gap: 20px; margin-bottom: 8px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .create-yourself { display: none; }
  .sheet-dialog.sheet--wide { max-width: 720px; }
}

/* ============================================================
   THE CONSOLE (§4.1, §4.2, §5, §7)
   ============================================================ */
.track__stages { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.track__stages > li {
  text-align: center; white-space: nowrap; color: var(--ink-2);
  font-stretch: var(--wdth-plate); font-weight: 700; font-size: var(--fs-plate); line-height: 1.2;
  letter-spacing: var(--track-plate); text-transform: uppercase;
}
.track__stages > li.is-done, .track__stages > li[aria-current="step"] { color: var(--ink); }
.track__stages + .track__rail { margin-top: 8px; }
.track--weighted { --ball: var(--ball-now); }
body:has(#con-ready[open]) .track--weighted { --ball: var(--ball-start, var(--ball-now)); }
body:has(#con-ready[open]) .track__stages > li.is-start { color: var(--ink); }
.track--weighted .track__stages { grid-template-columns: var(--cols); column-gap: 6px; }
.track--weighted .track__fill { width: calc(var(--ball) * 100%); }
.track--weighted .track__ball { left: calc(var(--ball) * 100%); }

/* segmented control (NORTH_STAR §5): the picked segment is the page you're on */
.seg { display: flex; gap: 2px; padding: 2px; height: var(--tap); background: var(--surface-2); border-radius: var(--radius-control); }
.seg__btn {
  position: relative; flex: 1 1 0; display: grid; place-items: center; min-width: 0; padding: 0 12px;
  border-radius: 6px; color: var(--ink-2); text-decoration: none;
  font-stretch: var(--wdth-read); font-weight: 600; font-size: var(--fs-meta); line-height: 1; white-space: nowrap;
  transition: transform var(--dur-press) ease-out;
}
.seg__btn::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; bottom: -2px; }
.seg__btn:active { transform: scale(0.97); }
.seg__btn[aria-current="page"] { background: var(--ink); color: var(--on-ink); }

.con-wide-only { display: none; }
.group-head > h2, .group-head__title > h2 { margin: 0; font: inherit; letter-spacing: inherit; }
.group-head .btn--tertiary { position: relative; min-height: 32px; font-size: var(--fs-meta); letter-spacing: 0; text-transform: none; font-stretch: var(--wdth-read); }
.group-head .btn--tertiary::after { content: ""; position: absolute; left: -4px; right: -4px; top: -6px; bottom: -6px; }
.group-head form { margin: 0; }
.group-head__count { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.group-head--wrap { align-items: flex-start; }
.group-head__title { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; min-width: 0; padding-top: 6px; }
.group-head__meta {
  font-stretch: var(--wdth-read); font-weight: 500; font-size: var(--fs-meta); letter-spacing: 0;
  text-transform: none; font-variant-numeric: tabular-nums;
}
.desk__none { color: var(--ink-2); padding: 4px 0 8px; }
.con-empty { padding-top: 24px; }
@media (hover: none), (pointer: coarse) { .con .kc { display: none; } }
.group-head--strong { color: var(--ink); }
.con form { margin: 0; }
.con-head__status { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.con-head__status .live { flex: none; }
.con-head__name { margin: 0; }

/* the TD Bar (§5.1) */
.td-form { display: block; }
.td-status {
  display: flex; align-items: center; gap: 12px; min-height: var(--btn-h-lg); padding: 6px 6px 6px 16px;
  background: var(--surface-2); border-radius: var(--radius-control);
}
.td-status__text { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.td-status .btn { flex: none; height: var(--tap); padding: 0 16px; }
.tdbar { display: flex; flex-direction: column; gap: 8px; }
.tdbar__ctx { margin: 0; color: var(--ink-2); }

/* the overflow menu: a native <details>, drawn as a small popover */
/* the switcher (T1b §2.4) */
.con-head__switch { display: flex; flex-direction: column; align-items: flex-start; min-height: var(--tap); min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.con-head__row { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.con-head__row .icon { flex: none; color: var(--ink-2); }
.cmdbar__switch > summary.cmdbar__switch-btn { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: var(--tap); padding: 0 8px 0 0; border-radius: var(--radius-control); color: var(--ink); background: none; }
.cmdbar__switch[open] > summary.cmdbar__switch-btn { background: none; }
.cmdbar__switch-btn .icon { flex: none; color: var(--ink-2); }
.con-switch { display: flex; flex-direction: column; }
.con-switch--menu { width: 400px; left: 0; right: auto; }
.con-switch__row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px; color: var(--ink); text-decoration: none; border-radius: var(--radius-control); }
.con-switch--menu .con-switch__row { min-height: 56px; }
.con-switch__row:hover { background: var(--surface-2); }
.con-switch__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.con-switch__plate { display: flex; gap: 6px; color: var(--ink-2); }
.con-switch__meta { color: var(--ink-2); }
.con-switch__row.is-cancelled .con-switch__name { color: var(--ink-2); }
.check-disc { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--ink); color: var(--on-ink); }
.con-switch__rule { margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
.con-switch__add { display: flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.con-switch > .con-switch__add { margin-top: 8px; min-height: 56px; border: 1px dashed var(--line); border-radius: var(--radius-control); }
.con-switch--menu { padding: 4px 16px 8px; }
.con-switch--menu .con-switch__row { padding: 6px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.con-switch--menu .con-switch__row:has(+ .con-switch__rule), .con-switch--menu .con-switch__row:last-child { border-bottom: 0; }
.con-switch--menu > .con-switch__add { margin-top: 4px; min-height: 48px; padding: 0; border: 0; border-radius: 0; }
.con-menu { position: relative; }
.con-menu > summary { list-style: none; cursor: pointer; color: var(--ink-2); }
.con-menu > summary::-webkit-details-marker { display: none; }
.con-menu[open] > summary { color: var(--ink); background: var(--surface-2); }
.con-menu__pop {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 40; display: flex; flex-direction: column;
  min-width: 232px; padding: 6px; background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--radius-control); box-shadow: var(--shadow-2);
}
.con-menu__pop.is-flipped { right: auto; left: 0; }
.con-menu__pop.is-up { top: auto; bottom: calc(100% + 4px); }
.con-sheet h2[tabindex="-1"]:focus-visible { outline: none; }
.con-menu__pop form { display: block; }
.con-menu__item {
  display: flex; align-items: center; width: 100%; min-height: var(--tap); padding: 0 12px; border-radius: 6px;
  color: var(--ink); background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--font); font-stretch: var(--wdth-read); font-weight: 600; font-size: var(--fs-meta); line-height: 1.2;
}
.con-menu__item:hover { background: var(--surface-2); }
.con-menu__item.is-destructive { color: var(--alert); }

/* table tiles (§5.3) */
.tiles { --per-row: 2; display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.tt {
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 148px; padding: 12px;
  border-radius: var(--radius-card); background: transparent; color: var(--ink); text-align: left;
}
.tt__hit { position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: none; border: 0; cursor: pointer; }
.tt__hit:focus-visible, .tt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.con-board:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.tt > :not(.tt__hit):not(.tt__menu) { position: relative; z-index: 1; pointer-events: none; }
.tt > .tt__action, .tt > .tt__action * { pointer-events: auto; }
.tt:not(.tt--field) > * { pointer-events: auto; }
.tt__head { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; column-gap: 8px; row-gap: 6px; min-height: 28px; }
.tt--menu .tt__head { padding-right: 34px; }
.tt__num {
  font-stretch: var(--wdth-live); font-weight: 700; font-size: var(--fs-headline); line-height: 1;
  letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap;
}
.tt__state { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tt__timer { font-stretch: var(--wdth-live); font-weight: 800; font-size: var(--fs-figure); line-height: 1; font-variant-numeric: tabular-nums; }
.tt__plate { color: var(--ink-2); }
.tt__teams { display: flex; flex-direction: column; margin-top: 6px; }
.tt__team { padding: 7px 0; font-stretch: var(--wdth-name); font-weight: 700; font-size: var(--fs-name); line-height: 1.2; overflow-wrap: anywhere; }
.tt__team + .tt__team { border-top: 1px solid var(--line); }
.tt__status { margin: auto 0 0; padding-top: 6px; color: var(--ink-2); font-weight: 500; font-size: var(--fs-meta); line-height: 1.35; }
.tt__menu { position: absolute; top: 2px; right: 2px; z-index: 2; }
.tt:has(> .tt__menu[open]) { z-index: 6; }
.tt__body { margin: 8px 0 0; color: var(--ink); font-weight: 500; font-size: var(--fs-meta); line-height: 1.35; }
.tt__action { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tt__action .btn { height: var(--tap); padding: 0 16px; }
.tt--field { background: var(--field); color: var(--field-ink); }
.tt--field .tt__team + .tt__team { border-top-color: var(--field-line); }
.tt--field .tt__status, .tt--field .tt__plate { color: var(--field-ink-2); }
.tt--field .tt__menu > .icon-btn { color: var(--field-ink-2); }
.tt--field .con-menu[open] > .icon-btn { color: var(--field-ink); background: var(--field-deep); }
.tt__called { display: block; }

/* the finish (T1 review M4): the winners, their path, the deciding match */
.con-finish { display: flex; flex-direction: column; gap: 6px; }
.con-finish__path { margin: 0; color: var(--ink-2); }
.con-finish__plate { margin: 18px 0 2px; color: var(--ink-2); }
@media (min-width: 1024px) { .con-finish__plate { margin-top: 32px; } }
.con-finish__card { max-width: 420px; }
.con-finish__card .match { width: 100%; }
.con-finish__podium { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.con-finish__podium li { display: flex; align-items: baseline; gap: 12px; }
.con-finish__podium .t-plate { min-width: 36px; color: var(--ink-2); }
.con-finish__name { font-weight: 600; }
/* the plate on a finished night's Tonight (§9.8's console copy, A41 §1): a radius-12
   card in the pane's gutters; on a laptop the main column's top, with a 240px photo */
.con-plate > .champ--card { margin: 0; border-radius: var(--radius-card); }
@media (min-width: 1024px) {
  .con-plate > .champ--card { padding: 32px; }
  .con-plate > .champ--photo { grid-template-columns: minmax(0, 1fr) 252px; gap: 32px; }
  .con-plate .champ .plate-photo { width: 252px; }
}
.tt__dep { margin: 2px 0 0; color: var(--field-alert); font-weight: 500; font-size: var(--fs-meta); line-height: 1.35; }
.tt--field .you { color: var(--on-highlight); }
.tt--field :focus-visible { outline-color: var(--field-ink); }
.tt--long .tt__timer, .tt--long .tt__long { color: var(--field-alert); }
.live-dot--field { background: var(--field-live); }
.icon-btn--field { color: var(--field-ink-2); }
.con-menu[open] > .icon-btn--field { color: var(--field-ink); background: var(--field-deep); }
.tt--open { border: 1.5px dashed var(--line-strong); }
.tt--disputed { background: var(--surface-1); border: 1.5px solid var(--alert); }
.tt--disputed .tt__plate { color: var(--alert); }
.tt--out { background: var(--surface-2); }
.tt--out .tt__action .btn--tertiary { height: var(--tap); padding: 0; }
.tt--out .tt__since { margin: 6px 0 0; padding: 0; }
.con-tonight-live { margin-top: 24px; }
.tdbar__ctx .nowrap, .td-dock__plate .nowrap { white-space: nowrap; }
.tt--foreign { background: var(--surface-1); border: 1px solid var(--line); }
.tt--foreign .tt__team { font-weight: 500; color: var(--ink-2); }
.tt--foreign .tt__timer { color: var(--ink-2); }
.tt__drop { display: none; }
.tt.is-drop { border: 1.5px dashed var(--ink); }
.tt.is-drop .tt__plate { display: none; }
.tt.is-drop .tt__drop { display: inline; color: var(--ink); }
.tt.is-drop .tt__action, .tt.is-drop .tt__status { visibility: hidden; }
.is-dragging { opacity: 0.5; }
.team__nm.is-drop, .rrow.is-drop { outline: 1.5px dashed var(--ink); outline-offset: 2px; border-radius: 6px; }
.qcard__grip { display: none; }
@media (pointer: fine) and (min-width: 1024px) {
  .qcard-wrap[draggable="true"] { cursor: grab; }
  .qcard { position: relative; }
  .qcard__grip { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; justify-content: center; width: 12px; height: 16px; color: var(--ink-2); }
  .qcard-wrap[draggable="true"] .qcard .mc-head { padding-left: 28px; }
  .qcard__grip .icon { width: 16px; height: 16px; }
}
.tiles--quiet .tt { min-height: 64px; }

/* UP NEXT (§5.4): the match card at desktop density */
.qlist { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.qcard-wrap { display: flex; flex-direction: column; border-radius: var(--radius-card); }
.qcard { width: 100%; cursor: pointer; font: inherit; }
.qcard .mc-head { height: 24px; }
.qcard .mc-team { min-height: 36px; padding: 4px 12px; }
.qcard .mc-label { white-space: nowrap; text-overflow: ellipsis; }
.qcard__round { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 12px 7px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: var(--fs-meta); line-height: 1.3; }
.qcard:has(.qcard__round) .mc-head { border-bottom: 0; }
.tt__half { display: inline-block; max-width: 100%; }
.qcard__wait { margin-left: auto; color: var(--ink-2); white-space: nowrap; font-weight: 500; font-size: var(--fs-meta); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; font-stretch: var(--wdth-read); }
.qcard__dep { display: block; padding: 6px 12px 7px; border-top: 1px solid var(--line); color: var(--alert); font-weight: 500; font-size: var(--fs-meta); line-height: 1.35; }
.qcard__why { display: block; padding: 6px 12px 7px; border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: var(--fs-meta); line-height: 1.35; }
.qcard-wrap.is-selected .qcard { border: 1.5px solid var(--ink); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.qcard__call { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px 10px; border: 1.5px solid var(--ink); border-top: 0; border-radius: 0 0 var(--radius-card) var(--radius-card); background: var(--surface-1); }
.qcard__call .btn { height: var(--tap); padding: 0 14px; }
.qcard__call .btn--tertiary { padding: 0 4px; }
.qcard__call-label { flex-basis: 100%; color: var(--ink-2); font-weight: 500; font-size: var(--fs-meta); }

/* NEEDS YOU (§5.5) */
.needs-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.needs { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; background: var(--surface-1); border: 1.5px solid var(--alert); border-radius: var(--radius-card); }
.needs > p { margin: 0; }
.needs__plate { color: var(--alert); }
.needs__body { color: var(--ink); }
.needs__act { margin-top: 6px; }
.needs__act .btn { height: var(--tap); padding: 0 16px; }
/* AT THE DOOR (T4 §2.8): Add, then Not tonight, side by side. */
.needs--door .needs__act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.needs--door .needs__form { margin: 0; }

/* JUST IN (§5.6) */
.jlist { margin-top: 8px; border-top: 1px solid var(--line); }
.jrow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.jrow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; min-height: 44px; justify-content: center;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.con-call__match { display: grid; gap: 2px; margin: 4px 0 12px; }
.con-call__match > p { margin: 0; }
.jrow__main:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.jrow__line { font-stretch: var(--wdth-name); font-weight: 700; font-size: var(--fs-name); line-height: 1.25; }
.jrow__beat { padding: 0 2px; color: var(--ink-2); font-stretch: var(--wdth-read); font-weight: 500; font-size: var(--fs-meta); }
.jrow__lost { font-weight: 500; color: var(--ink-2); }
.jrow__meta { color: var(--ink-2); font-weight: 500; font-size: var(--fs-meta); line-height: 1.35; font-variant-numeric: tabular-nums; }
.jrow > .btn--tertiary { flex: none; padding: 0 2px; }
.jmore { margin-top: 4px; }

/* the roster, Regulars and the add field (§5.7, §5.8) */
.roster { margin-top: 8px; border-top: 1px solid var(--line); }
.rrow { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rrow[hidden] { display: none; }
.rrow__who {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 0;
  color: var(--ink); background: none; border: 0; text-align: left; font: inherit;
}
button.rrow__who { cursor: pointer; }
button.rrow__who:disabled { cursor: default; }
.rrow__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rrow__name { font-stretch: var(--wdth-name); font-weight: 700; font-size: var(--fs-name); line-height: 1.2; overflow-wrap: anywhere; }
.rrow__meta { color: var(--ink-2); font-weight: 500; font-size: var(--fs-meta); line-height: 1.35; }
.rrow__end { flex: none; display: flex; align-items: center; gap: 2px; }
.rrow__end .btn { height: var(--tap); padding: 0 14px; }
.rrow__end .icon-btn { color: var(--ink-2); }
.rrow--off .rrow__name { font-weight: 500; color: var(--ink-2); }
.rrow--off .rrow__who { cursor: default; }
.rrow--off .avatar { color: var(--line-strong); box-shadow: inset 0 0 0 1.5px var(--line-strong); background: transparent; }
.addfield { position: relative; }
.addfield .input { padding-right: 48px; }
.addfield .kc { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.typeahead { margin-top: 8px; border-top: 1px solid var(--line); }
.typeahead .rrow.is-active { background: var(--surface-2); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.typeahead__new .avatar { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink); }
.typeahead__new .avatar .icon { width: 18px; height: 18px; }
.con-more > summary { list-style: none; cursor: pointer; }
.con-more > summary::-webkit-details-marker { display: none; }
.con-more[open] > summary { display: none; }
.roster--more { margin-top: 0; border-top: 0; }
.con-find { margin-top: 8px; }
.con-find .input::-webkit-search-cancel-button { display: none; }
.con-chips { margin-top: 12px; padding-bottom: 2px; }
.con-chips .chip { gap: 6px; min-height: var(--tap); min-width: 56px; justify-content: center; border-radius: 8px; }
.chip__n { font-stretch: var(--wdth-live); font-weight: 800; font-variant-numeric: tabular-nums; }
.teams { margin-top: 8px; border-top: 1px solid var(--line); }
.team { display: flex; align-items: center; gap: 8px; min-height: 56px; border-bottom: 1px solid var(--line); }
.team__seed { flex: none; width: 32px; font-stretch: var(--wdth-live); font-weight: 800; font-size: var(--fs-figure); line-height: 1; font-variant-numeric: tabular-nums; }
.team__names { flex: 1; min-width: 0; font-stretch: var(--wdth-name); font-weight: 700; font-size: var(--fs-name); line-height: 1.2; }
.team__names { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.team__sep { color: var(--ink-2); padding: 0 4px; }
.team__nm {
  min-height: var(--tap); padding: 0 6px; margin: 0 -6px; border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer;
  font: inherit; font-stretch: var(--wdth-name); font-weight: 700; text-align: left;
  transition: transform var(--dur-press) ease-out;
}
.team__nm:active { transform: scale(0.97); }
.team__nm { display: inline-flex; align-items: center; gap: 6px; }
.team__nm > .icon { display: none; width: 16px; height: 16px; }
.team__nm[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); margin: 0; padding: 0 12px; border-radius: var(--radius-control); }
.team__nm[aria-pressed="true"] > .icon { display: block; }
.team .con-menu { flex: none; }
.group-head__acts { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 12px; }
.group-head__title > h2 { white-space: nowrap; }

/* the A/B letter (§5.7): a 28px square in a 44px hit area; A → B → blank */
.abl { display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 0; background: none; cursor: pointer; }
.abl__box {
  display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--line-strong); border-radius: 3px; color: var(--ink);
  font-stretch: var(--wdth-live); font-weight: 800; font-size: var(--fs-meta); letter-spacing: 0.06em; line-height: 1;
}
.abl:active .abl__box { transform: scale(0.94); }

/* BYP's partner step: "No partner yet" beside the field (§7.4) */
.addfield__row { display: flex; align-items: center; gap: 8px; }
.addfield__row > .input-with-icon { flex: 1; min-width: 0; position: relative; }
.addfield__skip { flex: none; min-height: var(--tap); }
.addfield__skip[hidden] { display: none; }
.con-late { margin-top: 8px; }

/* the player sheet (§5.9) and the sheets it leads to */
#con-player .sheet-body > turbo-frame { padding-right: 0; }
.psheet { display: flex; flex-direction: column; gap: 16px; }
.psheet > h2:first-child { padding-right: 40px; }
.rrow__wide { display: none; }
.rrow__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.psheet__head { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.psheet__who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.psheet__who > * { margin: 0; overflow-wrap: anywhere; }
.psheet__meta { color: var(--ink-2); }
.psheet__sec { display: flex; flex-direction: column; gap: 8px; }
.psheet__label { margin: 0; color: var(--ink-2); }
.seg__form { display: contents; }
.seg button.seg__btn { border: 0; background: none; cursor: pointer; font-family: var(--font); }
.seg .seg__btn[aria-pressed="true"], .seg .seg__btn[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.psheet__picks { margin-top: 0; }
.psheet__picks form { display: block; }
.con-pick > .icon { margin-left: auto; width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.con-pick.is-destructive { color: var(--alert); }
.con-pick:disabled { color: var(--ink-2); cursor: default; }
.psheet__pick-txt { flex: 1; }
.psheet__pick-val { color: var(--ink-2); font-weight: 500; font-size: var(--fs-meta); font-stretch: var(--wdth-read); margin-right: 4px; }
.psheet__row { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); }
.psheet__row-txt { flex: 1; min-width: 0; font-stretch: var(--wdth-name); font-weight: 700; font-size: var(--fs-name); line-height: 1.2; }
.psheet__row .btn { height: var(--tap); padding: 0 14px; }
.psheet__off { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.psheet__off .con-pick { border-bottom: 0; }
.psheet__why { margin: 0; color: var(--ink-2); }
.psheet__back { align-self: flex-start; gap: 2px; min-height: var(--tap); margin-left: -8px; padding: 0 8px; }
.psheet__back .icon { width: 18px; height: 18px; }
.psheet__err { margin: 0; }
.psheet__list { margin-top: 0; }
.psheet .group-head { margin: 0; }
.psheet .confirm__actions { margin-top: 8px; }
.typeahead--inline:not([hidden]) { position: static; max-height: none; margin-top: 8px; padding: 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
a.rrow { color: var(--ink); text-decoration: none; }
.rrow.rrow__who { flex: none; min-height: 56px; border-bottom: 1px solid var(--line); }
.rrow__grow { flex: 1; }
.rrow > .team__seed { align-self: center; }
.con .tdc__spots { display: inline-flex; }
.spots__seg { margin-top: 4px; }
.spots__meta { margin: 0; color: var(--ink-2); }
.spots .rrow { min-height: 56px; }
.spots .rrow .btn { flex: none; height: var(--tap); padding: 0 14px; }
.spots .tly__body { display: flex; flex-direction: column; gap: 12px; }
.spots .tly__body > h2 { margin: 0; }

.con-setup { display: flex; flex-direction: column; gap: 20px; }
.con-setup__cols { display: flex; flex-direction: column; gap: 28px; }
.con-setup__col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.con-setup__col--regulars { gap: 0; }
.con-setup__col--regulars > section + section { margin-top: 24px; }

/* the door: the join QR on a light card in both themes (--field-ink doesn't flip), so every phone camera reads it */
/* the closed door on the Desk (A41 §2): the same door as the sheet's, at the Desk's size */
.con-door__door { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.con-door__door .door__name { font-size: var(--fs-headline); line-height: 1.1; }
.con-door__door .door__qr { width: 180px; margin: 6px 0 0; padding: 10px; border-radius: var(--radius-control); }
.con-door__meta { margin: 8px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
.con-door__qr { width: 180px; margin-top: 12px; padding: 10px; background: var(--field-ink); border-radius: var(--radius-control); }
.con-door__qr svg { display: block; width: 160px; height: 160px; }
.con-door__acts { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.con-door__acts .btn { height: var(--tap); padding: 0 14px; }

/* sheets: confirm, the consequence list, picks (§5.14) */
.con-sheet .sheet-body { display: flex; flex-direction: column; }
.confirm { display: flex; flex-direction: column; gap: 8px; }
.confirm > h2 { padding-right: 40px; }
.confirm > * { margin: 0; }
.confirm > .confirm__actions { margin-top: var(--space-3); }
.con-sheet .sheet-body > .confirm { padding-right: 0; }
/* T1 §5.14: headline, 8, meta, 16, the button, 8, Keep it. `.con form` would zero the 16. */
#con-confirm .confirm__actions { margin-top: 16px; gap: 8px; }

/* the shortcut sheet (§5.17) */
.con-keys__group { margin: 20px 0 4px; color: var(--ink-2); }
.con-keys__list { margin: 0; }
.con-keys__row { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.con-keys__row dt { flex: none; display: flex; gap: 4px; }
.con-keys__row dd { margin: 0; line-height: 1.35; }
@media (min-width: 1280px) {
  .sheet-dialog.con-sheet.con-keys { width: 880px; max-width: calc(100vw - 32px); }
  .con-keys .sheet-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-content: start; }
  .con-keys .sheet-body > h2 { grid-column: 1 / -1; }
  .con-keys__col > .con-keys__group:first-child { margin-top: 8px; }
}
.kc.kc--show { display: inline-flex; }
@media (min-width: 1024px) and (max-width: 1359px) {
  .cmdbar__actions .btn--fold { width: var(--tap); padding: 0; }
  .btn--fold .cmdbar__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cmdbar__kc { display: none; }
}
.cmdbar__print > summary.btn { color: var(--ink); }
.cmdbar__print[open] > summary.btn { background: var(--surface-2); }
.cmdbar__help { font-stretch: var(--wdth-live); font-weight: 800; font-size: var(--fs-figure); line-height: 1; }

.con-stale {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 40px; padding: 0 16px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.con-stale > p { margin: 0; }
.con-stale__acts { display: flex; align-items: center; gap: 8px; flex: none; }

/* the TDs sheet and the Desk's TDs (§7.15) */
.tds { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.tds__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tds__txt .psheet__row-txt { flex: none; }
.tds__row { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); }
.tds__name { font-stretch: var(--wdth-name); font-weight: 700; font-size: var(--fs-name); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.con-tds .tds { margin-bottom: 12px; }
.typeahead__none { margin: 0; padding: 12px 16px; }
.con .stand-table .who .stand-meta { display: block; margin-top: 2px; color: var(--ink-2); font-weight: 500; font-size: var(--fs-meta); }
.tdbar__off { display: flex; flex-direction: column; gap: 2px; }
.tdbar__off .tdbar__more { color: var(--ink-2); text-decoration: none; cursor: default; }
.ko-list { margin: 0; padding-left: 22px; columns: 2; column-gap: 16px; font-weight: 600; font-size: var(--fs-meta); line-height: 1.6; }
.td-skip { margin-top: 8px; }
.tdbar__more { align-self: flex-start; height: var(--tap); padding: 0; }
.con .section-label .section-act {
  flex: none; height: var(--tap); padding: 0; text-transform: none; letter-spacing: normal;
  font-size: var(--fs-meta); color: var(--ink);
}
.confirm__meta { color: var(--ink-2); }
.conseq { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; padding: 12px; background: var(--surface-2); border-radius: var(--radius-control); }
.conseq__item { display: flex; flex-direction: column; gap: 3px; }
.conseq__item > p { margin: 0; }
.conseq__item > .t-plate { color: var(--ink-2); }
.conseq__act { align-self: flex-start; }
.conseq__item form { align-self: flex-start; }
.con-report { margin-top: 16px; }
.con-picks { display: flex; flex-direction: column; margin-top: 12px; border-top: 1px solid var(--line); }
.con-pick {
  display: flex; align-items: center; width: 100%; min-height: 56px; padding: 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer;
  font-family: var(--font); font-stretch: var(--wdth-name); font-weight: 700; font-size: var(--fs-name); line-height: 1.2;
}
.con-picks__rule { height: 0; margin: 8px 0; border: 0; border-top: 1px solid var(--line); }
.con-pick:has(+ .con-picks__rule) { border-bottom: 0; }
#con-more .sheet-body > .con-picks { margin-top: 28px; padding-right: 0; border-top: 0; }

/* ---------- The console under 1024px (§4.1): one column, three views, the dock ---------- */
@media (max-width: 1023.98px) {
  .con-laptop-only { display: none !important; }
  .con-head { top: 0; }
  .con-seg { position: sticky; top: var(--header-h); z-index: 49; padding: 4px 16px 10px; background: var(--surface-0); border-bottom: 1px solid var(--line); }
  .con-seg .seg { height: 40px; }
  .con-seg .seg__btn::after { top: -4px; bottom: -4px; }
  .con-board .round-tabs { top: calc(var(--header-h) + 55px); }
  .con-body { display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 16px 16px calc(var(--btn-h-lg) + 25px + env(safe-area-inset-bottom) + 24px); }
  .con-main, .desk, .desk__body { display: contents; }
  .desk__tabs, .desk .tdbar, .desk .con-door { display: none; }
  .con[data-view="tonight"] [data-pane]:not([data-pane~="tonight"]),
  .con[data-view="board"] [data-pane]:not([data-pane~="board"]),
  .con[data-view="players"] [data-pane]:not([data-pane~="players"]) { display: none; }
  .con-setup, .con-finish, .con-plate { order: 0; }
  .con-needs { order: 1; }
  .con:has(.td-dock__plate) .con-body { padding-bottom: calc(var(--btn-h-lg) + 25px + env(safe-area-inset-bottom) + 52px); }
  .con-floor { order: 2; }
  .con-queue { order: 3; }
  .con-justin { order: 4; }
  .con-board { order: 5; }
  .con-roster { order: 6; }
  .desk__sec { display: flex; flex-direction: column; }
  .desk__sec.is-empty { display: none; }
  .con:not(.is-started) .con-board > .group-head { display: none; }
  .tt--menu .tt__head { padding-right: 0; }
  .tt--menu .tt__menu { top: auto; bottom: 2px; }
  .tt--menu .tt__status, .tt--menu .tt__action { padding-right: 34px; }
}
@media (min-width: 600px) and (max-width: 1023.98px) {
  .tiles { --per-row: var(--per-row-4, 3); }
}

/* ---------- The console at 1024px and up (§4.2): command bar, floor + board, the Desk ---------- */
@media (min-width: 1024px) {
  .con-phone-only, .td-dock { display: none !important; }
  .con { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; height: 100dvh; background: var(--surface-0); }
  body.console-manage:has(.strip:not([hidden])) .con { height: calc(100dvh - var(--strip-h)); }
  .con-floor--pre { display: none; }
  .cmdbar {
    display: flex; align-items: center; gap: 20px; min-height: 72px; padding: 12px 24px;
    background: var(--surface-0); border-bottom: 1px solid var(--line);
  }
  .cmdbar__lead { flex: none; display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 34%; margin-left: -10px; }
  .cmdbar__title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .cmdbar__title > * { margin: 0; }
  .cmdbar__plate { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cmdbar__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cmdbar__track { flex: 1; min-width: 240px; display: flex; justify-content: center; }
  .cmdbar__track .track { width: 100%; max-width: 520px; }
  .cmdbar__status { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
  .cmdbar__count { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .cmdbar__actions { flex: none; display: flex; align-items: center; gap: 8px; }
  .cmdbar__actions .btn { height: var(--tap); padding: 0 12px; gap: 6px; }
  .btn--icon { width: var(--tap); padding: 0; flex: none; }
  .con-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail-desk); min-height: 0; }
  .con-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; min-height: 0; padding: 20px 24px 28px; overflow-y: auto; }
  .con:not(.is-started) .con-board { display: none; }
  .con-board { display: flex; flex-direction: column; min-height: 0; }
  .con-board .board__scroll { margin: 4px -24px 0; padding: 0 24px 8px; }
  .tiles { --per-row: var(--per-row-3, 3); gap: 12px; }
  .tt { min-height: 132px; }
  .desk { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface-0); border-left: 1px solid var(--line); }
  .desk__tabs { flex: none; padding: 16px 16px 0; }
  .desk__body {
    flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 28px; padding: 20px 16px 28px;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
  .desk__sec { display: flex; flex-direction: column; }
  .con[data-desk-view="tonight"] .desk [data-desk]:not([data-desk~="tonight"]),
  .con[data-desk-view="players"] .desk [data-desk]:not([data-desk~="players"]) { display: none; }
  .con-setup__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .con-setup__col--regulars { order: -1; }
  .typeahead {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin-top: 0; max-height: 60vh; overflow-y: auto;
    padding: 4px 16px; background: var(--surface-1); border: 1px solid var(--line); border-top: 1px solid var(--line);
    border-radius: var(--radius-control); box-shadow: var(--shadow-2);
  }
  .typeahead .rrow:last-child { border-bottom: 0; }
  .rrow { min-height: 48px; padding: 2px 0; }
  .jrow { min-height: 48px; }
  .jmore { display: none; }
  .con-wide-only { display: inline; }
  .rrow__wide { display: contents; }
  .spots .rrow { min-height: 48px; }
  .con-narrow-only { display: none; }
  .sheet-dialog.con-sheet { max-width: 480px; }

  /* the Tally docked in the Desk (§5.19, A-T7): it replaces the tabs and body, no scrim */
  .desk:has(> .desk__tally > .tly) > .desk__tabs, .desk:has(> .desk__tally > .tly) > .desk__body { display: none; }
  .desk__tally:has(> .tly) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .tly--docked { flex: 1; min-height: 0; animation: td-dock-in var(--dur-sheet-in) var(--ease-out) both; }
  .tly--docked:focus { outline: none; }
  .tly--docked > .tly__head { flex: none; padding: 8px 16px 12px 6px; border-bottom: 1px solid var(--line); }
  .tly--docked .tly__titles { padding-top: 11px; }
  .tly--docked .tly__close { display: inline-flex; align-items: center; width: auto; min-width: var(--tap); gap: 4px; padding: 0 8px; }
  .tly--docked > .tly__body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 20px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .tly--docked > .tly__foot { flex: none; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: var(--surface-0); }
  .tly--plain > .tly__head { border-bottom: 0; padding-bottom: 0; }
  .tly--plain > .tly__body { padding-top: 4px; }
  .con .tt.is-tally, .con .match-card.is-tally, .con .match.is-tally { outline: 2px solid var(--ink); outline-offset: 2px; }
}
.desk__tally { display: none; }
@keyframes td-dock-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tly--docked { animation: foos-fade 120ms linear both; }
}
@media (min-width: 1280px) {
  .tiles { --per-row: var(--per-row-4, 4); }
}
@media (min-width: 1440px) {
  .tiles { --per-row: var(--per-row-5, 5); }
}

/* ---------- Make this night an event (T1b §2.11) ---------- */
.nte__body { display: flex; flex-direction: column; gap: 8px; padding: 8px 16px 32px; }
.nte__meta { margin: 0 0 16px; color: var(--ink-2); }
.nte__form { display: flex; flex-direction: column; gap: 8px; }
.nte__hint { margin: 0; color: var(--ink-2); }
.nte__hint.c-alert { color: var(--alert); }
.nte__go { margin-top: 16px; }
.set-event { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; margin: 20px 0; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.set-event > p { margin: 0; }
.set-event .t-meta { color: var(--ink-2); max-width: 56ch; }
.set-event .btn { margin-top: 8px; }
@media (max-width: 1023.98px) { .set-event { display: none; } }
@media (min-width: 1024px) {
  body.console-create .shell:has(.nte) { max-width: 720px; margin: 0 auto; }
  .nte__head { padding-left: 0; }
  .nte__body { padding: 8px 0 64px; }
  .nte__go { align-self: flex-start; width: auto; min-width: 240px; }
}

/* The move lock (T1b §2.12): Where and When stay in sight, and wait. */
.csec > [inert] { opacity: 0.4; }

/* ---------- Money (T1 §8, T2) ---------- */
/* the payment chip: filled = money in; the dashed ring = not yet, like an empty bead */
.paychip {
  display: inline-flex; align-items: center; justify-content: center; flex: none; height: 24px; padding: 0 8px;
  border-radius: var(--radius-plate); background: var(--surface-2); color: var(--ink); white-space: nowrap;
  font-stretch: var(--wdth-plate); font-weight: 700; font-size: var(--fs-plate); line-height: 1;
  letter-spacing: var(--track-plate); text-transform: uppercase;
}
.paychip--comp { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.paychip--unpaid { background: transparent; color: var(--ink-2); border: 1.5px dashed var(--line-strong); }
.paychip--refunded { background: transparent; color: var(--ink-2); padding: 0; }
.paybtn {
  display: inline-grid; place-items: center; flex: none; min-width: var(--tap); min-height: var(--tap); padding: 0 2px;
  border: 0; border-radius: var(--radius-control); background: none; cursor: pointer;
}
.paybtn:active { transform: scale(0.97); }
.team__names .paybtn { min-height: 32px; vertical-align: middle; margin: 0 4px 0 2px; }

/* the Entry section and its sheets (§8.2) */
.entry-sec { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.entry-sec__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.entry-sec__due { margin: 0; color: var(--ink); }
.entry-sec__due .test-mark { margin-left: 6px; }
.entry-sec__acts { display: flex; flex-direction: column; gap: 8px; }
.entry-sec__acts form { margin: 0; }
.entry-sec__later { align-self: center; }
.test-band--sheet { margin: -20px -16px 16px; padding-top: 14px; padding-right: 56px; }
@media (min-width: 1024px) { .test-band--sheet { margin: -20px -20px 16px; padding-top: 0; padding-left: 20px; } }
.sheet-dialog:has(.test-band--sheet) .sheet-close { top: 48px; background: transparent; }
.sheet-body .test-band--sheet { padding-right: 16px; }
.test-band--sheet + .psheet > h2 { padding-right: 40px; }
@media (min-width: 1024px) {
  .sheet-dialog:has(.test-band--sheet) .sheet-close { top: 44px; }
  .sheet-body .test-band--sheet { padding-right: 20px; }
}
.refund-form, .pot-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.note-field { display: flex; flex-direction: column; gap: 6px; }
.note-field textarea.input { height: 76px; padding: 12px 14px; resize: none; line-height: 1.4; }
.seg--refund { height: auto; min-height: var(--tap); }
.seg--refund > label.seg__btn { position: relative; flex: 1; cursor: pointer; text-align: center; padding: 8px; }
.seg--refund > label.seg__btn:has(input:checked) { background: var(--ink); color: var(--on-ink); }
.seg--refund > label.seg__btn:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.refund-form__keep { display: none; }
.refund-form:has(input[name="stay"][value="in"]:checked) .refund-form__keep, .refund-form__keep[data-kept] { display: flex; }
.refund-form__acts, .pot-form__acts { display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* the money summary and the pot (§8.3) */
.msum-stats { display: grid; grid-template-columns: repeat(4, minmax(min-content, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-control); }
.msum-stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 64px; padding: 10px 8px 10px 10px; text-align: left; color: var(--ink); text-decoration: none; }
.msum-stat + .msum-stat { border-left: 1px solid var(--line); }
.msum-stat > .t-plate { color: var(--ink-2); font-size: 11px; letter-spacing: 0.04em; white-space: nowrap; }
.msum-stat--link > .t-figure { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.msum-split { margin: 10px 0 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.msum-sec { display: flex; flex-direction: column; gap: 6px; }
.msum-sec > p { margin: 0; }
.msum-refund { justify-content: space-between; gap: 12px; }
.msum-pot { font-variant-numeric: tabular-nums; }
.msum-by { color: var(--ink-2); }
.msum-change, .msum-confirm { align-self: flex-start; }
.pot-field { position: relative; }
.pot-field > .input {
  height: 56px; padding-left: 32px; font-stretch: var(--wdth-live); font-weight: 800; font-size: var(--fs-figure); font-variant-numeric: tabular-nums;
}
.pot-field__cur {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-2);
  font-stretch: var(--wdth-live); font-weight: 800; font-size: var(--fs-figure); line-height: 1;
}
.pot-form .input-error { margin: -8px 0 0; }
.pot-alts { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pot-alts .btn--tertiary { font-size: var(--fs-meta); }
.potcard { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-card); }
.potcard > p { margin: 0; }
.potcard__plate { color: var(--ink); }
.potcard__meta { margin-top: -6px; color: var(--ink-2); }
.potcard__acts { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.potcard__acts form { margin: 0; }

/* the laptop's strip and the phone's MONEY row (§8.4) */
.money-strip {
  display: flex; align-items: center; gap: 16px; min-height: var(--strip-h); padding: 0 24px;
  background: var(--surface-2); color: var(--ink); border-bottom: 1px solid var(--line);
  font-weight: 500; font-size: var(--fs-meta); line-height: 1.35;
}
.money-strip__band { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.money-strip__band > .t-plate { color: var(--alert); }
.money-strip__rule { flex: none; width: 1px; height: 16px; background: var(--line); }
.money-strip__facts { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.money-strip__link { position: relative; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.money-strip__link::after { content: ""; position: absolute; inset: -12px -4px; }
.money-strip__pot { margin-left: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.money-strip__pot > .t-plate { color: var(--ink-2); }
.money-strip__pot .btn--tertiary + .btn--tertiary { margin-left: 8px; }
.money-strip .btn--tertiary { position: relative; min-height: var(--strip-h); }
.money-strip .btn--tertiary::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; bottom: -2px; }
.money-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px 0 16px;
  border: 0; border-bottom: 1px solid var(--line); background: var(--surface-0); color: var(--ink); text-align: left;
  font-family: var(--font); cursor: pointer;
}
.money-row > .t-plate { flex: none; color: var(--ink-2); }
.money-row__facts { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.money-row > .icon { flex: none; width: 20px; height: 20px; color: var(--ink-2); }
.confirm__switch { margin-top: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.confirm__switch[hidden], .confirm__extra[hidden] { display: none; }
.confirm__extra { margin: 0 0 4px; color: var(--ink-2); }
.csec__band { margin: 0 0 16px; }
.csec__band .test-band { border-radius: var(--radius-control); }
#sec-money .switch-list { margin-top: 16px; }
#sec-money .switch-row + .switch-row { padding-left: 16px; }
#sec-money .switch-row__meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
#sec-money .switch-row__meta .test-mark { margin-left: 0; }
@media (max-width: 1023.98px) {
  .con-potcard { order: -1; }
}
@media (min-width: 1024px) {
  .con:has(> .money-strip) { grid-template-rows: auto auto minmax(0, 1fr); }
}

/* T3 §5.3 tile additions on any shared floor: the FEATURE / RESERVED flag (a word in a
   1px outline, never a star, never gold), a reserved open table, the pinned-next strip and
   another tournament's quiet tile inside an event. */
.tt__flags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.tt__flag {
  display: flex; align-items: center; width: fit-content; height: 20px; padding: 0 6px;
  border-radius: var(--radius-plate); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink);
}
.tt--field .tt__flag { color: var(--field-ink); box-shadow: inset 0 0 0 1px var(--field-ink-2); }
.tt--reserved { border: 1.5px solid var(--line-strong); }
.tt--reserved .tt__plate { color: var(--ink); }
.tt__pin {
  display: flex; align-items: center; gap: 6px; margin: 8px -12px -12px; padding: 7px 12px 8px;
  background: var(--field-deep); color: var(--field-ink); border-radius: 0 0 var(--radius-card) var(--radius-card);
  font-weight: 600; font-size: var(--fs-meta); line-height: 1.2; white-space: nowrap; overflow: hidden;
}
.tt__pin .icon { width: 16px; height: 16px; flex: none; }
.tt--other { background: var(--surface-1); border: 1px solid var(--line); color: var(--ink-2); }
.tt--other .tt__team { font-weight: 500; color: var(--ink-2); }
.tt--other .tt__timer { color: var(--ink-2); }
.qcard__why .icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

/* ---------- T5: tables that tell the truth ---------- */
/* §2.1 the tag: the tournament, the round, then the called, overdue or foreign line */
.tt__tag > .tt__l { display: block; }
.tt__l--t { font-weight: 600; color: var(--ink); }
.tt--field .tt__l--t { color: var(--field-ink); }
.tt--other .tt__l--t, .tt--foreign .tt__l--t, .tt.tt--unlit .tt__l--t { color: var(--ink-2); }
.tt__lead { display: none; margin-right: 6px; }
.tt--long .tt__lead { color: var(--field-alert); }
.tt--overdue .tt__lead { color: var(--alert); }
.tt--other .tt__lead, .tt--foreign .tt__lead { color: var(--ink-2); }
.tt__nm { display: inline-block; }
.tt .tt__od { color: var(--alert); white-space: nowrap; }
.tt--other .tt__od, .tt--foreign .tt__od { color: var(--ink-2); }
/* §2.4 OVERDUE: off the field, the alert line round it, no clock */
.tt--overdue { background: var(--surface-1); border: 1.5px solid var(--alert); color: var(--ink); }
.tt--overdue > :not(.tt__hit):not(.tt__action) { pointer-events: none; }
.tt--overdue .tt__dep { color: var(--alert); }
.tt--overdue :focus-visible { outline-color: var(--ink); }
@media (max-width: 1023.98px) {
  .tt--menu .tt__status.tt__tag { padding-right: 0; }
  .tt--menu .tt__tag > .tt__l:last-child { padding-right: 34px; }
  .tt__action > .tt__wide { flex: 1 1 auto; padding: 0 8px; }
  .tiles--compact-p .tt__lead { display: inline; }
  .tiles--compact-p .tt__head .tt__od, .tiles--compact-p .tt__head .tt__long { display: none; }
  .tiles--compact-p .tt__l:not(.tt__l--t):not(.tt__l--since) { display: none; }
  .tiles--compact-p .tt--menu .tt__tag > .tt__l--t { padding-right: 34px; }
}
@media (min-width: 1024px) {
  .tiles--compact-l .tt__lead { display: inline; }
  .tiles--compact-l .tt__head .tt__od, .tiles--compact-l .tt__head .tt__long { display: none; }
  .con:has(> .con-stale) { grid-template-rows: auto auto minmax(0, 1fr); }
  .con:has(> .money-strip):has(> .con-stale) { grid-template-rows: auto auto auto minmax(0, 1fr); }
  .con-stale { min-height: 48px; padding: 8px 24px; }
}
/* §2.2 the TABLES head: counts break between themselves, then the floor's tournaments */
.con-c { white-space: nowrap; }
.td-status__part { display: inline-block; }
.con-floorline { margin: 2px 0 0; color: var(--ink-2); text-wrap: pretty; }
/* §2.5 the overdue card's teams and round, each on its own line */
.needs__who { margin: 0; color: var(--ink-2); }
.needs__l { display: block; }
/* Sheets with pick rows: the console's "What happened?" and move, the Event board's sheets */
.sheet-head { display: flex; flex-direction: column; gap: 4px; padding-right: 36px; }
.sheet-head > * { margin: 0; }
.sheet-head .t-meta { color: var(--ink-2); }
.pick-list { border-top: 1px solid var(--line); }
.pick-row {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--line);
}
.pick-row__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pick-row__meta { color: var(--ink-2); }
.pick-row .btn { flex: none; height: var(--tap); padding: 0 14px; }
button.pick-row, .pick-row > button:only-child {
  width: 100%; border-left: 0; border-right: 0; border-top: 0; background: none; cursor: pointer;
  color: var(--ink); font-family: var(--font); font-size: var(--fs-body); text-align: left;
}
.pick-row > .icon { flex: none; width: 20px; height: 20px; color: var(--ink-2); }
/* §2.6 What happened? */
.what__part { display: inline-block; }
.what__chev { flex: none; width: 16px; height: 16px; color: var(--ink-2); }
a.pick-row { color: var(--ink); text-decoration: none; }
.what__rows > form, .what__rows > div { margin: 0; }
.what__out { display: flex; margin-top: -4px; }
.what__out .btn--tertiary { height: var(--tap); padding: 0; }
@media (min-width: 1024px) {
  .what__q { font-stretch: var(--wdth-name); font-weight: 700; font-size: var(--fs-name); line-height: 1.2; }
}
