.toast-stack {
  position: fixed;
  z-index: 100;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, calc(100% - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.toast-stack .toast {
  position: relative;
  inset: auto;
  transform: none;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  pointer-events: auto;
  animation: none;
}
.toast-stack .toast > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast-stack .toast-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}
.toast-stack .toast-close:hover { background: rgba(0, 0, 0, .06); }
.toast-stack .toast-close:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
