.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 44px));
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-2);
  background: rgb(16 11 18 / 94%);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgb(0 0 0 / 55%);
  animation: toast-in 0.45s var(--spring) both;
  overflow: hidden;
  position: relative;
}

.toast.is-out {
  animation: toast-out 0.35s var(--ease-in-out) both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(60px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateX(60px) scale(0.94); }
}

.toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
}

.toast.ok::before { background: var(--ok); }
.toast.bad::before { background: var(--bad); }
.toast.warn::before { background: var(--warn); }

.toast-icon {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  fill: var(--red-hot);
}

.toast.ok .toast-icon { fill: var(--ok); }
.toast.bad .toast-icon { fill: var(--bad); }
.toast.warn .toast-icon { fill: var(--warn); }

.toast-body strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.toast-body span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
