Reset styles consistently when reloading from DOM