Fix text segments CSS and optimize.