/* Clutcher Clubhouse — static demo design system */

/* Zuume Edge — display font (matches the live Clubhouse) */
@font-face {
  font-family: "Zuume Edge";
  src: url("./fonts/ZuumeEdge-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zuume Edge";
  src: url("./fonts/ZuumeEdge-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zuume Edge";
  src: url("./fonts/ZuumeEdge-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zuume Edge";
  src: url("./fonts/ZuumeEdge-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Zuume Edge Cut";
  src: url("./fonts/ZuumeEdgeCut-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zuume Edge Cut";
  src: url("./fonts/ZuumeEdgeCut-SemiBoldItalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Zuume Edge Cut";
  src: url("./fonts/ZuumeEdgeCut-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Zuume Edge Cut";
  src: url("./fonts/ZuumeEdgeCut-ExtraBoldItalic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-display: "Zuume Edge", "Inter", -apple-system, sans-serif;
  --font-display-cut: "Zuume Edge Cut", "Zuume Edge", "Inter", sans-serif;

  --text-dark: #1d1d26;
  --text-dimmed: #cccccc;
  --text-white: #ffffff;
  --text-muted: #8a8a8a;

  --bg-l0: #1d1d26;
  --bg-l1: #25252e;
  --bg-l2: #30333b;
  --bg-l3: #46464e;

  --stroke-dark: #37383e;
  --stroke-bright: #3f414a;

  --red: #af2525;
  --light-red: #ff6464;
  --orange: #e17037;
  --sand: #d49c54;
  --yellow: #d9aa0c;
  --yellow-light: #f6eb56;
  --green: #1b7e3a;
  --light-green: #50de81;
  --blue: #006acc;
  --blue-light: #5cb1ff;
  --purple: #5c6cff;
  --purple-light: #8f9aff;
  --grey: #8a8a8a;
  --grey-light: #cccccc;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-l0);
  color: var(--text-white);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font-family: inherit; }

/* ── Headings ────────────────────────────────────────────── */
/* Display + h1 use Zuume (uppercase) — only for big page titles. */
.h1, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.display { font-size: 44px; line-height: 1; letter-spacing: 0.06em; }
.h1 { font-size: 32px; line-height: 1.05; letter-spacing: 0.05em; }
/* Subtitles use Inter, sentence case — easier to read at small sizes. */
.h2, .h3 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-white);
}
.h2 { font-size: 18px; line-height: 1.25; }
.h3 { font-size: 14px; line-height: 1.3; }

/* ── Sidebar (collapsible) ────────────────────────────────────── */
.sidebar {
  width: 64px;
  background: var(--bg-l0);
  border-right: 1px solid var(--stroke-dark);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1;
  transition: width 180ms ease;
  cursor: ew-resize;
}
.sidebar > .sidebar-top,
.sidebar > .nav-scroll,
.sidebar > .sidebar-bottom {
  cursor: default;
}
.sidebar.expanded { width: 240px; }

.sidebar-top {
  padding: 14px 12px 8px;
  border-bottom: 1px solid var(--stroke-dark);
}
.user-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke-dark);
  cursor: pointer;
  height: 40px;
}
.user-block:hover { background: var(--bg-l1); }
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-l2);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.user-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.user-caret { color: var(--text-muted); display: flex; align-items: center; }

.nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 8px;
}
.nav-section { margin-bottom: 16px; }
.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 6px 8px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
}
.nav-footer { margin-top: auto; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: background 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.nav-link:hover { background: var(--bg-l1); color: var(--text-white); }
.nav-link.active { background: var(--bg-l2); color: var(--text-white); }
.nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav-label {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-bottom {
  padding: 10px 12px 14px;
  border-top: 1px solid var(--stroke-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sidebar-wordmark {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-white);
}
.sidebar-toggle {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--stroke-dark);
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--bg-l1); color: var(--text-white); }
.sidebar-toggle .ico-expanded { display: none; }
.sidebar.expanded .sidebar-toggle .ico-expanded { display: inline-flex; }
.sidebar.expanded .sidebar-toggle .ico-collapsed { display: none; }

/* Collapsed state hides labels */
.sidebar:not(.expanded) .nav-label,
.sidebar:not(.expanded) .nav-section-title,
.sidebar:not(.expanded) .user-name,
.sidebar:not(.expanded) .user-caret,
.sidebar:not(.expanded) .sidebar-wordmark {
  display: none;
}
.sidebar:not(.expanded) .nav-link { justify-content: center; padding: 8px 0; }
.sidebar:not(.expanded) .user-block { padding: 6px; justify-content: center; }
.sidebar:not(.expanded) .sidebar-bottom { justify-content: center; }
.sidebar:not(.expanded) .nav-scroll { padding: 12px 8px 8px; }

/* Clickable edge — extends across the full height of the right border */
.sidebar-edge {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  cursor: ew-resize;
  z-index: 5;
}
.sidebar-edge::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 120ms ease;
}
.sidebar-edge:hover::after { opacity: 1; }

/* ── Main layout ──────────────────────────────────────────────── */
.main {
  flex: 1;
  padding: 32px 36px 64px;
  min-width: 0;
  overflow-x: auto;
}

.page-header {
  margin-bottom: 24px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row.between { justify-content: space-between; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-white);
  color: var(--text-dark);
}
.btn-primary:hover { background: var(--grey-light); }

.btn-secondary {
  background: var(--bg-l3);
  color: var(--text-white);
}
.btn-secondary:hover { background: var(--stroke-bright); }

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--stroke-bright);
}
.btn-outline:hover { background: var(--bg-l2); }

.btn-icon {
  width: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--text-white);
  color: var(--text-dark);
}
.btn-icon-outline {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--bg-l2);
  color: var(--text-white);
  border: 1px solid var(--stroke-dark);
  transition: background 120ms ease, border-color 120ms ease;
}
.btn-icon-outline:hover { background: var(--bg-l3); border-color: var(--stroke-bright); }
.btn-icon-outline .icon { width: 18px; height: 18px; }

.btn-danger {
  background: var(--red);
  color: var(--text-white);
}

