/* Theme switch — staff topbar + member header */
.ui-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.ui-theme-switch__label {
  opacity: 0.9;
  font-weight: 600;
}

.ui-theme-switch__select {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  cursor: pointer;
  max-width: 5.5rem;
}

.ui-theme-switch--member .ui-theme-switch__select {
  padding: 6px 8px;
  font-size: 0.7rem;
  max-width: 4.5rem;
}

html[data-theme="light"] .ui-theme-switch__select {
  border-color: rgba(15, 23, 42, 0.18);
  background: #fff;
  color: #0f172a;
}

html[data-theme="light"] .cell--topbar .ui-theme-switch__label,
html[data-theme="light"] .my-header .ui-theme-switch__label {
  color: #0f172a;
}

.hub-theme-switch,
.member-login-theme,
.sa-login-theme {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  width: 100%;
}

.sa-header__theme {
  margin-left: auto;
  flex-shrink: 0;
}

.sa-header__theme .ui-theme-switch__select {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

html[data-theme="light"] .sa-header__theme .ui-theme-switch__select {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
}
