.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 20px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: min(480px, 90vw);
  animation: toastIn 0.3s ease, toastOut 0.4s ease 3.2s forwards;
  backdrop-filter: blur(8px);
}

.toast-success {
  border: none;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.toast-error {
  border: none;
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.toast-hide {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}
