/* One conversation, as the canvas "MeshLink Web Screens" draws it (its conv-* boards; project/web.css and the kit's
   ml-navbar, ml-thread, ml-msg, ml-composer, ml-cstrip, ml-selbar, ml-menu, ml-dialog rules): the head, the pinned
   bar, the thread and its bubbles, quotes, reactions, meta and lines, the hover bar and the menu, the jump button,
   the composer and its strip, select mode, mentions, the dialogs' insides, message info beside the thread, the
   blocked panel and the empty states.
   Every colour, size and type style is a token from design/tokens.json (tokens.css, written by
   `tools/keel gen-tokens`); no literal where a variable exists, logical properties only. Loaded in index.html's
   order: frame, start, chats, conversation, media, contact, calls, settings. */

/* The view fills the main pane: the conversation's column, and message info beside it when it is open. */
.conversation {
  /* The reading column of the thread and the composer (the canvas's 760; no token). */
  --conv-column: 760px;
  display: flex;
  flex-direction: row;
  min-inline-size: 0;
  overflow: hidden;
  background: var(--chat-background);
}
.w-main > .conversation { overflow: hidden; }
.conv-main { flex: 1 1 0; min-inline-size: 0; display: flex; flex-direction: column; }

/* Icon buttons as the kit draws them (ml-iconbtn): mesh by default, ink or muted. */
.conv-iconbtn {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: var(--icon-button);
  block-size: var(--icon-button);
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--mesh);
}
.conv-iconbtn:hover { background: var(--surface-sunken); }
.conv-iconbtn:disabled { opacity: var(--opacity-disabled); background: transparent; }
.conv-iconbtn--ink { color: var(--ink); }
.conv-iconbtn--muted { color: var(--ink-muted); }
.conv-iconbtn--danger { color: var(--danger); }

/* The head (ml-navbar): Back, contact info with the title, the calls, the timer, contact info. */
.conv-head {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-block-size: var(--top-bar);
  padding-block: var(--space-2);
  padding-inline: var(--space-2) var(--space-3);
  flex: none;
  background: var(--surface-raised);
  border-block-end: var(--stroke-hairline) solid var(--line);
}
.conv-title {
  flex: 1 1 auto;
  min-inline-size: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2-half);
  padding: var(--space-1) var(--space-2);
  border: none;
  border-radius: var(--radius-md);
  background: none;
  color: var(--ink);
  text-align: start;
}
.conv-title:hover { background: var(--surface-sunken); }
.conv-title__stack { display: flex; flex-direction: column; align-items: flex-start; min-inline-size: 0; }
.conv-title__name { display: flex; align-items: center; gap: var(--space-1); min-inline-size: 0; max-inline-size: 100%; }
.conv-title__text {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: var(--headline-weight) var(--headline-size) / var(--headline-line) var(--headline-family);
}
.conv-title__timer { display: inline-grid; color: var(--ink-muted); }
.conv-title__sub {
  color: var(--mesh);
  font: var(--footnote-strong-weight) var(--footnote-strong-size) / var(--footnote-strong-line) var(--footnote-strong-family);
}

/* Select mode's bar (ml-selbar) in the head's place. */
.selection-bar { background: var(--mesh-tint); border-block-end-color: transparent; }
.selection-count {
  flex: 1 1 auto;
  margin: 0;
  padding-inline: var(--space-1);
  font: var(--headline-weight) var(--headline-size) / var(--headline-line) var(--headline-family);
}

/* A strip over the thread or the composer (ml-cstrip): the pinned bar, replying, editing. */
.strip {
  display: flex;
  align-items: center;
  gap: var(--space-2-half);
  padding-block: var(--space-2);
  padding-inline: max(var(--space-4), calc((100% - var(--conv-column)) / 2 - var(--space-4) + var(--space-2))) max(var(--space-4), calc((100% - var(--conv-column)) / 2 - var(--space-4)));
  flex: none;
  background: var(--surface-raised);
  border-block-start: var(--stroke-hairline) solid var(--line);
  color: var(--ink);
}
.strip-icon { display: inline-grid; color: var(--mesh); }
.strip-bar { inline-size: var(--quote-bar); align-self: stretch; border-radius: var(--radius-pill); background: var(--mesh); }
.strip-body { flex: 1 1 auto; min-inline-size: 0; display: flex; flex-direction: column; text-align: start; }
.strip-who {
  color: var(--mesh);
  font: var(--footnote-strong-weight) var(--footnote-strong-size) / var(--footnote-strong-line) var(--footnote-strong-family);
}
.strip-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-muted);
  font: var(--subhead-weight) var(--subhead-size) / var(--subhead-line) var(--subhead-family);
}
.pinned-bar { flex: none; margin: 0; padding: 0; list-style: none; }
.pinned-row {
  inline-size: 100%;
  padding-inline: max(var(--space-5), calc((100% - var(--conv-column)) / 2));
  border: none;
  border-block-end: var(--stroke-hairline) solid var(--line);
}
.pinned-row:hover { background: var(--surface-sunken); }

