/* MOVE Coach — the app's MoveTheme on the web: ink black, cyan accent, Montserrat.
   The overlay's six metric colours (overlay.js METRIC_COLORS) are the only other hues. */
:root {
  --ink: #000;
  --bg: #050507;
  --surface: #0f0f12;
  --surface-hi: #17171c;
  --surface-top: #1f1f26;
  --line: #24242b;
  --line-hi: #34343d;
  --muted: #8e8e96;
  --dim: #5d5d66;
  --text: #fff;
  --cyan: #00dcfa;
  --amber: #ffbf06;
  --bad: #ff5a5f;
  --team: var(--cyan);
  --team2: #ffffff;
  --r-tile: 16px;
  --r-card: 22px;
  --r-inner: 12px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -18px rgba(0,0,0,.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Montserrat", -apple-system, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(1200px 520px at 50% -240px, rgba(0,220,250,.10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #6becff; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }

/* ---- Frame ---- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 14px) max(20px, calc((100vw - 1180px) / 2)) 14px;
  background: rgba(5,5,7,.78); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 22px; width: auto; }
.who { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; min-width: 0; }
.who .email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }

.view { max-width: 1180px; margin: 0 auto; padding: 22px 20px 96px; }
@media (max-width: 560px) { .view { padding: 16px 16px 80px; } }
.muted { color: var(--muted); }
.amber { color: var(--amber); }
.center { text-align: center; }
.pad { padding: 32px 0; }
.small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }

h1 { font-size: 28px; font-weight: 800; margin: 4px 0 6px; letter-spacing: -.01em; }
h2 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.section-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 30px 0 12px;
}
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }

.crumb, .back {
  display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600;
}
.crumb:hover, .back:hover { color: var(--text); }
.back { margin-bottom: 14px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 18px; box-shadow: var(--shadow);
}
.card.tight { padding: 12px 14px; border-radius: var(--r-tile); }
.list > * + * { margin-top: 8px; }
.item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile);
  padding: 12px 14px; color: var(--text); width: 100%; text-align: left;
}
button.item, a.item { cursor: pointer; transition: border-color .15s, background .15s; }
button.item:hover, a.item:hover { border-color: var(--line-hi); background: var(--surface-hi); color: var(--text); }
.item .main { flex: 1; min-width: 0; }
.item .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .detail { color: var(--muted); font-size: 13px; }
.chev { color: var(--dim); display: inline-flex; }
.flash { animation: flash 2.4s ease-out; }
@keyframes flash { 0% { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,220,250,.18); } 100% { } }

/* ---- Buttons and fields ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface-hi); color: var(--text);
  border-radius: var(--r-tile); padding: 12px 16px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s, transform .05s;
}
.btn:hover { border-color: var(--line-hi); background: var(--surface-top); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: #fff; color: #000; border-color: var(--text); }
.btn.primary:hover { background: #e9e9ee; color: #000; }
.btn.accent { background: var(--cyan); color: #000; border-color: var(--cyan); }
.btn.block { width: 100%; padding: 16px; }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .4; cursor: default; }
.linkbtn { background: none; border: 0; color: var(--cyan); cursor: pointer; padding: 0; font-weight: 600; }
.iconbtn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-hi);
  color: var(--text); cursor: pointer; display: grid; place-items: center; font-size: 14px; flex: none;
}
.iconbtn:hover { border-color: var(--line-hi); }

label.field { display: block; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  width: 100%; background: var(--surface-hi); border: 1px solid var(--line); border-radius: var(--r-inner);
  padding: 12px 14px; outline: none; font-size: 16px; /* 16px stops iOS zooming on focus */
}
input:focus, select:focus { border-color: var(--cyan); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.error { color: var(--bad); font-size: 14px; }
.note { color: var(--muted); font-size: 13px; }
.ok { color: var(--cyan); }

.chip {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-hi); border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.chip.cyan { color: var(--cyan); border-color: rgba(0,220,250,.4); }
.chip.amber { color: var(--amber); border-color: rgba(255,191,6,.4); }
.chip.bad { color: var(--bad); border-color: rgba(255,90,95,.4); }

/* ---- Wizard ---- */
.steps { display: flex; gap: 6px; margin: 4px 0 18px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--cyan); }
.wizard-actions { display: flex; gap: 10px; margin-top: 22px; }
.wizard-actions .btn { flex: 1; padding: 15px; }

.logo-drop {
  display: flex; align-items: center; gap: 16px; padding: 14px;
  border: 1px dashed var(--line-hi); border-radius: var(--r-tile); cursor: pointer;
}
.logo-drop input { display: none; }
.logo {
  width: 64px; height: 64px; border-radius: 16px; flex: none; overflow: hidden;
  display: grid; place-items: center; font-weight: 800; font-size: 22px;
  background: var(--team); color: var(--team2);
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo.xs { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.logo.sm { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.logo.lg { width: 76px; height: 76px; border-radius: 20px; font-size: 26px; box-shadow: 0 10px 30px -12px var(--team); }
.swatches { display: flex; gap: 16px; }
.swatch { display: flex; align-items: center; gap: 10px; }
.swatch input[type=color] {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0; background: none; cursor: pointer;
}
.swatch input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input[type=color]::-webkit-color-swatch { border: 0; border-radius: 11px; }

.player-row { background: var(--surface-hi); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 12px; }
.player-row + .player-row { margin-top: 10px; }
.player-row .row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--muted); font-size: 13px; }

/* ---- Team hero ---- */
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; font-weight: 700; }
.hero {
  position: relative; overflow: hidden; margin-top: 12px;
  border-radius: 26px; border: 1px solid var(--line); padding: 22px;
  background:
    radial-gradient(700px 260px at 0% 0%, color-mix(in srgb, var(--team) 30%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface-hi), var(--surface));
  box-shadow: var(--shadow);
}
.hero-top { display: flex; align-items: center; gap: 18px; }
.hero-top .btn.ghost { flex: none; }
.hero.compact { padding: 12px 16px; border-radius: var(--r-card); }
.hero.compact .hero-top { gap: 12px; }
.hero.compact h1 { font-size: 19px; }
.hero.compact .sub { font-size: 12px; }
.hero-name { min-width: 0; flex: 1; }
.hero h1 { margin: 0; font-size: 30px; }
.hero .sub { color: rgba(255,255,255,.72); font-size: 14px; margin-top: 2px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 20px; }
.kpi {
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.07); border-radius: var(--r-tile);
  padding: 14px 16px;
}
.kpi .v { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.kpi .v small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.kpi .k { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.body > .kpis .kpi { background: var(--surface); border-color: var(--line); }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 16px; } .hero-top { gap: 12px; } .hero h1 { font-size: 22px; }
  .hero .live { display: none; }
  .hero-top .btn.ghost { padding: 6px 10px; font-size: 12px; }
}

