/* Omni Beta 0.2.28 — independent, user-selectable visualizations. */
#profileEditorDialog .nexo-visual-tabs {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px; width:100%; margin: 2px 0 13px; padding: 5px;
  border:1px solid rgba(255,255,255,.13); border-radius:13px;
  background:rgba(0,0,0,.16); box-sizing:border-box;
}
#profileEditorDialog .nexo-visual-tabs button {
  min-height:38px; padding:8px 7px; background:transparent; border:1px solid transparent;
  border-radius:9px; color:#cad0d9; font:600 11px/1.35 "Segoe UI",sans-serif; cursor:pointer;
}
#profileEditorDialog .nexo-visual-tabs button:is([aria-selected="true"],:hover) {
  color:#e6fff0; background:rgba(93,184,136,.18);
  border-color:rgba(128,220,162,.26);
}
#profileEditorDialog .nexo-visual-pane { width:100%; min-width:0; box-sizing:border-box; }
#profileEditorDialog .nexo-visual-pane[hidden] { display:none !important; }
#profileEditorDialog .nexo-visual-pane h3 { margin:12px 0 8px; color:#f2f4f7; font-size:15px; }
#profileEditorDialog .nexo-visual-caption { margin:8px 0 14px; color:#adb5c1; font-size:11px; line-height:1.55; }
#profileEditorDialog .nexo-visual-pane .mini-central-editor { margin-top:4px; }
#profileEditorDialog .nexo-visual-actions { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 8px; }
#profileEditorDialog .nexo-visual-actions button {
  min-height:37px; padding:8px 13px; border:1px solid rgba(255,255,255,.17);
  border-radius:10px; background:rgba(255,255,255,.065); color:#eef1f5;
  font:600 11px "Segoe UI",sans-serif; cursor:pointer;
}
#profileEditorDialog .nexo-visual-actions button:hover { background:rgba(255,255,255,.14); }
#profileEditorDialog .nexo-visual-actions .nexo-visual-primary {
  background:rgba(91,192,139,.23); border-color:rgba(91,192,139,.45); color:#e2ffec;
}
#profileEditorDialog .nexo-visual-color-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 11px; border:1px solid rgba(255,255,255,.13); border-radius:10px;
  color:#d8dfe5; font-size:11px;
}
#profileEditorDialog .nexo-visual-color-row input {
  width:46px; height:31px; cursor:pointer; border:1px solid #ffffff38; border-radius:7px;
  padding:2px; background:#0005;
}
#profileEditorDialog .nexo-visual-preview {
  display:flex; align-items:center; min-height:75px; margin:16px 0; overflow:hidden;
  border:1px solid rgba(255,255,255,.28); border-radius:12px;
  background-color:var(--nexo-banner-color,#172534);
  background-image:linear-gradient(#0004,#0007),var(--nexo-banner-image,none);
  background-size:100% 100%,cover; background-position:center;
  color:#fff; font-size:11px; font-weight:700; text-shadow:0 2px 6px #000;
}
#profileEditorDialog .nexo-visual-preview span { display:flex; align-items:center; padding:0 11px; min-height:75px; }
#profileEditorDialog .nexo-visual-preview span:first-child { width:35%; border-right:1px solid #ffffff47; }
#profileEditorDialog .nexo-visual-preview span:last-child { flex:1; justify-content:space-between; }
#profileEditorDialog .nexo-visual-status { min-height:18px; color:#aac4b8; font-size:11px; }
#profileEditorDialog .nexo-voice-options { display:grid; gap:11px; margin:12px 0; }
#profileEditorDialog .nexo-voice-options label {
  display:flex; gap:10px; align-items:flex-start; padding:14px;
  border:1px solid rgba(255,255,255,.14); border-radius:12px;
  background:rgba(255,255,255,.04); cursor:pointer;
}
#profileEditorDialog .nexo-voice-options label:has(input:checked) {
  background:rgba(88,190,137,.12); border-color:rgba(105,201,149,.48);
}
#profileEditorDialog .nexo-voice-options input { margin-top:4px; accent-color:#70e8a7; }
#profileEditorDialog .nexo-voice-options span { display:grid; gap:5px; }
#profileEditorDialog .nexo-voice-options strong { font-size:12px; color:#e9eef1; }
#profileEditorDialog .nexo-voice-options small { font-size:10px; color:#aab3bd; line-height:1.6; }
/* A single panoramic photo spans the left navigation and central header.
   The community/member columns below, and the whole right sidebar, stay unchanged. */
