: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-caution: #b06000;
  --trk-caution-soft: rgba(176, 96, 0, 0.08);
  --trk-caution-border: rgba(176, 96, 0, 0.24);
  --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 #cbd5e1;
  color: #334155;
  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: #64748b;
  font-weight: 500;
  opacity: 1;
}

.rating-tabs .nav-link.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
}

.rating-tabs .nav-link.active small {
  color: #cbd5e1;
  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: #334155 !important;
}

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

.rating-tabs .nav-link:not(.active):hover span,
.rating-tabs .nav-link:not(.active):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-directory-shell {
  padding-top: clamp(0.85rem, 1.25vw, 1.25rem);
}

.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-goalkeeper-profile-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--trk-radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 253, 0.98)),
    #ffffff;
  color: var(--trk-ink);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
}

.trk-goalkeeper-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, #0f172a, var(--trk-blue));
}

.trk-goalkeeper-profile-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 54%;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.72;
  pointer-events: none;
}

.trk-goalkeeper-hero-main,
.trk-goalkeeper-kpi-rail {
  position: relative;
  z-index: 1;
}

.trk-goalkeeper-hero-main {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.trk-goalkeeper-identity {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0;
}

.trk-goalkeeper-avatar {
  width: clamp(76px, 8vw, 112px);
  height: clamp(76px, 8vw, 112px);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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.94), rgba(30, 64, 175, 0.92)),
    #0f172a;
  color: #ffffff;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

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

.trk-goalkeeper-identity-copy {
  min-width: 0;
}

.trk-goalkeeper-status {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  min-height: 32px;
  padding: 0.38rem 0.64rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--trk-radius-sm);
  background: rgba(37, 99, 235, 0.07);
  color: var(--trk-blue-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.trk-goalkeeper-identity-copy h1 {
  margin: 0.58rem 0 0.5rem;
  color: #0f172a;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}

.trk-goalkeeper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem 0.84rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #334155;
  font-size: 0.94rem;
  font-weight: 700;
}

.trk-goalkeeper-meta li {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  min-width: 0;
}

.trk-goalkeeper-meta i {
  color: #64748b;
}

.trk-goalkeeper-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  max-width: 34rem;
}

.trk-goalkeeper-hero-actions .trk-portal-btn {
  min-height: 42px;
  border-radius: var(--trk-radius-sm);
  padding: 0.62rem 0.9rem;
  box-shadow: none;
}

.trk-goalkeeper-hero-actions .trk-portal-btn-primary {
  border-color: rgba(37, 99, 235, 0.2);
  background: var(--trk-blue);
  color: #ffffff;
}

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

.trk-goalkeeper-hero-actions .trk-portal-btn-secondary {
  border-color: rgba(15, 23, 42, 0.11);
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a;
}

.trk-goalkeeper-hero-actions .trk-portal-btn-secondary:hover {
  border-color: rgba(37, 99, 235, 0.22);
  background: #ffffff;
  color: var(--trk-blue-dark);
}

.trk-goalkeeper-hero-actions .trk-live-entry-btn {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 0.62rem;
  min-width: 12.75rem;
  min-height: 52px;
  padding: 0.42rem 0.58rem;
  border-color: var(--trk-blue-dark);
  background: var(--trk-blue-dark);
  color: #ffffff;
  text-align: left;
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.16);
}

.trk-live-entry-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--trk-radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.trk-live-entry-btn__copy {
  display: grid;
  min-width: 0;
  gap: 0.04rem;
}

.trk-live-entry-btn__copy small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.57rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.trk-live-entry-btn__copy strong {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
}

.trk-live-entry-btn__arrow {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  transition: transform 0.16s ease, color 0.16s ease;
}

.trk-goalkeeper-hero-actions .trk-live-entry-btn:hover {
  border-color: var(--trk-blue);
  background: var(--trk-blue);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.trk-live-entry-btn:hover .trk-live-entry-btn__arrow {
  color: #ffffff;
  transform: translateX(2px);
}

.trk-goalkeeper-hero-actions .trk-live-entry-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.trk-goalkeeper-kpi-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.trk-goalkeeper-kpi {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: var(--trk-radius-sm);
  background: rgba(255, 255, 255, 0.78);
}

.trk-goalkeeper-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(37, 99, 235, 0.42);
}

.trk-goalkeeper-kpi-save::before {
  background: rgba(22, 163, 74, 0.48);
}

.trk-goalkeeper-kpi-goal::before {
  background: rgba(220, 38, 38, 0.42);
}

.trk-goalkeeper-kpi span {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.trk-goalkeeper-kpi strong {
  display: block;
  margin-top: 0.5rem;
  color: #0f172a;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.trk-goalkeeper-kpi small {
  display: block;
  margin-top: 0.5rem;
  color: var(--trk-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.trk-goalkeeper-season-note {
  position: relative;
  z-index: 1;
  margin: 0.75rem 0 0;
  color: var(--trk-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.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 {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.18rem 0.85rem;
  align-items: center;
  width: 100%;
  min-height: 96px;
  padding: 1rem 1rem 1rem 1.05rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--trk-radius-sm);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: var(--trk-ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.trk-command-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--trk-blue), var(--trk-blue-dark));
}

.trk-command-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 999px;
}

.trk-command-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.34);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.13);
}

.trk-command-card span {
  grid-row: span 2;
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  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-dark);
  font-size: 1.1rem;
}

.trk-command-card strong {
  position: relative;
  z-index: 1;
  color: var(--trk-ink);
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: 1.18rem;
  line-height: 1.05;
}

.trk-command-card small {
  position: relative;
  z-index: 1;
  color: var(--trk-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.trk-command-card--directory {
  border-color: var(--trk-blue-dark);
  background: var(--trk-blue-dark);
  color: #ffffff;
}

.trk-command-card--directory::before {
  background: #ffffff;
  opacity: 0.82;
}

.trk-command-card--directory::after {
  border-color: rgba(255, 255, 255, 0.2);
}

.trk-command-card--directory span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.trk-command-card--directory strong,
.trk-command-card--directory small {
  color: #ffffff;
}

.trk-command-card--directory small {
  opacity: 0.8;
}

.trk-command-card--directory:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.22);
}

.trk-command-card--directory:focus-visible,
.trk-directory-entry-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.trk-dashboard-session-strip .trk-directory-entry-btn {
  border-color: var(--trk-blue);
  background: var(--trk-blue);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.trk-dashboard-session-strip .trk-directory-entry-btn:hover {
  border-color: var(--trk-blue-dark);
  background: var(--trk-blue-dark);
  color: #ffffff;
}

.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-directory-toolbar-title {
  min-width: 0;
}

.trk-directory-commandbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 56px;
  padding: 0.55rem 1rem 0;
  border-bottom: 1px solid var(--trk-line);
  background: #ffffff;
}

.trk-directory-status-nav {
  display: flex;
  gap: 0.35rem;
}

.trk-directory-status-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--trk-radius-sm) var(--trk-radius-sm) 0 0;
  color: var(--trk-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.trk-directory-status-nav a:hover,
.trk-directory-status-nav a.is-active {
  border-color: var(--trk-line);
  background: var(--trk-panel-soft);
  color: var(--trk-blue-dark);
}

.trk-directory-status-nav strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  color: inherit;
  font-size: 0.7rem;
}

.trk-directory-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding-bottom: 0.55rem;
}

.trk-directory-quick-actions .trk-portal-btn {
  min-height: 36px;
  padding: 0.42rem 0.72rem;
  font-size: 0.75rem;
}

.trk-directory-quick-actions .trk-portal-btn-primary {
  border-color: rgba(37, 99, 235, 0.22);
  background: var(--trk-blue);
  color: #ffffff;
}

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

.trk-directory-privacy-notice {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin: 1rem 1rem 0;
  padding: 0.8rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--trk-radius-sm);
  background: rgba(37, 99, 235, 0.06);
  color: var(--trk-ink);
}

.trk-directory-privacy-notice > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  color: var(--trk-blue-dark);
}

.trk-directory-privacy-notice strong {
  display: block;
  font-size: 0.82rem;
}

.trk-directory-privacy-notice p {
  margin: 0.18rem 0 0;
  color: var(--trk-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.trk-directory-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.trk-active-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 34px;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: var(--trk-radius-sm);
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.trk-active-count-pill strong {
  color: #14532d;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.trk-directory-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-end;
}

.trk-clear-filter-btn,
.trk-sort-control,
.trk-table-sort {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.trk-clear-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 42px;
  padding: 0 0.75rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  color: var(--trk-muted);
  font-size: 0.78rem;
  font-weight: 800;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

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

.trk-directory-sortbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  align-items: center;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid var(--trk-line);
  background: #ffffff;
}

.trk-directory-sortbar > span {
  color: var(--trk-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trk-sort-control {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 34px;
  padding: 0.42rem 0.68rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: var(--trk-panel-soft);
  color: var(--trk-muted);
  font-size: 0.74rem;
  font-weight: 900;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.trk-sort-control:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--trk-blue-dark);
}

.trk-sort-control.is-active {
  border-color: rgba(37, 99, 235, 0.32);
  background: var(--trk-blue-soft);
  color: var(--trk-blue-dark);
}

.trk-directory-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: stretch;
  min-width: 0;
  transition: grid-template-columns 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.trk-directory-workspace.is-filter-open {
  grid-template-columns: minmax(0, 1fr) minmax(272px, 22%);
}

.trk-directory-workspace--inactive {
  display: block;
}

.trk-directory-filter-disclosure {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--trk-line);
  background: #ffffff;
}

.trk-directory-filter-disclosure > summary {
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  min-height: 260px;
  padding: 0.8rem 0.7rem;
  color: var(--trk-ink);
  cursor: pointer;
  list-style: none;
  transition: background 0.16s ease, color 0.16s ease, padding 0.28s ease;
}

.trk-directory-filter-disclosure > summary::-webkit-details-marker {
  display: none;
}

.trk-directory-filter-disclosure > summary:hover {
  background: var(--trk-panel-soft);
}

.trk-directory-filter-disclosure > summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: -3px;
}

.trk-directory-filter-disclosure[open] > summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 18px;
  gap: 0.68rem;
  width: 100%;
  height: auto;
  min-height: 54px;
  padding: 0.58rem 0.78rem;
  border-bottom: 1px solid var(--trk-line);
  background: rgba(37, 99, 235, 0.06);
}

.trk-directory-filter-disclosure__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: var(--trk-panel-soft);
  color: var(--trk-muted);
}

.trk-directory-filter-disclosure[open] .trk-directory-filter-disclosure__icon {
  border-color: var(--trk-blue);
  background: var(--trk-blue);
  color: #ffffff;
}

.trk-directory-filter-disclosure__copy {
  display: grid;
  min-width: 0;
  gap: 0.06rem;
}

.trk-directory-filter-disclosure:not([open]) .trk-directory-filter-disclosure__copy {
  flex: 0 0 auto;
  place-items: center;
}

.trk-directory-filter-disclosure__copy strong {
  color: var(--trk-ink);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
}

.trk-directory-filter-disclosure:not([open]) .trk-directory-filter-disclosure__copy strong {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0;
  white-space: nowrap;
}