/* (Legacy .dropdown squad-selector styles removed — superseded by the
   custom .dropdown component further down. Old styling was painting an
   extra outer rounded box around the trigger.) */

/* ── Tabs ─────────────────────────────────────────────────────── */
.tab-toggle {
  display: inline-flex;
  background: var(--bg-l2);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}
.tab-toggle button {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.tab-toggle button.active {
  background: var(--text-white);
  color: var(--text-dark);
}

.tabs {
  display: inline-flex;
  align-items: center;
  height: 36px;
  background: var(--bg-l2);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
  box-sizing: border-box;
}
.tabs button {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.tabs button.active {
  background: var(--bg-l3);
  color: var(--text-white);
}

.tabs-underline {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--stroke-dark);
  margin-bottom: 24px;
}
.tabs-underline button {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs-underline button.active {
  color: var(--text-white);
  border-color: var(--light-green);
}
.tabs-underline.blue button.active { border-color: var(--blue-light); }

/* ── Radio toggle ─────────────────────────────────────────────── */
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.radio .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--stroke-bright);
  display: grid;
  place-items: center;
}
.radio.checked .dot::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--text-white);
  border-radius: 50%;
}
.radio.checked .dot { border-color: var(--text-white); }

/* ── Cards / containers ───────────────────────────────────────── */
.card {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card-l2 { background: var(--bg-l2); }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-section { margin-top: 24px; }

/* ── Avatar ───────────────────────────────────────────────────── */
.avatar {
  background: var(--bg-l2);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.md { width: 36px; height: 36px; font-size: 13px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; border-radius: var(--radius-lg); }
.avatar.xl { width: 120px; height: 120px; font-size: 36px; border-radius: var(--radius-xl); }

/* ── Badges / tags ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-l2);
  color: var(--text-white);
}
.badge.consent {
  background: var(--bg-l2);
  color: var(--light-green);
}
.badge.team { background: var(--bg-l2); color: var(--text-white); }
.badge.position { background: var(--bg-l2); color: var(--text-white); }
.badge.kamp { background: transparent; color: var(--orange); font-weight: 700; letter-spacing: 0.04em; padding: 0; }
.badge.trening { background: transparent; color: var(--text-white); font-weight: 700; letter-spacing: 0.04em; padding: 0; }
.badge.signal-orange { background: rgba(225, 112, 55, 0.12); color: var(--orange); padding: 3px 8px; font-size: 10px; }
.badge.signal-green { background: rgba(80, 222, 129, 0.12); color: var(--light-green); padding: 3px 8px; font-size: 10px; }
.badge.signal-yellow { background: rgba(217, 170, 12, 0.18); color: var(--yellow); padding: 3px 8px; font-size: 10px; }

/* Mention count chip — fixed square so 1 and 29 are the same size */
.mention {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.mention.blue   { background: #3781D9; color: #fff; }
.mention.green  { background: #1B7E3A; color: #fff; }
.mention.orange { background: #DD9742; color: #fff; }

/* Progress bar */
.progress {
  height: 8px;
  background: var(--bg-l3);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.progress > span { display: block; height: 100%; border-radius: inherit; }
.progress.blue > span { background: var(--blue-light); }
.progress.green > span { background: var(--light-green); }

/* ── Table styles for Status Center ───────────────────────────── */
.checkin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.checkin-table th, .checkin-table td {
  vertical-align: middle;
  font-size: 12px;
  padding: 8px 0;
}
.checkin-table thead th {
  border-bottom: 1px solid var(--stroke-dark);
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  padding-bottom: 14px;
}
.checkin-table .group-header {
  font-size: 13px;
  color: var(--text-white);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.checkin-table .checkin-cat-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
.checkin-table .date-row th {
  padding-top: 8px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
}
.checkin-table .date-row th.today {
  color: var(--text-white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.checkin-table td.past { opacity: 0.45; }
.checkin-table td.today-col {
  background: rgba(255, 255, 255, 0.025);
}
.checkin-table tbody tr {
  border-radius: 8px;
  transition: background 120ms ease;
}
.checkin-table tbody tr:hover {
  background: var(--bg-l2);
  cursor: pointer;
}
.checkin-table tbody td {
  padding: 6px 0;
  border-bottom: 1px solid var(--stroke-dark);
}
.checkin-table .player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 8px;
  min-width: 220px;
}
.checkin-table .player-cell .name {
  font-weight: 500;
  font-size: 13px;
  color: var(--text-white);
}
.checkin-table .group-cells {
  display: flex;
  gap: 4px;
  padding: 0 12px;
}

/* Traffic-light cells — large, filled, black text on bright fills */
.tl {
  width: 40px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid transparent;
  color: #ffffff;
}
.tl-empty {
  background: transparent;
  border-color: var(--stroke-bright);
  color: var(--text-muted);
  font-weight: 500;
}
.tl-missing {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue-light);
}
.tl.score-1 { background: #AF2525; }
.tl.score-2 { background: #E17037; }
.tl.score-3 { background: #D9AA0C; }
.tl.score-4 { background: #1B7E3A; }
.tl.score-5 { background: #1B7E3A; }

/* RPE 1-10 scale: green (low load) → yellow → orange → red (high load) */
.tl.rpe-1, .tl.rpe-2, .tl.rpe-3, .tl.rpe-4, .tl.rpe-5 { background: #1B7E3A; }
.tl.rpe-6, .tl.rpe-7 { background: #D9AA0C; }
.tl.rpe-8 { background: #E17037; }
.tl.rpe-9, .tl.rpe-10 { background: #AF2525; }

/* Group dividers between Sleep/Body feel/Mood */
.group-divider {
  border-left: 1px solid var(--stroke-dark);
}

/* ── Players list grid ────────────────────────────────────────── */
.player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) {
  .player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .player-grid { grid-template-columns: 1fr; }
}

.player-card {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: border-color 120ms ease;
}
.player-card:hover { border-color: var(--stroke-bright); }

.player-card-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.player-card-info { flex: 1; min-width: 0; }
.player-card-info .name {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 18px;
  margin-bottom: 12px;
}
.kv-row {
  display: flex;
  gap: 24px;
  align-items: center;
}
.kv-row .kv-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
}

.player-card-section {
  background: var(--bg-l2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.player-card-section .ph {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.player-card-section .pl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.player-card-section .pr {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.player-card-section .row-li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
}

/* ── Player detail ────────────────────────────────────────────── */
.player-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.player-hero .avatar.xl { background: var(--bg-l3); border: 1px solid var(--stroke-dark); }
.player-hero h1 {
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.player-hero .meta-row { display: flex; gap: 32px; }
.player-hero .meta-row .label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
}

.eval-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.eval-card {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.eval-card .ec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.eval-card .icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.eval-card .icon-tile .icon { width: 24px; height: 24px; }
.icon-tile.blue { background: var(--blue-light); color: #0c0d0e; }
.icon-tile.green { background: var(--light-green); color: #0c0d0e; }
.icon-tile.violet { background: #8B7BE8; color: #0c0d0e; }
/* legacy alias for any remaining callers */
.icon-tile.olive { background: #8B7BE8; color: #0c0d0e; }

.eval-card .ec-titles { display: flex; flex-direction: column; gap: 2px; }
.eval-card .title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Info icon + hover tooltip */
.info-tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  cursor: help;
}
.info-tip:hover { color: var(--text-white); }
.info-tip svg { width: 16px; height: 16px; display: block; }
.info-tip .tip-bubble {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  background: var(--bg-l3);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-white);
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 50;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.info-tip .tip-bubble::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 6px;
  transform: rotate(45deg);
  width: 9px;
  height: 9px;
  background: var(--bg-l3);
  border-left: 1px solid var(--stroke-dark);
  border-top: 1px solid var(--stroke-dark);
}
.info-tip:hover .tip-bubble,
.info-tip:focus-visible .tip-bubble { opacity: 1; }
.eval-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text-white);
  text-transform: none;
}
.eval-card .sub {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.eval-card .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  margin-top: 14px;
  color: var(--text-white);
}
.eval-card .stat-row .count { color: var(--text-muted); font-weight: 600; }

.eval-card .insight-box {
  background: var(--bg-l2);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.eval-card .insight {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-white);
}

/* ── Skill Mapping — Gaps section ─────────────────────────── */
.gap-section {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.gap-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.gap-section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gap-section-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.gap-list { display: flex; flex-direction: column; gap: 10px; }
.gap-row {
  background: var(--bg-l2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}
.gap-row .gap-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.gap-row .gap-skill {
  font-size: 13px;
  color: var(--text-white);
  margin-bottom: 8px;
  font-weight: 500;
}
.gap-row .gap-bars {
  display: grid;
  grid-template-columns: 60px 1fr 24px;
  gap: 10px;
  align-items: center;
  row-gap: 4px;
}
.gap-row .gap-delta {
  display: grid;
  place-items: center;
  min-width: 56px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.gap-row.coach-higher .gap-delta { background: rgba(92,177,255,0.15); color: var(--blue-light); }
.gap-row.player-higher .gap-delta { background: rgba(225,112,55,0.18); color: var(--orange); }
.gap-row .gap-delta-num { font-size: 20px; line-height: 1; margin-bottom: 2px; }
.gap-row .gap-delta-who { font-size: 9px; }

/* ── Skill Mapping ─────────────────────────────────────────── */

/* Score pills — 5-step palette */
.score-pill {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 26px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.score-pill.s-1 { background: #AF2525; }
.score-pill.s-2 { background: #E17037; }
.score-pill.s-3 { background: #D9AA0C; }
.score-pill.s-4 { background: #1B7E3A; }
.score-pill.s-5 { background: #1B7E3A; }
.score-pill.empty {
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
}

/* Mapping overview (top box) */
.mapping-overview {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.mapping-overview-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.mapping-overview-head h2 {
  font-size: 18px;
  font-weight: 800;
}
.mapping-overview-head .sub {
  font-size: 12px;
  color: var(--text-muted);
}
.mapping-overview .left-col { display: flex; flex-direction: column; gap: 18px; }
.mapping-overview .right-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

/* Mini tables for strengths / improvement areas / disagreements */
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table caption {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-white);
  text-align: left;
  padding-bottom: 8px;
}
.mini-table th {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--stroke-dark);
}
.mini-table th.num { text-align: center; width: 56px; }
.mini-table td {
  font-size: 13px;
  color: var(--text-dimmed);
  padding: 9px 10px;
  border-bottom: 1px solid var(--stroke-dark);
}
.mini-table td.num { text-align: center; }
.mini-table tr:last-child td { border-bottom: none; }

/* Per-category card */
.skill-cat {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 12px;
}
.skill-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  gap: 12px;
}
.skill-cat-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
}
.skill-cat-avg {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
}
.skill-cat-avg strong { color: var(--text-white); font-weight: 700; }

.skill-cat-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Spider chart */
.spider-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.spider-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-dimmed);
}
.spider-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.spider-legend .swatch.player { background: var(--blue-light); }
.spider-legend .swatch.coach { background: var(--sand); }
.spider svg { display: block; overflow: visible; }
.spider .grid-poly {
  fill: none;
  stroke: var(--stroke-dark);
  stroke-width: 1;
}
.spider .axis-line { stroke: var(--stroke-dark); stroke-width: 1; }
.spider .axis-label {
  fill: var(--text-dimmed);
  font-size: 11px;
  font-weight: 600;
}
.spider .player-poly {
  fill: rgba(92,177,255,0.2);
  stroke: var(--blue-light);
  stroke-width: 2;
}
.spider .coach-poly {
  fill: rgba(212,156,84,0.18);
  stroke: var(--sand);
  stroke-width: 2;
}
.spider .dot { stroke: #0c0d0e; stroke-width: 1.5; }
.spider .dot.player { fill: var(--blue-light); }
.spider .dot.coach { fill: var(--sand); }

@media (max-width: 1100px) {
  .mapping-overview { grid-template-columns: 1fr; }
  .skill-cat-body { grid-template-columns: 1fr; }
}

/* ── Goal cards (player detail "Goals" tab) ──────────────────── */
.goal-list { display: flex; flex-direction: column; gap: 12px; }
.goal-card {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.goal-card .gc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 16px;
}
.goal-card .gc-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-white);
  flex: 1;
}
.goal-card .gc-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.goal-card .gc-status.active   { background: rgba(80,222,129,0.12); color: var(--light-green); }
.goal-card .gc-status.starting { background: rgba(92,177,255,0.14); color: var(--blue-light); }
.goal-card .gc-status.near     { background: rgba(217,170,12,0.18); color: var(--yellow-light); }
.goal-card .gc-meta {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.goal-card .gc-meta strong { color: var(--text-white); font-weight: 600; }

.eval-list { display: flex; flex-direction: column; gap: 12px; }
.eval-list-item {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 14px;
}
.eval-list-item .eli-top { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .eval-list-item { grid-template-columns: 1fr; }
}
.eval-list-item .eli-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.eval-list-item .eli-tag-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}
.eval-list-item .eli-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  margin-top: 10px;
}
.eval-list-item .eli-reflection {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dimmed);
}
.eval-list-item .eli-stars {
  font-size: 13px;
  color: var(--yellow-light);
  letter-spacing: 1px;
}
/* BEFORE / AFTER vertical layout */
.eval-list-item .eli-top {
  margin-bottom: 14px;
}
.eval-list-item .eli-section {
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.eval-list-item .eli-section.pre {
  padding-right: 32px;
  border-right: 1px solid var(--stroke-dark);
}
@media (max-width: 720px) {
  .eval-list-item .eli-section.pre {
    padding-right: 0;
    border-right: none;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--stroke-dark);
  }
}
.eval-list-item .eli-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--stroke-dark);
}

.eval-list-item .eli-field + .eli-field { margin-top: 12px; }
.eval-list-item .eli-field-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.eval-list-item .eli-field.went-well .eli-field-label { color: var(--blue-light); }
.eval-list-item .eli-field.improve .eli-field-label { color: var(--light-green); }
.eval-list-item .eli-field-text {
  font-size: 13px;
  color: var(--text-dimmed);
  line-height: 1.5;
}
.eval-list-item .eli-goal-rating {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--stroke-bright);
}
.eval-list-item .eli-rating-question {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.empty {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.empty .icon-tile { margin: 0 auto 12px; }
.empty h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.empty p { font-size: 13px; color: var(--text-muted); }

/* ── Team Pulse layout ────────────────────────────────────────── */
.pulse-header { margin-bottom: 18px; }
.pulse-header h1 { margin-top: 0; }
.pulse-intro {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 780px;
  margin-top: 10px;
}

.pulse-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}
.pulse-toolbar > .team-select-wrap { justify-self: start; }
.pulse-toolbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse-toolbar-center #dateRange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
  background: transparent;
}
.pulse-toolbar-center #dateRange svg { width: 16px; height: 16px; }
/* Legacy team-select wrappers — replaced by standard .dropdown */
.team-select-wrap { display: inline-block; }
.team-select-wrap .dropdown-trigger { font-size: 14px; padding: 9px 14px; }

.day-cards {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}
.day-card {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 120ms ease;
}
.day-card.disabled { opacity: 0.4; cursor: not-allowed; background: transparent; }
.day-card:not(.disabled):hover { border-color: var(--light-green); }
.day-card .day-name {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  font-weight: 600;
}
.day-card .day-num {
  font-size: 26px;
  font-weight: 800;
}
.day-card .day-count {
  font-size: 12px;
  color: var(--light-green);
  margin-top: 6px;
  font-weight: 600;
}

.signals {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.signals h2 { text-align: center; margin-bottom: 4px; }
.signals .sub { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.signals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Period switcher (Today / 7d / 30d) */
.period-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.period-switcher {
  display: inline-flex;
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.period-switcher button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  letter-spacing: -0.005em;
}
.period-switcher button:hover { color: var(--text-white); }
.period-switcher button.active {
  background: var(--bg-l3);
  color: var(--text-white);
}
.period-context {
  font-size: 13px;
  color: var(--text-muted);
}
.period-context strong { color: var(--text-white); font-weight: 600; }

/* KPI hero band (Today view) */
.kpi-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.kpi-card {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 124px;
}
.kpi-eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.kpi-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text-white);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.kpi-value .muted-suffix {
  color: var(--text-muted);
  font-size: 22px;
  font-weight: 700;
}
.kpi-value .date-day {
  font-size: 36px;
  font-weight: 800;
}
.kpi-value .date-mon {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dimmed);
  margin-left: 4px;
}
.kpi-foot {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}
.kpi-foot.up { color: var(--light-green); }
.kpi-foot.down { color: var(--light-red); }

/* Section heading (Pulse) — same scale as data-collection */
.pulse-section { margin-bottom: 36px; }
.pulse-section .section-heading h2 { font-size: 22px; }
.pulse-section .section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
  max-width: 580px;
  line-height: 1.55;
}

/* Today's reflections: full-width single column feed */
.today-feed {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 4px 0 8px;
}
.today-feed .empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .kpi-band { grid-template-columns: repeat(2, 1fr); }
  .signals-grid { grid-template-columns: 1fr; }
}
.signal-card {
  background: var(--bg-l2);
  border-radius: var(--radius-md);
  padding: 14px;
}
.signal-card .name { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.signal-card .body { font-size: 14px; color: var(--text-dimmed); line-height: 1.55; }

.pulse-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.feed {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 20px 0 12px;
}
.feed h2 { padding: 0 24px 4px; }
.feed .sub { padding: 0 24px 16px; color: var(--text-muted); font-size: 13px; }
.feed .group-label {
  padding: 0 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 16px;
  margin-bottom: 4px;
  border-top: 1px solid var(--stroke-dark);
  padding-top: 12px;
}
.feed-item {
  padding: 14px 24px;
  border-bottom: 1px solid var(--stroke-dark);
}
.feed-item:last-child { border-bottom: none; }
.feed-item .top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.feed-item .player { font-weight: 700; font-size: 15px; }
.feed-item .ts {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.feed-item .ts strong { color: var(--text-white); margin-left: 4px; }
.feed-item .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-top: 8px;
}
.feed-item .tags { font-size: 14px; color: var(--text-dimmed); margin-top: 4px; line-height: 1.5; }

.feed-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.feed-top .player { font-weight: 700; font-size: 15px; color: var(--text-white); }
.feed-top .feed-type {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.feed-top .feed-type.match { color: var(--orange); }
.feed-top .feed-type.training { color: var(--text-white); }
.feed-top .feed-date {
  font-size: 13px;
  color: var(--text-muted);
}

.prep-block {
  background: var(--bg-l2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 8px;
}
.prep-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--stroke-dark);
}
.prep-head.after { color: var(--text-white); }
.prep-label.went-well { color: var(--blue-light); }
.prep-label.improve   { color: var(--light-green); }
.prep-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 4px;
}
.prep-text { font-size: 14px; color: var(--text-white); line-height: 1.5; }
.feed-stars { color: var(--yellow-light, #f0c948); font-size: 16px; letter-spacing: 2px; }

.h2 .info-tip { margin-left: 8px; vertical-align: middle; }

/* ── Date picker (Status Center) ─────────────────────────────── */
.date-picker-wrap { position: relative; }
.date-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: var(--bg-l2);
  border: 1px solid var(--stroke-dark);
  border-radius: 8px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.date-picker-btn:hover { background: var(--bg-l3); border-color: var(--stroke-bright); }
.date-picker-btn .dp-cal-icon { width: 16px; height: 16px; color: var(--text-white); }

.date-picker-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  z-index: 60;
  gap: 18px;
  min-width: 540px;
}
.date-picker-popover.open { display: flex; }
.dp-presets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}
.dp-presets-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}
.dp-preset {
  text-align: left;
  background: transparent;
  border: 1px solid var(--stroke-dark);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
  cursor: pointer;
}
.dp-preset:hover { background: var(--bg-l2); border-color: var(--stroke-bright); }
.dp-preset.active {
  background: var(--text-white);
  color: var(--bg-l0);
  border-color: var(--text-white);
  font-weight: 600;
}

.dp-calendar {
  flex: 1;
  background: var(--bg-l2);
  border: 1px solid var(--stroke-dark);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 320px;
}
.dp-cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.dp-cal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}
.dp-cal-nav {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--stroke-dark);
  background: transparent;
  color: var(--text-white);
  display: grid; place-items: center;
  cursor: pointer;
}
.dp-cal-nav:hover { background: var(--bg-l3); }
.dp-cal-nav svg { width: 14px; height: 14px; }
.dp-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.dp-cal-weekdays span {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  padding: 4px 0;
}
.dp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.dp-cal-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-white);
  cursor: pointer;
}
.dp-cal-day:hover { background: var(--bg-l3); }
.dp-cal-day.dim { color: var(--text-muted); }
.dp-cal-day.today {
  background: var(--text-white);
  color: var(--bg-l0);
  font-weight: 700;
}

.period-context {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Horizontal scroll wrapper for the Status check-in / RPE tables */
#checkin-table-wrap,
#rpe-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.checkin-table { min-width: max-content; border-collapse: separate; border-spacing: 0; }
.checkin-table .date-row th,
.checkin-table tbody td {
  min-width: 56px;
}

/* Freeze the player-name column on horizontal scroll */
.checkin-table thead th:first-child,
.checkin-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--bg-l0);
}
.checkin-table thead th:first-child { z-index: 4; }

/* ── Skill mapping toolbar ──────────────────────────────────── */
.mapping-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 12px;
}

/* ── Compare-to-last-mapping modal table ─────────────────────── */
.cm-table-wrap {
  border: 1px solid var(--stroke-dark);
  border-radius: 10px;
  overflow: hidden;
}
.cm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cm-table th,
.cm-table td {
  padding: 10px 14px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--stroke-dark);
}
.cm-table thead th {
  background: var(--bg-l2);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.cm-table thead th.cm-group {
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text-white);
}
.cm-table thead .cm-dates th { font-weight: 500; }
.cm-table .cm-col-name {
  text-align: left;
  width: 30%;
}
.cm-table .cm-name {
  text-align: left;
  color: var(--text-white);
  font-weight: 500;
}
.cm-table .cm-cell {
  white-space: nowrap;
}
.cm-table .cm-arrow-cell {
  padding: 10px 4px;
  width: 32px;
  text-align: center;
  vertical-align: middle;
}
.cm-table .cm-divider {
  border-left: 1px solid var(--stroke-dark);
}
.cm-table tbody tr:last-child td { border-bottom: none; }
.cm-arrow {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}
.cm-arrow.up   { color: var(--light-green); }
.cm-arrow.down { color: var(--light-red); }
.cm-arrow.flat { color: var(--text-muted); }

/* ── Development goals (player profile) ─────────────────────── */
.goal-toolbar {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
}
.goal-add-btn,
.goal-import-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.gtb-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-white);
}
.gtb-icon.orange { background: #DD9742; }
.gtb-icon.blue { background: var(--blue-light, #6BA9FF); }
.gtb-icon svg { width: 14px; height: 14px; }

.goal-row-card {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}
.gr-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background: var(--bg-l2);
  border-bottom: 1px solid var(--stroke-dark);
}
.gr-cell { display: flex; align-items: center; gap: 14px; }
.gr-key {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}
.gr-val { font-size: 14px; color: var(--text-white); display: inline-flex; align-items: center; gap: 4px; }
.gr-pill {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  background: #DD9742;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.goal-star { color: var(--text-muted); font-size: 14px; letter-spacing: 1px; }
.goal-star.on { color: var(--yellow-light, #f6eb56); }

.gr-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.gr-action {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.gr-action.edit { padding: 6px 10px; border-radius: 8px; }
.gr-action.edit:hover { background: var(--bg-l3); }
.gr-icon-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.gr-icon-btn svg { width: 14px; height: 14px; }
.gr-icon-btn.complete { background: var(--light-green); color: #0a1a0c; }
.gr-icon-btn.dismiss  { background: var(--bg-l3);     color: var(--text-muted); }
.gr-icon-btn.complete:hover { filter: brightness(1.05); }
.gr-icon-btn.dismiss:hover  { color: var(--text-white); }

.gr-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--stroke-dark);
  font-size: 14px;
  align-items: baseline;
}
.gr-row:last-child { border-bottom: none; }
.gr-label { color: var(--text-white); font-weight: 700; }
.gr-text  { color: var(--text-white); line-height: 1.5; }

/* ── Files page ─────────────────────────────────────────────── */
.files-toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.files-scope { display: flex; gap: 24px; align-items: center; }
.files-scope-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}
.files-scope-radio input { display: none; }
.files-scope-radio .files-scope-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--stroke-bright);
  display: grid;
  place-items: center;
  transition: border-color 120ms ease;
}
.files-scope-radio .files-scope-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
  opacity: 0;
  transition: opacity 120ms ease;
}
.files-scope-radio input:checked ~ .files-scope-dot { border-color: var(--blue-light); }
.files-scope-radio input:checked ~ .files-scope-dot::after { opacity: 1; }
.files-scope-icon { display: inline-grid; place-items: center; color: var(--text-white); }
.files-scope-icon svg { width: 18px; height: 18px; }

.files-scope-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 16px;
}
.files-scope-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-white);
  margin-bottom: 4px;
}
.files-scope-title .info-tip { margin-left: 8px; vertical-align: middle; }
.files-scope-sub {
  color: var(--text-muted);
  font-size: 13px;
}
.folder-add-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-l2);
  border: 1px solid var(--stroke-dark);
  color: var(--text-white);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 120ms ease, border-color 120ms ease;
}
.folder-add-btn:hover { background: var(--bg-l3); border-color: var(--stroke-bright); }
.folder-add-btn svg { width: 20px; height: 20px; }

.files-table {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ff-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 2fr 60px;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-white);
}
.ff-head {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  border-bottom: 1px solid var(--stroke-dark);
  padding-top: 12px;
  padding-bottom: 12px;
}
.ff-folder-row { cursor: pointer; transition: background 120ms ease; }
.ff-folder-row:hover { background: var(--bg-l2); }
.ff-folder-block + .ff-folder-block { border-top: 1px solid var(--stroke-dark); }
.ff-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.ff-chev-wrap { display: inline-grid; place-items: center; }
.ff-chev { width: 14px; height: 14px; color: var(--text-muted); transition: transform 150ms ease; }
.ff-folder-block.expanded .ff-chev { transform: rotate(90deg); }
.ff-folder { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.ff-folder-name { color: var(--text-white); }
.ff-latest { color: var(--text-dimmed); }
.ff-ago { color: var(--text-muted); margin-left: 8px; font-size: 13px; }
.ff-actions { display: flex; justify-content: flex-end; }
.ff-dots {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: transparent; border: none;
  color: var(--text-muted);
  display: grid; place-items: center;
  cursor: pointer;
}
.ff-dots:hover { background: var(--bg-l2); color: var(--text-white); }
.ff-dots svg { width: 18px; height: 18px; }

.ff-files {
  display: none;
  padding: 4px 20px 14px;
  background: var(--bg-l1);
  border-top: 1px solid var(--stroke-dark);
}
.ff-folder-block.expanded .ff-files { display: block; }
.ff-files-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  color: var(--text-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--stroke-dark);
  margin-bottom: 6px;
}
.ff-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}
.ff-upload:hover { background: var(--bg-l2); }
.ff-upload svg { width: 14px; height: 14px; }

