body {
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.16);
  --accent-soft-strong: rgba(37, 99, 235, 0.28);
  --accent-bg-a: #eef2ff;
  --accent-bg-b: #f8fafc;
  --accent-bg-c: #eef2ff;
  --chip-bg: #eff6ff;
  --chip-border: #bfdbfe;
  --chip-text: #1e40af;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border-subtle: #dbe4f0;
  --text-main: #0f172a;
  --text-sub: #64748b;
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 90% 4%, var(--accent-soft) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, var(--accent-bg-a) 0%, var(--accent-bg-b) 48%, var(--accent-bg-c) 100%);
  color: var(--text-main);
  line-height: 1.45;
  min-height: 100vh;
}

body[data-mode='AirRide'] {
  --accent: #dc2626;
  --accent-strong: #b91c1c;
  --accent-soft: rgba(220, 38, 38, 0.2);
  --accent-bg-a: #fff1f2;
  --accent-bg-b: #fff7f7;
  --accent-bg-c: #fff1f2;
  --chip-bg: #fee2e2;
  --chip-border: #fecaca;
  --chip-text: #991b1b;
}

body[data-mode='TopRide'] {
  --accent: #d97706;
  --accent-strong: #b45309;
  --accent-soft: rgba(217, 119, 6, 0.2);
  --accent-bg-a: #fff7e6;
  --accent-bg-b: #fffdf5;
  --accent-bg-c: #fff7e6;
  --chip-bg: #fef3c7;
  --chip-border: #fcd34d;
  --chip-text: #92400e;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.74) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(6px);
  margin-top: 18px;
  margin-bottom: 18px;
}

.card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
  border: 1px solid #e2e8f0;
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: var(--chip-border);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.11);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  opacity: 0.85;
}

.card > h2 {
  margin-bottom: 12px;
}

.warning-card {
  border: 1px solid #f59e0b;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(255, 255, 255, 0.98) 42%),
    linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.12);
}

.warning-card::before {
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.warning-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.warning-card-text {
  margin: 0;
  color: #7c2d12;
  font-size: 1rem;
  line-height: 1.65;
}

.warning-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.warning-card-hint {
  color: #9a3412;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Push notification settings card */
.ios-pwa-warning {
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.ios-pwa-warning-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #9a3412;
}

.ios-pwa-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.7;
}

.push-settings-description {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.push-setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.push-setting-row > label:first-child {
  min-width: 80px;
  font-weight: 600;
  font-size: 0.95rem;
}

.push-setting-row select {
  width: auto;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  font-size: 0.92rem;
  color: var(--text-main);
}

.push-setting-label {
  font-size: 0.9rem;
  color: var(--text-sub);
}

.push-enable-check {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-sub);
  white-space: nowrap;
}

.push-enable-check input {
  width: 16px;
  height: 16px;
}

.push-settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .push-setting-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .push-setting-row > label:first-child {
    min-width: 100%;
  }

  .push-enable-check {
    margin-left: 0;
  }
}

.push-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin-left: auto;
  cursor: pointer;
}

.push-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.push-toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 24px;
  transition: background 0.2s ease;
}

.push-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.push-toggle input:checked + .push-toggle-slider {
  background: var(--accent);
}

.push-toggle input:checked + .push-toggle-slider::before {
  transform: translateX(20px);
}

h1, h2, h3 {
  margin-top: 0;
}

h1 {
  letter-spacing: 0.02em;
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.25;
}

h3 {
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--accent-strong) 88%, #000 12%);
  letter-spacing: 0.01em;
  transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.nav-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px var(--accent-soft);
  filter: saturate(1.08);
}