.trk-directory-filter-disclosure__copy small {
  color: var(--trk-muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
}

.trk-directory-filter-disclosure:not([open]) .trk-directory-filter-disclosure__copy small,
.trk-directory-filter-disclosure:not([open]) .trk-directory-filter-disclosure__count {
  display: none;
}

.trk-directory-filter-disclosure__count {
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: var(--trk-blue-soft);
  color: var(--trk-blue-dark);
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.trk-directory-filter-disclosure__count--empty {
  background: var(--trk-panel-soft);
  color: var(--trk-muted);
}

.trk-directory-filter-disclosure__chevron {
  color: var(--trk-muted);
  font-size: 0.72rem;
  transform: rotate(90deg);
  transition: transform 0.22s ease;
}

.trk-directory-filter-disclosure[open] .trk-directory-filter-disclosure__chevron {
  color: var(--trk-blue-dark);
  transform: rotate(180deg);
}

.trk-directory-check-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  animation: trk-filter-panel-enter 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.trk-check-filter-group {
  min-width: 0;
  padding: 0.85rem 1rem 1rem;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.trk-check-filter-group:first-child {
  border-bottom: 1px solid var(--trk-line);
}

@keyframes trk-filter-panel-enter {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

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

.trk-directory-table-wrap {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

@media (min-width: 992px) {
  .trk-goalkeeper-table {
    width: 100%;
    table-layout: fixed;
  }

  .trk-goalkeeper-table th:nth-child(1) { width: 19%; }
  .trk-goalkeeper-table th:nth-child(2) { width: 18%; }
  .trk-goalkeeper-table th:nth-child(3) { width: 18%; }
  .trk-goalkeeper-table th:nth-child(4) { width: 10%; }
  .trk-goalkeeper-table th:nth-child(5),
  .trk-goalkeeper-table th:nth-child(6) { width: 8%; }
  .trk-goalkeeper-table th:nth-child(7) { width: 19%; }

  .trk-goalkeeper-table thead th,
  .trk-goalkeeper-table tbody td {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }

  .trk-goalkeeper-table thead th:last-child,
  .trk-goalkeeper-table tbody td:last-child {
    padding-right: 0.3rem;
    padding-left: 0.3rem;
  }

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

  .trk-goalkeeper-table .trk-player-cell > div,
  .trk-goalkeeper-table .trk-table-main,
  .trk-goalkeeper-table .trk-table-sub {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .trk-goalkeeper-table .trk-player-cell a,
  .trk-goalkeeper-table .trk-player-cell small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .trk-goalkeeper-table .trk-roster-type {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .trk-goalkeeper-table .trk-icon-actions {
    gap: 0.22rem;
  }
}

@media (max-width: 991.98px) {
  .trk-directory-workspace,
  .trk-directory-workspace.is-filter-open {
    display: block;
  }

  .trk-directory-filter-disclosure {
    border-left: 0;
    border-bottom: 1px solid var(--trk-line);
  }

  .trk-directory-filter-disclosure > summary,
  .trk-directory-filter-disclosure[open] > summary {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto 18px;
    gap: 0.68rem;
    width: 100%;
    height: auto;
    min-height: 54px;
    padding: 0.58rem 1rem;
  }

  .trk-directory-filter-disclosure:not([open]) .trk-directory-filter-disclosure__copy {
    display: grid;
    place-items: initial;
  }

  .trk-directory-filter-disclosure:not([open]) .trk-directory-filter-disclosure__copy strong {
    writing-mode: initial;
    transform: none;
    letter-spacing: normal;
  }

  .trk-directory-filter-disclosure:not([open]) .trk-directory-filter-disclosure__copy small,
  .trk-directory-filter-disclosure:not([open]) .trk-directory-filter-disclosure__count {
    display: block;
  }

  .trk-directory-filter-disclosure__chevron {
    transform: none;
  }
}

.trk-check-filter-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.55rem;
  color: var(--trk-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trk-check-filter-head span {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
}

.trk-check-filter-head small {
  color: #8a94a6;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.trk-check-filter-options {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.42rem;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.trk-check-filter-option {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 32px;
  max-width: 100%;
  padding: 0.34rem 0.52rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: var(--trk-panel-soft);
  color: var(--trk-ink);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.trk-check-filter-option input {
  width: 0.92rem;
  height: 0.92rem;
  margin: 0;
  accent-color: var(--trk-blue);
  flex: 0 0 auto;
}

.trk-check-filter-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-check-filter-option small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  color: var(--trk-muted);
  font-size: 0.66rem;
  font-weight: 900;
}

.trk-check-filter-option:hover,
.trk-check-filter-option.is-checked {
  border-color: rgba(37, 99, 235, 0.3);
  background: var(--trk-blue-soft);
  color: var(--trk-blue-dark);
}

.trk-check-filter-empty {
  color: var(--trk-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .trk-directory-check-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.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-table-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  width: 100%;
  padding: 0;
  color: var(--trk-muted);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.trk-table-sort:hover,
.trk-table-sort.is-active {
  color: var(--trk-blue-dark);
}

.trk-table-sort-center {
  justify-content: center;
  text-align: center;
}

.trk-table-sort i {
  font-size: 0.8rem;
}

.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,
.trk-icon-actions button {
  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);
  cursor: pointer;
}

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

.trk-status-action-form {
  display: inline-flex;
  margin: 0;
}

.trk-icon-actions .trk-icon-action-danger {
  color: var(--trk-danger);
}

.trk-icon-actions .trk-icon-action-danger:hover {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.trk-status-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--trk-radius-sm);
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.trk-status-action:hover {
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.14);
}

.trk-player-avatar--disabled {
  border-color: rgba(100, 116, 139, 0.2);
  background: #e2e8f0;
  color: #64748b;
  filter: grayscale(1);
}

.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 {
  border-color: rgba(15, 23, 42, 0.38);
  background: linear-gradient(135deg, #0f172a, #172554);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  padding: 1rem;
}

.trk-clock-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(116px, 0.78fr);
  gap: 0.75rem;
  align-items: stretch;
}

.trk-clock-panel__time {
  display: grid;
  align-content: center;
  min-width: 0;
  text-align: left;
}

.trk-clock-panel__time > strong {
  display: block;
  margin: 0.7rem 0 0.15rem;
  color: #ffffff;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

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

.trk-clock-panel__time > small {
  color: rgba(248, 251, 255, 0.78);
  font-weight: 800;
  text-transform: capitalize;
}

.trk-clock-panel > small {
  color: rgba(248, 251, 255, 0.78);
  font-weight: 800;
  text-transform: capitalize;
}

.trk-clock-panel .trk-portal-eyebrow {
  justify-content: flex-start;
  color: rgba(248, 251, 255, 0.82);
}

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

.trk-coach-identity {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.25rem 0 0.25rem 0.75rem;
  border-left: 1px solid rgba(248, 251, 255, 0.16);
  border-radius: var(--trk-radius-sm);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.trk-coach-identity:hover {
  background: rgba(248, 251, 255, 0.06);
  color: #ffffff;
}

.trk-coach-identity:focus-visible {
  outline: 3px solid rgba(210, 227, 252, 0.36);
  outline-offset: 2px;
}

.trk-coach-identity__crest {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid rgba(248, 251, 255, 0.24);
  border-radius: 8px;
  background: #ffffff;
  color: var(--trk-blue-dark);
  font-size: 1.6rem;
}

.trk-coach-identity__crest img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}

.trk-coach-identity__copy {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  min-width: 0;
}

.trk-coach-identity__copy strong,
.trk-coach-identity__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-coach-identity__copy strong {
  color: #ffffff;
  font-family: "Manrope", "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.trk-coach-identity__copy small {
  color: rgba(248, 251, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
}

.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: 1px solid rgba(60, 64, 67, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(32, 33, 36, 0.2);
}

.trk-selection-modal {
  --selection-accent: #16876c;
  --selection-accent-soft: rgba(22, 135, 108, 0.08);
  --selection-accent-border: rgba(22, 135, 108, 0.28);
  --selection-accent-hover: #11715b;
  --selection-ink: #202124;
  --selection-copy: #5f6368;
  --selection-muted: #80868b;
  --selection-inset: #f1f3f4;
  --selection-line: rgba(60, 64, 67, 0.18);
  --selection-line-soft: rgba(60, 64, 67, 0.1);
}

.trk-selection-modal[data-selection-mode="training"] {
  --selection-accent: #1a73e8;
  --selection-accent-soft: rgba(26, 115, 232, 0.08);
  --selection-accent-border: rgba(26, 115, 232, 0.28);
  --selection-accent-hover: #155fc0;
}

.trk-selection-modal[data-selection-mode="live"] {
  --selection-accent: #b3261e;
  --selection-accent-soft: rgba(179, 38, 30, 0.07);
  --selection-accent-border: rgba(179, 38, 30, 0.26);
  --selection-accent-hover: #922019;
}

.trk-selection-dialog {
  width: min(620px, calc(100% - 24px));
  max-width: 620px;
  margin-inline: auto;
}

.modal.fade .trk-selection-dialog {
  transform: translateY(10px) scale(0.985);
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1);
}

.modal.show .trk-selection-dialog {
  transform: none;
}

.trk-selection-header {
  position: relative;
  align-items: flex-start;
  padding: 20px 20px 20px 24px;
  border-bottom: 1px solid var(--selection-line-soft);
  background: #ffffff;
}

.trk-selection-header::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--selection-accent);
  content: "";
}

.trk-selection-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.trk-selection-action-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--selection-accent-border);
  border-radius: 4px;
  background: var(--selection-accent-soft);
  color: var(--selection-accent);
  font-size: 1rem;
}

.trk-selection-eyebrow {
  display: block;
  margin: 1px 0 4px;
  color: var(--selection-accent);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.trk-selection-modal .modal-title {
  margin: 0;
  color: var(--selection-ink);
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.trk-selection-heading p {
  max-width: 440px;
  margin: 4px 0 0;
  color: var(--selection-copy);
  font-size: 0.79rem;
  line-height: 1.5;
}

.trk-selection-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -4px -4px 0 12px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--selection-copy);
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.trk-selection-close:hover {
  border-color: var(--selection-line-soft);
  background: var(--selection-inset);
  color: var(--selection-ink);
}

.trk-selection-close:focus-visible,
.trk-selection-cancel:focus-visible,
.trk-selection-confirm:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: 2px;
}

.trk-selection-body {
  display: grid;
  gap: 20px;
  padding: 20px 24px 24px;
}

.trk-selection-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.trk-selection-step span {
  color: var(--selection-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.trk-selection-step i {
  position: relative;
  display: block;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--selection-line-soft);
}

.trk-selection-step i::before {
  position: absolute;
  inset: 0;
  background: var(--selection-accent);
  content: "";
}

.trk-goalkeeper-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.trk-goalkeeper-picker legend {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 0;
}

.trk-goalkeeper-picker legend > span {
  color: var(--selection-ink);
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
}

.trk-goalkeeper-picker legend small {
  color: var(--selection-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.trk-goalkeeper-options {
  display: grid;
  gap: 8px;
  max-height: min(326px, 42vh);
  padding: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--selection-line) transparent;
}

.trk-goalkeeper-option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.trk-goalkeeper-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.trk-goalkeeper-option__content {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 8px 12px;
  border: 1px solid var(--selection-line);
  border-radius: 4px;
  background: var(--selection-inset);
  color: var(--selection-ink);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.trk-goalkeeper-option:hover .trk-goalkeeper-option__content {
  border-color: var(--selection-accent-border);
  background: var(--selection-accent-soft);
}

.trk-goalkeeper-option > input:checked + .trk-goalkeeper-option__content {
  border-color: var(--selection-accent);
  background: var(--selection-accent-soft);
}

.trk-goalkeeper-option > input:focus-visible + .trk-goalkeeper-option__content {
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: 2px;
}

.trk-goalkeeper-option__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--selection-line-soft);
  border-radius: 50%;
  background: #ffffff;
  color: var(--selection-accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.trk-goalkeeper-option__identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.trk-goalkeeper-option__identity strong,
.trk-goalkeeper-option__identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-goalkeeper-option__identity strong {
  color: var(--selection-ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.trk-goalkeeper-option__identity small {
  color: var(--selection-copy);
  font-size: 0.72rem;
}

.trk-goalkeeper-option__check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--selection-line);
  border-radius: 50%;
  background: #ffffff;
  color: transparent;
  font-size: 0.58rem;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.trk-goalkeeper-option > input:checked + .trk-goalkeeper-option__content .trk-goalkeeper-option__check {
  border-color: var(--selection-accent);
  background: var(--selection-accent);
  color: #ffffff;
}

.trk-selection-empty {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--selection-line);
  border-radius: 4px;
  background: var(--selection-inset);
}

.trk-selection-empty > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: #ffffff;
  color: var(--selection-accent);
}

.trk-selection-empty > div {
  display: grid;
  gap: 3px;
}

.trk-selection-empty strong {
  color: var(--selection-ink);
  font-size: 0.8rem;
}

.trk-selection-empty small {
  color: var(--selection-copy);
  font-size: 0.72rem;
  line-height: 1.4;
}

.trk-selection-empty a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--selection-accent-border);
  border-radius: 4px;
  color: var(--selection-accent);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
}

.trk-selection-empty a:hover {
  background: var(--selection-accent-soft);
}

.trk-selection-footer {
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--selection-line-soft);
  background: #f8f9fa;
}

.trk-selection-cancel,
.trk-selection-confirm {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.trk-selection-cancel {
  border: 1px solid transparent;
  background: transparent;
  color: var(--selection-copy);
}

.trk-selection-cancel:hover {
  border-color: var(--selection-line);
  background: #ffffff;
  color: var(--selection-ink);
}

.trk-selection-confirm {
  min-width: 152px;
  border: 1px solid var(--selection-accent);
  background: var(--selection-accent);
  color: #ffffff;
}

.trk-selection-confirm:hover:not(:disabled) {
  border-color: var(--selection-accent-hover);
  background: var(--selection-accent-hover);
}

.trk-selection-confirm:active:not(:disabled) {
  transform: translateY(1px);
}

.trk-selection-confirm:disabled {
  cursor: not-allowed;
  border-color: var(--selection-line);
  background: var(--selection-line-soft);
  color: var(--selection-muted);
}

@media (max-width: 575.98px) {
  .trk-selection-modal .modal-dialog {
    align-items: flex-end;
    min-height: calc(100% - 12px);
    margin: 12px auto 0;
  }

  .trk-selection-dialog {
    width: 100%;
    max-width: none;
  }

  .trk-selection-modal .trk-modal-content {
    max-height: calc(100dvh - 12px);
    border-radius: 8px 8px 0 0;
  }

  .trk-selection-header {
    padding: 16px 16px 16px 20px;
  }

  .trk-selection-heading {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

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

  .trk-selection-heading p {
    font-size: 0.74rem;
  }

  .trk-selection-body {
    gap: 16px;
    padding: 16px 20px 20px;
    overflow-y: auto;
  }

  .trk-goalkeeper-options {
    max-height: none;
  }

  .trk-selection-empty {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .trk-selection-empty > span {
    width: 40px;
    height: 40px;
  }

  .trk-selection-empty a {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 44px;
  }

  .trk-selection-footer {
    padding: 12px 20px max(12px, env(safe-area-inset-bottom));
  }

  .trk-selection-cancel,
  .trk-selection-confirm {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal.fade .trk-selection-dialog,
  .trk-goalkeeper-option__content,
  .trk-goalkeeper-option__check,
  .trk-selection-close,
  .trk-selection-cancel,
  .trk-selection-confirm {
    transition: none;
  }
}

.trk-profile-workspace-nav {
  overflow: hidden;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: var(--trk-panel);
}

.trk-profile-workspace-nav__heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 56px;
  padding: 0.62rem 0.82rem;
  border-bottom: 1px solid var(--trk-line);
  background: #f3f7fc;
}

.trk-profile-workspace-nav__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--trk-radius-sm);
  background: var(--trk-blue-soft);
  color: var(--trk-blue-dark);
}

.trk-profile-workspace-nav__heading > div {
  display: grid;
  min-width: 0;
}

.trk-profile-workspace-nav__heading small,
.trk-profile-workspace-nav__hint {
  color: var(--trk-muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
}

.trk-profile-workspace-nav__heading > div > small {
  color: var(--trk-blue-dark);
  text-transform: uppercase;
}

.trk-profile-workspace-nav__heading strong {
  color: var(--trk-ink);
  font-family: "Manrope", "Poppins", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
}

.trk-profile-workspace-nav__hint {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.58rem;
  border: 1px solid var(--trk-line);
  border-radius: 999px;
  background: #ffffff;
  white-space: nowrap;
}

.trk-dashboard-tabs-shell {
  width: 100%;
  background: #f8fafc;
}

.trk-dashboard-tabs-viewport {
  width: 100%;
  min-width: 0;
}

.trk-dashboard-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.38rem;
  width: 100%;
  margin: 0;
  padding: 0.42rem;
  background: #f8fafc;
}

.trk-dashboard-tabs .nav-item {
  flex: 1 1 0;
  min-width: 56px;
  transition: flex 0.18s ease;
}

.trk-dashboard-tabs .nav-item.is-active {
  flex: 0 0 auto;
  min-width: max-content;
}

.trk-dashboard-tabs .nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.52rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 0.58rem 0.75rem;
  border: 1px solid var(--trk-line) !important;
  border-radius: var(--trk-radius-sm) !important;
  background: #ffffff !important;
  color: var(--trk-muted) !important;
  box-shadow: none !important;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease;
}

.trk-dashboard-tabs .nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--trk-blue);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.trk-dashboard-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: var(--trk-panel-soft);
  color: var(--trk-muted);
  font-size: 0.84rem;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.trk-dashboard-tab-copy {
  display: grid;
  min-width: 0;
  gap: 0.06rem;
}

.trk-dashboard-tab-copy small {
  overflow: hidden;
  color: var(--trk-muted);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trk-dashboard-tab-copy strong {
  overflow: hidden;
  color: var(--trk-ink);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-dashboard-tabs .nav-item.is-active .nav-link {
  width: max-content;
  min-width: 100%;
}

.trk-dashboard-tabs .nav-item.is-active .trk-dashboard-tab-copy small,
.trk-dashboard-tabs .nav-item.is-active .trk-dashboard-tab-copy strong {
  overflow: visible;
  text-overflow: clip;
}

.trk-dashboard-tabs .nav-link:hover {
  background: var(--trk-panel-soft) !important;
  color: var(--trk-ink) !important;
}

.trk-dashboard-tabs .nav-link:hover .trk-dashboard-tab-icon {
  border-color: rgba(37, 99, 235, 0.22);
  background: var(--trk-blue-soft);
  color: var(--trk-blue-dark);
}

.trk-dashboard-tabs .nav-link.active {
  border-color: rgba(37, 99, 235, 0.34) !important;
  background: rgba(37, 99, 235, 0.06) !important;
  color: var(--trk-blue-dark) !important;
}

.trk-dashboard-tabs .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

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

.trk-dashboard-tabs .nav-link.active .trk-dashboard-tab-copy small,
.trk-dashboard-tabs .nav-link.active .trk-dashboard-tab-copy strong {
  color: var(--trk-blue-dark);
}

.trk-dashboard-tabs .nav-link:focus-visible {
  z-index: 1;
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: -3px;
}

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

@media (max-width: 991.98px) {
  .trk-goalkeeper-hero-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .trk-goalkeeper-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .trk-goalkeeper-kpi-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 767.98px) {
  .trk-dashboard-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trk-dashboard-tabs .nav-item,
  .trk-dashboard-tabs .nav-item.is-active {
    min-width: 0;
  }

  .trk-dashboard-tabs .nav-item.is-active {
    grid-column: span 2;
  }

  .trk-dashboard-tabs .nav-item.is-active .nav-link {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .trk-goalkeeper-profile-hero {
    gap: 0.82rem;
    padding: 0.9rem;
  }

  .trk-goalkeeper-profile-hero::before {
    width: 5px;
  }

  .trk-goalkeeper-profile-hero::after {
    height: 42%;
    background-size: 34px 34px;
  }

  .trk-goalkeeper-identity {
    gap: 0.78rem;
    align-items: flex-start;
  }

  .trk-goalkeeper-avatar {
    width: 74px;
    height: 74px;
    font-size: 1.35rem;
  }

  .trk-goalkeeper-status {
    min-height: 28px;
    padding: 0.32rem 0.5rem;
    font-size: 0.58rem;
    letter-spacing: 0.07em;
  }

  .trk-goalkeeper-identity-copy h1 {
    margin: 0.46rem 0 0.42rem;
    font-size: clamp(1.65rem, 10vw, 2.35rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .trk-goalkeeper-meta {
    gap: 0.36rem;
    font-size: 0.78rem;
  }

  .trk-goalkeeper-meta li {
    max-width: 100%;
  }

  .trk-goalkeeper-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 0.45rem;
  }

  .trk-goalkeeper-hero-actions .trk-portal-btn {
    width: 100%;
    min-height: 40px;
    padding: 0.54rem 0.5rem;
    font-size: 0.74rem;
  }

  .trk-goalkeeper-hero-actions .trk-live-entry-btn {
    min-width: 0;
    min-height: 50px;
    padding: 0.38rem 0.46rem;
  }

  .trk-live-entry-btn__arrow {
    display: none;
  }

  .trk-goalkeeper-hero-actions .trk-portal-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .trk-goalkeeper-kpi-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
  }

  .trk-goalkeeper-kpi {
    min-height: 76px;
    padding: 0.68rem 0.72rem;
  }

  .trk-goalkeeper-kpi span {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  .trk-goalkeeper-kpi strong {
    margin-top: 0.38rem;
    font-size: 1.55rem;
  }

  .trk-profile-workspace-nav__heading {
    min-height: 52px;
    padding: 0.55rem 0.62rem;
  }

  .trk-profile-workspace-nav__hint {
    display: none;
  }

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

  .trk-dashboard-tabs .nav-item.is-active {
    grid-column: 1 / -1;
  }

  .trk-dashboard-tabs .nav-link {
    min-height: 56px;
    padding: 0.48rem 0.62rem;
  }

  .trk-dashboard-tab-copy strong {
    font-size: 0.75rem;
  }

  .trk-dashboard-tab-copy small {
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trk-dashboard-tabs .nav-link,
  .trk-dashboard-tabs .nav-link::after,
  .trk-dashboard-tabs .nav-item,
  .trk-dashboard-tab-icon,
  .trk-live-entry-btn__arrow,
  .trk-directory-workspace,
  .trk-directory-filter-disclosure__chevron {
    transition: none;
  }

  .trk-directory-check-filters {
    animation: none;
  }
}

.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-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-status-nav {
    overflow-x: auto;
    order: 2;
    width: calc(100% + 1.44rem);
    margin: 0 -0.72rem;
    padding: 0 0.72rem;
    -webkit-overflow-scrolling: touch;
  }

  .trk-directory-status-nav a {
    flex: 0 0 auto;
  }

  .trk-directory-commandbar {
    gap: 0.5rem;
    margin: 0 -0.72rem;
    padding: 0.6rem 0.72rem 0;
  }

  .trk-directory-quick-actions {
    display: flex;
    flex-wrap: nowrap;
    order: 1;
    width: 100%;
    padding-bottom: 0;
  }

  .trk-directory-quick-actions .trk-portal-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    padding: 0.42rem 0.35rem;
    font-size: 0.68rem;
  }

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

  .trk-directory-privacy-notice {
    margin: 0.75rem 0 0;
  }

  .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-title-row {
    justify-content: space-between;
    width: 100%;
  }

  .trk-active-count-pill {
    min-height: 30px;
    padding: 0.34rem 0.52rem;
    font-size: 0.68rem;
  }

  .trk-directory-controls {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
  }

  .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-panel .trk-search-box input {
    min-width: 0;
  }

  .trk-clear-filter-btn {
    min-height: 46px;
    padding: 0 0.68rem;
  }

  .trk-clear-filter-btn span {
    display: none;
  }

  .trk-directory-sortbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.42rem;
    margin: 0 -0.72rem 0.72rem;
    padding: 0.62rem 0.72rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
  }

  .trk-directory-sortbar > span {
    flex: 0 0 auto;
    font-size: 0.58rem;
  }

  .trk-sort-control {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0.38rem 0.56rem;
    font-size: 0.68rem;
  }

  .trk-directory-check-filters {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  .trk-directory-filter-disclosure > summary {
    grid-template-columns: 32px minmax(0, 1fr) auto 16px;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.5rem 0.72rem;
  }

  .trk-directory-filter-disclosure__icon {
    width: 32px;
    height: 32px;
  }

  .trk-directory-filter-disclosure__copy strong {
    font-size: 0.76rem;
  }

  .trk-directory-filter-disclosure__copy small,
  .trk-directory-filter-disclosure__count {
    font-size: 0.62rem;
  }

  .trk-check-filter-group {
    padding: 0.75rem 0.72rem;
    box-shadow: none;
  }

  .trk-check-filter-group:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--trk-line);
  }

  .trk-check-filter-options {
    flex-direction: column;
    flex-wrap: nowrap;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .trk-check-filter-option {
    flex: 0 0 auto;
    max-width: 100%;
    font-size: 0.7rem;
  }

  .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(auto-fit, minmax(44px, 1fr));
    gap: 0.5rem;
    width: 100%;
  }

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

  .trk-goalkeeper-table .trk-icon-actions .trk-icon-action-danger {
    background: #ffffff;
    color: #b91c1c;
  }

  .trk-directory-workspace--inactive .trk-status-action-form,
  .trk-directory-workspace--inactive .trk-status-action {
    width: 100%;
  }

.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);
}

.trk-match-link-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(22, 135, 108, 0.2);
  border-radius: var(--trk-radius-sm);
  background: rgba(22, 135, 108, 0.055);
}

.trk-match-link-panel__intro {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.trk-match-link-panel__icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 135, 108, 0.2);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  color: #16876c;
}

.trk-match-link-panel label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--trk-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.trk-match-link-panel p {
  margin: 0;
  color: var(--trk-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.trk-match-link-panel .form-select {
  min-height: 48px;
  border-color: rgba(22, 135, 108, 0.24);
  border-radius: var(--trk-radius-sm);
  background-color: #ffffff;
  color: var(--trk-ink);
  font-weight: 700;
}

.trk-match-link-panel .form-select:focus {
  border-color: #16876c;
  box-shadow: 0 0 0 3px rgba(22, 135, 108, 0.14);
}

.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,
.trk-match-meta a {
  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-meta .trk-match-meta__linked {
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(167, 243, 208, 0.26);
  border-radius: var(--trk-radius-sm);
  background: rgba(22, 135, 108, 0.24);
  color: #d1fae5;
}

.trk-match-meta .trk-match-meta__linked:hover {
  border-color: rgba(167, 243, 208, 0.48);
  color: #ffffff;
}

.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-linked-live-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(22, 135, 108, 0.22);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
}

.trk-linked-live-comparison__main {
  min-width: 0;
  padding: 1rem;
}

.trk-linked-live-comparison__heading {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.trk-linked-live-comparison__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 135, 108, 0.22);
  border-radius: var(--trk-radius-sm);
  background: rgba(22, 135, 108, 0.08);
  color: #16876c;
}

.trk-linked-live-comparison h2 {
  margin: 0.25rem 0 0.2rem;
  color: var(--trk-ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.trk-linked-live-comparison__heading p {
  margin: 0;
  color: var(--trk-muted);
  font-size: 0.82rem;
}

.trk-linked-live-comparison__table {
  width: 100%;
  border-collapse: collapse;
  color: var(--trk-ink);
  font-size: 0.8rem;
}

.trk-linked-live-comparison__table th,
.trk-linked-live-comparison__table td {
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--trk-line);
  text-align: left;
}

.trk-linked-live-comparison__table thead th {
  border-top: 0;
  background: var(--trk-panel-soft);
  color: var(--trk-muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trk-linked-live-comparison__table tbody th {
  font-weight: 800;
}

.trk-linked-live-comparison__table tbody td {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.trk-linked-live-comparison__explore {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-left: 1px solid rgba(22, 135, 108, 0.18);
  background: rgba(22, 135, 108, 0.055);
}

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

.trk-linked-live-comparison__counts div {
  padding: 0.75rem;
  border: 1px solid rgba(22, 135, 108, 0.16);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
}

.trk-linked-live-comparison__counts strong,
.trk-linked-live-comparison__counts span {
  display: block;
}

.trk-linked-live-comparison__counts strong {
  color: var(--trk-ink);
  font-size: 1.35rem;
  line-height: 1;
}

.trk-linked-live-comparison__counts span {
  margin-top: 0.35rem;
  color: var(--trk-muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trk-linked-live-comparison__explore ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  color: var(--trk-ink);
  font-size: 0.75rem;
  font-weight: 800;
  list-style: none;
}

.trk-linked-live-comparison__explore li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.trk-linked-live-comparison__explore li i {
  width: 16px;
  color: #16876c;
  text-align: center;
}

.trk-linked-live-comparison__action {
  display: flex;
  min-height: 48px;
  margin-top: auto;
  padding: 0.65rem 0.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #16876c;
  border-radius: var(--trk-radius-sm);
  background: #16876c;
  color: #ffffff;
}

.trk-linked-live-comparison__action span,
.trk-linked-live-comparison__action small,
.trk-linked-live-comparison__action strong {
  display: block;
}

.trk-linked-live-comparison__action small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trk-linked-live-comparison__action strong {
  margin-top: 0.15rem;
  font-size: 0.8rem;
}

.trk-linked-live-comparison__action:hover {
  border-color: #116b56;
  background: #116b56;
  color: #ffffff;
}

.trk-linked-live-comparison__action:focus-visible {
  outline: 3px solid rgba(22, 135, 108, 0.2);
  outline-offset: 2px;
}

.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: #334155;
  font-size: 0.78rem;
  font-weight: 900;
}

.trk-report-tabs .nav-link:not(.active):hover,
.trk-report-tabs .nav-link:not(.active):focus-visible {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.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-link-panel {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .trk-match-link-panel__control {
    min-width: 0;
  }

  .trk-match-link-panel .form-select {
    width: 100%;
    font-size: 0.82rem;
  }

  .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,
  .trk-linked-live-comparison {
    grid-template-columns: 1fr;
  }

  .trk-linked-live-comparison__explore {
    border-top: 1px solid rgba(22, 135, 108, 0.18);
    border-left: 0;
  }

  .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-linked-live-comparison__main,
  .trk-linked-live-comparison__explore {
    padding: 0.75rem;
  }

  .trk-linked-live-comparison__heading {
    margin-bottom: 0.75rem;
  }

  .trk-linked-live-comparison__table {
    min-width: 420px;
  }

  .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 {
  max-width: 1480px;
  margin-inline: auto;
  font-family: "Manrope", "Poppins", sans-serif;
}

.trk-training-form-toolbar {
  margin-bottom: 1rem;
  padding: 0.65rem 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.trk-training-form-toolbar .trk-compact-context strong {
  font-family: "Manrope", "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 750;
}

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

.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: 750;
  letter-spacing: 0;
  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);
  background: #f8fafc;
  color: var(--trk-ink);
  font-weight: 650;
}

.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: #f8fafc;
}

.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-load-calculation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.2rem 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: #eff6ff;
}

.trk-load-calculation > span,
.trk-load-calculation > small {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 650;
}

.trk-load-calculation > span i {
  margin-right: 0.4rem;
  color: #2563eb;
}

.trk-load-calculation > strong {
  grid-row: span 2;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 850;
}

.trk-load-calculation.is-invalid {
  border-color: #fecaca;
  background: #fef2f2;
}

.trk-load-calculation.is-invalid > strong,
.trk-load-calculation.is-invalid > small {
  color: #b91c1c;
}

.trk-profile-load-capture,
.trk-profile-load-history {
  overflow: hidden;
  border: 1px solid rgba(60, 64, 67, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.trk-profile-load-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 1rem;
  border-bottom: 1px solid rgba(60, 64, 67, 0.1);
}

.trk-profile-load-body,
.trk-profile-load-history {
  padding: 1rem;
}

.trk-profile-load-capture .form-label {
  color: #5f6368;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trk-profile-load-capture .form-control,
.trk-profile-load-capture .form-select,
.trk-profile-load-capture .input-group-text {
  min-height: 44px;
  border-color: rgba(60, 64, 67, 0.18);
  border-radius: 4px;
}

.trk-profile-load-capture .form-control,
.trk-profile-load-capture .form-select {
  background-color: #f8f9fa;
  color: #202124;
  font-weight: 650;
}

.trk-profile-load-capture .form-control:focus,
.trk-profile-load-capture .form-select:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

.trk-profile-load-capture textarea.form-control {
  min-height: 108px;
}

.trk-profile-load-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: stretch;
}

.trk-profile-load-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 164px;
}

.trk-profile-load-table {
  font-size: 0.82rem;
}

.trk-profile-load-table thead th {
  border-bottom-color: rgba(60, 64, 67, 0.18);
  color: #5f6368;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trk-profile-load-table tbody td {
  border-bottom-color: rgba(60, 64, 67, 0.1);
  color: #202124;
}

.trk-load-context {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(26, 115, 232, 0.18);
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.08);
  color: #1a5db5;
  font-size: 0.72rem;
  font-weight: 750;
}

.trk-load-context-match {
  border-color: rgba(22, 135, 108, 0.2);
  background: rgba(22, 135, 108, 0.08);
  color: #126c57;
}

.trk-category-participation-capture,
.trk-category-participation-history,
.trk-category-timeline-card {
  overflow: hidden;
  border: 1px solid rgba(60, 64, 67, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.trk-category-participation-capture {
  margin-bottom: 20px;
}

.trk-category-participation-header,
.trk-category-participation-history > header,
.trk-category-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(60, 64, 67, 0.1);
}

.trk-category-participation-header h2,
.trk-category-participation-history h3,
.trk-category-timeline-header h3 {
  margin: 4px 0 0;
  color: #202124;
  font-size: 1rem;
  font-weight: 800;
}

.trk-category-participation-header p,
.trk-category-timeline-header p {
  margin: 6px 0 0;
  color: #5f6368;
  font-size: 0.78rem;
  font-weight: 600;
}

.trk-category-primary-reference {
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid rgba(26, 115, 232, 0.18);
  border-radius: 4px;
  background: rgba(26, 115, 232, 0.06);
}

.trk-category-primary-reference small,
.trk-category-primary-reference strong {
  display: block;
}

.trk-category-primary-reference small {
  color: #5f6368;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trk-category-primary-reference strong {
  margin-top: 2px;
  color: #1a5db5;
  font-size: 0.82rem;
}

#category-participation-batch-form {
  padding: 16px;
}

.trk-category-participation-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trk-category-participation-team {
  grid-column: span 2;
}

.trk-category-participation-capture .form-label,
.trk-category-month-filter label {
  margin-bottom: 6px;
  color: #5f6368;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trk-category-participation-capture .form-control,
.trk-category-participation-capture .form-select,
.trk-category-month-filter .form-select {
  min-height: 42px;
  border-color: rgba(60, 64, 67, 0.18);
  border-radius: 4px;
  background: #f8f9fa;
  color: #202124;
  font-weight: 650;
}

.trk-category-participation-capture .form-control:focus,
.trk-category-participation-capture .form-select:focus,
.trk-category-month-filter .form-select:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

.trk-category-month-help {
  display: block;
  margin-top: 4px;
  color: #80868b;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.4;
}

.trk-category-day-picker {
  margin: 20px 0 0;
  padding: 16px;
  border: 1px solid rgba(60, 64, 67, 0.1);
  border-radius: 4px;
  background: #f8f9fa;
}

.trk-category-day-picker legend {
  float: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 0 12px;
  color: #202124;
  font-size: 0.82rem;
  font-weight: 800;
}

.trk-category-day-picker legend small {
  color: #80868b;
  font-size: 0.7rem;
  font-weight: 600;
}

.trk-category-day-weekdays,
.trk-category-day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(36px, 1fr));
  gap: 4px;
}

.trk-category-day-weekdays {
  margin-bottom: 4px;
}

.trk-category-day-weekdays span {
  padding: 4px;
  color: #80868b;
  font-size: 0.64rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.trk-category-day {
  position: relative;
  min-height: 44px;
  border: 1px solid rgba(60, 64, 67, 0.14);
  border-radius: 4px;
  background: #ffffff;
  color: #5f6368;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}

.trk-category-day input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.trk-category-day > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  font-size: 0.78rem;
  font-weight: 750;
}

.trk-category-day:hover {
  border-color: rgba(26, 115, 232, 0.4);
  background: rgba(26, 115, 232, 0.05);
}

.trk-category-day:has(input:focus-visible) {
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: 2px;
}

.trk-category-day.is-selected {
  border-color: #1a73e8;
  background: #1a73e8;
  color: #ffffff;
}

.trk-category-day.is-today:not(.is-selected) {
  border-color: #1a73e8;
  color: #1a5db5;
}

.trk-category-day.is-weekend:not(.is-selected) {
  background: #f1f3f4;
}

.trk-category-day.is-outside {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

.trk-category-participation-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.trk-category-participation-footer textarea {
  min-height: 78px;
}

.trk-category-participation-footer .trk-portal-btn {
  min-width: 180px;
  min-height: 44px;
}

.trk-category-participation-footer .trk-portal-btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.trk-category-participation-history > header > strong {
  color: #5f6368;
  font-size: 0.76rem;
}

.trk-category-participation-table {
  font-size: 0.8rem;
}

.trk-category-participation-table th {
  border-bottom-color: rgba(60, 64, 67, 0.18);
  color: #5f6368;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trk-category-participation-table td {
  border-bottom-color: rgba(60, 64, 67, 0.1);
  color: #202124;
}

.trk-category-participation-table .trk-category-actions-cell {
  width: 52px;
  text-align: right;
}

.trk-category-delete-form {
  display: inline-flex;
  margin: 0;
}

.trk-category-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(60, 64, 67, 0.18);
  border-radius: 4px;
  background: #ffffff;
  color: #b3261e;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}

.trk-category-delete-button:hover {
  border-color: rgba(179, 38, 30, 0.34);
  background: rgba(179, 38, 30, 0.07);
  color: #8c1d18;
}

.trk-category-delete-button:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: 2px;
}

.trk-category-activity,
.trk-category-context {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid rgba(26, 115, 232, 0.18);
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.08);
  color: #1a5db5;
  font-size: 0.68rem;
  font-weight: 750;
}

.trk-category-activity--match {
  border-color: rgba(22, 135, 108, 0.2);
  background: rgba(22, 135, 108, 0.08);
  color: #126c57;
}

.trk-category-context.is-other {
  border-color: rgba(111, 66, 193, 0.2);
  background: rgba(111, 66, 193, 0.08);
  color: #5b35a1;
}

.trk-category-timeline-card {
  height: 100%;
}

.trk-category-timeline-header {
  align-items: end;
}

.trk-category-month-filter {
  min-width: 190px;
}

.trk-category-month-filter label {
  display: block;
}

.trk-category-timeline-canvas {
  overflow-x: auto;
  height: 372px;
  padding: 16px 16px 6px;
  scrollbar-color: rgba(60, 64, 67, 0.28) transparent;
  scrollbar-width: thin;
}

.trk-category-timeline-canvas:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: -3px;
}

.trk-category-timeline-track {
  height: 340px;
  min-width: max(
    100%,
    calc((var(--trk-timeline-day-count) * 40px) + 132px)
  );
}

.trk-category-timeline-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 16px;
  border-top: 1px solid rgba(60, 64, 67, 0.1);
  scrollbar-color: rgba(60, 64, 67, 0.28) transparent;
  scrollbar-width: thin;
}

.trk-category-day-counters {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  padding-right: 12px;
  border-right: 1px solid rgba(60, 64, 67, 0.1);
}

.trk-category-total-counter,
.trk-category-counter {
  min-height: 46px;
  border: 1px solid rgba(60, 64, 67, 0.1);
  border-radius: 4px;
  background: #f8f9fa;
}

.trk-category-total-counter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 132px;
  padding: 6px 10px;
}

