I haven't figured out the optimal time to run the media query bubbling yet. Perhaps we need two passes or some more special case logic. There seems to be some special cases regarding mixins. Added some null checks to prevent crashes. Updated so that media queries don't bubble outside of rule sets.