Fix CSS box-sizing and similar issues