/* Chat rooms (views/chat/hub-chat.js): the organization's chat rooms on the Chat page (views/chat/view.js). Every colour,
   radius, size and time is a kit token (--vx-*); nothing here defines its own. The room scrolls inside itself, so the page never scrolls sideways. */
.hc{display:flex;flex-direction:column;gap:10px;min-width:0;max-width:100%}
.hc-box{position:relative;min-width:0;overflow:hidden;background:var(--vx-card-bg);border-radius:var(--vx-card-r);box-shadow:var(--vx-card-shadow);-webkit-backdrop-filter:var(--vx-card-blur);backdrop-filter:var(--vx-card-blur)}
.hc-feed{display:flex;flex-direction:column;gap:8px;height:clamp(220px,calc(100dvh - 340px),560px);padding:12px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.hc-feed:focus-visible{outline:2px solid var(--vx-focus);outline-offset:-2px}
.hc-empty{margin:auto 0;font-size:var(--vx-fs-8);line-height:1.45;color:var(--vx-ink-2);text-align:center}

/* ---- A message: the author, the AI mark on an agent's, whom an agent answered, the time, then the words. ---- */
.hc-msg{flex:none;align-self:flex-start;max-inline-size:min(86%,var(--vx-measure));min-width:0;padding:8px 12px;border:1px solid var(--vx-hair);border-radius:var(--vx-bubble-r);border-end-start-radius:var(--vx-r-3xs);background:var(--vx-well)}
.hc-msg.mine{align-self:flex-end;border-radius:var(--vx-bubble-r);border-end-end-radius:var(--vx-r-3xs);border-color:var(--vx-hair-2);background:var(--vx-nav-item-on-bg)}
.hc-msg.agent{border-color:color-mix(in srgb,var(--vx-agent) 35%,transparent);background:var(--vx-agent-soft)}
.hc-meta{display:flex;align-items:center;flex-wrap:wrap;gap:2px 8px;min-width:0}
.hc-name{min-width:0;font-size:var(--vx-fs-6);font-weight:700;line-height:1.3;overflow-wrap:anywhere;unicode-bidi:plaintext}
.hc-msg.agent .hc-name{color:var(--vx-agent-text)}
/* An agent's name that opens its profile ([role=link]) keeps its own size under a finger: the kit's 44 reach for words that
   act as a link would run over the AI mark beside a short name and the quote or words under it. */
@media (pointer:coarse){.hc-meta>.hc-name[role="link"]::after{content:none}}
/* The AI mark, as on posts (hub.css .hub-ai): on everything an agent wrote, in the agent's colour. */
.hc-ai{flex:none;display:inline-block;padding:1px 6px;border:1px solid color-mix(in srgb,var(--vx-agent-text) 55%,transparent);border-radius:var(--vx-r-pill);color:var(--vx-agent-text);font-family:var(--vx-font-mono);font-size:var(--vx-fs-1);font-weight:500;letter-spacing:.04em;line-height:1.35}
.hc-to,.hc-when{min-width:0;font-family:var(--vx-font-mono);font-size:var(--vx-fs-3);font-weight:500;letter-spacing:0;line-height:1.3;color:var(--vx-ink-2);overflow-wrap:anywhere}
.hc-when:empty{display:none}
.hc-text{margin:3px 0 0;font-family:var(--vx-font);font-size:var(--vx-fs-9);line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.hc-why{margin:5px 0 0;font-size:var(--vx-fs-4);line-height:1.4;color:var(--vx-ink-2);overflow-wrap:anywhere}

/* ---- Waiting for the agents, and what the server said about who did not answer. ---- */
.hc-msg.pending{opacity:.86}
.hc-status{margin:5px 0 0;font-size:var(--vx-fs-6);line-height:1.4;color:var(--vx-ink-2)}
.hc-status::before{content:"";display:inline-block;width:8px;height:8px;margin-inline-end:7px;border-radius:var(--vx-r-round);background:var(--vx-agent-text);vertical-align:1px;animation:hc-wait 1s ease-in-out infinite}
@keyframes hc-wait{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.hc-status::before{animation:none}}
.hc-notice{margin:6px 0 0;padding-top:6px;border-top:1px solid var(--vx-hair);font-size:var(--vx-fs-6);line-height:1.4;color:var(--vx-amber-text);overflow-wrap:anywhere}
.hc-notice.status-error{color:var(--vx-danger-text)}
.hc-note{margin:0;font-size:var(--vx-fs-6);line-height:1.45;color:var(--vx-ink-2);overflow-wrap:anywhere}
.hc-note:empty{display:none}

/* ---- Writing: the box, Send, and the agents offered after @ (above the box, inside the pane's width). ---- */
.hc-compose{min-width:0}   /* the kit's composer (ui/components/composer) */
/* The floating agent button (56px, bottom-left) sits in the box's row: the box starts after it, 8px clear. */
body.agent-fab-on:not(.sheet-open) .hc-compose{margin-inline-start:calc(var(--vx-fab-size) + var(--vx-sp-2))}
.hc-compose .hc-send[aria-disabled="true"]{opacity:.45;cursor:default}
.hc-picker{position:absolute;inset-inline-start:0;inset-inline-end:0;bottom:calc(100% + 6px);z-index:5;max-height:min(264px,42dvh);padding:6px;overflow-x:hidden;overflow-y:auto;border:1px solid var(--vx-hair);border-radius:var(--vx-pop-r);background:var(--vx-pop-bg);box-shadow:var(--vx-shadow)}
.hc-pick{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;min-height:48px;padding:6px 8px;border:0;border-radius:var(--vx-nav-item-r);background:none;color:var(--vx-ink);font:inherit;text-align:start;-webkit-tap-highlight-color:transparent;transition:transform var(--vx-dur-fast) var(--vx-ease)}
.hc-pick:active{transform:scale(.985)}
#commsBody .hc-pick[aria-selected="true"]{background:var(--vx-nav-item-on-bg);color:var(--vx-nav-item-on-fg);box-shadow:var(--vx-nav-item-on-shadow)}
.hc-av{display:flex;align-items:center;justify-content:center;width:36px;height:36px;overflow:hidden;border-radius:var(--vx-r-round);background:var(--vx-agent-soft);box-shadow:inset 0 0 0 1.5px var(--vx-agent-text);color:var(--vx-ink);font-size:var(--vx-fs-4);font-weight:700}
.hc-av img{width:100%;height:100%;object-fit:cover}
.hc-pick-who{display:block;min-width:0}
.hc-pick-who b{display:block;font-size:var(--vx-fs-8);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;unicode-bidi:plaintext;inline-size:fit-content;max-inline-size:100%}
.hc-pick-who small{display:block;margin-top:1px;font-size:var(--vx-fs-4);line-height:1.35;color:var(--vx-ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-pick-who small:empty{display:none}

/* ---- Rooms: a bar across the top of the chat box with the room's name; it drops the room list down over the feed. ----
   The bar is the kit's pane band (.vx-pane-head, hub-chat.js): one height and hairline with the list's search band beside
   it, so the two hairlines meet in one line. The name fills the band from its start edge (its hover reaches the edge) and
   its mark starts a step in, on the line the composer and the list start on; info and ⋯ sit centred at its end. */
.hc-head{padding-inline-start:0}
.hc-switch{display:flex;align-items:center;gap:var(--vx-sp-2h);width:100%;min-width:0;align-self:stretch;padding-block:0;padding-inline:var(--vx-sp-3) 0;border:0;background:none;color:var(--vx-ink);font:inherit;font-size:var(--vx-fs-11);font-weight:700;line-height:1.2;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color var(--vx-dur-tap) var(--vx-ease-std)}
.hc-switch[aria-expanded="true"]{background:var(--vx-well)}
@media (hover:hover) and (pointer:fine){.hc-switch:hover{background:var(--vx-well)}}
.hc-switch:active{background:var(--vx-nav-item-on-bg)}
.hc-switch:focus-visible{outline:2px solid var(--vx-focus);outline-offset:-2px}
/* # for a channel, the person's initials for a direct message. */
.hc-mark{flex:none;display:grid;place-items:center;inline-size:var(--vx-h-sm);block-size:var(--vx-h-sm);border-radius:var(--vx-r-xs);background:var(--vx-well);box-shadow:inset 0 0 0 1px var(--vx-hair);color:var(--vx-ink-2);font-family:var(--vx-font-mono);font-size:var(--vx-fs-12);font-weight:600}
.hc-mark.person{border-radius:var(--vx-r-round);font-family:inherit;font-size:var(--vx-fs-6);font-weight:700;color:var(--vx-ink)}
.hc-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;unicode-bidi:plaintext}
/* The dot (another room has something unread) follows the name; the chevron, when there is one, keeps the end. */
.hc-dot{--_c:var(--vx-agent);margin-inline-end:auto}
.hc-chev{flex:none;margin-inline-start:auto;display:grid;place-items:center;width:28px;height:28px;color:var(--vx-ink-2)}
.hc-chev .icon{width:18px;height:18px;transform:rotate(90deg);transition:transform var(--vx-dur-mid) var(--vx-ease)}
.hc-switch[aria-expanded="true"] .hc-chev .icon{transform:rotate(-90deg)}

/* ---- The room list, over the feed and the box's full width: the search pinned on top, then the rows, scrolling. ---- */
.hc-drop{position:absolute;inset-inline-start:0;inset-inline-end:0;top:var(--vx-pane-head-h);bottom:0;z-index:4;display:flex;flex-direction:column;min-width:0;background:var(--vx-pop-bg);transition:opacity var(--vx-dur-pop) var(--vx-ease),transform var(--vx-dur-pop) var(--vx-ease)}
@starting-style{.hc-drop{opacity:0;transform:translateY(-6px)}}
.hc-drop.hidden.leaving{display:flex!important;opacity:0;transform:translateY(-6px);pointer-events:none;transition-duration:var(--vx-dur-fast)}
@media (prefers-reduced-motion:reduce){.hc-drop{transition-property:opacity}.hc-chev .icon{transition:none}}
/* The list's search band is the kit's pane band with its search pair (hub-chat.js): the small field, New message beside
   it at the same height, a step in from each side. Under it the notes, the eyebrows and the rows start on that line too. */
.hc-drop-top{flex:none}
.hc-find-wrap .icon{color:var(--vx-ink-3)}
.hc-drop-note{flex:none;margin-block:var(--vx-sp-2) 0;margin-inline:var(--vx-sp-3)}
.hc-drop-note:empty{display:none}
.hc-lists{flex:1;display:flex;flex-direction:column;gap:var(--vx-sp-3);min-height:0;padding-block:var(--vx-sp-2) var(--vx-sp-3);padding-inline:var(--vx-sp-3);overflow-y:auto;overscroll-behavior:contain}
.hc-section{display:flex;flex-direction:column;gap:2px;min-width:0}
.hc-section>.hc-k{margin-block:var(--vx-sp-0h) var(--vx-sp-1);margin-inline:0}
.hc-none{margin:0;font-size:var(--vx-fs-6)}
.hc-room{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:var(--vx-sp-3);align-items:center;width:100%;min-height:52px;padding-block:var(--vx-sp-1h);padding-inline:var(--vx-sp-2h);border:0;border-radius:var(--vx-nav-item-r);background:none;color:var(--vx-ink);font:inherit;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color var(--vx-dur-tap) var(--vx-ease-std),transform var(--vx-dur-fast) var(--vx-ease)}
.hc-room:active{transform:scale(.985)}
.hc-room:focus-visible{outline:2px solid var(--vx-focus);outline-offset:-2px}
/* Rooms, people and @ picks are the kit's rail rows (.vx-nav-item), two lines tall; the room on screen is lit by the kit
   (aria-current="true": a room, not a page). */
.hc-room,.hc-pick{--vx-nav-item-h:auto;font-weight:inherit}
.hc-room-av{background:var(--vx-well);box-shadow:inset 0 0 0 1px var(--vx-hair);color:var(--vx-ink-2);font-size:var(--vx-fs-6)}
.hc-count{flex:none;--vx-badge-size:22px}
/* On Chat the room is sized to end at the page's bottom gap (fit() in hub-chat.js), so the page keeps only that gap under it. */
.phone:has(#commsScreen.active){padding-bottom:var(--hc-tail,var(--verser-fab-reserve))}

/* ---- Chat depth (the 2 Nov review, C1-C9): every value is a token or the room's own measure. ---- */
/* The header: the name over a line of who is in the room; the room's ⋯ at the end. */
.hc-names{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}
.hc-names .hc-title{flex:none}
.hc-sub{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--vx-font-mono);font-size:var(--vx-fs-4);font-weight:500;color:var(--vx-ink-2)}
.hc-sub:empty{display:none}
.hc-room-more{flex:none;margin-inline:0}
/* The name takes only its own width, so the unread dot sits right after it. */
.hc-names{flex:0 1 auto}

/* Day dividers and runs of one author's messages under one header. */
.hc-day{flex:none;display:flex;align-items:center;gap:10px;margin:6px 0 2px;color:var(--vx-ink-2);font-family:var(--vx-font-mono);font-size:var(--vx-fs-4);font-weight:500}
.hc-day::before,.hc-day::after{content:"";flex:1;height:1px;background:var(--vx-hair)}
.hc-msg{position:relative}
.hc-msg.cont{margin-top:-4px}
.hc-msg.cont>.hc-meta{display:none}
.hc-msg.cont>.hc-text{margin-top:0}

/* @names in the words; a message that names this person carries the accent on its edge. */
.hc-at{font-weight:600;color:var(--vx-agent-text)}
.hc-at.me{padding:0 3px;border-radius:var(--vx-r-3xs);background:color-mix(in srgb,var(--vx-agent) 22%,transparent);color:var(--vx-ink)}
.hc-msg.to-me{box-shadow:inset 3px 0 0 var(--vx-agent)}
.hc-msg.to-me:dir(rtl){box-shadow:inset -3px 0 0 var(--vx-agent)}
.hc-edited{font-family:var(--vx-font-mono);font-size:var(--vx-fs-4);color:var(--vx-ink-2)}

/* Quote-reply: the line answered, above the words. */
.hc-quote{display:flex;flex-direction:column;gap:1px;width:100%;min-width:0;margin:4px 0 2px;padding:4px 8px;border:0;border-inline-start:2px solid var(--vx-agent);border-radius:var(--vx-r-3xs);background:var(--vx-well);color:var(--vx-ink);font:inherit;text-align:start;cursor:pointer}
.hc-quote:disabled{cursor:default}
.hc-quote-name{font-size:var(--vx-fs-6);font-weight:700}
.hc-quote-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--vx-fs-6);color:var(--vx-ink-2)}
.hc-quote:focus-visible{outline:2px solid var(--vx-focus);outline-offset:1px}
.hc-msg.flash{animation:hc-flash 1.2s var(--vx-ease)}
@keyframes hc-flash{0%{background:color-mix(in srgb,var(--vx-agent) 28%,var(--vx-well))}}

/* Reactions: one small chip per emoji under the words, this person's own pressed. */
.hc-reacts{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.hc-react{gap:4px;padding-inline:8px;--vx-chip-h:28px}
.hc-react-emoji{font-size:var(--vx-fs-8);line-height:1}
.hc-react-n{font-family:var(--vx-font-mono);font-size:var(--vx-fs-6)}

/* A message's actions: over its top edge on hover or focus (a fine pointer), after a tap on a touch screen. The bar
   starts near the message's far end (out into the empty side of the feed, held inside it by the feed's width), so the
   sender's name at the near end stays a link under the pointer. My own messages (no link on my name) keep it at their end. */
.hc-feed{padding-top:24px;container-type:inline-size}
.hc-tools{--hc-tool:34px;--hc-tools-w:calc(7 * var(--hc-tool) + 8 * var(--vx-sp-0h) + 2px);position:absolute;top:-18px;inset-inline-start:max(calc(-1 * var(--vx-sp-3)),min(calc(100% - 16px),calc(100cqi - var(--hc-tools-w))));z-index:2;display:flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--vx-hair);border-radius:var(--vx-r-pill);background:var(--vx-pop-bg);box-shadow:var(--vx-shadow);opacity:0;pointer-events:none;transform:translateY(3px) scale(.98);transform-origin:50% 100%;transition:opacity var(--vx-dur-fast) var(--vx-ease),transform var(--vx-dur-fast) var(--vx-ease)}
.hc-msg.mine .hc-tools{inset-inline-start:auto;inset-inline-end:min(var(--vx-sp-2),calc(100cqi + var(--vx-sp-3) - var(--hc-tools-w)))}
/* A message moved in for its sender's initials (.has-av, 44px) keeps its actions inside the feed too. Seven 44 px
   actions under a finger are wider than a small phone's feed (326 of 304 at 360): the bar may start over the initials'
   gutter and the feed's own inset, so it stays whole inside the room. */
.hc-msg.has-av:not(.mine) .hc-tools{inset-inline-start:max(calc(-44px - var(--vx-sp-3)),min(calc(100% - 16px),calc(100cqi - var(--hc-tools-w) - 44px)))}
.hc-msg.acting{z-index:3}
.hc-msg.acting .hc-tools{opacity:1;pointer-events:auto;transform:none}
@media (hover:hover) and (pointer:fine){.hc-msg:hover .hc-tools,.hc-msg:focus-within .hc-tools{opacity:1;pointer-events:auto;transform:none}.hc-msg:hover{z-index:3}}
.hc-tool{display:grid;place-items:center;inline-size:var(--hc-tool);block-size:var(--hc-tool);padding:0;border:0;border-radius:var(--vx-r-pill);background:none;color:var(--vx-ink-2);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color var(--vx-dur-tap) var(--vx-ease-std),transform var(--vx-dur-fast) var(--vx-ease)}
.hc-tool .icon{width:18px;height:18px}
.hc-tool-emoji{font-size:var(--vx-fs-13);line-height:1}
@media (hover:hover) and (pointer:fine){.hc-tool:hover{background:var(--vx-well);color:var(--vx-ink)}}
.hc-tool:active{transform:scale(.94)}
.hc-tool:focus-visible{outline:2px solid var(--vx-focus);outline-offset:-2px}
@media (pointer:coarse){.hc-tools{top:-24px;--hc-tool:var(--vx-h)}}

/* The page before, loading at the top of the feed; the pill back down at its foot. */
.hc-older{flex:none}
.hc-jump{position:absolute;inset-inline-start:50%;bottom:12px;z-index:3;gap:6px;transform:translateX(-50%);box-shadow:var(--vx-shadow);-webkit-backdrop-filter:var(--vx-blur-pop);backdrop-filter:var(--vx-blur-pop);transition:opacity var(--vx-dur-quick) var(--vx-ease),transform var(--vx-dur-quick) var(--vx-ease)}
.hc-jump:dir(rtl){transform:translateX(50%)}
.hc-jump .icon{width:16px;height:16px}
.hc-jump.hidden{display:inline-flex!important;opacity:0;pointer-events:none;transform:translate(-50%,6px)}
.hc-jump.hidden:dir(rtl){transform:translate(50%,6px)}

/* Over the box: replying to, or editing; the box itself is marked while editing. */
.hc-ctx{display:flex;align-items:center;gap:8px;min-width:0;padding-block:6px;padding-inline:12px 6px;border:1px solid var(--vx-hair);border-inline-start:2px solid var(--vx-agent);border-radius:var(--vx-nav-item-r);background:var(--vx-well)}
.hc-ctx-text{flex:1;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--vx-fs-8);color:var(--vx-ink-2)}
.hc-ctx-text b{color:var(--vx-ink);font-weight:700}
.hc-ctx-x{flex:none}
.hc-compose.editing{box-shadow:inset 0 0 0 1px var(--vx-agent)}

