:root {
  --trk-ink: #0f172a;
  --trk-muted: #5b6477;
  --trk-border: rgba(15, 23, 42, 0.1);
  --trk-border-strong: rgba(15, 23, 42, 0.14);
  --trk-soft: #f5f7fb;
  --trk-surface: #ffffff;
  --trk-surface-muted: #f8fafc;
  --trk-primary: #2563eb;
  --trk-primary-50: rgba(37, 99, 235, 0.1);
  --trk-success: #16a34a;
  --trk-warning: #f59e0b;
  --trk-danger: #dc2626;
  --trk-radius: 18px;
  --trk-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

body.tracking-page {
  background: var(--trk-soft);
  color: var(--trk-ink);
}

.trk-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, #0f172a, #2563eb);
  color: #fff;
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.28);
}

.trk-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.26), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(59, 130, 246, 0.18), transparent 32%);
  pointer-events: none;
}

.trk-hero--light {
  background: var(--trk-surface);
  color: var(--trk-ink);
  border: 1px solid var(--trk-border);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.trk-hero .trk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.75rem;
  position: relative;
  z-index: 1;
}

.trk-hero--light .trk-eyebrow {
  background: var(--trk-primary-50);
  color: var(--trk-primary);
}

.trk-hero .trk-title {
  position: relative;
  z-index: 1;
}

.trk-hero .trk-subtitle {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
}

.trk-hero--light .trk-subtitle {
  color: var(--trk-muted);
}

.trk-kpi-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  position: relative;
  z-index: 1;
}

.trk-kpi {
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.trk-hero--light .trk-kpi {
  background: var(--trk-surface-muted);
  border-color: var(--trk-border);
}

.trk-kpi-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}

.trk-hero--light .trk-kpi-label {
  color: var(--trk-muted);
}

.trk-kpi-value {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
}

.trk-kpi-hint {
  color: rgba(255, 255, 255, 0.72);
}

.trk-hero--light .trk-kpi-hint {
  color: var(--trk-muted);
}

.trk-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.trk-section-heading .trk-eyebrow {
  background: var(--trk-primary-50);
  color: var(--trk-primary);
}

.trk-card {
  border-radius: var(--trk-radius);
  border: 1px solid var(--trk-border);
  background: var(--trk-surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.trk-card-soft {
  background: var(--trk-surface-muted);
  border: 1px dashed var(--trk-border);
  box-shadow: none;
}

/* Corrige el parpadeo del cursor al pasar por las tarjetas de porteros */
.tracking-page .card {
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tracking-page .card:hover {
  transform: translateY(0) !important;
}

.tracking-page .card.hover-shadow {
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  transform: translateY(0) !important;
}

.tracking-page .card.hover-shadow:hover {
  transform: translateY(0) !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.16);
}

.trk-action-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.trk-action {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--trk-border);
  border-radius: 14px;
  background: var(--trk-surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.trk-action:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
}

.trk-action-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.trk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  background: var(--trk-surface-muted);
  border: 1px solid var(--trk-border);
  color: var(--trk-ink);
}

.trk-chip.neutral {
  color: var(--trk-muted);
}

.trk-chip.success {
  color: var(--trk-success);
  border-color: rgba(22, 163, 74, 0.3);
  background: rgba(22, 163, 74, 0.08);
}

.trk-chip.warning {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.12);
}

.trk-chip.danger {
  color: var(--trk-danger);
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.08);
}

.trk-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--trk-primary-50);
  color: var(--trk-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  overflow: hidden;
}

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

.trk-avatar.lg {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(59, 130, 246, 0.45));
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.38);
}

.trk-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: var(--trk-muted);
}

.trk-meta-list i {
  color: var(--trk-primary);
}

.trk-meta-list.text-white-50 {
  color: rgba(255, 255, 255, 0.72) !important;
}

.trk-meta-list.text-white-50 i {
  color: rgba(255, 255, 255, 0.9);
}

.trk-mini-stat {
  background: var(--trk-surface-muted);
  border: 1px solid var(--trk-border);
  border-radius: 14px;
  padding: 0.85rem;
  height: 100%;
}

.trk-mini-stat small {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--trk-muted);
}

.trk-mini-stat strong {
  display: block;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--trk-ink);
}

.trk-empty {
  border: 1px dashed var(--trk-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  background: var(--trk-surface);
  color: var(--trk-muted);
}

.chart-wrapper {
  min-height: 280px;
  height: 320px;
}

.trk-table thead th {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.trk-sticky {
  position: sticky;
  top: 6rem;
}

.trk-form-shell {
  border-radius: var(--trk-radius);
  border: 1px solid var(--trk-border);
  background: var(--trk-surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.trk-form-shell .form-label {
  font-weight: 600;
  color: var(--trk-ink);
}

.trk-form-helper {
  color: var(--trk-muted);
  font-size: 0.9rem;
}

.modern-field {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(243, 247, 253, 0.88));
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(13, 110, 253, 0.08);
  box-shadow: 0 0.65rem 1.2rem rgba(13, 110, 253, 0.04);
}

.modern-field .form-control,
.modern-field .form-select {
  border-radius: 14px;
  background: rgba(248, 249, 250, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.65rem 0.75rem;
}

.modern-field label {
  color: #0b4b5a;
  font-weight: 600;
}

.avatar-dropzone {
  border: 1px dashed var(--trk-border-strong);
  border-radius: 14px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--trk-surface-muted);
}

.rating-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 22px;
  background: #f8f9fa;
  border: 1px solid var(--trk-border);
}

.rating-tabs .nav-item {
  flex: 1 1 220px;
}

.rating-tabs .nav-link {
  width: 100%;
  border-radius: 18px;
  padding: 1.1rem 1.4rem;
  background: #ffffff;
  border: 1px solid var(--trk-border);
  color: #000000;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.03);
}

.rating-tabs .nav-link small {
  font-size: 0.8rem;
  color: #000000;
  font-weight: 500;
  opacity: 0.7;
}

.rating-tabs .nav-link.active {
  background: var(--trk-primary-50);
  color: #000000;
  border-color: var(--trk-primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.rating-tabs .nav-link.active small {
  color: #000000;
  opacity: 1;
  font-weight: 600;
}

.rating-tabs .nav-link:not(.active):hover {
  border-color: var(--trk-primary);
  background: var(--trk-surface-muted);
  color: var(--trk-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.rating-tabs .nav-link:not(.active):hover small {
  color: var(--trk-primary);
  opacity: 0.9;
}

/* Force text colors for visibility */
.rating-tabs .nav-link span,
.rating-tabs .nav-link i {
  color: #000000 !important;
}

.rating-tabs .nav-link.active span,
.rating-tabs .nav-link.active i {
  color: #000000 !important;
}

.rating-tabs .nav-link:hover span,
.rating-tabs .nav-link:hover i {
  color: var(--trk-primary) !important;
}

.rating-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: #f1f5f9;
  border-radius: 14px;
  border: 1px solid var(--trk-border);
  color: #334155;
}

.rating-quick-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rating-quick-set .btn {
  border-radius: 999px;
  font-weight: 700;
  padding-inline: 0.95rem;
}

.rating-toolbar-label {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--trk-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rating-content {
  background: #ffffff;
  border: 1px solid var(--trk-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.rating-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem 1.05rem;
  border: 1px solid var(--trk-border);
  box-shadow: 0 10px 20px rgba(148, 163, 184, 0.16);
  min-height: 150px;
}

.rating-card .rating-label {
  font-weight: 700;
  color: var(--trk-ink);
  font-size: 1rem;
}

.rating-control select {
  width: 100%;
  border-radius: 12px;
  font-weight: 600;
}

.rating-select {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
}

.rating-select:focus {
  border-color: rgba(37, 99, 235, 0.55) !important;
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.2) !important;
}

.rating-badge {
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  background: #e2e8f0;
  color: var(--trk-ink);
  border-radius: 999px;
  min-width: 2.5rem;
  text-align: center;
}

.rating-badge.level-low {
  background: rgba(220, 53, 69, 0.16);
  color: #b91c1c;
}

.rating-badge.level-medium {
  background: rgba(234, 179, 8, 0.2);
  color: #b45309;
}

.rating-badge.level-high {
  background: rgba(22, 163, 74, 0.2);
  color: #15803d;
}

.shot-map-wrapper {
  position: relative;
  padding-top: 68%;
  background: linear-gradient(135deg, #0f7a59, #0a5a40);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.shot-map {
  position: absolute;
  inset: 14px;
  border-radius: 16px;
  cursor: crosshair;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16) 2px, transparent 2px, transparent 32px),
    linear-gradient(160deg, rgba(17, 101, 74, 0.95), rgba(6, 57, 44, 0.93));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.shot-map::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
}

.shot-map::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16%;
  width: 160px;
  height: 160px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top: none;
  border-radius: 0 0 100% 100%;
  transform: translateX(-50%);
  pointer-events: none;
}

.shot-map-layer {
  position: absolute;
  pointer-events: none;
  border-radius: 14px 14px 0 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-bottom: none;
}

.shot-map-penalty {
  top: 8%;
  left: 12%;
  right: 12%;
  height: 46%;
}

.shot-map-six {
  top: 8%;
  left: 30%;
  right: 30%;
  height: 26%;
}

.shot-map-goal {
  position: absolute;
  pointer-events: none;
  top: 1.5%;
  left: 38%;
  right: 38%;
  height: 9%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: none;
  background: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7) 6px, transparent 6px, transparent 12px);
}

.shot-map-spot {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.shot-map-arc {
  position: absolute;
  pointer-events: none;
  top: 44%;
  left: 28%;
  right: 28%;
  height: 22%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: none;
  border-radius: 0 0 100% 100%;
}

.shot-map-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shot-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffce2c;
  border: 3px solid rgba(0, 0, 0, 0.65);
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
  animation: marker-pop 0.2s ease-out;
}

.shot-map-wrapper::after {
  content: 'Portería';
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.delete-checkbox input {
  display: none;
}

@keyframes marker-pop {
  from {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.2;
  }

  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.trk-danger-card {
  border-radius: 18px;
  border: 1px solid rgba(220, 38, 38, 0.28);
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.12);
}

.trk-hint {
  color: var(--trk-muted);
}

.profile-hero {
  border-radius: 1.75rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, #0f172a, #2563eb);
  color: #fff;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  overflow: hidden;
}

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

.profile-meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ================================================================
   TRACKING ANALYTICS PORTAL
   ================================================================ */

body.tracking-analytics-page,
body.tracking-analytics-page .main-content {
  background:
    linear-gradient(180deg, rgba(245, 248, 252, 0.98), rgba(232, 238, 247, 1)),
    #eef3f9;
  color: #0f172a;
}

.trk-analytics-shell {
  --trk-field: #eef3f9;
  --trk-panel: #ffffff;
  --trk-panel-soft: #f6f9fd;
  --trk-ink: #0f172a;
  --trk-muted: #5b6477;
  --trk-line: rgba(15, 23, 42, 0.1);
  --trk-line-strong: rgba(15, 23, 42, 0.16);
  --trk-blue: #2563eb;
  --trk-blue-dark: #1e40af;
  --trk-blue-soft: #dbeafe;
  --trk-accent: #38bdf8;
  --trk-clay: #f59e0b;
  --trk-sky: #4f8ea8;
  --trk-radius-sm: 8px;
  --trk-shadow-soft: 0 18px 42px rgba(15, 23, 42, 0.09);
  min-height: calc(100vh - 74px);
  padding: clamp(1rem, 2.5vw, 2.5rem);
  font-family: "Montserrat", "Poppins", sans-serif;
}

.trk-analytics-shell a {
  text-decoration: none;
}

.trk-analytics-hero {
  position: relative;
  display: grid;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--trk-radius-sm);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.88)),
    #0f172a;
  color: #f8fbff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.24);
}

.trk-analytics-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.14) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.42;
  pointer-events: none;
}

.trk-analytics-hero > * {
  position: relative;
  z-index: 1;
}

.trk-analytics-hero h1 {
  margin: 0.5rem 0;
  color: #f8fbff;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
}

