
/* MIZAN Friends — organizational presentation only */

/* Hide personal profile content only in Friends mode. */
body.mzn-friends-only #mzn-v2-profile-view > h1,
body.mzn-friends-only #mzn-v2-profile-view > .mzn-profile-real,
body.mzn-friends-only #mzn-v2-profile-view > #mzn-v2-friends-open,
body.mzn-friends-only #mzn-v2-profile-view > #mzn-v2-logout {
  display: none !important;
}

body.mzn-friends-only #mzn-v2-friends-panel {
  margin: 0;
  padding: 16px;
  background: #f7f9fc;
  border-radius: 18px;
}

body.mzn-friends-only #mzn-v2-friends-panel > h2 {
  color: #102e50;
  font-size: 24px;
  margin: 0 0 16px;
}

body.mzn-friends-only
.mzn-org-section[data-section="friends"] > h3 {
  display: none;
}

/* One horizontal tab row, scrollable on mobile. */
body.mzn-friends-only .mzn-org-tabs {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 5px;
}

body.mzn-friends-only .mzn-org-tabs::-webkit-scrollbar {
  display: none;
}

body.mzn-friends-only .mzn-org-tabs button {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13px;
  padding: 10px 12px;
}

/* Compact list with clear friend identity and actions. */
body.mzn-friends-only
#mzn-v2-friends-accepted > .mzn-v2-friendrow {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "avatar name"
    "actions actions";
  gap: 8px 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 8px;
  background: white;
  border: 1px solid #e1e7ee;
  border-radius: 14px;
  box-shadow: none;
}

body.mzn-friends-only
#mzn-v2-friends-accepted .mzn-v2-avatar {
  grid-area: avatar;
  width: 46px;
  height: 46px;
  flex: none;
}

body.mzn-friends-only
#mzn-v2-friends-accepted .mzn-v2-friendrow > strong {
  grid-area: name;
  min-width: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
  color: #102e50;
}

body.mzn-friends-only
#mzn-v2-friends-accepted .mzn-v2-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
}

body.mzn-friends-only
#mzn-v2-friends-accepted .mzn-v2-actions > button {
  min-height: 38px;
  padding: 7px 11px;
  font-size: 13px;
  border-radius: 9px;
}

body.mzn-friends-only .mzn-org-more {
  margin-inline-start: auto;
}

@media (min-width: 650px) {
  body.mzn-friends-only
  #mzn-v2-friends-accepted > .mzn-v2-friendrow {
    grid-template-columns: 48px minmax(100px, 1fr) auto;
    grid-template-areas: "avatar name actions";
  }
}
