/* ===== Comments Instagram-style ===== */
.comment-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  align-items: flex-start;
}
.comment-item.cm-reply {
  padding-left: 36px;
}
.comment-item.cm-pinned {
  background: rgba(37, 99, 235, 0.06);
}
.comment-item .cm-av,
.comment-item > img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.comment-body { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.cm-head { margin-bottom: 2px; }
.cm-meta { color: var(--text-muted); font-size: 12px; font-weight: 400; }
.cm-text { word-break: break-word; }
.cm-mention { color: #2563eb; font-weight: 600; }
.cm-edited { font-size: 11px; color: var(--text-muted); }
.cm-deleted-text { font-style: italic; color: var(--text-muted); }
.cm-pin-label {
  display: block;
  font-size: 11px;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 4px;
}
.cm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.cm-act {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.cm-act:hover { color: var(--text); }
.cm-act.cm-danger:hover { color: #ef4444; }



.cm-reply-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cm-reply-label { font-size: 12px; color: #2563eb; }
.cm-reply-preview {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-reply-x {
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: transparent; color: var(--text-muted);
  cursor: pointer;
}
.comment-modal-form button:disabled {
  opacity: 0.5;
  pointer-events: none;
}


.cm-reply-to {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.cm-reply-to a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
a.cm-mention {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
a.cm-mention:hover { text-decoration: underline; }

/* Instagram-like reply chip */
.cm-reply-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 12px 8px;
  padding: 8px 12px;
  background: var(--bg-card, #fff);
  border: 1.5px solid #2563eb;
  border-radius: 14px;
  border-top: 1.5px solid #2563eb;
}
.cm-reply-bar[hidden] { display: none !important; }
.cm-reply-info { flex: 1; min-width: 0; }
.cm-reply-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}
.cm-reply-label b { font-weight: 700; }
.cm-reply-preview {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.cm-reply-x {
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: transparent;
  color: var(--text-muted); cursor: pointer; flex-shrink: 0;
}
