.app-toast-root {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

.app-toast {
  min-width: min(560px, calc(100vw - 32px));
  max-width: min(720px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-3);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-10px);
  animation: appToastIn 0.2s ease forwards, appToastOut 0.2s ease forwards;
  animation-delay: 0s, var(--toast-out-delay, 3020ms);
}

.app-toast--info {
  background: color-mix(in srgb, var(--color-primary) 70%, rgba(15, 23, 42, 0.95));
}

.app-toast--success {
  background: rgba(16, 185, 129, 0.92);
}

.app-toast--warning {
  background: rgba(245, 158, 11, 0.94);
}

.app-toast--error {
  background: rgba(220, 53, 69, 0.94);
}

@keyframes appToastIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 640px) {
  .app-toast-root {
    top: 12px;
    width: calc(100vw - 16px);
  }

  .app-toast {
    min-width: 100%;
    max-width: 100%;
  }
}
