:root {
  color-scheme: light;
  --bg: #f3f2ef;
  --surface: #ffffff;
  --surface-2: #f1f0ed;
  --ink: #121411;
  --muted: #6b6f67;
  --line: #dfddd7;
  --accent: #f15a1a;
  --accent-2: #fff0e7;
  --black: #050504;
  --green: #1f7a4d;
  --green-2: #dff1e8;
  --blue: #1f5d8a;
  --blue-2: #dfeef8;
  --red: #b92d2d;
  --red-2: #f8e2df;
  --amber: #a05d10;
  --amber-2: #fbedd4;
  --purple: #6f4aa0;
  --purple-2: #ece5f7;
  --shadow: 0 18px 42px rgba(18, 20, 17, 0.08);
  --soft-shadow: 0 26px 70px rgba(18, 20, 17, 0.1);
}

/* Player Hub V2 readability pass: no internal stat-table scrolling. */
.player-hub-context-copy {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.35;
  margin-top: 6px;
}

.ai-summary-paragraph {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 96ch;
}

.player-hub-season-table-wrap,
.player-hub-compact-wrap {
  max-height: none !important;
  overflow: visible !important;
}

.player-hub-season-table,
.player-hub-compact-table {
  min-width: 0 !important;
  table-layout: fixed;
  width: 100%;
}

.player-hub-season-table th,
.player-hub-season-table td,
.player-hub-compact-table th,
.player-hub-compact-table td {
  white-space: normal !important;
}

.player-hub-compact-table {
  font-size: 0.78rem;
}

.player-hub-compact-table th,
.player-hub-compact-table td {
  padding: 9px 8px;
  vertical-align: top;
}

.player-hub-compact-table th {
  position: static !important;
  top: auto !important;
}

.player-hub-compact-table th:nth-child(1),
.player-hub-compact-table td:nth-child(1) {
  width: 23%;
}

.player-hub-compact-table th:nth-child(2),
.player-hub-compact-table td:nth-child(2) {
  width: 12%;
}

.player-hub-compact-table th:nth-child(3),
.player-hub-compact-table td:nth-child(3) {
  width: 13%;
}

.player-hub-compact-table th:nth-child(4),
.player-hub-compact-table td:nth-child(4) {
  width: 15%;
}

.player-hub-compact-table th:nth-child(5),
.player-hub-compact-table td:nth-child(5) {
  width: 29%;
}

.player-hub-compact-table th:nth-child(6),
.player-hub-compact-table td:nth-child(6) {
  width: 8%;
}

.player-hub-compact-table th:first-child,
.player-hub-compact-table td:first-child,
.player-hub-table-labels th:first-child {
  box-shadow: none !important;
  left: auto !important;
  min-width: 0 !important;
  position: static !important;
  width: auto !important;
}

.player-hub-compact-table td:first-child,
.player-hub-compact-table tbody tr:nth-child(even) td:first-child,
.player-hub-compact-table tbody tr:hover td:first-child,
.player-hub-table-labels th:first-child {
  background: inherit;
}

.player-hub-game-cell {
  min-width: 0;
}

.player-hub-score-cell,
.player-hub-role-cell,
.player-hub-involvement-cell,
.player-hub-veo-cell {
  text-align: center;
}

.player-hub-score-cell strong,
.player-hub-role-cell span {
  display: block;
}

.player-hub-score-cell .result-badge {
  margin-top: 5px;
}

.player-hub-role-cell {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.35;
}

.player-hub-role-cell .player-hub-award-chip {
  margin-top: 4px;
}

.player-hub-stats-cell {
  color: var(--black);
  font-weight: 860;
  line-height: 1.45;
  text-align: left !important;
}

.player-hub-involvement-pill.is-low {
  background: rgba(18, 20, 17, 0.06);
  border-color: rgba(18, 20, 17, 0.1);
  color: #5f675f;
}

.player-hub-involvement-pill.is-medium {
  background: var(--amber-2);
  border-color: #e8ca91;
  color: var(--amber);
}

