
/* MIZAN12AI Friends — compact visual layer only */

body.mzn-friends-only #mzn-v2-friends-panel {
  padding: 14px !important;
}

body.mzn-friends-only .mzn-friends-overview {
  display: flex;
  gap: 9px;
  margin: 0 0 12px;
}

body.mzn-friends-only .mzn-friends-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  border: 1px solid #d8e1ea;
  border-radius: 12px;
  background: #fff;
  color: #173451;
  font-size: 13px;
}

body.mzn-friends-only .mzn-friends-stat:first-child {
  background: #102e50;
  color: #fff;
  border-color: #d4a74e;
}

body.mzn-friends-only .mzn-friends-stat span {
  color: #d5a84f;
  font-weight: 800;
}

body.mzn-friends-only .mzn-online-pending span {
  color: #9ca9b8;
}

body.mzn-friends-only .mzn-org-tabs {
  gap: 6px;
  margin-bottom: 10px;
}

body.mzn-friends-only .mzn-org-tabs button {
  font-size: 12px;
  padding: 8px 11px;
}

body.mzn-friends-only .mzn-friends-searchline {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

body.mzn-friends-only .mzn-friends-searchline
.mzn-org-search {
  flex: 1;
  min-width: 0;
  width: auto;
  font-size: 14px;
}

body.mzn-friends-only .mzn-friends-searchline
[data-tab="find"] {
  flex: none;
  padding: 9px 12px;
  border: 1px solid #d4a74e;
  border-radius: 11px;
  background: #102e50;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

body.mzn-friends-only
#mzn-v2-friends-accepted > .mzn-v2-friendrow {
  display: grid !important;
  grid-template-columns: 43px minmax(0,1fr) auto !important;
  grid-template-areas: "avatar name actions" !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 66px;
  padding: 11px !important;
  margin: 0 0 7px !important;
  border-radius: 13px !important;
}

body.mzn-friends-only
#mzn-v2-friends-accepted .mzn-v2-avatar {
  grid-area: avatar;
  width: 42px !important;
  height: 42px !important;
}

body.mzn-friends-only
#mzn-v2-friends-accepted .mzn-v2-friendrow > strong {
  grid-area: name;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px !important;
}

body.mzn-friends-only
#mzn-v2-friends-accepted .mzn-v2-actions {
  grid-area: actions;
  display: flex !important;
  flex: none !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 4px !important;
  min-width: 0;
}

body.mzn-friends-only
#mzn-v2-friends-accepted .mzn-compact-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  min-height: 35px !important;
  padding: 0 !important;
  border-radius: 9px;
}

body.mzn-friends-only .mzn-compact-action svg,
body.mzn-friends-only .mzn-org-more summary svg {
  display: block;
  width: 18px;
  height: 18px;
}

body.mzn-friends-only .mzn-org-more {
  margin-inline-start: 0 !important;
}

body.mzn-friends-only .mzn-org-more summary {
  box-sizing: border-box;
  width: 35px;
  height: 35px;
  padding: 7px !important;
  display: grid;
  place-items: center;
}

body.mzn-friends-only
#mzn-v2-friends-accepted .mzn-compact-menu-open {
  z-index: 30;
}

body.mzn-friends-only .mzn-org-popup {
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 155px;
  z-index: 10;
}

body.mzn-friends-only .mzn-org-popup button {
  font-size: 13px;
}

@media (max-width: 360px) {
  body.mzn-friends-only
  #mzn-v2-friends-accepted > .mzn-v2-friendrow {
    grid-template-columns: 40px minmax(0,1fr) !important;
    grid-template-areas:
      "avatar name"
      "actions actions" !important;
  }

  body.mzn-friends-only
  #mzn-v2-friends-accepted .mzn-v2-actions {
    justify-content: flex-end;
  }
}


/* mzn-friends-dedup-v3 */
body.mzn-friends-only
#mzn-v2-friends-panel .mzn-org-tabs
[data-tab="friends"] {
  display: none !important;
}

body.mzn-friends-only
#mzn-v2-friends-panel .mzn-friends-stat:first-child {
  cursor: pointer;
}

body.mzn-friends-only
#mzn-v2-friends-panel .mzn-friends-stat:first-child:focus-visible {
  outline: 3px solid #d5a84f;
  outline-offset: 3px;
}

body.mzn-friends-only
#mzn-v2-friends-panel:not([data-mzn-tab="friends"])
.mzn-friends-stat:first-child {
  background: white;
  color: #173451;
  border-color: #d8e1ea;
}
