.admin-access-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.admin-access-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-access-switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background .18s ease;
  flex: 0 0 auto;
}

.admin-access-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .18s ease;
}

.admin-access-toggle input:checked + .admin-access-switch {
  background: #007AFF;
}

.admin-access-toggle input:checked + .admin-access-switch::after {
  transform: translateX(16px);
}

.admin-access-toggle input:focus-visible + .admin-access-switch {
  outline: 3px solid rgba(0, 122, 255, .22);
  outline-offset: 2px;
}

.admin-access-toggle input:disabled + .admin-access-switch {
  opacity: .55;
  cursor: wait;
}

.admin-access-label {
  font-size: 13px;
  font-weight: 650;
}

.access-mode-switch {
  border-color: rgba(0, 122, 255, .28);
}

@media (max-width: 720px) {
  .access-mode-switch {
    padding-inline: 10px;
    font-size: 13px;
  }
}