/* The thread (ml-thread): the reading column on the chat's dotted ground, newest at the bottom. */
.conv-body { position: relative; flex: 1 1 auto; min-block-size: 0; display: flex; flex-direction: column; }
.thread {
  flex: 1 1 auto;
  min-block-size: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1-half);
  margin: 0;
  padding-block: var(--space-4);
  padding-inline: max(var(--space-5), calc((100% - var(--conv-column)) / 2));
  list-style: none;
  overflow-y: auto;
  background-color: var(--chat-background);
  background-image:
    radial-gradient(circle at 1px 1px, var(--chat-dot) var(--chat-dot-radius), transparent calc(var(--chat-dot-radius) + 0.1px)),
    radial-gradient(circle at calc(var(--chat-pattern) / 2 + 1px) calc(var(--chat-pattern) / 2 + 1px), var(--chat-dot) var(--chat-dot-small), transparent calc(var(--chat-dot-small) + 0.1px));
  background-size: var(--chat-pattern) var(--chat-pattern);
}
.thread > :first-child { margin-block-start: auto; }
.thread--new > :first-child { margin-block-start: 0; }
.thread-end { flex: none; block-size: 0; }
.thread-note, .thread-more { align-self: center; color: var(--ink-muted); font: var(--footnote-weight) var(--footnote-size) / var(--footnote-line) var(--footnote-family); }

/* A chat with no messages yet (conv-new). */
.thread--new { justify-content: center; }
.conv-new { display: flex; flex-direction: column; align-items: center; gap: var(--space-2-half); margin: auto; text-align: center; }
.conv-new__title { margin: 0; font: var(--title-weight) var(--title-size) / var(--title-line) var(--title-family); letter-spacing: var(--title-tracking); }
.conv-new__text { margin: 0; color: var(--ink-muted); font: var(--callout-weight) var(--callout-size) / var(--callout-line) var(--callout-family); }

/* The lines (ml-sys, ml-unread): a timer, a pin, "left"; the unread line across the column. */
.line {
  align-self: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-1-half);
  max-inline-size: 86%;
  padding: var(--space-1) var(--space-2-half);
  border-radius: var(--radius-quote);
  background: var(--bubble-system);
  color: var(--ink-muted);
  text-align: center;
  font: var(--footnote-weight) var(--footnote-size) / var(--footnote-line) var(--footnote-family);
}
.line .icon { flex: none; margin-block-start: var(--space-half); }
.line.unread-line {
  align-self: stretch;
  max-inline-size: none;
  margin-block: var(--space-1-half);
  padding-inline: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--surface-raised) 80%, transparent);
  color: var(--mesh);
  font: var(--footnote-strong-weight) var(--footnote-strong-size) / var(--footnote-strong-line) var(--footnote-strong-family);
}

