﻿/* ????????? ?????? ? ??????????? ????? OLONE ? premium voice UI */

.gc-topic-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gc-topic-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 118px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(120, 160, 255, 0.18);
  background: rgba(18, 27, 45, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

.gc-topic-type-card:hover {
  border-color: rgba(120, 160, 255, 0.38);
  box-shadow: 0 0 18px rgba(80, 130, 255, 0.14);
  transform: translateY(-1px);
}

.gc-topic-type-card.is-active {
  border-color: transparent;
  background:
    linear-gradient(rgba(18, 27, 45, 0.82), rgba(18, 27, 45, 0.82)) padding-box,
    linear-gradient(135deg, rgba(59, 130, 246, 0.65), rgba(139, 92, 246, 0.55)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 22px rgba(80, 130, 255, 0.22), inset 0 1px 0 rgba(160, 200, 255, 0.08);
}

.gc-topic-type-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(80, 130, 255, 0.12);
  color: rgba(140, 180, 255, 0.95);
}

.gc-topic-type-card__icon svg {
  width: 20px;
  height: 20px;
}

.gc-topic-type-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding-right: 22px;
}

.gc-topic-type-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.gc-topic-type-card__desc {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(180, 200, 230, 0.72);
}

.gc-topic-type-card__radio {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(120, 160, 255, 0.35);
  background: transparent;
}

.gc-topic-type-card.is-active .gc-topic-type-card__radio {
  border-color: rgba(100, 160, 255, 0.9);
  background: radial-gradient(circle at center, #5b9dff 38%, transparent 40%);
  box-shadow: 0 0 10px rgba(80, 140, 255, 0.45);
}

#gcTopicCreateModal .gc-topic-icon-name {
  display: flex;
}

#gcTopicCreateModal .gc-topic-emoji-btn--voice-fixed {
  pointer-events: none;
  cursor: default;
  opacity: 0.95;
}

/* Legacy voice topic row (pre?glass .topic-item). Skipped when .topic-item cards are used. */
.gc-topic-item--voice:not(.topic-item) {
  position: relative;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  box-sizing: border-box;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.gc-topic-item--voice:not(.topic-item) .gc-topic-item__icon {
  font-size: 0;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(80, 130, 255, 0.16);
  border: 1px solid rgba(120, 160, 255, 0.28);
  color: rgba(150, 190, 255, 0.95);
  flex-shrink: 0;
}

.gc-topic-item--voice:not(.topic-item) .gc-topic-item__icon::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14'/%3E%3C/svg%3E") center/contain no-repeat;
}

.gc-topic-item--voice:not(.topic-item).gc-topic-item--active {
  border-color: rgba(90, 140, 255, 0.6);
  background: rgba(75, 110, 255, 0.16);
  box-shadow:
    0 0 24px rgba(80, 120, 255, 0.35),
    0 0 0 1px rgba(90, 140, 255, 0.22),
    inset 0 1px 0 rgba(180, 210, 255, 0.12);
}

.gc-topic-item--voice:not(.topic-item):hover {
  border-color: rgba(100, 155, 255, 0.48);
  background: rgba(75, 110, 255, 0.12);
  box-shadow:
    0 0 18px rgba(80, 140, 255, 0.32),
    0 0 0 1px rgba(100, 150, 255, 0.2);
}

.gc-topic-item--voice:not(.topic-item).gc-topic-item--active:hover {
  border-color: rgba(100, 155, 255, 0.68);
  box-shadow:
    0 0 28px rgba(80, 130, 255, 0.42),
    0 0 0 1px rgba(100, 155, 255, 0.28),
    inset 0 1px 0 rgba(180, 210, 255, 0.14);
}

.gc-topic-item__voice-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  margin-left: auto;
  flex-shrink: 0;
  padding-right: 2px;
}

.gc-topic-item__voice-wave i {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: #6ea8ff;
  animation: gc-topic-voice-bars 0.9s ease-in-out infinite;
}

.gc-topic-item--voice.gc-topic-item--active .gc-topic-item__voice-wave i {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.45);
}

.gc-topic-item__voice-wave i:nth-child(1) { height: 5px; }
.gc-topic-item__voice-wave i:nth-child(2) { height: 11px; animation-delay: 0.12s; }
.gc-topic-item__voice-wave i:nth-child(3) { height: 7px; animation-delay: 0.24s; }
.gc-topic-item__voice-wave i:nth-child(4) { height: 14px; animation-delay: 0.08s; }

.gc-topic-item--voice:not(.gc-topic-item--active) .gc-topic-item__voice-wave {
  opacity: 0.35;
}

.gc-topic-item--voice:not(.gc-topic-item--active) .gc-topic-item__voice-wave i {
  animation: none;
}