.ff-file {
  display: grid;
  grid-template-columns: 36px 1fr 40px;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
}
.ff-file + .ff-file { border-top: 1px solid var(--stroke-dark); }
.ff-file-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-l2);
  display: grid; place-items: center;
  color: var(--text-white);
}
.ff-file-icon svg { width: 22px; height: 22px; }
.ff-file-name { font-size: 14px; font-weight: 500; color: var(--text-white); }
.ff-file-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.files-empty {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 56px 20px;
  text-align: center;
}
.files-empty p { color: var(--text-white); font-size: 15px; }
.files-empty .files-empty-sub { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.totals {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  align-self: start;
}
.totals h2 { margin-bottom: 4px; }
.totals .sub { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.totals .row-li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--stroke-dark);
}
.totals .row-li:last-child { border-bottom: none; }
.totals .count { font-weight: 700; color: var(--orange); }
.totals .count.zero { color: var(--text-muted); font-weight: 500; }

/* ── Player activity / weekly usage card ──────────────────── */
.usage-card {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}
.usage-card .body { padding: 18px 20px 16px; }
.usage-card .eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.usage-card .hero-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.usage-card .pct {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-white);
}
.usage-card .pct .unit {
  font-size: 28px;
  font-weight: 700;
  margin-left: 2px;
  color: var(--text-dimmed);
  letter-spacing: -0.02em;
}
.usage-card .trend {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}
.usage-card .trend.up {
  background: rgba(80,222,129,0.16);
  color: var(--light-green);
}
.usage-card .trend.neutral {
  background: rgba(246,235,86,0.14);
  color: var(--yellow-light);
}
.usage-card .trend.down {
  background: rgba(255,100,100,0.16);
  color: var(--light-red);
}
.usage-card .trend svg { width: 12px; height: 12px; display: block; }
.usage-card .footer-line {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.usage-card .footer-line .prev {
  color: var(--text-dimmed);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.totals-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  margin: 22px 0 4px;
}
.totals-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ── Page title (large display, used across pages) ─────────── */
.page-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.page-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-toolbar .spacer { flex: 1; }

/* Custom dropdown (standard across the app) */
.dropdown {
  position: relative;
  display: inline-block;
  font-family: inherit;
}
.dropdown-trigger {
  background: var(--bg-l2);
  border: 1px solid var(--stroke-dark);
  border-radius: 10px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms ease, background 120ms ease;
}
.dropdown-trigger:hover:not(:disabled) { border-color: var(--stroke-bright); }
.dropdown-trigger:disabled { cursor: default; opacity: 1; }
.dropdown-trigger:focus { outline: none; }
.dropdown-trigger:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 1px; }
.dropdown.open .dropdown-trigger {
  border-color: var(--stroke-bright);
  background: var(--bg-l3);
}
.dropdown-trigger .chev {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.dropdown-trigger .chev svg { width: 8px; height: 12px; display: block; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: 12px;
  padding: 6px;
  z-index: 200;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  display: none;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dimmed);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}
