     } else {
                    statusEl.innerHTML = '<div class="error">Chat interface not initialized</div>';
                    console.error('Chat interface failed to initialize');
                }
            }, 2000);
            
        } catch (error) {
            statusEl.innerHTML = `<div class="error">Failed to initialize: ${error.message}</div>`;
            console.error('Initialization error:', error);
        }
    </script>
</body>
</html>