.trk-category-total-counter small,
.trk-category-total-counter strong,
.trk-category-counter small,
.trk-category-counter strong {
  display: block;
  white-space: nowrap;
}

.trk-category-total-counter small {
  color: #80868b;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trk-category-total-counter strong {
  margin-top: 2px;
  color: #202124;
  font-size: 0.86rem;
}

.trk-category-counter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  box-shadow: inset 3px 0 0 var(--trk-category-color);
}

.trk-category-counter > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--trk-category-color);
}

.trk-category-counter small {
  color: #5f6368;
  font-size: 0.68rem;
  font-weight: 650;
}

.trk-category-counter strong {
  color: #202124;
  font-size: 0.8rem;
}

.trk-category-timeline-legend {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  min-width: max-content;
}

.trk-category-timeline-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5f6368;
  font-size: 0.74rem;
  font-weight: 700;
}

.trk-category-timeline-legend > span:not(.trk-category-color-key) > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5f6368;
}

.trk-category-timeline-legend > span > i.is-match {
  border-radius: 2px;
  transform: rotate(45deg);
}

.trk-category-color-key > span {
  display: inline-flex;
  gap: 3px;
}

.trk-category-color-key > span > i {
  width: 6px;
  height: 14px;
  border-radius: 2px;
  background: #1a73e8;
}

