/* v8.5.4: never paint legacy authenticated navigation */
#nav:has(> .identity) > .identity,
#nav:has(> .identity) > a,
#nav:has(> .identity) > button,
.site-nav:has(> .identity) > .identity,
.site-nav:has(> .identity) > a,
.site-nav:has(> .identity) > button {
  display: none !important;
}

/* The account avatar is the only authenticated navigation control. */
#nav > .account-menu-wrap,
.site-nav > .account-menu-wrap {
  display: block !important;
}

/* Password changes belong exclusively to the avatar dropdown. */
#securityCard,
.security-card,
#passwordForm,
#changePasswordForm,
.card:has(> #passwordForm),
.card:has(> #changePasswordForm),
.profile-section:has(#passwordForm),
.profile-section:has(#changePasswordForm) {
  display: none !important;
}

/* Exactly one clean support link inside the footer. */
.support-area,
.support-launcher,
footer .support-footer-link ~ .support-footer-link,
footer #supportLauncher ~ #supportLauncher {
  display: none !important;
}
