/* Tactivela · modules/club — scope: .cb  (the club platform's screens and sheets: design system components)
   Phone first, one column. Every control the module sizes is at least 44 x 44 px (--tk-touch), at every size. */
.cb .cb-page { display: flex; flex-direction: column; gap: var(--tk-space-3); padding: var(--tk-space-3) var(--tk-space-3) var(--tk-space-8); }
.cb .cb-body, .cb .cb-grid, .cb .cb-split, .cb .cb-sheet, .cb .cb-list, .cb .cb-bar { display: flex; flex-direction: column; gap: var(--tk-space-3); }
.cb .cb-list { gap: var(--tk-space-2); }
.cb .tk-panel { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cb .tk-panel > .tk-h3, .cb .tk-section-label { margin: 0; }
.cb .tk-seg > button, .cb .tk-chip { min-height: var(--tk-touch); }
.cb .cb-offline, .cb .cb-name, .cb .cb-msg { margin: 0; }
.cb .cb-msg { line-height: 1.5; }
.cb .cb-name { font-size: var(--tk-fs-body); color: var(--tk-text); }
.cb .cb-err { margin: 0; color: var(--tk-bad-text); font-size: var(--tk-fs-body-s); line-height: 1.45; }
.cb .cb-val { color: var(--tk-text-muted); font-size: var(--tk-fs-body-s); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.cb .cb-btns { display: flex; flex-wrap: wrap; gap: var(--tk-space-2); }
.cb .cb-btns > .tk-btn { flex: 1 1 auto; }
.cb .cb-stack { flex-direction: column; }
.cb .cb-leave { margin-top: var(--tk-space-2); }
.cb .cb-tags, .cb .cb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cb .cb-chips { gap: var(--tk-space-2); }

/* A row that opens something (a team place, a member, a club in the switcher) */
.cb .cb-row { width: 100%; min-height: var(--tk-touch); display: flex; align-items: center; gap: var(--tk-space-2); padding: 8px 12px; cursor: pointer; text-align: left;
  background: var(--tk-card); color: var(--tk-text); border: var(--tk-border) solid var(--tk-line); border-radius: var(--tk-radius);
  font-family: var(--tk-font-body); font-size: var(--tk-fs-body); }
.cb .cb-row + .cb-row { margin-top: 6px; }
.cb .cb-row > .tk-icon { color: var(--tk-text-subtle); flex-shrink: 0; }
.cb .cb-row[aria-current="true"] { border-color: var(--tk-now); }
.cb .cb-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.cb .cb-row__meta, .cb .cb-inv__meta { color: var(--tk-text-muted); font-size: var(--tk-fs-meta); }

/* A row inside a list line (a player on a team: the name opens the record), and the column of panels beside a form */
.cb .cb-row--flat { background: none; border: 0; padding: 0; border-radius: var(--tk-radius-sm); }
.cb .cb-grow { flex: 1; min-width: 0; }
.cb .cb-col { display: flex; flex-direction: column; gap: var(--tk-space-3); min-width: 0; }
.cb .cb-custom { display: contents; }   /* Custom's text box and its note (step 2f): spaced as the form's own fields */
.cb .cb-items { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }

/* Shirt numbers: a short number field, still 44 px tall and 16 px text */
.cb .cb-num { width: 84px; flex-shrink: 0; min-height: var(--tk-touch); text-align: center; }

/* Team cards */
.cb .cb-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--tk-space-2); }
.cb .cb-card { width: 100%; min-height: var(--tk-touch); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; cursor: pointer; text-align: left;
  color: var(--tk-text); font-family: var(--tk-font-body); font-size: var(--tk-fs-body); }
.cb .cb-card__name { font-family: var(--tk-font-display); font-size: var(--tk-fs-h3); font-weight: 700; overflow-wrap: anywhere; }
.cb .cb-card__meta { color: var(--tk-text-muted); font-size: var(--tk-fs-meta); }

