// Varaverk — shared JS utilities
// Page-specific JS lives inline in each page partial.

// Flash a status element briefly then fade
function vvFlashStatus(el, msg, ok) {
  el.textContent = msg;
  el.style.color = ok ? '#4caf50' : '#f44336';
  setTimeout(() => { el.textContent = ''; }, 3000);
}
