.workbench-switch--busy {
  pointer-events: none;
  opacity: .58;
}

.workbench-switch--busy::after {
  position: absolute;
  right: 1rem;
  width: 1rem;
  height: 1rem;
  box-sizing: border-box;
  border: 2px solid rgba(9, 11, 8, .2);
  border-top-color: #090b08;
  border-radius: 50%;
  content: '';
  animation: workbench-switch-spin .7s linear infinite;
}

.workbench-switch-toast {
  position: fixed;
  z-index: 1000001;
  left: 50%;
  bottom: calc(6rem + env(safe-area-inset-bottom));
  max-width: min(80vw, 22rem);
  padding: .75rem 1rem;
  box-sizing: border-box;
  border-radius: .375rem;
  background: rgba(23, 26, 31, .94);
  color: #fff;
  font-size: .875rem;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, .5rem);
  transition: opacity .18s ease, transform .18s ease;
}

.workbench-switch-toast.is-error {
  background: rgba(172, 42, 35, .96);
}

.workbench-switch-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes workbench-switch-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .workbench-switch--busy::after {
    animation: none;
  }

  .workbench-switch-toast {
    transition: none;
  }
}
