/* ─── Theme Selector ──────────────────────────────────────────── */
.theme-selector {
  position: relative;
  display: inline-flex;
  margin-left: 0.25rem;
}

.theme-selector-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1;
}

.theme-selector-btn:hover {
  border-color: var(--blue-light);
  color: var(--text);
  background: rgba(31, 111, 235, 0.08);
}

.theme-selector-btn .arrow {
  font-size: 0.5rem;
  opacity: 0.6;
  transition: transform 0.2s;
}

.theme-selector.open .theme-selector-btn {
  border-color: var(--blue-light);
  color: var(--text);
  background: rgba(31, 111, 235, 0.12);
}

.theme-selector.open .arrow {
  transform: rotate(180deg);
}

.theme-selector-dropdown {
  position: fixed;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.35rem;
  min-width: 160px;
  z-index: 99999;
  display: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

.theme-selector.open .theme-selector-dropdown {
  display: block;
}

.theme-selector-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.12s, background 0.12s;
  white-space: nowrap;
}

.theme-selector-option:hover {
  color: var(--text);
  background: var(--bg3);
}

.theme-selector-option.active {
  color: var(--blue-light);
  font-weight: 700;
  background: rgba(31, 111, 235, 0.08);
}

.theme-selector-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
