@font-face{
  font-family:"BM Twemoji Mozilla";
  src:url("/fonts/TwemojiMozilla.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

/* Messages emoji picker + send button polish */
.bmEmojiSurface{
  position:fixed!important;
  z-index:2147483600!important;
  width:min(372px,calc(100vw - 24px))!important;
  height:min(462px,calc(100vh - 24px))!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid rgba(34,44,67,.13)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 22px 60px rgba(20,29,49,.24)!important;
}

.bmComposerEmojiPanel{
  display:none!important;
  grid-template-columns:none!important;
  max-height:none!important;
}

.bmComposerEmojiPanel.open{
  display:block!important;
}

/* Preserve the original compact list as a no-library fallback. */
.bmComposerEmojiPanel:not(.bmEmojiSurface).open{
  display:grid!important;
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
  max-height:220px!important;
}

.bmEmojiPickerShell{
  width:100%;
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  background:#fff;
}

.bmEmojiQuickSection{
  flex:0 0 auto;
  padding:9px 10px 8px;
  border-bottom:1px solid rgba(34,44,67,.08);
  background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%);
}

.bmEmojiQuickLabel{
  margin:0 0 6px 3px;
  color:rgba(26,26,46,.55);
  font-size:10px;
  font-weight:800;
  letter-spacing:.035em;
  text-transform:uppercase;
}

.bmEmojiQuickStrip{
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}

.bmEmojiQuickStrip::-webkit-scrollbar{
  display:none;
}

.bmEmojiQuickBtn{
  width:31px;
  height:31px;
  min-width:31px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(34,44,67,.07);
  border-radius:10px;
  background:linear-gradient(180deg,#fff,#f2f4f8);
  box-shadow:0 2px 5px rgba(20,29,49,.08),inset 0 1px 0 rgba(255,255,255,.9);
  color:#1a1a2e;
  font-family:"BM Twemoji Mozilla","Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  font-size:20px;
  line-height:1;
  font-variant-emoji:emoji;
  cursor:pointer;
  filter:saturate(1.08);
  transition:transform .1s ease,box-shadow .1s ease,background .1s ease;
}

.bmEmojiQuickBtn:hover{
  transform:translateY(-1px) scale(1.06);
  background:#fff;
  box-shadow:0 4px 10px rgba(20,29,49,.13),inset 0 1px 0 rgba(255,255,255,.95);
}

.bmEmojiQuickBtn:active{
  transform:scale(.94);
}

.bmEmojiPicker{
  display:block;
  flex:1 1 auto;
  min-height:0;
  width:100%;
  height:100%;
  --background:#fff;
  --border-color:rgba(34,44,67,.10);
  --border-radius:0;
  --border-size:0;
  --button-active-background:rgba(82,136,193,.16);
  --button-hover-background:rgba(82,136,193,.10);
  --indicator-color:#5288c1;
  --input-border-color:rgba(34,44,67,.16);
  --input-border-size:1px;
  --input-border-radius:12px;
  --input-font-color:#1a1a2e;
  --input-placeholder-color:rgba(26,26,46,.45);
  --outline-color:rgba(82,136,193,.30);
  --outline-size:2px;
  --emoji-font-family:"BM Twemoji Mozilla","Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  --emoji-size:1.52rem;
  --emoji-padding:.43rem;
  --category-emoji-size:1.22rem;
  --category-emoji-padding:.42rem;
  --num-columns:8;
  font-family:inherit;
  font-variant-emoji:emoji;
}

.bmEmojiLoading{
  width:100%;
  height:100%;
  min-height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:rgba(26,26,46,.58);
  font-size:13px;
  font-weight:700;
}

.bmEmojiLoadingDot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#5288c1;
  box-shadow:0 0 0 0 rgba(82,136,193,.32);
  animation:bmEmojiPulse 1.15s ease-in-out infinite;
}

@keyframes bmEmojiPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(82,136,193,.30);transform:scale(.92)}
  50%{box-shadow:0 0 0 7px rgba(82,136,193,0);transform:scale(1.06)}
}

.bmReactionEmojiPopover{
  display:flex!important;
  flex-direction:column;
  height:min(496px,calc(100vh - 24px))!important;
}

.bmReactionEmojiHead{
  height:40px;
  flex:0 0 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 8px 0 14px;
  border-bottom:1px solid rgba(34,44,67,.08);
  color:#1a1a2e;
  font-size:12px;
  font-weight:800;
}