#appShell.nexo-custom-banner .global-navigation,
#appShell.nexo-custom-banner .chat-topbar {
  background-color:var(--nexo-banner-color) !important;
  background-image: linear-gradient(100deg,rgba(11,15,21,.37),rgba(11,15,21,.42)),var(--nexo-banner-image) !important;
  background-repeat:no-repeat !important;
  background-size:100% 100%,var(--nexo-banner-span) auto !important;
  background-position:0 0, var(--nexo-banner-x) center !important;
}
#appShell.nexo-custom-banner .global-navigation { --nexo-banner-x:0px; }
#appShell.nexo-custom-banner .chat-topbar { --nexo-banner-x: calc(-1 * var(--nexo-banner-nav-width)); }
#appShell.nexo-custom-banner .global-nav-button,
#appShell.nexo-custom-banner .chat-topbar .icon-button,
#appShell.nexo-custom-banner .chat-topbar .rail-utility {
  background-color:rgba(0,0,0,.14); color:#f7faff; text-shadow:0 2px 9px #000;
}
#appShell.nexo-custom-banner .global-nav-button:is(:hover,:focus-visible) {
  background-color:rgba(255,255,255,.18);
}
#appShell.nexo-custom-banner .chat-topbar h1,
#appShell.nexo-custom-banner .chat-topbar p { color:#f5f9ff; text-shadow:0 2px 9px #000; }
/* Waveform is OUTSIDE each existing full-photo square. Do not resize the image. */
#voiceStage .remote-tile.is-voice-participant:not(.has-video) .nexo-voice-ring {
  display:none; position:absolute; z-index:8;
  pointer-events:none; overflow:visible; max-width:none; max-height:none;
}
body[data-nexo-voice-indicator="circle"] #voiceStage .remote-tile.is-voice-participant:not(.has-video) {
  overflow:visible;
}
body[data-nexo-voice-indicator="circle"] #voiceStage .remote-tile.is-voice-participant:not(.has-video) .nexo-voice-ring {
  display:block;
}
body[data-nexo-voice-indicator="circle"] #voiceStage .remote-tile.is-voice-participant:not(.has-video) .participant-audio-meter {
  display:none;
}
body[data-nexo-voice-indicator="circle"] #voiceStage .remote-tile.is-voice-participant:not(.has-video) .remote-tile-avatar {
  transform:none !important; box-shadow:none !important; animation:none !important;
}
body[data-nexo-voice-indicator="circle"] #voiceStage .remote-tile.is-voice-participant:not(.has-video).is-speaking {
  border-color:rgba(90,218,149,.39);
}
@media (max-width:760px) {
 #profileEditorDialog .nexo-visual-tabs button { font-size:10px; }
 #voiceStage .remote-tile.is-voice-participant:not(.has-video) .nexo-voice-ring { pointer-events:none; }
}

body[data-nexo-voice-indicator="circle"] #voiceStage .remote-tile.is-voice-participant:not(.has-video) .remote-tile-info {
  border-radius: inherit; overflow:hidden;
}

/* Voice indicator controls in Settings > Chat as well as Edit Profile. */
#settingsPanelChatVisual .nexo-voice-options { display:grid; gap:11px; margin:15px 0 18px; }
#settingsPanelChatVisual .nexo-voice-options label {
  display:flex; gap:12px; align-items:flex-start; padding:16px;
  border:1px solid rgba(255,255,255,.14); border-radius:12px;
  background:rgba(255,255,255,.05); cursor:pointer;
}
#settingsPanelChatVisual .nexo-voice-options label:has(input:checked) {
  background:rgba(88,190,137,.12); border-color:rgba(105,201,149,.48);
}
#settingsPanelChatVisual .nexo-voice-options input { margin-top:4px; accent-color:#70e8a7; }
#settingsPanelChatVisual .nexo-voice-options span { display:grid; gap:6px; }
#settingsPanelChatVisual .nexo-voice-options strong { color:#e9eef1; font-size:13px; }
#settingsPanelChatVisual .nexo-voice-options small { color:#aab3bd; font-size:11px; line-height:1.55; }
.nexo-chat-visual-shortcut {
  display:block; width:100%; min-height:40px; margin:14px 0 0;
  padding:9px 12px; text-align:left; border-radius:10px;
  border:1px solid rgba(105,201,149,.34); background:rgba(105,201,149,.095);
  color:#ddf9e8; font-size:11px; cursor:pointer;
}
.nexo-chat-visual-shortcut:hover { background:rgba(105,201,149,.19); }

