/* MP-7 (Vault board 1442): the Friends panel on Home. Signed-in only (the section stays hidden for guests). */
.friends-panel {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4px 0 24px;
  color: #fff;
}
.friends-panel[hidden] { display: none; }
.friends-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.friends-head span {
  color: #f3ff20;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.friends-head strong { font-size: 1.1rem; font-weight: 900; letter-spacing: -.02em; }
.friends-add { margin: 10px 0 4px; max-width: 560px; }
.friends-add-label { display: block; margin-bottom: 6px; color: rgba(255, 255, 255, .72); font-size: .74rem; font-weight: 700; }
.friends-add-row { display: flex; gap: 8px; }
.friends-add-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: rgba(10, 8, 36, .55);
  color: #fff;
  font: inherit;
}
.friends-status { min-height: 1.2em; margin: 4px 0 8px; color: rgba(255, 255, 255, .82); font-size: .8rem; }
.friends-group { max-width: 560px; margin: 10px 0 0; }
.friends-group h3, .friends-blocked summary {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, .72);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.friends-group h3 small, .friends-blocked summary small { color: #f3ff20; font-size: inherit; }
.friends-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.friends-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(10, 8, 36, .45);
}
.friends-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.friends-state { color: rgba(255, 255, 255, .62); font-size: .74rem; white-space: nowrap; }
.friends-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.friends-row[data-online="true"] .friends-dot { background: #4be37a; box-shadow: 0 0 0 3px rgba(75, 227, 122, .22); }
.friends-row[data-online="true"] .friends-state { color: #9ff0b6; }
.friends-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.friends-btn {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.friends-btn.friends-primary { border-color: #f3ff20; background: #f3ff20; color: #14102e; }
.friends-btn.friends-quiet { border-color: transparent; color: rgba(255, 255, 255, .62); padding: 0 6px; }
.friends-add-row .friends-btn { min-height: 40px; }
.friends-empty, .friends-note { margin: 0; color: rgba(255, 255, 255, .62); font-size: .78rem; }
.friends-note { margin-top: 12px; max-width: 560px; }
.friends-blocked { max-width: 560px; margin-top: 10px; }
.friends-blocked summary { cursor: pointer; }
@media (max-width: 480px) {
  .friends-row { flex-wrap: wrap; }
  .friends-actions { width: 100%; justify-content: flex-end; }
  .friends-row[data-online] .friends-actions { width: auto; }
}
