/* The chat list (js/chatlist.js): edge to edge, no cards, no gutters. Colours come from the theme tokens. */
.cl-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-auto-rows: 60px; align-content: start; }
.cl-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 12px; min-width: 0; height: 60px; color: inherit; text-decoration: none; cursor: pointer; box-shadow: inset 0 -1px 0 var(--hairline); -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.cl-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cl-row.sel { background: var(--s2); }
.cl-ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: var(--r); background: var(--s2); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.cl-row.sel .cl-ic { background: var(--s3); }
.cl-ic.dm { border-radius: 50%; background: var(--s3); color: var(--bg-deep); }   /* a person: round, in their own colour */
.cl-ic.dm:not([style]) { color: var(--text-2); }   /* no usable colour of their own: keep the initial readable on the grey */
.cl-row.live .cl-ic { color: var(--ok); }
.cl-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cl-l { display: flex; align-items: center; gap: 8px; min-width: 0; line-height: 1.3; }
.cl-nm { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--text-2); }
.cl-mu { flex: 0 0 auto; display: inline-flex; color: var(--muted); }
.cl-tm { flex: 0 0 auto; margin-left: auto; font-size: 12px; color: var(--muted); }
.cl-pv { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--muted); }
.cl-row.un .cl-nm { font-weight: 700; color: var(--text); }
.cl-row.un .cl-pv, .cl-row.un .cl-tm { color: var(--text-2); }
.cl-row.live .cl-pv { color: var(--ok); }
.cl-row.muted .cl-nm { color: var(--muted); font-weight: 500; }
.cl-bd { flex: 0 0 auto; background: var(--danger); color: var(--on-accent); font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: var(--r-pill); padding: 0 5px; }
/* row menu grip: lives in the row's own 12px right padding, so it covers nothing and moves nothing */
.cl-more { position: absolute; top: 0; right: 0; bottom: 0; width: 12px; display: none; align-items: center; justify-content: center; color: var(--muted); }
.cl-more:hover { color: var(--text); background: var(--s3); }
@media (hover: hover) {
  .cl-row:hover { background: var(--s1); }
  .cl-row:hover .cl-more { display: flex; }
}
.cl-req { cursor: default; }
.cl-act { flex: 0 0 auto; height: 36px; border: 0; border-radius: var(--r-sm); padding: 0 12px; background: var(--s2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cl-act:hover { background: var(--s3); }
.cl-act.yes { background: var(--accent); color: var(--on-accent); }
.cl-act.yes:hover { background: var(--accent-h); }
.cl-menu .chm-item { min-height: 36px; }
@media (max-width: 720px) {
  .cl-list { grid-template-columns: 1fr; }
  .cl-menu .chm-item { min-height: 44px; font-size: 15px; }
}
