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

.app-toast {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 56px;
  border-radius: 8px;
  background: rgba(11, 18, 32, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.38);
  color: #e6edf3;
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

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

.app-toast::before {
  content: "";
  width: 4px;
  flex: 0 0 4px;
  background: var(--app-toast-accent, #38bdf8);
}

.app-toast--success {
  --app-toast-accent: #22c55e;
}

.app-toast--error {
  --app-toast-accent: #ef4444;
}

.app-toast--info {
  --app-toast-accent: #38bdf8;
}

.app-toast--warning {
  --app-toast-accent: #f59e0b;
}

.app-toast__body {
  flex: 1;
  padding: 12px 14px 12px 12px;
  min-width: 0;
}

.app-toast__title {
  margin: 0 0 2px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.app-toast__message {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(230, 237, 243, 0.92);
  word-break: break-word;
}

.app-toast__close {
  flex: 0 0 auto;
  align-self: flex-start;
  margin: 8px 8px 0 0;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(230, 237, 243, 0.76);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.app-toast__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.app-toast__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

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