#sidebar #profileButton, #sidebar .certificate-link { display: none; }
.user-profile { position: relative; flex-shrink: 0; }
.user-profile-toggle { display: flex; align-items: center; gap: .6rem; border: 0; background: transparent; cursor: pointer; color: inherit; }
.user-profile-name { max-width: 13rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.user-profile-avatar { display: grid; place-items: center; flex-shrink: 0; width: 2.5rem; height: 2.5rem; overflow: hidden; border-radius: 50%; background: #dcece7; color: #315d52; font-weight: 700; }
.user-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-profile-menu { position: absolute; z-index: 20; right: 0; top: calc(100% + .5rem); width: 17rem; padding: .75rem; background: white; border: 1px solid #dfe7e4; border-radius: .75rem; box-shadow: 0 8px 24px #0002; }
.user-profile-menu[hidden], .user-profile-menu [hidden] { display: none; }
.user-profile-menu strong, .user-profile-menu span { display: block; margin-bottom: .5rem; }
.user-profile-menu button { display: block; width: 100%; padding: .6rem; text-align: left; border: 0; border-radius: .4rem; background: transparent; color: inherit; cursor: pointer; }
.user-profile-menu button:hover { background: #edf5f2; }
.user-profile-menu button:disabled { opacity: .6; cursor: not-allowed; }
.user-profile-menu #userProfileSignOut { border-top: 1px solid #dfe7e4; margin-top: .5rem; }
@media (max-width: 700px) {
  .topbar .breadcrumbs { min-width: 0; flex: 1; }
  .topbar .breadcrumbs > span:first-child, .topbar .breadcrumbs strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { flex-shrink: 0; }
  .user-profile-toggle { padding: 0; gap: 0; }
  .user-profile-name { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  .user-profile-avatar { width: 2.25rem; height: 2.25rem; }
}