/* Names on a team, team places, an invitation */
.cb .cb-person { min-height: var(--tk-touch); display: flex; align-items: center; justify-content: space-between; gap: var(--tk-space-2);
  border-bottom: var(--tk-hairline) solid var(--tk-line); overflow-wrap: anywhere; }
.cb .cb-inv { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: var(--tk-hairline) solid var(--tk-line); }
.cb .cb-inv:last-of-type { border-bottom: 0; }
.cb .cb-inv__top { display: flex; align-items: center; gap: var(--tk-space-2); }
.cb .cb-place-add { display: flex; flex-wrap: wrap; gap: var(--tk-space-2); align-items: flex-end; }
.cb .cb-place-add > .tk-field { min-width: 140px; }
.cb .cb-share { font-size: var(--tk-fs-body); }

/* Club documents: the library's bar wraps (Show, Category, Search Titles, Upload Document); a chosen file beside its
   button; a version's buttons in a row that wraps */
.cb .cb-docs-bar { flex-direction: row; flex-wrap: wrap; gap: var(--tk-space-2); align-items: flex-end; }
.cb .cb-docs-bar > .tk-field, .cb .cb-docs-bar > .cb-btns { flex: 1 1 160px; min-width: 160px; }
.cb .cb-file { min-height: var(--tk-touch); display: flex; flex-wrap: wrap; align-items: center; gap: var(--tk-space-2); overflow-wrap: anywhere; }
.cb .cb-ver .cb-btns > .tk-btn { flex: 0 1 auto; }

/* Benchmarking (step 2c): the filters and the score levels are chips that wrap (each at least 44 px); a level with
   words in the framework shows them under its number, one level a row; Not Scored and No Bonus on a row of their own;
   results as text with a bar beside it; the checkpoints' progress as columns; a yearly criterion's years side by side
   in its row; notes keep their line breaks. A control that cannot be used now is dimmed, as .tk-btn:disabled. */
.cb .cb-views > .tk-chip { flex: 1 1 auto; justify-content: center; }
.cb .tk-chip:disabled, .cb .tk-seg > button:disabled { opacity: 0.4; cursor: not-allowed; }
.cb .cb-score { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: var(--tk-space-2); }
.cb .cb-score--words { grid-template-columns: minmax(0, 1fr); }
.cb .cb-score > .tk-chip { justify-content: center; }
.cb .cb-score > [data-v="none"] { grid-column: 1 / -1; }
.cb .cb-score--words > .tk-chip:not([data-v="none"]) { justify-content: flex-start; gap: var(--tk-space-3); padding: 6px 12px; text-align: left; }
.cb .cb-lvl small { font-family: var(--tk-font-body); font-size: var(--tk-fs-body-s); font-weight: 400; letter-spacing: 0; color: var(--tk-text-muted); }
.cb .cb-lvl[aria-pressed="true"] small { color: var(--tk-text); }
.cb .cb-bench__statement { margin: 0; }
.cb .cb-meter { display: flex; flex-direction: column; gap: 6px; }
.cb .cb-meter__top { display: flex; justify-content: space-between; gap: var(--tk-space-2); font-size: var(--tk-fs-body-s); color: var(--tk-text-muted); }
.cb .cb-meter__bar { height: 10px; overflow: hidden; background: var(--tk-card); border: var(--tk-hairline) solid var(--tk-line); border-radius: var(--tk-radius-pill); }
.cb .cb-spark { height: 48px; display: flex; align-items: flex-end; gap: 4px; padding: 4px; background: var(--tk-card);
  border: var(--tk-hairline) solid var(--tk-line); border-radius: var(--tk-radius-sm); }