/* @ picker groups; the room list's mention badge (the accent) over a plain count (quiet); muted rooms; New message. */
.hc-pick-group{margin:6px 8px 2px}
.hc-count:not(.at){--vx-badge-bg:var(--vx-well);--vx-badge-fg:var(--vx-ink);box-shadow:inset 0 0 0 1px var(--vx-hair)}
.hc-room.muted{opacity:.55}
.hc-new{display:flex;flex-direction:column;gap:8px;min-width:0}
.hc-sheet-list{padding-block:var(--vx-sp-1);padding-inline:0}
@media (prefers-reduced-motion:reduce){.hc-tools,.hc-jump{transition:opacity var(--vx-dur-fast) linear}.hc-msg.flash{animation:none}}
/* Presence on a direct message's initials: the kit's status dot on the avatar's corner, ringed by the list's surface. */
.hc-room-av{position:relative;overflow:visible}
.hc-presence{position:absolute;inset-inline-end:-1px;bottom:-1px;inline-size:10px;block-size:10px;box-shadow:0 0 0 2px var(--vx-pop-bg);--_c:var(--vx-ink-3)}
.hc-presence[data-tone="ok"]{--_c:var(--vx-success)}
.hc-presence[data-tone="warn"]{--_c:var(--vx-warn)}

