/* ================= Conversation: the drawer's chrome =================
   The Suite's header, scroller and pinned composer around the thread. The card, the event line,
   the day divider and the read row are the thread's own, in CSS/comment-thread.css, so the
   notes page, the framed editor and the phone draw the same card without the Suite sheet. */

/* ---------- the tab becomes the scroller, not the drawer ----------
   The composer must stay reachable on a long thread, so the thread scrolls (header fixed,
   composer pinned). `.a-conv-b` is set by altDrawerComments2() because the body is rebuilt on
   every fill. */
.alt-app .a-drawer-b.a-conv-b{ overflow-y:auto; overflow-x:hidden; padding:0; gap:0; }
.alt-app .a-conv{
  display:flex; flex-direction:column; gap:0; min-height:100%;
}

/* ---------- who is talking, and how many ---------- */
.alt-app .a-conv-h{
  flex:0 0 auto; display:flex; align-items:center; gap:var(--a-2);
  padding:var(--a-3) 12px var(--a-2); min-width:0;
}
.alt-app .a-conv-h > .a-sec-h{ flex:0 0 auto; }
/* The count is a fact about the thread, not a control — the chip's shape without its border,
   so it cannot be mistaken for something to press. Tabular figures so 9 → 10 does not jump. */
.alt-app .a-conv-n{
  flex:0 0 auto; font-family:var(--a-body); font-size:var(--a-fs-11); font-weight:600; line-height:var(--a-lh-ctl);
  font-variant-numeric:tabular-nums; color:var(--a-faint);
}
.alt-app .a-conv-n:empty{ display:none; }
/* The participants sit at the header's end, overlapped — four discs in a row is a list, four
   discs in a stack is a fact ("these people are in this"). Stacked right-to-left so the first
   speaker sits on top. */
.alt-app .a-conv-who{ margin-left:auto; display:flex; flex-direction:row-reverse; flex:0 0 auto; }
.alt-app .a-conv-who > .a-av{
  width:24px; height:24px; font-size:var(--a-fs-11); box-shadow:0 0 0 2px var(--a-panel);
}
.alt-app .a-conv-who > .a-av + .a-av{ margin-right:-6px; }
.alt-app .a-conv-who > .a-av.more{ background:var(--a-raised); color:var(--a-dim); font-weight:700; }

/* ---------- the thread ----------
   The scroll region in the drawer; on the note page `.a-comments` is a plain stack, so only
   the appearance is shared and scroll is scoped to `.a-conv`. */
.alt-app .a-comments{ display:flex; flex-direction:column; gap:var(--a-2); min-width:0; }
.alt-app .a-conv > .a-comments{
  flex:1 1 auto; min-height:160px; overflow-y:auto; overscroll-behavior:contain;
  padding:0 12px var(--a-2); scroll-padding-bottom:12px;
}
/* An empty or loading thread has one child and a column of empty space; centre it rather than
   leave it clinging to the top of a tall panel. */
.alt-app .a-conv > .a-comments > .a-empty,
.alt-app .a-conv > .a-comments > .a-load,
.alt-app .a-conv > .a-comments > .a-widget-err{ margin:auto 0; }
.alt-app .a-conv > .a-comments > .a-empty{ padding:var(--a-6) var(--a-4); }

/* ---------- the composer ----------
   Pinned ABOVE the thread, so it never runs off the bottom. Its rule sits on the bottom edge,
   the side that faces the read bar and the thread. "Add a comment" is kept as `.a-sr` only. */
.alt-app .a-composer{
  display:flex; flex-direction:column; gap:var(--a-2);
  margin-bottom:var(--a-3); padding-bottom:var(--a-3); border-bottom:1px solid var(--a-line-soft);
}
.alt-app .a-conv > .a-composer{
  flex:0 0 auto; margin-bottom:0; padding:var(--a-3) 12px; background:var(--a-panel);
  border-bottom:1px solid var(--a-line);
}
/* THE COMPOSER FOLD ROW (JS/components/comment-composer-fold.js, owner 2026-11-09) sits between the heading and the composer panel and
   takes the panel's side padding and surface: folded it is one tidy row ("Add a comment…") ruled off from the thread as the panel is;
   open, its header ("New comment") joins the panel beneath it, which brings its own top padding and rule. */
.alt-app .a-conv > .cmt-fold-row{ flex:0 0 auto; padding:0 12px var(--a-1); background:var(--a-panel); border-bottom:1px solid var(--a-line); }
.alt-app .a-conv > .cmt-fold-row:has(> .cmt-fold-bar[aria-expanded="true"]){ padding-bottom:0; border-bottom:0; }
.alt-app .a-composer .a-textarea{ min-height:60px; max-height:190px; resize:vertical; }
.alt-app .a-composer .a-textarea:focus{ border-color:var(--a-blue); }
.alt-app .a-composer-a{
  display:flex; align-items:center; justify-content:flex-end; gap:var(--a-2); flex-wrap:wrap;
}
/* The hint takes its own line via `flex-basis:100%`, the same technique as
   `.comment-add-row:has(> #taskCommentAi)` in CSS/components.css. Secondary action flush left,
   commit action hard right. */
.alt-app .a-composer-a .a-hint{ flex:1 1 100%; min-width:0; font-size:var(--a-fs-11); }
.alt-app .a-composer-a .a-hint:empty{ display:none; }
/* The commit action is pushed right and everything else falls left — one auto margin absorbs
   the free space to its own left, whether there are one, two or no secondary buttons. */
.alt-app .a-composer-a > .a-btn.primary{ margin-left:auto; }

/* ---------- narrow ----------
   The participant stack is header chrome; the thread's own narrow rules live in comment-thread.css. */
@media (max-width:560px){
  .alt-app .a-conv-who{ display:none; }
}
