/* Ticket 073/074: the signed-in person and the bell in the top bar's right end. Loaded after the other look files. */

/* Drawn hidden until the server says who is signed in (and for finance, which has no bell); `display` below would otherwise win. */
#bellSlot[hidden], .topbar .who[hidden] { display: none; }

.topbar .bar-right { gap: 0.5rem; }
.topbar .who {
  display: flex; align-items: center; gap: 0.75rem; min-width: 0; margin-left: 0.25rem; padding-left: 1rem; border-left: 1px solid var(--border);
}
.topbar .who .who-text { min-width: 0; text-align: right; }
.topbar .who .name {
  margin: 0; color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16rem;
}
.topbar .who .label {
  margin: 0; color: var(--text-muted); font-size: 12px; font-weight: 400; line-height: 1.3; white-space: nowrap;
}
.topbar .who .chip {
  flex: none; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; background: var(--surface-raised); color: var(--text); border: 1px solid var(--border-strong); font-size: 11px; font-weight: 600;
}

/* In the drawer's head, on a phone only: the bar has no room for the address. */
.rail .drawer-who { display: none; }

@media (max-width: 47.9375rem) {
  .topbar .who { padding-left: 0; border-left: 0; margin-left: 0; gap: 0; }
  .topbar .who .who-text { display: none; }
  .rail .drawer-who {
    display: block; margin: 0; padding: 1rem 3.5rem 0.75rem 1rem; border-bottom: 1px solid rgb(255 255 255 / 15%);
  }
  .rail .drawer-who[hidden] { display: none; }
  .rail .drawer-who .name { margin: 0; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
  .rail .drawer-who .label { margin: 0; color: #d4d4d8; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.3; }
}
