.rc-toast-stack {
  --rc-toast-bottom: 16px;
  position: fixed;
  right: 1rem;
  bottom: var(--rc-toast-bottom);
  z-index: 80;
  display: flex;
  width: min(24rem, calc(100vw - 2rem));
  flex-direction: column-reverse;
  gap: .625rem;
  pointer-events: none;
  transition: bottom 180ms ease;
}

.rc-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: start;
  padding: .875rem;
  border: 1px solid hsl(var(--border));
  border-left: 3px solid hsl(var(--primary));
  border-radius: .875rem;
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 18px 45px rgb(15 23 42 / .18);
  opacity: 0;
  transform: translateY(12px) scale(.98);
  pointer-events: auto;
  transition: opacity 220ms ease, transform 280ms cubic-bezier(.22, .8, .22, 1);
}

.rc-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.rc-toast.is-leaving { opacity: 0; transform: translateY(8px) scale(.98); }
.rc-toast--error { border-left-color: hsl(var(--destructive)); }
.rc-toast--info { border-left-color: hsl(var(--muted-foreground)); }
.rc-toast__icon { width: 1.125rem; height: 1.125rem; margin-top: .125rem; color: hsl(var(--primary)); }
.rc-toast--error .rc-toast__icon { color: hsl(var(--destructive)); }
.rc-toast__copy { min-width: 0; }
.rc-toast__title { display: block; font-size: .875rem; line-height: 1.25rem; }
.rc-toast__text { margin: .125rem 0 0; color: hsl(var(--muted-foreground)); font-size: .8125rem; line-height: 1.2rem; }
.rc-toast__action { display: inline-flex; margin-top: .45rem; color: hsl(var(--primary)); font-size: .8125rem; font-weight: 650; text-decoration: none; }
.rc-toast__action:hover { text-decoration: underline; }
.rc-toast__close { min-width: 2rem; min-height: 2rem; margin: -.45rem -.45rem 0 0; border: 0; border-radius: 999px; background: transparent; color: hsl(var(--muted-foreground)); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.rc-toast__close:hover { background: hsl(var(--accent)); color: hsl(var(--foreground)); }

@media (max-width: 640px) {
  .rc-toast-stack { right: .75rem; width: calc(100vw - 1.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .rc-toast-stack { transition: none; }
  .rc-toast, .rc-toast.is-leaving { transform: none; transition: opacity 150ms linear; }
}
