/* ==========================================================================
   Multi & Ekiden Stopwatch - Bright Pop Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Bright background */
  --bg-primary: #f0f4ff;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9ff;

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  --text-primary: #1e1b4b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  /* Vivid pop palette */
  --pop-blue:    #4f6ef7;
  --pop-violet:  #8b5cf6;
  --pop-pink:    #ec4899;
  --pop-orange:  #f97316;
  --pop-yellow:  #eab308;
  --pop-green:   #22c55e;
  --pop-cyan:    #06b6d4;
  --pop-red:     #ef4444;

  --gradient-track:  linear-gradient(135deg, #4f6ef7 0%, #8b5cf6 100%);
  --gradient-ekiden: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  --gradient-hero:   linear-gradient(135deg, #4f6ef7 0%, #ec4899 50%, #f97316 100%);
  --gradient-start:  linear-gradient(135deg, #22c55e 0%, #06b6d4 100%);
  --gradient-stop:   linear-gradient(135deg, #f97316 0%, #ef4444 100%);

  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-full: 9999px;

  --shadow-sm:   0 2px 8px rgba(79, 110, 247, 0.1);
  --shadow-md:   0 6px 24px rgba(79, 110, 247, 0.15);
  --shadow-card: 0 4px 20px rgba(79, 110, 247, 0.08);
  --shadow-pop:  0 8px 32px rgba(79, 110, 247, 0.25);

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(79, 110, 247, 0.06) 0%, transparent 70%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  padding: 1.5rem 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.font-mono {
  font-family: var(--font-mono);
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Cards */
.glass-panel {
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ===================== Header ===================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.5rem 1rem 0.5rem;
  border-bottom: 2px solid #f1f5f9;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-track);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-pop);
}

.logo-icon i {
  width: 28px;
  height: 28px;
  color: #fff;
}

.header-brand h1 {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-brand .subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ===================== Control Panel ===================== */
.control-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  border: 1.5px solid var(--border-light);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .control-panel {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.mode-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 5px;
  border-radius: var(--radius-md);
  gap: 5px;
}

.mode-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
}

.mode-tab i {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
}

.mode-tab span {
  font-weight: 800;
  font-size: 0.9rem;
}

.mode-tab small {
  font-size: 0.68rem;
  opacity: 0.75;
}

.mode-tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.8);
}

.mode-tab.active {
  background: var(--gradient-track);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79, 110, 247, 0.35);
  transform: scale(1.02);
}

.mode-tab[data-mode="ekiden"].active {
  background: var(--gradient-ekiden);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.config-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.config-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.config-item label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.config-item label i {
  width: 13px;
  height: 13px;
}

.styled-select {
  background: #f8faff;
  border: 2px solid #e2e8f0;
  color: var(--text-primary);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.styled-select:focus {
  border-color: var(--pop-blue);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.15);
}

/* ===================== Master Timer Card ===================== */
.master-timer-card {
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* Decorative top strip */
.master-timer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-hero);
}

.timer-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.status-badge {
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 2px solid #e2e8f0;
}

.status-badge.running {
  background: #dcfce7;
  color: #16a34a;
  border-color: #bbf7d0;
  animation: pulseBadge 1.5s infinite;
}

.status-badge.paused {
  background: #fef9c3;
  color: #ca8a04;
  border-color: #fde68a;
}

.status-badge.finished {
  background: #ede9fe;
  color: #7c3aed;
  border-color: #ddd6fe;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.mode-indicator {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--pop-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(79, 110, 247, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(79, 110, 247, 0.2);
}

.master-timer-display {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient-track);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin: 0.5rem 0 1.5rem 0;
  filter: drop-shadow(0 2px 8px rgba(79, 110, 247, 0.2));
}

@media (min-width: 640px) {
  .master-timer-display {
    font-size: 6rem;
  }
}

/* Ekiden Banner */
.ekiden-status-banner {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
  border: 2px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: tasukiPop 2s infinite alternate ease-in-out;
}

.ekiden-status-banner.hidden {
  display: none !important;
}

@keyframes tasukiPop {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    border-color: #fed7aa;
  }
  100% {
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.12);
    border-color: #fb923c;
  }
}

.tasuki-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ea580c;
  font-size: 0.95rem;
  font-weight: 700;
}

.tasuki-badge i {
  width: 20px;
  height: 20px;
}

.section-timer {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-ekiden);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===================== Buttons ===================== */
.master-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

button * {
  pointer-events: none;
}

.primary-btn {
  background: var(--gradient-start);
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.primary-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.4);
}

.primary-btn:active {
  transform: scale(0.97);
}

.primary-btn.btn-stop {
  background: var(--gradient-stop);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

.primary-btn.btn-stop:hover {
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.4);
}