.cb .cb-spark__col { flex: 1 1 0; min-width: 2px; max-width: 32px; min-height: 2px; background: var(--tk-touchline); border-radius: var(--tk-radius-sm); }
.cb .cb-bar__fill { display: block; height: 100%; background: var(--tk-touchline); border-radius: var(--tk-radius-pill); }
.cb .cb-yrs { display: flex; flex-wrap: wrap; gap: var(--tk-space-2); }
.cb .cb-yr { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cb .cb-yr__h { font-size: var(--tk-fs-meta); font-weight: 700; }
.cb .cb-sub { margin: var(--tk-space-2) 0 0; font-size: var(--tk-fs-meta); font-weight: 700; color: var(--tk-text-muted); }
.cb .cb-pre, .cb-print .cb-pre { white-space: pre-line; }
.cb .cb-link { overflow-wrap: anywhere; }
.cb .cb-link a { color: var(--tk-info); }
.cb .cb-bench-list .cb-row + .cb-row { margin-top: 0; }

/* Sessions (phase 4): the library's rows (a proposal's Accept and Decline under it); a plan's drill diagrams at the
   pitch's proportions; Compare with Original's two columns (stacked on a phone); the schedule by week, each entry's tags
   beside it; a training day's switch, start time and minutes on one line that wraps; a periodisation plan's weeks, each
   a panel of days (a grid of weeks by days from 700px, --cb-days columns) */
.cb .cb-sess-views > button { flex: 1 1 0; }
.cb #cb-settings[aria-current="page"] { color: var(--tk-now); }   /* Club Settings open: its app bar button shows it */
.cb .cb-lib { display: flex; flex-direction: column; gap: 6px; }
.cb .cb-plan, .cb .cb-period-grid, .cb .cb-week { display: flex; flex-direction: column; gap: var(--tk-space-3); }
.cb .cb-week { gap: var(--tk-space-2); }
.cb .cb-list > .cb-row + .cb-row { margin-top: 0; }
.cb .cb-row > .cb-tags { flex-shrink: 0; max-width: 45%; justify-content: flex-end; }
.cb .cb-dia { width: 100%; aspect-ratio: 100 / 70; overflow: hidden; border: var(--tk-border) solid var(--tk-line); border-radius: var(--tk-radius); }
.cb .cb-dia--small { max-width: 320px; }
.cb .cb-cmp { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--tk-space-3); }
.cb .cb-cmp > div { min-width: 0; }
.cb .cb-cmp__head { display: none; }
.cb .cb-cmp__who { margin: 0 0 4px; }
.cb .cb-day { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--tk-space-2); padding-bottom: var(--tk-space-2); border-bottom: var(--tk-hairline) solid var(--tk-line); }
.cb .cb-day__on { flex: 1 1 96px; min-width: 0; justify-content: center; }
.cb .cb-day > .tk-field { flex: 1 1 112px; min-width: 0; }
.cb .cb-day > .tk-field:last-child { flex: 0 0 84px; }
.cb .cb-pweek > .cb-row + .cb-row { margin-top: 0; }
.cb .cb-pweek > .cb-row { align-items: flex-start; }
.cb .cb-pweek__head { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cb .cb-pweek__head > .tk-btn { align-self: flex-start; }
.cb .cb-pday--ro { min-height: var(--tk-touch); display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; min-width: 0; overflow-wrap: anywhere;
  border: var(--tk-hairline) solid var(--tk-line); border-radius: var(--tk-radius); }
.cb .cb-pday--ro .cb-msg { margin: 0; }

/* The printed self-assessment (A4, day kit; #ps-page gets class "cb-print"): the statement and "Confidential to <Club>"
   at the foot of every page */
.cb-print { width: 210mm; min-height: 297mm; box-sizing: border-box; padding: 12mm 12mm 24mm; position: relative;
  background: var(--tk-bg); color: var(--tk-text); font-family: var(--tk-font-body); font-size: 12pt; line-height: 1.4; }
.cb-print .cbp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; padding-bottom: 3mm; margin-bottom: 4mm;
  border-bottom: 1.2mm solid var(--tk-touchline); }
