The way vanilla-extract handles selectors is a bit different from other CSS-in-JS solutions and it fails to work with the library now. In order to make it work with it, we need to switch to matching the pseudo-selector in the document.styleSheets and then narrow it down to the element somehow.