/* Shared layout — inject navbar, mark active tab by current pathname */ (function () { const NAV_LINKS = [ { href: '/', icon: 'bi-upload', label: 'Upload File' }, { href: '/email-convert.html', icon: 'bi-envelope', label: 'Email Convert' }, ]; const path = location.pathname.replace(/\/$/, '') || '/'; const links = NAV_LINKS.map(L => { const active = (L.href === '/' ? path === '/' : path.startsWith(L.href.replace('.html', ''))); return `