/* Omni 0.2.82 | minimalist-ui: community cover and pre-join member cards.
   Only the channel's General view and the voice-room PREVIEW receive
   a gentle transparent fade. Ongoing voice calls keep their original cover. */

/* Gradually uncover the user's configured wallpaper beneath the community
   cover. The fade affects the photo only, not channel copy or controls. */
#appShell.app-shell .chat-column.nexo-community-themed:has(> #conversation:not([hidden]))::before,
#appShell.app-shell .chat-column.nexo-community-themed:has(> #voicePreviewPanel:not([hidden]))::before {
  -webkit-mask-image:linear-gradient(
    to bottom,
    #000 0%,
    #000 67%,
    rgba(0,0,0,.95) 75%,
    rgba(0,0,0,.65) 88%,
    transparent 100%
  )!important;
  mask-image:linear-gradient(
    to bottom,
    #000 0%,
    #000 67%,
    rgba(0,0,0,.95) 75%,
    rgba(0,0,0,.65) 88%,
    transparent 100%
  )!important;
  -webkit-mask-size:100% 100%;
  mask-size:100% 100%;
}
/* Never put the transparency mask on the cover during an active call. */
#appShell.app-shell .chat-column.nexo-community-themed:has(> #voiceStage:not([hidden]))::before {
  -webkit-mask-image:none!important;
  mask-image:none!important;
}

/* Room entrance — photo as the entire upper face of the member tile.
   The name and connected status appear below, on a quiet footer. */
#appShell #voicePreviewPanel:not([hidden]) #voicePreviewMembers {
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(148px,184px))!important;
  justify-content:start;
  align-items:start;
  gap:12px!important;
  max-width:860px;
}
#appShell #voicePreviewPanel:not([hidden]) .voice-preview-member {
  box-sizing:border-box;
  display:grid!important;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) auto auto;
  justify-items:stretch!important;
  align-content:stretch;
  align-items:stretch!important;
  gap:0!important;
  min-width:0!important;
  width:100%;
  height:205px;
  min-height:205px!important;
  max-height:none;
  padding:0 0 11px!important;
  overflow:hidden;
  border:1px solid rgba(236,244,241,.17)!important;
  border-radius:10px!important;
  background:rgba(20,27,31,.55)!important;
  background-image:none!important;
  color:#eff5f2;
  text-align:left;
  box-shadow:none!important;
  transform:none!important;
  transition:background-color .15s ease,border-color .15s ease!important;
  cursor:pointer;
}
#appShell #voicePreviewPanel:not([hidden]) .voice-preview-member:is(:hover,:focus-visible) {
  background:rgba(24,33,36,.68)!important;
  border-color:rgba(228,245,236,.37)!important;
  box-shadow:none!important;
  transform:none!important;
}
#appShell #voicePreviewPanel:not([hidden]) .voice-preview-member:focus-visible {
  outline:2px solid #b7e4ce!important;
  outline-offset:2px!important;
}
#appShell #voicePreviewPanel:not([hidden]) .voice-preview-member > .voice-preview-avatar {
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  grid-column:1;
  grid-row:1;
  align-self:stretch!important;
  box-sizing:border-box;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  flex:none!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:rgba(80,105,102,.19)!important;
  color:#f1f8f5!important;
  font-size:38px!important;
  font-weight:750!important;
}
#appShell #voicePreviewPanel:not([hidden]) .voice-preview-member > .voice-preview-avatar img {
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
  border:0!important;
  border-radius:0!important;
}
#appShell #voicePreviewPanel:not([hidden]) .voice-preview-member > strong {
  grid-column:1;
  grid-row:2;
  display:block!important;
  box-sizing:border-box;
  min-width:0;
  max-width:none!important;
  width:100%;
  margin:9px 0 0!important;
  padding:0 11px!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  line-height:1.35;
  color:#f0f6f3!important;
  text-shadow:none!important;
  font-family:"Segoe UI",system-ui,sans-serif;
  font-size:12px!important;
  font-weight:720;
}
#appShell #voicePreviewPanel:not([hidden]) .voice-preview-member > small {
  grid-column:1;
  grid-row:3;
  display:flex!important;
  align-items:center;
  gap:6px;
  box-sizing:border-box;
  width:100%;
  margin:4px 0 0!important;
  padding:0 11px!important;
  line-height:1.35;
  color:#adbcb7!important;
  text-shadow:none!important;
  font-size:10px!important;
  font-weight:550!important;
}
#appShell #voicePreviewPanel:not([hidden]) .voice-preview-member > small::before {
  content:"";
  width:6px;
  height:6px;
  flex:0 0 6px;
  border-radius:50%;
  background:#8bd4a4;
}

/* Fit short laptop windows without reverting to tiny circular avatars. */
@media(max-height:680px){
  #appShell #voicePreviewPanel:not([hidden]) .voice-preview-member {
    height:166px;
    min-height:166px!important;
    padding-bottom:9px!important;
  }
  #appShell #voicePreviewPanel:not([hidden]) .voice-preview-member > strong {
    margin-top:7px!important;
  }
}
@media(max-width:650px){
  /* A scrollable entrance must not shrink the member grid under the action
     buttons. Keeping its natural height prevents overlap on phones. */
  #appShell #voicePreviewPanel:not([hidden]) {
    justify-content:flex-start!important;
    padding-top:clamp(83px,12vh,115px)!important;
    padding-bottom:28px!important;
    gap:9px!important;
    overflow-y:auto!important;
  }
  #appShell #voicePreviewPanel:not([hidden]) #voicePreviewMembers:has(> .voice-preview-member) {
    flex:0 0 auto!important;
    height:auto!important;
    min-height:max-content!important;
    grid-auto-rows:170px!important;
    grid-template-columns:repeat(auto-fill,minmax(118px,1fr))!important;
    gap:9px!important;
  }
  #appShell #voicePreviewPanel:not([hidden]) :is(.voice-preview-actions,.voice-preview-footnote) {
    flex:0 0 auto!important;
  }
  #appShell #voicePreviewPanel:not([hidden]) .voice-preview-member {
    height:170px;
    min-height:170px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #appShell #voicePreviewPanel:not([hidden]) .voice-preview-member {
    transition:none!important;
  }
}
