/* Theme Picker */
.theme-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.theme-swatch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.theme-swatch:hover {
  border-color: var(--color-border-darker);
  transform: translateY(-1px);
}

.theme-swatch__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-swatch__chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.theme-swatch__label {
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  white-space: normal;
}

.theme-swatch__input:checked + .theme-swatch__chip {
  border-color: var(--color-link);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-link) 35%, transparent);
}

.theme-swatch__input:checked ~ .theme-swatch__label {
  color: var(--color-link);
}
