/* 全局 Toast（布局 TempData + window.showAppToast） */
.app-toast-mount {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: min(32rem, calc(100vw - 2rem));
  pointer-events: none;
}

.app-toast {
  pointer-events: auto;
  width: 100%;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow:
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  animation: app-toast-in 0.22s ease-out;
}

.app-toast--leave {
  animation: app-toast-out 0.26s ease-in forwards;
}

@keyframes app-toast-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes app-toast-out {
  to {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
}

.app-toast-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem 0.875rem 0.875rem;
}

.app-toast-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.125rem;
}

.app-toast-icon-svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.app-toast-text {
  min-width: 0;
  flex: 1;
}

.app-toast-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
  line-height: 1.4;
}

.app-toast-body {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.5;
  word-break: break-word;
}

.app-toast--error .app-toast-title {
  color: #cf1322;
}

.app-toast--warning .app-toast-title {
  color: #d48806;
}

.app-toast--info .app-toast-title {
  color: #096dd9;
}