/* 0.2.28 visual correction: waveform lives OUTSIDE each full-size photo.
   Photo and existing text overlays retain their exact original geometry. */
body[data-nexo-voice-indicator="circle"] #voiceStage .remote-media:not(.has-video) {
  padding: 38px !important;
  box-sizing: border-box;
  scroll-padding: 38px;
}
body[data-nexo-voice-indicator="circle"] #voiceStage .remote-media.has-video {
  padding: 20px 28px 28px !important;
}
body[data-nexo-voice-indicator="circle"] #voiceStage .remote-media.has-video >
  .remote-tile.is-voice-participant:not(.has-video):not(.is-screen-sharing) {
  margin: 13px 0 13px 0 !important;
}
body[data-nexo-voice-indicator="circle"] #voiceStage .remote-media:not(.has-video) >
  .remote-tile.is-voice-participant:not(.has-video),
body[data-nexo-voice-indicator="circle"] #voiceStage .remote-media.has-video >
  .remote-tile.is-voice-participant:not(.has-video) {
  position: relative;
  overflow: visible !important;
  isolation: isolate;
}
/* Keep clipping on the photo itself, not on the outer tile or waveform. */
body[data-nexo-voice-indicator="circle"] #voiceStage .remote-media
  .remote-tile.is-voice-participant:not(.has-video) .remote-tile-info {
  overflow: hidden;
  border-radius: inherit;
}
body[data-nexo-voice-indicator="circle"] #voiceStage .remote-media
  .remote-tile.is-voice-participant:not(.has-video) > .nexo-voice-ring {
  display: block;
  position: absolute !important;
  z-index: 8 !important;
  inset: auto;
  margin: 0;
  overflow: visible !important;
  pointer-events: none;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
}
@media(max-width:760px) {
  body[data-nexo-voice-indicator="circle"] #voiceStage .remote-media:not(.has-video) {
    padding: 30px !important;
    scroll-padding: 30px;
  }
}

/* Shared lower toolbar: original mini-central image, continuously spanning
   the voice/user card and the central message composer, never the right rail. */
#appShell .chat-column > .composer-wrap {
  box-sizing: border-box;
  position: relative;
  flex: 0 0 88px;
  min-height: 88px;
  max-height: 88px;
  height: 88px;
  padding: 10px 16px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(186,211,227,.20);
  border-left: 1px solid rgba(229,239,255,.19);
}
#appShell .chat-column > .composer-wrap[hidden] { display: none !important; }
#appShell .chat-column > .composer-wrap .composer {
  flex: none;
  min-height: 48px;
  background: rgba(9,14,22,.51);
  border-color: rgba(231,240,253,.27);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
#appShell .chat-column > .composer-wrap .composer input {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
#appShell .chat-column > .composer-wrap .composer input::placeholder { color:#d1d8e0; }
#appShell .chat-column > .composer-wrap .prototype-note {
  color: #dbe1e6;
  text-shadow: 0 1px 3px #000;
  margin: 5px 0 0;
  line-height: 12px;
}
#appShell .chat-column > .composer-wrap .reply-banner:not([hidden]) {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(100% - 1px);
  z-index: 9;
  border-radius: 9px 9px 0 0;
}

