/* The notification stack: messages and Undo bars one above the other, never on top of each other. */
#emStack { position: fixed; left: 50%; bottom: calc(24px + var(--emn-extra, 0px) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 15000;
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(560px, calc(100vw - 32px)); pointer-events: none; transition: bottom .2s ease; }
#emStack > * { pointer-events: auto; }
@media (max-width: 760px) { #emStack { bottom: calc(80px + var(--emn-extra, 0px) + env(safe-area-inset-bottom, 0px)); } }
.emn { position: relative; display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 11px 22px 11px 18px; border-radius: 999px; color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.35;
  background: rgba(36,36,36,.97); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 34px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .22s cubic-bezier(.2,.9,.3,1.2); }
.emn.in { opacity: 1; transform: none; }
.emn::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.emn.is-ok { border-color: rgba(45,198,83,.4); } .emn.is-ok::before { background: #2DC653; box-shadow: 0 0 8px rgba(45,198,83,.65); }
.emn.is-error { border-color: rgba(255,58,92,.45); } .emn.is-error::before { background: #FF3A5C; box-shadow: 0 0 8px rgba(255,58,92,.65); }
.emn-t { min-width: 0; overflow-wrap: anywhere; }
.emn.bump { animation: emnBump .28s ease; }
@keyframes emnBump { 50% { transform: scale(1.03); } }
/* the Undo bar lives in the same stack */
#emStack > .emu { position: relative; left: auto; bottom: auto; transform: translateY(10px); max-width: 100%; }
#emStack > .emu.in { transform: none; }
html[data-theme="light"] .emn { background: rgba(24,9,12,.92); }
@media (prefers-reduced-motion: reduce) { .emn, .emu, #emStack { transition: none; } .emn.bump { animation: none; } }
/* the old single slot is no longer used */
#toast { display: none !important; }
