/* Buddy discovery follows a compact directory rhythm: photo, introduction,
   and exchange details. The global shell continues to own both safe areas. */
.kb-buddy-directory {
  display: flex;
  flex-direction: column;
}
.kb-buddy-row {
  position: relative;
  border-bottom: 1px solid var(--kb-border);
}
.kb-buddy-row__profile {
  display: flex;
  gap: 12px;
  /* 12px vertical rhythm keeps the directory dense — one more row lands per
     screen than the old 16px padding without crowding the 96px portrait. */
  padding: 12px 0;
  color: var(--kb-ink);
  text-decoration: none;
  transition: background-color var(--kb-motion-fast) var(--kb-ease-standard);
}
.kb-buddy-row__profile:active {
  background: var(--kb-fill);
}
.kb-buddy-row__profile:focus-visible,
.kb-buddy-row__greeting:focus-visible {
  outline: 2px solid var(--kb-focus);
  outline-offset: 2px;
}
.kb-buddy-row__portrait {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 8px;
  background: var(--kb-fill);
}
.kb-buddy-row__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.kb-buddy-row__initials {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--kb-caption);
}
.kb-buddy-row__online {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--kb-surface);
  border-radius: 9999px;
  background: var(--kb-positive);
}
.kb-buddy-row__details {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.kb-buddy-row__name {
  display: flex;
  min-width: 0;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  padding-right: 44px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}
.kb-buddy-row__display-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kb-buddy-row__gender {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 400;
}
.kb-buddy-row__verification {
  display: inline-flex;
  flex-shrink: 0;
}
.kb-buddy-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  padding-right: 44px;
  color: var(--kb-body);
  font-size: 11px;
  line-height: 16px;
  overflow-wrap: anywhere;
}
.kb-buddy-row__role {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.kb-buddy-row__role-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 9999px;
}
.kb-buddy-row__bio {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--kb-body);
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.kb-buddy-row__exchange {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}
.kb-buddy-row__signal {
  max-width: 100%;
  color: var(--kb-body);
  font-size: 11px;
  line-height: 16px;
  overflow-wrap: anywhere;
}
.kb-buddy-row__greeting {
  position: absolute;
  top: 12px;
  right: 0;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}
.kb-buddy-row__greeting:active {
  background: var(--kb-fill-pressed) !important;
}
@media (max-width: 359px) {
  .kb-buddy-row__portrait {
    width: 80px;
    height: 80px;
    flex-basis: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kb-buddy-row__profile {
    transition: none;
  }
}
