Tweak formatting.
Add a blinking cursor for the input area.
Handle phase change in OnPhaseChanged().