/* Shared identity and workspace navigation, after the public and CRM themes. */
html[data-theme] #app .site-shell .helm-account-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cbb47e !important;
  border-radius: 50% !important;
  background: #f5eddb !important;
  color: #183747 !important;
  box-shadow: none !important;
  font: 700 13px/1 var(--helm-body-font, "Segoe UI", Arial, sans-serif);
  letter-spacing: .02em;
  text-decoration: none !important;
}
html[data-theme] #app .site-shell .helm-account-avatar :is(span,img) {
  color: inherit !important;
}
html[data-theme] #app .site-shell .helm-account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: inherit;
}
html[data-theme] #app .site-shell a.helm-account-avatar:hover {
  border-color: #8c6a2d !important;
  background: #efe1c2 !important;
  text-decoration: none !important;
}
html[data-theme] #app .site-shell .profile-avatar-square.helm-account-avatar {
  width: 64px;
  height: 64px;
  font-size: 20px;
}
/* Compact headers move the account link into the menu, rather than hiding it. */
html[data-theme] #app .site-shell .topbar .mobile-nav .nav-profile-button--mobile {
  display: inline-flex !important;
  justify-self: start;
}
html[data-theme] #app .site-shell .helm-workspace-switcher {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 3px;
  gap: 3px;
  border: 1px solid #c4d2dc;
  border-radius: 7px;
  background: #fff;
  color: #183747;
  vertical-align: top;
}
html[data-theme] #app .site-shell .helm-workspace-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 15px;
  border-radius: 4px;
  color: #345266 !important;
  background: transparent !important;
  font: 600 13px/1.3 var(--helm-body-font, "Segoe UI", Arial, sans-serif);
  text-align: center;
  text-decoration: none !important;
}
html[data-theme] #app .site-shell .helm-workspace-switcher a:hover {
  background: #edf3f6 !important;
  color: #123748 !important;
}
html[data-theme] #app .site-shell .helm-workspace-switcher a[aria-current] {
  background: #123748 !important;
  color: #fff !important;
  box-shadow: inset 0 -2px #d7b56d;
}
html[data-theme] #app .site-shell .helm-workspace-switcher a:focus-visible,
html[data-theme] #app .site-shell .helm-account-avatar:focus-visible {
  outline: 3px solid #a57925 !important;
  outline-offset: 3px;
}
.broker-desk .desk-main > .helm-workspace-switcher { margin-bottom: 24px; }
#app .site-shell-platform .platform-main-scroll > .helm-workspace-switcher {
  max-width: calc(100% - 56px);
  margin: 20px 28px 0;
}
html[data-theme] .nav-brokerage-admin-link {
  color: #edf4f7 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
}
html[data-theme] .nav-brokerage-admin-link:hover { color: #e1c48b !important; }
@media (max-width: 1439px) {
  .nav-actions > .nav-brokerage-admin-link { display: none; }
}
@media (max-width: 1023px) {
  #app .site-shell-platform .platform-main-scroll > .helm-workspace-switcher {
    max-width: calc(100% - 40px);
    margin: 18px 20px 0;
  }
}
@media (max-width: 780px), (pointer: coarse) {
  html[data-theme] #app .site-shell a.helm-account-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  html[data-theme] #app .site-shell .helm-workspace-switcher a { min-height: 44px; }
}
@media (max-width: 480px) {
  html[data-theme] #app .site-shell .helm-workspace-switcher a { padding-inline: 11px; }
  html[data-theme] #app .site-shell .profile-avatar-square.helm-account-avatar {
    width: 56px;
    height: 56px;
  }
  #app .site-shell-platform .platform-main-scroll > .helm-workspace-switcher {
    max-width: calc(100% - 28px);
    margin: 16px 14px 0;
  }
}
@media print {
  html[data-theme] #app .site-shell .helm-workspace-switcher { display: none !important; }
}
