/* Reply line with curved spine connector */
.msg-reply-line {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  position: relative;
  min-height: 20px;
}

/* The curved connector spine ╭─── shape */
.msg-reply-spine {
  position: absolute;
  left: -36px;
  top: 50%;
  width: 33px;
  height: 8px;
  border-left: 2px solid var(--interactive-muted);
  border-top: 2px solid var(--interactive-muted);
  border-top-left-radius: 6px;
}

.msg-reply-content {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.msg-reply-author {
  color: var(--interactive-normal);
  font-weight: var(--font-weight-semibold);
  flex-shrink: 0;
}

.msg-reply-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
}

/* Role badge pills (e.g. TLOU, CYBR) */
.msg-role-badge {
  display: inline-flex;
  align-items: center;
  background: var(--background-modifier-accent);
  color: var(--text-normal);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  margin-left: 2px;
  vertical-align: middle;
  letter-spacing: 0.02em;
  line-height: 16px;
}

/* When message has a reply, push avatar below the reply line */
.msg-has-reply .message-avatar,
.msg-has-reply img.message-avatar {
  top: 32px;
}

/* Image-based avatar (from SVG or URL) */
img.message-avatar {
  width: var(--chat-avatar-size);
  height: var(--chat-avatar-size);
  border-radius: var(--radius-round);
  flex-shrink: 0;
  object-fit: cover;
  position: absolute;
  left: 16px;
  top: 8px;
}
