Move static styling to public stylesheet for text layers. Some additional small cleanups.