.account-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--pink-soft);
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.account-button:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.account-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--pink);
  background: var(--pink-soft);
  border-radius: 6px;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar svg {
  width: 16px;
}

.account-button > svg {
  width: 14px;
}

.profile-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 0 10px;
  color: var(--mint-deep);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0;
}

.profile-kicker svg {
  width: 11px;
}

.profile-space-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  padding-bottom: 2px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.profile-space-link svg {
  width: 13px;
}

.member-directory {
  display: grid;
  gap: 3px;
}

.member-directory-note {
  margin: -2px 0 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.member-list {
  display: grid;
}

.member-item {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  color: var(--ink);
  border-top: 1px dashed var(--line);
}

.member-item:first-child {
  border-top: 0;
}

.member-avatar {
  position: relative;
  width: 35px;
  height: 35px;
}

.member-avatar img {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border: 2px solid var(--surface);
  border-radius: 6px;
}

.member-presence {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  background: var(--muted);
  border: 2px solid var(--surface);
  border-radius: 50%;
}

.member-presence.is-online {
  background: var(--mint-deep);
}

.member-copy {
  min-width: 0;
}

.member-copy strong,
.member-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-copy strong {
  font-size: 10px;
  line-height: 1.45;
}

.member-copy small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.member-item > svg {
  width: 13px;
  color: var(--muted);
}

.member-item:hover strong,
.member-item:hover > svg {
  color: var(--pink);
}

.member-login-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: start;
  margin-top: 2px;
  padding-bottom: 2px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.member-login-link svg {
  width: 13px;
}

.member-directory.is-guest .member-list {
  display: none;
}

.member-directory.is-guest .member-directory-note {
  max-width: 220px;
}

@media (max-width: 680px) {
  .mobile-nav {
    grid-template-columns: repeat(5, 1fr);
  }

  .account-button {
    width: 39px;
    height: 39px;
    min-height: 39px;
    justify-content: center;
    padding: 3px;
  }

  .account-button > span:not(.account-avatar),
  .account-button > svg {
    display: none;
  }

  .account-avatar {
    width: 30px;
    height: 30px;
  }

  .profile-kicker {
    margin-bottom: 7px;
  }
}
