.site-toast {
  position: fixed;
  inset: max(12px, env(safe-area-inset-top, 0px)) 12px auto;
  z-index: 10000;
  box-sizing: border-box;
  width: max-content;
  max-width: min(480px, calc(100vw - 24px));
  max-height: min(260px, 70dvh);
  overflow: auto;
  overflow-wrap: anywhere;
  margin: 0 auto;
  padding: 11px 17px;
  border: 1px solid #7a9b6d;
  border-top: 3px solid #a9d18d;
  border-radius: 2px;
  background: #242d25;
  color: #eef8e8;
  box-shadow: 0 6px 21px #0008;
  font: 600 14px/1.5 system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
  opacity: 0;
}
.site-toast.is-error { border-color: #c48879; border-top-color: #f0a98d; background: #352623; color: #ffece2; }
.site-toast.is-visible { animation: toast-in .22s ease-out both; }
.site-toast.is-leaving { animation: toast-out .20s ease-in both; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(calc(-100% - 20px - env(safe-area-inset-top, 0px))); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(calc(-100% - 20px - env(safe-area-inset-top, 0px))); }
}
@media (prefers-reduced-motion: reduce) {
  .site-toast.is-visible { animation: none; opacity: 1; }
  .site-toast.is-leaving { animation: none; opacity: 0; }
}
