.app-toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10080;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.app-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #0f172a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

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

.app-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
}

.app-toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.app-toast__message {
  flex: 1;
  min-width: 0;
}

.app-toast--success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.app-toast--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.app-toast--warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.app-toast--info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

@media (max-width: 640px) {
  .app-toast-stack {
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}
