c9167177e0
The auth-badge element was wrapped inside <template id="tmpl-about">, making it invisible to document.getElementById() at page load. updateAuthUI() accessed badge.style without a null check, throwing a TypeError that halted app initialization before connect() was called. Move auth-badge outside the template so it is always in the live DOM, and add defensive null guards on badge/badgeRole access. https://claude.ai/code/session_01Km7uxYUzehpYBdYqncnt4n Signed-off-by: Claude <noreply@anthropic.com>