.trk-analytics-hero p {
  max-width: 62rem;
  margin: 0;
  color: rgba(248, 251, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.65;
}

.trk-player-hero.report-hero {
  border-radius: var(--trk-radius-sm);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.88)),
    #0f172a;
}

.trk-player-hero .report-hero-title,
.trk-player-hero .trk-title {
  color: #f8fbff !important;
}

.trk-portal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--trk-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trk-portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.trk-portal-btn,
.trk-table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  border-radius: var(--trk-radius-sm);
  border: 1px solid transparent;
  padding: 0.58rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--trk-ink);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.trk-portal-btn:hover,
.trk-table-action:hover {
  transform: translateY(-1px);
}

.trk-portal-btn-primary {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--trk-blue-dark);
}

.trk-portal-btn-primary:hover {
  color: var(--trk-blue-dark);
  background: var(--trk-blue-soft);
}

.trk-portal-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f8fbff;
}

.trk-portal-btn-secondary:hover {
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.16);
}

.trk-season-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(248, 251, 255, 0.24);
  border-radius: var(--trk-radius-sm);
  background: rgba(248, 251, 255, 0.1);
  color: #f8fbff;
  font-size: 0.82rem;
  font-weight: 800;
}

.trk-summary-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.trk-summary-card {
  min-height: 118px;
  padding: 1rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: var(--trk-panel);
  box-shadow: var(--trk-shadow-soft);
}

.trk-summary-card span {
  display: block;
  color: var(--trk-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trk-summary-card strong {
  display: block;
  margin: 0.75rem 0 0.25rem;
  color: var(--trk-ink);
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.trk-summary-card small {
  color: var(--trk-muted);
  font-weight: 600;
}

.trk-dashboard-grid {
  display: grid;
  gap: 1rem;
}

.trk-dashboard-main,
.trk-dashboard-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.trk-command-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
}

.trk-command-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15rem 0.8rem;
  align-items: center;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.38);
  border-radius: var(--trk-radius-sm);
  background:
    linear-gradient(135deg, #0f172a, #172554);
  color: #f8fbff;
  text-align: left;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.trk-command-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.24);
  filter: brightness(1.03);
}

.trk-command-card span {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--trk-radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.1rem;
}

.trk-command-card strong {
  color: #ffffff;
  font-size: 0.98rem;
}

.trk-command-card small {
  color: rgba(248, 251, 255, 0.78);
  font-weight: 600;
}

.trk-command-card-toolbar {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15rem 0.8rem;
  align-items: center;
  width: auto;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  flex: 0 1 260px;
}

.trk-command-card-toolbar i {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--trk-radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1rem;
}

.trk-command-card-toolbar span {
  grid-row: auto;
  width: auto;
  height: auto;
  background: transparent;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.1;
}

.trk-command-card-toolbar:hover {
  color: #f8fbff;
}

.trk-command-card-toolbar:hover i,
.trk-command-card-toolbar:hover span {
  color: #ffffff;
}

.trk-data-panel {
  overflow: hidden;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: var(--trk-panel);
  box-shadow: var(--trk-shadow-soft);
}

.trk-panel-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--trk-line);
  background: linear-gradient(180deg, #ffffff, var(--trk-panel-soft));
}

.trk-panel-toolbar h2 {
  margin: 0.25rem 0 0;
  color: var(--trk-ink);
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.trk-panel-toolbar-tight {
  border-bottom: 0;
  padding-bottom: 0.5rem;
}

.trk-data-panel .trk-portal-btn-secondary {
  background: #ffffff;
  border-color: var(--trk-line);
  color: var(--trk-ink);
}

.trk-data-panel .trk-portal-btn-secondary:hover {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.24);
  color: var(--trk-blue-dark);
}

.trk-search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 42px;
  padding: 0 0.8rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  color: var(--trk-muted);
}

.trk-search-box input {
  width: min(21rem, 64vw);
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--trk-ink);
  font-weight: 600;
}

.trk-analytics-table {
  color: var(--trk-ink);
}

.trk-analytics-table thead th {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--trk-line);
  background: #f3f7fc;
  color: var(--trk-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trk-analytics-table tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: middle;
}

.trk-analytics-table tbody tr:last-child td {
  border-bottom: 0;
}

.trk-click-row {
  cursor: pointer;
  transition: background 0.16s ease;
}

.trk-click-row:hover {
  background: rgba(37, 99, 235, 0.045);
}

.trk-player-cell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 220px;
}

.trk-player-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--trk-radius-sm);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.12));
  color: var(--trk-blue-dark);
  font-weight: 900;
  text-transform: uppercase;
}

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

.trk-player-cell a,
.trk-table-link {
  color: var(--trk-ink);
  font-weight: 900;
}

.trk-player-cell a:hover,
.trk-table-link:hover {
  color: var(--trk-blue);
}

.trk-player-cell small,
.trk-table-sub {
  display: block;
  color: var(--trk-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.trk-table-main {
  display: block;
  color: var(--trk-ink);
}

.trk-number-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--trk-blue-dark);
  font-weight: 900;
}

.trk-icon-actions {
  display: inline-flex;
  gap: 0.4rem;
}

.trk-icon-actions a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  color: var(--trk-muted);
}

.trk-icon-actions a:hover {
  color: var(--trk-blue);
  border-color: rgba(37, 99, 235, 0.28);
}

.trk-table-action {
  min-height: 34px;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
  color: var(--trk-blue-dark);
}

.trk-load-cell {
  width: 112px;
  max-width: 100%;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
}

.trk-load-cell span {
  position: absolute;
  inset: 0 auto 0 0;
  max-width: 100%;
  background: rgba(37, 99, 235, 0.18);
}

.trk-load-cell strong {
  position: relative;
  z-index: 1;
  width: 100%;
  color: var(--trk-blue-dark);
  font-size: 0.78rem;
  text-align: center;
}

.trk-panel-footer {
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--trk-line);
  background: var(--trk-panel-soft);
}

.trk-panel-footer .page-link,
.tracking-analytics-page .pagination .page-link {
  border-color: var(--trk-line);
  color: var(--trk-blue-dark);
}

.trk-panel-footer .active .page-link,
.tracking-analytics-page .pagination .active .page-link {
  background: var(--trk-blue);
  border-color: var(--trk-blue);
  color: #ffffff;
}

.trk-clock-panel {
  padding: 1rem;
  text-align: center;
}

.trk-clock-panel strong {
  display: block;
  margin: 0.7rem 0 0.15rem;
  color: var(--trk-ink);
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
}

.trk-clock-panel small {
  color: var(--trk-muted);
  font-weight: 800;
  text-transform: capitalize;
}

.trk-clock-panel .trk-portal-eyebrow {
  justify-content: center;
  width: 100%;
}

.trk-chart-compact {
  height: 330px;
  padding: 0.5rem 1rem 1rem;
}

.trk-tool-list {
  display: grid;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
}

.trk-tool-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.38);
  border-radius: var(--trk-radius-sm);
  background:
    linear-gradient(135deg, #0f172a, #172554);
  color: #f8fbff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.trk-tool-list a:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
  filter: brightness(1.03);
  color: #f8fbff;
}

.trk-tool-list a i,
.trk-tool-list a span {
  color: inherit;
}

.trk-tool-list a span {
  text-align: center;
}

.trk-portal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 1.25rem;
  text-align: center;
  color: var(--trk-muted);
}

.trk-portal-empty i {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  color: var(--trk-blue);
  font-size: 1.35rem;
}

.trk-portal-empty h3 {
  color: var(--trk-ink);
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: 1.2rem;
}

.trk-portal-empty p {
  max-width: 30rem;
  margin-bottom: 1rem;
}

.trk-portal-empty-compact {
  min-height: 180px;
}

.trk-modal-content {
  border: 0;
  border-radius: var(--trk-radius-sm);
  overflow: hidden;
}

.trk-dashboard-tabs {
  padding: 0.35rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: rgba(255, 255, 255, 0.76);
}

.trk-dashboard-tabs .nav-link {
  border-radius: var(--trk-radius-sm) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--trk-muted) !important;
  box-shadow: none !important;
}

.trk-dashboard-tabs .nav-link.active {
  background: var(--trk-blue) !important;
  border-color: var(--trk-blue) !important;
  color: #ffffff !important;
}

.trk-player-shell .trk-card {
  border-radius: var(--trk-radius-sm);
  border-color: var(--trk-line);
  box-shadow: var(--trk-shadow-soft);
}

.slide-out {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.slide-in {
  animation: trkSlideIn 0.24s ease forwards;
}

@keyframes trkSlideIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 760px) {
  .trk-summary-grid,
  .trk-command-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trk-panel-toolbar {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1180px) {
  .trk-command-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trk-analytics-hero {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .trk-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  }
}

@media (max-width: 575.98px) {
  .trk-analytics-shell {
    padding: 0.85rem;
  }

  .trk-portal-actions,
  .trk-portal-btn {
    width: 100%;
  }

  .trk-search-box input {
    width: 100%;
  }

  .trk-analytics-table thead {
    display: none;
  }

  .trk-analytics-table tbody tr {
    display: block;
    padding: 0.8rem;
    border-bottom: 1px solid var(--trk-line);
  }

  .trk-analytics-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 0;
    text-align: left !important;
  }

  .trk-analytics-table tbody td:first-child {
    display: block;
  }

  .trk-icon-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 575.98px) {
  .trk-directory-shell {
    padding: 0.72rem;
  }

  .trk-directory-hero {
    margin: -0.72rem -0.72rem 0.75rem;
    padding: 1rem 0.82rem 0.95rem;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.2);
  }

  .trk-directory-hero h1 {
    margin: 0.55rem 0 0.35rem;
    font-size: 1.65rem;
    line-height: 1.08;
  }

  .trk-directory-hero p {
    max-width: 22rem;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .trk-directory-hero .trk-portal-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
  }

  .trk-directory-hero .trk-portal-btn {
    min-height: 42px;
    padding: 0.48rem 0.35rem;
    font-size: 0.7rem;
  }

  .trk-directory-hero .trk-portal-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .trk-directory-shell .trk-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.75rem;
  }

  .trk-directory-shell .trk-summary-card {
    min-height: 82px;
    padding: 0.68rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
  }

  .trk-directory-shell .trk-summary-card span {
    font-size: 0.57rem;
    letter-spacing: 0.06em;
  }

  .trk-directory-shell .trk-summary-card strong {
    margin: 0.48rem 0 0.12rem;
    font-size: 1.15rem;
  }

  .trk-directory-shell .trk-summary-card small {
    display: none;
  }

  .trk-directory-panel {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .trk-directory-panel .trk-panel-toolbar {
    position: sticky;
    top: 0;
    z-index: 9;
    margin: 0 -0.72rem 0.72rem;
    padding: 0.75rem 0.72rem;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(245, 247, 251, 0.96);
    backdrop-filter: blur(14px);
  }

  .trk-directory-panel .trk-panel-toolbar h2 {
    font-size: 1.05rem;
  }

  .trk-directory-panel .trk-search-box {
    width: 100%;
    min-height: 46px;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  .trk-directory-table-wrap {
    overflow: visible;
  }

  .trk-goalkeeper-table,
  .trk-goalkeeper-table tbody,
  .trk-goalkeeper-table tr,
  .trk-goalkeeper-table td {
    display: block;
    width: 100%;
  }

  .trk-goalkeeper-table {
    border-collapse: separate;
    border-spacing: 0 0.72rem;
  }

  .trk-goalkeeper-table tbody {
    display: grid;
    gap: 0.72rem;
  }

  .trk-goalkeeper-table tbody tr.trk-click-row {
    position: relative;
    overflow: hidden;
    padding: 0.82rem;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  }

  .trk-goalkeeper-table tbody tr.trk-click-row::after {
    content: "\f105";
    position: absolute;
    top: 1.05rem;
    right: 0.92rem;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-family: "Font Awesome 6 Free";
    font-size: 0.82rem;
    font-weight: 900;
  }

  .trk-goalkeeper-table tbody td {
    padding: 0;
    border: 0;
  }

  .trk-goalkeeper-table tbody td:not(.trk-goalkeeper-primary-cell) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    min-height: 38px;
    margin-top: 0.4rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: #f8fafc;
  }

  .trk-goalkeeper-table tbody td:not(.trk-goalkeeper-primary-cell)::before {
    content: attr(data-label);
    color: var(--trk-muted);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .trk-goalkeeper-table .trk-goalkeeper-primary-cell {
    margin-bottom: 0.72rem;
    padding-right: 2.35rem;
  }

  .trk-goalkeeper-table .trk-player-cell {
    min-width: 0;
    gap: 0.75rem;
  }

  .trk-goalkeeper-table .trk-player-avatar {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 0.98rem;
  }

  .trk-goalkeeper-table .trk-player-cell a {
    display: block;
    max-width: 12rem;
    overflow: hidden;
    color: #0f172a;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .trk-goalkeeper-table .trk-player-cell small {
    margin-top: 0.16rem;
    font-size: 0.76rem;
  }

  .trk-goalkeeper-table .trk-table-main,
  .trk-goalkeeper-table .trk-table-sub {
    text-align: right;
  }

  .trk-goalkeeper-table .trk-table-main {
    font-size: 0.84rem;
  }

  .trk-goalkeeper-table .trk-number-pill {
    min-width: 2.15rem;
    height: 1.75rem;
    font-size: 0.78rem;
  }

  .trk-goalkeeper-table .trk-goalkeeper-actions-cell {
    display: block;
    margin-top: 0.65rem;
    padding: 0;
    background: transparent;
  }

  .trk-goalkeeper-table .trk-goalkeeper-actions-cell::before {
    display: none;
  }

  .trk-goalkeeper-table .trk-icon-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
  }

  .trk-goalkeeper-table .trk-icon-actions a {
    width: 100%;
    height: 40px;
    border-color: rgba(15, 23, 42, 0.1);
    background: #0f172a;
    color: #ffffff;
  }

.trk-directory-panel .trk-panel-footer {
    position: sticky;
    bottom: 0;
    margin: 0.75rem -0.72rem -0.72rem;
    padding: 0.7rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(245, 247, 251, 0.96);
    backdrop-filter: blur(14px);
  }
}

