/* Tournament pages (/t/...), drawn by tournament.js. The look of the approved phone previews 188–201 (393 px): a light
   grey page, white 20–24 px cards, a navy card for what is happening now, numbers in Barlow Condensed and the phone's
   own font for words. Dark colours follow the phone only inside the app (html.in-app, 564A: the website stays light). On a computer the phone column sits in
   the middle, at most 560 px wide. */
.tour-page {
  --tp-bg: #f2f3f7;
  --tp-card: #fff;
  --tp-ink: #0b1734;
  --tp-ink2: #1e2743;
  --tp-muted: #6b7690;
  --tp-soft: #e8edf5;
  --tp-brand-ink: var(--navy); /* codes and other brand numbers: navy on light, ball yellow on dark */
  --tp-optic-soft: #e2f7a5;
  --tp-seg-track: rgba(118, 128, 150, 0.14);
  --tp-seg-on: #fff;
  --tp-seg-shadow: 0 1px 3px rgba(7, 22, 52, 0.14);
  --tp-glass: rgba(255, 255, 255, 0.8);
  --tp-glass-edge: rgba(255, 255, 255, 0.95);
  --tp-glass-shadow: 0 0 0 0.5px rgba(7, 22, 52, 0.12), 0 6px 18px rgba(7, 22, 52, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --tp-av-bg: #e6eaf1;
  --tp-av-ink: var(--navy);
  --tp-av-ring: #fff;
  --tp-navy-card: linear-gradient(165deg, #0e2b68 0%, #081b4e 55%, #071634 100%);
  --tp-ico: #eef1f6; /* icon squares and court tiles of the create flow */
  --tp-dim: #b3bccb; /* chevrons, past days */
  --tp-line: #c9d0dc; /* "+" and "Thêm" outlines, an unticked event's ring */
  --tp-bar: #e3e8f0; /* the progress bars still ahead, a station not reached yet */
  --tp-label: var(--navy); /* the station matrix's icons and labels */
  --tp-amber-ink: #8a4f00; /* the station column of the next action */
  --tp-pill: var(--navy); /* the BTC pill */
  --tp-dash: #d3d9e3; /* the draw's empty slots: dashed line, outlined photos, arrows between rounds */
  --tp-ghost: #c3cad6;
  --tp-arrow: #9aa5b8;
  --tp-bg-clear: rgba(242, 243, 247, 0); /* the page colour, transparent: fades under a button kept in view */
  --tp-up: var(--up); /* the bar of the pairs that go through (197) */
  --tp-hair: rgba(11, 23, 52, 0.1); /* lines between rows inside a card */
  --tp-font: -apple-system, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--tp-bg);
}

@media (prefers-color-scheme: dark) {
  html.in-app .tour-page {
    --tp-bg: #03060d;
    --tp-card: #0e1424;
    --tp-ink: #eef2f8;
    --tp-ink2: #c9d1df;
    --tp-muted: #8e99b1;
    --tp-soft: #232c40;
    --tp-brand-ink: var(--optic);
    --tp-optic-soft: rgba(200, 242, 62, 0.16);
    --tp-seg-track: rgba(255, 255, 255, 0.09);
    --tp-seg-on: #33405c;
    --tp-seg-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --tp-glass: rgba(19, 26, 44, 0.82);
    --tp-glass-edge: rgba(255, 255, 255, 0.08);
    --tp-glass-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.5), 0 6px 18px rgba(0, 0, 0, 0.35);
    --tp-av-bg: #232c40;
    --tp-av-ink: #c9d1df;
    --tp-av-ring: #0e1424;
    --tp-ico: #232c40;
    --tp-dim: #56627a;
    --tp-line: #3a4560;
    --tp-bar: #2a3348;
    --tp-label: #c9d1df;
    --tp-amber-ink: #ffc65c;
    --tp-pill: #33405c;
    --tp-dash: #34405a;
    --tp-ghost: #4a5672;
    --tp-arrow: #6b7690;
    --tp-bg-clear: rgba(3, 6, 13, 0);
    --tp-up: #4cc38a;
    --tp-hair: rgba(255, 255, 255, 0.08);
    color-scheme: dark;
  }
  html.in-app .tour-page .made-by { color: var(--tp-muted); }
  html.in-app .tour-page .made-by a { color: var(--tp-ink); }
}

#tour {
  display: block;
  max-width: 560px;
  min-height: 60vh;
  margin: 0 auto;
  padding: 14px 16px 24px;
  font-family: var(--tp-font);
  color: var(--tp-ink);
  -webkit-tap-highlight-color: transparent;
}
#tour .tp-num { font-family: var(--font-score); font-variant-numeric: tabular-nums; }
.tp-ic { display: block; flex: none; }

/* ---------- In the app's web view: the app has its own bars ---------- */

.in-app .site-header, .in-app .site-footer, .in-app .dock, .in-app .dock-sheet { display: none !important; }
body.in-app { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.in-app #tour { padding-top: max(14px, calc(env(safe-area-inset-top) + 4px)); }

/* ---------- Header: round glass buttons, the name and one quiet line ---------- */

.tp-hd { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.tp-ht { flex: 1; min-width: 0; }
.tp-ht h1 {
  margin: 0;
  font: 700 min(1.375rem, 56px)/1.1818 var(--tp-font);
  letter-spacing: -0.015em;
  color: var(--tp-ink);
  white-space: normal; overflow-wrap: anywhere;
}
.tp-sub { margin: 0; font: 400 0.875rem/1.2857 var(--tp-font); color: var(--tp-muted); white-space: normal; overflow-wrap: anywhere; }
.tp-circ {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: var(--tp-ink);
  text-decoration: none;
  cursor: pointer;
}
.tp-glass {
  background: var(--tp-glass);
  border: 0.5px solid var(--tp-glass-edge);
  box-shadow: var(--tp-glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}
.tp-circ:active { transform: scale(0.94); }

/* ---------- Buttons ---------- */

.tp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 27px;
  font: 600 1.0625rem/1 var(--tp-font);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}
.tp-btn.is-main { background: var(--optic); color: var(--navy-deep); }
.tp-btn:active { filter: brightness(0.96); }

/* ---------- The phase card: what is happening now ---------- */

.tp-phase {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 14px;
  border-radius: 24px;
  background: var(--tp-navy-card);
  color: #fff;
}
.tp-art { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 2; pointer-events: none; }
.tp-phase-line {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0 4px;
  font: 500 1.0625rem/1.25 var(--tp-font);
  color: rgba(255, 255, 255, 0.86);
}
.tp-phase-line .tp-num { margin: 0 2px; font-size: min(2.5rem, 60px); font-weight: 600; line-height: 1; color: var(--optic); vertical-align: -3px; letter-spacing: 0.01em; }
.tp-phase-line .tp-ic { position: relative; top: 4px; color: rgba(255, 255, 255, 0.72); } /* level with the words, not the tall number */
.tp-phase .tp-btn { position: relative; min-height: 44px; margin-top: 12px; border-radius: 22px; font-size: 1rem; }
.tp-phase.is-closed { padding: 10px 14px; background: var(--tp-card); color: var(--tp-muted); }
.tp-phase.is-closed .tp-phase-line { justify-content: center; min-height: 36px; font-size: 1rem; color: var(--tp-muted); }
.tp-phase.is-closed .tp-ic { top: 0; color: var(--tp-muted); }
/* "Giải đã huỷ" (spec §7.1): the cancelled tournament's own page keeps its pages under this notice. */
.tp-phase.is-cancelled { padding: 10px 14px; background: #fdecc8; color: #8a5a00; }
.tp-phase.is-cancelled .tp-phase-line { justify-content: center; min-height: 36px; font-size: 1rem; color: #8a5a00; }
.tp-phase.is-cancelled .tp-ic { top: 0; color: #8a5a00; }

/* ---------- Segmented tabs ---------- */

/* Tap targets of 44 px (W7, 17/11 test: the tabs were 34 px). */
.tp-seg { display: flex; min-height: 50px; margin-top: 14px; padding: 3px; border-radius: 25px; background: var(--tp-seg-track); }
.tp-seg a {
  flex: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  border-radius: 22px;
  font: 500 0.9375rem/1 var(--tp-font);
  color: var(--tp-ink2);
  text-decoration: none;
  white-space: nowrap;
}
.tp-seg a[aria-current="page"] { background: var(--tp-seg-on); color: var(--tp-ink); font-weight: 600; box-shadow: var(--tp-seg-shadow); }

/* ---------- Nội dung: event cards, two columns ---------- */

.tp-events { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tp-ev {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 84px;
  padding: 11px 14px;
  border-radius: 20px;
  background: var(--tp-card);
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease-out;
}
.tp-ev:active { transform: scale(0.97); }
.tp-ev-code { display: block; padding-right: 40px; font: 600 min(1.875rem, 56px)/1.0667 var(--font-score); letter-spacing: 0.01em; color: var(--tp-brand-ink); }
.tp-ev-name { display: block; margin-top: 6px; font: 400 0.9375rem/1.2 var(--tp-font); color: var(--tp-muted); white-space: normal; overflow-wrap: anywhere; }
.tp-ev-count { position: absolute; top: 13px; right: 12px; display: flex; align-items: center; gap: 3px; font: 600 1rem/1 var(--font-score); color: var(--tp-muted); }

/* ---------- Nội dung for organisers (193): the BTC pill, "Việc tiếp theo" and the station matrix ---------- */

.tp-role {
  display: inline-grid;
  flex: none;
  place-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 14px;
  background: var(--tp-pill);
  color: #fff;
  font: 600 0.8125rem/1 var(--tp-font);
  letter-spacing: 0.04em;
}

.tp-next {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 200px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 24px;
  background: var(--tp-navy-card);
  color: #fff;
}
.tp-next-k { position: relative; display: flex; align-items: center; gap: 7px; margin: 0; font: 500 0.9375rem/1.2 var(--tp-font); color: rgba(255, 255, 255, 0.72); }
.tp-next-ev { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; margin: 12px 0 20px; }
.tp-next-code { flex: none; max-width: 60%; font: 600 min(4rem, 96px)/0.875 var(--font-score); letter-spacing: 0.01em; color: var(--optic); white-space: normal; overflow-wrap: anywhere; }
.tp-next-m { min-width: 0; }
.tp-next-m b { display: block; font: 600 min(1.1875rem, 56px)/1.2632 var(--tp-font); white-space: normal; overflow-wrap: anywhere; }
.tp-next-n { display: flex; align-items: center; gap: 5px; font: 400 1rem/1.375 var(--tp-font); color: rgba(255, 255, 255, 0.75); white-space: nowrap; }
.tp-next-n .tp-num { font-size: min(1.25rem, 56px); font-weight: 600; color: #fff; }
.tp-next .tp-btn { position: relative; min-height: 50px; margin-top: auto; border-radius: 25px; }

.tp-mx { margin-top: 14px; padding: 10px 14px 8px; border-radius: 24px; background: var(--tp-card); }
.tp-mx-hd, .tp-mx-row { display: grid; grid-template-columns: 82px repeat(5, minmax(0, 1fr)); }
.tp-mx-hd { height: 58px; }
.tp-mx-st { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; font: 500 0.6562rem/1.2382 var(--tp-font); letter-spacing: -0.01em; color: var(--tp-label); white-space: nowrap; }
.tp-mx-st.is-cur { color: var(--tp-amber-ink); }
/* Narrow phones: a station's two words stack rather than run into the next station's (layout audit A7). */
@media (max-width: 380px) { .tp-mx-st { padding: 0 2px; white-space: normal; text-align: center; } }
.tp-mx-row { height: 44px; }
.tp-mx-row.is-next { margin: 0 -8px; padding: 0 8px; border-radius: 14px; background: var(--tp-optic-soft); }
.tp-mx-ev { display: flex; align-items: center; gap: 5px; min-width: 0; color: inherit; text-decoration: none; }
/* An event's code never breaks inside itself ("DNA/M", R-A 5): it takes the room it needs, at least 45 px. */
.tp-mx-ev b { flex: 0 0 auto; min-width: 45px; font: 600 min(1.4375rem, 56px)/1 var(--font-score); letter-spacing: 0.01em; color: var(--tp-brand-ink); white-space: nowrap; }
.tp-mx-n { display: flex; align-items: center; gap: 3px; font: 600 1.0625rem/1 var(--font-score); color: var(--tp-muted); }
.tp-cell { display: grid; place-items: center; }
.tp-mx-ev:focus-visible, .tp-cell:focus-visible { outline: 2px solid var(--tp-brand-ink); outline-offset: -2px; border-radius: 12px; }
.tp-d { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.tp-d.is-done { background: var(--up); color: #fff; }
.tp-d.is-now { background: var(--optic); box-shadow: 0 0 0 5px rgba(200, 242, 62, 0.35); }
.tp-d.is-now::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-deep); }
.tp-d.is-wait { box-shadow: inset 0 0 0 2.5px #e3ad2e; }
.tp-d.is-later::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tp-bar); }

/* ---------- Shared pieces: cards, photos, empty states, toast ---------- */

.tp-card { margin-top: 14px; padding: 16px; border-radius: 24px; background: var(--tp-card); }
.tp-empty { margin: 72px 16px; text-align: center; font: 400 1rem/1.375 var(--tp-font); color: var(--tp-muted); }

.tp-av {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--tp-av-bg);
  color: var(--tp-av-ink);
  font-family: var(--tp-font);
  font-weight: 600;
  line-height: 1;
}
.tp-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-pr { display: inline-flex; flex: none; }
.tp-pr .tp-av { box-shadow: 0 0 0 2px var(--tp-av-ring); }
.tp-pr .tp-av + .tp-av { margin-left: -8px; }

.tp-toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  border-radius: 20px;
  background: rgba(11, 23, 52, 0.94);
  color: #fff;
  font: 500 0.9375rem/1.3 var(--tp-font);
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 8px 24px rgba(7, 22, 52, 0.25);
}
@media (max-width: 720px) {
  body.has-dock:not(.in-app) .tp-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Thông tin: fact cards, rule cards, rules text ---------- */

.tp-info { position: relative; }
/* Thông tin for visitors on phones (W7): rows that open a sheet ("›", 44 px). */
.tp-irow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 4px 0 0; padding: 0; border: 0; background: none; color: var(--tp-ink); font: 500 1rem/1.25 var(--tp-font); text-align: left; cursor: pointer; }
.tp-irow > span:not(.tp-ev-code) { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.tp-irow .tp-ic { flex: none; color: var(--tp-dim); }
.tp-irows { margin: 4px 0 0; padding: 0; list-style: none; }
.tp-irows li + li { border-top: 1px solid var(--tp-hair); }
.tp-irow.is-event { min-height: 52px; margin: 0; }
.tp-irow.is-event .tp-ev-code { flex: none; min-width: 2.6em; padding: 0; font-size: min(1.5rem, 56px); }
.tp-irow-n { color: var(--tp-ink2); }
.tp-info-q .tp-line + .tp-irow, .tp-info-q .tp-irow + .tp-line { margin-top: 6px; }
.tp-sheet .tp-chips { margin: 4px 0 16px; }
.tp-fact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; padding-right: 44px; min-height: 36px; }
.tp-big { font: 600 min(2.125rem, 56px)/1.05 var(--font-score); letter-spacing: 0.01em; color: var(--tp-brand-ink); }
.tp-fact .tp-big:not(.tp-num) { font: 700 min(1.5rem, 56px)/1.15 var(--tp-font); letter-spacing: -0.01em; }
.tp-venue { font: 600 min(1.1875rem, 56px)/1.25 var(--tp-font); letter-spacing: -0.01em; }
.tp-line { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font: 400 1rem/1.3 var(--tp-font); color: var(--tp-muted); }
.tp-fact .tp-line { margin: 0; }
.tp-line.is-ink { font-weight: 600; color: var(--tp-ink); }
.tp-h { margin: 0 0 8px; font: 700 min(1.25rem, 56px)/1.2 var(--tp-font); letter-spacing: -0.01em; }
.tp-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: var(--tp-soft);
  color: var(--tp-ink2);
  font: 500 0.9375rem/1 var(--tp-font);
  text-decoration: none;
  white-space: nowrap;
}
/* A chip one taps is a 44 px target (W7, 17/11 test: chips of 30–38 px). */
a.tp-chip, button.tp-chip { min-height: 44px; border-radius: 22px; }
.tp-chip.is-preset { background: var(--tp-optic-soft); color: var(--tp-ink); }
.tp-chip.is-link { color: var(--tp-brand-ink); font-weight: 600; }
.tp-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tp-tile { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 10px; background: var(--tp-soft); font: 600 1rem/1 var(--font-score); letter-spacing: 0.03em; color: var(--tp-ink2); }
.tp-tile button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--tp-muted); cursor: pointer; }

.tp-pencil {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tp-muted);
  cursor: pointer;
}
.tp-pencil:active { background: var(--tp-soft); }

.tp-rule { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; }
.tp-rule .tp-ev-code { flex: none; min-width: 64px; padding-right: 0; }
.tp-chips { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; padding-top: 1px; }
.tp-rule-name { flex-basis: 100%; font: 600 1rem/1.25 var(--tp-font); color: var(--tp-ink); }
.tp-rules p { margin: 0 0 12px; font: 400 1rem/1.45 var(--tp-font); color: var(--tp-ink2); white-space: normal; overflow-wrap: anywhere; }

