<main id="main" class="assistant-workspace"><section class="assistant-chat-panel" id="assistantChat" data-mode="private" data-api="<?=htmlspecialchars(app_path(),ENT_QUOTES)?>/shared/api/assistant.php"><div class="assistant-chat-heading"><span class="assistant-symbol" aria-hidden="true">✦</span><div><strong>Rockview Assistant</strong><small id="assistantConnection">AI learning companion</small></div><button class="assistant-new-chat" type="button" id="assistantClear" title="Start a new conversation" aria-label="Start a new conversation">＋ New chat</button></div><div class="assistant-messages" id="assistantMessages" role="log" aria-label="Chat messages" aria-live="polite"></div><div class="assistant-prompts" id="assistantPrompts"><button type="button" data-chat-prompt="Help me understand a difficult topic step by step.">Explain a concept</button><button type="button" data-chat-prompt="Help me plan my student programming project.">Plan a project</button><button type="button" data-chat-prompt="Explain how to use Student Projects, Notifications and Past Papers in SLPS.">Help with SLPS</button></div><p id="assistantStatus" class="assistant-status" role="status"></p><form class="assistant-composer" id="assistantForm"><label class="visually-hidden" for="assistantInput">Your message</label><textarea id="assistantInput" maxlength="4000" rows="1" required placeholder="Ask a question or paste a short code example…"></textarea><button type="submit" id="assistantSend" aria-label="Send message">➤</button></form><p class="assistant-disclosure">AI responses can be inaccurate. Your messages are sent to OpenRouter for a reply. Don’t share passwords or sensitive personal information.</p></section></main>