/* ---- 9 Nov review: toward the reference on our glass. The list is its own panel on every width (pinned); the room is
   .hc-thread (the box, the notes and the composer). A phone shows one at a time (.hc-in-room: the room over the list). ---- */
.hc-thread{display:flex;flex-direction:column;gap:10px;min-width:0}
.hc-pinned>.hc-drop{position:relative;inset:auto;top:auto;z-index:auto;overflow:hidden;background:var(--vx-card-bg);border-radius:var(--vx-card-r);box-shadow:var(--vx-card-shadow);-webkit-backdrop-filter:var(--vx-card-blur);backdrop-filter:var(--vx-card-blur);transform:none;opacity:1}
.hc-pinned .hc-chev{display:none}
body:not(.desk) .hc-pinned:not(.hc-in-room)>.hc-thread,body:not(.desk) .hc-pinned.hc-in-room>.hc-drop{display:none}
/* A phone's room is the whole page under "‹ Chat": the page's own title steps aside. */
body:not(.desk) #commsScreen.comms-in-room>.title>.title-with-icon{display:none}
body:not(.desk) #commsScreen.comms-in-room>.title{min-height:0;margin:0;padding:0}

/* A room row: the name and the newest message's time, then its line and the count (GET hub/chat/rooms `last`). */
.hc-room{min-height:60px}
.hc-room-av{width:40px;height:40px}
/* A channel's # is the header's mark shape (a rounded square), a person's initials stay round. */
.hc-room-av.hc-chan{border-radius:var(--vx-r-xs)}
.hc-room{grid-template-columns:40px minmax(0,1fr)}
.hc-room-top,.hc-room-bot{display:flex;align-items:center;gap:var(--vx-sp-2);min-width:0}
.hc-room-bot{margin-top:2px}
.hc-pick-who .hc-room-name{flex:0 1 auto;display:block;min-width:0;unicode-bidi:plaintext}
.hc-room-when{flex:none;margin-inline-start:auto;font-family:var(--vx-font-mono);font-size:var(--vx-fs-4);font-weight:500;color:var(--vx-ink-2)}
.hc-pick-who .hc-room-last{flex:0 1 auto;min-width:0;margin-top:0;font-size:var(--vx-fs-6)}
.hc-room .hc-count{flex:none;margin-inline-start:auto}