@keyframes gc-topic-voice-bars {
  0%, 100% { transform: scaleY(0.45); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Live audio bars in topics list ? state-driven (off / speaking / muted) */
.voice-level-bars,
.gc-topic-item__voice-wave.voice-level-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 22px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 0;
  opacity: 1;
}

.voice-level-bars i {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: #536b9d;
  transform-origin: center bottom;
  animation: none !important;
  opacity: 1;
  box-shadow: none;
}

.voice-level-bars i:nth-child(1) { height: 6px; }
.voice-level-bars i:nth-child(2) { height: 12px; }
.voice-level-bars i:nth-child(3) { height: 18px; }

.voice-level-bars--off i {
  background: #536b9d;
  animation: none !important;
  opacity: 1;
}

.voice-level-bars--muted i {
  background: #536b9d;
  animation: none !important;
  opacity: 0.4;
}

.voice-level-bars--speaking i {
  background: #38d996;
  opacity: 1;
  animation: voicePulse 0.9s ease-in-out infinite !important;
}

.voice-level-bars--speaking i:nth-child(2) { animation-delay: 0.12s !important; }
.voice-level-bars--speaking i:nth-child(3) { animation-delay: 0.24s !important; }

@keyframes voicePulse {
  0%, 100% { transform: scaleY(0.45); opacity: 0.65; }
  50% { transform: scaleY(1); opacity: 1; }
}

.gc-topic-item__trailing {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.gc-topic-item__preview--voice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.gc-topic-item__members-ico {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.85;
}

.gc-topic-item__members-ico svg {
  display: block;
  width: 14px;
  height: 14px;
}

.gc-topic-item--text .gc-topic-item__icon {
  font-size: 0;
}

.gc-topic-item--text .gc-topic-item__icon::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Topics list scroll: chrome fixed; body scrolls as a unit (list + create).
   Glass layout (.col-dialogs--gc-topics) owns flex sizing ? do not flex:1 the list. */
.gc-topics-rail {
  min-height: 0;
}

.gc-topics-rail-body {
  min-height: 0;
}

.gc-topics-list {
  min-height: 0;
}

.col-dialogs--gc-topics .dialogs-scroll-strip {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.col-dialogs--gc-topics #groupChatsRailWrap.group-chats-rail-wrap--topics {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* ??? Voice channel shell ??? */
.chat-messages-stack--voice-active #messages,
.chat-messages-stack--voice-active #chatScrollBottomBtn,
.chat-messages-stack--voice-active #pinnedMessagesBar {
  display: none !important;
}

/* Fixed-height voice window: full width + full height of right chat column.
   Header top / scrollable members / dock pinned to bottom.
   Use flex (not grid): hidden header/composer must not leave an empty 1fr track. */
body.gc-voice-mode .chat-main.chat-main--voice-active,
.chat-main.chat-main--voice-active.is-voice-topic,
.chat-main.chat-main--voice-active {
  display: flex !important;
  flex-direction: column !important;
  align-content: stretch !important;
  align-self: stretch !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] .chat-main.chat-main--voice-active,
[data-theme="light"] .chat-main.chat-main--voice-active {
  background: transparent !important;
}

body.gc-voice-mode .chat-main.chat-main--voice-active #chatMessagesStack,
.chat-main.chat-main--voice-active #chatMessagesStack,
.chat-messages-stack--voice-active {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

body.gc-voice-mode .chat-main.chat-main--voice-active #gcVoiceChannelView,
.chat-main.chat-main--voice-active #gcVoiceChannelView,
.chat-messages-stack--voice-active .gc-voice-channel {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  align-self: stretch !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

.chat-main--voice-active .gc-voice-channel__header {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.chat-main--voice-active .gc-voice-channel__workspace {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  justify-content: flex-start !important;
}

.chat-main--voice-active .gc-voice-channel__glass,
.chat-main--voice-active .gc-voice-channel__controls {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.chat-main--voice-active .gc-voice-channel__controls {
  flex: 0 0 88px !important;
  height: 88px !important;
  min-height: 88px !important;
  max-height: 88px !important;
  margin-top: 10px !important;
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.chat-main--voice-active .composer,
.chat-main--voice-active .composer-row,
.chat-main--voice-active #messages,
.chat-main--voice-active .empty-chat,
.chat-messages-stack--voice-active #messages,
.chat-messages-stack--voice-active .empty-chat {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

/* Global chat header replaced by premium voice header */
.chat-main--voice-active > #chatHeader,
.chat-main--voice-active > .olone-chat-header {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ??? Workspace + glass sections ??? */
.gc-voice-channel {
  display: none;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  max-height: none;
  position: relative;
  overflow: hidden;
  gap: 16px;
  padding: 20px 24px 20px;
  box-sizing: border-box;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(55, 90, 170, 0.16), transparent 55%),
    linear-gradient(180deg, #080f1d 0%, #070b14 100%);
}

.gc-voice-channel__workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
}

.gc-voice-channel__glass {
  flex: 0 0 auto;
  min-height: 0;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(110, 150, 255, 0.18);
  background: rgba(20, 30, 55, 0.75);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(170, 200, 255, 0.08),
    inset 0 0 40px rgba(60, 100, 200, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gc-voice-channel__glass--members {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.gc-voice-channel__glass--members .gc-voice-channel__members {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  overflow-y: visible;
}

.gc-voice-channel__glass--listeners {
  flex: 0 0 auto;
}

.gc-voice-channel__section-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(175, 195, 230, 0.78);
}

.gc-voice-channel__section-title--afk {
  color: rgba(160, 185, 225, 0.7);
}

.gc-voice-channel__members {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gc-voice-member {
  display: flex;
  align-items: center;
  gap: 14px;
  height: auto;
  min-height: 82px;
  max-height: none;
  box-sizing: border-box;
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: 18px;
  border: 1px solid rgba(110, 150, 230, 0.14);
  background: rgba(14, 22, 38, 0.88);
  box-shadow: inset 0 1px 0 rgba(150, 180, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.gc-voice-member:last-child {
  margin-bottom: 0;
}

.gc-voice-member:hover {
  border-color: rgba(120, 165, 255, 0.28);
  background: rgba(18, 28, 48, 0.95);
}

.gc-voice-member--listener {
  opacity: 0.92;
}

.gc-voice-member--speaking {
  border-color: rgba(50, 255, 150, 0.55);
  box-shadow:
    0 0 0 1px rgba(50, 255, 150, 0.2),
    0 0 24px rgba(50, 255, 150, 0.35),
    inset 0 0 22px rgba(50, 255, 150, 0.06);
}

.gc-voice-member__avatar {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(80, 130, 255, 0.14);
  border: 1px solid rgba(120, 160, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dbe7ff;
}

.gc-voice-member__avatar img,
.gc-voice-member__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gc-voice-member__avatar-img--placeholder {
  object-fit: cover;
  opacity: 0.92;
}

.gc-voice-member--speaking .gc-voice-member__avatar {
  box-shadow: 0 0 0 2px rgba(50, 255, 150, 0.75), 0 0 16px rgba(50, 255, 150, 0.35);
}

.gc-voice-member--speaking .gc-voice-member__avatar::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(50, 255, 150, 0.4);
  animation: gc-voice-ring 1.5s ease-out infinite;
  pointer-events: none;
}

@keyframes gc-voice-ring {
  0% { transform: scale(0.92); opacity: 0.85; }
  100% { transform: scale(1.2); opacity: 0; }
}

.gc-voice-member__info {
  flex: 1 1 auto;
  min-width: 0;
}

.gc-voice-member__name-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
}

.gc-voice-member__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f2f6ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-voice-member__crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 22px;
  padding: 6px 10px;
  box-sizing: border-box;
  border-radius: 999px;
  font-size: 0;
  line-height: 1;
  flex-shrink: 0;
  color: #ffe9a8;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.32), rgba(180, 120, 40, 0.24));
  border: 1px solid rgba(250, 204, 21, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 180, 0.22),
    0 0 10px rgba(250, 204, 21, 0.12);
  filter: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gc-voice-member__crown::after {
  content: "рџ‘‘ Р’Р»Р°РґРµР»РµС†";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}

.gc-voice-member__role-badge,
.gc-voice-member__mod-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 6px 10px;
  box-sizing: border-box;
  border-radius: 999px;
  font-size: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ece4ff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.48), rgba(99, 70, 210, 0.36));
  border: 1px solid rgba(180, 150, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(220, 200, 255, 0.14),
    0 0 10px rgba(120, 90, 220, 0.12);
  white-space: nowrap;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gc-voice-member__role-badge--admin::after {
  content: "рџ›Ў РђРґРјРёРЅРёСЃС‚СЂР°С‚РѕСЂ";
  font-size: 12px;
  line-height: 1;
}

.gc-voice-member__role-badge--mod::after,
.gc-voice-member__mod-badge::after {
  content: "рџ”§ РњРѕРґРµСЂР°С‚РѕСЂ";
  font-size: 12px;
  line-height: 1;
}

.gc-voice-member__role-badge--admin {
  color: #e8f0ff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.48), rgba(37, 99, 235, 0.34));
  border-color: rgba(120, 170, 255, 0.4);
}

.gc-voice-member__role {
  display: none;
}

.gc-voice-member__status {
  margin-top: 3px;
  font-size: 13px;
  color: rgba(170, 190, 225, 0.72);
}

.gc-voice-member--speaking .gc-voice-member__status {
  color: #32ff96;
  font-weight: 600;
}

.gc-voice-member--muted .gc-voice-member__status,
.gc-voice-member--deafened .gc-voice-member__status {
  color: rgba(248, 180, 190, 0.82);
}

.gc-voice-channel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  min-height: 56px;
  padding: 0;
  border-bottom: none;
  background: transparent;
}

.gc-voice-channel__header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.gc-voice-channel__topic-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f8ff;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.34), transparent 42%),
    linear-gradient(155deg, #5b8cff 0%, #7460ff 40%, #a855f7 100%);
  border: 1px solid rgba(220, 230, 255, 0.42);
  box-shadow:
    0 0 0 1px rgba(120, 150, 255, 0.2),
    0 14px 34px rgba(90, 110, 255, 0.48),
    0 0 42px rgba(150, 90, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -12px 22px rgba(40, 20, 90, 0.28),
    inset 0 0 18px rgba(180, 200, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gc-voice-channel__topic-avatar svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 8px rgba(20, 30, 80, 0.4));
}

.gc-voice-channel__title {
  margin: 0;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #f4f7ff;
}

.gc-voice-channel__slug {
  margin: 3px 0 0;
  font-size: 13px;
  color: rgba(170, 190, 230, 0.72);
}

.gc-voice-channel__header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.gc-voice-channel__status-card,
.gc-voice-channel__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 14px 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(110, 150, 230, 0.2);
  background: rgba(16, 24, 42, 0.72);
  box-shadow: inset 0 1px 0 rgba(160, 190, 255, 0.06);
  color: #dce7ff;
}

.gc-voice-channel__status-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.gc-voice-channel__status-label {
  font-size: 13px;
  font-weight: 650;
  color: #e8f0ff;
}

.gc-voice-channel__member-count {
  font-size: 12px;
  color: rgba(170, 195, 235, 0.78);
}

.gc-voice-channel__status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
  flex-shrink: 0;
}

.gc-voice-channel__status-card--off,
.gc-voice-channel__status-pill--off {
  color: rgba(180, 200, 230, 0.75);
}

.gc-voice-channel__status-card--off .gc-voice-channel__status-dot,
.gc-voice-channel__status-pill--off .gc-voice-channel__status-dot {
  background: #64748b;
  box-shadow: none;
}

.gc-voice-channel__status-card--connecting .gc-voice-channel__status-dot,
.gc-voice-channel__status-pill--connecting .gc-voice-channel__status-dot {
  background: #eab308;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.55);
}

.gc-voice-channel__status-card--error,
.gc-voice-channel__status-pill--error {
  border-color: rgba(239, 68, 68, 0.4);
}

.gc-voice-channel__status-card--error .gc-voice-channel__status-dot,
.gc-voice-channel__status-pill--error .gc-voice-channel__status-dot {
  background: #ef4444;
}

.gc-voice-channel__duration {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gc-voice-channel__header-actions {
  display: flex;
  gap: 8px;
}

.gc-voice-channel__action-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(110, 150, 230, 0.2);
  background: rgba(16, 24, 42, 0.72);
  color: rgba(180, 205, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.gc-voice-channel__action-btn:hover,
.gc-voice-channel__action-btn[aria-expanded="true"] {
  border-color: rgba(130, 170, 255, 0.4);
  background: rgba(28, 40, 68, 0.85);
  box-shadow: 0 0 16px rgba(80, 130, 255, 0.14);
}

.gc-voice-channel__action-btn svg {
  width: 18px;
  height: 18px;
}

.gc-voice-channel__action-count {
  position: absolute;
  right: 5px;
  bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(190, 210, 255, 0.95);
}

.gc-voice-events-anchor {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.gc-voice-events-popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: min(320px, calc(100vw - 32px));
  max-height: min(360px, 50vh);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 12px 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(132, 170, 224, 0.24);
  background: rgba(14, 22, 38, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gc-voice-events-popover.hidden,
.gc-voice-events-popover[hidden] {
  display: none !important;
}

.gc-voice-events-popover__head {
  flex: 0 0 auto;
  margin: 0 0 8px;
}

.gc-voice-events-popover__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(220, 230, 255, 0.95);
}

.gc-voice-events-popover__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(280px, calc(50vh - 56px));
  min-height: 0;
  flex: 1 1 auto;
}

.gc-voice-events-popover__list.hidden {
  display: none !important;
}

.gc-voice-events-popover__list li {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(170, 190, 225, 0.78);
  padding: 7px 4px;
  border-bottom: 1px solid rgba(120, 160, 255, 0.08);
}

.gc-voice-events-popover__list li:last-child {
  border-bottom: none;
}

.gc-voice-events-popover__empty {
  margin: 10px 4px 6px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(150, 170, 210, 0.62);
  text-align: center;
}

.gc-voice-events-popover__empty.hidden {
  display: none !important;
}

.gc-voice-member__level {
  display: none !important;
}

.gc-voice-member__level-bar {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.5px;
  color: #86efac;
}

.gc-voice-member__quality {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(200, 214, 255, 0.78);
  white-space: nowrap;
}

.gc-voice-member__quality--excellent { color: #4ade80; }
.gc-voice-member__quality--medium { color: #fbbf24; }
.gc-voice-member__quality--poor { color: #f87171; }

.gc-voice-member__icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  align-self: center;
}

.gc-voice-member__state-icon {
  width: 20px;
  height: 20px;
  color: rgba(190, 220, 255, 0.92);
  flex-shrink: 0;
}

.gc-voice-member__state-icon--off {
  color: rgba(255, 110, 130, 0.95);
}

.gc-voice-member__wave {
  display: flex;
  align-items: flex-end;
  gap: 3.5px;
  height: 32px;
  margin-right: 8px;
}

.gc-voice-member__wave::before,
.gc-voice-member__wave::after {
  content: "";
  display: block;
  width: 3.5px;
  border-radius: 2px;
  background: #3dff9a;
  box-shadow: 0 0 12px rgba(50, 255, 150, 0.35);
  transform-origin: bottom center;
  animation: gc-voice-wave 1.05s ease-in-out infinite;
}

.gc-voice-member__wave::before {
  height: 11px;
  animation-delay: 0.04s;
}

.gc-voice-member__wave::after {
  height: 19px;
  animation-delay: 0.26s;
}

.gc-voice-member__wave span {
  display: block;
  width: 3.5px;
  border-radius: 2px;
  background: #3dff9a;
  box-shadow: 0 0 12px rgba(50, 255, 150, 0.35);
  transform-origin: bottom center;
  animation: gc-voice-wave 1.05s ease-in-out infinite;
}

.gc-voice-member__wave span:nth-child(1) { height: 8px; }
.gc-voice-member__wave span:nth-child(2) { height: 18px; animation-delay: 0.12s; }
.gc-voice-member__wave span:nth-child(3) { height: 12px; animation-delay: 0.22s; }
.gc-voice-member__wave span:nth-child(4) { height: 24px; animation-delay: 0.08s; }
.gc-voice-member__wave span:nth-child(5) { height: 14px; animation-delay: 0.18s; }

@keyframes gc-voice-wave {
  0%, 100% { transform: scaleY(0.32); opacity: 0.45; }
  35% { transform: scaleY(0.82); opacity: 0.85; }
  50% { transform: scaleY(1); opacity: 1; }
  70% { transform: scaleY(0.55); opacity: 0.65; }
}

.gc-voice-member__more {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(160, 185, 230, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gc-voice-member__more:hover {
  color: #e2eaff;
  background: rgba(80, 120, 200, 0.14);
}

.gc-voice-member__more svg {
  width: 16px;
  height: 16px;
}

/* Legacy center events panel removed from workspace вЂ” kept inert if leftover */
.gc-voice-channel__workspace > .gc-voice-events,
.gc-voice-events#gcVoiceEventsPanel {
  display: none !important;
}

/* ??? Events (secondary / collapsed) ??? */
.gc-voice-events {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  opacity: 0.58;
  min-height: 0;
}

.gc-voice-events > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.gc-voice-events > summary::-webkit-details-marker {
  display: none;
}

.gc-voice-events__summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(150, 170, 210, 0.72);
  line-height: 1.15;
  min-height: 0;
}

.gc-voice-events__summary::before {
  content: none;
  display: none;
}

.gc-voice-events[open] .gc-voice-events__summary::before {
  content: none;
}

.gc-voice-events__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 6px 8px;
  max-height: 48px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(110, 150, 255, 0.1);
  background: rgba(10, 16, 28, 0.4);
}

.gc-voice-events:not([open]) .gc-voice-events__list {
  display: none;
}

.gc-voice-events__list li {
  font-size: 12px;
  color: rgba(170, 190, 225, 0.7);
  padding: 2px 0;
}

/* ??? Bottom dock (flex sibling, NOT overlay) ??? */
.gc-voice-channel__controls {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  margin-top: 0;
  flex: 0 0 88px;
  height: 88px;
  min-height: 88px;
  max-height: 88px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 24px;
  border: 1px solid rgba(120, 160, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(20, 30, 52, 0.92), rgba(12, 18, 34, 0.94));
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(170, 200, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.gc-voice-controls__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.gc-voice-controls__device-heading {
  font-size: 11px;
  font-weight: 650;
  color: rgba(170, 190, 230, 0.75);
  margin-bottom: 4px;
}

.gc-voice-controls__device-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gc-voice-controls__device-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 140px;
  flex: 1 1 auto;
  max-width: 280px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(110, 150, 230, 0.2);
  background: rgba(12, 20, 36, 0.72);
  box-sizing: border-box;
  overflow: hidden;
}

.gc-voice-controls__device {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gc-voice-controls__device--primary {
  flex: 1 1 auto;
  min-width: 0;
}

.gc-voice-controls__device--secondary {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gc-voice-controls__device-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(170, 190, 230, 0.7);
  text-transform: none;
  line-height: 1.2;
}

.gc-voice-controls__device-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 28px;
  padding: 0 22px 0 0;
  border: none;
  border-radius: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%9ab0d8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    right 0 center / 12px no-repeat;
  color: rgba(220, 230, 255, 0.92);
  font-size: 13px;
  font-weight: 550;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.gc-voice-controls__device-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gc-voice-controls__test-sound {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gc-voice-controls__device-settings,
.gc-voice-controls__round-btn--settings {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(110, 150, 255, 0.28);
  background: rgba(12, 20, 36, 0.82);
  color: rgba(190, 215, 255, 0.95);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.gc-voice-controls__device-settings:hover,
.gc-voice-controls__round-btn--settings:hover {
  border-color: rgba(130, 170, 255, 0.45);
  background: rgba(18, 28, 48, 0.92);
  transform: scale(1.05);
}

.gc-voice-controls__device-settings svg,
.gc-voice-controls__round-btn--settings svg {
  width: 20px;
  height: 20px;
}

.gc-voice-controls__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
}

.gc-voice-controls__center--solo {
  width: auto;
  margin: 0 auto;
}

.gc-voice-controls__round-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(120, 170, 255, 0.35);
  background: linear-gradient(160deg, #3d7dff 0%, #2f5fd4 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(70, 130, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.gc-voice-controls__round-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(80, 140, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.gc-voice-controls__round-btn:active {
  box-shadow: 0 0 18px rgba(70, 130, 255, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.12);
}

.gc-voice-controls__round-btn svg {
  width: 22px;
  height: 22px;
}

.gc-voice-controls__round-btn--settings,
.gc-voice-controls__round-btn--webcam.is-off,
.gc-voice-controls__round-btn--screen.is-off {
  background: rgba(12, 20, 36, 0.82);
  border-color: rgba(110, 150, 255, 0.28);
  color: rgba(190, 215, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(170, 200, 255, 0.08);
}

.gc-voice-controls__round-btn--webcam.is-on {
  background: linear-gradient(160deg, #3d7dff 0%, #2f5fd4 100%);
  border-color: rgba(120, 170, 255, 0.5);
  color: #fff;
  box-shadow: 0 0 22px rgba(70, 130, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gc-voice-controls__round-btn--screen.is-on {
  background: linear-gradient(160deg, #22c55e 0%, #16a34a 55%, #2f5fd4 100%);
  border-color: rgba(80, 200, 140, 0.55);
  color: #fff;
  box-shadow: 0 0 22px rgba(50, 200, 130, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gc-voice-controls__round-btn--webcam.is-off {
  color: rgba(255, 140, 150, 0.95);
}

.gc-voice-controls__round-btn--mic.is-off,
.gc-voice-controls__round-btn--headphones.is-off,
.gc-voice-controls__round-btn--deafened {
  background: linear-gradient(160deg, #4b5568 0%, #374151 100%);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.25);
  color: rgba(255, 140, 150, 0.95);
}

.gc-voice-controls__disconnect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 136px;
  min-width: 136px;
  height: 50px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 120, 130, 0.35);
  background: linear-gradient(160deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.35);
  box-sizing: border-box;
}

.gc-voice-controls__disconnect svg {
  width: 18px;
  height: 18px;
}

.gc-voice-controls__disconnect:hover {
  filter: brightness(1.05);
}

.gc-voice-controls__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.gc-voice-controls__mic-mode {
  border: 1px solid rgba(110, 150, 230, 0.2);
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(12, 20, 36, 0.72);
  width: 100%;
  max-width: 240px;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.gc-voice-controls__activity-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(190, 210, 245, 0.88);
  padding: 0;
}

.gc-voice-controls__activity-wave {
  width: 14px;
  height: 12px;
  flex-shrink: 0;
  background:
    linear-gradient(#6ea8ff, #6ea8ff) 0 8px / 2px 4px no-repeat,
    linear-gradient(#6ea8ff, #6ea8ff) 4px 4px / 2px 8px no-repeat,
    linear-gradient(#6ea8ff, #6ea8ff) 8px 6px / 2px 6px no-repeat,
    linear-gradient(#6ea8ff, #6ea8ff) 12px 2px / 2px 10px no-repeat;
}

.gc-voice-controls__activity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gc-voice-controls__activity-value {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}

.gc-voice-controls__radio {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(200, 214, 255, 0.88);
  cursor: pointer;
  line-height: 1.25;
}

.gc-voice-controls__radio:has(input:checked) {
  display: flex;
}

.gc-voice-controls__radio input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.gc-voice-controls__activity-chevron {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%9ab0d8' stroke-width='2.4'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.85;
}

/* Expand activity options on hover/focus so PTT remains reachable without overlay */
.gc-voice-controls__mic-mode:hover .gc-voice-controls__radio,
.gc-voice-controls__mic-mode:focus-within .gc-voice-controls__radio {
  display: flex;
}

.gc-voice-controls__mic-mode:hover .gc-voice-controls__activity-value,
.gc-voice-controls__mic-mode:focus-within .gc-voice-controls__activity-value {
  gap: 4px;
}

.gc-voice-ptt-hint {
  position: absolute;
  left: 50%;
  bottom: 128px;
  transform: translateX(-50%);
  z-index: 4;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(120, 160, 255, 0.28);
  color: #e2e8f0;
  font-size: 13px;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.gc-voice-ptt-hint.is-held {
  border-color: rgba(74, 222, 128, 0.55);
  color: #bbf7d0;
}

/* Member menu */
.gc-voice-member-menu {
  position: fixed;
  z-index: 80;
  min-width: 220px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(120, 160, 255, 0.22);
  background: rgba(14, 22, 38, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.gc-voice-member-menu.hidden {
  display: none;
}

.gc-voice-member-menu__item {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(220, 230, 255, 0.92);
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}

.gc-voice-member-menu__item:hover {
  background: rgba(80, 120, 200, 0.16);
}

.gc-voice-member-menu__item--danger {
  color: #fca5a5;
}

.gc-voice-member-menu__item--danger:hover {
  background: rgba(239, 68, 68, 0.14);
}

.gc-voice-member-menu__sep {
  height: 1px;
  margin: 4px 6px;
  background: rgba(120, 160, 255, 0.14);
}

.gc-voice-member-menu__volume {
  padding: 8px 12px 10px;
}

.gc-voice-member-menu__volume-label {
  display: block;
  font-size: 12px;
  color: rgba(200, 214, 255, 0.75);
  margin-bottom: 6px;
}

.gc-voice-member-menu__volume-slider {
  width: 100%;
  accent-color: #60a5fa;
}

@media (max-width: 980px) {
  .gc-voice-channel {
    padding: 16px;
    gap: 14px;
  }
  .gc-voice-channel__controls {
    height: 88px;
    min-height: 88px;
    max-height: 88px;
    flex: 0 0 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
  }
  .gc-voice-controls__left,
  .gc-voice-controls__right {
    display: none;
  }
  .gc-voice-controls__center {
    order: 0;
    width: auto;
  }
}

@media (max-width: 720px) {
  .gc-topic-type-grid { grid-template-columns: 1fr; }
  .gc-voice-member { height: auto; min-height: 74px; max-height: none; padding: 12px 14px; }
  .gc-voice-member__avatar { width: 46px; height: 46px; }
  .gc-voice-member__name { font-size: 16px; }
  .gc-voice-controls__round-btn { width: 48px; height: 48px; }
  .gc-voice-controls__disconnect { width: 148px; min-width: 148px; height: 48px; }
}

/* ??? Final pixel polish vs approved generation (v7) ??? */

/* Left profile: premium avatar placeholder with cyan glow ring */
.col-user .col-user-profile-v37 .profile-modal__avatar-ring {
  width: 120px !important;
  height: 120px !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.col-user .col-user-profile-v37 .profile-modal__avatar-wrap {
  margin-bottom: 4px;
  position: relative;
  filter: none;
}
.col-user .col-user-profile-v37 .profile-modal__avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(0, 233, 255, 0.28) 0%, rgba(0, 180, 255, 0.1) 42%, transparent 68%);
  filter: blur(2px);
}
.col-user .col-user-profile-v37 .profile-modal__avatar-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 34% 28%, rgba(120, 210, 255, 0.45), transparent 46%),
    radial-gradient(circle at 70% 75%, rgba(80, 120, 255, 0.28), transparent 50%),
    linear-gradient(165deg, #2a4068 0%, #1a2b4a 38%, #0f1a30 72%, #0a1222 100%);
  box-shadow:
    0 0 0 2.5px rgba(0, 236, 255, 0.7),
    0 0 0 7px rgba(0, 200, 255, 0.12),
    0 0 32px rgba(0, 230, 255, 0.42),
    0 0 48px rgba(60, 140, 255, 0.22),
    inset 0 1px 0 rgba(200, 235, 255, 0.28),
    inset 0 -14px 28px rgba(10, 20, 40, 0.45);
}
.col-user .col-user-profile-v37 .profile-modal__avatar-inner .profile-nitro-avatar-fallback,
.col-user .col-user-profile-v37 .profile-modal__avatar-inner .profile-v37-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 40% 32%, rgba(140, 200, 255, 0.22), transparent 58%);
  color: rgba(210, 230, 255, 0.95);
  font-size: 44px;
  font-weight: 750;
  text-shadow: 0 4px 16px rgba(40, 100, 200, 0.35);
}
.col-user .col-user-profile-v37 .profile-modal__avatar-inner img.olone-user-avatar-fallback-active {
  width: 56% !important;
  height: 56% !important;
  max-width: 56% !important;
  max-height: 56% !important;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 4px 12px rgba(60, 140, 255, 0.35));
}

/* Targeted profile-rail soft SVG glyph + graphite surface (dialogs untouched). */
.col-user .col-user-profile-v37 .profile-modal__avatar-inner img.profile-rail-avatar--placeholder {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 22% !important;
  box-sizing: border-box !important;
  border-radius: 50% !important;
  border: none !important;
  background:
    radial-gradient(circle at 42% 32%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(145deg, #1b2431, #111926) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  opacity: 1 !important;
  filter: none !important;
  display: block !important;
}
.col-user .col-user-profile-v37 .profile-modal__nickname {
  font-size: 18px;
  margin-bottom: 0;
  line-height: 1.2;
}
.col-user .col-user-profile-v37 .profile-modal__premium {
  margin-top: 2px;
  margin-bottom: 8px;
}
.col-user .col-user-profile-v37 > img.rail-avatar-img,
.col-user .col-user-profile-v37 > .rail-avatar--img-wrap > img.rail-avatar-img {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;
  box-shadow:
    0 0 0 2.5px rgba(0, 236, 255, 0.7),
    0 0 32px rgba(0, 230, 255, 0.4);
}

.gc-voice-channel {
  gap: 10px;
  padding: 14px 18px 10px;
  height: 100%;
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: flex-start;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(55, 90, 170, 0.16), transparent 55%),
    linear-gradient(180deg, #080f1d 0%, #070b14 100%);
}

.gc-voice-channel__header {
  min-height: 56px;
  gap: 18px;
  margin-bottom: 0;
  flex: 0 0 auto;
  align-items: center;
}

.gc-voice-channel__header-left {
  gap: 20px;
  align-items: center;
}

.gc-voice-channel__header-titles {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gc-voice-channel__topic-avatar {
  width: 56px;
  height: 56px;
  box-shadow:
    0 0 0 1px rgba(120, 150, 255, 0.22),
    0 14px 34px rgba(90, 110, 255, 0.48),
    0 0 42px rgba(150, 90, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -12px 22px rgba(40, 20, 90, 0.28),
    inset 0 0 18px rgba(180, 200, 255, 0.14);
}

.gc-voice-channel__title {
  font-size: 20px;
  font-weight: 750;
  line-height: 1.15;
}

.gc-voice-channel__slug {
  margin-top: 0;
  font-size: 13px;
  color: rgba(165, 185, 225, 0.7);
  line-height: 1.2;
}

.gc-voice-channel__header-right {
  gap: 10px;
}

.gc-voice-channel__status-card,
.gc-voice-channel__status-pill {
  min-height: 56px;
  height: 56px;
  padding: 0 14px 0 12px;
  border-radius: 16px;
  border-color: rgba(110, 150, 255, 0.2);
  background: rgba(14, 22, 40, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 10px;
}

.gc-voice-channel__status-text {
  gap: 0;
  line-height: 1.12;
}

.gc-voice-channel__status-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.gc-voice-channel__member-count {
  font-size: 11px;
  line-height: 1.15;
}

.gc-voice-channel__action-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.gc-voice-channel__workspace {
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: flex-start;
  margin-bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.gc-voice-channel__glass {
  padding: 14px 16px 12px;
  border-radius: 20px;
  border: 1px solid rgba(110, 150, 255, 0.18);
  background: rgba(20, 30, 55, 0.75);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(170, 200, 255, 0.1),
    inset 0 0 40px rgba(70, 110, 210, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gc-voice-channel__glass--members {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  height: auto;
  justify-content: flex-start;
  overflow: visible;
}

.gc-voice-channel__glass--members .gc-voice-channel__members {
  flex: 0 0 auto;
  height: auto;
  max-height: none;
  overflow: visible;
}

.gc-voice-channel__glass--listeners {
  flex: 0 0 auto;
  min-height: 0;
}

.gc-voice-channel__section-title {
  margin: 0 0 10px;
  color: rgba(168, 188, 222, 0.76);
}

.gc-voice-member {
  height: 82px;
  min-height: 82px;
  max-height: 82px;
  padding: 10px 18px;
  margin-bottom: 8px;
  border-radius: 18px;
  gap: 14px;
  flex: 0 0 82px;
  border-color: rgba(110, 150, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 28, 48, 0.95), rgba(12, 20, 36, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(150, 180, 255, 0.08),
    0 6px 18px rgba(0, 0, 0, 0.18);
}

.gc-voice-member:last-child {
  margin-bottom: 0;
}

.gc-voice-member__avatar {
  width: 48px;
  height: 48px;
}

.gc-voice-member__name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
}

.gc-voice-member__name-row {
  gap: 3px;
  flex-direction: column;
  align-items: flex-start;
}

.gc-voice-member__status {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(168, 186, 220, 0.72);
  line-height: 1.2;
}

.gc-voice-member--speaking {
  border-color: rgba(50, 255, 150, 0.55);
  box-shadow:
    0 0 0 1px rgba(50, 255, 150, 0.2),
    0 0 24px rgba(50, 255, 150, 0.35),
    inset 0 0 22px rgba(50, 255, 150, 0.06);
}

.gc-voice-member--speaking .gc-voice-member__status {
  color: #3dff9a;
  font-weight: 650;
}

.gc-voice-member--afk .gc-voice-member__status,
.gc-voice-member--listener .gc-voice-member__status {
  color: rgba(250, 204, 21, 0.88);
}

.gc-voice-member--muted .gc-voice-member__status {
  color: rgba(255, 120, 140, 0.9);
}

.gc-voice-member__icons {
  gap: 12px;
  flex-shrink: 0;
}

.gc-voice-member__wave {
  margin-right: 8px;
  height: 32px;
  gap: 3.5px;
}

.gc-voice-member__wave span {
  width: 3.5px;
  background: #3dff9a;
  box-shadow: 0 0 12px rgba(50, 255, 150, 0.35);
}

.gc-voice-member__state-icon--off {
  color: rgba(255, 110, 130, 0.95);
  filter: none;
}

.gc-topic-item--voice:not(.topic-item) {
  height: 72px;
  min-height: 72px;
  max-height: 72px;
}

.gc-topic-item--voice:not(.topic-item).gc-topic-item--active {
  border-color: rgba(90, 140, 255, 0.6);
  background: rgba(75, 110, 255, 0.16);
  box-shadow:
    0 0 24px rgba(80, 120, 255, 0.35),
    0 0 0 1px rgba(90, 140, 255, 0.22),
    inset 0 1px 0 rgba(180, 210, 255, 0.12);
}

.gc-voice-channel__controls {
  flex: 0 0 88px;
  min-height: 88px;
  max-height: 88px;
  height: 88px;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 14px 18px;
  border-radius: 22px;
  gap: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(110, 150, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(20, 30, 55, 0.92), rgba(12, 18, 34, 0.96));
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(170, 200, 255, 0.1);
}

.gc-voice-controls__left,
.gc-voice-controls__right {
  display: none;
}

.gc-voice-controls__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 0 0 auto;
}

.gc-voice-controls__center--solo {
  width: auto;
  margin: 0 auto;
}

.gc-voice-controls__device-card {
  min-width: 0;
  max-width: 240px;
  width: 100%;
  min-height: 80px;
  height: 80px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(110, 150, 255, 0.2);
  background: rgba(12, 20, 36, 0.82);
  justify-content: center;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(160, 190, 255, 0.08);
}

.gc-voice-controls__device-heading {
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 4px;
  color: rgba(190, 210, 245, 0.88);
}

.gc-voice-controls__device-label {
  font-size: 11px;
  opacity: 0.9;
}

.gc-voice-controls__device-select {
  height: 26px;
  font-size: 13px;
}

.gc-voice-controls__test-sound {
  height: 1px;
  padding: 0;
}

.gc-voice-controls__device-settings {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(110, 150, 255, 0.2);
  background: rgba(12, 20, 36, 0.78);
  color: rgba(180, 205, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gc-voice-controls__round-btn {
  width: 52px;
  height: 52px;
}

.gc-voice-controls__disconnect {
  width: 152px;
  min-width: 152px;
  height: 52px;
  border-radius: 999px;
}

.gc-voice-controls__mic-mode {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  min-height: 80px;
  height: 80px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(110, 150, 255, 0.2);
  background: rgba(12, 20, 36, 0.82);
  justify-content: center;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(160, 190, 255, 0.08);
}

.gc-voice-controls__activity-label {
  font-size: 12px;
}

.gc-voice-controls__radio {
  font-size: 13px;
}

.gc-voice-events {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: transparent;
  opacity: 0.55;
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  line-height: 1.15;
}

.gc-voice-events:not([open]) {
  min-height: 0;
  height: auto;
}

.gc-voice-events__summary {
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 0;
  line-height: 1.15;
  min-height: 0;
}

.gc-voice-events__list {
  max-height: 40px;
}

.gc-voice-ptt-hint {
  bottom: 108px;
}

/* ??? Voice settings modal (premium glass) ??? */
.gc-voice-settings-modal {
  width: min(460px, calc(100vw - 24px));
  max-width: 100%;
  max-height: min(88vh, 720px);
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: 22px;
  border: 1px solid rgba(120, 160, 255, 0.28);
  background:
    linear-gradient(165deg, rgba(22, 32, 56, 0.94), rgba(10, 16, 30, 0.96));
  color: #e8eefc;
  box-shadow:
    0 0 0 1px rgba(140, 180, 255, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(60, 110, 255, 0.18);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gc-voice-settings-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px 20px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(120, 160, 255, 0.16);
  background: rgba(14, 22, 40, 0.55);
}

.gc-voice-settings-modal__head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.gc-voice-settings-modal__head-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(190, 215, 255, 0.95);
  background: rgba(70, 120, 255, 0.18);
  border: 1px solid rgba(120, 160, 255, 0.22);
}

.gc-voice-settings-modal__head-icon svg {
  width: 18px;
  height: 18px;
}

.gc-voice-settings-modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #eef3ff;
  line-height: 1.25;
}

.gc-voice-settings-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(120, 160, 255, 0.2);
  background: rgba(12, 20, 36, 0.72);
  color: rgba(200, 215, 245, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gc-voice-settings-modal__close:hover {
  border-color: rgba(140, 180, 255, 0.4);
  background: rgba(22, 34, 56, 0.9);
}

.gc-voice-settings-modal__close svg {
  width: 16px;
  height: 16px;
}

.gc-voice-settings-modal__scroll {
  padding: 18px 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gc-voice-settings-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gc-voice-settings-section__title {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(170, 195, 240, 0.78);
}

.gc-voice-settings-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(110, 150, 255, 0.22);
  background: rgba(12, 20, 36, 0.72);
  box-shadow: inset 0 1px 0 rgba(160, 190, 255, 0.06);
}

.gc-voice-settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gc-voice-settings-field--actions {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.gc-voice-settings-field__label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(190, 210, 245, 0.88);
}

.gc-voice-settings-field__select {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(110, 150, 255, 0.28);
  background: rgba(10, 16, 30, 0.78);
  color: #e8eefc;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}

.gc-voice-settings-field__select:focus {
  border-color: rgba(120, 170, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(80, 130, 255, 0.18);
}

.gc-voice-settings-activity {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  min-height: 0;
  height: auto;
  width: 100%;
  max-width: none;
  box-shadow: none;
}

.gc-voice-settings-activity__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gc-voice-settings-option {
  display: block;
  cursor: pointer;
  margin: 0;
}

.gc-voice-settings-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gc-voice-settings-option__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(110, 150, 255, 0.22);
  background: rgba(12, 20, 36, 0.72);
  box-shadow: inset 0 1px 0 rgba(160, 190, 255, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.gc-voice-settings-option:hover .gc-voice-settings-option__card {
  border-color: rgba(130, 170, 255, 0.4);
  background: rgba(18, 28, 48, 0.85);
}

.gc-voice-settings-option:has(input:checked) .gc-voice-settings-option__card {
  border-color: rgba(90, 140, 255, 0.6);
  background: rgba(75, 110, 255, 0.16);
  box-shadow:
    0 0 24px rgba(80, 120, 255, 0.28),
    0 0 0 1px rgba(90, 140, 255, 0.22),
    inset 0 1px 0 rgba(180, 210, 255, 0.12);
}

.gc-voice-settings-option__icon {
  font-size: 16px;
  line-height: 1;
  margin-bottom: 2px;
}

.gc-voice-settings-option__title {
  font-size: 14px;
  font-weight: 650;
  color: #eef3ff;
}

.gc-voice-settings-option__desc {
  font-size: 12px;
  color: rgba(170, 190, 230, 0.72);
  line-height: 1.35;
}

.gc-voice-settings-ptt-key {
  margin-top: 2px;
}

.gc-voice-settings-ptt-key__row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gc-voice-settings-ptt-key__row .gc-voice-settings-field__select {
  flex: 1 1 auto;
}

.gc-voice-settings-ptt-key__capture {
  height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gc-voice-settings-ptt-key__capture.is-listening {
  border-color: rgba(90, 140, 255, 0.55);
  color: #dbe7ff;
}

.gc-voice-settings-ptt-key__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(170, 190, 230, 0.72);
}

.gc-voice-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gc-voice-settings-test-btn,
.gc-voice-settings-refresh-btn {
  height: 36px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
}

.gc-voice-settings-toggle-list {
  display: none;
}

@media (max-width: 520px) {
  .gc-voice-settings-modal {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    border-radius: 20px;
  }

  .gc-voice-settings-modal__title {
    font-size: 15px;
  }

  .gc-voice-settings-modal__scroll {
    padding: 14px 14px 18px;
    gap: 16px;
  }
}

/* ??? Screen stage + fullscreen overlay (Stage 4) ??? */
.gc-voice-screen-stage {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: clamp(260px, 32vh, 360px);
  margin-bottom: 12px;
  flex: 0 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #030814;
  border: 1px solid rgba(90, 140, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(170, 200, 255, 0.06);
}

.gc-voice-screen-stage.hidden {
  display: none;
}

.gc-voice-screen-stage__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(20, 30, 55, 0.72);
  border-bottom: 1px solid rgba(90, 140, 255, 0.18);
  flex: 0 0 auto;
}

.gc-voice-screen-stage__label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(190, 215, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-voice-screen-stage__expand {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(90, 140, 255, 0.35);
  background: rgba(20, 30, 55, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #e8efff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gc-voice-screen-stage__expand:hover {
  transform: scale(1.05);
  border-color: rgba(90, 140, 255, 0.55);
  box-shadow: 0 0 18px rgba(70, 130, 255, 0.35);
}

.gc-voice-screen-stage__expand svg {
  width: 18px;
  height: 18px;
}

.gc-voice-screen-stage__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020712;
}

.gc-voice-screen-stage__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020712;
  display: block;
}

.gc-voice-member__screen-badge {
  display: inline-flex;
  align-items: center;
  max-width: 140px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.gc-voice-fullscreen-viewer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  background: #020712;
  color: #e8efff;
}

.gc-voice-fullscreen-viewer.hidden,
.gc-voice-fullscreen-viewer[hidden] {
  display: none !important;
}

.gc-voice-fullscreen-viewer__stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020712;
}

.gc-voice-fullscreen-viewer__video {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  background: #000;
}

.gc-voice-fullscreen-exit--top {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(90, 140, 255, 0.35);
  background: rgba(20, 30, 55, 0.82);
  backdrop-filter: blur(16px);
  color: #e8efff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.gc-voice-fullscreen-viewer--controls-visible .gc-voice-fullscreen-exit--top {
  opacity: 1;
  pointer-events: auto;
}

.gc-voice-fullscreen-exit--top svg {
  width: 20px;
  height: 20px;
}

.gc-voice-fullscreen-dock {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 22px;
  border: 1px solid rgba(90, 140, 255, 0.28);
  background: rgba(20, 30, 55, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 3;
}

.gc-voice-fullscreen-viewer--controls-visible .gc-voice-fullscreen-dock {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.gc-voice-fullscreen-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(110, 150, 255, 0.35);
  background: rgba(12, 20, 36, 0.9);
  color: #e8efff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.gc-voice-fullscreen-exit:hover {
  border-color: rgba(90, 140, 255, 0.55);
  box-shadow: 0 0 18px rgba(70, 130, 255, 0.3);
}

.gc-voice-fullscreen-exit svg {
  width: 18px;
  height: 18px;
}

body.gc-voice-fullscreen-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .gc-voice-screen-stage {
    height: clamp(200px, 28vh, 280px);
    border-radius: 16px;
  }

  .gc-voice-fullscreen-exit span {
    display: none;
  }

  .gc-voice-fullscreen-exit:not(.gc-voice-fullscreen-exit--top) {
    width: 52px;
    padding: 0;
  }
}

/* --- Webcam video stage (Stage 4) --- */
.gc-voice-video-stage {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(90, 140, 255, 0.24);
  background: rgba(20, 30, 55, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  flex: 0 0 auto;
}

.gc-voice-video-stage.hidden {
  display: none;
}

.gc-voice-video-grid {
  display: grid;
  gap: 12px;
  width: 100%;
}

.gc-voice-video-grid.is-single {
  grid-template-columns: minmax(260px, min(520px, 100%));
  justify-content: center;
}

.gc-voice-video-grid.is-duo {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.gc-voice-video-grid.is-quad {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.gc-voice-video-grid.is-multi {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gc-voice-video-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  border-radius: 18px;
  overflow: hidden;
  background: #030814;
  border: 1px solid rgba(90, 140, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(170, 200, 255, 0.06);
}

.gc-voice-video-tile.is-speaking {
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.28), 0 0 22px rgba(34, 197, 94, 0.28);
}

.gc-voice-video-tile__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #030814;
}

.gc-voice-video-tile__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 7, 18, 0.82) 100%);
}

.gc-voice-video-tile__name {
  font-size: 12px;
  font-weight: 650;
  color: #eef3ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-voice-video-tile__status {
  font-size: 12px;
  color: rgba(190, 215, 255, 0.9);
  flex-shrink: 0;
}

.gc-voice-member__camera-badge {
  display: inline-flex;
  align-items: center;
  max-width: 140px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.gc-voice-member-menu__quality {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(190, 210, 245, 0.88);
  white-space: pre-line;
  border-top: 1px solid rgba(90, 140, 255, 0.16);
}

@media (max-width: 720px) {
  .gc-voice-video-grid.is-duo,
  .gc-voice-video-grid.is-quad,
  .gc-voice-video-grid.is-multi {
    grid-template-columns: 1fr;
  }

  .gc-voice-video-tile {
    min-height: 160px;
  }
}

/* ============================================================
   HOTFIX gc_topics_glass_v4 вЂ” cascade isolation for topics rail
   Must load AFTER olone-app.css (and after gc-topics-glass.css).
   Isolates .topic-item from global .avatar / .dialog-item geometry.
   ============================================================ */

.col-dialogs--gc-topics .topic-item .avatar,
.col-dialogs--gc-topics .topic-item .user-avatar,
.col-dialogs--gc-topics .topic-item .dialog-avatar,
.col-dialogs--gc-topics .topic-item .dialog-avatar-wrap,
.col-dialogs--gc-topics .topic-item .chat-avatar,
.col-dialogs--gc-topics .topic-item .profile-avatar,
.col-dialogs--gc-topics .topic-item .member-avatar,
.col-dialogs--gc-topics .topic-item .rail-avatar,
.col-dialogs--gc-topics .topic-item .dialog-row,
.col-dialogs--gc-topics .topic-item .dialog-item-body,
.col-dialogs--gc-topics .gc-topics-list .dialog-item,
.col-dialogs--gc-topics .gc-topics-list .dialog-row,
.col-dialogs--gc-topics .gc-topics-list .chat-list-item {
  display: none;
}

.col-dialogs--gc-topics .topic-item__avatar,
.col-dialogs--gc-topics .topic-item img.topic-item__avatar,
.col-dialogs--gc-topics .topic-item__avatars,
.col-dialogs--gc-topics .topic-item__avatar-more {
  display: flex;
}

.col-dialogs--gc-topics .topic-item img.topic-item__avatar {
  display: block;
}

.col-dialogs--gc-topics .topic-item,
.col-dialogs--gc-topics button.topic-item,
.col-dialogs--gc-topics .gc-topic-item.topic-item {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  height: 74px;
  min-height: 74px;
  max-height: 74px;
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30, 39, 58, 0.48), rgba(18, 25, 38, 0.34));
  border: 1px solid rgba(130, 160, 220, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.col-dialogs--gc-topics .topic-item:hover,
.col-dialogs--gc-topics .gc-topic-item.topic-item:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(38, 49, 72, 0.58), rgba(20, 28, 43, 0.46));
  border-color: rgba(110, 150, 230, 0.16);
}

.col-dialogs--gc-topics .topic-item--voice,
.col-dialogs--gc-topics .gc-topic-item--voice.topic-item--voice {
  height: 76px;
  min-height: 76px;
  max-height: 76px;
}

.col-dialogs--gc-topics .topic-item--text.topic-item--active,
.col-dialogs--gc-topics .gc-topic-item--text.topic-item--active {
  background: linear-gradient(135deg, rgba(43, 67, 116, 0.5), rgba(28, 43, 73, 0.58));
  border: 1px solid rgba(170, 176, 188, 0.55);
  box-shadow: 0 0 16px rgba(50, 105, 225, 0.18);
}

.col-dialogs--gc-topics .topic-item--voice.topic-item--active,
.col-dialogs--gc-topics .gc-topic-item--voice.topic-item--active {
  background: linear-gradient(135deg, rgba(43, 76, 151, 0.54), rgba(24, 40, 83, 0.7));
  border: 1px solid rgba(72, 130, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(52, 110, 235, 0.15),
    0 0 24px rgba(48, 112, 255, 0.33),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.col-dialogs--gc-topics .topic-item--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 40px;
  border-radius: 3px;
  background: #c8ced8;
}

.col-dialogs--gc-topics .topic-item__icon {
 display: flex;
 align-items: center;
 justify-content: center;
 flex-shrink: 0;
 box-sizing: border-box;
 overflow: hidden;
}

.col-dialogs--gc-topics .topic-item__icon--text {
 width: 44px;
 height: 44px;
 border-radius: 14px;
 background: linear-gradient(145deg, rgba(76, 93, 137, 0.3), rgba(38, 48, 75, 0.24));
 border: 1px solid rgba(130, 160, 230, 0.18);
 color: #e6eaff;
}

.col-dialogs--gc-topics .topic-item__icon--voice {
 width: 48px;
 height: 48px;
 border-radius: 15px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: linear-gradient(145deg, rgba(37, 74, 154, 0.38), rgba(23, 45, 98, 0.24));
 border: 1px solid rgba(77, 128, 235, 0.34);
 color: rgba(210, 216, 224, 0.92);
}

.col-dialogs--gc-topics .topic-item--voice > svg,
.col-dialogs--gc-topics .topic-item--voice svg {
 width: auto;
 height: auto;
 max-width: none;
 max-height: none;
}

.col-dialogs--gc-topics .topic-item__icon--text svg,
.col-dialogs--gc-topics .topic-item__text-svg {
 display: block;
 width: 23px;
 height: 23px;
 stroke: rgba(241, 247, 255, 0.94);
 stroke-width: 1.7;
 flex-shrink: 0;
}

.col-dialogs--gc-topics .topic-item__icon--voice svg,
.col-dialogs--gc-topics .topic-item__voice-svg {
 display: block;
 width: 24px;
 height: 24px;
 stroke: rgba(210, 216, 224, 0.92);
 stroke-width: 1.8;
 flex-shrink: 0;
}

.col-dialogs--gc-topics .topic-item__content {
 min-width: 0;
 display: flex;
 flex-direction: column;
 justify-content: center;
}

.col-dialogs--gc-topics .topic-item__title {
 font-size: 15px;
 font-weight: 750;
 line-height: 19px;
 color: #f8faff;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.col-dialogs--gc-topics .topic-item__subtitle {
 margin-top: 3px;
 font-size: 13px;
 font-weight: 500;
 line-height: 17px;
 color: #91a0bb;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.col-dialogs--gc-topics .topic-item__voice-meta {
 display: flex;
 align-items: center;
 gap: 6px;
 margin-top: 4px;
 font-size: 13px;
 font-weight: 500;
 color: #8fa1c1;
 min-width: 0;
}

.col-dialogs--gc-topics .topic-item__voice-meta svg {
 display: block;
 width: 13px;
 height: 13px;
 flex-shrink: 0;
 stroke: #8fa1c1;
}

.col-dialogs--gc-topics .topic-item__voice-actions {
 width: 46px;
 min-width: 28px;
 height: 48px;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 7px;
 flex-shrink: 0;
}

.col-dialogs--gc-topics .topic-item__trailing {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 6px;
 flex-shrink: 0;
 min-width: 26px;
}

.col-dialogs--gc-topics .topic-item__settings {
 all: unset;
 box-sizing: border-box;
 width: 26px;
 height: 26px;
 padding: 0;
 border: 0;
 border-radius: 8px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: transparent;
 opacity: 0.62;
 color: #8994aa;
 cursor: pointer;
 -webkit-appearance: none;
 appearance: none;
}

.col-dialogs--gc-topics .topic-item__settings svg {
 display: block;
 width: 17px;
 height: 17px;
 stroke: #8994aa;
 flex-shrink: 0;
}

.col-dialogs--gc-topics .topic-item__settings:hover {
 opacity: 1;
 background: rgba(255, 255, 255, 0.05);
}

.col-dialogs--gc-topics .voice-connection-bars,
.col-dialogs--gc-topics .voice-level-bars.voice-connection-bars {
 width: 22px;
 height: 18px;
 display: flex;
 align-items: flex-end;
 justify-content: center;
 gap: 3px;
 flex: 0 0 auto;
}

.col-dialogs--gc-topics .voice-connection-bars__bar {
 width: 3px;
 border-radius: 999px;
 background: rgba(100, 115, 145, 0.26);
 box-shadow: none;
 transition:
  height 0.2s ease,
  background-color 0.2s ease,
  opacity 0.2s ease,
  box-shadow 0.2s ease;
}

.col-dialogs--gc-topics .voice-connection-bars__bar:nth-child(1) { height: 6px; }
.col-dialogs--gc-topics .voice-connection-bars__bar:nth-child(2) { height: 11px; }
.col-dialogs--gc-topics .voice-connection-bars__bar:nth-child(3) { height: 17px; }

.col-dialogs--gc-topics .voice-connection-bars--poor .voice-connection-bars__bar:nth-child(1) {
 background: #ff5f67;
 opacity: 1;
 box-shadow: 0 0 7px rgba(255, 95, 103, 0.38);
}

.col-dialogs--gc-topics .voice-connection-bars--poor .voice-connection-bars__bar:nth-child(2),
.col-dialogs--gc-topics .voice-connection-bars--poor .voice-connection-bars__bar:nth-child(3) {
 background: rgba(255, 95, 103, 0.18);
 opacity: 0.42;
 box-shadow: none;
}

.col-dialogs--gc-topics .voice-connection-bars--medium .voice-connection-bars__bar:nth-child(1),
.col-dialogs--gc-topics .voice-connection-bars--medium .voice-connection-bars__bar:nth-child(2) {
 background: #f6c453;
 opacity: 1;
 box-shadow: 0 0 7px rgba(246, 196, 83, 0.34);
}

.col-dialogs--gc-topics .voice-connection-bars--medium .voice-connection-bars__bar:nth-child(3) {
 background: rgba(246, 196, 83, 0.2);
 opacity: 0.42;
 box-shadow: none;
}

.col-dialogs--gc-topics .voice-connection-bars--good .voice-connection-bars__bar {
 background: #38d996;
 opacity: 1;
 box-shadow: 0 0 7px rgba(56, 217, 150, 0.34);
}

.col-dialogs--gc-topics .voice-connection-bars--offline .voice-connection-bars__bar {
 background: rgba(126, 137, 160, 0.24);
 opacity: 0.38;
 box-shadow: none;
}

.col-dialogs--gc-topics .voice-connection-bars--offline .voice-connection-bars__bar:first-child {
 background: rgba(255, 95, 103, 0.52);
 opacity: 0.72;
}

.col-dialogs--gc-topics .voice-connection-bars--checking {
 opacity: 0.58;
 animation: voiceConnectionChecking 1.6s ease-in-out infinite;
}

.col-dialogs--gc-topics .voice-connection-bars--checking .voice-connection-bars__bar {
 background: rgba(100, 115, 145, 0.26);
 opacity: 0.55;
 box-shadow: none;
}

.col-dialogs--gc-topics .voice-connection-bars--hidden {
 visibility: hidden;
 opacity: 0;
 pointer-events: none;
 animation: none;
}

@keyframes voiceConnectionChecking {
 0%,
 100% { opacity: 0.42; }
 50% { opacity: 0.76; }
}

.col-dialogs--gc-topics .gc-topics-list {
 flex: 1 1 auto;
 min-height: 0;
 display: flex;
 flex-direction: column;
 gap: 10px;
 overflow-x: hidden;
 overflow-y: auto;
}

.col-dialogs--gc-topics .gc-topics-rail-body {
 overflow: hidden;
}

.col-dialogs--gc-topics .gc-topics-add-btn {
 flex: 0 0 auto;
 margin: 12px 0 0;
 position: static;
}

/* ============================================================
   HOTFIX gc_topics_mode_scope_v1 вЂ” hide topics chrome outside topics mode
   ============================================================ */
.col-dialogs:not(.col-dialogs--gc-topics) #gcTopicsRail,
.col-dialogs:not(.col-dialogs--gc-topics) .gc-topics-rail,
.col-dialogs:not(.col-dialogs--gc-topics) .gc-topics-back-btn,
.col-dialogs:not(.col-dialogs--gc-topics) .gc-topics-search,
.col-dialogs:not(.col-dialogs--gc-topics) .gc-topics-list,
.col-dialogs:not(.col-dialogs--gc-topics) .gc-topics-add-btn,
.gc-topics-rail.hidden,
#gcTopicsRail.hidden,
#gcTopicsRail[hidden] {
  display: none !important;
}

.col-dialogs--gc-topics .gc-topics-rail:not(.hidden) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.col-dialogs--gc-topics .gc-topics-back-btn {
  display: flex;
}

.col-dialogs--gc-topics .gc-topics-search {
  display: block;
}

.col-dialogs--gc-topics .gc-topics-list {
  display: flex;
}

.col-dialogs--gc-topics .gc-topics-add-btn:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Audio autoplay resume (does not alter voice layout chrome) */
#voiceRemoteAudioHost {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.gc-voice-audio-resume-btn {
  position: absolute;
  right: 18px;
  bottom: 92px;
  z-index: 6;
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(120, 160, 255, 0.35);
  background: rgba(28, 42, 72, 0.92);
  color: #dce7ff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.gc-voice-audio-resume-btn.hidden {
  display: none !important;
}

.gc-voice-channel {
  position: relative;
}

/* ============================================================
   HOTFIX gc_topics_minimal_header_v1 вЂ” minimal header in topics mode
   ============================================================ */
.col-dialogs--gc-topics #profileTabsWrap,
.col-dialogs--gc-topics .profile-tabs-wrap,
.col-dialogs--gc-topics .profile-tabs,
.col-dialogs--gc-topics .dialogs-filter-pills,
.col-dialogs--gc-topics #dialogsRailSearchWrap,
.col-dialogs--gc-topics .dialogs-rail-search-wrap,
.col-dialogs--gc-topics .profile-tab-panels--aux,
.col-dialogs--gc-topics #oloneMobileFabGroupChat,
.col-dialogs--gc-topics #oloneMobileFabChannel {
  display: none !important;
}

.col-dialogs--gc-topics .dialogs-nav-sticky {
  min-height: auto;
  padding: 0 !important;
  margin: 0 !important;
  margin-bottom: 0;
  gap: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.col-dialogs--gc-topics .dialogs-scroll-strip {
  padding-top: 0;
  margin-top: 0;
}

.col-dialogs--gc-topics .dialogs-nav-sticky::after,
.col-dialogs--gc-topics .dialogs-col-title::before {
  content: none !important;
  display: none !important;
}

/* Legacy title chrome neutralized вЂ” typography owned by live-rooms */
.col-dialogs--gc-topics .dialogs-col-title,
.col-dialogs--gc-topics .dialogs-col-title--gc-topics,
.col-dialogs--gc-topics .panel-head.dialogs-col-title {
  width: 100%;
  max-width: 100%;
  border: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: visible;
}

.col-dialogs--gc-topics #gcTopicsRail,
.col-dialogs--gc-topics .gc-topics-rail {
  margin-top: 0;
  padding-top: 0;
}


/* ============================================================
   HOTFIX gc_voice_webcam_aspect_grid_v2
   Tall-tile conflicts removed: stage rows = max-content,
   tiles align-self start, media drives 16:9 height.
   ============================================================ */

#gcVoiceChannelView .gc-voice-channel__workspace {
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

#gcVoiceChannelView #gcVoiceMembersList.voice-participant-stage,
#gcVoiceChannelView #gcVoiceMembersList {
  flex: 1 1 auto !important;
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  box-sizing: border-box !important;
  gap: 18px !important;
  padding: 18px 20px 20px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  align-items: start !important;
  align-content: center !important;
  justify-content: stretch !important;
  justify-items: stretch !important;
  grid-auto-rows: max-content !important;
  grid-template-rows: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="0"] {
  place-items: center !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: max-content !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="1"] {
  grid-template-columns: minmax(280px, min(920px, 82%)) !important;
  grid-template-rows: max-content !important;
  justify-content: center !important;
  justify-items: stretch !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: max-content !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="3"] {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, max-content) !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="3"] > .voice-participant-tile:nth-child(3) {
  grid-column: 1 / -1 !important;
  width: calc(50% - 9px) !important;
  justify-self: center !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, max-content) !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="5"] {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: max-content !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="5"] > .voice-participant-tile:nth-child(-n + 3) {
  grid-column: span 2 !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="5"] > .voice-participant-tile:nth-child(4) {
  grid-column: 2 / span 2 !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="5"] > .voice-participant-tile:nth-child(5) {
  grid-column: 4 / span 2 !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: max-content !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="7"],
#gcVoiceChannelView #gcVoiceMembersList[data-count="8"],
#gcVoiceChannelView #gcVoiceMembersList[data-count="9"] {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: max-content !important;
  align-content: start !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="many"] {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: max-content !important;
  align-content: start !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-stage__loading {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: rgba(150, 170, 210, 0.62);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  grid-column: 1 / -1;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  align-self: start !important;
  justify-self: stretch !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: none !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-radius: 17px !important;
  background:
    linear-gradient(
      145deg,
      rgba(25, 36, 55, 0.97),
      rgba(16, 25, 40, 0.97)
    ) !important;
  border: 1px solid rgba(118, 148, 194, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.018),
    0 10px 28px rgba(0, 0, 0, 0.14) !important;
  overflow: hidden !important;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile--speaking {
  border-color: rgba(248, 251, 255, 0.96) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 12px rgba(230, 238, 250, 0.09),
    0 10px 28px rgba(0, 0, 0, 0.14) !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-media {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  flex: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(55, 78, 115, 0.16),
      transparent 60%
    ),
    linear-gradient(
      145deg,
      rgba(29, 42, 63, 0.98),
      rgba(17, 27, 43, 0.98)
    ) !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-media > .voice-participant-video,
#gcVoiceChannelView #gcVoiceMembersList .voice-participant-video {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #080d15 !important;
  transform: none !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile--local .voice-participant-video {
  transform: scaleX(-1) !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-video.hidden,
#gcVoiceChannelView #gcVoiceMembersList .voice-participant-video[hidden] {
  display: none !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-avatar-state {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-avatar-state.hidden,
#gcVoiceChannelView #gcVoiceMembersList .voice-participant-avatar-state[hidden] {
  display: none !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-avatar-wrap,
#gcVoiceChannelView #gcVoiceMembersList .voice-participant-avatar-wrap--video {
  width: clamp(110px, 11vw, 176px) !important;
  height: clamp(110px, 11vw, 176px) !important;
  max-width: clamp(110px, 11vw, 176px) !important;
  max-height: clamp(110px, 11vw, 176px) !important;
  aspect-ratio: auto !important;
  flex: none !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  margin: 0 !important;
  background: rgba(32, 46, 68, 0.82) !important;
  border: 1px solid rgba(116, 156, 218, 0.3) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24) !important;
  position: relative !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-avatar {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  object-fit: cover !important;
  user-select: none;
  -webkit-user-drag: none;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-avatar--placeholder,
#gcVoiceChannelView #gcVoiceMembersList .voice-participant-avatar.is-avatar-placeholder {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 24% !important;
  box-sizing: border-box !important;
  border: none !important;
  cursor: default !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 42% 32%, rgba(255, 255, 255, 0.05), transparent 55%),
    linear-gradient(145deg, #1b2431, #111926) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-identity {
  flex: none !important;
  min-width: 0 !important;
  min-height: 46px !important;
  max-width: none !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 10px 14px 11px !important;
  box-sizing: border-box !important;
  background: rgba(13, 21, 34, 0.86) !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-name {
  min-width: 0 !important;
  color: rgba(248, 251, 255, 0.98) !important;
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-premium-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-premium-icon.hidden {
  display: none !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-media-states {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex: 0 0 auto !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-state {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ff686f;
  background: rgba(255, 73, 82, 0.08);
  border: 1px solid rgba(255, 91, 99, 0.15);
  box-sizing: border-box;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-state svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#gcVoiceListenersSection[hidden],
.gc-voice-channel__glass--listeners[hidden] {
  display: none !important;
}

@media (max-width: 1250px) {
  #gcVoiceChannelView #gcVoiceMembersList[data-count="1"] {
    grid-template-columns: minmax(0, min(920px, 94%)) !important;
  }

  #gcVoiceChannelView #gcVoiceMembersList[data-count="3"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="4"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="5"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="6"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="7"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="8"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="9"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #gcVoiceChannelView #gcVoiceMembersList[data-count="5"] > .voice-participant-tile:nth-child(-n + 3),
  #gcVoiceChannelView #gcVoiceMembersList[data-count="5"] > .voice-participant-tile:nth-child(4),
  #gcVoiceChannelView #gcVoiceMembersList[data-count="5"] > .voice-participant-tile:nth-child(5) {
    grid-column: auto !important;
    width: 100% !important;
  }

  #gcVoiceChannelView #gcVoiceMembersList[data-count="5"] > .voice-participant-tile:nth-child(5) {
    grid-column: 1 / -1 !important;
    width: calc(50% - 9px) !important;
    justify-self: center !important;
  }

  #gcVoiceChannelView #gcVoiceMembersList[data-count="3"] > .voice-participant-tile:nth-child(3) {
    grid-column: 1 / -1 !important;
    width: calc(50% - 9px) !important;
    justify-self: center !important;
  }
}

@media (max-width: 900px) {
  #gcVoiceChannelView #gcVoiceMembersList.voice-participant-stage,
  #gcVoiceChannelView #gcVoiceMembersList {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
    align-content: start !important;
  }

  #gcVoiceChannelView #gcVoiceMembersList[data-count="1"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="2"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="3"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="4"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="5"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="6"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="7"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="8"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="9"],
  #gcVoiceChannelView #gcVoiceMembersList[data-count="many"] {
    grid-template-columns: 1fr !important;
  }

  #gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile,
  #gcVoiceChannelView #gcVoiceMembersList[data-count="3"] > .voice-participant-tile:nth-child(3),
  #gcVoiceChannelView #gcVoiceMembersList[data-count="5"] > .voice-participant-tile:nth-child(4),
  #gcVoiceChannelView #gcVoiceMembersList[data-count="5"] > .voice-participant-tile:nth-child(5),
  #gcVoiceChannelView #gcVoiceMembersList[data-count="5"] > .voice-participant-tile:nth-child(-n + 3) {
    grid-column: auto !important;
    width: 100% !important;
    justify-self: stretch !important;
  }

  #gcVoiceChannelView #gcVoiceMembersList .voice-participant-identity {
    min-height: 42px !important;
    padding: 8px 12px 9px !important;
  }

  #gcVoiceChannelView #gcVoiceMembersList .voice-participant-name {
    font-size: 13px !important;
    line-height: 16px !important;
  }

  #gcVoiceChannelView #gcVoiceMembersList .voice-participant-avatar-wrap,
  #gcVoiceChannelView #gcVoiceMembersList .voice-participant-avatar-wrap--video {
    width: clamp(88px, 28vw, 140px) !important;
    height: clamp(88px, 28vw, 140px) !important;
    max-width: clamp(88px, 28vw, 140px) !important;
    max-height: clamp(88px, 28vw, 140px) !important;
  }
}


/* ===== global_persistent_voice_mini_widget_v1 ===== */
#globalVoiceMiniWidget {
  --gvmw-width: 360px;
  --gvmw-height: 76px;
  --gvmw-padding: 14px;
  --gvmw-radius: 16px;
  position: fixed;
  left: auto;
  top: auto;
  right: 22px;
  bottom: 92px;
  z-index: 1450;
  width: min(var(--gvmw-width), calc(100vw - 24px));
  min-width: min(316px, calc(100vw - 24px));
  max-width: 360px;
  height: var(--gvmw-height);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--gvmw-padding);
  box-sizing: border-box;
  border-radius: var(--gvmw-radius);
  color: rgba(238, 244, 255, 0.97);
  background: linear-gradient(145deg, rgba(17, 27, 45, 0.96), rgba(9, 16, 29, 0.97));
  border: 1px solid rgba(92, 126, 188, 0.34);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(75, 112, 174, 0.08),
    0 0 26px rgba(69, 81, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  user-select: none;
  touch-action: none;
  isolation: isolate;
}
#globalVoiceMiniWidget.hidden,
#globalVoiceMiniWidget[aria-hidden="true"] {
  display: none !important;
}
#globalVoiceMiniWidget.is-dragging {
  cursor: grabbing;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(92, 128, 218, 0.24),
    0 0 32px rgba(77, 87, 255, 0.2);
}
.global-voice-mini-widget__drag {
  flex: 0 0 14px;
  width: 14px;
  height: 42px;
  display: grid;
  grid-template-columns: repeat(2, 3px);
  grid-auto-rows: 3px;
  align-content: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  cursor: grab;
  touch-action: none;
}
.global-voice-mini-widget__drag:active { cursor: grabbing; }
.global-voice-mini-widget__drag span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(147, 166, 199, 0.58);
}
.global-voice-mini-widget__drag:hover span {
  background: rgba(188, 204, 231, 0.86);
}
.global-voice-mini-widget__room {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  outline: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.global-voice-mini-widget__icon {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, #6658ff 0%, #7738e8 52%, #922ddb 100%);
  box-shadow: 0 0 22px rgba(112, 70, 255, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.global-voice-mini-widget__icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}
.global-voice-mini-widget__icon::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #35d96f;
  border: 2px solid rgba(14, 23, 39, 0.98);
  box-shadow: 0 0 10px rgba(53, 217, 111, 0.46);
}
.global-voice-mini-widget__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.global-voice-mini-widget__title {
  display: block;
  max-width: 130px;
  overflow: hidden;
  color: rgba(245, 248, 255, 0.98);
  font-size: 14px;
  line-height: 18px;
  font-weight: 750;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.global-voice-mini-widget__room:hover .global-voice-mini-widget__title {
  color: #ffffff;
}
.global-voice-mini-widget__participants {
  display: block;
  color: rgba(153, 170, 199, 0.78);
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.global-voice-mini-widget__controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.global-voice-mini-widget__control {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 13px;
  color: rgba(224, 233, 248, 0.94);
  background: rgba(17, 29, 49, 0.9);
  border: 1px solid rgba(91, 123, 175, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.global-voice-mini-widget__control svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}
.global-voice-mini-widget__control:hover {
  transform: translateY(-1px);
  color: #ffffff;
  background: rgba(25, 41, 68, 0.96);
  border-color: rgba(108, 150, 218, 0.42);
}
.global-voice-mini-widget__control:active {
  transform: translateY(0) scale(0.97);
}
#globalVoiceMiniMuteBtn[aria-pressed="false"] { color: #4ee782; }
#globalVoiceMiniMuteBtn[aria-pressed="true"] {
  color: #ff626c;
  background: rgba(91, 27, 38, 0.54);
  border-color: rgba(239, 74, 91, 0.36);
}
#globalVoiceMiniDeafenBtn[aria-pressed="false"] { color: rgba(230, 237, 250, 0.96); }
#globalVoiceMiniDeafenBtn[aria-pressed="true"] {
  color: #ff626c;
  background: rgba(91, 27, 38, 0.54);
  border-color: rgba(239, 74, 91, 0.36);
}
.global-voice-mini-widget__control--disconnect {
  color: #ff626c;
  background: rgba(112, 24, 36, 0.64);
  border-color: rgba(255, 77, 91, 0.48);
  box-shadow: 0 0 18px rgba(235, 44, 62, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}
.global-voice-mini-widget__control--disconnect:hover {
  color: #ffffff;
  background: rgba(203, 44, 61, 0.86);
  border-color: rgba(255, 104, 116, 0.72);
  box-shadow: 0 0 22px rgba(240, 48, 66, 0.24);
}
#globalVoiceMiniWidget button:focus-visible {
  outline: 2px solid rgba(96, 133, 255, 0.9);
  outline-offset: 2px;
}
@media (max-width: 420px) {
  #globalVoiceMiniWidget {
    --gvmw-height: 72px;
    width: calc(100vw - 20px);
    max-width: 350px;
    min-width: 0;
    padding: 12px;
    gap: 8px;
  }
  .global-voice-mini-widget__icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
  .global-voice-mini-widget__control {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .global-voice-mini-widget__title { max-width: 102px; }
}

/* ============================================================
   gc_voice_channel_visual_polish_v1
   Visual-only polish for existing voice view selectors.
   No JS / WebRTC / mini-widget behavior changes.
   ============================================================ */

#gcVoiceChannelView.gc-voice-channel {
  --gc-voice-border: rgba(108, 151, 221, 0.3);
  --gc-voice-border-strong: rgba(105, 151, 222, 0.34);
  --gc-voice-accent: rgba(73, 156, 255, 0.95);
  gap: 16px !important;
  padding: 16px 20px 18px !important;
  background:
    radial-gradient(circle at 52% 22%, rgba(36, 85, 168, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(8, 17, 31, 0.98), rgba(5, 12, 22, 0.99)) !important;
}

#gcVoiceChannelView .gc-voice-channel__header {
  min-height: 84px !important;
  height: auto !important;
  padding: 0 4px !important;
  border-bottom: 1px solid rgba(108, 151, 221, 0.1) !important;
  margin-bottom: 2px !important;
}

#gcVoiceChannelView .gc-voice-channel__header-left {
  gap: 14px !important;
}

#gcVoiceChannelView .gc-voice-channel__topic-avatar {
  width: 50px !important;
  height: 50px !important;
  box-shadow:
    0 0 0 1px rgba(120, 150, 255, 0.18),
    0 10px 28px rgba(70, 100, 220, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

#gcVoiceChannelView .gc-voice-channel__topic-avatar svg {
  width: 24px !important;
  height: 24px !important;
}

#gcVoiceChannelView .gc-voice-channel__title {
  font-size: 19px !important;
  font-weight: 780 !important;
  letter-spacing: -0.02em !important;
  color: rgba(245, 248, 255, 0.98) !important;
}

#gcVoiceChannelView .gc-voice-channel__slug {
  margin-top: 4px !important;
  font-size: 12px !important;
  color: rgba(160, 182, 220, 0.72) !important;
}

#gcVoiceChannelView .gc-voice-channel__header-right {
  gap: 10px !important;
}

#gcVoiceChannelView .gc-voice-channel__status-card,
#gcVoiceChannelView .gc-voice-channel__status-pill {
  min-height: 50px !important;
  height: 50px !important;
  padding: 8px 14px 8px 12px !important;
  border-radius: 16px !important;
  border: 1px solid var(--gc-voice-border) !important;
  background:
    linear-gradient(145deg, rgba(18, 32, 54, 0.92), rgba(10, 20, 36, 0.94)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 22px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#gcVoiceChannelView .gc-voice-channel__status-dot {
  width: 8px !important;
  height: 8px !important;
  background: #35d96f !important;
  box-shadow: 0 0 8px rgba(53, 217, 111, 0.35) !important;
}

#gcVoiceChannelView .gc-voice-channel__status-label {
  font-size: 13px !important;
  font-weight: 700 !important;
}

#gcVoiceChannelView .gc-voice-channel__member-count {
  font-size: 12px !important;
  color: rgba(153, 175, 210, 0.78) !important;
}

#gcVoiceChannelView .gc-voice-channel__duration {
  font-size: 11px !important;
  color: rgba(150, 172, 208, 0.7) !important;
}

#gcVoiceChannelView .gc-voice-channel__header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#gcVoiceChannelView .gc-voice-channel__action-btn {
  width: 50px !important;
  height: 50px !important;
  border-radius: 15px !important;
  border: 1px solid var(--gc-voice-border) !important;
  background: rgba(12, 24, 42, 0.82) !important;
  color: rgba(220, 232, 250, 0.94) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease !important;
}

#gcVoiceChannelView .gc-voice-channel__action-btn:hover {
  background: rgba(22, 40, 68, 0.94) !important;
  border-color: rgba(120, 168, 236, 0.48) !important;
  color: #fff !important;
}

#gcVoiceChannelView .gc-voice-channel__action-btn[aria-expanded="true"],
#gcVoiceChannelView .gc-voice-channel__action-btn:active {
  border-color: rgba(82, 161, 255, 0.72) !important;
  box-shadow:
    0 0 0 1px rgba(73, 156, 255, 0.18),
    0 0 18px rgba(38, 105, 243, 0.22) !important;
}

#gcVoiceChannelView .gc-voice-channel__action-btn:focus-visible {
  outline: 2px solid rgba(82, 161, 255, 0.95);
  outline-offset: 3px;
}

#gcVoiceChannelView .gc-voice-channel__workspace {
  gap: 18px !important;
  padding: 0 !important;
}

/* Screen share stage = large media window */
#gcVoiceChannelView .gc-voice-screen-stage {
  width: 100% !important;
  min-height: clamp(390px, 52vh, 560px) !important;
  height: clamp(390px, 52vh, 560px) !important;
  margin: 0 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  position: relative !important;
  border: 1px solid var(--gc-voice-border-strong) !important;
  background: rgba(3, 8, 15, 0.98) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 50px rgba(0, 0, 0, 0.28) !important;
}

#gcVoiceChannelView .gc-voice-screen-stage__head {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 12px !important;
  background: linear-gradient(180deg, rgba(6, 14, 26, 0.72), transparent) !important;
  border-bottom: 0 !important;
  pointer-events: none !important;
}

#gcVoiceChannelView .gc-voice-screen-stage__label {
  max-width: min(70%, 360px) !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  position: absolute !important;
  left: 12px !important;
  bottom: 12px !important;
  top: auto !important;
  padding: 8px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(108, 151, 221, 0.28) !important;
  background: rgba(10, 20, 36, 0.78) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  pointer-events: none !important;
}

#gcVoiceChannelView .gc-voice-screen-stage__body {
  padding: 10px !important;
  background: rgba(3, 8, 15, 0.98) !important;
}

#gcVoiceChannelView .gc-voice-screen-stage__video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: transparent !important;
}

#gcVoiceChannelView .gc-voice-screen-stage__expand {
  pointer-events: auto !important;
  margin-left: auto !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(108, 151, 221, 0.34) !important;
  background: rgba(12, 24, 42, 0.86) !important;
  color: rgba(140, 180, 255, 0.95) !important;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease !important;
}

#gcVoiceChannelView .gc-voice-screen-stage__expand:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(120, 168, 236, 0.55) !important;
  box-shadow: 0 8px 20px rgba(38, 105, 243, 0.2) !important;
}

#gcVoiceChannelView .gc-voice-screen-stage__expand:focus-visible {
  outline: 2px solid rgba(82, 161, 255, 0.95);
  outline-offset: 3px;
}

/* Participant stage / tiles */
#gcVoiceChannelView #gcVoiceMembersList.voice-participant-stage,
#gcVoiceChannelView #gcVoiceMembersList {
  gap: 14px !important;
  padding: 2px 2px 10px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 151, 221, 0.28) transparent;
}

