Implement new CSS model, themes improvements, and other fixes