Highlight mode: fix sidebar closing behavior