/* Company > Messages (company-messages.js), the Claude Design hand-off of
   2026-10-26. The Snow palette: light, calm, and colour means channel,
   nothing else. Channel colours are tints (felts 4%, their bubbles 14%, ours
   30%), never loud fills. Every control is at least 44px to tap.
   Light or dark (Claude Design's message-board-dark, Hans 2026-11-06): every colour is a variable here, light on .mm,
   dark on .mm[data-theme="dark"]; the page sets data-theme from the owner's pick on this device, else the device's
   own setting. Her chat in the Office (.mm.is-solo) has no data-theme and keeps its own. */
.mm {
  --bg: #f4f6f9; --surface: #ffffff; --mine: #dbe8f5; --chip: #e6edf5; --line: #cfd7e2; --line-soft: #e1e6ee;
  --text: #142030; --dim: #5b6b7d; --accent: #2f6fa3; --accent-ink: #ffffff; --confirm-public: #b4441a; --warn-text: #b4441a;
  --btn-bg: #2f6fa3; --btn-text: #ffffff; --ok: #2e9e54;
  --c-email: #28a8ea; --c-dm: #e1306c; --c-comment: #f77737; --c-mention: #a259e6;
  --t-email: 40, 168, 234; --t-dm: 225, 48, 108; --t-comment: 247, 119, 55; --t-mention: 162, 89, 230;
  /* how strong a channel's tint is: the felt it sits on, their bubbles, ours; a bubble is its tint over its base */
  --felt-a: 0.04; --theirs-a: 0.14; --ours-a: 0.30; --bubble-base: transparent;
  /* what needs us: the yellow numbers (--need on --need-ink), and on a card "Your turn" in yellow, "Follow up" in orange */
  --need: #f6dc7a; --need-soft: #fdf3cf; --need-ink: #6b4e00; --need-text: #6b4e00; --due-text: #8a3a0c;
  /* the list's cards (Claude Design's message-board-dark, 2026-11-06): no outlines, tints or edges; unread is a bold
     name, bold text and a blue dot; the open one deep accent (never a channel's colour); the search field; the scrollbar */
  --card: #ffffff; --card-hover: #f3f7fc; --unread-dot: #2f6fa3; --ch-badge-bg: #ffffff; --head-line: transparent;
  --open: #235a88; --open-hover: #1e5079; --open-text: #ffffff; --open-dim: #d6e4f2; --open-need: #ffe08a; --open-due: #ffc59e;
  --open-shadow: 0 2px 8px rgba(35, 90, 136, 0.35);
  --field-bg: #ffffff; --field-border: #cfd7e2; --tab-on: #f7f9fb; --mark-bg: #d6e6f5; --mark-text: #142030; --mark-open-bg: rgba(255, 255, 255, 0.24);
  --scroll-track: #e6eaf0; --scroll-thumb: #6f7d91; --scroll-thumb-hover: #4a5a6d;
  /* initials until their picture is there, a soft colour of their own (company-messages.js avatar) */
  --face-1: #c9daf0; --face-2: #f3d1dc; --face-3: #d7ecd9; --face-4: #f5e2c4; --face-5: #e3d8f3; --face-6: #cfe9ee; --face-7: #f1d6c9;
  --toast-bg: #142030; --toast-text: #ffffff; --toast-link: #a9cdf0; --pop-shadow: 0 10px 28px rgba(20, 32, 48, 0.16);
  /* each section its own tone, the lit writing column and the dimmed one (Claude Design's addendum of 2026-10-31):
     a header band and a writing band one step deeper than the section, tone steps instead of lines inside a column */
  --sec-list: #eef1f5; --sec-convo: #ffffff; --sec-her: #ffffff; --sec-inactive: #eceff3; --sec-divider: #dde3eb;
  --head-list: #e6eaf0; --head-convo: #f2f5f9; --head-her: #f2f5f9; --head-inactive: #e4e8ee;
  --head-h: 84px;   /* every column's header strip: the height the Messages heading always had (owner, 2026-10-31) */
  --text-inactive: #3a4757; --dim-inactive: #4a5a6c; --input-active: #ffffff; --input-inactive: #f5f7f9; --focus-ring: rgba(47, 111, 163, 0.22);
  --her-bubble: #e8eef6; --her-bubble-inactive: #dfe4ea; --her-felt: rgba(47, 111, 163, 0.04);
  --accent-text: #235a88;   /* the accent as small text on a felt: 5.7:1 (the accent itself is 4.2) */
  position: relative; display: flex; height: max(560px, calc(100vh - 236px)); margin: -8px -12px;
  background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  border-radius: 16px; overflow: hidden;
}
/* Dark, Instagram's way: black behind, dark grey cards and fields, white text, colour sparingly and muted so nothing
   glows; the channels in softer pastels. All text at least 4.5:1 on what it sits on. */
.mm[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1c; --mine: #1e3550; --chip: #2c2c2c; --line: #3a3a3a; --line-soft: #262626;
  --text: #f5f5f5; --dim: #a8a8a8; --accent: #4f95d6; --accent-ink: #ffffff; --warn-text: #ff8f7a;
  --c-email: #7cc7f0; --c-dm: #f07aa0; --c-comment: #f6a477; --c-mention: #c39af0;
  --t-email: 124, 199, 240; --t-dm: 240, 122, 160; --t-comment: 246, 164, 119; --t-mention: 195, 154, 240;
  --felt-a: 0.06; --theirs-a: 0.16; --ours-a: 0.28; --bubble-base: #2a2a2a; --ok: #4cc27a;
  --need: #3d3214; --need-soft: #1a1609; --need-ink: #f5d272; --need-text: #f0cf6b; --due-text: #f2a46e;
  --card: #161616; --card-hover: #202020; --unread-dot: #4f95d6; --ch-badge-bg: #262626; --head-line: #262626;
  --open: #1d4f7c; --open-hover: #22598a; --open-dim: #c6d8ea; --open-shadow: none;
  --field-bg: #1c1c1c; --field-border: #333333; --tab-on: #161616; --mark-bg: #23476b; --mark-text: #ffffff;
  --scroll-track: #121212; --scroll-thumb: #6b6b6b; --scroll-thumb-hover: #8c8c8c;
  --face-1: #263a52; --face-2: #4a2d39; --face-3: #2c4535; --face-4: #4a3b28; --face-5: #3b3352; --face-6: #284049; --face-7: #46352b;
  --toast-bg: #262626; --toast-text: #f5f5f5; --toast-link: #7db4e6; --pop-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
  --sec-list: #000000; --sec-convo: #000000; --sec-her: #0b0b0b; --sec-inactive: #0a0a0a; --sec-divider: #262626;
  --head-list: #000000; --head-convo: #111111; --head-her: #111111; --head-inactive: #0e0e0e;
  --text-inactive: #c8c8c8; --dim-inactive: #9a9a9a; --input-active: #1c1c1c; --input-inactive: #121212; --focus-ring: rgba(79, 149, 214, 0.35);
  --her-bubble: #262626; --her-bubble-inactive: #1c1c1c; --her-felt: rgba(79, 149, 214, 0.06); --accent-text: #7db4e6;
  color-scheme: dark;
}
.mm button, .mm textarea, .mm input { font-family: inherit; }
.mm a { color: var(--accent); }
/* In a host that sets the height (opts.embedded) */
.mm.is-embedded { height: 100%; margin: 0; }
/* its own Company tab, edge to edge (company.js edgeToEdge sets the box's size): square, no frame */
.co-messages.is-edge .mm:not(.is-phone) { height: 100%; margin: 0; border-radius: 0; }
.mm.is-embedded.is-phone { height: auto; margin: 0; }

