/* Console B, 2026-11-16. The approved "Team colors first" look for the Teams
   coach console (coach-console.html only), with the header card from the
   "Game day first" direction: a white card with a thin team-color stripe
   across the top and the team photo on the right.

   Loaded after css/console-c.css and scoped to body.c.cb, so the
   Training console (trainer-console.html, body.ux-trainer.c) never changes.

   Team color: CUI.railColor (js/console-c.js, called from
   js/console-c-teams.js and js/console-c-training.js) sets --b-rail (the team color, darkened
   with its hue kept until white text on it clears 7:1, so lime or yellow is
   never a large bright fill behind words), --b-rail-rgb and --b-rail-deep.
   The side menu, the header stripe and the main buttons use it. Status colors
   stay fixed: amber means the coach needs to act, blue means money. */

:root { --b-rail: #0B2D5B; --b-rail-rgb: 11,45,91; --b-rail-deep: #08203F; }

body.c.cb {
  --b-team-ink: var(--brand-ink);
  --b-team-soft: rgba(var(--brand-rgb), .16);
  --b-warn: var(--c-need-ink); --b-warn-soft: var(--c-need-band);
  --b-money: var(--c-money-ink); --b-money-soft: var(--c-money-band);
  --b-shadow: 0 1px 2px rgba(0,0,0,.25);
  --b-r: 20px;
}
:root[data-theme="light"] body.c.cb {
  --c-bg: #F3F5F8; --c-surface: #FFFFFF; --c-raised: #EEF1F5; --c-hover: #F1F4F8;
  --c-line: rgba(11,30,60,.10); --c-line2: rgba(11,30,60,.18);
  --c-ink: #121A26; --c-ink2: #3F4A5A; --c-ink3: #5A6475;
  --c-gray-band: #EEF1F5;
  --b-team-ink: var(--b-rail);
  --b-team-soft: rgba(var(--b-rail-rgb), .09);
  --b-warn: #9A4E0C; --b-warn-soft: #FBEBDC;
  --b-money: #1E55A8; --b-money-soft: #E3EDFB;
  --b-shadow: 0 1px 2px rgba(11,30,60,.05);
}

/* ── Main buttons: the team color (shaded when it is light) ───────── */
body.c.cb button.primary, body.c.cb .c-btn.primary {
  background: var(--b-rail); color: #fff; border: 1px solid transparent; box-shadow: 0 6px 16px rgba(var(--b-rail-rgb), .22); }
body.c.cb button.primary:hover, body.c.cb .c-btn.primary:hover { background: var(--b-rail); color: #fff; filter: brightness(1.12); }
:root:not([data-theme="light"]) body.c.cb button.primary, :root:not([data-theme="light"]) body.c.cb .c-btn.primary { border-color: rgba(255,255,255,.18); }
body.c.cb .c-btn { background: var(--c-surface); }
body.c.cb .c-btn:hover { background: var(--c-hover); }
body.c.cb .c-btn.need { background: var(--c-need); color: var(--c-on-need); }

/* ── Side menu: the team color, top to bottom ─────────────────────── */
body.c.cb .ux-side { background: linear-gradient(180deg, var(--b-rail) 0%, var(--b-rail) 55%, var(--b-rail-deep) 100%) !important; border-right: 0 !important; color: #fff; scrollbar-color: rgba(255,255,255,.25) transparent; }
body.c.cb .c-teamblock.b-teamblock { flex: none; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-height: 0; padding: 26px 16px 18px; margin: 0; background: transparent; border: 0; color: #fff; }
body.c.cb .b-tb-tile { display: grid; place-items: center; flex: none; width: 112px; height: 112px; border-radius: 28px; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.25); margin-bottom: 8px; overflow: hidden; }
body.c.cb .b-tb-tile .c-tb-logo { width: 84%; height: 84%; border-radius: 0; object-fit: contain; background: transparent !important; box-shadow: none !important; }
body.c.cb .b-tb-tile .c-tb-logo.c-logo-mono { width: 100%; height: 100%; display: grid; place-items: center; color: var(--b-rail); font-size: 38px; }
body.c.cb .b-teamblock .c-tb-text { flex: none; width: 100%; }
body.c.cb .b-teamblock .c-tb-text b { color: #fff; font-size: 19px; line-height: 1.25; -webkit-line-clamp: 2; }
body.c.cb .b-teamblock .c-tb-text small { color: rgba(255,255,255,.84); font-size: 16px; margin-top: 2px; }
body.c.cb .b-switch { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; min-height: 40px !important; height: 40px; padding: 0 16px !important; border-radius: 99px !important; border: 1px solid rgba(255,255,255,.34) !important; background: transparent !important; color: #fff !important; font-size: 15px !important; font-weight: 600 !important; cursor: pointer; }
body.c.cb .b-switch:hover { background: rgba(255,255,255,.12) !important; }
body.c.cb .b-switch:focus-visible, body.c.cb .ux-side :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

body.c.cb #tabnav .tab, body.c.cb #more-menu .more-item { color: rgba(255,255,255,.88) !important; font-weight: 550 !important; min-height: 44px !important; }
body.c.cb #tabnav .tab svg.pi, body.c.cb #more-menu .more-item svg.pi { color: rgba(255,255,255,.78) !important; }
body.c.cb #tabnav .tab:hover, body.c.cb #more-menu .more-item:hover { background: rgba(255,255,255,.10) !important; color: #fff !important; }
body.c.cb #tabnav .tab.active, body.c.cb #more-menu .more-item.active { background: #fff !important; color: var(--b-rail) !important; font-weight: 700 !important; }
body.c.cb #tabnav .tab.active svg.pi, body.c.cb #more-menu .more-item.active svg.pi { color: var(--b-rail) !important; }
body.c.cb #tabnav .tab.active::before, body.c.cb #more-menu .more-item.active::before { display: none; }
body.c.cb .ux-side .ux-label { color: rgba(255,255,255,.76) !important; }
body.c.cb .ux-side .ux-chev { stroke: rgba(255,255,255,.7); }
body.c.cb #tabnav .tab[data-tab="messages"] .count { background: #fff !important; }
body.c.cb #tabnav .tab.active[data-tab="messages"] .count { background: var(--b-rail) !important; }
body.c.cb .ux-side .ux-miss { display: none !important; }
body.c.cb .ux-side > nav, body.c.cb .ux-side > .c-help { flex: none; }

body.c.cb .c-help { bottom: 56px; background: var(--b-rail-deep) !important; box-shadow: none !important; border-top: 1px solid rgba(255,255,255,.14) !important; color: rgba(255,255,255,.88) !important; }
body.c.cb .c-help:hover { color: #fff !important; background: var(--b-rail-deep) !important; }
body.c.cb .c-help svg { color: rgba(255,255,255,.78); }
body.c.cb .b-powered { position: sticky; bottom: 0; z-index: 30; flex: none; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 24px; background: var(--b-rail-deep); }
body.c.cb .b-lock-i { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 4px 10px rgba(0,0,0,.25); }
body.c.cb .b-lock-w { height: 16px; width: auto; opacity: .95; }

/* The team picker opens under Switch team. */
body.c.cb .c-switch { background: var(--c-surface); color: var(--c-ink); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
body.c.cb .c-sw-item.on { background: var(--b-team-soft) !important; }
body.c.cb .c-sw-item > svg:last-child { color: var(--b-team-ink); }
body.c.cb .c-sw-logo { background: #fff; box-shadow: 0 0 0 1px var(--c-line); }

/* ── Top bar ───────────────────────────────────────────────────────── */
body.c.cb .topbar { background: color-mix(in srgb, var(--c-bg) 92%, transparent) !important; }
body.c.cb .topbar .ux-search { background: var(--c-surface); border-color: var(--c-line); width: 420px; height: 46px; border-radius: 13px; }
body.c.cb #notif-btn, body.c.cb .sm-theme-btn { width: 44px !important; height: 44px !important; border-radius: 12px !important; background: var(--c-surface) !important; border: 1px solid var(--c-line) !important; color: var(--c-ink2) !important; }
body.c.cb .acct-av { background: var(--b-team-soft) !important; color: var(--b-team-ink) !important; }
body.c.cb .b-mteam, body.c.cb .b-tabs, body.c.cb .b-scrim { display: none; }

/* ── Page header ───────────────────────────────────────────────────── */
body.c.cb #c-head { max-width: 1240px; padding-top: 6px; }
body.c.cb main { max-width: 1240px !important; }
body.c.cb .c-ph-tile { background: var(--b-rail); color: #fff; box-shadow: none; border: 0; width: 64px; height: 64px; border-radius: 18px; }
body.c.cb .c-ph-title { font-size: 34px; letter-spacing: -0.02em; }
body.c.cb .c-ph:not(.b-hd) .c-ph-logo { width: 72px; height: 72px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--c-line), 0 6px 16px rgba(11,30,60,.08); }
body.c.cb .c-ph-purpose { font-size: 17px; }
/* Home, Roster and Organization: the white card with the team stripe. */
body.c.cb .c-ph.b-hd { position: relative; overflow: hidden; margin: 6px 0 4px; padding: 34px 28px 24px; border: 1px solid var(--c-line); border-radius: 24px; background: var(--c-surface); box-shadow: var(--b-shadow); }
body.c.cb .b-hd-stripe { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--b-rail); }
:root:not([data-theme="light"]) body.c.cb .b-hd-stripe { background: var(--brand-ink); }
body.c.cb .b-hd .c-ph-in { gap: 24px; }
body.c.cb .b-hd-tile { display: grid; place-items: center; flex: none; width: 84px; height: 84px; border-radius: 22px; background: var(--b-team-soft); overflow: hidden; }
:root[data-theme="light"] body.c.cb .b-hd-tile { background: #fff; box-shadow: 0 0 0 1px var(--c-line), 0 6px 16px rgba(11,30,60,.08); }
body.c.cb .b-hd-tile .c-ph-logo { width: 82%; height: 82%; border-radius: 0; object-fit: contain; background: transparent !important; box-shadow: none !important; }
body.c.cb .b-hd-tile .c-ph-logo.c-logo-mono { width: 100%; height: 100%; display: grid; place-items: center; background: var(--b-rail) !important; color: #fff; font-size: 30px; }
body.c.cb .b-hd-kick { margin: 0 0 4px; font-size: 16px; font-weight: 650; color: var(--b-team-ink); }
body.c.cb .b-hd-kick span + span::before { content: "\00B7"; margin: 0 .45em; }
body.c.cb .b-hd .c-ph-title { font-size: 30px; line-height: 1.15; }
body.c.cb .b-hd-home .c-ph-title { font-size: 36px; }
body.c.cb .b-hd .c-ph-purpose { margin-top: 6px; color: var(--c-ink2); }
body.c.cb .b-hd-photo { flex: none; margin-left: auto; width: 230px; height: 132px; object-fit: cover; border-radius: 18px; box-shadow: 0 8px 22px rgba(11,30,60,.14); }
body.c.cb .b-hd .c-ph-acts { margin-left: auto; }
body.c.cb .b-hd.has-photo .c-ph-acts { margin-left: 0; }

/* ── Section cards on every page: plain white cards ───────────────── */
body.c.cb .c-band, body.c.cb .c-panel, body.c.cb .c-card { border-radius: var(--b-r) !important; background: var(--c-surface) !important; box-shadow: var(--b-shadow) !important; }
body.c.cb .c-band-h, body.c.cb .c-panel > .ph { background: transparent !important; min-height: 58px; }
body.c.cb .c-band-h h2, body.c.cb .c-panel > .ph h2,
body.c.cb .b-need .c-band-h h2, body.c.cb .b-money .c-band-h h2, body.c.cb .b-done .c-band-h h2,
body.c.cb .c-panel.b-need > .ph h2, body.c.cb .c-panel.b-money > .ph h2, body.c.cb .c-panel.b-done > .ph h2 { color: var(--c-ink) !important; }
body.c.cb .c-sq { width: 34px; height: 34px; background: var(--c-raised); color: var(--c-ink2); }
body.c.cb .b-need .c-sq { background: var(--b-warn-soft); color: var(--b-warn); }
body.c.cb .b-money .c-sq { background: var(--b-money-soft); color: var(--b-money); }
body.c.cb .b-done .c-sq { background: var(--c-done-band); color: var(--c-done-ink); }
body.c.cb .b-brand .c-sq { background: var(--b-team-soft); color: var(--b-team-ink); }
body.c.cb .c-moneyline { background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--b-shadow); }

/* ── Home ──────────────────────────────────────────────────────────── */
body.c.cb .b-quick { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 22px; }
body.c.cb .b-qa { display: inline-flex; align-items: center; gap: 10px; min-height: 52px !important; height: auto; padding: 0 20px !important; border-radius: 14px !important; border: 1px solid var(--c-line) !important; background: var(--c-surface) !important; color: var(--c-ink) !important; font-size: 16.5px !important; font-weight: 620 !important; box-shadow: var(--b-shadow); cursor: pointer; }
body.c.cb .b-qa svg { color: var(--b-team-ink); }
body.c.cb .b-qa:hover { background: var(--c-hover) !important; }
body.c.cb .b-qa.primary { background: var(--b-rail) !important; color: #fff !important; border-color: transparent !important; }
body.c.cb .b-qa.primary svg { color: #fff; }
:root:not([data-theme="light"]) body.c.cb .b-qa.primary { border-color: rgba(255,255,255,.18) !important; }

body.c.cb .b-home { display: grid !important; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); gap: 20px; align-items: start; }
body.c.cb .b-col { display: grid; gap: 20px; align-content: start; min-width: 0; }
body.c.cb .b-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--b-r); box-shadow: var(--b-shadow); overflow: hidden; }
body.c.cb .b-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 22px 6px; }
body.c.cb .b-card-h h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 720; color: var(--c-ink); }
body.c.cb .b-card-r { display: flex; align-items: baseline; gap: 12px; flex: none; }
body.c.cb .b-card-r small { color: var(--c-ink3); font-size: 15px; }
body.c.cb .b-link { color: var(--c-ink2) !important; font-size: 16px !important; font-weight: 620 !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-line2); min-height: 0 !important; height: auto !important; padding: 0 !important; }
body.c.cb .b-link:hover { color: var(--c-ink) !important; text-decoration-color: currentColor; }
body.c.cb .b-card-sub { margin: 0; padding: 0 22px; font-size: 16.5px; line-height: 1.5; color: var(--c-ink2); }
body.c.cb .b-empty { padding: 6px 22px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
body.c.cb .b-empty p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--c-ink2); }
body.c.cb .b-foot { padding: 4px 22px 18px; }
body.c.cb .b-mut { margin: 8px 0 0; font-size: 15.5px; color: var(--c-ink3); }

/* Waiting on you: label, one sentence, one button. */
body.c.cb .b-list { list-style: none; margin: 0; padding: 4px 10px 10px; }
body.c.cb .b-item { display: flex; align-items: center; gap: 14px; padding: 14px 12px; }
body.c.cb .b-item + .b-item { border-top: 1px solid var(--c-line); }
body.c.cb .b-item-t { flex: 1; min-width: 0; }
body.c.cb .b-item-t p { margin: 0; font-size: 16.5px; line-height: 1.45; color: var(--c-ink); }
body.c.cb .b-tag { display: block; font-size: 15px !important; font-weight: 650; color: var(--c-ink3); margin-bottom: 1px; }
body.c.cb .b-item > .c-btn { flex: none; }
body.c.cb .b-kind-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; align-self: flex-start; margin-top: 2px; background: var(--b-team-soft); color: var(--b-team-ink); }
body.c.cb :is(.k-health, .k-rsvp, .k-ride, .k-clear) > .b-kind-ic { background: var(--b-warn-soft); color: var(--b-warn); }
body.c.cb .k-fee > .b-kind-ic { background: var(--b-money-soft); color: var(--b-money); }

/* New messages */
body.c.cb .b-msg-i { width: 100%; text-align: left; align-items: flex-start; border: 0; border-radius: 12px; background: transparent; color: var(--c-ink); min-height: 0; height: auto; font-weight: 400; cursor: pointer; }
body.c.cb .b-msg-i:hover { background: var(--c-hover); }
body.c.cb .b-av { width: 40px; height: 40px; background: var(--b-team-soft); color: var(--b-team-ink); font-size: 15px; }
body.c.cb .b-msg-who { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
body.c.cb .b-msg-who b { font-size: 16.5px; font-weight: 650; }
body.c.cb .b-msg-who small { font-size: 15px; color: var(--c-ink3); }
body.c.cb .b-msg-p { display: block; font-size: 16px; color: var(--c-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.c.cb .b-msg-i time { flex: none; font-size: 15px; color: var(--c-ink3); margin-top: 2px; }

/* Game day timeline */
body.c.cb .b-tl { list-style: none; margin: 12px 0 0; padding: 4px 22px 10px; }
body.c.cb .b-tl li { position: relative; display: grid; grid-template-columns: 84px 18px minmax(0,1fr); gap: 10px; padding: 8px 0; }
body.c.cb .b-tl li::before { content: ""; position: absolute; left: 102px; top: 0; bottom: 0; width: 2px; background: var(--c-line); }
body.c.cb .b-tl li:first-child::before { top: 20px; }
body.c.cb .b-tl li:last-child::before { bottom: calc(100% - 20px); }
body.c.cb .b-tl li:only-child::before { display: none; }
body.c.cb .b-tl time { text-align: right; font-size: 16px; font-weight: 620; color: var(--c-ink2); padding-top: 1px; white-space: nowrap; }
body.c.cb .b-tl-dot { position: relative; z-index: 1; width: 12px; height: 12px; margin: 7px 0 0 3px; border-radius: 50%; background: var(--c-surface); border: 2px solid var(--b-team-ink); }
body.c.cb .b-tl li.big .b-tl-dot { background: var(--b-team-ink); }
body.c.cb .b-tl-t b { display: block; font-size: 17px; line-height: 1.35; font-weight: 640; color: var(--c-ink); }
body.c.cb .b-tl li.big .b-tl-t b { font-size: 18px; font-weight: 700; }
body.c.cb .b-tl-t small { display: block; font-size: 16px; line-height: 1.45; color: var(--c-ink2); }
body.c.cb .b-game-note { margin: 0 22px 8px; font-size: 16px; color: var(--c-ink2); }
body.c.cb .b-game .ch-av { margin: 4px 22px 4px; }
body.c.cb .b-game .ch-av > svg { color: var(--b-team-ink); }
body.c.cb .b-game-go { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 22px 20px; }
body.c.cb .b-game #sf-home:not(:empty) { margin: 0 22px 20px; }

/* Last announcement */
body.c.cb .b-ann { padding: 6px 22px 22px; }
body.c.cb .b-ann-t { margin: 0; font-size: 17.5px; line-height: 1.35; font-weight: 660; color: var(--c-ink); }
body.c.cb .b-ann-w { display: block; margin-top: 2px; font-size: 15px; color: var(--c-ink3); }
body.c.cb .b-ann-p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--c-ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.c.cb .b-seen { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--c-raised); }
body.c.cb .b-seen p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--c-ink); }
body.c.cb .b-seen .b-link { margin-left: 4px; }
body.c.cb .b-seen-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--c-done-band); color: var(--c-done-ink); }
body.c.cb .b-seen.need .b-seen-ic { background: var(--b-warn-soft); color: var(--b-warn); }
body.c.cb .b-ann > .c-btn { white-space: normal; height: auto; min-height: 42px; padding-top: 8px; padding-bottom: 8px; text-align: left; }

/* Later this week */
body.c.cb .b-wk-list { padding: 4px 0 8px; }
body.c.cb .b-wk { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 62px !important; height: auto; padding: 12px 22px !important; border: 0 !important; border-top: 1px solid var(--c-line) !important; border-radius: 0 !important; background: transparent !important; color: var(--c-ink) !important; text-align: left; font-weight: 400 !important; cursor: pointer; }
body.c.cb .b-wk:first-child { border-top: 0 !important; }
body.c.cb .b-wk:hover { background: var(--c-hover) !important; }
body.c.cb .b-wk-day { width: 110px; flex: none; font-size: 16px; font-weight: 680; }
body.c.cb .b-wk-day small { display: block; font-size: 15px; font-weight: 500; color: var(--c-ink3); }
body.c.cb .b-wk-main { flex: 1; min-width: 0; }
body.c.cb .b-wk-t { display: block; font-size: 16.5px; font-weight: 650; }
body.c.cb .b-wk-s { display: block; font-size: 15.5px; color: var(--c-ink3); }
body.c.cb .b-kind { flex: none; font-size: 15px; font-weight: 650; padding: 4px 10px; border-radius: 8px; background: var(--c-raised); color: var(--c-ink2); }
body.c.cb .b-kind.k-game, body.c.cb .b-kind.k-meet { background: var(--b-team-soft); color: var(--b-team-ink); }

@media (max-width: 1100px) {
  body.c.cb .b-home { grid-template-columns: minmax(0,1fr); }
  body.c.cb .b-hd-photo { width: 180px; height: 112px; }
}

/* ── Phone and tablet: team top bar, bottom tabs, menu as a drawer ── */
@media (max-width: 900px) {
  body.c.cb .ux-side {
    position: fixed !important; top: 0 !important; left: 0; bottom: 0; z-index: 3000;
    width: min(86vw, 320px); height: 100% !important; max-height: none !important;
    flex-direction: column !important; align-items: stretch !important; gap: 0 !important; padding: 0 !important;
    overflow-x: hidden !important; overflow-y: auto !important;
    transform: translateX(-104%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s;
    border-bottom: 0 !important;
  }
  body.c.cb.b-drawer-open .ux-side { transform: none; visibility: visible; transition: transform .22s ease; box-shadow: 20px 0 50px rgba(0,0,0,.35); }
  body.c.cb .c-teamblock.b-teamblock { padding: 24px 16px 16px; gap: 6px; }
  body.c.cb .b-teamblock .b-tb-tile { width: 84px; height: 84px; border-radius: 22px; }
  body.c.cb .b-teamblock .c-tb-text { display: block !important; }
  body.c.cb #tabnav, body.c.cb #more-menu { display: flex !important; flex-direction: column !important; align-items: stretch !important; flex-wrap: nowrap !important; padding: 0 12px !important; }
  body.c.cb .ux-group { display: block !important; }
  body.c.cb #tabnav #more-menu { padding: 0 !important; }
  body.c.cb .ux-side .ux-label { display: flex !important; }
  body.c.cb #tabnav .tab, body.c.cb #more-menu .more-item { width: 100% !important; }
  body.c.cb .c-help { position: sticky !important; bottom: 56px; margin: auto 0 0 !important; min-height: 52px !important; padding: 0 24px !important; border-top: 1px solid rgba(255,255,255,.14) !important; background: var(--b-rail-deep) !important; }
  body.c.cb .b-scrim { display: block; position: fixed; inset: 0; z-index: 2990; background: rgba(8,12,20,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.c.cb.b-drawer-open .b-scrim { opacity: 1; pointer-events: auto; }

  body.c.cb .topbar { position: sticky !important; top: 0; z-index: 60; display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 8px !important; height: auto !important; min-height: 68px; padding: 10px 16px !important; background: var(--b-rail) !important; border: 0 !important; }
  body.c.cb .topbar .ux-search { display: none !important; }
  body.c.cb .b-mteam { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; margin-right: auto; padding: 0 !important; min-height: 48px !important; height: auto; border: 0 !important; background: transparent !important; color: #fff !important; text-align: left; font-weight: 400 !important; cursor: pointer; }
  body.c.cb .b-mteam .b-tb-tile.sm { width: 44px; height: 44px; border-radius: 12px; margin: 0; box-shadow: none; }
  body.c.cb .b-mteam-t { min-width: 0; }
  body.c.cb .b-mteam-t b { display: block; font-size: 17px; line-height: 1.2; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.c.cb .b-mteam-t small { display: block; font-size: 15px; color: rgba(255,255,255,.84); }
  body.c.cb .topbar #notif-btn, body.c.cb .topbar .sm-theme-btn { background: transparent !important; border-color: rgba(255,255,255,.3) !important; color: #fff !important; flex: none; }
  body.c.cb .topbar #notif-btn svg { stroke: #fff; }
  body.c.cb .topbar .acct-btn { padding: 0 !important; min-width: 0; flex: none; }
  body.c.cb .topbar #acct-label { display: none; }
  body.c.cb .topbar .acct-av { background: #fff !important; color: var(--b-rail) !important; }
  body.c.cb .topbar #team-select { display: none; }

  body.c.cb .b-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2500; background: color-mix(in srgb, var(--c-surface) 97%, transparent); border-top: 1px solid var(--c-line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); backdrop-filter: blur(10px); }
  body.c.cb .b-tabs button { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px !important; height: auto; padding: 4px 2px !important; border: 0 !important; border-radius: 12px !important; background: transparent !important; color: var(--c-ink3) !important; font-size: 15px !important; font-weight: 600 !important; }
  body.c.cb .b-tabs button[hidden] { display: none; }
  body.c.cb .b-tabs button.on { color: var(--b-team-ink) !important; }
  body.c.cb .b-tabs button.on svg { color: var(--b-team-ink); }
  body.c.cb main { padding-bottom: 110px !important; }
  body.c.cb.b-drawer-open { overflow: hidden; }
}
@media (max-width: 600px) {
  body.c.cb #c-head { padding: 8px 16px 0 !important; }
  body.c.cb main { padding-left: 16px !important; padding-right: 16px !important; }
  body.c.cb .c-ph.b-hd { padding: 24px 18px 18px; border-radius: 20px; }
  body.c.cb .b-hd .c-ph-in { flex-wrap: wrap; gap: 14px 16px; align-items: flex-start; }
  body.c.cb .b-hd-tile { width: 60px; height: 60px; border-radius: 16px; }
  body.c.cb .b-hd .c-ph-text { flex: 1 1 calc(100% - 80px); }
  body.c.cb .b-hd .c-ph-title, body.c.cb .b-hd-home .c-ph-title { font-size: 26px; }
  body.c.cb .b-hd .c-ph-purpose { font-size: 16.5px; }
  body.c.cb .b-hd-kick { font-size: 15px; }
  body.c.cb .b-hd-photo { order: 3; width: 100%; height: 124px; margin: 4px 0 0; }
  body.c.cb .b-hd .c-ph-acts { flex: 1 1 100%; margin: 0; }
  body.c.cb .c-ph-title { font-size: 28px; }
  body.c.cb .c-ph-tile { width: 52px; height: 52px; border-radius: 14px; }

  body.c.cb .b-quick { gap: 8px; }
  body.c.cb .b-qa { flex: 1 1 calc(50% - 4px); justify-content: center; padding: 8px 12px !important; white-space: normal; text-align: center; line-height: 1.25; }
  body.c.cb .b-qa.primary { flex-basis: 100%; }
  body.c.cb .b-card-h { padding: 18px 16px 6px; }
  body.c.cb .b-card-sub, body.c.cb .b-ann, body.c.cb .b-empty { padding-left: 16px; padding-right: 16px; }
  body.c.cb .b-list { padding: 4px 4px 8px; }
  body.c.cb .b-item:not(.b-msg-i) { flex-wrap: wrap; }
  body.c.cb .b-item:not(.b-msg-i) .b-item-t { flex: 1 1 calc(100% - 60px); }
  body.c.cb .b-item:not(.b-msg-i) > .c-btn { margin-left: 54px; white-space: normal; height: auto; min-height: 44px; }
  body.c.cb .b-tl { padding: 4px 16px 8px; }
  body.c.cb .b-tl li { grid-template-columns: 74px 18px minmax(0,1fr); }
  body.c.cb .b-tl li::before { left: 92px; }
  body.c.cb .b-game .ch-av, body.c.cb .b-game-note { margin-left: 16px; margin-right: 16px; }
  body.c.cb .b-game-go { padding: 12px 16px 18px; }
  body.c.cb .b-wk { padding: 12px 16px !important; gap: 12px; }
  body.c.cb .b-wk-day { width: 86px; }
  body.c.cb .b-wk .b-kind { display: none; }
}
/* Two pages that ran wider than a phone before this redesign. */
@media (max-width: 600px) {
  body.c.cb #tab-strength table { display: block; max-width: 100%; overflow-x: auto; }
  body.c.cb #tab-volunteers .bc-item .h { flex-wrap: wrap; row-gap: 6px; }
  body.c.cb #tab-volunteers .bc-item .c-chip { white-space: normal; height: auto; min-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  body.c.cb .ux-side, body.c.cb .b-scrim { transition: none !important; }
}

/* ── Every page uses the striped header card (2026-11-17) ─────────── */
/* Events: the list is a set of rows, the event screen sits in soft cards. */
body.c.cb #cev-new { display: none; }
body.c.cb .cev-list { list-style: none; margin: 0; padding: 4px 10px 10px; }
body.c.cb .cev-list li + li { border-top: 1px solid var(--c-line); }
body.c.cb .cev-li { display: flex; align-items: center; gap: 18px; width: 100%; min-height: 72px !important; height: auto; padding: 14px 12px !important; border: 0 !important; border-radius: 12px !important; background: transparent !important; color: var(--c-ink) !important; text-align: left; font-weight: 400 !important; cursor: pointer; }
body.c.cb .cev-li:hover { background: var(--c-hover) !important; }
body.c.cb .cev-li-t { flex: 1; min-width: 0; }
body.c.cb .cev-li-t b { display: block; font-size: 17px; line-height: 1.35; font-weight: 660; }
body.c.cb .cev-li-t small { display: block; margin-top: 2px; font-size: 16px; color: var(--c-ink2); }
body.c.cb .cev-li-n { flex: none; min-width: 84px; font-size: 16px; color: var(--c-ink2); }
body.c.cb .cev-li-n b { color: var(--c-ink); font-weight: 680; font-variant-numeric: tabular-nums; }
body.c.cb .cev-li .pill { flex: none; }
body.c.cb .cev { --ev-s1: var(--c-surface); --ev-s2: var(--c-raised); --ev-line: var(--c-line); --ev-ink: var(--c-ink); --ev-ink2: var(--c-ink2); }
body.c.cb .cev-box { border: 1px solid var(--c-line); border-radius: var(--b-r); box-shadow: var(--b-shadow); background: var(--c-surface); }
body.c.cb .cev-mast { padding: 22px 24px 20px; margin-bottom: 18px; }
body.c.cb .cev-logo { width: 64px; height: 64px; border-radius: 18px; background: #fff; border: 0; box-shadow: 0 0 0 1px var(--c-line); }
body.c.cb .cev-logo img { width: 52px; height: 52px; }
body.c.cb .cev-mt h2 { font-size: 26px; line-height: 1.25; font-weight: 720; }
body.c.cb .cev-meta { font-size: 16px; }
body.c.cb .cev-ph .cev-pl { font-size: 16px; }
body.c.cb .cev-ph .cev-ps { font-size: 15px; }
body.c.cb .cev-ph { border-radius: 12px; padding: 10px 14px; }
body.c.cb .cev-tabs button { font-size: 16px; padding: 14px 14px 12px; }
body.c.cb .cev-body { padding: 20px 24px 24px; }
body.c.cb .cev-h h3 { font-size: 18px; font-weight: 700; }
body.c.cb .cev-h .small, body.c.cb .cev-calm, body.c.cb .cev-need, body.c.cb .cev-note { font-size: 16px; }
body.c.cb .cev-tbl { font-size: 15.5px; }
body.c.cb .cev-tbl th { font-size: 15px; }
body.c.cb .cev-chip { font-size: 14px; }
body.c.cb .cev-acts button { min-height: 42px; font-size: 15.5px; }
@media (max-width: 600px) {
  body.c.cb .cev-list { padding: 4px 4px 8px; }
  body.c.cb .cev-li { flex-wrap: wrap; gap: 6px 14px; }
  body.c.cb .cev-li-t { flex: 1 1 100%; }
  body.c.cb .cev-li-n { min-width: 0; }
  body.c.cb .cev-li .pill { margin-left: auto; }
  body.c.cb .cev-mast { padding: 18px 16px; }
  body.c.cb .cev-body { padding: 16px; }
}
/* The open event's name, dates and place sit in the page header above. */
body.c.cb .cev-mast .cev-logo, body.c.cb .cev-mast .cev-name-t, body.c.cb .cev-mast .cev-meta { display: none; }
body.c.cb .cev-mast .cev-mrow { align-items: center; }
body.c.cb .cev-mast .cev-mt h2 { font-size: 16px; }

/* Page sub-tabs (Strength, Signups, Announcements) read the same on every
   page: one soft row of 16px tabs, the open one white with the team color. */
body.c.cb :is(#str-subtab, #reg-subtab, #bc-subtab) { display: inline-flex !important; flex-wrap: wrap; gap: 4px !important; padding: 4px !important; margin: 2px 0 18px !important; border-radius: 14px !important; background: var(--c-raised) !important; border: 1px solid var(--c-line) !important; }
body.c.cb :is(#str-subtab, #reg-subtab, #bc-subtab) .chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px !important; border: 0 !important; border-radius: 10px !important; background: transparent !important; color: var(--c-ink2) !important; font-size: 16px !important; font-weight: 600 !important; box-shadow: none !important; cursor: pointer; }
body.c.cb :is(#str-subtab, #reg-subtab, #bc-subtab) .chip:hover { color: var(--c-ink) !important; }
body.c.cb :is(#str-subtab, #reg-subtab, #bc-subtab) .chip.active { background: var(--c-surface) !important; color: var(--b-team-ink) !important; font-weight: 700 !important; box-shadow: var(--b-shadow), 0 0 0 1px var(--c-line) !important; }

/* Team setup: a folded section shows only its first heading. */
body.c.cb .c-fold:not(.c-open) > .ph ~ .ph { display: none !important; }

/* Chats list and the announcement composer at the shared text sizes. */
body.c.cb #tab-messages .conv-item .t { font-size: 16px; }
body.c.cb #tab-messages .conv-item .p { font-size: 15px; }
body.c.cb #tab-broadcasts h4 { font-size: 15px; }
/* Calendar view switch: the same soft tabs as the page sub-tabs. */
body.c.cb .smc-seg.smc-views { gap: 4px; padding: 3px; border-color: var(--c-line); background: var(--c-raised); border-radius: 13px; }
body.c.cb .smc-seg.smc-views button { border-left: 0 !important; border-radius: 10px !important; }
body.c.cb .smc-seg.smc-views button.on { background: var(--c-surface) !important; color: var(--b-team-ink) !important; box-shadow: var(--b-shadow), 0 0 0 1px var(--c-line) !important; }
@media (max-width: 600px) {
  body.c.cb :is(#str-subtab, #reg-subtab, #bc-subtab) { display: flex !important; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  body.c.cb :is(#str-subtab, #reg-subtab, #bc-subtab) .chip { flex: none; white-space: nowrap; }
  body.c.cb .b-hd .c-ph-acts { display: flex; flex-wrap: wrap; gap: 8px; }
}

/* ── Training console (body.ux-trainer.c.cb, 2026-11-18 mockup) ───────
   The same side menu, header card, cards and phone bars as the Teams
   console above, in the business color. Only the Training console's own
   markup is mapped here: its menu is .ux-side .nav [data-go] with .on. */
body.ux-trainer.c.cb .ux-side { display: flex; flex-direction: column; }
body.ux-trainer.c.cb .ux-side .nav { flex: none; }
body.ux-trainer.c.cb .ux-side .nav button { color: rgba(255,255,255,.88) !important; font-weight: 550 !important; min-height: 44px !important; }
body.ux-trainer.c.cb .ux-side .nav button svg { color: rgba(255,255,255,.78) !important; }
body.ux-trainer.c.cb .ux-side .nav button:hover { background: rgba(255,255,255,.10) !important; color: #fff !important; }
body.ux-trainer.c.cb .ux-side .nav button.on { background: #fff !important; color: var(--b-rail) !important; font-weight: 700 !important; }
body.ux-trainer.c.cb .ux-side .nav button.on svg { color: var(--b-rail) !important; }
body.ux-trainer.c.cb .ux-side .nav button.on::before { display: none; }
body.ux-trainer.c.cb .ux-side .nav button[data-go="messages"] .count { background: #fff !important; }
body.ux-trainer.c.cb .ux-side .nav button.on[data-go="messages"] .count { background: var(--b-rail) !important; }
body.ux-trainer.c.cb .ux-side .nav button.nav-sub { padding-left: 44px !important; font-size: 15.5px !important; }
body.ux-trainer.c.cb .b-powered { margin-top: auto; }
body.ux-trainer.c.cb .c-teamblock.b-teamblock { padding: 26px 16px 20px; }

/* Header card: the coach page width, the business line in the brand ink. */
body.ux-trainer.c.cb #c-head { max-width: 1500px; padding-top: 14px; }
body.ux-trainer.c.cb #view-home #home-brand .c-ph.b-hd { margin: 0; }
body.ux-trainer.c.cb .b-hd .c-ph-acts { flex: none; }
body.ux-trainer.c.cb .b-hd .c-ph-acts .c-btn { height: 48px; }
/* The topbar keeps Invite on the business color. */
body.ux-trainer.c.cb .topbar #invite-btn { background: var(--b-rail); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(var(--b-rail-rgb), .22); }
body.ux-trainer.c.cb .topbar .acct summary { background: var(--c-surface); border: 1px solid var(--c-line); }

/* Home: white cards, tone only on the icon square (as on the Teams Home). */
body.ux-trainer.c.cb #view-home .c-band { border: 1px solid var(--c-line); }
body.ux-trainer.c.cb #view-home .c-band-h { border-bottom: 1px solid var(--c-line); }

/* Clients: the list is a white card of rows; the import links sit above it. */
body.ux-trainer.c.cb #view-clients .col.players { background: transparent; }
body.ux-trainer.c.cb .plist { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--b-r); box-shadow: var(--b-shadow); overflow: hidden; }
body.ux-trainer.c.cb .plist .thead { background: var(--c-surface); }
body.ux-trainer.c.cb .plist .trow:hover { background: var(--c-hover); }
body.ux-trainer.c.cb .lfilter .seg, body.ux-trainer.c.cb .lfilter .chips { background: var(--c-raised); border: 1px solid var(--c-line); border-radius: 14px; padding: 4px; gap: 4px; }
body.ux-trainer.c.cb .lfilter .seg button, body.ux-trainer.c.cb .lfilter .chips button { border: 0 !important; border-radius: 10px !important; background: transparent !important; color: var(--c-ink2) !important; box-shadow: none !important; }
body.ux-trainer.c.cb .lfilter .seg button.on, body.ux-trainer.c.cb .lfilter .chips button.on,
body.ux-trainer.c.cb .lfilter .seg button[aria-pressed="true"], body.ux-trainer.c.cb .lfilter .chips button[aria-pressed="true"] { background: var(--c-surface) !important; color: var(--b-team-ink) !important; font-weight: 700 !important; box-shadow: var(--b-shadow), 0 0 0 1px var(--c-line) !important; }

/* Client page: the same soft sub-tabs as Strength and Signups on Teams. */
body.ux-trainer.c.cb #detail-body .tab.on, body.ux-trainer.c.cb #detail-body .tab[aria-selected="true"] { color: var(--b-team-ink) !important; border-bottom-color: var(--b-rail) !important; }

/* Plans, Chats, Calendar and the tool pages sit in white cards. */
body.ux-trainer.c.cb #view-messages .col { background: var(--c-surface); }

/* ── Training on a phone: business top bar, bottom tabs, menu drawer ── */
@media (max-width: 900px) {
  body.ux-trainer.c.cb .ux-side { padding: 0 !important; gap: 0 !important; }
  body.ux-trainer.c.cb .ux-side .nav { display: flex !important; flex-direction: column !important; align-items: stretch !important; flex-wrap: nowrap !important; overflow: visible !important; padding: 0 12px !important; }
  body.ux-trainer.c.cb .ux-side .nav button { width: 100% !important; justify-content: flex-start; }
  body.ux-trainer.c.cb .ux-side .c-teamblock.b-teamblock { flex-direction: column; padding: 24px 16px 16px; gap: 6px; }
  body.ux-trainer.c.cb .ux-side .b-tb-tile .c-tb-logo { width: 84%; height: 84%; }
  body.ux-trainer.c.cb .topbar { justify-content: flex-start !important; }
  body.ux-trainer.c.cb .topbar #invite-btn { background: #fff !important; color: var(--b-rail) !important; box-shadow: none; min-height: 44px; padding: 0 12px; flex: none; }
  body.ux-trainer.c.cb .topbar #invite-btn svg { stroke: var(--b-rail); }
  body.ux-trainer.c.cb .topbar .sm-theme-btn { background: transparent !important; border-color: rgba(255,255,255,.3) !important; color: #fff !important; }
  body.ux-trainer.c.cb .topbar .acct summary { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
  body.ux-trainer.c.cb #view-home.home, body.ux-trainer.c.cb main.console, body.ux-trainer.c.cb section.wide { padding-bottom: 110px !important; }
}
@media (max-width: 600px) {
  body.ux-trainer.c.cb #c-head { padding: 8px 16px 0 !important; }
  body.ux-trainer.c.cb #view-home.home { padding: 12px 16px 110px !important; }
  /* The account name and the Invite label give way to the business name. */
  body.ux-trainer.c.cb .topbar #invite-btn { width: 44px; padding: 0 !important; justify-content: center; font-size: 0 !important; }
  body.ux-trainer.c.cb .topbar #invite-btn svg { width: 20px; height: 20px; margin: 0; }
  body.ux-trainer.c.cb .topbar .acct summary { max-width: 44px; width: 44px; padding: 0; justify-content: center; overflow: hidden; }
  body.ux-trainer.c.cb .topbar .acct summary .user-chip { display: none; }
  body.ux-trainer.c.cb .b-hd .c-ph-acts { flex: 1 1 100%; }
  body.ux-trainer.c.cb .b-hd .c-ph-acts .c-btn { flex: 1 1 auto; justify-content: center; white-space: normal; height: auto; min-height: 48px; }
}
@media (max-width: 900px) {
  body.c.cb .b-mteam-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 600px) {
  /* The top bar already names the business and title, so the header card's
     line keeps the business name only. */
  body.ux-trainer.c.cb .b-hd-kick span:nth-child(n+2) { display: none; }
}
/* Training Plans: the week is one white card of day rows. */
body.ux-trainer.c.cb #plans-body .pdays { gap: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--b-r); box-shadow: var(--b-shadow); padding: 4px 24px 10px; }
body.ux-trainer.c.cb #plans-body .pday-sec { border-top-color: var(--c-line); }
@media (max-width: 600px) {
  body.ux-trainer.c.cb #plans-body .pdays { padding: 2px 16px 8px; }
  /* The cover photo stays on Home; working pages keep the list high. */
  body.ux-trainer.c.cb #c-head .b-hd-photo { display: none; }
  /* Client filters scroll sideways instead of running off the screen. */
  body.ux-trainer.c.cb #waiting-row { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
  body.ux-trainer.c.cb #waiting-row .seg, body.ux-trainer.c.cb #waiting-row .chips { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  body.ux-trainer.c.cb #waiting-row button { flex: none; white-space: nowrap; }
}
