/* Administrator's two-position workspace control; uses ELEVATE's existing palette. */
.elevate-mode-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  flex: 0 0 auto;
  min-width: 17.5rem;
}
.elevate-mode-wrap[hidden] { display: none !important; }
.elevate-mode-label { color: var(--muted); font-size: .875rem; line-height: 1.3; font-weight: 550; }
.elevate-mode-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 17.5rem;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft, #f3f6f5);
  box-shadow: inset 0 1px 3px rgba(32, 50, 63, .045);
  touch-action: pan-y;
}
.elevate-mode-thumb {
  position: absolute;
  z-index: -1;
  inset: 4px auto 4px 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 2px 7px rgba(31, 102, 92, .18);
  transition: transform .22s ease, background .22s ease;
  pointer-events: none;
}
.elevate-mode-switch[data-mode="teacher"] .elevate-mode-thumb { transform: translateX(100%); }
.elevate-mode-switch button {
  position: relative;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.4;
  box-shadow: none;
  white-space: nowrap;
  transition: color .18s ease;
}
.elevate-mode-switch button[aria-checked="true"] { color: #fff; }
.elevate-mode-switch button:hover:not(:disabled) { background: transparent; color: var(--teal-hover); }
.elevate-mode-switch button[aria-checked="true"]:hover:not(:disabled) { color: #fff; }
.elevate-mode-switch button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.elevate-mode-switch button:active:not(:disabled) { transform: none; }
.elevate-mode-switch button:disabled { opacity: 1; cursor: progress; }
.elevate-mode-switch[aria-busy="true"] { opacity: .75; }
.elevate-has-mode-switch .header-note { display: none; }
@media (max-width: 900px) {
  .elevate-has-mode-switch .header-inner { flex-wrap: wrap; row-gap: .65rem; }
  .elevate-has-mode-switch .brand { flex: 1 1 auto; }
  .elevate-has-mode-switch .header-actions { margin-left: auto; }
  .elevate-mode-wrap { order: 3; flex-basis: 100%; padding-bottom: .2rem; }
  .elevate-mode-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 380px) {
  .elevate-mode-wrap { min-width: 0; }
  .elevate-mode-switch { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .elevate-mode-thumb, .elevate-mode-switch button { transition: none; }
}
