.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  min-width: 280px;
  max-width: 380px;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: var(--surface);
  border-radius: 0;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
  box-shadow: 0 8px 24px color-mix(in oklab, #081625 35%, transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-shown { opacity: 1; transform: translateY(0); }

.toast__prompt { font-weight: 700; line-height: 1.35; }
.toast__body { flex: 1; }

.toast__close {
  background: none;
  border: 0;
  color: inherit;
  opacity: 0.7;
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-inline-start: 0.5rem;
}
.toast__close:hover { opacity: 1; }

@media (max-width: 640px) {
  .toast-stack { left: 0.8rem; right: 0.8rem; bottom: 1.6rem; }
  .toast { min-width: 0; max-width: none; }
}
