The chat UI can be styled by editing the source for the Scrolling UI Framework under the 'Chat Settings' of the 'Knowledge Base Settings':