/* Voice rooms occupy the same bottom 88px as chat messages. */
#appShell .chat-column .voice-stage:not([hidden]) > .voice-stage-controls {
  flex: 0 0 88px;
  box-sizing: border-box;
  min-height: 88px;
  max-height: 88px;
  height: 88px;
  margin: 0 -25px -18px;
  padding: 11px 17px 12px;
  border-top: 1px solid rgba(186,211,227,.20);
  border-left: 1px solid rgba(229,239,255,.19);
  justify-content: center;
}
#appShell.nexo-bottom-extended #miniCentral,
#appShell.nexo-bottom-extended .chat-column > .composer-wrap,
#appShell.nexo-bottom-extended .chat-column .voice-stage:not([hidden]) > .voice-stage-controls {
  background-color: var(--nexo-bottom-color,#000000) !important;
  background-image:
    linear-gradient(90deg,rgba(5,12,20,.34),rgba(5,12,20,.48)),
    var(--nexo-bottom-image,none) !important;
  background-size:
    100% 100%,
    var(--nexo-bottom-span,1100px) var(--nexo-bottom-height,88px) !important;
  background-position:
    0 0,
    var(--nexo-bottom-x,0px) bottom !important;
  background-repeat: no-repeat !important;
}
#appShell.nexo-bottom-extended #miniCentral { --nexo-bottom-x: 0px; }
#appShell.nexo-bottom-extended .chat-column > .composer-wrap,
#appShell.nexo-bottom-extended .chat-column .voice-stage-controls {
  --nexo-bottom-x: var(--nexo-bottom-chat-x,-314px);
}
#appShell.nexo-bottom-extended #miniCentral {
  border-right: 1px solid rgba(246,253,255,.32);
  box-shadow: inset -1px 0 rgba(0,0,0,.5),0 -7px 22px rgba(0,0,0,.25);
}
#appShell.nexo-bottom-extended .chat-column > .composer-wrap::before,
#appShell.nexo-bottom-extended .chat-column .voice-stage-controls::before {
  content: none;
}
@media(max-width:760px) {
  #appShell .chat-column > .composer-wrap {
    padding: 9px 10px;
    border-left: 0;
  }
  #appShell .chat-column .voice-stage:not([hidden]) > .voice-stage-controls {
    margin: 0 -12px -12px;
    gap: 5px;
    padding: 10px 8px 11px;
    border-left: 0;
  }
  #appShell .chat-column > .composer-wrap .prototype-note { display: none; }
}

/* Voice effect selector belongs to Settings > Personalização, not Edit Profile. */
#settingsPanelCustomize .nexo-custom-voice-inline {
  display: block;
  padding: 14px;
  margin: 14px 0 19px;
  border: 1px solid rgba(117,201,159,.22);
  border-radius: 12px;
  background: rgba(30,49,43,.18);
}
#settingsPanelCustomize .nexo-custom-voice-inline h3 {
  margin: 0 0 6px;
  color: #ecfff3;
  font-size: 14px;
}
#settingsPanelCustomize .nexo-custom-voice-inline .nexo-voice-options {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin: 15px 0 4px;
}
#settingsPanelCustomize .nexo-custom-voice-inline .nexo-voice-options label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  padding: 13px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(2,8,12,.28);
}
#settingsPanelCustomize .nexo-custom-voice-inline .nexo-voice-options label:has(input:checked) {
  border-color: rgba(105,217,155,.7);
  background: rgba(42,123,86,.24);
}
#settingsPanelCustomize .nexo-custom-voice-inline .nexo-voice-options input {
  margin-top: 3px;
  accent-color: #90efba;
}
#settingsPanelCustomize .nexo-custom-voice-inline .nexo-voice-options span { display:grid;gap:5px; }
#settingsPanelCustomize .nexo-custom-voice-inline .nexo-voice-options strong {font-size:12px;color:#fff;}
#settingsPanelCustomize .nexo-custom-voice-inline .nexo-voice-options small {font-size:10px;line-height:1.45;color:#c4d4ca;}
@media(max-width:800px) {
  #settingsPanelCustomize .nexo-custom-voice-inline .nexo-voice-options {grid-template-columns:1fr;}
}