/* A message row (ml-msg): its mark in select mode, then its column: the bubble, reactions, meta, the hover bar. */
.bubble { position: relative; display: flex; align-items: center; gap: var(--space-2); }
.bubble.mine { justify-content: flex-end; }
.bubble.mine .select-mark { order: 1; }
.bubble-col { position: relative; display: flex; flex-direction: column; gap: 3px; max-inline-size: 68%; min-inline-size: 0; }
.bubble.theirs .bubble-col { align-items: flex-start; }
.bubble.mine .bubble-col { align-items: flex-end; }
.bubble-box {
  max-inline-size: 100%;
  padding: 9px var(--space-3-half);
  border-radius: var(--radius-bubble-round);
  box-shadow: 0 var(--stroke-hairline) 0 color-mix(in srgb, var(--ink) 6%, transparent);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font: var(--body-weight) var(--body-size) / var(--body-line) var(--body-family);
}
.bubble.theirs .bubble-box { background: var(--surface-raised); color: var(--ink); border-end-start-radius: var(--radius-bubble-tail); }
.bubble.mine .bubble-box { background: var(--mesh); color: var(--on-mesh); border-end-end-radius: var(--radius-bubble-tail); }
.bubble-box.has-media { padding: var(--space-1) var(--space-1) var(--space-2); }
.bubble-box.has-media .body:empty { display: none; }
.bubble-box.has-media .body { display: block; padding: var(--space-1-half) var(--space-2-half) 0; }
.bubble-box.deleted { display: flex; align-items: center; gap: var(--space-1-half); font-style: italic; }
.bubble.theirs .bubble-box.deleted, .bubble.mine .bubble-box.deleted { background: var(--surface-raised); color: var(--ink-muted); }
.bubble-box.unsupported .body { font-style: italic; color: var(--ink-muted); }
.bubble.mine .bubble-box.unsupported .body { color: inherit; opacity: var(--opacity-pressed); }
.bubble.marked .bubble-box, .bubble.flash .bubble-box { box-shadow: 0 0 0 var(--stroke-regular) var(--mesh), 0 0 0 calc(2 * var(--stroke-regular)) var(--surface-raised); }
.bubble.flash .bubble-box { box-shadow: 0 0 0 var(--stroke-regular) var(--highlight-current); background: var(--highlight); color: var(--ink); }
.bubble-author {
  display: block;
  margin-block-end: var(--space-half);
  color: var(--mesh);
  font: var(--footnote-strong-weight) var(--footnote-strong-size) / var(--footnote-strong-line) var(--footnote-strong-family);
}
.fwd {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-block-end: var(--space-half);
  font: var(--footnote-weight) var(--footnote-size) / var(--footnote-line) var(--footnote-family);
  font-style: italic;
  color: var(--ink-muted);
}
.bubble.mine .fwd { color: inherit; opacity: var(--opacity-pressed); }

/* A quote inside a bubble (ml-quote). */
.quote {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  inline-size: 100%;
  margin-block-end: var(--space-1-half);
  padding: var(--space-1-half) var(--space-2-half);
  border: none;
  border-radius: var(--radius-quote-round);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: inherit;
  text-align: start;
  font: var(--subhead-weight) var(--subhead-size) / var(--subhead-line) var(--subhead-family);
}
.bubble.mine .quote { background: color-mix(in srgb, var(--on-mesh) 16%, transparent); }
.quote:disabled { cursor: default; }
.quote-who { font-weight: var(--subhead-strong-weight); }

/* Reactions under the bubble (ml-reacts, ml-react). */
.reactions { display: flex; gap: var(--space-1); margin-block-start: calc(-1 * var(--space-2)); padding: 0 var(--space-2-half); border: none; background: none; }
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  block-size: var(--reaction-chip-height);
  padding-inline: var(--space-2);
  border: var(--stroke-hairline) solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--reaction-chip);
  color: var(--ink);
  font: var(--footnote-strong-weight) var(--footnote-strong-size) / var(--footnote-strong-line) var(--footnote-strong-family);
}
.reaction.mine { background: var(--mesh-tint); border-color: var(--mesh); }

/* The meta under the bubble (ml-meta): the star, "edited", the time, the disappearing mark, my tick. */
.bubble-meta {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding-inline: var(--space-1-half);
  color: var(--ink-muted);
  font: var(--label-weight) var(--label-size) / var(--label-line) var(--label-family);
  font-weight: var(--body-weight);
  letter-spacing: 0;
}
.meta-icon { display: inline-grid; }
.bubble-meta.read .tick { color: var(--mesh); }
.failed {
  display: flex;
  align-items: center;
  gap: var(--space-1-half);
  padding-inline: var(--space-1-half);
  color: var(--danger);
  font: var(--footnote-strong-weight) var(--footnote-strong-size) / var(--footnote-strong-line) var(--footnote-strong-family);
}
.failed span { white-space: pre; }
.failed-retry { padding: 0; border: none; background: none; color: var(--danger); font: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* conv-hover: React, Reply, Message actions beside the bubble's top, inside its own row, on hover and on keyboard focus. */
.msg-hover {
  position: absolute;
  inset-block-start: 0;
  z-index: 3;
  display: inline-flex;
  gap: var(--space-half);
  padding: var(--space-half);
  border-radius: var(--radius-pill);
  background: var(--surface-overlay);
  box-shadow: var(--shadow-fab);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast);
}
.msg-hover .conv-iconbtn { inline-size: var(--button-sm); block-size: var(--button-sm); }
.bubble.theirs .msg-hover { inset-inline-start: calc(100% + var(--space-2)); }
.bubble.mine .msg-hover { inset-inline-end: calc(100% + var(--space-2)); }
.bubble:hover .msg-hover, .msg-hover:focus-within, .msg-hover.open { opacity: 1; pointer-events: auto; }