#gcVoiceChannelView #gcVoiceMembersList::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

#gcVoiceChannelView #gcVoiceMembersList::-webkit-scrollbar-thumb {
  background: rgba(108, 151, 221, 0.28);
  border-radius: 999px;
}

#gcVoiceChannelView #gcVoiceMembersList::-webkit-scrollbar-track {
  background: transparent;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile {
  border-radius: 17px !important;
  border: 1px solid rgba(98, 137, 197, 0.28) !important;
  background:
    linear-gradient(145deg, rgba(20, 35, 58, 0.96), rgba(9, 19, 34, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 30px rgba(0, 0, 0, 0.2) !important;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 168, 236, 0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 14px 34px rgba(0, 0, 0, 0.26) !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile:focus-visible {
  outline: 2px solid rgba(82, 161, 255, 0.95);
  outline-offset: 3px;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile--speaking {
  border-color: rgba(65, 159, 255, 0.9) !important;
  box-shadow:
    0 0 0 1px rgba(73, 156, 255, 0.18),
    0 0 22px rgba(38, 105, 243, 0.22),
    0 12px 30px rgba(0, 0, 0, 0.2) !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-media {
  background:
    radial-gradient(circle at 50% 45%, rgba(47, 95, 175, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(25, 42, 67, 0.94), rgba(12, 25, 43, 0.98)) !important;
}

/* Single participant = large stage window */
#gcVoiceChannelView #gcVoiceMembersList[data-count="1"] {
  align-content: center !important;
  justify-content: center !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="1"] .voice-participant-tile {
  border-radius: 22px !important;
  border: 1px solid var(--gc-voice-border-strong) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 50px rgba(0, 0, 0, 0.28) !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="1"] .voice-participant-media {
  min-height: clamp(390px, 52vh, 560px) !important;
  aspect-ratio: auto !important;
  height: clamp(390px, 52vh, 560px) !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="1"] .voice-participant-avatar-wrap,
#gcVoiceChannelView #gcVoiceMembersList[data-count="1"] .voice-participant-avatar-wrap--video {
  width: clamp(150px, 17vw, 220px) !important;
  height: clamp(150px, 17vw, 220px) !important;
  max-width: clamp(150px, 17vw, 220px) !important;
  max-height: clamp(150px, 17vw, 220px) !important;
  border: 2px solid rgba(140, 180, 240, 0.42) !important;
  box-shadow:
    0 0 0 6px rgba(73, 156, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.28) !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="1"] .voice-participant-tile--speaking .voice-participant-avatar-wrap {
  border-color: rgba(100, 180, 255, 0.92) !important;
  box-shadow:
    0 0 0 7px rgba(73, 156, 255, 0.14),
    0 0 28px rgba(38, 105, 243, 0.34),
    0 16px 40px rgba(0, 0, 0, 0.28) !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-avatar-wrap {
  border: 2px solid rgba(116, 156, 218, 0.36) !important;
  box-shadow:
    0 0 0 4px rgba(73, 156, 255, 0.06),
    0 12px 30px rgba(0, 0, 0, 0.24) !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile--speaking .voice-participant-avatar-wrap {
  border-color: rgba(100, 180, 255, 0.88) !important;
  box-shadow:
    0 0 0 5px rgba(73, 156, 255, 0.12),
    0 0 22px rgba(38, 105, 243, 0.28),
    0 12px 30px rgba(0, 0, 0, 0.24) !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-video {
  background: #08111f !important;
  object-fit: cover !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-identity {
  min-height: 40px !important;
  padding: 10px 14px 11px !important;
  justify-content: flex-start !important;
  background: linear-gradient(180deg, rgba(2, 7, 15, 0.15), rgba(2, 7, 15, 0.92)) !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="1"] .voice-participant-identity {
  min-height: 48px !important;
  padding: 12px 18px 14px !important;
  justify-content: center !important;
  background: linear-gradient(180deg, rgba(2, 7, 15, 0.2), rgba(2, 7, 15, 0.94)) !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-name {
  text-align: left !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="1"] .voice-participant-name {
  text-align: center !important;
  font-size: 15px !important;
}

/* Mute / deafen badges — top-right glass circles (relative to tile) */
#gcVoiceChannelView #gcVoiceMembersList .voice-participant-media-states {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 4 !important;
  gap: 6px !important;
  pointer-events: none !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-state {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  color: #ff7a84 !important;
  background: rgba(18, 28, 46, 0.82) !important;
  border: 1px solid rgba(255, 110, 120, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 14px rgba(0, 0, 0, 0.22) !important;
}

#gcVoiceChannelView #gcVoiceMembersList .voice-participant-state svg {
  width: 14px !important;
  height: 14px !important;
}

/* Speaking badge from existing sr-only node (CSS-only reveal) */
#gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile--speaking > .voice-participant-speaking-sr:not(.hidden) {
  position: absolute !important;
  left: 50% !important;
  top: calc(50% + clamp(58px, 7vw, 92px)) !important;
  transform: translateX(-50%) !important;
  z-index: 3 !important;
  width: auto !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: nowrap !important;
  border: 1px solid rgba(108, 151, 221, 0.34) !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  color: rgba(230, 242, 255, 0.96) !important;
  background: rgba(14, 28, 50, 0.82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.22) !important;
  pointer-events: none !important;
}

#gcVoiceChannelView #gcVoiceMembersList[data-count="1"] .voice-participant-tile--speaking > .voice-participant-speaking-sr:not(.hidden) {
  top: calc(50% + clamp(78px, 9vw, 120px)) !important;
}

@media (prefers-reduced-motion: reduce) {
  #gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile,
  #gcVoiceChannelView .gc-voice-controls__round-btn,
  #gcVoiceChannelView .gc-voice-controls__disconnect,
  #gcVoiceChannelView .gc-voice-channel__action-btn,
  #gcVoiceChannelView .gc-voice-screen-stage__expand {
    transition: none !important;
  }

  #gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile:hover {
    transform: none !important;
  }
}

/* Bottom control dock */
#gcVoiceChannelView .gc-voice-channel__controls,
.chat-main--voice-active #gcVoiceChannelView .gc-voice-channel__controls {
  margin-top: 18px !important;
  min-height: 88px !important;
  height: auto !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  border-radius: 22px !important;
  gap: 12px !important;
  padding: 14px 20px !important;
  border: 1px solid rgba(89, 137, 213, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(18, 37, 68, 0.88), rgba(10, 23, 43, 0.94)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

#gcVoiceChannelView .gc-voice-controls__center {
  gap: 12px !important;
}

#gcVoiceChannelView .gc-voice-controls__round-btn {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(86, 133, 204, 0.34) !important;
  background: rgba(9, 23, 43, 0.82) !important;
  color: rgba(220, 232, 250, 0.95) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease !important;
}

#gcVoiceChannelView .gc-voice-controls__round-btn svg {
  width: 23px !important;
  height: 23px !important;
}

#gcVoiceChannelView .gc-voice-controls__round-btn:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(120, 168, 236, 0.5) !important;
  background: rgba(16, 34, 60, 0.92) !important;
}

#gcVoiceChannelView .gc-voice-controls__round-btn:focus-visible {
  outline: 2px solid rgba(82, 161, 255, 0.95);
  outline-offset: 3px;
}

#gcVoiceChannelView .gc-voice-controls__round-btn.is-on,
#gcVoiceChannelView .gc-voice-controls__round-btn--mic.is-on,
#gcVoiceChannelView .gc-voice-controls__round-btn--headphones.is-on,
#gcVoiceChannelView .gc-voice-controls__round-btn--webcam.is-on {
  background: linear-gradient(145deg, #347dff, #225ee8) !important;
  border-color: rgba(120, 170, 255, 0.5) !important;
  color: #fff !important;
  box-shadow:
    0 8px 24px rgba(38, 105, 243, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

#gcVoiceChannelView .gc-voice-controls__round-btn.is-off,
#gcVoiceChannelView .gc-voice-controls__round-btn--mic.is-off,
#gcVoiceChannelView .gc-voice-controls__round-btn--headphones.is-off,
#gcVoiceChannelView .gc-voice-controls__round-btn--deafened {
  background: rgba(72, 24, 34, 0.72) !important;
  border-color: rgba(255, 110, 120, 0.34) !important;
  color: #ff8a93 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

#gcVoiceChannelView .gc-voice-controls__round-btn.is-requesting,
#gcVoiceChannelView .gc-voice-controls__round-btn[aria-busy="true"] {
  opacity: 0.82 !important;
  cursor: progress !important;
}

#gcVoiceChannelView .gc-voice-controls__round-btn:disabled {
  opacity: 0.45 !important;
  cursor: default !important;
  transform: none !important;
}

#gcVoiceChannelView .gc-voice-controls__disconnect {
  height: 54px !important;
  min-width: 168px !important;
  width: auto !important;
  padding: 0 24px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 120, 130, 0.32) !important;
  background: linear-gradient(160deg, #e2555f 0%, #c93a46 100%) !important;
  font-weight: 750 !important;
  box-shadow:
    0 10px 24px rgba(201, 58, 70, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  transition:
    filter 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease !important;
}

#gcVoiceChannelView .gc-voice-controls__disconnect:hover {
  filter: brightness(1.04) !important;
  transform: translateY(-1px) !important;
  box-shadow:
    0 12px 28px rgba(201, 58, 70, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

#gcVoiceChannelView .gc-voice-controls__disconnect:focus-visible {
  outline: 2px solid rgba(82, 161, 255, 0.95);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  #gcVoiceChannelView #gcVoiceMembersList[data-count="1"] .voice-participant-media {
    min-height: clamp(340px, 46vh, 480px) !important;
    height: clamp(340px, 46vh, 480px) !important;
  }

  #gcVoiceChannelView .gc-voice-screen-stage {
    min-height: clamp(340px, 46vh, 480px) !important;
    height: clamp(340px, 46vh, 480px) !important;
  }

  #gcVoiceChannelView .gc-voice-channel__duration {
    display: none !important;
  }
}