.teambar { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; margin: 14px 0 6px; }
.teambar:hover { color: var(--text); opacity: .85; }

.tabs {
  display: flex; gap: 4px; margin: 18px 0 4px; padding: 4px; overflow-x: auto; scrollbar-width: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 9px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px;
  transition: color .15s, background .15s;
}
.tabs a.on { color: #000; background: #fff; }
.tabs a:not(.on):hover { color: var(--text); background: var(--surface-hi); }
.body { margin-top: 14px; }

.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--cyan); font-weight: 600; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---- Filters ---- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 4px; }
.select select {
  width: auto; min-width: 180px; padding: 9px 36px 9px 14px; font-size: 14px; border-radius: 999px; appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238e8e96' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; overflow-x: auto; }
.seg button { flex: none; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--surface-top); color: var(--text); box-shadow: 0 0 0 1px var(--line-hi) inset; }
.seg button:not(.on):hover { color: var(--text); }

/* One pill per filter: its label, then its value (views.js dd / menu). */
.dd {
  position: relative; display: inline-flex; align-items: center; min-width: 0; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; transition: border-color .15s;
}
.dd:hover, .dd:focus-within, .dd[open] { border-color: var(--line-hi); }
.dd > span, .dd summary > span {
  padding-left: 13px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: nowrap;
}
.dd select {
  width: auto; min-width: 0; max-width: 240px; border: 0; border-radius: 999px; appearance: none; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238e8e96' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding: 8px 30px 8px 7px; font-size: 13px; font-weight: 700; color: var(--text); text-overflow: ellipsis;
}
.dd select:focus { border-color: transparent; }
.dd select option { background: var(--surface-hi); color: var(--text); }
.menu > summary {
  list-style: none; display: flex; align-items: center; cursor: pointer; user-select: none;
  padding: 8px 30px 8px 0; font-size: 13px; font-weight: 700; white-space: nowrap; border-radius: 999px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238e8e96' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary b { padding-left: 7px; font-weight: 700; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.menu > summary:focus-visible { outline-offset: 3px; border-radius: 999px; }
.pop {
  position: absolute; z-index: 12; top: calc(100% + 6px); left: 0; min-width: 220px; max-width: min(560px, calc(100vw - 32px));
  max-height: min(70vh, 520px); overflow: auto; padding: 8px;
  background: var(--surface-hi); border: 1px solid var(--line-hi); border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.95);
}
.pop.right { left: auto; right: 0; }
@media (max-width: 640px) {
  .pop, .pop.right { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; max-width: none; max-height: 70vh; }
}
.picklist { display: flex; flex-direction: column; }
.pick {
  --c: var(--muted); display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
  cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.pick:hover { background: var(--surface-top); }
.pick.all { border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; margin-bottom: 4px; }
.pick i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.pick input, .colpick input, .colpick-counts input { width: 16px; height: 16px; margin: 0; accent-color: var(--cyan); cursor: pointer; flex: none; }
.menu-list { display: flex; flex-direction: column; min-width: 200px; padding: 6px; }
.menu-list button {
  text-align: left; background: none; border: 0; border-radius: 9px; padding: 9px 12px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.menu-list button:hover { background: var(--surface-top); }
.menu-list button.bad { color: var(--bad); border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; margin-top: 4px; }
.menu.more > summary { padding: 7px 30px 7px 14px; }

.day { font-size: 13px; font-weight: 700; color: var(--muted); margin: 22px 0 10px; padding-left: 2px; }

/* ---- Session cards ---- */
.session {
  display: flex; align-items: center; gap: 18px; cursor: pointer;
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.session + .session { margin-top: 10px; }
.session:hover { border-color: var(--line-hi); transform: translateY(-1px); }
.s-main { flex: 1; min-width: 0; }
.s-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.s-time { font-weight: 800; font-size: 17px; }
.s-who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.who-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  color: var(--text); font-size: 13px; font-weight: 600;
}
.who-chip:hover { color: var(--text); border-color: var(--c); }
.who-chip b { color: var(--c); font-weight: 700; }
.s-nums { display: flex; gap: 22px; }
.s-nums > div { display: flex; flex-direction: column; align-items: flex-end; min-width: 52px; }
.s-nums b { font-size: 18px; font-weight: 800; }
.s-nums span { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.s-nums.big b { font-size: 26px; }
@media (max-width: 760px) {
  .session { flex-wrap: wrap; gap: 12px; }
  .session .chev { display: none; }
  .s-nums { width: 100%; justify-content: space-between; gap: 8px; }
  .s-nums > div { align-items: flex-start; }
}

.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}
.badge.ipad { color: var(--amber); border-color: rgba(255,191,6,.35); background: rgba(255,191,6,.07); }
.badge.phone { color: var(--cyan); border-color: rgba(0,220,250,.3); background: rgba(0,220,250,.06); }
/* Reviewed + Tagged on a session card (sessionreview.js, Sam 11-17). */
.s-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge.reviewed { color: #34c759; border-color: rgba(52,199,89,.4); background: rgba(52,199,89,.08); }
.badge.tagged { color: var(--muted); }
.badge.tagged.all { color: var(--text); border-color: rgba(142,142,150,.5); }
.review-row { display: flex; margin-top: 10px; }
.btn.review-btn.on { color: #34c759; border-color: rgba(52,199,89,.45); background: rgba(52,199,89,.08); }

/* ---- Avatars ---- */
.avatar {
  --c: var(--cyan);
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  font-weight: 800; font-size: 13px; color: #000; background: var(--c);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 25%, transparent);
}
.avatar.xs { width: 22px; height: 22px; font-size: 9px; box-shadow: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar.xl { width: 68px; height: 68px; font-size: 24px; }

/* ---- Page heads, panels, tables ---- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 2px 0 0; font-size: 30px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.panel-h {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 10px 18px; }
table.grid td { padding: 10px 18px; border-top: 1px solid var(--line); white-space: nowrap; }
table.grid .num { text-align: right; font-weight: 700; }
table.grid tr.on td { background: rgba(0,220,250,.05); }
.linkish { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; color: var(--text); }
.linkish:hover span { color: var(--cyan); }

.srow {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile);
}
.srow > div:first-child { flex: 1; min-width: 0; }
.srow .title { font-weight: 700; }
.srow:hover { border-color: var(--line-hi); background: var(--surface-hi); color: var(--text); }
@media (max-width: 560px) { .srow { flex-wrap: wrap; } .srow .s-nums { width: 100%; justify-content: space-between; } .srow .chev { display: none; } }

/* ---- Catch cards ---- */
.catch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
@media (max-width: 400px) { .catch-grid { grid-template-columns: 1fr; } }
.catch {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow);
  transition: border-color .15s;
}
.catch:hover { border-color: var(--line-hi); }
.thumb {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  height: 116px; padding: 14px 16px; border: 0; cursor: pointer; text-align: left; color: var(--text);
  background:
    radial-gradient(260px 120px at 100% 0%, rgba(255,184,26,.18), transparent 70%),
    radial-gradient(260px 140px at 0% 100%, rgba(0,220,250,.14), transparent 70%),
    #0a0a0d;
  border-bottom: 1px solid var(--line);
}
.thumb.novideo { background: #0a0a0d; }
.t-idx { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.t-time { font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; }
.t-speed { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.t-speed small { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 4px; }
.t-play {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: #fff; color: #000;
  transition: transform .15s;
}
.thumb:hover .t-play { transform: scale(1.05); }
/* No clip: the pill opens the 3D path, outlined so it reads as a button beside "Watch". */
.thumb.novideo .t-play { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); }
.c-body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
/* Wraps when a card carries several tags (REACH, Catch, TrackMan Paired …) instead of squeezing
   them over the name (Sam, 11-29). */
.c-head { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 6px 8px; }
.c-head > .who-link, .c-head > .who-pick { flex: 0 0 auto; max-width: 100%; margin-right: auto; }
.who-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 14px; min-width: 0; }
.who-link:hover { color: var(--cyan); }
.who-link.big { font-size: 17px; }

.mtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mt { position: relative; background: var(--surface-hi); border-radius: 10px; padding: 7px 9px 6px 11px; overflow: hidden; }
.mt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mc); }
.mk { display: block; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv { display: block; font-size: 16px; font-weight: 800; }
.mv small { font-size: 10px; color: var(--muted); font-weight: 700; margin-left: 2px; }

.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-hi); border-radius: var(--r-card); margin-top: 12px; }
.empty-t { font-weight: 800; font-size: 17px; }
.empty p { color: var(--muted); max-width: 460px; margin: 8px auto 0; font-size: 14px; }

/* ---- Clip viewer ---- */
.modal {
  position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.84); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 20px;
}
.viewer {
  display: flex; width: min(1120px, 100%); max-height: calc(100vh - 40px); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 40px 120px -30px rgba(0,0,0,.9);
}
.v-stage { flex: 1; min-width: 0; background: #000; display: grid; place-items: center; position: relative; }
/* The logo over a clip still loading (app.js openCatch), so the stage never shows black. */
.v-stage > .loading.v-wait { position: absolute; inset: 0; z-index: 2; background: #000; padding: 0; }
.stage { position: relative; height: min(80vh, 760px); max-width: 100%; aspect-ratio: 9 / 16; background: #000; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.v-side { width: 330px; flex: none; padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; border-left: 1px solid var(--line); }
.v-side .mtiles { grid-template-columns: repeat(2, 1fr); }
.v-side .mv { font-size: 20px; }
.v-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.v-nav { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; position: relative; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .sw { width: 40px; height: 24px; border-radius: 999px; background: var(--line-hi); position: relative; transition: background .15s; flex: none; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked + .sw { background: var(--cyan); }
.toggle input:checked + .sw::after { transform: translateX(16px); }
.toggle input:focus-visible + .sw { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 860px) {
  .modal { padding: 0; }
  .viewer { flex-direction: column; border-radius: 0; max-height: 100vh; height: 100%; overflow-y: auto; }
  .v-stage { flex: none; }
  .stage { height: 62vh; max-width: 100%; }
  .v-side { width: 100%; border-left: 0; border-top: 1px solid var(--line); }
}

.auth { max-width: 420px; margin: 6vh auto 0; }
.auth-switch { display: inline-flex; align-items: center; gap: 2px; margin-top: 18px; font-weight: 600; }

/* ---- Lab ---- (lab.js) */
.lab-modes { margin: 4px 0 10px; }
.lab-modes .seg button { font-size: 14px; padding: 8px 16px; }
.lab-filters { margin-bottom: 12px; }
.lab-panel { padding: 0 0 12px; margin-top: 4px; }
.lab-ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 16px 18px 6px; }
.lab-t { font-weight: 800; font-size: 17px; }
.lab-chart { position: relative; padding: 0 18px; }
.lab-chart svg { display: block; overflow: visible; }
.lab-chart .g { stroke: var(--line); stroke-width: 1; }
.lab-chart .ax { fill: var(--dim); font-size: 11px; font-weight: 600; }
.lab-chart .dl { fill: #fff; font-size: 12px; font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.lab-chart .dot { stroke: var(--surface); stroke-width: 2; }
.lab-chart .pt .dot { stroke-width: 2; }
.lab-chart .pt.vid, .lab-chart .pt[data-catch] { cursor: pointer; }
.lab-chart .pt.hot .dot { stroke: #fff; stroke-width: 2.5; }
.lab-chart .bar { cursor: default; transition: opacity .12s; }
.lab-chart .bar.hot { opacity: .8; }
.lab-chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.lab-chart .cross[hidden] { display: none; }
.lab-tip {
  position: absolute; z-index: 3; pointer-events: none; min-width: 140px; max-width: 300px;
  background: var(--surface-top); border: 1px solid var(--line-hi); border-radius: 12px;
  padding: 8px 11px; font-size: 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.8);
}
.lab-tip b { display: block; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.lab-tip div { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.lab-tip i { width: 12px; height: 2px; border-radius: 2px; flex: none; }
.lab-tip strong { color: var(--text); font-size: 14px; font-weight: 800; }
.lab-tip span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.lab-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 18px 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.lab-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lab-legend i { width: 10px; height: 10px; border-radius: 3px; }
.lab-legend i.ln { width: 16px; height: 3px; border-radius: 2px; }
.delta { font-weight: 800; white-space: nowrap; }
.delta.better { color: #3ddc84; }
.delta.worse { color: #ff7a7a; }
.delta.level { color: var(--muted); font-weight: 700; }
.lab-controls { margin: -2px 0 12px; }
.lab-ask { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.lab-ask input { flex: 1; min-width: 0; }
.lab-mic { padding: 0 10px; }
.lab-mic.on { background: #ff453a; color: #fff; }
.lab-ask-note { margin: -4px 0 12px 4px; }
.lab-ask-note.error { color: #ff7a7a; }
.lab-kpis { margin: 0 0 12px; }
.lab-kpis .kpi { background: var(--surface); border-color: var(--line); }
.lab-kpis .kpi .v { font-size: 22px; }
.podiums { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 12px 0 14px; }
@media (max-width: 1100px) { .podiums { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .podiums { grid-template-columns: repeat(2, 1fr); } }
.podium {
  text-align: left; cursor: pointer; color: var(--text); padding: 12px 14px; border-radius: var(--r-tile);
  background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px;
}
.podium:hover { border-color: var(--line-hi); }
.podium.on { border-color: var(--text); box-shadow: 0 0 0 1px #fff inset; }
.podium-t { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.podium-r { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.podium-r b { width: 12px; color: var(--dim); font-size: 12px; }
.podium-r > span:not(.avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-r em { font-style: normal; font-weight: 800; }
.rank { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); }
.rank-n { width: 22px; text-align: right; color: var(--muted); font-weight: 800; }
.rank-name { width: 180px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { flex: 1; height: 8px; background: var(--surface-hi); border-radius: 4px; overflow: hidden; min-width: 40px; }
.rank-bar i { display: block; height: 100%; border-radius: 4px; }
.rank-v { width: 86px; text-align: right; font-weight: 800; font-size: 16px; }
.rank-v small { font-size: 10px; color: var(--muted); margin-left: 3px; font-weight: 700; }
.rank-c { width: 64px; text-align: right; }
.move { width: 46px; text-align: right; font-size: 12px; font-weight: 800; }
.move.up { color: #3ddc84; } .move.down { color: #ff7a7a; } .move.same { color: var(--dim); } .move.new { color: var(--cyan); }
.unranked { padding: 10px 18px 0; border-top: 1px solid var(--line); }
.lab-table { max-height: 520px; overflow: auto; }
@media (max-width: 640px) {
  .rank { gap: 8px; padding: 10px 12px; }
  .rank-name { width: auto; flex: 1; }
  .rank-bar, .rank-c { display: none; }
  .lab-chart { padding: 0 8px; }
}

/* ---- Reports ---- (reports.js) */
.rep { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 4px; }
.rep-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 96px); overflow-y: auto; padding-bottom: 8px; }
.rep-side-note { margin: 2px 10px; }
.rep-pick {
  display: flex; flex-direction: column; gap: 1px; text-align: left; cursor: pointer; color: var(--muted);
  padding: 8px 10px; border-radius: 10px; background: none; border: 0; border-left: 3px solid transparent;
}
.rep-pick b { font-size: 14px; font-weight: 700; }
.rep-pick span { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-pick:hover { color: var(--text); background: var(--surface); }
.rep-pick.on { color: var(--text); background: var(--surface-hi); border-left-color: var(--cyan); border-radius: 4px 10px 10px 4px; }
.rep-pick.on span { color: var(--muted); }
.rep-main { min-width: 0; }
.rep-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rep-name {
  flex: 1 1 240px; min-width: 0; font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -.01em;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-inner); padding: 2px 8px; margin-left: -9px;
}
.rep-name:hover { border-color: var(--line); }
.rep-name:focus { outline: none; border-color: var(--line-hi); background: var(--surface); }
.rep-sub { margin: 0 0 12px; }
.rep-filters { margin: 0 0 12px; gap: 8px; }
.rep-dates { display: inline-flex; align-items: center; gap: 6px; }
.rep-dates input {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 13px; color: var(--text); color-scheme: dark;
}
.menu.cols > summary b { color: var(--cyan); }
.colpick { border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.colpick th { font-size: 11px; font-weight: 700; color: var(--muted); padding: 6px 8px; text-align: center; white-space: nowrap; cursor: help; }
.colpick tbody th { text-align: left; color: var(--text); font-size: 13px; cursor: default; padding-right: 14px; }
.colpick td { text-align: center; padding: 5px 8px; border-top: 1px solid var(--line); }
.colpick tbody tr:hover td, .colpick tbody tr:hover th { background: var(--surface-top); }
.colpick-counts { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 4px 8px 10px; border-bottom: 1px solid var(--line); }
.colpick-counts label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; cursor: pointer; }
.colpick-note { margin: 8px 8px 2px; }
.rep-panel { padding-bottom: 4px; }
.rep-table { max-height: 72vh; overflow: auto; }
.rep-table table.grid th { position: sticky; top: 0; z-index: 2; background: var(--surface-hi); padding: 0; vertical-align: bottom; box-shadow: 0 1px 0 var(--line-hi); }
.rep-table table.grid th button {
  display: flex; flex-direction: column; align-items: inherit; width: 100%; background: none; border: 0; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--muted); padding: 11px 14px; text-align: inherit;
}
.rep-table table.grid th.num button { align-items: flex-end; text-align: right; min-width: 84px; }
.rep-table table.grid th button > span { white-space: nowrap; }
.rep-table table.grid th[draggable] { cursor: grab; }
.rep-table table.grid th button:hover { color: var(--text); }
.rep-table table.grid th.dragging { opacity: .4; }
.rep-table table.grid th.drop { box-shadow: inset 3px 0 0 var(--cyan), 0 1px 0 var(--line-hi); }
.rep-table table.grid th small { font-size: 11px; color: var(--dim); text-transform: none; letter-spacing: 0; font-weight: 600; margin-top: 2px; white-space: nowrap; }
.rep-table table.grid td { padding: 7px 14px; font-size: 14px; }
.rep-table table.grid tbody tr:nth-child(even) td { box-shadow: inset 0 0 0 999px rgba(255,255,255,.015); }
.rep-table table.grid tbody tr:hover td { box-shadow: inset 0 0 0 999px rgba(255,255,255,.05); }
.rep-table .rep-rowh { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.rep-rh { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.rep-table th.rep-rowh { z-index: 3; background: var(--surface-hi); }
.rep-table th.rep-rowh button { padding-left: 46px; }
.rep-n { width: 22px; flex: none; text-align: right; color: var(--dim); font-size: 12px; font-weight: 700; }
.rep-table tfoot td { border-top: 2px solid var(--line-hi); color: var(--muted); }
.rep-lab { display: inline-flex; flex-direction: column; line-height: 1.2; text-align: left; }
.rep-lab b { font-weight: 700; }
.rep-lab small { color: var(--muted); font-size: 12px; font-weight: 500; }
.linkish.static { cursor: default; }
a.linkish { color: var(--text); }
a.linkish:hover .rep-lab b, button.linkish:hover .rep-lab b { color: var(--cyan); }
.rep-legend { display: flex; align-items: center; gap: 8px; padding: 10px 18px 8px; font-size: 12px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.rep-legend i { width: 140px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgb(58,110,214), rgba(128,128,138,.35) 50%, rgb(222,48,58)); }
.rep-foot { margin: 10px 2px 0; }
.back.linkbtn { font-size: 13px; color: var(--muted); margin: 0; }
.back.linkbtn:hover { color: var(--text); }
.rep-card-head { display: flex; align-items: center; gap: 16px; padding: 18px 18px 4px; }
.rep-card-head h1 { margin: 0 0 2px; font-size: 26px; }
.rep-card-head h1 a { color: var(--text); }
.rep-card-head h1 a:hover { color: var(--cyan); }
.rep-kpis { margin: 14px 18px; grid-template-columns: repeat(2, 1fr); align-content: start; }
.rep-kpis .kpi .v { font-size: 20px; }
.rep-card-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; align-items: start; margin-top: 10px; border-top: 1px solid var(--line); }
.rep-card-grid > .rep-kpis { margin-left: 0; }
.rep-card-t { border-top: 1px solid var(--line); }
.rep-cardt td { vertical-align: middle; }
.rep-cardt td.big { font-size: 18px; font-weight: 800; }
.rep-cardt td.up { color: var(--cyan); }
.rep-cardt td.down { color: #ff7a7a; }
.rep-cardt td, .rep-cardt th { padding-left: 12px; padding-right: 12px; }
.spark { display: block; }
/* Savant's percentile rankings */
.pr { padding: 14px 18px 16px; }
.pr-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pr-h .note { text-transform: none; letter-spacing: 0; font-weight: 500; }
.pr-scale { display: flex; justify-content: space-between; margin: 10px 64px 2px 130px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pr-scale span:first-child { color: rgb(88,140,234); } .pr-scale span:nth-child(2) { color: var(--dim); } .pr-scale span:last-child { color: rgb(240,90,98); }
.pr-row { display: flex; align-items: center; gap: 12px; height: 38px; }
.pr-name { width: 118px; flex: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pr-track { position: relative; flex: 1; height: 6px; border-radius: 3px; background: var(--surface-top); }
.pr-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; opacity: .85; }
.pr-track b {
  position: absolute; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--text); border: 2px solid var(--surface);
}
.pr-val { width: 52px; flex: none; text-align: right; font-weight: 800; font-size: 14px; }
.pr-val small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; margin-top: -2px; }
.pr-row.off .pr-name, .pr-row.off .pr-val { color: var(--dim); }
.pr-why { flex: 1; font-size: 12px; color: var(--dim); }
.print-head { display: none; }
@media (max-width: 1000px) {
  .rep-card-grid { grid-template-columns: 1fr; }
  .rep-card-grid > .rep-kpis { margin: 0 18px 14px; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .rep { grid-template-columns: 1fr; }
  .rep-side { position: static; max-height: none; flex-direction: row; overflow-x: auto; padding-bottom: 4px; gap: 6px; scrollbar-width: none; }
  .rep-side::-webkit-scrollbar { display: none; }
  .rep-side-note { display: none; }
  .rep-pick { flex: none; max-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
  .rep-pick.on { border-color: var(--text); border-radius: 999px; }
  .rep-pick span { display: none; }
}
@media (max-width: 560px) {
  .rep-card-grid > .rep-kpis { grid-template-columns: repeat(2, 1fr); }
  .rep-name { font-size: 20px; }
  .rep-rh { min-width: 150px; }
  .pr-scale { margin-left: 104px; }
  .pr-name { width: 92px; white-space: normal; }
}

@media print {
  html, body { background: #fff !important; color: #000; }
  .topbar, .crumb, .tabs, .hero, .rep-side, .rep-top, .rep-sub, .rep-filters, .rep-foot, .modal { display: none !important; }
  .view { max-width: none; padding: 0; }
  .rep { display: block; }
  .print-head { display: block; padding: 0 0 10px; color: #000; }
  .print-head h1 { font-size: 22px; margin: 2px 0; }
  .print-team { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #555; }
  .panel { background: #fff; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
  .note, .rep-lab small, .kpi .k { color: #555 !important; }
  .rep-table { max-height: none; overflow: visible; }
  table.grid { font-size: 11px; color: #000; }
  table.grid th, .rep-table table.grid th { background: #fff !important; color: #333; position: static; }
  .rep-table table.grid th button { color: #333; padding: 6px 8px; }
  table.grid td, .rep-table table.grid td { padding: 5px 8px; border-top: 1px solid #ddd; }
  .rep-table .rep-rowh { position: static; background: #fff; box-shadow: none; }
  .linkish, a.linkish { color: #000; }
  .rep-cardt td.up { color: #007a8c; }
  .rep-cardt td.down { color: #c0282d; }
  .rep-n { color: #777; }
  .rep-card-grid { grid-template-columns: 1.5fr 1fr; border: 0; }
  .pr-track { background: #eee; } .pr-track b { border-color: #fff; }
  .pr-name, .pr-val, .rep-card-head h1 a { color: #000 !important; }
  .rep-card-head { padding: 0 0 6px; }
  .rep-card-head h1 { color: #000; }
  .kpi { background: #fff !important; border: 1px solid #ddd !important; }
  .kpi .v { color: #000; }
  .rep-kpis { margin: 8px 0 12px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Downloads (downloads.js): the menu in a section title, the viewer's drop-down, the progress toast. */
.section-title .dd { text-transform: none; letter-spacing: normal; color: var(--text); position: relative; }
.dl .menu-list button { white-space: nowrap; }
/* The viewer's Download drop-down opens in place, pushing the links down: the side panel
   scrolls, so a floating menu would be cut off at its bottom edge (iPad upright most of all). */
.v-dl { align-self: flex-start; flex: none; flex-direction: column; align-items: stretch; max-width: 100%; }
.v-dl[open] { border-radius: 14px; }
.v-dl > summary { align-self: flex-start; }
/* Nolan 11-10: the viewer's Download stands out — MOVE blue outline + blue words, still a drop-down. */
.v-dl:not([open]) { box-shadow: inset 0 0 0 2px var(--cyan); }
.v-dl > summary {
  color: var(--cyan);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2300dcfa' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.v-dl > .pop { position: static; max-height: none; max-width: 100%; margin: 0 6px 6px; box-shadow: none; }
.dl .menu-list .dl-go:disabled { opacity: .4; cursor: default; }
.dl-toast {
  position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 16px; font-size: 14px; font-weight: 600;
  background: var(--surface-hi); border: 1px solid var(--line-hi); border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.95);
}
.dl-toast.bad { border-color: var(--bad); }

/* Favorites: the star on a catch card (over the thumb, top right) and in the clip viewer. */
.catch { position: relative; }
.star {
  --fill: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer;
  color: var(--muted); background: rgba(10,10,13,.72); border: 1px solid var(--line-hi); border-radius: 50%;
  transition: color .15s, transform .15s, border-color .15s;
}
.catch > .star { position: absolute; z-index: 2; top: 10px; right: 10px; }
.star:hover { color: #fff; transform: scale(1.08); }
.star.on { --fill: var(--amber); color: var(--amber); border-color: rgba(255,191,6,.5); }
.star:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Picking catches to download: a tick on each card (left of the star), Select all + Download over the list. */
.pick-box { position: absolute; z-index: 2; top: 10px; right: 52px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.pick-box input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick-box span {
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(255,255,255,.55); background: rgba(10,10,13,.6);
  transition: background .15s, border-color .15s;
}
.pick-box:hover span { border-color: #fff; }
.pick-box input:checked + span {
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  border-color: var(--cyan);
}
.pick-box input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.catch.picked { box-shadow: 0 0 0 2px var(--cyan); }
.dl-bar { display: inline-flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: normal; }
.dl .menu-note { padding: 6px 10px 8px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; white-space: nowrap; }
.dl .dl-opt { display: flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 14px; cursor: pointer; white-space: nowrap; border-radius: 8px; }
.dl .dl-opt:hover { background: var(--hover, rgba(255,255,255,.08)); }
.dl .dl-opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--cyan); cursor: pointer; flex: none; }
.dl .dl-nums { max-width: 280px; padding: 0 12px 6px 36px; font-size: 11px; color: var(--muted); white-space: normal; }
.dl .dl-nums[hidden] { display: none; }
.dl .dl-sep { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 9px; }
.dl .menu-list .dl-go, .dl .menu-list .dl-go:hover { background: var(--text); color: var(--surface); }
.dl .menu-list .dl-go { display: block; width: calc(100% - 16px); margin: 6px 8px 4px; text-align: center; font-weight: 600; }

/* MOVE AI (2026-10-16): chat above Reports and Charts, summary on a session page (datatalk.js). */
.ai-panel { padding: 0; margin: 0 0 14px; border-color: rgba(0,220,250,.35); }
.ai-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; background: none; border: 0; color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.ai-head .note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-spark { color: var(--cyan); display: inline-grid; place-items: center; font-style: normal; flex: none; }
.ai-body { padding: 0 16px 14px; }
.ai-starters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0 0 12px; }
.ai-starter { text-align: left; padding: 10px 12px; border-radius: var(--r-inner); background: var(--surface-hi); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.ai-starter:hover { border-color: var(--line-hi); }
.ai-turns { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; margin: 0 0 10px; }
.ai-turn { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.ai-turn > div { white-space: pre-wrap; }
.ai-turn.mine { justify-content: flex-end; }
.ai-turn.mine > div { background: var(--surface-top); padding: 8px 12px; border-radius: 16px; max-width: 80%; }
.ai-chart { display: block; margin-top: 8px; }
.ai-ask { display: flex; gap: 8px; align-items: center; }
.ai-ask input { flex: 1; min-width: 0; }
.ai-error { color: #ff7a7a; margin: 0 0 8px; }
.ai-fine { margin: 8px 0 0; font-size: 12px; }
.ai-summary { margin: 0 0 16px; padding: 14px 16px; }
.ai-sum-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.ai-sum-head .ai-mark { flex: none; }
.ai-sum-text { margin: 0; line-height: 1.5; white-space: pre-wrap; }
/* Closed until asked for (2026-10-22, task 3): the heading is the button. */
.ai-summary:not(.open) .ai-sum-head { margin: 0; }
.ai-sum-toggle { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ai-sum-chev { font-size: 20px; line-height: 1; color: var(--muted); transition: transform .15s ease; }
.ai-summary.open .ai-sum-chev { transform: rotate(90deg); }
.ai-sum-sub { color: var(--muted); font-weight: 500; }
.ai-sum-headline { margin: 0 0 10px; font-weight: 600; line-height: 1.45; }
.ai-sum-who { margin: 14px 0 4px; font-weight: 600; }
.ai-sum-note { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.ai-sum-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line, rgba(128,128,140,.18)); line-height: 1.45; }
.ai-sum-row b { font-weight: 600; }
.ai-sum-foot { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .ai-sum-row { grid-template-columns: 1fr; gap: 2px; } }

/* MOVE AI room (2026-10-16, Sam's approved mockup): the logo in the middle of Reports. */
.rep-ai b { display: flex; align-items: center; gap: 8px; }
.ai-room { min-height: calc(100vh - 220px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.ai-orb { position: relative; width: 300px; height: 300px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.ai-orb:disabled { cursor: default; }
.ai-disc { width: 170px; height: 170px; border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, #16161b 0%, #08080a 70%); display: grid; place-items: center; position: relative; z-index: 1; }
.ai-orb.idle .ai-disc { animation: aiBreath 3.2s ease-in-out infinite; }
/* Working: the brackets spin a half turn, hold, spin again — a steady beat (2026-10-21, the
   app's MoveBot; no eyes since 2026-10-23). */
.ai-orb.thinking .ai-brk, .ai-summary.busy .ai-sum-head .ai-brk { animation: aiSpin 1.6s cubic-bezier(.65,0,.35,1) infinite; }
/* THE MOVE BOT: still while nothing is happening, spins while thinking, hops as an answer lands. */
.ai-mark { overflow: visible; }
.ai-brk { transform-box: view-box; transform-origin: 50% 50%; }
.ai-a .ai-mark { transform-origin: 50% 100%; animation: aiHop .85s 1 both; }
@keyframes aiHop {
  0% { transform: none; }
  14% { transform: scale(1.12, .86); animation-timing-function: ease-out; }
  24% { transform: translateY(-14%) scale(.92, 1.1); animation-timing-function: ease-out; }
  45% { transform: translateY(-23%); animation-timing-function: ease-in; }
  73% { transform: none; }
  82% { transform: scale(1.1, .88); }
  100% { transform: none; }
}
.ai-orb:focus-visible .ai-disc { outline: 2px solid var(--cyan); outline-offset: 4px; }
.ai-ring { position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; border-radius: 50%; transform: translate(-50%, -50%); opacity: .35; border: 2px solid var(--cyan); animation: aiRing 1.8s ease-out infinite; }
.ai-ring.b { border-color: var(--amber); animation-delay: .6s; }
.ai-ring.c { animation-delay: 1.2s; }
.ai-bar { position: absolute; left: 50%; top: 50%; width: 3px; height: 8px; border-radius: 2px; background: var(--c); transform: translate(-50%, -50%) rotate(var(--a)) translateY(-118px); }
@keyframes aiRing { 0% { transform: translate(-50%, -50%) scale(1); opacity: .55; } 100% { transform: translate(-50%, -50%) scale(1.75); opacity: 0; } }
@keyframes aiSpin { 0% { transform: rotate(0); } 40%, 50% { transform: rotate(180deg); } 90%, 100% { transform: rotate(360deg); } }
@keyframes aiBreath { 0%, 100% { box-shadow: 0 0 40px rgba(0,220,250,.06); } 50% { box-shadow: 0 0 70px rgba(0,220,250,.14), 0 0 0 6px rgba(255,191,6,.04); } }
@media (prefers-reduced-motion: reduce) { .ai-ring, .ai-disc, .ai-mark, .ai-brk { animation: none !important; } }
.ai-words { min-height: 120px; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 560px; }
.ai-cap { margin: 0; color: var(--muted); font-size: 15px; }
.ai-heard { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.35; }
.ai-asked { margin: 0; font-size: 18px; font-weight: 600; color: var(--muted); }
.ai-reading { margin: 0; color: var(--cyan); font-size: 14px; }
.ai-room .ai-type input { width: 300px; max-width: 80vw; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; text-align: center; color: var(--text); padding: 8px 4px; font: inherit; font-size: 14px; }
.ai-room .ai-type input:focus { outline: none; border-bottom-color: var(--cyan); }
.ai-room.answered { align-items: stretch; justify-content: flex-start; text-align: left; max-width: 720px; margin: 0 auto; padding-top: 24px; }
.ai-q { align-self: flex-end; max-width: 80%; background: var(--surface-top); padding: 10px 14px; border-radius: 18px; }
.ai-a { display: flex; gap: 10px; align-items: flex-start; }
.ai-a .ai-mark, .ai-note .ai-mark { flex: none; margin-top: 4px; }
.ai-a p { margin: 0; font-size: 17px; line-height: 1.55; white-space: pre-wrap; }
/* The voice by the answer (aivoice.js): who's speaking, whose voice, the speaker. */
.ai-a p { flex: 1; }
.ai-voice { flex: none; display: flex; align-items: center; gap: 6px; margin-top: -2px; }
.ai-voice-pill { font-size: 11px; font-weight: 600; color: var(--cyan); border: 1px solid color-mix(in srgb, var(--cyan) 50%, transparent); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.ai-voice-pill[hidden] { display: none; }
.ai-voice select { background: transparent; color: var(--muted, #9aa3ad); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; font: inherit; font-size: 12px; padding: 4px 6px; cursor: pointer; }
.ai-speaker { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); cursor: pointer; font-size: 14px; line-height: 32px; padding: 0; filter: grayscale(1); opacity: .6; }
.ai-speaker.on { filter: none; opacity: 1; }
.ai-follow { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
/* The answer card (aicard.js, 2026-10-29): tag, first sentence large, number boxes, the rest,
   where the figures come from, open + 👍 / 👎; follow-ups under it. Same parts as the app's. */
.aic { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border-radius: 16px; padding: 16px; }
.aic-tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-hi); color: var(--text); }
.aic-tag.real { background: var(--cyan); color: #000; }
.aic-tag.few { background: transparent; color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.ai-a .aic-say { font-size: 20px; line-height: 1.3; font-weight: 600; }
.aic-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.aic-num { background: var(--surface-hi); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aic-lab { font-size: 12px; color: var(--muted); }
.aic-num b { font-family: var(--sf-rounded); font-size: 26px; line-height: 1.1; }
.aic-num b small { font-size: 14px; font-weight: 600; color: var(--muted); }
.aic-chg { font-size: 13px; font-weight: 600; color: var(--cyan); }
.ai-a .aic-rest { font-size: 15px; line-height: 1.5; color: var(--text); }
.ai-a .aic-src { font-size: 13px; color: var(--muted); }
.aic-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.aic-foot .ai-voice { margin-top: 0; }
.aic-votes { display: flex; gap: 2px; margin-left: auto; }
.aic-files { display: flex; flex-wrap: wrap; gap: 8px; }
.aic-file { display: inline-flex; align-items: center; gap: 8px; }
.aic-open { border: 0; border-radius: 999px; background: var(--cyan); color: #000; font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; cursor: pointer; }
.aic-vote { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.aic-vote:hover { background: var(--surface-hi); color: var(--text); }
.aic-vote.on { color: var(--cyan); }
.aic-next { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 28px; }
.aic-ask { background: transparent; border: 1px solid var(--line-hi, var(--line)); color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.aic-ask:hover { border-color: var(--cyan); }
/* Questions before a chart (2026-10-30). */
.aic-chartask { display: flex; flex-direction: column; gap: 14px; padding-left: 28px; }
.aic-cq { display: flex; flex-direction: column; gap: 8px; }
.aic-cq-q { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.aic-cq-q small { font-weight: 400; color: var(--muted); }
.aic-cq-a { display: flex; flex-wrap: wrap; gap: 8px; }
.aic-ask.on { background: var(--cyan); border-color: var(--cyan); color: #000; }
.aic-build { align-self: flex-start; }
.aic-build:disabled { opacity: .4; cursor: default; }
/* Clips in the chat (aicard.js clipsHTML, 2026-10-29): like photos sent together in a text. */
.aic-clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-left: 28px; border-radius: 16px; overflow: hidden; animation: aicPop .25s ease-out both; }
@keyframes aicPop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aic-clips { animation: none; } }
.aic.brief { padding: 12px 14px; gap: 8px; }
.ai-a .aic.brief .aic-say { font-size: 16px; font-weight: 600; }
.aic-clips.one { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
.aic-clips.two, .aic-clips.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aic-clip { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; background: var(--surface-hi); cursor: pointer; overflow: hidden; color: #fff; font: inherit; }
.aic-clips.one .aic-clip { aspect-ratio: 4 / 5; }
.aic-thumb, .aic-thumb img, .aic-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.aic-rank { position: absolute; top: 6px; left: 6px; min-width: 22px; height: 22px; border-radius: 11px; background: rgba(0,0,0,.6); font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.aic-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(0,0,0,.75)); display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.2; }
.aic-cap b { font-size: 14px; }
.aic-cap small { font-size: 11px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.aic-play { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; }
.aic-clip:hover .aic-play, .aic-clip:focus-visible .aic-play { background: var(--cyan); color: #000; }
/* The chat's bar (2026-10-25, Sam: "always have the chat bar open/ready"): talk, type, send —
   and while MOVE AI thinks, the X that stops it. */
.ai-room.answered.with-chart { max-width: 1000px; }
.ai-new-row { display: flex; justify-content: flex-end; }
.ai-new { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 0; }
.ai-new:hover { color: var(--text); }
/* 2026-11-01: the whole chat on screen + past chats (aichats.js). */
.ai-new-row { justify-content: space-between; }
.ai-a.past .ai-mark { animation: none; }
.ai-room.answered .ai-q { scroll-margin-top: 72px; }
.ai-room.answered .ai-past-chats, .ai-room .ai-past-chats { margin-top: 6px; }
.ai-chats-h { margin: 4px 0 0; font-size: 20px; }
.ai-chats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ai-chat-row { display: flex; align-items: center; gap: 6px; border-radius: 12px; }
.ai-chat-row:hover, .ai-chat-row.on { background: var(--surface-top); }
.ai-chat-open { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; border: 0; background: none; color: var(--text); font: inherit; padding: 10px 12px; cursor: pointer; }
.ai-chat-t { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-chat-m { font-size: 12px; color: var(--muted); }
.ai-chat-del { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.ai-chat-del:hover { color: var(--text); background: var(--fill-hi); }
.ai-chats-none { color: var(--muted); }
.ai-a.thinking .ai-brk { animation: aiSpin 1.6s cubic-bezier(.65,0,.35,1) infinite; }
.ai-a.thinking p { color: var(--cyan); font-size: 15px; }
/* While MOVE AI works (2026-10-30, like Claude): steps, then the words as they come. */
.ai-work { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ai-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ai-steps li { font-size: 13px; color: var(--muted); padding-left: 16px; position: relative; }
.ai-steps li::before { content: "✓"; position: absolute; left: 0; color: var(--muted); }
.ai-steps li.now { color: var(--cyan); }
.ai-steps li.now::before { content: "•"; animation: aiPulse 1s ease-in-out infinite; color: var(--cyan); }
.ai-a.thinking p.ai-live { color: var(--text); font-size: 17px; }
.ai-a.thinking p.ai-live.on::after { content: "▍"; color: var(--cyan); animation: aiPulse 1s steps(2) infinite; margin-left: 2px; }
@keyframes aiPulse { 50% { opacity: .25; } }
.ai-bar-row { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px; border-radius: 30px; border: 1px solid var(--line); background: var(--surface); z-index: 2; }
.ai-bar-row.listening { border-color: var(--cyan); }
.ai-bar-row input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; padding: 8px 4px; }
.ai-bar-row input:focus { outline: none; }
.ai-mic { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: #000; display: grid; place-items: center; cursor: pointer; }
.ai-mic:disabled { opacity: .5; cursor: default; }
.ai-mic .ai-ring { width: 40px; height: 40px; }
.ai-send, .ai-stop { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-hi); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ai-send { background: var(--cyan); color: #000; border-color: transparent; font-weight: 700; }
.ai-stop:hover { border-color: var(--text); }
.ai-stop.big { width: 48px; height: 48px; font-size: 24px; }
.ai-chart { margin: 4px 0 0; }
.ai-chart .panel { margin: 0; }
.ai-chart .lab-ask { display: none; }
.ai-chart-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
/* What MOVE AI did (Undo) and the cards waiting for the coach's tap (aiactions.js, 2026-10-23). */
.ai-acts { display: flex; flex-direction: column; gap: 10px; margin-left: 28px; }
.ai-did { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 10px 12px; }
.ai-did ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.ai-did li::before { content: "✓ "; color: var(--cyan); }
.ai-did li.undone { color: var(--muted); text-decoration: line-through; }
.ai-did li.undone::before { content: ""; }
.ai-card { background: var(--surface); border: 1px solid var(--amber); border-radius: var(--r-tile); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.ai-card b { font-size: 15px; }
.ai-card p { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.ai-card .row { display: flex; gap: 8px; margin-top: 4px; }
.ai-card.done, .ai-card.undone, .ai-card.cancelled { border-color: var(--line); }
.ai-card.undone, .ai-card.cancelled { opacity: .6; }
.ai-card .ai-error { color: var(--bad); }
/* The demo team's sample questions (demotalk.js). */
.ai-tries { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 560px; margin-top: 6px; }
.ai-room.answered .ai-tries { justify-content: flex-start; margin-top: 18px; }
.ai-try { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 18px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ai-try:hover { border-color: var(--cyan); }
.ai-pill { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 6px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.ai-pill-orb { width: 40px; height: 40px; border-radius: 50%; background: #000; display: grid; place-items: center; flex: none; }
.ai-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 20px; cursor: pointer; }
.ai-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.ai-note p { margin: 0; line-height: 1.5; }
.lab-ask.ai-change { padding: 4px 4px 4px 6px; border-radius: 30px; border: 1px solid var(--line); background: var(--surface); }
.lab-ask.ai-change input { border: 0; background: transparent; }
.lab-ask.ai-change input:focus { outline: none; }
/* The 3D path downloads' phase numbers on/off (Nolan, 11-10): a sub-tick under the path kinds. */
.dl .dl-opt.dl-sub { padding-left: 36px; font-size: 13px; color: var(--muted, #9aa0a6); }
.dl .dl-opt[hidden] { display: none; }
/* A ticked download choice's options, under it (Nolan, 11-11). */
.dl .dl-subs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 12px 8px 36px; max-width: 300px; }
.dl .dl-subs[hidden] { display: none; }
.dl .dl-size { font: inherit; font-size: 12px; padding: 3px 6px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel, #222); color: inherit; cursor: pointer; }
.dl .dl-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 8px 3px 6px; border-radius: 7px; border: 1px solid var(--line); cursor: pointer; white-space: nowrap; color: var(--muted, #9aa0a6); }
.dl .dl-chip:has(input:checked) { color: inherit; border-color: var(--cyan); }
.dl .dl-chip input { width: 13px; height: 13px; margin: 0; accent-color: var(--cyan); cursor: pointer; }
.dl .dl-chip[hidden], .dl .dl-size[hidden] { display: none; }

/* "TrackMan Paired Session" (Sam, 11-25): catches in the session are paired with a pitch-tracker file. */
.badge.paired { color: #b48cff; border-color: rgba(180,140,255,.45); background: rgba(180,140,255,.14); }
.paired-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(180,140,255,.5); color: #b48cff; font-size: 10px; font-weight: 700; letter-spacing: .02em; vertical-align: 2px; }
/* The same on one catch (Nolan, 11-25): beside REACH / the label chips on the card and in the viewer. */
.paired-chip { display: inline-block; padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(180,140,255,.5); background: rgba(180,140,255,.12); color: #b48cff; font-size: 10px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
/* What was thrown + where it crossed (Nolan, 11-25): catch viewer only. */
.c-pitch { display: flex; flex-wrap: wrap; gap: 4px; }
.v-reach .c-pitch { display: contents; }
.loc-chip { display: inline-block; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: 10px; font-weight: 600; white-space: nowrap; }
.loc-chip.in { color: #34c759; border-color: rgba(52,199,89,.45); background: rgba(52,199,89,.08); }
.loc-chip.out { color: var(--muted); }
.loc-chip.type { color: var(--tc, var(--text)); border-color: color-mix(in srgb, var(--tc, #888) 55%, transparent); }
.loc-chip.shadow { color: var(--amber); border-color: rgba(255,191,6,.45); background: rgba(255,191,6,.08); }
@media (prefers-color-scheme: light) { .badge.paired, .paired-tag, .paired-chip { color: #7a44e0; } }
/* Strike probability chip (Sam, 11-29; sessionreview.js strikeChip). */
/* On a catch card it gets its own row under the header (the header row was too full, Sam 11-29). */
.c-strike { display: flex; margin-top: -4px; }
.c-strike .loc-chip.strike { font-size: 11px; padding: 2px 9px; }
.loc-chip.strike small { font-size: 9px; font-weight: 600; opacity: .75; text-transform: uppercase; letter-spacing: .04em; }
.loc-chip.strike.edge { color: var(--amber); border-color: rgba(255,191,6,.45); }