/* conv-menu: the reaction bar and the menu under the bubble. */
.msg-pop {
  position: absolute;
  inset-block-start: calc(100% + var(--space-2));
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.bubble.theirs .msg-pop { inset-inline-start: 0; align-items: flex-start; }
.bubble.mine .msg-pop { inset-inline-end: 0; align-items: flex-end; }
.react-bar {
  display: inline-flex;
  align-items: center;
  gap: var(--space-half);
  padding: var(--space-1) var(--space-1-half);
  border-radius: var(--radius-pill);
  background: var(--surface-overlay);
  box-shadow: var(--shadow-toast);
}
.react {
  display: grid;
  place-items: center;
  inline-size: var(--reaction-button);
  block-size: var(--reaction-button);
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: none;
  font: var(--emoji-weight) var(--emoji-size) / 1 var(--emoji-family);
}
.react:hover { background: var(--surface-sunken); }
.react.on { background: var(--mesh-tint); }
.msg-menu {
  display: flex;
  flex-direction: column;
  inline-size: var(--message-menu-width);
  overflow: hidden;
  border-radius: var(--radius-menu);
  background: var(--surface-overlay);
  box-shadow: var(--shadow-toast);
}
.msg-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: none;
  border-block-end: var(--stroke-hairline) solid var(--line);
  background: none;
  color: var(--ink);
  text-align: start;
  font: var(--body-weight) var(--body-size) / var(--headline-line) var(--body-family);
}
.msg-menu__item:last-child { border-block-end: none; }
.msg-menu__item .icon { color: var(--ink-muted); }
.msg-menu__item:hover, .msg-menu__item:focus-visible { background: var(--surface-sunken); }
.msg-menu__item.danger, .msg-menu__item.danger .icon { color: var(--danger); }

/* The typing dots (ml-typing). */
.typing-dots {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  block-size: var(--typing-indicator);
  padding-inline: var(--space-3-half);
  border-radius: var(--radius-bubble);
  background: var(--surface-raised);
}
.typing-dots i { inline-size: var(--typing-dot); block-size: var(--typing-dot); border-radius: var(--radius-pill); background: var(--ink-muted); }
.typing-dots i:nth-child(2) { opacity: 0.7; }
.typing-dots i:nth-child(3) { opacity: 0.4; }
@media (prefers-reduced-motion: no-preference) {
  .typing-dots i { animation: conv-typing 1.2s ease-in-out infinite; }
  .typing-dots i:nth-child(2) { animation-delay: 0.15s; }
  .typing-dots i:nth-child(3) { animation-delay: 0.3s; }
  @keyframes conv-typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
}

/* The jump button (ml-jump) at the column's end, above the composer. */
.jump-bottom {
  position: absolute;
  inset-block-end: var(--space-4);
  inset-inline-end: max(var(--space-5), calc((100% - var(--conv-column)) / 2));
  display: grid;
  place-items: center;
  inline-size: var(--jump-to-bottom);
  block-size: var(--jump-to-bottom);
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--surface-overlay);
  color: var(--mesh);
  box-shadow: var(--shadow-fab);
}
.jump-bottom .badge { position: absolute; inset-block-start: calc(-1 * var(--space-1-half)); inset-inline-end: calc(-1 * var(--space-1)); }

