.section h2.section-title {
  margin-bottom: 16px;
}

.friends-list {
  display: grid;
  gap: 14px;
}

.friends-add-inline {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-bottom: 6px;
}

.friends-add-button {
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b1b1b, #38312c);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 20px 38px rgba(15, 12, 8, 0.24);
}

.friends-add-button:focus-visible {
  outline: 3px solid rgba(244, 184, 96, 0.7);
  outline-offset: 4px;
}

.friends-add-button-icon {
  width: 26px;
  height: 26px;
}

.friends-add-button--floating {
  position: fixed;
  right: 20px;
  bottom: calc(114px + env(safe-area-inset-bottom, 0px));
  z-index: 9;
}

.friend-row {
  --surface-radius: 12px;
  width: 100%;
  border: none;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  overflow: hidden;
}

.friend {
  border-radius: 18px;
  background: #faf7f2;
  padding: 6px;
  transition: background-color 0.25s ease;
}

.friend[open] {
  background: #f5efe7;
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.meta {
  min-width: 0;
  overflow: hidden;
}

.friend-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.action-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e5a632;
}

.friend-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.friend-icon--online {
  color: #27a857;
}

.friend-icon--relay {
  color: #e5a632;
}

.meta h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0efe9;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
}

.amount {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 16px;
  text-align: right;
}

.amount .trust-limit {
  color: var(--muted);
  font-weight: 400;
}

.amount--muted {
  color: var(--muted);
  font-weight: 600;
}

.tx-wrap {
  height: 0;
  opacity: 0;
  transition: height 0.4s ease, opacity 0.25s ease;
  overflow: hidden;
  will-change: height, opacity;
}

.friend[open] .tx-wrap {
  opacity: 1;
}

@media (min-width: 600px) {
  .friends-add-button--floating {
    right: calc(50% - 210px + 20px);
  }
}
