.workplace-identities {position:relative}
.workplace-identities>summary {display:flex;align-items:center;gap:.45rem;padding:.3rem .4rem;min-height:38px;border:1px solid transparent;border-radius:6px;cursor:pointer;list-style:none}
.workplace-identities>summary::-webkit-details-marker {display:none}
.workplace-identities>summary:hover,.workplace-identities[open]>summary {background:var(--accent-soft)}
.workplace-identities[open]>summary>.ui-icon {transform:rotate(180deg)}
#topbar:has(.workplace-identities[open]) {position:relative;z-index:12}
.workplace-choices {position:absolute;z-index:12;top:100%;right:0;margin-top:4px;width:min(18.5rem,calc(100vw - 28px));max-height:calc(100dvh - 115px);overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:.75rem;box-shadow:0 10px 32px #302a2626;color:var(--ink);text-align:left;line-height:1.4}
.workplace-choices h2,.workplace-choices h3 {font-family:inherit;margin:.2rem .45rem;font-weight:650}
.workplace-choices h2 {font-size:1rem}
.workplace-choices p,.workplace-choices h3 {font-size:.76rem;color:var(--muted)}
.workplace-choices p {margin:.2rem .45rem .5rem}
.workplace-choices h3 {border-top:1px solid var(--line);padding-top:.65rem;margin-top:.5rem}
.workplace-choice {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:.45rem .5rem;border-radius:5px;text-decoration:none;color:var(--ink);font-size:.85rem}
.workplace-choice small {font-size:.77rem;color:var(--muted)}
.workplace-choice.selected,.workplace-choice:hover,.workplace-choice:focus-visible {background:var(--accent-soft)}
.workplace-nav-row {display:flex;align-items:center;min-width:0}
.workplace-nav-row>.rail-link {flex:1;min-width:0}
.workplace-nav-toggle {display:grid;place-items:center;flex:0 0 32px;height:34px;border:0;border-radius:5px;background:transparent;color:var(--muted);cursor:pointer}
.workplace-nav-toggle:hover {background:var(--accent-soft)}
.workplace-nav-toggle[aria-expanded=false] svg {transform:rotate(-90deg)}
.home-range-rail[hidden] {display:none}
@media(max-width:760px) {
  .workplace-identities>summary {min-height:42px;padding-inline:2px}
  .workplace-identities>summary>span,.mobile-brand .brand-type {white-space:nowrap}
  .workplace-choice {min-height:42px}
  .workplace-choices {right:-4px}
}
@media(max-width:360px) {
  #topbar:has(.preview-return) .mobile-brand .brand-type {display:none}
}
@media(max-width:480px) {
  #topbar:has(.workplace-identities) .mobile-brand {flex:none}
  #topbar:has(.workplace-identities) .mobile-brand small {display:none}
  #topbar:has(.workplace-identities) .identity,.workplace-identities {min-width:0}
  .workplace-identities>summary>span:not(.avatar) {min-width:0;white-space:normal}
  .workplace-identities .profile-role {display:block;white-space:normal}
  .workplace-identities>summary>.ui-icon,.workplace-identities>summary>.avatar {flex:none}
}