.cb-print .cbp-club { font-family: var(--tk-font-display); font-size: 10pt; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tk-violet-soft); }
.cb-print .cbp-title { margin: 0; font-family: var(--tk-font-display); font-size: 24pt; font-weight: 900; line-height: 1; text-transform: uppercase; }
.cb-print .cbp-meta { text-align: right; font-size: 10pt; color: var(--tk-text-muted); }
.cb-print .cbp-statement { margin: 0 0 4mm; padding: 2mm 3mm; background: var(--tk-card); border-radius: var(--tk-radius-sm); font-size: 10pt; }
.cb-print .cbp-h { margin: 5mm 0 2mm; font-family: var(--tk-font-display); font-size: 13pt; font-weight: 800; text-transform: uppercase; color: var(--tk-violet-soft); }
.cb-print .cbp-table { width: 100%; border-collapse: collapse; font-size: 10pt; }
.cb-print .cbp-table th, .cb-print .cbp-table td { padding: 1.5mm; text-align: left; vertical-align: top; border-bottom: 0.3mm solid var(--tk-line); }
.cb-print .cbp-table tr { break-inside: avoid; page-break-inside: avoid; }
.cb-print ul { margin: 0; padding-left: 6mm; }
.cb-print .cbp-foot { display: flex; justify-content: space-between; gap: 6mm; margin-top: 6mm; padding-top: 2mm; border-top: 0.5mm solid var(--tk-line);
  font-size: 9pt; color: var(--tk-text-muted); }
.cb-print .cbp-foot b { color: var(--tk-text); white-space: nowrap; }
@media print {
  .cb-print .cbp-foot { position: fixed; bottom: 0; left: 12mm; right: 12mm; margin: 0; padding-bottom: 4mm; background: var(--tk-bg); }
}

/* ── Tablets (700px and up, design system 6.6): a centred reading column with more air. ── */
@media (min-width: 700px) {
  .cb .cb-page { padding: var(--tk-space-5) var(--tk-space-4) var(--tk-space-8); }
  .cb .cb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb .cb-stack { flex-direction: row; }
  .cb .cb-docs-bar { flex-wrap: nowrap; }
  .cb .cb-docs-bar > .tk-field, .cb .cb-docs-bar > .cb-btns { min-width: 0; }
  .cb .cb-cmp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb .cb-cmp__head { display: grid; }
  .cb .cb-cmp__who { display: none; }
  .cb .cb-pweek { display: grid; grid-template-columns: minmax(150px, 1.3fr) repeat(var(--cb-days, 2), minmax(0, 1fr)); align-items: stretch; gap: var(--tk-space-2); }
  .cb .cb-pweek > .cb-row { height: 100%; }
}
/* ── PCs (1100px and up): the wide column; Home's panels and People's two lists side by side, team cards
   three across. A form is never split. ── */
@media (min-width: 1100px) {
  .cb .cb-page { max-width: var(--tk-column-wide); }
  .cb .cb-grid, .cb .cb-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--tk-space-4); }
  .cb .cb-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cb .cb-form { max-width: var(--tk-column); width: 100%; margin-inline: auto; }
}
/* ── A phone held sideways: a plan's drill diagram no taller than the screen under the app bar; in Rate Your Session,
   Session Check-In and Your Weekly Check-In each scale in one row of ten, and Save or Submit kept in view at the foot of
   the sheet while the questions scroll above it (into the sheet's 16px foot padding, so nothing shows under it) ── */
@media (min-width: 700px) and (max-height: 500px) {
  .cb .cb-dia:not(.cb-dia--small) { max-width: 480px; margin-inline: auto; }
  .cb#mod-cb-rpe .tk-sheet, .cb#mod-cb-checkin .tk-sheet, .cb#mod-cb-coach-checkin .tk-sheet { max-width: 600px; }   /* ten 44 px targets a row */
  .cb#mod-cb-rpe .tk-rpe, .cb#mod-cb-checkin .tk-rpe, .cb#mod-cb-coach-checkin .tk-rpe { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .cb#mod-cb-checkin .tk-sheet > .cb-btns, .cb#mod-cb-coach-checkin .tk-sheet > .cb-btns {
    position: sticky; bottom: -16px; z-index: 1; padding-block: var(--tk-space-2); background: var(--tk-surface); }
  .cb#mod-cb-rpe .tk-sheet > .tk-btn--primary { position: sticky; bottom: -8px; z-index: 1; box-shadow: 0 0 0 8px var(--tk-surface); }
}

