.theme-switcher {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  display: inline-flex;
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.24);
  font: 500 13px/1 system-ui, -apple-system, sans-serif;
}

.theme-switcher button {
  all: unset;
  cursor: pointer;
  padding: 8px 14px;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  transition: background 120ms ease, color 120ms ease;
}

.theme-switcher button:hover {
  color: #fff;
}

.theme-switcher[data-current="faithful"] button[data-theme="faithful"],
.theme-switcher[data-current="terminal"] button[data-theme="terminal"],
.theme-switcher[data-current="swiss"] button[data-theme="swiss"] {
  background: #fff;
  color: #111;
}

@media (prefers-color-scheme: light) {
  .theme-switcher {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  }
  .theme-switcher button { color: rgba(0, 0, 0, 0.65); }
  .theme-switcher button:hover { color: #000; }
  .theme-switcher[data-current="faithful"] button[data-theme="faithful"],
  .theme-switcher[data-current="terminal"] button[data-theme="terminal"],
  .theme-switcher[data-current="swiss"] button[data-theme="swiss"] {
    background: #111;
    color: #fff;
  }
}

@media (max-width: 480px) {
  .theme-switcher { bottom: 8px; right: 8px; }
  .theme-switcher button { padding: 8px 10px; }
}