/* ---------- W5: organisers' Thông tin (events in one card, the fee's bank), "…" menu, settings sheets ---------- */
.tp-evrows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.tp-evrow { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--tp-hair); }
.tp-evrow:first-child { border-top: 0; padding-top: 4px; }
.tp-evrow .tp-ev-code { flex: none; min-width: 64px; padding-right: 0; }
.tp-evrow-go { display: grid; flex: none; place-items: center; width: 44px; height: 44px; margin: -6px -8px 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--tp-muted); cursor: pointer; }
.tp-evrow-go:active { background: var(--tp-soft); }
.tp-role.is-hidden { display: inline-flex; gap: 5px; background: #fdecc8; color: #8a5a00; letter-spacing: 0; }
.tp-menu { display: flex; flex-direction: column; gap: 4px; }
.tp-menu-i { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--tp-soft); color: var(--tp-ink); font: 500 1.0625rem/1.2 var(--tp-font); text-align: left; cursor: pointer; }
.tp-menu-i.is-danger, .tp-menu-i.is-danger .tp-ic { color: #c0392b; }
.tp-btn.is-danger { background: #c0392b; color: #fff; }
.tp-field select { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 40px 0 14px; border: 1px solid transparent; border-radius: 14px; background: var(--tp-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238e99b1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--tp-ink); font: 400 1.0625rem/1.3 var(--tp-font); -webkit-appearance: none; appearance: none; }
.tp-set-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 500 0.875rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-set-hd .tp-chip { min-height: 40px; }
.tp-set { min-width: 0; margin: 0; padding: 0; border: 0; }
.tp-set legend { margin-bottom: 6px; padding: 0; font: 500 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
.tp-hint { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font: 400 0.875rem/1.35 var(--tp-font); color: var(--tp-muted); }
.tp-set-d summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; font: 600 1rem/1.2 var(--tp-font); color: var(--tp-ink); cursor: pointer; list-style: none; }
.tp-set-d summary::-webkit-details-marker { display: none; }
.tp-pres { display: flex; flex-direction: column; gap: 2px; }
.tp-pres[hidden], .tp-set-d[hidden] { display: none; }
.tp-pre { display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: 14px; cursor: pointer; }
.tp-pre input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.tp-pre span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tp-pre b { font: 600 1rem/1.2 var(--tp-font); color: var(--tp-ink); }
.tp-pre small { font: 400 0.875rem/1.3 var(--tp-font); color: var(--tp-muted); }
.tp-pre:has(input:checked) { background: var(--tp-optic-soft); }
.tp-pre:has(input:disabled) { opacity: 0.55; cursor: default; }
.tp-check:has(input:disabled) { opacity: 0.55; cursor: default; }
.tp-ev-tag { margin-left: 6px; font: 600 min(1.125rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.tp-lock-list { margin-top: 12px; }
.tp-lock-row { display: flex; flex: 1; align-items: center; gap: 12px; min-height: 52px; padding: 0 4px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tp-lock-row > .tp-ic { flex: none; color: var(--tp-dim); }
.tp-lock-row .tp-mark { flex: none; }
.tp-rules p:last-child { margin-bottom: 0; }

/* ---------- The organiser's bottom sheet ---------- */

.tp-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.tp-scrim { position: absolute; inset: 0; background: rgba(4, 10, 24, 0.5); }
.tp-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 58px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--tp-card);
  color: var(--tp-ink);
  font-family: var(--tp-font);
  box-shadow: 0 -10px 40px rgba(4, 10, 24, 0.3);
}
.tp-close { position: absolute; top: 8px; right: 12px; border: 0; cursor: pointer; }
.tp-field { display: flex; flex-direction: column; gap: 6px; }
.tp-field > span { font: 500 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
.tp-field input, .tp-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--tp-soft);
  color: var(--tp-ink);
  font: 400 1.0625rem/1.3 var(--tp-font);
}
.tp-field textarea { resize: vertical; }
.tp-field input:focus-visible, .tp-field textarea:focus-visible { outline: 2px solid var(--tp-brand-ink); outline-offset: 1px; }
.tp-court-add { display: flex; gap: 8px; margin-top: 8px; }
.tp-court-add input { flex: 1; }
.tp-small { min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--tp-soft); color: var(--tp-ink); font: 600 1rem/1 var(--tp-font); cursor: pointer; }
.tp-error { min-height: 0; margin: 0; font: 500 0.9375rem/1.3 var(--tp-font); color: #c0392b; }
.tp-error:empty { display: none; }
body.tp-sheet-open { overflow: hidden; }
@media (prefers-color-scheme: dark) { html.in-app .tp-error { color: #ff8a7a; } }

/* ---------- Thông tin → "Trọng tài" (organisers): invite link, approvals, streamed courts ---------- */

.tp-ref-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tp-ref-card .tp-h { margin: 0; }
.tp-ref-card .tp-sub-h { margin: 4px 0 -4px; }
.tp-ref-card button.tp-chip.is-link { min-height: 40px; padding: 0 16px; border-radius: 20px; }
.tp-refs { align-self: stretch; }
.tp-refs .tp-small { flex: none; min-height: 40px; padding: 0 14px; font-size: 0.9375rem; }
.tp-refs .tp-small.is-ok { background: var(--tp-optic-soft); }
.tp-refs .tp-small:disabled { opacity: 0.6; cursor: default; }
.tp-ref-court { min-width: 64px; justify-content: center; font: 600 1.0625rem/1 var(--font-score); letter-spacing: 0.03em; }
.tp-ref-court[aria-pressed="true"] { background: var(--tp-pill); color: #fff; }
.tp-ref-qr { width: min(240px, 70vw); margin: 4px auto 0; padding: 10px; border-radius: 16px; background: #fff; }
.tp-ref-qr:empty { display: none; }
.tp-ref-qr svg { display: block; width: 100%; height: auto; }

/* ---------- An event: the Đội tab (rows as in the approved group table 197) ---------- */

.tp-lock { display: flex; flex: none; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border-radius: 14px; background: var(--tp-soft); color: var(--tp-muted); font: 600 0.8125rem/1.2 var(--tp-font); }
.tp-list { display: flex; flex-direction: column; padding: 8px; }
.tp-team {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
button.tp-team { cursor: pointer; }
button.tp-team:active { background: var(--tp-soft); }
.tp-names { display: flex; flex: 1; flex-direction: column; min-width: 0; font: 500 0.9375rem/1.2667 var(--tp-font); color: var(--tp-ink); }
.tp-names b { font-weight: 500; white-space: normal; overflow-wrap: anywhere; }
/* An organiser's row with someone who has no points on the board (a guest): one quiet line under the names (W4 review). */
.tp-guest { font: 500 0.75rem/1.3333 var(--tp-font); color: var(--tp-muted); }
.tp-rate { flex: none; font: 600 min(1.625rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.tp-waiting-hd { margin: 22px 8px 0; font: 600 0.9375rem/1 var(--tp-font); color: var(--tp-muted); }
.tp-waiting { margin-top: 8px; }
.tp-mark {
  display: inline-grid;
  flex: none;
  place-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  font: 600 0.8125rem/1 var(--tp-font);
  white-space: nowrap;
}
.tp-mark.is-pending { background: #fdecc8; color: #8a5a00; }
.tp-mark.is-seeking { background: var(--tp-soft); color: var(--tp-muted); }
.tp-mark.is-paid { width: 24px; padding: 0; background: var(--optic); color: var(--navy-deep); }
@media (prefers-color-scheme: dark) {
  html.in-app .tp-mark.is-pending { background: rgba(255, 190, 70, 0.18); color: #ffc65c; }
}
.tp-lock-btn { margin-top: 18px; }
.tp-mark.is-removed { background: var(--tp-soft); color: var(--tp-muted); }

/* The import (linked tournament): a quiet chip at the top of Đội and, when names need a look, one amber chip. */
.tp-import { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
button.tp-chip { min-height: 44px; border-radius: 22px; border: 0; cursor: pointer; }
button.tp-chip:active { filter: brightness(0.96); }
button.tp-chip:disabled { opacity: 0.6; cursor: default; }
.tp-chip.is-review { background: #fdecc8; color: #8a5a00; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  html.in-app .tp-chip.is-review { background: rgba(255, 190, 70, 0.18); color: #ffc65c; }
}

/* Rejected and withdrawn entries, organisers only: collapsed under the lists. */
.tp-removed { margin-top: 22px; }
.tp-removed summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 8px;
  list-style: none;
  font: 600 0.9375rem/1 var(--tp-font);
  color: var(--tp-muted);
  cursor: pointer;
}
.tp-removed summary::-webkit-details-marker { display: none; }
.tp-removed[open] summary .tp-ic { transform: rotate(90deg); }
.tp-removed .tp-list { margin-top: 4px; }

/* A quiet text row: "Mở lại danh sách", "Ẩn giải". */
.tp-quiet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tp-muted);
  font: 500 0.9375rem/1 var(--tp-font);
  cursor: pointer;
}
.tp-quiet:disabled { opacity: 0.6; cursor: default; }

/* The import's result sheet: four counts, then the names to look at. */
.tp-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tp-count { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; background: var(--tp-soft); font: 500 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
.tp-count .tp-num { font-size: min(1.875rem, 56px); font-weight: 600; line-height: 1; color: var(--tp-brand-ink); }
.tp-sub-h { margin: 4px 0 -4px; font: 600 0.9375rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-look { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tp-look li { display: flex; align-items: center; gap: 12px; }
.tp-look li > .tp-num { flex: none; min-width: 44px; font: 600 min(1.25rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.tp-members { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tp-members li { display: flex; align-items: center; gap: 12px; }
.tp-members .tp-rate { font-size: min(1.375rem, 56px); }
.tp-line { margin: 0; font: 400 1rem/1.3 var(--tp-font); color: var(--tp-ink2); }
.tp-line a { color: var(--tp-brand-ink); font-weight: 600; text-decoration: none; }
.tp-fees { align-self: flex-start; text-decoration: none; }
.tp-actions { display: flex; flex-direction: column; gap: 10px; }
.tp-actions .tp-btn:not(.is-main) { background: var(--tp-soft); color: var(--tp-ink); }
.tp-note { margin: 0; font: 500 1.0625rem/1.35 var(--tp-font); color: var(--tp-ink); }

/* ---------- Create in three questions (/t/new, approved previews 190–192) ---------- */

/* The flow is a screen of its own: no site header, footer or dock; the main button stays at the bottom. */
.tp-flow .site-header, .tp-flow .site-footer, .tp-flow .dock, .tp-flow .dock-sheet { display: none !important; }
body.tp-flow { padding-bottom: 0; }
.tp-flow #tour { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }

.tp-top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.tp-prog { display: flex; gap: 6px; }
.tp-prog i { width: 46px; height: 5px; border-radius: 3px; background: var(--tp-bar); }
.tp-prog i.is-on { background: var(--tp-brand-ink); }
.tp-stp { min-width: 44px; text-align: right; font: 600 min(1.25rem, 56px)/1 var(--font-score); color: var(--tp-muted); }
.tp-q { margin: 12px 0 0; font: 700 min(2.125rem, 56px)/1.2059 var(--tp-font); letter-spacing: -0.015em; color: var(--tp-ink); }
.tp-q:focus { outline: none; }
/* The previews' Barlow figures are proportional (a narrow 1): "4 – 13/12", "1.000.000đ". */
#tour .tp-new .tp-num { font-variant-numeric: normal; }

/* Cards and rows: an icon square, words, a value and a chevron. */
.tp-fc { display: block; margin-top: 12px; border-radius: 24px; background: var(--tp-card); color: var(--tp-ink); }
.tp-q + .tp-fc, .tp-q + .tp-evg { margin-top: 16px; }
button.tp-fc { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
button.tp-fc:active { filter: brightness(0.97); }
.tp-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px 10px 10px; }
.tp-ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tp-ico); color: var(--tp-brand-ink); }
.tp-row b { flex: 1; font: 600 min(1.125rem, 56px)/1.2222 var(--tp-font); }
.tp-row-v {
  display: -webkit-box;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font: 500 1.0625rem/1.2353 var(--tp-font);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tp-row-n { font: 600 min(1.625rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.tp-dim { color: var(--tp-dim); }
.tp-ok { display: grid; color: var(--up); }
@media (prefers-color-scheme: dark) { html.in-app .tp-ok { color: #4cc38a; } }

.tp-name { cursor: text; }
.tp-name input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tp-ink);
  font: 700 min(1.375rem, 56px)/1.1818 var(--tp-font);
  letter-spacing: -0.01em;
}
.tp-name input::placeholder { color: var(--tp-dim); }
.tp-name:focus-within { box-shadow: 0 0 0 2px var(--optic); }

/* Dates: the range, the count and a month of days. */
.tp-cal { padding: 10px 14px 12px 10px; }
.tp-cal-hd { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.tp-range { flex: 1; min-width: 0; white-space: nowrap; font: 600 min(2.5rem, 60px)/1 var(--font-score); color: var(--tp-brand-ink); }
.tp-range.is-empty { font: 600 min(1.25rem, 56px)/1 var(--tp-font); letter-spacing: 0; color: var(--tp-muted); }
.tp-cnt { display: inline-flex; flex: none; align-items: baseline; gap: 4px; min-height: 30px; padding: 0 11px; border-radius: 15px; background: var(--tp-optic-soft); color: var(--tp-ink); font: 500 0.875rem/2.1429 var(--tp-font); }
.tp-cnt b { font: 600 min(1.1875rem, 56px)/1.5789 var(--font-score); }
.tp-mnav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 0 4px; }
.tp-mnav span { font: 500 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
.tp-mnav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--tp-brand-ink); cursor: pointer; }
.tp-mnav button:disabled { color: var(--tp-dim); cursor: default; }
.tp-mg { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; margin: 2px 0 0 4px; }
.tp-mg-w { display: grid; place-items: center; min-height: 22px; font: 500 0.75rem/1 var(--tp-font); color: var(--tp-muted); }
.tp-day { display: grid; place-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--tp-ink2); font: 500 1.0625rem/1 var(--font-score); cursor: pointer; }
.tp-day:disabled { color: var(--tp-dim); cursor: default; }
.tp-day.is-in { background: var(--tp-optic-soft); color: var(--tp-ink); font-weight: 600; }
.tp-day.is-l { border-radius: 22px 0 0 22px; }
.tp-day.is-r { border-radius: 0 22px 22px 0; }
.tp-day.is-l.is-r { border-radius: 22px; }
.tp-day.is-end { background: var(--optic); color: var(--navy-deep); }
.tp-day:focus-visible, .tp-ct:focus-visible, .tp-evt:focus-visible, button.tp-fc:focus-visible { outline: 2px solid var(--tp-brand-ink); outline-offset: 2px; }

/* Courts: tiles, "+" adds the next one; after a long press each tile shows a × and a tap removes it. */
.tp-cts { padding: 12px 14px 18px; }
.tp-cts-hd { margin: 0; font: 600 min(1.125rem, 56px)/1.3333 var(--tp-font); }
.tp-cts-hd .tp-num { margin-left: 4px; font-size: min(1.25rem, 56px); color: var(--tp-muted); }
.tp-cts-t { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tp-ct {
  position: relative;
  display: grid;
  flex: 1 1 56px;
  place-items: center;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--tp-ico);
  color: var(--tp-brand-ink);
  font: 600 min(1.25rem, 56px)/1 var(--font-score);
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.tp-ct.is-add { flex: 0 0 52px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--tp-line); color: var(--tp-muted); }
/* A court's × is always there (W5, 17/11 test: removing needed a hidden long press): a 24 px circle, 44 px to tap. */
.tp-ct-x { position: absolute; top: -13px; right: -13px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.tp-ct-x::before { content: ''; position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--tp-muted); }
.tp-ct-x .tp-ic { position: relative; }
.tp-ct-x:focus-visible { outline: 2px solid var(--tp-brand-ink); outline-offset: -6px; border-radius: 50%; }
.tp-cts-t { padding-top: 6px; }
/* "Bộ nội dung VCP": ticks the VCP set (no event is ticked by itself any more). */
.tp-vcpset { margin-top: 14px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; cursor: pointer; }
.tp-vcpset[aria-pressed="true"] { background: var(--tp-optic-soft); }
.tp-vcpset:not([aria-pressed="true"]) .tp-ic { opacity: 0.35; }
/* Luật: one plain line under each preset's name. */
.tp-preset { padding-top: 8px; padding-bottom: 8px; }
.tp-preset-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-right: 8px; }
.tp-preset-t small { font: 400 0.875rem/1.3 var(--tp-font); color: var(--tp-muted); }

/* 191: event tiles, ticked with an optic ring and check. */
.tp-evg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.tp-evt {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 100px;
  padding: 14px 16px;
  border: 0;
  border-radius: 24px;
  background: var(--tp-card);
  color: var(--tp-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 120ms ease-out;
}
.tp-evt.is-on { box-shadow: 0 0 0 2px var(--optic); }
.tp-evt-c { display: block; padding-right: 30px; font: 600 min(2.5rem, 60px)/1 var(--font-score); letter-spacing: 0.01em; color: var(--tp-brand-ink); white-space: normal; overflow-wrap: anywhere; }
.tp-evt:not(.is-on) .tp-evt-c { color: var(--tp-muted); }
.tp-evt-n { display: block; margin-top: 6px; font: 400 0.9375rem/1.3333 var(--tp-font); color: var(--tp-muted); white-space: normal; overflow-wrap: anywhere; }
.tp-evt-ck { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--tp-line); color: transparent; }
.tp-evt.is-on .tp-evt-ck { background: var(--optic); box-shadow: none; color: var(--navy-deep); }
.tp-evt.is-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--tp-line); color: var(--tp-muted); font: 500 0.9375rem/1.3333 var(--tp-font); }
.tp-pill { display: inline-flex; flex: none; align-items: center; min-height: 32px; padding: 0 13px; border-radius: 16px; background: var(--tp-optic-soft); color: var(--tp-ink); font: 600 0.9375rem/1 var(--tp-font); white-space: nowrap; }

/* 192: the fee, the deadline, the bank and a preview of the public card. */
.tp-fee { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 166px; padding: 20px 14px; }
.tp-fee-n { font: 600 min(4.25rem, 102px)/0.9412 var(--font-score); letter-spacing: -0.01em; color: var(--tp-brand-ink); }
.tp-fee-n.is-free { font: 700 min(2.125rem, 56px)/1.1 var(--tp-font); }
.tp-fee-x { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 13px; border-radius: 16px; background: var(--tp-ico); color: var(--tp-ink2); font: 500 0.9375rem/1 var(--tp-font); }
.tp-fee-x b { font: 600 min(1.1875rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.tp-pv { position: relative; display: flex; flex-direction: column; min-height: 196px; margin-top: 24px; padding: 16px 18px 18px; overflow: hidden; border-radius: 24px; background: var(--tp-navy-card); color: #fff; }
.tp-pv p { margin: 0; }
.tp-pv-k { display: flex; align-items: center; gap: 6px; padding-right: 100px; font: 400 0.875rem/1.2857 var(--tp-font); color: rgba(255, 255, 255, 0.7); }
.tp-pv .tp-pv-t { margin-top: 8px; padding-right: 90px; font: 700 min(1.625rem, 56px)/1.1538 var(--tp-font); letter-spacing: -0.015em; white-space: normal; overflow-wrap: anywhere; }
.tp-pv .tp-pv-d { margin-top: 2px; font: 500 min(1.5rem, 56px)/1.1667 var(--font-score); color: var(--optic); }
.tp-pv-go { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; min-height: 34px; padding: 0 14px; border-radius: 17px; background: var(--optic); color: var(--navy-deep); font: 600 0.875rem/1 var(--tp-font); }
.tp-pv-ts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
.tp-pv-ts span { display: grid; flex: 1 0 40px; place-items: center; min-height: 30px; padding: 0 6px; border-radius: 9px; background: rgba(255, 255, 255, 0.12); font: 600 0.9375rem/1 var(--font-score); }

/* The main button, fixed at the bottom over a fade; what went wrong shows just above it. */
.tp-cta { position: fixed; z-index: 30; left: 16px; right: 16px; bottom: max(34px, calc(env(safe-area-inset-bottom) + 12px)); max-width: 528px; margin: 0 auto; }
.tp-cta::before { content: ""; position: absolute; z-index: -1; inset: -28px -16px -80px; background: linear-gradient(to bottom, rgba(242, 243, 247, 0), var(--tp-bg) 40%); pointer-events: none; }
@media (prefers-color-scheme: dark) { html.in-app .tp-cta::before { background: linear-gradient(to bottom, rgba(3, 6, 13, 0), var(--tp-bg) 40%); } }
.tp-cta .tp-error { margin-bottom: 10px; padding: 10px 14px; border-radius: 14px; background: var(--tp-card); box-shadow: 0 4px 16px rgba(7, 22, 52, 0.12); }
.tp-cta .tp-btn:disabled { opacity: 0.6; cursor: default; }

/* The flow's sheets: choices as chips, the presets as a list. */
.tp-form { display: flex; flex-direction: column; gap: 14px; }
.tp-form[hidden] { display: none; }
.tp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tp-opts { min-width: 0; margin: 0; padding: 0; border: 0; }
.tp-opts legend { margin-bottom: 6px; padding: 0; font: 500 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
.tp-opts > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-opt { position: relative; cursor: pointer; }
.tp-opt input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.tp-opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--tp-soft); color: var(--tp-ink2); font: 500 1rem/1 var(--tp-font); }
.tp-opt input:checked + span { background: var(--navy); color: #fff; }
.tp-opt input:focus-visible + span { outline: 2px solid var(--tp-brand-ink); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { html.in-app .tp-opt input:checked + span { background: var(--optic); color: var(--navy-deep); } }
.tp-check { display: flex; align-items: center; gap: 10px; min-height: 40px; font: 500 1rem/1.2 var(--tp-font); color: var(--tp-ink); cursor: pointer; }
.tp-check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--navy); }
.tp-presets { display: flex; flex-direction: column; gap: 2px; }
.tp-preset { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--tp-ink); font: 500 1.0625rem/1.2 var(--tp-font); text-align: left; cursor: pointer; }
.tp-preset[aria-checked="true"] { background: var(--tp-optic-soft); font-weight: 600; }

/* ---------- The draw inside an event's Bảng (approved preview 194, tournament-draw.js) ---------- */
/* The proposal: "4 bảng 3 · 3 · 3 · 4" + "Đổi", 2 × 2 group boxes (seed badge and pair in slot 1, dashed slots), "Chờ bốc",
   the rounds and the match count, the fingerprint, and the main button kept in view above the dock. */
.tp-dr.is-busy { opacity: 0.6; transition: opacity 120ms ease-out; }
.tp-dr-load { min-height: 420px; }
.tp-dr-hd { display: flex; align-items: center; gap: 10px; min-height: 36px; margin-top: 16px; }
.tp-dr-hd h2 { display: flex; flex: 1; align-items: baseline; gap: 10px; min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; }
.tp-dr-n { font: 600 min(1.25rem, 56px)/1 var(--tp-font); color: var(--tp-ink2); }
.tp-dr-n .tp-num { margin-right: 2px; font-size: min(1.875rem, 56px); font-weight: 600; color: var(--tp-brand-ink); }
.tp-dr-sz { font-size: min(1.1875rem, 56px); font-weight: 500; line-height: 1; color: var(--tp-muted); white-space: normal; overflow-wrap: anywhere; }
#tour .tp-dr-sz, #tour .tp-dr-sd, #tour .tp-dr-bd, #tour .tp-dr-more, #tour .tp-dr-fp .tp-num, #tour .tp-dr-lt { font-variant-numeric: normal; }
.tp-dr-ed {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 17px;
  background: var(--tp-card);
  color: var(--tp-brand-ink);
  font: 600 0.9375rem/1 var(--tp-font);
  cursor: pointer;
}
.tp-dr-ed:active { filter: brightness(0.96); }
.tp-dr-gg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; margin-top: 10px; }
.tp-dr-gx { min-width: 0; padding: 10px 12px 8px; border-radius: 20px; background: var(--tp-card); }
.tp-dr-L { display: block; min-height: 30px; margin: 0; font: 600 min(1.75rem, 56px)/1.0714 var(--font-score); color: var(--tp-brand-ink); }
.tp-dr-sl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; min-height: 36px; }
/* The names people call each other by beside the photos (W7: initials alone said nothing). */
.tp-dr-nm { flex: 1 1 4em; min-width: 0; font: 500 0.8125rem/1.2 var(--tp-font); color: var(--tp-ink); white-space: normal; overflow-wrap: anywhere; }
.tp-dr-sl.is-pair .tp-dr-nm { display: none; } /* the pairing's rows name their pair already */
/* Every slot starts with its photos (a seed's pill follows them: W7). */
/* A seed in words (W7): "Hạt giống 1" on an optic pill. */
.tp-dr-sd {
  display: grid;
  flex: none;
  place-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 11px;
  background: var(--optic);
  color: var(--navy-deep);
  font: 600 0.75rem/1.1 var(--tp-font);
  white-space: nowrap;
}
.tp-dr-ln { flex: 1; min-width: 0; height: 0; border-top: 2px dashed var(--tp-dash); }
.tp-dr-gh { display: inline-block; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tp-card); box-shadow: inset 0 0 0 1.5px var(--tp-ghost), 0 0 0 2px var(--tp-card); }
.tp-pr .tp-dr-gh + .tp-dr-gh { margin-left: -8px; }
.tp-dr-sl.is-new { animation: tp-dr-in 320ms ease-out; }
@keyframes tp-dr-in {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: none; }
}
/* Knockout and Play-off: the seeds' lines in one card. */
.tp-dr-lines { display: flex; flex-direction: column; margin-top: 10px; padding: 6px 14px; border-radius: 20px; background: var(--tp-card); }
.tp-dr-lt { margin-left: auto; font: 500 0.9375rem/1 var(--tp-font); color: var(--tp-muted); white-space: nowrap; }
.tp-dr-wt { display: flex; align-items: center; gap: 10px; min-height: 58px; margin-top: 12px; padding: 0 14px; border-radius: 20px; background: var(--tp-card); }
.tp-dr-wt b { flex: none; font: 500 0.9375rem/1 var(--tp-font); color: var(--tp-muted); white-space: nowrap; }
.tp-dr-ps { display: flex; flex: 1; gap: 4px; min-width: 0; overflow: hidden; }
.tp-dr-more { flex: none; font: 600 min(1.125rem, 56px)/1 var(--font-score); color: var(--tp-muted); }
.tp-dr-fl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.tp-dr-fl .tp-ic { color: var(--tp-arrow); }
.tp-dr-pill { display: grid; place-items: center; min-height: 32px; padding: 0 11px; border-radius: 16px; background: var(--tp-soft); color: var(--tp-brand-ink); font: 600 0.875rem/1 var(--tp-font); white-space: nowrap; }
.tp-dr-tot { display: flex; align-items: baseline; gap: 3px; margin-left: auto; font: 400 0.875rem/1 var(--tp-font); color: var(--tp-muted); white-space: nowrap; }
.tp-dr-tot .tp-num { font-size: min(1.25rem, 56px); font-weight: 600; color: var(--tp-brand-ink); }
.tp-dr-fp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 10px 0 0; font: 400 0.8125rem/1.3 var(--tp-font); color: var(--tp-muted); }
.tp-dr-fp .tp-num { font-size: 0.9375rem; letter-spacing: 0.03em; }
.tp-dr-fp .tp-hash { font-size: 0.75rem; letter-spacing: 0; }
/* "Chi tiết ›": the whole code (and the seed once revealed) with "Sao chép" (W7). */
.tp-dr-dt { flex-basis: 100%; }
.tp-dr-dt > summary { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--tp-brand-ink); font: 600 0.875rem/1.2 var(--tp-font); list-style: none; cursor: pointer; }
.tp-dr-dt > summary::-webkit-details-marker { display: none; }
.tp-dr-dt[open] > summary .tp-ic { transform: rotate(90deg); }
.tp-dr-dt .tp-rec-k { margin: 0 0 6px; font: 400 0.8125rem/1.35 var(--tp-font); color: var(--tp-ink2); white-space: normal; overflow-wrap: anywhere; }
.tp-dr-dt .tp-dr-copy { margin-bottom: 4px; }
/* "Kiểm tra" and what it found. */
.tp-dr-ck .tp-dr-copy { min-height: 44px; border-radius: 22px; }
.tp-dr-res { flex-basis: 100%; margin: 0; font: 600 0.875rem/1.3 var(--tp-font); color: var(--tp-muted); }
.tp-dr-res:empty { display: none; }
.tp-dr-res.is-ok { color: var(--up); }
.tp-dr-res.is-bad { color: #c0392b; }
@media (prefers-color-scheme: dark) { html.in-app .tp-dr-res.is-bad { color: #ff8a7a; } } /* as .tp-error (W7/W8 review) */
/* "Sao chép": copies the whole fingerprint. */
.tp-dr-copy {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  background: var(--tp-card);
  color: var(--tp-brand-ink);
  font: 600 0.875rem/1 var(--tp-font);
  cursor: pointer;
}
.tp-dr-copy:active { filter: brightness(0.96); }
/* A visitor's Bảng before the draw: the draw time, then the fingerprint under it. */
.tp-dr-pre .tp-empty { margin-bottom: 14px; }
.tp-dr-pre .tp-dr-fp { justify-content: center; margin: 0 16px; }
/* A seed place a lot fills on the night: its band ("3/4") on a soft pill, then the dashed slot. */
.tp-dr-sl.is-band { padding-left: 0; }
.tp-dr-sl.is-band .tp-pr { display: none; } /* the pill says who lands there; the dashed line keeps the slot */
.tp-dr-bd {
  display: grid;
  flex: none;
  place-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 11px;
  background: var(--tp-optic-soft);
  color: var(--tp-brand-ink);
  font: 600 0.75rem/1.1 var(--tp-font);
  white-space: nowrap;
}
/* "Chờ bốc": a pair a band's lot takes carries its seed at its top right. */
.tp-dr-ps { flex-wrap: wrap; gap: 8px 10px; padding: 8px 0; }
.tp-dr-wp { position: relative; display: inline-flex; flex: none; flex-direction: column; align-items: flex-start; gap: 4px; }
.tp-dr-wp .tp-dr-sd { min-height: 18px; padding: 1px 6px; font-size: 0.6875rem; }
/* The Lão tướng pairing replayed: one row per pair. */
.tp-dr-sl.is-pair { padding-left: 0; }
.tp-dr-pn { min-width: 0; font: 500 0.9375rem/1.2 var(--tp-font); color: var(--tp-ink); white-space: normal; overflow-wrap: anywhere; }
.tp-dr-go { position: sticky; z-index: 5; bottom: max(34px, calc(env(safe-area-inset-bottom) + 12px)); margin-top: 22px; }
.tp-dr-go::before { content: ""; position: absolute; z-index: -1; inset: -18px -16px -40px; background: linear-gradient(to bottom, var(--tp-bg-clear), var(--tp-bg) 28%); pointer-events: none; }
.tp-dr-go .tp-error { margin-bottom: 10px; padding: 10px 14px; border-radius: 14px; background: var(--tp-card); box-shadow: 0 4px 16px rgba(7, 22, 52, 0.12); }
.tp-dr-go .tp-btn:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 720px) {
  body.has-dock:not(.in-app) .tp-dr-go { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
/* The reveal: one line says who went where, big enough for a screen in the clubhouse. */
.tp-dr-now { min-height: 36px; margin: 16px 0 0; font: 600 min(1.25rem, 56px)/1.8 var(--tp-font); color: var(--tp-ink); white-space: normal; overflow-wrap: anywhere; }
.tp-dr-now .tp-num { font-size: min(1.375rem, 56px); }
/* The result of a knockout or Play-off draw: its lines in one card, then the record and the second draw (groups: 197). */
.tp-dr-res { padding: 8px; }
.tp-dr-res .tp-team { min-height: 56px; }
.tp-dr-res .tp-dr-lt { flex: none; min-width: 26px; margin: 0; font: 600 min(1.125rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.tp-dr-rec { color: var(--tp-brand-ink); font-weight: 600; }
/* "Đổi": the options as rows, Tự tạo's numbers as chips. */
.tp-dr-opts { display: flex; flex-direction: column; gap: 4px; }
.tp-dr-opt {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "n c" "s c";
  align-items: center;
  gap: 3px 12px;
  width: 100%;
  min-height: 60px;
  padding: 8px 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--tp-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tp-dr-opt[aria-checked="true"] { background: var(--tp-optic-soft); }
.tp-dr-opt:disabled { opacity: 0.45; cursor: default; }
.tp-dr-on { grid-area: n; font: 600 1.0625rem/1.2 var(--tp-font); }
.tp-dr-os { grid-area: s; font: 400 0.875rem/1.3 var(--tp-font); color: var(--tp-muted); }
.tp-dr-oc { grid-area: c; font: 400 0.875rem/1 var(--tp-font); color: var(--tp-muted); white-space: nowrap; }
.tp-dr-oc .tp-num { font: 600 min(1.375rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.tp-dr-cus { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 4px 14px; }
.tp-dr-cus > span { flex-basis: 100%; font: 500 0.875rem/1.4 var(--tp-font); color: var(--tp-muted); }
.tp-dr-cus button { min-width: 34px; min-height: 36px; padding: 0 6px; border: 0; border-radius: 18px; background: var(--tp-soft); color: var(--tp-ink2); font: 600 min(1.125rem, 56px)/1 var(--font-score); cursor: pointer; }
.tp-dr-cus button[aria-pressed="true"] { background: var(--navy); color: #fff; }
/* "Biên bản bốc thăm": each version on a soft card; hashes wrap anywhere. */
.tp-rec { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 18px; background: var(--tp-soft); }
.tp-rec-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font: 700 min(1.125rem, 56px)/1.2 var(--tp-font); }
.tp-rec-t { font: 400 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
.tp-rec p { margin: 0; font: 400 0.875rem/1.35 var(--tp-font); color: var(--tp-ink2); white-space: normal; overflow-wrap: anywhere; }
.tp-hash { font: 500 0.8125rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--tp-ink); word-break: break-all; }
.tp-rec-steps { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; font: 400 0.9375rem/1.35 var(--tp-font); color: var(--tp-ink); white-space: normal; overflow-wrap: anywhere; }
.tp-rec-hd { display: flex; align-items: flex-start; gap: 8px; }
.tp-rec-hd .tp-rec-h { flex: 1; min-width: 0; }
button.tp-rec-play { flex: none; min-height: 32px; background: var(--tp-card); }
.tp-rec-next { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0 0 4px; padding: 0 2px; font: 400 0.875rem/1.35 var(--tp-font); color: var(--tp-ink2); white-space: normal; overflow-wrap: anywhere; }
.tp-rec .tp-dr-fp { margin: 0; }
.tp-rec .tp-dr-copy, .tp-rec-next .tp-dr-copy { background: var(--tp-card); }
@media (prefers-color-scheme: dark) {
  html.in-app .tp-dr-cus button[aria-pressed="true"] { background: var(--optic); color: var(--navy-deep); }
}
@media (prefers-reduced-motion: reduce) {
  .tp-dr-sl.is-new { animation: none; }
}

/* ---------- The drawn groups inside an event's Bảng (approved preview 197, tournament-event.js) ---------- */
/* Group chips (the "Của tôi" group with a small optic dot), one table card (rank once known, pair, W–L, a green bar on the
   pairs that go through, the "Của tôi" row tinted, the legend), the group's matches, then the next group peeking. A
   group of 5–6 makes the cards taller; nothing scrolls inside them. Up to eight chips share the width; more would wrap. */
.tp-gc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tp-gc-chip {
  position: relative;
  display: grid;
  flex: 0 1 52px;
  place-items: center;
  min-width: 36px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--tp-card);
  color: var(--tp-ink2);
  font: 600 min(1.25rem, 56px)/1 var(--font-score);
  cursor: pointer;
}
.tp-gc-chip[aria-pressed="true"] { background: var(--tp-pill); color: #fff; }
.tp-gc-chip[data-mine]::after { content: ""; position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--optic); box-shadow: 0 0 0 2px var(--tp-bg); }
.tp-gc-chip:active { filter: brightness(0.96); }
.tp-gt { margin-top: 12px; padding: 8px; }
.tp-gr { position: relative; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 6px 14px 6px 18px; border-radius: 16px; }
.tp-gr::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 4px; width: 4px; border-radius: 2px; background: transparent; }
.tp-gr.is-q::before { background: var(--tp-up); }
.tp-gr.is-me { background: var(--tp-optic-soft); }
.tp-gr-rk { flex: none; min-width: 16px; font: 600 min(1.25rem, 56px)/1 var(--font-score); color: var(--tp-muted); }
.tp-gr-wl { flex: none; font: 600 min(1.625rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
#tour .tp-gr-rk, #tour .tp-gr-wl, #tour .tp-gm-cd, #tour .tp-gb { font-variant-numeric: normal; }
.tp-pr.is-me .tp-av:first-child { box-shadow: 0 0 0 2px var(--tp-av-ring), 0 0 0 4px var(--optic); }
.tp-gl { display: flex; align-items: center; gap: 7px; min-height: 30px; margin: 0; padding-left: 18px; font: 400 0.875rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-gl i { flex: none; width: 4px; height: 16px; border-radius: 2px; background: var(--tp-up); }
.tp-gm { margin-top: 18px; padding: 6px 8px; }
.tp-gm-row { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 8px; }
.tp-gm-row + .tp-gm-row { border-top: 1px solid var(--tp-hair); }
/* Phones (W7): both sides by name, one line each. */
.tp-gm-row.is-named { gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.tp-gm-two { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.tp-gm-sd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tp-gm-sd .tp-pr { flex: none; }
.tp-gm-nm { min-width: 0; font: 500 0.9375rem/1.2 var(--tp-font); color: var(--tp-ink); white-space: normal; overflow-wrap: anywhere; }
.tp-gm-cd { flex: none; min-width: 34px; font: 600 1.0625rem/1 var(--font-score); color: var(--tp-muted); white-space: nowrap; }
.tp-gm-vs { flex: none; font: 400 0.8125rem/1 var(--tp-font); color: var(--tp-dim); }
.tp-gm-lb { min-width: 0; font: 500 0.875rem/1.2 var(--tp-font); color: var(--tp-muted); white-space: normal; overflow-wrap: anywhere; }
.tp-gm-rs { display: flex; flex: none; align-items: center; gap: 7px; margin-left: auto; font: 600 min(1.375rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); white-space: nowrap; }
.tp-gm-rs.is-late { color: var(--tp-amber-ink); }
.tp-gm-rs small { font: 600 0.9375rem/1 var(--font-score); color: var(--tp-muted); }
.tp-gm-ct { display: inline-grid; place-items: center; min-height: 24px; padding: 0 8px; border-radius: 8px; background: var(--tp-soft); color: var(--tp-brand-ink); font: 600 0.9375rem/1 var(--font-score); letter-spacing: 0.02em; }
.tp-gm-pl { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--optic); }
.tp-gn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tp-gn:active { filter: brightness(0.98); }
.tp-gb { display: inline-grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--tp-soft); color: var(--tp-brand-ink); font: 700 16px/1 var(--font-score); }

/* ---------- The bracket inside an event's Nhánh (approved preview 198, tournament-event.js) ---------- */
/* Round chips (they scroll sideways on their own when there are many, as a Play-off's six), then the bracket: columns of
   228 × 96 cards 36 px apart, the first 16 px from the edge, the next one peeking at the right. Only the bracket scrolls
   sideways (snapping to a column); it runs to the screen's edges. Tops and lines come from tournament-event.js. */
.tp-rc { position: relative; display: flex; gap: 8px; margin: 14px -16px 0 0; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }
.tp-rc::-webkit-scrollbar { display: none; }
.tp-rc-chip {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 22px;
  background: var(--tp-card);
  color: var(--tp-ink2);
  font: 500 0.9375rem/1 var(--tp-font);
  white-space: nowrap;
  cursor: pointer;
}
.tp-rc-chip[aria-pressed="true"] { background: var(--tp-pill); color: #fff; }
.tp-rc-chip:active { filter: brightness(0.96); }
.tp-bk-sc {
  margin: 20px -16px 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  scrollbar-width: none;
}
.tp-bk-sc::-webkit-scrollbar { display: none; }
.tp-bk-sc:focus-visible { outline: 2px solid var(--tp-brand-ink); outline-offset: -2px; }
.tp-bk-cv { position: relative; }
.tp-bk-ln { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--tp-line); stroke-width: 2; pointer-events: none; }
.tp-bk-col { position: absolute; top: 0; bottom: 0; width: var(--tp-bm-w, 228px); scroll-snap-align: start; }
/* A card grows with its names (final fix pass: wrapped names were hidden under its fixed height); the JS places the
   column by each card's height (relayout). */
.tp-bm { position: absolute; left: 0; width: var(--tp-bm-w, 228px); min-height: 96px; padding: 9px 12px; overflow: hidden; border-radius: 18px; background: var(--tp-card); }
.tp-bm-cd { display: block; min-height: 18px; font: 600 0.9375rem/1.2 var(--font-score); letter-spacing: 0.02em; color: var(--tp-muted); }
.tp-bm-s { display: flex; align-items: center; gap: 9px; min-height: 30px; font: 500 1rem/1 var(--tp-font); color: var(--tp-ink2); }
.tp-bm-gb { display: inline-grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--tp-soft); color: var(--tp-brand-ink); font: 700 15px/1 var(--font-score); }
.tp-bm-gb[data-tint="0"] { background: #e3ecff; color: var(--navy); }
.tp-bm-gb[data-tint="1"] { background: var(--tp-optic-soft); color: var(--navy); }
.tp-bm-gb[data-tint="2"] { background: #ffe9d6; color: #8a4f00; }
.tp-bm-gb[data-tint="3"] { background: #e3f3ea; color: var(--up); }
.tp-bm-unk { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--tp-ghost); }
.tp-bm-tx { flex: none; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.tp-bm-tx.is-ref { font: 600 1rem/1 var(--font-score); color: var(--tp-muted); }
.tp-bm-tx.is-names { flex: 1; font-size: 0.875rem; line-height: 1.0714; }
.tp-bm-tx.is-names b { display: block; font-weight: inherit; white-space: normal; overflow-wrap: anywhere; }
.tp-bm-tx.is-names.is-line b { display: inline; }
.tp-bm-ph { flex: 1; height: 0; border-top: 2px dashed var(--tp-dash); }
.tp-bm-sc { flex: none; margin-left: auto; font: 600 min(1.125rem, 56px)/1 var(--font-score); letter-spacing: 0.02em; word-spacing: 0.15em; color: var(--tp-muted); white-space: nowrap; }
.tp-bm-s.is-win { color: var(--tp-ink); }
.tp-bm-s.is-win .tp-bm-tx { font-weight: 700; }
.tp-bm-s.is-win .tp-bm-sc { color: var(--tp-brand-ink); }
/* A W.O.: the absent side reads "W.O." where its games would be (17/11 test: it showed a played 6-0). */
.tp-bm-sc.is-wo { font-size: 0.9375rem; color: var(--down, #bf3a30); }
.tp-bm-me { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--optic); box-shadow: 0 0 0 3px rgba(200, 242, 62, 0.35); }
/* The medal row: gold, silver, bronze circles, the place, then the names once known. */
.tp-md { display: flex; align-items: flex-start; justify-content: space-around; gap: 6px; margin-top: 12px; padding: 21px 0; }
.tp-md-i { display: flex; flex: 0 1 auto; flex-direction: column; align-items: center; gap: 7px; min-width: 0; max-width: 34%; text-align: center; }
.tp-md-c { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; }
.tp-md-c.is-champion { background: var(--gold); }
.tp-md-c.is-runnerUp { background: #b9c2ce; }
.tp-md-c.is-third { background: var(--bronze); }
.tp-md-l { font: 500 0.875rem/1.0714 var(--tp-font); color: var(--tp-ink2); white-space: nowrap; }
.tp-md-n { display: flex; flex-direction: column; max-width: 100%; font: 600 0.8125rem/1.2308 var(--tp-font); color: var(--tp-ink); }
.tp-md-n b { font-weight: inherit; white-space: normal; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) {
  html.in-app .tp-bm-gb[data-tint="0"] { background: rgba(0, 122, 255, 0.2); color: #9cc3ff; }
  html.in-app .tp-bm-gb[data-tint="1"] { background: var(--tp-optic-soft); color: var(--optic); }
  html.in-app .tp-bm-gb[data-tint="2"] { background: rgba(255, 149, 0, 0.18); color: #ffc65c; }
  html.in-app .tp-bm-gb[data-tint="3"] { background: rgba(76, 195, 138, 0.18); color: #4cc38a; }
  html.in-app .tp-bm-me { box-shadow: 0 0 0 3px rgba(200, 242, 62, 0.25); }
}

/* ---------- "Của tôi" on Nội dung (approved preview 196, tournament-pair.js) ---------- */
/* The navy tile after the event cards: "Của tôi" + "Tìm tên bạn" (a search sheet), or the pair's photos and its next
   match (time in optic Barlow + court chip, else "Bảng B"); the event card of that pair gets the optic ring and the photo. */
.tp-ev.is-me { box-shadow: 0 0 0 2.5px var(--optic); }
.tp-ev-me { position: absolute; right: 10px; bottom: 10px; display: flex; }
.tp-ev-me .tp-av { box-shadow: 0 0 0 2px var(--tp-card), 0 0 0 4px var(--optic); }
.tp-mt {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 84px;
  padding: 11px 14px;
  border: 0;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease-out;
}
.tp-mt:active { transform: scale(0.97); }
.tp-mt:focus-visible { outline: 2px solid var(--optic); outline-offset: 2px; }
.tp-mt-h { display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 0.9375rem/1 var(--tp-font); white-space: nowrap; }
.tp-mt .tp-pr .tp-av { box-shadow: 0 0 0 2px #fff; }
.tp-mt .tp-pr.is-me .tp-av:first-child { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--optic); }
.tp-mt-ic { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.tp-mt-w { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 26px; white-space: nowrap; }
.tp-mt-w small { font: 600 1.0625rem/1 var(--font-score); color: rgba(255, 255, 255, 0.75); }
.tp-mt-t { font: 600 min(1.625rem, 56px)/1 var(--font-score); color: var(--optic); }
.tp-mt-ct { display: inline-grid; flex: none; place-items: center; min-height: 24px; padding: 0 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.14); color: #fff; font: 600 0.9375rem/1 var(--font-score); letter-spacing: 0.02em; }
/* "Của tôi" while the pair is on court: "Đang đánh" with the live dot instead of a time (17/11 test). */
.tp-mt-live { display: inline-flex; align-items: center; gap: 7px; font: 600 min(1.125rem, 56px)/1.1 var(--tp-font); color: var(--optic); }
.tp-mt-g, .tp-mt-f { min-width: 0; font: 600 1.0625rem/1.2 var(--tp-font); color: var(--optic); white-space: normal; overflow-wrap: anywhere; }
#tour .tp-mt-t, #tour .tp-mt-ct { font-variant-numeric: normal; }
/* The name search: one field, a note ("Không tìm thấy", "Sau bốc thăm"), pairs with their event code. */
.tp-ms { display: flex; flex-direction: column; gap: 8px; }
.tp-ms-note { margin: 4px 4px 0; font: 500 1rem/1.3 var(--tp-font); color: var(--tp-muted); }
.tp-ms-note:empty { display: none; }
.tp-ms-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.tp-ms-r { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 0 10px; border: 0; border-radius: 16px; background: transparent; color: var(--tp-ink); font: inherit; text-align: left; cursor: pointer; }
.tp-ms-r:active, .tp-ms-r:focus-visible { background: var(--tp-soft); outline: none; }
.tp-ms-r mark { border-radius: 3px; background: var(--tp-optic-soft); color: inherit; }
.tp-ms-ev { flex: none; font: 600 min(1.375rem, 56px)/1 var(--font-score); letter-spacing: 0.01em; color: var(--tp-brand-ink); }

/* ---------- The pair page (approved preview 201, tournament-pair.js) ---------- */
/* Header: back, the menu (dots) of the remembered pair, the bell (disabled until following arrives). A navy hero with the
   court lines: 64 px photos, the names one under the other, chips, the W–L in optic Barlow. Then the path: 48 px nodes
   on a dashed line (green ✓ played, optic racket next, grey ring later), white 84 px boxes (the next one ringed optic),
   then the rounds still possible as dashed 52 px rows (a trophy on Chung kết). */
.tp-bell[aria-disabled="true"] { cursor: default; }
.tp-bell[aria-disabled="true"]:active { transform: none; }
.tp-bell[aria-disabled="true"] .tp-ic { opacity: 0.45; }
.tp-pm { position: relative; flex: none; }
.tp-pm-list {
  position: absolute;
  z-index: 20;
  top: 52px;
  right: 0;
  min-width: 168px;
  padding: 6px;
  border-radius: 18px;
  background: var(--tp-card);
  box-shadow: 0 0 0 0.5px rgba(7, 22, 52, 0.12), 0 12px 32px rgba(7, 22, 52, 0.18);
}
.tp-pm-list button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; color: var(--tp-ink); font: 500 1.0625rem/1 var(--tp-font); text-align: left; white-space: nowrap; cursor: pointer; }
.tp-pm-list button:hover, .tp-pm-list button:focus-visible { background: var(--tp-soft); outline: none; }
.tp-ph { position: relative; overflow: hidden; min-height: 226px; margin-top: 10px; padding: 18px 18px 34px; border-radius: 26px; background: var(--tp-navy-card); color: #fff; }
.tp-ph-sd { position: relative; display: flex; }
.tp-ph-sd .tp-av { box-shadow: 0 0 0 3px #0a235c; }
.tp-ph-sd .tp-av + .tp-av { margin-left: -14px; }
.tp-ph-sd.is-me .tp-av:first-child { box-shadow: 0 0 0 3px #0a235c, 0 0 0 5.5px var(--optic); }
.tp-ph-nm { position: relative; margin: 12px 0 0; font: 700 min(1.4375rem, 56px)/1.2174 var(--tp-font); letter-spacing: -0.015em; color: #fff; }
.tp-ph-nm b { display: block; font-weight: inherit; white-space: normal; overflow-wrap: anywhere; }
.tp-ph-tg { position: relative; display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; }
.tp-ph-tg > span { display: grid; place-items: center; min-height: 30px; padding: 0 11px; border-radius: 15px; background: rgba(255, 255, 255, 0.13); font: 600 1rem/1 var(--font-score); letter-spacing: 0.02em; }
.tp-ph-tg > .tp-ph-ev { background: var(--optic); color: var(--navy-deep); }
.tp-ph-tg > .tp-ph-tx { font: 600 0.875rem/1 var(--tp-font); letter-spacing: 0; }
.tp-ph-wl { position: absolute; top: 26px; right: 22px; font: 600 min(4.75rem, 114px)/1 var(--font-score); letter-spacing: -0.01em; color: var(--optic); }
#tour .tp-ph-wl, #tour .tp-ph-tg .tp-num { font-variant-numeric: normal; }
.tp-pp { position: relative; display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.tp-pp.has-line::before { content: ""; position: absolute; top: var(--tp-pp-top); bottom: var(--tp-pp-end); left: 23px; border-left: 2px dashed var(--tp-line); }
.tp-ps { position: relative; display: flex; align-items: center; gap: 12px; }
.tp-ps-nd { position: relative; z-index: 1; display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
.tp-ps.is-done .tp-ps-nd { background: var(--up); color: #fff; }
.tp-ps.is-next .tp-ps-nd { background: var(--optic); color: var(--navy-deep); box-shadow: 0 0 0 6px rgba(200, 242, 62, 0.3); }
.tp-ps.is-later .tp-ps-nd { background: var(--tp-bg); box-shadow: inset 0 0 0 2px var(--tp-line); }
.tp-ps-bx { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; min-height: 84px; padding: 0 12px 0 14px; border-radius: 20px; background: var(--tp-card); }
.tp-ps.is-next .tp-ps-bx { box-shadow: 0 0 0 2.5px var(--optic); }
.tp-ps-w { display: flex; flex: none; flex-direction: column; align-items: flex-start; gap: 6px; width: 62px; }
.tp-ps-k { font: 600 0.8125rem/1 var(--font-score); letter-spacing: 0.02em; color: var(--tp-muted); white-space: nowrap; }
.tp-ps-t { font: 600 min(1.3125rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.tp-ps-t.is-late { color: var(--tp-amber-ink); }
.tp-ps-ct { display: inline-grid; place-items: center; min-height: 24px; padding: 0 8px; border-radius: 8px; background: var(--tp-soft); color: var(--tp-brand-ink); font: 600 0.9375rem/1 var(--font-score); letter-spacing: 0.02em; }
.tp-ps-vs { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; }
.tp-ps-on { min-width: 0; font: 500 0.9375rem/1.2 var(--tp-font); color: var(--tp-ink); white-space: normal; overflow-wrap: anywhere; }
.tp-ps-lb { font: 500 0.9375rem/1.2667 var(--tp-font); color: var(--tp-muted); white-space: normal; overflow-wrap: anywhere; }
.tp-ps-rs { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 6px; }
.tp-ps-sc { font: 600 min(1.875rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.tp-ps-sc.is-lost { color: var(--tp-muted); }
/* A result still "tạm" on the pair page, as Trận marks it. */
.tp-ps-tam { margin-right: 6px; font: 500 0.8125rem/1 var(--tp-font); color: var(--tp-amber-ink); }
.tp-pb-t + .tp-ps-tam { margin: 0 0 0 6px; }
.tp-ps-pl { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 10px; border-radius: 14px; background: var(--tp-pill); color: #fff; font: 600 0.8125rem/1 var(--tp-font); text-decoration: none; }
.tp-ps-pl .tp-ic { color: var(--optic); }
.tp-ps-un { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 15px; background: var(--tp-soft); color: var(--tp-muted); font: 500 0.875rem/1 var(--tp-font); white-space: nowrap; }
.tp-ps.is-round .tp-ps-nd { height: 36px; }
.tp-ps.is-round .tp-ps-nd i { width: 16px; height: 16px; border-radius: 50%; background: var(--tp-bg); box-shadow: inset 0 0 0 2px var(--tp-line); }
.tp-ps.is-round .tp-ps-bx { min-height: 52px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--tp-dash); font: 600 1.0625rem/1 var(--tp-font); color: var(--tp-muted); }
.tp-ps-tr { display: grid; margin-left: auto; }
#tour .tp-ps-k, #tour .tp-ps-t, #tour .tp-ps-ct, #tour .tp-ps-sc { font-variant-numeric: normal; }

/* ---------- Đội after the draw: the seed badge before the photos, the group letter before the rating ---------- */
.tp-team-sd { display: grid; flex: none; place-items: center; width: 20px; height: 20px; margin-right: -4px; border-radius: 50%; font: 600 13px/1 var(--font-score); }
.tp-team-sd:not(:empty) { background: var(--optic); color: var(--navy-deep); }
a.tp-team { text-decoration: none; cursor: pointer; }
a.tp-team:active { background: var(--tp-soft); }
a.tp-team:focus-visible { outline: 2px solid var(--tp-brand-ink); outline-offset: -2px; }

/* Playing hours sheet: one row per session (date, from, to, remove). */
.tp-sessions { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.tp-session { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 6px; align-items: center; }
.tp-session input { min-width: 0; }
.tp-session .tp-circ { position: static; width: 40px; height: 40px; }

/* ---------- Lịch (approved preview 200, tournament-schedule.js) ---------- */
/* The day strip runs off the right edge: 44 × 54 tiles, the weekday over the day number in Barlow; days with matches in
   navy, the others dimmed; the selected day navy; for organisers a green dot marks a published day. */
.ts-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ts-tools .tp-chip { min-height: 44px; border-radius: 22px; border: 0; cursor: pointer; }
.ts-tools .tp-chip .tp-num { font-size: 1.0625rem; }
.ts-days { display: flex; gap: 7px; margin: 14px -16px 0 0; padding: 0 16px 2px 0; overflow-x: auto; scrollbar-width: none; }
.ts-days::-webkit-scrollbar { display: none; }
.ts-day {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 44px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--tp-card);
  color: var(--tp-muted);
  font: 500 12px/1 var(--tp-font);
  cursor: pointer;
}
.ts-day b { display: block; font: 600 min(1.3125rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.ts-day:not(.is-pub) { color: var(--tp-dim); }
.ts-day:not(.is-pub) b { font-weight: 500; color: var(--tp-dim); }
.ts-day.is-on { background: var(--tp-pill); color: rgba(255, 255, 255, 0.7); }
.ts-day.is-on b { color: #fff; }
.ts-day.is-done::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--tp-up); }
.ts-day:focus-visible, .ts-vw button:focus-visible, .ts-mb:focus-visible, .ts-free:focus-visible, .ts-li:focus-visible { outline: 2px solid var(--focus, #1857d6); outline-offset: 2px; }

/* "24 trận" and the list / grid toggle. */
.ts-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-top: 12px; }
.ts-cnt { margin: 0 0 0 4px; font: 400 0.9375rem/1 var(--tp-font); color: var(--tp-muted); }
#tour .ts-cnt b { margin-right: 2px; font: 600 min(1.375rem, 56px)/1.1818 var(--font-score); color: var(--tp-brand-ink); }
.ts-vw { display: flex; padding: 3px; border-radius: 25px; background: var(--tp-seg-track); }
.ts-vw button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--tp-ink2); cursor: pointer; }
.ts-vw button[aria-pressed="true"] { background: var(--tp-seg-on); color: var(--tp-brand-ink); box-shadow: var(--tp-seg-shadow); }

/* The grid: a 42 px time column and one column per court, rows of 74 px; it scrolls sideways when the courts do not fit. */
.ts-gw { margin: 10px -4px 0; padding: 4px 4px 6px; overflow-x: auto; scrollbar-width: none; }
.ts-gw::-webkit-scrollbar { display: none; }
.ts-grid {
  --ts-head: 26px;
  --ts-row: 74px;
  --ts-gap: 5px;
  position: relative;
  display: grid;
  grid-template-columns: 42px repeat(var(--ts-courts), minmax(68px, 1fr));
  grid-template-rows: var(--ts-head);
  grid-auto-rows: var(--ts-row);
  gap: var(--ts-gap);
}
.ts-ch { display: flex; align-items: center; justify-content: center; font: 600 1.0625rem/1 var(--font-score); letter-spacing: 0.02em; color: var(--tp-brand-ink); }
/* Organisers: the court header is a quiet button that opens "Trọng tài ca này". */
button.ts-ch { min-height: 36px; padding: 0; border: 0; border-radius: 10px; background: var(--tp-soft); cursor: pointer; }
button.ts-ch:focus-visible { outline: 2px solid var(--tp-brand-ink); outline-offset: 1px; }
.ts-shift { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ts-ref-pick { min-height: 44px; padding: 0 16px; border-radius: 22px; font-size: 1rem; }
.ts-ref-pick[aria-pressed="true"] { background: var(--tp-pill); color: #fff; }
.ts-tc { display: flex; align-items: center; font: 600 1rem/1 var(--font-score); color: var(--tp-brand-ink); }
.ts-tc.is-past { color: var(--tp-dim); }
.ts-mb {
  position: relative;
  display: block;
  min-width: 0;
  padding: 5px 6px;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: var(--tp-card);
  color: inherit;
  font: inherit;
  text-align: left;
}
button.ts-mb, button.ts-li { cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.ts-mb .ts-in { display: flex; flex-direction: column; min-width: 0; }
.ts-ev { display: flex; align-items: center; justify-content: space-between; min-height: 15px; font: 600 0.8125rem/1.1538 var(--font-score); color: var(--tp-muted); }
#tour .ts-ev .tp-num { font-variant-numeric: normal; }
.ts-mk { display: inline-flex; align-items: center; gap: 3px; }
.ts-ok { color: var(--tp-up); }
.ts-pin { color: var(--tp-brand-ink); }
.ts-est { font: 600 0.9375rem/1 var(--font-score); color: var(--tp-muted); }
.ts-rw { display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 24px; }
.ts-rw .tp-pr .tp-av + .tp-av, .ts-unk .ts-ring + .ts-ring { margin-left: -6px; }
#tour .ts-rw b { font: 600 1.0625rem/1 var(--font-score); color: var(--tp-brand-ink); white-space: nowrap; }
.ts-ring { display: inline-block; flex: none; border-radius: 50%; background: var(--tp-card); box-shadow: inset 0 0 0 1.5px var(--tp-ghost); }
.ts-mb.is-done, .ts-li.is-done { opacity: 0.5; }
.ts-mb.is-mine, .ts-li.is-mine { box-shadow: 0 0 0 2.5px var(--optic, #c8f23e); }
.ts-mb.is-mine.is-done, .ts-li.is-mine.is-done { opacity: 0.75; }
.ts-mb.is-issue, .ts-li.is-issue { box-shadow: inset 0 0 0 2px var(--gold, #e3ad2e); }
.ts-mb.is-sel, .ts-li.is-sel { background: var(--tp-optic-soft); box-shadow: 0 0 0 3px var(--optic, #c8f23e); opacity: 1; }
/* Two matches on one court at one time (never one hiding the other): stacked small; amber for organisers. */
.ts-stack { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-y: auto; border-radius: 13px; scrollbar-width: none; }
.ts-stack.is-clash { box-shadow: 0 0 0 2px var(--gold, #e3ad2e); }
.ts-mb.is-mini { flex: 1 0 auto; padding: 3px 5px; border-radius: 10px; }
.ts-mb.is-mini .ts-ev { min-height: 13px; font-size: 0.75rem; line-height: 1.0833; }
.ts-mb.is-mini .ts-rw { gap: 6px; justify-content: flex-start; height: 17px; }
.ts-mb.is-mini .tp-pr .tp-av + .tp-av, .ts-mb.is-mini .ts-ring + .ts-ring { margin-left: -5px; }
.ts-free { display: block; min-width: 0; padding: 0; border: 0; border-radius: 13px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--tp-dash); }
button.ts-free { cursor: pointer; }
button.ts-free:hover, button.ts-free:active { background: var(--tp-optic-soft); box-shadow: inset 0 0 0 1.5px var(--optic, #c8f23e); }
/* A selected match: the cells it may go to lit (R-A 4); "Vẫn xếp" ones amber; the others plain and quiet. */
button.ts-free.is-ok { background: var(--tp-optic-soft); box-shadow: inset 0 0 0 1.5px var(--optic, #c8f23e); }
button.ts-free.is-over { background: rgba(227, 173, 46, 0.14); box-shadow: inset 0 0 0 1.5px var(--gold, #e3ad2e); }
.ts-free.is-no { opacity: 0.4; }
/* The time now, on today: a red line across the courts with a dot at its start. */
.ts-now {
  position: absolute;
  z-index: 2;
  left: calc(42px + var(--ts-gap) - 4px);
  right: 0;
  top: calc(var(--ts-head) + var(--ts-gap) + var(--ts-at) * (var(--ts-row) + var(--ts-gap)) - 1px);
  height: 0;
  border-top: 2px solid #ff3b30;
  pointer-events: none;
}
.ts-now::before { content: ""; position: absolute; left: -2px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; }

/* The list: one card per session, each row the time ("dự kiến" small above it) and court, then the code and both pairs. */
.ts-list { margin-top: 4px; }
.ts-sh { margin: 16px 8px 8px; font: 600 1rem/1 var(--font-score); letter-spacing: 0.02em; color: var(--tp-muted); }
.ts-lc { margin-top: 0; padding: 2px 8px; }
.ts-li { display: block; width: 100%; padding: 12px 8px; border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; text-align: left; }
.ts-li + .ts-li { border-top: 1px solid var(--tp-hair); border-radius: 0; }
.ts-li.is-mine, .ts-li.is-sel { border-radius: 14px; }
.ts-li .ts-in { display: flex; gap: 12px; min-width: 0; }
.ts-li-t { display: flex; flex: none; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 62px; font: 500 0.75rem/1.1 var(--tp-font); color: var(--tp-muted); }
#tour .ts-li-t b { display: block; font: 600 min(1.375rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); font-variant-numeric: normal; }
.ts-ct { display: inline-grid; place-items: center; min-height: 22px; padding: 0 7px; border-radius: 7px; background: var(--tp-soft); color: var(--tp-brand-ink); font: 600 0.875rem/1 var(--font-score); letter-spacing: 0.02em; }
.ts-li-m { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.ts-li-ev { display: flex; align-items: center; justify-content: space-between; font: 600 0.875rem/1 var(--font-score); color: var(--tp-muted); }
.ts-li-s { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ts-li-n { flex: 1; min-width: 0; font: 500 0.9375rem/1.25 var(--tp-font); color: var(--tp-ink); white-space: normal; overflow-wrap: anywhere; }
#tour .ts-li-s b { flex: none; font: 600 min(1.125rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }

/* An unpublished day: when its schedule comes. */
.ts-soon { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 56px 16px; }
.ts-soon .tp-ic { color: var(--tp-dim); }
.ts-none { margin: 40px 16px; }

/* "Lịch thay đổi": collapsed under the day. */
.ts-changes { margin-top: 16px; padding: 0 16px; border-radius: 20px; background: var(--tp-card); }
.ts-changes summary { display: flex; align-items: center; gap: 6px; min-height: 48px; font: 600 0.9375rem/1 var(--tp-font); color: var(--tp-muted); cursor: pointer; list-style: none; }
.ts-changes summary::-webkit-details-marker { display: none; }
.ts-changes summary .tp-num { font-size: min(1.125rem, 56px); color: var(--tp-brand-ink); }
.ts-changes[open] summary .tp-ic { transform: rotate(90deg); }
.ts-changes .tp-look { padding: 2px 0 14px; }
.ts-chg { font: 500 0.9375rem/1.3 var(--tp-font); color: var(--tp-ink2); }

/* The organiser's bottom, kept in view over a fade: the main button, "Đã công bố" with "Huỷ công bố", or the selection. */
.ts-go { position: sticky; z-index: 5; bottom: max(34px, calc(env(safe-area-inset-bottom) + 12px)); margin-top: 22px; }
.ts-go::before { content: ""; position: absolute; z-index: -1; inset: -18px -16px -40px; background: linear-gradient(to bottom, var(--tp-bg-clear), var(--tp-bg) 28%); pointer-events: none; }
.ts-go .tp-btn:disabled { opacity: 0.6; cursor: default; }
.ts-pubd { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; margin: 0; border-radius: 27px; background: var(--up-bg, #e3f3ea); color: var(--tp-up); font: 600 1.0625rem/1 var(--tp-font); }
.ts-go-done .tp-quiet { min-height: 40px; margin-top: 4px; }
.ts-sel { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 8px 8px 18px; border-radius: 29px; background: var(--navy, #0b2152); color: #fff; box-shadow: 0 8px 24px rgba(7, 22, 52, 0.25); }
#tour .ts-sel-c { flex: none; font: 600 min(1.25rem, 56px)/1 var(--font-score); color: var(--optic, #c8f23e); font-variant-numeric: normal; }
/* The tapped match by name (W7: the grid's initials said nothing). */
.ts-sel-n { display: block; margin-bottom: 2px; font: 600 0.9375rem/1.25 var(--tp-font); color: #fff; }
.ts-sel-h { flex: 1; min-width: 0; font: 500 0.875rem/1.2 var(--tp-font); color: rgba(255, 255, 255, 0.8); white-space: normal; overflow-wrap: anywhere; }
.ts-sel-b { display: inline-flex; flex: none; align-items: center; gap: 5px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: rgba(255, 255, 255, 0.14); color: #fff; font: 600 0.9375rem/1 var(--tp-font); cursor: pointer; }
.ts-sel-b.is-on { background: var(--optic, #c8f23e); color: var(--navy-deep, #071634); }
.ts-sel-x { display: grid; flex: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; }
.ts-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* "Kiểm tra lịch": an unplaced match is a 44 px tap target with the row's look; selected, optic like a grid cell. */
.ts-picks { gap: 0; }
.ts-pick { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; min-height: 44px; margin: 0 -8px; padding: 0 8px; border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ts-pick > .tp-num { flex: none; min-width: 44px; font: 600 min(1.25rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.ts-pick.is-sel { background: var(--tp-optic-soft); box-shadow: 0 0 0 3px var(--optic, #c8f23e); }
.ts-pick:focus-visible { outline: 2px solid var(--focus, #1857d6); outline-offset: 2px; }
/* A match without a place: its code, why in one line (the person named), the way out as a 44 px chip (17/11 test L5). */
.tp-look li.ts-wait { flex-wrap: wrap; gap: 2px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--tp-line, rgba(7, 22, 52, 0.08)); }
.tp-look li.ts-wait:last-child { border-bottom: 0; padding-bottom: 0; }
.ts-why { flex: 1 1 100%; margin: 0; font: 500 0.9375rem/1.35 var(--tp-font); color: var(--tp-ink); white-space: normal; overflow-wrap: anywhere; }
#tour .ts-fix, .tp-sheet .ts-fix { min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--tp-optic-soft); font-size: 0.9375rem; cursor: pointer; }
.ts-fix:disabled { opacity: 0.6; cursor: default; }
/* The day cannot be published yet: what blocks it, above "Kiểm tra lịch". */
.ts-blocked { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 0 auto 8px; padding: 7px 14px; border-radius: 18px; background: #fdecc8; font: 600 0.9375rem/1.3 var(--tp-font); color: #8a5a00; box-sizing: border-box; }
.ts-go-blocked::before { top: -58px; }
.ts-pd .ts-blocked { margin-left: 0; }
#tour .ts-fix, .tp-sheet .ts-fix { margin-top: 6px; }
/* Past a limit of 4: "Vẫn xếp" beside "Thêm buổi" (W2 review ruling). */
.ts-fixes { display: flex; flex-wrap: wrap; gap: 0 8px; }
/* A warning line in a sheet ("Vẫn xếp", "Huỷ giải"): amber, one sentence. */
.ts-warn, .tp-warn { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; background: #fdecc8; font: 500 1rem/1.35 var(--tp-font); color: #8a5a00; }
.ts-warn .tp-ic, .tp-warn .tp-ic { flex: none; margin-top: 1px; }
@media (max-width: 720px) {
  body.has-dock:not(.in-app) .ts-go { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (prefers-color-scheme: dark) {
  html.in-app .ts-pubd { background: rgba(76, 195, 138, 0.16); }
  html.in-app .ts-blocked { background: rgba(243, 197, 104, 0.16); color: #f3c568; }
  html.in-app .ts-warn, html.in-app .tp-warn { background: rgba(243, 197, 104, 0.16); color: #f3c568; }
  html.in-app .tp-phase.is-cancelled { background: rgba(243, 197, 104, 0.16); color: #f3c568; }
  html.in-app .tp-role.is-hidden { background: rgba(243, 197, 104, 0.18); color: #f3c568; }
  html.in-app .tp-menu-i.is-danger, html.in-app .tp-menu-i.is-danger .tp-ic { color: #ff8a7a; }
  html.in-app .tp-phase.is-cancelled .tp-phase-line, html.in-app .tp-phase.is-cancelled .tp-ic { color: #f3c568; }
  html.in-app .ts-sel { background: #172341; }
}

/* ---------- An event's Trận (approved preview 199, tournament-event.js) ---------- */
/* Two chip rows that run off the right edge (days; "Của tôi" + courts), then the sections: a small grey heading ("Đang
   đánh" with a red dot) over 76 px cards — the time in Barlow over the court tile at the left, both pairs (photos and
   names that end in "…"), the group letter, the code or the games per side at the right; the "Của tôi" card ringed. */
.tm-row { display: flex; gap: 8px; margin: 14px -16px 0 0; padding: 0 16px 2px 0; overflow-x: auto; scrollbar-width: none; }
.tm-row + .tm-row { margin-top: 10px; }
.tm-row::-webkit-scrollbar { display: none; }
.tm-row:empty { display: none; }
.tm-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 22px;
  background: var(--tp-card);
  color: var(--tp-ink2);
  font: 500 0.9375rem/1 var(--tp-font);
  white-space: nowrap;
  cursor: pointer;
}
.tm-chip b { font: 600 1.0625rem/1 var(--font-score); }
#tour .tm-chip.is-court { font: 600 1.0625rem/1 var(--font-score); letter-spacing: 0.02em; font-variant-numeric: normal; }
.tm-chip.is-mine { gap: 8px; padding-left: 6px; }
.tm-chip[aria-pressed="true"] { background: var(--tp-pill); color: #fff; }
.tm-chip:active { filter: brightness(0.96); }
.tm-chip:focus-visible, .tm-s:focus-visible { outline: 2px solid var(--focus, #1857d6); outline-offset: 2px; }
.tm-h { display: flex; align-items: center; gap: 8px; margin: 20px 0 10px 4px; font: 600 0.9375rem/1 var(--tp-font); color: var(--tp-muted); }
.tm-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; }
/* Called, not started: "Chuẩn bị" (amber); paused: "Tạm dừng · Mưa" (amber, still). */
.tm-dot.is-ready, .tm-dot.is-paused { background: #ffb020; }
.tm-mt { display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 10px 14px 10px 12px; border-radius: 20px; background: var(--tp-card); }
.tm-mt + .tm-mt { margin-top: 10px; }
.tm-mt.is-mine { box-shadow: 0 0 0 2.5px var(--optic); }
.tm-w { display: flex; flex: none; flex-direction: column; align-items: flex-start; gap: 6px; width: 56px; }
.tm-w small { margin-bottom: -2px; font: 500 0.75rem/1 var(--tp-font); color: var(--tp-muted); white-space: nowrap; }
.tm-t { font: 600 min(1.375rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.tm-mt.is-done .tm-t { color: var(--tp-muted); }
.tm-ct { display: inline-grid; place-items: center; min-height: 24px; padding: 0 8px; border-radius: 8px; background: var(--tp-soft); color: var(--tp-brand-ink); font: 600 0.9375rem/1 var(--font-score); letter-spacing: 0.02em; }
#tour .tm-t, #tour .tm-ct, #tour .tm-gb { font-variant-numeric: normal; }
.tm-sd { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.tm-s { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; color: var(--tp-ink2); font: 400 0.875rem/1.2 var(--tp-font); text-decoration: none; white-space: nowrap; }
.tm-n { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.tm-n.is-place { color: var(--tp-muted); }
.tm-unk i { display: block; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--tp-ghost); }
.tm-unk i + i { margin-left: -8px; }
.tm-gb { display: inline-grid; flex: none; place-items: center; min-width: 28px; min-height: 28px; padding: 0 6px; border-radius: 14px; background: var(--tp-soft); color: var(--tp-brand-ink); font: 700 1rem/1 var(--font-score); white-space: nowrap; }
.tm-gb.is-code { padding: 0 9px; font-weight: 600; }
.tm-sc { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 6px; font: 600 min(1.5rem, 56px)/1.0833 var(--font-score); color: var(--tp-brand-ink); white-space: nowrap; }
.tm-sc b { font-weight: 500; color: var(--tp-muted); }
.tm-sc b.is-win { font-weight: 700; color: var(--tp-brand-ink); }
.tm-sc.is-even b { font-weight: 600; color: var(--tp-brand-ink); } /* no winner given: a live or submitted score */
.tm-tam { flex: none; margin-right: -4px; font: 500 0.75rem/1 var(--tp-font); color: var(--tp-amber-ink); }
.tm-none { margin: 40px 16px; }

/* ---------- Computers (approved previews 236–246) ---------- */
/* At 1100 px and more the pages take the site's 1120 px column (the header's own width: 1080 px of content) and some parts
   sit side by side. Below that width nothing here applies: the tabs row is no box at all, so the phone pages are unchanged. */
.tp-tabs { display: contents; }

@media (min-width: 1100px) {
  #tour { max-width: 1120px; padding: 22px 20px 48px; }
  .tp-flow #tour { max-width: 560px; } /* /t/new stays a phone-sized flow */

  /* Header: back, the name in 28 px with its quiet line, the BTC pill and share at the right. */
  .tp-hd { gap: 14px; min-height: 52px; }
  .tp-ht h1 { font-size: min(1.75rem, 56px); line-height: 1.1429; letter-spacing: -0.02em; }
  .tp-sub { font-size: 0.9375rem; line-height: 1.3333; }
  .tp-role { min-height: 30px; padding: 0 13px; border-radius: 15px; font-size: 0.875rem; }
  /* An event's lock sits right after its name. */
  .tp-hd:has(.tp-lock) .tp-ht { flex: 0 1 auto; }
  .tp-hd .tp-lock { width: 28px; margin-right: auto; align-self: flex-start; height: 32px; }

  /* The tabs (420 px) at the left; the phase as a small pill and the desktop tools at the right. */
  .tp-tabs { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 16px; }
  .tp-tabs > .tp-seg { order: -1; flex: none; width: 420px; margin: 0; }
  .tp-tabs-r { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
  .tp-tabs > .tp-phase { order: 1; flex: none; display: flex; align-items: center; gap: 12px; min-height: 0; margin: 0 0 0 auto; padding: 4px 4px 4px 16px; border-radius: 22px; }
  /* A finished tournament's champions card (R-C 3): its own line above the tabs, inside the page's column (as a pill it
     took every slide's width and pushed the page sideways). */
  .tp-tabs { flex-wrap: wrap; }
  .tp-tabs > .tp-phase.tp-ch { order: -2; flex: 1 1 100%; display: block; min-width: 0; margin: 0 0 4px; padding: 16px 0 8px; border-radius: 24px; }
  .tp-tabs > .tp-phase.tp-ch .tp-art { display: block; }
  .tp-tabs > .tp-phase .tp-art { display: none; }
  .tp-tabs > .tp-phase .tp-phase-line { min-height: 36px; padding: 0; font-size: 0.9375rem; }
  .tp-tabs > .tp-phase .tp-phase-line .tp-num { font-size: min(1.5rem, 56px); vertical-align: -2px; }
  .tp-tabs > .tp-phase .tp-phase-line .tp-ic { top: 0; }
  .tp-tabs > .tp-phase .tp-btn { width: auto; min-height: 36px; margin: 0; padding: 0 18px; border-radius: 18px; font-size: 0.9375rem; }
  .tp-tabs > .tp-phase.is-closed { padding: 0 14px; background: rgba(11, 33, 82, 0.07); }
  .tp-tabs > .tp-phase.is-closed .tp-phase-line { min-height: 34px; font-size: 0.9375rem; }
  .tp-tabs > .tp-phase.is-draw { padding-right: 16px; }
  .tp-tabs > .tp-phase.is-draw .tp-phase-line .tp-num { font-size: min(1.375rem, 56px); }

  /* The event chips (LT · 1210 · …) and the record link beside the segments. */
  .tp-evc { display: flex; gap: 6px; }
  .tp-evc a { display: grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 12px; border-radius: 20px; background: var(--tp-card); color: var(--tp-ink2); font: 600 min(1.25rem, 56px)/1 var(--font-score); letter-spacing: 0.01em; text-decoration: none; }
  .tp-evc a[aria-current="page"] { background: var(--tp-pill); color: #fff; }
  .tp-evc a:focus-visible { outline: 2px solid var(--tp-brand-ink); outline-offset: 2px; }
  .tp-evc-rec { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-right: 6px; padding: 0 10px; border: 0; border-radius: 20px; background: transparent; color: var(--tp-ink2); font: 500 1rem/1 var(--tp-font); cursor: pointer; }
  .tp-evc-rec .tp-ic { color: var(--tp-muted); }
  .tp-evc-rec:hover { background: var(--tp-card); }
  .tp-tabs-r .tp-import { margin: 0; flex-wrap: nowrap; }
  .tp-tabs-r .tp-chip.is-link { min-height: 44px; padding: 0 18px; border-radius: 22px; background: var(--tp-card); font-size: 1rem; box-shadow: 0 0 0 1px var(--tp-hair); }
  .tp-tabs-r .tp-lock-btn { width: auto; min-height: 44px; margin: 0; padding: 0 20px; border-radius: 22px; font-size: 1rem; }

  /* ---- 236 Nội dung: event cards and "Của tôi" at the left, Hôm nay at the right ---- */
  .tp-dk-home { display: grid; grid-template-columns: minmax(0, 1fr) 424px; gap: 16px; align-items: stretch; margin-top: 20px; }
  .tp-dk-home.is-over { grid-template-columns: minmax(0, 1fr); }
  .tp-dk-main, .tp-dk-side { min-width: 0; }
  .tp-dk-lbl { margin: 0 0 10px; font: 600 0.9375rem/1.3333 var(--tp-font); color: var(--tp-muted); }
  .tp-dk-home .tp-events { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
  .tp-dk-home .tp-ev { min-height: 120px; padding: 16px 18px; border-radius: 22px; }
  .tp-dk-home .tp-ev:hover { box-shadow: 0 0 0 1.5px var(--tp-line); }
  .tp-dk-home .tp-ev.is-me, .tp-dk-home .tp-ev.is-me:hover { box-shadow: 0 0 0 2.5px var(--optic); }
  .tp-dk-home .tp-ev-code { font-size: min(2.75rem, 66px); line-height: 1; }
  .tp-dk-home .tp-ev-name { margin-top: 8px; font-size: 1rem; line-height: 1.25; }
  .tp-dk-home .tp-ev-count { top: 16px; right: 16px; gap: 4px; font-size: min(1.125rem, 56px); }
  .tp-dk-home .tp-ev-me { right: 16px; bottom: 16px; }
  .tp-mw {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 200px;
    margin-top: 16px;
    padding: 22px 24px 24px;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: var(--tp-navy-card);
    color: #fff;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }
  .tp-mw:focus-visible { outline: 2px solid var(--optic); outline-offset: 2px; }
  .tp-mw > :not(.tp-art) { position: relative; }
  .tp-mw-k { display: flex; align-items: center; gap: 8px; font: 500 0.9375rem/1.2 var(--tp-font); color: rgba(255, 255, 255, 0.72); }
  .tp-mw-find { margin-top: auto; font: 700 min(1.875rem, 56px)/1.2 var(--tp-font); letter-spacing: -0.015em; color: var(--optic); }
  .tp-mw-who { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
  .tp-mw-who .tp-pr .tp-av { box-shadow: 0 0 0 3px #0a235c; }
  .tp-mw-who .tp-pr.is-me .tp-av:first-child { box-shadow: 0 0 0 3px #0a235c, 0 0 0 5.5px var(--optic); }
  .tp-mw-who .tp-pr .tp-av + .tp-av { margin-left: -12px; }
  .tp-mw-who b { display: block; font: 700 min(1.5rem, 56px)/1.25 var(--tp-font); letter-spacing: -0.01em; }
  .tp-mw-who i { display: block; margin-top: 2px; font: 400 0.9375rem/1.3333 var(--tp-font); font-style: normal; color: rgba(255, 255, 255, 0.7); }
  .tp-mw-nx { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
  .tp-mw-m { display: flex; flex-direction: column; min-width: 0; min-height: 150px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
  .tp-mw-m.is-next { background: rgba(200, 242, 62, 0.12); box-shadow: inset 0 0 0 1.5px var(--optic); }
  .tp-mw-top { display: flex; align-items: center; gap: 10px; }
  .tp-mw-t { font: 600 min(3rem, 72px)/1 var(--font-score); color: var(--optic); }
  .tp-mw-t.is-late { color: #ffc65c; }
  .tp-mw-un { font: 600 min(1.25rem, 56px)/2.4 var(--tp-font); color: var(--optic); }
  .tp-mw-ev { display: inline-grid; place-items: center; min-height: 26px; margin-left: auto; padding: 0 8px; border-radius: 8px; background: var(--optic); color: var(--navy-deep); font: 600 1rem/1 var(--font-score); }
  .tp-mw-sm { margin-top: 6px; font: 600 0.9375rem/1 var(--font-score); letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.7); }
  .tp-mw-vs { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: auto; padding-top: 14px; font: 400 0.9375rem/1.3333 var(--tp-font); color: rgba(255, 255, 255, 0.85); }
  .tp-mw-vs > span:last-child { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .tp-mw-vs small { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.5); }
  .tp-mw-vs .tp-pr .tp-av { box-shadow: 0 0 0 2px #0c2661; }
  #tour .tp-mw-t, #tour .tp-mw-ev, #tour .tp-mw-sm { font-variant-numeric: normal; }

  /* Hôm nay: "Đang đánh" and "Tiếp theo 8:20", one 66 px row per match. */
  .tp-td { height: 100%; margin: 0; padding: 18px 18px 14px; }
  .tp-td-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .tp-td-hd h2 { margin: 0; font: 700 min(1.25rem, 56px)/1.2 var(--tp-font); letter-spacing: -0.01em; }
  .tp-td-hd .tp-num { font-size: min(1.125rem, 56px); font-weight: 600; color: var(--tp-muted); }
  .tp-td-k { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font: 600 0.9375rem/1.3333 var(--tp-font); color: var(--tp-muted); }
  .tp-td-k .tp-num { font-size: min(1.125rem, 56px); color: var(--tp-ink2); }
  .tp-td-r { display: flex; align-items: center; gap: 12px; min-height: 66px; border-top: 1px solid var(--tp-hair); color: inherit; text-decoration: none; }
  .tp-td-k + .tp-td-r { border-top: 0; }
  a.tp-td-r:hover .tp-td-n { color: var(--tp-ink); }
  .tp-td-r.is-me { margin: 0 -10px; padding: 0 10px; border-radius: 14px; border-top-color: transparent; background: var(--tp-optic-soft); }
  .tp-td-r.is-me + .tp-td-r { border-top-color: transparent; }
  .tp-td-ct { display: inline-grid; flex: none; place-items: center; min-width: 46px; min-height: 24px; padding: 0 8px; border-radius: 8px; background: var(--tp-soft); color: var(--tp-brand-ink); font: 600 0.9375rem/1 var(--font-score); letter-spacing: 0.02em; }
  .tp-td-sd { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
  .tp-td-s { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .tp-td-s .tp-pr .tp-av + .tp-av { margin-left: -6px; }
  .tp-td-n { min-width: 0; font: 400 0.875rem/1.2 var(--tp-font); color: var(--tp-ink2); white-space: normal; overflow-wrap: anywhere; }
  .tp-td-sc { display: flex; flex: none; flex-direction: column; gap: 6px; font: 600 min(1.375rem, 56px)/1.0909 var(--font-score); color: var(--tp-brand-ink); text-align: center; }
  .tp-td-ev { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 48px; font: 600 0.9375rem/1 var(--font-score); color: var(--tp-muted); }
  .tp-td-et { display: inline-grid; place-items: center; height: 24px; padding: 0 7px; border-radius: 7px; background: var(--tp-optic-soft); color: var(--tp-brand-ink); }
  .tp-td-r.is-me .tp-td-et { background: var(--tp-card); }
  #tour .tp-td-ct, #tour .tp-td-ev .tp-num { font-variant-numeric: normal; }
  .tp-td-none { margin: 40px 0; text-align: center; font: 400 1rem/1.375 var(--tp-font); color: var(--tp-muted); }

  /* ---- 242 Nội dung for organisers: the matrix at the left; "Việc tiếp theo" and the day's counts at the right ---- */
  .tp-dk-btc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-top: 20px; }
  .tp-dk-btc .tp-mx { margin: 0; padding: 16px 22px 10px; }
  .tp-dk-btc .tp-mx-hd, .tp-dk-btc .tp-mx-row { grid-template-columns: minmax(250px, 2.2fr) repeat(5, minmax(0, 1fr)); }
  .tp-dk-btc .tp-mx-hd { height: 88px; align-items: center; border-bottom: 1px solid var(--tp-hair); }
  .tp-dk-btc .tp-mx-st { gap: 8px; font-size: 0.9375rem; line-height: 1.2; }
  .tp-dk-btc .tp-mx-st .tp-ic { width: 24px; height: 24px; }
  .tp-dk-btc .tp-mx-row { height: 92px; }
  .tp-dk-btc .tp-mx-row + .tp-mx-row { border-top: 1px solid var(--tp-hair); }
  .tp-dk-btc .tp-mx-row.is-next { margin: 0 -14px; padding: 0 14px; border-top-color: transparent; border-radius: 18px; }
  .tp-dk-btc .tp-mx-row.is-next + .tp-mx-row { border-top-color: transparent; }
  .tp-dk-btc .tp-mx-ev { gap: 14px; }
  .tp-dk-btc .tp-mx-ev b { flex: 0 0 auto; min-width: 88px; font-size: min(2.75rem, 66px); }
  .tp-mx-nm { display: flex; flex-direction: column; gap: 4px; min-width: 0; font: 400 1rem/1.25 var(--tp-font); color: var(--tp-ink2); }
  .tp-mx-nm > span:first-child { white-space: normal; overflow-wrap: anywhere; }
  .tp-dk-btc .tp-mx-n { font-size: min(1.125rem, 56px); }
  .tp-dk-btc .tp-cell { position: relative; align-self: stretch; }
  .tp-dk-btc .tp-cell:hover .tp-d { filter: brightness(0.95); }
  .tp-dk-btc .tp-d { width: 34px; height: 34px; }
  .tp-dk-btc .tp-d.is-wait { box-shadow: inset 0 0 0 3px #e3ad2e; }
  .tp-mx-pg { position: absolute; left: 50%; bottom: 20px; width: 64%; max-width: 84px; height: 5px; overflow: hidden; border-radius: 3px; background: var(--tp-bar); transform: translateX(-50%); }
  .tp-mx-pg i { display: block; height: 100%; border-radius: 3px; background: #e3ad2e; }
  .tp-mx-pn { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font: 600 0.875rem/1 var(--font-score); color: var(--tp-muted); }
  .tp-dk-side .tp-next { min-height: 300px; margin: 0; padding: 22px 26px 26px; }
  .tp-dk-side .tp-next-ev { margin: 18px 0 22px; }
  .tp-dk-side .tp-next-code { font-size: min(5rem, 120px); line-height: 0.875; }
  .tp-dk-side .tp-next-m b { font-size: min(1.375rem, 56px); line-height: 1.2727; }
  .tp-dk-side .tp-next .tp-btn { min-height: 54px; border-radius: 27px; }
  .tp-tc { margin-top: 16px; padding: 18px 22px 20px; }
  .tp-tc-n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
  .tp-tc-i { display: flex; flex-direction: column; gap: 6px; font: 400 0.9375rem/1.2 var(--tp-font); color: var(--tp-muted); }
  .tp-tc-i b { font: 600 min(2.5rem, 60px)/1 var(--font-score); color: var(--tp-brand-ink); }
  .tp-tc-i.is-live b { color: #ff3b30; }
  .tp-tc-i > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

  /* ---- 237 Bảng: every group side by side (the table, then its matches) ---- */
  .tp-gw { display: grid; grid-template-columns: repeat(var(--tp-gw-n), minmax(0, 1fr)); gap: 16px; align-items: start; margin-top: 20px; }
  .tp-gw-c { min-width: 0; margin: 0; padding: 14px 6px 10px; }
  .tp-gw-h { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 0 14px; font: 500 1rem/1 var(--tp-font); color: var(--tp-muted); }
  .tp-gw-h .tp-bm-gb { width: 32px; height: 32px; border-radius: 10px; font-size: 20px; }
  .tp-gw .tp-gt { margin: 0; padding: 0; }
  .tp-gw .tp-gr { gap: 10px; padding: 6px 10px 6px 14px; }
  .tp-gw .tp-gr + .tp-gr { border-top: 1px solid var(--tp-hair); border-radius: 0; }
  .tp-gw .tp-gr.is-me { border-radius: 16px; }
  .tp-gw .tp-gr-rk { min-width: 12px; }
  .tp-gw .tp-gr-wl { font-size: min(1.5rem, 56px); }
  .tp-gw .tp-gm { margin: 8px 0 0; padding: 4px 0 0; border-top: 1px solid var(--tp-hair); border-radius: 0; }
  .tp-gw .tp-gm-row { gap: 6px; min-height: 48px; padding: 0 8px; }
  .tp-gw .tp-gm-row + .tp-gm-row { border-top: 0; }
  .tp-gw .tp-gm-cd { min-width: 30px; font-size: 0.9375rem; }
  .tp-gw .tp-gm-row .tp-av { width: 22px !important; height: 22px !important; font-size: 10px !important; }
  /* Small photos overlap less, so a second one never covers the first one's letter (17/11 test C B18). */
  .tp-gw .tp-gm-row .tp-pr .tp-av + .tp-av { margin-left: -3px; }
  .tp-gw .tp-gm-rs { gap: 5px; font-size: min(1.125rem, 56px); }
  .tp-gw .tp-gm-ct { min-height: 22px; padding: 0 6px; font-size: 0.8125rem; }

  /* ---- 245 Bảng for organisers: the draw's groups at the left, "Biên bản bốc thăm" at the right ---- */
  .tp-dw { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; margin-top: 20px; }
  .tp-dw-main { min-width: 0; }
  .tp-dw-hd { display: flex; align-items: center; gap: 16px; min-height: 36px; }
  .tp-dw-hd h2 { display: flex; flex: 1; align-items: baseline; gap: 10px; min-width: 0; margin: 0; font: 400 min(1.125rem, 56px)/1 var(--tp-font); color: var(--tp-muted); white-space: nowrap; }
  .tp-dw-hd h2 b { font: 700 min(1.375rem, 56px)/1 var(--tp-font); color: var(--tp-ink); }
  .tp-dw-hd h2 .tp-num { font-size: min(1.25rem, 56px); font-weight: 600; font-variant-numeric: normal; }
  .tp-dw-n .tp-num { color: var(--tp-ink2); }
  .tp-dw-rd { display: flex; align-items: center; gap: 6px; margin: 0; font: 500 0.9375rem/1 var(--tp-font); color: var(--tp-muted); white-space: nowrap; }
  .tp-dw-rd .tp-ic { color: var(--tp-dim); }
  .tp-dw-g { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-top: 14px; }
  .tp-dw-c { margin: 0; padding: 14px 10px 8px; }
  .tp-dw-h { margin: 0 0 6px 10px; }
  .tp-dw-h .tp-bm-gb { width: 32px; height: 32px; border-radius: 10px; font-size: 20px; }
  .tp-dw-r { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 4px 10px; border-radius: 16px; }
  .tp-dw-r + .tp-dw-r { border-top: 1px solid var(--tp-hair); border-radius: 0; }
  .tp-dw-r.is-me { border-top-color: transparent; border-radius: 16px; background: var(--tp-optic-soft); }
  .tp-dw-r.is-me + .tp-dw-r { border-top-color: transparent; }
  .tp-dw-l { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tp-soft); color: var(--tp-muted); font: 600 15px/1 var(--font-score); }
  .tp-dw-l.is-seed { background: var(--optic); color: var(--navy-deep); }
  .tp-dw-r .tp-names b { white-space: normal; }
  .tp-dp { display: flex; flex-direction: column; margin: 0; padding: 18px 20px 14px; }
  .tp-dp-t { display: flex; align-items: center; gap: 10px; align-self: flex-start; margin: 0; padding: 0; border: 0; background: transparent; color: var(--tp-ink); font: 700 min(1.375rem, 56px)/1.2727 var(--tp-font); letter-spacing: -0.01em; cursor: pointer; }
  .tp-dp-t .tp-ic { color: var(--tp-brand-ink); }
  .tp-dp-v { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; font: 400 0.9375rem/1 var(--tp-font); color: var(--tp-muted); }
  .tp-dp-n { display: inline-grid; place-items: center; min-height: 30px; padding: 0 12px; border-radius: 15px; background: var(--tp-pill); color: #fff; font: 600 0.9375rem/1 var(--tp-font); }
  .tp-dp-fp { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--tp-soft); }
  .tp-dp-fp .tp-num { flex: 1; min-width: 0; font: 500 0.875rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--tp-ink2); white-space: normal; overflow-wrap: anywhere; }
  .tp-dp-steps { display: flex; flex-direction: column; margin: 12px 0 0; padding: 0; list-style: none; }
  .tp-dp-steps li { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 8px; border-radius: 10px; font: 400 0.9375rem/1.2 var(--tp-font); color: var(--tp-ink); }
  .tp-dp-steps li.is-me { background: var(--tp-optic-soft); }
  .tp-dp-steps li > .tp-num { flex: none; min-width: 24px; font: 600 0.9375rem/1 var(--font-score); color: var(--tp-muted); font-variant-numeric: normal; }
  .tp-dp-nm { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .tp-dp-to { display: flex; flex: none; align-items: center; gap: 6px; color: var(--tp-arrow); }
  .tp-dp-to .tp-bm-gb { width: 22px; height: 22px; font-size: 14px; }
  .tp-dp-go { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
  .tp-dp-play { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 22px; background: var(--tp-card); color: var(--tp-brand-ink); font: 600 1rem/1 var(--tp-font); box-shadow: 0 0 0 1px var(--tp-hair); cursor: pointer; }
  .tp-dp-go .tp-quiet { width: auto; min-height: 44px; margin: 0; padding: 0 8px; }

  /* ---- 238 Nhánh: the whole bracket on one screen ---- */
  .tp-bk.is-wide { margin-top: 20px; }
  .tp-bk-rhs { position: relative; height: 30px; }
  .tp-bk-rh { position: absolute; top: 0; width: var(--tp-bk-w); margin: 0; font: 700 min(1.25rem, 56px)/1.3 var(--tp-font); letter-spacing: -0.01em; color: var(--tp-ink); white-space: nowrap; }
  .tp-bk-rh .tp-num { margin-left: 6px; font: 500 1rem/1 var(--tp-font); color: var(--tp-muted); }
  .tp-bk.is-wide .tp-bk-sc { margin: 16px 0 0; overflow: visible; scroll-snap-type: none; }
  .tp-bk.is-wide .tp-bk-cv { width: 100%; }
  .tp-bk.is-wide .tp-bk-col { width: var(--tp-bk-w); }
  .tp-bk.is-wide .tp-bm { width: 100%; min-height: 112px; padding: 12px 18px; border-radius: 20px; }
  .tp-bk.is-wide .tp-bm-cd { min-height: 22px; font-size: 1rem; }
  .tp-bk.is-wide .tp-bm-s { gap: 12px; min-height: 38px; font-size: 1.0625rem; }
  .tp-bk.is-wide .tp-bm-s + .tp-bm-s { border-top: 1px solid var(--tp-hair); }
  .tp-bk.is-wide .tp-bm-gb { width: 26px; height: 26px; font-size: 16px; }
  .tp-bk.is-wide .tp-bm-unk { width: 26px; height: 26px; }
  .tp-bk.is-wide .tp-bm-tx.is-ref { font-size: min(1.125rem, 56px); }
  .tp-bk.is-wide .tp-bm-tx.is-names { font-size: 0.9375rem; line-height: 1.1333; }
  .tp-bk.is-wide .tp-bm-sc { font-size: min(1.25rem, 56px); }
  .tp-bk.is-wide .tp-bm[data-match="CK"] { box-shadow: 0 0 0 2px var(--optic); }
  .tp-bk-md { position: absolute; left: 0; right: 0; }
  .tp-bk-md .tp-md { margin: 0; padding: 20px 8px; }
  .tp-bk-md .tp-md-c { width: 48px; height: 48px; }

  /* ---- 239 Trận: the filters at the left, the matches as tables at the right ---- */
  .tw { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 20px; }
  .tw-fl { position: sticky; top: 16px; margin: 0; padding: 18px 18px 8px; }
  .tw-f { margin-bottom: 16px; }
  .tw-f h3 { margin: 0 0 10px; font: 600 0.9375rem/1 var(--tp-font); color: var(--tp-muted); }
  .tw-fc { display: flex; flex-wrap: wrap; gap: 8px; }
  .tw .tm-chip { background: var(--tp-soft); }
  .tw .tm-chip[aria-pressed="true"] { background: var(--tp-pill); color: #fff; }
  .tw .tm-chip.is-grp { width: 40px; padding: 0; justify-content: center; }
  .tw .tm-chip.is-grp .tp-bm-gb { width: 26px; height: 26px; }
  .tw .tm-chip.is-grp[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--tp-pill); background: var(--tp-card); }
  .tw-me { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 10px 0 8px; border: 0; border-radius: 24px; background: var(--tp-soft); color: var(--tp-ink); font: 500 1rem/1.2 var(--tp-font); text-align: left; cursor: pointer; }
  .tw-me > span:not(.tp-pr) { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .tw-sw { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--tp-line); transition: background 120ms ease-out; }
  .tw-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(7, 22, 52, 0.25); transition: transform 120ms ease-out; }
  .tw-me[aria-pressed="true"] .tw-sw { background: var(--up); }
  .tw-me[aria-pressed="true"] .tw-sw::after { transform: translateX(18px); }
  .tw-main { min-width: 0; }
  .tw-main .tm-sec:first-child .tm-h { margin-top: 4px; }
  .tw-l { margin: 0; padding: 4px 14px; }
  .tw-r { display: grid; grid-template-columns: 58px 58px 70px minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: 0 10px; min-height: 74px; padding: 6px 10px; }
  .tw-r + .tw-r { border-top: 1px solid var(--tp-hair); }
  .tw-r.is-mine { margin: 0 -8px; padding: 6px 18px; border-top-color: transparent; border-radius: 18px; background: var(--tp-optic-soft); }
  .tw-r.is-mine + .tw-r { border-top-color: transparent; }
  .tw-r.is-done { opacity: 0.6; }
  .tw-t { display: flex; flex-direction: column; gap: 2px; }
  .tw-t small { font: 500 0.75rem/1 var(--tp-font); color: var(--tp-muted); }
  #tour .tw-t b { font: 600 min(1.75rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); font-variant-numeric: normal; }
  .tw-ct { display: inline-grid; justify-self: start; place-items: center; min-height: 26px; padding: 0 9px; border-radius: 8px; background: var(--tp-soft); color: var(--tp-brand-ink); font: 600 1rem/1 var(--font-score); letter-spacing: 0.02em; }
  .tw-r.is-mine .tw-ct { background: var(--tp-card); }
  .tw-cd { display: flex; align-items: center; gap: 6px; font: 600 1rem/1 var(--font-score); color: var(--tp-muted); }
  #tour .tw-ct, #tour .tw-cd .tp-num { font-variant-numeric: normal; }
  .tw-s { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--tp-ink2); text-decoration: none; }
  .tw-s.is-a { flex-direction: row-reverse; text-align: right; }
  .tw-n { display: flex; flex-direction: column; min-width: 0; font: 400 0.9375rem/1.2667 var(--tp-font); }
  .tw-n b { font-weight: 400; white-space: normal; overflow-wrap: anywhere; }
  .tw-n.is-place { color: var(--tp-muted); }
  a.tw-s:hover .tw-n { color: var(--tp-ink); }
  .tw-m { display: grid; place-items: center; }
  .tw-vs { font: 400 0.875rem/1 var(--tp-font); color: var(--tp-dim); }
  .tw-sc { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 min(1.75rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
  .tw-sc small { font: 500 0.75rem/1 var(--tp-font); color: var(--tp-amber-ink); }
  .tw-sc.is-wo { font: 600 min(1.125rem, 56px)/1 var(--font-score); }

  /* ---- 244 Đội: one table; organisers decide pending rows in place ---- */
  .tp-tt-pills { display: flex; gap: 10px; margin-top: 20px; }
  .tp-tt-pill { display: inline-flex; align-items: baseline; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 20px; background: rgba(11, 33, 82, 0.07); color: var(--tp-muted); font: 500 1rem/2.5 var(--tp-font); }
  .tp-tt-pill b { font: 600 min(1.375rem, 56px)/1.8182 var(--font-score); }
  .tp-tt-pill.is-ok { background: var(--up-bg, #e3f3ea); color: var(--tp-up); }
  .tp-tt-pill.is-wait { background: #fdecc8; color: #8a5a00; }
  .tp-tt { margin-top: 16px; padding: 10px 20px 12px; }
  /* One track per column the table actually has (tournament.js sets --tt-cols): #, pair, group, rating, fee, status. */
  .tp-tt-hd, .tp-tt-row { display: grid; grid-template-columns: var(--tt-cols); align-items: center; gap: 0 12px; }
  .tp-tt-st { white-space: nowrap; }
  .tp-tt-hd { min-height: 40px; border-bottom: 1px solid var(--tp-hair); font: 500 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
  .tp-tt-hd > span:last-child { justify-self: end; }
  .tp-tt:not(.tp-tt-s) .tp-tt-hd > span:last-child { justify-self: start; }
  .tp-tt-row { min-height: 52px; }
  .tp-tt-row + .tp-tt-row { border-top: 1px solid var(--tp-hair); }
  .tp-tt-row.is-pending { margin: 0 -12px; padding: 0 12px; border-top-color: transparent; border-radius: 14px; background: #fff4df; }
  .tp-tt-row.is-pending + .tp-tt-row { border-top-color: transparent; }
  .tp-tt-i { font: 600 min(1.125rem, 56px)/1 var(--font-score); color: var(--tp-muted); font-variant-numeric: normal; }
  .tp-tt-who { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 50px; padding: 0; border: 0; background: transparent; color: var(--tp-ink); font: 400 1rem/1.2 var(--tp-font); text-align: left; text-decoration: none; }
  button.tp-tt-who, a.tp-tt-who { cursor: pointer; }
  button.tp-tt-who:hover .tp-tt-nm, a.tp-tt-who:hover .tp-tt-nm { text-decoration: underline; text-decoration-color: var(--tp-line); text-underline-offset: 3px; }
  .tp-tt-who:focus-visible { outline: 2px solid var(--tp-brand-ink); outline-offset: 2px; border-radius: 8px; }
  .tp-tt-nm { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .tp-tt-who .tp-team-sd { margin: 0; }
  .tp-tt-rt { font: 600 min(1.5rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); font-variant-numeric: normal; }
  .tp-tt-paid { display: grid; color: var(--tp-up); }
  .tp-tt-unpaid { font: 500 0.9375rem/1 var(--tp-font); color: #8a5a00; }
  .tp-tt-st { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
  .tp-tt-done { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border-radius: 16px; background: var(--up-bg, #e3f3ea); color: var(--tp-up); font: 500 0.9375rem/1 var(--tp-font); }
  .tp-tt-wait { margin-right: 6px; font: 500 0.9375rem/1 var(--tp-font); color: #8a5a00; }
  .tp-tt-ok { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--up); color: #fff; font: 600 0.9375rem/1 var(--tp-font); cursor: pointer; }
  .tp-tt-no { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--down-bg, #fbe8e6); color: var(--down, #bf3a30); cursor: pointer; }
  .tp-tt-ok:disabled, .tp-tt-no:disabled { opacity: 0.5; cursor: default; }

  /* ---- 240 Lịch: every day in one strip, the full courts × time grid ---- */
  .ts-wide .ts-days { gap: 12px; margin: 20px 0 0; padding: 0; overflow: visible; }
  .ts-wide .ts-day { flex: 1 1 0; width: auto; min-width: 0; max-width: 132px; min-height: 80px; gap: 6px; border-radius: 20px; font-size: 0.9375rem; }
  .ts-wide .ts-day b { font-size: min(2rem, 56px); }
  .ts-wide .ts-day:not(.is-pub) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tp-dash); }
  .ts-wide .ts-day.is-on { background: var(--tp-pill); box-shadow: none; }
  .ts-wide .ts-day.is-done::after { top: 12px; right: calc(50% - 22px); width: 7px; height: 7px; }
  .tp-tabs-r .ts-cnt { margin: 0 4px 0 6px; font-size: 1rem; }
  .tp-tabs-r .ts-cnt b { margin-right: 2px; font: 600 min(1.625rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
  .tp-tabs-r .ts-vw { padding: 4px; border-radius: 22px; }
  .tp-tabs-r .ts-vw button { width: 52px; height: 36px; border-radius: 18px; }
  .ts-lg { display: flex; gap: 18px; font: 400 0.9375rem/1 var(--tp-font); color: var(--tp-muted); }
  .ts-lg span { display: flex; align-items: center; gap: 7px; }
  .ts-lg i { width: 16px; height: 16px; border-radius: 5px; }
  .ts-lg i.is-live { box-shadow: inset 0 0 0 2px #ff3b30; }
  .ts-lg i.is-me { background: var(--tp-optic-soft); box-shadow: inset 0 0 0 2px var(--optic); }
  .ts-tb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 22px; background: var(--tp-card); color: var(--tp-ink); font: 600 1rem/1 var(--tp-font); box-shadow: 0 0 0 1px var(--tp-hair); cursor: pointer; }
  .ts-tb .tp-ic { color: var(--tp-brand-ink); }
  .ts-tb:disabled { opacity: 0.6; cursor: default; }
  .ts-wide .ts-gw { margin: 20px 0 0; padding: 16px 20px 20px; overflow: visible; border-radius: 24px; background: var(--tp-card); }
  .ts-grid.is-wide { --ts-head: 34px; --ts-row: 64px; --ts-gap: 10px; --ts-sep: 20px; grid-template-columns: 64px repeat(var(--ts-courts), minmax(0, 1fr)); }
  .ts-grid.is-wide .ts-ch { font-size: min(1.25rem, 56px); }
  .ts-grid.is-wide .ts-tc { font-size: min(1.375rem, 56px); }
  .ts-grid.is-wide .ts-tc.is-past { color: var(--tp-muted); }
  .ts-sep { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; height: var(--ts-sep); font: 500 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
  .ts-sep::after { content: ""; flex: 1; border-top: 1.5px dashed var(--tp-dash); }
  .ts-grid.is-wide { grid-auto-rows: auto; }
  .ts-grid.is-wide > .ts-tc, .ts-grid.is-wide > .ts-mb, .ts-grid.is-wide > .ts-free, .ts-grid.is-wide > .ts-void, .ts-grid.is-wide > .ts-stack { height: var(--ts-row); }
  .ts-mb.is-wide { display: block; padding: 8px 12px; border-radius: 14px; background: var(--tp-bg); }
  .ts-mb.is-wide .ts-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 12px; height: 100%; }
  .ts-dc { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .ts-de { display: inline-grid; place-items: center; min-height: 22px; padding: 0 6px; border-radius: 6px; background: var(--tp-optic-soft); color: var(--tp-brand-ink); font: 600 0.9375rem/1 var(--font-score); }
  .ts-dd { font: 600 0.875rem/1 var(--font-score); color: var(--tp-muted); }
  #tour .ts-de, #tour .ts-dd, #tour .ts-dg { font-variant-numeric: normal; }
  .ts-dn { display: flex; flex-direction: column; gap: 6px; min-width: 0; font: 400 0.9375rem/1.15 var(--tp-font); color: var(--tp-ink2); }
  .ts-dn span { white-space: normal; overflow-wrap: anywhere; }
  .ts-dn .is-me { font-weight: 600; color: var(--tp-ink); }
  .ts-dg { display: flex; flex-direction: column; gap: 6px; font: 600 min(1.25rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
  .ts-mb.is-wide .ts-mk { position: absolute; top: 6px; right: 8px; display: flex; gap: 4px; }
  .ts-mb.is-wide .tm-dot { width: 7px; height: 7px; }
  .ts-mb.is-wide.is-live { background: var(--tp-card); box-shadow: inset 0 0 0 2px #ff3b30; }
  .ts-mb.is-wide.is-mine { background: var(--tp-optic-soft); box-shadow: inset 0 0 0 2px var(--optic); }
  .ts-mb.is-wide.is-sel { background: var(--tp-optic-soft); box-shadow: 0 0 0 3px var(--optic); }
  .ts-mb.is-wide.is-issue { box-shadow: inset 0 0 0 2px var(--gold, #e3ad2e); }
  button.ts-mb.is-wide:hover { filter: brightness(0.98); }
  .ts-grid.is-wide .ts-free { border-radius: 14px; }
  button.ts-free { display: grid; place-items: center; }
  .ts-fh { font: 600 0.9375rem/1 var(--tp-font); color: var(--tp-brand-ink); opacity: 0; }
  button.ts-free:hover .ts-fh, button.ts-free:focus-visible .ts-fh { opacity: 1; }
  .ts-grid.is-wide .ts-now { left: calc(64px + var(--ts-gap) - 4px); top: calc(var(--ts-head) + var(--ts-gap) + var(--ts-at) * (var(--ts-row) + var(--ts-gap)) + var(--ts-seps, 0) * (var(--ts-sep) + var(--ts-gap)) - 1px); }
  .ts-now b { position: absolute; left: -62px; top: -11px; padding: 3px 6px; border-radius: 7px; background: #ff3b30; color: #fff; font: 600 0.875rem/1 var(--font-score); }
  .ts-wide .ts-changes { margin-top: 16px; }

  /* ---- 243 Lịch for organisers: the grid and a side panel instead of the sheets and the bottom bar ---- */
  .ts-dk { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 16px; align-items: start; }
  .ts-dk-main { min-width: 0; }
  .ts-dk .ts-gw { padding: 14px 12px 18px; }
  .ts-dk .ts-grid.is-wide { grid-template-columns: 50px repeat(var(--ts-courts), minmax(0, 1fr)); --ts-gap: 8px; }
  .ts-dk .ts-grid.is-wide .ts-now { left: calc(50px + var(--ts-gap) - 4px); }
  .ts-dk .ts-mb.is-wide { padding: 8px 8px; }
  .ts-dk .ts-mb.is-wide .ts-mk { top: 4px; right: 5px; }
  .ts-dk .ts-de { padding: 0 4px; font-size: 0.875rem; }
  .ts-dk .ts-mb.is-wide .ts-in { gap: 0 6px; }
  .ts-dk .ts-dn { font-size: 0.875rem; }
  .ts-dk-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
  .ts-pc { margin: 0; padding: 18px 20px; }
  .ts-ph { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font: 700 min(1.25rem, 56px)/1.2 var(--tp-font); letter-spacing: -0.01em; }
  .ts-ph .tp-num { font-size: min(1.5rem, 56px); color: var(--tp-muted); }
  .ts-ok-line { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 1rem/1.2 var(--tp-font); color: var(--tp-up); }
  .ts-ok-line .tp-ic { display: grid; place-items: center; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--up); color: #fff; box-sizing: border-box; }
  .ts-pc .ts-picks { gap: 6px; }
  .ts-pc .ts-pick { margin: 0; min-height: 52px; padding: 0 12px; background: var(--tp-bg); }
  .ts-pc .ts-pick > .tp-num { min-width: 0; font-size: min(1.125rem, 56px); }
  .ts-pv { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .ts-pv small { font: 400 0.8125rem/1 var(--tp-font); color: var(--tp-dim); }
  .ts-pv .tp-pr .tp-av + .tp-av { margin-left: -6px; }
  .ts-pd .ts-go { position: static; margin: 0; }
  .ts-pd .ts-go::before { display: none; }
  .ts-pd .ts-pubd { justify-content: flex-start; min-height: 40px; padding: 0 16px; border-radius: 20px; font-size: 1rem; display: inline-flex; }
  .ts-pd .ts-go-done { display: flex; align-items: center; gap: 8px; }
  .ts-pd .ts-go-done .tp-quiet { width: auto; min-height: 40px; margin: 0; padding: 0 10px; }
  .ts-pd .tp-btn { min-height: 48px; border-radius: 24px; font-size: 1rem; }
  .ts-pd .ts-sel { padding: 8px 8px 8px 16px; box-shadow: none; }

  /* ---- 241 A pair: the hero with the next match and the group table side by side, then the path as one row ---- */
  .tp-pw-top { display: grid; grid-template-columns: minmax(0, 1fr) 424px; gap: 16px; align-items: stretch; margin-top: 20px; }
  .tp-pw-top.is-alone { grid-template-columns: 1fr; }
  .tp-pw-h { display: flex; gap: 20px; min-height: 380px; margin: 0; padding: 28px 26px 28px 30px; }
  .tp-pw-l { position: relative; display: flex; flex: 1; flex-direction: column; min-width: 0; }
  .tp-pw-h .tp-ph-sd .tp-av + .tp-av { margin-left: -18px; }
  .tp-pw-h .tp-ph-nm { margin-top: 24px; font-size: min(1.875rem, 56px); line-height: 1.2667; }
  .tp-pw-h .tp-ph-nm b { white-space: normal; }
  .tp-pw-h .tp-ph-tg { margin-top: auto; padding-top: 20px; }
  .tp-pw-h .tp-ph-tg > span { min-height: 32px; padding: 0 12px; border-radius: 16px; font-size: 1.0625rem; }
  .tp-pw-h .tp-ph-tg > .tp-ph-tx { font-size: 0.9375rem; }
  .tp-pw-nx { position: relative; box-sizing: border-box; display: flex; flex: 0 0 280px; min-width: 0; flex-direction: column; padding: 22px 24px; border-radius: 22px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1.5px var(--optic); }
  .tp-pw-k { font: 500 0.9375rem/1.3333 var(--tp-font); color: rgba(255, 255, 255, 0.75); }
  .tp-pw-k .tp-num { font-size: 1.0625rem; }
  .tp-pw-t { margin-top: 14px; font: 600 min(5.25rem, 126px)/0.9524 var(--font-score); color: var(--optic); }
  .tp-pw-t.is-late { color: #ffc65c; }
  .tp-pw-un { margin-top: 14px; font: 700 min(1.625rem, 56px)/1.2308 var(--tp-font); color: var(--optic); }
  .tp-pw-w { display: flex; align-items: center; gap: 10px; margin-top: 10px; font: 500 1rem/1 var(--tp-font); color: rgba(255, 255, 255, 0.8); }
  .tp-pw-vs { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: auto; padding-top: 18px; color: #fff; }
  .tp-pw-vs small { font: 400 0.875rem/1 var(--tp-font); color: rgba(255, 255, 255, 0.55); }
  .tp-pw-vs .tp-pr .tp-av { box-shadow: 0 0 0 2px #0c2661; }
  .tp-pw-vs > span:last-child { display: flex; flex-direction: column; min-width: 0; font: 400 1rem/1.25 var(--tp-font); }
  .tp-pw-vs b { font-weight: 400; white-space: normal; overflow-wrap: anywhere; }
  #tour .tp-pw-t, #tour .tp-pw-k .tp-num { font-variant-numeric: normal; }
  .tp-pw-g { margin: 0; padding: 18px 12px 12px; }
  .tp-pw-g .tp-gw-h { padding: 0 10px; margin-bottom: 10px; color: var(--tp-ink); font: 700 min(1.25rem, 56px)/1 var(--tp-font); }
  .tp-pw-g .tp-gr { min-height: 72px; }
  .tp-pw-g .tp-gr + .tp-gr { border-top: 1px solid var(--tp-hair); border-radius: 0; }
  .tp-pw-g .tp-gr.is-me { border-top-color: transparent; border-radius: 18px; }
  .tp-pw-g .tp-gr.is-me + .tp-gr { border-top-color: transparent; }
  .tp-pw-p { margin: 28px 0 12px; }
  .tp-pbs { display: grid; grid-template-columns: repeat(var(--tp-pb-n), minmax(0, 1fr)); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
  .tp-pb { display: flex; flex-direction: column; min-width: 0; min-height: 168px; padding: 16px 18px; border-radius: 22px; background: var(--tp-card); }
  .tp-pb.is-next { box-shadow: 0 0 0 2.5px var(--optic); }
  .tp-pb-c { display: flex; align-items: center; gap: 5px; font: 600 1rem/1 var(--font-score); color: var(--tp-muted); }
  .tp-pb.is-next .tp-pb-c { color: var(--tp-amber-ink); }
  .tp-pb.is-done .tp-pb-c { color: var(--tp-up); }
  .tp-pb-t { display: block; margin-top: 12px; font: 600 min(2.375rem, 57px)/1.0526 var(--font-score); color: var(--tp-brand-ink); }
  .tp-pb-t.is-lost { color: var(--tp-muted); }
  .tp-pb-t.is-late { color: var(--tp-amber-ink); }
  .tp-pb-un { display: block; margin-top: 14px; font: 500 min(1.125rem, 56px)/1.3333 var(--tp-font); color: var(--tp-muted); }
  .tp-pb-w { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 400 0.9375rem/1 var(--tp-font); color: var(--tp-muted); }
  .tp-pb-vs { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: auto; padding-top: 14px; font: 400 0.9375rem/1.2 var(--tp-font); color: var(--tp-ink2); }
  .tp-pb-vs > span:last-child { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .tp-pb.is-round { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tp-dash); }
  .tp-pb.is-round b { margin-top: 24px; font: 700 min(1.375rem, 56px)/1.2727 var(--tp-font); color: var(--tp-ink2); }
  .tp-pb.is-round .tp-num { margin-top: 8px; font: 400 0.9375rem/1 var(--tp-font); color: var(--tp-muted); }
  .tp-pb-tr { display: grid; margin-top: auto; color: var(--tp-muted); }
  #tour .tp-pb-c, #tour .tp-pb-t { font-variant-numeric: normal; }

  /* Sheets open as a dialog in the middle of the screen. */
  .tp-sheet { align-items: center; }
  .tp-panel { max-width: 520px; max-height: 84vh; padding-bottom: 22px; border-radius: 28px; }

  /* Thông tin: two columns of cards; the rules and the event rules across both. */
  .tp-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
  .tp-info-grid > .tp-wide, .tp-info-grid > .tp-quiet { grid-column: 1 / -1; }
}

/* ---------- The playing day (plan E task 12): the live phase card (262), "Trận của tôi" (263), "Thông báo" (264) ----------
   Phone screens; on a computer the phone column stays in the middle (the live card is not drawn there: Hôm nay is). */

.tp-ev-live { position: absolute; right: 14px; bottom: 14px; }
.tp-bell { position: relative; }
.tp-bell.has-dot::after { content: ''; position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 2px var(--tp-card); }
.tp-fl { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.tm-lv { display: contents; }

/* 262 */
.tp-lv { padding: 14px; }
.tp-lv-track { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.tp-lv-track::-webkit-scrollbar { display: none; }
.tp-lv-sl { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.tp-lv-t { display: flex; align-items: center; gap: 8px; min-height: 22px; margin: 0; font: 600 1.0625rem/1 var(--font-score); letter-spacing: 0.03em; }
.tp-lv-k { font: 600 0.875rem/1 var(--tp-font); letter-spacing: 0; color: rgba(255, 255, 255, 0.8); white-space: nowrap; }
.tp-lv-eye { display: flex; align-items: center; gap: 5px; margin-left: auto; color: rgba(255, 255, 255, 0.8); }
.tp-lv-eye[hidden] { display: none; }
.tp-lv-sb { display: flex; align-items: center; justify-content: center; gap: 16px; height: 46px; margin-top: 8px; }
.tp-lv-sb .tp-pr .tp-av, .tp-lv-rw .tp-pr .tp-av { box-shadow: 0 0 0 2px #0a235c; }
.tp-lv-rw .tp-pr.is-me .tp-av:first-child { box-shadow: 0 0 0 2px #102960, 0 0 0 4px var(--optic); }
.tp-lv-sc { font: 600 min(2.625rem, 63px)/1 var(--font-score); color: var(--optic); letter-spacing: 0.02em; white-space: nowrap; }
.tp-lv-lb { min-width: 0; font: 500 0.8125rem/1.2 var(--tp-font); color: rgba(255, 255, 255, 0.75); white-space: normal; overflow-wrap: anywhere; }
.tp-phase .tp-lv-go { min-height: 44px; margin-top: 12px; font-size: 1rem; }
.tp-lv-dots { position: relative; display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.tp-lv-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, 0.35); cursor: pointer; }
.tp-lv-dot.is-on { width: 18px; background: #fff; }
.tp-lv-rw { position: relative; display: flex; align-items: center; gap: 9px; height: 58px; margin-top: 8px; padding: 0 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); cursor: pointer; }
.tp-lv-rw .tp-lv-k { font: 600 0.875rem/1.2143 var(--tp-font); color: rgba(255, 255, 255, 0.75); }
.tp-lv-tm { font: 600 min(1.4375rem, 56px)/1 var(--font-score); color: #f5c35b; }
.tp-lv-ct { display: inline-grid; flex: none; place-items: center; min-height: 24px; padding: 0 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.16); color: #fff; font: 600 0.9375rem/1 var(--font-score); letter-spacing: 0.02em; }
.tp-lv-ps { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tp-lv-vs { font: 400 0.75rem/1 var(--tp-font); color: rgba(255, 255, 255, 0.5); }
.tp-lv-ok { display: grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--up); color: #fff; }
.tp-lv-fs { font: 600 min(1.4375rem, 56px)/1 var(--font-score); color: #fff; white-space: nowrap; }
.tp-lv-pl { display: grid; flex: none; place-items: center; width: 34px; height: 34px; margin-left: auto; border-radius: 50%; background: var(--optic); color: var(--navy-deep); }
#tour .tp-lv-t .tp-num, #tour .tp-lv-sc, #tour .tp-lv-tm, #tour .tp-lv-ct, #tour .tp-lv-fs { font-variant-numeric: normal; }

/* 263 */
.tp-my-find { margin-top: 14px; }
@media (min-width: 1100px) {
  .tp-my { max-width: 560px; margin: 0 auto; } /* a phone screen in the middle of a computer's column */
}
.tp-my-nx { position: relative; overflow: hidden; height: 300px; margin-top: 14px; padding: 16px 18px; border-radius: 26px; background: var(--tp-navy-card); color: #fff; }
.tp-my-k { position: relative; display: flex; align-items: center; gap: 8px; height: 28px; margin: 0; }
.tp-my-k .tp-ic { color: var(--optic); }
.tp-my-k b { font: 600 0.9375rem/1 var(--tp-font); color: rgba(255, 255, 255, 0.75); }
.tp-my-late { display: inline-flex; align-items: center; min-height: 28px; margin-left: auto; padding: 0 12px; border-radius: 14px; background: #fff4df; color: #8a4f00; font: 500 0.9375rem/1 var(--tp-font); white-space: pre; }
.tp-my-late .tp-num { font: 600 min(1.125rem, 56px)/1 var(--font-score); }
.tp-my-big { position: relative; display: flex; align-items: flex-end; justify-content: space-between; margin-top: 10px; }
.tp-my-tm { font: 600 min(5.75rem, 138px)/0.8696 var(--font-score); color: var(--optic); letter-spacing: -0.01em; }
.tp-my-tm small { display: block; margin-bottom: 8px; font: 600 min(1.125rem, 56px)/1 var(--font-score); color: rgba(255, 255, 255, 0.65); letter-spacing: 0.03em; }
.tp-my-ct { text-align: right; }
.tp-my-ct small { display: block; margin-bottom: 6px; font: 500 0.875rem/1 var(--tp-font); color: rgba(255, 255, 255, 0.65); }
.tp-my-ct b { display: block; font: 600 min(3.125rem, 75px)/0.88 var(--font-score); letter-spacing: 0.02em; }
.tp-my-un { margin-top: 30px; font: 600 min(1.625rem, 56px)/1.2 var(--tp-font); color: rgba(255, 255, 255, 0.8); }
.tp-my-op { position: absolute; right: 18px; bottom: 16px; left: 18px; display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.tp-my-op .tp-pr .tp-av { box-shadow: 0 0 0 2.5px #0a235c; }
.tp-my-op .tp-pr .tp-av + .tp-av { margin-left: -10px; }
.tp-my-nm { display: flex; flex: 1; flex-direction: column; min-width: 0; font: 600 1.0625rem/1.2941 var(--tp-font); }
.tp-my-nm b { font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
.tp-my-tg { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 6px; }
.tp-my-ev, .tp-my-cd { display: inline-grid; place-items: center; min-height: 26px; padding: 0 8px; border-radius: 8px; font: 600 0.9375rem/1 var(--font-score); letter-spacing: 0.02em; }
.tp-my-ev { background: var(--optic); color: var(--navy-deep); }
.tp-my-cd { background: rgba(255, 255, 255, 0.14); color: #fff; }
.tp-my-ls { margin-top: 16px; padding: 6px 14px; border-radius: 24px; background: var(--tp-card); }
.tp-my-rr { display: flex; align-items: center; gap: 10px; min-height: 84px; cursor: pointer; }
.tp-my-rr + .tp-my-rr { border-top: 1px solid var(--tp-hair); }
.tp-my-w { display: flex; flex: none; flex-direction: column; align-items: flex-start; gap: 6px; width: 62px; }
.tp-my-w b { font: 600 min(1.375rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.tp-my-cc { display: inline-grid; place-items: center; min-height: 24px; padding: 0 8px; border-radius: 8px; background: var(--tp-soft); color: var(--tp-brand-ink); font: 600 0.9375rem/1 var(--font-score); letter-spacing: 0.02em; }
.tp-my-rn { flex: 1; min-width: 0; font: 500 0.875rem/1.2857 var(--tp-font); color: var(--tp-ink2); }
.tp-my-rs { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tp-my-rs b { font: 600 min(1.875rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); white-space: nowrap; }
.tp-my-sc { display: flex; align-items: baseline; gap: 6px; }
.tp-my-tam { font: 500 0.8125rem/1 var(--tp-font); color: var(--tp-amber-ink); }
.tp-my-pill { display: inline-grid; place-items: center; min-height: 26px; padding: 0 12px; border-radius: 13px; font: 500 0.9375rem/1 var(--tp-font); white-space: nowrap; }
.tp-my-pill.is-won { background: var(--up-bg); color: var(--up); }
.tp-my-pill.is-lost { background: var(--down-bg); color: var(--down); }
.tp-my-rr.is-f { min-height: 56px; cursor: default; }
.tp-my-rr.is-f .tp-my-w b { color: #c3cad6; }
.tp-my-rr.is-f .tp-my-rn { font-size: 1rem; font-weight: 600; color: var(--tp-muted); }
.tp-my-tr { display: grid; color: #b9c2ce; }
#tour .tp-my-tm, #tour .tp-my-ct b, #tour .tp-my-w b, #tour .tp-my-rs b, #tour .tp-my-late .tp-num { font-variant-numeric: normal; }

/* 264 */
.tp-ib { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.tp-ib-nt { position: relative; display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 14px 14px 12px; border-radius: 22px; background: var(--tp-card); cursor: pointer; }
.tp-ib-nt[data-inbox-item="drawn"] { cursor: default; }
.tp-ib-nt.is-new { box-shadow: 0 0 0 2.5px var(--optic); }
.tp-ib-nt.is-old { opacity: 0.55; }
.tp-ib-ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.tp-ib-ico.is-up { background: var(--up-bg); color: var(--up); }
.tp-ib-ico.is-navy { background: var(--navy); color: var(--optic); }
.tp-ib-ico.is-amber { background: #fff4df; color: #8a4f00; }
.tp-ib-ico.is-soft { background: var(--tp-soft); color: var(--tp-brand-ink); }
.tp-ib-bd { flex: 1; min-width: 0; }
.tp-ib-h { display: flex; align-items: center; gap: 8px; min-height: 22px; font: 600 1rem/1 var(--tp-font); color: var(--tp-ink); }
.tp-ib-at { margin-left: auto; font: 500 0.9375rem/1 var(--font-score); color: var(--tp-muted); }
.tp-ib-r { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tp-ib-r .tp-my-pill { margin-left: auto; }
.tp-ib-big { font: 600 min(2.125rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.tp-ib-old { font: 600 min(1.375rem, 56px)/1 var(--font-score); color: #a9b3c4; }
.tp-ib-r > .tp-ic { color: var(--tp-muted); }
.tp-ib-r small { font: 600 0.9375rem/1 var(--font-score); color: var(--tp-muted); }
.tp-ib-new { font: 600 min(1.875rem, 56px)/1 var(--font-score); color: var(--tp-amber-ink); }
.tp-ib-court { display: inline-grid; place-items: center; min-height: 38px; padding: 0 12px; border-radius: 10px; background: var(--tp-soft); color: var(--tp-brand-ink); font: 600 min(1.625rem, 56px)/1 var(--font-score); letter-spacing: 0.02em; }
.tp-ib-cc { display: inline-grid; place-items: center; min-height: 30px; padding: 0 10px; border-radius: 8px; background: var(--tp-soft); color: var(--tp-brand-ink); font: 600 min(1.1875rem, 56px)/1 var(--font-score); letter-spacing: 0.02em; }
.tp-ib-ev, .tp-ib-gb { display: inline-grid; place-items: center; min-height: 30px; padding: 0 9px; border-radius: 8px; font: 600 1.0625rem/1 var(--font-score); }
.tp-ib-ev { background: var(--tp-optic-soft); color: var(--tp-brand-ink); }
.tp-ib-gb { background: var(--tp-soft); color: var(--tp-brand-ink); }
.tp-ib-r .tp-lv-vs { color: #a9b3c4; font-size: 0.8125rem; }
.tp-ib-ft { display: flex; flex: 0 0 100%; align-items: center; gap: 8px; margin-top: -2px; padding: 12px 0 0 2px; border-top: 1px solid var(--tp-hair); }
.tp-ib-cd { display: flex; align-items: center; gap: 7px; font: 500 0.9375rem/1 var(--tp-font); color: var(--tp-muted); white-space: pre; }
.tp-ib-cd .tp-num { font: 600 min(1.25rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.tp-ib-ring { flex: none; fill: none; stroke: var(--tp-bar); stroke-width: 4; }
.tp-ib-ring .is-gone { stroke: var(--up); stroke-linecap: round; }
.tp-ib-dis { display: flex; align-items: center; gap: 6px; min-height: 38px; margin-left: auto; padding: 0 14px; border: 0; border-radius: 19px; background: var(--down-bg); color: var(--down); font: 600 0.9375rem/1 var(--tp-font); white-space: nowrap; cursor: pointer; }
#tour .tp-ib-at, #tour .tp-ib-big, #tour .tp-ib-old, #tour .tp-ib-new, #tour .tp-ib-court, #tour .tp-ib-cc, #tour .tp-ib-cd .tp-num { font-variant-numeric: normal; }

/* ---------- /t/: the tournaments (tournament-list.js; 17/11 test L1, L3) ---------- */

.tl { padding-bottom: 8px; }
.tl-new { margin-top: 14px; }
.tl-grid { display: grid; gap: 12px; margin-top: 14px; }
/* One big navy card per tournament not finished: crest and phase chip, the name, the dates, the venue. */
.tl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  min-height: 188px;
  padding: 16px 18px 18px;
  border-radius: 24px;
  background: var(--tp-navy-card);
  color: #fff;
  text-decoration: none;
}
.tl-card:active { transform: scale(0.99); }
.tl-card:focus-visible, .tl-row:focus-visible { outline: 3px solid var(--focus, #1857d6); outline-offset: 2px; }
.tl-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.tl-crest { display: grid; flex: none; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.tl-crest img { display: block; border-radius: 50%; }
.tl-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tl-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(255, 255, 255, 0.14); font: 600 0.875rem/1.2 var(--tp-font); color: #fff; white-space: nowrap; }
.tl-chip.is-registration { background: var(--optic, #c8f23e); color: var(--navy-deep, #071634); }
.tl-chip.is-playing { background: #fff; color: var(--navy-deep, #071634); }
.tl-chip.is-hidden { background: rgba(255, 176, 32, 0.22); color: #ffd27a; }
.tl-name { position: relative; font: 600 min(1.4375rem, 56px)/1.2 var(--tp-font); letter-spacing: -0.015em; white-space: normal; overflow-wrap: anywhere; }
#tour .tl-dates { position: relative; font: 600 min(1.875rem, 56px)/1.05 var(--font-score); letter-spacing: 0.01em; color: var(--optic, #c8f23e); font-variant-numeric: normal; }
.tl-venue { position: relative; display: flex; align-items: flex-start; gap: 6px; font: 500 0.9375rem/1.3 var(--tp-font); color: rgba(255, 255, 255, 0.78); }
.tl-venue .tp-ic { margin-top: 1px; }
.tl-venue > span { min-width: 0; overflow-wrap: anywhere; }
/* Drafts and finished tournaments: compact rows in one white card. */
.tl-sec { margin-top: 26px; }
.tl-h { margin: 0 4px 8px; font: 600 0.9375rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tl-rows { display: flex; flex-direction: column; padding: 4px 14px; border-radius: 24px; background: var(--tp-card); }
.tl-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; border-bottom: 1px solid var(--tp-hair); color: var(--tp-ink); text-decoration: none; }
.tl-row:last-child { border-bottom: 0; }
.tl-row .tl-crest { box-shadow: 0 0 0 1px var(--tp-hair); }
.tl-rm { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.tl-rm b { font: 600 1.0625rem/1.25 var(--tp-font); white-space: normal; overflow-wrap: anywhere; }
#tour .tl-rm .tp-num { font: 500 1rem/1.1 var(--font-score); color: var(--tp-muted); font-variant-numeric: normal; }
.tl-row > .tp-ic { color: var(--tp-dim); }
.is-drafts .tl-rm b::after { content: none; }
/* A cancelled tournament among the finished ones: its mark, the row a little quieter. */
.tl-mark { align-self: flex-start; padding: 3px 10px; border-radius: 12px; background: var(--tp-hair); font: 600 0.8125rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tl-row.is-cancelled b { color: var(--tp-muted); }
.tour-page .tl + .site-footer { margin-top: 0; }
/* The not-found page: one message, one way back to the tournaments. */
.tp-missing { display: flex; flex-direction: column; align-items: center; margin: 56px 0 0; color: var(--tp-dim); }
.tp-missing .tp-empty { margin: 14px 16px 24px; font-size: min(1.125rem, 56px); font-weight: 500; color: var(--tp-ink); }
.tp-missing .tp-btn { max-width: 320px; }

@media (min-width: 1100px) {
  .tl-grid { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
  .tl-card { min-height: 220px; padding: 22px 26px 24px; }
  .tl-name { font-size: min(1.75rem, 56px); }
  #tour .tl-dates { font-size: min(2.25rem, 56px); }
  .tl-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; padding: 6px 22px; }
  .tl-row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .tp-hd .tl-new { width: auto; min-height: 48px; margin: 0; padding: 0 22px; border-radius: 24px; font-size: 1rem; }
}

/* ---------- Entries for any tournament (W4): the sign-up flow, "＋ Thêm", "Ghép cặp", Đội's ✓/✕ ---------- */

/* The sign-up flow (/t/<slug>/register): /t/new's look (top bars, one question, cards, the main button at the bottom). */
.su-tour { margin: 10px 0 0; font: 500 0.9375rem/1.3333 var(--tp-font); color: var(--tp-muted); }
.su .tp-q { margin-top: 2px; }
.su-search { cursor: text; }
.su-search input, .su-name input, .su-phone input, .su-born input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tp-ink);
  font: 500 min(1.1875rem, 56px)/1.2632 var(--tp-font);
}
.su-search input::placeholder, .su-name input::placeholder, .su-phone input::placeholder { color: var(--tp-dim); }
.su-search input::-webkit-search-cancel-button { display: none; }
.su-search:focus-within, .su-name:focus-within, .su-phone:focus-within, .su-born:focus-within { box-shadow: 0 0 0 2px var(--optic); }
.su-hits { display: flex; flex-direction: column; margin-top: 6px; }
.su-hits:empty { display: none; }
.su-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 6px 10px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--tp-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.su-hit:active { background: var(--tp-soft); }
.su-hit-n { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.su-hit-n b { font: 600 1.0625rem/1.2353 var(--tp-font); white-space: normal; overflow-wrap: anywhere; }
.su-hit-n b mark { background: var(--tp-optic-soft); color: inherit; border-radius: 3px; }
.su-hit-n span { font: 500 0.9375rem/1 var(--font-score); color: var(--tp-muted); }
.su-empty { margin: 14px 10px; font: 400 1rem/1.375 var(--tp-font); color: var(--tp-muted); }
.su-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--tp-brand-ink);
  font: 600 1rem/1 var(--tp-font);
  cursor: pointer;
}
.su-more { margin-top: 8px; }
.su-guest { display: flex; flex-direction: column; gap: 10px; }
.su-gs { display: flex; gap: 10px; }
.su-g {
  flex: 1;
  min-height: 52px;
  border: 0;
  border-radius: 26px;
  background: var(--tp-card);
  box-shadow: inset 0 0 0 1.5px var(--tp-line);
  color: var(--tp-ink);
  font: 600 1.0625rem/1 var(--tp-font);
  cursor: pointer;
}
.tp-sheet .su-g { background: var(--tp-soft); box-shadow: none; }
.su-g[aria-pressed="true"] { background: var(--navy); box-shadow: none; color: #fff; }
.su-guest-ok { background: var(--tp-soft); color: var(--tp-ink); }
.su-who { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 12px 14px 14px; }
.su-who b { flex: 1; min-width: 0; font: 600 min(1.25rem, 56px)/1.25 var(--tp-font); white-space: normal; overflow-wrap: anywhere; }
.su-tag { flex: none; padding: 5px 10px; border-radius: 12px; background: var(--tp-soft); color: var(--tp-muted); font: 600 0.8125rem/1 var(--tp-font); }

/* Step 2: one row per event (code, name, a tick or why not), the partner places under a ticked one. */
.su-evs { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.su-evb { border-radius: 24px; background: var(--tp-card); }
.su-evb.is-on { box-shadow: 0 0 0 2px var(--optic); }
.su-ev {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 10px 14px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--tp-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.su-ev .tp-evt-ck { position: static; flex: none; }
.su-ev.is-on .tp-evt-ck { background: var(--optic); box-shadow: none; color: var(--navy-deep); }
.su-ev-c { flex: none; min-width: 64px; font: 600 min(1.875rem, 56px)/1 var(--font-score); color: var(--tp-brand-ink); }
.su-ev-n { flex: 1; min-width: 0; font: 500 1.0625rem/1.2353 var(--tp-font); white-space: normal; overflow-wrap: anywhere; }
.su-ev[aria-disabled="true"] { cursor: default; }
.su-ev[aria-disabled="true"] .su-ev-c, .su-ev[aria-disabled="true"] .su-ev-n { color: var(--tp-dim); }
.su-why { flex: none; padding: 6px 10px; border-radius: 13px; background: var(--tp-soft); color: var(--tp-muted); font: 600 0.8125rem/1 var(--tp-font); white-space: nowrap; }
.su-mate {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 20px);
  min-height: 56px;
  margin: 0 10px 10px;
  padding: 6px 10px;
  border: 0;
  border-radius: 18px;
  background: var(--tp-soft);
  color: var(--tp-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.su-mate-ic { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tp-card); color: var(--tp-brand-ink); }
.su-mate-n { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.su-mate-n b { font: 600 1rem/1.25 var(--tp-font); white-space: normal; overflow-wrap: anywhere; }
.su-mate-n span { font: 500 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
.su-mate-n .tp-num { font: 500 0.9375rem/1 var(--font-score); }
.su-born { margin: 0 10px 10px; background: var(--tp-soft); }
.su-born b { flex: none; }
.su-born input { text-align: right; font: 600 min(1.375rem, 56px)/1 var(--font-score); }
.su-warn { margin: 0 14px 12px; font: 500 0.9375rem/1.3333 var(--tp-font); color: #b42318; }
@media (prefers-color-scheme: dark) { html.in-app .su-warn { color: #ff8a7a; } }

/* Step 3 and the end: the phone and its consent line, the fee, the VietQR. */
.su-consent { margin: 8px 6px 0; font: 400 0.875rem/1.3571 var(--tp-font); color: var(--tp-muted); }
.su-sum { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding: 16px 18px; }
.su-sum-k { font: 500 0.9375rem/1 var(--tp-font); color: var(--tp-muted); }
.su-sum-n { font: 600 min(2.5rem, 60px)/1 var(--font-score); color: var(--tp-brand-ink); }
.su-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.su-ok { display: grid; place-items: center; width: 76px; height: 76px; margin: 22px 0 0; border-radius: 50%; background: var(--optic); color: var(--navy-deep); }
.su .su-done-q { margin-top: 14px; }
.su-review { margin: 6px 0 0; font: 500 min(1.125rem, 56px)/1.3333 var(--tp-font); color: var(--tp-ink2); }
.su-pay { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; padding: 16px 18px 6px; }
.su-qr { width: min(220px, 64vw); margin: 10px auto 4px; padding: 8px; border-radius: 16px; background: #fff; }
.su-qr svg { display: block; width: 100%; height: auto; }
.su-qr:empty { height: min(220px, 64vw); background: var(--tp-soft); }
.su-hand summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  list-style: none;
  font: 600 1rem/1 var(--tp-font);
  color: var(--tp-brand-ink);
  cursor: pointer;
}
.su-hand summary::-webkit-details-marker { display: none; }
.su-hand[open] summary .tp-ic { transform: rotate(90deg); }
.su-hand dl { margin: 0 0 10px; }
.su-pr { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--tp-hair); }
.su-pr dt { font: 500 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
.su-pr dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font: 500 1.0625rem/1.2941 var(--tp-font); white-space: normal; overflow-wrap: anywhere; }
.su-save { margin: 2px 0 6px; background: var(--tp-soft); color: var(--tp-ink); }
.su-save:disabled { opacity: 0.5; }
.su-copy {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 22px;
  background: var(--tp-soft);
  color: var(--tp-ink);
  font: 600 0.9375rem/1 var(--tp-font);
  cursor: pointer;
}

/* The sheets: the partner of a sign-up, "＋ Thêm", "Ghép cặp". */
.su-sheet { display: flex; flex-direction: column; gap: 10px; }
.su-sheet .tp-fc { margin-top: 0; background: var(--tp-soft); }
.su-sheet .tp-ico { background: var(--tp-card); }
.su-k { margin: 4px 4px 0; font: 600 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
.su-seek { margin-top: 4px; background: var(--tp-soft); color: var(--tp-ink); }
.su-slots { display: flex; flex-direction: column; gap: 8px; }
.su-slot { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 6px 6px 10px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--tp-line); }
.su-slot.is-set { box-shadow: 0 0 0 2px var(--optic); }
.su-slot:not(.is-set) .su-mate-n b { color: var(--tp-muted); font-weight: 500; }
.su-x { background: var(--tp-soft); border: 0; }

/* Đội: ✓ and ✕ beside a pending row (organisers' phones), the waiting list's places, the tools above the list. */
.tp-team-q { display: flex; align-items: center; gap: 6px; }
.tp-team-q .tp-team { flex: 1; min-width: 0; padding-right: 4px; }
/* Beside ✓ and ✕ the names wrap rather than lose their ends. */
.tp-team-q .tp-names b { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.tp-team-qb { display: flex; flex: none; gap: 6px; }
.tp-qb { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--tp-soft); color: var(--tp-ink2); cursor: pointer; }
.tp-qb.is-ok { background: var(--optic); color: var(--navy-deep); }
.tp-qb:disabled { opacity: 0.5; cursor: default; }
.tp-qn { display: grid; flex: none; place-items: center; min-width: 28px; min-height: 28px; padding: 0 4px; border-radius: 9px; background: var(--tp-optic-soft); color: var(--tp-ink); font: 600 1.0625rem/1 var(--font-score); }
button.tp-chip.is-tool { min-height: 44px; padding: 0 16px; border-radius: 22px; }
.tp-chip.is-add { background: var(--navy); color: #fff; font-weight: 600; }
.tp-chip.is-approve { background: var(--optic); color: var(--navy-deep); font-weight: 600; }
@media (prefers-color-scheme: dark) { html.in-app .tp-chip.is-add { background: #33405c; } }

/* The dock's "Đăng ký giải" on another tournament than VCP Finals: no VCP countdown dot. */
.dock-register.is-other .dock-dot { display: none; }

/* ---------- W6: "Ban tổ chức", the referees' place, the BTC invite link ---------- */
.tp-badge { position: absolute; top: -4px; right: -4px; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; min-height: 20px;
  padding: 0 6px; border-radius: 10px; background: #d93025; font: 600 0.75rem/1 var(--tp-font); color: #fff; box-sizing: border-box; }
.tp-btc-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tp-btc-hd .tp-h { margin: 0; }
.tp-btc-invite { min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; gap: 6px; cursor: pointer; }
.tp-btc-list { gap: 12px; }
.tp-btc-row { min-height: 44px; }
.tp-btc-row .tp-names small { font: 500 0.8125rem/1.3 var(--tp-font); color: var(--tp-muted); }
.tp-btc-row .tp-names b { white-space: normal; overflow-wrap: anywhere; }
.tp-btc-me { color: var(--tp-brand-ink) !important; }
/* A BTC phone's player (W9 review M6): a quiet line under its name; a 44 px button for Trưởng / Phó ban. */
.tp-btc-pl { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font: 500 0.8125rem/1.3 var(--tp-font); color: var(--tp-muted); overflow-wrap: anywhere; }
button.tp-btc-pl { min-height: 44px; margin: -8px 0 -10px; padding: 0; border: 0; background: none; color: var(--tp-brand-ink); text-align: left; cursor: pointer; }
.tp-btc-role { flex: none; padding: 5px 10px; border-radius: 12px; background: var(--tp-soft); font: 600 0.8125rem/1.2 var(--tp-font); color: var(--tp-ink2); }
.tp-btc-role.is-head { background: var(--tp-pill); color: #fff; }
.tp-btc-role.is-deputy { background: var(--tp-optic-soft); color: var(--tp-ink); }
.tp-btc-row .tp-small { flex: none; min-height: 44px; padding: 0 14px; font-size: 0.9375rem; }
.tp-btc-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tp-soft); color: var(--tp-brand-ink); }
.tp-btc-ic.is-big { width: 56px; height: 56px; }
.tp-btc-picks { display: flex; flex-direction: column; gap: 10px; }
.tp-btc-pick { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; min-height: 64px; padding: 12px 16px; border: 0; border-radius: 18px;
  background: var(--tp-soft); color: var(--tp-ink); text-align: left; cursor: pointer; }
.tp-btc-pick b { font: 600 min(1.125rem, 56px)/1.25 var(--tp-font); }
.tp-btc-pick small { grid-column: 1; font: 400 0.9375rem/1.3 var(--tp-font); color: var(--tp-muted); }
.tp-btc-pick .tp-ic { grid-row: 1 / span 2; grid-column: 2; color: var(--tp-dim); }
.tp-btc-join { margin-top: 14px; }
.tp-btc-join-hd { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.tp-btc-join-hd b { font: 600 min(1.25rem, 56px)/1.3 var(--tp-font); }
/* "Bạn là VĐV nào?" on a BTC invite (W6 review): the board's search, skippable. */
.tp-btc-player { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.tp-btc-player-k { font: 600 1rem/1.3 var(--tp-font); color: var(--tp-ink); }
.tp-btc-player .tp-line { margin: 0; }
.tp-go-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; margin-top: 14px; padding: 8px 14px 8px 8px; border-radius: 18px;
  background: var(--tp-card); color: var(--tp-ink); text-decoration: none; }
.tp-btc .tp-go-row { margin: 14px -8px -8px; background: var(--tp-soft); }
.tp-go-row b { flex: 1; font: 600 1.0625rem/1.2 var(--tp-font); }
.tp-go-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tp-soft); color: var(--tp-brand-ink); }
.tp-btc .tp-go-ic { background: var(--tp-card); }
.tp-go-n { font: 500 0.9375rem/1 var(--tp-font); color: var(--tp-muted); }
.tp-go-row .tp-badge { position: static; }
.tp-go-row > .tp-ic { color: var(--tp-dim); }
.tp-refs-go { margin-top: 14px; }
.tp-refs-go .tp-btn { width: 100%; }
.tp-refs-card .tp-sub-h { margin: 0 0 12px; }
.tp-refs-row { align-items: flex-start !important; }
.tp-refs-row > .tp-av { margin-top: 2px; }
.tp-refs-m { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.tp-refs-m > b { font: 500 1rem/1.25 var(--tp-font); white-space: normal; overflow-wrap: anywhere; }
.tp-refs-shifts { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-refs-shift { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 10px; background: var(--tp-soft); font: 500 0.8125rem/1.3 var(--tp-font); color: var(--tp-ink2); }
.tp-refs-shift.is-ok { background: var(--tp-optic-soft); color: var(--tp-ink); }
.tp-refs-none { font: 400 0.875rem/1.3 var(--tp-font); color: var(--tp-muted); }
.tp-refs-clash { display: flex; align-items: center; gap: 6px; margin: 0; font: 600 0.8125rem/1.3 var(--tp-font); color: #8a5a00; }
.tp-refs .tp-small { min-height: 44px; }
.tp-refs .tp-names b { white-space: normal; overflow-wrap: anywhere; }
.tp-ref-court { min-height: 44px; padding: 0 16px; border-radius: 22px; }
.tp-dk-side .tp-go-row { margin-top: 16px; }

/* ---------- Large text (W7, 17/11 test L13; the app's text-size contract A3) ----------
   Words are in rem and follow the reader's text size (the app sets the root from the iPhone's text size; a browser's
   text zoom narrows the page). Below 20 root letters across (html.tp-tight, tournament.js fitText) pieces that sit side
   by side stack, so names wrap on full lines and nothing runs off the screen; below 13 (html.tp-huge) the big numbers and
   photos give room too. Boxes of a fixed size keep px. */
html.tp-tight .tp-hd { flex-wrap: wrap; row-gap: 6px; }
html.tp-tight .tp-hd > .tp-ht { order: 3; flex: 1 0 100%; }
html.tp-tight .tp-hd > :not(.tp-ht):not(:first-child) { margin-left: auto; }
html.tp-tight .tp-hd > :not(.tp-ht):not(:first-child) ~ :not(.tp-ht) { margin-left: 0; }
html.tp-tight .tp-seg a { flex: 1 1 0; padding: 4px 6px; white-space: normal; overflow-wrap: break-word; text-align: center; line-height: 1.15; }
html.tp-huge .tp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
html.tp-tight .tp-events { grid-template-columns: 1fr; }
html.tp-tight .tp-ev-code { padding-right: 56px; }
/* The live card: what is on court, then the pairs on their own line. */
html.tp-tight .tp-lv-rw { flex-wrap: wrap; height: auto; min-height: 58px; padding: 8px 12px; }
html.tp-tight .tp-lv-ps { flex-wrap: wrap; }
html.tp-tight .tp-lv-sb { flex-wrap: wrap; height: auto; }
/* Bảng: rank, photos and W–L on a line, the names under them. */
html.tp-tight .tp-gr { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 10px; row-gap: 4px; }
html.tp-tight .tp-gr > .tp-names { grid-column: 1 / -1; grid-row: 2; }
html.tp-tight .tp-gm-row.is-named { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 6px; }
html.tp-tight .tp-gm-row.is-named > .tp-gm-two { grid-column: 1 / -1; grid-row: 2; }
html.tp-tight .tp-gm-rs { flex-wrap: wrap; justify-content: flex-end; white-space: normal; }
/* Trận: time and court, then the two sides on full lines. */
html.tp-tight .tm-mt { display: grid; grid-template-columns: 1fr auto; align-items: start; row-gap: 6px; }
html.tp-tight .tm-mt > .tm-w { flex-direction: row; flex-wrap: wrap; align-items: center; width: auto; }
html.tp-tight .tm-mt > .tm-sd { grid-column: 1 / -1; grid-row: 2; }
html.tp-tight .tm-s { white-space: normal; }
html.tp-tight .tm-sc { grid-column: 2; grid-row: 1; }
/* The pair page: the record under the names, path rows stacked. */
html.tp-tight .tp-ph-wl { position: static; margin-top: 8px; }
html.tp-tight .tp-ps-bx { flex-wrap: wrap; padding: 10px 12px; }
html.tp-tight .tp-ps-w { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; align-items: center; width: auto; min-width: 0; }
html.tp-tight .tp-ps-k { white-space: normal; }
html.tp-tight .tp-ps-vs { flex: 1 0 100%; flex-wrap: wrap; }
html.tp-tight .tp-ps-rs { flex-direction: row; align-items: center; margin-left: auto; }
html.tp-tight .tp-mt-w, html.tp-tight .tp-mt-h { flex-wrap: wrap; white-space: normal; }
html.tp-tight .tp-fact { padding-right: 0; }
html.tp-tight .tp-irow.is-event { flex-wrap: wrap; }
html.tp-huge .tp-gr-wl, html.tp-huge .tm-sc { font-size: min(1.5rem, 40px); }
html.tp-huge .tp-ph-wl { font-size: min(4.75rem, 72px); }
html.tp-tight .tp-hd > .tp-ht:empty { display: none; }
/* Chips and tiles of a set size: their words grow less (A3: fixed boxes may cap). */
html.tp-huge .tp-gc-chip, html.tp-huge .tm-chip, html.tp-huge .tm-chip b, html.tp-huge #tour .tm-chip.is-court { font-size: min(1.25rem, 32px); }
html.tp-huge .tp-tile, html.tp-huge .tp-chip, html.tp-huge .tp-ph-tg > span { font-size: min(1rem, 30px); }
html.tp-tight .tp-chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
/* Large text: the medal places one under another, so "Vô địch" never breaks between its words. */
html.tp-tight .tp-md { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
html.tp-tight .tp-md-i { flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; gap: 6px 12px; text-align: left; }
html.tp-tight .tp-md-n { flex: 1 1 100%; }
/* Trận của tôi: the next match's card grows with its words. */
html.tp-tight .tp-my-nx { height: auto; min-height: 300px; }
html.tp-tight .tp-my-big { flex-wrap: wrap; gap: 8px 16px; }
html.tp-tight .tp-my-op { position: relative; inset: auto; margin-top: 16px; flex-wrap: wrap; }
html.tp-tight .tp-my-rr { flex-wrap: wrap; }
html.tp-tight .tp-my-w { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; align-items: center; width: auto; }
/* BTC home: the next action's code over its name; the station matrix keeps its icons (each cell names its station). */
html.tp-tight .tp-next-ev { flex-wrap: wrap; row-gap: 6px; }
html.tp-tight .tp-next-code { max-width: 100%; }
html.tp-tight .tp-next-n { white-space: normal; flex-wrap: wrap; }
html.tp-tight .tp-mx-hd { height: auto; min-height: 36px; }
html.tp-tight .tp-mx-st { font-size: 0; gap: 0; }
html.tp-tight .tp-mx-row { height: auto; min-height: 44px; }
html.tp-tight .tp-mx-ev { flex-wrap: wrap; }
html.tp-tight .tp-mx-ev b { flex: none; font-size: min(1.4375rem, 28px); }
html.tp-tight .tp-mx-n { font-size: min(1.0625rem, 22px); }
html.tp-tight .tp-my-rr { flex-wrap: wrap; row-gap: 6px; padding: 8px 0; }
html.tp-tight .tp-my-rr > .tp-my-rn { flex: 1 1 100%; order: 3; }
html.tp-tight .tp-my-rs { flex-direction: row; flex-wrap: wrap; align-items: center; margin-left: auto; }
html.tp-tight .tp-my-op { flex-wrap: wrap; row-gap: 8px; }
html.tp-tight .tp-my-op > .tp-my-nm { flex: 1 1 100%; order: 3; }
html.tp-tight .tp-my-tg { flex-direction: row; margin-left: auto; }

/* ---------- W9 (Plan F): the end of a tournament — honours (266, 267), "Kết thúc giải" (268), Điểm CLB (269) ---------- */

:root {
  --tp-gold: #e3b02f;
  --tp-silver: #bcc4d2;
  --tp-bronze: #c6814a;
  --tp-ok: #158a4f;
  --tp-ok-soft: #e1f3e8;
  --tp-bad: #c0392b;
  --tp-bad-soft: #fbe3df;
}
@media (prefers-color-scheme: dark) {
  html.in-app {
    --tp-gold: #d9a72a;
    --tp-silver: #6d7891;
    --tp-bronze: #a96a3a;
    --tp-ok: #4cc884;
    --tp-ok-soft: rgba(76, 200, 132, 0.16);
    --tp-bad: #ff8a7a;
    --tp-bad-soft: rgba(255, 138, 122, 0.16);
  }
}

/* 266: the podium on Nhánh. */
.tp-pod { padding: 18px 12px 0; overflow: hidden; }
.tp-pod-row { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 6px; }
.tp-pod-col { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.tp-pod-cup { color: var(--tp-gold); }
.tp-pod-av { display: inline-flex; }
.tp-pod-av .tp-av { box-shadow: 0 0 0 3px var(--tp-card); }
.tp-pod-av .tp-av + .tp-av { margin-left: -12px; }
.tp-pod-col.is-runnerUp .tp-pod-av .tp-av:first-child { box-shadow: 0 0 0 3px var(--tp-silver); }
.tp-pod-col.is-champion .tp-pod-av .tp-av:first-child { box-shadow: 0 0 0 3px var(--tp-gold); }
.tp-pod-thirds { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tp-pod-nm { display: flex; flex-direction: column; font: 600 min(1rem, 40px)/1.25 var(--tp-font); color: var(--tp-ink); overflow-wrap: anywhere; }
.tp-pod-col.is-champion .tp-pod-nm { font-size: min(1.0625rem, 42px); }
.tp-pod-st { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; width: 100%; padding-top: 14px; border-radius: 18px 18px 0 0;
  color: #fff; font: 500 min(1rem, 36px)/1.2 var(--tp-font); }
.tp-pod-st b { font-size: min(2.75rem, 72px); font-weight: 600; line-height: 1; }
.tp-pod-st.is-champion { min-height: 150px; background: var(--tp-gold); }
.tp-pod-st.is-runnerUp { min-height: 112px; background: var(--tp-silver); color: var(--tp-ink); }
.tp-pod-st.is-third { min-height: 86px; background: var(--tp-bronze); }

/* 267: a finished event's card (the trophy, the champions' photos) and the champions card. */
.tp-ev.is-done .tp-ev-count { display: none; }
.tp-ev-cup { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tp-gold); color: #fff; }
.tp-ev-champs { display: flex; margin-top: 8px; }
.tp-ev-champs .tp-av { box-shadow: 0 0 0 2px var(--tp-card); }
.tp-ev-champs .tp-av + .tp-av { margin-left: -8px; }
.tp-ch { padding: 16px 0 8px; }
.tp-ch-k { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 18px; min-height: 28px; font: 500 1.0625rem/1.2 var(--tp-font); color: rgba(255, 255, 255, 0.86); }
.tp-ch-k > .tp-ic { color: var(--tp-gold); }
.tp-ch-end { margin-left: auto; padding: 5px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); color: #fff; font: 500 0.875rem/1.2 var(--tp-font); }
.tp-ch-dots { position: relative; display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.tp-ch-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.tp-ch-dot::after { content: ''; width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.35); transition: width 160ms ease-out; }
.tp-ch-dot[aria-pressed="true"]::after { width: 20px; background: #fff; }
.tp-ch-track { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tp-ch-track::-webkit-scrollbar { display: none; }
.tp-ch-s { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px; flex: 0 0 100%; box-sizing: border-box; padding: 8px 18px 0;
  scroll-snap-align: start; color: #fff; text-decoration: none; }
.tp-ch-av { display: inline-flex; grid-row: 1 / span 2; }
.tp-ch-av .tp-av { box-shadow: 0 0 0 3px var(--tp-gold); }
.tp-ch-av .tp-av + .tp-av { margin-left: -14px; }
.tp-ch-nm { display: flex; flex-direction: column; min-width: 0; font: 600 min(1.375rem, 48px)/1.2 var(--tp-font); overflow-wrap: anywhere; }
.tp-ch-ev { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; margin-top: 12px; font: 500 1rem/1.2 var(--tp-font); color: rgba(255, 255, 255, 0.8); }
.tp-ch-code { padding: 6px 10px; border-radius: 10px; background: var(--tp-optic-soft); color: var(--navy-deep); font-size: min(1.25rem, 40px); font-weight: 600; }
@media (prefers-color-scheme: dark) { html.in-app .tp-ch-code { background: var(--optic); } }
/* "Của tôi" with a place (267: "Á quân"). */
.tp-mt-place { font: 600 min(1.375rem, 48px)/1.1 var(--tp-font); color: var(--optic); }

/* 268: "Kết thúc giải". */
.tp-fin-big { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 16px; }
.tp-fin-rw { position: relative; width: 168px; height: 168px; }
.tp-fin-ring { width: 100%; height: 100%; }
.tp-fin-arc { fill: none; stroke: var(--tp-bar); stroke-width: 12; stroke-linecap: round; }
.tp-fin-arc.is-done { stroke: var(--tp-ok); }
.tp-fin-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tp-fin-c b { font-size: min(3rem, 64px); font-weight: 600; line-height: 1; color: var(--tp-brand-ink); }
.tp-fin-c span { font: 400 0.9375rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-fin-evs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tp-fin-ev { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 12px; background: var(--tp-soft);
  color: var(--tp-muted); font-size: min(1.125rem, 32px); font-weight: 600; text-decoration: none; }
.tp-fin-ev.is-done { background: var(--tp-ok-soft); color: var(--tp-ok); }
.tp-fin-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-fin-f { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 10px; }
.tp-fin-f b { font-size: min(2.5rem, 64px); font-weight: 600; line-height: 1; color: var(--tp-brand-ink); }
.tp-fin-f > .tp-ic { color: var(--tp-ok); }
.tp-fin-f > span { flex: 1 1 100%; font: 400 1rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-fin-f.is-bad b { color: var(--tp-bad); }
.tp-fin-left .tp-go-row { background: var(--tp-soft); }
.tp-fin-lc { flex: none; min-width: 52px; font-size: min(1.25rem, 36px); font-weight: 600; color: var(--tp-brand-ink); }
.tp-fin-rows { padding: 6px 16px; }
.tp-fin-r { display: flex; align-items: center; gap: 12px; min-height: 60px; color: var(--tp-ink); text-decoration: none; }
.tp-fin-r + .tp-fin-r { border-top: 1px solid var(--tp-hair); }
.tp-fin-r > b { flex: 1; min-width: 0; font: 500 min(1.0625rem, 40px)/1.25 var(--tp-font); }
.tp-fin-ri { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tp-soft); color: var(--tp-brand-ink); }
.tp-fin-ok { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tp-ok-soft); color: var(--tp-ok); }
.tp-fin-r > .tp-ic { color: var(--tp-dim); }
.tp-fin-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-bottom: 14px; }
.tp-fin-cta .tp-line { justify-content: center; margin: 0; }
.tp-btn[disabled] { opacity: 0.45; cursor: default; }
.tp-btn-quiet { background: var(--tp-card); color: var(--tp-ink); box-shadow: inset 0 0 0 1.5px var(--tp-line); }
.tp-fin-state { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; min-height: 44px; font: 600 1.0625rem/1.2 var(--tp-font); color: var(--tp-ok); }
/* An on/off switch, 44 px to tap ("Tính điểm CLB"). */
.tp-switch { position: relative; flex: none; width: 60px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.tp-switch span { position: absolute; top: 7px; left: 4px; width: 52px; height: 30px; border-radius: 15px; background: var(--tp-line); transition: background 150ms; }
.tp-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 150ms; }
.tp-switch[aria-checked="true"] span { background: var(--tp-ok); }
.tp-switch[aria-checked="true"] span::after { transform: translateX(22px); }
.tp-switch[disabled] { opacity: 0.5; cursor: default; }

/* 269: Điểm CLB. */
.tp-pts-groups { padding: 4px 16px; }
.tp-pts-g { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.tp-pts-g + .tp-pts-g { border-top: 1px solid var(--tp-hair); }
.tp-pts-b { display: grid; flex: none; place-items: center; width: 74px; height: 56px; border-radius: 16px; font-size: min(1.75rem, 48px); font-weight: 600; color: #fff; }
.tp-pts-b.is-champion { background: var(--tp-gold); }
.tp-pts-b.is-runnerUp { background: var(--tp-silver); color: var(--tp-ink); }
.tp-pts-b.is-third { background: var(--tp-bronze); }
.tp-pts-b.is-out { background: var(--tp-bad-soft); color: var(--tp-bad); }
.tp-pts-gm { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.tp-pts-gm b { font: 500 min(1.125rem, 40px)/1.2 var(--tp-font); }
.tp-pts-n { display: flex; flex: none; align-items: center; gap: 4px; color: var(--tp-muted); }
.tp-pts-n b { font-size: min(1.75rem, 48px); font-weight: 600; color: var(--tp-ink); }
.tp-pts-look { border: 1.5px solid #f6dfae; }
@media (prefers-color-scheme: dark) { html.in-app .tp-pts-look { border-color: rgba(255, 198, 92, 0.3); } }
.tp-pts-lk { display: flex; align-items: center; gap: 8px; margin: 0; }
.tp-pts-tag { padding: 6px 12px; border-radius: 14px; background: #fdecc8; color: #8a5a00; font: 500 1rem/1.2 var(--tp-font); }
@media (prefers-color-scheme: dark) { html.in-app .tp-pts-tag { background: rgba(255, 198, 92, 0.16); color: var(--tp-amber-ink); } }
.tp-pts-cnt { margin-left: auto; padding: 6px 12px; border-radius: 14px; background: var(--tp-soft); color: var(--tp-muted); font: 500 1rem/1.2 var(--tp-font); }
.tp-pts-ll { margin: 0; padding: 0; list-style: none; }
.tp-pts-l { padding: 12px 0; }
.tp-pts-l + .tp-pts-l { border-top: 1px solid var(--tp-hair); }
.tp-pts-lh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tp-pts-lh b { flex: 1 1 auto; min-width: 0; font: 600 1rem/1.25 var(--tp-font); overflow-wrap: anywhere; }
.tp-pts-why { padding: 4px 10px; border-radius: 12px; background: var(--tp-soft); color: var(--tp-ink2); font: 500 0.875rem/1.2 var(--tp-font); }
.tp-pts-lc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.tp-pts-lc > .tp-ic { color: var(--tp-muted); }
.tp-pts-c { display: inline-grid; place-items: center; min-height: 40px; padding: 0 12px; border-radius: 20px; font-size: min(1.125rem, 32px); font-weight: 600; color: #fff; }
.tp-pts-c.is-champion, .tp-pts-c.is-runnerUp { background: var(--tp-gold); }
.tp-pts-c.is-third { background: var(--tp-bronze); }
.tp-pts-c.is-out { background: var(--tp-bad-soft); color: var(--tp-bad); }
.tp-pts-c.is-off { background: var(--tp-soft); color: var(--tp-muted); text-decoration: line-through; }
.tp-pts-manual { font: 500 0.9375rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-pts-undo { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font: 400 1rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-pts-btns { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.tp-pts-btns .tp-btn b { font-size: min(1.375rem, 40px); font-weight: 600; }
.tp-pts-done { display: flex; align-items: center; gap: 14px; }
.tp-pts-done b { font: 600 1.125rem/1.2 var(--tp-font); }
.tp-pts-done .tp-line { margin: 4px 0 0; }
.tp-pts-ok { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tp-ok-soft); color: var(--tp-ok); }
/* Points applied, then a result corrected (W9 review I2): an amber card, a link on the finish page. */
.tp-pts-warn { display: flex; align-items: center; gap: 12px; min-height: 60px; border: 1.5px solid #f6dfae; color: var(--tp-ink); text-decoration: none; }
.tp-pts-warn > .tp-ic:first-child { flex: none; color: #b97800; }
.tp-pts-warn > b, .tp-pts-warn > span { flex: 1; min-width: 0; }
.tp-pts-warn b { display: block; font: 600 min(1.0625rem, 40px)/1.25 var(--tp-font); }
.tp-pts-warn .tp-line { margin: 4px 0 0; }
.tp-pts-warn > .tp-ic:last-child:not(:first-child) { flex: none; color: var(--tp-dim); }
@media (prefers-color-scheme: dark) { html.in-app .tp-pts-warn { border-color: rgba(255, 198, 92, 0.3); } html.in-app .tp-pts-warn > .tp-ic:first-child { color: var(--tp-amber-ink); } }
@media (min-width: 1100px) {
  .tp-fin, .tp-pts { max-width: 560px; margin: 0 auto; }
}
html.tp-tight .tp-pod-row { grid-template-columns: 1fr; }
html.tp-tight .tp-pod-col.is-champion { order: -1; }
html.tp-tight .tp-pod-st { min-height: 0; padding: 10px; border-radius: 16px; flex-direction: row; justify-content: center; }
html.tp-tight .tp-pts-g { flex-wrap: wrap; padding: 8px 0; }
html.tp-tight .tp-pts-btns { grid-template-columns: 1fr; }
html.tp-tight .tp-fin-facts { grid-template-columns: 1fr; }
/* At large text the ring keeps only its number; its words go under it, and a row's "Quản trị" pill takes its own line
   under the label (owner's iPhone at the largest size: the words ran out of the ring and under the pill). */
.tp-fin-cap { display: none; font: 400 1rem/1.25 var(--tp-font); color: var(--tp-muted); text-align: center; }
html.tp-tight .tp-fin-c span { display: none; }
html.tp-tight .tp-fin-cap { display: block; }
html.tp-tight .tp-fin-r:has(> .tp-role) { flex-wrap: wrap; row-gap: 6px; padding: 6px 0; }
html.tp-tight .tp-fin-r:has(> .tp-role) > b { flex-basis: calc(100% - 52px); }
html.tp-tight .tp-fin-r > .tp-role { margin-left: 52px; }

/* "Bốc thăm phân hạng" under a group's table (W9 review M5). */
.tp-gl-lot { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--tp-hair); }
.tp-gl-lot .tp-line { margin: 0; }
.tp-gl-lot .tp-gl-fp { margin: 0; font: 500 0.9375rem/1.3 var(--tp-font); color: var(--tp-muted); }
.tp-gl-lot.is-done { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 500 0.9375rem/1.3 var(--tp-font); color: var(--tp-muted); }
.tp-gr-lot { display: block; font: 500 0.8125rem/1.3 var(--tp-font); color: var(--tp-amber-ink, #8a5a00); }
.tp-gl-lot .tp-dr-copy { min-height: 44px; border-radius: 22px; }

/* A retirement, said where the games are (R-B N4): "Bỏ cuộc" small, in the W.O.'s colour. */
.tp-ret, .tp-bm-ret { display: inline-block; font: 600 0.75rem/1.2 var(--tp-font); color: var(--down, #bf3a30); white-space: nowrap; }
.tp-bm-ret { flex: none; margin-left: auto; }
.tp-bm-ret + .tp-bm-sc { margin-left: 6px; }
.tm-sc + .tp-ret, .tp-gm-rs .tp-ret { margin-left: 6px; }
.tw-sc .tp-ret { display: block; }
.tp-my-rs.is-won .tp-num { color: var(--tp-ink); }

/* The organiser's home after "Kết thúc giải": the champions card, then "Điểm CLB" for site admins. */
.tp-next-done .tp-next-pts { margin-top: 12px; }

/* Điểm CLB: who, under the faces (R-A 2); the podium's thirds with their names (R-D 9). */
.tp-pts-names { display: flex; flex-wrap: wrap; gap: 2px 10px; font: 500 0.875rem/1.3 var(--tp-font); color: var(--tp-ink2); }
.tp-pts-more summary { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; list-style: none; cursor: pointer; color: var(--tp-brand-ink); font: 600 0.9375rem/1 var(--tp-font); }
.tp-pts-more summary::-webkit-details-marker { display: none; }
.tp-pts-more[open] summary .tp-ic { transform: rotate(90deg); }
.tp-pod-third { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tp-pod-third .tp-pod-nm { font-size: min(0.875rem, 36px); }

/* Đội at large text (R-C 2): a name breaks between its words, never inside one; when the row is tight it stacks — the
   names on their own line, the marks and the rating under them. */
.tp-team .tp-names b { overflow-wrap: break-word; }
.tp-team { flex-wrap: wrap; row-gap: 4px; }
.tp-team > .tp-names { flex: 1 1 8em; min-width: min(8em, 100%); }
.tp-team-end { display: flex; flex: none; align-items: center; gap: 12px; margin-left: auto; }
/* A phone at normal text size (owner 23/11 audit U1): the end block (mark, group, rating) wrapped under the names and
   read as the next team's; it stays on the row, the rating above the mark, and the names take the rest. */
@media (max-width: 560px) {
  html:not(.tp-tight) .tp-team { flex-wrap: nowrap; }
  html:not(.tp-tight) .tp-team > .tp-names { flex: 1 1 0; min-width: 0; }
  html:not(.tp-tight) .tp-team-end { flex-direction: column-reverse; align-items: flex-end; gap: 4px; }
}
html.tp-tight .tp-team { row-gap: 6px; padding-top: 8px; padding-bottom: 8px; }
html.tp-tight .tp-team-q { flex-wrap: wrap; }
html.tp-tight .tp-team-q .tp-team { flex: 1 1 100%; }

/* A match expected to start late, said as everywhere else (R-C 6). */
.mp-late { color: var(--tp-amber-ink); font-weight: 600; }
.tp-lv-rw .tp-my-late { margin-left: 4px; }

/* An event card: those not in yet under the count (R-D 7). */
.tp-ev-q { display: block; margin-top: 2px; font: 500 0.8125rem/1.2 var(--tp-font); color: var(--tp-amber-ink); }
.mp-tb { margin: 8px 0 0; font: 600 0.9375rem/1.2 var(--tp-font); color: var(--tp-muted); text-align: center; }

/* ---------- Organiser tools 506–509 (tournament-organiser.js; approved previews 506–509) ---------- */

/* A segmented control of buttons (Thu | Chi, Tiền | Hiện vật): the look of the page's segments. */
.tp-seg button { flex: 1; display: grid; place-items: center; min-width: 0; min-height: 44px; padding: 0 8px; border: 0; border-radius: 22px; background: transparent;
  font: 500 0.9375rem/1.15 var(--tp-font); color: var(--tp-ink2); cursor: pointer; }
.tp-seg button[aria-pressed="true"] { background: var(--tp-seg-on); color: var(--tp-ink); font-weight: 600; box-shadow: var(--tp-seg-shadow); }
/* A sheet's title beside its ×. */
.tp-mo-form > .tp-h:first-child, .tp-panel > .tp-mo-title { margin: -42px 56px 0 0; min-height: 30px; }

/* Thông tin's Thu chi card (506a). */
a.tp-mo-card { display: block; color: inherit; text-decoration: none; }
.tp-mo-hd, .tp-sp-hd { display: flex; align-items: center; gap: 10px; }
.tp-mo-hd .tp-h, .tp-sp-hd .tp-h { flex: 1; min-width: 0; margin: 0; }
.tp-mo-pill { display: inline-flex; flex: none; align-items: center; gap: 5px; min-height: 28px; padding: 0 11px; border-radius: 14px; background: var(--tp-soft);
  color: var(--tp-ink2); font: 500 0.8125rem/1.1 var(--tp-font); white-space: nowrap; }
.tp-mo-pill.is-pub { background: var(--tp-ok-soft); color: var(--tp-ok); }
.tp-mo-pill.is-auto { background: var(--tp-optic-soft); color: var(--tp-ink); }
.tp-mo-chev { display: grid; flex: none; color: var(--tp-dim); }
.tp-mo-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 12px; margin-top: 12px; }
.tp-mo-k { display: block; font: 400 0.9375rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-mo-row .tp-big { display: block; margin-top: 4px; font-size: min(2.125rem, 60px); }
.tp-mo-two { display: flex; flex-direction: column; gap: 6px; padding-bottom: 3px; }
.tp-mo-two > span { display: flex; align-items: baseline; justify-content: flex-end; gap: 7px; font: 400 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
.tp-mo-two b { font: 500 min(1.125rem, 40px)/1 var(--font-score); color: var(--tp-ink); letter-spacing: 0.01em; }

/* The Thu chi page (506b, the public 506e). */
.tp-mo-sum { padding: 18px 18px 16px; }
.tp-mo-sum .tp-mo-k { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgba(255, 255, 255, 0.72); }
.tp-mo-sum .tp-mo-k small { padding: 5px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); font: 500 0.8125rem/1.1 var(--tp-font); color: rgba(255, 255, 255, 0.86); }
.tp-mo-big { position: relative; margin: 4px 0 0; font: 600 min(3.25rem, 72px)/1 var(--font-score); color: var(--optic); letter-spacing: 0.01em; overflow-wrap: anywhere; }
.tp-mo-sum2 { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.tp-mo-sum2 p { margin: 0; font: 400 0.9375rem/1.2 var(--tp-font); color: rgba(255, 255, 255, 0.72); }
.tp-mo-sum2 b { display: block; margin-top: 3px; font: 500 min(1.625rem, 44px)/1 var(--font-score); color: #fff; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.tp-mo-sw { display: flex; align-items: center; gap: 10px; }
.tp-mo-sw > span { flex: 1; min-width: 0; }
.tp-mo-sw b { display: block; font: 500 1.0625rem/1.25 var(--tp-font); color: var(--tp-ink); }
.tp-mo-sw small { display: block; margin-top: 2px; font: 400 0.875rem/1.3 var(--tp-font); color: var(--tp-muted); }
.tp-mo-state { display: flex; align-items: center; gap: 6px; margin: 14px 4px 0; font: 400 0.875rem/1.3 var(--tp-font); color: var(--tp-muted); }
.tp-mo-list { margin-top: 14px; padding: 6px 16px; border-radius: 24px; background: var(--tp-card); }
.tp-mo-sh { margin: 20px 8px 6px; font: 500 0.9375rem/1 var(--tp-font); color: var(--tp-muted); }
.tp-mo-sh + .tp-mo-list { margin-top: 0; }
.tp-mo-g { display: flex; align-items: center; gap: 12px; min-height: 56px; color: inherit; text-decoration: none; }
.tp-mo-g.is-link > .tp-ic:last-child { flex: none; color: var(--tp-dim); }
.tp-mo-list > * + .tp-mo-g, .tp-mo-g + .tp-mo-l, .tp-mo-l + .tp-mo-l { border-top: 1px solid var(--tp-hair); }
.tp-mo-gi { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tp-soft); color: var(--tp-brand-ink); }
.tp-mo-g > b { flex: 1; min-width: 0; font: 500 1.0625rem/1.2 var(--tp-font); color: var(--tp-ink); overflow-wrap: break-word; }
.tp-mo-g > b small { display: block; margin-top: 2px; font: 400 0.8125rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-mo-gn { flex: none; font: 600 min(1.375rem, 40px)/1 var(--font-score); color: var(--tp-brand-ink); letter-spacing: 0.01em; }
.tp-mo-gn.is-zero { color: var(--tp-dim); }
.tp-mo-l { display: flex; align-items: center; gap: 10px; width: calc(100% - 52px); min-height: 48px; margin-left: 52px; padding: 6px 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
div.tp-mo-l { cursor: default; }
.tp-mo-lw { flex: 1; min-width: 0; font: 400 0.9375rem/1.25 var(--tp-font); color: var(--tp-ink2); overflow-wrap: break-word; }
.tp-mo-lw small { display: block; font: 400 0.8125rem/1.25 var(--tp-font); color: var(--tp-muted); }
.tp-mo-la { flex: none; font: 500 min(1.125rem, 32px)/1 var(--font-score); color: var(--tp-ink); }
.tp-mo-rc { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--tp-optic-soft); color: var(--tp-ink); }
.tp-mo-rc.is-none { background: transparent; }
.tp-mo-rc.is-auto { background: var(--tp-ok-soft); color: var(--tp-ok); }
.tp-mo-pg { min-height: 58px; }
.tp-mo-pb { display: block; height: 6px; margin-top: 7px; border-radius: 3px; background: var(--tp-bar); overflow: hidden; }
.tp-mo-pb i { display: block; height: 100%; border-radius: 3px; background: var(--tp-brand-ink); opacity: 0.85; }
.tp-mo-go { position: sticky; z-index: 5; bottom: max(34px, calc(env(safe-area-inset-bottom) + 12px)); margin-top: 18px; }
.tp-mo-go::before { content: ""; position: absolute; z-index: -1; inset: -18px -16px -40px; background: linear-gradient(to bottom, var(--tp-bg-clear), var(--tp-bg) 28%); pointer-events: none; }
@media (max-width: 720px) {
  body.has-dock:not(.in-app) .tp-mo-go { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* "Thêm khoản" and the sponsor's sheet (506d, 507a). */
.tp-mo-seg { margin-top: 0; }
.tp-mo-amt { display: flex; align-items: center; justify-content: center; gap: 2px; min-height: 76px; padding: 0 14px; border-radius: 18px; background: var(--tp-soft); color: var(--tp-brand-ink); cursor: text; }
.tp-mo-amt input { width: 100%; min-width: 0; max-width: 12ch; padding: 0; border: 0; background: transparent; color: inherit; text-align: right;
  font: 600 min(3rem, 64px)/1.2 var(--font-score); letter-spacing: 0.01em; field-sizing: content; }
.tp-mo-amt input::placeholder { color: var(--tp-dim); }
.tp-mo-amt input:focus { outline: none; }
.tp-mo-amt:focus-within { box-shadow: inset 0 0 0 2px var(--tp-brand-ink); }
.tp-mo-amt span { font: 600 min(3rem, 64px)/1.2 var(--font-score); }
.tp-mo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-mo-chip { border: 0; cursor: pointer; padding: 0 13px; }
.tp-mo-chip[aria-pressed="true"], .tp-mo-filters .tp-chip[aria-pressed="true"] { background: var(--tp-pill); color: #fff; }
.tp-mo-row2 { display: grid; grid-template-columns: minmax(118px, 0.6fr) 1fr; gap: 10px; }
.tp-mo-in { box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px;
  background: var(--tp-soft); color: var(--tp-ink); font: 400 1.0625rem/1.2 var(--tp-font); }
.tp-mo-in .tp-ic { flex: none; color: var(--tp-muted); }
.tp-mo-in:focus-visible, .tp-mo-date:focus-within { outline: 2px solid var(--tp-brand-ink); outline-offset: 1px; }
.tp-mo-date { position: relative; }
.tp-mo-date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tp-mo-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-height: 60px; padding: 8px 14px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--tp-line);
  color: var(--tp-ink); font: 500 1rem/1.2 var(--tp-font); cursor: pointer; }
.tp-mo-photo .tp-mo-gi { background: var(--tp-optic-soft); color: var(--tp-ink); }
.tp-mo-photo.is-set { box-shadow: inset 0 0 0 1.5px var(--tp-ok); }
.tp-mo-photo-v { display: flex; flex: 1 1 12em; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tp-mo-photo label.tp-chip { cursor: pointer; }
.tp-mo-del { align-self: center; color: #c0392b; }
.tp-mo-receipt { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--tp-soft); }

/* Lệ phí (506c). */
.tp-mo-of { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 4px 0 0; }
.tp-mo-of .tp-big { font-size: min(2.625rem, 60px); }
.tp-mo-of > span:last-child { font: 500 min(1.375rem, 40px)/1 var(--font-score); color: var(--tp-muted); }
.tp-mo-bar { height: 10px; margin-top: 14px; border-radius: 5px; background: var(--tp-bar); overflow: hidden; }
.tp-mo-bar i { display: block; height: 100%; border-radius: 5px; background: var(--tp-ok); }
.tp-mo-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tp-mo-filters .tp-chip { border: 0; padding: 0 14px; cursor: pointer; }
.tp-mo-filters .tp-chip b { font: 600 1.1875rem/1 var(--font-score); }
.tp-mo-evh { display: flex; align-items: center; gap: 8px; margin: 18px 8px 6px; font: 500 0.9375rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-mo-evh .tp-num { font-size: 1.25rem; font-weight: 600; color: var(--tp-brand-ink); }
.tp-mo-evh + .tp-mo-fees { margin-top: 0; }
.tp-mo-fees { margin: 14px 0 0; padding: 4px 12px; list-style: none; }
.tp-mo-fee { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 0; }
.tp-mo-fee + .tp-mo-fee { border-top: 1px solid var(--tp-hair); }
.tp-mo-av { display: flex; flex: 1 1 10em; flex-direction: column; gap: 6px; min-width: 0; }
.tp-mo-m { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tp-mo-m b { min-width: 0; font: 500 0.9375rem/1.2 var(--tp-font); color: var(--tp-ink); overflow-wrap: break-word; }
.tp-mo-tickb { flex: none; margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer; }
.tp-mo-tick, .tp-pz-give { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 22px; background: var(--tp-optic-soft);
  color: var(--tp-ink); font: 500 0.875rem/1.1 var(--tp-font); white-space: nowrap; }
.tp-mo-tick i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--optic); color: var(--navy-deep); }
.tp-mo-tick.is-no { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tp-line); color: var(--tp-muted); }
.tp-mo-tick.is-no i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tp-line); }
.tp-mo-tick.is-part { background: #fdecc8; color: #8a5a00; font-weight: 600; }
.tp-mo-tick.is-part i { display: none; }
.tp-pz-give { padding: 0 18px; background: var(--tp-pill); color: #fff; font-weight: 600; }

/* Nhà tài trợ (507). */
.tp-sp-add { flex: none; border: 0; cursor: pointer; background: var(--tp-soft); padding: 0 18px; }
.tp-sp-list { margin-top: 6px; }
.tp-sp-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 7px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
div.tp-sp-row { cursor: default; }
.tp-sp-row + .tp-sp-row { border-top: 1px solid var(--tp-hair); }
.tp-sp-row.is-new { margin: 0 -10px; width: calc(100% + 20px); padding: 7px 10px; border-radius: 16px; background: var(--tp-optic-soft); }
.tp-sp-row.is-new + .tp-sp-row { border-top-color: transparent; }
.tp-sp-t { flex: 1; min-width: 0; }
.tp-sp-t b { display: block; font: 500 1.0625rem/1.2 var(--tp-font); color: var(--tp-ink); overflow-wrap: break-word; }
.tp-sp-t small { display: block; margin-top: 3px; font: 400 0.875rem/1.2 var(--tp-font); color: var(--tp-muted); }
/* Logos sit on white (they are made for it) or, light ones on a clear ground, on navy; never cropped. */
.tp-sp-logo { display: flex; flex: none; align-items: center; justify-content: center; width: 76px; height: 54px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 23, 52, 0.1);
  overflow: hidden; color: #0b1734; font: 600 0.8125rem/1.1 var(--tp-font); text-align: center; }
.tp-sp-logo img { display: block; min-width: 0; max-width: 84%; max-height: 76%; object-fit: contain; }
.tp-sp-logo.is-dark { background: var(--tp-navy-card); box-shadow: none; color: #fff; }
.tp-sp-logo.is-big { width: 104px; height: 76px; border-radius: 16px; }
.tp-sp-logo.is-empty { background: var(--tp-soft); box-shadow: none; color: var(--tp-muted); }
.tp-sp-pick { display: flex; align-items: center; gap: 14px; }
.tp-sp-change { cursor: pointer; background: var(--tp-soft); padding: 0 18px; }
.tp-sp-hint { justify-content: center; margin-top: 8px; }
.tp-sp-order { display: flex; gap: 8px; }
.tp-sp-order .tp-chip { border: 0; cursor: pointer; }
.tp-sp-tier { display: flex; align-items: center; gap: 7px; margin: 16px 0 8px; font: 500 0.875rem/1 var(--tp-font); color: var(--tp-muted); }
.tp-sp-tier i { width: 9px; height: 9px; border-radius: 50%; }
.tp-sp-tier i.is-diamond { background: #8fc3e6; }
.tp-sp-tier i.is-gold { background: var(--tp-gold); }
.tp-sp-tier i.is-silver { background: var(--tp-silver); }
.tp-sp-tier i.is-bronze { background: var(--tp-bronze); }
.tp-sp > .tp-h + .tp-sp-tier { margin-top: 12px; }
.tp-sp-grid { display: grid; gap: 8px; }
.tp-sp-grid .tp-sp-logo { width: auto; }
.tp-sp-grid.is-diamond { grid-template-columns: 1fr; }
.tp-sp-grid.is-diamond .tp-sp-logo { height: 118px; border-radius: 20px; }
.tp-sp-grid.is-diamond .tp-sp-logo img { max-width: 74%; max-height: 70%; }
.tp-sp-grid.is-gold { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tp-sp-grid.is-gold .tp-sp-logo { height: 70px; border-radius: 14px; }
.tp-sp-grid.is-silver { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tp-sp-grid.is-silver .tp-sp-logo { height: 62px; }
.tp-sp-grid.is-bronze { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-sp-grid.is-bronze .tp-sp-logo { height: 56px; }

/* Giải thưởng (508): the settings' places, the visitors' card, "Trao giải". */
.tp-pz + .tp-pz { margin-top: 14px; }
.tp-pz-h, .tp-pz-bh { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 500 1.0625rem/1.2 var(--tp-font); color: var(--tp-ink); }
.tp-pz-bh { gap: 8px; font: 500 0.9375rem/1.3 var(--tp-font); color: var(--tp-muted); flex-wrap: wrap; }
.tp-pz-bh b { font-weight: 500; color: var(--tp-ink); }
.tp-pz-md { display: inline-grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 600 min(1.125rem, 22px)/1 var(--font-score); color: #fff; }
.tp-pz-md.is-champion { background: var(--tp-gold); }
.tp-pz-md.is-runnerUp { background: var(--tp-silver); color: var(--navy); }
.tp-pz-md.is-third { background: var(--tp-bronze); }
.tp-pz-md.is-sm { width: 26px; height: 26px; font-size: min(0.9375rem, 17px); }
.tp-pz-set > .tp-field { margin-top: 14px; }
.tp-pz-card { margin-top: 14px; padding: 14px 8px 12px; border-radius: 24px; background: var(--tp-card); }
.tp-pz-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tp-pz-c { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; text-align: center; }
.tp-pz-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; }
.tp-pz-c.is-champion .tp-pz-ic { background: var(--tp-gold); }
.tp-pz-c.is-runnerUp .tp-pz-ic { background: var(--tp-silver); }
.tp-pz-c.is-third .tp-pz-ic { background: var(--tp-bronze); }
.tp-pz-c small { font: 400 0.875rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-pz-c b { max-width: 100%; font: 600 min(1.375rem, 40px)/1 var(--font-score); color: var(--tp-brand-ink); letter-spacing: 0.01em; overflow-wrap: anywhere; }
.tp-pz-c b:not(.tp-num) { font: 600 1.0625rem/1.2 var(--tp-font); }
.tp-pz-c > span:last-child:not(.tp-pz-ic) { font: 500 0.875rem/1.2 var(--tp-font); color: var(--tp-ink2); }
.tp-pz-note { margin: 10px 8px 0; font: 400 0.875rem/1.3 var(--tp-font); color: var(--tp-muted); text-align: center; }
.tp-pz-awards .tp-sp-hd { margin-bottom: 4px; }
.tp-pz-b { padding: 12px 0; }
.tp-pz-b + .tp-pz-b { border-top: 1px solid var(--tp-hair); }
.tp-pz-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tp-pz-r + .tp-pz-r { margin-top: 10px; }

/* Xuất & in (509). */
.tp-ex-list { display: flex; flex-direction: column; gap: 6px; }
.tp-ex { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 8px 12px 8px 10px; border: 0; border-radius: 18px; background: var(--tp-soft);
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tp-ex .tp-mo-gi { background: var(--tp-card); }
.tp-ex-t { flex: 1; min-width: 0; }
.tp-ex-t b { display: block; font: 500 1.0625rem/1.2 var(--tp-font); color: var(--tp-ink); overflow-wrap: break-word; }
.tp-ex-t small { display: flex; align-items: center; gap: 4px; margin-top: 3px; font: 400 0.875rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-ex-f { flex: none; min-width: 52px; padding: 6px 9px; border-radius: 10px; background: var(--tp-card); font: 600 0.875rem/1 var(--font-score); letter-spacing: 0.04em; text-align: center; }
.tp-ex-f.is-xlsx { color: var(--tp-ok); }
.tp-ex-f.is-pdf { color: #c0392b; }
.tp-ex:disabled { opacity: 0.6; cursor: default; }
.tp-ex-pick .tp-menu-i { justify-content: flex-start; }

/* Tạo giải từ giải cũ (510): the row on /t/new, the sheet, the chip that says where it came from. */
.tp-cp-row { gap: 12px; min-height: 64px; padding: 10px 16px 10px 10px; }
.tp-cp-row .tp-ico { background: var(--tp-optic-soft); color: var(--tp-ink); }
.tp-cp-row b { flex: 1; min-width: 0; font: 600 min(1.125rem, 56px)/1.2 var(--tp-font); color: var(--tp-ink); text-align: left; }
.tp-cp-row b small { display: block; margin-top: 2px; font: 400 0.875rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-cp-from { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; min-height: 32px; padding: 0 13px; border-radius: 16px; background: var(--tp-optic-soft);
  color: var(--tp-ink); font: 500 0.9375rem/1.2 var(--tp-font); }
.tp-cp-from .tp-ic { width: 16px; height: 16px; }
.tp-cp-list { display: flex; flex-direction: column; gap: 8px; }
.tp-cp-t { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 10px 12px; border: 0; border-radius: 18px; background: var(--tp-soft);
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tp-cp-t img { flex: none; width: 44px; height: 44px; }
.tp-cp-t > span:nth-child(2) { flex: 1; min-width: 0; }
.tp-cp-t b { display: block; font: 500 1.0625rem/1.2 var(--tp-font); color: var(--tp-ink); overflow-wrap: break-word; }
.tp-cp-t small { display: block; margin-top: 3px; font: 400 0.875rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-cp-t.is-on { background: var(--tp-optic-soft); box-shadow: inset 0 0 0 2px var(--optic); }
.tp-cp-ck { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.tp-cp-t.is-on .tp-cp-ck { background: var(--optic); color: var(--navy-deep); }
.tp-cp-what { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 8px 12px; }
.tp-cp-what > span { padding-top: 8px; font: 500 0.9375rem/1.2 var(--tp-font); color: var(--tp-muted); }
.tp-cp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-cp-chips .tp-chip { min-height: 34px; border-radius: 17px; padding: 0 11px; gap: 4px; }
.tp-cp-chips .tp-chip.is-yes { background: var(--tp-ok-soft); color: var(--tp-ok); }
.tp-cp-chips .tp-chip.is-no { background: var(--tp-soft); color: var(--tp-muted); text-decoration: line-through; text-decoration-thickness: 1px; }

/* Large text (W7): pieces side by side stack. */
html.tp-tight .tp-mo-row2 { grid-template-columns: 1fr; }
html.tp-tight .tp-pz-cols { grid-template-columns: 1fr; gap: 12px; }
html.tp-tight .tp-sp-grid.is-gold, html.tp-tight .tp-sp-grid.is-silver { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.tp-tight .tp-sp-grid.is-bronze { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.tp-tight .tp-mo-sum2 { grid-template-columns: 1fr; }
html.tp-tight .tp-mo-l { width: 100%; margin-left: 0; flex-wrap: wrap; }
html.tp-tight .tp-mo-g { flex-wrap: wrap; padding: 8px 0; }
html.tp-tight .tp-sp-row { flex-wrap: wrap; }
html.tp-tight .tp-ex { flex-wrap: wrap; }
html.tp-huge .tp-mo-big, html.tp-huge .tp-mo-amt input, html.tp-huge .tp-mo-amt span { font-size: 40px; }

/* Computers: Thu chi in two columns (the totals and the switch at the left, the groups at the right); Lệ phí and the
   public page keep the phone's column in the middle. */
@media (min-width: 1100px) {
  .tp-mo { max-width: 640px; margin: 0 auto; }
  .tp-mo[data-money-page] { display: grid; grid-template-columns: 380px minmax(0, 1fr); grid-template-areas: "hd hd" "sum seg" "sum list" "sw list" "go list" ". list";
    grid-template-rows: auto auto auto auto auto 1fr;
    align-items: start; column-gap: 24px; max-width: 1120px; }
  .tp-mo[data-money-page] > .tp-hd { grid-area: hd; }
  .tp-mo[data-money-page] > .tp-mo-sum { grid-area: sum; margin-top: 14px; }
  .tp-mo[data-money-page] > .tp-mo-sw, .tp-mo[data-money-page] > .tp-mo-state { grid-area: sw; }
  .tp-mo[data-money-page] > .tp-mo-seg { grid-area: seg; margin-top: 14px; }
  .tp-mo[data-money-page] > .tp-mo-list { grid-area: list; }
  .tp-mo[data-money-page] > .tp-mo-go { grid-area: go; position: static; }
  .tp-mo[data-money-page] > .tp-mo-go::before { display: none; }
}

/* ---------- Accounts (approved previews 514a–d): /t/new signed out and its "Trưởng ban" chip, the invite pages, the
   "Ban tổ chức" card with photos, referees and the three invite tiles. The provider buttons are account.js's (styles.css). */
.tn-signin { margin-top: 18px; padding: 26px 20px 22px; text-align: center; }
.tn-signin h2 { margin: 0 0 22px; font: 500 1.375rem/1.25 var(--tp-font); letter-spacing: -0.01em; color: var(--tp-ink); }
.tn-badge { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: var(--tp-optic-soft); color: var(--navy); }
.tn-signin .ac-btn, .ti-card .ac-btn { font-family: var(--tp-font); }
.tn-head { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 14px; min-height: 44px; padding: 4px 16px 4px 5px; border-radius: 22px; background: var(--tp-card); box-shadow: 0 0 0 1px rgba(11, 23, 52, 0.08); font: 400 1rem/1.2 var(--tp-font); color: var(--tp-ink); }
.tn-head .tn-k { display: inline-flex; flex: none; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--tp-pill); color: #fff; font: 500 0.8125rem/1 var(--tp-font); }
.tn-head .tn-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ti-card { margin-top: 14px; padding: 18px 18px 20px; }
.ti-t { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--tp-hair, rgba(11, 23, 52, 0.08)); }
.ti-t img { flex: none; width: 56px; height: 56px; }
.ti-t b { display: block; font: 500 1.25rem/1.2 var(--tp-font); color: var(--tp-ink); }
.ti-t small { display: block; margin-top: 3px; font: 400 0.9375rem/1.25 var(--tp-font); color: var(--tp-muted); }
.ti-by { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 20px 0 22px; text-align: center; }
.ti-who { display: inline-flex; align-items: center; gap: 8px; font: 400 1rem/1.25 var(--tp-font); color: var(--tp-ink2); }
.ti-role { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 22px; background: var(--tp-optic-soft); font: 500 1.375rem/1 var(--tp-font); color: var(--tp-ink); }
.ti-quiet { margin: 14px 0 0; text-align: center; font: 400 0.9375rem/1.35 var(--tp-font); color: var(--tp-muted); }
.ti-done { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 22px 0; text-align: center; }
.ti-done .tp-av { box-shadow: 0 0 0 3px #fff, 0 6px 18px rgba(7, 22, 52, 0.14); }
.ti-done b { font: 500 1.25rem/1.2 var(--tp-font); color: var(--tp-ink); }
.ti-ok, .ti-wait { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px 0 12px; border-radius: 24px; background: #e3f3ea; color: #16804d; font: 500 1.0625rem/1.2 var(--tp-font); }
.ti-ok i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #16804d; color: #fff; }
.ti-wait { padding-left: 16px; background: #fdf1d6; color: #8a5a00; }
.ti-legacy { display: block; margin: 12px auto 0; padding: 8px 12px; border: 0; background: none; color: var(--navy); font: 400 0.9375rem/1.2 var(--tp-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tp-btc .tp-btc-list { gap: 0; }
.tp-btc .tp-btc-row { min-height: 58px; }
.tp-btc .tp-btc-row + .tp-btc-row { border-top: 1px solid var(--tp-hair, rgba(11, 23, 52, 0.08)); }
.tp-btc .tp-names b { font-weight: 400; font-size: 1.0625rem; }
.tp-btc-role { font-weight: 500; }
.tp-btc-role.is-staff { background: var(--tp-soft); color: var(--tp-ink2); }
.tp-btc-role.is-ref { display: inline-flex; align-items: center; gap: 5px; background: #fdf1d6; color: #8a5a00; }
.tp-btc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 14px; }
.tp-btc-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 4px; border: 0; border-radius: 18px; background: var(--tp-soft); color: var(--navy); text-align: center; font: 500 0.9375rem/1.2 var(--tp-font); cursor: pointer; }
.tp-btc-tile span { max-width: 7em; }
html.tp-dark .tp-btc-tile { color: var(--tp-ink); }

/* "Ban tổ chức" rows (S10): the name on one line with an ellipsis; "Bạn", "VĐV: …" and "Gỡ" on the line under it. */
.tp-btc .tp-btc-row .tp-names b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; }
.tp-btc-under { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; min-width: 0; }
.tp-btc-under .tp-btc-pl { overflow: hidden; max-width: 100%; white-space: nowrap; text-overflow: ellipsis; }
.tp-btc-under button.tp-btc-pl { min-height: 36px; margin: -6px 0 -8px; }
.tp-btc-x { min-height: 36px; margin: -6px 0 -8px; padding: 0 2px; border: 0; background: none; color: var(--down); font: 500 0.8125rem/1.3 var(--tp-font); cursor: pointer; }

/* Wave 1 (22/11/2026), the tie-break choice "Chạm 7 · Cách 2" under a rule (event settings, /t/new step 2). */
.tp-tb { margin-top: 12px; }
.tp-tb[hidden] { display: none; }
.tp-tb .tp-opt span { min-height: 44px; padding: 0 18px; font-weight: 400; }
.tp-new > .tp-tb { margin: 14px 2px 0; }

/* Wave 1, 556 "Huỷ nội dung": the cancelled event's card, matrix row, page card and chip; "Cần hoàn lệ phí"; "Đổi người". */
.tp-ev.is-cancelled { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tp-line); }
.tp-ev.is-cancelled .tp-ev-code { color: var(--tp-muted); }
.tp-ev-off { display: block; margin-top: 4px; font: 500 0.8125rem/1.25 var(--tp-font); color: var(--down, #bf3a30); }
.tp-mx-row.is-cancelled { grid-template-columns: 82px 1fr; }
.tp-dk-btc .tp-mx-row.is-cancelled { grid-template-columns: minmax(250px, 2.2fr) 5fr; }
.tp-mx-off { display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--tp-muted); font: 500 0.875rem/1.2 var(--tp-font); text-decoration: none; }
.tp-ev-cancel { display: grid; gap: 8px; margin-top: 12px; }
.tp-ev-cancel-h { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 1rem/1.3 var(--tp-font); color: var(--down, #bf3a30); }
.tp-ev-cancel-h b { font-weight: 500; }
.tp-ev-cancel .tp-line { margin: 0; color: var(--tp-muted); }
.tp-ev-cancel .tp-btn { justify-content: space-between; }
.tp-chip.is-off { background: var(--down-bg, #fbe8e6); color: var(--down, #bf3a30); }
.tp-quiet.is-danger { color: var(--down, #bf3a30); }
.tp-mo-refc { display: block; font: 500 0.8125rem/1.2 var(--tp-font); color: var(--tp-muted); white-space: nowrap; }
.tp-mo-refh b { margin-left: 6px; color: var(--down, #bf3a30); }
button.su-slot { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.su-slot.su-swap:not(.is-set) .su-mate-n b { color: var(--tp-ink); }
.su-sheet [data-swap-reason] { width: 100%; }

/* Wave 1, 557: "Nhận làm Trưởng ban?", the offer waiting, "Nhật ký giải". */
.tp-head-offer { display: grid; gap: 10px; margin-bottom: 12px; box-shadow: 0 0 0 2px var(--optic); }
.tp-head-offer .tp-h, .tp-head-offer .tp-line { margin: 0; }
.tp-head-go { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-head-wait { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin: 8px 0 0; color: var(--tp-muted); font: 400 0.9375rem/1.3 var(--tp-font); }
.tp-head-pick { grid-template-columns: auto 1fr auto; }
.tp-log { display: grid; gap: 0; margin: 0 0 12px; padding: 4px 16px; list-style: none; }
.tp-log-row { display: grid; grid-template-columns: 3.2em 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--tp-line); }
.tp-log-row:first-child { border-top: 0; }
.tp-log-t { color: var(--tp-muted); font: 500 0.875rem/1.4 var(--tp-font); }
.tp-log-m { display: grid; gap: 2px; min-width: 0; font: 400 0.9375rem/1.35 var(--tp-font); overflow-wrap: anywhere; }
.tp-log-m b { font-weight: 500; color: var(--tp-ink); }
.tp-log-m span, .tp-log-m small { color: var(--tp-muted); }
.tp-log-m q { color: var(--tp-ink2); font-style: italic; }
button.tp-go-row { width: 100%; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tp-btc button.tp-go-row { width: calc(100% + 16px); }
.tp-head-pick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px 10px 10px; border: 0; border-radius: 18px; background: var(--tp-soft); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tp-head-pick .tp-names { flex: 1; display: grid; gap: 2px; min-width: 0; }
.tp-head-pick .tp-names b { font: 600 1.0625rem/1.25 var(--tp-font); }
.tp-head-pick .tp-names small { font: 400 0.9375rem/1.3 var(--tp-font); color: var(--tp-muted); }


/* Wave 1, 550: community tournaments on /t/ (no crest, the organiser named), "Thu tại sân", the bank's change. */
.tl-card.is-community .tl-top { justify-content: flex-end; }
.tl-org { display: flex; align-items: center; gap: 6px; margin-top: 6px; font: 400 0.9375rem/1.3 var(--tp-font); color: rgba(255, 255, 255, 0.82); }
.tl-crest.is-none { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tp-soft); color: var(--tp-muted); }
.su-venue { margin: 8px 0 0; font: 500 1rem/1.3 var(--tp-font); color: var(--tp-ink); }
.tp-row.is-due .tp-row-v { color: var(--tp-amber-ink, #8a5a00); }
.tp-collect { margin: 4px 0 10px; }
.tp-bank-change { margin-top: 6px; font-size: 0.875rem; color: var(--tp-muted); }
.tp-reports { margin: 0 0 12px; padding: 0; list-style: none; font: 400 0.9375rem/1.4 var(--tp-font); }
