/*
 * GewoonChatten 0.54.00 — Cody-overzicht, GewoonChatten-functies.
 * Alleen presentatie/structuur. Geen businesslogica, permissies, API of emoticondata.
 */
body.gcCodyStructureV2{
  --gc-v2-top:58px;
  --gc-v2-rail:92px;
  --gc-v2-users:318px;
  --gc-v2-panel:#111b28;
  --gc-v2-panel-2:#172333;
  --gc-v2-panel-3:#1b293a;
  --gc-v2-border:#2e4056;
  --gc-v2-border-soft:rgba(116,144,178,.18);
  --gc-v2-text:#edf3fb;
  --gc-v2-muted:#8fa2b8;
  --gc-v2-gold:#e2b953;
  --gc-v2-blue:#5987c9;
}

/* ===== 1. HOOFDSTRUCTUUR ===== */
body.gcCodyStructureV2 .gcClassicTop{
  height:var(--gc-v2-top)!important;
  min-height:var(--gc-v2-top)!important;
  padding:0 12px!important;
  border-bottom:1px solid var(--gc-v2-border)!important;
  background:linear-gradient(180deg,#1a2737 0%,#14202d 100%)!important;
  box-shadow:0 6px 22px rgba(0,0,0,.22)!important;
  z-index:120!important;
}
body.gcCodyStructureV2 .gcClassicTop .gcTopLeft,
body.gcCodyStructureV2 .gcClassicTop .gcTopRight{height:100%!important;align-items:center!important}
body.gcCodyStructureV2 .gcClassicTop .gcLogoBrand img{max-height:38px!important;width:auto!important;object-fit:contain!important}
body.gcCodyStructureV2 .gcClassicTop .gcTopIcon,
body.gcCodyStructureV2 .gcClassicTop .gcHamburger{
  width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
  border-radius:10px!important;border:1px solid rgba(120,149,183,.20)!important;
  background:#192738!important;
}
body.gcCodyStructureV2 .layout{
  height:calc(100dvh - var(--gc-v2-top))!important;
  min-height:0!important;
  grid-template-columns:var(--gc-v2-rail) minmax(0,1fr) var(--gc-v2-users)!important;
  gap:0!important;
  background:#0b121c!important;
  overflow:hidden!important;
}
body.gcCodyStructureV2 .layout>.panel{border-radius:0!important;box-shadow:none!important}
body.gcCodyStructureV2 .gcRightPanel{display:flex!important;flex-direction:column!important;min-height:0!important}
body.gcCodyStructureV2 .gcRightPanel .gcRightTabs,
body.gcCodyStructureV2 .gcRightPanel .gcUserSearchRow,
body.gcCodyStructureV2 .gcRightPanel .gcUserStats,
body.gcCodyStructureV2 .gcRightPanel .panelTitle{flex:0 0 auto!important}
body.gcCodyStructureV2 .gcRightPanel .gcUserScroll{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}

/* ===== 2. CODY-ACHTIGE SNELBALK LINKS ===== */
body.gcCodyStructureV2 .quickbar{
  position:relative!important;inset:auto!important;
  width:var(--gc-v2-rail)!important;min-width:var(--gc-v2-rail)!important;height:100%!important;
  padding:8px 6px 12px!important;margin:0!important;
  display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;
  overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin!important;
  border:0!important;border-right:1px solid var(--gc-v2-border)!important;border-radius:0!important;
  background:linear-gradient(180deg,#141f2c,#101924)!important;
}
body.gcCodyStructureV2 .quickbar button{
  flex:0 0 auto!important;width:100%!important;min-width:0!important;height:52px!important;min-height:52px!important;
  padding:5px 3px!important;margin:0!important;border:1px solid transparent!important;border-radius:10px!important;
  display:grid!important;grid-template-rows:27px 13px!important;place-items:center!important;gap:1px!important;
  background:transparent!important;color:#aebdcd!important;box-shadow:none!important;
}
body.gcCodyStructureV2 .quickbar button:hover,
body.gcCodyStructureV2 .quickbar button:focus-visible{
  background:#1b2b3e!important;border-color:#314b67!important;color:#fff!important;
}
body.gcCodyStructureV2 .quickbar button:active{background:#21344a!important}
body.gcCodyStructureV2 .quickbar button i{width:27px!important;height:27px!important;display:grid!important;place-items:center!important;margin:0!important}
body.gcCodyStructureV2 .quickbar button i svg{width:22px!important;height:22px!important}
body.gcCodyStructureV2 .quickbar button>span{
  display:block!important;max-width:78px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  font-size:8.5px!important;line-height:12px!important;font-weight:820!important;letter-spacing:0!important;text-align:center!important;
}
body.gcCodyStructureV2 .quickbar .gcNewsUnreadBadge{top:3px!important;right:7px!important}

/* ===== 3. KAMERS: DUIDELIJKE LINKER DRAWER ===== */
body.gcCodyStructureV2 .rooms{
  position:fixed!important;left:var(--gc-v2-rail)!important;top:var(--gc-v2-top)!important;bottom:0!important;
  width:334px!important;max-width:calc(100vw - var(--gc-v2-rail) - 20px)!important;height:auto!important;
  z-index:108!important;margin:0!important;padding:0!important;border:0!important;border-right:1px solid var(--gc-v2-border)!important;
  border-radius:0 14px 14px 0!important;background:linear-gradient(180deg,#152232,#101a26)!important;
  box-shadow:20px 0 44px rgba(0,0,0,.36)!important;overflow:hidden!important;
}
body.gcCodyStructureV2 .rooms.hidden{display:none!important}
body.gcCodyStructureV2 .rooms .roomAsideHead{
  min-height:75px!important;padding:13px 14px!important;border-bottom:1px solid var(--gc-v2-border)!important;
  background:#19283a!important;
}
body.gcCodyStructureV2 .rooms .roomAsideHead small{font-size:8px!important;color:#7f96af!important;letter-spacing:.12em!important}
body.gcCodyStructureV2 .rooms .roomAsideHead h3{font-size:16px!important;line-height:1.2!important;margin-top:2px!important}
body.gcCodyStructureV2 .rooms .roomAsideHead p{font-size:9px!important;line-height:1.3!important;color:#93a5b9!important}
body.gcCodyStructureV2 .rooms #rooms{height:calc(100% - 75px)!important;overflow-y:auto!important;padding:10px!important}
body.gcCodyStructureV2 .rooms .roomShell{margin:0 0 7px!important;border:1px solid var(--gc-v2-border-soft)!important;border-radius:11px!important;background:#121e2c!important;overflow:hidden!important}
body.gcCodyStructureV2 .rooms .roomShell.active{border-color:#5a7fae!important;box-shadow:inset 3px 0 var(--gc-v2-gold)!important;background:#17263a!important}
body.gcCodyStructureV2 .rooms .roomShell .room.roomSelect{
  min-height:66px!important;padding:8px 9px!important;grid-template-columns:40px minmax(0,1fr) auto!important;gap:9px!important;
}
body.gcCodyStructureV2 .rooms .roomIcon{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-radius:10px!important;font-size:19px!important}
body.gcCodyStructureV2 .rooms .roomCopy strong{font-size:12px!important}
body.gcCodyStructureV2 .rooms .roomCopy>span:not(.roomAccessTag){font-size:8.5px!important;line-height:1.25!important}

/* ===== 4. MAINCHAT: KAMERCONTEXT + RUSTIGE SCROLL ===== */
body.gcCodyStructureV2 .chat{
  min-width:0!important;min-height:0!important;height:100%!important;border:0!important;
  display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto auto auto auto!important;
  background:#0d1621!important;overflow:hidden!important;
}
body.gcCodyStructureV2 .chathead{
  display:flex!important;min-height:54px!important;height:auto!important;padding:8px 14px!important;margin:0!important;
  align-items:center!important;justify-content:space-between!important;gap:12px!important;
  border:0!important;border-bottom:1px solid var(--gc-v2-border)!important;border-radius:0!important;
  background:linear-gradient(180deg,#172435,#14202f)!important;
}
body.gcCodyStructureV2 .chathead>div:first-child{min-width:0!important}
body.gcCodyStructureV2 .chathead h2{margin:0!important;font-size:15px!important;line-height:1.15!important;color:#f5f8fd!important}
body.gcCodyStructureV2 .chathead p{margin:3px 0 0!important;max-width:58vw!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9px!important;color:#8fa3b9!important}
body.gcCodyStructureV2 .chathead .connection{font-size:8px!important;white-space:nowrap!important}
body.gcCodyStructureV2 .messages{
  min-height:0!important;padding:12px 14px 16px!important;overflow-y:auto!important;overflow-x:hidden!important;
  background:
    radial-gradient(circle at 50% 0,rgba(53,88,126,.07),transparent 34%),
    #0c151f!important;
  scrollbar-gutter:stable!important;
}
body.gcCodyStructureV2 .messages>.msg:not(.gcPresenceEvent):not(.gcCommunityEvent){
  max-width:100%!important;margin:0 0 6px!important;padding:7px 8px!important;border-radius:10px!important;
  border:1px solid transparent!important;background:transparent!important;
  grid-template-columns:38px minmax(0,1fr)!important;gap:9px!important;
}
body.gcCodyStructureV2 .messages>.msg:not(.gcPresenceEvent):not(.gcCommunityEvent):hover{background:rgba(104,139,178,.055)!important;border-color:rgba(104,139,178,.12)!important}
body.gcCodyStructureV2 .messages>.msg.own:not(.gcPresenceEvent):not(.gcCommunityEvent){background:rgba(67,103,149,.045)!important}
body.gcCodyStructureV2 .messages .messageAvatar,
body.gcCodyStructureV2 .messages .messageAvatar img{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border-radius:10px!important}
body.gcCodyStructureV2 .messages .meta{min-height:18px!important;gap:6px!important;align-items:center!important}
body.gcCodyStructureV2 .messages .meta .name{font-size:12px!important;line-height:16px!important}
body.gcCodyStructureV2 .messages .meta .time,
body.gcCodyStructureV2 .messages .meta .edited{font-size:7.5px!important;color:#72869d!important}
body.gcCodyStructureV2 .messages .body{font-size:var(--gc-default-chat-font-size,15px)!important;line-height:1.4!important;margin-top:0!important}
body.gcCodyStructureV2 .messages .msgActions{opacity:0!important;transform:none!important;transition:opacity .12s ease!important}
body.gcCodyStructureV2 .messages>.msg:not(.gcPresenceEvent):not(.gcCommunityEvent):hover .msgActions,
body.gcCodyStructureV2 .messages>.msg:not(.gcPresenceEvent):not(.gcCommunityEvent):focus-within .msgActions{opacity:1!important}
body.gcCodyStructureV2 .chatWelcome{margin:24px auto!important;max-width:420px!important;border:1px dashed #30435a!important;background:#111e2b!important;border-radius:14px!important}
body.gcCodyStructureV2 .typing{min-height:18px!important;padding:2px 14px!important;font-size:9px!important;color:#879bb2!important;background:#0d1621!important}
body.gcCodyStructureV2 .replyBar{margin:0!important;border-radius:0!important;border-width:1px 0 0!important;padding:7px 12px!important;background:#172537!important}

/* ===== 5. COMPOSER: ÉÉN STABIELE BEDIENINGSBALK ===== */
body.gcCodyStructureV2 .composer{
  position:relative!important;inset:auto!important;z-index:12!important;
  display:grid!important;grid-template-columns:40px 40px minmax(0,1fr) 40px 44px!important;gap:6px!important;
  min-height:58px!important;margin:0!important;padding:7px 10px 8px!important;border:0!important;border-top:1px solid var(--gc-v2-border)!important;border-radius:0!important;
  background:#131f2d!important;box-shadow:0 -8px 22px rgba(0,0,0,.10)!important;
}
body.gcCodyStructureV2 .composerPlus,
body.gcCodyStructureV2 #emoji,
body.gcCodyStructureV2 .composerVoice,
body.gcCodyStructureV2 .composerSend{
  width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;margin:0!important;padding:0!important;
  border-radius:10px!important;border:1px solid #30445b!important;background:#1a2a3d!important;box-shadow:none!important;
}
body.gcCodyStructureV2 .composerSend{width:44px!important;min-width:44px!important;border-color:#7a6428!important;background:#493b1c!important}
body.gcCodyStructureV2 .composerInputWrap{min-width:0!important;align-self:stretch!important}
body.gcCodyStructureV2 .composer textarea{
  width:100%!important;min-height:40px!important;max-height:124px!important;padding:10px 12px!important;border:1px solid #30445b!important;border-radius:10px!important;
  background:#0d1723!important;color:#edf4fb!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)!important;
}
body.gcCodyStructureV2 .composer textarea:focus{border-color:#5279a7!important;box-shadow:0 0 0 3px rgba(82,121,167,.12)!important}

/* ===== 6. RECHTER USERLIST: CODY-OVERZICHT, GC-DATA ===== */
body.gcCodyStructureV2 .gcRightPanel{
  position:relative!important;inset:auto!important;width:var(--gc-v2-users)!important;min-width:var(--gc-v2-users)!important;max-width:var(--gc-v2-users)!important;height:100%!important;
  border:0!important;border-left:1px solid var(--gc-v2-border)!important;border-radius:0!important;background:#111b28!important;overflow:hidden!important;
}
body.gcCodyStructureV2 .gcRightTabs{
  min-height:47px!important;padding:5px!important;display:grid!important;grid-template-columns:36px 1fr 1fr 1fr 36px 36px!important;gap:3px!important;
  border-bottom:1px solid var(--gc-v2-border)!important;background:#182536!important;
}
body.gcCodyStructureV2 .gcRightTabs button{
  width:auto!important;min-width:0!important;height:36px!important;min-height:36px!important;padding:3px 5px!important;border:1px solid transparent!important;border-radius:8px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;background:transparent!important;color:#99abc0!important;
}
body.gcCodyStructureV2 .gcRightTabs button.active{background:#233851!important;border-color:#3b5c7e!important;color:#fff!important;box-shadow:inset 0 -2px var(--gc-v2-gold)!important}
body.gcCodyStructureV2 .gcRightTabs svg{width:16px!important;height:16px!important;min-width:16px!important}
body.gcCodyStructureV2 .gcRightTabLabel{display:inline!important;font-size:7.5px!important;font-weight:850!important;line-height:1!important;white-space:nowrap!important}
body.gcCodyStructureV2 .gcUserSearch{padding:7px 8px!important;border-bottom:1px solid var(--gc-v2-border)!important;background:#131f2e!important}
body.gcCodyStructureV2 .gcUserSearch input{height:34px!important;border-radius:8px!important}
body.gcCodyStructureV2 .liveStats{
  margin:0!important;padding:7px 8px!important;border:0!important;border-bottom:1px solid var(--gc-v2-border)!important;border-radius:0!important;background:#0f1925!important;
}
body.gcCodyStructureV2 .liveStats>b{display:none!important}
body.gcCodyStructureV2 .liveStats>div{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:4px!important}
body.gcCodyStructureV2 .liveStats>div>span{min-width:0!important;padding:5px 2px!important;border-radius:7px!important;background:#172434!important;text-align:center!important;font-size:7px!important;color:#8295aa!important}
body.gcCodyStructureV2 .liveStats strong{display:block!important;font-size:11px!important;color:#eef4fb!important}
body.gcCodyStructureV2 .gcRightTitle{
  min-height:38px!important;padding:7px 10px!important;border-bottom:1px solid var(--gc-v2-border)!important;background:#152131!important;
}
body.gcCodyStructureV2 .gcRightTitle strong{font-size:11px!important;color:#e9f0f8!important}
body.gcCodyStructureV2 .gcUserScroll{height:auto!important;min-height:0!important;overflow-y:auto!important;padding:7px 7px 16px!important}
body.gcCodyStructureV2 .gcUserScroll .userGroup{margin:0 0 9px!important;padding:0!important;border:0!important;background:transparent!important}
body.gcCodyStructureV2 .gcUserScroll .userGroup>header{min-height:25px!important;padding:4px 6px!important;margin:0 0 3px!important;border-radius:7px!important;background:#0e1824!important;border:1px solid rgba(109,139,173,.10)!important;font-size:8px!important}
body.gcCodyStructureV2 .gcUserScroll .userGroup>header b{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.gcCodyStructureV2 .gcUserScroll .userGroup .rankCount{margin-left:auto!important;min-width:20px!important;text-align:center!important}
body.gcCodyStructureV2 .userCard{
  min-height:51px!important;margin:0 0 4px!important;padding:5px 6px!important;border:1px solid transparent!important;border-radius:9px!important;
  grid-template-columns:40px minmax(0,1fr) auto!important;gap:7px!important;background:rgba(255,255,255,.012)!important;box-shadow:none!important;
}
body.gcCodyStructureV2 .userCard:hover,
body.gcCodyStructureV2 .userCard:focus-visible{background:#1a293b!important;border-color:#334d68!important}
body.gcCodyStructureV2 .userCard .uAvatar,
body.gcCodyStructureV2 .userCard .uAvatar img{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:10px!important}
body.gcCodyStructureV2 .userCard .uName strong{font-size:11.5px!important;line-height:1.15!important;max-width:150px!important}
body.gcCodyStructureV2 .userCard .uBody small{margin-top:3px!important;font-size:8px!important;line-height:1.15!important}
body.gcCodyStructureV2 .userCard .uMood{max-width:112px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.gcCodyStructureV2 .userCard .uMeta{gap:2px!important;max-width:68px!important}
body.gcCodyStructureV2 .userCard .userMetaIcon{font-size:10px!important}

/* ===== 7. CHATTER AANKLIKKEN: TABBLADEN ZOALS CODY, ACTIES VAN GC ===== */
body.gcCodyStructureV2 .gcUserMenuOverlay{padding:14px!important;align-items:center!important;justify-content:center!important}
body.gcCodyStructureV2 .gcUserMenu.gcUserMenuCodyTabs{
  width:min(470px,calc(100vw - 28px))!important;max-height:min(720px,calc(100dvh - 28px))!important;overflow:hidden!important;
  border:1px solid #3b506b!important;border-radius:16px!important;background:#121d2a!important;box-shadow:0 28px 80px rgba(0,0,0,.55)!important;
}
body.gcCodyStructureV2 .gcUserMenu.gcUserMenuCodyTabs>header{padding:12px 42px 12px 13px!important;border-bottom:1px solid #31445c!important;background:#192638!important}
body.gcCodyStructureV2 .gcUserMenuTabs{
  display:flex!important;gap:5px!important;padding:7px!important;overflow-x:auto!important;border-bottom:1px solid #2c3d52!important;background:#101a26!important;scrollbar-width:none!important;
}
body.gcCodyStructureV2 .gcUserMenuTabs::-webkit-scrollbar{display:none!important}
body.gcCodyStructureV2 .gcUserMenuTabs button{
  flex:1 0 auto!important;min-width:94px!important;min-height:36px!important;padding:6px 9px!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;color:#92a5ba!important;font-size:10px!important;font-weight:850!important;
}
body.gcCodyStructureV2 .gcUserMenuTabs button.active{background:#263b54!important;border-color:#3f607f!important;color:#fff!important;box-shadow:inset 0 -2px var(--gc-v2-gold)!important}
body.gcCodyStructureV2 .gcUserMenuBody{max-height:calc(100dvh - 190px)!important;overflow-y:auto!important;padding:9px!important}
body.gcCodyStructureV2 .gcUserMenuTabPanel{display:none!important}
body.gcCodyStructureV2 .gcUserMenuTabPanel.active{display:block!important}
body.gcCodyStructureV2 .gcUserMenuSectionLabel{margin:4px 3px 6px!important;font-size:8px!important;font-weight:900!important;letter-spacing:.11em!important;color:#778da6!important}
body.gcCodyStructureV2 .gcUserMenuGrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-bottom:10px!important}
body.gcCodyStructureV2 .gcUserMenuGrid>[data-friend-action-slot]{display:contents!important}
body.gcCodyStructureV2 .gcUserMenuGrid button,
body.gcCodyStructureV2 .gcUserMenuModeration button{
  min-height:58px!important;padding:8px 9px!important;border:1px solid #30445c!important;border-radius:10px!important;background:#172434!important;color:#ecf3fa!important;
  display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;text-align:left!important;
}
body.gcCodyStructureV2 .gcUserMenuGrid button:hover,
body.gcCodyStructureV2 .gcUserMenuModeration button:hover{background:#1e3045!important;border-color:#486887!important}
body.gcCodyStructureV2 .gcUserMenuGrid .gcActionIcon,
body.gcCodyStructureV2 .gcUserMenuModeration .gcActionIcon{width:30px!important;height:30px!important;border-radius:8px!important;display:grid!important;place-items:center!important;background:#22344a!important;font-size:14px!important}
body.gcCodyStructureV2 .gcUserMenuGrid b,
body.gcCodyStructureV2 .gcUserMenuModeration b{display:block!important;font-size:10px!important;line-height:1.15!important}
body.gcCodyStructureV2 .gcUserMenuGrid small,
body.gcCodyStructureV2 .gcUserMenuModeration small{display:block!important;margin-top:2px!important;font-size:8px!important;line-height:1.25!important;color:#8fa2b8!important;font-weight:600!important}
body.gcCodyStructureV2 .gcUserMenuModeration{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
body.gcCodyStructureV2 .gcUserMenuModerationPair{display:contents!important}
body.gcCodyStructureV2 .gcUserMenuModeration .danger{border-color:#6a3844!important;background:#2a1921!important}
body.gcCodyStructureV2 .gcUserMenuGhost{border-color:#594172!important;background:#20182c!important}
body.gcCodyStructureV2 .gcUserInsight{margin-top:8px!important;border-radius:10px!important;overflow:hidden!important}

/* ===== 8. MODALS / PROFIEL / CHATOPTIES: DEZELFDE COMPONENTTAAL ===== */
body.gcCodyStructureV2 .modal{padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))!important}
body.gcCodyStructureV2 .modal>.modalCard,
body.gcCodyStructureV2 .profileModalCard,
body.gcCodyStructureV2 .chatOptionsCard{
  width:min(760px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;
  border:1px solid #374c66!important;border-radius:16px!important;background:#121e2c!important;box-shadow:0 28px 80px rgba(0,0,0,.50)!important;
}
body.gcCodyStructureV2 .modalTitle{padding-right:38px!important;margin-bottom:12px!important}
body.gcCodyStructureV2 .modalTitle small{font-size:8px!important;color:#8299b2!important;letter-spacing:.13em!important}
body.gcCodyStructureV2 .modalTitle h3{font-size:19px!important;margin:3px 0!important}
body.gcCodyStructureV2 .modalTitle p{font-size:10px!important;color:#91a4ba!important;line-height:1.4!important}
body.gcCodyStructureV2 .modalClose{top:9px!important;right:9px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border-radius:9px!important}
body.gcCodyStructureV2 .chatOptionsCard{width:min(820px,calc(100vw - 24px))!important}
body.gcCodyStructureV2 .chatOptionsTabs{
  position:sticky!important;top:-1px!important;z-index:6!important;display:flex!important;gap:5px!important;overflow-x:auto!important;
  padding:6px!important;margin:0 0 11px!important;border:1px solid #30445c!important;border-radius:10px!important;background:#0f1925!important;scrollbar-width:none!important;
}
body.gcCodyStructureV2 .chatOptionsTabs::-webkit-scrollbar{display:none!important}
body.gcCodyStructureV2 .chatOptionsTabs button{flex:1 0 auto!important;min-height:38px!important;padding:7px 10px!important;border-radius:8px!important;white-space:nowrap!important;font-size:10px!important}
body.gcCodyStructureV2 .chatOptionsTabs button.active{background:#263b54!important;box-shadow:inset 0 -2px var(--gc-v2-gold)!important}
body.gcCodyStructureV2 .chatOptionsPane{display:none!important}
body.gcCodyStructureV2 .chatOptionsPane.active{display:block!important}
body.gcCodyStructureV2 .chatOptionToggle,
body.gcCodyStructureV2 .chatOptionField{border-radius:10px!important;background:#152230!important;border-color:#30445a!important}

/* ===== 9. PRIVÉCHAT: COMPACT DESKTOP, FULLHEIGHT MOBIEL ===== */
body.gcCodyStructureV2 .gcPmOverlay{padding:18px!important;align-items:center!important;justify-content:center!important}
body.gcCodyStructureV2 .gcPmCard{
  width:min(610px,calc(100vw - 28px))!important;height:min(720px,calc(100dvh - 28px))!important;max-height:calc(100dvh - 28px)!important;
  border:1px solid #3a506a!important;border-radius:16px!important;background:#111d2a!important;box-shadow:0 30px 90px rgba(0,0,0,.56)!important;overflow:hidden!important;
}
body.gcCodyStructureV2 .gcPmCard .pmHead{min-height:58px!important;padding:8px 10px 8px 12px!important;border-bottom:1px solid #30445b!important;background:#182638!important}
body.gcCodyStructureV2 .gcPmCard .pmHeadIdentity img{width:40px!important;height:40px!important;border-radius:10px!important}
body.gcCodyStructureV2 .gcPmCard .pmHeadIdentity small{font-size:7.5px!important;color:#8297ae!important}
body.gcCodyStructureV2 .gcPmCard .pmHeadIdentity h3{font-size:14px!important}
body.gcCodyStructureV2 .gcPmCard .pmCallActions button{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;border-radius:8px!important}
body.gcCodyStructureV2 .gcPmCard .pmMessages{padding:10px 11px!important;background:#0c151f!important}
body.gcCodyStructureV2 .gcPmCard .pmBottom{padding:7px 8px 8px!important;border-top:1px solid #30445b!important;background:#142130!important}
body.gcCodyStructureV2 .gcPmCard .pmComposer{gap:6px!important}
body.gcCodyStructureV2 .gcPmCard .pmComposer textarea{min-height:40px!important;border-radius:10px!important;background:#0d1723!important;border-color:#30445b!important}
body.gcCodyStructureV2 .gcPmCard .pmComposer>button{width:42px!important;height:40px!important;min-width:42px!important;min-height:40px!important;border-radius:10px!important}

/* ===== 10. PROFIELMENU ===== */
body.gcCodyStructureV2 #gcProfileMenu{
  width:min(390px,calc(100vw - 18px))!important;max-height:calc(100dvh - var(--gc-v2-top) - 14px)!important;overflow-y:auto!important;
  border:1px solid #3a506a!important;border-radius:14px!important;background:#121e2b!important;box-shadow:0 20px 64px rgba(0,0,0,.48)!important;
}
body.gcCodyStructureV2 #gcProfileMenu section{border-color:#2d4056!important}
body.gcCodyStructureV2 #gcProfileMenu section>a,
body.gcCodyStructureV2 #gcProfileMenu section>button{min-height:43px!important;border-radius:8px!important}

/* ===== 11. TABLET / MOBILE ===== */
@media(max-width:1100px) and (min-width:901px){
  body.gcCodyStructureV2{--gc-v2-rail:82px;--gc-v2-users:286px}
  body.gcCodyStructureV2 .quickbar button>span{font-size:8px!important;max-width:68px!important}
  body.gcCodyStructureV2 .gcRightTabLabel{display:none!important}
  body.gcCodyStructureV2 .gcRightTabs{grid-template-columns:34px repeat(5,1fr)!important}
}

@media(max-width:900px){
  body.gcCodyStructureV2{--gc-v2-top:54px}
  body.gcCodyStructureV2 .gcClassicTop{height:calc(var(--gc-v2-top) + env(safe-area-inset-top))!important;min-height:calc(var(--gc-v2-top) + env(safe-area-inset-top))!important;padding-top:env(safe-area-inset-top)!important}
  body.gcCodyStructureV2 .layout{
    height:calc(100dvh - var(--gc-v2-top) - env(safe-area-inset-top))!important;
    display:block!important;overflow:hidden!important;padding-bottom:0!important;
  }
  body.gcCodyStructureV2 .quickbar{display:none!important}
  body.gcCodyStructureV2 .chat{width:100%!important;height:100%!important;min-height:0!important;box-sizing:border-box!important;padding-bottom:calc(56px + env(safe-area-inset-bottom))!important}
  body.gcCodyStructureV2 .chathead{min-height:44px!important;padding:6px 10px!important}
  body.gcCodyStructureV2 .chathead h2{font-size:13px!important}
  body.gcCodyStructureV2 .chathead p{font-size:8px!important;max-width:58vw!important}
  body.gcCodyStructureV2 .messages{padding:8px 7px 12px!important;scrollbar-gutter:auto!important}
  body.gcCodyStructureV2 .messages>.msg:not(.gcPresenceEvent):not(.gcCommunityEvent){grid-template-columns:34px minmax(0,1fr)!important;gap:7px!important;padding:6px 4px!important;margin-bottom:4px!important}
  body.gcCodyStructureV2 .messages .messageAvatar,
  body.gcCodyStructureV2 .messages .messageAvatar img{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;border-radius:9px!important}
  body.gcCodyStructureV2 .messages .msgActions{opacity:1!important}
  body.gcCodyStructureV2 .rooms{
    left:0!important;top:calc(var(--gc-v2-top) + env(safe-area-inset-top))!important;bottom:calc(56px + env(safe-area-inset-bottom))!important;
    width:min(390px,94vw)!important;max-width:94vw!important;border-radius:0 14px 14px 0!important;z-index:2300!important;
  }
  body.gcCodyStructureV2 .gcRightPanel{
    position:fixed!important;right:0!important;left:auto!important;top:calc(var(--gc-v2-top) + env(safe-area-inset-top))!important;bottom:calc(56px + env(safe-area-inset-bottom))!important;
    width:min(390px,94vw)!important;min-width:0!important;max-width:94vw!important;height:auto!important;z-index:2300!important;
    border-left:1px solid #34495f!important;border-radius:14px 0 0 14px!important;box-shadow:-20px 0 50px rgba(0,0,0,.42)!important;
  }
  body.gcCodyStructureV2 .gcRightTabs{grid-template-columns:38px 1fr 1fr 1fr 38px 38px!important}
  body.gcCodyStructureV2 .gcRightTabLabel{display:inline!important;font-size:8px!important}
  body.gcCodyStructureV2 .composer{
    grid-template-columns:38px 38px minmax(0,1fr) 38px 42px!important;gap:4px!important;min-height:55px!important;
    padding:6px 6px max(6px,env(safe-area-inset-bottom))!important;
  }
  body.gcCodyStructureV2 .composerPlus,
  body.gcCodyStructureV2 #emoji,
  body.gcCodyStructureV2 .composerVoice{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}
  body.gcCodyStructureV2 .composerSend{width:42px!important;height:38px!important;min-width:42px!important;min-height:38px!important}
  body.gcCodyStructureV2 .composer textarea{min-height:38px!important;padding:9px 9px!important;font-size:16px!important}
  body.gcCodyStructureV2 .gcMobileBottomNav{
    display:grid!important;position:fixed!important;left:4px!important;right:4px!important;bottom:max(4px,env(safe-area-inset-bottom))!important;z-index:2200!important;
    min-height:52px!important;height:52px!important;padding:3px 4px!important;grid-template-columns:repeat(5,1fr)!important;gap:2px!important;
    border:1px solid #30465e!important;border-radius:12px!important;background:rgba(16,27,40,.97)!important;box-shadow:0 -12px 36px rgba(0,0,0,.36)!important;backdrop-filter:blur(12px)!important;
  }
  body.gcCodyStructureV2 .gcMobileBottomNav button{height:45px!important;min-height:45px!important;border-radius:8px!important;grid-template-rows:24px 12px!important;padding:3px 1px!important;color:#96a9be!important}
  body.gcCodyStructureV2 .gcMobileBottomNav button.active,
  body.gcCodyStructureV2 .gcMobileBottomNav button[aria-current="page"]{background:#1d3045!important;color:#fff!important;box-shadow:inset 0 -2px var(--gc-v2-gold)!important}
  body.gcCodyStructureV2 .gcMobileBottomNav button>svg{width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important}
  body.gcCodyStructureV2 .gcMobileBottomNav button>span{font-size:8px!important;line-height:11px!important}
  html.gcKeyboardOpen body.gcCodyStructureV2 .gcMobileBottomNav{display:none!important}
  html.gcKeyboardOpen body.gcCodyStructureV2 .layout{padding-bottom:0!important}
  html.gcKeyboardOpen body.gcCodyStructureV2 .chat{padding-bottom:0!important}
  body.gcCodyStructureV2 .gcUserMenuOverlay{align-items:flex-end!important;padding:0!important}
  body.gcCodyStructureV2 .gcUserMenu.gcUserMenuCodyTabs{
    width:100%!important;max-width:none!important;max-height:min(82dvh,760px)!important;border-radius:18px 18px 0 0!important;border-width:1px 0 0!important;
    padding-bottom:env(safe-area-inset-bottom)!important;
  }
  body.gcCodyStructureV2 .gcUserMenuBody{max-height:calc(82dvh - 125px)!important}
  body.gcCodyStructureV2 .modal{align-items:flex-end!important;padding:0!important}
  body.gcCodyStructureV2 .modal>.modalCard,
  body.gcCodyStructureV2 .profileModalCard,
  body.gcCodyStructureV2 .chatOptionsCard{
    width:100%!important;max-width:none!important;max-height:calc(92dvh - env(safe-area-inset-top))!important;border-radius:18px 18px 0 0!important;border-width:1px 0 0!important;
    padding-bottom:max(10px,env(safe-area-inset-bottom))!important;
  }
  body.gcCodyStructureV2 .gcPmOverlay{align-items:stretch!important;justify-content:stretch!important;padding:max(4px,env(safe-area-inset-top)) 4px max(4px,env(safe-area-inset-bottom))!important}
  body.gcCodyStructureV2 .gcPmCard{
    width:100%!important;height:100%!important;max-height:none!important;border-radius:13px!important;
  }
  body.gcCodyStructureV2 #gcProfileMenu{position:fixed!important;left:4px!important;right:4px!important;bottom:calc(60px + env(safe-area-inset-bottom))!important;top:auto!important;width:auto!important;max-height:calc(100dvh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;border-radius:14px!important}
}

@media(max-width:520px){
  body.gcCodyStructureV2 .gcRightTabLabel{display:none!important}
  body.gcCodyStructureV2 .gcRightTabs{grid-template-columns:38px repeat(5,1fr)!important}
  body.gcCodyStructureV2 .chathead p{display:none!important}
  body.gcCodyStructureV2 .gcUserMenuGrid,
  body.gcCodyStructureV2 .gcUserMenuModeration{grid-template-columns:1fr 1fr!important}
  body.gcCodyStructureV2 .gcUserMenuGrid button,
  body.gcCodyStructureV2 .gcUserMenuModeration button{min-height:56px!important;padding:7px!important;grid-template-columns:28px minmax(0,1fr)!important;gap:6px!important}
}

@media(max-width:380px){
  body.gcCodyStructureV2 .composer{grid-template-columns:36px 36px minmax(0,1fr) 36px 39px!important;padding-left:4px!important;padding-right:4px!important}
  body.gcCodyStructureV2 .composerPlus,
  body.gcCodyStructureV2 #emoji,
  body.gcCodyStructureV2 .composerVoice{width:36px!important;min-width:36px!important}
  body.gcCodyStructureV2 .composerSend{width:39px!important;min-width:39px!important}
  body.gcCodyStructureV2 .gcUserMenuGrid,
  body.gcCodyStructureV2 .gcUserMenuModeration{grid-template-columns:1fr!important}
  body.gcCodyStructureV2 .gcMobileBottomNav button>span{font-size:7.3px!important}
}

@media(prefers-reduced-motion:reduce){
  body.gcCodyStructureV2 *{scroll-behavior:auto!important}
}