.player-hub-involvement-pill.is-high {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.player-hub-chart-line.is-team {
  stroke: rgba(18, 20, 17, 0.38);
  stroke-dasharray: 7 6;
  stroke-width: 1.7;
}

.player-hub-chart-legend {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 6px;
}

.player-hub-chart-legend span {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.player-hub-chart-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 4px;
  width: 22px;
}

.player-hub-chart-legend .is-player {
  background: var(--accent);
}

.player-hub-chart-legend .is-team {
  background: rgba(18, 20, 17, 0.38);
}

@media (max-width: 860px) {
  .player-hub-season-table,
  .player-hub-compact-table {
    font-size: 0.7rem;
  }

  .player-hub-season-table th,
  .player-hub-season-table td,
  .player-hub-compact-table th,
  .player-hub-compact-table td {
    padding: 7px 6px;
  }

  .player-hub-stats-cell {
    font-size: 0.68rem;
    line-height: 1.36;
  }

  .player-hub-involvement-pill,
  .player-hub-veo-cell a,
  .player-hub-award-chip {
    font-size: 0.62rem;
    padding: 5px 7px;
  }

  .player-hub-chart-wrap {
    overflow-x: hidden;
  }

  .player-hub-line-chart {
    min-width: 0;
  }
}

/* Player Hub July polish: rank heat, cleaner charts and scroll-aware navigation. */
.topbar,
.tabs {
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

body.is-nav-collapsed:not(.is-cloud-login) .topbar {
  transform: translateY(-112%);
}

body.is-nav-collapsed:not(.is-cloud-login) .tabs {
  transform: translateY(-170%);
}

.player-hub-season-table td:nth-child(2) {
  background: transparent !important;
}

.player-hub-season-table td:nth-child(3) {
  background: rgba(var(--season-rgb), calc(0.08 + (var(--season-strength) * 0.28))) !important;
  color: var(--black);
  font-weight: 950;
}

.player-hub-chart-line.player-hub-chart-team-line {
  fill: none;
  stroke: var(--black);
  stroke-dasharray: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-team-point {
  fill: var(--black);
  stroke: white;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-legend .is-team {
  background: var(--black);
}

.player-hub-development .player-hub-card-veo {
  background: white !important;
  border: 1.5px solid var(--black) !important;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(18, 20, 17, 0.08);
  color: var(--black) !important;
  font-size: 0.72rem !important;
  min-height: 32px;
  padding: 8px 13px !important;
}

.player-hub-development .player-hub-card-veo:hover {
  background: var(--black) !important;
  color: white !important;
}

.player-hub-mom-cell .player-hub-award-chip {
  margin: 0 auto;
}

@media (max-width: 860px) {
  body.is-nav-collapsed:not(.is-cloud-login) .topbar {
    transform: translateY(-112%);
  }

  body.is-nav-collapsed:not(.is-cloud-login) .tabs {
    transform: translateY(calc(-1 * (var(--mobile-topbar-height, 64px) + 56px)));
  }

  .mobile-table-hint {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
  }

  .player-hub-development .player-hub-card-veo {
    font-size: 0.7rem !important;
    min-height: 34px;
    padding: 9px 14px !important;
  }
}

/* Final Player Hub controls and parent-facing button polish. */
.player-hub-view-options {
  padding: 12px !important;
}

.player-hub-view-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.player-hub-season-table tr,
.player-hub-season-table tr.attack,
.player-hub-season-table tr.creation,
.player-hub-season-table tr.defence,
.player-hub-season-table tr.keeper,
.player-hub-season-table tr.award {
  --season-rgb: 31, 122, 77 !important;
}

.player-hub-season-table td:nth-child(3) {
  background: rgba(31, 122, 77, calc(0.06 + (var(--season-strength) * 0.26))) !important;
}

.player-hub-trend-actions {
  align-items: flex-end;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.player-hub-window-toggle,
.player-hub-trend-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.player-hub-window-toggle .quiet-button {
  min-height: 34px;
}

.player-hub-veo-cell a,
.player-hub-development .player-hub-card-veo,
.player-hub-mobile-game-head a {
  align-items: center;
  background: white !important;
  border: 1.5px solid var(--black) !important;
  border-radius: 7px !important;
  color: var(--black) !important;
  display: inline-flex;
  font-size: 0.72rem !important;
  font-weight: 950;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-height: 34px;
  padding: 9px 12px !important;
  text-decoration: none;
  white-space: nowrap;
}

.player-hub-veo-cell a:hover,
.player-hub-development .player-hub-card-veo:hover,
.player-hub-mobile-game-head a:hover {
  background: var(--black) !important;
  color: white !important;
}

@media (max-width: 860px) {
  .player-hub-view-options {
    padding: 10px !important;
  }

  .player-hub-view-controls {
    grid-template-columns: 1fr;
  }

  .player-hub-trend-actions {
    justify-items: stretch;
  }

  .player-hub-window-toggle,
  .player-hub-trend-tabs {
    justify-content: flex-start;
  }

  .player-hub-window-toggle .quiet-button {
    flex: 1 1 120px;
  }

  .player-hub-veo-cell a,
  .player-hub-development .player-hub-card-veo,
  .player-hub-mobile-game-head a {
    min-height: 36px;
  }
}

/* Player Hub polish: calm rank heat, clearer Veo buttons and scoped controls. */
.player-hub-view-options {
  padding: 12px !important;
}

.player-hub-view-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.player-hub-season-table tr,
.player-hub-season-table tr.attack,
.player-hub-season-table tr.creation,
.player-hub-season-table tr.defence,
.player-hub-season-table tr.keeper,
.player-hub-season-table tr.award {
  --season-rgb: 31, 122, 77 !important;
}

.player-hub-season-table td:nth-child(3) {
  background: rgba(31, 122, 77, calc(0.06 + (var(--season-strength) * 0.26))) !important;
}

.player-hub-trend-actions {
  align-items: flex-end;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.player-hub-window-toggle,
.player-hub-trend-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.player-hub-window-toggle .quiet-button {
  min-height: 34px;
}

.player-hub-veo-cell a,
.player-hub-development .player-hub-card-veo,
.player-hub-mobile-game-head a {
  align-items: center;
  background: white !important;
  border: 1.5px solid var(--black) !important;
  border-radius: 7px !important;
  color: var(--black) !important;
  display: inline-flex;
  font-size: 0.72rem !important;
  font-weight: 950;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-height: 34px;
  padding: 9px 12px !important;
  text-decoration: none;
  white-space: nowrap;
}

.player-hub-veo-cell a:hover,
.player-hub-development .player-hub-card-veo:hover,
.player-hub-mobile-game-head a:hover {
  background: var(--black) !important;
  color: white !important;
}

@media (max-width: 860px) {
  .player-hub-view-options {
    padding: 10px !important;
  }

  .player-hub-view-controls {
    grid-template-columns: 1fr;
  }

  .player-hub-trend-actions {
    justify-items: stretch;
  }

  .player-hub-window-toggle,
  .player-hub-trend-tabs {
    justify-content: flex-start;
  }

  .player-hub-window-toggle .quiet-button {
    flex: 1 1 120px;
  }

  .player-hub-veo-cell a,
  .player-hub-development .player-hub-card-veo,
  .player-hub-mobile-game-head a {
    min-height: 36px;
  }
}

/* Final Player Hub follow-up overrides. */
.player-hub-season-table tr {
  --season-rgb: 160, 93, 16;
  --season-strength: 0;
}

.player-hub-season-table tr.attack {
  --season-rgb: 241, 90, 26;
}

.player-hub-season-table tr.creation {
  --season-rgb: 160, 93, 16;
}

.player-hub-season-table tr.defence {
  --season-rgb: 31, 122, 77;
}

.player-hub-season-table tr.keeper {
  --season-rgb: 31, 93, 138;
}

.player-hub-season-table tr.award {
  --season-rgb: 241, 90, 26;
}

.player-hub-season-table td:nth-child(2) {
  background: rgba(var(--season-rgb), calc(0.08 + (var(--season-strength) * 0.28))) !important;
  color: var(--black);
}

.player-hub-season-table td:nth-child(2) strong {
  color: var(--black);
}

.player-hub-no-veo-chip,
.player-hub-card-veo {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  min-height: 28px;
  padding: 7px 9px;
  white-space: nowrap;
}

.player-hub-card-veo {
  background: var(--accent-2);
  border: 1px solid rgba(241, 90, 26, 0.28);
  color: var(--accent);
  text-decoration: none;
}

.player-hub-no-veo-chip {
  background: rgba(18, 20, 17, 0.06);
  border: 1px solid rgba(18, 20, 17, 0.1);
  color: var(--muted);
}

.player-hub-bar-chart {
  display: block;
  min-width: 760px;
  width: 100%;
}

.player-hub-chart-bar {
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-bar.is-player {
  fill: var(--accent);
}

.player-hub-chart-bar.is-team {
  fill: var(--black);
  opacity: 0.88;
}

.player-hub-chart-bar-value {
  fill: var(--black);
  font-size: 0.66rem;
  font-weight: 950;
  text-anchor: middle;
}

.player-hub-chart-opponent {
  fill: var(--muted);
  font-size: 0.55rem;
  font-weight: 820;
  text-anchor: middle;
}

.player-hub-chart-average-line {
  stroke: rgba(18, 20, 17, 0.42);
  stroke-dasharray: 5 5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-average-label {
  fill: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  text-anchor: end;
}

.player-hub-game-card {
  grid-template-columns: minmax(0, 1fr) !important;
  padding: 8px 10px !important;
}

.player-hub-game-card-main {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
}

.player-hub-game-card-metrics {
  justify-content: flex-start !important;
}

.player-hub-game-card .link-button {
  display: none !important;
}

/* True final Player Hub July polish: rank heat, cleaner charts and scroll-aware navigation. */
.topbar,
.tabs {
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

body.is-nav-collapsed:not(.is-cloud-login) .topbar {
  transform: translateY(-112%);
}

body.is-nav-collapsed:not(.is-cloud-login) .tabs {
  transform: translateY(-170%);
}

.player-hub-season-table td:nth-child(2) {
  background: transparent !important;
}

.player-hub-season-table td:nth-child(3) {
  background: rgba(var(--season-rgb), calc(0.08 + (var(--season-strength) * 0.28))) !important;
  color: var(--black);
  font-weight: 950;
}

.player-hub-chart-line.player-hub-chart-team-line {
  fill: none;
  stroke: var(--black);
  stroke-dasharray: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-team-point {
  fill: var(--black);
  stroke: white;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-legend .is-team {
  background: var(--black);
}

.player-hub-development .player-hub-card-veo {
  background: white !important;
  border: 1.5px solid var(--black) !important;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(18, 20, 17, 0.08);
  color: var(--black) !important;
  font-size: 0.72rem !important;
  min-height: 32px;
  padding: 8px 13px !important;
}

.player-hub-development .player-hub-card-veo:hover {
  background: var(--black) !important;
  color: white !important;
}

.player-hub-mom-cell .player-hub-award-chip {
  margin: 0 auto;
}

@media (max-width: 860px) {
  body.is-nav-collapsed:not(.is-cloud-login) .topbar {
    transform: translateY(-112%);
  }

  body.is-nav-collapsed:not(.is-cloud-login) .tabs {
    transform: translateY(calc(-1 * (var(--mobile-topbar-height, 64px) + 56px)));
  }

  .mobile-table-hint {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
  }

  .player-hub-development .player-hub-card-veo {
    font-size: 0.7rem !important;
    min-height: 34px;
    padding: 9px 14px !important;
  }
}

/* Final Player Hub correction: game-by-game stats use the Match Review table language. */
.player-hub-compact-wrap {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(223, 221, 215, 0.9);
  border-radius: 12px;
  max-height: min(68vh, 680px) !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.player-hub-compact-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 0.8rem !important;
  min-width: 1120px !important;
  table-layout: auto !important;
  width: 100%;
}

.player-hub-compact-table th,
.player-hub-compact-table td {
  padding: 9px 10px !important;
  text-align: center;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.player-hub-compact-table tbody td {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 221, 215, 0.75);
  height: 54px;
}

.player-hub-compact-table tbody tr:nth-child(even) td {
  background: rgba(248, 247, 244, 0.94);
}

.player-hub-compact-table tbody tr:hover td {
  background: #fff7f1;
}

.player-hub-table-groups th,
.player-hub-table-labels th {
  position: sticky !important;
}

.player-hub-table-groups th {
  background: #11130f !important;
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 0.62rem;
  height: 30px;
  padding-bottom: 7px !important;
  padding-top: 8px !important;
  text-transform: uppercase;
  top: 0 !important;
  z-index: 5;
}

.player-hub-table-labels th {
  background: #f6f5f2 !important;
  border-bottom: 1px solid rgba(18, 20, 17, 0.14);
  color: #454942 !important;
  font-size: 0.68rem;
  height: 40px;
  top: 30px !important;
  z-index: 4;
}

.player-hub-compact-table th:first-child,
.player-hub-compact-table td:first-child,
.player-hub-table-labels th:first-child {
  box-shadow: 12px 0 22px rgba(18, 20, 17, 0.06) !important;
  left: 0 !important;
  min-width: 160px !important;
  position: sticky !important;
  text-align: left !important;
  width: 160px !important;
}

.player-hub-table-groups th:first-child {
  background: #11130f !important;
  z-index: 8;
}

.player-hub-table-labels th:first-child {
  background: #f6f5f2 !important;
  z-index: 7;
}

.player-hub-compact-table td:first-child,
.player-hub-compact-table tbody tr:nth-child(even) td:first-child,
.player-hub-compact-table tbody tr:hover td:first-child {
  background: rgba(255, 255, 255, 0.98) !important;
}

.player-hub-game-cell strong {
  color: var(--black);
  display: block;
  font-size: 0.84rem;
  line-height: 1.08;
  white-space: normal;
}

.player-hub-game-cell span {
  color: var(--muted);
  display: block;
  font-size: 0.66rem;
  font-weight: 760;
  margin-top: 3px;
}

.player-hub-compact-stat {
  --stat-rgb: 18, 20, 17;
  background: rgba(var(--stat-rgb), calc(0.04 + (var(--cell-strength, 0) * 0.26))) !important;
  color: var(--black);
}

.player-hub-compact-stat::after {
  display: none !important;
}

.player-hub-compact-stat.is-attack {
  --stat-rgb: 241, 90, 26;
}

.player-hub-compact-stat.is-creation {
  --stat-rgb: 160, 93, 16;
}

.player-hub-compact-stat.is-defence {
  --stat-rgb: 31, 122, 77;
}

.player-hub-compact-stat.is-keeper {
  --stat-rgb: 31, 93, 138;
}

.player-hub-compact-stat.is-minutes {
  --stat-rgb: 18, 20, 17;
}

.player-hub-compact-stat.is-zero span,
.player-hub-empty-mark {
  color: rgba(18, 20, 17, 0.42);
}

.player-hub-veo-cell a {
  background: var(--accent-2);
  border: 1px solid rgba(241, 90, 26, 0.3);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  padding: 7px 9px;
  text-decoration: none;
}

.player-hub-chart-wrap {
  overflow-x: auto !important;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.player-hub-bar-chart {
  display: block;
  min-width: 760px !important;
  width: 100%;
}

.player-hub-mobile-game-list {
  display: none !important;
}

@media (max-width: 860px) {
  .player-hub-compact-wrap {
    display: block !important;
    max-height: 62vh !important;
    overflow: auto !important;
  }

  .player-hub-compact-table {
    font-size: 0.68rem !important;
    min-width: 980px !important;
  }

  .player-hub-compact-table th,
  .player-hub-compact-table td {
    padding: 8px 7px !important;
  }

  .player-hub-compact-table th:first-child,
  .player-hub-compact-table td:first-child,
  .player-hub-table-labels th:first-child {
    min-width: 128px !important;
    width: 128px !important;
  }

  .player-hub-game-cell strong {
    font-size: 0.78rem;
  }

  .player-hub-game-cell span {
    font-size: 0.6rem;
  }

  .player-hub-table-key,
  .mobile-table-hint {
    display: block !important;
  }

  .player-hub-mobile-game-list {
    display: none !important;
  }
}

/* Match-review style Player Hub game table. */
.player-hub-compact-wrap {
  border-radius: 12px;
  max-height: min(68vh, 680px) !important;
  overflow: auto !important;
  overscroll-behavior: contain;
}

.player-hub-compact-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 0.82rem !important;
  min-width: 1120px !important;
  table-layout: auto !important;
  width: 100%;
}

.player-hub-compact-table th,
.player-hub-compact-table td {
  padding: 10px 11px !important;
  text-align: center;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.player-hub-compact-table tbody td {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 221, 215, 0.72);
  height: 58px;
}

.player-hub-compact-table tbody tr:nth-child(even) td {
  background: rgba(248, 247, 244, 0.94);
}

.player-hub-compact-table tbody tr:hover td {
  background: #fff7f1;
}

.player-hub-table-groups th,
.player-hub-table-labels th {
  position: sticky !important;
}

.player-hub-table-groups th {
  background: #11130f !important;
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 0.62rem;
  height: 30px;
  padding-bottom: 7px !important;
  padding-top: 8px !important;
  text-transform: uppercase;
  top: 0 !important;
  z-index: 5;
}

.player-hub-table-labels th {
  background: #f6f5f2 !important;
  border-bottom: 1px solid rgba(18, 20, 17, 0.14);
  color: #454942 !important;
  font-size: 0.68rem;
  height: 42px;
  top: 30px !important;
  z-index: 4;
}

.player-hub-compact-table th:first-child,
.player-hub-compact-table td:first-child,
.player-hub-table-labels th:first-child {
  box-shadow: 12px 0 22px rgba(18, 20, 17, 0.06) !important;
  left: 0 !important;
  min-width: 150px !important;
  position: sticky !important;
  text-align: left !important;
  width: 150px !important;
}

.player-hub-table-groups th:first-child {
  background: #11130f !important;
  z-index: 8;
}

.player-hub-table-labels th:first-child {
  background: #f6f5f2 !important;
  z-index: 7;
}

.player-hub-compact-table td:first-child,
.player-hub-compact-table tbody tr:nth-child(even) td:first-child,
.player-hub-compact-table tbody tr:hover td:first-child {
  background: rgba(255, 255, 255, 0.98) !important;
}

.player-hub-compact-stat {
  --stat-rgb: 18, 20, 17;
  background: rgba(var(--stat-rgb), calc(0.04 + (var(--cell-strength, 0) * 0.28))) !important;
}

.player-hub-compact-stat::after {
  display: none;
}

.player-hub-compact-stat.is-attack {
  --stat-rgb: 241, 90, 26;
}

.player-hub-compact-stat.is-creation {
  --stat-rgb: 160, 93, 16;
}

.player-hub-compact-stat.is-defence {
  --stat-rgb: 31, 122, 77;
}

.player-hub-compact-stat.is-keeper {
  --stat-rgb: 31, 93, 138;
}

.player-hub-compact-stat.is-minutes {
  --stat-rgb: 18, 20, 17;
}

.player-hub-mobile-game-list {
  display: none !important;
}

/* Player Hub follow-up refinements. */
.player-hub-season-table tr {
  --season-rgb: 160, 93, 16;
  --season-strength: 0;
}

.player-hub-season-table tr.attack {
  --season-rgb: 241, 90, 26;
}

.player-hub-season-table tr.creation {
  --season-rgb: 160, 93, 16;
}

.player-hub-season-table tr.defence {
  --season-rgb: 31, 122, 77;
}

.player-hub-season-table tr.keeper {
  --season-rgb: 31, 93, 138;
}

.player-hub-season-table tr.award {
  --season-rgb: 241, 90, 26;
}

.player-hub-season-table td:nth-child(2) {
  background: rgba(var(--season-rgb), calc(0.08 + (var(--season-strength) * 0.28))) !important;
  color: var(--black);
}

.player-hub-season-table td:nth-child(2) strong {
  color: var(--black);
}

.player-hub-no-veo-chip,
.player-hub-card-veo {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  min-height: 28px;
  padding: 7px 9px;
  white-space: nowrap;
}

.player-hub-card-veo {
  background: var(--accent-2);
  border: 1px solid rgba(241, 90, 26, 0.28);
  color: var(--accent);
  text-decoration: none;
}

.player-hub-no-veo-chip {
  background: rgba(18, 20, 17, 0.06);
  border: 1px solid rgba(18, 20, 17, 0.1);
  color: var(--muted);
}

.player-hub-bar-chart {
  display: block;
  min-width: 760px;
  width: 100%;
}

.player-hub-chart-bar {
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-bar.is-player {
  fill: var(--accent);
}

.player-hub-chart-bar.is-team {
  fill: var(--black);
  opacity: 0.88;
}

.player-hub-chart-bar-value {
  fill: var(--black);
  font-size: 0.66rem;
  font-weight: 950;
  text-anchor: middle;
}

.player-hub-chart-opponent {
  fill: var(--muted);
  font-size: 0.55rem;
  font-weight: 820;
  text-anchor: middle;
}

.player-hub-chart-average-line {
  stroke: rgba(18, 20, 17, 0.42);
  stroke-dasharray: 5 5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-average-label {
  fill: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  text-anchor: end;
}

.player-hub-game-card {
  grid-template-columns: minmax(0, 1fr) !important;
  padding: 8px 10px !important;
}

.player-hub-game-card-main {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
}

.player-hub-game-card-metrics {
  justify-content: flex-start !important;
}

.player-hub-game-card .link-button {
  display: none !important;
}

.player-hub-mobile-game-list {
  display: none;
}

.player-hub-mobile-game-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7f6f2 100%);
  border: 1px solid rgba(18, 20, 17, 0.1);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(18, 20, 17, 0.07);
  display: grid;
  gap: 11px;
  padding: 13px;
}

.player-hub-mobile-game-card.is-mom-game {
  border-color: rgba(241, 90, 26, 0.34);
  box-shadow: 0 18px 42px rgba(241, 90, 26, 0.1);
}

.player-hub-mobile-game-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.player-hub-mobile-game-head strong {
  color: var(--black);
  display: block;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.08;
}

.player-hub-mobile-game-head p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.25;
  margin: 3px 0 0;
}

.player-hub-mobile-game-head a {
  background: var(--accent-2);
  border: 1px solid rgba(241, 90, 26, 0.28);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 950;
  padding: 7px 10px;
  text-decoration: none;
}

.player-hub-mobile-game-meta,
.player-hub-mobile-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.player-hub-mobile-game-meta > span:not(.player-hub-involvement-pill):not(.player-hub-award-chip) {
  background: rgba(18, 20, 17, 0.06);
  border: 1px solid rgba(18, 20, 17, 0.08);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  padding: 7px 9px;
}

.player-hub-mobile-stat {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(18, 20, 17, 0.08);
  border-radius: 12px;
  color: var(--black);
  display: inline-grid;
  gap: 1px;
  grid-template-columns: auto auto;
  min-height: 34px;
  padding: 6px 8px;
}

.player-hub-mobile-stat strong {
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1;
}

.player-hub-mobile-stat small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.player-hub-mobile-stat.is-attack {
  background: rgba(241, 90, 26, 0.1);
  border-color: rgba(241, 90, 26, 0.18);
}

.player-hub-mobile-stat.is-creation {
  background: rgba(160, 93, 16, 0.11);
  border-color: rgba(160, 93, 16, 0.16);
}

.player-hub-mobile-stat.is-defence {
  background: rgba(31, 122, 77, 0.1);
  border-color: rgba(31, 122, 77, 0.16);
}

.player-hub-mobile-stat.is-keeper {
  background: rgba(31, 93, 138, 0.1);
  border-color: rgba(31, 93, 138, 0.16);
}

.player-hub-mobile-empty {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

/* Player Hub refinement: restore compact stat-table feel and slim review rows. */
.player-hub-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.player-hub-head .eyebrow,
.player-hub-head h3,
.player-hub-head p {
  margin: 0 !important;
}

.player-hub-context-copy {
  font-weight: 600 !important;
  margin-top: 0 !important;
}

.ai-summary-paragraph {
  font-weight: 520 !important;
}

.player-hub-hero .metric-info-icon {
  display: none;
}

.player-hub-compact-wrap {
  max-height: min(64vh, 620px) !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.player-hub-compact-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
  min-width: 1120px !important;
  table-layout: auto !important;
  width: 100%;
}

.player-hub-compact-table th,
.player-hub-compact-table td {
  padding: 8px 9px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  width: auto !important;
}

.player-hub-table-groups th,
.player-hub-table-labels th {
  position: sticky !important;
}

.player-hub-table-groups th {
  top: 0 !important;
  z-index: 5;
}

.player-hub-table-labels th {
  top: 30px !important;
  z-index: 4;
}

.player-hub-compact-table th:first-child,
.player-hub-compact-table td:first-child,
.player-hub-table-labels th:first-child {
  left: 0 !important;
  min-width: 220px !important;
  position: sticky !important;
  text-align: left !important;
  width: 220px !important;
}

.player-hub-table-groups th:first-child,
.player-hub-table-labels th:first-child {
  z-index: 8;
}

.player-hub-compact-table td:first-child,
.player-hub-compact-table tbody tr:nth-child(even) td:first-child,
.player-hub-compact-table tbody tr:hover td:first-child {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 12px 0 22px rgba(18, 20, 17, 0.06);
}

.player-hub-score-cell .result-badge {
  display: inline-flex;
  margin: 0 0 4px;
}

.player-hub-score-cell strong {
  display: block;
}

.player-hub-involvement-cell {
  text-align: center;
}

.player-hub-form-chip {
  background: rgba(18, 20, 17, 0.07);
  border: 1px solid rgba(18, 20, 17, 0.1);
  border-radius: 999px;
  color: var(--black);
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}

.player-hub-game-card {
  align-items: center !important;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  padding: 8px 10px;
}

.player-hub-game-card-main {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
}

.player-hub-game-card-main strong {
  font-size: 0.92rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-hub-game-card-main p {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
  margin: 2px 0 0 !important;
}

.player-hub-game-card-metrics {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.player-hub-game-card .link-button {
  margin: 0 !important;
  min-height: 32px;
  padding: 6px 10px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .player-hub-compact-table {
    font-size: 0.69rem;
    min-width: 940px !important;
  }

  .player-hub-compact-table th,
  .player-hub-compact-table td {
    padding: 7px 8px !important;
  }

  .player-hub-compact-table th:first-child,
  .player-hub-compact-table td:first-child,
  .player-hub-table-labels th:first-child {
    min-width: 164px !important;
    width: 164px !important;
  }

  .player-hub-game-card {
    align-items: stretch !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .player-hub-game-card-metrics {
    justify-content: flex-start;
  }

  .player-hub-game-card .link-button {
    width: max-content;
  }
}

/* Compact Player Hub table column balance. */
.player-hub-compact-table th:nth-child(1),
.player-hub-compact-table td:nth-child(1) {
  width: 23%;
}

.player-hub-compact-table th:nth-child(2),
.player-hub-compact-table td:nth-child(2) {
  width: 12%;
}

.player-hub-compact-table th:nth-child(3),
.player-hub-compact-table td:nth-child(3) {
  width: 13%;
}

.player-hub-compact-table th:nth-child(4),
.player-hub-compact-table td:nth-child(4) {
  width: 15%;
}

.player-hub-compact-table th:nth-child(5),
.player-hub-compact-table td:nth-child(5) {
  width: 29%;
}

.player-hub-compact-table th:nth-child(6),
.player-hub-compact-table td:nth-child(6) {
  width: 8%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 4%, rgba(241, 90, 26, 0.1), transparent 24rem),
    linear-gradient(180deg, #f7f6f4 0%, var(--bg) 34rem);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: rgba(247, 246, 244, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223, 221, 215, 0.72);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 42px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-lockup {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 12px;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.brand-lockup:focus-visible {
  border-radius: 12px;
  outline: 3px solid rgba(107, 132, 68, 0.28);
  outline-offset: 4px;
}

.brand-lockup:hover .brand-logo {
  box-shadow: 0 12px 28px rgba(18, 20, 17, 0.12);
  transform: translateY(-1px);
}

.brand-logo {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(18, 20, 17, 0.08);
  display: block;
  height: 54px;
  object-fit: contain;
  padding: 5px;
  transition: box-shadow 160ms ease, transform 160ms ease;
  width: 54px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 2px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.1;
  margin-bottom: 0;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.topbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.database-status {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 8px 10px;
  white-space: nowrap;
}

.database-status.is-saved {
  background: var(--green-2);
  border-color: #9fd5b9;
  color: var(--green);
}

.database-status.is-warning {
  background: var(--amber-2);
  border-color: #e8ca91;
  color: var(--amber);
}

.admin-access-pill {
  background: var(--black);
  border-color: var(--black);
  color: white;
}

.parent-only {
  display: none !important;
}

.cloud-auth-only {
  display: none !important;
}

.cloud-login-only {
  display: none !important;
}

.install-app-button {
  display: none;
}

.is-parent-mode .coach-only {
  display: none !important;
}

.is-parent-mode .parent-only {
  display: inline-flex !important;
}

.is-parent-mode:not(.is-standalone-app):not(.is-cloud-login) .install-app-button {
  background: #e95518;
  border-color: #e95518;
  box-shadow: 0 12px 22px rgba(233, 85, 24, 0.24);
  color: white;
  display: inline-flex;
}

.is-parent-mode:not(.is-standalone-app):not(.is-cloud-login) .install-app-button:hover {
  background: #101310;
  border-color: #101310;
  box-shadow: 0 14px 26px rgba(16, 19, 16, 0.22);
  color: white;
}

.is-cloud-authenticated .cloud-auth-only {
  display: inline-flex !important;
}

.is-cloud-guest .cloud-login-only {
  display: inline-flex !important;
}

.is-cloud-guest .coach-only {
  display: none !important;
}

.is-cloud-guest .parent-only {
  display: none !important;
}

.is-cloud-login .cloud-login-only {
  display: inline-flex !important;
}

.is-cloud-login .tabs,
.is-cloud-login .coach-only,
.is-cloud-login .parent-only,
.is-cloud-login .cloud-auth-only {
  display: none !important;
}

.is-standalone-app .install-app-button {
  display: none !important;
}

.season-settings-panel {
  margin-top: 14px;
}

.season-controls {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.season-status-badge {
  align-items: center;
  background: var(--green-2);
  border: 1px solid #b9dfcd;
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  min-height: 42px;
  padding: 8px 11px;
  text-transform: uppercase;
}

.season-status-badge.is-archived {
  background: #f1f0eb;
  border-color: rgba(30, 36, 29, 0.12);
  color: #626a62;
}

.season-archive-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.season-archive-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(223, 221, 215, 0.94);
  border-radius: 8px;
  padding: 13px;
}

.season-archive-card.is-active {
  border-color: rgba(233, 85, 24, 0.42);
  box-shadow: 0 14px 28px rgba(233, 85, 24, 0.08);
}

.season-archive-card.is-archived {
  background: rgba(248, 247, 244, 0.76);
}

.season-archive-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.season-archive-head strong,
.season-archive-head span {
  display: block;
}

.season-archive-head span:not(.result-badge) {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 2px;
}

.season-archive-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 9px;
}

.season-archive-stats .mini-stat {
  min-height: 54px;
  padding: 7px;
}

.season-archive-stats .mini-stat strong {
  font-size: 1rem;
}

.season-archive-stats .mini-stat span {
  font-size: 0.64rem;
}

.season-archive-card > p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0;
}

.season-awards-settings {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
}

.season-scope-setting {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.season-scope-setting small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.season-scope-toggle {
  flex-shrink: 0;
}

.stats-scope-control {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 14px;
  padding: 11px 12px;
}

.stats-scope-control strong {
  display: block;
  font-size: 0.88rem;
}

.stats-scope-control small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 2px;
}

.season-select {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 6px;
  min-width: 180px;
  text-transform: uppercase;
}

.season-select select {
  min-height: 42px;
}

.save-toast {
  background: var(--ink);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: var(--shadow);
  color: white;
  font-size: 0.9rem;
  font-weight: 900;
  left: 50%;
  opacity: 0;
  padding: 11px 14px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 80;
}

.save-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.save-toast.is-warning {
  background: var(--amber);
}

.tabs {
  background: rgba(243, 242, 239, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 221, 215, 0.7);
  align-items: center;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 9px clamp(12px, 4vw, 42px);
  position: sticky;
  top: 70px;
  z-index: 19;
}

.nav-season-slot {
  display: inline-flex;
  flex: 0 0 auto;
}

.nav-season-select {
  align-items: center;
  background: #11130f;
  border: 1px solid rgba(17, 19, 15, 0.18);
  border-radius: 8px;
  box-shadow: none;
  color: white;
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 5px 12px;
  position: relative;
  white-space: nowrap;
}

.nav-season-select span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.nav-season-select select {
  appearance: none;
  background: transparent;
  border: 0;
  color: white;
  cursor: pointer;
  font-weight: 950;
  min-width: 126px;
  outline: 0;
  padding: 0 20px 0 0;
}

.nav-season-select::after {
  border: solid white;
  border-width: 0 2px 2px 0;
  content: "";
  height: 7px;
  pointer-events: none;
  position: absolute;
  right: 12px;
  top: 48%;
  transform: translateY(-50%) rotate(45deg);
  width: 7px;
}

.nav-season-select select option {
  color: var(--ink);
}

.tab,
.ghost-button,
.danger-button,
.primary-button,
.quiet-button,
.event-button,
.link-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  white-space: nowrap;
}

a.link-button,
a.ghost-button {
  text-decoration: none;
}

.tab {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(223, 221, 215, 0.78);
  color: var(--muted);
  min-height: 38px;
  padding: 8px 15px;
}

.tab.is-active {
  background: var(--black);
  border-color: var(--black);
  box-shadow: 0 14px 28px rgba(5, 5, 4, 0.14);
  color: white;
}

.tab.is-private-locked {
  border-color: rgba(160, 93, 16, 0.26);
}

.tab.is-private-locked::after {
  background: rgba(250, 238, 221, 0.9);
  border: 1px solid rgba(160, 93, 16, 0.24);
  border-radius: 999px;
  color: var(--amber);
  content: "Login";
  font-size: 0.66rem;
  font-weight: 950;
  margin-left: 6px;
  padding: 2px 6px;
  text-transform: uppercase;
}

.tab.is-private-locked.is-active::after {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: white;
}

.primary-button {
  background: var(--accent);
  color: white;
}

.ghost-button,
.quiet-button {
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--line);
  color: var(--ink);
}

.ghost-button.light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: white;
}

.danger-button {
  background: var(--red-2);
  color: var(--red);
}

.main-content {
  padding: clamp(16px, 3.4vw, 36px) clamp(16px, 4vw, 42px) clamp(28px, 5vw, 54px);
}

.section-head {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.dashboard-hero {
  background: var(--black);
  border: 1px solid rgba(5, 5, 4, 0.08);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  margin-bottom: 14px;
  min-height: 310px;
  overflow: hidden;
}

.dashboard-hero-copy {
  align-content: center;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 46px);
}

.dashboard-hero-copy .eyebrow {
  margin-bottom: -8px;
}

.dashboard-hero-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 9px;
  justify-self: start;
  letter-spacing: 0;
  padding: 6px 12px 6px 7px;
  text-transform: uppercase;
}

.dashboard-hero-badge img {
  background: white;
  border-radius: 999px;
  height: 28px;
  object-fit: contain;
  padding: 2px;
  width: 28px;
}

.dashboard-hero h2 {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 0;
}

.dashboard-hero .dashboard-hero-title {
  font-size: clamp(2rem, 4.3vw, 4.1rem);
  max-width: 11ch;
}

.dashboard-hero-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  margin-bottom: 0;
  max-width: 34rem;
}

.dashboard-hero-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 560px;
}

.dashboard-hero .mini-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 11px;
}

.dashboard-hero .mini-stat strong {
  color: white;
}

.dashboard-hero .mini-stat span {
  color: rgba(255, 255, 255, 0.66);
}

.dashboard-hero-footer {
  align-items: center;
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 10px;
}

.dashboard-hero-form {
  display: inline-flex;
  gap: 4px;
}

.dashboard-hero-form i {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-style: normal;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.dashboard-hero-form i.W {
  background: var(--accent);
}

.dashboard-hero-form i.D {
  background: rgba(255, 255, 255, 0.18);
}

.dashboard-hero-form i.L {
  background: rgba(185, 45, 45, 0.9);
}

.dashboard-hero-photo {
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.72) 0%, rgba(5, 5, 4, 0.16) 44%, rgba(5, 5, 4, 0.02) 100%),
    url("assets/stanway-villa-reds-team-v2.jpeg") center / cover;
  min-height: 310px;
}

.home-section,
.leaderboard-explainer,
.dashboard-leaders,
.stat-guide-panel,
.dashboard-recent-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 18px;
}

.home-section-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.home-section-head h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.home-section-head > span {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.development-focus-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.home-player-hub-cta {
  align-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(233, 85, 24, 0.32), transparent 30%),
    linear-gradient(135deg, #11130f 0%, #070807 100%);
  border: 1px solid rgba(5, 5, 4, 0.1);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(16, 19, 16, 0.16);
  color: white;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-bottom: 14px;
  padding: 18px;
}

.home-player-hub-copy {
  min-width: 0;
}

.home-player-hub-copy .eyebrow {
  color: var(--accent);
  margin-bottom: 6px;
}

.home-player-hub-copy h3 {
  color: white;
  font-size: clamp(1.28rem, 2.2vw, 1.8rem);
  margin-bottom: 5px;
}

.home-player-hub-copy p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.42;
  margin-bottom: 0;
  max-width: 48rem;
}

.home-player-hub-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
}

.home-player-hub-stats .mini-stat {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  min-height: 62px;
  padding: 9px 10px;
}

.home-player-hub-stats .mini-stat strong {
  color: white;
  font-size: 1.22rem;
}

.home-player-hub-stats .mini-stat span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.66rem;
}

.home-player-hub-button {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  justify-self: end;
  min-width: 146px;
}

.resources-hero {
  align-items: end;
  background:
    radial-gradient(circle at 88% 12%, rgba(233, 85, 24, 0.18), transparent 28%),
    linear-gradient(135deg, #101310 0%, #070807 100%);
  border: 1px solid rgba(5, 5, 4, 0.12);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  color: white;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: clamp(22px, 4vw, 42px);
}

.resources-hero h2 {
  color: white;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.96;
  margin-bottom: 12px;
  max-width: 760px;
}

.resources-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.45;
  margin-bottom: 0;
  max-width: 780px;
}

.resource-card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.resource-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(18, 20, 17, 0.06);
  min-height: 186px;
  padding: 18px;
}

.resource-card span {
  color: var(--accent);
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.resource-card h3 {
  font-size: 1.15rem;
  margin-bottom: 9px;
}

.resource-card p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.resource-next-panel {
  margin-top: 0;
}

.resource-next-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.development-focus-grid article {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(18, 20, 17, 0.06);
  min-height: 118px;
  padding: 16px;
}

.development-focus-grid span {
  align-items: center;
  background: var(--black);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  margin-bottom: 10px;
  width: 38px;
}

.development-focus-grid strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.development-focus-grid p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.38;
  margin-bottom: 0;
}

.home-season-section .dashboard-kpis {
  margin-top: 0;
}

.home-season-section .kpi {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 247, 244, 0.94));
  border-color: rgba(223, 221, 215, 0.96);
  box-shadow: none;
  position: relative;
}

