Strip codexblock/codexterminal classes and automatically scale over-wide blocks