/* Shared fixed top-right toolbar: language and logout never overlap. */
.top-controls {
  position: fixed;
  top: 12px;
  right: 18px;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: calc(100vw - 24px);
}
.top-controls .language-switch {
  position: static !important;
  inset: auto !important;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #8e7656;
  border-radius: 9px;
  background: #1b1e20;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.top-controls .language-switch button {
  padding: 6px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d4c1a2;
  font: 600 12px Georgia, serif;
  cursor: pointer;
}
.top-controls .language-switch button.active,
.top-controls .language-switch button[aria-pressed="true"] {
  background: #665347;
  color: #fff1d8;
}
.top-controls .language-switch button:focus-visible {
  outline: 2px solid #d2b184;
  outline-offset: 2px;
}
.top-controls #logoutBtn.logout-top-right {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  width: auto;
  flex-shrink: 0;
  padding: 10px 13px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .top-controls { top: 8px; right: 8px; gap: 6px; }
  .top-controls .language-switch button { padding: 5px 8px; }
  .top-controls #logoutBtn.logout-top-right { padding: 8px 9px; font-size: 12px; }
}
