/* Nexus LAB · acciones sociales de comunicacion (separadas de mic/camara/config).
   No cambia ningun estilo ni estructura del dock existente. */
.nexus-social[hidden],#nexusReactionsPopup[hidden],#nexusReactionToast[hidden]{display:none!important}
.nexus-social{display:flex;align-items:center;gap:4px;flex:0 0 auto;white-space:nowrap;
  border:1px solid #596267;border-radius:11px;background:#252b2e;
  padding:5px;box-shadow:0 4px 13px #0004;box-sizing:border-box}
.nexus-social button{position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;min-width:38px;border-radius:8px;border:1px solid #434c50;
  background:#353d41;color:#f0f4f4;cursor:pointer;outline-offset:2px}
.nexus-social button:hover{background:#464f54;border-color:#7b888e}
.nexus-social button:focus-visible{outline:2px solid #a1beca}
.nexus-social button svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.7;
  fill:none;stroke-linecap:round;stroke-linejoin:round}
/* Only recolor the ORIGINAL hand icon; never replace, move or tint its button. */
.nexus-social button[data-nexus-social="hand"][aria-pressed="true"]{
  color:#ffd13d!important;
}
.nexus-social button[data-nexus-social="hand"][aria-pressed="true"] svg{
  visibility:visible!important;
  color:#ffd13d!important;
  stroke:#ffd13d!important;
  fill:#ffd13d!important;
}
.nexus-social button[data-nexus-social="hand"][aria-pressed="true"] svg path{
  stroke:#ffd13d!important;
  fill:#ffd13d!important;
}
.nexus-social button[aria-expanded="true"]{background:#495960!important;border-color:#879ca4!important}
.nexus-social-mini{margin-left:10px;min-height:50px;padding:5px 6px;align-self:center}
.nexus-social-mini button{width:42px;height:42px}
.nexus-social-full{padding:1px 4px;border-color:#496371;background:#20313a;box-shadow:none;height:34px;margin-left:5px}
.nexus-social-full button{width:29px;min-width:29px;height:28px;border-radius:7px;background:#324047}
body:not(.v67-fullscreen) #nexusSocialFull{display:none!important}
body.v67-fullscreen #nexusSocialMini{display:none!important}
#nexusReactionsPopup{position:fixed;z-index:22050;display:flex;align-items:center;gap:4px;
  padding:7px;border-radius:12px;border:1px solid #59656d;background:#242b2f;
  box-shadow:0 10px 32px #0009;max-width:calc(100vw - 20px);box-sizing:border-box}
#nexusReactionsPopup button{font:inherit;font-size:1.3125rem;display:grid;place-items:center;
  width:37px;height:37px;background:#363f43;border:1px solid transparent;border-radius:8px;
  cursor:pointer;line-height:1}
#nexusReactionsPopup button:hover,#nexusReactionsPopup button:focus-visible{background:#4b565b;outline:1px solid #9eafb7}
#nexusReactionToast{position:fixed;z-index:22030;max-width:260px;pointer-events:none;
  padding:8px 12px;background:#252c30;border:1px solid #67757b;
  border-radius:12px;box-shadow:0 6px 24px #0009;color:#f1f4f6;font-size:0.75rem;font-weight:650;
  bottom:90px;left:50%;transform:translateX(-50%)}
.nexus-hand-mark{position:absolute!important;right:7px;top:7px;z-index:35;pointer-events:none;
  min-width:24px;height:24px;display:grid;place-items:center;border-radius:8px;
  background:#5b4627;border:1px solid #e0b95e;color:#fff;font-size:1.0625rem;
  box-shadow:0 2px 8px #0008}
.nexus-reaction-float{position:absolute;z-index:40;left:50%;top:28%;
  transform:translateX(-50%);font-size:1.8125rem;pointer-events:none;
  filter:drop-shadow(0 3px 5px #0009);animation:nexus-reaction-rise 2.9s ease-out both}
@keyframes nexus-reaction-rise{0%{opacity:0;transform:translate(-50%,16px) scale(.75)}
  16%{opacity:1;transform:translate(-50%,0) scale(1.08)}
  80%{opacity:1}100%{opacity:0;transform:translate(-50%,-35px) scale(1)}}
@media(max-width:720px){.nexus-social-mini{margin-left:6px;padding:3px;gap:2px}
  .nexus-social-mini button{width:38px;height:38px;min-width:38px}
  .nexus-social-full{margin-left:0;gap:1px;padding:1px 2px}
  .nexus-social-full button{width:27px;min-width:27px;height:27px}
}
@media(prefers-reduced-motion:reduce){.nexus-reaction-float{animation:none;opacity:1}}

/* Reuse the real meeting-title/count node as the first child of the
   right toolbar group, immediately after the view tabs and before chat,
   notifications, People and fullscreen. Only layout changes; title and
   participants continue to be populated by the existing app. */
body.v67-fullscreen #stage.full #v67MiniBar .v67-mini-right > #v102MeetingMeta{
  display:flex!important;align-items:center!important;gap:7px!important;
  position:relative!important;inset:auto!important;transform:none!important;
  flex:0 1 220px!important;width:auto!important;max-width:220px!important;
  min-width:0!important;height:34px!important;overflow:hidden!important;
  margin:0 12px 0 0!important;padding:0!important;
  pointer-events:none!important;white-space:nowrap!important;
}
body.v67-fullscreen #stage.full #v67MiniBar .v67-mini-right > #v102MeetingMeta strong{
  display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;min-width:0!important;
}
body.v67-fullscreen #stage.full #v67MiniBar .v67-mini-right > #v102MeetingCount{
  white-space:nowrap!important;flex:0 0 auto!important;
}
/* The absolute centered view tabs retain their original positions.
   Narrow the status pill when viewport space runs out. */
@media(max-width:1500px){
  body.v67-fullscreen #stage.full #v67MiniBar .v67-mini-right > #v102MeetingMeta{
    flex-basis:150px!important;max-width:150px!important;margin-right:7px!important;
  }
}
@media(max-width:1280px){
  body.v67-fullscreen #stage.full #v67MiniBar .v67-mini-right > #v102MeetingMeta{
    flex-basis:112px!important;max-width:112px!important;margin-right:5px!important;
  }
}
@media(max-width:1180px){
  body.v67-fullscreen #stage.full #v67MiniBar .v67-mini-right > #v102MeetingMeta{
    display:none!important;
  }
}

/* A hand raised is visible even when its camera is off. Keep first in tile
   ordering without moving/detaching LiveKit media tracks. */
#roomGallery .media-tile.nexus-hand-priority{
  outline:2px solid #e6bd62!important;
  outline-offset:-2px;
}
#roomGallery .media-tile.nexus-hand-priority .nexus-hand-mark{
  background:#7b5a20;
  border-color:#ffe29a;
  box-shadow:0 0 0 2px #0008,0 0 14px #e5bd6380;
}