.dropdown-item:hover { background: var(--bg-l2); color: var(--text-white); }
.dropdown-item.selected {
  background: transparent;
  color: var(--text-white);
  font-weight: 600;
}
.dropdown-item.selected:hover { background: var(--bg-l2); }
.dropdown-item .check {
  color: var(--text-white);
  font-weight: 800;
  font-size: 13px;
  margin-left: 18px;
  visibility: hidden;
}
.dropdown-item.selected .check { visibility: visible; }

/* Row actions menu (… popover on data-table rows) — reuses dropdown look */
.row-actions-wrap { position: relative; display: inline-block; }
.row-actions-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: 12px;
  padding: 6px;
  z-index: 200;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  display: none;
}
.row-actions-wrap.open .row-actions-menu { display: block; }
.row-actions-menu .dropdown-item[data-action="remove"] { color: var(--light-red); }
.row-actions-menu .dropdown-item[data-action="remove"]:hover { color: var(--light-red); }

/* Legacy alias — old .compact-select kept as a safe no-op fallback */
.compact-select { display: none; }

/* Segmented tabs (Upcoming / Find) — outer container is bg-less so the
   first button's edge sits flush at x=0 of the row, aligned with the page title. */
.seg-tabs {
  display: inline-flex;
  background: transparent;
  border-radius: var(--radius-md);
  gap: 2px;
}
.seg-tabs button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.seg-tabs button:hover { color: var(--text-dimmed); }
.seg-tabs button.active {
  background: var(--bg-l2);
  color: var(--text-white);
}