.home-season-section .kpi-label {
  color: #74766f;
}

.home-season-section .kpi-value {
  color: var(--black);
}

.home-season-section .form-guide-card::before {
  display: none;
}

.home-season-section .form-guide-card {
  background: var(--black);
  color: white;
}

.home-season-section .form-guide-card .kpi-label {
  color: rgba(255, 255, 255, 0.74);
}

.status-pill {
  background: var(--green-2);
  border: 1px solid #b9dfcd;
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.two-col {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.panel .grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel.flush {
  padding: 0;
  overflow: hidden;
}

.panel-title {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-title p {
  color: var(--muted);
  margin-bottom: 0;
}

.panel.leaderboard-explainer,
.panel.dashboard-leaders,
.panel.stat-guide-panel,
.panel.dashboard-recent-panel {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(223, 221, 215, 0.92);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.kpi {
  min-height: 118px;
}

.kpi-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.kpi-value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.kpi-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.grid.kpis.dashboard-kpis {
  gap: 8px;
  grid-template-columns: repeat(11, minmax(0, 1fr));
}

.dashboard-kpis .kpi {
  min-height: 62px;
  padding: 8px 9px;
}

.dashboard-kpis .kpi-label {
  font-size: 0.58rem;
  line-height: 1.05;
  margin-bottom: 4px;
}

.dashboard-kpis .kpi-value {
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  margin-bottom: 0;
}

.dashboard-kpis .kpi-note {
  font-size: 0.66rem;
  line-height: 1.25;
}

.leaderboard-explainer-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.leaderboard-explainer article {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  padding: 14px;
  position: relative;
}

.leaderboard-explainer article::before {
  background: var(--black);
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 14px;
  position: absolute;
  right: 14px;
  top: 10px;
}

.leaderboard-explainer h4 {
  font-size: 0.98rem;
  margin-bottom: 8px;
  padding-top: 10px;
}

.leaderboard-explainer p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.leaderboard-explainer p:last-child {
  margin-bottom: 0;
}

.player-hub-selector-panel,
.parent-welcome-panel,
.player-hub-hero,
.player-hub-summary,
.player-hub-development {
  margin-bottom: 14px;
}

.parent-welcome-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 245, 242, 0.92)),
    radial-gradient(circle at top right, rgba(241, 90, 26, 0.12), rgba(241, 90, 26, 0) 32%);
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.parent-welcome-copy h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.12;
  margin-bottom: 5px;
}

.parent-welcome-copy p:last-child {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.35;
  margin-bottom: 0;
}

.parent-welcome-grid {
  border-top: 1px solid rgba(30, 36, 29, 0.1);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 10px;
}

.parent-welcome-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.parent-welcome-grid strong {
  color: var(--black);
  font-size: 0.86rem;
  line-height: 1.15;
}

.parent-welcome-grid p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 730;
  line-height: 1.35;
  margin: 0;
}

.player-hub-selector {
  display: grid;
  gap: 12px;
}

.player-hub-filter {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.player-hub-filter strong {
  display: block;
  font-size: 0.9rem;
}

.player-hub-picker {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.player-hub-head {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.player-hub-head h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  margin-bottom: 4px;
}

.player-hub-head p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.player-hub-heatmap {
  min-width: 1320px;
}

.player-hub-match-list {
  display: grid;
  gap: 8px;
}

.player-hub-compact-wrap {
  max-height: 520px;
  overflow: auto;
}

.player-hub-compact-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
  min-width: 920px;
}

.player-hub-compact-table th,
.player-hub-compact-table td {
  border-bottom: 1px solid var(--line);
  padding: 6px 7px;
  text-align: center;
  white-space: nowrap;
}

.player-hub-compact-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}

.player-hub-compact-table th:first-child,
.player-hub-compact-table td:first-child {
  left: 0;
  position: sticky;
  text-align: left;
  z-index: 3;
}

.player-hub-compact-table td:first-child {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 10px 0 18px rgba(18, 20, 17, 0.05);
}

.player-hub-compact-table tr.is-mom-game td:first-child {
  background: var(--accent-2);
}

.player-hub-compact-table th:first-child {
  background: #f2f0eb;
  box-shadow: 10px 0 18px rgba(18, 20, 17, 0.05);
}

.player-hub-game-cell {
  min-width: 190px;
}

.player-hub-game-cell strong,
.player-hub-game-cell span {
  display: block;
}

.player-hub-game-cell span {
  color: var(--muted);
  font-size: 0.68rem;
}

.player-hub-compact-stat {
  border-left: 1px solid rgba(223, 221, 215, 0.45);
  font-weight: 900;
  min-width: 42px;
}

.player-hub-award-chip {
  background: var(--green);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.63rem;
  font-weight: 950;
  padding: 3px 7px;
}

.player-hub-compact-table a {
  color: var(--accent);
  font-weight: 950;
  text-decoration: none;
}

.player-hub-table-key {
  margin: 8px 0 0;
}

.player-hub-trend-panel {
  margin: 14px 0;
}

.player-hub-trend-head {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.player-hub-trend-head h3 {
  margin-bottom: 4px;
}

.player-hub-trend-head p {
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 0;
}

.player-hub-trend-head .form-field {
  min-width: 230px;
}

.compact-mini-stats {
  margin-top: 12px;
}

.player-hub-chart-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.player-hub-line-chart {
  display: block;
  min-width: 760px;
  width: 100%;
}

.player-hub-chart-grid {
  stroke: rgba(18, 20, 17, 0.12);
  stroke-width: 0.85;
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-axis {
  stroke: rgba(18, 20, 17, 0.42);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.05;
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-point {
  fill: #fffaf6;
  stroke: var(--accent);
  stroke-width: 1.85;
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-point-group {
  cursor: pointer;
}

.player-hub-chart-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.player-hub-chart-point-group:hover .player-hub-chart-tooltip,
.player-hub-chart-point-group:focus-within .player-hub-chart-tooltip {
  opacity: 1;
}

.player-hub-chart-tooltip rect {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-tooltip-title,
.player-hub-chart-tooltip-meta {
  text-anchor: middle;
}

.player-hub-chart-tooltip-title {
  fill: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
}

.player-hub-chart-tooltip-meta {
  fill: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
}

.player-hub-chart-x,
.player-hub-chart-y {
  fill: var(--muted);
  font-size: 0.6rem;
  font-weight: 750;
}

.player-hub-chart-x {
  text-anchor: middle;
}

.player-hub-chart-y {
  text-anchor: end;
}

.player-hub-trend-table-wrap {
  margin-top: 10px;
  overflow-x: auto;
}

.player-hub-trend-table {
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 620px;
  width: 100%;
}

.player-hub-trend-table th,
.player-hub-trend-table td {
  border-bottom: 1px solid var(--line);
  padding: 7px 8px;
  text-align: left;
}

.player-hub-trend-table th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.player-hub-trend-table td:last-child,
.player-hub-trend-table th:last-child {
  font-weight: 950;
  text-align: right;
}

.player-hub-match-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.player-hub-match-main {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
}

.player-hub-match-main strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.player-hub-match-main p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 0;
}

.player-hub-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.player-hub-stat-pill {
  align-items: baseline;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  gap: 5px;
  min-height: 28px;
  padding: 5px 8px;
}

.player-hub-stat-pill strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1;
}

.player-hub-stat-pill small {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-hub-stat-pill.has-value.attack {
  background: var(--red-2);
  border-color: #e6aaa4;
}

.player-hub-stat-pill.has-value.creation {
  background: var(--blue-2);
  border-color: #aecde2;
}

.player-hub-stat-pill.has-value.defence {
  background: var(--green-2);
  border-color: #9fd5b9;
}

.player-hub-stat-pill.has-value.keeper {
  background: var(--purple-2);
  border-color: #c8b8dd;
}

.player-hub-stat-pill.has-value.minutes {
  background: var(--amber-2);
  border-color: #e8ca91;
}

.player-hub-development-grid {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-hub-game-column {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  align-self: start;
  padding: 12px;
}

.player-hub-game-column.mom {
  border-top: 4px solid var(--green);
}

.player-hub-game-column.strong {
  border-top: 4px solid var(--blue);
}

.player-hub-game-column.quiet {
  border-top: 4px solid var(--amber);
}

.player-hub-game-column-head h4 {
  font-size: 1rem;
  margin-bottom: 3px;
}

.player-hub-game-column-head p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0;
}

.player-hub-game-list {
  display: grid;
  gap: 8px;
}

.player-hub-game-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 10px;
}

.player-hub-game-card.mom {
  border-left: 4px solid var(--green);
}

.player-hub-game-card.strong {
  border-left: 4px solid var(--blue);
}

.player-hub-game-card.quiet {
  border-left: 4px solid var(--amber);
}

.player-hub-game-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.player-hub-game-card p {
  color: var(--muted);
  margin-bottom: 8px;
}

.player-hub-game-card .link-button,
.player-hub-game-card .status-pill {
  margin-top: 2px;
}

.form-guide-card {
  align-content: start;
}

.form-guide-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.form-guide-row .result-badge {
  border-radius: 6px;
  font-size: 0.72rem;
  height: 23px;
  min-width: 23px;
}

.empty-form-guide {
  color: var(--muted);
  font-weight: 900;
}

.stat-guide-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-guide-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  min-height: 112px;
  padding: 12px;
  position: relative;
}

.stat-guide-card::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 12px;
  position: absolute;
  right: 12px;
  top: 10px;
}

.stat-guide-card strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 5px;
  padding-top: 10px;
}

.stat-guide-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  margin-bottom: 0;
}

.dashboard-recent-layout {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
}

.dashboard-game-list {
  align-content: start;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.dashboard-all-games .dashboard-game-list {
  max-height: 720px;
}

.dashboard-match-detail {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 246, 243, 0.96));
  border: 1px solid rgba(223, 221, 215, 0.95);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(18, 20, 17, 0.07);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.dashboard-detail-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.dashboard-detail-head h3 {
  margin-bottom: 0;
}

.dashboard-recent-panel .match-row {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(223, 221, 215, 0.92);
  box-shadow: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.dashboard-recent-panel .match-row:hover {
  border-color: rgba(241, 90, 26, 0.42);
  transform: translateY(-1px);
}

.dashboard-recent-panel .match-row.is-active {
  border-color: var(--black);
  box-shadow: inset 4px 0 0 var(--accent), 0 14px 30px rgba(18, 20, 17, 0.08);
}

.dashboard-recent-panel .result-badge.W,
.form-guide-card .result-badge.W {
  background: var(--accent);
  color: white;
}

.dashboard-recent-panel .result-badge.D,
.form-guide-card .result-badge.D {
  background: #ebe8e2;
  color: var(--black);
}

.dashboard-recent-panel .result-badge.L,
.form-guide-card .result-badge.L {
  background: var(--black);
  color: white;
}

.inline-league-editor {
  align-items: end;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) auto;
  padding: 10px;
}

.dashboard-goal-assist-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-key-stats {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.dashboard-key-stats .mini-stat {
  background: var(--black);
  color: white;
}

.dashboard-key-stats .mini-stat strong {
  color: white;
}

.dashboard-key-stats .mini-stat span {
  color: rgba(255, 255, 255, 0.62);
}

.dashboard-ga-list {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  padding: 12px;
}

.dashboard-ga-list h4,
.dashboard-summary-copy h4,
.dashboard-summary-copy h3 {
  margin-bottom: 8px;
}

.dashboard-ga-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 0;
}

.dashboard-ga-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.dashboard-ga-row:last-child {
  padding-bottom: 0;
}

.dashboard-ga-row strong {
  font-size: 1.05rem;
}

.dashboard-summary-copy {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  padding: 12px;
}

.dashboard-summary-copy p {
  color: var(--muted);
  margin-bottom: 8px;
}

.dashboard-summary-copy p:last-child {
  margin-bottom: 0;
}

.coach-notes-block {
  border-left: 1px solid var(--line);
}

.coach-notes-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
}

.dashboard-top-performers {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.dashboard-top-performers li span {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
}

.dashboard-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.leader-card-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-leaders .panel-title {
  background: var(--black);
  border-radius: 8px;
  color: white;
  margin-bottom: 14px;
  padding: 15px;
}

.dashboard-leaders .panel-title p {
  color: rgba(255, 255, 255, 0.68);
}

.leader-card {
  align-items: start;
  background:
    linear-gradient(145deg, rgba(18, 20, 17, 0.98), rgba(36, 35, 31, 0.98));
  border: 1px solid rgba(18, 20, 17, 0.18);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 96px;
  padding: 12px;
}

.leader-card strong,
.leader-card span,
.leader-card small {
  display: block;
}

.leader-card strong {
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-card span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  font-weight: 800;
}

.leader-card small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  margin-top: 2px;
}

