/* Neutral feedback below the header; transform/opacity do all the motion. */
.toast-stack {
  position: fixed; inset: auto; top: calc(var(--tg-safe-top, 0px) + 12px);
  left: 0; right: 0; z-index: 80; width: min(416px, calc(100% - 32px));
  max-width: none; height: 0; margin: 0 auto; padding: 0;
  overflow: visible; border: 0; background: transparent; color: #f4f5f7;
  pointer-events: none; isolation: isolate;
}
.toast-stack::backdrop { background: transparent; pointer-events: none; }
.toast-stack[popover]:not(:popover-open) { display: none; }
.toast-stack-card {
  position: absolute; top: 0; left: 0; width: 100%; min-height: 52px;
  display: flex; align-items: center; justify-content: flex-start;
  margin: 0; padding: 15px 18px; overflow: hidden;
  border: 1px solid #ffffff13; border-radius: 16px;
  background: #26292f; color: #f4f5f7; box-shadow: 0 8px 22px #00000030;
  font: inherit; font-size: 13px; font-weight: 500; line-height: 1.45; text-align: left;
  transform-origin: center top; transform: translateY(0) scale(1); opacity: 1;
  pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 260ms var(--ease-out, cubic-bezier(.23, 1, .32, 1)), opacity 260ms var(--ease-out, cubic-bezier(.23, 1, .32, 1));
}
.toast-stack-card[data-depth="1"] { transform: translateY(8px) scale(.96); background: #24262b; }
.toast-stack-card[data-state="entering"],
.toast-stack-card[data-state="leaving"] { opacity: 0; transform: translateY(-12px) scale(.97); pointer-events: none; }
.toast-stack-card:active:not(:disabled) { transform: translateY(0) scale(.99); }
.toast-stack-card:disabled { opacity: 0; cursor: default; }
.toast-stack-message { display: block; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.toast-stack-live {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .toast-stack-card { transition-duration: 100ms; }
  .toast-stack-card[data-state="entering"], .toast-stack-card[data-state="leaving"] { transform: none; }
  .toast-stack-card:active:not(:disabled) { transform: none; }
}
