/* MOVE Coach — the team frame (2026-10-04): a sidebar like Mail's or Music's on a laptop, a
   tab bar on a phone, and light or dark following the computer. Loaded last on index.html.
   The breakdown studio stays dark (html.force-dark) — video reads best on black — and so do
   the video tiles on catch cards and in the clip viewer. Sizes: rows and buttons 44 px where
   a finger may tap them, 36 px for compact desktop controls. */

:root {
  --side-w: 252px;
  --hover: rgba(255,255,255,.06);
  --seg-on: #636366;
  --seg-on-fg: #fff;
  --side-bg: #0d0d0f;
  --good-soft: rgba(48,209,88,.16);
  --warn: #ff9f0a;
  --warn-soft: rgba(255,159,10,.16);
  --tint-soft: rgba(0,220,250,.15);
}

/* ---- Light: Apple's grouped greys, a deeper cyan so links read on white ---- */
@media (prefers-color-scheme: light) {
  :root:not(.force-dark) {
    color-scheme: light;
    --ink: #fff;
    --bg: #f2f2f7;
    --surface: #fff;
    --surface-hi: #f2f2f7;
    --surface-top: #e5e5ea;
    --fill: rgba(118,118,128,.12);
    --fill-hi: rgba(118,118,128,.2);
    --line: rgba(60,60,67,.14);
    --line-hi: rgba(60,60,67,.26);
    --muted: rgba(60,60,67,.66);
    --dim: rgba(60,60,67,.36);
    --text: #1d1d1f;
    --cyan: #0089a3;
    --amber: #a35a00;
    --bad: #d70015;
    --good: #248a3d;
    --warn: #b25000;
    --material: rgba(249,249,251,.82);
    --material-thick: rgba(255,255,255,.9);
    --ring: 0 0 0 3px rgba(0,137,163,.3);
    --hover: rgba(0,0,0,.045);
    --seg-on: #fff;
    --seg-on-fg: #1d1d1f;
    --side-bg: #e9e9ee;
    --good-soft: rgba(36,138,61,.12);
    --warn-soft: rgba(178,80,0,.1);
    --tint-soft: rgba(0,137,163,.1);
  }
  :root:not(.force-dark) body { background: var(--bg); }
  :root:not(.force-dark) .brand img, :root:not(.force-dark) .side-brand img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: darken; }
  :root:not(.force-dark) .btn.primary, :root:not(.force-dark) .btn.primary:hover { background: #1d1d1f; color: #fff; }
  :root:not(.force-dark) .kpi { background: var(--fill); }
  :root:not(.force-dark) .hero .sub { color: var(--muted); }
  :root:not(.force-dark) .pop, :root:not(.force-dark) .lab-tip, :root:not(.force-dark) .dl-toast {
    border-color: var(--line-hi); box-shadow: 0 10px 40px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08);
  }
  :root:not(.force-dark) .modal { background: rgba(0,0,0,.6); }
  :root:not(.force-dark) .viewer { box-shadow: 0 30px 90px rgba(0,0,0,.25); }
  :root:not(.force-dark) .v-top .star { background: var(--fill); border: 0; }
  :root:not(.force-dark) .lab-chart .dl { fill: var(--text); }
  :root:not(.force-dark) .lab-chart .pt.hot .dot { stroke: var(--text); }
  :root:not(.force-dark) .rep-dates input { color-scheme: light; }
  :root:not(.force-dark) .dd select option { background: #fff; color: #1d1d1f; }
  :root:not(.force-dark) .st-recip:hover { background: var(--hover); }
  :root:not(.force-dark) .ai-word { color: var(--amber); }
}

/* "AI" after MOVE in MOVE AI titles: the amber the logo's closing bracket shows on black
   (2026-10-24, Nolan picked it for the app title; light mode takes the deeper --amber). */
