.th-qual-meta a {
  color: #86efac;
  border-bottom: 1px solid rgba(134, 239, 172, 0.4);
  text-decoration: none;
}

.th-qual-meta .material-symbols-outlined {
  color: #86efac;
}

.th-group + .th-group {
  border-top: 1px solid #243533;
}

.th-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(36, 53, 51, 0.5);
  color: #9ca3af;
  font-size: 10.5pt;
}

.th-callout .material-symbols-outlined {
  font-size: 17px;
  color: #fda4af;
}

.th-table {
  --th-cols: 48px minmax(0, 1fr) 64px 56px 40px 64px 104px;
}

.th-group.has-tiebreak .th-table {
  --th-cols: 48px minmax(0, 1fr) 64px 56px 64px 40px 64px 104px;
}

.th-group.is-pk .th-table {
  --th-cols: 56px minmax(0, 1fr) 110px 70px 90px;
}

.th-row {
  display: grid;
  grid-template-columns: var(--th-cols);
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 13px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(36, 53, 51, 0.5);
  font-variant-numeric: tabular-nums;
}

.th-row--head {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom-color: #243533;
  background: rgba(30, 37, 38, 0.5);
  color: #9ca3af;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.th-row--head > div:first-child {
  padding-left: 8px;
}

.th-row.is-qualifying {
  background: rgba(34, 197, 94, 0.04);
}

.th-row.is-in-range {
  background: rgba(238, 36, 69, 0.035);
}

.th-row.is-me {
  border-left-color: #ee2445;
  background: rgba(238, 36, 69, 0.08);
}

.th-row.is-dim {
  opacity: 0.55;
}

.th-row.is-dq .th-entity__name {
  text-decoration: line-through;
}

.th-rank {
  padding-left: 8px;
  color: #5a6a6a;
  font-size: 14pt;
  font-weight: 700;
}

.th-row.is-qualifying .th-rank {
  color: #86efac;
}

.th-row.is-in-range .th-rank {
  color: #fca5a5;
}

.th-entity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.th-entity__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
}

.th-entity__line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.th-entity__name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 12pt;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.th-entity__name:hover {
  color: #ee2445;
}

.th-me-tag {
  flex: 0 0 auto;
  color: #ee2445;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.th-note {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10pt;
  line-height: 1.4;
}

.th-note__dot {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: #9ca3af;
}

.th-note__dot--scheduled { background: #60a5fa; }
.th-note__dot--tba { background: #9ca3af; }
.th-note__dot--pending { background: #ec4899; }
.th-note__dot--protected { background: #94a3b8; }
.th-note__dot--inactive { background: #6b7280; }
.th-note__dot--payment { background: #f5c842; }
.th-note__dot--disqualified { background: #ef4444; }

.th-note__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-num {
  color: #fff;
  font-size: 11pt;
  font-weight: 600;
  text-align: right;
}

.th-row--head .th-num {
  color: #9ca3af;
  font-size: 9pt;
  font-weight: 700;
}

.th-num--strong {
  font-weight: 800;
}

.th-fa.is-positive { color: #22c55e; }
.th-fa.is-negative { color: #ef4444; }
.th-fa.is-neutral { color: #9ca3af; }

.th-form {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}

.th-form__pill {
  width: 8px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(36, 53, 51, 0.9);
  background: rgba(36, 53, 51, 0.55);
}

.th-form__pill.is-win {
  border-color: rgba(134, 239, 172, 0.42);
  background: rgba(34, 197, 94, 0.92);
}

.th-form__pill.is-loss {
  border-color: rgba(252, 165, 165, 0.42);
  background: rgba(239, 68, 68, 0.92);
}

.th-form__pill.is-draw {
  border-color: rgba(252, 211, 77, 0.44);
  background: rgba(245, 158, 11, 0.92);
}

.th-action {
  display: flex;
  justify-content: flex-end;
}

.th-view-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #9ca3af;
  font-size: 10pt;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.th-view-link:hover {
  color: #fff;
}

.th-view-link .material-symbols-outlined {
  font-size: 16px;
}

.th-challenge-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(238, 36, 69, 0.4);
  background: rgba(238, 36, 69, 0.14);
  color: #fff;
  font-size: 10pt;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.th-challenge-btn:hover {
  background: #ee2445;
  color: #fff;
}

.th-qual-line {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-top: 1px dashed rgba(34, 197, 94, 0.35);
  border-bottom: 1px dashed rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.07);
  color: #4ade80;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.th-range-start {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 61px;
  border-bottom: 1px solid rgba(36, 53, 51, 0.5);
  color: #fca5a5;
  font-size: 9pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.th-range-start__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(238, 36, 69, 0.3), transparent);
}

.th-group[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .th-table {
    --th-cols: 38px minmax(0, 1fr) 52px 30px 48px;
  }

  .th-group.has-tiebreak .th-table {
    --th-cols: 38px minmax(0, 1fr) 52px 30px 48px;
  }

  .th-group.is-pk .th-table {
    --th-cols: 38px minmax(0, 1fr) 44px 52px;
  }

  .th-row--head > div:first-child {
    padding-left: 2px;
  }

  .th-row {
    gap: 8px;
    padding: 10px 10px 10px 7px;
  }

  .th-hide-sm {
    display: none;
  }

  .th-rank {
    padding-left: 2px;
    font-size: 12pt;
  }

  .th-entity {
    gap: 10px;
  }

  .th-entity .th-avatar {
    display: none;
  }

  .th-entity__name {
    font-size: 11pt;
  }

  .th-range-start {
    padding-left: 16px;
  }
}