.trk-category-color-key > span > i:nth-child(2) {
  background: #6f42c1;
}

.trk-category-color-key > span > i:nth-child(3) {
  background: #16876c;
}

.trk-category-timeline-legend > a {
  color: #1a5db5;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.trk-category-timeline-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 148px;
  padding: 20px;
}

.trk-category-timeline-empty > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: #f1f3f4;
  color: #5f6368;
}

.trk-category-timeline-empty strong {
  color: #202124;
  font-size: 0.9rem;
}

.trk-category-timeline-empty p {
  margin: 4px 0 0;
  color: #5f6368;
  font-size: 0.76rem;
}

@media (max-width: 991.98px) {
  .trk-category-participation-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trk-category-timeline-summary {
    padding-inline: 12px;
  }
}

@media (max-width: 575.98px) {
  .trk-category-participation-header,
  .trk-category-timeline-header {
    align-items: stretch;
    flex-direction: column;
  }

  .trk-category-primary-reference,
  .trk-category-month-filter {
    width: 100%;
  }

  .trk-category-participation-fields,
  .trk-category-participation-footer {
    grid-template-columns: 1fr;
  }

  .trk-category-participation-team {
    grid-column: auto;
  }

  .trk-category-day-picker {
    margin-inline: -4px;
    padding: 10px;
  }

  .trk-category-day-picker legend {
    align-items: flex-start;
    flex-direction: column;
  }

  .trk-category-day-weekdays,
  .trk-category-day-grid {
    grid-template-columns: repeat(7, minmax(32px, 1fr));
  }

  .trk-category-day {
    min-height: 40px;
  }

  .trk-category-day > span {
    min-height: 38px;
  }

  .trk-category-participation-footer .trk-portal-btn {
    width: 100%;
  }

  .trk-category-timeline-canvas {
    height: 332px;
    padding-inline: 8px;
  }

  .trk-category-timeline-track {
    height: 300px;
  }

  .trk-category-timeline-empty {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .trk-category-timeline-empty .trk-portal-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

}

.trk-goalkeeper-avatar,
.trk-player-avatar,
.trk-goalkeeper-option__avatar {
  position: relative;
}

.trk-injury-avatar-marker,
.trk-roster-injury-marker {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #c5221f;
  color: #ffffff;
  font-size: 0.68rem;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.22);
  z-index: 2;
}

.trk-goalkeeper-injury-status,
.trk-roster-injury-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  border: 1px solid rgba(197, 34, 31, 0.22);
  border-radius: 999px;
  background: rgba(197, 34, 31, 0.08);
  color: #a50e0e;
  font-size: 0.7rem;
  font-weight: 800;
}

.trk-goalkeeper-injury-status {
  margin-top: 7px;
  padding: 4px 9px;
}

.trk-injury-avatar-marker.is-limitation,
.trk-roster-injury-marker.is-limitation {
  background: var(--trk-caution);
}

.trk-goalkeeper-injury-status.is-limitation,
.trk-roster-injury-badge.is-limitation {
  border-color: var(--trk-caution-border);
  background: var(--trk-caution-soft);
  color: #8a4b00;
}

.trk-roster-injury-badge {
  margin-top: 4px;
  padding: 2px 7px;
}

.trk-injury-workspace {
  display: grid;
  gap: 20px;
}

.trk-injury-capture,
.trk-injury-history {
  overflow: hidden;
  border: 1px solid rgba(60, 64, 67, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.trk-injury-header,
.trk-injury-history > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(60, 64, 67, 0.1);
}

.trk-injury-header h2,
.trk-injury-history h3 {
  margin: 4px 0 0;
  color: #202124;
  font-size: 1rem;
  font-weight: 800;
}

.trk-injury-header p {
  margin: 6px 0 0;
  color: #5f6368;
  font-size: 0.78rem;
  font-weight: 600;
}

.trk-injury-eyebrow {
  color: #a50e0e;
}

.trk-injury-state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 156px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 115, 51, 0.2);
  border-radius: 4px;
  background: rgba(19, 115, 51, 0.06);
  color: #137333;
}

.trk-injury-state.is-injured {
  border-color: rgba(197, 34, 31, 0.22);
  background: rgba(197, 34, 31, 0.07);
  color: #a50e0e;
}

.trk-injury-state.is-limitation {
  border-color: var(--trk-caution-border);
  background: var(--trk-caution-soft);
  color: #8a4b00;
}

.trk-injury-state > i {
  font-size: 1.05rem;
}

.trk-injury-state small,
.trk-injury-state strong {
  display: block;
}

.trk-injury-state small {
  color: #5f6368;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trk-injury-state strong {
  margin-top: 2px;
  font-size: 0.8rem;
}

.trk-injury-form {
  padding: 16px;
}

.trk-health-record-type {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.trk-health-record-type > legend {
  float: none;
  width: 100%;
  margin: 0 0 8px;
  color: #202124;
  font-size: 0.8rem;
  font-weight: 800;
}

.trk-health-record-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.trk-health-record-type-options label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.trk-health-record-type-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.trk-health-record-type-options label > span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid rgba(60, 64, 67, 0.16);
  border-radius: 4px;
  background: #f8f9fa;
  color: #5f6368;
}

.trk-health-record-type-options label > span > i {
  grid-row: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: #ffffff;
  color: #80868b;
}

.trk-health-record-type-options strong,
.trk-health-record-type-options small {
  display: block;
}

.trk-health-record-type-options strong {
  color: #3c4043;
  font-size: 0.78rem;
  font-weight: 800;
}

.trk-health-record-type-options small {
  margin-top: 2px;
  color: #80868b;
  font-size: 0.65rem;
  font-weight: 600;
}

.trk-health-record-type-options label:has(input:checked) > span {
  border-color: #1a73e8;
  background: rgba(26, 115, 232, 0.055);
  box-shadow: inset 0 0 0 1px #1a73e8;
}

.trk-health-record-type-options label:has(input[value="INJURY"]:checked) > span > i {
  background: rgba(197, 34, 31, 0.08);
  color: #b3261e;
}

.trk-health-record-type-options label:has(input[value="LIMITATION"]:checked) > span > i {
  background: var(--trk-caution-soft);
  color: var(--trk-caution);
}

.trk-health-record-type-options label:has(input:focus-visible) > span {
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: 2px;
}

.trk-injury-area-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.trk-injury-area-fieldset legend {
  float: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 0 12px;
  color: #202124;
  font-size: 0.8rem;
  font-weight: 800;
}

.trk-injury-area-fieldset legend small {
  color: #80868b;
  font-size: 0.68rem;
  font-weight: 600;
}

.trk-injury-area-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(78px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  overscroll-behavior-inline: contain;
}

.trk-injury-area-option {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(32px, auto);
  align-items: start;
  min-width: 0;
  min-height: 122px;
  overflow: hidden;
  border: 1px solid rgba(60, 64, 67, 0.14);
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.trk-injury-area-option:hover {
  border-color: rgba(26, 115, 232, 0.38);
  background: #f8fbff;
}

.trk-injury-area-option:has(input:checked),
.trk-injury-area-option.is-selected {
  border-color: #1a73e8;
  background: rgba(26, 115, 232, 0.055);
  box-shadow: inset 0 0 0 1px #1a73e8;
}

.trk-injury-area-option:has(input:focus-visible) {
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: 2px;
}

.trk-injury-area-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.trk-injury-area-illustration {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-image: url("../img/injuries/lesiones_perfiles_portero.png");
  background-repeat: no-repeat;
  background-position: var(--trk-injury-sprite-x) var(--trk-injury-sprite-y);
  background-size: 400% 500%;
}

.trk-injury-area-name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 5px 4px 7px;
  color: #3c4043;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.trk-injury-area-check {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: rgba(60, 64, 67, 0.42);
  color: #ffffff;
  font-size: 0.58rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.trk-injury-area-option:has(input:checked) .trk-injury-area-check,
.trk-injury-area-option.is-selected .trk-injury-area-check {
  background: #1a73e8;
  opacity: 1;
  transform: scale(1);
}

.trk-injury-fields {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(210px, 0.8fr) minmax(260px, 1.5fr);
  gap: 12px;
  margin-top: 20px;
}

.trk-injury-notes-field {
  grid-column: 1 / -1;
}

.trk-injury-diagnosis-field,
.trk-injury-limitations-field {
  grid-column: 1 / -1;
}

.trk-injury-form .form-label,
.trk-injury-clear-form label {
  margin-bottom: 6px;
  color: #5f6368;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trk-injury-form .form-control,
.trk-injury-form .form-select,
.trk-injury-clear-form .form-control {
  min-height: 42px;
  border-color: rgba(60, 64, 67, 0.18);
  border-radius: 4px;
  background: #f8f9fa;
  color: #202124;
  font-weight: 650;
}

.trk-injury-form textarea.form-control {
  min-height: 82px;
}

.trk-injury-form .form-control:focus,
.trk-injury-form .form-select:focus,
.trk-injury-clear-form .form-control:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

.trk-injury-field-help {
  display: block;
  margin-top: 4px;
  color: #80868b;
  font-size: 0.64rem;
  font-weight: 600;
}

.trk-injury-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(26, 115, 232, 0.16);
  border-radius: 4px;
  background: rgba(26, 115, 232, 0.045);
}

.trk-injury-form-footer p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #5f6368;
  font-size: 0.72rem;
  font-weight: 650;
}

