.championship-stage-results-card {
  margin-top: 22px;
  border-left-color: #d7ad32;
}

.championship-stage-results-card .panel-heading > p,
.championship-stage-results-card .panel-heading div > p:not(.section-eyebrow) {
  margin: 6px 0 0;
  color: #999;
  max-width: 760px;
  font-size: .82rem;
  line-height: 1.45;
}

.stage-result-heading {
  margin-top: 18px;
}

.championship-stage-results-card .result-heat-chip {
  min-width: 96px;
}

.championship-stage-results-card .race-result-table {
  min-width: 780px;
}

/* Matchrace Qualifying — 12 drivers x 12 karts */
.mq-times-editor {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #3b3b3b;
  border-left: 4px solid var(--race-gold);
  background: #070707;
}

.mq-times-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #343434;
  background: #0c0c0c;
}

.mq-times-summary strong {
  color: var(--race-gold);
  font-size: .78rem;
  letter-spacing: .06em;
}

.mq-times-summary span {
  color: #999;
  font-size: .75rem;
}

.mq-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #333;
  background: #050505;
}

.mq-times-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  background: #050505;
}

.mq-times-table th,
.mq-times-table td {
  height: 46px;
  padding: 6px;
  border-right: 1px solid #242424;
  border-bottom: 1px solid #242424;
  text-align: center;
  white-space: nowrap;
}

.mq-times-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  min-width: 82px;
  color: #999;
  background: #0d0d0d;
  font-size: .64rem;
  letter-spacing: .05em;
}

.mq-times-table .mq-driver-col {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 190px;
  max-width: 190px;
  text-align: left;
  background: #0a0a0a;
}

.mq-times-table thead .mq-driver-col {
  z-index: 4;
  background: #0d0d0d;
}

.mq-times-table .mq-driver-col strong,
.mq-times-table .mq-driver-col small {
  display: block;
}

.mq-times-table .mq-driver-col strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
}

.mq-times-table .mq-driver-col small {
  margin-top: 2px;
  color: #777;
  font-size: .6rem;
}

.mq-lap-input {
  width: 76px;
  min-width: 76px;
  padding: 8px 5px;
  border: 1px solid #3a3a3a;
  border-radius: 0;
  outline: none;
  background: #101010;
  color: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: .76rem;
  text-align: center;
}

.mq-lap-input:focus {
  border-color: var(--race-gold);
  box-shadow: 0 0 0 1px rgba(211,168,30,.2);
}

.mq-lap-input.invalid {
  border-color: var(--race-red);
  background: rgba(223,20,33,.09);
}

.mq-complete-cell,
.mq-average-cell,
.mq-best-cell,
.mq-rank-cell {
  min-width: 86px;
}

.mq-average-cell strong {
  color: var(--race-gold);
}

.mq-times-actions {
  margin-top: 14px;
}

.mq-running-table .race-lap-time {
  color: var(--race-gold);
}

@media (max-width: 720px) {
  .mq-times-editor {
    padding: 10px;
  }

  .mq-times-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .mq-times-table .mq-driver-col {
    min-width: 150px;
    max-width: 150px;
  }
}
