Refactored render logic and improved default CSS.