.trk-injury-form-footer p i {
  color: #1a5db5;
}

.trk-injury-history > header > strong {
  color: #5f6368;
  font-size: 0.74rem;
}

.trk-injury-active-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8f9fa;
}

.trk-injury-record {
  display: grid;
  grid-template-columns: minmax(128px, 0.65fr) minmax(260px, 1.6fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(197, 34, 31, 0.2);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: inset 3px 0 0 #c5221f;
}

.trk-injury-record.is-limitation {
  border-color: var(--trk-caution-border);
  box-shadow: inset 3px 0 0 var(--trk-caution);
}

.trk-injury-record.is-limitation .trk-injury-record-status {
  color: #8a4b00;
}

.trk-injury-record-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a50e0e;
}

.trk-injury-record-status > i {
  font-size: 1.1rem;
}

.trk-injury-record-status small,
.trk-injury-record-status strong {
  display: block;
}

.trk-injury-record-status small {
  color: #80868b;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trk-injury-record-status strong,
.trk-injury-record-main h4 {
  font-size: 0.82rem;
  font-weight: 800;
}

.trk-injury-record-main h4 > span {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid rgba(60, 64, 67, 0.14);
  border-radius: 999px;
  background: #f1f3f4;
  color: #5f6368;
  font-size: 0.6rem;
  font-weight: 800;
  vertical-align: middle;
}

.trk-injury-record-main h4 {
  margin: 0;
  color: #202124;
}

.trk-injury-record-main > p,
.trk-injury-record-notes {
  margin: 3px 0 0;
  color: #5f6368;
  font-size: 0.7rem;
}

.trk-injury-record-main > p.trk-injury-training-limit {
  margin-top: 7px;
  padding: 7px 8px;
  border-left: 3px solid var(--trk-caution);
  background: var(--trk-caution-soft);
  color: #6f3d00;
  line-height: 1.4;
}

.trk-injury-training-limit i {
  margin-right: 5px;
}

.trk-injury-record-notes {
  display: block;
}

.trk-injury-record-dates {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.trk-injury-record-dates span {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.trk-injury-record-dates small {
  color: #80868b;
  font-size: 0.62rem;
  font-weight: 700;
}

.trk-injury-record-dates strong {
  color: #3c4043;
  font-size: 0.72rem;
}

.trk-injury-record-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.trk-injury-clear-form {
  flex: 1 1 auto;
}

.trk-injury-clear-form label {
  display: block;
}

.trk-injury-clear-form > div {
  display: grid;
  grid-template-columns: minmax(132px, 1fr) auto;
  gap: 6px;
}

.trk-injury-clear-button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #137333;
  border-radius: 4px;
  background: #137333;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
}

.trk-injury-clear-button i {
  margin-right: 6px;
}

.trk-injury-delete-form {
  display: inline-flex;
  margin: 0;
}

.trk-injury-delete-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 42px;
  border: 1px solid rgba(197, 34, 31, 0.22);
  border-radius: 4px;
  background: #ffffff;
  color: #b3261e;
}

.trk-injury-clear-button:focus-visible,
.trk-injury-delete-form button:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: 2px;
}

.trk-injury-history-table th {
  border-bottom-color: rgba(60, 64, 67, 0.18);
  color: #5f6368;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trk-injury-history-table td {
  border-bottom-color: rgba(60, 64, 67, 0.1);
  color: #3c4043;
  font-size: 0.76rem;
}

.trk-injury-history-table td:nth-child(2) strong,
.trk-injury-history-table td:nth-child(2) small {
  display: block;
}

.trk-injury-history-table td:nth-child(2) small {
  margin-top: 3px;
  color: #80868b;
}

.trk-injury-available-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(19, 115, 51, 0.2);
  border-radius: 999px;
  background: rgba(19, 115, 51, 0.07);
  color: #137333;
  font-size: 0.66rem;
  font-weight: 800;
}

.trk-health-history-type {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid rgba(197, 34, 31, 0.18);
  border-radius: 999px;
  background: rgba(197, 34, 31, 0.06);
  color: #a50e0e;
  font-size: 0.64rem;
  font-weight: 800;
  white-space: nowrap;
}

.trk-health-history-type.is-limitation {
  border-color: var(--trk-caution-border);
  background: var(--trk-caution-soft);
  color: #8a4b00;
}

.trk-injury-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 16px;
  color: #5f6368;
}

.trk-injury-empty > i {
  font-size: 1.35rem;
  color: #137333;
}

.trk-injury-empty strong {
  color: #202124;
  font-size: 0.82rem;
}

.trk-injury-empty p {
  margin: 3px 0 0;
  font-size: 0.72rem;
}

.trk-category-counter--injury {
  border-color: rgba(197, 34, 31, 0.18);
  background: rgba(197, 34, 31, 0.055);
}

.trk-category-counter--injury > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: transparent;
  color: #c5221f;
  font-size: 0.8rem;
}

.trk-category-counter em {
  display: block;
  color: #a50e0e;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 650;
}

.trk-category-timeline-legend > span > i.is-injury {
  border-radius: 2px;
  background: #c5221f;
}

@media (max-width: 1199.98px) {
  .trk-injury-record {
    grid-template-columns: minmax(128px, 0.6fr) minmax(240px, 1.4fr);
  }

  .trk-injury-record-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .trk-injury-header,
  .trk-injury-history > header,
  .trk-injury-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .trk-injury-state {
    width: 100%;
  }

  .trk-health-record-type-options {
    grid-template-columns: 1fr;
  }

  .trk-injury-area-option {
    min-height: 116px;
  }

  .trk-injury-fields,
  .trk-injury-record {
    grid-template-columns: 1fr;
  }

  .trk-injury-notes-field,
  .trk-injury-record-actions {
    grid-column: auto;
  }

  .trk-injury-record-actions {
    align-items: end;
  }

  .trk-injury-form-footer .trk-portal-btn {
    width: 100%;
  }
}

.trk-health-alert-panel {
  border-color: rgba(60, 64, 67, 0.18);
}

.trk-health-alert-panel .trk-panel-toolbar {
  background: #f8f9fa;
}

.trk-health-alert-eyebrow {
  color: #5f6368;
}

.trk-health-alert-count {
  display: grid;
  min-width: 50px;
  padding: 5px 8px;
  border: 1px solid rgba(60, 64, 67, 0.14);
  border-radius: 4px;
  background: #ffffff;
  color: #3c4043;
  text-align: center;
}

.trk-health-alert-count strong,
.trk-health-alert-count small {
  display: block;
}

.trk-health-alert-count strong {
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.trk-health-alert-count small {
  margin-top: 3px;
  color: #80868b;
  font-size: 0.54rem;
  font-weight: 750;
  text-transform: uppercase;
}

.trk-health-alert-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.trk-health-alert-table {
  width: 100%;
  min-width: 300px;
  border-collapse: collapse;
  table-layout: fixed;
}

.trk-health-alert-table th {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(60, 64, 67, 0.12);
  background: #ffffff;
  color: #80868b;
  font-size: 0.57rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.trk-health-alert-table th:first-child {
  width: 43%;
  padding-left: 14px;
}

.trk-health-alert-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(60, 64, 67, 0.1);
  vertical-align: top;
}

.trk-health-alert-table td:first-child {
  padding-left: 14px;
}

.trk-health-alert-table tr:last-child td {
  border-bottom: 0;
}

.trk-health-alert-table tbody tr {
  box-shadow: inset 3px 0 0 var(--trk-health-row-color);
}

.trk-health-alert-table tbody tr.is-injury {
  --trk-health-row-color: #b3261e;
  background: rgba(179, 38, 30, 0.025);
}

.trk-health-alert-table tbody tr.is-limitation {
  --trk-health-row-color: var(--trk-caution);
  background: rgba(176, 96, 0, 0.025);
}

.trk-health-alert-player strong,
.trk-health-alert-player small,
.trk-health-alert-player time,
.trk-health-alert-detail > strong,
.trk-health-alert-detail > small {
  display: block;
}

.trk-health-alert-player > strong {
  overflow: hidden;
  color: #202124;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.trk-health-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-top: 6px;
  padding: 3px 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 850;
  line-height: 1.1;
}

.trk-health-status.is-injury {
  background: rgba(179, 38, 30, 0.07);
  color: #a50e0e;
}

.trk-health-status.is-limitation {
  background: var(--trk-caution-soft);
  color: #8a4b00;
}

.trk-health-alert-player > small {
  margin-top: 4px;
  color: #5f6368;
  font-size: 0.61rem;
  font-weight: 750;
}

.trk-health-alert-player time {
  margin-top: 7px;
  color: #80868b;
  font-size: 0.57rem;
  font-weight: 650;
}

.trk-health-alert-detail > strong {
  color: #3c4043;
  font-size: 0.67rem;
  font-weight: 850;
  line-height: 1.3;
}

.trk-health-alert-detail p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: #5f6368;
  font-size: 0.63rem;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.trk-health-alert-detail > small {
  margin-top: 5px;
  color: #80868b;
  font-size: 0.57rem;
  font-weight: 700;
}

.trk-health-alert-panel .trk-panel-footer small {
  color: #5f6368;
  font-size: 0.68rem;
  font-weight: 650;
}

@media (max-width: 420px) {
  .trk-injury-form,
  .trk-injury-header {
    padding-inline: 12px;
  }

  .trk-injury-area-grid {
    gap: 5px;
  }

  .trk-injury-area-option {
    min-height: 110px;
  }

  .trk-injury-area-name {
    font-size: 0.6rem;
  }

  .trk-injury-clear-form > div {
    grid-template-columns: 1fr;
  }

  .trk-injury-record-actions {
    align-items: stretch;
  }
}

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

.trk-participant-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 240px);
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.trk-participant-search-box,
.trk-participant-category-filter {
  width: 100%;
}

.trk-participant-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.15rem;
}

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

.trk-participant-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.trk-participant-option > label {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  gap: 0.65rem;
  align-items: center;
  min-height: 64px;
  padding: 0.55rem;
  border: 1px solid var(--trk-line);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.trk-participant-option > label:hover {
  border-color: rgba(37, 99, 235, 0.32);
  background: #f8fafc;
}

.trk-participant-option > input:focus-visible + label {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}

.trk-participant-option > input:checked + label {
  border-color: rgba(37, 99, 235, 0.48);
  background: #eff6ff;
}

.trk-participant-avatar,
.trk-participant-load-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 850;
}

.trk-participant-avatar {
  width: 42px;
  height: 42px;
}

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

.trk-participant-copy,
.trk-participant-copy strong,
.trk-participant-copy small {
  display: block;
  min-width: 0;
}

.trk-participant-copy strong {
  overflow: hidden;
  color: var(--trk-ink);
  font-size: 0.82rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-participant-copy small {
  margin-top: 0.12rem;
  overflow: hidden;
  color: var(--trk-muted);
  font-size: 0.68rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-participant-check {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--trk-line);
  border-radius: 4px;
  color: transparent;
}

.trk-participant-option > input:checked + label .trk-participant-check {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.trk-participant-load-empty {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem;
  border: 1px dashed var(--trk-line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--trk-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.trk-participant-load-list {
  display: grid;
  gap: 0.5rem;
}

.trk-participant-load-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.5fr) minmax(90px, 0.65fr) minmax(100px, 0.75fr) minmax(92px, 0.65fr);
  gap: 0.6rem;
  align-items: end;
  padding: 0.65rem;
  border: 1px solid var(--trk-line);
  border-radius: 6px;
  background: #f8fafc;
}

.trk-participant-load-row.is-invalid {
  border-color: #ef4444;
  background: #fef2f2;
}

.trk-participant-load-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
}

.trk-participant-load-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.trk-participant-load-identity > span:last-child,
.trk-participant-load-identity strong,
.trk-participant-load-identity small {
  display: block;
  min-width: 0;
}

.trk-participant-load-identity strong {
  overflow: hidden;
  color: var(--trk-ink);
  font-size: 0.76rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-participant-load-identity small,
.trk-participant-load-control label,
.trk-participant-load-result small {
  color: var(--trk-muted);
  font-size: 0.63rem;
  font-weight: 750;
}

.trk-participant-load-control label {
  display: block;
  margin-bottom: 0.24rem;
  text-transform: uppercase;
}

.trk-participant-load-control .form-control,
.trk-participant-load-control .form-select {
  min-height: 40px;
}

.trk-participant-load-result {
  display: grid;
  min-height: 40px;
  align-content: center;
  padding: 0.35rem 0.55rem;
  border-left: 2px solid #2563eb;
  background: #ffffff;
}

.trk-participant-load-result strong {
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 850;
}

.trk-participant-load-errors {
  grid-column: 1 / -1;
  color: #b91c1c;
}

.trk-participant-load-errors small {
  display: block;
}

.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: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 220px) auto;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.trk-workout-picker-header .exercise-tag-picker__trigger {
  width: 100%;
}

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

.trk-workout-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.55rem;
  max-height: 460px;
  overflow: auto;
  padding: 0.15rem;
}

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

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

.trk-workout-option label {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #ffffff;
  color: var(--trk-ink);
  cursor: pointer;
  box-shadow: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.trk-workout-option label:hover {
  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: #eff6ff;
  box-shadow: none;
}

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

.trk-workout-option-visual {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.trk-workout-option-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trk-workout-option-visual i {
  font-size: 1.15rem;
}

.trk-workout-option-check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.94);
  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 {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  width: 100%;
  min-width: 0;
  min-height: 2.35rem;
  align-items: flex-start;
}

.trk-workout-option-body small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  color: var(--trk-muted);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
}

.trk-workout-option-body strong {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  color: var(--trk-ink);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.45;
  -webkit-box-orient: vertical;
}

.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-sidebar-stack {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1rem;
}

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

.trk-selected-workouts-panel {
  border-top: 3px solid #2563eb;
}

.trk-selected-workouts-total {
  min-width: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.trk-selected-workouts-body {
  padding: 0.75rem;
}

.trk-selected-workouts-list {
  display: grid;
  gap: 0.5rem;
  max-height: 310px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.trk-selected-workout-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 32px;
  gap: 0.65rem;
  align-items: center;
  min-height: 62px;
  padding: 0.42rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #f8fafc;
}

.trk-selected-workout-thumb {
  width: 64px;
  aspect-ratio: 4 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 5px;
  background: #e2e8f0;
  color: #475569;
}

.trk-selected-workout-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trk-selected-workout-item > strong {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--trk-ink);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.trk-selected-workout-item > button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
}