/* Match report form */
.trk-match-form-shell {
  font-family: "Montserrat", "Poppins", sans-serif;
}

.trk-match-form-toolbar {
  margin-bottom: 1rem;
}

.trk-match-section {
  border-radius: var(--trk-radius-sm);
  border-color: var(--trk-line);
  background: #ffffff;
  box-shadow: var(--trk-shadow-soft);
}

.trk-match-section .trk-section-heading {
  align-items: center;
}

.trk-match-section .trk-action-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.trk-match-section h2 {
  color: var(--trk-ink);
}

.modern-field-floating .form-control,
.modern-field-floating .form-select {
  min-height: 58px;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  color: var(--trk-ink);
  font-weight: 700;
}

.modern-field-floating textarea.form-control {
  min-height: 132px;
  padding-top: 1.8rem;
}

.modern-field-floating label {
  color: var(--trk-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.trk-match-form-page .rating-tabs {
  border-radius: var(--trk-radius-sm);
}

.trk-match-form-page .rating-content {
  border-radius: var(--trk-radius-sm);
}

.trk-match-form-page .file-upload-wrapper,
.trk-match-form-page .video-formset-row,
.trk-match-form-page .local-video-formset-row {
  border-color: var(--trk-line) !important;
  border-radius: var(--trk-radius-sm) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.trk-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.trk-media-panel,
.trk-saved-media {
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: linear-gradient(180deg, #ffffff, #f7faff);
  padding: 1rem;
}

.trk-media-panel-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trk-media-panel-head > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
}

.trk-media-panel-head strong {
  display: block;
  color: var(--trk-ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.trk-media-panel-head small {
  display: block;
  color: var(--trk-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.trk-media-list {
  display: grid;
  gap: 0.75rem;
}

.trk-media-row {
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.045);
}

.trk-media-row .form-label,
.trk-media-panel .form-label {
  color: var(--trk-ink);
}

.trk-media-add,
.trk-media-remove,
.trk-delete-toggle span,
.trk-media-current button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  border-radius: var(--trk-radius-sm);
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.trk-media-add {
  width: 100%;
  margin-top: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #0f172a;
  color: #ffffff;
}

.trk-media-add:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.trk-media-remove {
  width: 100%;
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.07);
  color: #b91c1c;
}

.trk-delete-toggle {
  width: 100%;
  cursor: pointer;
}

.trk-delete-toggle input {
  margin-right: 0.4rem;
}

.trk-delete-toggle span {
  width: 100%;
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.07);
  color: #b91c1c;
}

.trk-media-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.75rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.06);
}

.trk-media-current strong,
.trk-media-current span {
  display: block;
}

.trk-media-current span {
  max-width: 22rem;
  overflow: hidden;
  color: var(--trk-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-media-current button {
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: #ffffff;
  color: #b91c1c;
  padding-inline: 0.75rem;
}

.trk-saved-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.trk-saved-media-card {
  display: grid;
  gap: 0.35rem;
  min-height: 120px;
  padding: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #ffffff;
  color: var(--trk-ink);
  text-align: left;
}

.trk-saved-media-card i {
  color: var(--trk-blue);
  font-size: 1.3rem;
}

.trk-saved-media-card strong {
  font-weight: 900;
}

.trk-saved-media-card span {
  color: var(--trk-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.trk-match-submit-bar {
  align-items: center;
}

/* Match report */
.trk-match-report-shell {
  max-width: 1680px;
  margin: 0 auto;
}

.trk-match-report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
  padding: clamp(1rem, 2vw, 1.45rem);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--trk-radius-sm);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.9)),
    #0f172a;
  color: #ffffff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.2);
}

.trk-match-identity h1 {
  margin: 0.45rem 0 0.6rem;
  color: #ffffff;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: clamp(1.65rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.trk-match-scoreline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
}

.trk-match-scoreline span {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--trk-radius-sm);
  background: rgba(255, 255, 255, 0.08);
}

.trk-match-scoreline strong {
  color: var(--trk-accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trk-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.trk-match-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
}

.trk-match-result-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--trk-radius-sm);
  background: rgba(255, 255, 255, 0.1);
}

.trk-match-result-card span,
.trk-match-result-card small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trk-match-result-card strong {
  color: #ffffff;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: 2.5rem;
  line-height: 1.1;
}

.trk-match-report-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trk-match-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 1rem;
}