/* RPE (phase 5): Sessions to Rate's rows; Rate Your Session's chosen word and the minutes stepper (44 px buttons, a 16 px
   field); Record RPE's rows (stacked on a phone: name and tags, the scale, minutes, Did Not Train; from 700px name, minutes
   and Did Not Train on one line, the scale of ten under them); Team › Load's three
   tiles and the table (numbers as text beside the zone's colour) */
.cb .cb-rate > .cb-btns > .tk-tag { align-self: center; }
.cb .cb-rate-row { gap: var(--tk-space-2); border-bottom: 0; }
.cb .cb-rate-row > .cb-row { flex: 1 1 auto; min-width: 0; }
.cb .cb-rate-row > .tk-btn { flex: 0 0 auto; }
.cb .cb-rpe-word { color: var(--tk-text-muted); }
.cb #cb-rpe-head { gap: 4px; }
.cb #cb-rpe-head > .note, .cb #cb-tl-body > .note, .cb #cb-rr-body > .note { margin: 0; }
.cb .cb-rpe-team { font-weight: 700; }
.cb .tk-rpe > button:disabled { cursor: not-allowed; }
.cb .tk-rpe > button:disabled:not([aria-pressed="true"]) { opacity: 0.4; }
.cb .cb-step { display: flex; align-items: center; gap: var(--tk-space-2); }
.cb .cb-step > .tk-btn--icon { min-width: var(--tk-touch); min-height: var(--tk-touch); }
.cb #cb-rpe-dnt[aria-pressed="true"], .cb .cb-rr-dnt[aria-pressed="true"] { border-color: var(--tk-now); color: var(--tk-now); }
.cb .cb-rr { display: flex; flex-direction: column; }
.cb .cb-rr-row { display: flex; flex-direction: column; gap: var(--tk-space-2); padding: var(--tk-space-3) 0; border-bottom: var(--tk-hairline) solid var(--tk-line); }
.cb .cb-rr-row:last-child { border-bottom: 0; }
.cb .cb-rr-who { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tk-space-2); min-width: 0; }
.cb .cb-rr-who > .cb-row__main { flex: 1 1 120px; }
.cb .cb-rr-dnt { align-self: flex-start; }
.cb .cb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tk-space-2); }
.cb .cb-stats .tk-stat__value small { font-size: var(--tk-fs-label); margin-left: 2px; }
.cb .cb-ld { display: flex; flex-direction: column; border: var(--tk-hairline) solid var(--tk-line); border-radius: var(--tk-radius); overflow: hidden; }
.cb .cb-ld__h, .cb .cb-ld__row { display: grid; grid-template-columns: minmax(0, 1fr) 56px 56px 96px; gap: 6px; align-items: center; padding: 8px 10px; }
.cb .cb-ld__h { font-family: var(--tk-font-display); font-size: var(--tk-fs-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tk-text-subtle); background: var(--tk-surface); }
.cb .cb-ld__h > span:not(:first-child), .cb .cb-ld__row > span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.cb .cb-ld__row { background: var(--tk-card); border-top: var(--tk-hairline) solid var(--tk-line); font-size: var(--tk-fs-body-s); color: var(--tk-text-muted); }
.cb .cb-ld__nm { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--tk-text); overflow-wrap: anywhere; }
.cb .cb-ld__z { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.cb .cb-ld__z b { font-family: var(--tk-font-display); font-size: 17px; font-weight: 800; }
.cb .cb-ld__z small { font-size: var(--tk-fs-meta); }
@media (min-width: 700px) {
  .cb .cb-rr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--tk-space-3); }
  .cb .cb-rr-row .tk-rpe { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .cb .cb-rr-dnt { align-self: center; min-height: var(--tk-touch); }
  .cb .cb-step > .tk-btn--icon { min-height: var(--tk-touch); }
}

/* Session check-ins (phase 6): the Session Check-In and Your Weekly Check-In sheets (three questions, ten 44 px buttons each in
   two rows of five, the words at each end, a yellow fill for an enjoyment, confidence or coach answer, the effort keeping the
   RPE colours), the Privacy panel's section, Team › Check-Ins' session chips and player cards (two across from 700px) */
