Border magic for chat input