/* Personalização da barra de áudio: preview of both sides of one image. */
#profileEditorDialog .nexo-bottom-preview {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 88px;
  overflow: hidden;
  border: 1px solid rgba(218,240,251,.3);
  border-radius: 12px;
  background-color: var(--nexo-bottom-color,#000);
  background-image: linear-gradient(90deg,rgba(8,14,20,.32),rgba(8,14,20,.51)),var(--nexo-bottom-image,none);
  background-size: 100% 100%,100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-shadow: 0 1px 5px #000;
  margin: 16px 0 17px;
}
#profileEditorDialog .nexo-bottom-preview-mini {
  display: flex;
  align-items: center;
  flex: 0 0 38%;
  gap: 8px;
  padding: 7px;
  min-width: 0;
  border-right: 1px solid rgba(243,248,255,.5);
  box-sizing: border-box;
}
#profileEditorDialog .nexo-bottom-preview-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #254f70;
  font-size: 15px;
  font-weight: 750;
}
#profileEditorDialog .nexo-bottom-preview-mini > span:last-child {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
#profileEditorDialog .nexo-bottom-preview-mini small {
  font-size: 8px;
  color: #e5f3ff;
}
#profileEditorDialog .nexo-bottom-preview-composer {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 8px;
  box-sizing: border-box;
  font-size: 10px;
}
#profileEditorDialog .nexo-bottom-preview-composer > span:nth-child(2) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #ffffff50;
  border-radius: 8px;
  padding: 9px;
  background: rgba(0,0,0,.38);
}
#profileEditorDialog .nexo-bottom-setting {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  color:#e7f4f1;
  font-size: 12px;
  cursor: pointer;
}
#profileEditorDialog .nexo-bottom-setting input {
  accent-color: #76e6a9;
  width: 18px;
  height: 18px;
  flex: none;
}

/* Stream stage correction: one watched broadcast occupies the WHOLE
   available central area, without the legacy 580px height ceiling.
   The compact voice strip remains below the video; right sidebar and
   synchronized 88px bottom controls remain untouched. */
#voiceStage .voice-stage-panel:has(.remote-media.has-video) {
  display: flex;
  flex: 1 1 0%;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  padding: 0 !important;
}
#voiceStage .remote-media.has-video {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  align-content: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 5px 3px !important;
  gap: 10px;
}
/* One watched stream: reserve room only for voice tiles if there are any. */
#voiceStage .remote-media.has-video[data-watched-count="1"]
  > .remote-tile.is-stream-equal,
#voiceStage .remote-media.has-video[data-watched-count="1"]
  > .remote-tile.is-stream-primary {
  order: -12;
  flex: 0 0 100%;
  width: 100%;
  height: calc(100% - 146px) !important;
  min-height: 170px;
  max-height: none !important;
}
/* With no voice participants, the video has no reason to leave black space. */
#voiceStage .remote-media.has-video[data-watched-count="1"]:not(:has(> .remote-tile.is-voice-participant:not(.has-video)))
  > .remote-tile.is-stream-equal,
#voiceStage .remote-media.has-video[data-watched-count="1"]:not(:has(> .remote-tile.is-voice-participant:not(.has-video)))
  > .remote-tile.is-stream-primary {
  height: 100% !important;
}
/* When a user highlights one of several streams, use the full stage above
   the secondary stream thumbnails instead of an artificially short player. */
#voiceStage .remote-media.has-video.is-stream-focused:not([data-watched-count="1"])
  > .remote-tile.is-stream-primary {
  height: calc(100% - 155px) !important;
  min-height: 180px;
  max-height: none !important;
}
#voiceStage .remote-media.has-video > .remote-tile:is(.is-stream-equal,.is-stream-primary) video {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #020406;
}
@media(max-height:610px) {
  #voiceStage .remote-media.has-video[data-watched-count="1"] > .remote-tile:is(.is-stream-equal,.is-stream-primary) {
    min-height: 130px;
  }
}

/* Critical: a voice ring's canvas must never become a normal flex child
   of a screen-share tile. Otherwise it steals 300-400px of player height,
   producing a tiny video band at the top of a large black card. */
#voiceStage .remote-media .remote-tile.has-video > .nexo-voice-ring,
#voiceStage .remote-media .remote-tile.is-screen-sharing > .nexo-voice-ring {
  display: none !important;
  position: absolute !important;
  pointer-events: none !important;
}
#voiceStage .remote-media.has-video > .remote-tile:is(.is-stream-equal,.is-stream-primary) video {
  flex: 1 1 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
}

