/* Account pill — sticky bottom of sidebar. Avatar + name + role.
   Click expands a dropdown above showing email + role pill + sign-out.
   All colors from tokens.css; matches the navy sidebar surface. */

.sidebar-account {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 12px 14px;
  position: relative; /* dropdown anchors here */
}

.account-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.account-pill:hover  { background: rgba(255,255,255,0.06); }
.account-pill.open   { background: rgba(255,255,255,0.10); }
.account-pill:focus-visible {
  outline: 2px solid var(--ashley-orange);
  outline-offset: 2px;
}

.account-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ashley-orange);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.account-meta {
  flex: 1; min-width: 0; /* enables text-overflow on children */
}

.account-name {
  color: #fff; font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.2;
}

.account-role {
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 2px;
  font-weight: 600;
}

.account-chevron {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  margin-left: 2px;
  transition: transform 0.15s;
}
.account-pill.open .account-chevron { transform: rotate(90deg); }

/* Dropdown — appears ABOVE the pill on click. */
.account-dropdown {
  position: absolute;
  bottom: calc(100% - 6px);
  left: 12px;
  right: 12px;
  background: var(--navy-hover);
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.35);
  padding: 12px;
  display: none;
  z-index: 110;
}
.account-pill.open + .account-dropdown { display: block; }

.account-dropdown-name {
  color: #fff; font-size: 13px; font-weight: 600;
}
.account-dropdown-email {
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  margin-top: 2px;
  word-break: break-all;
}
.account-dropdown-role-row {
  margin-top: 10px;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}
.account-dropdown-role-pill {
  background: var(--ashley-orange);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.account-dropdown-divider {
  margin: 12px -12px;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.account-signout {
  width: 100%;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  text-align: left;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.15s;
  font-family: inherit;
}
.account-signout:hover { color: #fff; }

/* In collapsed sidebar mode, hide the pill (matches existing nav-hide pattern). */
.sidebar.collapsed .sidebar-account { display: none; }