.trk-selected-workout-item > button:hover,
.trk-selected-workout-item > button:focus-visible {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.trk-selected-workout-item > button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

.trk-selected-workouts-empty {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px dashed #cbd5e1;
  border-radius: var(--trk-radius-sm);
  background: #f8fafc;
}

.trk-selected-workouts-empty > span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #e2e8f0;
  color: #475569;
}

.trk-selected-workouts-empty strong,
.trk-selected-workouts-empty small {
  display: block;
}

.trk-selected-workouts-empty strong {
  color: var(--trk-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.trk-selected-workouts-empty small {
  margin-top: 0.1rem;
  color: var(--trk-muted);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.35;
}

.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-form-page #training-session-form button[type="submit"] {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.trk-training-form-page #training-session-form button[type="submit"]:hover,
.trk-training-form-page #training-session-form button[type="submit"]:focus-visible {
  border-color: #1e293b;
  background: #1e293b;
  color: #ffffff;
}

.trk-training-register-summary {
  display: grid;
  gap: 0.5rem;
}

.trk-training-register-summary > div {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--trk-line);
  border-radius: var(--trk-radius-sm);
  background: #f8fafc;
}

.trk-training-register-summary span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--trk-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.trk-training-register-summary strong {
  color: var(--trk-ink);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

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

@media (max-width: 991.98px) {
  .trk-training-sidebar-stack {
    position: static;
    margin-top: 0.25rem;
  }
}

@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 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    position: static;
    margin: 0 0 0.75rem;
    padding: 0.72rem;
    border: 1px solid var(--trk-line);
    border-radius: var(--trk-radius-sm);
    background: #ffffff;
  }

  .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: auto;
  }

  .trk-training-section,
  .trk-training-side-panel {
    margin-bottom: 0.78rem !important;
    border-radius: var(--trk-radius-sm);
  }

  .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: var(--trk-radius-sm);
  }

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

  .trk-profile-load-toolbar,
  .trk-profile-load-body,
  .trk-profile-load-history {
    padding: 0.85rem;
  }

  .trk-profile-load-submit-row {
    grid-template-columns: 1fr;
  }

  .trk-profile-load-submit {
    min-height: 44px;
    width: 100%;
  }

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

  .trk-participant-picker {
    grid-template-columns: minmax(0, 1fr);
    max-height: 300px;
  }

  .trk-participant-filters {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .trk-participant-option > label {
    min-height: 66px;
  }

  .trk-participant-load-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .trk-participant-load-identity,
  .trk-participant-load-result,
  .trk-participant-load-errors {
    grid-column: 1 / -1;
  }

  .trk-participant-load-result {
    min-height: 38px;
  }

  .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) 46px;
    gap: 0.5rem;
  }

  .trk-workout-search-box {
    grid-column: 1 / -1;
  }

  .trk-workout-category-filter {
    width: 100%;
  }

  .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: repeat(2, minmax(0, 1fr));
    max-height: 360px;
    gap: 0.45rem;
    padding: 0.1rem;
  }

  .trk-workout-option label {
    min-height: 0;
    padding: 0.42rem;
  }

  .trk-workout-option-visual {
    width: 100%;
    height: auto;
  }

  .trk-workout-option-check {
    top: 0.65rem;
    right: 0.65rem;
    width: 28px;
    height: 28px;
  }

  .trk-workout-option-body strong {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .trk-training-sidebar-stack {
    position: static;
    gap: 0.78rem;
  }

  .trk-selected-workouts-list {
    max-height: 240px;
  }

  .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: var(--trk-radius-sm);
  }
}

@media (max-width: 360px) {
  .trk-workout-picker {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

/* Identity media editor: portrait source and live preview. */
.trk-identity-media {
  --identity-ink: #202124;
  --identity-copy: #5f6368;
  --identity-muted: #80868b;
  --identity-inset: #f1f3f4;
  --identity-line: rgba(60, 64, 67, 0.18);
  --identity-line-soft: rgba(60, 64, 67, 0.1);
  --identity-action: #1a73e8;
  display: grid;
  gap: 12px;
}

.trk-identity-media__preview {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 240px);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--identity-line);
  border-radius: 8px;
  background: var(--identity-inset);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.trk-identity-media__preview.has-image {
  border-color: rgba(22, 135, 108, 0.45);
}

.trk-identity-media__preview.has-error {
  border-color: rgba(179, 38, 30, 0.58);
  background: rgba(179, 38, 30, 0.04);
}

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

.trk-identity-media__placeholder {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px;
  color: var(--identity-copy);
  text-align: center;
}

.trk-identity-media__placeholder i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--identity-line-soft);
  border-radius: 50%;
  background: #fff;
  color: var(--identity-action);
  font-size: 1.25rem;
}

.trk-identity-media__placeholder strong {
  color: var(--identity-ink);
  font-size: 0.86rem;
}

.trk-identity-media__placeholder span,
.trk-identity-media__status,
.trk-media-file-button small {
  color: var(--identity-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.trk-identity-media__status {
  min-height: 18px;
  margin: -4px 0 0;
  text-align: center;
}

.trk-media-field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.trk-media-field > label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--identity-ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.trk-media-field > label i {
  color: var(--identity-action);
}

.trk-media-url-input {
  min-height: 44px;
  border-color: var(--identity-line) !important;
  border-radius: 4px !important;
  background: var(--identity-inset) !important;
  font-size: 0.8rem !important;
}

.trk-media-url-input:focus {
  border-color: var(--identity-action) !important;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18) !important;
}

.trk-media-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--identity-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.trk-media-divider::before,
.trk-media-divider::after {
  flex: 1;
  height: 1px;
  background: var(--identity-line-soft);
  content: "";
}

.trk-media-file-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--identity-line);
  border-radius: 4px;
  color: var(--identity-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.trk-media-file-button:hover {
  border-color: rgba(26, 115, 232, 0.48);
  background: rgba(26, 115, 232, 0.04);
}

.trk-media-file-button:focus-within {
  outline: 3px solid rgba(26, 115, 232, 0.18);
  outline-offset: 2px;
}

.trk-media-file-button > i {
  color: var(--identity-action);
}

.trk-media-file-button > span {
  display: grid;
  gap: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .trk-identity-media__preview,
  .trk-media-file-button {
    transition: none;
  }
}

.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);
}

.trk-session-source {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  min-height: 28px;
  padding: 0.3rem 0.58rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.trk-session-source--calendar {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

.trk-session-source--manual {
  border-color: #334155;
  background: #334155;
  color: #fff;
}

.trk-calendar-review-banner {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-left: 4px solid #2563eb;
  border-radius: 6px;
  background: #eff6ff;
  color: #0f172a;
}

.trk-calendar-review-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #0f172a;
  color: #ffffff;
  flex: 0 0 auto;
}

.trk-calendar-review-banner > span:last-child {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.trk-calendar-review-banner strong {
  font-size: 0.85rem;
}

.trk-calendar-review-banner small {
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.45;
}

.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;
  }
}

/* Goalkeeper load board: exact matrix + comparative trend */
.trk-load-workspace {
  --trk-load-ink: #202124;
  --trk-load-secondary: #5f6368;
  --trk-load-tertiary: #80868b;
  --trk-load-canvas: #ffffff;
  --trk-load-inset: #f8f9fa;
  --trk-load-border: rgba(60, 64, 67, 0.18);
  --trk-load-border-soft: rgba(60, 64, 67, 0.1);
  --trk-load-blue: #1a73e8;
  --trk-load-blue-soft: #d2e3fc;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--trk-load-canvas);
}

.trk-load-matrix-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 36px;
}

.trk-load-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--trk-load-secondary);
  font-size: 0.74rem;
  font-weight: 650;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.trk-load-sort strong {
  color: var(--trk-load-ink);
  font-weight: 800;
}

.trk-load-sort:hover {
  border-color: var(--trk-load-border-soft);
  background: var(--trk-load-inset);
  color: var(--trk-load-blue);
}

.trk-load-sort:focus-visible,
.trk-load-period-slider button:focus-visible,
.trk-load-period-slider input:focus-visible,
.trk-load-matrix-scroll:focus-visible,
.trk-load-cell:focus-visible,
.trk-load-keeper-button:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: 1px;
}

.trk-load-period-slider {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.trk-load-period-slider > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--trk-load-border-soft);
  border-radius: 4px;
  background: var(--trk-load-canvas);
  color: var(--trk-load-secondary);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.trk-load-period-slider > button:hover:not(:disabled) {
  border-color: rgba(26, 115, 232, 0.28);
  background: rgba(26, 115, 232, 0.06);
  color: var(--trk-load-blue);
}

.trk-load-period-slider > button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.trk-load-period-slider__track {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.trk-load-period-slider__track output {
  overflow: hidden;
  color: var(--trk-load-ink);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-load-period-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  accent-color: var(--trk-load-blue);
}

.trk-load-period-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--trk-load-blue-soft);
}

.trk-load-period-slider input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--trk-load-blue);
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.28);
  -webkit-appearance: none;
}

.trk-load-period-slider input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--trk-load-blue-soft);
}

.trk-load-period-slider input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--trk-load-blue);
  box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.28);
}

.trk-load-scale {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--trk-load-tertiary);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  justify-self: end;
}

.trk-load-scale__steps {
  display: inline-flex;
  gap: 3px;
}

.trk-load-scale__steps i {
  display: block;
  width: 22px;
  height: 9px;
  border-radius: 2px;
  background: rgba(26, 115, 232, 0.08);
}

.trk-load-scale__steps i:nth-child(2) { background: rgba(26, 115, 232, 0.2); }
.trk-load-scale__steps i:nth-child(3) { background: rgba(26, 115, 232, 0.34); }
.trk-load-scale__steps i:nth-child(4) { background: rgba(26, 115, 232, 0.52); }
.trk-load-scale__steps i:nth-child(5) { background: rgba(26, 115, 232, 0.78); }

.trk-load-matrix-scroll {
  max-height: min(52vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--trk-load-border-soft);
  border-radius: 4px;
  background: var(--trk-load-canvas);
  scrollbar-color: rgba(60, 64, 67, 0.28) transparent;
  scrollbar-width: thin;
}

.trk-load-matrix {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: var(--trk-load-ink);
}

.trk-load-matrix th,
.trk-load-matrix td {
  height: 52px;
  padding: 0;
  border-right: 1px solid var(--trk-load-border-soft);
  border-bottom: 1px solid var(--trk-load-border-soft);
  background: var(--trk-load-canvas);
}

.trk-load-matrix th:last-child,
.trk-load-matrix td:last-child {
  border-right: 0;
}

.trk-load-matrix tbody tr:last-child th,
.trk-load-matrix tbody tr:last-child td {
  border-bottom: 0;
}

.trk-load-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 40px;
  padding: 0 10px;
  background: rgba(248, 249, 250, 0.98);
  color: var(--trk-load-secondary);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
}

.trk-load-matrix thead th small {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--trk-load-blue-soft);
  color: var(--trk-load-blue);
  font-size: 0.56rem;
  font-weight: 850;
  vertical-align: middle;
}

.trk-load-matrix thead th:first-child,
.trk-load-matrix tbody th {
  position: sticky;
  left: 0;
  width: 38%;
  text-align: left;
}

.trk-load-matrix.is-single-period thead th:first-child,
.trk-load-matrix.is-single-period tbody th {
  width: 68%;
}

.trk-load-matrix thead th:first-child {
  z-index: 5;
}

.trk-load-matrix tbody th {
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
}

.trk-load-matrix tbody tr.is-selected th {
  box-shadow: inset 3px 0 0 var(--trk-load-blue);
}

.trk-load-keeper-button,
.trk-load-cell {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.trk-load-keeper-button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  background: transparent;
  color: var(--trk-load-ink);
  text-align: left;
}

.trk-load-keeper-button:hover {
  background: rgba(26, 115, 232, 0.05);
}

.trk-load-keeper-avatar,
.trk-load-detail__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f1f3f4;
  color: var(--trk-load-secondary);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.trk-load-keeper-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.66rem;
}

.trk-load-keeper-avatar img,
.trk-load-detail__avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.trk-load-keeper-copy {
  min-width: 0;
}

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

.trk-load-keeper-copy strong {
  font-size: 0.76rem;
  font-weight: 800;
}

.trk-load-keeper-copy small {
  margin-top: 2px;
  color: var(--trk-load-tertiary);
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.trk-load-cell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: var(--trk-load-cell-background, var(--trk-load-inset));
  color: var(--trk-load-cell-ink, var(--trk-load-ink));
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  transition: filter 0.16s ease, box-shadow 0.16s ease;
}

.trk-load-cell:hover {
  filter: saturate(1.12) brightness(0.98);
}

.trk-load-cell.is-selected {
  z-index: 1;
  box-shadow: inset 0 0 0 2px var(--trk-load-blue), inset 0 0 0 4px rgba(255, 255, 255, 0.82);
}

.trk-load-cell.is-selected::after {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--trk-load-blue);
  content: "";
}

.trk-load-analysis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 290px);
  gap: 12px;
  min-width: 0;
}

.trk-load-trend,
.trk-load-detail {
  min-width: 0;
  border: 1px solid var(--trk-load-border-soft);
  border-radius: 4px;
  background: var(--trk-load-canvas);
}

.trk-load-trend {
  overflow: hidden;
}

.trk-load-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--trk-load-border-soft);
}

.trk-load-subheader h3 {
  margin: 0;
  color: var(--trk-load-ink);
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 750;
}

.trk-load-subheader p {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 3px 0 0;
  color: var(--trk-load-tertiary);
  font-size: 0.66rem;
  font-weight: 650;
}

.trk-load-chart-frame {
  position: relative;
  height: 260px;
  padding: 8px 8px 8px 4px;
}

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

.trk-load-detail {
  display: grid;
  align-content: start;
  padding: 12px;
  box-shadow: inset 3px 0 0 var(--trk-load-blue);
}

.trk-load-detail__identity {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--trk-load-border-soft);
}

.trk-load-detail__avatar {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  color: var(--trk-load-blue);
  font-size: 0.74rem;
}

.trk-load-detail__identity strong,
.trk-load-detail__identity span,
.trk-load-detail__identity b {
  display: block;
}

.trk-load-detail__identity strong {
  overflow: hidden;
  color: var(--trk-load-ink);
  font-size: 0.8rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-load-detail__identity span {
  margin-top: 2px;
  color: var(--trk-load-secondary);
  font-size: 0.68rem;
  font-weight: 700;
}

.trk-load-detail__identity b {
  grid-column: 2;
  color: var(--trk-load-blue);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.trk-load-detail__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--trk-load-border-soft);
}

.trk-load-detail__metrics > div {
  min-width: 0;
  padding: 0 7px;
  border-right: 1px solid var(--trk-load-border-soft);
}

.trk-load-detail__metrics > div:first-child { padding-left: 0; }
.trk-load-detail__metrics > div:last-child { padding-right: 0; border-right: 0; }

.trk-load-detail__metrics dt,
.trk-load-detail__metrics dd {
  margin: 0;
}

