/* Comment threads on one exact version. People carry a solid amber mark,
   agent replies a dashed periwinkle mark and rule. Threads are rows, not cards. */
.comments { display:grid; gap:12px; padding-top:22px; border-top:1px solid var(--line); min-width:0; }
.comments-heading { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 12px; }
.comments>.comments-heading h3 { font-family:var(--font-display); font-size:16px; font-weight:620; }
.comments>.comments-heading .muted,.comments-other { font-size:12px; }
.comments-list { display:grid; }
.comment-thread { display:grid; gap:12px; min-width:0; padding:16px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.comment-thread:last-child { border-bottom:1px solid var(--line); }
.comment-thread>.comments-heading strong { font-size:13px; font-weight:600; }
.comment-thread>.muted { font-size:12px; }
.comment-thread.resolved>.comment { opacity:.75; }
.comment-status { display:inline-flex; align-items:center; gap:6px; padding:1px 9px 1px 7px; border-radius:999px; font-size:12px; font-weight:550; background:var(--human-soft); color:var(--human); }
.comment-status::before { content:""; width:7px; height:7px; border-radius:50%; box-shadow:inset 0 0 0 1.5px currentColor; }
.comment-status.resolved { background:var(--done-soft); color:var(--done); }
.comment-status.resolved::before { background:currentColor; box-shadow:none; }
.comment-quote,.comments-numbered { margin:0; padding:10px 12px; border-radius:var(--radius-control); background:var(--code); color:var(--muted); font-size:12px; line-height:1.6; white-space:pre-wrap; overflow-x:auto; }
.comment-quote { border-left:2px solid var(--line-strong); }
.comment { min-width:0; }
.comment-author { display:flex; align-items:center; gap:10px; margin:0; font-size:13.5px; font-weight:600; }
.comment>.muted { margin:0 0 4px 30px; font-size:12px; }
.comment>.comment-plain,.comment>.agent-message,.comment>p:last-child { margin-left:30px; }
.comment-plain { white-space:pre-wrap; line-height:1.6; max-width:72ch; }
.comment-agent { padding:2px 0 2px 12px; margin-left:-12px; border-left:2px dashed var(--agent); }
.comment-agent .agent-message { font-size:14px; }
.comment-mention { padding:0 3px; border-radius:4px; background:var(--human-soft); color:var(--human); font-weight:600; }
.comment-thread>textarea { min-height:44px; margin-left:30px; width:calc(100% - 30px); font-size:13.5px; }
.comment-thread>.reviews-actions { margin-left:30px; }
.comment-thread>.reviews-actions .button { min-height:32px; }
.comment-thread>.reviews-actions select { width:auto; max-width:200px; min-height:32px; margin-left:auto; font-size:13px; }
.comments-compose { display:grid; gap:10px; padding-top:8px; }
.comments-compose h4 { margin:0; font-size:14px; font-weight:600; }
.comments-compose>.button { justify-self:start; }
.comments-anchor { display:grid; grid-template-columns:auto 120px 120px; gap:8px; align-items:center; justify-content:start; font-size:13px; }
.comments-lines summary { font-size:13px; color:var(--muted); }
.comments-lines[open] summary { margin-bottom:8px; color:var(--ink); }
@media (max-width:700px) {
  .comments-anchor { grid-template-columns:1fr 1fr; }
  .comments-anchor>span { grid-column:1/-1; }
  .comment-thread>textarea,.comment-thread>.reviews-actions,.comment>.muted,.comment>.comment-plain,.comment>.agent-message,.comment>p:last-child { margin-left:0; width:100%; }
  .comment-thread>.reviews-actions select { margin-left:0; max-width:none; flex:1 1 140px; }
}
