/* Omni community profile and Premium resource - 0.2.37.
   Display is scoped to the middle chat column. Sidebars stay unchanged. */
dialog.nexo-community-dialog {
  position: fixed;
  box-sizing: border-box;
  width: min(720px, calc(100vw - 24px));
  max-height: min(88dvh, 790px);
  padding: 0;
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(172,200,221,.22);
  border-radius: 20px;
  background: #151a23;
  box-shadow: 0 32px 130px #000d;
  color: #f1f5fb;
}
dialog.nexo-community-dialog::backdrop {
  background: rgba(2,5,12,.76);
  backdrop-filter: blur(7px);
}
.nexo-community-dialog-main { min-width: 0; }
.nexo-community-cover-preview {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: clamp(128px,19vh,164px);
  padding: 18px 24px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255,255,255,.16);
  background-image: linear-gradient(0deg,rgba(7,14,26,.64),rgba(8,12,26,.10)),
    var(--nexo-community-photo,none),
    radial-gradient(ellipse at 35% 50%,#5b6ce9 0%,#234677 44%,#152035 90%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.nexo-community-cover-label {
  position:absolute;top:20px;left:24px;
  font-size: 11px; font-weight: 850; letter-spacing: .17em;
  color: #e9f5ff; text-shadow: 0 2px 12px #000;
}
.nexo-community-close {
  position: absolute; top: 15px; right: 15px; z-index: 2;
  display: grid;place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid #ffffff4a; background: #0a1323a9;
  font-size: 24px; line-height: 1; color: white; cursor: pointer;
}
.nexo-community-close:hover {background: #f0f8ff30;}
.nexo-community-identity {
  display: flex; align-items: flex-end;
  gap: 16px; min-width:0;
  margin: -28px 24px 0; position:relative; z-index:1;
}
.nexo-community-avatar {
  flex: 0 0 70px;
  width: 70px; height: 70px; display: grid; place-items:center;
  overflow: hidden; border-radius: 21px;
  border: 4px solid #151a23; background: linear-gradient(130deg,#454ed0,#57a8a6);
  color: #fff; font-size: 21px; font-weight: 800;
  box-shadow: 0 5px 14px #0007;
}
.nexo-community-avatar img, .nexo-community-setting-icon img {
  width: 100%;height: 100%;object-fit:cover;
}
.nexo-community-heading-text {min-width:0;padding-bottom:4px;}
.nexo-community-heading-text h2 {
  font-size:22px; font-weight:800; letter-spacing:-.04em;
  margin:0 0 6px; color:#fff;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.nexo-community-heading-text p {margin:0;font-size:11px;color:#b4c2d0;}
.nexo-community-tabs {
  display: flex; gap: 8px; margin:20px 24px 0;
  border-bottom:1px solid #ffffff23;
}
.nexo-community-tabs button {
  appearance:none; cursor:pointer;
  border:0;border-bottom:3px solid transparent; border-radius: 9px 9px 0 0;
  background:none; color:#aab9c8; padding:12px 16px 11px;
  font-size:13px;font-weight:750;
}
.nexo-community-tabs button[aria-selected="true"] {
  color:#ebfff8;border-bottom-color:#6fe2ae;
  background:linear-gradient(0deg,#5ab9981f,transparent);
}
.nexo-community-tabs button:hover {color:#fff;background-color:#ffffff10;}
.nexo-community-panels {padding:20px 24px 25px;}
.nexo-community-panel[hidden] { display:none !important; }
.nexo-community-panel h3 {font-size:16px;margin:0 0 7px;font-weight:800;}
.nexo-community-hint {color:#b4bdc9;font-size:12px;line-height:1.55;margin:0 0 15px;}
.nexo-community-action-grid {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;
}
.nexo-community-action {
  text-align:left; white-space:normal;
  min-height:47px; padding:12px 14px; cursor:pointer;
  color:#eaf2fa;font-weight:650;font-size:12px;
  border:1px solid #ffffff25;border-radius:11px;
  background:linear-gradient(135deg,#ffffff13,#ffffff06);
  transition:background .12s,border-color .12s,transform .12s;
}
.nexo-community-action:hover {
  transform:translateY(-1px);
  border-color:#7cdfb68a;background:#52b89628;
}
.nexo-community-action:focus-visible,
.nexo-community-tabs button:focus-visible,
.nexo-community-setting-actions button:focus-visible {
  outline:2px solid #76d4aa;outline-offset:3px;
}
.nexo-community-advanced {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
  margin-top:14px;padding-top:14px;border-top:1px solid #ffffff1a;
}
.nexo-community-advanced[hidden] {display:none;}
.nexo-community-action.danger-action {
  color:#ffd8d8;border-color:#cf5e666b;background:#af353a13;
}
.nexo-community-more {
  display:block;margin:15px auto 0;padding:10px 17px;
  border:1px solid #ffffff24;border-radius:9px;
  background:#ffffff0b;color:#cbd6e1;cursor:pointer;
}
.nexo-community-more[hidden] {display:none;}
.nexo-community-premium-heading {
  display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-bottom:8px;
}
.nexo-community-premium-heading h3 {margin:0;}
.nexo-community-premium-heading span {
  font-size:10px;letter-spacing:.08em;color:#def8bd;
  background:#518f4523;border:1px solid #b2d69743;
  padding:5px 9px;border-radius:20px;text-transform:uppercase;
}
.nexo-community-setting-card {
  border:1px solid #ffffff20;border-radius:14px;
  padding:13px;margin-top:11px;background:#ffffff08;
}
.nexo-community-setting-head {
  display:flex;align-items:center;justify-content:space-between;
  gap:14px;min-width:0;
}
.nexo-community-setting-head h4 {font-size:13px;margin:0 0 6px;color:#fff;}
.nexo-community-setting-head p {margin:0;font-size:11px;line-height:1.45;color:#aab8c8;}
.nexo-community-setting-icon {
  flex:0 0 52px;width:52px;height:52px;overflow:hidden;
  display:grid;place-items:center;border-radius:14px;
  border:2px solid #ffffff50;background:#405a7c;color:white;
  font-size:15px;font-weight:800;
}
.nexo-community-cover-thumb {
  height:100px;max-width:100%;margin:13px 0 0;
  border:1px solid #ffffff44;border-radius:11px;
  background-image:linear-gradient(0deg,#06132242,#0b122755),
    var(--nexo-community-photo,none),
    radial-gradient(ellipse at 30% 40%,#4765b2,#1a3146 70%);
  background-size:cover;background-position:center;
}
.nexo-community-setting-actions {display:flex;gap:9px;margin-top:12px;flex-wrap:wrap;}
.nexo-community-setting-actions button {
  cursor:pointer; border:1px solid #69c8ac67;
  border-radius:9px;padding:9px 13px;
  font-weight:650;font-size:12px;
  color:#effff7;background:#21856858;
}
.nexo-community-setting-actions button:hover:not(:disabled){background:#318c70a0;}
.nexo-community-setting-actions button.nexo-community-secondary {
  border-color:#ffffff35;background:#ffffff12;color:#dce5ed;
}
.nexo-community-setting-actions button:disabled {opacity:.35;cursor:not-allowed;}
.nexo-community-permission {
  color:#f6cbaa;font-size:11px;line-height:1.5;margin:16px 0 0;
}
/* v0.2.38: community photo is a TOP-ONLY cover. Its lower edge reaches
   exactly halfway from the last welcome sentence to the "HOJE" heading.
   It spans only the middle chat column, NEVER the chat body or sidebars. */
#appShell .chat-column.nexo-community-themed {
  isolation:isolate;
  background-color:#131825 !important;
  background-image:none !important;
}
#appShell .chat-column.nexo-community-themed::before {
  content:"";
  position:absolute;
  left:0;top:0;right:0;
  width:100%;
  height:var(--nexo-community-banner-height,240px);
  z-index:0;
  pointer-events:none;
  background-color:#263955;
  background-image:
    linear-gradient(0deg,rgba(8,13,25,.61),rgba(7,12,23,.40)),
    var(--nexo-community-photo,none);
  background-position:center,center;
  background-size:100% 100%,cover;
  background-repeat:no-repeat;
}
#appShell .chat-column.nexo-community-themed .conversation {
  position:relative;
  z-index:1;
  background-color:transparent !important;
  background-image:none !important;
}
#appShell .chat-column.nexo-community-themed .chat-topbar {
  position:relative;
  z-index:2;
  background-color:rgba(7,12,24,.25) !important;
  background-image:none !important;
  backdrop-filter:blur(3px);
}
#appShell .chat-column.nexo-community-themed .day-divider {
  margin-top:14px;
  padding-top:12px;
}
#appShell .chat-column.nexo-community-themed .channel-welcome h2,
#appShell .chat-column.nexo-community-themed .channel-welcome p {
  color:#f3f8ff !important;text-shadow:0 2px 7px #000;
}
#appShell .chat-column.nexo-community-themed .message-text,
#appShell .chat-column.nexo-community-themed .message-heading strong {
  color:#f5f9ff;text-shadow:0 1px 5px #0008;
}
/* Preview has the same ratio as the actual top banner, not 16:9. */
#communityPremiumCoverPreview {
  height:auto;
  min-height:70px;
  aspect-ratio:var(--nexo-community-banner-ratio,3.2);
}
@media(max-width:650px){
  dialog.nexo-community-dialog {max-height:94dvh;width:calc(100vw - 12px);}
  .nexo-community-identity {margin-left:16px;margin-right:16px;gap:10px;}
  .nexo-community-heading-text h2 {font-size:17px;}
  .nexo-community-cover-preview {height:155px;}
  .nexo-community-avatar {flex-basis:58px;width:58px;height:58px;border-radius:17px;}
  .nexo-community-tabs {margin:16px 15px 0;}
  .nexo-community-panels {padding:16px 15px 22px;}
  .nexo-community-action-grid,.nexo-community-advanced {grid-template-columns:1fr;}
}
/* 0.2.39 — larger fixed-size community settings panel.
   Cover, avatar, name and tabs remain fixed; ONLY the body scrolls. */
dialog.nexo-community-dialog {
  width:min(850px,calc(100vw - 32px));
  height:min(800px,calc(100dvh - 34px));
  min-height:min(560px,calc(100dvh - 34px));
  max-height:none;
  overflow:hidden;
}
.nexo-community-dialog-main {
  display:flex;
  flex-direction:column;
  width:100%;
  height:100%;
  min-height:0;
}
.nexo-community-cover-preview {
  flex:0 0 auto;
  height:clamp(128px,18vh,168px);
}
.nexo-community-identity,.nexo-community-tabs {
  flex:0 0 auto;
}
.nexo-community-panels {
  flex:1 1 auto;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  scrollbar-width:thin;
  overscroll-behavior-y:contain;
  padding:23px 26px 28px;
  scroll-behavior:smooth;
}
.nexo-community-panel[hidden],
#communityProfileGeneralLanding[hidden],
#communityProfileDetail[hidden] {display:none !important;}
.nexo-community-action-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.nexo-community-action {
  min-height:58px;
  padding:13px 17px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  font-size:13px;
}
.nexo-community-action:not(.danger-action)::after {
  content:"›";
  color:#82d8b2;
  font-size:23px;
  font-weight:400;
  flex:0 0 auto;
}
.nexo-community-advanced .nexo-community-action {
  min-height:48px;
}
.nexo-community-detail {min-height:100%;}
.nexo-community-detail-heading {
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:22px;
}
.nexo-community-detail-heading h3 {
  margin:2px 0 7px;
  font-size:20px;
  color:#f4faff;
  letter-spacing:-.025em;
}
.nexo-community-detail-heading .nexo-community-hint{
  margin:0;
  font-size:12px;
}
.nexo-community-back {
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border-radius:11px;
  border:1px solid rgba(220,240,250,.25);
  background:rgba(240,250,255,.09);
  color:#ebf7ff;
  font-size:22px;
  cursor:pointer;
}
.nexo-community-back:hover {background:rgba(124,215,183,.21);border-color:#78c8a9;}
.nexo-community-detail-content {
  display:flex;
  flex-direction:column;
  gap:15px;
  width:100%;
  max-width:660px;
}
.nexo-community-detail-feedback {
  margin:16px 0 0;
  min-height:24px;
  color:#a5ecc6;
  font-size:12px;
}
.nexo-community-detail-feedback.error {color:#ffb4af;}
.nexo-setting-form {
  display:flex;
  align-items:stretch;
  flex-direction:column;
  gap:18px;
}
.nexo-setting-field {display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:700;color:#e1ebf4;}
.nexo-setting-field input,.nexo-setting-search {
  box-sizing:border-box;
  width:100%;
  min-height:45px;
  border:1px solid #ffffff2f;
  border-radius:10px;
  outline:none;
  background:#070e1f9c;
  padding:11px 14px;
  color:#f5ffff;
  font:inherit;
  font-size:13px;
}
.nexo-setting-field input:focus,.nexo-setting-search:focus {
  border-color:#69daa5;
  box-shadow:0 0 0 2px #6adca320;
}
.nexo-setting-button {
  box-sizing:border-box;
  padding:12px 17px;
  min-height:43px;
  border-radius:10px;
  border:1px solid #ffffff2c;
  color:#eaf8ff;
  background:#ffffff12;
  text-align:center;
  font-size:13px;
  font-weight:720;
  cursor:pointer;
  align-self:flex-start;
}
.nexo-setting-button.primary {background:#21846692;border-color:#6ccaa4;}
.nexo-setting-button.danger {background:#812b3b65;border-color:#dd6276;}
.nexo-setting-button.row {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-radius:10px;
  text-align:left;
  background:#ffffff0b;
  font-weight:650;
  white-space:normal;
}
.nexo-setting-button:hover:not(:disabled) {filter:brightness(1.21);}
.nexo-setting-button:disabled {opacity:.42;cursor:default;}
.nexo-setting-list {
  display:flex;flex-direction:column;gap:9px;
  max-width:100%;
}
.nexo-setting-danger input {border-color:#a04d548c;}
/* Make the default translucent Omni background show through below the cover.
   The image itself remains on ::before only, never the chat or voice body. */
#appShell .chat-column.nexo-community-themed {
  background-color:rgba(15,15,17,.21) !important;
  background-image:none !important;
}
#appShell .chat-column.nexo-community-themed .voice-stage,
#appShell .chat-column.nexo-community-themed .voice-preview-panel {
  position:relative;
  z-index:1;
  background-color:transparent !important;
  background-image:none !important;
}
#appShell .chat-column.nexo-community-themed .voice-stage-heading {
  background:transparent !important;
}
#appShell .chat-column.nexo-community-themed .voice-stage-eyebrow,
#appShell .chat-column.nexo-community-themed .voice-stage-heading h2,
#appShell .chat-column.nexo-community-themed .voice-stage-heading p,
#appShell .chat-column.nexo-community-themed .voice-preview-panel > h2,
#appShell .chat-column.nexo-community-themed #voicePreviewSubtitle,
#appShell .chat-column.nexo-community-themed .voice-stage-count {
  color:#f3fbff !important;
  text-shadow:0 2px 8px rgba(0,0,0,.88);
}
#appShell .chat-column.nexo-community-themed .voice-stage-count {
  background:rgba(5,13,26,.35);
  border-color:#ffffff40;
}
/* Keep videos, participant cards and controls readable below the banner. */
#appShell .chat-column.nexo-community-themed .voice-stage-panel,
#appShell .chat-column.nexo-community-themed .voice-stage-controls {
  background-color:transparent !important;
  background-image:none !important;
}
#appShell .chat-column.nexo-community-themed .remote-tile {
  background-color:rgba(20,24,30,.57);
}
@media(max-width:650px){
  dialog.nexo-community-dialog {
    width:calc(100vw - 12px);
    height:calc(100dvh - 14px);
    min-height:0;
    max-height:none;
  }
  .nexo-community-panels {padding:17px 15px 22px;}
  .nexo-community-action-grid,.nexo-community-advanced {
    grid-template-columns:1fr;
  }
  .nexo-community-cover-preview {height:125px;}
  .nexo-community-action {min-height:45px;}
}
@media(max-height:620px) {
  .nexo-community-cover-preview {height:105px;}
  .nexo-community-identity {margin-top:-14px;}
  .nexo-community-panels {padding-top:13px;}
}
