-#identity-box.verifiedIdentity:hover,
-#identity-box.verifiedIdentity:hover:active,
-#identity-box.verifiedIdentity[open=true] {
+#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:hover,
+#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:hover:active,
+#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity[open=true] {