When working with FGL, you cannot modify the CSS file that has been created. Once you do, you break the framework and lose the panels as you have described.
The best way to work with FGL is to create myStyles.css (or similar) and make your changes within that style sheet. Any problems, and you can easily roll back.