t-hidden');
          setTimeout(() => toast.classList.add('toast-hidden'), 3000);
        }
        form.reset();
      });
    })();

    // Issue copy (if used in the page)
    (function () {
      const btn = document.getElementById('issue-copy-btn');
      if (!btn) return;
      btn.addEventListener('click', function () {
        const txt = document.getElementById('issue-text') ? document.getElementById('issue-text').textContent : '';
        if (navigator.clipboard && navigator.clipboar