.leader-title {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.top-five-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.is-parent-mode .top-five-grid {
  margin-top: 0;
}

.top-five-card {
  align-content: start;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.top-five-head {
  border-bottom: 1px solid rgba(223, 221, 215, 0.9);
  display: grid;
  gap: 2px;
  padding-bottom: 9px;
}

.top-five-head strong {
  font-size: 0.95rem;
}

.top-five-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.top-five-list {
  display: grid;
  gap: 7px;
}

.top-five-row {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: 24px 28px minmax(58px, 0.85fr) minmax(54px, 1fr) 42px;
}

.leader-rank {
  align-items: center;
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--black);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  text-align: center;
  width: 22px;
}

.top-five-name {
  font-size: 0.82rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-five-track {
  background: #ece9e3;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.top-five-track span {
  background: var(--accent);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.top-five-row strong {
  font-size: 0.82rem;
  text-align: right;
}

.player-avatar {
  align-items: center;
  background: var(--ink);
  border: 2px solid var(--surface);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  width: 48px;
}

.player-avatar.small {
  border-width: 1px;
  font-size: 0.68rem;
  height: 28px;
  width: 28px;
}

.player-avatar.large {
  font-size: 1.15rem;
  height: 64px;
  width: 64px;
}

.player-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-row.match-add-row {
  grid-template-columns: minmax(150px, 0.9fr) repeat(4, minmax(0, 1fr));
}

.single-review-row {
  grid-template-columns: 1fr;
}

.player-field {
  grid-column: 1 / -1;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

textarea {
  min-height: 74px;
  resize: vertical;
}

.event-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-entry {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.action-grid {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.pending-event-overlay {
  align-items: center;
  background: rgba(16, 32, 23, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 80;
}

.player-prompt {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(16, 32, 23, 0.26);
  display: grid;
  gap: 12px;
  max-height: min(720px, calc(100vh - 36px));
  max-width: 680px;
  overflow: auto;
  padding: 16px;
  width: min(100%, 680px);
}

.player-prompt .player-picker {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.player-prompt .player-chip {
  min-height: 54px;
}

.player-picker {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
}

.player-chip {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
}

.player-chip.is-selected {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-2);
  color: white;
}

.event-button {
  border-color: var(--line);
  min-height: 48px;
  padding-inline: 10px;
}

.event-button.is-pending {
  box-shadow: 0 0 0 3px rgba(160, 93, 16, 0.2);
  outline: 2px solid var(--amber);
}

.event-button.attack {
  background: var(--red-2);
  color: var(--red);
}

.event-button.creation {
  background: var(--blue-2);
  color: var(--blue);
}

.event-button.defence {
  background: var(--green-2);
  color: var(--green);
}

.event-button.keeper {
  background: var(--purple-2);
  color: var(--purple);
}

.event-button.other,
.event-button.note {
  background: var(--amber-2);
  color: var(--amber);
}

.stat-form {
  display: grid;
  gap: 12px;
}

.timing-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
}

.timing-panel h3 {
  margin-bottom: 2px;
}

.lineup-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
}

.match-setup-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(340px, 0.92fr) minmax(360px, 1.08fr);
}

.add-match-panel {
  margin-bottom: 14px;
}

.match-setup-layout.is-stacked {
  grid-template-columns: 1fr;
}

.setup-main-panel {
  align-self: start;
}

.match-setup-layout > .lineup-panel {
  margin-top: 0;
}

.match-setup-layout.is-stacked > .lineup-panel {
  margin-top: 0;
}

.setup-progress-panel {
  background: #f8fbf8;
  border: 2px solid #b9dfcd;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
}

.setup-progress-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.setup-progress-head p {
  margin-bottom: 0;
}

.setup-step-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.setup-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 102px;
  padding: 10px;
}

.setup-step span {
  align-items: center;
  background: var(--amber-2);
  border-radius: 999px;
  color: var(--amber);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.setup-step strong {
  font-size: 0.9rem;
}

.setup-step small {
  color: var(--muted);
  line-height: 1.25;
}

.setup-step.is-done {
  border-color: #b9dfcd;
  box-shadow: 0 0 0 2px var(--green-2);
}

.setup-step.is-done span {
  background: var(--green);
  color: white;
}

.review-match-selector {
  margin-bottom: 14px;
}

.review-entry-layout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(420px, 1.05fr) minmax(340px, 0.95fr);
}

.review-action-panel,
.review-live-panel,
.review-quick-sub-panel,
.review-wrap-panel,
.review-event-log-panel {
  margin-top: 14px;
}

.review-entry-layout .review-action-panel,
.review-entry-layout .review-event-log-panel {
  margin-top: 0;
}

.compact-event-log {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.review-quick-sub-panel .quick-sub-strip,
.review-wrap-panel .review-controls,
.review-wrap-panel .weekly-awards-form {
  margin-top: 0;
}

.review-live-stats-panel {
  margin-bottom: 0;
}

.review-live-stats-panel .validation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-priority-panel {
  background: #f8fbf8;
  border: 2px solid #b9dfcd;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
}

.review-priority-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.review-priority-head p {
  margin-bottom: 0;
}

.review-priority-panel .review-controls,
.review-priority-panel .quick-sub-strip,
.review-priority-panel .weekly-awards-form {
  background: var(--surface);
  margin-top: 0;
}

.review-priority-tools {
  display: grid;
  gap: 10px;
}

@media (min-width: 860px) {
  .review-priority-tools {
    align-items: start;
    grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
  }
}

.review-controls {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px;
}

.review-controls p {
  margin-bottom: 0;
}

.quick-sub-strip {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px;
}

.quick-sub-strip p {
  margin-bottom: 0;
}

.quick-sub-modal {
  max-width: 780px;
}

.quick-sub-form {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.quick-sub-context {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.quick-sub-context span,
.form-field small {
  color: var(--muted);
  font-size: 0.82rem;
}

.quick-sub-log {
  display: grid;
  gap: 8px;
}

.weekly-awards-form {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
}

.training-award-entry {
  margin-bottom: 16px;
}

.training-awards-form {
  margin-top: 0;
}

.training-only-form {
  margin-top: 12px;
}

.training-no-session-option {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-weight: 900;
  gap: 9px;
  padding: 10px 12px;
}

.training-no-session-option input {
  accent-color: var(--orange);
}

.training-only-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.training-only-card {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.training-only-card span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
}

.training-only-card p {
  color: var(--muted);
  margin: 3px 0 0;
}

.potw-timeline-panel {
  margin-bottom: 16px;
}

.potw-timeline-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.potw-timeline-list {
  display: grid;
  gap: 8px;
}

.potw-timeline-card {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(110px, 0.65fr) minmax(0, 2fr) auto;
  padding: 10px 12px;
}

.potw-timeline-card.is-missing {
  background: rgba(245, 91, 35, 0.08);
  border-color: rgba(245, 91, 35, 0.28);
}

.potw-timeline-card.is-none {
  background: rgba(18, 20, 17, 0.04);
}

.potw-timeline-meta span,
.potw-timeline-title {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
}

.potw-timeline-main strong {
  display: block;
  margin-top: 2px;
}

.potw-timeline-main p {
  color: var(--muted);
  margin: 3px 0 0;
}

.potw-timeline-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.potw-quick-player-strip {
  display: flex;
  gap: 7px;
  grid-column: 1 / -1;
  overflow-x: auto;
  padding-top: 2px;
  -webkit-overflow-scrolling: touch;
}

.potw-quick-player {
  background: white;
  border: 1px solid rgba(245, 91, 35, 0.24);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 11px;
}

.potw-quick-player:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.potw-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 9px;
  white-space: nowrap;
}

.potw-status.recorded {
  background: rgba(30, 85, 70, 0.1);
  color: var(--green);
}

.potw-status.missing {
  background: rgba(245, 91, 35, 0.14);
  color: var(--orange);
}

.potw-status.none {
  background: rgba(18, 20, 17, 0.08);
  color: var(--muted);
}

.compact-button {
  min-height: 34px;
  padding: 7px 10px;
}

.compact-empty {
  margin-top: 12px;
  padding: 12px;
}

.training-award-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.award-entry-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.award-entry-block h4 {
  font-size: 0.98rem;
  margin: 0;
}

.compact-awards-form {
  gap: 10px;
}

.compact-awards-form .panel-title {
  margin-bottom: 0;
}

.award-notes-toggle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.award-notes-toggle summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.award-notes-toggle .award-reason-fields {
  margin-top: 10px;
}

.award-picker {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
}

.award-reason-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.award-chip {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  font-weight: 900;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
}

.award-chip.is-selected {
  background: var(--green-2);
  border-color: #9fd5b9;
}

.award-chip:has(input:checked) {
  background: var(--green-2);
  border-color: #9fd5b9;
}

.award-chip input {
  min-height: auto;
  width: auto;
}

.award-recommendations {
  display: grid;
  gap: 10px;
}

.award-rec-card {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 10px;
}

.award-rec-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.award-focus-panel {
  margin-bottom: 16px;
}

.award-table {
  min-width: 760px;
}

.award-table td:nth-child(n + 2),
.award-table th:nth-child(n + 2) {
  text-align: center;
}

.award-last-cell {
  display: grid;
  gap: 5px;
  min-width: 130px;
  text-align: left;
}

.award-last-cell strong {
  font-size: 0.9rem;
}

.award-last-cell span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.award-heat-meter {
  background: #e8e5df;
  border-radius: 999px;
  display: block;
  height: 7px;
  overflow: hidden;
  width: 84px;
}

.award-heat-meter i {
  background: linear-gradient(90deg, #b9e8c9, var(--green));
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 6px;
}

.weekly-awards-panel {
  margin-bottom: 16px;
}

.profile-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.profile-card {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
}

.profile-card.is-inactive {
  background: #f4f2ee;
  opacity: 0.72;
}

.profile-card.is-inactive .player-avatar {
  filter: grayscale(1);
}

.profile-card p {
  margin-bottom: 0;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.guardian-settings-panel {
  display: grid;
  gap: 14px;
}

.parent-access-flow {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.parent-access-step {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 13px;
}

.parent-access-step span {
  align-items: center;
  background: var(--black);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.parent-access-step strong {
  font-size: 0.95rem;
}

.parent-access-step p,
.parent-access-form-head p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
  margin-bottom: 0;
}

.guardian-add-form {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  padding: 14px;
}

.parent-access-form-head {
  margin-bottom: 12px;
}

.parent-access-form-head h4 {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.form-row.guardian-add-row,
.form-row.guardian-edit-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guardian-access-toggle {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  min-height: 42px;
  padding: 9px 11px;
}

.guardian-access-toggle span {
  display: grid;
  gap: 1px;
  text-transform: none;
}

.guardian-access-toggle strong {
  color: var(--black);
  font-size: 0.9rem;
}

.guardian-access-toggle small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.guardian-list {
  display: grid;
  gap: 10px;
}

.parent-invite-panel {
  background: rgba(246, 245, 242, 0.76);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
}

.parent-invite-panel .panel-title {
  margin-bottom: 0;
}

.parent-invite-panel h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.parent-invite-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.parent-invite-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(223, 221, 215, 0.96);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.parent-invite-card.is-paused {
  background: rgba(244, 242, 238, 0.82);
  opacity: 0.75;
}

.parent-invite-player {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr);
}

.parent-invite-player strong,
.parent-invite-player span {
  display: block;
}

.parent-invite-player span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.parent-access-code-pill {
  align-items: center;
  background: rgba(250, 238, 221, 0.78);
  border: 1px solid rgba(241, 90, 26, 0.22);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
}

.parent-access-code-pill span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.parent-access-code-pill strong {
  color: var(--orange);
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.invite-link-field {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.invite-link-field input {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  min-height: 38px;
  overflow: hidden;
  padding: 8px 10px;
  text-overflow: ellipsis;
}

.guardian-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(18, 20, 17, 0.06);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.guardian-card-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.guardian-card-head strong,
.guardian-card-head p {
  display: block;
}

.guardian-card-head p {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 0;
}

.guardian-card-status {
  background: var(--accent-2);
  border: 1px solid rgba(241, 90, 26, 0.34);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 950;
  padding: 6px 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.guardian-card-status.is-off {
  background: #ebe8e2;
  border-color: #d8d4ca;
  color: var(--muted);
}

.photo-upload input {
  display: none;
}

.league-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.league-chip {
  background: var(--green-2);
  border: 1px solid #9fd5b9;
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 10px;
}

.compact-select-field {
  min-width: 190px;
}

.weekly-award-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.week-award-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 9px;
  padding: 12px;
  text-align: left;
}

.week-award-card:hover {
  border-color: #9fd5b9;
  box-shadow: 0 10px 22px rgba(17, 32, 24, 0.08);
}

.week-award-kicker {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.week-award-title {
  display: grid;
  gap: 2px;
}

.week-award-title span {
  color: var(--muted);
  font-size: 0.86rem;
}

.week-award-score {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 32px;
  width: 72px;
}

.week-award-score.W {
  background: var(--green-2);
  color: var(--green);
}

.week-award-score.D {
  background: var(--amber-2);
  color: var(--amber);
}

.week-award-score.L {
  background: var(--red-2);
  color: var(--red);
}

.week-award-lanes {
  display: grid;
  gap: 7px;
}

.week-award-lane {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  min-height: 38px;
  padding: 7px 9px;
}

.week-award-lane span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.week-award-lane strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-award-lane.potw {
  border-left-color: var(--blue);
}

.week-award-lane.mom {
  border-left-color: var(--purple);
}

.week-award-lane.captain {
  border-left-color: var(--green);
}

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

.toggle-row input {
  min-height: auto;
  width: auto;
}

.toggle-row small {
  color: var(--muted);
  display: block;
}

.setup-toggle {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 10px;
}

.starter-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.starter-chip {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  font-weight: 900;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
}

.starter-chip.is-selected {
  background: var(--green-2);
  border-color: #9fd5b9;
}

.starter-chip input {
  min-height: auto;
  width: auto;
}

.lineup-summary {
  align-items: start;
}

.mini-minute-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.minute-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
}

.minute-row:last-child {
  border-bottom: 0;
}

.stat-inputs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.table-wrap {
  overflow-x: auto;
}

table {
  min-width: 1320px;
  width: 100%;
}

.compact-input-table table {
  min-width: 480px;
}

.compact-input-table input {
  max-width: 96px;
  min-height: 36px;
  padding: 7px 8px;
  text-align: center;
}

.report-sub-table table {
  min-width: 560px;
}

.compact-input-table th,
.compact-input-table td,
.report-sub-table th,
.report-sub-table td {
  padding: 8px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

th:first-child {
  border-top-left-radius: 8px;
}

th:last-child {
  border-top-right-radius: 8px;
}

td:last-child,
th:last-child {
  padding-right: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.match-list {
  display: grid;
  gap: 8px;
}

.results-layout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
}

.result-list {
  display: grid;
  gap: 7px;
}

.result-list-head,
.result-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(130px, 1fr) 58px 74px 74px;
}

.result-list-head {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 0 10px;
  text-transform: uppercase;
}

.result-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 58px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.result-row.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-2);
}

.result-row small {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

.result-row > span:nth-child(2),
.result-row > strong {
  font-size: 0.92rem;
  font-weight: 900;
}

.queue-row {
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 8px;
  padding: 8px;
}

.queue-row.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-2);
}

.queue-main {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding: 4px;
  text-align: left;
}

.queue-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.match-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.match-row.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-2);
}

.result-badge {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  min-width: 42px;
}

.result-badge.W {
  background: var(--green-2);
  color: var(--green);
}

.result-badge.D {
  background: var(--amber-2);
  color: var(--amber);
}

.result-badge.L {
  background: var(--red-2);
  color: var(--red);
}

.result-badge.Tournament {
  background: var(--blue-2);
  color: var(--blue);
}

.result-badge.Tournament,
.score-badge.Tournament,
.result-dot.Tournament {
  background: var(--blue-2);
  border-color: #b7d5ee;
  color: var(--blue);
}

.match-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.match-badges {
  align-items: end;
  display: grid;
  gap: 4px;
  justify-items: end;
}

.review-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 8px;
}

.review-badge.is-open {
  background: var(--amber-2);
  color: var(--amber);
}

.review-badge.is-reviewed {
  background: var(--green-2);
  color: var(--green);
}

.score {
  font-size: 1.1rem;
  font-weight: 900;
}

.player-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.goal-audit-panel {
  margin-bottom: 14px;
}

.goal-audit-controls {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}

.goal-audit-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.goal-audit-note {
  margin: 10px 0 12px;
}

.goal-audit-team-note {
  background: rgba(30, 85, 70, 0.08);
  border: 1px solid rgba(30, 85, 70, 0.14);
  border-radius: 8px;
  color: var(--muted);
  margin: 10px 0 12px;
  padding: 10px 12px;
}

.goal-audit-warning {
  background: rgba(245, 91, 35, 0.1);
  border: 1px solid rgba(245, 91, 35, 0.24);
  border-radius: 8px;
  color: var(--text);
  margin: 10px 0 10px;
  padding: 10px 12px;
}

.goal-audit-warning strong {
  color: var(--orange);
  display: block;
  margin-bottom: 4px;
}

.goal-audit-warning p {
  margin: 0;
}

.goal-audit-check {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  padding: 5px 8px;
  white-space: nowrap;
}

.goal-audit-check.is-ok {
  background: rgba(30, 85, 70, 0.1);
  color: var(--green);
}

.goal-audit-check.is-warning {
  background: rgba(245, 91, 35, 0.14);
  color: var(--orange);
}

.goal-audit-table-wrap table {
  min-width: 820px;
}

.goal-audit-issue-wrap {
  margin-bottom: 12px;
}

.goal-audit-issue-wrap table {
  min-width: 560px;
}

.player-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.player-card-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
}

.player-card h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.mini-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.mini-stat {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 10px;
}

.mini-stat strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1;
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.mini-stat small {
  color: #71766d;
  display: block;
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.2;
  margin-top: 5px;
}

.report-panel {
  display: grid;
  gap: 18px;
}

.report-controls {
  align-items: end;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(223, 221, 215, 0.9);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(18, 20, 17, 0.07);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  padding: 10px;
  position: sticky;
  top: 132px;
  z-index: 12;
}

.report-header {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
}

.report-header h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  margin-bottom: 6px;
}

.report-header p {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 0;
}

.report-header .eyebrow {
  color: #bde5cf;
}

.report-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.report-link-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 11px;
}

.report-score {
  align-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  display: grid;
  justify-items: center;
  min-width: 116px;
  padding: 12px;
  text-align: center;
}

.report-score strong {
  font-size: 0.95rem;
  line-height: 1;
}

.report-score span {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.report-score.W {
  background: var(--green-2);
  border-color: #9fd5b9;
  color: var(--green);
}

.report-score.D {
  background: var(--amber-2);
  border-color: #e8ca91;
  color: var(--amber);
}

.report-score.L {
  background: var(--red-2);
  border-color: #e6aaa4;
  color: var(--red);
}

.report-kpis {
  margin: 0;
}

.report-stat-section {
  display: grid;
  gap: 12px;
}

.report-shot-comparison {
  background: #f7f8f5;
  border: 1px solid #d4d0c7;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.report-shot-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.report-shot-head h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.report-shot-head p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  margin-bottom: 0;
}

.report-shot-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.report-shot-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 1.2fr) repeat(2, minmax(72px, 0.6fr));
  min-height: 43px;
  padding: 9px 12px;
}

.report-shot-row:first-child {
  border-top: 0;
}

.report-shot-row.is-head {
  background: #edf3ee;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  min-height: 36px;
  text-transform: uppercase;
}

.report-shot-row span {
  font-weight: 900;
}

