PostCSS plugin to place rules directly at the root node.
@at-root causes one or more rules to be emitted at the root of the document, rather than being nested beneath their parent selectors:
Which would produce:
It will play well with postcss
See PostCSS docs for examples for your environment.