/* TrackEntry 0.9.11.6 – Schnellwertung oben und sichere Buttons */
.heat-form .helmet-chip[role="button"] {
  position: relative;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: transform .12s ease, box-shadow .12s ease;
}

.heat-form .helmet-chip[role="button"]:active,
.quickscore-rider:active {
  transform: scale(.98);
}

.heat-form .helmet-chip[role="button"]:focus-visible,
.quickscore-rider:focus-visible,
.quickscore-heat-link:focus-visible {
  outline: 3px solid #17202b;
  outline-offset: 3px;
}

.heat-form .helmet-chip.quickscore-assigned {
  box-shadow: 0 0 0 4px rgba(23, 32, 43, .18);
}

.heat-form .helmet-chip.quickscore-assigned::after {
  content: attr(data-score);
  position: absolute;
  right: -10px;
  top: -13px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 7px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #17202b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}

.quickscore-top-panel {
  margin-top: 22px;
  border: 2px solid #ef4b23;
  box-shadow: 0 12px 34px rgba(23, 32, 43, .12);
  scroll-margin-top: 100px;
}

.quickscore-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.quickscore-head h2 {
  margin: 5px 0 4px;
}

.quickscore-head p {
  margin: 0;
  color: #65738a;
}

.quickscore-heat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.quickscore-heat-link {
  appearance: none;
  border: 0;
  border-radius: 12px;
  min-width: 48px;
  padding: 10px 12px;
  background: #edf1f6;
  color: #17202b;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.quickscore-heat-link.active {
  background: #ef4b23;
  color: #fff;
  box-shadow: 0 5px 14px rgba(239, 75, 35, .28);
}

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

.quickscore-rider {
  appearance: none;
  min-height: 126px;
  padding: 16px;
  border: 3px solid transparent;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  color: #17202b;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(23, 32, 43, .09);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.quickscore-rider.has-result {
  border-color: #17202b;
  box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 10px 24px rgba(23, 32, 43, .19);
}

.quickscore-rider .quickscore-color {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.quickscore-rider strong {
  font-size: 18px;
  line-height: 1.2;
}

.quickscore-result {
  align-self: flex-start;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #17202b;
  font-size: 14px;
}

.quickscore-rider.helmet-white,
.quickscore-rider.helmet-weiss {
  border-color: #9da8b8;
  background: #fff;
}

.quickscore-rider.helmet-red,
.quickscore-rider.helmet-rot {
  background: #ef3b2d;
  color: #fff;
}

.quickscore-rider.helmet-blue,
.quickscore-rider.helmet-blau {
  background: #347dcc;
  color: #fff;
}

.quickscore-rider.helmet-yellow,
.quickscore-rider.helmet-gelb {
  background: #ffd500;
}

.quickscore-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 14px;
  background: #f5f7fa;
  color: #65738a;
}

.quickscore-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.heat-editor.quickscore-selected {
  box-shadow: 0 0 0 3px rgba(239, 75, 35, .22);
}

@media (max-width: 980px) {
  .quickscore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .heat-form .helmet-chip[role="button"] {
    min-height: 54px;
    font-size: 16px;
  }

  .heat-entry-table td:first-child {
    width: 142px;
  }

  .quickscore-top-panel {
    margin-top: 14px;
    padding: 16px;
  }

  .quickscore-grid {
    grid-template-columns: 1fr;
  }

  .quickscore-rider {
    min-height: 94px;
  }

  .quickscore-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quickscore-actions .btn {
    width: 100%;
  }
}