.trk-match-report-main,
.trk-match-report-side {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.trk-match-report-side {
  position: sticky;
  top: 1rem;
}

.trk-report-tabs {
  gap: 0.5rem;
  padding: 0.9rem 1rem 0;
}

.trk-report-tabs .nav-link {
  min-height: 40px;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  color: var(--trk-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.trk-report-tabs .nav-link.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.trk-report-attribute-content {
  padding: 1rem;
}

.trk-report-attribute-group + .trk-report-attribute-group {
  margin-top: 1rem;
}

.trk-report-attribute-group h3 {
  margin: 0 0 0.65rem;
  color: var(--trk-muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trk-report-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.trk-report-metric-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.trk-report-metric-card div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.trk-report-metric-card span {
  color: var(--trk-ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.trk-report-metric-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 1rem;
}

.trk-report-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}

.trk-report-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.trk-report-progress .is-excellent {
  background: #16a34a;
}

.trk-report-progress .is-good {
  background: #2563eb;
}

.trk-report-progress .is-warning {
  background: #f59e0b;
}

.trk-report-progress .is-danger {
  background: #dc2626;
}

.trk-match-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.trk-report-chart-frame {
  height: 320px;
  padding: 1rem;
}

.pitch-container.trk-report-pitch {
  position: relative;
  min-height: 320px;
  margin: 1rem;
  overflow: hidden;
  border-radius: var(--trk-radius-sm);
  background-color: #0f7a59;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.36);
}

.pitch-event-dot {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.28);
  transition: transform 0.16s ease;
}

.pitch-event-dot:hover {
  transform: translate(-50%, -50%) scale(1.45);
}

.event-purple,
.event-blue,
.event-green,
.event-red,
.event-orange,
.event-save,
.event-goal,
.event-pass,
.event-other {
  border-radius: 999px;
}

.event-purple {
  background: #8b5cf6;
}

.event-blue,
.event-save {
  background: #2563eb;
}

.event-green {
  background: #16a34a;
}

.event-red,
.event-goal {
  background: #dc2626;
}

.event-orange,
.event-pass {
  background: #f59e0b;
}

.event-other {
  background: #64748b;
}

.trk-report-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0 1rem 1rem;
}

.trk-report-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--trk-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.trk-report-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
}

.trk-goal-mouth {
  display: grid;
  grid-template-rows: repeat(2, minmax(56px, 1fr));
  width: min(100%, 520px);
  margin: 1rem;
  overflow: hidden;
  border: 4px solid #0f172a;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #f8fafc;
  aspect-ratio: 24 / 8;
}

.trk-goal-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trk-goal-row + .trk-goal-row {
  border-top: 1px solid rgba(15, 23, 42, 0.14);
}

.goal-zone,
.save-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 900;
}

.trk-panel-note {
  margin: 0 1rem 1rem;
  color: var(--trk-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.trk-quality-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.trk-quality-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
}

.trk-quality-blue {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.trk-quality-green {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.trk-quality-red {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.trk-quality-orange {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.trk-report-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.trk-report-notes-grid article {
  min-height: 150px;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.trk-report-notes-grid span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--trk-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trk-report-notes-grid p {
  margin: 0;
  color: var(--trk-ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.trk-report-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  padding: 1rem;
}

.trk-report-video-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #ffffff;
  color: var(--trk-ink);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.trk-report-video-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.trk-report-video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.trk-report-video-link {
  color: #ffffff;
  font-size: 2.5rem;
}

.trk-report-video-thumb > span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
}

.trk-report-video-card strong {
  display: block;
  padding: 0.85rem;
  font-size: 0.9rem;
  font-weight: 900;
}

.trk-video-modal {
  overflow: hidden;
  border: 0;
  border-radius: var(--trk-radius-sm);
  background: #020617;
  color: #ffffff;
}

.trk-video-modal .modal-header {
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 575.98px) {
  .trk-match-form-shell {
    padding: 0.72rem;
    padding-bottom: 6rem;
  }

  .trk-match-form-shell .container-fluid {
    padding: 0;
  }

  .trk-match-form-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -0.72rem -0.72rem 0.75rem;
    padding: 0.72rem;
    border-radius: 0 0 16px 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
  }

  .trk-match-form-toolbar .trk-compact-context {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.42rem;
  }

  .trk-match-form-toolbar .trk-compact-context strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
  }

  .trk-match-form-toolbar .trk-portal-actions {
    width: 100%;
  }

  .trk-match-form-toolbar .trk-season-pill,
  .trk-match-form-toolbar .trk-portal-btn {
    width: 100%;
    min-height: 40px;
  }

  .trk-match-section {
    margin-bottom: 0.78rem !important;
    padding: 0.9rem !important;
    border-radius: 16px;
  }

  .trk-match-section .trk-section-heading {
    align-items: flex-start !important;
    gap: 0.8rem;
    margin-bottom: 0.9rem !important;
  }

  .trk-match-section .trk-section-heading > .d-flex {
    align-items: flex-start !important;
    width: 100%;
  }

  .trk-match-section .trk-action-icon {
    width: 40px;
    height: 40px;
  }

  .trk-match-section h2 {
    font-size: 1rem !important;
    line-height: 1.2;
  }

  .trk-match-section .trk-section-heading p {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .trk-match-section .btn[id^="add-"],
  .trk-match-section #add-field-action-row,
  .trk-match-section #add-goal-action-row,
  .trk-match-section #add-video-clip,
  .trk-match-section #add-local-video {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    border-radius: var(--trk-radius-sm);
  }

  .modern-field-floating .form-control,
  .modern-field-floating .form-select,
  .trk-match-form-page .form-control,
  .trk-match-form-page .form-select {
    min-height: 48px;
    border-radius: 12px;
    font-size: 16px;
  }

  .modern-field-floating textarea.form-control,
  .trk-match-form-page textarea.form-control {
    min-height: 118px;
  }

  .trk-match-form-page .alert {
    border-radius: 14px;
    font-size: 0.82rem;
  }

  .trk-match-form-page .rating-tabs {
    position: sticky;
    top: 85px;
    z-index: 15;
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin: 0 -0.9rem 0.8rem !important;
    padding: 0.58rem 0.72rem;
    overflow-x: auto;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(248, 250, 252, 0.97);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
  }

  .trk-match-form-page .rating-tabs::-webkit-scrollbar {
    display: none;
  }

  .trk-match-form-page .rating-tabs .nav-item {
    flex: 0 0 156px;
  }

  .trk-match-form-page .rating-tabs .nav-link {
    min-height: 74px;
    padding: 0.72rem;
    border-radius: 12px;
  }

  .trk-match-form-page .rating-tabs .nav-link span {
    font-size: 0.82rem;
  }

  .trk-match-form-page .rating-tabs .nav-link small {
    display: none !important;
  }

  .trk-match-form-page .rating-content {
    padding: 0 !important;
    border: 0;
    box-shadow: none;
  }

  .trk-match-form-page .rating-toolbar {
    align-items: stretch !important;
    margin-bottom: 0.75rem !important;
    padding: 0.75rem;
    border-radius: 14px;
  }

  .trk-match-form-page .rating-toolbar-label {
    font-size: 0.72rem;
  }

  .trk-match-form-page .rating-quick-set {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.42rem !important;
    width: 100%;
  }

  .trk-match-form-page .rating-quick-set .btn {
    min-height: 40px;
    padding-inline: 0.2rem;
  }

  .trk-match-form-page .rating-card {
    min-height: auto;
    padding: 0.78rem !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  }

  .trk-match-form-page .rating-label {
    font-size: 0.86rem !important;
  }

  .trk-match-form-page #field-actions-table,
  .trk-match-form-page #goal-actions-table,
  .trk-match-form-page #field-actions-table tbody,
  .trk-match-form-page #goal-actions-table tbody,
  .trk-match-form-page #field-actions-table tr,
  .trk-match-form-page #goal-actions-table tr,
  .trk-match-form-page #field-actions-table td,
  .trk-match-form-page #goal-actions-table td {
    display: block;
    width: 100%;
  }

  .trk-match-form-page #field-actions-table thead,
  .trk-match-form-page #goal-actions-table thead {
    display: none;
  }

  .trk-match-form-page #field-actions-table tbody,
  .trk-match-form-page #goal-actions-table tbody {
    display: grid;
    gap: 0.65rem;
  }

  .trk-match-form-page .action-row {
    padding: 0.72rem;
    border: 1px solid var(--trk-line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  }

  .trk-match-form-page .action-row td {
    padding: 0.35rem 0 !important;
    border: 0;
  }

  .trk-match-form-page .field-action-row td:nth-child(1)::before,
  .trk-match-form-page .goal-action-row td:nth-child(1)::before {
    content: "Minuto";
  }

  .trk-match-form-page .field-action-row td:nth-child(2)::before,
  .trk-match-form-page .goal-action-row td:nth-child(2)::before {
    content: "Acción";
  }

  .trk-match-form-page .field-action-row td:nth-child(3)::before,
  .trk-match-form-page .goal-action-row td:nth-child(3)::before {
    content: "Notas";
  }

  .trk-match-form-page .field-action-row td:nth-child(4)::before {
    content: "Valoración";
  }

  .trk-match-form-page .field-action-row td:nth-child(5)::before {
    content: "Posición";
  }

  .trk-match-form-page .goal-action-row td:nth-child(4)::before {
    content: "Zona";
  }

  .trk-match-form-page .field-action-row td:nth-child(-n+5)::before,
  .trk-match-form-page .goal-action-row td:nth-child(-n+4)::before {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--trk-muted);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .trk-match-form-page .action-row td:last-child {
    text-align: right !important;
  }

  .trk-match-form-page .action-row .remove-action-row {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.08);
    opacity: 1 !important;
  }

  .trk-match-form-page .shot-map-wrapper {
    padding-top: 78%;
  }

  .trk-match-form-page .goal-mouth-container {
    min-height: 118px;
  }

  .trk-match-form-page .set-zone-btn {
    min-height: 42px;
    border-radius: 12px;
  }

  .trk-match-form-page .file-upload-wrapper {
    padding: 1.1rem !important;
  }

  .trk-media-grid,
  .trk-match-analysis-grid,
  .trk-match-report-layout,
  .trk-report-notes-grid {
    grid-template-columns: 1fr;
  }

  .trk-media-panel,
  .trk-saved-media {
    padding: 0.78rem;
    border-radius: 14px;
  }

  .trk-media-panel-head {
    align-items: flex-start;
  }

  .trk-media-panel-head > span {
    width: 38px;
    height: 38px;
  }

  .trk-media-row {
    padding: 0.75rem;
  }

  .trk-media-current {
    align-items: stretch;
    flex-direction: column;
  }

  .trk-media-current button,
  .trk-delete-toggle span,
  .trk-media-remove {
    width: 100%;
  }

  .trk-match-form-page .video-formset-row .card-body,
  .trk-match-form-page .local-video-formset-row .card-body {
    padding: 0.85rem;
  }

  .trk-match-form-page .remove-video-clip,
  .trk-match-form-page .remove-local-video {
    width: 100%;
    min-height: 40px;
    margin-top: 0.35rem;
  }

  .trk-match-submit-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid !important;
    grid-template-columns: 0.9fr 1.25fr;
    gap: 0.55rem !important;
    padding: 0.72rem !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(14px);
  }

  .trk-match-submit-bar .btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 991.98px) {
  .trk-media-grid,
  .trk-match-report-layout {
    grid-template-columns: 1fr;
  }

  .trk-match-report-side {
    position: static;
  }

  .trk-match-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trk-match-report-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .trk-match-report-shell {
    padding: 0.72rem;
  }

  .trk-match-report-hero {
    padding: 1rem;
    border-radius: 16px;
  }

  .trk-match-scoreline {
    align-items: stretch;
    flex-direction: column;
  }

  .trk-match-scoreline strong {
    align-self: flex-start;
  }

  .trk-match-report-summary,
  .trk-match-analysis-grid,
  .trk-report-notes-grid {
    grid-template-columns: 1fr;
  }

  .trk-report-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .trk-report-tabs::-webkit-scrollbar {
    display: none;
  }

  .trk-report-tabs .nav-item {
    flex: 0 0 auto;
  }

  .trk-report-metric-grid,
  .trk-report-video-grid {
    grid-template-columns: 1fr;
  }

  .pitch-container.trk-report-pitch {
    min-height: 260px;
    margin: 0.78rem;
  }

  .trk-report-chart-frame {
    height: 280px;
    padding: 0.75rem;
  }

  .trk-goal-mouth {
    margin: 0.78rem;
  }
}

/* Training session form */
.trk-training-form-shell {
  font-family: "Montserrat", "Poppins", sans-serif;
}

.trk-training-form-toolbar {
  margin-bottom: 1rem;
}

.trk-training-section,
.trk-training-side-panel {
  overflow: hidden;
  border-radius: var(--trk-radius-sm);
  border-color: var(--trk-line);
  background: #ffffff;
  box-shadow: var(--trk-shadow-soft);
}

.trk-training-section .trk-panel-toolbar,
.trk-training-side-panel .trk-panel-toolbar {
  background: #ffffff;
}

.trk-training-section .trk-panel-toolbar h2,
.trk-training-side-panel .trk-panel-toolbar h2 {
  font-size: 1.12rem;
}

.trk-training-section-body {
  padding: 1rem;
}

.trk-training-form-page .form-label {
  color: var(--trk-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trk-training-form-page .form-control,
.trk-training-form-page .form-select {
  min-height: 46px;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  color: var(--trk-ink);
  font-weight: 700;
}

.trk-training-form-page textarea.form-control {
  min-height: 148px;
}

.trk-training-duration .input-group-text {
  border-color: var(--trk-line);
  border-radius: 0 var(--trk-radius-sm) var(--trk-radius-sm) 0;
  background: var(--trk-panel-soft);
  color: var(--trk-muted);
  font-weight: 900;
}

.trk-load-capture-section textarea.form-control {
  min-height: 112px;
}

.trk-load-capture-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: var(--trk-radius-sm);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.07), #ffffff);
}

.trk-load-capture-intro > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--trk-radius-sm);
  background: #0f172a;
  color: #ffffff;
}

.trk-load-capture-intro strong,
.trk-load-capture-intro small {
  display: block;
}