/* Big primary button (white, dark text) */
.btn-add {
  background: #fff;
  color: #0c0d0e;
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.btn-add:hover { filter: brightness(0.95); }

/* Generic data table */
.data-table {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 16px 20px;
  border-bottom: 1px solid var(--stroke-dark);
  background: var(--bg-l1);
}
.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--stroke-dark);
  font-size: 14px;
  color: var(--text-dimmed);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-l2); }

/* Compact variant — for dense lists like player files */
.data-table.compact th { padding: 12px 20px; }
.data-table.compact td { padding: 10px 20px; }

/* Generic player cell: avatar + name inline */
.data-table .player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.data-table .player-cell .name {
  font-weight: 600;
  color: var(--text-white);
}

/* Match cell (left-aligned team-vs-team) */
.match-cell {
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}
.cell-strong {
  font-size: 14px;
  color: var(--text-white);
  font-weight: 600;
}
.cell-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Row action menu (3 dots) */
.row-actions {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-md);
  font-size: 18px;
  line-height: 1;
}
.row-actions:hover { color: var(--text-white); background: var(--bg-l3); }

/* Toggle switch (for data-collection + push) */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}
.switch input { display: none; }
.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--bg-l3);
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease;
}
.switch .slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 160ms ease;
}
.switch input:checked + .slider { background: var(--light-green); }
.switch input:checked + .slider::after { transform: translateX(16px); }

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  gap: 16px;
}
.settings-row.dim { background: var(--bg-l1); opacity: 0.55; }
.settings-row .title { font-size: 15px; font-weight: 700; color: var(--text-white); margin-bottom: 4px; }
.settings-row .desc  { font-size: 12px; color: var(--text-muted); max-width: 480px; line-height: 1.5; }

