.hmhy-v2-discussion {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.hmhy-v2-discussion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.hmhy-v2-discussion__status,
.hmhy-v2-discussion__meta,
.hmhy-v2-discussion__empty {
  opacity: 0.72;
  font-size: 0.9rem;
}

.hmhy-v2-discussion__messages {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.hmhy-v2-discussion__message {
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.hmhy-v2-discussion__text {
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.hmhy-v2-discussion__form {
  display: grid;
  gap: 0.65rem;
}

.hmhy-v2-discussion__form textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 82px;
  padding: 0.75rem;
  border-radius: 10px;
  font: inherit;
}

.hmhy-v2-discussion__form button {
  justify-self: start;
  cursor: pointer;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
}

.hmhy-v2-discussion__form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

/* HMHU V2 P2P7 — governed message reactions */
.hmhy-v2-discussion__reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.hmhy-v2-discussion__reaction {
  appearance: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1;
  padding: 0.45rem 0.7rem;
}

.hmhy-v2-discussion__reaction:hover,
.hmhy-v2-discussion__reaction:focus-visible {
  transform: translateY(-1px);
}

.hmhy-v2-discussion__reaction:disabled {
  cursor: wait;
  opacity: 0.6;
}

/* HMHU V2 P2P7 — independent reaction count presentation */
.hmhy-v2-discussion__reaction {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hmhy-v2-discussion__reaction-label {
  display: inline-block;
}

.hmhy-v2-discussion__reaction-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}
