.ui-mode-switch {
  align-items: center;
  display: flex;
  gap: .45rem;
  margin: 0;
}

.ui-mode-switch-options {
  align-items: stretch;
  background: color-mix(in srgb, var(--surface, #fff) 88%, #123a32 12%);
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 999px;
  display: inline-flex;
  padding: 2px;
}

.ui-mode-switch button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  min-height: 40px;
  padding: .45rem .7rem;
  white-space: nowrap;
}

.ui-mode-switch button[aria-pressed="true"] {
  background: #123a32;
  color: #fff;
}

.cinematic-surface .ui-mode-switch button[aria-pressed="true"] {
  background: #f5c96a;
  color: #17231f;
}

.ui-mode-switch button:focus-visible {
  outline: 3px solid #f5c96a;
  outline-offset: 2px;
}

.ui-mode-switch button:disabled {
  cursor: wait;
  opacity: .65;
}

.ui-mode-status {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 900px) {
  .ui-mode-switch,
  .ui-mode-switch-options {
    width: 100%;
  }

  .ui-mode-switch button {
    flex: 1;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-mode-switch,
  .ui-mode-switch * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
