Trim message fields when received
Rework badge styling to restore collapse behavior with new full-height
display