.trk-load-detail__metrics dt {
  overflow: hidden;
  color: var(--trk-load-tertiary);
  font-size: 0.59rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-load-detail__metrics dd {
  margin-top: 3px;
  color: var(--trk-load-ink);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.trk-load-detail__sessions {
  display: grid;
  gap: 6px;
  max-height: 112px;
  overflow-y: auto;
  padding-top: 10px;
  scrollbar-width: thin;
}

.trk-load-session {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  color: var(--trk-load-secondary);
  font-size: 0.64rem;
  font-weight: 650;
  line-height: 1.35;
}

.trk-load-session i {
  margin-top: 2px;
  color: var(--trk-load-blue);
}

.trk-load-session strong {
  color: var(--trk-load-ink);
  font-weight: 800;
}

.trk-load-session--empty {
  align-items: center;
  min-height: 42px;
  color: var(--trk-load-tertiary);
}

@media (max-width: 991.98px) {
  .trk-load-matrix-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  }

  .trk-load-scale {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .trk-load-analysis {
    grid-template-columns: minmax(0, 1fr);
  }

  .trk-load-detail {
    grid-template-columns: minmax(210px, 0.8fr) minmax(260px, 1fr);
    gap: 0 16px;
  }

  .trk-load-detail__sessions {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding-top: 0;
  }
}

@media (max-width: 575.98px) {
  .trk-load-workspace {
    gap: 10px;
    padding: 12px;
  }

  .trk-load-matrix-toolbar {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr);
  }

  .trk-load-sort {
    padding-inline: 0;
  }

  .trk-load-period-slider {
    width: 100%;
  }

  .trk-load-scale {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .trk-load-scale__steps {
    flex: 1;
  }

  .trk-load-scale__steps i {
    flex: 1;
  }

  .trk-load-matrix-scroll {
    max-height: 420px;
  }

  .trk-load-matrix thead th:first-child,
  .trk-load-matrix tbody th {
    width: 44%;
  }

  .trk-load-matrix.is-single-period thead th:first-child,
  .trk-load-matrix.is-single-period tbody th {
    width: 64%;
  }

  .trk-load-keeper-button {
    padding-inline: 8px;
  }

  .trk-load-chart-frame {
    height: 238px;
  }

  .trk-load-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .trk-load-detail__sessions {
    grid-column: auto;
    grid-row: auto;
    padding-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trk-load-sort,
  .trk-load-period-slider > button,
  .trk-load-cell {
    transition: none;
  }
}

/* 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-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.38rem;
}

.trk-alert-actions .trk-alert-detail {
  margin-top: 0;
}

.trk-alert-actions form {
  margin: 0;
}

.trk-alert-skip {
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
}

.trk-alert-skip:hover,
.trk-alert-skip:focus-visible {
  color: #b91c1c;
  text-decoration: underline;
}

.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);
    align-content: center;
    justify-items: center;
    min-height: 128px;
    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: block;
    font-size: 0.68rem;
    line-height: 1.18;
  }

  .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__time > strong {
    margin-top: 0.45rem;
    font-size: 2.25rem;
  }

  .trk-coach-dashboard-shell .trk-clock-panel__grid {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 0.72fr);
  }

  .trk-coach-dashboard-shell .trk-coach-identity {
    padding-left: 0.65rem;
  }

  .trk-coach-dashboard-shell .trk-coach-identity__crest {
    width: 56px;
    height: 56px;
  }

  .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-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;
}

/* Match-line report: one temporal language from live capture to review. */
.trk-live-readout-actions {
  grid-template-columns: 1fr;
}

.trk-live-match-line-card,
#live-report-actions {
  grid-column: 1 / -1;
}

.trk-live-match-line-card > .trk-panel-toolbar {
  align-items: end;
}

.trk-live-match-line-card > .trk-panel-toolbar small {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
}

.trk-live-match-line-scroll {
  overflow-x: auto;
  padding: 0 0.85rem 0.35rem;
  scrollbar-color: rgba(15, 23, 42, 0.24) transparent;
}

.trk-live-match-line {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 4px;
  height: 210px;
  min-width: 760px;
  position: relative;
}

.trk-live-match-line-baseline {
  background: #202124;
  bottom: 32px;
  height: 2px;
  left: 0;
  opacity: 0.78;
  position: absolute;
  right: 0;
}

.trk-live-match-line-tick {
  border-left: 1px solid rgba(60, 64, 67, 0.16);
  bottom: 0;
  height: 100%;
  left: var(--timeline-position);
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
}

.trk-live-match-line-tick strong {
  bottom: 7px;
  color: #5f6368;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  left: 0;
  position: absolute;
  transform: translateX(-50%);
}

.trk-live-match-line-tick small {
  background: #fff;
  border: 1px solid rgba(60, 64, 67, 0.14);
  border-radius: 4px;
  color: #5f6368;
  font-size: 0.62rem;
  font-weight: 800;
  left: 7px;
  padding: 2px 4px;
  position: absolute;
  top: 6px;
  white-space: nowrap;
}

.trk-live-match-line-event {
  --event-color: #1a73e8;
  bottom: var(--timeline-offset);
  color: #202124;
  height: 32px;
  left: var(--timeline-position);
  position: absolute;
  text-decoration: none;
  transform: translateX(-50%);
  width: 32px;
  z-index: 3;
}

.trk-live-match-line-event::after {
  background: color-mix(in srgb, var(--event-color) 38%, transparent);
  content: "";
  height: calc(var(--timeline-offset) - 30px);
  left: 50%;
  position: absolute;
  top: 21px;
  width: 1px;
  z-index: -1;
}

.trk-live-match-line-event i {
  background: var(--event-color);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--event-color) 28%, transparent);
  display: block;
  height: 16px;
  margin: 6px auto 0;
  width: 16px;
}

