/* TGWVIDDEV008: shared private emoji library, scoped to the desktop composer. */
#messageEmojiPanel.chat-emoji-panel {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 40px minmax(0, 1fr);
  height: min(292px, 38vh);
  min-height: 160px;
  min-width: 0;
  padding: 0;
  gap: 0;
}
#messageEmojiPanel .chat-emoji-panel__header {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 40px;
  border-bottom: 1px solid var(--border, #c8d8d5);
}
#messageEmojiPanel button { min-height: 30px; font-size: 14px; padding: 3px 6px; }
#messageEmojiPanel .chat-emoji-panel__header button { border: 0; border-radius: 0; background: transparent; color: inherit; }
#messageEmojiPanel .chat-emoji-panel__header button.is-active { border-bottom: 2px solid #168e7e; color: #168e7e; }
#messageEmojiPanel .chat-emoji-panel__close { font-size: 23px; }
#messageEmojiPanel .chat-emoji-panel__body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 10px; }
#messageEmojiPanel .chat-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 5px; }
#messageEmojiPanel .chat-emoji-grid__item { font-size: 25px; min-width: 0; border: 0; background: transparent; padding: 4px; }
#messageEmojiPanel .chat-emoji-panel__empty { display: grid; min-height: 120px; place-content: center; justify-items: center; gap: 12px; text-align: center; }
#messageEmojiPanel .chat-emoji-panel__custom-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
#messageEmojiPanel .chat-emoji-panel__custom-toolbar span { font-size: 11px; text-align: right; }
#messageEmojiPanel .chat-emoji-panel__custom-toolbar button { flex-shrink: 0; }
#messageEmojiPanel .chat-custom-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 12px; }
#messageEmojiPanel .chat-custom-emoji { position: relative; min-width: 0; }
#messageEmojiPanel .chat-custom-emoji__send { width: 100%; height: 70px; padding: 3px; overflow: hidden; background: #fff; }
#messageEmojiPanel .chat-custom-emoji__send img { width: 100%; height: 100%; object-fit: contain; }
#messageEmojiPanel .chat-custom-emoji__remove { position: absolute; top: -6px; right: -6px; width: 22px; min-height: 22px; padding: 0; border-radius: 50%; background: #536764; color: #fff; }
#messageEmojiPanel .chat-custom-emoji > div { display: flex; justify-content: space-between; }
#messageEmojiPanel .chat-custom-emoji > div button { min-width: 0; font-size: 12px; padding: 2px; }
#messageEmojiPanel .chat-custom-emoji.is-sending::after { content: "发送中"; position: absolute; inset: 0; display: grid; place-items: center; background: #18302ab8; color: #fff; pointer-events: none; }
