.team-selection .app-shell { height: 100dvh; }
.team-selection .car-code { font-size: 12px; letter-spacing: .025em; color: #d0d5df; }
.team-selection .car-code b { font-weight: 600; color: #fff; }
.team-selection-controls {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 3%;
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  width: max-content;
  max-width: 94%;
}
.team-selection .team-dock {
  position: static;
  transform: none;
  width: 100%;
  max-width: 100%;
}
.team-drivers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 8px;
  min-width: 0;
}
.team-selection .driver-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  min-height: 54px;
  padding: 10px 18px;
  border: 1px solid #ffffff40;
  border-radius: 5px;
  background: #111620d9;
  text-align: left;
  transition: background 160ms, border-color 160ms;
}
.team-selection .driver-card:hover { background: #303642e8; border-color: #ffffff80; }
.team-selection .driver-card[aria-pressed="true"] { border-color: #fff; background: #454b55eb; box-shadow: inset 0 0 0 1px #fff; }
.team-selection .d-name { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.team-selection .d-abbr { flex: none; font: 500 18px/1.2 var(--font-display); color: #c6ceda; letter-spacing: .08em; }
.team-selection .driver-card[aria-pressed="true"] .d-abbr { color: #fff; }
@media (max-width: 1000px) {
  .team-selection-controls { gap: 6px; }
  .team-selection .driver-card { min-height: 48px; padding: 8px 14px; }
  .team-selection .d-name { font-size: 13px; }
  .team-selection .d-abbr { font-size: 16px; }
}
@media (max-width: 650px) and (orientation: portrait) {
  .team-selection-controls { left: 0; bottom: 3%; width: 100%; max-width: 100%; transform: none; }
  .team-selection .team-dock { padding: 8px 18px; }
  .team-drivers { padding: 0 18px; gap: 10px; }
  .team-selection .driver-card { padding: 10px; gap: 8px; min-height: 54px; }
  .team-selection .d-name { font-size: 12px; }
  .team-selection .d-abbr { font-size: 14px; }
  .team-selection .car-viewport { inset: 28% -5% 19%; }
  .team-selection .car-code { font-size: 10px; }
}
@media (max-height: 600px) and (orientation: landscape) {
  .team-selection-controls { bottom: 3%; gap: 4px; }
  .team-selection .team-dock { padding: 3px 8px; }
  .team-selection .driver-card { min-height: 32px; padding: 5px 12px; }
  .team-selection .d-name { font-size: 11px; }
  .team-selection .d-abbr { font-size: 13px; }
  .team-selection .car-code { font-size: 9px; }
}