.danger-btn {
  background: #fff1f2;
  color: #e11d48;
  border: 2px solid #fecdd3;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.danger-btn:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

.secondary-btn {
  background: #f8faff;
  color: var(--pop-blue);
  border: 2px solid #e0e7ff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  transform: translateY(-1px);
}

.icon-btn {
  background: #f8faff;
  border: 2px solid #e2e8f0;
  color: var(--text-secondary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: var(--pop-blue);
}

.text-btn {
  background: transparent;
  color: var(--pop-violet);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.text-btn:hover {
  background: #f5f3ff;
  color: #7c3aed;
}

.hint-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.hint-text i {
  width: 13px;
  height: 13px;
}

/* Long Press Indicator Bar */
.long-press-target {
  position: relative;
}

.hold-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #f97316, #ef4444);
  border-radius: 0 0 0 4px;
  transition: width 0.05s linear;
}

/* ===================== Runners Section ===================== */
.runners-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title h2 {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.runners-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .runners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .runners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================== Runner Card ===================== */
.runner-card {
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  --runner-color: var(--pop-blue);
}

/* Color accent top bar */
.runner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--runner-color);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.runner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(79, 110, 247, 0.12);
  border-color: var(--runner-color);
}

.runner-card.active-runner {
  border-color: var(--runner-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--runner-color) 15%, transparent),
              0 8px 24px rgba(79, 110, 247, 0.12);
  animation: cardPop 2s infinite ease-in-out;
}

@keyframes cardPop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.runner-card.finished {
  opacity: 0.8;
  background: #f8faff;
}

.runner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.runner-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.runner-color-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--runner-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--runner-color) 20%, transparent);
  flex-shrink: 0;
}

.runner-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.runner-header-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.runner-lap-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
  background: #f1f5f9;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1.5px solid #e2e8f0;
}

.runner-status-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.runner-card.active-runner .runner-status-pill {
  background: var(--runner-color);
  color: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--runner-color) 40%, transparent);
}

.runner-card.finished .runner-status-pill {
  background: #dcfce7;
  color: #16a34a;
  border: 1.5px solid #bbf7d0;
}

/* Runner Action Buttons */
.runner-controls {
  display: flex;
  gap: 0.5rem;
}

.lap-btn {
  flex: 2;
  background: var(--runner-color);
  color: #fff;
  padding: 0.8rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--runner-color) 35%, transparent);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.lap-btn:hover:not(:disabled) {
  transform: scale(1.03);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--runner-color) 45%, transparent);
}

.lap-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.lap-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.cancel-btn {
  flex: 1;
  background: #f8faff;
  border: 2px solid #e2e8f0;
  color: var(--text-muted);
  padding: 0.75rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.cancel-btn:hover:not(:disabled) {
  background: #fff1f2;
  color: #e11d48;
  border-color: #fecdd3;
}

.cancel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Runner Lap History Mini */
.runner-laps-mini {
  max-height: 100px;
  overflow-y: auto;
  font-size: 0.78rem;
  border-top: 2px dashed #f1f5f9;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lap-item {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.lap-item:nth-child(even) {
  background: #f8faff;
}

.lap-item .lap-num {
  color: var(--text-muted);
  font-weight: 600;
}

.lap-item .lap-time {
  font-weight: 700;
  color: var(--text-primary);
}

/* ===================== Modals ===================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(79, 110, 247, 0.2);
}

.modal-card.wide-modal {
  max-width: 850px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.75rem;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.modal-body {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 0.3rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
  border-top: 2px solid #f1f5f9;
  padding-top: 1rem;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Results Modal */
.results-meta-bar {
  display: flex;
  gap: 1.5rem;
  background: #f8faff;
  border: 2px solid #e0e7ff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
}

.meta-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.meta-val {
  font-weight: 800;
  color: var(--pop-blue);
}

.modal-subtabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
}

.subtab {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.subtab.active {
  color: var(--pop-blue);
  border-bottom-color: var(--pop-blue);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.table-wrapper {
  overflow-x: auto;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.results-table th {
  background: #f8faff;
  color: var(--text-secondary);
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.results-table td {
  padding: 0.65rem 0.85rem;
  border-top: 1px solid #f1f5f9;
  white-space: nowrap;
  color: var(--text-primary);
  font-weight: 600;
}

.results-table tr:nth-child(even) td {
  background: #fafbff;
}

.best-lap-badge {
  background: #dcfce7;
  color: #16a34a;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.78rem;
  border: 1.5px solid #bbf7d0;
}

/* Customize Modal */
.runner-custom-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.runner-custom-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8faff;
  border: 2px solid #e2e8f0;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
}

.runner-custom-row span {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-secondary);
  width: 45px;
}

.runner-input {
  flex: 1;
  background: #fff;
  border: 2px solid #e2e8f0;
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease;
}

.runner-input:focus {
  border-color: var(--pop-blue);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12);
}

.color-picker-group {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.15s ease;
}

.color-dot:hover {
  transform: scale(1.25);
}

.color-dot.selected {
  border-color: #1e1b4b;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(0,0,0,0.2);
}