.ai-word { color: #f6bc22; }

/* Dark tiles in both modes: the catch card's thumb, its star and tick, the clip stage. */
.thumb, .catch > .star, .pick-box, .v-stage, .tc-thumb {
  --text: #fff; --muted: #8e8e96; --surface-hi: #2c2c2e;
}
.thumb { color: #fff; }
.pr-track b { color: #fff; }
.bd-trend.down { color: #fff; }

/* ---- Controls: tokens instead of fixed whites ---- */
.tabs a.on, .seg button.on, .seg a.on { background: var(--seg-on); color: var(--seg-on-fg); }
.tabs a:not(.on):hover, .seg button:not(.on):hover, .seg a:not(.on):hover { background: var(--hover); color: var(--text); }
.pick:hover, .menu-list button:hover, .menu-list a:hover, .rep-pick:hover { background: var(--hover); }
.rep-pick.on { background: var(--fill); }
.btn.tint { background: var(--tint-soft); color: var(--cyan); }
.btn.tint:hover { background: var(--tint-soft); color: var(--cyan); opacity: .85; }
.btn[aria-disabled="true"] { opacity: .35; cursor: default; pointer-events: none; }
.btn { min-height: 40px; }
.btn.small { min-height: 32px; }
.btn svg { flex: none; }
.chip.good { color: var(--good); background: var(--good-soft); }
.chip.warn { color: var(--warn); background: var(--warn-soft); }
.good { color: var(--good); }
.warn { color: var(--warn); }
.tint { color: var(--cyan); }
.avatar.md { width: 36px; height: 36px; font-size: 13px; }
.num, .tile-v, .tc-v, .sc-v b, td.num b.big { font-family: var(--sf-rounded); font-variant-numeric: tabular-nums; }

/* The segmented control as links (Video, Reports, a catcher's catches). */
.seg { display: inline-flex; align-items: center; background: var(--fill); border: 0; border-radius: 10px; padding: 2px; gap: 0; max-width: 100%; overflow-x: auto; flex: none; }
.seg a, .seg button {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border: 0; border-radius: 8px;
  color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; background: none; cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.seg a.on, .seg button.on { font-weight: 600; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); }
.seg a:hover { opacity: 1; }

/* ---- The frame ---- */
.side { display: none; }
body.in-team .topbar { display: none; }
body.in-team .side {
  position: fixed; z-index: 6; inset: 0 auto 0 0; width: var(--side-w);
  display: flex; flex-direction: column; gap: 2px;
  padding: calc(env(safe-area-inset-top) + 18px) 12px 14px;
  background: var(--side-bg); border-right: .5px solid var(--line-hi); overflow-y: auto;
}
body.in-team .view { max-width: none; margin: 0 0 0 var(--side-w); padding: 30px clamp(20px, 3.4vw, 48px) 80px; }
body.in-team .page { max-width: 1280px; margin: 0 auto; }
body.in-team .body { margin-top: 0; }

.side-brand { display: flex; align-items: center; gap: 8px; padding: 2px 10px 16px; color: var(--muted); font-size: 13px; font-weight: 500; }
.side-brand img { height: 18px; width: auto; display: block; mix-blend-mode: lighten; }
.side-brand:hover { color: var(--muted); opacity: .8; }

/* The team block (2026-11-05): name + logo → Team settings, the arrows → the switcher. */
.teamsw-row { position: relative; display: flex; align-items: center; gap: 2px; margin-bottom: 14px; padding: 4px; border-radius: 12px; background: var(--surface); }
.tsw-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 6px; border-radius: 9px; color: var(--text); transition: background .15s; }
.tsw-main:hover, .teamsw-row.on .tsw-main { background: var(--surface-hi); color: var(--text); opacity: 1; }
.teamsw { position: static; }
.teamsw > summary {
  list-style: none; display: flex; align-items: center; justify-content: center; width: 36px; min-height: 48px;
  border-radius: 9px; cursor: pointer; transition: background .15s;
}
.teamsw > summary::-webkit-details-marker { display: none; }
.teamsw > summary:hover, .teamsw[open] > summary { background: var(--surface-hi); }
.teamsw > summary:hover .tsw-chev, .teamsw[open] .tsw-chev { color: var(--text); }
.tsw-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tsw-text b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsw-text small { font-size: 12px; color: var(--muted); }
.tsw-chev { color: var(--muted); display: inline-flex; }
.tsw-pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; display: flex; flex-direction: column; max-height: 60vh; overflow-y: auto; }
.tsw-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--text); font-size: 14px; }
.tsw-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsw-item i { color: var(--cyan); display: inline-flex; }
.tsw-item:hover { background: var(--hover); color: var(--text); opacity: 1; }
.tsw-item.plain { border-top: .5px solid var(--line); border-radius: 0 0 8px 8px; }
.tsw-item.plain + .tsw-item.plain { border-top: 0; border-radius: 8px; }
.tsw-item.tint { color: var(--cyan); }
.tsw-pop .menu-note { padding: 6px 10px 4px; font-size: 12px; color: var(--muted); }

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--text); font-size: 15px; font-weight: 500; transition: background .12s;
}
.side-link svg { color: var(--cyan); flex: none; }
.side-link:hover { background: var(--hover); color: var(--text); opacity: 1; }
.side-link.on { background: var(--tint-soft); color: var(--cyan); font-weight: 600; }
.side-link.sm { font-size: 14px; min-height: 40px; }
.side-link.sm svg { color: var(--muted); }
.side-fill { flex: 1; min-height: 24px; }
.side-invite { width: 100%; min-height: 44px; margin-bottom: 4px; }
/* Which TIME TO STICK the dashboard reads (stick.js). */

.side-who { display: flex; align-items: center; gap: 10px; padding: 12px 6px 0; margin-top: 10px; border-top: .5px solid var(--line-hi); }
.side-who-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.side-who-t b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-who-t small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-who .linkbtn { color: var(--cyan); }
/* Another account in this tab (tabsignin.js): its own line under the account row. */
.side-who { flex-wrap: wrap; }
.side-who [data-tab-signin] { order: 3; flex-basis: 100%; text-align: left; }
.side-who .tab-only-mark { text-align: center; }
.who [data-tab-signin] { margin-left: 8px; }
.tab-only-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: rgba(255,191,6,.12); color: var(--text, inherit); font-size: 13px; }
.tab-only-note b { color: var(--amber); }
.tab-only-note .linkbtn { display: block; margin-top: 6px; color: var(--cyan); padding: 0; }

.tabbar { display: none; }

