/* MEETUS 0.6.25.2 COMMUNITY2-TG11-WORKSPACE19 */

/* Emoji-only rows: metadata overlays the reserved right side instead of
   creating a second line below the emoji. */
#messageArea > .message-row.workspace19-emoji-row {
  min-height: 0 !important;
  margin: -2px 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

#messageArea > .message-row.workspace19-emoji-row > .message-bubble.emoji-only-bubble,
#messageArea > .message-row.mine.workspace19-emoji-row > .message-bubble.emoji-only-bubble {
  min-width: 0 !important;
  min-height: 0 !important;
  width: fit-content !important;
  padding: 0 38px 0 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#messageArea > .message-row.mine.workspace19-emoji-row > .message-bubble.emoji-only-bubble {
  padding-right: 58px !important;
}

.workspace19-emoji-row .message-text.emoji-only-text {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 38px !important;
  line-height: .88 !important;
  letter-spacing: 0 !important;
}

.workspace19-emoji-row .message-text.emoji-only-text::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.workspace19-emoji-row .message-meta {
  right: 0 !important;
  bottom: 1px !important;
  min-height: 12px !important;
  height: 12px !important;
  padding: 0 3px !important;
  background: rgba(18, 20, 24, .72) !important;
  border-radius: 6px !important;
  backdrop-filter: blur(4px);
}

.workspace19-emoji-row .message-menu-trigger {
  top: -3px !important;
  right: 0 !important;
}

.workspace19-emoji-row .message-reactions {
  margin-top: 0 !important;
}

/* Video editing is intentionally disabled. Video still has the normal
   preview, caption field and send button. */
#mediaPreviewModal[data-workspace19-video="1"] #mediaPreviewEdit,
#videoEditorModalV625 {
  display: none !important;
}

#mediaPreviewModal[data-workspace19-image="1"] #mediaPreviewEdit:not(.hidden) {
  display: inline-grid !important;
}

/* Prevent non-uniform image stretching after 90° rotation. */
#imageEditorCanvas {
  object-fit: contain !important;
  max-width: none !important;
  max-height: none !important;
}

/* Text objects keep one stable box while they are dragged. Resizing remains
   uniform through the corner handles. */
.image-text-object-v625 {
  width: max-content !important;
  max-width: 82% !important;
  transform-origin: center center !important;
  will-change: left, top, transform;
  backface-visibility: hidden;
}

.image-text-content-v625 {
  display: block !important;
  width: max-content !important;
  max-width: min(680px, 72vw) !important;
  box-sizing: border-box !important;
  white-space: pre-wrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  line-height: 1.15 !important;
  transform: translateZ(0);
}

.image-object-resize-v625 {
  width: 22px !important;
  height: 22px !important;
  touch-action: none !important;
}

.image-object-resize-v625.top-left { top: -18px !important; left: -18px !important; }
.image-object-resize-v625.top-right { top: -18px !important; right: -18px !important; }
.image-object-resize-v625.bottom-left { bottom: -18px !important; left: -18px !important; }
.image-object-resize-v625.bottom-right { right: -18px !important; bottom: -18px !important; }

.image-text-object-v625[data-workspace19-moving="1"] .image-text-content-v625 {
  pointer-events: none;
}

@media (max-width: 700px) {
  #messageArea > .message-row.workspace19-emoji-row {
    margin: -3px 0 !important;
  }

  .workspace19-emoji-row .message-text.emoji-only-text {
    font-size: 35px !important;
    line-height: .86 !important;
  }

  .image-text-content-v625 {
    max-width: 68vw !important;
  }

  .image-object-resize-v625 {
    width: 26px !important;
    height: 26px !important;
  }
}
