/* Status text */ .status margin-top: 1rem; font-size: .95rem;

// 4️⃣ Convert response to a Blob and trigger a native download. const blob = await response.blob(); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = filename; document.body.appendChild(a); a.click();

// Verify file exists fs.stat(filePath, (err, stats) => 'application/octet-stream'; const fileSize = stats.size;

if (hideAfter) setTimeout(() => el.classList.add('hidden'), hideAfter);

.download-section max-width: 480px; margin: 0 auto; text-align: center;