.report-shot-row strong {
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 950;
  padding: 5px 7px;
  text-align: right;
}

.report-shot-row strong.is-winner {
  background: var(--green-2);
  box-shadow: inset 0 0 0 1px #9fd5b9;
  color: var(--green);
}

.report-stat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
}

.report-stat-card {
  background: #f7f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-top: 4px solid var(--line);
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 12px;
}

.report-stat-card.attack {
  border-top-color: var(--red);
}

.report-stat-card.creation {
  border-top-color: var(--blue);
}

.report-stat-card.defence {
  border-top-color: var(--green);
}

.report-stat-card.keeper,
.report-stat-card.minutes {
  border-top-color: var(--purple);
}

.report-stat-title {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.report-stat-value {
  align-items: baseline;
  display: flex;
  gap: 6px;
}

.report-stat-value strong {
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-weight: 950;
  line-height: 0.95;
}

.report-stat-value small {
  color: #9aa39e;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.report-stat-note {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.25;
  margin-top: auto;
}

.report-awards {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 16px;
}

.report-award-item {
  background: var(--surface-2);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.report-award-item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-award-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.report-copy {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.report-copy h3 {
  margin-bottom: 10px;
}

.report-copy p:last-child {
  margin-bottom: 0;
}

.report-context-note {
  background: #f7f8f5;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.report-player-table {
  min-width: 1080px;
}

.heatmap-table th {
  padding: 7px;
}

.report-player-table th,
.report-player-table td {
  text-align: center;
}

.report-player-table th:first-child,
.report-player-table td:first-child {
  text-align: left;
}

.report-player-table th:first-child {
  left: 0;
  position: sticky;
  z-index: 3;
}

.table-sort-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  gap: 5px;
  justify-content: flex-start;
  min-height: 28px;
  padding: 0;
  text-align: left;
  text-transform: uppercase;
  white-space: normal;
}

.table-sort-button span {
  background: var(--green-2);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.62rem;
  padding: 2px 5px;
  text-transform: uppercase;
}

.table-sort-button.is-active {
  color: var(--green);
}

.report-player-name {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 10px 0 18px rgba(18, 20, 17, 0.05);
  left: 0;
  position: sticky;
  z-index: 1;
}

.report-heat-cell {
  font-weight: 900;
  min-width: 74px;
}

.start-pill {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  min-width: 42px;
  padding: 4px 8px;
}

.start-pill.is-started {
  background: var(--green-2);
  border-color: #9fd5b9;
  color: var(--green);
}

.top-player-list {
  counter-reset: top-player;
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-player-list li {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: top-player;
  display: grid;
  gap: 3px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 10px;
}

.top-player-list li::before {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: white;
  content: counter(top-player);
  display: flex;
  font-weight: 900;
  grid-row: span 2;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.top-player-list strong {
  line-height: 1.1;
}

.top-player-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.trend-controls {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.trend-controls p {
  margin-bottom: 0;
}

.trend-focus-controls {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.trend-focus-controls h3 {
  font-size: 1.1rem;
  margin-bottom: 3px;
}

.trend-focus-controls p {
  margin-bottom: 0;
}

.veo-stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.veo-stat-card {
  background: #f7f8f5;
  border: 2px solid transparent;
  border-radius: 16px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  min-height: 178px;
  padding: 20px;
  text-align: left;
}

.veo-stat-card.is-selected {
  background: var(--surface);
  border-color: #75d97d;
  box-shadow: 0 10px 28px rgba(31, 122, 77, 0.12);
}

.veo-stat-title {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
}

.veo-stat-card.is-selected .veo-stat-title {
  color: var(--ink);
}

.veo-stat-value {
  align-items: baseline;
  display: flex;
  gap: 7px;
}

.veo-stat-value strong {
  font-size: 3.4rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.95;
}

.veo-stat-value small {
  color: #9aa39e;
  font-size: 1.1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.veo-stat-note {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 850;
  margin-top: auto;
}

.veo-stat-delta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.veo-stat-delta.is-up {
  color: var(--green);
}

.veo-stat-delta.is-down {
  color: var(--red);
}

.ai-summary-panel {
  background: #f7f8f5;
  border: 1px solid #d4d0c7;
  border-radius: 16px;
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 18px;
}

.ai-summary-head {
  display: grid;
  gap: 4px;
}

.ai-summary-head span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.ai-summary-head strong {
  font-size: 1.08rem;
}

.ai-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.ai-summary-card.positive {
  border-left-color: var(--green);
}

.ai-summary-card.warning {
  border-left-color: var(--amber);
}

.ai-summary-card span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 950;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.ai-summary-card p {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
  margin-bottom: 0;
}

.veo-chart-panel {
  background: var(--surface);
  border: 1px solid #d4d0c7;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.veo-chart-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.veo-chart-head h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.veo-chart-head p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 850;
  margin-bottom: 0;
}

.veo-chart-head > span {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 950;
  padding: 8px 12px;
  white-space: nowrap;
}

.veo-chart {
  display: grid;
  gap: 14px;
  grid-template-columns: 46px minmax(0, 1fr);
  height: clamp(420px, 54vh, 560px);
  min-height: 420px;
}

.veo-y-axis {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-weight: 950;
  justify-content: space-between;
  padding: 6px 0 82px;
}

.veo-bars {
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  height: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 6px 4px 0;
  position: relative;
}

.veo-average-line {
  border-top: 2px dashed rgba(31, 122, 77, 0.34);
  bottom: var(--avg-bottom);
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 1;
}

.veo-bar-wrap {
  align-items: stretch;
  background: transparent;
  border: 0;
  color: inherit;
  display: grid;
  flex: 1 0 86px;
  gap: 8px;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-width: 78px;
  padding: 0;
  position: relative;
  text-align: center;
  z-index: 2;
}

.veo-bar-wrap:hover::after {
  background: var(--ink);
  border-radius: 8px;
  bottom: calc(100% + 10px);
  color: white;
  content: attr(data-tooltip);
  font-size: 0.78rem;
  font-weight: 850;
  left: 50%;
  line-height: 1.35;
  max-width: 300px;
  padding: 9px 10px;
  position: absolute;
  transform: translateX(-50%);
  white-space: normal;
  width: max-content;
  z-index: 30;
}

.veo-bar {
  align-items: start;
  align-self: end;
  background: #eeeeeb;
  border-radius: 8px 8px 3px 3px;
  color: var(--ink);
  display: flex;
  min-height: 4px;
  padding: 12px 10px 0;
  width: 100%;
}

.veo-bar.attack {
  background: #f0efec;
}

.veo-bar.creation {
  background: #e8eef3;
}

.veo-bar.defence {
  background: #e6f0ea;
}

.veo-bar.keeper {
  background: #eee8f5;
}

.veo-bar strong {
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
}

.veo-bar-meta {
  align-items: center;
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 78px;
}

.veo-bar-meta strong {
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.1;
  max-width: 82px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}

.result-dot {
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 950;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.result-dot.W {
  border-color: var(--green);
  color: var(--green);
}

.result-dot.D {
  border-color: var(--amber);
  color: var(--amber);
}

.result-dot.L {
  border-color: var(--red);
  color: var(--red);
}

.veo-bar-meta small {
  font-weight: 950;
}

.trend-modal-overlay {
  align-items: center;
  background: rgba(16, 32, 23, 0.26);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 90;
}

.trend-insight-modal {
  background: var(--surface);
  border: 1px solid #d4d0c7;
  border-radius: 12px;
  box-shadow: 0 26px 80px rgba(16, 32, 23, 0.28);
  display: grid;
  gap: 18px;
  max-height: min(820px, calc(100vh - 44px));
  max-width: 720px;
  overflow: auto;
  padding: 24px;
  width: min(100%, 720px);
}

.install-guide-overlay {
  align-items: center;
  background: rgba(16, 32, 23, 0.28);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 95;
}

.install-guide-modal {
  background: var(--surface);
  border: 1px solid #d4d0c7;
  border-radius: 12px;
  box-shadow: 0 26px 80px rgba(16, 32, 23, 0.28);
  color: var(--ink);
  display: grid;
  gap: 16px;
  max-width: 460px;
  padding: 22px;
  width: min(100%, 460px);
}

.install-guide-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.install-guide-head h2 {
  font-size: 1.45rem;
  margin: 0;
}

.install-guide-modal p {
  color: var(--muted);
  font-weight: 750;
  margin: 0;
}

.install-floating-nudge {
  align-items: center;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 18px 42px rgba(16, 19, 16, 0.24);
  color: white;
  display: none;
  gap: 6px;
  max-width: calc(100vw - 24px);
  padding: 6px 7px 6px 6px;
  position: fixed;
  right: 14px;
  z-index: 74;
}

.is-parent-mode:not(.is-standalone-app) .install-floating-nudge {
  display: inline-flex;
}

.install-floating-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: white;
  display: inline-flex;
  font-weight: 950;
  gap: 8px;
  min-height: 42px;
  padding: 0 8px 0 0;
}

.install-floating-button img {
  background: white;
  border-radius: 12px;
  height: 38px;
  width: 38px;
}

.install-floating-button span {
  line-height: 1.08;
  max-width: 118px;
  text-align: left;
}

.install-floating-dismiss {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.install-step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.install-step-list li {
  font-weight: 900;
  line-height: 1.35;
}

.install-guide-footer {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  padding: 10px;
}

.install-guide-footer img {
  border-radius: 12px;
  height: 46px;
  width: 46px;
}

.install-guide-footer span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.install-guide-done {
  width: 100%;
}

.trend-modal-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-weight: 800;
  gap: 8px;
}

.trend-modal-meta span:not(:last-of-type)::after {
  content: "•";
  margin-left: 8px;
}

.trend-modal-close {
  align-items: center;
  background: var(--surface-2);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  margin-left: auto;
  width: 48px;
}

.trend-modal-match-head {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 130px minmax(0, 1fr);
}

.trend-modal-thumb {
  align-items: center;
  background: linear-gradient(135deg, #dfeee3, #18231b);
  border-radius: 3px;
  color: white;
  display: flex;
  font-weight: 950;
  height: 74px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.trend-modal-thumb a {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  bottom: 8px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 950;
  padding: 5px 7px;
  position: absolute;
  right: 8px;
  text-decoration: none;
}

.trend-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.trend-modal-badges span {
  background: #ecebe7;
  border-radius: 8px;
  font-weight: 950;
  padding: 6px 10px;
  text-transform: uppercase;
}

.trend-modal-badges .score-badge {
  background: #c8f0cc;
  color: var(--ink);
}

.trend-modal-badges .score-badge.L {
  background: var(--red-2);
}

.trend-modal-badges .score-badge.D {
  background: var(--amber-2);
}

.trend-modal-match-head h3 {
  font-size: 1.35rem;
  margin-bottom: 0;
}

.trend-modal-tabs {
  border-bottom: 1px solid #d4d0c7;
  display: flex;
  gap: 34px;
}

.trend-modal-tabs span {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 950;
  padding: 0 0 14px;
}

.trend-modal-tabs .is-active {
  border-bottom: 3px solid var(--ink);
  color: var(--ink);
}

.trend-journal-card {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 32, 23, 0.08);
  display: grid;
  gap: 18px;
  min-height: 250px;
  padding: 22px;
}

.trend-journal-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.trend-journal-head h4 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.trend-journal-head span {
  color: var(--muted);
  font-weight: 900;
}

.trend-journal-card p {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 750;
  margin-bottom: 0;
}

.trend-modal-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trend-modal-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.trend-modal-footer p {
  color: var(--muted);
  margin-bottom: 0;
}

.segmented-control {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.segmented-control .quiet-button {
  min-height: 34px;
}

.quiet-button.is-selected {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.trend-kpis .trend-card {
  border-top: 4px solid var(--line);
}

.trend-card.attack {
  border-top-color: var(--red);
}

.trend-card.creation {
  border-top-color: var(--blue);
}

.trend-card.defence {
  border-top-color: var(--green);
}

.trend-card.keeper {
  border-top-color: var(--purple);
}

.trend-chart-panel {
  margin-bottom: 14px;
  overflow: visible;
}

.trend-chart-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.trend-chart-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  overflow: visible;
  padding: 12px;
}

.trend-chart-card.attack {
  border-top-color: var(--red);
}

.trend-chart-card.creation {
  border-top-color: var(--blue);
}

.trend-chart-card.defence {
  border-top-color: var(--green);
}

.trend-chart-card.keeper {
  border-top-color: var(--purple);
}

.trend-chart-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.trend-chart-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.trend-chart-bars {
  align-items: stretch;
  display: flex;
  gap: 7px;
  height: 150px;
  overflow: visible;
  padding-top: 8px;
  position: relative;
}

.trend-average-line {
  border-top: 2px dashed rgba(16, 32, 23, 0.28);
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: var(--avg-line);
  z-index: 1;
}

.trend-chart-bar-wrap {
  align-items: stretch;
  display: grid;
  flex: 1;
  gap: 6px;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 22px;
  overflow: visible;
}

.trend-chart-bar {
  align-self: end;
  background: var(--green);
  border-radius: 8px 8px 3px 3px;
  display: block;
  min-height: 3px;
  position: relative;
  z-index: 2;
}

.trend-chart-bar.attack {
  background: var(--red);
}

.trend-chart-bar.creation {
  background: var(--blue);
}

.trend-chart-bar.defence {
  background: var(--green);
}

.trend-chart-bar.keeper {
  background: var(--purple);
}

.trend-chart-bar:hover::after {
  background: var(--ink);
  border-radius: 8px;
  bottom: calc(100% + 8px);
  color: white;
  content: attr(data-tooltip);
  font-size: 0.78rem;
  font-weight: 800;
  left: 50%;
  line-height: 1.3;
  max-width: 230px;
  padding: 8px 9px;
  position: absolute;
  transform: translateX(-50%);
  width: max-content;
  z-index: 10;
}

.trend-chart-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-list {
  display: grid;
  gap: 12px;
}

.comparison-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 120px minmax(160px, 1fr) 58px 58px;
}

.comparison-label {
  font-weight: 900;
}

.comparison-bars {
  display: grid;
  gap: 5px;
}

.comparison-track,
.trend-bar-track {
  background: var(--surface-2);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.comparison-track.previous {
  opacity: 0.55;
}

.comparison-fill,
.trend-bar-fill {
  background: var(--green);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 3px;
}

.comparison-fill.attack,
.trend-bar-fill.attack {
  background: var(--red);
}

.comparison-fill.creation {
  background: var(--blue);
}

.comparison-fill.defence,
.trend-bar-fill.defence {
  background: var(--green);
}

.comparison-fill.keeper,
.trend-bar-fill.keeper {
  background: var(--purple);
}

.comparison-fill.previous {
  background: #9aa8a0;
}

.comparison-row small {
  color: var(--muted);
  font-weight: 800;
}

.trend-timeline {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.trend-match-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 10px;
}

.trend-match-head {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr);
}

.trend-match-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.trend-bar-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 58px minmax(0, 1fr) 68px;
}

.trend-bar-row span:first-child,
.trend-bar-row strong {
  font-size: 0.82rem;
  font-weight: 900;
}

.heatmap-wrap {
  overflow-x: auto;
}

.heatmap-grid {
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(132px, 1.35fr) repeat(var(--metric-count), minmax(74px, 0.8fr));
  min-width: 960px;
}

.team-heatmap {
  min-width: 1080px;
}

.heat-head,
.heat-row-label,
.heat-cell {
  border-radius: 8px;
  min-height: 44px;
  padding: 9px 10px;
}

.heat-head {
  align-items: center;
  background: var(--ink);
  color: white;
  display: flex;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.heat-row-label {
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  gap: 2px;
}

.heat-row-label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.heat-cell {
  align-items: center;
  border: 1px solid rgba(16, 32, 23, 0.08);
  display: flex;
  justify-content: center;
  text-align: center;
}

.heat-cell.is-muted {
  background: var(--surface-2);
  color: var(--muted);
}

.heat-cell strong {
  font-size: 0.98rem;
  line-height: 1;
}

.bar-list {
  display: grid;
  gap: 11px;
}

.bar-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 92px minmax(0, 1fr) 46px;
}

.bar-label {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  background: var(--surface-2);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  transform: translateY(5px);
}

.bar-fill {
  background: var(--green);
  border-radius: inherit;
  height: 100%;
  min-width: 4px;
}

.trend-chart {
  min-height: 240px;
}

.trend-chart svg {
  display: block;
  height: auto;
  max-width: 100%;
}

.event-log {
  display: grid;
  gap: 8px;
}

.event-item {
  align-items: start;
  background: var(--surface-2);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 10px;
}

.event-item strong {
  display: block;
}

.event-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.delete-button {
  background: transparent;
  border: 0;
  color: var(--red);
  font-weight: 900;
  min-height: 32px;
  padding: 0 6px;
}

.empty-state {
  background: var(--surface-2);
  border: 1px dashed #b8c6bd;
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
}

.pitch-map {
  aspect-ratio: 1.55 / 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 50%, transparent 50%),
    linear-gradient(#8bbf83, #6fb06f);
  border: 2px solid white;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(16, 32, 23, 0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.pitch-zone {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
  display: flex;
  flex-direction: column;
  font-weight: 900;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.pitch-zone span {
  font-size: 0.75rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notice {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  margin-bottom: 14px;
  padding: 12px;
}

.compact-notice {
  margin: 12px 0 0;
}

.validation-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
}

.validation-panel h3 {
  margin-bottom: 2px;
}

.validation-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.validation-item,
.validation-compare {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.validation-item strong,
.validation-compare strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.validation-item span,
.validation-compare span {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
}

.validation-compare.is-matched {
  border-color: #9fd5b9;
  background: var(--green-2);
}

.save-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.small-text {
  color: var(--muted);
  font-size: 0.88rem;
}

/* V2 design system pass: consistent surfaces, rows and data cards across the app. */
input,
select,
textarea {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 221, 215, 0.98);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  outline: none;
  padding: 10px 12px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input[type="checkbox"],
input[type="radio"] {
  min-height: auto;
  padding: 0;
  width: auto;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(241, 90, 26, 0.7);
  box-shadow: 0 0 0 3px rgba(241, 90, 26, 0.12);
}

.form-field span,
label > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.primary-button,
.event-button.is-pending,
.quiet-button.is-selected {
  background: var(--black);
  border-color: var(--black);
  color: white;
}

.event-button.is-pending {
  box-shadow: 0 0 0 3px rgba(241, 90, 26, 0.16);
  outline: 0;
}

.primary-button:hover,
.ghost-button:hover,
.quiet-button:hover,
.link-button:hover {
  border-color: rgba(241, 90, 26, 0.5);
  box-shadow: 0 12px 26px rgba(18, 20, 17, 0.08);
}

.status-pill,
.database-status,
.review-badge,
.start-pill,
.report-link-pill,
.league-chip,
.award-chip,
.player-hub-award-chip {
  border-radius: 999px;
}

.status-pill {
  background: var(--accent-2) !important;
  border-color: rgba(241, 90, 26, 0.34) !important;
  color: var(--accent) !important;
}

.database-status.is-saved {
  background: var(--green-2) !important;
  border-color: #9fd5b9 !important;
  color: var(--green) !important;
}

.result-badge.W,
.week-award-score.W,
.score-badge.W,
.result-dot.W {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.result-badge.D,
.week-award-score.D,
.score-badge.D,
.result-dot.D {
  background: #ebe8e2;
  border-color: #d8d4ca;
  color: var(--black);
}

.result-badge.L,
.week-award-score.L,
.score-badge.L,
.result-dot.L {
  background: var(--black);
  border-color: var(--black);
  color: white;
}

.panel:not(.kpi),
.player-card,
.result-row,
.match-row,
.queue-row,
.training-only-card,
.award-rec-card,
.week-award-card,
.trend-match-card,
.event-item,
.validation-panel {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(223, 221, 215, 0.92);
}

.panel-title h3,
.panel-title h2,
.section-head h2,
.trend-focus-controls h3,
.veo-chart-head h3,
.player-hub-trend-head h3 {
  letter-spacing: 0;
}

.table-wrap,
.player-hub-compact-wrap,
.player-hub-trend-table-wrap,
.heatmap-wrap {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(18, 20, 17, 0.06);
  overflow: auto;
}

.table-wrap table,
.player-hub-compact-table,
.player-hub-trend-table {
  background: transparent;
  border-collapse: separate;
  border-spacing: 0;
}

th,
.player-hub-compact-table th,
.player-hub-trend-table th {
  background: #f2f0eb;
  border-bottom: 1px solid rgba(18, 20, 17, 0.1);
  color: #686b63;
  letter-spacing: 0;
  position: sticky;
  top: 0;
  z-index: 2;
}

td,
.player-hub-compact-table td,
.player-hub-trend-table td {
  border-bottom-color: rgba(223, 221, 215, 0.85);
}

tbody tr:nth-child(even) td,
.player-hub-compact-table tbody tr:nth-child(even) td,
.player-hub-trend-table tbody tr:nth-child(even) td {
  background: rgba(245, 244, 241, 0.58);
}

tbody tr:hover td,
.player-hub-compact-table tbody tr:hover td,
.player-hub-trend-table tbody tr:hover td {
  background: var(--accent-2);
}

td strong,
.report-heat-cell,
.player-hub-compact-stat {
  color: var(--black);
  font-weight: 950;
}

.table-sort-button.is-active,
.table-sort-button.is-active span,
.table-sort-button span {
  color: var(--accent);
}

.table-sort-button span {
  background: var(--accent-2);
}

.match-row.is-active,
.result-row.is-active,
.queue-row.is-active {
  border-color: var(--black);
  box-shadow: inset 4px 0 0 var(--accent), 0 16px 34px rgba(18, 20, 17, 0.08);
}

.result-row,
.match-row,
.queue-row,
.week-award-card,
.player-hub-match-row {
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.result-row:hover,
.match-row:hover,
.queue-row:hover,
.week-award-card:hover,
.player-hub-match-row:hover {
  border-color: rgba(241, 90, 26, 0.46);
  box-shadow: 0 14px 30px rgba(18, 20, 17, 0.07);
  transform: translateY(-1px);
}

.report-header,
.trend-focus-controls,
.player-hub-hero,
.setup-progress-panel,
.review-priority-panel,
.ai-summary-panel {
  background:
    linear-gradient(145deg, rgba(5, 5, 4, 0.98), rgba(35, 34, 31, 0.98));
  border: 1px solid rgba(5, 5, 4, 0.18);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  color: white;
}

.trend-focus-controls p,
.player-hub-hero p,
.setup-progress-panel p,
.review-priority-panel p,
.ai-summary-panel p {
  color: rgba(255, 255, 255, 0.68);
}

.ai-summary-card p {
  color: var(--ink);
}

.report-header .eyebrow,
.ai-summary-head span,
.week-award-kicker,
.leader-title {
  color: var(--accent);
}

.report-score.W,
.report-score.D,
.report-score.L {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: white;
}

.report-score span {
  color: var(--accent);
}

.report-score.is-tournament {
  aspect-ratio: auto;
  min-width: 148px;
}

.report-score.is-tournament span {
  font-size: 1.35rem;
  white-space: nowrap;
}

.report-shot-comparison,
.veo-chart-panel,
.trend-chart-panel,
.player-hub-trend-panel,
.player-hub-development,
.award-focus-panel,
.training-award-entry,
.league-settings-panel,
.player-profile-panel,
.season-settings-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.report-shot-row.is-head {
  background: #f0efeb;
}

.report-shot-table {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(223, 221, 215, 0.92);
}

.report-shot-row {
  border-top-color: rgba(223, 221, 215, 0.85);
}

.report-shot-row:nth-child(even):not(.is-head) {
  background: rgba(245, 244, 241, 0.58);
}

.report-shot-row strong.is-winner {
  background: var(--accent-2);
  box-shadow: inset 0 0 0 1px rgba(241, 90, 26, 0.34);
  color: var(--accent);
}

.report-stat-card,
.trend-chart-card,
.trend-kpis .trend-card,
.veo-stat-card,
.ai-summary-card,
.player-hub-game-column,
.player-hub-game-card,
.award-entry-block,
.award-rec-card,
.training-only-card,
.setup-step,
.validation-item,
.validation-compare {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
}

.report-stat-card,
.trend-chart-card,
.trend-kpis .trend-card {
  border-top-color: var(--accent) !important;
}

.report-stat-card.attack,
.report-stat-card.creation,
.report-stat-card.defence,
.report-stat-card.keeper,
.report-stat-card.minutes,
.trend-card.attack,
.trend-card.creation,
.trend-card.defence,
.trend-card.keeper,
.trend-chart-card.attack,
.trend-chart-card.creation,
.trend-chart-card.defence,
.trend-chart-card.keeper {
  border-top-color: var(--accent) !important;
}

.veo-stat-card {
  border: 1px solid rgba(223, 221, 215, 0.92);
  min-height: 164px;
}

.veo-stat-card.is-selected {
  background: var(--black);
  border-color: var(--black);
  box-shadow: 0 20px 44px rgba(5, 5, 4, 0.16);
  color: white;
}

.veo-stat-card.is-selected .veo-stat-title,
.veo-stat-card.is-selected .veo-stat-note,
.veo-stat-card.is-selected .veo-stat-delta,
.veo-stat-card.is-selected .veo-stat-value small {
  color: rgba(255, 255, 255, 0.68);
}

.veo-stat-card.is-selected .veo-stat-value strong {
  color: white;
}

.veo-bar,
.veo-bar.attack,
.veo-bar.creation,
.veo-bar.defence,
.veo-bar.keeper,
.trend-chart-bar,
.trend-chart-bar.attack,
.trend-chart-bar.creation,
.trend-chart-bar.defence,
.trend-chart-bar.keeper,
.comparison-fill,
.comparison-fill.attack,
.comparison-fill.creation,
.comparison-fill.defence,
.comparison-fill.keeper,
.trend-bar-fill,
.trend-bar-fill.attack,
.trend-bar-fill.defence,
.trend-bar-fill.keeper,
.bar-fill,
.top-five-track span,
.player-hub-chart-line,
.player-hub-chart-point {
  background: var(--accent);
  color: var(--black);
  stroke: var(--accent);
}

.veo-average-line,
.trend-average-line {
  border-color: rgba(5, 5, 4, 0.28);
  stroke: rgba(5, 5, 4, 0.38);
}

.player-hub-hero {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 18px;
}

.player-hub-hero .eyebrow {
  color: var(--accent);
}

.player-hub-hero .player-hub-head {
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.player-hub-hero .player-hub-head h3 {
  color: var(--black);
  font-size: clamp(1.12rem, 1.5vw, 1.42rem);
}

.player-hub-hero .player-hub-head p:last-child {
  color: #626861;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
}

.player-hub-season-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.player-hub-season-table-wrap {
  max-height: 340px;
  overflow: auto;
}

.player-hub-season-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
  min-width: 520px;
  width: 100%;
}

.player-hub-season-table th,
.player-hub-season-table td {
  border-bottom: 1px solid rgba(223, 221, 215, 0.82);
  padding: 7px 9px;
  text-align: left;
}

.player-hub-season-table th {
  background: #11130f;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  font-weight: 900;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}

.player-hub-season-table td {
  background: rgba(255, 255, 255, 0.9);
  color: #626861;
  font-weight: 760;
}

.player-hub-season-table tr:nth-child(even) td {
  background: rgba(248, 247, 244, 0.94);
}

.player-hub-season-table td:first-child {
  color: var(--black);
  font-weight: 900;
}

.player-hub-season-table td:nth-child(2) strong {
  color: var(--black);
  font-size: 0.95rem;
}

.player-hub-season-stat {
  background: rgba(247, 246, 243, 0.78);
  border: 1px solid rgba(223, 221, 215, 0.86);
  border-left: 3px solid rgba(18, 20, 17, 0.18);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 5px;
  min-height: 68px;
  padding: 8px 10px;
}

.player-hub-season-stat strong {
  color: var(--black);
  font-size: clamp(1.02rem, 1.28vw, 1.42rem);
  font-weight: 850;
  line-height: 1;
  order: 1;
}

.player-hub-season-stat span {
  color: #626861;
  font-size: 0.66rem;
  font-weight: 820;
  line-height: 1.12;
  order: 2;
}

.player-hub-season-stat small {
  align-self: end;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 999px;
  color: #626861;
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 820;
  justify-self: start;
  letter-spacing: 0;
  line-height: 1;
  order: 3;
  padding: 4px 6px;
}

.player-hub-season-stat.attack {
  border-left-color: rgba(241, 90, 26, 0.58);
}

.player-hub-season-stat.creation {
  border-left-color: rgba(55, 113, 160, 0.48);
}

.player-hub-season-stat.defence {
  border-left-color: rgba(31, 122, 77, 0.48);
}

.player-hub-season-stat.keeper {
  border-left-color: rgba(116, 91, 154, 0.5);
}

.player-hub-season-stat.award {
  border-left-color: rgba(184, 119, 31, 0.5);
}

.goalkeeper-analysis-panel {
  margin-top: 14px;
}

.goalkeeper-analysis-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.goalkeeper-analysis-card {
  background: rgba(247, 246, 243, 0.78);
  border: 1px solid rgba(223, 221, 215, 0.86);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.goalkeeper-analysis-card h4 {
  align-items: center;
  color: var(--black);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 900;
  gap: 6px;
  line-height: 1.1;
  margin: 0;
}

.goalkeeper-distribution-list {
  display: grid;
  gap: 7px;
}

.goalkeeper-distribution-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(223, 221, 215, 0.9);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 9px 10px;
}

.goalkeeper-distribution-row span,
.goalkeeper-distribution-row small {
  color: #626861;
  font-size: 0.74rem;
  font-weight: 820;
}

.goalkeeper-distribution-row strong {
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 900;
}

.player-hub-selector-panel,
.player-hub-summary,
.player-hub-development,
.player-hub-trend-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(223, 221, 215, 0.92);
  box-shadow: var(--shadow);
}

.player-hub-filter,
.player-hub-game-column,
.player-hub-game-card,
.player-hub-match-row,
.player-hub-compact-table td:first-child,
.setup-toggle,
.starter-chip,
.mini-minute-list,
.dashboard-ga-list,
.dashboard-summary-copy,
.report-copy,
.report-context-note {
  background: rgba(255, 255, 255, 0.82);
}

.player-hub-game-column.mom,
.player-hub-game-column.strong,
.player-hub-game-column.quiet,
.player-hub-game-card.mom,
.player-hub-game-card.strong,
.player-hub-game-card.quiet {
  border-color: rgba(223, 221, 215, 0.92);
  border-left-color: var(--accent);
  border-top-color: var(--accent);
}

.player-hub-award-chip,
.start-pill.is-started,
.starter-chip.is-selected,
.award-chip.is-selected,
.award-chip:has(input:checked),
.review-badge.is-reviewed,
.validation-compare.is-matched,
.setup-step.is-done {
  background: var(--accent-2);
  border-color: rgba(241, 90, 26, 0.34);
  color: var(--accent);
}

.setup-step.is-done span,
.top-player-list li::before {
  background: var(--accent);
}

.event-button {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(223, 221, 215, 0.92);
  color: var(--black);
}

.event-button.attack,
.event-button.creation,
.event-button.defence,
.event-button.keeper,
.event-button.other,
.event-button.note {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(223, 221, 215, 0.92);
  color: var(--black);
}

.event-button:hover,
.player-chip:hover,
.starter-chip:hover,
.award-chip:hover {
  border-color: rgba(241, 90, 26, 0.5);
  box-shadow: 0 12px 26px rgba(18, 20, 17, 0.08);
}

.player-chip.is-selected,
.starter-chip.is-selected {
  background: var(--black);
  border-color: var(--black);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(241, 90, 26, 0.22);
}

.award-entry-block h4,
.setup-progress-head h3,
.review-priority-head h3,
.report-shot-head h3,
.veo-chart-head h3,
.player-hub-game-column-head h4 {
  color: var(--black);
}

.setup-progress-panel .setup-progress-head h3,
.review-priority-panel .review-priority-head h3,
.trend-focus-controls h3,
.ai-summary-panel .ai-summary-head strong {
  color: white;
}

.week-award-lane,
.report-award-item {
  border-left-color: var(--accent) !important;
}

.trend-insight-modal {
  border-radius: 8px;
}

.trend-modal-close {
  background: var(--black);
  color: white;
}

.segmented-control {
  background: #efede8;
  border-color: rgba(223, 221, 215, 0.92);
}

.empty-state {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(18, 20, 17, 0.22);
}

.team-trends-controls {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(18, 20, 17, 0.06);
  color: var(--ink);
  margin-bottom: 12px;
  padding: 12px 14px;
}

.team-trends-controls h3 {
  color: var(--black);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.team-trends-controls p {
  color: #686e65;
  font-size: 0.87rem;
  font-weight: 650;
}

.team-trends-controls .segmented-control {
  background: rgba(239, 237, 232, 0.72);
  border: 1px solid rgba(223, 221, 215, 0.96);
  border-radius: 8px;
  gap: 3px;
  padding: 3px;
}

.team-trends-controls .quiet-button {
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 750;
  min-height: 34px;
  padding: 7px 11px;
}

.team-trends-summary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 246, 243, 0.96) 54%, rgba(255, 241, 232, 0.78) 100%);
  border: 1px solid rgba(223, 221, 215, 0.96);
  border-left: 4px solid rgba(241, 90, 26, 0.45);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(18, 20, 17, 0.06);
  color: var(--ink);
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
}

.team-trends-summary .ai-summary-head {
  gap: 3px;
}

.team-trends-summary .ai-summary-head span {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
}

.team-trends-summary .ai-summary-head strong {
  color: var(--black);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

.team-trends-summary .ai-summary-grid {
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.team-trends-summary .ai-summary-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(223, 221, 215, 0.86);
  border-left: 3px solid rgba(241, 90, 26, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
}

.team-trends-summary .ai-summary-card.positive {
  border-left-color: rgba(31, 122, 77, 0.45);
}

.team-trends-summary .ai-summary-card.warning {
  border-left-color: rgba(184, 119, 31, 0.45);
}

.team-trends-summary .ai-summary-card span {
  color: #70766d;
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.team-trends-summary .ai-summary-card p {
  color: #2f332e;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.42;
}

.team-trends-stat-grid {
  gap: 10px;
  margin-bottom: 16px;
}

.team-trends-stat-grid .veo-stat-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(18, 20, 17, 0.04);
  color: var(--ink);
  min-height: 146px;
  padding: 14px 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.team-trends-stat-grid .veo-stat-card:hover {
  border-color: rgba(241, 90, 26, 0.34);
  box-shadow: 0 14px 30px rgba(18, 20, 17, 0.07);
  transform: translateY(-1px);
}

.team-trends-stat-grid .veo-stat-card.is-selected {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 241, 0.96));
  border-color: rgba(241, 90, 26, 0.54);
  box-shadow: 0 16px 34px rgba(241, 90, 26, 0.12);
  color: var(--ink);
}

.team-trends-stat-grid .veo-stat-card.is-selected .veo-stat-title,
.team-trends-stat-grid .veo-stat-card.is-selected .veo-stat-note,
.team-trends-stat-grid .veo-stat-card.is-selected .veo-stat-delta,
.team-trends-stat-grid .veo-stat-card.is-selected .veo-stat-value small {
  color: #5d635a;
}

.team-trends-stat-grid .veo-stat-card.is-selected .veo-stat-value strong {
  color: var(--black);
}

.team-trends-stat-grid .veo-stat-title {
  color: #686e65;
  font-size: 0.82rem;
  font-weight: 800;
}

.team-trends-stat-grid .veo-stat-value {
  gap: 6px;
}

.team-trends-stat-grid .veo-stat-value strong {
  font-size: clamp(2.05rem, 2.5vw, 2.75rem);
  font-weight: 820;
  line-height: 1;
}

.team-trends-stat-grid .veo-stat-value small {
  color: #939991;
  font-size: 0.78rem;
  font-weight: 800;
}

.team-trends-stat-grid .veo-stat-note {
  color: #646b62;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.3;
}

.team-trends-stat-grid .veo-stat-delta {
  font-size: 0.76rem;
  font-weight: 750;
}

.team-trends-stat-grid .veo-stat-action {
  align-items: center;
  background: rgba(18, 20, 17, 0.06);
  border: 1px solid rgba(18, 20, 17, 0.08);
  border-radius: 999px;
  color: #5f665e;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 820;
  justify-self: start;
  line-height: 1;
  margin-top: 2px;
  padding: 6px 8px;
}

.team-trends-stat-grid .veo-stat-card.is-selected .veo-stat-action {
  background: rgba(241, 90, 26, 0.12);
  border-color: rgba(241, 90, 26, 0.24);
  color: var(--accent);
}

.team-trends-chart-panel {
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(18, 20, 17, 0.07);
  padding: 18px;
}

.team-trends-chart-panel .veo-chart-head {
  margin-bottom: 18px;
}

.team-trends-chart-panel .veo-chart-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.team-trends-chart-panel .veo-chart-head p {
  color: #686e65;
  font-size: 0.9rem;
  font-weight: 650;
}

.team-trends-chart-panel .veo-chart-head > span {
  background: #efede8;
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 999px;
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 10px;
}

.team-trends-chart-panel .veo-chart {
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr);
  height: clamp(330px, 42vh, 460px);
  min-height: 330px;
}

.team-trends-chart-panel .veo-y-axis {
  color: #51564f;
  font-size: 0.82rem;
  font-weight: 760;
  padding: 3px 0 70px;
}

.team-trends-chart-panel .veo-bars {
  gap: clamp(12px, 1.25vw, 22px);
  justify-content: space-between;
  padding: 4px 10px 0;
}

.team-trends-chart-panel .veo-average-line {
  border-top: 1px dashed rgba(18, 20, 17, 0.26);
}

.team-trends-chart-panel .veo-bar-wrap {
  flex: 0 0 clamp(48px, 4.2vw, 74px);
  gap: 6px;
  min-width: 48px;
}

.team-trends-chart-panel .veo-bar {
  background: linear-gradient(180deg, rgba(241, 90, 26, 0.72), rgba(241, 90, 26, 0.52));
  border-radius: 6px 6px 3px 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  justify-content: flex-start;
  min-height: 2px;
  padding: 8px 7px 0;
  position: relative;
}

.team-trends-chart-panel .veo-bar strong {
  color: rgba(5, 5, 4, 0.86);
  font-size: 0.74rem;
  font-weight: 800;
}

.team-trends-chart-panel .veo-bar.is-zero {
  align-items: center;
  background: transparent;
  box-shadow: none;
  height: 18px !important;
  justify-content: center;
  min-height: 18px;
  padding: 0;
}

.team-trends-chart-panel .veo-bar.is-zero::before {
  background: rgba(241, 90, 26, 0.44);
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 3px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 30px;
}

.team-trends-chart-panel .veo-bar.is-zero strong {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: rgba(18, 20, 17, 0.82);
  font-size: 0.7rem;
  line-height: 1;
  padding: 1px 4px;
  transform: translateY(-4px);
}

.team-trends-chart-panel .veo-bar-meta {
  gap: 3px;
  min-height: 68px;
}

.team-trends-chart-panel .veo-bar-meta strong {
  color: #20231f;
  font-size: 0.66rem;
  font-weight: 760;
  max-width: 66px;
}

.team-trends-chart-panel .result-dot {
  border-width: 1px;
  font-size: 0.62rem;
  font-weight: 800;
  height: 20px;
  width: 20px;
}

.team-trends-chart-panel .veo-bar-meta small {
  color: #343933;
  font-size: 0.68rem;
  font-weight: 760;
}

.report-copy.coach-notes-block {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 245, 242, 0.96) 48%, rgba(255, 240, 231, 0.9) 100%);
  border: 1px solid rgba(223, 221, 215, 0.96);
  border-left: 5px solid rgba(241, 90, 26, 0.72);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(18, 20, 17, 0.07);
  margin: 14px 0 18px;
  padding: clamp(18px, 2.2vw, 28px);
}

.coach-notes-block h3 {
  align-items: center;
  color: var(--black);
  display: flex;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  gap: 10px;
  margin-bottom: 14px;
}

.coach-notes-block h3::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 10px;
  width: 10px;
}

.coach-notes-block p {
  color: #5d635a;
  font-size: clamp(1rem, 1.28vw, 1.18rem);
  line-height: 1.58;
  max-width: 82ch;
}

.coach-notes-block p + p {
  margin-top: 16px;
}

.metric-info-icon {
  align-items: center;
  background: rgba(241, 90, 26, 0.12);
  border: 1px solid rgba(241, 90, 26, 0.32);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.62em;
  font-weight: 900;
  height: 1.45em;
  justify-content: center;
  line-height: 1;
  margin-left: 0.35em;
  text-transform: none;
  vertical-align: text-top;
  width: 1.45em;
}

.report-player-table-wrap {
  max-height: min(68vh, 680px);
  overscroll-behavior: contain;
}

.report-player-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
  min-width: 1260px;
}

.report-player-table th,
.report-player-table td {
  padding: 10px 11px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.report-player-table tbody td {
  background: rgba(255, 255, 255, 0.92);
  height: 62px;
}

.report-player-table tbody tr:nth-child(even) td {
  background: rgba(248, 247, 244, 0.94);
}

.report-player-table tbody tr:hover td {
  background: #fff7f1;
}

.report-player-table-groups th,
.report-player-table-labels th {
  position: sticky;
}

.report-player-table-groups th {
  background: #11130f;
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.62rem;
  height: 30px;
  padding-bottom: 7px;
  padding-top: 8px;
  text-transform: uppercase;
  top: 0;
  z-index: 5;
}

.report-player-table-labels th {
  background: #f6f5f2;
  border-bottom: 1px solid rgba(18, 20, 17, 0.14);
  color: #454942;
  font-size: 0.68rem;
  height: 42px;
  top: 30px;
  z-index: 4;
}

.report-player-table th:first-child,
.report-player-table td:first-child {
  box-shadow: 12px 0 22px rgba(18, 20, 17, 0.06);
  left: 0;
  min-width: 150px;
  position: sticky;
  text-align: left;
  width: 150px;
}

.report-player-table-groups th:first-child {
  background: #11130f;
  z-index: 8;
}

.report-player-table-labels th:first-child {
  background: #f6f5f2;
  z-index: 7;
}

.report-player-name {
  background: rgba(255, 255, 255, 0.98);
  color: var(--black);
  font-size: 0.92rem;
  z-index: 3;
}

.report-player-table tbody tr:nth-child(even) .report-player-name {
  background: rgba(248, 247, 244, 0.98);
}

.report-player-table tbody tr:hover .report-player-name {
  background: #fff7f1;
}

.report-player-table .table-sort-button {
  align-items: center;
  color: inherit;
  font-size: 0.68rem;
  gap: 6px;
  justify-content: center;
  line-height: 1.15;
  min-height: 30px;
  text-align: center;
  width: 100%;
}

.report-player-table th:first-child .table-sort-button {
  justify-content: flex-start;
  text-align: left;
}

.report-player-table .table-sort-button span {
  background: var(--accent-2);
  border: 1px solid rgba(241, 90, 26, 0.18);
  color: var(--accent);
  font-size: 0.58rem;
  padding: 3px 6px;
}

.report-player-table .table-sort-button.is-active {
  color: var(--accent);
}

.report-player-table .start-pill {
  background: rgba(18, 20, 17, 0.06);
  border: 1px solid rgba(18, 20, 17, 0.12);
  color: var(--muted);
  font-size: 0.72rem;
  min-width: 48px;
  padding: 6px 10px;
}

.report-player-table .start-pill.is-started {
  background: var(--accent-2);
  border-color: rgba(241, 90, 26, 0.26);
  color: var(--accent);
}

.report-heat-cell {
  --stat-tint: var(--black);
  color: var(--black);
  font-weight: 950;
  min-width: 70px;
  overflow: hidden;
  position: relative;
}

.report-heat-cell strong {
  position: relative;
  z-index: 1;
}

.report-heat-cell::after {
  background: var(--stat-tint);
  border-radius: 999px;
  bottom: 9px;
  content: "";
  height: 3px;
  left: 11px;
  opacity: 0.82;
  position: absolute;
  right: 11px;
  transform: scaleX(var(--cell-strength, 0));
  transform-origin: left center;
}

.report-heat-cell.is-zero {
  color: rgba(18, 20, 17, 0.48);
}

.report-heat-cell.is-zero::after {
  opacity: 0;
}

.report-heat-cell.is-attack {
  --stat-tint: var(--accent);
}

.report-heat-cell.is-creation {
  --stat-tint: var(--blue);
}

.report-heat-cell.is-defence {
  --stat-tint: var(--green);
}

.report-heat-cell.is-keeper {
  --stat-tint: var(--purple);
}

.report-heat-cell.is-minutes {
  --stat-tint: var(--amber);
}

.player-hub-compact-wrap {
  max-height: min(64vh, 620px);
  overscroll-behavior: contain;
}

.player-hub-compact-table {
  font-size: 0.82rem;
  min-width: 1340px;
}

.player-hub-compact-table th,
.player-hub-compact-table td {
  padding: 9px 10px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.player-hub-compact-table tbody td {
  background: rgba(255, 255, 255, 0.92);
  height: 58px;
}

.player-hub-compact-table tbody tr:nth-child(even) td {
  background: rgba(248, 247, 244, 0.94);
}

.player-hub-compact-table tbody tr:hover td {
  background: #fff7f1;
}

.player-hub-table-groups th,
.player-hub-table-labels th {
  position: sticky;
}

.player-hub-table-groups th {
  background: #11130f;
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.62rem;
  height: 30px;
  padding-bottom: 7px;
  padding-top: 8px;
  text-transform: uppercase;
  top: 0;
  z-index: 5;
}

.player-hub-table-labels th {
  background: #f6f5f2;
  border-bottom: 1px solid rgba(18, 20, 17, 0.14);
  color: #454942;
  font-size: 0.68rem;
  height: 38px;
  top: 30px;
  z-index: 4;
}

.player-hub-compact-table th:first-child,
.player-hub-compact-table td:first-child {
  box-shadow: 12px 0 22px rgba(18, 20, 17, 0.06);
  left: 0;
  min-width: 260px;
  position: sticky;
  text-align: left;
  width: 260px;
}

.player-hub-table-groups th:first-child {
  background: #11130f;
  z-index: 8;
}

.player-hub-table-labels th:first-child {
  background: #f6f5f2;
  z-index: 7;
}

.player-hub-compact-table td:first-child {
  background: rgba(255, 255, 255, 0.98);
  z-index: 3;
}

.player-hub-compact-table tbody tr:nth-child(even) td:first-child {
  background: rgba(248, 247, 244, 0.98);
}

.player-hub-compact-table tbody tr:hover td:first-child {
  background: #fff7f1;
}

.player-hub-compact-table tr.is-mom-game td:first-child {
  background:
    linear-gradient(90deg, rgba(241, 90, 26, 0.13), rgba(255, 255, 255, 0.98) 64%);
  box-shadow: inset 4px 0 0 var(--accent), 12px 0 22px rgba(18, 20, 17, 0.06);
}

.player-hub-game-cell strong {
  color: var(--black);
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: normal;
}

.player-hub-game-cell span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  margin-top: 3px;
}

.player-hub-score-cell {
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 850;
}

.player-hub-marker-cell {
  color: var(--muted);
  min-width: 58px;
}

.player-hub-award-chip {
  background: var(--accent-2);
  border: 1px solid rgba(241, 90, 26, 0.22);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 950;
  line-height: 1;
  padding: 6px 8px;
}

.player-hub-involvement-pill {
  background: rgba(17, 19, 15, 0.08);
  border: 1px solid rgba(17, 19, 15, 0.12);
  border-radius: 999px;
  color: var(--black);
  display: inline-flex;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  padding: 6px 8px;
}

.player-hub-start-dot {
  align-items: center;
  background: rgba(18, 20, 17, 0.08);
  border: 1px solid rgba(18, 20, 17, 0.12);
  border-radius: 999px;
  color: var(--black);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 950;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.player-hub-empty-mark {
  color: rgba(107, 111, 103, 0.62);
  font-weight: 800;
}

.player-hub-compact-stat {
  --stat-tint: var(--black);
  color: var(--black);
  font-weight: 950;
  min-width: 54px;
  overflow: hidden;
  position: relative;
}

.player-hub-compact-stat span {
  position: relative;
  z-index: 1;
}

.player-hub-compact-stat::after {
  background: var(--stat-tint);
  border-radius: 999px;
  bottom: 8px;
  content: "";
  height: 3px;
  left: 9px;
  opacity: 0.82;
  position: absolute;
  right: 9px;
  transform: scaleX(var(--cell-strength, 0));
  transform-origin: left center;
}

.player-hub-compact-stat.is-zero {
  color: rgba(18, 20, 17, 0.48);
}

.player-hub-compact-stat.is-zero::after {
  opacity: 0;
}

.player-hub-compact-stat.is-muted {
  color: rgba(107, 111, 103, 0.62);
}

.player-hub-compact-stat.is-muted::after {
  opacity: 0;
}

.player-hub-compact-stat.is-attack {
  --stat-tint: var(--accent);
}

.player-hub-compact-stat.is-creation {
  --stat-tint: var(--blue);
}

.player-hub-compact-stat.is-defence {
  --stat-tint: var(--green);
}

.player-hub-compact-stat.is-keeper {
  --stat-tint: var(--purple);
}

.player-hub-compact-stat.is-minutes {
  --stat-tint: var(--amber);
}

.player-hub-form-cell {
  min-width: 112px;
}

.player-hub-table-strength {
  background: rgba(18, 20, 17, 0.08);
  border-radius: 999px;
  height: 7px;
  margin: 0 auto 5px;
  overflow: hidden;
  width: 88px;
}

.player-hub-table-strength span {
  background: linear-gradient(90deg, var(--accent), #ff9c5b);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.player-hub-form-cell small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
}

.player-hub-veo-cell {
  min-width: 74px;
}

.player-hub-veo-cell a {
  background: rgba(241, 90, 26, 0.1);
  border: 1px solid rgba(241, 90, 26, 0.24);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  padding: 7px 10px;
  text-decoration: none;
}

.player-hub-veo-cell a:hover {
  background: var(--accent);
  color: white;
}

.player-hub-table-key {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 10px;
}

/* Whole-app polish pass: keep the dashboard language light, compact and consistent. */
.dashboard-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 247, 244, 0.97) 56%, rgba(255, 240, 231, 0.88) 100%);
  border: 1px solid rgba(223, 221, 215, 0.96);
  box-shadow: 0 18px 44px rgba(18, 20, 17, 0.07);
  color: var(--ink);
}

.dashboard-hero-badge {
  background: var(--accent-2);
  border-color: rgba(241, 90, 26, 0.22);
  color: var(--accent);
}

.dashboard-hero-copy > p:not(.eyebrow),
.dashboard-hero-footer {
  color: #5f665e;
}

.dashboard-hero .mini-stat {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(223, 221, 215, 0.92);
}

.dashboard-hero .mini-stat strong {
  color: var(--black);
}

.dashboard-hero .mini-stat span {
  color: #666d64;
}

.dashboard-hero-form i {
  background: rgba(18, 20, 17, 0.08);
  color: var(--black);
}

.dashboard-hero-form i.W {
  background: var(--accent);
  color: white;
}

.dashboard-hero-form i.D {
  background: #efede8;
  color: var(--black);
}

.dashboard-hero-form i.L {
  background: var(--black);
  color: white;
}

.dashboard-hero-photo {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.06) 38%, rgba(255, 255, 255, 0) 100%),
    url("assets/stanway-villa-reds-team-v2.jpeg") center / cover;
}

.development-focus-grid span {
  background: var(--accent-2);
  border: 1px solid rgba(241, 90, 26, 0.24);
  color: var(--accent);
}

.leaderboard-explainer article::before {
  background: var(--accent);
  height: 3px;
}

.home-season-section .form-guide-card,
.dashboard-key-stats .mini-stat {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 247, 244, 0.94));
  border: 1px solid rgba(223, 221, 215, 0.96);
  color: var(--ink);
}

.home-season-section .form-guide-card .kpi-label,
.dashboard-key-stats .mini-stat span {
  color: #666d64;
}

.dashboard-key-stats .mini-stat strong,
.home-season-section .form-guide-card .kpi-value {
  color: var(--black);
}

.parent-view-settings-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 246, 243, 0.9)),
    radial-gradient(circle at top right, rgba(241, 90, 26, 0.12), rgba(241, 90, 26, 0) 34%);
  border: 1px solid rgba(223, 221, 215, 0.92);
  box-shadow: var(--shadow);
}