/* The composer (ml-composer): attach, the field, the microphone or send. */
.composer-box { flex: none; background: var(--surface-raised); }
.composer-box .strip { border-block-start: var(--stroke-hairline) solid var(--line); }
.composer {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  padding-block: var(--space-2-half) var(--space-3-half);
  padding-inline: max(var(--space-4), calc((100% - var(--conv-column)) / 2 - var(--space-4)));
  background: var(--surface-raised);
  border-block-start: var(--stroke-hairline) solid var(--line);
}
.composer-box .strip + .composer { border-block-start: none; }
.composer-field {
  flex: 1 1 auto;
  min-inline-size: 0;
  min-block-size: var(--icon-button);
  max-block-size: 160px;
  padding: var(--space-2-half) var(--space-4);
  border: none;
  border-radius: var(--radius-field);
  background: var(--surface-sunken);
  color: var(--ink);
  resize: none;
  field-sizing: content;
  font: var(--body-weight) var(--body-size) / var(--body-line) var(--body-family);
}
.composer-field::placeholder { color: var(--ink-muted); }
.composer-field:focus-visible { outline: var(--stroke-regular) solid var(--focus); outline-offset: var(--stroke-regular); }
.composer-send {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: var(--icon-button);
  block-size: var(--icon-button);
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--mesh);
  color: var(--on-mesh);
}
.composer-send:disabled { background: var(--surface-sunken); color: var(--ink-muted); }

/* The blocked panel (conv-blocked) and a left group's, in the composer's place. */
.blocked-panel {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-4-half);
  background: var(--surface-raised);
  border-block-start: var(--stroke-hairline) solid var(--line);
  text-align: center;
}
.blocked-panel p { margin: 0; max-inline-size: var(--conv-column); font: var(--callout-weight) var(--callout-size) / var(--callout-line) var(--callout-family); }

/* The chat cannot be opened (conv-unavailable). */
.conv-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2-half);
  padding: var(--space-5) var(--space-6);
  background: var(--surface);
  text-align: center;
}
.conv-empty__title { margin: 0; font: var(--title-condensed-weight) var(--title-condensed-size) / var(--title-condensed-line) var(--title-condensed-family); }
.conv-empty__text { margin: 0; max-inline-size: 30ch; color: var(--ink-muted); font: var(--callout-weight) var(--callout-size) / var(--callout-line) var(--callout-family); }

/* Select mode's mark (k-tick) beside a bubble. */
.select-mark {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: var(--space-5);
  block-size: var(--space-5);
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  box-shadow: inset 0 0 0 var(--stroke-regular) var(--line-strong);
  color: var(--on-mesh);
}
.select-mark.on { background: var(--mesh); box-shadow: none; }

/* Mentions and the mention picker over the composer. */
.mention { color: var(--mention); }
.mention.me { color: var(--beacon); }
.bubble.mine .mention { color: inherit; }
.mention-picker {
  display: flex;
  flex-direction: column;
  max-block-size: 180px;
  overflow-y: auto;
  margin: 0;
  padding: var(--space-1) max(var(--space-4), calc((100% - var(--conv-column)) / 2 - var(--space-4)));
  list-style: none;
  border-block-start: var(--stroke-hairline) solid var(--line);
}
.mention-full { color: var(--ink-muted); font: var(--footnote-weight) var(--footnote-size) / var(--footnote-line) var(--footnote-family); }
.mention-row { inline-size: 100%; padding: var(--space-2) var(--space-3); border: none; border-radius: var(--radius-md); background: none; color: var(--ink); text-align: start; }
.mention-row:hover { background: var(--surface-sunken); }

