/* global window, document */
window.addEventListener('DOMContentLoaded', () => {
  const element = document.getElementById('server-flash');
  if (!element) return;
  try { const flash = JSON.parse(element.textContent); window.toast(flash.message, flash.kind); } catch { /* noop */ }
});