.parent-leaderboard-toggle {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  margin-top: 10px;
  padding: 10px 12px;
}

.supabase-settings-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 244, 241, 0.92)),
    radial-gradient(circle at top right, rgba(241, 90, 26, 0.13), rgba(241, 90, 26, 0) 36%);
  border-color: rgba(223, 221, 215, 0.92);
}

.supabase-settings-panel .panel-title {
  align-items: flex-start;
  flex-wrap: wrap;
}

.cloud-status-pill {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  max-width: 100%;
  padding: 7px 10px;
  white-space: normal;
}

.cloud-status-pill.is-connected,
.cloud-status-pill.is-signed-in {
  background: var(--green-2);
  border-color: #9fd5b9;
  color: var(--green);
}

.cloud-status-pill.is-checking {
  background: var(--blue-2);
  border-color: #b8d3e5;
  color: var(--blue);
}

.cloud-status-pill.is-warning,
.cloud-status-pill.is-error {
  background: var(--amber-2);
  border-color: #e8ca91;
  color: var(--amber);
}

.cloud-project-card {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cloud-project-card > div,
.cloud-count-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
  padding: 12px;
}

.cloud-project-card span,
.cloud-count-card span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.cloud-project-card strong,
.cloud-count-card strong {
  color: var(--black);
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.cloud-project-card small,
.cloud-count-card small,
.cloud-helper-text {
  color: var(--muted);
  display: block;
  font-weight: 750;
  margin-top: 4px;
}

.supabase-login-form,
.cloud-action-row {
  margin-top: 12px;
}

.cloud-action-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cloud-count-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.cloud-count-card.is-ready {
  border-left: 3px solid rgba(31, 122, 77, 0.42);
}

.cloud-count-card.is-warning {
  background: rgba(251, 237, 212, 0.54);
  border-left: 3px solid rgba(160, 93, 16, 0.42);
}

.cloud-login-shell {
  align-items: center;
  display: grid;
  min-height: calc(100vh - 122px);
  padding: clamp(18px, 4vw, 48px);
}

.cloud-login-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 245, 242, 0.92)),
    radial-gradient(circle at top right, rgba(241, 90, 26, 0.16), rgba(241, 90, 26, 0) 34%);
  border: 1px solid rgba(223, 221, 215, 0.96);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 560px;
  padding: clamp(22px, 4vw, 34px);
  width: 100%;
}

