.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  width: min(100vw - 2rem, 22rem);
  pointer-events: none;
}

@media (max-width: 575.98px) {
  .toast-stack {
    left: 1rem;
    right: 1rem;
    width: auto;
    align-items: stretch;
  }
}

.app-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem 0.85rem 0.85rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #fff;
  color: #1e2329;
  box-shadow:
    0 10px 32px rgba(15, 20, 25, 0.12),
    0 2px 6px rgba(15, 20, 25, 0.06);
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

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

.app-toast.is-leaving {
  transform: translateX(110%);
  opacity: 0;
}

.app-toast__icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.05rem;
}

.app-toast__body {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 500;
}

.app-toast__close {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  margin: -0.15rem -0.1rem 0 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #8b95a1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.app-toast__close:hover {
  background: rgba(15, 20, 25, 0.06);
  color: #1e2329;
}

.app-toast__close svg {
  width: 0.9rem;
  height: 0.9rem;
}

.app-toast--success {
  border-color: #abefc6;
  background: linear-gradient(180deg, #f6fef9 0%, #ffffff 100%);
}

.app-toast--success .app-toast__icon {
  color: #027a48;
}

.app-toast--error {
  border-color: #fecdca;
  background: linear-gradient(180deg, #fff7f6 0%, #ffffff 100%);
}

.app-toast--error .app-toast__icon {
  color: #b42318;
}

.app-toast--warning {
  border-color: #fedf89;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.app-toast--warning .app-toast__icon {
  color: #b54708;
}

.app-toast--info {
  border-color: #b2ddff;
  background: linear-gradient(180deg, #f5faff 0%, #ffffff 100%);
}

.app-toast--info .app-toast__icon {
  color: #175cd3;
}