.trk-live-match-line-event > span,
.trk-live-match-line-event > strong {
  background: #202124;
  border-radius: 4px;
  color: #fff;
  display: none;
  left: 50%;
  line-height: 1.1;
  padding: 4px 6px;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.trk-live-match-line-event > span {
  bottom: 27px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.trk-live-match-line-event > strong {
  bottom: 47px;
  font-size: 0.72rem;
  font-weight: 800;
}

.trk-live-match-line-event:hover,
.trk-live-match-line-event:focus-visible {
  color: #202124;
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: 2px;
}

.trk-live-match-line-event:hover > span,
.trk-live-match-line-event:hover > strong,
.trk-live-match-line-event:focus-visible > span,
.trk-live-match-line-event:focus-visible > strong {
  display: block;
}

.trk-live-match-line-event.is-good { --event-color: #16876c; }
.trk-live-match-line-event.is-bad { --event-color: #b3261e; }
.trk-live-match-line-event.is-neutral { --event-color: #1a73e8; }

.trk-live-match-line-empty {
  color: #5f6368;
  font-size: 0.82rem;
  font-weight: 700;
  left: 50%;
  margin: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.trk-live-phase-strip {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(9, minmax(64px, 1fr));
  overflow-x: auto;
  padding: 0 0.85rem 0.85rem;
}

.trk-live-phase-strip button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(60, 64, 67, 0.14);
  border-radius: 4px;
  color: #5f6368;
  display: flex;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  justify-content: space-between;
  min-height: 38px;
  padding: 0.4rem 0.5rem;
}

.trk-live-phase-strip button:hover,
.trk-live-phase-strip button:focus-visible,
.trk-live-phase-strip button.is-active {
  background: rgba(26, 115, 232, 0.08);
  border-color: rgba(26, 115, 232, 0.28);
  color: #1a73e8;
  outline: 0;
}

.trk-live-phase-strip button strong {
  color: #202124;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

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

.trk-live-report-spatial-grid .trk-data-panel {
  min-width: 0;
}

.trk-live-report-spatial-grid .trk-panel-toolbar {
  min-height: 68px;
  padding: 0.7rem 0.75rem 0.2rem;
}

.trk-live-report-spatial-grid .trk-live-goal-frame {
  margin: 0.25rem auto 0.5rem;
  padding: 0.25rem 0.4rem 0.65rem;
  width: calc(100% - 1rem);
}

.trk-live-report-spatial-grid .trk-live-goal-heatmap {
  grid-template-rows: repeat(2, minmax(38px, 1fr));
}

.trk-live-report-spatial-grid .trk-live-goal-zone {
  gap: 0.08rem;
  padding: 0.22rem;
}

.trk-live-report-spatial-grid .trk-live-goal-zone strong {
  font-size: 0.72rem;
  height: 23px;
  min-width: 23px;
}

.trk-live-report-spatial-grid .trk-live-goal-zone span {
  font-size: 0.57rem;
  padding: 0.08rem 0.2rem;
}

.trk-live-report-spatial-grid .trk-live-field-heatmap,
.trk-live-report-spatial-grid .trk-live-full-pitch-heatmap {
  aspect-ratio: 16 / 10;
  margin: 0.5rem;
  min-height: 0;
  width: calc(100% - 1rem);
}

.trk-live-report-spatial-grid .trk-live-heatmap-totals {
  gap: 0.3rem;
  padding: 0 0.5rem 0.5rem;
}

.trk-live-report-spatial-grid .trk-live-heatmap-totals span {
  border-radius: 4px;
  font-size: 0.65rem;
  padding: 0.3rem 0.38rem;
}

.trk-live-report-event:target {
  background: rgba(26, 115, 232, 0.08);
  border-color: rgba(26, 115, 232, 0.34);
  outline: 3px solid rgba(26, 115, 232, 0.14);
}

@media (max-width: 991.98px) {
  .trk-live-readout {
    grid-template-columns: 1fr;
  }

  .trk-live-readout-actions {
    grid-template-columns: 1fr;
  }

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

  .trk-live-report-spatial-grid .trk-live-report-pass-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .trk-live-report-hero,
  .trk-live-report-grid,
  .trk-live-readout {
    grid-template-columns: 1fr;
  }

  .trk-live-report-spatial-grid {
    grid-template-columns: 1fr;
  }

  .trk-live-report-spatial-grid .trk-live-report-pass-card {
    grid-column: auto;
  }

  .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;
  }
}


/* Goalkeeper roster provenance */
.trk-roster-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.trk-roster-type--team {
  border-color: rgba(26, 115, 232, 0.22);
  background: rgba(26, 115, 232, 0.08);
  color: #1557b0;
}

.trk-roster-type--followed {
  border-color: rgba(111, 66, 193, 0.22);
  background: rgba(111, 66, 193, 0.08);
  color: #59349c;
}

.trk-roster-type--opponent {
  border-color: rgba(22, 135, 108, 0.24);
  background: rgba(22, 135, 108, 0.09);
  color: #0f6b55;
}

.trk-roster-type--unclassified {
  border-color: rgba(95, 99, 104, 0.2);
  background: #f1f3f4;
  color: #5f6368;
}

.trk-roster-type--mobile {
  display: none;
}

/* Goalkeeper roster classification */
.trk-goalkeeper-form-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

.trk-goalkeeper-type-fieldset {
  --roster-team: #1a73e8;
  --roster-team-soft: rgba(26, 115, 232, 0.07);
  --roster-followed: #6f42c1;
  --roster-followed-soft: rgba(111, 66, 193, 0.07);
  --roster-opponent: #16876c;
  --roster-opponent-soft: rgba(22, 135, 108, 0.07);
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(60, 64, 67, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.trk-goalkeeper-type-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.trk-goalkeeper-type-head__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: #f1f3f4;
  color: #3c4043;
  font-size: 0.95rem;
}

.trk-goalkeeper-type-head strong {
  display: block;
  color: var(--trk-ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.trk-goalkeeper-type-head p {
  margin: 3px 0 0;
  color: var(--trk-muted);
  font-size: 0.73rem;
  line-height: 1.4;
}

.trk-goalkeeper-type-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trk-goalkeeper-type-option {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 106px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(60, 64, 67, 0.18);
  border-radius: 8px;
  background: #f8f9fa;
  color: var(--trk-ink);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.trk-goalkeeper-type-option:hover {
  border-color: rgba(60, 64, 67, 0.34);
  background: #f1f3f4;
}

.trk-goalkeeper-type-option:focus-within {
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: 2px;
}

.trk-goalkeeper-type-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.trk-goalkeeper-type-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.trk-goalkeeper-type-copy strong,
.trk-goalkeeper-type-copy small {
  display: block;
}

.trk-goalkeeper-type-copy strong {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.trk-goalkeeper-type-copy small {
  color: var(--trk-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.trk-goalkeeper-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 1rem;
}

.trk-goalkeeper-type-option--team .trk-goalkeeper-type-icon {
  border-color: rgba(26, 115, 232, 0.2);
  background: rgba(26, 115, 232, 0.09);
  color: #1557b0;
}

.trk-goalkeeper-type-option--followed .trk-goalkeeper-type-icon {
  border-color: rgba(111, 66, 193, 0.2);
  background: rgba(111, 66, 193, 0.09);
  color: #59349c;
}

.trk-goalkeeper-type-option--opponent .trk-goalkeeper-type-icon {
  border-color: rgba(22, 135, 108, 0.22);
  background: rgba(22, 135, 108, 0.09);
  color: #0f6b55;
}

.trk-goalkeeper-type-state {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  grid-column: 2;
  min-width: 0;
  color: var(--trk-muted);
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.trk-goalkeeper-type-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 2px solid rgba(60, 64, 67, 0.38);
  border-radius: 4px;
  background: #ffffff;
  color: #ffffff;
  font-size: 0.55rem;
}

.trk-goalkeeper-type-option--team.is-selected,
.trk-goalkeeper-type-option--team:has(input:checked) {
  border-color: var(--roster-team);
  background: var(--roster-team-soft);
  box-shadow: inset 4px 0 0 var(--roster-team);
}

.trk-goalkeeper-type-option--team.is-selected .trk-goalkeeper-type-state,
.trk-goalkeeper-type-option--team:has(input:checked) .trk-goalkeeper-type-state {
  color: #1557b0;
}

.trk-goalkeeper-type-option--team.is-selected .trk-goalkeeper-type-check,
.trk-goalkeeper-type-option--team:has(input:checked) .trk-goalkeeper-type-check {
  border-color: var(--roster-team);
  background: var(--roster-team);
}

.trk-goalkeeper-type-option--followed.is-selected,
.trk-goalkeeper-type-option--followed:has(input:checked) {
  border-color: var(--roster-followed);
  background: var(--roster-followed-soft);
  box-shadow: inset 4px 0 0 var(--roster-followed);
}

.trk-goalkeeper-type-option--followed.is-selected .trk-goalkeeper-type-state,
.trk-goalkeeper-type-option--followed:has(input:checked) .trk-goalkeeper-type-state {
  color: #59349c;
}

.trk-goalkeeper-type-option--followed.is-selected .trk-goalkeeper-type-check,
.trk-goalkeeper-type-option--followed:has(input:checked) .trk-goalkeeper-type-check {
  border-color: var(--roster-followed);
  background: var(--roster-followed);
}

.trk-goalkeeper-type-option--opponent.is-selected,
.trk-goalkeeper-type-option--opponent:has(input:checked) {
  border-color: var(--roster-opponent);
  background: var(--roster-opponent-soft);
  box-shadow: inset 4px 0 0 var(--roster-opponent);
}

.trk-goalkeeper-type-option--opponent.is-selected .trk-goalkeeper-type-state,
.trk-goalkeeper-type-option--opponent:has(input:checked) .trk-goalkeeper-type-state {
  color: #0f6b55;
}

.trk-goalkeeper-type-option--opponent.is-selected .trk-goalkeeper-type-check,
.trk-goalkeeper-type-option--opponent:has(input:checked) .trk-goalkeeper-type-check {
  border-color: var(--roster-opponent);
  background: var(--roster-opponent);
}

@media (max-width: 767.98px) {
  .trk-goalkeeper-type-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575.98px) {
  .trk-goalkeeper-table td[data-label="Tipo"] {
    display: none !important;
  }

  .trk-roster-type--mobile {
    display: inline-flex;
    width: fit-content;
    margin-top: 6px;
  }

  .trk-goalkeeper-type-fieldset {
    padding: 12px;
  }

  .trk-goalkeeper-type-head {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }

  .trk-goalkeeper-type-head__icon {
    width: 36px;
    height: 36px;
  }

  .trk-goalkeeper-type-option {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 108px;
    padding: 12px;
  }

  .trk-goalkeeper-type-icon {
    width: 40px;
    height: 40px;
  }

  .trk-goalkeeper-type-state { min-height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .trk-goalkeeper-type-option {
    transition: none;
  }
}


/* Shared season selector for goalkeeper operations */
.trk-season-filter {
  position: relative;
  flex: 0 0 auto;
}

.trk-season-filter > summary {
  display: grid;
  grid-template-columns: 18px minmax(78px, 1fr) 12px;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 5px 10px;
  border: 1px solid rgba(91, 33, 182, 0.24);
  border-radius: 6px;
  background: #ffffff;
  color: #5b21b6;
  cursor: pointer;
  list-style: none;
}

.trk-season-filter > summary::-webkit-details-marker {
  display: none;
}

.trk-season-filter > summary:hover {
  border-color: rgba(91, 33, 182, 0.42);
  background: rgba(91, 33, 182, 0.04);
}

.trk-season-filter > summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.trk-season-filter > summary > span {
  display: grid;
  min-width: 0;
  line-height: 1.1;
}

.trk-season-filter > summary small {
  color: var(--trk-muted);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trk-season-filter > summary strong {
  max-width: 150px;
  overflow: hidden;
  color: var(--trk-ink);
  font-size: 0.75rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trk-season-filter__chevron {
  color: var(--trk-muted);
  font-size: 0.62rem;
  transition: transform 160ms ease;
}

.trk-season-filter[open] .trk-season-filter__chevron {
  transform: rotate(180deg);
}

.trk-season-filter__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  display: grid;
  width: max-content;
  min-width: 248px;
  max-width: min(320px, calc(100vw - 24px));
  max-height: 300px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--trk-line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.trk-season-filter__menu a {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 4px;
  color: var(--trk-ink);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.trk-season-filter__menu a:hover {
  background: #f3f4f6;
}

.trk-season-filter__menu a.is-active {
  background: rgba(37, 99, 235, 0.09);
  color: var(--trk-blue-dark);
}

.trk-season-filter__menu a > span {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.trk-season-filter__menu a > span i {
  width: 16px;
  color: #6d28d9;
  text-align: center;
}

.trk-season-filter__menu a > small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 22px;
  padding: 2px 6px;
  border: 1px solid var(--trk-line);
  border-radius: 4px;
  color: var(--trk-muted);
  font-size: 0.65rem;
}

.trk-season-filter__empty {
  padding: 12px 9px;
  color: var(--trk-muted);
  font-size: 0.72rem;
}

.trk-table-season {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-top: 4px;
  color: #6d28d9;
  font-size: 0.67rem;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .trk-directory-controls .trk-season-filter {
    grid-column: 1 / -1;
    width: 100%;
  }

  .trk-directory-controls .trk-season-filter > summary {
    width: 100%;
    min-height: 44px;
  }

  .trk-directory-controls .trk-season-filter > summary strong {
    max-width: none;
  }

  .trk-directory-controls .trk-season-filter__menu {
    right: auto;
    left: 0;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .trk-season-filter--dashboard {
    width: 100%;
  }

  .trk-season-filter--dashboard > summary {
    width: 100%;
    min-height: 44px;
  }

  .trk-season-filter--dashboard .trk-season-filter__menu {
    right: auto;
    left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trk-season-filter__chevron {
    transition: none;
  }
}

/* Goalkeeper category memberships */
.trk-category-builder {
  padding: 16px;
  border: 1px solid rgba(60, 64, 67, 0.18);
  border-radius: 8px;
  background: #f8f9fa;
}

.trk-category-builder__head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.trk-category-builder__head > div {
  display: grid;
  gap: 2px;
}

.trk-category-builder__head strong {
  color: #202124;
  font-size: 0.82rem;
  font-weight: 700;
}

.trk-category-builder__head span {
  color: #5f6368;
  font-size: 0.72rem;
  font-weight: 500;
}

.trk-category-builder__add {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(26, 115, 232, 0.32);
  border-radius: 4px;
  background: #ffffff;
  color: #1a73e8;
  font-size: 0.75rem;
  font-weight: 700;
}

.trk-category-builder__add:hover {
  background: #d2e3fc;
}

.trk-category-builder__add:focus-visible,
.trk-category-entry__remove:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: 2px;
}

.trk-category-builder__add:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.trk-category-builder__rows {
  display: grid;
  gap: 8px;
}

.trk-category-entry {
  display: grid;
  grid-template-columns: 72px minmax(150px, 1fr) minmax(82px, 0.35fr) 36px;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(60, 64, 67, 0.10);
  border-radius: 4px;
  background: #ffffff;
}

.trk-category-entry[hidden] {
  display: none;
}

.trk-category-entry label {
  display: block;
  margin-bottom: 4px;
  color: #5f6368;
  font-size: 0.68rem;
  font-weight: 700;
}

.trk-category-entry .form-select {
  min-height: 38px;
  border-color: rgba(60, 64, 67, 0.18);
  border-radius: 4px;
  background-color: #f1f3f4;
}

.trk-category-entry__kind {
  align-self: center;
  color: #6f42c1;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trk-category-entry__anchor,
.trk-category-entry__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
}

.trk-category-entry__anchor {
  border: 1px solid rgba(111, 66, 193, 0.16);
  background: rgba(111, 66, 193, 0.08);
  color: #6f42c1;
}

.trk-category-entry__remove {
  border: 1px solid rgba(179, 38, 30, 0.18);
  background: #ffffff;
  color: #b3261e;
}

.trk-category-entry__remove:hover {
  background: rgba(179, 38, 30, 0.07);
}

.trk-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.trk-category-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(111, 66, 193, 0.2);
  border-radius: 4px;
  background: rgba(111, 66, 193, 0.08);
  color: #5b21b6;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1;
}

@media (max-width: 575.98px) {
  .trk-category-builder__head {
    align-items: stretch;
    flex-direction: column;
  }

  .trk-category-builder__add {
    justify-content: center;
    width: 100%;
    min-height: 44px;
  }

  .trk-category-entry {
    grid-template-columns: 1fr 88px 36px;
  }

  .trk-category-entry__kind {
    grid-column: 1 / -1;
  }
}

/* Linked live-match evidence inside the coach's final report. */
.trk-linked-live-analysis {
  overflow: hidden;
  border: 1px solid rgba(60, 64, 67, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.trk-linked-live-analysis__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid rgba(60, 64, 67, 0.10);
}

.trk-linked-live-analysis__header h2 {
  margin: 4px 0;
  color: #202124;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: 0;
}

.trk-linked-live-analysis__header p {
  max-width: 680px;
  margin: 0;
  color: #5f6368;
  font-size: 0.82rem;
}

.trk-linked-live-analysis__readout {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  border: 1px solid rgba(60, 64, 67, 0.10);
  border-radius: 4px;
  background: #f8f9fa;
}

.trk-linked-live-analysis__readout > span {
  display: grid;
  min-width: 82px;
  padding: 10px 12px;
  text-align: center;
}

.trk-linked-live-analysis__readout > span + span {
  border-left: 1px solid rgba(60, 64, 67, 0.10);
}

.trk-linked-live-analysis__readout strong {
  color: #202124;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.trk-linked-live-analysis__readout small {
  color: #80868b;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.trk-linked-live-analysis__tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(60, 64, 67, 0.10);
  background: #f8f9fa;
}

.trk-linked-live-analysis__tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #5f6368;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.trk-linked-live-analysis__tabs button:hover {
  background: #ffffff;
  color: #202124;
}

.trk-linked-live-analysis__tabs button.is-active {
  border-color: rgba(26, 115, 232, 0.22);
  background: #ffffff;
  color: #1a73e8;
}

.trk-linked-live-analysis__tabs button:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: 1px;
}

.trk-linked-live-analysis__tabs button strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  border-radius: 4px;
  background: #f1f3f4;
  color: #5f6368;
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.trk-linked-live-analysis__tabs button.is-active strong {
  background: #d2e3fc;
  color: #174ea6;
}

.trk-linked-live-analysis__panel {
  padding: 16px;
  background: #ffffff;
}

.trk-linked-live-analysis__panel[hidden] {
  display: none !important;
}

.trk-linked-live-analysis__panel > .trk-data-panel {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.trk-linked-live-analysis__panel .trk-live-match-bars-scroll {
  margin-inline: 0;
}

.trk-linked-live-analysis__panel .trk-gk-shot-analysis__header {
  padding-top: 0;
}

.trk-linked-live-event-count {
  color: #80868b;
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.trk-linked-live-analysis__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid rgba(60, 64, 67, 0.10);
  background: #f8f9fa;
}

.trk-linked-live-analysis__footer p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #5f6368;
  font-size: 0.72rem;
}

.trk-linked-live-analysis__footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  color: #1a73e8;
  font-size: 0.74rem;
  font-weight: 750;
  text-decoration: none;
}

.trk-linked-live-analysis__footer a:hover {
  color: #174ea6;
  text-decoration: underline;
}

.trk-linked-live-analysis__footer a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .trk-linked-live-analysis__header {
    flex-direction: column;
    padding: 16px;
  }

  .trk-linked-live-analysis__readout {
    width: 100%;
  }

  .trk-linked-live-analysis__readout > span {
    flex: 1;
    min-width: 0;
  }

  .trk-linked-live-analysis__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px;
  }

  .trk-linked-live-analysis__tabs button {
    min-width: 0;
    min-height: 44px;
    padding-inline: 6px;
  }

  .trk-linked-live-analysis__tabs button strong {
    display: none;
  }

  .trk-linked-live-analysis__panel {
    padding: 12px 8px;
  }

  .trk-linked-live-analysis__footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }
}
.trk-microcycle-panel { container-type: inline-size; container-name: microcycle-plans; }
.trk-microcycle-panel__head { display: flex; flex-direction: row; align-items: center; gap: 12px; background: #fff; }
.trk-microcycle-table-wrap { padding: 0 12px 8px; }
.trk-microcycle-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; color: #202124; }
.trk-microcycle-table th, .trk-microcycle-table td { min-width: 0; padding: 8px 12px; border-bottom: 1px solid rgba(60,64,67,.10); text-align: left; vertical-align: middle; }
.trk-microcycle-table thead th:not(:first-child), .trk-microcycle-table tbody tr > :not(:first-child) { border-left: 1px solid rgba(60,64,67,.16); }
.trk-microcycle-table thead th { padding-top: 8px; padding-bottom: 8px; color: #5f6368; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.trk-microcycle-table tbody tr:last-child > * { border-bottom: 0; }
.trk-microcycle-table tbody tr:hover { background: #f8f9fa; }
.trk-microcycle-table tbody th { font-weight: 500; }
.trk-microcycle-table thead th:nth-child(1) { width: auto; }
.trk-microcycle-table thead th:nth-child(2) { width: 164px; }
.trk-microcycle-table thead th:nth-child(3) { width: 100px; }
.trk-microcycle-table thead th:nth-child(4) { width: 324px; }
.trk-microcycle-plan-cell { display: grid; gap: 4px; }
.trk-microcycle-plan-title { display: block; min-width: 0; max-width: 100%; color: #202124; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.trk-microcycle-plan-title:hover { color: #1a73e8; text-decoration: underline; }
.trk-microcycle-plan-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.trk-microcycle-plan-meta { color: #5f6368; font-size: 11px; font-weight: 600; }
.trk-microcycle-state { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 4px; background: #e6f4ea; color: #0d652d; font-size: 10px; font-weight: 800; }
.trk-microcycle-state.is-pending { background: #e8f0fe; color: #174ea6; }
.trk-microcycle-period { display: grid; gap: 4px; padding: 6px 8px; border-left: 2px solid #1a73e8; border-radius: 4px; background: #e8f0fe; }
.trk-microcycle-period__line { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: baseline; gap: 6px; }
.trk-microcycle-period__label { color: #5f6368; font-size: 10px; font-weight: 600; line-height: 1.4; }
.trk-microcycle-period time { color: #174ea6; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.4; white-space: nowrap; }
.trk-microcycle-period__missing { color: #5f6368; font-size: 11px; font-weight: 600; line-height: 1.4; }
.trk-microcycle-category { display: block; max-width: 100%; color: #5b35a3; font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.trk-microcycle-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 8px; min-width: 0; width: 100%; }
.trk-microcycle-table__actions-heading { text-align: right !important; }
.trk-microcycle-action { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 0; width: 100%; min-height: 36px; padding: 6px 8px; border: 1px solid #1a73e8; border-radius: 4px; background: #1a73e8; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
.trk-microcycle-action--edit { border-color: rgba(26,115,232,.30); background: #fff; color: #174ea6; }
.trk-microcycle-action--schedule { border-color: rgba(26,115,232,.30); background: #e8f0fe; color: #174ea6; }
.trk-microcycle-action:hover, .trk-microcycle-action:focus-visible { border-color: #174ea6; background: #174ea6; color: #fff; outline: 3px solid rgba(26,115,232,.20); outline-offset: 2px; }
.trk-microcycle-table a:focus-visible { outline: 3px solid rgba(26,115,232,.24); outline-offset: 2px; }
@container microcycle-plans (max-width: 740px) {
  .trk-microcycle-panel__head { align-items: flex-start; }
  .trk-microcycle-table-wrap { padding: 0 12px 12px; }
  .trk-microcycle-table, .trk-microcycle-table tbody, .trk-microcycle-table tr, .trk-microcycle-table th, .trk-microcycle-table td { display: block; width: 100%; }
  .trk-microcycle-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .trk-microcycle-table tbody { display: grid; gap: 8px; }
  .trk-microcycle-table tbody tr { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px 12px; padding: 12px; border: 1px solid rgba(60,64,67,.14); border-radius: 4px; background: #fff; }
  .trk-microcycle-table tbody th, .trk-microcycle-table tbody td { padding: 0; border: 0; }
  .trk-microcycle-table tbody tr > :not(:first-child) { border-left: 0; }
  .trk-microcycle-table tbody tr > td:nth-child(3) { padding-left: 12px; border-left: 1px solid rgba(60,64,67,.16); }
  .trk-microcycle-table tbody th, .trk-microcycle-table tbody td:last-child { grid-column: 1 / -1; }
  .trk-microcycle-table tbody td:not(:last-child)::before { display: block; margin-bottom: 4px; color: #5f6368; content: attr(data-label); font-size: 10px; font-weight: 700; text-transform: uppercase; }
  .trk-microcycle-plan-title { white-space: normal; overflow-wrap: anywhere; }
  .trk-microcycle-actions { padding-top: 8px; border-top: 1px solid rgba(60,64,67,.10); }
  .trk-microcycle-action { min-height: 44px; padding-inline: 4px; }
}