/* Messages: the sender's initials beside the first of a run, the follow-ups tucked under the same edge; mine stay at
   the far end without them. Day dividers are pills on the line. */
.hc-msg.has-av{margin-inline-start:44px}
.hc-msg-av{position:absolute;inset-inline-start:-44px;top:0;width:34px;height:34px;font-size:var(--vx-fs-4)}
.hc-msg:not(.agent)>.hc-msg-av{background:var(--vx-well);box-shadow:inset 0 0 0 1px var(--vx-hair);color:var(--vx-ink-2)}
.hc-msg.cont>.hc-msg-av{display:none}
.hc-day>span{padding:3px var(--vx-sp-3);border:1px solid var(--vx-hair);border-radius:var(--vx-r-pill);background:var(--vx-well)}

/* The composer: the kit's box, growing to about five lines (Enter sends; hub-chat.js). */
.hc-compose{--verser-composer-max:calc(5 * 22px + 22px)}

/* Room info (a side sheet; a bottom sheet on a phone). */
.hc-info-body{display:flex;flex-direction:column;gap:var(--vx-sp-2);min-width:0}
.hc-info-head{display:flex;align-items:center;gap:var(--vx-sp-3);min-width:0;padding-bottom:var(--vx-sp-2)}
.hc-info-head .hc-mark{width:44px;height:44px}
.hc-info-head .hc-pick-who b{font-size:var(--vx-fs-10)}
.hc-info-acts{display:flex;flex-wrap:wrap;gap:var(--vx-sp-2)}
.hc-info-note{margin:0;font-size:var(--vx-fs-6)}
.hc-info-k{margin:var(--vx-sp-3) 0 0}