.cb .cb-ci { display: flex; flex-direction: column; gap: var(--tk-space-4); }
.cb .cb-ci-q-box, .cb .cb-ci-effort, .cb .cb-ci-coach, .cb .cb-ci-pv { display: flex; flex-direction: column; gap: var(--tk-space-2); }
.cb .cb-ci-effort[hidden], .cb .cb-ci-coach[hidden] { display: none; }
.cb .cb-ci-q { margin: 0; font-weight: 700; line-height: 1.4; }
.cb .cb-ci-ends { display: flex; justify-content: space-between; gap: var(--tk-space-2); margin-top: -4px; font-size: var(--tk-fs-meta); color: var(--tk-text-muted); }
.cb .tk-rpe.cb-agree > button[aria-pressed="true"] { background: var(--tk-touchline); border-color: var(--tk-touchline); color: var(--tk-on-touchline); }
.cb .cb-ci-coach .tk-btn[aria-pressed="true"], .cb #cb-ci-dnt[aria-pressed="true"] { border-color: var(--tk-now); color: var(--tk-now); }
.cb #cb-ci-head, .cb #cb-cc-head { gap: 4px; }
.cb #cb-ci-head > .note, .cb #cb-cc-head > .note, .cb .cb-ci-who { margin: 0; }
.cb .cb-ci-stop { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tk-space-2); margin: 0; }
.cb .cb-ci-pv { padding-top: var(--tk-space-2); }
.cb .cb-ci-pv > .note { margin: 0; }
.cb .cb-ck-cards { display: flex; flex-direction: column; gap: var(--tk-space-2); }
.cb .cb-ck-card { display: flex; flex-direction: column; gap: 6px; padding: var(--tk-space-3); }
.cb .cb-ck-who { display: flex; align-items: center; gap: var(--tk-space-2); min-width: 0; font-weight: 700; }
.cb .cb-cck-row { flex-wrap: wrap; }
@media (min-width: 700px) {
  .cb .cb-ck-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* Individual development plans (phase 7): Team › Development's rows (Start IDP beside a player with none); the IDP screen's
   five areas (one column on a phone and tablet, two across from 1100px), each goal a card with its tags, words and
   reflections; coach actions with a Done toggle; reviews with their ratings as text; a note's kind, who and when; the health
   hint under every text box; the ratings sheet's five groups of ten (the check-in scale's look) */
.cb .cb-dev-row { gap: var(--tk-space-2); padding: 6px 0; }
.cb .cb-dev-row > .tk-btn { flex: 0 0 auto; }
.cb .cb-idp-areas { display: flex; flex-direction: column; gap: var(--tk-space-3); }
.cb .cb-goal, .cb .cb-review { display: flex; flex-direction: column; gap: 6px; padding: var(--tk-space-3); }
.cb .cb-goal__text { margin: 0; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.cb .cb-goal .cb-sub { margin: 0; }
.cb .cb-note { display: flex; flex-direction: column; gap: 4px; padding: var(--tk-space-2) 0 0; border-top: var(--tk-hairline) solid var(--tk-line); }
.cb .cb-note__head { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.cb .cb-note__kind { font-size: var(--tk-fs-meta); font-weight: 700; color: var(--tk-text-muted); }
.cb .cb-removed { font-style: italic; color: var(--tk-text-muted); }
.cb .cb-note .cb-btns > .tk-btn { flex: 0 1 auto; }
.cb .cb-action { gap: 6px; }
.cb .cb-done[aria-pressed="true"] { border-color: var(--tk-now); color: var(--tk-now); }
.cb .cb-idp-ratings .tk-setting { min-height: 0; }
.cb .cb-hint { margin: -4px 0 0; }
/* People › Show holds five views with IDPs: each takes the width its word needs, so Invitations is never cut (four
   views keep the even widths) */
.cb .tk-seg[aria-labelledby="cb-pv-l"]:has(> button:nth-child(5)) { grid-auto-columns: auto; }
.cb .tk-seg[aria-labelledby="cb-pv-l"]:has(> button:nth-child(5)) > button { padding: 0 6px; letter-spacing: 0.04em; }
@media (min-width: 1100px) {
  .cb .cb-idp-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--tk-space-4); }
  #s-club-idp .tk-column { max-width: var(--tk-column-wide); }
}