button {
  border: 1px solid color-mix(in srgb, var(--accent-strong) 88%, #000 12%);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
  box-shadow: 0 5px 12px var(--accent-soft);
  transition: transform 0.08s ease, filter 0.12s ease, box-shadow 0.14s ease;
}

button.secondary {
  background: linear-gradient(180deg, #64748b 0%, #475569 100%);
  border-color: #334155;
  box-shadow: 0 3px 10px rgba(71, 85, 105, 0.18);
}

button.rank-selected {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 5px 12px var(--accent-soft);
}

button:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.rank-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rank-button-group button {
  flex: 0 1 calc(25% - 4.5px);
  min-width: auto;
  padding: 6px 8px;
  font-size: 0.875rem;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

input, select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input:focus, select:focus {
  outline: 2px solid var(--chip-border);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

label {
  display: inline-block;
  font-size: 12px;
  color: #475569;
  font-weight: 700;
  margin-bottom: 4px;
}

label + div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 10px;
  min-height: 20px;
}

ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

li {
  padding: 2px 0;
}

.trend-wrap {
  margin-top: 8px;
  margin-bottom: 10px;
}

.trend-graph {
  width: 100%;
  height: 170px;
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.trend-axis-label {
  fill: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.trend-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  color: #64748b;
  font-size: 12px;
  background: #f8fafc;
}

#playerList {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

#playerList li {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.message {
  margin-top: 14px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--chip-text);
  font-weight: 700;
  min-height: 20px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.message.floating {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin-top: 0;
  margin-bottom: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.message.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

@keyframes messageFlashSoft {
  0% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.3);
  }
  40% {
    transform: translateY(0);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  }
}

@keyframes messageFlashError {
  0% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.34);
  }
  40% {
    transform: translateY(0);
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.2);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  }
}

.message.flash {
  animation: messageFlashSoft 0.55s ease-out;
}

.message.error.flash {
  animation: messageFlashError 0.65s ease-out;
}

.muted {
  color: #64748b;
  font-size: 13px;
}

#recentMatchCard > .muted,
#entryCountsCard > .muted {
  font-size: 1rem;
  color: #334155;
}

.peak-rating {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

#queueStatus {
  background: #ffffff;
  border: 1px solid var(--chip-border);
  border-radius: 8px;
  padding: 8px 10px;
}

.drop-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.report-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rank-side {
  display: grid;
  gap: 8px;
}

.rank-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.source-slot {
  min-height: 320px;
}

.rank-column .drop-slot {
  min-height: 56px;
}

.dnf-slot {
  min-height: 52px;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.dnf-slot .slot-title {
  color: #64748b;
  font-weight: 600;
}

.drop-slot {
  border: 1px dashed #94a3b8;
  min-height: 90px;
  border-radius: 10px;
  padding: 8px;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.slot-title {
  font-size: 12px;
  color: #475569;
  margin-bottom: 6px;
  font-weight: 700;
}

.drag-player {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 8px;
  padding: 7px 8px;
  margin-bottom: 6px;
  cursor: grab;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  transition: transform 0.1s ease, box-shadow 0.12s ease;
}

.drag-player:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.mode-card {
  border: 1px solid var(--chip-border);
  background: linear-gradient(180deg, #ffffff 0%, var(--chip-bg) 100%);
}

.mode-card h2,
.mode-card h3 {
  border-bottom-color: var(--chip-border);
}

.mode-card.mode-air {
  --accent: #dc2626;
  --accent-strong: #b91c1c;
  --accent-soft: rgba(220, 38, 38, 0.2);
  --chip-bg: #fee2e2;
  --chip-border: #fecaca;
}

.mode-card.mode-top {
  --accent: #d97706;
  --accent-strong: #b45309;
  --accent-soft: rgba(217, 119, 6, 0.2);
  --chip-bg: #fef3c7;
  --chip-border: #fcd34d;
}

.pending-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.pending-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.approval-badge {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

.placements-grid {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.placement-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 6px 8px;
}

.place-rank {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.place-name {
  font-size: 13px;
}

.place-rank.dnf {
  color: #b91c1c;
}

.pending-card .actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

#playerList li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, max-content) auto;
  align-items: center;
  gap: 10px;
}

.player-selection-text {
  grid-column: 2;
  justify-self: start;
  text-align: left;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-selection-icon,
.selection-icon {
  height: 24px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.custom-select-wrapper {
  position: relative;
}

#selectionCard {
  overflow: visible;
  z-index: 20;
}

#selectionCard .grid-3 {
  align-items: start;
}

#selectionCard .custom-select-wrapper {
  z-index: 21;
}

.custom-select-trigger {
  cursor: pointer;
  transition: all 0.2s;
}

.custom-select-trigger:hover {
  border-color: #cbd5e1 !important;
  background-color: #f9fafb !important;
}

.custom-select-dropdown {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 22;
}

.custom-select-dropdown::-webkit-scrollbar {
  width: 8px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.player-report-controls {
  grid-column: 3;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-self: end;
}

.player-report-controls select {
  min-width: 98px;
  max-width: 98px;
  transition: min-width 0.15s ease, max-width 0.15s ease;
}

.player-report-controls select.report-reason-expanded {
  min-width: 320px;
  max-width: 420px;
}

.chat-row {
  padding: 6px 0;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.4;
  font-size: 13px;
}

.chat-translated {
  display: block;
}

.chat-original {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
  line-height: 1.3;
}

#chatList {
  background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.chat-input-row {
  gap: 8px;
}

.chat-input-row #chatInput {
  flex: 1 1 220px;
}

.chat-preset-group {
  display: flex;
  gap: 6px;
  margin-left: 8px;
  flex-wrap: wrap;
}

.chat-preset-button {
  white-space: nowrap;
  padding: 8px 10px;
  font-size: 12px;
}

.chat-consent-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(15, 23, 42, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.chat-consent-modal-content {
  width: min(100%, 520px);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.24);
  padding: 16px;
}

.chat-consent-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.chat-consent-modal-header h4 {
  margin: 0;
  font-size: 1rem;
}

.chat-consent-close {
  border: none;
  background: transparent;
  color: #334155;
  box-shadow: none;
  font-size: 1.35rem;
  line-height: 1;
  padding: 2px 6px;
}

.chat-consent-close:hover {
  filter: none;
  color: #0f172a;
}

.chat-consent-modal-text {
  margin: 0;
  color: #334155;
  line-height: 1.7;
  white-space: pre-wrap;
}

.chat-consent-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .chat-preset-group {
    margin-left: 0;
    width: 100%;
  }

  .chat-preset-button {
    flex: 1 1 auto;
  }

  .chat-consent-modal-actions {
    flex-direction: column;
  }

  .chat-consent-modal-actions button {
    width: 100%;
  }
}

/* ── Core Time ── */

.core-time-status {
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.02em;
}

.core-time-active {
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid #d97706;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  animation: coreTimePulse 2s ease-in-out infinite;
}

@keyframes coreTimePulse {
  0%, 100% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.55); }
}