.cloud-login-copy h2 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.05;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.cloud-login-copy p:not(.eyebrow),
.cloud-login-note {
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 0;
}

.cloud-invite-banner {
  background: rgba(250, 238, 221, 0.78);
  border: 1px solid rgba(241, 90, 26, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 12px;
}

.cloud-invite-banner span,
.cloud-invite-banner small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.cloud-invite-banner strong {
  color: var(--black);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.cloud-login-advice {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 122, 77, 0.2);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.cloud-login-advice strong {
  color: var(--black);
  font-size: 0.95rem;
}

.cloud-login-advice p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.cloud-login-tabs {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(223, 221, 215, 0.96);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
}

.cloud-login-tabs.is-two-tab {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cloud-login-tabs button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 36px;
  padding: 8px;
}

.cloud-login-tabs button.is-active {
  background: var(--black);
  color: white;
}

.cloud-login-form {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.cloud-login-submit {
  justify-content: center;
  min-height: 48px;
}

.cloud-login-note {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(223, 221, 215, 0.96);
  border-radius: 8px;
  padding: 11px 12px;
}

.cloud-login-note.is-warning {
  background: var(--amber-2);
  border-color: #e8ca91;
  color: var(--amber);
}

.dashboard-leaders .panel-title {
  background: #f6f5f2;
  border: 1px solid rgba(223, 221, 215, 0.92);
  color: var(--black);
}

.dashboard-leaders .panel-title p {
  color: var(--muted);
}

.leader-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-left: 3px solid rgba(241, 90, 26, 0.42);
  color: var(--ink);
}

.leader-card span {
  color: #5f665e;
}

.leader-card small {
  color: #7b8178;
}

.player-chip.is-selected,
.starter-chip.is-selected {
  background: var(--accent-2);
  border-color: rgba(241, 90, 26, 0.34);
  box-shadow: inset 0 0 0 1px rgba(241, 90, 26, 0.18);
  color: var(--accent);
}

.report-header,
.setup-progress-panel,
.review-priority-panel,
.ai-summary-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 246, 243, 0.96) 56%, rgba(255, 241, 232, 0.76) 100%);
  border: 1px solid rgba(223, 221, 215, 0.96);
  border-left: 4px solid rgba(241, 90, 26, 0.48);
  box-shadow: 0 16px 38px rgba(18, 20, 17, 0.06);
  color: var(--ink);
}