/* The import (phase 3): Choose File (phase 2's .cb-file row), the Header Row's first records (plain text, the chosen one outlined), Match
   Columns (stacked on a phone; from 700px the file's header and sample beside the select), the teams not found, the
   preview's rows (stacked on a phone; from 700px row and name beside the outcome) and the summary's four tiles */
.cb .cb-imp-recs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--tk-space-1); font-size: var(--tk-fs-body-s);
  color: var(--tk-text-muted); overflow-wrap: anywhere; }
.cb .cb-imp-recs > li { padding: var(--tk-space-1) var(--tk-space-2); border: var(--tk-hairline) solid transparent; border-radius: var(--tk-radius-sm); }
.cb .cb-imp-recs > li[aria-current="true"] { border-color: var(--tk-now); color: var(--tk-text); }
.cb .cb-imp-recs b { color: var(--tk-text); margin-right: var(--tk-space-1); }
.cb .cb-imp-map { display: flex; flex-direction: column; gap: var(--tk-space-3); }
.cb .cb-imp-line { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cb .cb-imp-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.cb .cb-imp-h { font-weight: 700; color: var(--tk-text); }
.cb .cb-imp-unknown { display: flex; flex-direction: column; gap: var(--tk-space-2); }
.cb .cb-imp-unknown > .tk-h3, .cb .cb-imp-unknown > .note { margin: 0; }
.cb .cb-imp-team { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tk-space-2); overflow-wrap: anywhere; }
.cb .cb-imp-team > .tk-btn { flex: 0 0 auto; }
.cb .cb-imp-rows { display: flex; flex-direction: column; }
.cb .cb-imp-row { display: flex; flex-direction: column; gap: 6px; padding: var(--tk-space-2) 0; border-bottom: var(--tk-hairline) solid var(--tk-line); min-width: 0; }
.cb .cb-imp-row:last-child { border-bottom: 0; }
.cb .cb-imp-who, .cb .cb-imp-out { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--tk-space-2); min-width: 0; overflow-wrap: anywhere; }
.cb .cb-imp-out { font-size: var(--tk-fs-body-s); color: var(--tk-text-muted); }
.cb .cb-imp-out > .tk-chip { flex: 0 0 auto; }
.cb .cb-imp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) {
  .cb .cb-imp-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: var(--tk-space-3); }
  .cb .cb-imp-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; column-gap: var(--tk-space-3); }
  .cb .cb-imp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Reports (phase 8): the filter and period chips, the custom dates side by side; the tiles two across on a phone and
   four from 700px; each team a panel on a phone and a table row from 700px (the table scrolls inside its own box if a
   tablet is too narrow); a check-in question's words beside its mean; the Team Dashboard's players stacked on a phone
   (each figure with its own small label) and a table row from 700px. Bars are .cb-meter's, one colour, the number always
   written beside them. */
.cb .cb-dash-bar { gap: var(--tk-space-2); }
.cb .cb-dash-dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--tk-space-2); }
.cb .cb-dash-dates > .tk-field { flex: 1 1 140px; min-width: 0; }
.cb .cb-dash-dates > .cb-btns { flex: 1 1 100%; }
.cb .cb-dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cb .cb-dash-one { grid-template-columns: minmax(0, 1fr); }
.cb .cb-nodata { font-size: var(--tk-fs-body); }
.cb .cb-dash-cards { display: flex; flex-direction: column; gap: var(--tk-space-3); }
.cb .cb-dash-wrap { display: none; }
.cb .cb-dash-q { display: flex; justify-content: space-between; align-items: baseline; gap: var(--tk-space-3); padding: 6px 0;
  font-size: var(--tk-fs-body-s); color: var(--tk-text-muted); }
