{# ============================================================ AI ASSISTANT โ€” side panel (replaces the old per-button modal) ------------------------------------------------------------ One conversation that follows the user across the whole admin. Docked at the inline-end edge, resizable by dragging its inner edge; open/closed state and width are remembered per browser. Chats are stored ONLY in the user's browser (IndexedDB) โ€” the server keeps no conversation history. window.AliothAI keeps the API the editor templates already use (AliothAI.open({ mode, contentType, language, existingTitle, existingContent, onApply })), so their AI buttons now open this panel in the right task mode instead of a throwaway modal. Logic: static/js/ai-panel.js ยท Styles: admin.css ("AI panel"). All colours come from --adm-* tokens (light + dark), all sides are logical (RTL-safe), all texts come from i18n below. ============================================================ #} {%- set _ai_prov = settings.get('ai_provider') or 'anthropic' %}