/* Share a unique HTTPS link for the current voice or text room. */
#inviteFriendsDialog .room-link-share[hidden] { display: none !important; }
#inviteFriendsDialog .room-link-share {
  padding: 13px 12px 12px;
  margin: 12px 0 18px;
  border: 1px solid rgba(123,219,167,.42);
  border-radius: 12px;
  background: rgba(62,133,94,.10);
}
#inviteFriendsDialog .room-link-share label {
  display: block;
  margin: 0 0 7px;
  color: #d6f7e4;
  font-size: 12px;
  font-weight: 700;
}
#inviteFriendsDialog .room-link-share-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
#inviteFriendsDialog .room-link-share-row input {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  border-radius: 9px;
  color: #fff;
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(230,255,240,.32);
  padding: 10px;
  user-select: text;
}
#inviteFriendsDialog #roomShareCopy {
  flex: none;
  min-width: 107px;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(105,201,149,.25);
  border-color: rgba(133,220,167,.45);
  color: #eafff1;
}
#inviteFriendsDialog #roomShareCopy:disabled { opacity: .5; cursor: wait; }
#inviteFriendsDialog #roomShareFeedback {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: #d7e7d9;
}
.message-room-invite .message-room-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0;
  font-size: 11px;
  text-decoration: underline;
  color: #a1e9be;
  overflow-wrap: anywhere;
}
.message-room-invite .message-room-link:hover { color:#d4ffe4; }
@media(max-width:530px) {
  #inviteFriendsDialog .room-link-share-row { flex-direction: column; }
  #inviteFriendsDialog #roomShareCopy { min-height: 38px; }
}

/* 0.2.30: panoramic mini-central crop, without horizontal or vertical stretch.
   Exactly the same cover-sized image is aligned across both lower panels. */
#appShell.nexo-bottom-extended #miniCentral,
#appShell.nexo-bottom-extended .chat-column > .composer-wrap,
#appShell.nexo-bottom-extended .chat-column .voice-stage:not([hidden]) > .voice-stage-controls {
  background-size: 100% 100%,
    var(--nexo-bottom-photo-width,var(--nexo-bottom-span,1100px))
    var(--nexo-bottom-photo-height,var(--nexo-bottom-height,88px)) !important;
  background-position: 0 0,
    var(--nexo-bottom-x,0px) var(--nexo-bottom-photo-y,center) !important;
}
#appShell.nexo-bottom-extended #miniCentral {
  --nexo-bottom-x: var(--nexo-bottom-mini-x,0px);
}
#profileEditorDialog .nexo-bottom-preview {
  background-size: 100% 100%, cover;
  background-position: center, center;
}
.image-crop-dialog.is-bottom-bar-crop {
  width: min(1060px,calc(100vw - 28px));
}
.image-crop-dialog.is-bottom-bar-crop #imageCropCanvas {
  border: 1px solid rgba(160,226,191,.38);
  background: #08140f;
}

/* A single click on screen-share full screen expands the room automatically.
   Keep the stream above the entire application, without both sidebars. */
#appShell.nexo-video-fullscreen {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  grid-template-rows: minmax(0,1fr) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#appShell.nexo-video-fullscreen > .global-navigation,
#appShell.nexo-video-fullscreen > .server-rail,
#appShell.nexo-video-fullscreen > .channel-sidebar,
#appShell.nexo-video-fullscreen > .member-sidebar {
  display: none !important;
}
#appShell.nexo-video-fullscreen > .chat-column {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
}
#appShell.nexo-video-fullscreen .remote-tile.nexo-fullscreen-target.has-video {
  z-index: 2147483600 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
}

/* The app normally has a 14px liquid-glass frame. In fullscreen it must be
   completely removed, otherwise the stream starts at x=15/y=15 even after
   the sidebars are hidden. ID specificity also covers themed layouts. */
#appShell.nexo-video-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #020304 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#appShell.nexo-video-fullscreen,
#appShell.nexo-video-fullscreen .remote-tile.nexo-fullscreen-target.has-video {
  transition: none !important;
  animation: none !important;
}

/* 0.2.31 - Preserve ONE panoramic crop while toggling the member sidebar.
   The full-width image geometry is computed against the app shell, not the
   chat column. The right member panel is placed above the image, so hiding
   that panel reveals the previously covered portion of the SAME image. */
#appShell > .member-sidebar {
  position: relative;
  z-index: 3;
}
#appShell.nexo-custom-banner .member-sidebar,
#appShell.nexo-bottom-extended .member-sidebar {
  isolation: isolate;
}