.bmReactionEmojiClose{
  width:30px;
  height:30px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:rgba(26,26,46,.54);
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.bmReactionEmojiClose:hover{
  background:rgba(0,0,0,.06);
  color:#1a1a2e;
}

.bmReactionEmojiBody{
  flex:1 1 auto;
  min-height:0;
}

.bmReactionEmojiBody .bmEmojiPickerShell,
.bmReactionEmojiBody .bmEmojiPicker{
  height:100%;
}

/* Consistent colorful emoji rendering in quick reactions and message pills. */
.bmFix13ReactionTray .bmHoverReactionBtn[data-react-emoji],
.bmFix14ReactionTray .bmHoverReactionBtn[data-react-emoji],
.bmHoverReactionBtn[data-react-emoji],
.bmReactionPill,
.bmComposerEmojiPick{
  font-family:"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif!important;
  filter:saturate(1.08);
}

.bmFix13ReactionTray .bmHoverReactionBtn[data-react-emoji],
.bmFix14ReactionTray .bmHoverReactionBtn[data-react-emoji]{
  border:1px solid rgba(34,44,67,.06)!important;
  background:linear-gradient(180deg,#fff,#f2f4f7)!important;
  box-shadow:0 1px 4px rgba(20,29,49,.08)!important;
  font-size:18px!important;
  transition:transform .1s ease,box-shadow .1s ease!important;
}

.bmFix13ReactionTray .bmHoverReactionBtn[data-react-emoji]:hover,
.bmFix14ReactionTray .bmHoverReactionBtn[data-react-emoji]:hover{
  transform:translateY(-1px) scale(1.12)!important;
  background:#fff!important;
  box-shadow:0 4px 9px rgba(20,29,49,.13)!important;
}

/* Keep the existing blue circular action, but make it cleaner and less bulky. */
.spoPanel.isChatMode .bmComposer .bmComposerSend{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  border:1px solid rgba(255,255,255,.30)!important;
  color:#fff!important;
  border-radius:50%!important;
  background:linear-gradient(145deg,#5a8fc6 0%,#3e74ad 100%)!important;
  box-shadow:0 4px 11px rgba(62,116,173,.30),inset 0 1px 0 rgba(255,255,255,.22)!important;
  transition:transform .12s ease,box-shadow .12s ease,filter .12s ease!important;
}

.spoPanel.isChatMode .bmComposer .bmComposerSend svg{
  width:19px!important;
  height:19px!important;
  transform:translate(-1px,1px)!important;
}

.spoPanel.isChatMode .bmComposer .bmComposerSend:hover:not(:disabled){
  transform:translateY(-1px) scale(1.025)!important;
  box-shadow:0 6px 15px rgba(62,116,173,.38),inset 0 1px 0 rgba(255,255,255,.24)!important;
  filter:saturate(1.04);
}

.spoPanel.isChatMode .bmComposer .bmComposerSend:active:not(:disabled){
  transform:translateY(0) scale(.97)!important;
  box-shadow:0 2px 7px rgba(62,116,173,.28),inset 0 1px 0 rgba(255,255,255,.20)!important;
}

.spoPanel.isChatMode .bmComposer .bmComposerSend:focus-visible{
  outline:3px solid rgba(82,136,193,.22)!important;
  outline-offset:2px!important;
}

.spoPanel.isChatMode .bmComposer .bmComposerSend:disabled{
  opacity:.48!important;
  cursor:default!important;
  filter:saturate(.55)!important;
  box-shadow:0 2px 6px rgba(62,116,173,.18)!important;
  transform:none!important;
}

@media(max-width:520px){
  .bmEmojiSurface{
    width:calc(100vw - 16px)!important;
    height:min(454px,calc(100vh - 16px))!important;
    border-radius:16px!important;
  }
  .bmReactionEmojiPopover{
    height:min(488px,calc(100vh - 16px))!important;
  }
  .bmEmojiQuickSection{
    padding:8px 8px 7px;
  }
  .bmEmojiQuickBtn{
    width:30px;
    height:30px;
    min-width:30px;
    font-size:19px;
  }
  .bmEmojiPicker{
    --emoji-size:1.42rem;
    --emoji-padding:.38rem;
    --category-emoji-padding:.36rem;
    --num-columns:8;
  }
}