.report-header p,
.setup-progress-panel p,
.review-priority-panel p,
.ai-summary-panel p {
  color: #5f665e;
}

.report-header .eyebrow,
.ai-summary-head span {
  color: var(--accent);
}

.setup-progress-panel .setup-progress-head h3,
.review-priority-panel .review-priority-head h3,
.ai-summary-panel .ai-summary-head strong {
  color: var(--black);
}

.report-link-pill,
.report-header .ghost-button.light {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(223, 221, 215, 0.96);
  color: var(--ink);
}

.report-score.W {
  background: var(--green-2);
  border-color: #9fd5b9;
  color: var(--green);
}

.report-score.D {
  background: var(--amber-2);
  border-color: #e8ca91;
  color: var(--amber);
}

.report-score.L {
  background: var(--red-2);
  border-color: #e6aaa4;
  color: var(--red);
}

.table-wrap {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(223, 221, 215, 0.92);
  border-radius: 8px;
}

.table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrap th {
  background: #f6f5f2;
  color: #4e544d;
}

.report-player-table-groups th,
.player-hub-table-groups th {
  background: #efede8;
  border-bottom: 1px solid rgba(18, 20, 17, 0.1);
  color: #454942;
}

.report-player-table-groups th:first-child,
.player-hub-table-groups th:first-child {
  background: #efede8;
}

.report-player-table-labels th:first-child,
.player-hub-table-labels th:first-child {
  background: #f6f5f2;
}

.home-player-hub-cta .home-player-hub-button {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(233, 85, 24, 0.28);
  color: white;
}

.home-player-hub-cta .home-player-hub-button:hover {
  background: #ff6a2a;
  border-color: #ff6a2a;
}

@media (max-width: 980px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-photo {
    min-height: 260px;
  }

  .grid.kpis,
  .grid.two-col,
  .grid.three-col,
  .development-focus-grid,
  .dashboard-recent-layout,
  .results-layout,
  .match-setup-layout,
  .review-entry-layout,
  .leader-card-grid,
  .leaderboard-explainer-grid,
  .player-hub-development-grid,
  .top-five-grid,
  .veo-stat-grid,
  .report-stat-grid,
  .ai-summary-grid,
  .goalkeeper-analysis-grid,
  .player-grid {
    grid-template-columns: 1fr 1fr;
  }

  .veo-stat-value strong {
    font-size: 2.7rem;
  }

  .setup-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-inputs,
  .event-grid,
  .validation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row.match-add-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cloud-project-card,
  .cloud-count-grid,
  .parent-access-flow,
  .parent-invite-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .save-toast {
    bottom: 92px;
  }

  .goalkeeper-analysis-grid {
    grid-template-columns: 1fr;
  }

  .goalkeeper-distribution-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .goalkeeper-distribution-row small {
    grid-column: 1 / -1;
  }

  .topbar {
    align-items: start;
    display: grid;
    position: static;
  }

  .brand-logo {
    height: 48px;
    width: 48px;
  }

  .tabs {
    bottom: 0;
    justify-content: start;
    position: sticky;
    top: auto;
  }

  .cloud-login-shell {
    align-items: start;
    min-height: auto;
    padding: 12px;
  }

  .cloud-login-card {
    gap: 14px;
    max-width: 100%;
    overflow: hidden;
    padding: 18px;
  }

  .cloud-login-copy h2 {
    font-size: clamp(1.45rem, 8vw, 2rem);
    line-height: 1.08;
  }

  .cloud-login-copy p:not(.eyebrow) {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .cloud-invite-banner {
    padding: 10px;
  }

  .cloud-login-tabs button {
    font-size: 0.78rem;
    min-height: 34px;
    padding: 7px 5px;
  }

  .parent-access-flow,
  .parent-invite-grid {
    grid-template-columns: 1fr;
  }

  .invite-link-field {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    min-height: auto;
  }

  .dashboard-hero-copy {
    padding: 22px;
  }

  .dashboard-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero-photo {
    min-height: 220px;
  }

  .resources-hero {
    align-items: start;
    display: grid;
    padding: 22px;
  }

  .resources-hero h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .install-floating-nudge {
    bottom: 92px;
    right: 12px;
  }

  .main-content {
    padding-bottom: 82px;
  }

  .section-head,
  .save-row {
    align-items: stretch;
    display: grid;
  }

  .grid.kpis,
  .grid.two-col,
  .grid.three-col,
  .development-focus-grid,
  .resource-card-grid,
  .resource-next-grid,
  .dashboard-recent-layout,
  .dashboard-goal-assist-grid,
  .results-layout,
  .match-setup-layout,
  .review-entry-layout,
  .leader-card-grid,
  .leaderboard-explainer-grid,
  .player-hub-development-grid,
  .top-five-grid,
  .veo-stat-grid,
  .report-stat-grid,
  .ai-summary-grid,
  .player-grid,
  .form-row,
  .form-row.compact,
  .form-row.match-add-row,
  .inline-league-editor,
  .stat-inputs,
  .event-grid,
  .training-award-grid,
  .award-reason-fields,
  .report-awards {
    grid-template-columns: 1fr;
  }

  .cloud-project-card,
  .cloud-count-grid,
  .parent-invite-grid,
  .invite-link-field {
    grid-template-columns: 1fr;
  }

  .cloud-login-tabs {
    grid-template-columns: 1fr;
  }

  .grid.kpis.dashboard-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trend-focus-controls,
  .veo-chart-head,
  .player-hub-trend-head {
    align-items: stretch;
    display: grid;
  }

  .veo-stat-card {
    min-height: 150px;
    padding: 16px;
  }

  .veo-stat-value strong {
    font-size: 2.45rem;
  }

  .veo-chart-panel {
    padding: 16px;
  }

  .veo-chart {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 360px;
  }

  .veo-bar-wrap {
    flex-basis: 70px;
    min-width: 66px;
  }

  .trend-modal-overlay {
    align-items: stretch;
    padding: 10px;
  }

  .trend-insight-modal {
    border-radius: 10px;
    max-height: calc(100vh - 20px);
    padding: 16px;
  }

  .trend-modal-match-head,
  .trend-modal-stats {
    grid-template-columns: 1fr;
  }

  .trend-modal-thumb {
    width: 132px;
  }

  .trend-modal-tabs {
    gap: 18px;
  }

  .trend-modal-footer {
    align-items: stretch;
    display: grid;
  }

  .result-list-head {
    display: none;
  }

  .result-row {
    grid-template-columns: minmax(0, 1fr) 54px 64px;
  }

  .result-row .result-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .setup-progress-head {
    align-items: stretch;
    display: grid;
  }

  .setup-step-grid,
  .review-live-stats-panel .validation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .validation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-controls {
    grid-template-columns: 1fr 1fr;
  }

  .report-controls .form-field {
    grid-column: 1 / -1;
    order: -1;
  }

  .report-header {
    align-items: stretch;
    display: grid;
  }

  .report-score {
    aspect-ratio: auto;
    min-height: 82px;
    width: 100%;
  }

  .match-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .match-badges {
    align-items: start;
    justify-items: start;
  }

  .queue-row,
  .queue-main {
    grid-template-columns: 1fr;
  }

	  .queue-actions,
	  .review-controls,
	  .quick-sub-strip,
	  .trend-controls {
	    align-items: stretch;
	    display: grid;
	  }

  .segmented-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .season-scope-setting {
    align-items: stretch;
    display: grid;
  }

  .season-controls {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .season-status-badge,
  .season-add-button {
    justify-content: center;
    width: 100%;
  }

  .season-archive-grid {
    grid-template-columns: 1fr;
  }

  .season-archive-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-row {
    grid-template-columns: 1fr 62px 52px;
  }

  .comparison-label {
    grid-column: 1 / -1;
  }

  .score {
    grid-column: 2;
  }

  .mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Final Player Hub overrides. Keep game tables readable without internal scrolling. */
.player-hub-context-copy {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.35;
  margin-top: 6px;
}

.ai-summary-paragraph {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 96ch;
}

.player-hub-season-table-wrap,
.player-hub-compact-wrap {
  max-height: none !important;
  overflow: visible !important;
}

.player-hub-season-table,
.player-hub-compact-table {
  min-width: 0 !important;
  table-layout: fixed;
  width: 100%;
}

.player-hub-season-table th,
.player-hub-season-table td,
.player-hub-compact-table th,
.player-hub-compact-table td {
  white-space: normal !important;
}

.player-hub-compact-table {
  font-size: 0.78rem;
}

.player-hub-compact-table th,
.player-hub-compact-table td {
  padding: 9px 8px;
  vertical-align: top;
}

.player-hub-compact-table th {
  position: static !important;
  top: auto !important;
}

.player-hub-compact-table th:nth-child(1),
.player-hub-compact-table td:nth-child(1) {
  width: 23%;
}

.player-hub-compact-table th:nth-child(2),
.player-hub-compact-table td:nth-child(2) {
  width: 12%;
}

.player-hub-compact-table th:nth-child(3),
.player-hub-compact-table td:nth-child(3) {
  width: 13%;
}

.player-hub-compact-table th:nth-child(4),
.player-hub-compact-table td:nth-child(4) {
  width: 15%;
}

.player-hub-compact-table th:nth-child(5),
.player-hub-compact-table td:nth-child(5) {
  width: 29%;
}

.player-hub-compact-table th:nth-child(6),
.player-hub-compact-table td:nth-child(6) {
  width: 8%;
}

.player-hub-compact-table th:first-child,
.player-hub-compact-table td:first-child,
.player-hub-table-labels th:first-child {
  box-shadow: none !important;
  left: auto !important;
  min-width: 0 !important;
  position: static !important;
  width: auto !important;
}

.player-hub-compact-table td:first-child,
.player-hub-compact-table tbody tr:nth-child(even) td:first-child,
.player-hub-compact-table tbody tr:hover td:first-child,
.player-hub-table-labels th:first-child {
  background: inherit;
}

.player-hub-game-cell {
  min-width: 0;
}

.player-hub-score-cell,
.player-hub-role-cell,
.player-hub-involvement-cell,
.player-hub-veo-cell {
  text-align: center;
}

.player-hub-score-cell strong,
.player-hub-role-cell span {
  display: block;
}

.player-hub-score-cell .result-badge {
  margin-top: 5px;
}

.player-hub-role-cell {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.35;
}

.player-hub-role-cell .player-hub-award-chip {
  margin-top: 4px;
}

.player-hub-stats-cell {
  color: var(--black);
  font-weight: 860;
  line-height: 1.45;
  text-align: left !important;
}

.player-hub-involvement-pill.is-low {
  background: rgba(18, 20, 17, 0.06);
  border-color: rgba(18, 20, 17, 0.1);
  color: #5f675f;
}

.player-hub-involvement-pill.is-medium {
  background: var(--amber-2);
  border-color: #e8ca91;
  color: var(--amber);
}

.player-hub-involvement-pill.is-high {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.player-hub-chart-line.is-team {
  stroke: rgba(18, 20, 17, 0.38);
  stroke-dasharray: 7 6;
  stroke-width: 1.7;
}

.player-hub-chart-legend {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 6px;
}

.player-hub-chart-legend span {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.player-hub-chart-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 4px;
  width: 22px;
}

.player-hub-chart-legend .is-player {
  background: var(--accent);
}

.player-hub-chart-legend .is-team {
  background: rgba(18, 20, 17, 0.38);
}

@media (max-width: 860px) {
  .player-hub-season-table,
  .player-hub-compact-table {
    font-size: 0.7rem;
  }

  .player-hub-season-table th,
  .player-hub-season-table td,
  .player-hub-compact-table th,
  .player-hub-compact-table td {
    padding: 7px 6px;
  }

  .player-hub-stats-cell {
    font-size: 0.68rem;
    line-height: 1.36;
  }

  .player-hub-involvement-pill,
  .player-hub-veo-cell a,
  .player-hub-award-chip {
    font-size: 0.62rem;
    padding: 5px 7px;
  }

  .player-hub-chart-wrap {
    overflow-x: hidden;
  }

  .player-hub-line-chart {
    min-width: 0;
  }
}
/* End-of-file Player Hub overrides. */
.player-hub-season-table tr {
  --season-rgb: 160, 93, 16;
  --season-strength: 0;
}

.player-hub-season-table tr.attack {
  --season-rgb: 241, 90, 26;
}

.player-hub-season-table tr.creation {
  --season-rgb: 160, 93, 16;
}

.player-hub-season-table tr.defence {
  --season-rgb: 31, 122, 77;
}

.player-hub-season-table tr.keeper {
  --season-rgb: 31, 93, 138;
}

.player-hub-season-table tr.award {
  --season-rgb: 241, 90, 26;
}

.player-hub-season-table td:nth-child(2) {
  background: rgba(var(--season-rgb), calc(0.08 + (var(--season-strength) * 0.28))) !important;
  color: var(--black);
}

.player-hub-season-table td:nth-child(2) strong {
  color: var(--black);
}

.player-hub-no-veo-chip,
.player-hub-card-veo {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  min-height: 28px;
  padding: 7px 9px;
  white-space: nowrap;
}

.player-hub-card-veo {
  background: var(--accent-2);
  border: 1px solid rgba(241, 90, 26, 0.28);
  color: var(--accent);
  text-decoration: none;
}

.player-hub-no-veo-chip {
  background: rgba(18, 20, 17, 0.06);
  border: 1px solid rgba(18, 20, 17, 0.1);
  color: var(--muted);
}

.player-hub-bar-chart {
  display: block;
  min-width: 760px;
  width: 100%;
}

.player-hub-chart-bar {
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-bar.is-player {
  fill: var(--accent);
}

.player-hub-chart-bar.is-team {
  fill: var(--black);
  opacity: 0.88;
}

.player-hub-chart-bar-value {
  fill: var(--black);
  font-size: 0.66rem;
  font-weight: 950;
  text-anchor: middle;
}

.player-hub-chart-opponent {
  fill: var(--muted);
  font-size: 0.55rem;
  font-weight: 820;
  text-anchor: middle;
}

.player-hub-chart-average-line {
  stroke: rgba(18, 20, 17, 0.42);
  stroke-dasharray: 5 5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-average-label {
  fill: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  text-anchor: end;
}

.player-hub-game-card {
  grid-template-columns: minmax(0, 1fr) !important;
  padding: 8px 10px !important;
}

.player-hub-game-card-main {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
}

.player-hub-game-card-metrics {
  justify-content: flex-start !important;
}

.player-hub-game-card .link-button {
  display: none !important;
}

/* True final Player Hub July polish: rank heat, cleaner charts and scroll-aware navigation. */
.topbar,
.tabs {
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

body.is-nav-collapsed:not(.is-cloud-login) .topbar {
  transform: translateY(-112%);
}

body.is-nav-collapsed:not(.is-cloud-login) .tabs {
  transform: translateY(-170%);
}

.player-hub-season-table td:nth-child(2) {
  background: transparent !important;
}

.player-hub-season-table td:nth-child(3) {
  background: rgba(var(--season-rgb), calc(0.08 + (var(--season-strength) * 0.28))) !important;
  color: var(--black);
  font-weight: 950;
}

.player-hub-chart-line.player-hub-chart-team-line {
  fill: none;
  stroke: var(--black);
  stroke-dasharray: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-team-point {
  fill: var(--black);
  stroke: white;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.player-hub-chart-legend .is-team {
  background: var(--black);
}

.player-hub-development .player-hub-card-veo {
  background: white !important;
  border: 1.5px solid var(--black) !important;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(18, 20, 17, 0.08);
  color: var(--black) !important;
  font-size: 0.72rem !important;
  min-height: 32px;
  padding: 8px 13px !important;
}

.player-hub-development .player-hub-card-veo:hover {
  background: var(--black) !important;
  color: white !important;
}

.player-hub-mom-cell .player-hub-award-chip {
  margin: 0 auto;
}

@media (max-width: 860px) {
  body.is-nav-collapsed:not(.is-cloud-login) .topbar {
    transform: translateY(-112%);
  }

  body.is-nav-collapsed:not(.is-cloud-login) .tabs {
    transform: translateY(calc(-1 * (var(--mobile-topbar-height, 64px) + 56px)));
  }

  .mobile-table-hint {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
  }

  .player-hub-development .player-hub-card-veo {
    font-size: 0.7rem !important;
    min-height: 34px;
    padding: 9px 14px !important;
  }
}

/* Absolute final Player Hub controls and parent-facing button polish. */
.player-hub-view-options {
  padding: 12px !important;
}

.player-hub-view-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.player-hub-season-table tr,
.player-hub-season-table tr.attack,
.player-hub-season-table tr.creation,
.player-hub-season-table tr.defence,
.player-hub-season-table tr.keeper,
.player-hub-season-table tr.award {
  --season-rgb: 31, 122, 77 !important;
}

.player-hub-season-table td:nth-child(3) {
  background: rgba(31, 122, 77, calc(0.06 + (var(--season-strength) * 0.26))) !important;
}

.player-hub-trend-actions {
  align-items: flex-end;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.player-hub-window-toggle,
.player-hub-trend-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.player-hub-window-toggle .quiet-button {
  min-height: 34px;
}

.player-hub-veo-cell a,
.player-hub-development .player-hub-card-veo,
.player-hub-mobile-game-head a {
  align-items: center;
  background: white !important;
  border: 1.5px solid var(--black) !important;
  border-radius: 7px !important;
  color: var(--black) !important;
  display: inline-flex;
  font-size: 0.72rem !important;
  font-weight: 950;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-height: 34px;
  padding: 9px 12px !important;
  text-decoration: none;
  white-space: nowrap;
}

.player-hub-veo-cell a:hover,
.player-hub-development .player-hub-card-veo:hover,
.player-hub-mobile-game-head a:hover {
  background: var(--black) !important;
  color: white !important;
}

@media (max-width: 860px) {
  .player-hub-view-options {
    padding: 10px !important;
  }

  .player-hub-view-controls {
    grid-template-columns: 1fr;
  }

  .player-hub-trend-actions {
    justify-items: stretch;
  }

  .player-hub-window-toggle,
  .player-hub-trend-tabs {
    justify-content: flex-start;
  }

  .player-hub-window-toggle .quiet-button {
    flex: 1 1 120px;
  }

  .player-hub-veo-cell a,
  .player-hub-development .player-hub-card-veo,
  .player-hub-mobile-game-head a {
    min-height: 36px;
  }
}
