/* ── Control Bar Components ── */
.brand-group {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-primary), hsl(152, 90%, 30%));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent-glow);
}

.brand-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #07090e;
  stroke-width: 2.2;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.controls-cluster {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: nowrap;
}

/* ── Form Controls & Selects ── */
.control-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  color: var(--text-secondary);
}

.control-label {
  font-weight: 500;
  font-size: 12px;
  color: var(--text-muted);
}

.custom-select {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.custom-select:hover, .custom-select:focus {
  border-color: var(--accent-primary);
}

/* ── Intensity Dot Pip Selector (1-5) ── */
.intensity-group {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: var(--border-subtle);
}

.intensity-pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid hsl(220, 14%, 28%);
  cursor: pointer;
  transition: all 0.2s ease;
}

.intensity-pip:hover {
  border-color: var(--accent-bright);
}

.intensity-pip.active {
  background: var(--accent-primary);
  border-color: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-primary);
}

/* ── Toggle Switches ── */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  color: var(--text-secondary);
}

.toggle-switch {
  width: 32px;
  height: 18px;
  background: var(--bg-surface);
  border-radius: 9px;
  position: relative;
  transition: background-color 0.25s;
  border: 1px solid hsl(220, 14%, 26%);
}

.toggle-thumb {
  width: 12px;
  height: 12px;
  background: var(--text-muted);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.25s, background-color 0.25s;
}

input[type="checkbox"]:checked + .toggle-switch {
  background: var(--accent-dim);
  border-color: var(--accent-primary);
}

input[type="checkbox"]:checked + .toggle-switch .toggle-thumb {
  transform: translateX(14px);
  background: var(--accent-bright);
}

/* ── Number Input ── */
.number-input {
  width: 44px;
  background: var(--bg-surface);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  color: var(--text-primary);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: hsl(220, 14%, 32%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), hsl(152, 90%, 36%));
  color: #07090e;
  border: 1px solid var(--accent-bright);
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 0 14px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-primary));
  box-shadow: 0 0 22px rgba(31, 209, 123, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
