.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 30%, var(--shell-border));
  background:
    linear-gradient(135deg, rgba(84, 165, 255, 0.2) 0%, rgba(47, 128, 237, 0.14) 52%, rgba(32, 175, 156, 0.1) 100%),
    color-mix(in srgb, var(--shell-button-bg) 92%, transparent);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 10px 20px rgba(19, 54, 99, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary-color) 46%, var(--shell-border));
  background:
    linear-gradient(135deg, rgba(84, 165, 255, 0.26) 0%, rgba(47, 128, 237, 0.2) 52%, rgba(32, 175, 156, 0.14) 100%),
    color-mix(in srgb, var(--shell-button-hover) 94%, transparent);
  color: var(--text-primary);
  box-shadow: 0 12px 24px rgba(19, 54, 99, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.theme-toggle-labeled {
  width: auto;
  padding: 0 14px;
}

.theme-toggle-labeled span {
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}