/* Status Center — summary line above the table */
.status-summary {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.status-summary strong { color: var(--text-white); font-weight: 700; }

/* Page-level peer sections under the master kill-switch */
.dc-section {
  border-top: 1px solid var(--stroke-dark);
  padding-top: 32px;
  margin-bottom: 40px;
}
.dc-section:last-child { margin-bottom: 0; }
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px;
}
.section-heading .num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.section-heading h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 22px;
  max-width: 580px;
  line-height: 1.55;
}
.master-row { padding: 22px 24px; }
.master-row .title { font-size: 16px; }

/* Three-up settings grid */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Form cards (data-collection) */
.form-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-card {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 120ms ease;
}
.form-card:hover { border-color: var(--stroke-bright); }
.form-card.selected { border-color: var(--light-green); }
.form-card .fc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.form-card .fc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
}
.form-card .fc-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.form-card .fc-fields {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.form-card .fc-field-pill {
  background: var(--bg-l2);
  border: 1px solid var(--stroke-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-dimmed);
  font-weight: 500;
}
.form-card.selected .fc-check {
  color: var(--light-green);
  font-size: 18px;
  font-weight: 800;
}
.form-card-new {
  background: transparent;
  border: 1px dashed var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 110px;
}
.form-card-new:hover { color: var(--text-dimmed); border-color: var(--text-muted); }

/* Push form */
.push-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.push-card {
  background: var(--bg-l2);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.push-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}
.push-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.section-separator {
  border: none;
  border-top: 1px solid var(--stroke-dark);
  margin: 28px 0;
}
.send-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}
.send-section p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.checkbox-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dimmed);
  font-weight: 500;
}
.checkbox-row input[type="checkbox"] { accent-color: var(--light-green); width: 16px; height: 16px; }
.send-section textarea {
  width: 100%;
  max-width: 520px;
  background: var(--bg-l2);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-md);
  color: var(--text-white);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
}
.send-section textarea:focus { outline: none; border-color: var(--blue-light); }
.send-section .char-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Entitlement cards (Users page) */
.entitlement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.entitlement-card {
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  position: relative;
}
.entitlement-card.team {
  background: rgba(212, 156, 84, 0.18);
  border-color: rgba(212, 156, 84, 0.35);
}
.entitlement-card .ec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.entitlement-card .ec-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}
.entitlement-card .ec-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  display: grid;
  place-items: center;
}
.entitlement-card .ec-icon:hover { color: var(--text-white); }
.entitlement-card .ec-icon svg { width: 18px; height: 18px; }
.entitlement-card .ec-code {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}
.entitlement-card .ec-code strong {
  color: var(--text-dimmed);
  font-weight: 600;
}
.entitlement-card .ec-count {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-white);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  display: inline-block;
}
.entitlement-card .ec-count .sep {
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 6px;
}
.entitlement-card .ec-count .total {
  color: var(--text-dimmed);
  font-weight: 700;
}
.entitlement-card .ec-inuse {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 10px;
}