/* ---- Page header ---- */
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; margin: 0 0 22px; }
.ph-t { flex: 1 1 320px; min-width: 0; }
.ph-t.row { display: flex; align-items: center; gap: 16px; }
.ph-eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.ph h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
.ph-r { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ph.person .note { margin-top: 2px; }
.ph-t.vs h1 { font-size: 28px; }
.ph-t.vs .muted { font-weight: 500; }
.back + .ph, .back + header { margin-top: 2px; }

/* ---- Today ---- */
.sess-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px; }
.sess-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 12px;
  background: var(--surface); color: var(--text); font-size: 13px;
}
.sess-chip svg { color: var(--muted); }
.sess-chip span { color: var(--muted); }
.sess-chip:hover { background: var(--surface-hi); color: var(--text); opacity: 1; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.tile-k { font-size: 13px; color: var(--muted); }
.tile-v { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.tile-v small { font-size: 14px; font-weight: 500; color: var(--muted); }
.tile-s { font-size: 12px; color: var(--muted); margin-top: 4px; }

.tcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.tcard { background: var(--surface); border-radius: 16px; padding: 16px 18px 12px; display: flex; flex-direction: column; min-width: 0; }
.tcard-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tcard-h h2 { margin: 0; font-size: 17px; font-weight: 600; color: var(--text); flex: 1; }
.tcard-h.good svg { color: var(--good); }
.tcard-h.warn svg { color: var(--warn); }
.tcard-h.tint svg { color: var(--cyan); }
.tc-row {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px; margin: 0 -8px;
  border-top: .5px solid var(--line); border-radius: 10px; color: var(--text);
}
.tc-row.tall { align-items: flex-start; padding: 12px 8px; }
.tc-row:hover { background: var(--hover); color: var(--text); opacity: 1; }
.tc-name { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.tc-name b { font-weight: 600; }
.tc-name small { font-size: 12px; color: var(--muted); }
.tc-name small b { font-weight: 700; }
.tc-v { font-size: 20px; font-weight: 700; white-space: nowrap; }
.tc-v small { font-size: 12px; font-weight: 500; color: var(--muted); }
.tc-open { font-size: 13px; color: var(--cyan); white-space: nowrap; }
.tc-empty { color: var(--muted); margin: 8px 0; font-size: 14px; }
.tc-foot { font-size: 12px; color: var(--dim); margin: auto 0 0; padding-top: 10px; }
.tc-clip { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: .5px solid var(--line); }
.tc-thumb {
  width: 92px; height: 58px; flex: none; border: 0; border-radius: 10px; cursor: pointer; color: #fff;
  display: grid; place-items: center;
  background: radial-gradient(120px 60px at 100% 0%, rgba(255,184,26,.2), transparent 70%), radial-gradient(120px 70px at 0% 100%, rgba(0,220,250,.16), transparent 70%), #0a0a0d;
}
.tc-thumb:hover { filter: brightness(1.2); }

/* ---- Home (2026-10-07): fewer, bigger things — recent activity as large cards ---- */
.home .section-title.home-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--text); margin: 34px 2px 12px; }
.home .page-head + .section-title.home-h, .home .ph + .section-title.home-h { margin-top: 18px; }
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.act-card {
  display: flex; flex-direction: column; gap: 22px; padding: 22px 24px 18px; border-radius: 22px;
  background: var(--surface); color: var(--text); position: relative; overflow: hidden; min-width: 0;
  transition: background .15s, transform .15s;
}
.act-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); opacity: .9; }
.act-card:hover { background: var(--surface-hi); color: var(--text); opacity: 1; transform: translateY(-1px); }
.act-thumb {
  margin: -22px -24px 0; aspect-ratio: 16 / 9; background: #0b0d10; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.act-thumb span { font-size: 13px; color: var(--muted); }
.act-thumb video, .act-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.act-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.act-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.act-who b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-who small { font-size: 13px; color: var(--muted); }
.act-flags { display: flex; gap: 6px; flex-wrap: wrap; }
.act-go { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; white-space: nowrap; }
.act-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.act-m { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.act-k { font-size: 13px; color: var(--muted); }
.act-v { font-family: var(--sf-rounded); font-variant-numeric: tabular-nums; font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.act-v small { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.act-m .delta { font-size: 13px; }
.act-foot { display: flex; gap: 10px; min-height: 22px; align-items: center; padding-top: 14px; border-top: .5px solid var(--line); font-size: 14px; font-weight: 600; color: var(--cyan); }
.act-foot .chev { display: inline-flex; color: var(--cyan); }
.home .tcards { gap: 16px; }
.home .tcard { border-radius: 22px; padding: 20px 22px 14px; }
.home .section-title.home-h a { display: inline-flex; align-items: center; gap: 4px; }
.home .section-title.home-h a svg { width: 15px; height: 15px; }
/* Every athlete, A–Z: one rounded list, a row each, opening their profile. */
.ath-list { background: var(--surface); border-radius: 22px; padding: 6px 10px; }
.ath-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 130px 16px; align-items: center; gap: 16px;
  padding: 14px 12px; border-radius: 14px; color: var(--text); position: relative;
}
.ath-row + .ath-row::before { content: ""; position: absolute; top: 0; left: 64px; right: 12px; border-top: .5px solid var(--line); }
.ath-row:hover { background: var(--hover); color: var(--text); opacity: 1; }
.ath-row:hover::before, .ath-row:hover + .ath-row::before { opacity: 0; }
.ath-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ath-who b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ath-who small, .ath-last { font-size: 12px; color: var(--muted); }
.ath-last { display: flex; flex-direction: column; gap: 2px; }
.ath-last b { font-size: 14px; font-weight: 600; color: var(--text); }
.ath-last b.muted { color: var(--muted); font-weight: 500; }
.ath-row .chev { display: inline-flex; color: var(--dim); }
/* Home's athletes, organized (Nolan, 2026-11-26): search + sort + New group, then the team's
   groups as folding sections, three athletes across, each its own tile. */
.ath-bar > * { width: auto; margin: 0; }
.ath-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.ath-bar .ath-search { flex: 0 1 260px; min-width: 160px; height: 34px; padding: 0 14px; border-radius: 999px; border: .5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.ath-search::-webkit-search-decoration { -webkit-appearance: none; }
.ath-search:focus { outline: none; border-color: var(--cyan); }
.ath-bar .ath-sort { flex: none; height: 34px; padding: 0 12px; border-radius: 999px; border: .5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.ath-newgroup { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px; border-radius: 999px; border: .5px solid rgba(0,220,250,.4); background: transparent; color: var(--cyan); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ath-newgroup svg { width: 15px; height: 15px; }
.ath-groups { display: flex; flex-direction: column; gap: 14px; }
.ath-gh-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.ath-gh { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; text-align: left; }
.ath-gh:hover { color: var(--text); }
.ath-caret { display: inline-flex; transform: rotate(90deg); transition: transform .15s; }
.ath-caret svg { width: 13px; height: 13px; }
.ath-gh.folded .ath-caret { transform: none; }
.ath-peek { display: inline-flex; gap: 4px; margin-left: auto; align-items: center; }
.ath-peek small { font-size: 12px; color: var(--muted); letter-spacing: 0; text-transform: none; margin-left: 2px; }
.ath-sec.folded .ath-gh-row { background: var(--surface); border-radius: 14px; padding: 6px 8px; margin-bottom: 0; }
.ath-sec.folded .ath-grid, .ath-sec.folded .ath-more { display: none; }
.ath-gmenu { border: 0; background: none; color: var(--dim); font: inherit; font-size: 16px; padding: 2px 8px; border-radius: 8px; cursor: pointer; letter-spacing: 1px; }
.ath-gmenu:hover { color: var(--text); background: var(--hover); }
.ath-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ath-cell { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: .5px solid var(--line); color: var(--text); }
.ath-cell:hover { background: var(--hover); color: var(--text); opacity: 1; border-color: var(--line-hi); }
.ath-cell .ath-who b { font-size: 14px; }
.ath-cell .ath-who small { font-size: 11px; }
.ath-cell .ath-msg { display: inline-flex; align-items: center; gap: 3px; color: var(--cyan); font-weight: 600; }
.ath-cell .ath-msg svg { width: 11px; height: 11px; }
.ath-when { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.ath-when.muted { color: var(--muted); font-weight: 500; }
.ath-extra { display: none; }
.ath-more { margin: 8px 0 0 4px; }
/* Searching: every match shows, folded or not, and nothing else. */
.ath-groups.searching .ath-sec .ath-grid { display: grid; }
.ath-groups.searching .ath-extra { display: grid; }
.ath-groups.searching .ath-more, .ath-groups.searching .ath-peek { display: none; }
.ath-groups.searching .ath-sec.folded .ath-gh-row { background: none; padding: 0 4px; margin-bottom: 8px; }
.ath-groups.searching .ath-cell.ath-miss, .ath-groups.searching .ath-sec.ath-empty { display: none; }
/* Home's groups (Sam's sketch, 2026-12-02): a card per group, its players listed inside, two across. */
.hg-acts { display: inline-flex; align-items: center; gap: 16px; }
.hg-acts .linkbtn { color: var(--cyan); }
.hg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hg-card { background: var(--surface); border-radius: 18px; padding: 14px 16px 10px; display: flex; flex-direction: column; min-width: 0; }
.hg-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; min-width: 0; }
.hg-name { font-size: 17px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.hg-name:hover { color: var(--cyan); opacity: 1; }
.hg-top small { color: var(--muted); font-size: 13px; margin-left: auto; white-space: nowrap; }
.hg-list { display: flex; flex-direction: column; }
.hg-p { display: flex; align-items: center; gap: 11px; padding: 8px 8px; margin: 0 -8px; border-radius: 10px; color: var(--text); min-width: 0; }
.hg-p + .hg-p { box-shadow: inset 0 .5px 0 var(--line); }
.hg-p:hover { background: var(--surface-hi); color: var(--text); opacity: 1; }
.hg-p:hover .hg-pn { color: var(--cyan); }
.hg-pn { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; flex-direction: column; gap: 1px; }
.hg-pn .ath-msg { display: inline-flex; align-items: center; gap: 3px; color: var(--cyan); font-size: 12px; font-weight: 600; }
.hg-pn .ath-msg svg { width: 11px; height: 11px; }
.hg-when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.hg-p .chev { display: inline-flex; color: var(--dim); }
.hg-p .chev svg { width: 14px; height: 14px; }
.hg-empty { margin: 6px 0; }
.hg-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 9px; border-top: .5px solid var(--line); min-height: 22px; }
.hg-more { color: var(--muted); }
.hg-open { display: inline-flex; align-items: center; gap: 3px; color: var(--cyan); }
.hg-open .chev svg { width: 13px; height: 13px; }
/* Recent sessions by day: Today, Yesterday, This week, three across. */
.home .act-day { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 22px 2px 10px; }
.home .section-title.home-h + .act-day { margin-top: 4px; }
.act-grid.act-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.act-more { display: block; margin: 10px 2px 0; color: var(--cyan); }
@media (max-width: 1100px) { .act-grid.act-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hg-grid, .act-grid.act-row { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .ath-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ath-grid { grid-template-columns: 1fr; } .ath-search { flex: 1 1 100%; } }
/* Home's inbox (2026-10-08): a row per conversation, newest first. */
.home .section-title.home-h button { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.home .section-title.home-h button svg { width: 15px; height: 15px; }
.home .section-title.home-h .ath-new { margin-left: 8px; }
.inbox-row { grid-template-columns: auto minmax(0, 1fr) auto 16px; }
.inbox-row .ath-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row.unread .ath-who small { color: var(--text); font-weight: 600; }
.inbox-when { display: inline-flex; align-items: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.inbox-empty { margin: 0; padding: 16px 12px; }
/* Unread conversations, beside Messages in the sidebar and tab bar. */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-badge[hidden] { display: none; }
.tabbar a { position: relative; }
.tabbar .nav-badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px; font-size: 11px; }
/* A sent message's paper airplane (messages.js flyPlane). */
.msg-plane { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.msg-plane svg { display: block; }
/* One conversation on its own page: the messages take the screen. */
.thread-page .msg-panel { margin-top: 0; }
.thread-page .msg-list { max-height: calc(100vh - 340px); min-height: 280px; }
@media (max-width: 760px) {
  .act-grid { grid-template-columns: 1fr; }
  .act-card { padding: 18px 18px 14px; gap: 18px; }
  .act-thumb { margin: -18px -18px 0; }
  .act-v { font-size: 36px; }
  .ath-list { padding: 4px 6px; }
  .ath-row { grid-template-columns: auto minmax(0, 1fr) 16px; gap: 12px; padding: 12px 8px; }
  .ath-row + .ath-row::before { left: 56px; }
  .ath-last { display: none; }
  .ath-who b { white-space: normal; line-height: 1.2; }
}

/* ---- Tables ---- */
.panel { overflow: hidden; }
.panel.pad { padding: 18px 20px; overflow: visible; }
.panel-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.panel-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 12px; }
.panel-t h2 { margin: 0; font-size: 17px; font-weight: 600; flex: 1; }
table.grid.dash th { font-size: 12px; white-space: nowrap; }
table.grid.dash td { padding-top: 10px; padding-bottom: 10px; vertical-align: middle; white-space: nowrap; }
table.grid.dash td .chip { margin-right: 6px; }
table.grid td b.big { font-size: 16px; font-weight: 700; }
table.grid td b.big small { font-size: 12px; font-weight: 500; color: var(--muted); }
table.grid td.win { color: var(--good); }
table.grid td.win b, table.grid td.win { font-weight: 800; }
tr.row-link { cursor: pointer; transition: background .12s; }
tr.row-link:hover td { background: var(--hover); }
.who-cell { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.who-cell:hover { color: var(--text); opacity: 1; }
.who-cell > span:not(.avatar) { display: flex; flex-direction: column; }
.who-cell b { font-weight: 600; font-size: 15px; }
.who-cell small { font-size: 12px; color: var(--muted); }
.mcell { display: inline-flex; align-items: center; gap: 14px; }
.mcell > div { min-width: 82px; text-align: right; }
.spark { width: 96px; height: 28px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--mc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: var(--mc); }
.delta { font-size: 12px; font-weight: 600; white-space: nowrap; }
.delta.flat, .delta.none { color: var(--muted); font-weight: 500; }
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; min-height: 32px; }
.th-sort:hover, .th-sort.on { color: var(--text); }
.th-sort i { font-style: normal; color: var(--cyan); }
th.num .th-sort { justify-content: flex-end; }
.note.foot { margin: 10px 4px 0; }

/* ---- One catcher ---- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.sc-row { display: grid; grid-template-columns: 124px minmax(0, 1fr) 96px; align-items: center; gap: 14px; min-height: 48px; }
.sc-l { display: flex; flex-direction: column; }
.sc-l b { font-weight: 500; }
.sc-l small { font-size: 11px; color: var(--muted); }
.sc-bar { position: relative; height: 10px; border-radius: 999px; background: var(--fill); }
.sc-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--mc); }
.sc-bar span { position: absolute; top: -4px; bottom: -4px; left: 50%; width: 1px; background: var(--dim); }
.sc-v { text-align: right; }
.sc-v b { font-size: 16px; font-weight: 700; }
.sc-v b small { font-size: 12px; font-weight: 500; color: var(--muted); }
.sc-v > small { display: block; font-size: 11px; color: var(--muted); }
.trend + .trend { margin-top: 10px; padding-top: 10px; border-top: .5px solid var(--line); }
.trend-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.trend-h b { font-size: 14px; font-weight: 600; }
.chart { display: block; width: 100%; height: auto; overflow: visible; margin-top: 4px; }
.chart .g { stroke: var(--line); stroke-width: 1; }
.chart .ref { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 4 4; }
.chart .yl { fill: var(--muted); font-size: 11px; text-anchor: end; font-family: var(--sf); }
.chart .xl { fill: var(--muted); font-size: 11px; font-family: var(--sf); }
.chart .xl.end { text-anchor: end; }
.chart .line polyline { fill: none; stroke: var(--lc); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chart .line circle { fill: var(--lc); }
.chart-none { color: var(--muted); font-size: 13px; padding: 18px 0; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i { width: 14px; height: 3px; border-radius: 2px; margin-left: 6px; }
.pchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 18px; }
.pchip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 6px; border-radius: 999px;
  background: var(--fill); color: var(--text); font-size: 13px; font-weight: 500;
}
.pchip:hover { background: var(--fill-hi); color: var(--text); opacity: 1; }
.pchip.on { background: color-mix(in srgb, var(--c) 24%, transparent); box-shadow: 0 0 0 1.5px var(--c) inset; font-weight: 600; }

/* ---- Video ---- */
.vr-lede { margin: -8px 0 14px; }
.filters .seg { margin-right: 4px; }

/* ---- Laptop narrow: a slimmer sidebar ---- */
@media (max-width: 1080px) {
  :root { --side-w: 220px; }
  .duo { grid-template-columns: 1fr; }
}

/* ---- Phone: the sidebar becomes a top bar, the sections a tab bar ---- */
@media (max-width: 760px) {
  body.in-team .side {
    position: sticky; top: 0; inset: auto; width: auto; flex-direction: row; align-items: center; gap: 10px;
    padding: calc(env(safe-area-inset-top) + 8px) 12px 8px; overflow: visible;
    background: var(--material); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-right: 0; border-bottom: .5px solid var(--line-hi);
  }
  body.in-team .side .side-nav, body.in-team .side .side-fill, body.in-team .side .side-invite,
  body.in-team .side .side-link.sm, body.in-team .side .side-who-t, body.in-team .side .side-who .avatar,
  body.in-team .side .side-brand span { display: none; }
  .side-brand { padding: 0; }
  .teamsw-row { flex: 1; min-width: 0; margin: 0; padding: 0; background: transparent; }
  .tsw-main { min-height: 44px; padding: 4px 8px; }
  .teamsw > summary { min-height: 44px; }
  .side-who { border: 0; margin: 0; padding: 0; }
  body.in-team .side .side-who [data-tab-signin] { display: none; }
  .cg-open { display: none; }
  body.in-team .view { margin: 0; padding: 18px 16px calc(env(safe-area-inset-bottom) + 96px); }
  body.in-team .tabbar {
    position: fixed; z-index: 7; left: 0; right: 0; bottom: 0; display: flex;
    padding: 6px 4px calc(env(safe-area-inset-bottom) + 6px);
    background: var(--material); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: .5px solid var(--line-hi);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; justify-content: center;
    color: var(--muted); font-size: 11px; font-weight: 500;
  }
  .tabbar a.on { color: var(--cyan); }
  .tabbar a:hover { color: var(--text); opacity: 1; }
  .ph h1 { font-size: 28px; }
  .ph-r { width: 100%; }
  .ph-t.vs h1 { font-size: 22px; }
  .sc-row { grid-template-columns: 96px minmax(0, 1fr) 84px; gap: 10px; }
  .duo { grid-template-columns: 1fr; }
  .tcards { grid-template-columns: 1fr; }
  table.catchers .spark { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 14px; }
  .tile-v { font-size: 26px; }
  .mcell > div { min-width: 64px; }
  /* A finger, not a pointer: every control at least 44 px tall. */
  .btn, .btn.small, .seg a, .seg button, .dd, .th-sort { min-height: 44px; }
}
@media (pointer: coarse) {
  .btn, .seg a, .seg button { min-height: 44px; }
  .btn.small { min-height: 40px; }
}

@media print {
  .side, .tabbar { display: none !important; }
  body.in-team .view { margin: 0; padding: 0; }
}

/* Sentence case, the way Apple labels tables and groups. */
.panel-h, table.grid th, .section-title { text-transform: none; letter-spacing: 0; }
.section-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 30px 4px 10px; }

/* One athlete colour (views.js PALETTE) is near-white; on a light page it turns graphite. */
@media (prefers-color-scheme: light) {
  :root:not(.force-dark) [style*="--c:#f5f5f5"] { --c: #48484a !important; }
  :root:not(.force-dark) [style*="--lc:#f5f5f5"] { --lc: #48484a !important; }
  :root:not(.force-dark) .avatar[style*="--c:#f5f5f5"] { color: #fff; }
  :root:not(.force-dark) [stroke="#f5f5f5"] { stroke: #48484a; }
  :root:not(.force-dark) [fill="#f5f5f5"] { fill: #48484a; }
  :root:not(.force-dark) [style*="background:#f5f5f5"] { background: #48484a !important; }
}

/* Anything still loading: the MOVE logo, flashing (Sam, 2026-10-05). 10-08: larger, and a
   whole page loading puts it in the middle of the screen. */
.loading { display: flex; justify-content: center; align-items: center; padding: 48px 0; }
.loading img { height: 40px; width: auto; display: block; mix-blend-mode: lighten; animation: logo-pulse 1.1s ease-in-out infinite; }
/* While a page loads the whole screen is black with only the logo; the sidebar, tab bar and
   page appear together once the data is in (Sam, 2026-10-08). */
.loading.page-load { position: fixed; inset: 0; padding: 0; z-index: 90; background: #000; animation: page-load-giveup 0s 12s forwards; }
/* Something that never arrives must not leave the coach on a black screen. */
@keyframes page-load-giveup { to { background: transparent; pointer-events: none; } }
/* Catches not in after 10 s (app.js renderTeam): a line under the logo says so. */
.loading.page-load.slow { flex-direction: column; gap: 14px; }
.loading.page-load img { height: 64px; filter: none !important; mix-blend-mode: normal !important; }
@keyframes logo-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .12; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .loading img { animation-duration: 2.8s; transform: none; } }
@media (prefers-color-scheme: light) {
  :root:not(.force-dark) .loading img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: darken; }
}

/* The demo team saves nothing (downloads.js demoLock): no long-press "Save image" on a phone, no
   dragging a picture out, and printing (Save as PDF) prints a blank page. */
html.demo-lock img, html.demo-lock video { -webkit-touch-callout: none; -webkit-user-drag: none; }
@media print { html.demo-lock body { display: none !important; } }

/* ---- MOVE AI, top right of every team page (aisheet.js, 2026-10-17) ----
   The app's top-bar circle: the brackets in a dark disc, rim cyan down the left half and
   amber down the right. It opens MOVE AI in a sheet over the page: a panel down the right
   on a laptop, the whole screen on a phone. */
.ai-top { display: none; }
body.in-team .ai-top {
  position: fixed; z-index: 8; top: calc(env(safe-area-inset-top) + 14px); right: 18px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 3px; border: 0; border-radius: 50%; cursor: pointer;
  background: conic-gradient(#ffbf06 0 50%, #00dcfa 0); box-shadow: 0 4px 14px rgba(0,0,0,.28);
  transition: transform .15s;
}
body.in-team .ai-top:hover { transform: scale(1.06); }
body.in-team .ai-top:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.ai-top-disc { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #1c1c22 0%, #0a0a0c 75%); }
.ai-top .ai-mark, .ai-sheet-h .ai-mark { display: block; }
body.ai-open .ai-top { display: none; }
/* Room for it, so it never sits on a page's own buttons (New message, Add drill). On a
   phone it sits in the top bar, past the team switcher. */
@media (min-width: 761px) { body.in-team .view { padding-right: max(clamp(20px, 3.4vw, 48px), 80px); } }
@media (max-width: 760px) { body.in-team .side { padding-right: 64px; } }

.ai-sheet-back { position: fixed; inset: 0; z-index: 19; background: rgba(0,0,0,.45); display: flex; justify-content: flex-end; }
.ai-sheet-back[hidden] { display: none; }
.ai-sheet {
  width: min(460px, 100%); height: 100%; display: flex; flex-direction: column;
  background: var(--bg); border-left: .5px solid var(--line-hi); box-shadow: -20px 0 60px rgba(0,0,0,.35);
  animation: aiSheetIn .22s ease-out;
}
.ai-sheet-h { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 14px) 14px 10px 20px; font-size: 15px; }
.ai-sheet-x {
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--fill); color: var(--text);
  font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.ai-sheet-x:hover { background: var(--fill-hi); }
.ai-sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px calc(env(safe-area-inset-bottom) + 24px); }
.ai-sheet .ai-room { min-height: 100%; }
.ai-sheet.wide { width: min(780px, 100%); }
.ai-sheet .ai-room.answered { padding-top: 4px; }
@keyframes aiSheetIn { from { transform: translateX(40px); opacity: 0; } }
@media (max-width: 760px) {
  body.in-team .ai-top { top: calc(env(safe-area-inset-top) + 10px); right: 12px; width: 40px; height: 40px; }
  .ai-sheet { width: 100%; border-left: 0; box-shadow: none; animation-name: aiSheetUp; }
  @keyframes aiSheetUp { from { transform: translateY(40px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .ai-sheet { animation: none; } body.in-team .ai-top { transition: none; } }
@media print { .ai-top, .ai-sheet-back { display: none !important; } }

/* Page by page (2026-10-19): older catches loading behind the page, and "Show more" under a long list. */
.catch-sync {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; padding: 8px 14px; border-radius: 999px;
  background: var(--material-thick); backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px);
  border: .5px solid var(--line-hi); color: var(--muted); font-size: 13px; pointer-events: none;
}
.catch-sync[hidden] { display: none; }
.more-row { display: flex; justify-content: center; margin: 18px 0 8px; }

/* Catcher profile, Training sessions (Nolan, 2026-10-24, same as the app's Analysis tab):
   bigger title, blue View all sessions to its right, RECENT on the newest, a View all row. */
.section-title.sess-title { display: flex; align-items: center; gap: 12px; }
.section-title.sess-title .seg a { font-size: 16px; }
.section-title.sess-title .view-all-link { margin-left: auto; color: var(--cyan); font-size: 15px; font-weight: 600; white-space: nowrap; }
.recent-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--amber); color: #000; font-size: 10px; font-weight: 800; letter-spacing: .02em; vertical-align: 2px; }
.srow.view-all .title { color: var(--cyan); }
/* Sessions sit right under the name, Compared with teammates below them (Sam, 2026-11-05). */
.section-title.sess-title.first { margin-top: 18px; }
.panel.sc-after { margin-top: 24px; }

/* Team settings (Sam, 2026-11-05): coaches + players, each with its Add button and form. */
.ts-people { max-width: 720px; }
.section-title.ts-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title.ts-head .btn { color: var(--text); }
.ts-add { margin-bottom: 12px; }
.ts-people .item .main { min-width: 0; color: var(--text); }
.ts-people .item a.main:hover { opacity: 1; }
.ts-people .item .btn.small { flex: none; }
.ts-edit { align-items: flex-start; }
.ts-edit .main { flex: 1; }
@media (max-width: 560px) { .ts-people .item { flex-wrap: wrap; } .ts-edit .grid2, .ts-edit .grid3 { grid-template-columns: 1fr; } }
/* Team settings' logo up top (2026-11-15): tap to change it. */
.ts-logo { position: relative; flex: none; cursor: pointer; border-radius: 20px; }
.ts-logo input { display: none; }
.ts-logo-cue { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); white-space: nowrap;
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 16px;
  background: var(--surface, #1c1c1e); color: var(--text); border: 1px solid var(--line, rgba(255,255,255,.15)); }
.ts-logo:hover .logo, .ts-logo:focus-within .logo { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ts-logo.busy { pointer-events: none; opacity: .7; }

/* Team details fold (Sam, 2026-11-07): the section title is the toggle, a chevron turns. */
.ts-details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.ts-details > summary::-webkit-details-marker { display: none; }
.ts-details > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; opacity: .7; }
.ts-details[open] > summary::after { transform: rotate(45deg); }

/* ---- The player dashboard (mine.js, 2026-11-09) ------------------------------------------- */
/* Tagging pitches and saving reports are the coaches'. MOVE AI is on for players since 11-14,
   except a player known to be under 13 (app.js renderMine sets no-ai; the server refuses too). */
body.mine.no-ai .ai-top, body.mine.no-ai .rep-ai, body.mine [data-tag-pitches] { display: none !important; }
body.mine .seg-title { font-weight: 600; }
.mv-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.mv-thumb { width: 112px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--fill); }
.mv-thumb img, .mv-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv-studio { display: inline-block; margin-top: 14px; }
.mt-card { margin-bottom: 16px; }
.mt-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line, rgba(255,255,255,.1)); }
.mt-name { font-size: 20px; font-weight: 700; }
.mt-label { font-size: 12px; letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; }
.mt-coach { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.mt-coach small { display: block; color: var(--muted); font-size: 12px; }
/* Analysis: the charts that rank or compare catchers, or follow a coach's program, need a team. */
body.mine :is([data-kit="percentiles"], [data-kit="leaderboard"], [data-kit="headToHead"], [data-kit="biggestMovers"],
  [data-kit="goalProgress"], [data-load="t:weekly"]) { display: none !important; }
body.mine .rp-row:has(> :is([data-kit="percentiles"], [data-kit="leaderboard"], [data-kit="headToHead"], [data-kit="biggestMovers"],
  [data-kit="goalProgress"], [data-load="t:weekly"])) { display: none !important; }

/* Player session page (Nolan, 11-09): session line, count once, room above the catches (left-aligned again 11-10). */
.mine-shead { display: block; }
.mine-shead .eyebrow { font-size: 17px; }
.mine-scount { margin-top: 6px; color: var(--muted, #9aa0a6); font-size: 15px; }
.section-title.mine-sbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 32px; }
.mine-sbar .watch-session { grid-column: 2; margin: 0; }
.mine-sbar .dl-bar { grid-column: 3; justify-self: end; }

/* Catch viewer, player + coach (Nolan, 11-10): no black around the clip, and the clip as big as the
   screen allows. In Video the left column is exactly the clip's width at its own shape (--ar),
   the full height of the viewer, with the play bar laid over its bottom edge; the numbers panel
   beside it is 560 px (three boxes across) and the viewer shrinks to the two and sits centred.
   A sideways clip is capped so the panel keeps its 560 px and sits centred top to bottom.
   3D path and Both keep the half-and-half. */
@media (min-width: 861px) {
  /* Not waiting for the play bar (Nolan, 11-10: the panel jumped to four across and the clip
     shrank while the next catch's 3D path loaded): the layout holds from the first frame. */
  /* …and not while the last catch's 3D path / Both stage is held over the next one (Nolan, 11-11:
     on Next in Both the whole viewer shrank to a small box for a moment, then snapped back). */
  .viewer.v-fit:not(.v-wide):has(> .v-stage:not(.is-both):not(.is-path):not(.v-holding)) {
    --vw: min(calc((100vh - 40px) * var(--ar, .5625)), calc(100vw - 40px - 560px));
    grid-template-columns: var(--vw) 560px; width: auto;
  }
  .viewer.v-fit:not(.v-wide) > .v-stage:not(.is-both):not(.is-path):not(.v-holding) {
    padding: 0; align-self: center; height: calc(var(--vw) / var(--ar, .5625));
  }
  .viewer.v-fit:not(.v-wide) > .v-stage.with-cbar:not(.is-both):not(.is-path) .cbar {
    left: 0; right: 0; bottom: 0; height: 66px; padding: 0 14px;
    background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0));
  }
}
/* SIDEWAYS CLIPS (Nolan, 11-11, layout C): a clip filmed sideways gets the whole width. One row on top
   (name, date, tags · Video / 3D path / Both · Jump to contact · Prev / Next · star, close), the
   picture under it the same height in all three views (Video centred, 3D path full width, Both half
   and half), the play line under that, then the numbers six across and everything else below.
   `v-wide` is set in app.js when the clip is wider than tall; upright clips keep the layout above. */
@media (min-width: 861px) {
  .viewer.v-wide {
    /* Video and 3D path 1.5x the Both height (Nolan, 11-11: the sideways clip "just not taking up
       enough of the screen"); Both, the clip and the path half and half, keeps its half-width height. */
    --sh: min(calc((100vw - 40px - 48px - 8px) * 0.75 / var(--ar, 1.7778)), calc(100vh - 330px));
    display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 12px;
    width: calc(100vw - 40px); height: calc(100vh - 40px); padding: 16px 24px 28px; overflow-y: auto;
  }
  .viewer.v-wide > .v-side, .viewer.v-wide .v-top { display: contents; }
  .viewer.v-wide > .v-side > * { order: 20; flex: 0 0 100%; min-width: 0; }
  .viewer.v-wide .v-back { order: 0; flex: none; }
  .viewer.v-wide .v-top > .who-link { order: 1; }
  /* The catch line gives way ("…") so the buttons always fit on the top line (Nolan, 11-25: the
     TrackMan tags pushed X and Prev/Next off the screen); the tags get their own line under it. */
  .viewer.v-wide .v-side > .v-top + .note { order: 1; flex: 1 1 0; min-width: 140px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .viewer.v-wide .v-side > .v-reach { order: 6; flex: 0 0 100%; margin: -4px 0 0; }
  .viewer.v-wide .v-side > #vmode { order: 2; flex: none; margin-left: auto; }
  .viewer.v-wide .v-side > #jump { order: 3; flex: none; }
  .viewer.v-wide .v-side > .v-nav { order: 4; flex: none; margin: 0; padding: 0; border: 0; gap: 10px; }
  .viewer.v-wide .v-top > span { order: 5; flex: none; }
  /* The same height in every view: the picture (--sh) plus the play line's 66 px — under the clip in
     Video and Both, the 3D path's own play line in 3D path. */
  /* …and while the last catch's Both is held over the next one (Nolan, 11-23: on Next in Both the stage grew to the 3D path height for half a second, then snapped back once the new clip was up). */
  .viewer.v-wide:has(> .v-stage.is-both, > .v-stage.v-holding > .v-held.is-both) { --sh: min(calc((100vw - 40px - 48px - 8px) / 2 / var(--ar, 1.7778)), calc(100vh - 290px)); }
  .viewer.v-wide > .v-stage { order: 10; flex: 0 0 100%; height: calc(var(--sh) + 66px); padding: 0; border-radius: 12px; overflow: hidden; }
  .viewer.v-wide > .v-stage.with-cbar { padding-bottom: 66px; }
  /* Video: the box is only as wide as the clip, centred (Nolan, 11-27: on a short window the clip is
     height-limited and the full-width box left wide black bands either side). 3D path + Both stay full width. */
  .viewer.v-wide > .v-stage:not(.is-both):not(.is-path):not(.v-holding) {
    flex: 0 0 auto; width: min(100%, calc(var(--sh) * var(--ar, 1.7778))); margin: 0 auto;
  }
  .viewer.v-wide .v-side > .mtiles { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 4px; }
  /* Sideways, the groups sit side by side, each as wide as its boxes (Nolan, 11-23). */
  .viewer.v-wide .v-side > .mgroups { flex-direction: row; flex-wrap: wrap; }
  .viewer.v-wide .v-side > .mgroups > .mg-fold { flex: var(--n, 1) 1 calc(var(--n, 1) * 150px); min-width: 0; }
  /* Folded groups line up as full-length pills in one row above the open groups, which fill
     whole rows below (Nolan, 11-23: the in-place pill left gaps and moved the boxes around). */
  .viewer.v-wide .v-side > .mgroups::before { content: ""; order: 1; flex: 1 0 100%; height: 0; margin-top: -6px; }
  .viewer.v-wide .v-side > .mgroups > .mg-fold[open] { order: 2; }
  .viewer.v-wide .v-side > .mgroups > .mg-fold:not([open]) { order: 0; flex: 0 1 auto; align-self: flex-start; max-width: 100%; border-radius: 999px; }
  .viewer.v-wide .v-side > .mgroups > .mg-fold:not([open]) > summary { padding: 5px 12px; gap: 8px; }
  .viewer.v-wide .v-side > .mgroups > .mg-fold:not([open]) :is(.mg-pv, .mg-chev) { margin-left: 0; }
  .viewer.v-wide .v-side > .mgroups .mtiles { grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); }
  .viewer.v-wide .v-side > :is(.v-dl, .v-link, .v-ai-scope) { flex: none; }
}
/* Coach session pages: the player page's placement (Nolan, 11-10) — Tag pitches + Watch session
   centred, Download right (the whole session's page keeps its count on the left). */
.coach-sbar .sbar-left { grid-column: 1; }
.coach-sbar .sbar-mid { grid-column: 2; display: flex; align-items: center; gap: 10px; }
.coach-sbar .sbar-mid .watch-session { margin: 0; }
.mine-shead h1 { margin-top: 4px; }

/* SORT + FILTER on session pages (catchsort.js, Nolan 11-14) */
.section-title .cs-bar { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-bar .cs-count { white-space: nowrap; }
/* Hide non-catches switch (catchsort.js, Nolan 11-25). */
.cs-bar .cs-hide { margin-left: 10px; flex: none; white-space: nowrap; font-size: 14px; font-weight: 500; gap: 8px; }
.cs-bar .cs-hide .sw { width: 40px; height: 24px; }
.cs-bar .cs-hide .sw::after { top: 3px; left: 3px; width: 18px; height: 18px; }
.cs-bar .cs-hide input:checked + .sw { background: var(--cyan, #22d3ee); }
.cs-bar .cs-hide input:checked + .sw::after { transform: translateX(16px); }
.section-title .cs-bar { flex-wrap: nowrap; }
.cs-bar .menu-list button { display: flex; justify-content: space-between; gap: 16px; white-space: nowrap; }
.cs-bar .menu-list button.on { color: var(--cyan, #22d3ee); }
.cs-metrics > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 10px; border-radius: 8px; font: inherit; }
.cs-metrics > summary::-webkit-details-marker { display: none; }
.cs-metrics > summary::after { content: "›"; font-size: 16px; color: var(--muted); transition: transform .15s; }
.cs-metrics[open] > summary::after { transform: rotate(90deg); }
.cs-metrics > summary:hover { background: var(--hover, rgba(127,127,127,.12)); }
.cs-metrics > summary.on { color: var(--cyan, #22d3ee); }
.cs-mlist { padding-left: 12px; display: flex; flex-direction: column; }
.cs-mlist button { width: 100%; }
.cs-bar .cs-worst { border-top: 1px solid var(--line); margin-top: 4px; padding: 10px 10px 6px; }
.cs-bar .cs-sort.on > summary { box-shadow: inset 0 0 0 1.5px var(--cyan, #22d3ee); }
.cs-groups { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; min-width: 220px; }
.cs-pop { display: flex; align-items: flex-start; max-height: 70vh; overflow: auto; }
.cs-pop .cs-groups { border-left: 1px solid var(--line); }
@media (max-width: 640px) { .cs-pop { flex-direction: column; } .cs-pop .cs-groups { border-left: 0; border-top: 1px solid var(--line); } }
.cs-group { display: flex; flex-direction: column; gap: 2px; }
.cs-h { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.cs-groups .pick { display: flex; align-items: center; gap: 10px; padding: 5px 2px; cursor: pointer; }
.cs-clear { align-self: center; }
.c-rank { display: inline-block; background: var(--cyan, #22d3ee); color: #00161a; font-weight: 800; border-radius: 9px; padding: 1px 7px; margin-right: 6px; font-size: 12px; }
.mt[data-lit] { box-shadow: inset 0 0 0 1.5px var(--cyan, #22d3ee); }
@media (max-width: 760px) {
  .section-title.mine-sbar:has(.cs-bar) { grid-template-columns: 1fr auto; row-gap: 10px; }
  .section-title .cs-bar { grid-column: 1 / -1; }
}

/* Groups (Sam, 2026-11-27): the sidebar lists each group under Groups; the Groups page is a
   card per group; a group's name on Home opens it. */
.side-subs { display: flex; flex-direction: column; margin: -2px 0 4px 34px; }
.side-sub { display: block; padding: 5px 10px; border-radius: 9px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-sub:hover { background: var(--hover); color: var(--text); opacity: 1; }
.side-sub.on { background: var(--hover); color: var(--text); font-weight: 600; }
.grp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grp-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: .5px solid var(--line); color: var(--text); }
.grp-card:hover { background: var(--hover); color: var(--text); opacity: 1; border-color: var(--line-hi); }
.grp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grp-top b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-top .chev { display: inline-flex; color: var(--dim); }
.grp-peek { display: flex; gap: 4px; align-items: center; min-height: 24px; }
.grp-peek small { font-size: 12px; color: var(--muted); margin-left: 2px; }
.grp-card .note { margin: 0; }
.grp-loose { margin-top: 14px; }
.grp-sub { margin: -6px 0 14px; }
.grp-invited { opacity: .7; grid-template-columns: auto minmax(0, 1fr); }
.ath-caretbtn { flex: none; padding: 0 2px; }
.ath-glink { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 8px; }
.ath-glink:hover { color: var(--text); background: var(--hover); opacity: 1; }
.ath-glink .chev { display: inline-flex; }
.ath-glink .chev svg { width: 11px; height: 11px; }
.ath-fill { flex: 1; }
.ath-gh-row .ath-peek { flex: 1; justify-content: flex-end; }
@media (max-width: 1100px) { .grp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grp-grid { grid-template-columns: 1fr; } }
