.mf-sendmsg-placeholders,
.mf-sendmsg-emojis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.mf-sendmsg-placeholders .mf-token,
.mf-sendmsg-emojis .mf-emoji {
  border: 1px solid #ced4da;
  background: #f8f9fa;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}

.mf-sendmsg-placeholders .mf-token:hover,
.mf-sendmsg-emojis .mf-emoji:hover {
  background: #e9ecef;
}

.mf-sendmsg-signature textarea {
  font-size: 0.85rem;
  background-color: #fdfdfd;
}

.mf-sendmsg-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.5rem;
}

.mf-sendmsg-counter {
  color: var(--bs-secondary-color, #8b949e);
  font-size: 0.8rem;
  white-space: nowrap;
}

.mf-sendmsg-counter.is-over-limit {
  color: var(--bs-danger, #dc3545);
  font-weight: 700;
}

.mf-sendmsg-photo {
  border: 1px solid var(--bs-border-color, #495057);
  border-radius: 6px;
  padding: 12px;
  background: rgba(110, 118, 129, 0.08);
}

.mf-sendmsg-photo__controls {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.mf-sendmsg-photo__controls .form-control {
  min-width: 0;
}

.mf-sendmsg-photo__preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--bs-border-color, #495057);
}

.mf-sendmsg-photo__preview[hidden] {
  display: none !important;
}

.mf-sendmsg-photo__preview img {
  width: 112px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--bs-border-color, #495057);
  background: #0d1117;
}

.mf-sendmsg-photo__meta {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--bs-secondary-color, #8b949e);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .mf-sendmsg-photo__controls,
  .mf-sendmsg-photo__preview {
    align-items: stretch;
    flex-direction: column;
  }

  .mf-sendmsg-photo__preview img {
    width: 100%;
    height: auto;
    max-height: 260px;
  }
}