.core-time-upcoming {
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  font-weight: 600;
  border: 2px solid #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.core-time-result-note {
  margin-top: 8px;
  padding: 6px 10px;
  background: #fef3c7;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #f59e0b;
}

#reportReadonlyHint {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

table th, table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 9px 10px;
  text-align: left;
}

table th {
  background: #f8fafc;
  color: #334155;
}

table tbody tr:nth-child(even) {
  background: #fcfdff;
}

table tbody tr:hover {
  background: #f1f5f9;
}

.lb-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  object-fit: contain;
}

.lb-icon-col,
.lb-icon-cell {
  width: 30px;
  padding: 4px 2px;
  text-align: center;
}

body[data-mode='AirRide'] table th,
.mode-card.mode-air table th {
  background: #fff1f2;
}

body[data-mode='TopRide'] table th,
.mode-card.mode-top table th {
  background: #fffbeb;
}

@media (max-width: 900px) {
  .container {
    padding: 16px;
    border-radius: 14px;
  }

  .card {
    padding: 14px;
  }

  .grid-2, .grid-3, .drop-layout, .report-workspace {
    grid-template-columns: 1fr;
  }

  #playerList li {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .player-selection-text {
    grid-column: auto;
    flex-wrap: wrap;
    white-space: normal;
  }

  .player-selection-text img {
    height: 20px;
    max-width: 40px;
  }

  .player-report-controls {
    grid-column: auto;
    justify-self: start;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .custom-select-dropdown {
    grid-template-columns: 1fr !important;
  }

  .custom-select-dropdown > div {
    flex-direction: row !important;
    justify-content: flex-start !important;
    padding: 10px 12px !important;
  }

  .custom-select-dropdown > div img {
    height: 28px !important;
    width: auto;
    max-width: 52px;
    flex-shrink: 0;
  }

  .custom-select-dropdown > div span {
    text-align: left !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px !important;
  }

  #selectionCard {
    overflow: visible;
  }

  .source-slot {
    min-height: 160px;
  }
}
