.switch {
  display: block;
  font: 0.875rem system-ui, sans-serif;
}

.toast {
  margin-block: 1rem;
  padding: 0.75rem 1rem;
  font: 0.875rem system-ui, sans-serif;
  color: white;
  background-color: seagreen;
  border-radius: 0.5rem;
  transition:
    opacity 0.5s,
    display 0.5s allow-discrete;
}

body:has(input:not(:checked)) .toast {
  display: none;
  opacity: 0;
}

.after {
  margin: 0;
  font: 0.875rem system-ui, sans-serif;
}