.cb .cb-dash-q b { color: var(--tk-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb .cb-dash-players { display: flex; flex-direction: column; border: var(--tk-hairline) solid var(--tk-line); border-radius: var(--tk-radius); overflow: hidden; }
.cb .cb-dash-pr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px var(--tk-space-2); align-items: start; padding: 8px 10px;
  background: var(--tk-card); font-size: var(--tk-fs-body-s); color: var(--tk-text-muted); overflow-wrap: anywhere; }
.cb .cb-dash-pr + .cb-dash-pr { border-top: var(--tk-hairline) solid var(--tk-line); }
.cb .cb-dash-pr > [role="rowheader"] { grid-column: 1 / -1; }
.cb .cb-dash-pr .tk-tag { margin-top: 2px; }
.cb .cb-dash-th { display: none; }
.cb .cb-dash-k { display: block; font-size: var(--tk-fs-meta); }
.cb .cb-dash-name { justify-content: flex-start; gap: 8px; padding-inline: 0; min-height: var(--tk-touch); color: var(--tk-text); text-align: left;
  font-family: var(--tk-font-body); font-size: var(--tk-fs-body-s); letter-spacing: normal; text-transform: none; }
@media (min-width: 700px) {
  .cb .cb-dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cb .cb-dash-cards { display: none; }
  /* A shade shows at an edge while there are columns past it (card-coloured covers scroll with the table and hide it at the ends). */
  .cb .cb-dash-wrap { display: block; overflow-x: auto; border: var(--tk-hairline) solid var(--tk-line); border-radius: var(--tk-radius);
    background:
      linear-gradient(to right, var(--tk-card) 40%, transparent) left / 32px 100% no-repeat local,
      linear-gradient(to left, var(--tk-card) 40%, transparent) right / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, var(--tk-line-strong), transparent) left / 14px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, var(--tk-line-strong), transparent) right / 14px 100% no-repeat scroll,
      var(--tk-card); }
  .cb .cb-dash-table { display: table; width: 100%; border-collapse: collapse; font-size: var(--tk-fs-meta); color: var(--tk-text-muted); }
  .cb .cb-dash-tr { display: table-row; }
  .cb .cb-dash-tr > span { display: table-cell; padding: 8px; vertical-align: top; border-top: var(--tk-hairline) solid var(--tk-line);
    overflow-wrap: normal; min-width: 7.5em; }
  /* Whole words in every column: each has a floor, and the table scrolls sideways in .cb-dash-wrap when it is wider. */
  .cb .cb-dash-tr > [role="rowheader"] { color: var(--tk-text); font-weight: 700; min-width: 10em; }
  .cb .cb-dash-th { display: table-row; }
  .cb .cb-dash-th > span, .cb .cb-dash-pr.cb-dash-th > span { border-top: 0; font-family: var(--tk-font-display); font-size: var(--tk-fs-label); font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--tk-text-muted); overflow-wrap: normal; }
  .cb .cb-dash-tr .cb-tags { gap: 4px; }
  .cb .cb-dash-pr { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); align-items: center; }
  .cb .cb-dash-pr.cb-dash-th { display: grid; background: transparent; }
  .cb .cb-dash-pr > [role="rowheader"] { grid-column: auto; }
  .cb .cb-dash-k { display: none; }
  .cb .cb-dash-name { min-height: var(--tk-touch); }
}
.cb .cb-dash .cb-meter__top > span:first-child { flex: 0 0 auto; white-space: nowrap; }
.cb .cb-dash .cb-meter__top > span:last-child { text-align: right; }

/* The audit log (phase 10): the three filters one under another on a phone and three across from 700px; an event's lines
   (changes, details) one under another, its UTC time under the club's local time. */
.cb .cb-aud-filters { display: flex; flex-direction: column; gap: var(--tk-space-2); }
.cb .cb-aud-line, .cb .cb-aud-utc { display: block; }
.cb .cb-aud-utc { font-size: var(--tk-fs-meta); }
@media (min-width: 700px) {
  .cb .cb-aud-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tk-space-2) var(--tk-space-3); }
}