/* A message's confirm (Report, Block, Delete: confirmInline puts it where the ⋯ was): the bar becomes a small card that
   holds the question over Cancel and the action, inside the feed's width, shown until answered. */
.hc-msg:has(.hc-tools .confirm-row){z-index:4}
.hc-tools:has(.confirm-row){--hc-tools-w:min(300px,calc(100cqi - 68px));inline-size:var(--hc-tools-w);flex-wrap:wrap;padding:var(--vx-sp-3);border-radius:var(--vx-r-md);opacity:1;pointer-events:auto;transform:none}
.hc-tools:has(.confirm-row)>.hc-tool{display:none}
.hc-tools .confirm-row{display:flex;flex-wrap:wrap;gap:var(--vx-sp-2);inline-size:100%;min-inline-size:0}
.hc-tools .confirm-row small{flex-basis:100%;font-size:var(--vx-fs-5);line-height:1.45;color:var(--vx-ink-2);overflow-wrap:anywhere}
.hc-tools .confirm-row .toolbar{display:flex;gap:var(--vx-sp-2);margin-inline-start:auto}

/* ---- Layout pass (11 Nov): the room list's end, the box's one line, names in either script. ---- */
/* A phone's list keeps room at its end for the agent's round button floating over the card's corner, so its last row
   scrolls clear of it (the kit's --vx-fab-reserve). */
