/* A single account control in the masthead, aligned with search and upload. */
html body .l2-masthead .l2-top-actions a.ha-link,
html#milthink-library body .l2-masthead .l2-top-actions a.ha-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 0; min-height: 44px; max-width: 152px; box-sizing: border-box;
  padding: 4px 8px 4px 4px; border: 0; border-radius: 24px;
  background: transparent; color: #224756 !important; text-decoration: none;
}
.ha-link .ha-avatar {
  position: relative; display: inline-grid; place-items: center; flex: 0 0 32px;
  width: 32px; height: 32px; overflow: hidden; border-radius: 50%;
  background: #e8f0f0; color: #2f6064; line-height: 1;
}
.ha-link.ha-signed .ha-avatar { background: #285658; color: #fff; }
.ha-link.ha-signed .ha-avatar svg { display: none; }
.ha-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ha-initial { font: 600 15px/1 system-ui,sans-serif; }
.ha-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 550 13px/1.4 system-ui,sans-serif; }
.ha-link:focus-visible { outline: 2px solid #247071; outline-offset: 2px; }
@media (hover:hover) {
  html#milthink-library body .l2-masthead .l2-top-actions a.ha-link:hover { background: #edf3f3; }
}
@media (max-width: 760px) {
  html#milthink-library body .l2-masthead .l2-top-actions a.ha-link { max-width: min(134px, 34vw); }
}
@media (max-width: 355px) {
  html#milthink-library body .l2-masthead .l2-top-actions a.ha-link { padding: 2px; gap: 5px; max-width: 92px; }
}
.middle-nav a.ha-link { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; max-width: 24%; min-height: 44px; }
.middle-nav .ha-link .ha-name { display: block; max-width: 100%; width: auto; font-size: .24rem; }
.middle-nav .ha-link .ha-avatar { width: 28px; height: 28px; flex-basis: 28px; }
.middle-nav .ha-avatar .ha-initial { width: auto; color: inherit; font-size: 14px; }
