.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d8e5e2;
  border-radius: 10px;
  background: #f6faf9;
  color: var(--teal);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle {
  border-color: #2f4a52;
  background: #152a32;
  color: #e4b04f;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid #d8e5e2;
  border-radius: 10px;
  background: #f6faf9;
}

.language-switch button {
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.language-switch button.active {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 3px 10px #0a7d7530;
}

[data-theme="dark"] .language-switch {
  border-color: #2f4a52;
  background: #152a32;
}

@media (max-width: 800px) {
  .topbar-actions { margin-left: auto; }
  .api-live { display: none; }
}
.theme-toggle { width: 40px; height: 40px; flex-shrink: 0; }
.language-switch button { min-width: 36px; min-height: 32px; }
[data-theme="dark"] .language-switch button.active { color: #0d1f26; }
@media (max-width: 430px) {
  .topbar-actions { gap: 6px; }
}