@media (max-width: 820px) {
  #gcVoiceChannelView.gc-voice-channel {
    padding: 12px 14px 14px !important;
    gap: 12px !important;
  }

  #gcVoiceChannelView .gc-voice-channel__header {
    flex-wrap: wrap !important;
    min-height: 0 !important;
    row-gap: 10px !important;
  }

  #gcVoiceChannelView .gc-voice-channel__header-right {
    width: 100% !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
  }

  #gcVoiceChannelView #gcVoiceMembersList[data-count="1"] .voice-participant-media,
  #gcVoiceChannelView .gc-voice-screen-stage {
    min-height: 320px !important;
    height: 320px !important;
  }

  #gcVoiceChannelView .gc-voice-channel__controls,
  .chat-main--voice-active #gcVoiceChannelView .gc-voice-channel__controls {
    overflow-x: auto !important;
    justify-content: flex-start !important;
  }

  #gcVoiceChannelView .gc-voice-controls__center {
    flex-wrap: nowrap !important;
    min-width: max-content !important;
  }

  #gcVoiceChannelView .gc-voice-controls__disconnect {
    flex: 0 0 auto !important;
  }
}



/* ============================================================
   gc_voice_dialog_route_isolation_hotfix_v1
   Visibility guard: never let voice visual CSS override .hidden
   ============================================================ */