/* Search input */
.text-input {
  background: var(--bg-l2);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  min-width: 240px;
}
.text-input::placeholder { color: var(--text-muted); }
.text-input:focus { outline: none; border-color: var(--blue-light); }

/* Search input with leading icon */
.search-field {
  position: relative;
  display: inline-block;
}
.search-field .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: inline-flex;
}
.search-field .search-icon svg { width: 16px; height: 16px; }
.search-input {
  background: var(--bg-l2);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-md);
  padding: 9px 14px 9px 38px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  min-width: 320px;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { outline: none; border-color: var(--blue-light); }
/* Modifier — let the search field stretch to fill its toolbar slot. Pair with .toolbar-cell on .page-toolbar to constrain to one grid-column width. */
.search-field.grow { display: flex; flex: 1; }
.search-field.grow .search-input { width: 100%; min-width: 0; }

/* Constrain the page toolbar to a single column of the player-grid below, so its right edge lines up with the first card. Breakpoints match .player-grid. */
.page-toolbar.toolbar-cell { max-width: calc((100% - 32px) / 3); }
@media (max-width: 1100px) {
  .page-toolbar.toolbar-cell { max-width: calc((100% - 16px) / 2); }
}
@media (max-width: 720px) {
  .page-toolbar.toolbar-cell { max-width: 100%; }
}

