/* ----------------------------------------------------------------------- */
/* Toasts                                                                   */
/* ----------------------------------------------------------------------- */

.toast-stack {
  position: fixed;
  right: var(--gap-4);
  bottom: var(--gap-4);
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
  z-index: 100;
  max-width: min(28rem, calc(100vw - 2 * var(--gap-4)));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-3);
  padding: var(--gap-3) var(--gap-4);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.9rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: opacity 0.3s, transform 0.3s;
}
.toast--err { background: var(--err); }
.toast.is-leaving { opacity: 0; transform: translateY(0.5rem); }
.toast__close {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  width: 1rem;
  height: 1rem;
  border-radius: 0;
}
.toast__close:hover { background: transparent; color: inherit; }
