.app-toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(390px, calc(100vw - 24px));
  z-index: 9999;
  pointer-events: none;
}

.app-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgb(15 23 42 / 0.16);
  box-shadow: 0 14px 32px rgb(15 23 42 / 0.18);
  background: rgb(255 255 255 / 0.98);
  color: #0f172a;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

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

.app-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}

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

.app-toast__title {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.app-toast__description {
  margin: 5px 0 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #475569;
}

.app-toast__actions {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-toast__action,
.app-toast__close {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}

.app-toast__action {
  padding: 6px 9px;
  background: #0f172a;
  color: #f8fafc;
  font-weight: 600;
}

.app-toast__close {
  width: 26px;
  height: 26px;
  background: #e2e8f0;
  color: #334155;
  font-size: 17px;
  line-height: 1;
}

.app-toast--loading {
  border-color: rgb(2 132 199 / 0.35);
}

.app-toast--loading .app-toast__icon {
  background: #e0f2fe;
  color: #075985;
}

.app-toast--success {
  border-color: rgb(5 150 105 / 0.35);
}

.app-toast--success .app-toast__icon {
  background: #dcfce7;
  color: #166534;
}

.app-toast--error {
  border-color: rgb(220 38 38 / 0.35);
}

.app-toast--error .app-toast__icon {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 640px) {
  .app-toast-container {
    left: 12px;
    right: 12px;
    top: 12px;
    width: auto;
  }
}
