I guess it's simply not possible, but I have a work around, sort of. Not really using a css file but basically declaring the class name as a variable equal to the style attributes desired. Then use that variable in the layout style attribute:
An alternative is to set the styles in ini or txt files and use them externally, which is the point of css to begin with, external style sheets.