/* ---- the list ---- */
.mm-list { flex: 0 0 400px; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--sec-divider); background: var(--sec-list); }
.mm-h { margin: 0; padding: 28px 24px 14px; font-size: 26px; font-weight: 700; color: var(--text); }
.mm-tabs { display: flex; gap: 1px; padding: 12px 10px 10px; background: var(--head-list); }
.mm-tab { position: relative; min-width: 38px; height: 44px; padding: 0 6px; border: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: transparent; opacity: 0.8; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text); }
.mm-tab.is-email { color: var(--c-email); } .mm-tab.is-dm { color: var(--c-dm); }
.mm-tab.is-comment { color: var(--c-comment); } .mm-tab.is-mention { color: var(--c-mention); }
/* the selected one: the open card's deep blue, its icon white (Hans, 2026-11-05) */
.mm-tabs .mm-tab.is-on { opacity: 1; background: var(--open); color: var(--open-text); box-shadow: var(--open-shadow); }
/* "Needs you", the first tab: just its yellow number, everything that needs us (grey 0 when nothing does) */
.mm-tab-big { min-width: 26px; height: 26px; padding: 0 7px; box-sizing: border-box; border-radius: 13px; background: var(--need); color: var(--need-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.mm-tab-big.is-zero { background: var(--line-soft); color: var(--dim); }
/* Bugs, the last icon (#175): not a channel, so no colour of its own; its count in the yellow of what needs us */
.mm-tab-n { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 9px;
  background: var(--need); color: var(--need-ink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
/* the heading strip */
.mm-h-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--head-h); box-sizing: border-box; padding: 0 16px 0 24px; background: var(--head-list); }
.mm-h-row .mm-h { padding: 0; }
/* light or dark, right of the heading (on a phone, left of her face) */
.mm-theme { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--dim);
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mm-theme:hover { background: var(--chip); color: var(--text); }
.mm-theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mm-release { margin: 12px 12px 4px; padding: 12px 14px; border-radius: 12px; background: var(--need-soft); box-shadow: inset 0 0 0 1px var(--need); display: flex; flex-direction: column; gap: 8px; }
.mm-release-t { margin: 0; font-size: 14px; color: var(--need-ink); font-weight: 600; }
.mm-release-b { align-self: flex-start; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--need); color: var(--need-ink); font-weight: 700; cursor: pointer; }
.mm-release-b.is-sure { box-shadow: inset 0 -3px 0 rgba(107, 78, 0, 0.35); }
.mm-release-b:disabled { opacity: 0.6; cursor: default; }
.mm-release-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mm-release-r { margin: 4px 12px 8px; font-size: 13px; color: var(--dim); }
/* Collabs (shared/creator-send.ts): Up next, Sent, In progress, Done, as tabs under the icons (Hans, 2026-11-05) */
/* Collabs' tabs stay put (Hans, 2026-11-06: they shrank and scrolled under the icons) and look like the icons:
   the selected one filled, the number in a corner bubble, none for 0 */
.mm-ctabs { flex: none; display: flex; gap: 2px; padding: 0 12px 10px; background: var(--head-list); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.mm .mm-ctabs::-webkit-scrollbar { display: none; }
.mm-ctab { position: relative; flex: 1 0 auto; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--dim);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.mm-ctab:hover { color: var(--text); }
.mm-ctab.is-on { background: var(--open); color: var(--open-text); box-shadow: var(--open-shadow); }
.mm-ctab-n { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 9px;
  background: var(--line-soft); color: var(--dim); display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; }
.mm-ctab-n.is-zero { display: none; }
.mm-ctab.is-on .mm-ctab-n { background: var(--surface); color: var(--text); box-shadow: 0 0 0 2px var(--head-list); }
.mm-ctab.is-need .mm-ctab-n { background: var(--need); color: var(--need-ink); }
/* the automatic emails, one line under the tabs */
.mm-sendl { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 10px 18px; background: var(--head-list); font-size: 13px; color: var(--dim); }
.mm-sendl-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); opacity: 0.6; }
.mm-sendl.is-on .mm-sendl-dot { background: var(--ok); opacity: 1; }
.mm-sendl.is-warn .mm-sendl-dot { background: var(--warn-text); opacity: 1; }
.mm-sendl.is-warn .mm-sendl-t { color: var(--warn-text); }
.mm-sendl-t { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-sendl-b { flex: none; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.mm-sendl-b.is-go { border-color: transparent; background: var(--open); color: var(--open-text); }
.mm-sendl-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Wait and Skip on a queued person's page */
.mm-pitch-acts { display: flex; gap: 6px; margin-left: auto; align-self: center; }
.mm-pitch-acts .mm-collab-act { position: static; }
.mm-ctab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mm-collab-none { margin: 2px 12px 6px; font-size: 13px; color: var(--dim); }
.mm-collab { position: relative; }
.mm-collab.has-act .mm-row { padding-right: 96px; }
.mm-collab.has-find .mm-row { padding-right: 122px; }
.mm-collab-act { position: absolute; right: 10px; bottom: 10px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer; }
.mm-collab-act:hover { background: var(--card-hover); }
.mm-collab-act:disabled { opacity: 0.6; cursor: default; }
.mm-collab-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Queued with no address (2026-11-06): Find email opens where it is */
a.mm-collab-act { display: inline-flex; align-items: center; box-sizing: border-box; text-decoration: none; }
.mm-collab-act.is-find { border-color: transparent; background: var(--need); color: var(--need-ink); font-weight: 700; }
.mm-collab-act.is-find:hover { filter: brightness(0.96); background: var(--need); }
/* Check in on a Replied card after ten quiet days (2026-11-06), yellow; and on top of their conversation */
.mm-collab-act.is-checkin { font-weight: 700; }
.mm-collab-act.is-due { border-color: transparent; background: var(--need); color: var(--need-ink); }
.mm-collab-act.is-due:hover { filter: brightness(0.96); background: var(--need); }
.mm-co-acts { display: flex; flex: none; gap: 6px; margin-left: auto; align-self: center; }
.mm-co-acts.is-row { align-self: stretch; margin: 0; padding: 0 16px 10px; background: var(--head-convo); }
.mm-co-act { flex: none; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.mm-co-act:hover { background: var(--card-hover); }
.mm-co-act.is-go { border-color: transparent; background: var(--open); color: var(--open-text); }
.mm-co-act.is-go:hover { background: var(--open-hover); }
.mm-co-act:disabled { opacity: 0.6; cursor: default; }
.mm-co-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mm-tab:focus-visible, .mm-row:focus-visible, .mm-sw:focus-visible, .mm-send:focus-visible, .mm-x:focus-visible,
.mm-her-av:focus-visible, .mm-yes:focus-visible, .mm-no:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mm-rows { overflow-y: auto; flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; padding: 8px; box-sizing: border-box; border-top: 1px solid var(--head-line); }
.mm-rows > * { flex: none; }
.mm-rows .mm-empty { padding: 16px; }
/* A card (Claude Design, 2026-11-04; message-board-dark, 2026-11-06): two lines, three only when a bug or trial needs
   us or under that filter. No outlines, tints or edges: what it needs starts its message line, "Your turn ·" in yellow
   with an alert, "Follow up ·" in orange with a clock once a promise is due, a grey clock and when for a promise later.
   Unread as Instagram: bold name, bold bright text, a blue dot on the right. Open is deep accent with white text. */
.mm-row { --card-bg: var(--card); width: 100%; min-height: 44px; box-sizing: border-box; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: start;
  padding: 12px; border: 0; border-radius: 12px; text-align: left; cursor: pointer; background: var(--card-bg); color: var(--text); transition: background-color 120ms ease, box-shadow 120ms ease; }
.mm-row:hover { --card-bg: var(--card-hover); }
.mm-row.is-open { --card-bg: var(--open); color: var(--open-text); box-shadow: var(--open-shadow); }
.mm-row.is-open:hover { --card-bg: var(--open-hover); }
.mm-row.is-open .mm-av { box-shadow: 0 0 0 2px var(--open); }
.mm-row.is-open .mm-row-at, .mm-row.is-open .mm-row-txt, .mm-row.is-open .mm-row-info, .mm-row.is-open .mm-pre.is-later, .mm-row.is-open .mm-row-bug { color: var(--open-dim); }
.mm-row.is-open.is-unread .mm-row-txt { color: var(--open-text); }
.mm-row.is-open .mm-pre.is-turn, .mm-row.is-open .mm-row-bug.is-need { color: var(--open-need); }
.mm-row.is-open .mm-pre.is-due, .mm-row.is-open .mm-pre.is-warn { color: var(--open-due); }
.mm-row.is-open .mm-udot { background: var(--open-text); }
.mm-row.is-open mark { background: var(--mark-open-bg); color: var(--open-text); }
.mm-row.is-open:focus-visible { outline-color: var(--text); }
/* their face (initials until their picture is there), as Instagram's list, with the channel on it */
.mm-face { position: relative; display: block; width: 44px; height: 44px; }
.mm-av { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: var(--text); overflow: hidden; }
.mm-av img { width: 100%; height: 100%; object-fit: cover; }
.mm-face .mm-ic { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ch-badge-bg); box-shadow: 0 0 0 2px var(--card-bg); }
.mm-row-c { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mm-row-top { display: flex; align-items: center; gap: 6px; min-width: 0; height: 22px; }
.mm-row-name { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 400; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-row.is-unread .mm-row-name { font-weight: 700; }
.mm-row-at { flex: none; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.mm-row-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mm-row-l .mm-row-txt { flex: 1 1 auto; min-width: 0; }
.mm-row-txt { font-size: 15px; line-height: 21px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-row.is-unread .mm-row-txt { color: var(--text); font-weight: 700; }
.mm-udot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--unread-dot); }
.mm-row-you { font-weight: inherit; }
.mm-pre { display: inline-flex; align-items: center; gap: 4px; vertical-align: -1px; margin-right: 6px; font-size: 13px; font-weight: 700; }
.mm-pre svg { flex: 0 0 12px; }
.mm-pre.is-turn { color: var(--need-text); }
.mm-pre.is-due { color: var(--due-text); }
.mm-pre.is-warn { color: var(--warn-text); }
.mm-pre.is-later { color: var(--dim); font-weight: 600; }
/* its third line */
.mm-row-bug { margin-top: 4px; display: flex; align-items: center; gap: 4px; min-width: 0; height: 20px; font-size: 12px; font-weight: 600; color: var(--dim); }
.mm-row-bug span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-row-bug svg { flex: 0 0 12px; }
.mm-row-bug.is-need { font-weight: 700; color: var(--need-text); }
.mm-older { display: block; width: calc(100% - 32px); margin: 8px 16px 12px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent;
  color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; }
.mm-ic { display: inline-flex; flex: none; }
.mm-ic.is-email { color: var(--c-email); } .mm-ic.is-dm { color: var(--c-dm); }
.mm-ic.is-comment { color: var(--c-comment); } .mm-ic.is-mention { color: var(--c-mention); }
.mm-empty { margin: 0; padding: 24px; font-size: 15px; color: var(--dim); }

/* ---- a conversation ---- */
.mm-conv { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; background: var(--sec-convo); }
.mm-pick { flex: 1 1 auto; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px; text-align: center; }
.mm-pick-h { font-size: 18px; font-weight: 600; }
/* a thin name bar (owner, 2026-10-26): more room for the conversation */
.mm-conv-h { display: flex; align-items: center; gap: 8px; min-height: 60px; box-sizing: border-box; padding: 0 68px 0 16px; background: var(--head-convo); }
.mm-x { width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--dim); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mm-x:hover { background: var(--chip); color: var(--text); }
.mm-conv-h, .mm-her-h { height: var(--head-h); min-height: 0; overflow: hidden; }
/* the header strips and the tabs never give way to a long list or thread: a column's flex would squeeze them first */
.mm-h-row, .mm-tabs, .mm-conv-h, .mm-her-h { flex: none; }
/* styles.css gives "#detail h2" a card title's margins and size; our names keep theirs, or the header strip cuts them */
#detail .mm-conv-name, #detail .mm-her-name { margin: 0; font-size: 17px; }
#detail .mm-group { margin: 10px 4px 0; font-size: 12px; }
.mm-conv-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-conv-name { margin: 0; min-width: 0; font-size: 17px; line-height: 1.3; font-weight: 700; display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.mm-linked { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--dim); }
/* their name, and under it how to reach them: handles and emails, to copy */
.mm-conv-id { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mm-conv-who { margin: 0; font-size: 13px; line-height: 1.35; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: text; }
/* who they are to us, under their name (Hans, 2026-11-04): it wraps rather than cuts */
/* Their channels, beside the name (2026-11-13) */
.mm-profs { flex: none; display: flex; align-items: center; gap: 6px; }
.mm-prof { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; box-sizing: border-box; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mm a.mm-prof { color: var(--text); }
.mm-prof:hover { background: var(--card-hover); }
.mm-prof:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mm-prof svg { flex: none; }
.mm-prof.is-youtube svg { color: #e62117; } .mm-prof.is-instagram svg { color: #d62976; } .mm-prof.is-tiktok svg { color: var(--text); }
.mm[data-theme="dark"] .mm-prof.is-youtube svg { color: #ff8a80; } .mm[data-theme="dark"] .mm-prof.is-instagram svg { color: #f7a1c4; }
.mm-prof-f { font-weight: 500; color: var(--dim); }
.mm.is-phone .mm-prof { width: 36px; height: 36px; padding: 0; justify-content: center; }
/* Room for their name first: the site's name goes, then the followers (the tooltip keeps both) */
.mm-conv { container: conv / inline-size; }
@container conv (max-width: 1100px) { .mm-prof-n { display: none; } .mm-prof { gap: 5px; padding: 0 11px 0 9px; } }
@container conv (max-width: 860px) { .mm-prof-f { display: none; } .mm-prof { width: 32px; padding: 0; justify-content: center; } }
.mm-about { flex: none; margin: 0; padding: 0 16px 10px; font-size: 13px; line-height: 1.4; color: var(--dim); background: var(--head-convo); user-select: text; }
.mm-about-1 { font-weight: 600; color: var(--text); }
/* "New message ↓" (company-chat-scroll.js), held at the bottom of whichever chat it's in; takes no room */
.chat-new { position: sticky; bottom: 8px; flex: none; height: 0; align-self: stretch; margin: 0; z-index: 2; }
.chat-new-b { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: flex-end; }
.chat-new-b span { display: block; padding: 7px 14px; border-radius: 999px; background: #2f6fa3; color: #fff; font: 700 13px/1.2 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; white-space: nowrap; box-shadow: 0 2px 8px rgba(20, 32, 48, 0.25); }
.chat-new-b:hover span { background: #235a88; }
.chat-new-b:focus-visible { outline: none; }
.chat-new-b:focus-visible span { outline: 2px solid #2f6fa3; outline-offset: 2px; }
.mm-thread { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 24px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.mm-thread > :first-child { margin-top: auto; }
/* A queued creator's page (Collabs, 2026-11-06): no messages yet, the email that goes in the reply box */
.mm-pitch { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.mm-pitch-say { margin: auto; padding: 24px; max-width: 420px; text-align: center; font-size: 15px; line-height: 1.5; color: var(--dim); }
.mm-pitch-say b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--text); }
.mm-pitch-say p { margin: 0; }
.mm-pitch-say .mm-btn { margin-top: 12px; }
.mm-pitch-link { display: inline-block; margin-top: 12px; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.mm-pitch-link:hover { text-decoration: underline; }
.mm-pitch-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.mm-pitch-subj { margin: 0 0 -2px 4px; font-size: 13px; font-weight: 600; color: var(--dim); }
.mm-pitch-note { flex: 0 1 auto; min-width: 0; padding: 0 6px; font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-pitch-note.is-warn { color: var(--warn-text); white-space: normal; }
.mm-conv.is-pitch .mm-send { flex: none; white-space: nowrap; }
a.mm-pitch-find { display: inline-flex; align-items: center; margin-top: 14px; border-color: transparent; background: var(--need); color: var(--need-ink); text-decoration: none; }
a.mm-pitch-find:hover { background: var(--need); filter: brightness(0.96); }
.mm-pitch-mail { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.mm-pitch-in { flex: 1 1 auto; min-width: 0; max-width: 260px; height: 44px; box-sizing: border-box; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--field-border); background: var(--field-bg); color: var(--text); font-size: 15px; }
.mm-pitch-in:focus { outline: none; border-color: var(--accent); }
.mm-pitch-err { margin-top: 8px !important; font-size: 13px; color: var(--warn-text); }
.mm-pitch-say .mm-link { margin-top: 6px; }
.mm-pitch-small { font-size: 13px; }
/* a felt: where these messages came from, edge to edge and square, a faint tint (owner, 2026-10-31) */
.mm-felt { display: flex; flex-direction: column; gap: 10px; padding: 12px 32px 14px; }
.mm-felt.is-email { background: rgba(var(--t-email), var(--felt-a)); } .mm-felt.is-dm { background: rgba(var(--t-dm), var(--felt-a)); }
.mm-felt.is-comment { background: rgba(var(--t-comment), var(--felt-a)); } .mm-felt.is-mention { background: rgba(var(--t-mention), var(--felt-a)); }
.mm-subject { margin: 0; font-size: 12px; font-weight: 600; color: var(--dim); }
.mm-post { display: flex; align-items: center; gap: 10px; max-width: 62%; }
.mm-post-img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.mm-post-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; color: var(--dim); }
.mm-post-cap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-post-l { font-weight: 600; text-decoration: none; }
/* "Comment IcePick" switch on a comment's post (comment-trigger.ts) */
.mm-trig, .mm-tdm { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 4px; }
.mm-trig-b { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; text-align: left; }
.mm-trig-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mm-trig-b:disabled { opacity: 0.6; cursor: default; }
.mm-trig-dot { position: relative; flex: none; width: 30px; height: 18px; border-radius: 9px; background: var(--line); transition: background 0.15s; }
.mm-trig-dot::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #ffffff; transition: transform 0.15s; }
.mm-trig-b.is-on .mm-trig-dot { background: var(--accent); }
.mm-trig-b.is-on .mm-trig-dot::after { transform: translateX(12px); }
.mm-trig-n { font-size: 12px; color: var(--dim); white-space: normal; }
.mm-trig-n.is-warn { color: var(--due-text); }
.mm-m { max-width: 62%; display: flex; flex-direction: column; gap: 4px; align-self: flex-start; align-items: flex-start; }
.mm-m.is-mine { align-self: flex-end; align-items: flex-end; }
.mm-m-at { font-size: 11px; color: var(--dim); padding: 0 4px; }
.mm-b { padding: 10px 14px; font-size: 14px; line-height: 1.45; border-radius: 18px; color: var(--text); overflow-wrap: anywhere; }
.mm-b.is-email { --rgb: var(--t-email); } .mm-b.is-dm { --rgb: var(--t-dm); } .mm-b.is-comment { --rgb: var(--t-comment); } .mm-b.is-mention { --rgb: var(--t-mention); }
.mm-b.is-email, .mm-b.is-dm, .mm-b.is-comment, .mm-b.is-mention { background: linear-gradient(rgba(var(--rgb), var(--theirs-a)), rgba(var(--rgb), var(--theirs-a))), var(--bubble-base); }
.mm-b.is-mine.is-email, .mm-b.is-mine.is-dm, .mm-b.is-mine.is-comment { background: linear-gradient(rgba(var(--rgb), var(--ours-a)), rgba(var(--rgb), var(--ours-a))), var(--bubble-base); }
.mm-b.is-failed { opacity: 0.6; }
.mm-b-t { margin: 0; white-space: pre-wrap; }
/* an email answered between the lines of ours: all of it, their words in yellow highlighter, ours dim (company-messages.js emailParts) */
.mm-b-t .mm-hl { background: #ffe14a; color: #1a1a1a; border-radius: 3px; padding: 1px 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mm-b-t .mm-q { color: var(--dim); }
.mm-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--dim); background: var(--chip); }
.mm-pic { display: block; margin-top: 6px; font-size: 12px; color: var(--dim); }
.mm-pic img { display: block; max-width: 220px; max-height: 260px; border-radius: 12px; }
.mm-m-err { font-size: 11px; color: var(--warn-text); padding: 0 4px; }
.mm-m-gone { font-size: 11px; font-weight: 600; color: var(--due-text); padding: 0 4px; }

/* the reply: its own felt, in the colour of where it goes */
.mm-foot { flex: none; background: var(--head-convo); }
/* the writing felt fills its band, edge to edge and square (owner, 2026-10-31: no box inside a box) */
.mm-reply { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 32px 24px; transition: box-shadow 0.5s ease; }
.mm-reply.is-email { background: rgba(var(--t-email), var(--felt-a)); } .mm-reply.is-dm { background: rgba(var(--t-dm), var(--felt-a)); }
.mm-reply.is-comment { background: rgba(var(--t-comment), var(--felt-a)); }
.mm-reply.is-flash { box-shadow: 0 0 0 3px rgba(47, 111, 163, 0.55); }
/* grows with its text (company-messages.js fit): up to half the conversation, then scrolls */
.mm-reply-in { width: 100%; box-sizing: border-box; min-height: 76px; resize: none; overflow-y: hidden; padding: 14px 16px; border-radius: 16px;
  border: 2px solid transparent; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.45; }
.mm-reply-in:focus { outline: none; border-color: var(--accent); box-shadow: none; }
.mm-reply-in::placeholder { color: var(--dim); }
.mm-reply-row { display: flex; align-items: center; gap: 4px; }
.mm-fill { flex: 1 1 auto; }
.mm-sw { width: 44px; height: 44px; border: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: transparent; opacity: 0.45; }
.mm-sw.is-email { color: var(--c-email); } .mm-sw.is-dm { color: var(--c-dm); } .mm-sw.is-comment { color: var(--c-comment); }
.mm-sw.is-on { opacity: 1; background: var(--chip); }
/* Emojis (Hans, 2026-11-03): the button by Send, its panel above the reply box so what you write stays in sight */
.mm-emo { width: 44px; height: 44px; margin-right: 4px; border: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: transparent; color: var(--dim); }
.mm-emo:hover, .mm-emo.is-on { background: var(--chip); color: var(--text); }
.mm-emo:disabled { opacity: 0.45; cursor: default; background: transparent; }
.mm-emo-p { position: absolute; right: 32px; bottom: calc(100% - 8px); z-index: 5; display: grid; grid-template-columns: repeat(auto-fill, 44px); gap: 2px;
  width: 386px; max-width: calc(100% - 24px); box-sizing: border-box; padding: 8px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--pop-shadow); }
.mm-emo-x { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 24px; line-height: 1;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.mm-emo-x:hover { background: var(--chip); }
.mm-emo:focus-visible, .mm-emo-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mm.is-phone .mm-emo-p { right: 12px; }
.mm-send { height: 48px; padding: 0 22px; border-radius: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; cursor: pointer;
  border: 0; background: var(--btn-bg); color: var(--btn-text); }
.mm-send.is-confirm { background: var(--confirm-public); }
.mm-send.is-sent { background: transparent; border: 1px solid var(--line); color: var(--dim); }
.mm-send:disabled { cursor: default; }
.mm-send:disabled:not(.is-sent) { opacity: 0.45; }

/* ---- the Receptionist ---- */
/* her face in the panel's top-right corner, level with the name; her chat under it, narrow and long */
.mm-her-av { position: absolute; top: calc((var(--head-h) - 44px) / 2); right: 14px; z-index: 4; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--mine); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden;
  box-shadow: 0 6px 18px rgba(20, 32, 48, 0.15); }
.mm-her-av.is-on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.mm-her-av .of-face { width: 40px; height: 40px; }
.mm-her-ini { font-size: 17px; font-weight: 700; }
/* her chat closed: how many things wait for you in it */
.mm-her-av-w { display: contents; }
.mm-her-n { position: absolute; top: 4px; right: 8px; z-index: 5; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px;
  background: var(--need); color: var(--need-ink); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
/* her chat closed: one line by her face, a speech bubble pointing at her (in the name bar, or floating by her face) */
.mm-hb { flex: 0 1 auto; min-width: 0; max-width: min(320px, 45%); margin-left: auto; height: 32px; padding: 0 10px 0 12px; box-sizing: border-box;
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-soft); border-radius: 16px 16px 4px 16px;
  background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer; box-shadow: 0 2px 8px rgba(20, 32, 48, 0.06); }
.mm-hb:hover { border-color: var(--line); }
.mm-hb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mm-hb-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-hb-go { flex: none; color: var(--dim); font-size: 15px; }
.mm-hb.is-warn { box-shadow: inset 3px 0 0 var(--warn-text); }
.mm-hb.is-float { position: absolute; top: 16px; right: 66px; z-index: 4; max-width: 320px; }
/* Her chat, open: a column beside the conversation, the same size and built the
   same way (owner, 2026-10-29: like Claude's panel beside the code): a name bar,
   the messages, and a writing box with Send under it. On a phone it covers the page. */
.mm-her { box-sizing: border-box; display: flex; flex-direction: column; min-width: 0; background: var(--sec-her); }
.mm.is-her .mm-conv { flex: 1 1 0; }
.mm.is-her .mm-her { flex: 1 1 0; border-left: 1px solid var(--sec-divider); }
.mm.is-her .mm-conv-h { padding-right: 16px; }
.mm-her-h { flex: none; display: flex; align-items: center; gap: 10px; min-height: 60px; box-sizing: border-box; padding: 0 8px 0 16px; background: var(--head-her); }
.mm-her-hface { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; }
.mm-her-hface .of-face { width: 36px; height: 36px; }
.mm-her-id { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mm-her-name { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; }
.mm-her-l { margin: 0; font-size: 13px; line-height: 1.35; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-her-x { margin-left: auto; width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--dim); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mm-her-x:hover { background: var(--chip); color: var(--text); }
.mm-her-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 24px 32px 12px; display: flex; flex-direction: column; gap: 10px; }
.mm-her-list > :first-child { margin-top: auto; }
.mm-her-b { max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.mm-her-b.is-her { align-self: flex-start; background: var(--her-bubble); }
.mm-her-b.is-agent { align-self: flex-start; background: var(--chip); }
.mm-her-b.is-owner { align-self: flex-end; background: var(--mine); white-space: pre-wrap; }
.mm-her-b.is-warn { box-shadow: inset 3px 0 0 var(--warn-text); }
.mm-her-b.is-typing { color: var(--dim); letter-spacing: 2px; }
.mm-her-who { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--dim); margin-bottom: 4px; }
/* an agent at work, live (Hans, 2026-11-06): what it has written so far, and under it what it's doing right now */
.mm-her-t:empty { display: none; }
.mm-her-step { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--dim); }
.mm-her-t:not(:empty) + .mm-her-step { margin-top: 6px; }
.mm-her-step::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: mm-pulse 1.2s ease-in-out infinite; }
.mm-her-step.is-wait::before { background: var(--dim); animation: none; }
.mm-her-chain { vertical-align: -2px; margin-right: 6px; }
.mm-her-people { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mm-her-person { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--accent);
  font-size: 13px; font-weight: 600; cursor: pointer; }
.mm-her-yn { display: flex; gap: 6px; margin-top: 10px; }
.mm-yes, .mm-no { min-height: 34px; min-width: 56px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.mm-yes { border: 0; background: var(--btn-bg); color: var(--btn-text); }
.mm-no { border: 1px solid var(--line); background: transparent; color: var(--text); }
.mm-yes:disabled, .mm-no:disabled { opacity: 0.5; cursor: default; }
.mm-her-sys { margin: 0; align-self: center; font-size: 12px; color: var(--dim); padding: 2px 0; }
/* an agent joined her chat: its line names its card */
.mm-her-sys.is-joined { font-weight: 600; }
.mm-her-card { font-weight: 600; text-decoration: none; }
.mm-her-card:hover, .mm-her-card:focus-visible { text-decoration: underline; }
.mm-her-face { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; flex: none; }
.mm-her-face .of-face { width: 18px; height: 18px; }
/* who the box writes to: her, or an agent in the chat */
.mm-to { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
.mm-to-l { font-size: 11px; font-weight: 700; color: var(--dim); margin-right: 2px; }
.mm-to-b { min-height: 32px; padding: 0 9px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mm-to-b.is-on { background: var(--mine); border-color: var(--accent); }
.mm-to-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mm-to-f { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; }
.mm-to-f .of-face { width: 18px; height: 18px; }
.mm-her-err { margin: 0; font-size: 12px; color: var(--warn-text); }
/* her writing box: the reply's felt, in her blue; it grows with the text (fit) up to half her column, then scrolls */
.mm-her .mm-foot { background: var(--head-her); }
.mm-her-write { display: flex; flex-direction: column; gap: 10px; padding: 16px 32px 24px; background: var(--her-felt); }
.mm-her-row { display: flex; align-items: center; gap: 4px; }
.mm-her-row.has-to { flex-wrap: wrap; }
/* an agent joined: "To" on its own line above; below it the same row as without one, so Send stays bottom right (Hans, 2026-11-03) */
.mm-her-row.has-to .mm-to { flex: 1 0 100%; order: -1; padding-bottom: 4px; }
.mm-her-in { width: 100%; box-sizing: border-box; min-height: 76px; resize: none; overflow-y: hidden; padding: 14px 16px; border-radius: 16px;
  border: 2px solid transparent; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.45; }
.mm-her-in:focus { outline: none; border-color: var(--accent); box-shadow: none; }
.mm-her-in::placeholder { color: var(--dim); }
.mm-her-go { flex: none; height: 48px; padding: 0 22px; border: 0; border-radius: 14px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; cursor: pointer; background: var(--btn-bg); color: var(--btn-text); }
.mm-her-go:disabled { opacity: 0.45; cursor: default; }
/* "Improve flow" (Hans, 2026-11-03): one click asks her to make the reply flow better */
.mm-her-flow { flex: none; height: 44px; margin-right: 4px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--accent-text);
  font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.mm-her-flow:hover:not(:disabled) { background: var(--chip); }
.mm-her-flow:disabled { opacity: 0.45; cursor: default; }
.mm-her-flow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mm-her-go:focus-visible, .mm-her-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ---- the lit writing column, and the dimmed one (company-messages.js light) ----
   Never colour alone: the lit one has its section tone, an accent line on top, a ringed box and a filled Send; the
   dimmed one is grey, its colours muted, its box and Send quiet. Nothing changes size, so nothing jumps. A phone has
   neither: one column at a time. */
.mm-conv, .mm-her, .mm-conv-h, .mm-her-h, .mm-foot, .mm-thread, .mm-her-list, .mm-reply-in, .mm-her-in, .mm-send, .mm-her-go {
  transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease, filter 180ms ease, border-color 180ms ease; }
.mm.is-act-conv .mm-conv, .mm.is-act-her .mm-her { position: relative; z-index: 1; box-shadow: 0 0 0 1px var(--sec-divider), 0 6px 24px rgba(20, 32, 48, 0.12); }
.mm.is-act-conv .mm-conv .mm-foot, .mm.is-act-her .mm-her .mm-foot { background: var(--sec-convo); }
.mm.is-act-conv .mm-conv .mm-reply-in, .mm.is-act-her .mm-her .mm-her-in { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus-ring); background: var(--input-active); }
.mm.is-act-her .mm-conv, .mm.is-act-conv .mm-her { background: var(--sec-inactive); color: var(--text-inactive); --dim: var(--dim-inactive); }
.mm.is-act-her .mm-conv-h, .mm.is-act-her .mm-about, .mm.is-act-her .mm-co-acts.is-row, .mm.is-act-her .mm-conv .mm-foot, .mm.is-act-conv .mm-her-h, .mm.is-act-conv .mm-her .mm-foot { background: var(--head-inactive); }
.mm.is-act-her .mm-thread, .mm.is-act-conv .mm-her-list, .mm.is-act-her .mm-conv .mm-foot, .mm.is-act-conv .mm-her .mm-foot { filter: saturate(0.35); }
.mm.is-act-conv .mm-her-b.is-her, .mm.is-act-conv .mm-her-b.is-agent { background: var(--her-bubble-inactive); }
.mm.is-act-her .mm-conv .mm-b, .mm.is-act-her .mm-conv .mm-conv-name { color: var(--text-inactive); }
.mm.is-act-her .mm-conv .mm-reply-in, .mm.is-act-conv .mm-her .mm-her-in { background: var(--input-inactive); color: var(--text-inactive); }
.mm.is-act-her .mm-conv .mm-send:not(.is-confirm):not(.is-sent), .mm.is-act-conv .mm-her .mm-her-go {
  background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-inactive); }
.mm-hint { display: none; flex: 0 1 auto; min-width: 0; padding: 0 6px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm.is-act-conv .mm-hint, .mm.is-act-her .mm-hint { display: block; }
.mm-hint-on { display: none; font-weight: 600; color: var(--accent-text); }
.mm-hint-off { color: var(--text-inactive); }
.mm.is-act-conv .mm-conv .mm-hint-on, .mm.is-act-her .mm-her .mm-hint-on { display: inline; }
.mm.is-act-conv .mm-conv .mm-hint-off, .mm.is-act-her .mm-her .mm-hint-off { display: none; }
/* she said something new while her column is dimmed: a dot by her name; her column never lights by itself */
.mm-her-new { display: inline-block; width: 9px; height: 9px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
/* ---- search (Claude Design's message-board-v2, 2026-11-05): in the header band, between the heading and the filters ---- */
.mm-search { position: relative; padding: 0 16px; background: var(--head-list); }
.mm-search-in { display: block; width: 100%; height: 44px; box-sizing: border-box; padding: 0 48px 0 40px; border: 1px solid var(--field-border); border-radius: 12px;
  background: var(--field-bg); color: var(--text); font-size: 15px; outline: none; -webkit-appearance: none; appearance: none; transition: border-color 120ms ease, box-shadow 120ms ease; }
.mm-search-in::placeholder { color: var(--dim); }
.mm-search-in::-webkit-search-cancel-button, .mm-search-in::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.mm-search-in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.mm-search-ic { position: absolute; left: 29px; top: 13px; width: 18px; height: 18px; display: flex; color: var(--dim); pointer-events: none; }
.mm-search-x { position: absolute; right: 16px; top: 0; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--dim);
  display: none; align-items: center; justify-content: center; cursor: pointer; }
.mm-search-x span { width: 24px; height: 24px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.mm-search-x:hover span { background: var(--head-list); color: var(--text); }
.mm-search-spin { position: absolute; right: 30px; top: 14px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%;
  border: 2px solid var(--field-border); border-top-color: var(--accent); animation: mm-spin 0.8s linear infinite; display: none; }
.mm-search.has-q .mm-search-x { display: flex; }
.mm-search.is-busy .mm-search-x { display: none; }
.mm-search.is-busy .mm-search-spin { display: block; }
@keyframes mm-spin { to { transform: rotate(360deg); } }
/* results: how many and where, then People and Messages */
.mm-meta { margin: 4px 4px 0; font-size: 13px; color: var(--dim); }
.mm-meta b { color: var(--text); font-weight: 600; }
.mm-group { margin: 10px 4px 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.mm-row-info { margin-top: 2px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-row mark { background: var(--mark-bg); color: var(--mark-text); font-weight: 600; border-radius: 3px; padding: 0 2px; }
.mm-row.is-skel { cursor: default; pointer-events: none; }
.mm-skel-face { width: 44px; height: 44px; border-radius: 50%; background: var(--head-list); animation: mm-pulse 1.2s ease-in-out infinite; }
.mm-skel { display: block; height: 12px; margin: 4px 0; border-radius: 6px; background: var(--head-list); animation: mm-pulse 1.2s ease-in-out infinite; }
@keyframes mm-pulse { 50% { opacity: 0.5; } }
.mm-none { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 24px; text-align: center; color: var(--dim); }
.mm-none strong { font-size: 16px; color: var(--text); }
.mm-none p { margin: 0; max-width: 280px; font-size: 14px; line-height: 1.5; }
.mm-btn { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--field-border); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; }
.mm-btn:hover { background: var(--card-hover); }
.mm-link { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--accent-text); font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.mm-btn:focus-visible, .mm-link:focus-visible, .mm-search-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ✓ Done (Hans, 2026-11-05): on a card that needs us when you point at it (in place of its time), and on top of the
   open conversation; on a touch screen only there. Then a bar with Undo for a few seconds. */
.mm-cardw { position: relative; }
.mm-done { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mm-done svg { flex: none; color: var(--ok); }
.mm-done:hover { background: var(--card-hover); }
.mm-done:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mm-cardw .mm-done { position: absolute; right: 10px; top: 8px; display: none; }
.mm-cardw:hover .mm-done, .mm-cardw:focus-within .mm-done { display: inline-flex; }
.mm-cardw:hover .mm-row-at, .mm-cardw:focus-within .mm-row-at { visibility: hidden; }
@media (hover: none) { .mm-cardw .mm-done, .mm-cardw:focus-within .mm-done { display: none; } .mm-cardw:focus-within .mm-row-at { visibility: visible; } }
.mm-done.is-head { flex: none; min-height: 36px; padding: 0 14px 0 12px; }
.mm-toast { position: absolute; left: 16px; bottom: 16px; z-index: 8; width: 368px; max-width: calc(100% - 32px); box-sizing: border-box; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--toast-bg); color: var(--toast-text); font-size: 14px;
  box-shadow: 0 6px 18px rgba(20, 32, 48, 0.25); }
.mm-toast-undo { flex: none; min-height: 32px; padding: 0 8px; border: 0; background: transparent; color: var(--toast-link); font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.mm-toast-undo:focus-visible { outline: 2px solid var(--toast-text); outline-offset: 2px; }
.mm.is-phone .mm-toast { position: fixed; left: 12px; right: 12px; bottom: 16px; width: auto; max-width: none; }
/* the message a search result opened at, lit for a moment */
.mm-m.is-found .mm-b { animation: mm-found 2.4s ease-out; }
@keyframes mm-found { 0%, 45% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* ---- the scrollbar of every column in Messages (2026-11-05): a calm track one step darker than the list, a thumb you can see.
   Chrome and Safari draw it from ::-webkit-scrollbar, always there; given scrollbar-color, Chrome would draw the Mac's
   own instead, hidden until you scroll, so that's for Firefox only. ---- */
@supports not selector(::-webkit-scrollbar) {
  .mm { scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
  .mm-rows, .mm-thread, .mm-her-list, .mm textarea { scrollbar-width: thin; }
}
.mm ::-webkit-scrollbar { width: 8px; height: 8px; }
.mm ::-webkit-scrollbar-track { background: var(--scroll-track); }
.mm ::-webkit-scrollbar-thumb { min-height: 40px; border: 1px solid var(--scroll-track); border-radius: 4px; background: var(--scroll-thumb); }
.mm ::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
.mm ::-webkit-scrollbar-thumb:active { background: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .mm-search-spin, .mm-skel, .mm-skel-face, .mm-m.is-found .mm-b, .mm-her-step::before { animation: none; }
  .mm-row { transition: none; }
  .mm-conv, .mm-her, .mm-conv-h, .mm-her-h, .mm-foot, .mm-thread, .mm-her-list, .mm-reply-in, .mm-her-in, .mm-send, .mm-her-go, .mm-reply { transition: none; }
}

/* not room for three columns: the list steps aside while her chat is open beside a conversation */
.mm { container-type: inline-size; }
@container (max-width: 1180px) { .mm.is-her-conv .mm-list { display: none; } }

/* ---- phone: the list, or one conversation ---- */
.mm.is-phone { --head-h: 60px; display: block; height: auto; margin: -8px -16px; border-radius: 0; min-height: calc(100vh - 110px); }
.mm.is-phone .mm-list { border-right: 0; }
.mm.is-phone .mm-h-row { height: auto; padding: 16px 20px 12px; }
.mm.is-phone .mm-h { font-size: 28px; }
.mm.is-phone .mm-theme { margin-right: 52px; }   /* her face sits at the strip's right */
.mm.is-phone .mm-tabs { justify-content: space-between; gap: 0; padding: 12px 8px 10px; }
.mm.is-phone .mm-ctabs { gap: 0; padding: 0 6px 10px; }
.mm.is-phone .mm-ctab { padding: 0 9px; }
.mm.is-phone .mm-tab { flex: 1 1 auto; min-width: 0; padding: 0 4px; }
.mm.is-phone .mm-conv { height: calc(100vh - 110px); min-height: 480px; }
.mm.is-phone .mm-conv-h { padding: 6px 60px 6px 6px; }
.mm.is-phone .mm-conv-name { font-size: 18px; }
/* ✓ Done on top of the conversation: just the tick, so their name keeps its room */
.mm.is-phone .mm-done.is-head { width: 44px; height: 44px; padding: 0; justify-content: center; }
.mm.is-phone .mm-done.is-head span { display: none; }
/* her one line by her face: no room beside their name on a phone; the count on her face says the same */
.mm.is-phone.is-conv .mm-hb { display: none; }
.mm.is-phone .mm-thread { padding: 14px 0 10px; }
.mm.is-phone .mm-felt { padding: 10px 12px 12px; }
.mm.is-phone .mm-m { max-width: 84%; }
.mm.is-phone .mm-reply, .mm.is-phone .mm-her-write { padding: 10px 12px 16px; }
.mm.is-phone .mm-her-av { top: 14px; right: 16px; }
.mm.is-phone.is-conv .mm-her-av { top: 6px; right: 10px; }
.mm.is-phone .mm-her-n { top: 8px; right: 10px; }
.mm.is-phone.is-conv .mm-her-n { top: 0; right: 4px; }
.mm.is-phone .mm-her { position: absolute; inset: 0; z-index: 6; }
.mm.is-phone .mm-her-h { padding: 6px 6px 6px 12px; }
.mm.is-phone .mm-her-list { padding: 14px 12px 10px; }