#gcVoiceChannelView.gc-voice-channel.hidden,
#gcVoiceChannelView.gc-voice-channel[hidden] {
  display: none !important;
}

/* ============================================================
   gc_voice_generated_layout_css_only_v1
   CSS-only: big stage + compact filmstrip + control dock.
   Does NOT set display on the root without :not(.hidden).
   ============================================================ */

#gcVoiceChannelView.gc-voice-channel:not(.hidden) {
  --voice-stage-min-height: 360px;
  --voice-stage-height: clamp(390px, 52vh, 560px);
  --voice-thumb-width: clamp(176px, 17vw, 208px);
  --voice-thumb-height: 112px;
  --voice-filmstrip-height: 128px;
  --voice-dock-height: 82px;
  min-height: 0 !important;
  gap: 0 !important;
  /* Override visual polish padding so dock margin alone owns the 16px gap */
  padding-bottom: 0 !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden) .gc-voice-channel__header {
  flex: 0 0 auto !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden) .gc-voice-channel__workspace {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding: 16px 20px 0 !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  justify-content: flex-start !important;
}

/* Hide unused stages inside layout */
#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceVideoStage.hidden,
#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceVideoStage[hidden],
#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceListenersSection.hidden,
#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceListenersSection[hidden],
#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceScreenStage.hidden,
#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceScreenStage[hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* ---------- Screen share = primary stage ---------- */
#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceScreenStage:not(.hidden) {
  flex: 0 0 auto !important;
  width: var(--gc-screen-stage-width, 100%) !important;
  height: var(--gc-screen-stage-height, auto) !important;
  aspect-ratio: var(--gc-screen-aspect, 16 / 9) !important;
  align-self: center !important;
  margin-inline: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  border: 1px solid rgba(103, 151, 225, 0.34) !important;
  box-sizing: border-box !important;
  background:
    radial-gradient(circle at 50% 44%, rgba(47, 94, 176, 0.16), transparent 42%),
    rgba(2, 7, 14, 0.98) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 48px rgba(0, 0, 0, 0.28) !important;
  display: block !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceScreenStage:not(.hidden) .gc-voice-screen-stage__head {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceScreenStage:not(.hidden) .gc-voice-screen-stage__label {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  bottom: auto !important;
  right: auto !important;
  z-index: 3 !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  max-width: min(70%, 360px) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(111, 160, 230, 0.32) !important;
  background: rgba(8, 22, 42, 0.76) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px !important;
  font-weight: 700 !important;
  pointer-events: none !important;
  margin: 0 !important;
  box-shadow: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceScreenStage:not(.hidden) .gc-voice-screen-stage__expand {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 4 !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  border-radius: 13px !important;
  pointer-events: auto !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceScreenStage:not(.hidden) .gc-voice-screen-stage__body {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  flex: none !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceScreenStage:not(.hidden) .gc-voice-screen-stage__video {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-sizing: border-box !important;
  background: #02070e !important;
}

/* ---------- Participants as filmstrip while screen is visible ---------- */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList.voice-participant-stage,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList {
  flex: 0 0 var(--voice-filmstrip-height) !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: var(--voice-filmstrip-height) !important;
  height: var(--voice-filmstrip-height) !important;
  max-height: var(--voice-filmstrip-height) !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  align-content: stretch !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 0 2px 8px !important;
  margin: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x proximity !important;
  overscroll-behavior-x: contain;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-auto-rows: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList[data-count],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList[data-count="1"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList[data-count="2"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList[data-count="3"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList[data-count="4"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList[data-count="5"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList[data-count="many"] {
  display: flex !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  justify-content: flex-start !important;
  justify-items: stretch !important;
  place-items: stretch !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  .voice-participant-tile {
  flex: 0 0 var(--voice-thumb-width) !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: var(--voice-thumb-width) !important;
  align-self: center !important;
  width: var(--voice-thumb-width) !important;
  min-width: var(--voice-thumb-width) !important;
  max-width: var(--voice-thumb-width) !important;
  height: var(--voice-thumb-height) !important;
  min-height: var(--voice-thumb-height) !important;
  max-height: var(--voice-thumb-height) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  scroll-snap-align: start !important;
  grid-column: auto !important;
  justify-self: auto !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  .voice-participant-media {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  .voice-participant-video {
  object-fit: cover !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  .voice-participant-avatar-wrap,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  .voice-participant-avatar-wrap--video {
  width: 68px !important;
  height: 68px !important;
  max-width: 68px !important;
  max-height: 68px !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  .voice-participant-identity {
  position: absolute !important;
  left: 10px !important;
  right: 10px !important;
  bottom: 8px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: auto !important;
  padding: 6px 8px !important;
  border-radius: 10px !important;
  background: rgba(4, 11, 22, 0.7) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: flex-start !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  .voice-participant-name {
  font-size: 12px !important;
  line-height: 14px !important;
}

/* ---------- No screen: first tile = stage, rest = filmstrip ---------- */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList.voice-participant-stage,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-content: stretch !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 16px 12px !important;
  padding: 0 2px 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList[data-count],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList[data-count="1"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList[data-count="2"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList[data-count="3"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList[data-count="4"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList[data-count="5"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList[data-count="many"] {
  display: flex !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  justify-content: flex-start !important;
  place-items: stretch !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:first-of-type {
  flex: 1 1 100% !important;
  flex-grow: 1 !important;
  flex-shrink: 1 !important;
  flex-basis: 100% !important;
  align-self: stretch !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: var(--voice-stage-height) !important;
  min-height: var(--voice-stage-min-height) !important;
  max-height: 560px !important;
  border-radius: 22px !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 48%, rgba(47, 99, 184, 0.2), transparent 35%),
    linear-gradient(145deg, rgba(25, 44, 72, 0.97), rgba(9, 21, 38, 0.99)) !important;
  border: 1px solid rgba(104, 153, 224, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 48px rgba(0, 0, 0, 0.27) !important;
  grid-column: auto !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:first-of-type
  .voice-participant-media {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:first-of-type:not(.voice-participant-tile--webcam)
  .voice-participant-avatar-state {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:first-of-type
  .voice-participant-avatar-wrap,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:first-of-type
  .voice-participant-avatar-wrap--video {
  width: clamp(160px, 17vw, 220px) !important;
  height: clamp(160px, 17vw, 220px) !important;
  max-width: clamp(160px, 17vw, 220px) !important;
  max-height: clamp(160px, 17vw, 220px) !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid rgba(77, 151, 255, 0.72) !important;
  box-shadow:
    0 0 0 9px rgba(41, 111, 217, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.32) !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:first-of-type
  .voice-participant-avatar-wrap img,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:first-of-type
  .voice-participant-avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:first-of-type
  .voice-participant-identity {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 24px !important;
  width: max-content !important;
  max-width: calc(100% - 40px) !important;
  min-height: 0 !important;
  transform: translateX(-50%) !important;
  padding: 8px 13px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(92, 145, 221, 0.28) !important;
  background: rgba(5, 14, 27, 0.74) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:first-of-type.voice-participant-tile--webcam
  .voice-participant-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:first-of-type.voice-participant-tile--webcam
  .voice-participant-identity {
  left: 16px !important;
  transform: none !important;
  justify-content: flex-start !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:not(:first-of-type) {
  flex: 0 0 var(--voice-thumb-width) !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: var(--voice-thumb-width) !important;
  width: var(--voice-thumb-width) !important;
  min-width: var(--voice-thumb-width) !important;
  max-width: var(--voice-thumb-width) !important;
  height: var(--voice-thumb-height) !important;
  min-height: var(--voice-thumb-height) !important;
  max-height: var(--voice-thumb-height) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  grid-column: auto !important;
  justify-self: auto !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:not(:first-of-type)
  .voice-participant-media {
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:not(:first-of-type)
  .voice-participant-avatar-wrap,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:not(:first-of-type)
  .voice-participant-avatar-wrap--video {
  width: 68px !important;
  height: 68px !important;
  max-width: 68px !important;
  max-height: 68px !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:not(:first-of-type)
  .voice-participant-identity {
  position: absolute !important;
  left: 10px !important;
  right: 10px !important;
  bottom: 8px !important;
  min-height: 0 !important;
  padding: 6px 8px !important;
  border-radius: 10px !important;
  background: rgba(4, 11, 22, 0.7) !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:not(:first-of-type)
  .voice-participant-video {
  object-fit: cover !important;
}

/* Neutralize old nth-child spanning under new layout */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList[data-count="3"] > .voice-participant-tile:nth-child(3),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList[data-count="5"] > .voice-participant-tile:nth-child(-n + 3),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList[data-count="5"] > .voice-participant-tile:nth-child(4),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList[data-count="5"] > .voice-participant-tile:nth-child(5) {
  grid-column: auto !important;
  width: var(--voice-thumb-width) !important;
  justify-self: auto !important;
}

/* ---------- Control dock ---------- */
#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceControls.gc-voice-channel__controls,
#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceControls {
  flex: 0 0 var(--voice-dock-height) !important;
  width: calc(100% - 40px) !important;
  min-height: var(--voice-dock-height) !important;
  max-height: var(--voice-dock-height) !important;
  height: var(--voice-dock-height) !important;
  margin: 16px 20px 16px !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(91, 139, 213, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(18, 38, 69, 0.9), rgba(9, 22, 41, 0.96)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 38px rgba(0, 0, 0, 0.25) !important;
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  box-sizing: border-box !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceControls .gc-voice-controls__round-btn {
  width: 52px !important;
  height: 52px !important;
  flex: 0 0 52px !important;
  border-radius: 50% !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceDisconnectBtn {
  height: 52px !important;
  padding: 0 24px !important;
  border-radius: 18px !important;
  flex: 0 0 auto !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  #gcVoiceChannelView.gc-voice-channel:not(.hidden) {
    --voice-stage-min-height: 320px;
    --voice-stage-height: clamp(320px, 47vh, 500px);
    --voice-thumb-width: 176px;
    --voice-thumb-height: 104px;
    --voice-filmstrip-height: 116px;
  }
}

@media (max-width: 760px) {
  #gcVoiceChannelView.gc-voice-channel:not(.hidden) {
    --voice-stage-min-height: 280px;
    --voice-stage-height: clamp(280px, 42vh, 420px);
    --voice-thumb-width: 152px;
    --voice-thumb-height: 92px;
    --voice-filmstrip-height: 104px;
  }

  #gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceControls {
    overflow-x: auto !important;
    justify-content: flex-start !important;
  }
}

/* ============================================================
   gc_voice_visual_edgecases_v2
   Speaking outline, one-participant fill, screen ratio helpers.
   ============================================================ */

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList
  .voice-participant-tile.voice-participant-tile--speaking {
  border-color: rgba(61, 151, 255, 0.96) !important;
  box-shadow:
    inset 0 0 0 1px rgba(79, 164, 255, 0.24),
    0 0 0 2px rgba(61, 151, 255, 0.16),
    0 0 26px rgba(31, 116, 238, 0.28),
    0 16px 42px rgba(0, 0, 0, 0.28) !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList
  .voice-participant-tile.voice-participant-tile--speaking::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  border: 2px solid rgba(72, 158, 255, 0.95);
  border-radius: inherit;
  box-shadow:
    inset 0 0 18px rgba(47, 136, 255, 0.12),
    0 0 20px rgba(47, 136, 255, 0.22);
  pointer-events: none;
  animation: gc-voice-speaking-glow 1.8s ease-in-out infinite;
}

@keyframes gc-voice-speaking-glow {
  0%,
  100% {
    opacity: 0.86;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #gcVoiceChannelView.gc-voice-channel:not(.hidden)
    #gcVoiceMembersList
    .voice-participant-tile.voice-participant-tile--speaking::after {
    animation: none;
  }
}

/* One participant, no screen: fill height to dock */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden))):has(
    #gcVoiceMembersList > .voice-participant-tile:only-child
  ) {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 16px 20px 0 !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden))):has(
    #gcVoiceMembersList > .voice-participant-tile:only-child
  )
  #gcVoiceMembersList.voice-participant-stage,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden))):has(
    #gcVoiceMembersList > .voice-participant-tile:only-child
  )
  #gcVoiceMembersList {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  gap: 0 !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden))):has(
    #gcVoiceMembersList > .voice-participant-tile:only-child
  )
  #gcVoiceMembersList
  > .voice-participant-tile:only-child,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden))):has(
    #gcVoiceMembersList > .voice-participant-tile:only-child
  )
  #gcVoiceMembersList
  > .voice-participant-tile:first-of-type:only-child {
  flex: none !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: clamp(280px, 46vh, 420px) !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 22px !important;
}

/* ============================================================
   gc_voice_footer_labels_polish_v1
   Unified full-width footer bar + mute/deafen on the right.
   ============================================================ */

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList
  .voice-participant-tile {
  position: relative !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList
  .voice-participant-identity {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  z-index: 6 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 40px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  transform: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(92, 142, 220, 0.16) !important;
  background: rgba(5, 13, 25, 0.74) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList
  .voice-participant-premium-icon {
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList
  .voice-participant-name {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(248, 251, 255, 0.98) !important;
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList
  .voice-participant-source-meta {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 46% !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: rgba(196, 210, 235, 0.82) !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList
  .voice-participant-source-meta::before {
  content: "•";
  flex: 0 0 auto;
  color: rgba(170, 190, 220, 0.72);
  font-weight: 700;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList
  .voice-participant-media-states {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
  pointer-events: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList
  .voice-participant-state {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  color: rgba(255, 117, 143, 0.95) !important;
  background: rgba(38, 10, 18, 0.68) !important;
  border: 1px solid rgba(255, 93, 123, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  box-sizing: border-box !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList
  .voice-participant-state svg {
  width: 13px !important;
  height: 13px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Large stage tiles: slightly roomier footer */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:first-of-type
  .voice-participant-identity,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:first-of-type.voice-participant-tile--webcam
  .voice-participant-identity,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden))):has(
    #gcVoiceMembersList > .voice-participant-tile:only-child
  )
  #gcVoiceMembersList
  .voice-participant-identity,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMembersList[data-count="1"]
  .voice-participant-identity {
  left: 14px !important;
  right: 14px !important;
  bottom: 14px !important;
  width: auto !important;
  max-width: none !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
  border-radius: 12px !important;
  transform: none !important;
  justify-content: flex-start !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:first-of-type
  .voice-participant-name,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden))):has(
    #gcVoiceMembersList > .voice-participant-tile:only-child
  )
  #gcVoiceMembersList
  .voice-participant-name {
  font-size: 14px !important;
  line-height: 18px !important;
  text-align: left !important;
}

/* Compact filmstrip / thumbnail footers */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  .voice-participant-identity,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:not(:first-of-type)
  .voice-participant-identity {
  left: 8px !important;
  right: 8px !important;
  bottom: 8px !important;
  min-height: 34px !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  gap: 6px !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  .voice-participant-name,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:not(:first-of-type)
  .voice-participant-name {
  font-size: 12px !important;
  line-height: 15px !important;
  font-weight: 700 !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  .voice-participant-source-meta,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:not(:first-of-type)
  .voice-participant-source-meta {
  font-size: 11px !important;
  line-height: 14px !important;
  max-width: 42% !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  .voice-participant-state,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:not(:first-of-type)
  .voice-participant-state {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  .voice-participant-state svg,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  .voice-participant-tile:not(:first-of-type)
  .voice-participant-state svg {
  width: 12px !important;
  height: 12px !important;
}

/* Screen stage bottom footer (owner + type); top badge kept as-is */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage:not(.hidden)
  .gc-voice-screen-stage__footer {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  z-index: 5 !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(92, 142, 220, 0.16) !important;
  background: rgba(5, 13, 25, 0.74) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage:not(.hidden)
  .gc-voice-screen-stage__footer.hidden,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage:not(.hidden)
  .gc-voice-screen-stage__footer[hidden] {
  display: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage:not(.hidden)
  .gc-voice-screen-stage__footer-main {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow: hidden !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage:not(.hidden)
  .gc-voice-screen-stage__footer-name {
  min-width: 0 !important;
  color: rgba(248, 251, 255, 0.98) !important;
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage:not(.hidden)
  .gc-voice-screen-stage__footer-dot {
  flex: 0 0 auto !important;
  color: rgba(170, 190, 220, 0.72) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage:not(.hidden)
  .gc-voice-screen-stage__footer-meta {
  min-width: 0 !important;
  color: rgba(196, 210, 235, 0.82) !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage:not(.hidden)
  .gc-voice-screen-stage__footer-states {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage:not(.hidden)
  .gc-voice-screen-stage__footer-states
  .voice-participant-state {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  color: rgba(255, 117, 143, 0.95) !important;
  background: rgba(38, 10, 18, 0.68) !important;
  border: 1px solid rgba(255, 93, 123, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  box-sizing: border-box !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage:not(.hidden)
  .gc-voice-screen-stage__footer-states
  .voice-participant-state svg {
  width: 13px !important;
  height: 13px !important;
  display: block !important;
}

/* ============================================================
   gc_voice_footer_menu_filmstrip_hotfix_v1
   Source-label split, member-menu viewport fit, filmstrip center.
   ============================================================ */

/* Member menu geometry (fixed to viewport) */
#gcVoiceMemberMenu.gc-voice-member-menu,
.gc-voice-member-menu {
  position: fixed !important;
  z-index: 1500 !important;
  width: min(320px, calc(100vw - 24px)) !important;
  min-width: 0 !important;
  max-width: min(320px, calc(100vw - 24px)) !important;
  max-height: min(420px, calc(100vh - 24px)) !important;
  padding: 8px !important;
  border-radius: 16px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  /* Do NOT set inset/top/left here — JS owns coordinates */
  right: auto;
  bottom: auto;
  transform: none !important;
}

#gcVoiceMemberMenu.gc-voice-member-menu.hidden,
.gc-voice-member-menu.hidden {
  display: none !important;
}

#gcVoiceMemberMenu .gc-voice-member-menu__item,
.gc-voice-member-menu .gc-voice-member-menu__item {
  min-height: 40px !important;
  height: auto !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

#gcVoiceMemberMenu .gc-voice-member-menu__volume,
.gc-voice-member-menu .gc-voice-member-menu__volume {
  width: 100% !important;
  min-width: 0 !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
}

#gcVoiceMemberMenu .gc-voice-member-menu__volume-slider,
.gc-voice-member-menu .gc-voice-member-menu__volume-slider {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#gcVoiceMemberMenu .gc-voice-member-menu__sep,
.gc-voice-member-menu .gc-voice-member-menu__sep {
  margin: 4px 6px !important;
}

#gcVoiceMemberMenu .gc-voice-member-menu__quality,
.gc-voice-member-menu .gc-voice-member-menu__quality {
  width: 100% !important;
  min-width: 0 !important;
  padding: 8px 12px !important;
  box-sizing: border-box !important;
  word-break: break-word !important;
}

/* Filmstrip: center when few tiles, keep left+scroll when overflow.
   Use flex spacers (::before/::after) — more reliable than safe center
   inside overflow-x scroll containers. */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList.voice-participant-stage,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList[data-count],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList[data-count="1"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList[data-count="2"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList[data-count="3"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList[data-count="4"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList[data-count="5"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList[data-count="many"] {
  justify-content: flex-start !important;
  justify-items: stretch !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList::before,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList::after {
  content: "" !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* No-screen: keep large first tile full-width; center remaining mini tiles on wrap row */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList:not([data-count="1"]):not([data-count="0"]),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList[data-count="2"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList[data-count="3"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList[data-count="4"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList[data-count="5"],
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList[data-count="many"] {
  justify-content: center !important;
}

/* ============================================================
   gc_voice_participant_screen_stage_switch_v2
   Presentation-only switch WITHOUT moving participant tiles.
   Source model: participant:<id> + screen:<id>
   ============================================================ */

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden)) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-content: flex-start !important;
  align-items: stretch !important;
  justify-content: safe center !important;
  gap: 16px 12px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

/* Tiles stay DOM-children of members list; contents lets them join workspace flex */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList.voice-participant-stage,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList {
  display: contents !important;
  flex: unset !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:first-of-type {
  flex: 1 1 100% !important;
  flex-grow: 1 !important;
  flex-shrink: 1 !important;
  flex-basis: 100% !important;
  order: 1 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: var(--voice-stage-height) !important;
  min-height: var(--voice-stage-min-height) !important;
  max-height: 560px !important;
  border-radius: 22px !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  cursor: default !important;
  background:
    radial-gradient(circle at 50% 48%, rgba(47, 99, 184, 0.2), transparent 35%),
    linear-gradient(145deg, rgba(25, 44, 72, 0.97), rgba(9, 21, 38, 0.99)) !important;
  border: 1px solid rgba(104, 153, 224, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 48px rgba(0, 0, 0, 0.27) !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active
  .voice-participant-media {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Profile active: circular avatar only — never stretch img to full tile */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:not(.voice-participant-tile--webcam)
  .voice-participant-avatar-wrap {
  width: clamp(180px, 18vw, 220px) !important;
  height: clamp(180px, 18vw, 220px) !important;
  max-width: clamp(180px, 18vw, 220px) !important;
  max-height: clamp(180px, 18vw, 220px) !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:not(.voice-participant-tile--webcam)
  .voice-participant-avatar-wrap
  img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active.voice-participant-tile--webcam
  .voice-participant-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active.voice-participant-tile--local
  .voice-participant-video {
  transform: scaleX(-1) !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active
  .voice-participant-identity {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  z-index: 6 !important;
  pointer-events: none !important;
}

/* Participant thumbnails + demoted screen in filmstrip row */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:first-of-type {
  flex: 0 0 var(--voice-thumb-width) !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: var(--voice-thumb-width) !important;
  order: 3 !important;
  width: var(--voice-thumb-width) !important;
  min-width: var(--voice-thumb-width) !important;
  max-width: var(--voice-thumb-width) !important;
  height: var(--voice-thumb-height) !important;
  min-height: var(--voice-thumb-height) !important;
  max-height: var(--voice-thumb-height) !important;
  border-radius: 16px !important;
  cursor: pointer !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar-wrap {
  width: 68px !important;
  height: 68px !important;
  max-width: 68px !important;
  max-height: 68px !important;
  border-radius: 50% !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden) {
  flex: 0 0 var(--voice-thumb-width) !important;
  order: 3 !important;
  width: var(--voice-thumb-width) !important;
  min-width: var(--voice-thumb-width) !important;
  max-width: var(--voice-thumb-width) !important;
  height: var(--voice-thumb-height) !important;
  min-height: var(--voice-thumb-height) !important;
  max-height: var(--voice-thumb-height) !important;
  aspect-ratio: auto !important;
  align-self: center !important;
  margin: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: block !important;
  cursor: pointer !important;
  position: relative !important;
  box-shadow: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__body {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #02070e !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__head {
  display: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__expand {
  display: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__footer {
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  bottom: 6px !important;
  z-index: 3 !important;
  padding: 4px 8px !important;
  border-radius: 10px !important;
  background: rgba(4, 11, 22, 0.72) !important;
  pointer-events: none !important;
}

/* Screen remains the big stage when selected */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-active:not(.hidden) {
  order: 1 !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList {
  order: 2 !important;
}

/* Speaking outline still works when membersList uses display:contents */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.voice-participant-tile--speaking {
  border-color: rgba(61, 151, 255, 0.96) !important;
  box-shadow:
    inset 0 0 0 1px rgba(79, 164, 255, 0.24),
    0 0 0 2px rgba(61, 151, 255, 0.16),
    0 0 26px rgba(31, 116, 238, 0.28),
    0 16px 42px rgba(0, 0, 0, 0.28) !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.voice-participant-tile--speaking::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  border: 2px solid rgba(72, 158, 255, 0.95);
  border-radius: inherit;
  box-shadow:
    inset 0 0 18px rgba(47, 136, 255, 0.12),
    0 0 20px rgba(47, 136, 255, 0.22);
  pointer-events: none;
  animation: gc-voice-speaking-glow 1.8s ease-in-out infinite;
}

/* No screen: selected participant is stage; others stay thumbs (no DOM move) */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:first-of-type,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:not(:first-of-type) {
  flex: 1 1 100% !important;
  order: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: var(--voice-stage-height) !important;
  min-height: var(--voice-stage-min-height) !important;
  max-height: 560px !important;
  border-radius: 22px !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:first-of-type {
  flex: 0 0 var(--voice-thumb-width) !important;
  order: 1 !important;
  width: var(--voice-thumb-width) !important;
  min-width: var(--voice-thumb-width) !important;
  max-width: var(--voice-thumb-width) !important;
  height: var(--voice-thumb-height) !important;
  min-height: var(--voice-thumb-height) !important;
  max-height: var(--voice-thumb-height) !important;
  border-radius: 16px !important;
  cursor: pointer !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:not(.voice-participant-tile--webcam)
  .voice-participant-avatar-wrap {
  width: clamp(180px, 18vw, 220px) !important;
  height: clamp(180px, 18vw, 220px) !important;
  max-width: clamp(180px, 18vw, 220px) !important;
  max-height: clamp(180px, 18vw, 220px) !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:not(.voice-participant-tile--webcam)
  .voice-participant-avatar-wrap
  img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active.voice-participant-tile--webcam
  .voice-participant-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ============================================================
   gc_voice_camera_aspect_fix_v1
   - Hide visible "Говорит" badge (keep outline / sr-only)
   - Restore tall webcam stage geometry for participant-active
   ============================================================ */

/* Keep speaking-sr accessibility text, but never show the pill badge */
#gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile--speaking > .voice-participant-speaking-sr,
#gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile--speaking > .voice-participant-speaking-sr:not(.hidden),
#gcVoiceChannelView #gcVoiceMembersList[data-count="1"] .voice-participant-tile--speaking > .voice-participant-speaking-sr:not(.hidden),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile--speaking
  > .voice-participant-speaking-sr,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile--speaking
  > .voice-participant-speaking-sr:not(.hidden) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  display: block !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/*
 * Participant-active + visible screen: give webcam/profile the full stage row
 * (1fr), not a short fixed clamp that visually squashes the camera.
 */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden)) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-content: stretch !important;
  align-items: stretch !important;
  justify-content: safe center !important;
  gap: 16px 12px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  min-height: 0 !important;
  height: 100% !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList.voice-participant-stage,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList {
  display: contents !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:first-of-type {
  flex: 1 0 100% !important;
  order: 1 !important;
  align-self: stretch !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: calc(100% - var(--voice-filmstrip-height) - 16px) !important;
  min-height: max(var(--voice-stage-min-height), 420px) !important;
  max-height: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active
  .voice-participant-media {
  position: relative !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active.voice-participant-tile--webcam
  .voice-participant-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:first-of-type,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden) {
  flex: 0 0 var(--voice-thumb-width) !important;
  order: 3 !important;
  align-self: center !important;
  width: var(--voice-thumb-width) !important;
  min-width: var(--voice-thumb-width) !important;
  max-width: var(--voice-thumb-width) !important;
  height: var(--voice-thumb-height) !important;
  min-height: var(--voice-thumb-height) !important;
  max-height: var(--voice-thumb-height) !important;
}

/* No-screen participant-active webcam: also allow taller fill */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active.voice-participant-tile--webcam {
  height: auto !important;
  min-height: max(var(--voice-stage-min-height), clamp(420px, 58vh, 640px)) !important;
  max-height: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active.voice-participant-tile--webcam
  .voice-participant-media {
  position: relative !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active.voice-participant-tile--webcam
  .voice-participant-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* ============================================================
   gc_voice_overlay_drawer_visual_rework_v2
   REPLACE first-variant layout mistakes:
   - constant full-size stage (no filmstrip row reservation)
   - thumbnails as ABSOLUTE overlay drawer over stage
   - arrow attached to stage bottom (single border)
   Does NOT touch WebRTC / streams / tracks / srcObject / routing.
   ============================================================ */

#gcVoiceChannelView.gc-voice-channel:not(.hidden) {
  --voice-stage-radius: 24px;
  --voice-stage-min-height: 0px;
  --voice-stage-height: 100%;
  --voice-thumb-width: 154px;
  --voice-thumb-height: 86px;
  --voice-filmstrip-height: 0px;
  --voice-dock-height: 80px;
  --voice-drawer-height: 118px;
  --voice-drawer-bottom: 64px;
  --gc-active-source-ratio: 16 / 9;
  gap: 0 !important;
  padding-bottom: 0 !important;
}

/* Workspace = stage host only (fills between header and arrow/dock) */
#gcVoiceChannelView.gc-voice-channel:not(.hidden) .gc-voice-channel__workspace,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden)),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden)),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden))) {
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
  flex-direction: unset !important;
  flex-wrap: nowrap !important;
  align-content: unset !important;
  align-items: unset !important;
  justify-content: unset !important;
  gap: 0 !important;
  padding: 12px 18px 8px !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

/* Members list = absolute stage host (tiles stay as children; no display:contents row) */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList.voice-participant-stage,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList.voice-participant-stage,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: block !important;
  flex: unset !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 0 !important;
  pointer-events: none !important;
}

/* Glass overlay drawer chrome (does not affect stage geometry) */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: var(--voice-drawer-bottom);
  z-index: 18;
  box-sizing: border-box;
  width: min(82%, 920px);
  height: var(--voice-drawer-height);
  transform: translate(-50%, 16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border: 1px solid rgba(111, 163, 235, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 30, 48, 0.8), rgba(5, 13, 25, 0.9));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition:
    opacity 160ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace
  #gcVoiceMembersList::before {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 160ms ease,
    transform 180ms ease;
}

/* ---------- Active participant stage: fill host, NEVER shrink for drawer ---------- */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:first-of-type,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:not(:first-of-type),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:first-of-type,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:first-of-type,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:not(:first-of-type),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile:first-of-type,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:first-of-type {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  z-index: 1 !important;
  order: unset !important;
  flex: unset !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: var(--voice-stage-radius) !important;
  border: 1px solid rgba(76, 151, 255, 0.74) !important;
  box-shadow:
    0 0 0 1px rgba(63, 137, 255, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(33, 113, 230, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  cursor: default !important;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(42, 92, 180, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(8, 16, 30, 0.98), rgba(4, 10, 20, 0.99)) !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active
  .voice-participant-media,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active.voice-participant-tile--webcam
  .voice-participant-media {
  position: relative !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active.voice-participant-tile--webcam
  .voice-participant-video,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active.voice-participant-tile--webcam
  .voice-participant-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active.voice-participant-tile--local.voice-participant-tile--webcam
  .voice-participant-video {
  transform: scaleX(-1) !important;
}

/* Profile avatar stays circular on active stage */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active:not(.voice-participant-tile--webcam)
  .voice-participant-avatar-wrap {
  width: 200px !important;
  height: 200px !important;
  max-width: 200px !important;
  max-height: 200px !important;
  border-radius: 50% !important;
}

/* Identity footer glass on active stage */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-active
  .voice-participant-identity {
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  bottom: 14px !important;
  z-index: 6 !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(96, 156, 255, 0.28) !important;
  background: rgba(6, 14, 28, 0.62) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  pointer-events: none !important;
}

/* ---------- Active screen stage: fill available area, no filmstrip shrink ---------- */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage.is-presentation-active:not(.hidden),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen
  #gcVoiceScreenStage.is-presentation-active:not(.hidden),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage:not(.hidden):not(.is-presentation-thumbnail) {
  position: absolute !important;
  z-index: 1 !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: var(--gc-screen-stage-width, min(100%, calc(100cqh * var(--gc-active-source-ratio, 16 / 9)))) !important;
  height: var(--gc-screen-stage-height, 100%) !important;
  max-width: calc(100% - 0px) !important;
  max-height: 100% !important;
  margin: 0 !important;
  flex: unset !important;
  order: unset !important;
  align-self: unset !important;
  aspect-ratio: var(--gc-screen-aspect, var(--gc-active-source-ratio, 16 / 9)) !important;
  border-radius: var(--voice-stage-radius) !important;
  border: 1px solid rgba(76, 151, 255, 0.74) !important;
  box-shadow:
    0 0 0 1px rgba(63, 137, 255, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(33, 113, 230, 0.12) !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen
  #gcVoiceScreenStage.is-presentation-active:not(.hidden) {
  /* Host for absolute centering is the workspace padding box */
  /* JS still sets pixel width/height from available workspace */
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage.is-presentation-active:not(.hidden)
  .gc-voice-screen-stage__footer {
  left: 14px !important;
  right: 14px !important;
  bottom: 14px !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(96, 156, 255, 0.28) !important;
  background: rgba(6, 14, 28, 0.62) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  z-index: 6 !important;
}

/* When screen is active, members host still overlays for drawer thumbs only */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen
  #gcVoiceMembersList {
  z-index: 3 !important;
}

/* ---------- Overlay thumbnails (never a layout row) ---------- */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:first-of-type,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden) {
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  bottom: calc(var(--voice-drawer-bottom) + 16px) !important;
  left: calc(50% + (var(--thumb-i, 0) - (var(--thumb-n, 1) - 1) / 2) * 164px) !important;
  z-index: 20 !important;
  order: unset !important;
  flex: 0 0 var(--voice-thumb-width) !important;
  width: var(--voice-thumb-width) !important;
  min-width: var(--voice-thumb-width) !important;
  max-width: var(--voice-thumb-width) !important;
  height: var(--voice-thumb-height) !important;
  min-height: var(--voice-thumb-height) !important;
  max-height: var(--voice-thumb-height) !important;
  margin: 0 !important;
  border-radius: 13px !important;
  transform: translateX(-50%) translateY(16px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition:
    opacity 160ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:first-of-type,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:first-of-type,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:first-of-type,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace.presentation-active-screen
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden),
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden) {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
  transition:
    opacity 160ms ease,
    transform 180ms ease !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar-wrap {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  border-radius: 50% !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-identity,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__footer {
  left: 6px !important;
  right: 6px !important;
  bottom: 6px !important;
  min-height: 26px !important;
  max-height: 28px !important;
  padding: 3px 8px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__head,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__expand {
  display: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__body,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* ---------- Arrow: attached to stage bottom, single border ---------- */
#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceMiniSourcesToggle.gc-voice-mini-sources-toggle {
  position: relative !important;
  z-index: 30 !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: -22px auto 16px !important;
  padding: 0 !important;
  border-radius: 15px !important;
  border: 1px solid rgba(86, 157, 255, 0.7) !important;
  outline: none !important;
  background:
    linear-gradient(180deg, rgba(21, 42, 72, 0.96), rgba(8, 20, 39, 0.98)) !important;
  color: rgba(235, 244, 255, 0.95) !important;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(45, 126, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  cursor: pointer !important;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMiniSourcesToggle.gc-voice-mini-sources-toggle::before,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMiniSourcesToggle.gc-voice-mini-sources-toggle::after {
  content: none !important;
  display: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMiniSourcesToggle.gc-voice-mini-sources-toggle
  .gc-voice-mini-sources-toggle__icon {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  filter: none !important;
  transition: transform 180ms ease !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMiniSourcesToggle.gc-voice-mini-sources-toggle:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(120, 176, 255, 0.85) !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(45, 126, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMiniSourcesToggle.gc-voice-mini-sources-toggle:active {
  transform: translateY(0) !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMiniSourcesToggle.gc-voice-mini-sources-toggle:focus {
  outline: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMiniSourcesToggle.gc-voice-mini-sources-toggle:focus-visible {
  outline: 2px solid rgba(108, 173, 255, 0.88) !important;
  outline-offset: 3px !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceMiniSourcesToggle.gc-voice-mini-sources-toggle.is-open
  .gc-voice-mini-sources-toggle__icon {
  transform: rotate(180deg) !important;
}

/* ---------- Control dock: immediately under arrow ---------- */
#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceControls.gc-voice-channel__controls,
#gcVoiceChannelView.gc-voice-channel:not(.hidden) #gcVoiceControls {
  flex: 0 0 var(--voice-dock-height) !important;
  width: calc(100% - 40px) !important;
  min-height: var(--voice-dock-height) !important;
  max-height: var(--voice-dock-height) !important;
  height: var(--voice-dock-height) !important;
  margin: 0 20px 16px !important;
  padding: 12px 18px !important;
  border-radius: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Speaking badge stays sr-only */
#gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile--speaking > .voice-participant-speaking-sr,
#gcVoiceChannelView #gcVoiceMembersList .voice-participant-tile--speaking > .voice-participant-speaking-sr:not(.hidden),
#gcVoiceChannelView #gcVoiceMembersList[data-count="1"] .voice-participant-tile--speaking > .voice-participant-speaking-sr:not(.hidden) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Route isolation guard */
#gcVoiceChannelView.gc-voice-channel.hidden,
#gcVoiceChannelView.gc-voice-channel[hidden] {
  display: none !important;
}

/* ============================================================
   gc_voice_overlay_drawer_line_hotfix_v1
   Base: gc_voice_overlay_drawer_visual_rework_v2
   Remove ONLY the wide horizontal line from members ::before/::after
   (V2 glass chrome width:min(82%,920px) + filmstrip height:1px spacers).
   Does NOT add a new glass shell, drawer width controller, or z-index stack.
   Does NOT change stage / thumbnail / arrow / dock geometry.
   ============================================================ */

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList::before,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList::after,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList::before,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList::after,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList::before,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList::after,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace
  #gcVoiceMembersList::before,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace
  #gcVoiceMembersList::after,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList::before,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList::after {
  content: none !important;
  display: none !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: none !important;
}

/* ============================================================
   gc_voice_overlay_thumbnail_visual_polish_v1
   Stabilize overlay thumbnail card internals only.
   Specificity beats filmstrip :has(#gcVoiceScreenStage) ID bump.
   ============================================================ */

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden) {
  display: block !important;
  flex-direction: unset !important;
  align-items: unset !important;
  justify-content: unset !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  background:
    linear-gradient(160deg, rgba(18, 30, 48, 0.98), rgba(7, 14, 26, 0.98)) !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-media,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-media,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-media,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-media,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-media {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  flex: none !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 0 22px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:not(.voice-participant-tile--webcam)
  .voice-participant-avatar-state:not(.hidden),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:not(.voice-participant-tile--webcam)
  .voice-participant-avatar-state:not(.hidden),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:not(.voice-participant-tile--webcam)
  .voice-participant-avatar-state:not(.hidden),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:not(.voice-participant-tile--webcam)
  .voice-participant-avatar-state:not(.hidden),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:not(.voice-participant-tile--webcam)
  .voice-participant-avatar-state:not(.hidden) {
  position: absolute !important;
  inset: 0 0 22px 0 !important;
  display: grid !important;
  place-items: center !important;
  place-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar-wrap,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar-wrap--video,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar-wrap,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar-wrap--video,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar-wrap,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar-wrap,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar-wrap {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transform: none !important;
  align-self: center !important;
  justify-self: center !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar--placeholder,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar--placeholder,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-avatar.is-avatar-placeholder {
  object-fit: contain !important;
  padding: 18% !important;
  box-sizing: border-box !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-video,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-video,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-identity,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-identity,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-identity,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-identity,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-identity,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__footer,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__footer {
  position: absolute !important;
  left: 5px !important;
  right: 5px !important;
  bottom: 5px !important;
  z-index: 4 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  width: auto !important;
  min-width: 0 !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  box-sizing: border-box !important;
  border-radius: 7px !important;
  border: 1px solid rgba(96, 148, 220, 0.2) !important;
  background: rgba(4, 10, 20, 0.78) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  overflow: hidden !important;
  pointer-events: none !important;
  font-size: 10px !important;
  line-height: 12px !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-name,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-name,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-name,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-name,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-name {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  color: rgba(244, 248, 255, 0.96) !important;
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-premium-icon,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-premium-icon,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-premium-icon {
  width: 11px !important;
  height: 11px !important;
  flex: 0 0 11px !important;
  font-size: 10px !important;
  line-height: 11px !important;
  margin: 0 !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-source-meta,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-media-states,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail
  .voice-participant-media-states {
  display: none !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__body,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__body {
  position: absolute !important;
  inset: 0 !important;
  padding: 0 0 22px !important;
  box-sizing: border-box !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__video,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden)
  .gc-voice-screen-stage__video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* ============================================================
   gc_voice_thumbnail_webcam_visibility_hotfix_v1
   Polish must size layout only — not choose webcam vs avatar.
   Webcam ON (.voice-participant-tile--webcam): show video, hide avatar-state.
   ============================================================ */

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-avatar-state,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-avatar-state,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-avatar-state,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-avatar-state,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-avatar-state.hidden,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-avatar-state[hidden] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-video,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-video,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-video,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-video {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
  background: #080d15 !important;
}

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-identity,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail.voice-participant-tile--webcam
  .voice-participant-identity {
  z-index: 4 !important;
}

/* ============================================================
   gc_voice_overlay_thumbnail_lower_position_v1
   Lower overlay thumbnails toward the active stage identity footer.
   Previous V2 anchor: bottom: calc(var(--voice-drawer-bottom) + 16px) = 80px
   (kept translateX(-50%); no size / media / switching changes).
   ============================================================ */

#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:first-of-type,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:not(:has(#gcVoiceScreenStage:not(.hidden)))
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden),
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-participant:has(#gcVoiceScreenStage:not(.hidden))
  #gcVoiceScreenStage.is-presentation-thumbnail:not(.hidden) {
  /* Participant-filled stage (inset:0): keep ~8–12px above identity footer */
  bottom: 57px !important;
}

/* Screen stage is aspect-letterboxed inside the host — keep the same visual
   gap above the screen identity footer on the common desktop QA viewport. */
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden)
  .gc-voice-channel__workspace.presentation-active-screen
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:first-of-type,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace.presentation-active-screen
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail,
#gcVoiceChannelView.gc-voice-channel:not(.hidden).mini-sources-open
  .gc-voice-channel__workspace.presentation-active-screen
  #gcVoiceMembersList
  > .voice-participant-tile.is-presentation-thumbnail:first-of-type {
  bottom: 76px !important;
}

