Dynamically fixes RTL/LTR direction, justifies Persian text, and allows font switching on AI chatbots.