/* Login method cell */
.login-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dimmed);
  font-weight: 500;
}
.login-pill svg { width: 14px; height: 14px; }

/* Role label — plain text, no pill */
.role-pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dimmed);
  text-transform: capitalize;
  letter-spacing: 0;
}

@media (max-width: 1100px) {
  .push-grid, .settings-grid, .entitlement-grid { grid-template-columns: 1fr; }
  .form-cards { grid-template-columns: 1fr; }
}

/* ── Icons (inline SVG defaults) ─────────────────────────────── */
.icon { width: 18px; height: 18px; }
.icon-sm { width: 14px; height: 14px; }

/* ── Week template (recurring training structure) ───────────── */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  gap: 24px;
}
.page-head h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.page-head .sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.5;
}
.page-head .meta-pills {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pill-info {
  background: var(--bg-l2);
  border: 1px solid var(--stroke-dark);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--text-dimmed);
  white-space: nowrap;
}
.pill-info strong { color: var(--text-white); margin-right: 4px; }

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.week-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.day-header {
  background: var(--bg-l2);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}
.day-header.today {
  border-color: var(--blue-light);
  color: var(--blue-light);
}

.session-card {
  background: var(--bg-l2);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.session-card.enabled {
  border-color: rgba(80,222,129,0.55);
  box-shadow: inset 0 0 0 1px rgba(80,222,129,0.18);
}
.session-card .s-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}
.session-card .s-time {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.session-card .s-focus {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
.session-card .pr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-l3);
  border: 1px solid var(--stroke-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.session-card .pr-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}
.session-card .pr-pill.on {
  background: rgba(80,222,129,0.16);
  border-color: rgba(80,222,129,0.5);
  color: var(--light-green);
}
.session-card .pr-pill.on::before { background: var(--light-green); }
.session-card .pr-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.session-card .pr-stats strong {
  color: var(--text-white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.session-card .edit-link {
  font-size: 13px;
  color: var(--text-dimmed);
  font-weight: 500;
  cursor: pointer;
  align-self: center;
  margin-top: 14px;
}
.session-card .edit-link:hover { color: var(--text-white); }

.add-card {
  background: transparent;
  border: 1px dashed var(--stroke-dark);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease;
}
.add-card:hover { border-color: var(--text-muted); color: var(--text-dimmed); }

@media (max-width: 1100px) {
  .week-grid { grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; }
}

/* ── Games ──────────────────────────────────────────────────── */
.games-section { margin-top: 24px; }
.games-section h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.games-list { display: flex; flex-direction: column; gap: 8px; }
.game-row {
  display: grid;
  grid-template-columns: 64px 70px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: var(--bg-l1);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}
.game-row .g-date {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.game-row .g-date strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0;
  text-transform: none;
}
.game-row .g-time {
  font-size: 13px;
  color: var(--text-dimmed);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.game-row .g-opp {
  font-size: 14px;
  color: var(--text-white);
  font-weight: 600;
}
.game-row .g-opp .vs { color: var(--text-muted); font-weight: 500; margin-right: 6px; }
.game-row .g-venue {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-l2);
  padding: 4px 10px;
  border-radius: 999px;
}
.game-row .g-result {
  display: inline-grid;
  place-items: center;
  min-width: 70px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.game-row .g-result.W { background: rgba(27,126,58,0.25); color: var(--light-green); }
.game-row .g-result.L { background: rgba(175,37,37,0.25); color: var(--light-red); }
.game-row .g-result.D { background: rgba(217,170,12,0.22); color: var(--yellow-light); }
.game-row .g-result.upcoming { background: var(--bg-l2); color: var(--text-muted); }

/* Add game button + form */
.btn-primary {
  background: var(--text-white);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.btn-primary:hover { background: var(--grey-light); }
.btn-primary:disabled {
  background: var(--bg-l3);
  color: var(--text-dimmed);
  cursor: not-allowed;
}
.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--stroke-bright);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--bg-l2); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-grid input, .form-grid select {
  width: 100%;
  background: var(--bg-l2);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-white);
  font-size: 14px;
  font-family: inherit;
}
.form-grid input:focus, .form-grid select:focus {
  outline: none;
  border-color: var(--blue-light);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .schedule-day { grid-template-columns: 1fr; }
  .session-card { grid-template-columns: 1fr; }
  .pr-toggle { align-items: flex-start; }
  .game-row { grid-template-columns: 1fr; gap: 6px; }
}
