.app-toast-stack {
  position: fixed;
  top: calc(var(--app-navbar-height, 72px) + 1rem);
  right: 1rem;
  z-index: 2050;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(26rem, calc(100vw - 2rem));
  pointer-events: none;
}

.app-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  color: #0f172a;
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.app-toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}

.app-toast__marker {
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #64748b;
  box-shadow: 0 0 0 0.24rem rgba(100, 116, 139, 0.12);
}

.app-toast__body {
  min-width: 0;
}

.app-toast__title {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.app-toast__message {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #334155;
  word-break: break-word;
}

.app-toast__close {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
}

.app-toast__close:hover,
.app-toast__close:focus {
  background: rgba(148, 163, 184, 0.14);
  color: #0f172a;
}

.app-toast--success {
  border-color: rgba(34, 197, 94, 0.22);
}

.app-toast--success .app-toast__marker {
  background: #16a34a;
  box-shadow: 0 0 0 0.24rem rgba(34, 197, 94, 0.14);
}

.app-toast--error {
  border-color: rgba(239, 68, 68, 0.24);
}

.app-toast--error .app-toast__marker {
  background: #dc2626;
  box-shadow: 0 0 0 0.24rem rgba(239, 68, 68, 0.13);
}

.app-toast--warning {
  border-color: rgba(245, 158, 11, 0.24);
}

.app-toast--warning .app-toast__marker {
  background: #d97706;
  box-shadow: 0 0 0 0.24rem rgba(245, 158, 11, 0.13);
}

.app-toast--info {
  border-color: rgba(59, 130, 246, 0.2);
}

.app-toast--info .app-toast__marker {
  background: #2563eb;
  box-shadow: 0 0 0 0.24rem rgba(59, 130, 246, 0.12);
}

@media (max-width: 991.98px) {
  .app-toast-stack {
    top: calc(var(--mobile-navbar-height, 64px) + 0.75rem);
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }
}
