My friend solved it for me
#navigator-toolbox:not(:hover):not(:focus-within):has(#toolbar-menubar[inactive]) { margin-top: -36px; }