/* Inside the conversation's dialogs (ml-dialog, ml-group, ml-row, ml-radio, ml-check). */
.conv-dialog { max-block-size: calc(100% - 2 * var(--space-5)); overflow-y: auto; }
.w-dialog p.conv-dialog__note { font: var(--footnote-weight) var(--footnote-size) / var(--footnote-line) var(--footnote-family); }
.w-dialog p.conv-dialog__note.strong { color: var(--ink); }
.conv-group {
  display: flex;
  flex-direction: column;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface-sunken);
}
.conv-group--scroll { max-block-size: 320px; overflow-y: auto; }
.conv-group > li { display: contents; }
.conv-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  inline-size: 100%;
  min-block-size: var(--icon-button);
  padding: 0 var(--space-4);
  border: none;
  border-block-end: var(--stroke-hairline) solid var(--line);
  background: none;
  color: var(--ink);
  text-align: start;
  font: var(--body-weight) var(--body-size) / var(--headline-line) var(--body-family);
}
.conv-group > :last-child .conv-opt, .conv-group > .conv-opt:last-child { border-block-end: none; }
button.conv-opt:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.conv-reactor .disc { width: var(--avatar-xs); height: var(--avatar-xs); font-size: var(--footnote-size); }
.conv-opt__title { flex: 1 1 auto; min-inline-size: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: var(--headline-weight); }
.conv-opt__emoji { font: var(--emoji-weight) var(--app-bar-title-size) / 1 var(--emoji-family); }
.conv-radio {
  display: inline-grid;
  place-items: center;
  flex: none;
  inline-size: var(--space-5);
  block-size: var(--space-5);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 var(--stroke-regular) var(--line-strong);
}
.conv-radio.on { box-shadow: inset 0 0 0 var(--stroke-regular) var(--mesh); }
.conv-radio.on::after { content: ""; inline-size: var(--space-3); block-size: var(--space-3); border-radius: var(--radius-pill); background: var(--mesh); }
.conv-check {
  display: inline-grid;
  place-items: center;
  flex: none;
  inline-size: var(--space-5);
  block-size: var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 var(--stroke-regular) var(--line-strong);
}
.conv-check.on { background: var(--mesh); box-shadow: none; }
.conv-check.on::after {
  content: "";
  inline-size: var(--space-1-half);
  block-size: var(--space-3);
  margin-block-start: -3px;
  border: solid var(--on-mesh);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.conv-search { flex: 1 1 auto; min-inline-size: 0; padding: 0; border: none; outline: none; background: transparent; color: inherit; font: inherit; }
.conv-search::placeholder { color: var(--ink-muted); }
.conv-units { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.conv-unit {
  block-size: var(--chip);
  padding-inline: var(--space-3);
  border: var(--stroke-hairline) solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--ink);
  font: var(--subhead-strong-weight) var(--subhead-size) / var(--subhead-line) var(--subhead-family);
}
.conv-unit.on { border-color: transparent; background: var(--mesh-tint); color: var(--mesh); }

/* Message info beside the thread (conv-info). */
.conv-info { flex: none; }
.w-side.conv-info > .w-head { flex: none; }
.conv-info__body { display: flex; flex-direction: column; gap: var(--space-4); padding-block-end: var(--space-5); overflow-y: auto; }
.conv-info__preview { padding: var(--space-3) var(--space-4-half) var(--space-4-half); background: var(--chat-background); }
.conv-info__preview .bubble-col { max-inline-size: 88%; }
.conv-info .conv-group { margin-inline: var(--space-4); background: var(--surface-raised); box-shadow: inset 0 0 0 var(--stroke-hairline) var(--line); }
.info-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-block-size: var(--row-min);
  padding: var(--space-3) var(--space-4);
  border-block-end: var(--stroke-hairline) solid var(--line);
}
.info-row:last-child { border-block-end: none; }
.info-tile {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: calc(2 * var(--space-4));
  block-size: calc(2 * var(--space-4));
  border-radius: var(--radius-tile);
  background: var(--surface-sunken);
  color: var(--ink-muted);
}
.info-tile.on { background: var(--mesh-tint); color: var(--mesh); }
.info-row__label { flex: 1 1 auto; min-inline-size: 0; font: var(--body-weight) var(--body-size) / var(--headline-line) var(--body-family); }
.info-row__value { flex: none; color: var(--ink-muted); font: var(--callout-weight) var(--callout-size) / var(--callout-line) var(--callout-family); }
.info-line { margin: 0; padding-inline: var(--space-5); color: var(--ink-muted); font: var(--callout-weight) var(--callout-size) / var(--callout-line) var(--callout-family); }
.info-line.danger { color: var(--danger); }
.conv-info .w-btn--quiet { align-self: flex-start; margin-inline: var(--space-3); }
.info-people { display: flex; flex-direction: column; gap: var(--space-2); }
.info-people__title { margin: 0; padding-inline: var(--space-5); color: var(--ink-muted); font: var(--label-weight) var(--label-size) / var(--label-line) var(--label-family); letter-spacing: var(--label-tracking); text-transform: uppercase; }