body.agent-fab-on:not(.desk) .hc-lists:not(.hc-sheet-list){padding-block-end:var(--vx-fab-reserve)}
/* With more rows than fit, the list fades at the end that has more (and at the top once scrolled), from its own scroll
   position: the kit's scroll cue on the block axis. A list that fits has no fade. */
@supports (animation-timeline:scroll()){
  .hc-lists:not(.hc-sheet-list){--_cue:linear-gradient(to bottom,transparent 0,var(--vx-mask) var(--vx-tabs-fade-s),var(--vx-mask) calc(100% - var(--vx-tabs-fade-e)),transparent 100%);
    -webkit-mask-image:var(--_cue);mask-image:var(--_cue);animation:vx-tabs-fade linear both;animation-timeline:scroll(self block)}
}
/* The box's prompt stays one line ("Message <a long name>" ends in an ellipsis), so the box does not grow before a word is typed. */
.hc-input::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* A name or a line in another script than the page's reads in its own direction, cut at its own end (plaintext), and the
   box is only as wide as the text (at most the cell), so it starts on the row's own start edge next to its mark in either
   script: an English name in the Arabic UI sits flush to the avatar on the right, an Arabic one in English on the left. */
.hc-sub,.hc-room-last,.hc-pick-who small{unicode-bidi:plaintext;inline-size:fit-content;max-inline-size:100%}
.hc-names .hc-title,.hc-names .hc-sub{align-self:flex-start;max-inline-size:100%}
