Use this prefix for elements you want to style without affecting the SharePoint OOTB dialog elements.
html:not(.ms-dialog) {}
Example:
To change the background of the #s4-workspace use html:not(.ms-dialog) #s4-workspace { background: lime }
http://bastiaanjacobs.nl/wp-content/uploads/2015/09/not-dialog.png