.flash-stack {
  position: fixed;
  z-index: 720;
  right: clamp(0.75rem, 3vw, 1.5rem);
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: clamp(0.75rem, 3vw, 1.5rem);
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.flash-stack .flash-snackbar {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) 2.25rem;
  align-items: center;
  gap: 0.7rem;
  width: min(100%, 34rem);
  min-height: 3.5rem;
  padding: 0.65rem 0.55rem 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1rem;
  background: rgba(31, 29, 36, 0.96);
  color: #f7f5fc;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  pointer-events: auto;
  animation: flash-snackbar-in 220ms cubic-bezier(.2,.8,.2,1) both;
}
.flash-stack .flash-snackbar.is-leaving {
  animation: flash-snackbar-out 180ms ease both;
}
.flash-snackbar__icon {
  display: inline-grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 50%;
  background: #38c98b;
  color: #062719;
  font-size: 0.85rem;
  font-weight: 900;
}
.flash-snackbar__message {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
}
.flash-snackbar__close {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d8d4df;
  font: 500 1.5rem/1 var(--g3-sans);
  cursor: pointer;
}
.flash-snackbar__close:hover,
.flash-snackbar__close:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.flash-stack .notice--error .flash-snackbar__icon {
  background: #ff6b7a;
  color: #31070d;
}
.flash-stack .notice--warning .flash-snackbar__icon {
  background: #facc15;
  color: #2c2200;
}
@media (max-width: 759px) {
  .flash-stack {
    bottom: calc(66px + env(safe-area-inset-bottom));
  }
}

@keyframes flash-snackbar-in {
  from { opacity: 0; transform: translateY(1rem) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes flash-snackbar-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(.65rem); }
}
@media (prefers-reduced-motion: reduce) {
  .flash-stack .flash-snackbar,
  .flash-stack .flash-snackbar.is-leaving { animation-duration: 1ms; }
}
