export function showToast(msg) { const t = document.getElementById("toastMsg"); document.getElementById("toastText").textContent = msg; t.classList.remove("active"); void t.offsetWidth; // trigger reflow t.classList.add("active"); setTimeout(() => t.classList.remove("active"), 3500); }