.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.language-switch-btn {
  min-width: 42px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5b6475;
  cursor: pointer;
  font: 800 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.language-switch-btn.is-active {
  background: #111111;
  color: #ffffff;
}

.language-switch-btn:focus-visible {
  outline: 2px solid #27c7e8;
  outline-offset: 2px;
}

.editor-language-switch {
  box-shadow: none;
}

body.theme-dark .language-switch,
:root[data-theme="dark"] .language-switch {
  border-color: rgba(226, 232, 240, 0.16);
  background: rgba(15, 23, 42, 0.88);
}

body.theme-dark .language-switch-btn,
:root[data-theme="dark"] .language-switch-btn {
  color: rgba(226, 232, 240, 0.72);
}

body.theme-dark .language-switch-btn.is-active,
:root[data-theme="dark"] .language-switch-btn.is-active {
  background: #ffffff;
  color: #111111;
}
