/* Enhanced ReplayBar with premium polish */
.replay-bar {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.5rem;
  padding: var(--space-md) 1.1rem;
  border-radius: 1.3rem;
  background: linear-gradient(135deg, color-mix(in oklch, var(--panel), var(--bg-strong) 20%) 0%, color-mix(in oklch, var(--panel), var(--bg-strong) 12%) 100%);
  border: 1px solid color-mix(in oklch, var(--panel-border), transparent 35%);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 12px color-mix(in oklch, var(--muted), transparent 85%), inset 0 1px 2px color-mix(in oklch, white, transparent 25%);
}

.replay-bar .mode-switches {
  gap: 0.55rem;
}

.replay-bar .mode-switches button {
  transition: background-color var(--duration-fast) var(--ease-out-quart),
              transform var(--duration-fast) var(--ease-out-quart),
              box-shadow var(--duration-normal) var(--ease-out-quart);
}

.replay-bar .mode-switches button:hover {
  transform: scale(1.02);
}

.replay-bar .mode-switches button:active {
  transform: scale(0.95);
}

.replay-bar .threshold-presets button {
  transition: background-color var(--duration-fast) var(--ease-out-quart),
              transform var(--duration-fast) var(--ease-out-quart);
}

.replay-bar .threshold-presets button:hover {
  transform: scale(1.02);
}

.replay-bar .threshold-presets button:active {
  transform: scale(0.95);
}

.breakpoint-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.breakpoint-preset {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--panel-border), transparent 30%);
  background: color-mix(in oklch, var(--panel), var(--bg-strong) 18%);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--duration-fast) var(--ease-out-quart),
              background-color var(--duration-normal) var(--ease-material),
              border-color var(--duration-normal) var(--ease-material);
}

.breakpoint-preset:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklch, var(--accent), var(--panel-border) 30%);
}

.breakpoint-preset.active {
  background: color-mix(in oklch, var(--accent), white 85%);
  border-color: color-mix(in oklch, var(--accent), transparent 20%);
}

.breakpoint-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.85rem;
  align-items: end;
  padding: var(--space-md) 1.1rem;
  border-radius: 1.2rem;
  border: 1px solid var(--panel-border);
  background: color-mix(in oklch, var(--panel), var(--bg-strong) 28%);
  box-shadow: inset 0 1px 3px color-mix(in oklch, var(--muted), transparent 80%);
}

.breakpoint-bar label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.breakpoint-bar input {
  padding: 0.65rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.9rem;
  transition: all var(--duration-normal) var(--ease-material);
  box-shadow: 0 1px 3px color-mix(in oklch, var(--muted), transparent 85%);
}

.breakpoint-bar input:focus {
  outline: none;
  border-color: var(--accent);
  background: color-mix(in oklch, var(--panel), white 40%);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent), transparent 70%), 0 2px 8px color-mix(in oklch, var(--accent), transparent 25%);
}

.breakpoint-bar .checkbox-label {
  align-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.65rem 0.85rem;
  border-radius: 0.8rem;
  background: color-mix(in oklch, var(--panel), var(--bg-strong) 15%);
  border: 1px solid color-mix(in oklch, var(--panel-border), transparent 50%);
  transition: all var(--duration-normal) var(--ease-material);
  font-weight: 500;
}

.breakpoint-bar .checkbox-label:hover {
  background: color-mix(in oklch, var(--panel), var(--bg-strong) 25%);
  border-color: color-mix(in oklch, var(--panel-border), transparent 70%);
}