.trk-load-capture-intro strong {
  color: var(--trk-ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.trk-load-capture-intro small {
  margin-top: 0.12rem;
  color: var(--trk-muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.trk-training-workout-toolbar {
  align-items: flex-start;
}

.trk-workout-selected-count {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: var(--trk-panel-soft);
  color: var(--trk-ink);
}

.trk-workout-selected-count strong {
  font-size: 1rem;
  line-height: 1;
}

.trk-workout-selected-count small {
  color: var(--trk-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trk-workout-picker-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.trk-workout-search-box {
  flex: 1 1 auto;
}

.trk-workout-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.7rem;
  max-height: 460px;
  overflow: auto;
  padding: 0.2rem;
}

.trk-workout-option {
  min-width: 0;
}

.trk-workout-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trk-workout-option label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.72rem;
  align-items: center;
  min-height: 74px;
  padding: 0.72rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  color: var(--trk-ink);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.trk-workout-option label:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.24);
  background: var(--trk-panel-soft);
}

.trk-workout-option input[type="checkbox"]:focus-visible + label {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

.trk-workout-option input[type="checkbox"]:checked + label {
  border-color: rgba(37, 99, 235, 0.42);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), #ffffff);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.trk-workout-option-icon,
.trk-workout-option-check {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--trk-radius-sm);
}

.trk-workout-option-icon {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.trk-workout-option-check {
  border: 1px solid var(--trk-line);
  background: #ffffff;
  color: transparent;
}

.trk-workout-option input[type="checkbox"]:checked + label .trk-workout-option-check {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.trk-workout-option-body {
  min-width: 0;
}

.trk-workout-option-body strong,
.trk-workout-option-body small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trk-workout-option-body strong {
  color: var(--trk-ink);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.25;
}

.trk-workout-option-body small {
  margin-top: 0.14rem;
  color: var(--trk-muted);
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.trk-workout-no-results {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0.8rem;
  border: 1px dashed var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: var(--trk-panel-soft);
  color: var(--trk-muted);
  font-weight: 800;
}

.trk-training-side-panel {
  position: sticky;
  top: 1rem;
}

.trk-training-objective-list {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
}

.trk-training-side-copy {
  margin: 0;
  color: var(--trk-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.trk-training-objective-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.78rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045);
}

.trk-training-side-footer {
  padding: 0.9rem;
  border-top: 1px solid var(--trk-line);
  background: var(--trk-panel-soft);
}

.trk-training-save-btn {
  width: 100%;
}

.trk-training-submit-bar {
  display: none;
}

@media (max-width: 575.98px) {
  .trk-training-form-shell {
    padding: 0.72rem;
    padding-bottom: 6rem;
  }

  .trk-training-form-shell .container-fluid {
    padding: 0;
  }

  .trk-training-form-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -0.72rem -0.72rem 0.75rem;
    padding: 0.72rem;
    border-radius: 0 0 16px 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
  }

  .trk-training-form-toolbar .trk-compact-context {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.42rem;
  }

  .trk-training-form-toolbar .trk-portal-actions,
  .trk-training-form-toolbar .trk-portal-btn {
    width: 100%;
  }

  .trk-training-section,
  .trk-training-side-panel {
    margin-bottom: 0.78rem !important;
    border-radius: 16px;
  }

  .trk-training-section .trk-panel-toolbar,
  .trk-training-side-panel .trk-panel-toolbar {
    padding: 0.85rem;
  }

  .trk-training-section .trk-panel-toolbar h2,
  .trk-training-side-panel .trk-panel-toolbar h2 {
    font-size: 1rem;
  }

  .trk-training-section-body {
    padding: 0.85rem;
  }

  .trk-training-form-page .form-control,
  .trk-training-form-page .form-select {
    min-height: 48px;
    font-size: 16px;
  }

  .trk-training-form-page textarea.form-control {
    min-height: 124px;
  }

  .trk-load-capture-section textarea.form-control {
    min-height: 104px;
  }

  .trk-load-capture-intro {
    align-items: flex-start;
    margin-bottom: 0.85rem;
    padding: 0.75rem;
    border-radius: 14px;
  }

  .trk-load-capture-intro > span {
    width: 38px;
    height: 38px;
  }

  .trk-training-workout-toolbar {
    flex-direction: row;
    align-items: center;
  }

  .trk-workout-selected-count {
    min-width: 58px;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.45rem;
  }

  .trk-workout-selected-count small {
    font-size: 0.52rem;
  }

  .trk-workout-picker-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
  }

  .trk-workout-picker-header .trk-portal-btn {
    width: auto;
    min-width: 46px;
    padding-inline: 0.72rem;
  }

  .trk-workout-picker-header .trk-portal-btn span {
    display: none;
  }

  .trk-workout-picker {
    grid-template-columns: minmax(0, 1fr);
    max-height: 360px;
    gap: 0.55rem;
    padding: 0.1rem;
  }

  .trk-workout-option label {
    min-height: 68px;
    padding: 0.68rem;
  }

  .trk-workout-option-body strong {
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .trk-training-side-panel {
    position: static;
  }

  .trk-training-side-footer {
    display: none;
  }

  .trk-training-submit-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 0.9fr 1.25fr;
    gap: 0.55rem;
    padding: 0.72rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(14px);
  }

  .trk-training-submit-bar .trk-portal-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
  }
}

.profile-card {
  border-radius: 1.5rem;
}

.profile-card .list-group-item {
  border: none;
  padding-left: 0;
  padding-right: 0;
  font-size: 0.95rem;
}

.rating-progress {
  height: 0.4rem;
  border-radius: 999px;
}

.training-drill-badge {
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.chart-tile {
  border-radius: 1.25rem;
  border: 1px solid var(--trk-border);
  padding: 1.25rem;
  background: var(--trk-surface);
}

.chart-holder {
  height: 300px;
}

.empty-state {
  border-radius: 1.25rem;
  border: 1px dashed var(--trk-border);
  padding: 2rem;
  text-align: center;
  color: #475467;
  background: var(--trk-surface);
}

.usage-list li+li {
  margin-top: 0.35rem;
}

@media (max-width: 575px) {
  .trk-hero {
    text-align: center;
  }

  .trk-section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Helper Classes for new layouts */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hover-primary {
  transition: color 0.2s ease;
}

.hover-primary:hover {
  color: var(--trk-primary) !important;
}

.ls-1 {
  letter-spacing: 1px;
}

/* Fix stretched link z-index issues in tables */
.table {
  --bs-table-bg: transparent;
  /* Cleaner tables */
}

.stretched-link-custom::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

/* Dark mode sidebar/cards specifics */
.bg-dark {
  background-color: #0f172a !important;
  /* Slate 900 */
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
  /* Helper to hide before animation starts */
}

/* Delay utilities */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

/* Compact dashboard toolbar */
.trk-compact-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.7rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  box-shadow: var(--trk-shadow-soft);
}

.trk-compact-context {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.trk-compact-context strong {
  color: var(--trk-ink);
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
}

.trk-compact-toolbar .trk-portal-eyebrow {
  padding: 0.48rem 0.65rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--trk-radius-sm);
  background: rgba(37, 99, 235, 0.07);
  color: var(--trk-blue);
}

.trk-compact-toolbar .trk-season-pill {
  background: #f8fafc;
  border-color: var(--trk-line);
  color: var(--trk-ink);
}

.trk-compact-toolbar .trk-portal-btn-primary {
  background: var(--trk-blue);
  border-color: var(--trk-blue);
  color: #ffffff;
}

.trk-compact-toolbar .trk-portal-btn-primary:hover {
  background: var(--trk-blue-dark);
  color: #ffffff;
}

.trk-compact-toolbar .trk-portal-btn-secondary {
  background: #ffffff;
  border-color: var(--trk-line);
  color: var(--trk-ink);
}

.trk-compact-toolbar .trk-portal-btn-secondary:hover {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.24);
  color: var(--trk-blue-dark);
}

@media (max-width: 760px) {
  .trk-compact-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .trk-compact-context {
    justify-content: space-between;
  }
}

/* Dashboard reorder: workouts in main area, goalkeepers in right panel */
.trk-workout-main-panel {
  min-height: 430px;
}

.trk-chart-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.85rem;
  height: clamp(360px, 42vw, 520px);
  padding: 0.75rem 1rem 1.1rem;
}

.trk-chart-canvas-frame {
  position: relative;
  min-height: 0;
}

.trk-chart-canvas-frame canvas {
  width: 100% !important;
  height: 100% !important;
}

.trk-chart-pagination {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  min-height: 36px;
}

.trk-chart-pagination[hidden] {
  display: none;
}

.trk-chart-pagination span {
  color: var(--trk-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.trk-chart-page-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  color: var(--trk-blue-dark);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.trk-chart-page-btn:hover:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.07);
  color: var(--trk-blue);
}

.trk-chart-page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.trk-chart-balanced {
  height: clamp(300px, 32vw, 390px);
}

.trk-segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
  padding: 0.25rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
}

.trk-segmented-control button {
  min-height: 34px;
  border: 0;
  border-radius: calc(var(--trk-radius-sm) - 2px);
  padding: 0.42rem 0.75rem;
  background: transparent;
  color: var(--trk-muted);
  font-size: 0.78rem;
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease;
}

.trk-segmented-control button.active,
.trk-segmented-control button:hover {
  background: #0f172a;
  color: #ffffff;
}

.trk-panel-select {
  width: min(100%, 260px);
  min-height: 38px;
  border-color: var(--trk-line);
  border-radius: var(--trk-radius-sm);
  color: var(--trk-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.trk-alert-list,
.trk-objective-list {
  display: grid;
  gap: 0.58rem;
  padding: 0.85rem;
}

.trk-side-panel {
  border-color: rgba(15, 23, 42, 0.12);
}

.trk-side-panel .trk-panel-toolbar {
  align-items: flex-start;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.trk-side-panel .trk-panel-toolbar h2 {
  font-size: 1rem;
  line-height: 1.15;
}

.trk-side-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.trk-side-count {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--trk-radius-sm);
  background: var(--trk-panel-soft);
  color: var(--trk-ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.trk-alert-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.68rem;
  align-items: center;
  min-height: 66px;
  padding: 0.72rem 2.45rem 0.72rem 0.72rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  color: var(--trk-ink);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.trk-alert-card:hover {
  transform: translateY(-1px);
  color: var(--trk-ink);
  border-color: rgba(37, 99, 235, 0.24);
  background: var(--trk-panel-soft);
}

.trk-alert-dismiss {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--trk-radius-sm);
  background: transparent;
  color: var(--trk-muted);
  font-size: 0.76rem;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.trk-alert-dismiss:hover,
.trk-alert-dismiss:focus-visible {
  border-color: rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--trk-ink);
}

.trk-alert-dismiss:disabled {
  cursor: wait;
  opacity: 0.45;
}

.trk-alert-card > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--trk-radius-sm);
  background: rgba(37, 99, 235, 0.08);
  color: var(--trk-blue);
}

.trk-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.trk-alert-head strong {
  display: block;
  min-width: 0;
  color: var(--trk-ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.trk-alert-head em {
  flex: 0 0 auto;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--trk-muted);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trk-alert-card small {
  display: block;
  margin-top: 0.1rem;
  color: var(--trk-muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}

.trk-alert-detail {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.35rem;
  color: var(--trk-blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.trk-alert-detail:hover {
  color: var(--trk-blue);
}

.trk-alert-warning > span {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.trk-alert-warning .trk-alert-head em {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

.trk-alert-danger > span {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.trk-alert-danger .trk-alert-head em {
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
}

.trk-alert-neutral > span {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.trk-objective-card {
  display: grid;
  gap: 0.6rem;
  min-height: 104px;
  padding: 0.78rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  color: var(--trk-ink);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.trk-objective-card:hover {
  transform: translateY(-1px);
  color: var(--trk-ink);
  border-color: rgba(37, 99, 235, 0.26);
  background: var(--trk-panel-soft);
}

.trk-objective-head,
.trk-objective-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.trk-objective-head strong {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--trk-ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.trk-objective-head span {
  min-width: 44px;
  padding: 0.24rem 0.44rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--trk-blue-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.trk-objective-card small,
.trk-objective-meta {
  color: var(--trk-muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.trk-objective-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  white-space: nowrap;
}

.trk-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.trk-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f172a, #2563eb);
}

.trk-side-panel .trk-portal-empty-compact {
  min-height: 132px;
  padding: 0.9rem;
}

.trk-dashboard-side .trk-panel-toolbar {
  gap: 0.7rem;
}

.trk-dashboard-side .trk-panel-toolbar .trk-portal-btn {
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  font-size: 0.76rem;
}

.trk-keeper-side-list {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
}

.trk-keeper-side-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  color: var(--trk-ink);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.trk-keeper-side-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.045);
  color: var(--trk-ink);
}

.trk-keeper-side-body {
  min-width: 0;
}

.trk-keeper-side-body strong,
.trk-keeper-side-body small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-keeper-side-body strong {
  color: var(--trk-ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.trk-keeper-side-body small {
  color: var(--trk-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.trk-keeper-side-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.trk-keeper-side-metrics span {
  min-height: 24px;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(37, 99, 235, 0.13);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.07);
  color: var(--trk-blue-dark);
  font-size: 0.68rem;
  font-weight: 800;
}

.trk-panel-footer-compact {
  padding: 0.7rem;
}

.trk-plan-side-list {
  display: grid;
  gap: 0.65rem;
  max-height: 320px;
  padding: 0.85rem;
  overflow-y: auto;
}

.trk-event-side-list {
  display: grid;
  gap: 0.65rem;
  max-height: 320px;
  padding: 0.85rem;
  overflow-y: auto;
}

.trk-plan-side-card,
.trk-event-side-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.72rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  color: var(--trk-ink);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.trk-plan-side-card:hover,
.trk-event-side-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.045);
  color: var(--trk-ink);
}

.trk-plan-side-card > span,
.trk-event-side-card > span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--trk-radius-sm);
  background: rgba(37, 99, 235, 0.09);
  color: var(--trk-blue);
}

.trk-plan-side-card strong,
.trk-plan-side-card small,
.trk-event-side-card strong,
.trk-event-side-card small,
.trk-event-side-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-plan-side-card strong,
.trk-event-side-card strong {
  color: var(--trk-ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.trk-plan-side-card small,
.trk-event-side-card small,
.trk-event-side-card em {
  color: var(--trk-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.trk-event-side-card em {
  margin-top: 0.2rem;
  color: var(--trk-blue-dark);
  font-style: normal;
  font-weight: 850;
}

.trk-event-side-card {
  position: relative;
  overflow: hidden;
}

.trk-event-side-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--trk-blue);
}

.trk-event-side-card.trk-event-today {
  border-color: rgba(220, 38, 38, 0.26);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.98), #ffffff);
}

.trk-event-side-card.trk-event-today::before {
  background: #dc2626;
}

.trk-event-side-card.trk-event-today > span {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.trk-event-side-card.trk-event-soon {
  border-color: rgba(217, 119, 6, 0.24);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), #ffffff);
}

.trk-event-side-card.trk-event-soon::before {
  background: #d97706;
}

.trk-event-side-card.trk-event-soon > span {
  background: rgba(217, 119, 6, 0.11);
  color: #d97706;
}

.trk-event-side-card.trk-event-scheduled {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), #ffffff);
}

.trk-event-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.18rem;
}

.trk-event-side-head b,
.trk-event-side-head small {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trk-event-side-head b {
  color: #0f172a;
}

.trk-event-side-head small {
  color: var(--trk-muted);
}

/* ================================================================
   OBJECTIVES PORTAL
   ================================================================ */

.trk-objective-builder {
  font-family: "Montserrat", "Poppins", sans-serif;
}

.trk-objective-builder .card,
.trk-objective-panel,
.trk-objective-form-body,
.trk-objective-progress-card,
.trk-objective-workout-card {
  border: 1px solid var(--trk-line, rgba(15, 23, 42, 0.1)) !important;
  border-radius: var(--trk-radius-sm, 8px) !important;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07) !important;
}

.trk-objective-builder .card-header {
  border-bottom: 1px solid var(--trk-line, rgba(15, 23, 42, 0.1)) !important;
  background: linear-gradient(180deg, #ffffff, #f6f9fd) !important;
  color: #0f172a;
}

.trk-objective-builder h1,
.trk-objective-builder h2,
.trk-objective-builder h3,
.trk-objective-builder h4,
.trk-objective-form-page h1,
.trk-objective-form-page h2,
.trk-objective-form-page h3 {
  color: #0f172a;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  letter-spacing: 0;
}

.trk-objective-workout-link {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid rgba(37, 99, 235, 0.13);
  border-radius: var(--trk-radius-sm, 8px);
  background: #f8fbff;
}

.trk-objective-workout-link label,
.trk-objective-form-body label {
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trk-objective-link-select {
  min-height: 8.5rem;
  border-color: var(--trk-line, rgba(15, 23, 42, 0.1));
  border-radius: var(--trk-radius-sm, 8px);
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
}

.trk-objective-link-select option {
  padding: 0.42rem 0.55rem;
}

.trk-objective-edit-grid,
.trk-objective-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.trk-objective-form-body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.trk-objective-detail-shell,
.trk-objective-progress-shell {
  display: grid;
  gap: 1rem;
}

.trk-objective-detail-grid {
  align-items: start;
}

.trk-objective-workout-list,
.trk-objective-progress-list {
  display: grid;
  gap: 0.75rem;
}

.trk-objective-progress-section {
  background: #f6f9fd !important;
}

.trk-objective-progress-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  color: #0f172a;
}

.trk-objective-progress-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.9rem;
}

.trk-objective-progress-main h3,
.trk-objective-progress-main h4 {
  margin: 0.42rem 0 0.18rem;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.18;
}

.trk-objective-progress-main h3 a,
.trk-objective-progress-main h4 a {
  color: #0f172a;
}

.trk-objective-progress-main h3 a:hover,
.trk-objective-progress-main h4 a:hover {
  color: #2563eb;
}

.trk-objective-progress-main small {
  color: var(--trk-muted, #5b6477);
  font-weight: 700;
}

.trk-objective-progress-main > strong {
  flex: 0 0 auto;
  min-width: 3.7rem;
  padding: 0.42rem 0.58rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: #1e40af;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: 1rem;
  text-align: center;
}

.trk-objective-progress-meta,
.trk-objective-actions,
.trk-objective-linked-work {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.trk-objective-progress-meta span,
.trk-objective-linked-work a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 30px;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #f8fafc;
  color: #5b6477;
  font-size: 0.72rem;
  font-weight: 800;
}

.trk-objective-linked-work a {
  max-width: 100%;
  background: rgba(37, 99, 235, 0.07);
  color: #1e40af;
}

.trk-objective-linked-work a:hover {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.11);
  color: #0f172a;
}

.trk-objective-actions {
  padding-top: 0.15rem;
}

.trk-objective-actions .trk-table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.36rem 0.6rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1e40af;
  font-size: 0.74rem;
  font-weight: 900;
}

.trk-objective-actions button.trk-table-action {
  cursor: pointer;
}

.trk-objective-workout-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  color: #0f172a;
}

.trk-objective-workout-card > span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--trk-radius-sm, 8px);
  background: rgba(37, 99, 235, 0.09);
  color: #2563eb;
}

.trk-objective-workout-card strong,
.trk-objective-workout-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-objective-workout-card strong {
  color: #0f172a;
  font-weight: 900;
}

.trk-objective-workout-card small {
  color: #5b6477;
  font-size: 0.75rem;
  font-weight: 700;
}

.trk-objective-progress-list-compact {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (min-width: 992px) {
  .trk-objective-edit-grid,
  .trk-objective-detail-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  }

  .trk-objective-progress-shell .trk-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .trk-objective-builder,
  .trk-objective-detail-shell,
  .trk-objective-progress-shell {
    padding-inline: 0.72rem;
  }

  .trk-objective-workout-link {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.72rem;
  }

  .trk-objective-progress-card {
    padding: 0.78rem;
    border-radius: 12px !important;
  }

  .trk-objective-progress-main {
    align-items: flex-start;
  }

  .trk-objective-progress-main h3,
  .trk-objective-progress-main h4 {
    font-size: 0.92rem;
  }

  .trk-objective-progress-main > strong {
    min-width: 3.2rem;
    font-size: 0.9rem;
  }

  .trk-objective-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .trk-objective-actions .trk-table-action {
    width: 100%;
    min-height: 38px;
    padding-inline: 0.35rem;
    font-size: 0.68rem;
  }

  .trk-objective-linked-work a,
  .trk-objective-progress-meta span {
    max-width: 100%;
    font-size: 0.68rem;
  }
}

@media (max-width: 575.98px) {
  .trk-chart-main {
    height: 340px;
  }
}

/* ================================================================
   MOBILE-FIRST PARITY: coach dashboard + goalkeeper directory
   ================================================================ */

@media (max-width: 575.98px) {
  body.tracking-analytics-page,
  body.tracking-analytics-page .main-content {
    background: #eef3f9;
  }

  .trk-coach-dashboard-shell {
    padding: 0.72rem;
  }

  .trk-coach-dashboard-shell .trk-compact-toolbar {
    position: sticky;
    top: 0;
    z-index: 12;
    margin: -0.72rem -0.72rem 0.72rem;
    padding: 0.72rem;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(245, 247, 251, 0.96);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
  }

  .trk-coach-dashboard-shell .trk-compact-context {
    align-items: flex-start;
    gap: 0.55rem;
  }

  .trk-coach-dashboard-shell .trk-compact-context strong {
    font-size: 1.05rem;
    line-height: 1.1;
  }

  .trk-coach-dashboard-shell .trk-compact-toolbar .trk-portal-eyebrow {
    min-height: 34px;
    padding: 0.4rem 0.52rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .trk-coach-dashboard-shell .trk-compact-toolbar .trk-portal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
  }

  .trk-coach-dashboard-shell .trk-compact-toolbar .trk-season-pill {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 36px;
    font-size: 0.72rem;
  }

  .trk-coach-dashboard-shell .trk-compact-toolbar .trk-portal-btn {
    width: 100%;
    min-height: 40px;
    padding: 0.5rem 0.45rem;
    font-size: 0.72rem;
  }

  .trk-coach-dashboard-shell .trk-summary-grid,
  .trk-directory-shell .trk-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.72rem;
  }

  .trk-coach-dashboard-shell .trk-summary-card,
  .trk-directory-shell .trk-summary-card {
    display: grid;
    align-content: start;
    min-height: 82px;
    padding: 0.65rem;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
  }

  .trk-coach-dashboard-shell .trk-summary-card span,
  .trk-directory-shell .trk-summary-card span {
    min-height: 1.7em;
    overflow: hidden;
    font-size: 0.56rem;
    line-height: 1.18;
    letter-spacing: 0.06em;
  }

  .trk-coach-dashboard-shell .trk-summary-card strong,
  .trk-directory-shell .trk-summary-card strong {
    margin: 0.42rem 0 0.08rem;
    font-size: 1.16rem;
  }

  .trk-coach-dashboard-shell .trk-summary-card small,
  .trk-directory-shell .trk-summary-card small {
    display: none;
  }

  .trk-coach-dashboard-shell .trk-dashboard-grid,
  .trk-coach-dashboard-shell .trk-dashboard-main,
  .trk-coach-dashboard-shell .trk-dashboard-side {
    gap: 0.72rem;
  }

  .trk-coach-dashboard-shell .trk-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .trk-coach-dashboard-shell .trk-command-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-height: 114px;
    padding: 0.72rem 0.55rem;
    text-align: center;
  }

  .trk-coach-dashboard-shell .trk-command-card span {
    grid-row: auto;
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .trk-coach-dashboard-shell .trk-command-card strong {
    font-size: 0.82rem;
    line-height: 1.12;
  }

  .trk-coach-dashboard-shell .trk-command-card small {
    display: none;
  }

  .trk-coach-dashboard-shell .trk-data-panel {
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.075);
  }

  .trk-coach-dashboard-shell .trk-panel-toolbar {
    gap: 0.65rem;
    padding: 0.78rem;
  }

  .trk-coach-dashboard-shell .trk-panel-toolbar h2 {
    font-size: 1rem;
    line-height: 1.15;
  }

  .trk-coach-dashboard-shell .trk-panel-toolbar .trk-portal-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .trk-coach-dashboard-shell .trk-segmented-control,
  .trk-coach-dashboard-shell .trk-panel-select {
    width: 100%;
  }

  .trk-coach-dashboard-shell .trk-segmented-control button {
    flex: 1;
  }

  .trk-coach-dashboard-shell .trk-chart-main {
    height: 292px;
    padding: 0.65rem 0.72rem 0.85rem;
  }

  .trk-coach-dashboard-shell .trk-chart-balanced {
    height: 280px;
  }

  .trk-coach-dashboard-shell .trk-chart-pagination {
    justify-content: center;
  }

  .trk-coach-dashboard-shell .trk-analytics-table tbody tr {
    margin: 0.72rem;
    padding: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  }

  .trk-coach-dashboard-shell .trk-analytics-table tbody td,
  .trk-coach-dashboard-shell .trk-analytics-table tbody td:first-child {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0;
  }

  .trk-coach-dashboard-shell .trk-analytics-table tbody td[data-label]::before {
    content: attr(data-label);
    color: var(--trk-muted);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .trk-coach-dashboard-shell .trk-analytics-table .trk-table-action {
    width: 100%;
    min-height: 36px;
  }

  .trk-coach-dashboard-shell .trk-clock-panel {
    padding: 0.9rem;
  }

  .trk-coach-dashboard-shell .trk-clock-panel strong {
    margin-top: 0.45rem;
    font-size: 2.25rem;
  }

  .trk-coach-dashboard-shell .trk-tool-list,
  .trk-coach-dashboard-shell .trk-alert-list,
  .trk-coach-dashboard-shell .trk-objective-list,
  .trk-coach-dashboard-shell .trk-keeper-side-list,
  .trk-coach-dashboard-shell .trk-plan-side-list,
  .trk-coach-dashboard-shell .trk-event-side-list {
    gap: 0.52rem;
    padding: 0.72rem;
  }

  .trk-coach-dashboard-shell .trk-tool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trk-coach-dashboard-shell .trk-tool-list a {
    min-height: 42px;
    padding: 0.52rem;
    font-size: 0.76rem;
  }

  .trk-coach-dashboard-shell .trk-keeper-side-card,
  .trk-coach-dashboard-shell .trk-plan-side-card,
  .trk-coach-dashboard-shell .trk-event-side-card,
  .trk-coach-dashboard-shell .trk-alert-card,
  .trk-coach-dashboard-shell .trk-objective-card {
    border-radius: 12px;
  }

  .trk-coach-dashboard-shell .trk-alert-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 0.72rem 2.35rem 0.72rem 0.72rem;
  }

  .trk-coach-dashboard-shell .trk-alert-card > span {
    display: none;
  }

  .trk-coach-dashboard-shell .trk-alert-head {
    align-items: flex-start;
  }

  .trk-coach-dashboard-shell .trk-objective-head,
  .trk-coach-dashboard-shell .trk-objective-meta {
    align-items: flex-start;
  }

  .trk-coach-dashboard-shell .trk-objective-head strong {
    max-width: 11rem;
  }

  .trk-directory-hero .trk-portal-actions {
    align-items: stretch;
  }

  .trk-directory-table-wrap .trk-portal-empty {
    min-height: 190px;
  }
}

.trk-live-report-shell {
  display: grid;
  gap: 1rem;
}

.trk-live-report-shell section[id] {
  scroll-margin-top: 1rem;
}

.trk-live-report-hero {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.trk-live-report-hero h1 {
  color: #0f172a;
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  font-weight: 900;
  margin: 0.2rem 0;
}

.trk-live-report-hero p {
  color: #5b6477;
  font-weight: 700;
  margin: 0;
}

.trk-live-report-status {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  min-width: 170px;
  padding: 0.85rem;
  text-align: right;
}

.trk-live-report-status span,
.trk-live-report-status small {
  color: #5b6477;
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.trk-live-report-status strong {
  color: #0f172a;
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
}

.trk-live-readout {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.06)),
    #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 2fr);
  padding: 0.85rem;
}

.trk-live-readout-focus {
  align-content: stretch;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  display: grid;
  gap: 0.28rem;
  padding: 0.75rem;
}

.trk-live-readout-focus h2 {
  color: #0f172a;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 950;
  line-height: 1.12;
  margin: 0;
}

.trk-live-readout-focus p {
  color: #475569;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
  margin: 0;
}

.trk-live-readout-focus small {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trk-live-readout-focus small strong {
  color: #0f766e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 950;
}

.trk-live-readout-clues {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.25rem;
}

.trk-live-readout-clues button,
.trk-live-readout-clue-static {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.5rem 0.58rem;
  text-align: left;
}

.trk-live-readout-clues button {
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.trk-live-readout-clues button:hover,
.trk-live-readout-clues button:focus-visible,
.trk-live-readout-clues button.is-active {
  border-color: rgba(15, 118, 110, 0.28);
  outline: 0;
  transform: translateY(-1px);
}

.trk-live-readout-clues span span,
.trk-live-readout-clues button span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.trk-live-readout-clues strong {
  color: #0f172a;
  display: block;
  font-size: 0.82rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-live-readout-actions {
  align-self: stretch;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.trk-live-readout-group {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  padding: 0.62rem;
}

.trk-live-readout-group-title {
  color: #475569;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trk-live-filter-strip,
.trk-live-report-jumpnav {
  align-content: stretch;
  display: grid;
  gap: 0.4rem;
  grid-auto-rows: minmax(50px, 1fr);
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  height: 100%;
  min-width: 0;
}

.trk-live-filter-strip button,
.trk-live-report-jumpnav a {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 900;
  gap: 0.38rem;
  justify-content: center;
  min-height: 50px;
  min-width: 0;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  width: 100%;
}

.trk-live-filter-strip button {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  color: #334155;
  cursor: pointer;
  padding: 0.48rem 0.64rem;
}

.trk-live-filter-strip button:hover,
.trk-live-filter-strip button:focus-visible,
.trk-live-report-jumpnav a:hover,
.trk-live-report-jumpnav a:focus-visible {
  border-color: rgba(15, 118, 110, 0.28);
  color: #0f766e;
  transform: translateY(-1px);
}

.trk-live-filter-strip button.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.trk-live-report-jumpnav {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.trk-live-report-jumpnav a {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(15, 23, 42, 0.07);
  color: #475569;
  padding: 0.44rem 0.62rem;
}

.trk-live-report-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trk-live-report-analysis-card {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.trk-live-report-breakdown-card {
  align-content: start;
  grid-template-rows: auto minmax(248px, auto) auto auto;
}

.trk-live-report-breakdown-card .trk-panel-toolbar {
  justify-content: center;
  min-height: 74px;
  padding: 0.95rem 1rem;
}

.trk-live-report-breakdown-card .trk-live-report-chart-layout {
  min-height: 248px;
  padding: 0 1rem;
}

.trk-live-report-breakdown-card .trk-live-report-donut {
  width: clamp(150px, 15vw, 188px);
}

.trk-live-report-breakdown-card .trk-live-report-legend {
  align-content: center;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.trk-live-report-breakdown-card .trk-live-report-legend > button {
  min-height: 44px;
}

.trk-live-report-breakdown-card .trk-live-report-insight {
  margin: 0 1rem;
  min-height: 76px;
}

.trk-live-report-breakdown-card .trk-live-report-insight strong {
  max-width: 13rem;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-live-compact-toolbar {
  align-items: flex-start;
  padding-bottom: 0.15rem;
}

.trk-live-compact-toolbar h2 {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.15;
  margin-top: 0.12rem;
}

.trk-live-report-chart-layout {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(128px, 0.35fr) minmax(0, 1fr);
}

.trk-live-report-donut {
  align-items: center;
  aspect-ratio: 1;
  background: var(--chart-gradient);
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  justify-self: center;
  min-width: 0;
  position: relative;
  width: clamp(128px, 18vw, 168px);
}

.trk-live-report-donut::before {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: inherit;
  content: "";
  inset: 19px;
  position: absolute;
}

.trk-live-report-donut span,
.trk-live-report-donut small {
  position: relative;
  z-index: 1;
}

.trk-live-report-donut span {
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.85rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
}

.trk-live-report-donut small {
  color: #5b6477;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.trk-live-report-legend {
  align-content: center;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.trk-live-report-legend > button,
.trk-live-report-key {
  align-items: center;
  color: #334155;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.45rem;
  min-width: 0;
}

.trk-live-report-legend > button {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  text-align: left;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  word-break: break-word;
}

.trk-live-report-legend > button:hover,
.trk-live-report-legend > button:focus-visible,
.trk-live-report-legend > button.is-active,
.trk-live-report-table tr[role="button"]:hover,
.trk-live-report-table tr[role="button"]:focus-visible,
.trk-live-report-table tr[role="button"].is-active {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.26);
  outline: 0;
}

.trk-live-report-legend > button:hover,
.trk-live-report-legend > button:focus-visible {
  transform: translateY(-1px);
}

.trk-live-report-legend i,
.trk-live-report-key i {
  background: var(--item-color);
  border-radius: 999px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--item-color) 16%, transparent);
  flex: 0 0 auto;
  height: 0.58rem;
  width: 0.58rem;
}

.trk-live-report-legend strong {
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.trk-live-report-table-wrap {
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  overflow: hidden;
}

.trk-live-report-insight {
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 0.15rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.75rem 0.85rem;
}

.trk-live-report-insight span,
.trk-live-report-insight small {
  color: #4b5563;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.trk-live-report-insight strong {
  color: #0f766e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 950;
  grid-row: span 2;
}

.trk-live-report-table th {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trk-live-report-table td {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
}

.trk-live-report-table td strong {
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.trk-live-report-table tr[role="button"] {
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.trk-live-goal-frame {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  margin: 0.35rem auto 0.9rem;
  max-width: 620px;
  padding: 0.35rem 0.55rem 0.95rem;
  width: calc(100% - 1.5rem);
}

.trk-live-goal-heatmap {
  aspect-ratio: 16 / 6;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #f8fafc);
  background-size: 25% 100%, 100% 50%, auto;
  border: 0;
  border-left: 8px solid #f1f5f9;
  border-right: 8px solid #f1f5f9;
  border-top: 8px solid #f1f5f9;
  border-radius: 3px 3px 0 0;
  box-shadow:
    -2px 0 0 #0f172a,
    2px 0 0 #0f172a,
    0 -2px 0 #0f172a,
    inset 0 0 0 1px rgba(15, 23, 42, 0.1),
    0 10px 18px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(54px, 1fr));
  overflow: hidden;
}

.trk-live-goal-zone {
  align-content: center;
  appearance: none;
  background: rgba(100, 116, 139, 0.06);
  border: 0;
  border-right: 1px solid rgba(15, 23, 42, 0.14);
  border-top: 1px solid rgba(15, 23, 42, 0.14);
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
  font-family: inherit;
  justify-items: center;
  padding: 0.45rem;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.trk-live-goal-zone:hover:not(:disabled),
.trk-live-goal-zone:focus-visible,
.trk-live-goal-zone.is-active {
  filter: saturate(1.12) contrast(1.03);
  outline: 2px solid rgba(15, 23, 42, 0.22);
  outline-offset: -3px;
}

.trk-live-goal-zone:disabled {
  cursor: default;
}

.trk-live-goal-zone:nth-child(-n + 4) {
  border-top: 0;
}

.trk-live-goal-zone:nth-child(4n) {
  border-right: 0;
}

.trk-live-goal-zone.is-good {
  background: rgba(22, 163, 74, var(--heat-alpha));
}

.trk-live-goal-zone.is-bad {
  background: rgba(220, 38, 38, var(--heat-alpha));
}

.trk-live-goal-zone strong {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: #0f172a;
  display: inline-flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  min-width: 30px;
  padding: 0 0.45rem;
}

.trk-live-goal-zone span {
  background: rgba(255, 255, 255, 0.68);
  border-radius: 6px;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.12rem 0.34rem;
}

.trk-live-field-heatmap {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 11%, rgba(255, 255, 255, 0.018) 11% 22%),
    radial-gradient(circle at 50% 50%, rgba(14, 116, 144, 0.2), transparent 44%),
    linear-gradient(180deg, #08313c, #052b35 48%, #062c32);
  background-size: 12.5% 100%, 100% 100%, auto;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.34),
    inset 0 18px 36px rgba(255, 255, 255, 0.04),
    inset 0 -22px 48px rgba(0, 0, 0, 0.22);
  margin: 1rem;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

.trk-live-full-pitch-heatmap {
  min-height: 360px;
}

.trk-live-area-goal,
.trk-live-area-penalty,
.trk-live-area-six-yard,
.trk-live-area-spot,
.trk-live-area-arc,
.trk-live-pitch-border,
.trk-live-pitch-halfway,
.trk-live-pitch-center,
.trk-live-pitch-spot,
.trk-live-pitch-box,
.trk-live-pitch-six,
.trk-live-pitch-goal {
  pointer-events: none;
  position: absolute;
}

.trk-live-density-cloud {
  background: var(--heat-cloud);
  filter: blur(10px) saturate(1.2);
  inset: -2%;
  mix-blend-mode: screen;
  opacity: 0.94;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.trk-live-pass-density {
  opacity: 0.9;
}

.trk-live-area-goal,
.trk-live-area-penalty,
.trk-live-area-six-yard,
.trk-live-area-spot,
.trk-live-area-arc {
  z-index: 2;
}

.trk-live-area-goal {
  background: rgba(255, 255, 255, 0.96);
  bottom: 0;
  box-shadow:
    -8px 0 0 rgba(255, 255, 255, 0.96),
    8px 0 0 rgba(255, 255, 255, 0.96),
    0 -7px 0 rgba(255, 255, 255, 0.96);
  height: 5px;
  left: 39%;
  width: 22%;
}

.trk-live-area-penalty {
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-bottom: 0;
  bottom: 0;
  height: 52%;
  left: 12%;
  width: 76%;
}

.trk-live-area-six-yard {
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-bottom: 0;
  bottom: 0;
  height: 24%;
  left: 31%;
  width: 38%;
}

.trk-live-area-spot {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  bottom: 34%;
  height: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
}

.trk-live-area-arc {
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  bottom: 46%;
  height: 17%;
  left: 38%;
  width: 22%;
}

.trk-live-pitch-border {
  border: 2px solid rgba(255, 255, 255, 0.82);
  inset: 10px;
  z-index: 2;
}

.trk-live-pitch-halfway {
  background: rgba(255, 255, 255, 0.82);
  height: 2px;
  left: 10px;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.trk-live-pitch-center {
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  height: 25%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18%;
  z-index: 2;
}

.trk-live-pitch-spot {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  height: 6px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  z-index: 2;
}

.trk-live-pitch-spot.is-center {
  top: 50%;
}

.trk-live-pitch-spot.is-own {
  bottom: 15.5%;
}

.trk-live-pitch-spot.is-away {
  top: 15.5%;
}

.trk-live-pitch-box,
.trk-live-pitch-six {
  border: 2px solid rgba(255, 255, 255, 0.78);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.trk-live-pitch-box {
  height: 25%;
  width: 52%;
}

.trk-live-pitch-six {
  height: 10%;
  width: 26%;
}

.trk-live-pitch-box.is-own,
.trk-live-pitch-six.is-own {
  border-bottom: 0;
  bottom: 10px;
}

.trk-live-pitch-box.is-away,
.trk-live-pitch-six.is-away {
  border-top: 0;
  top: 10px;
}

.trk-live-pitch-goal {
  background: rgba(255, 255, 255, 0.96);
  height: 5px;
  left: 43%;
  width: 14%;
  z-index: 2;
}

.trk-live-pitch-goal.is-own {
  bottom: 5px;
  box-shadow:
    -6px 0 0 rgba(255, 255, 255, 0.96),
    6px 0 0 rgba(255, 255, 255, 0.96),
    0 -6px 0 rgba(255, 255, 255, 0.96);
}

.trk-live-pitch-goal.is-away {
  top: 5px;
  box-shadow:
    -6px 0 0 rgba(255, 255, 255, 0.96),
    6px 0 0 rgba(255, 255, 255, 0.96),
    0 6px 0 rgba(255, 255, 255, 0.96);
}

.trk-live-pass-zone {
  align-items: center;
  background: rgba(22, 163, 74, var(--heat-alpha));
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  display: none;
  justify-items: center;
  line-height: 1;
  padding: 0.35rem;
  position: absolute;
  z-index: 1;
}

.trk-live-pass-zone.is-bad {
  background: rgba(220, 38, 38, var(--heat-alpha));
}

.trk-live-pass-zone strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
  font-weight: 950;
}

.trk-live-pass-zone small {
  font-size: 0.7rem;
  font-weight: 900;
}

.trk-live-field-point {
  appearance: none;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.14),
    0 8px 18px rgba(15, 23, 42, 0.3);
  height: 12px;
  opacity: 0.82;
  padding: 0;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: box-shadow 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
  width: 12px;
  z-index: 4;
}

.trk-live-field-point:hover,
.trk-live-field-point:focus-visible,
.trk-live-field-point.is-focus-pulse {
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.2),
    0 0 0 10px rgba(250, 204, 21, 0.26),
    0 12px 22px rgba(15, 23, 42, 0.34);
  opacity: 1;
  outline: 0;
  transform: translate(-50%, -50%) scale(1.24);
}

.trk-live-pass-point {
  height: 11px;
  width: 11px;
}

.trk-live-field-point.is-good {
  background: #16a34a;
}

.trk-live-field-point.is-bad {
  background: #dc2626;
}

.trk-live-field-point.is-neutral {
  background: #2563eb;
}

.trk-live-field-empty {
  align-items: center;
  background: rgba(15, 23, 42, 0.52);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 850;
  left: 50%;
  padding: 0.6rem 0.8rem;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.trk-live-heatmap-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
}

.trk-live-heatmap-totals span {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  color: #334155;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
}

.trk-live-heatmap-totals i {
  border-radius: 999px;
  height: 0.62rem;
  width: 0.62rem;
}

.trk-live-heatmap-totals .is-good {
  background: #16a34a;
}

.trk-live-heatmap-totals .is-bad {
  background: #dc2626;
}

.trk-live-heatmap-totals .is-neutral {
  background: #2563eb;
}

.trk-live-share-copy.is-copied {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.28);
  color: #15803d;
}

.trk-live-report-kpi-list {
  display: grid;
  gap: 0.55rem;
}

.trk-live-report-kpi-list div {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
}

.trk-live-report-kpi-list span {
  color: #5b6477;
  font-size: 0.84rem;
  font-weight: 800;
}

.trk-live-report-kpi-list strong {
  color: #0f172a;
  font-weight: 900;
}

.trk-live-report-timeline {
  display: grid;
  gap: 0.65rem;
}

.trk-live-report-event {
  align-items: start;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.75rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.trk-live-report-event.is-good {
  border-left-color: #16a34a;
}

.trk-live-report-event.is-bad {
  border-left-color: #dc2626;
}

.trk-live-report-event.is-neutral {
  border-left-color: #2563eb;
}

.trk-live-report-event.is-filtered-out {
  display: none;
}

.trk-live-report-event.is-match-highlight {
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.08), #fff 52%);
  border-color: rgba(15, 118, 110, 0.24);
  transform: translateX(2px);
}

.trk-live-report-event time {
  background: rgba(37, 99, 235, 0.08);
  border-radius: 6px;
  color: #2563eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.45rem 0.55rem;
}

.trk-live-report-event strong {
  color: #0f172a;
  display: block;
  font-weight: 900;
}

.trk-live-report-event-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: space-between;
}

.trk-live-report-event-head > span {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 950;
  padding: 0.2rem 0.45rem;
}

.trk-live-report-event p {
  color: #5b6477;
  font-size: 0.88rem;
  font-weight: 650;
  margin: 0.2rem 0 0;
}

.trk-live-report-event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.trk-live-report-event-tags span {
  align-items: center;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 6px;
  color: #2563eb;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 0.28rem;
  padding: 0.28rem 0.45rem;
}

@media (max-width: 991.98px) {
  .trk-live-readout {
    grid-template-columns: 1fr;
  }

  .trk-live-readout-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .trk-live-report-hero,
  .trk-live-report-grid,
  .trk-live-readout {
    grid-template-columns: 1fr;
  }

  .trk-live-report-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .trk-live-report-status {
    min-width: 0;
    text-align: left;
  }

  .trk-live-readout {
    padding: 0.75rem;
  }

  .trk-live-readout-actions {
    grid-template-columns: 1fr;
  }

  .trk-live-filter-strip,
  .trk-live-report-jumpnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trk-live-filter-strip button,
  .trk-live-report-jumpnav a {
    min-height: 48px;
  }

  .trk-live-report-chart-layout {
    grid-template-columns: 1fr;
  }

  .trk-live-report-donut {
    width: min(170px, 62vw);
  }

  .trk-live-report-legend {
    grid-template-columns: 1fr;
  }

  .trk-live-goal-heatmap {
    grid-template-rows: repeat(2, minmax(50px, 1fr));
  }

  .trk-live-field-heatmap {
    min-height: 210px;
  }

  .trk-live-full-pitch-heatmap {
    aspect-ratio: 9 / 14;
    margin: 0.75rem;
    min-height: 0;
    width: calc(100% - 1.5rem);
  }

  .trk-live-full-pitch-heatmap .trk-live-pitch-border {
    inset: 8px;
  }

  .trk-live-full-pitch-heatmap .trk-live-pitch-halfway {
    left: 8px;
    right: 8px;
  }

  .trk-live-full-pitch-heatmap .trk-live-pitch-box {
    height: 18%;
    width: 64%;
  }

  .trk-live-full-pitch-heatmap .trk-live-pitch-six {
    height: 7.5%;
    width: 34%;
  }

  .trk-live-full-pitch-heatmap .trk-live-pitch-center {
    aspect-ratio: 1;
    height: auto;
    width: 28%;
  }

  .trk-live-full-pitch-heatmap .trk-live-pitch-goal {
    left: 40%;
    width: 20%;
  }

  .trk-live-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trk-live-report-event {
    grid-template-columns: 1fr;
  }

  .trk-live-report-table-wrap {
    border: 0;
    overflow: visible;
  }

  .trk-live-report-table thead {
    display: none;
  }

  .trk-live-report-table,
  .trk-live-report-table tbody,
  .trk-live-report-table tr,
  .trk-live-report-table td {
    display: block;
    width: 100%;
  }

  .trk-live-report-table tr {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    margin-bottom: 0.55rem;
    padding: 0.3rem 0.55rem;
  }

  .trk-live-report-table td {
    align-items: center;
    border: 0;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.45rem 0 !important;
    text-align: right !important;
  }

  .trk-live-report-table td::before {
    color: #64748b;
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .trk-live-report-insight {
    grid-template-columns: 1fr;
  }

  .trk-live-report-insight strong {
    grid-row: auto;
  }
}

/* ============================================================
   Scouting Dashboard
   ============================================================ */

/* -- Filter bar -- */
.trk-scouting-filter-bar {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.trk-scouting-filter-bar::-webkit-scrollbar {
  display: none;
}

/* -- Filter chip -- */
.trk-scouting-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.6rem 0.9rem;
  border-radius: var(--trk-radius-sm);
  border: 1px solid var(--trk-line);
  background: var(--trk-panel);
  color: var(--trk-ink);
  font-family: "Montserrat", "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.trk-scouting-filter-chip:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.trk-scouting-filter-chip:active {
  transform: translateY(0);
}

/* Active states per recommendation */
.trk-scouting-filter-chip.active {
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.trk-scouting-filter-chip[data-filter="all"].active {
  background: #0f172a;
}

.trk-scouting-filter-chip[data-filter="fichar"].active {
  background: #16a34a;
}

.trk-scouting-filter-chip[data-filter="seguimiento"].active {
  background: #2563eb;
}

.trk-scouting-filter-chip[data-filter="dudas"].active {
  background: #d97706;
}

.trk-scouting-filter-chip[data-filter="descartar"].active {
  background: #dc2626;
}

.trk-scouting-filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.68rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.trk-scouting-filter-chip.active .trk-scouting-filter-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.trk-scouting-filter-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.trk-scouting-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.65rem;
  font-weight: 800;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  transition: background 0.18s ease, color 0.18s ease;
}

.trk-scouting-filter-chip.active .trk-scouting-filter-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Recommendation badge inside analytics table */
.trk-scouting-rec {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.trk-scouting-rec--fichar {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.trk-scouting-rec--seguimiento {
  background: rgba(56, 189, 248, 0.12);
  color: #0369a1;
}

.trk-scouting-rec--dudas {
  background: rgba(251, 191, 36, 0.15);
  color: #a16207;
}

.trk-scouting-rec--descartar {
  background: rgba(248, 113, 113, 0.12);
  color: #b91c1c;
}

/* Danger variant for table action */
.trk-scouting-action-danger {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.18) !important;
  color: var(--trk-danger) !important;
}

.trk-scouting-action-danger:hover {
  background: rgba(220, 38, 38, 0.16) !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
}

/* Filter count badge in panel toolbar */
.trk-panel-toolbar .trk-scouting-rec {
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
}

/* Mobile: filter bar sticky and more compact */
@media (max-width: 759px) {
  .trk-scouting-filter-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: -0.25rem -0.5rem 0.75rem;
    padding: 0.5rem;
    background: var(--trk-soft);
    border-bottom: 1px solid var(--trk-line);
    gap: 0.4rem;
  }

  .trk-scouting-filter-chip {
    padding: 0.5rem 0.7rem;
    font-size: 0.72rem;
    gap: 0.35rem;
    border-radius: 10px;
  }

  .trk-scouting-filter-icon {
    width: 20px;
    height: 20px;
    font-size: 0.62rem;
  }

  .trk-scouting-filter-label {
    font-size: 0.7rem;
  }

  .trk-scouting-filter-count {
    min-width: 18px;
    height: 18px;
    font-size: 0.6rem;
  }
}

/* Desktop: 5-column summary for wide screens (not used anymore — filter bar is the replacement) */
@media (min-width: 1180px) {
  .trk-scouting-dashboard-shell .trk-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* -- Compact sidebar table rows -- */
.trk-scouting-side-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--trk-line);
  border-top: 1px solid var(--trk-line);
}

.trk-scouting-side-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  grid-template-areas: "initials name rec";
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: var(--trk-panel);
  color: var(--trk-ink);
  text-decoration: none;
  transition: background 0.15s ease;
}

.trk-scouting-side-row:hover {
  background: rgba(37, 99, 235, 0.04);
  color: var(--trk-ink);
}

.trk-scouting-side-initials {
  grid-area: initials;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--trk-field);
  color: var(--trk-muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.trk-scouting-side-name {
  grid-area: name;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-scouting-side-name .fa-crosshairs {
  color: var(--trk-primary);
  font-size: 0.6rem;
  flex-shrink: 0;
}

.trk-scouting-side-team {
  display: none;
  font-size: 0.7rem;
  color: var(--trk-muted);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-scouting-side-row .trk-scouting-rec {
  grid-area: rec;
  font-size: 0.62rem;
  padding: 0.15rem 0.4rem;
  flex-shrink: 0;
}

/* Wider sidebar: show team column */
@media (min-width: 1180px) {
  .trk-scouting-side-row {
    grid-template-columns: 28px 1fr 0.6fr auto;
    grid-template-areas: "initials name team rec";
    gap: 0.6rem;
    padding: 0.45rem 0.85rem;
  }

  .trk-scouting-side-team {
    display: block;
  }
}
