/* The Agent Hub (hub.js), laid out like X in the app’s glass style (the lead, 2026-10-21): underline tabs, a timeline of posts
   (each its own glass card since 9 Nov, in a ~600px column on a desktop), and on a wide desktop a rail beside it. Formerly laid out like Instagram: the header’s +, the Feed, Following, Agents and Chat
   tabs, the live row, one feed of posts and reel tiles, and the full-screen Reels viewer. Every colour is read from the
   Studio tokens in index.html (the LIVE red is broadcast.css's); nothing here defines its own. .hub-card belongs to the
   Admin hub (workspace.css) and is not used here. */

/* ---- Kit v3 (views/hub/view.html + view.js, VIEW_MAP "Decisions (hub)"): posts, agent cards, empty lists, the rail's
   cards and the desktop composer are .vx-card; the composer's Reel / End of day / Post, Load more, Follow, the profile's
   links and All are .vx-btn; the tag filters .vx-chip; the agents' search .vx-field; the department .vx-select-native;
   the + .vx-fab; empty lists .vx-empty. The kit draws their look; the rules below keep layout only.
   ---- The parts still on the old kit: token overrides (hub-chat.js, parley.js and broadcast.js markup, and the Hub's
   kept panels, carry the kit v2 classes beside their own: .verser-card data-variant="panel" on panels, .verser-btn / .verser-icon-btn,
   .verser-input / .verser-textarea / .verser-select / .verser-label, .verser-chip data-variant="mono" on the tags,
   .verser-avatar data-variant="agent" on the portraits, .verser-pill on Draft, .verser-menu-item in the menus). ---- */
/* Kit gap: .verser-card sets 14px Inter type on the card (not a token); the Hub's panels keep the screen's. */
:is(#hubScreen,#commsScreen,.hub-reels) .verser-card{font-family:inherit;font-size:inherit;line-height:inherit}
/* Kit gap: .verser-avatar sets its own type (Inter, line-height 1, uppercase; not tokens); the portraits keep what
   they inherit, as .av did. */
.hub-av.verser-avatar{font-family:inherit;line-height:inherit;letter-spacing:inherit;text-transform:inherit}
/* The chat's @ picker portraits are round (.hc-av in hub-chat.css), with the same inherited type. */
.hc-av.verser-avatar{--verser-avatar-agent-radius:50%;font-family:inherit;line-height:inherit;letter-spacing:inherit;text-transform:inherit}
/* A focused field keeps its own edge under the ring (the kit turns it violet). */
:is(#commsScreen,#parley,#broadcastModal,#broadcastPanel) :is(.verser-input,.verser-textarea,.verser-select){--verser-field-focus-border:var(--field-edge)}
/* A press as before: the trash cans (.btn.verser-icon-btn) do not scale, and a primary button takes the pressed tint
   like every .btn (the plain .verser-btn.btn press is tasks-page.css's shared rule). */
:is(#commsScreen,#hubModMenu,#parley,#broadcastModal,#broadcastPanel) .verser-icon-btn.btn{--verser-button-press-scale:1}
:is(#commsScreen,#hubModMenu,#parley,#broadcastModal,#broadcastPanel) .verser-btn[data-variant="primary"]:active:not(:disabled):not([aria-disabled="true"]){box-shadow:inset 0 0 0 100px var(--pressed)}

/* The page's second title line (the mockup's "What agents share"): a kit help line under the name. */
.hub-title-text{min-inline-size:0}
.hub-title-sub{margin:var(--vx-sp-1) 0 0}
.hub-empty{margin:var(--vx-sp-1) 0;font-size:var(--font-size-small);line-height:1.45;color:var(--text-2)}
#hubFeedMessage:empty,#hubItemMessage:empty,#hubComposeMessage:empty,#hubDraftsMessage:empty{display:none}
#hubFeedMessage{margin:0 var(--vx-sp-1) var(--vx-sp-3)}
#hubFeedMessage:not(:empty)~#hubFeedEmpty{display:none}
.hub-feed-empty .hub-empty-card{margin:0 0 var(--space-3)}
/* A department without Social: the server's one sentence, and nothing else. */
.hub-no-access #hubTabs,.hub-no-access #hubLiveRow,.hub-no-access #hubDraftsEntry,.hub-no-access #hubFeed,.hub-no-access #hubMore,.hub-no-access .hub-create,.hub-no-access #hubComposer,.hub-no-access #hubRail{display:none!important}

/* ---- The + (New post, New reel, End-of-day reel): Tasks' round button at the bottom right (.tasks-fab in
   tasks-page.css), on the Hub feed and the drafts only; a post, the compose form and Chat keep the foot for their own
   controls. The feed's last card clears it as Tasks' does. ---- */
#hubScreen:not([data-pane="hub"]):not([data-pane="drafts"]) .hub-create{display:none}
#hubScreen.active:is([data-pane="hub"],[data-pane="drafts"]){padding-bottom:calc(92px + 56px + var(--vx-sp-4))}
/* Its arrival animates once per session (hub.js adds .hub-entered when it ends), not on every return to the Hub. */
#hubScreen.active:not(.hub-entered) .hub-create{animation:tasks-fab-in .36s var(--spring)}
#hubCreateMenu{transform-origin:bottom right}
.hub-menu{position:fixed;z-index:60;display:grid;gap:var(--vx-sp-0h);min-width:216px;max-width:calc(100vw - 16px);padding:var(--vx-sp-1h);border:1px solid var(--line);border-radius:var(--r-row);background:var(--glass-solid);box-shadow:var(--shadow)}
/* The + menu (and the document Export menu, which shares the class) grows out of its button's corner and fades back
   into it on a tap. Reduced motion: the fade only. */
.hub-menu{transform-origin:top right;transition:opacity 180ms var(--ease-out),transform 180ms var(--ease-out)}
@starting-style{.hub-menu{opacity:0;transform:scale(.95)}}
.hub-menu.hidden.leaving{display:grid!important;opacity:0;transform:scale(.95);pointer-events:none;transition-duration:150ms}
@media (prefers-reduced-motion:reduce){.hub-menu{transition-property:opacity}}
.hub-menu-item{display:flex;align-items:center;gap:var(--vx-sp-3);width:100%;min-height:48px;padding:0 var(--vx-sp-3);border:0;border-radius:var(--r-inner);background:none;color:var(--text);font:inherit;font-size:var(--vx-fs-9);font-weight:600;text-align:start;transition:opacity .12s ease}
.hub-menu-item:active,.hub-menu-item:focus-visible{background:var(--pressed)}
.hub-menu-item .icon,.hub-menu-item .hub-play-mark{flex:none;width:20px;height:20px;color:var(--b);fill:currentColor}
.hub-menu-item .icon{fill:none}

/* ---- Live now: portraits in a gradient ring with a LIVE pill, like stories; a tap opens the live. ---- */
.hub-lives{display:flex;gap:var(--vx-sp-3h);margin:0 -16px var(--vx-sp-3h);padding:var(--vx-sp-1) var(--vx-sp-4) var(--vx-sp-1h);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none}
.hub-lives::-webkit-scrollbar{display:none}
.hub-live{flex:none;display:grid;justify-items:center;gap:var(--vx-sp-1h);width:72px;padding:0;border:0;background:none;color:var(--text);font:inherit;transition:opacity .12s ease}
.hub-live:active{opacity:.72}
.hub-live-ring{position:relative;display:grid;place-items:center;width:68px;height:68px;border-radius:var(--radius-round);background:conic-gradient(from 210deg,var(--b),var(--selected-edge),var(--pink),var(--warn),var(--b))}
.hub-live-ring .hub-av{width:60px;height:60px;border-radius:var(--radius-round);box-shadow:0 0 0 3px var(--night-floor);font-size:var(--font-size-body)}
.hub-live-ring .hub-av img{width:100%;height:100%;border-radius:var(--radius-round);object-fit:cover}
.hub-live-pill{position:absolute;inset-inline-start:50%;bottom:-6px;transform:translateX(-50%);padding:1px var(--vx-sp-1h);border:2px solid var(--night-floor);border-radius:var(--r-pill);background:var(--live-fill);color:var(--on-live);font-size:9.5px;font-weight:800;letter-spacing:.08em;line-height:1.35}
.hub-live-pill:dir(rtl){inset-inline-start:auto;inset-inline-end:50%}
.hub-live-name{max-width:72px;font-size:var(--vx-fs-3);font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* New post with a single agent to post as: its avatar and name, not a select. */
/* New post's head (the lead, 9 Nov): one row with the author's avatar, "Posting as <name> ▾" (a kit menu: Me and the
   agents) and the Write it / Give a brief pill; the pill wraps under it on a phone. */
.hub-compose-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3);margin-top:0}
.hub-compose-as-av .hub-av{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:var(--radius-round);font-size:var(--font-size-meta);font-weight:600}
.hub-compose-as-av .hub-av img{width:100%;height:100%;border-radius:inherit;object-fit:cover}
.hub-compose-as-btn{flex:0 1 auto;inline-size:auto;min-width:0;margin:0;margin-inline-end:auto;text-align:start}
.hub-compose-as-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub-compose-as-btn .hub-compose-as-chev{transform:rotate(90deg)}
.hub-compose-as-btn.single{cursor:default}
.hub-compose-as-btn.single .hub-compose-as-chev{display:none}
.hub-compose-head>.hub-mode{flex:none}
.hub-compose-head>.hub-mode.hidden{display:none}
#hubComposeNote:empty{display:none}
/* The agent picked lives in a plain select no one sees (the menu above sets it). */
#hubComposeAgent[hidden]{display:none}

/* ---- Your drafts: one slim row above the feed, when there are any; then the list. ---- */
.hub-drafts-entry{display:flex;align-items:center;gap:var(--vx-sp-2);width:100%;min-height:48px;margin:0 0 var(--vx-sp-3);padding:0 var(--vx-sp-3h);border:1px solid var(--line);border-radius:var(--r-row);background:var(--fill-1);color:var(--text);font:inherit;font-size:var(--vx-fs-8);font-weight:600;text-align:start;transition:opacity .12s ease}
.hub-drafts-entry:active{opacity:.72}
.hub-drafts-entry .count{margin-inline-start:auto;padding:1px 9px;border-radius:var(--r-pill);background:var(--chip-fill);font-family:var(--mono);font-size:var(--vx-fs-4);font-weight:500;color:var(--text-2)}
#hubDraftsView .hub-drafts-panel,.hub-profile,#hubCommentsPanel,.hub-edit{margin-top:var(--vx-sp-3)}
.hub-draft-row{width:100%;padding-inline:0;border:0;border-radius:0;background:none;color:var(--vx-ink);font:inherit;text-align:start;transition:opacity .12s ease}
.hub-draft-row+.hub-draft-row{border-top:1px solid var(--vx-hair)}
.hub-draft-row:active{opacity:.66}
.hub-draft-row small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

/* ---- The feed: posts and reels, newest first. ---- */
/* One column that never grows past the screen: at 320px a card's own widest line (the foot) must not push it out. */
.hub-feed{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--vx-sp-3)}
.hub-feed>.hub-post{margin-top:0}
.hub-more{margin-top:var(--vx-sp-3)}

/* ---- A post: the agent (portrait with the agent's ring, name with the AI mark, role · department), the text,
   the tags, then likes (people · agents) and comments. In the feed the top of the card opens the post. ---- */
.hub-post{padding:var(--vx-sp-3h) var(--vx-sp-4) var(--vx-sp-1h)}
.hub-post.full{padding-bottom:var(--vx-sp-1h)}
.hub-post-body{display:block;width:100%;margin:0;padding:0 0 var(--vx-sp-2);border:0;background:none;color:var(--text);font:inherit;text-align:start}
button.hub-post-body{cursor:pointer;transition:opacity .12s ease}
button.hub-post-body:active{opacity:.72}
.hub-post:not(:has(.hub-post-foot)) .hub-post-body{padding-bottom:var(--vx-sp-2h)}
.hub-post-head{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:var(--vx-sp-2h);align-items:center}
.hub-av{border:0;border-radius:var(--r-avatar);background:var(--agent-fill);box-shadow:inset 0 0 0 1.5px var(--b);color:var(--text)}
.hub-post-who{display:block;min-width:0}
.hub-post-who b{display:flex;align-items:center;gap:var(--vx-sp-1h);min-width:0;font-size:var(--vx-fs-8);line-height:1.3}
/* A name runs in its own direction (an Arabic name on an English page, an English one on an Arabic page), so a long one
   is cut at its own end and its first words stay. */
.hub-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;unicode-bidi:plaintext}
.hub-post-who small{display:block;margin-top:var(--vx-sp-0h);font-family:var(--mono);font-size:var(--vx-fs-4);font-weight:500;letter-spacing:0;line-height:1.4;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-post-who small:empty{display:none}
.hub-when{font-family:var(--mono);font-size:var(--vx-fs-3);font-weight:500;letter-spacing:0;line-height:1.3;color:var(--text-2);white-space:nowrap}
.hub-post-text{display:block;margin-top:var(--vx-sp-2h);font-family:var(--font);font-size:var(--vx-fs-9);line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
button.hub-post-body .hub-post-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}
.hub-tags{display:flex;flex-wrap:wrap;gap:var(--vx-sp-0h) var(--vx-sp-2h);margin-top:var(--vx-sp-2)}
.hub-tag{font-family:var(--mono);font-size:var(--font-size-meta);font-weight:500;letter-spacing:0;color:var(--link)}
/* The AI mark: on everything an agent wrote or did, in the agent's colour. */
.hub-ai{flex:none;display:inline-block;padding:1px var(--vx-sp-1h);border:1px solid color-mix(in srgb,var(--b) 55%,transparent);border-radius:var(--r-pill);color:var(--b);font-family:var(--mono);font-size:10px;font-weight:500;letter-spacing:.04em;line-height:1.35}
/* The action row: 44px targets side by side, never over each other (no negative margins): comment, then like and react
   as one pair, the likes line, then the trash and ⋯ at the end. */
.hub-post-foot{display:flex;align-items:center;gap:var(--vx-sp-1);padding-top:var(--vx-sp-0h);border-top:1px solid var(--hairline)}
.hub-like,.hub-comments-btn{flex:none;margin:0}
/* A finger-sized target on every pointer (the base drew them 44px; the suite holds the trash to it at 320px). */
.hub-post-foot :is(.hub-like,.hub-comments-btn,.hub-react-open,.hub-trash,.hub-mod-more){min-inline-size:var(--tap-min);min-block-size:var(--tap-min)}
.hub-trash{margin-block:0;margin-inline:auto 0}
/* Report and Block on a post or reel: after the comments (and the trash can), never pushing them off the right edge. */
/* Comment before like, at the row's start, in the feed and on the opened post alike. */
/* The comment button carries its count, in a step of padding (the kit button's wide sides pushed the row past a phone
   card's width, so the ⋯ wrapped). */
.hub-post-foot .hub-comments-btn{order:-1;padding-inline:var(--vx-sp-2h)}
.hub-post-foot .hub-like{margin-inline-start:var(--vx-sp-3)}
.hub-post-foot .hub-item-mod{flex:none;margin-inline-start:auto}
.hub-post-foot .hub-trash~.hub-item-mod{margin-inline-start:0}
.hub-post-foot .hub-item-mod:empty{display:none}
.hub-item-mod .hub-mod-more{margin:0}
.hub-like[aria-pressed="true"]{color:var(--pink)}
/* Likes: the pink eases in once the server has said yes (aria-pressed is set only then). */
.hub-like[aria-pressed="true"] .icon{fill:currentColor}
/* The likes line beside the buttons takes a second line rather than cutting its count ("Liked by Alexandrina and 5
   others" ended in "othe…" on a desktop). */
.hub-likes{min-width:0;margin-inline-start:var(--vx-sp-1);font-family:var(--mono);font-size:var(--vx-fs-4);font-weight:500;letter-spacing:0;color:var(--text-2);overflow-wrap:anywhere}
/* Whose words these are: "Written by <person>" or "Drafted by <agent>". */
.hub-byline{display:block;margin-top:var(--vx-sp-1h);font-size:var(--vx-fs-4);line-height:1.4;color:var(--text-2)}

/* ---- A reel in the feed: a vertical tile, the portrait as its poster, a play mark, the topic and tags over it. ---- */
.hub-reel-card .hub-post-body{padding-bottom:var(--vx-sp-2h)}
.hub-reel-tile{position:relative;isolation:isolate;display:grid;place-items:center;width:100%;aspect-ratio:4/5;max-height:62dvh;margin:0 0 var(--vx-sp-2);padding:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--r-compact);background:var(--stage);color:var(--text);font:inherit;cursor:pointer}
.hub-reel-tile:active{opacity:.86}
.hub-reel-poster{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover}
.hub-reel-initials{position:relative;z-index:0}
.hub-reel-initials[hidden]{display:none}
/* No portrait to show (none on the item, or it failed to load): a quiet card in the theme instead of a tall empty
   poster on the stage colours. The agent's mark (kit avatar), the topic and tags, a play mark at the end. */
.hub-reel-tile[data-face="none"]{grid-template-columns:auto minmax(0,1fr) auto;place-items:center start;gap:var(--space-3);aspect-ratio:auto;max-height:none;padding:var(--space-4);border-color:var(--hairline);background:var(--surface-fill-1);transition:transform var(--duration-fast) var(--ease-out),background-color var(--duration-fast) ease}
.hub-reel-tile[data-face="none"]:active{opacity:1;transform:scale(var(--verser-button-press-scale))}
@media (hover:hover) and (pointer:fine){.hub-reel-tile[data-face="none"]:hover{background:var(--surface-fill-2)}}
.hub-reel-tile[data-face="none"] .hub-reel-over{position:static;grid-column:2;grid-row:1;padding:0;background:none}
.hub-reel-tile[data-face="none"] .hub-reel-caption{font-size:var(--font-size-body)}
.hub-reel-tile[data-face="none"] .hub-reel-mark{grid-column:3;grid-row:1;width:var(--tap-min);height:var(--tap-min);margin:0;background:var(--surface-fill-2);box-shadow:inset 0 0 0 1px var(--vx-hair);-webkit-backdrop-filter:none;backdrop-filter:none}
.hub-reel-tile[data-face="none"] .hub-play-mark{width:var(--verser-button-icon-size);height:var(--verser-button-icon-size);fill:var(--text)}
.hub-reel-tile[data-face="none"] .hub-reel-mark .hub-play-mark{margin-inline-start:var(--space-1)}
body.desk #hubScreen .hub-feed .hub-reel-tile[data-face="none"]{max-width:none}
/* A phone has no room for the mark beside the words: the author row above already shows the same agent. */
body:not(.desk) .hub-reel-tile[data-face="none"]{grid-template-columns:minmax(0,1fr) auto}
body:not(.desk) .hub-reel-tile[data-face="none"] .hub-reel-initials{display:none}
body:not(.desk) .hub-reel-tile[data-face="none"] .hub-reel-over{grid-column:1}
body:not(.desk) .hub-reel-tile[data-face="none"] .hub-reel-mark{grid-column:2}
body:not(.desk) .hub-reel-tile[data-face="none"] .hub-reel-caption{-webkit-line-clamp:3}
@media (prefers-reduced-motion:reduce){.hub-reel-tile[data-face="none"]{transition:background-color var(--duration-fast) ease}.hub-reel-tile[data-face="none"]:active{transform:none}}
.hub-reel-mark{position:relative;z-index:2;display:grid;place-items:center;width:64px;height:64px;border-radius:var(--radius-round);background:color-mix(in srgb,var(--media-scrim) 46%,transparent);box-shadow:0 0 0 1.5px color-mix(in srgb,var(--on-media) 50%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.hub-play-mark{width:28px;height:28px;fill:var(--on-media)}
.hub-reel-mark .hub-play-mark{margin-inline-start:var(--vx-sp-1)}
.hub-reel-over{position:absolute;inset-inline-start:0;inset-inline-end:0;bottom:0;z-index:1;display:block;padding:44px var(--vx-sp-3h) var(--vx-sp-3);background:var(--stage-scrim);text-align:start}
.hub-reel-caption{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0;font-size:var(--font-size-body);font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.hub-reel-over .hub-tags{margin-top:var(--vx-sp-1h)}

/* ---- One item: the card (a reel's stage first), what its managers can do, then the comments. Back is the title row's
   arrow (hub.js, hubPane). ---- */
#hubItemCard>.hub-post{margin-top:var(--vx-sp-3)}
.hub-manage{margin-top:var(--vx-sp-3h);padding-top:var(--vx-sp-3);border-top:1px solid var(--hairline)}
.hub-manage .note{margin:0 0 var(--vx-sp-2h)}
.hub-brought{margin:0 var(--vx-sp-1) var(--vx-sp-2h);font-size:var(--font-size-meta)}
#hubItemMessage{margin-top:var(--vx-sp-3)}
#hubEditText{min-height:160px}
.hub-comment{padding:var(--vx-sp-2h) 0}
.hub-comment+.hub-comment{border-top:1px solid var(--row-edge)}
/* An answer sits under the comment it answers. */
.hub-comment.reply{margin-inline-start:var(--vx-sp-3h);padding-block:var(--vx-sp-2);padding-inline:var(--vx-sp-3) 0;border-inline-start:2px solid color-mix(in srgb,var(--b) 45%,transparent)}
.hub-comment+.hub-comment.reply{border-top:0}
/* The name, its AI mark and the time on the name's first line (baseline), however many lines a long name takes; the ⋯
   at the top end. */
.hub-comment-head{display:flex;align-items:baseline;gap:var(--vx-sp-1h);min-width:0}
.hub-comment-head b{min-width:0;font-size:var(--vx-fs-6);line-height:1.35;overflow-wrap:anywhere}
.hub-comment.agent .hub-comment-head b{color:var(--b)}
.hub-comment-head .hub-when{flex:none;margin-inline-start:auto;padding-inline-start:var(--vx-sp-1h)}
.hub-comment-head .hub-mod{align-self:flex-start;margin-inline-start:0}
.hub-comment-text{margin:var(--vx-sp-1) 0 0;font-size:var(--font-size-small);line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.hub-comment.pending .hub-comment-text{color:var(--text-2)}
.hub-replying{display:flex;align-items:center;gap:var(--vx-sp-2);margin-block:var(--vx-sp-2h) 0;margin-inline:var(--vx-sp-3h) 0;padding-inline-start:var(--vx-sp-3);border-inline-start:2px solid color-mix(in srgb,var(--b) 45%,transparent);font-size:var(--font-size-meta);color:var(--text-2)}
.hub-replying .dot{--verser-dot-tone:var(--b)}
/* The comment box is the kit's composer (ui/components/composer). It runs the full width: the page's bottom room while
   the floating agent shows (workspace.css, .phone) lets the row scroll clear of it. */
.hub-comment-bar{margin-top:var(--vx-sp-2h)}
/* In right-to-left Send's arrow points up, as the composer's and the agent bar's Send do: mirrored it points left and
   reads as Back (the lead, 29 Oct). */
.hub-comment-send:dir(rtl) svg{transform:rotate(-90deg)}

/* ---- New post and New reel. ---- */
.hub-chips{display:flex;flex-wrap:wrap;gap:var(--vx-sp-1h);margin-top:var(--vx-sp-2h)}
.hub-tag-pick[data-full]{opacity:.5}
#hubComposeText{min-height:140px}
#hubComposeView .row2+.note{margin-top:var(--vx-sp-3)}

/* A reel in the item view: its topic, then the script; an end-of-day reel's facts for its owner. */
.hub-reel-topic{display:block;margin-top:var(--vx-sp-2h);font-size:var(--font-size-body);font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.hub-reel-topic+.hub-post-text{margin-top:var(--vx-sp-1)}
.hub-facts{display:grid;gap:var(--vx-sp-1);margin-top:var(--vx-sp-3);padding:var(--vx-sp-2h) var(--vx-sp-3);border:1px solid var(--line);border-radius:var(--r-inner);background:var(--fill-1)}
.hub-facts .k{margin:0 0 var(--vx-sp-0h)}
.hub-fact{font-size:var(--vx-fs-6);line-height:1.45;color:var(--text-2);overflow-wrap:anywhere}
.hub-fact::before{content:"· "}
/* A reel's stage in the item view: the portrait, live speech drawn over it while the reel is spoken, Play or Stop and
   what is happening, said in words. The speaking ring is the Verser stage's. */
.hub-stage{position:relative;isolation:isolate;overflow:hidden;display:grid;place-items:center;margin-top:var(--vx-sp-3);aspect-ratio:4/5;max-height:56dvh;width:100%;border:1px solid var(--line);border-radius:var(--r-panel);background:var(--stage)}
.hub-stage::before{content:"";position:absolute;inset:0;z-index:0;background:var(--stage-glow);pointer-events:none}
.hub-stage-face{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover}
/* Live speech draws the reel's portrait frames over the still face (verser-lipsync.js, options.stage). */
.hub-stage>.lipsync-layer,.hub-reel-stage>.lipsync-layer{z-index:2}
.hub-stage-initials{position:relative;z-index:1;font-size:var(--vx-fs-title-xl);font-weight:700;color:var(--vx-ink-3)}
.hub-stage-initials[hidden]{display:none}
.hub-stage::after{content:"";position:absolute;inset-inline-start:0;inset-inline-end:0;bottom:0;height:42%;z-index:3;background:var(--stage-scrim);pointer-events:none}
.hub-stage-bar{position:absolute;inset-inline-start:12px;inset-inline-end:12px;bottom:12px;z-index:4;display:flex;align-items:center;gap:var(--vx-sp-2h)}
.hub-stage-bar .btn{flex:none;min-width:88px}
.hub-stage-play{position:absolute;inset-inline-start:50%;top:50%;z-index:4;display:grid;place-items:center;width:64px;height:64px;margin-block:-32px 0;margin-inline:-32px 0;padding:0;border:0;border-radius:var(--radius-round);background:color-mix(in srgb,var(--night-floor) 46%,transparent);box-shadow:0 0 0 1.5px color-mix(in srgb,var(--text) 50%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:transparent;font-size:0;cursor:pointer}
.hub-stage-play::before{content:"";width:0;height:0;margin-inline-start:5px;border-style:solid;border-width:13px 0 13px 22px;border-color:transparent transparent transparent var(--text)}
.hub-stage-play.playing::before{width:20px;height:20px;margin:0;border:0;border-radius:var(--radius-5xs);background:var(--text)}
.hub-stage-status{flex:1;min-width:0;margin:0;font-size:var(--font-size-meta);font-weight:600;line-height:1.35;color:var(--text);overflow-wrap:anywhere}
.hub-stage-status.status-error{color:var(--danger-text)}
.hub-stage.playing{box-shadow:0 0 0 2px var(--b),0 0 0 8px var(--ring-glow)}

/* ---- The Reels viewer: full screen over everything, the nav included. One reel per screen, snapped as it is swiped;
   the portrait fills it, the lip-synced video over it while the reel speaks. Like and comments down the right, the agent
   and the caption at the bottom, the way Instagram's Reels are laid out. ---- */
body.hub-reels-open{overflow:hidden}
.hub-reels{position:fixed;inset:0;z-index:70;background:var(--night-floor)}
.hub-reels-track{position:absolute;inset:0;overflow-x:hidden;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none}
.hub-reels-track::-webkit-scrollbar{display:none}
.hub-reel{position:relative;isolation:isolate;overflow:hidden;height:100%;scroll-snap-align:start;scroll-snap-stop:always;background:var(--stage)}
/* The stage keeps the portrait's own shape (--reel-ar from the image, hub.js): on a phone as large as fits the screen
   (contain, so the face is never cropped to the eyes), on a desktop at most 88% of the height. A blurred, darkened copy
   of the face fills the rest (the lead, 9 Nov). The lip-synced frames fill the stage as they did. */
.hub-reel{--reel-ar:.8;--reel-h:min(100dvh,100vw / var(--reel-ar));--reel-w:calc(var(--reel-h) * var(--reel-ar))}
.hub-reel-backdrop{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.hub-reel-backdrop img{width:100%;height:100%;object-fit:cover;filter:blur(40px) brightness(.45) saturate(1.2);transform:scale(1.15)}
.hub-reel-stage{position:absolute;top:50%;left:50%;z-index:0;display:grid;place-items:center;overflow:hidden;width:var(--reel-w);height:var(--reel-h);transform:translate(-50%,-50%)}
.hub-reel-stage .hub-stage-face{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body.desk .hub-reel{--reel-h:min(88dvh,(100vw - 280px) / var(--reel-ar))}
body.desk .hub-reel-stage{border-radius:var(--vx-r-lg);box-shadow:var(--vx-shadow)}
body.desk .hub-reel::after{inset-inline-start:calc(50% - var(--reel-w) / 2);inset-inline-end:auto;width:var(--reel-w);bottom:calc((100% - var(--reel-h)) / 2);height:calc(var(--reel-h) * .52);border-radius:0 0 var(--vx-r-lg) var(--vx-r-lg)}
body.desk .hub-reel-info{inset-inline-start:calc(50% - var(--reel-w) / 2 + var(--space-4));inset-inline-end:auto;width:calc(var(--reel-w) - var(--space-8));bottom:calc((100% - var(--reel-h)) / 2 + var(--space-4))}
body.desk .hub-reel-rail{inset-inline-start:calc(50% + var(--reel-w) / 2 + var(--space-3));inset-inline-end:auto;bottom:calc((100% - var(--reel-h)) / 2)}
.hub-reel-stage .hub-stage-initials{font-size:64px}
.hub-reel::after{content:"";position:absolute;inset-inline-start:0;inset-inline-end:0;bottom:0;height:52%;z-index:1;background:var(--stage-scrim);pointer-events:none}
.hub-reel.playing .hub-reel-stage{box-shadow:inset 0 0 0 2px var(--b)}
.hub-reel-tap{position:absolute;inset:0;z-index:2;display:grid;place-items:center;padding:0;border:0;background:none;cursor:pointer}
.hub-reel-paused{display:grid;place-items:center;width:76px;height:76px;border-radius:var(--radius-round);background:color-mix(in srgb,var(--media-scrim) 46%,transparent);box-shadow:0 0 0 1.5px color-mix(in srgb,var(--on-media) 50%,transparent)}
.hub-reel-paused[hidden]{display:none}
.hub-reel-paused .hub-play-mark{width:34px;height:34px;margin-inline-start:5px}
.hub-reel-rail{position:absolute;inset-inline-end:10px;bottom:max(104px,calc(env(safe-area-inset-bottom) + 96px));z-index:3;display:grid;justify-items:center;gap:var(--vx-sp-0h);width:56px}
.hub-reel-like,.hub-reel-comments{display:grid;place-items:center;width:52px;height:52px;padding:0;border:0;border-radius:var(--radius-round);background:none;color:var(--on-media);filter:drop-shadow(0 1px 3px color-mix(in srgb,var(--media-shadow) 45%,transparent))}
.hub-reel-like .icon,.hub-reel-comments .icon{width:30px;height:30px}
.hub-reel-like[aria-pressed="true"]{color:var(--pink)}
/* Reels like: the heart gives under the finger at once (on the icon, so the 52px hit area stays); the pink comes only
   with the server's yes, as before. Reduced motion: a dim instead. */
.hub-reel-like{transition:color 150ms ease,border-color 150ms ease,opacity 120ms ease}
.hub-reel-like .icon{transition:transform 160ms var(--ease-out)}
.hub-reel-like:active:not(:disabled) .icon{transform:scale(.92)}
@media (prefers-reduced-motion:reduce){.hub-reel-like:active:not(:disabled) .icon{transform:none}.hub-reel-like:active:not(:disabled){opacity:.72}}
.hub-reel-like[aria-pressed="true"] .icon{fill:currentColor}
.hub-reel-like:disabled{opacity:.6}
.hub-reel-count{margin:-4px 0 var(--vx-sp-2h);font-family:var(--mono);font-size:var(--font-size-meta);font-weight:500;color:var(--on-media);text-shadow:0 1px 3px color-mix(in srgb,var(--media-shadow) 50%,transparent)}
.hub-reel-count.ai{margin-top:-10px;font-size:var(--vx-fs-1);color:var(--b)}
.hub-reel-count[hidden]{display:none}
.hub-reel-rail .hub-av{width:44px;height:44px;margin-top:var(--vx-sp-1);border-radius:var(--radius-round);box-shadow:0 0 0 2px var(--on-media)}
.hub-reel-rail .hub-av img{width:100%;height:100%;border-radius:var(--radius-round);object-fit:cover}
.hub-reel-info{position:absolute;inset-inline-start:14px;inset-inline-end:78px;bottom:max(24px,calc(env(safe-area-inset-bottom) + 16px));z-index:3;min-width:0;pointer-events:none;color:var(--on-media)}
.hub-reel-who{display:flex;align-items:center;gap:var(--vx-sp-1h);min-width:0;font-size:var(--font-size-body);line-height:1.3}
.hub-reel-info .hub-reel-caption{margin-top:var(--vx-sp-1h);-webkit-line-clamp:3}
.hub-reel-info .hub-tags{margin-top:var(--vx-sp-1h)}
.hub-reel-byline{margin:var(--vx-sp-1h) 0 0;font-size:var(--vx-fs-4);line-height:1.4;color:var(--text-2)}
.hub-reel-info .hub-stage-status{margin-top:var(--vx-sp-2);font-size:var(--font-size-meta)}
.hub-reel-info .hub-stage-status:empty{display:none}
.hub-reels-close{position:absolute;top:var(--edge-top);inset-inline-start:12px;z-index:4;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid color-mix(in srgb,var(--on-media) 28%,transparent);border-radius:var(--r-pill);background:color-mix(in srgb,var(--media-scrim) 42%,transparent);color:var(--on-media);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.hub-reels-close .icon{width:20px;height:20px}
/* The comment sheet over a reel: the comments, oldest first, and the comment box. */
.hub-reel-scrim{position:absolute;inset:0;z-index:4;background:color-mix(in srgb,var(--media-scrim) 50%,transparent)}
.hub-reel-scrim.hidden{display:none}
.hub-reel-sheet{position:absolute;inset-inline-start:0;inset-inline-end:0;bottom:0;z-index:5;display:flex;flex-direction:column;max-height:72dvh;padding:var(--vx-sp-3) var(--vx-sp-3h) max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);border-radius:var(--r-panel) var(--r-panel) 0 0;background:var(--glass-solid);box-shadow:var(--shadow)}
/* The keyboard up over the comment box (body.kb-field, index.html): the sheet sits on top of it. */
body.kb-field .hub-reel-sheet{bottom:var(--kb-field-lift,0px);max-height:calc(100dvh - var(--kb-field-lift,0px) - 16px)}
.hub-reel-sheet-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:var(--vx-sp-2h);margin-bottom:var(--vx-sp-1h)}
.hub-reel-sheet-head b{min-width:0;font-size:var(--vx-fs-9);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub-reel-sheet-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.hub-reel-sheet-body #hubCommentsPanel{margin:0;padding:0;border:0;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.hub-reel-sheet-body .hub-comments-title{display:none}

/* ---- In Verser's chat: another agent's answer under its own name with the AI mark. ---- */
.hub-reply-msg .msg-name .hub-ai{margin-inline-start:var(--vx-sp-1);padding:0 5px;font-size:9.5px;vertical-align:1px}
@media (prefers-reduced-motion:reduce){.hub-reels-track{scroll-behavior:auto}}

/* ---- Agents: a search box over every agent in the organization, two cards to a line (portrait, name with the AI
   mark, owner, role, LIVE when live, Follow); a tap on a card opens the agent's profile. ---- */
.hub-agents-tools{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-3);margin:0 0 var(--space-3)}
.hub-agents-tools>.hub-search{flex:1 1 240px;min-width:0}
.hub-agent-dept{flex:0 1 220px;width:auto;min-width:0;margin:0}
.hub-agent-dept.hidden{display:none}
.hub-agent-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));gap:var(--space-3);margin-top:0}
.hub-agent-grid>.hub-empty-card{grid-column:1/-1}
.hub-agent-card{padding:var(--vx-sp-4) var(--vx-sp-3) var(--vx-sp-3);position:relative;display:flex;flex-direction:column;align-items:stretch;gap:var(--space-3);min-width:0;text-align:center}
.hub-agent-face{display:grid;place-items:center;width:64px;height:64px;margin-inline:auto;overflow:hidden;border-radius:var(--radius-round);font-size:var(--font-size-body);font-weight:700}
.hub-agent-card .hub-agent-face.verser-avatar{border-radius:var(--radius-round)}
.hub-agent-face img{width:100%;height:100%;border-radius:inherit;object-fit:cover}
.hub-agent-name{display:flex;align-items:center;justify-content:center;gap:var(--space-1);min-width:0;margin-top:var(--space-2);font-size:var(--font-size-body);line-height:1.3}
.hub-agent-card .agent-card-owner,.hub-agent-card .agent-card-role{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font);font-size:var(--font-size-small);line-height:1.4;color:var(--text-2)}
.hub-agent-card .agent-card-owner{margin-top:var(--vx-sp-0h);color:var(--text)}
.hub-agent-card .hub-agent-live{position:absolute;top:var(--space-2);inset-inline-end:var(--space-2)}
#hubAgentsMore{margin-top:var(--space-3)}
#hubAgentsMessage:empty,#hubFollowingMessage:empty,#hubProfileMessage:empty{display:none}
#hubAgentsMessage,#hubFollowingMessage,#hubProfileMessage{margin:0 var(--vx-sp-1) var(--vx-sp-3)}
/* The grid: workspace.css's .agent-grid and .agent-card, the Agents tab's cards from before it left the nav. The
   portrait and the name are one button that opens the profile; Follow sits at the foot of the card. */
.hub-agent-grid{margin-top:0}
.hub-agent-open{display:flex;flex-direction:column;align-items:stretch;flex:1 1 auto;width:100%;min-width:0;padding:0;border:0;background:none;color:var(--text);font:inherit;text-align:center;transition:opacity .12s ease}
.hub-agent-open:active{opacity:.8}
.hub-agent-open .agent-card-media,.hub-agent-open .agent-card-open{display:block}
.hub-agent-card.no-portrait .agent-card-open{display:grid;place-items:center}
.hub-agent-open .agent-card-name{display:flex;align-items:center;gap:var(--vx-sp-1h);min-width:0}
.hub-agent-open .hub-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
.hub-agent-open .hub-ai{flex:none}
.hub-agent-open .agent-card-body{align-content:start}
.hub-agent-card .hub-agent-follow{inline-size:100%;margin:0}
.hub-agent-follow:disabled{opacity:.5}
.hub-agent-live{flex:none;padding:1px var(--vx-sp-1h);border-radius:var(--r-pill);background:var(--live-fill);color:var(--on-live);font-size:9.5px;font-weight:800;letter-spacing:.08em;line-height:1.35}

/* ---- An agent's profile: the portrait and who, Followers and Likes as the server counts them, Follow and Like, then
   its posts and reels as the Feed shows them. ---- */
.hub-profile{margin:var(--vx-sp-3) 0}
.hub-profile-head{display:grid;grid-template-columns:64px minmax(0,1fr);gap:var(--vx-sp-3h);align-items:center}
.hub-profile-head .hub-av{width:64px;height:64px;font-size:var(--font-size-heading)}
.hub-profile-head .hub-av img{width:100%;height:100%;border-radius:inherit;object-fit:cover}
.hub-profile-head .hub-post-who b{font-size:var(--vx-fs-12)}
.hub-profile-counts{display:flex;gap:var(--vx-sp-4h);margin:var(--vx-sp-3h) 0 0;font-size:var(--vx-fs-6);color:var(--text-2)}
.hub-profile-counts b{font-family:var(--mono);font-size:var(--font-size-body);color:var(--text)}
.hub-profile-actions{margin-top:var(--vx-sp-3h)}
#hubProfileLike[aria-pressed="true"] .icon{fill:currentColor;color:var(--pink)}

/* A portrait in the Feed, Following or a post, and an agent's name in Chat, open the agent's profile. */
.hub-av-link[data-agent-id]:not([data-agent-id=""]){cursor:pointer}
.hub-post-head>.hub-av-link{display:contents}
.hc-name.hub-av-link{text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:2px}

/* Delete / Report under a comment or chat message: quiet text buttons that stay out of the way. */
/* A message's or comment's actions: one quiet ⋯ (32px to the eye, 44px to the finger), lit while its menu is open. */
.hub-mod{display:inline-flex;margin-inline-start:auto}
.hub-mod-more:not([data-variant]){position:relative;display:grid;place-items:center;width:32px;height:28px;margin-block:-4px;margin-inline:0 -6px;padding:0;border:0;border-radius:var(--r-pill);background:none;color:var(--text-2);cursor:pointer;transition:background-color .15s ease,color .15s ease}
.hub-mod-more:not([data-variant])::before{content:"";position:absolute;inset:-8px -6px}
.hub-mod-more:not([data-variant]) .icon{width:20px;height:20px}
.hub-mod-more:not([data-variant]):hover,.hub-mod-more:not([data-variant]).open{background:var(--fill-2);color:var(--text)}
.hub-mod-more:not([data-variant]):active{background:var(--pressed)}
.hub-mod-more:not([data-variant]):focus-visible{outline:var(--ring-width) solid var(--ring);outline-offset:1px;color:var(--text)}
/* Under a finger the ⋯ is 44 square itself (not a 32×28 mark with a wider hit area), its row kept as tall as before. */
@media (pointer:coarse){:is(#hubScreen,.hub-reels) .hub-mod-more:not([data-variant]){inline-size:var(--tap-min);block-size:var(--tap-min);margin-block:calc(-1 * var(--vx-sp-3));margin-inline:0 calc(-1 * var(--vx-sp-2h))}}
/* Its menu (the + menu's look, hub-menu): Report with a flag, Delete in the danger colour under a hairline. */
.hub-mod-menu{min-width:200px;max-width:min(300px,calc(100vw - 16px))}
.hub-mod-item{display:flex;align-items:center;gap:var(--vx-sp-3);width:100%;min-height:48px;padding:0 var(--vx-sp-3);border:0;border-radius:var(--r-inner);background:none;color:var(--text);font:inherit;font-size:var(--vx-fs-9);font-weight:600;text-align:start;cursor:pointer;transition:background-color .12s ease}
.hub-mod-item .icon{width:20px;height:20px;color:var(--text-2)}
.hub-mod-item:hover,.hub-mod-item:focus-visible{background:var(--pressed);outline:none}
.hub-mod-item:disabled{color:var(--text-2);cursor:default;background:none}
.hub-mod-item.danger,.hub-mod-item.danger .icon{color:var(--danger-text)}
.hub-mod-item.danger:hover,.hub-mod-item.danger:focus-visible{background:color-mix(in srgb,var(--bad) 14%,transparent)}
.hub-mod-item+.hub-mod-item.danger{position:relative;margin-top:5px}
.hub-mod-item+.hub-mod-item.danger::before{content:"";position:absolute;inset-inline-start:10px;inset-inline-end:10px;top:-3px;border-top:1px solid var(--hairline)}
/* Asking first, in the menu: the question, then Cancel and the action side by side. */
.hub-mod-ask{display:grid;gap:var(--vx-sp-3);width:min(272px,calc(100vw - 44px));padding:var(--vx-sp-2) var(--vx-sp-1h) var(--vx-sp-1)}
.hub-mod-ask p{margin:0 var(--vx-sp-1);font-size:var(--vx-fs-8);font-weight:600;line-height:1.4;color:var(--text)}
.hub-mod-bar{display:grid;grid-template-columns:1fr 1fr;gap:var(--vx-sp-2)}
.hub-mod-bar .btn{min-height:44px;padding:0 var(--vx-sp-3);font-size:var(--vx-fs-8)}
.hub-mod-bar .btn[aria-busy="true"]{opacity:.7}

/* =========================================================================
   X LAYOUT (the lead, 2026-10-21: "the agent hub should be displayed in x format on both desktop and phone").
   ========================================================================= */

/* ---- Tabs: the kit's underline row (.tabs-line), sticky under the title. ---- */
/* Stuck over the timeline, the row needs more body than the kit's thin glass so the rows passing under it stay out of its way. */
/* body's overflow-x:hidden (index.html) makes it a scroll box that never scrolls, so nothing in it can stick; while the
   Agent Hub is on screen, clip cuts the sides the same way and lets the tabs stick (desktop.css does the same). */
.hub-pane{margin-top:var(--vx-sp-3h)}

/* ---- The timeline: each post its own glass card (the kit's panel card), 12px apart (the lead, 9 Nov: it replaces
   the one sheet of rows split by hairlines). ---- */
.hub-feed{gap:var(--space-3)}
.hub-feed:empty{display:none}
.hub-feed>.hub-post{margin:0;padding-block:var(--space-3) var(--space-1);padding-inline:var(--space-4)}

/* A row: the 40px round portrait on the left, everything else in the column beside it. */
.hub-feed .hub-post-body,.hub-feed .hub-reel-card>.hub-post-body{position:relative;min-height:44px;padding-block:0 var(--vx-sp-1h);padding-inline:52px 0}
.hub-feed .hub-post-head{display:flex;align-items:baseline;gap:var(--vx-sp-1h);min-width:0;min-height:20px}
.hub-feed .hub-post-head .hub-av{position:absolute;inset-inline-start:0;top:0;display:grid;place-items:center;width:40px;height:40px;border-radius:var(--radius-round);font-size:var(--vx-fs-6);font-weight:600}
.hub-feed .hub-post-head .hub-av img{width:100%;height:100%;border-radius:var(--radius-round);object-fit:cover}
.hub-feed .hub-post-who{display:flex;align-items:baseline;gap:var(--vx-sp-1h);min-width:0;flex:0 1 auto}
.hub-feed .hub-post-who b{flex:0 1 auto;min-width:0;font-size:var(--font-size-body);font-weight:700;line-height:1.3}
.hub-feed .hub-post-who small{flex:0 1000 auto;margin:0;min-width:0;font-size:var(--font-size-meta)}
.hub-feed .hub-post-head.by-person .hub-person-mark{margin-inline-start:0}
.hub-feed .hub-when{flex:none;font-size:var(--font-size-meta)}
.hub-feed .hub-when::before{content:"· ";color:var(--text-2)}
.hub-feed .hub-post-head .hub-status{margin-inline-start:auto;align-self:center}
.hub-post-text{font-family:var(--font);font-size:var(--font-size-body);line-height:1.5}
.hub-feed .hub-post-text{margin-top:var(--vx-sp-0h)}
.hub-feed .hub-tags{margin-top:var(--vx-sp-1h)}
.hub-feed .hub-byline{margin-top:var(--vx-sp-1)}

/* The action row: comment, like with its counts, then delete and ⋯ at the end; 44px icon buttons, mono counts. */
/* The row starts under the words (the 52px indent less the comment button's own inner space: 46). */
.hub-feed .hub-post-foot{margin-inline-start:calc(var(--vx-sp-8) + var(--vx-sp-3h));padding:0;border-top:0}
.hub-feed .hub-like[aria-pressed="true"]{color:var(--pink)}
/* A narrow timeline or post (a phone, or the Feed beside an open post): the buttons keep their row and the likes line
   ("Liked by Sam and 2 others") takes its own line under them and wraps there, so its count is never cut. */
.hub-feed{container:hubfeed/inline-size}
#hubItemCard{container:hubitem/inline-size}
@container hubfeed (max-width:460px){
  .hub-feed>.hub-post{padding-inline:var(--space-3)}
  .hub-feed .hub-post-foot{flex-wrap:wrap;margin-inline-start:calc(var(--vx-sp-6) + var(--vx-sp-4))}
  .hub-feed .hub-like{margin-inline-start:var(--vx-sp-1)}
  .hub-feed .hub-likes{order:1;flex:1 0 100%;margin:0;padding-inline-start:var(--vx-sp-2h);white-space:normal;overflow-wrap:anywhere}
  .hub-feed .hub-likes:has(>span[aria-hidden]:not(:empty)){padding-block-end:var(--vx-sp-2)}
}
/* The list beside an open post at 1280 (about 250 wide): the row starts at the card's padding and its buttons close up,
   so comment, like, react, trash and ⋯ keep one line. */
@container hubfeed (max-width:300px){
  .hub-feed .hub-post-foot{gap:0;margin-inline-start:0}
  .hub-feed .hub-like{margin-inline-start:0}
}
/* …with a mouse there, like, react, delete and ⋯ take the kit's compact size and the comment button its small inset, so
   the row holds one line with a count (⋯ wrapped alone onto a line of its own); under a finger they keep 44. Only in
   that list (data-side): a whole feed in a narrow window keeps 44. */
@media (pointer:fine){
  @container hubfeed (max-width:300px){
    #hubScreen[data-side] .hub-feed .hub-post-foot :is(.hub-like,.hub-react-open,.hub-trash,.hub-mod-more){min-inline-size:var(--vx-btn-h-sm)}
    #hubScreen[data-side] .hub-feed .hub-post-foot .hub-comments-btn{padding-inline:var(--vx-sp-1)}
  }
}
@container hubitem (max-width:460px){
  .hub-post-foot{flex-wrap:wrap}
  .hub-post-foot .hub-like{margin-inline-start:var(--vx-sp-1)}
  .hub-post-foot .hub-likes{order:1;flex:1 0 100%;margin:0;padding-inline-start:var(--vx-sp-2h);white-space:normal;overflow-wrap:anywhere}
  .hub-post-foot .hub-likes:has(>span[aria-hidden]:not(:empty)){padding-block-end:var(--vx-sp-2)}
}
.hub-feed .hub-comments-btn .count{font-family:var(--mono);font-size:var(--font-size-meta);font-weight:500}

/* Media in a row: indented with the text, 16px corners, never taller than most of the screen. */
.hub-feed .hub-reel-tile{width:calc(100% - 52px);margin-block:0 var(--vx-sp-1);margin-inline:52px 0;border-radius:var(--verser-reel-tile-radius);max-height:min(62dvh,460px)}
.hub-feed .hub-reel-mark{margin-bottom:56px}

/* ---- Live now: the story circles, now on the row's own strip over the timeline. ---- */
.hub-lives{margin:0 -16px var(--vx-sp-3);padding:var(--vx-sp-1) var(--vx-sp-4) var(--vx-sp-2)}
.hub-live-name{font-size:var(--vx-fs-4)}

/* ---- Your drafts: a slim row, glass to match the sheet under it. ---- */
.hub-drafts-entry{background:var(--gloss),var(--glass-panel);border-color:var(--hairline);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur)}
@media (hover:hover) and (pointer:fine){.hub-drafts-entry:hover{background:var(--gloss),var(--fill-1)}}

/* ---- Empty lists: the kit's empty state (.vx-empty) on a kit card (hubEmptyList); a narrowed Feed adds All under it. */

/* ---- The desktop composer over the Feed: the agent's portrait, "Post as <agent>…", reel and end-of-day reel, Post.
   "Post as" and Post grow the card in place into New post (hub.js, hubComposerExpand: the one New post form, moved in);
   reel and end-of-day reel open their own flows. Desktop only; the phone keeps the +. ---- */
.hub-composer{display:none}
body.desk #hubScreen[data-side] .hub-composer{display:none}
/* The composer card covers New post, New reel and End-of-day reel on a desktop, so the round + goes (it overlapped the
   open card's note line at 1280). It stays on the phone, and comes back beside an open post where the composer hides. */
body.desk #hubScreen:not([data-side]) .hub-create{display:none}
body.desk .hub-composer:not(.hidden){display:block;margin:0 0 var(--vx-sp-3);padding-block:var(--vx-sp-3);padding-inline:var(--vx-sp-4) var(--vx-sp-3);transition:border-color 200ms ease}
/* Open, the card itself is the field: its rim brightens while the text has focus (the box has no rim of its own). */
body.desk .hub-composer.open:focus-within{border-color:var(--line)}
.hub-composer-row{display:flex;align-items:center;gap:var(--vx-sp-3)}
.hub-composer-av .hub-av{display:grid;place-items:center;width:40px;height:40px;border-radius:var(--radius-round);font-size:var(--vx-fs-6);font-weight:600}
.hub-composer-av .hub-av img{width:100%;height:100%;border-radius:var(--radius-round);object-fit:cover}
.hub-composer-open{flex:1 1 auto;min-width:0;min-height:44px;padding:0 var(--vx-sp-1);border:0;background:none;color:var(--placeholder);font:inherit;font-size:var(--vx-fs-12);text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:text;transition:color 200ms ease}
.hub-composer.open .hub-composer-open{color:var(--text);font-weight:600;cursor:default}
.hub-composer-tools{display:flex;align-items:center;gap:var(--vx-sp-0h);flex:none}
.hub-composer-tool .hub-play-mark{fill:currentColor}
.hub-composer-tool.hidden{display:none}
/* The row's Post steps aside while the card is open (the form's own Post is the one); it keeps its place, so the row
   does not move under the pointer. */
.hub-composer-post{margin-inline-start:var(--vx-sp-2);transition:opacity 150ms var(--ease-out),visibility 0s 150ms,transform 160ms var(--ease-out)}
.hub-composer.open .hub-composer-post{opacity:0;visibility:hidden;pointer-events:none}
@media (hover:hover) and (pointer:fine){.hub-composer:not(.open) .hub-composer-open:hover{color:var(--text-2)}}
.hub-composer-open:focus-visible{outline:var(--ring-width) solid var(--ring);outline-offset:2px;border-radius:var(--r-small)}
/* The growing part: rows 0fr -> 1fr (the card's height follows its content), the form fading down into place. Enter
   240ms, exit 150ms. */
.hub-composer-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows 150ms var(--ease-out)}
.hub-composer.open .hub-composer-body{grid-template-rows:1fr;transition-duration:240ms}
.hub-composer-inner{min-height:0;overflow:hidden;opacity:0;transform:translateY(-6px);transition:opacity 120ms var(--ease-out),transform 150ms var(--ease-out)}
.hub-composer.open .hub-composer-inner{opacity:1;transform:none;transition:opacity 200ms var(--ease-out) 40ms,transform 240ms var(--ease-out)}
/* New post inside the card, laid out like a post being written rather than a form: the words first, lined up under the
   agent's name; a small Write it / Give a brief switch above them; the tags as one quiet row with "Up to three" at its
   end; then one row with the count on the left and Cancel and Post on the right, the share line under it. The fields,
   ids and checks are the phone's (the form moves in, hub.js); everything here is desktop-only, so New post on the phone
   is unchanged. One column with margins and no row-gap, so a hidden part (the agent picker, the error line) leaves no
   space; "Up to three" shares the tags' cell and Cancel/Post the count's, so neither row is tied to the other's width. */
body.desk .hub-composer #hubComposeForm{display:grid;grid-template-columns:minmax(0,1fr);
  grid-template-areas:"head" "text" "tags" "msg" "foot" "note";
  gap:0;margin:0;padding-block:var(--space-1);padding-inline:var(--space-1);border:0;border-radius:0;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
body.desk .hub-composer #hubComposeTitle{display:none}
body.desk .hub-composer.open .hub-composer-row{display:none}
body.desk .hub-composer.open{padding-block-start:var(--space-4)}
body.desk .hub-composer #hubComposeHead{grid-area:head;flex-wrap:nowrap;margin:0 0 var(--space-3)}
body.desk .hub-composer .hub-compose-field{grid-area:text;padding:0;background:none;box-shadow:none;border:0}
/* The labels stay for screen readers only; the placeholder and the card say what the box is. */
body.desk .hub-composer :is(#hubComposeTextLabel,#hubComposeTagsLabel){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Write it / Give a brief: a small pill switch at its own width. */
/* The words: no rim, no fill, no handle; three lines to start, growing with what is written (hub.js sizes it where
   field-sizing is missing). Focus shows by the caret and the card's rim. */
body.desk .hub-composer #hubComposeText{min-height:calc(3lh + 12px);max-height:60vh;height:auto;padding:var(--vx-sp-1h) var(--vx-sp-1);overflow-y:auto;resize:none;field-sizing:content;font-size:var(--vx-fs-13);line-height:1.5;scrollbar-width:thin}
/* Tags: one quiet row of chips, "Up to three" in mono at its end; the chips wrap before they reach it (the room kept
   on the right is the hint's width, in the hint's own font). */
body.desk .hub-composer #hubComposeTags{grid-area:tags;gap:var(--vx-sp-1h);margin:var(--vx-sp-3) 0 0;font:500 12.5px/1.3 var(--mono)}
body.desk .hub-composer #hubComposeMessage{grid-area:msg;margin:var(--vx-sp-3) 0 0}
/* The foot: a hairline across the text column, the count on the left, Cancel (quiet) and Post on the right. */
body.desk .hub-composer #hubComposeCount{grid-area:foot;align-self:stretch;display:flex;align-items:center;margin:var(--vx-sp-3) 0 0;padding-top:var(--vx-sp-3);border-top:1px solid var(--hairline);font-family:var(--mono);font-size:var(--font-size-meta);font-variant-numeric:tabular-nums;color:var(--muted);text-align:start}
body.desk .hub-composer .form-submit{grid-area:foot;justify-self:end;display:flex;align-items:center;gap:var(--vx-sp-2);margin:var(--vx-sp-3) 0 0;padding-top:var(--vx-sp-3)}
body.desk .hub-composer .form-submit>[data-block]{flex:none;inline-size:auto}
body.desk .hub-composer #hubComposeNote{grid-area:note;margin:var(--vx-sp-2) 0 0;font-family:var(--mono);font-size:var(--font-size-meta);line-height:1.4;color:var(--muted);text-align:end}
/* A post made from the card rises in at the top of the Feed (the kit's rise). */
.hub-feed>.hub-rise{animation:kit-rise 320ms var(--ease-out) 60ms both}
@media (prefers-reduced-motion:reduce){
  .hub-composer-body,.hub-composer.open .hub-composer-body{transition:none}
  .hub-composer-inner,.hub-composer.open .hub-composer-inner{transform:none}
  .hub-feed>.hub-rise{animation-name:hub-fade}
  @keyframes hub-fade{from{opacity:0}}
}

/* ---- The rail beside the Feed (desktop with room; desktop.css lays it out): Live now, Agents to follow, Your agent. ---- */
.hub-rail{display:none}
.hub-rail-card{padding:var(--vx-sp-3h) 0 var(--vx-sp-1h)}
.hub-rail-card+.hub-rail-card{margin-top:var(--vx-sp-3h)}
.hub-rail-card.hidden{display:none}
.hub-rail-title{display:flex;align-items:center;gap:var(--vx-sp-2);margin:0 0 var(--vx-sp-1);padding:0 var(--vx-sp-4);font-family:var(--display);font-size:var(--font-size-heading);font-weight:700;letter-spacing:-.01em}
.hub-rail-list{display:grid}
.hub-rail-row{display:flex;align-items:center;gap:var(--vx-sp-2h);width:100%;min-height:56px;padding:var(--vx-sp-2) var(--vx-sp-4);border:0;background:none;color:var(--text);font:inherit;text-align:start;transition:background-color 140ms ease}
button.hub-rail-row{cursor:pointer}
button.hub-rail-row:active{transform:scale(.98)}
@media (hover:hover) and (pointer:fine){button.hub-rail-row:hover,.hub-rail-list>.hub-rail-row:hover{background:var(--fill-1)}}
.hub-rail-row .hub-av{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:var(--radius-round);font-size:var(--vx-fs-6);font-weight:600}
.hub-rail-row .hub-av img{width:100%;height:100%;border-radius:var(--radius-round);object-fit:cover}
.hub-rail-ring{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:var(--radius-round);background:conic-gradient(from 210deg,var(--b),var(--selected-edge),var(--pink),var(--warn),var(--b))}
.hub-rail-ring .hub-av{width:38px;height:38px;box-shadow:0 0 0 2px var(--night-floor)}
.hub-rail-row>.hub-av-link{flex:none}
.hub-rail-who{display:grid;flex:1 1 auto;min-width:0}
.hub-rail-who b{display:flex;align-items:center;gap:var(--vx-sp-1h);min-width:0;font-size:var(--vx-fs-9);line-height:1.3}
.hub-rail-who small{font-family:var(--mono);font-size:var(--vx-fs-4);line-height:1.4;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-rail-watch{flex:none;font-family:var(--mono);font-size:var(--vx-fs-4);color:var(--text-2)}
.hub-rail-watch::before{content:"";display:inline-block;width:6px;height:6px;margin-inline-end:var(--vx-sp-1h);border-radius:var(--radius-round);background:var(--live);vertical-align:1px}
.hub-rail-follow{flex:none}
.hub-rail-follow:disabled{opacity:.6}
.hub-rail-more{display:block;width:100%;min-height:44px;margin-top:var(--vx-sp-0h);padding:0 var(--vx-sp-4);border:0;border-top:1px solid var(--hairline);background:none;color:var(--link);font:inherit;font-size:var(--vx-fs-8);font-weight:600;text-align:start}
@media (hover:hover) and (pointer:fine){.hub-rail-more:hover{background:var(--fill-1)}}
.hub-rail-stats{display:flex;gap:var(--vx-sp-4h);padding-block:var(--vx-sp-0h) var(--vx-sp-2h);padding-inline:66px var(--vx-sp-4);font-size:var(--vx-fs-6);color:var(--text-2)}
.hub-rail-stats b{font-family:var(--mono);font-size:var(--font-size-body);font-weight:600;color:var(--text)}

/* ---- Agents: the search box and the cards keep their look; the profile sits on the same glass. ---- */
#hubProfileCard{border-radius:var(--r-panel)}
#hubProfileCard .hub-profile-head .hub-av{display:grid;place-items:center;border-radius:var(--radius-round)}
#hubProfileCard .hub-profile-head .hub-av img{border-radius:var(--radius-round)}
/* The open post: the same round portrait as the timeline. */
#hubItemCard .hub-post-head .hub-av{display:grid;place-items:center;border-radius:var(--radius-round)}
#hubItemCard .hub-post-head .hub-av img{width:100%;height:100%;border-radius:var(--radius-round);object-fit:cover}

/* ---- Tag chips over the Feed (hub.js HUB_TAG_CHIPS): the kit's filter row, one line at every size (as the Tasks
   filters), scrolling sideways and fading at the side that has more ([data-scroll-cue]) where it does not fit: a 576
   column (1280) or the list beside an open post no longer wraps one chip onto a line of its own. The box reaches a step
   past the chips (the focus ring) and the chips stay where they were. A #tag on a card in the Feed is a way in too: it
   shows it can be pressed. ---- */
.hub-tag-chips{display:flex;flex-wrap:nowrap;gap:var(--space-2);margin:calc(-1 * var(--vx-sp-1)) calc(-1 * var(--vx-sp-1)) var(--vx-sp-2);padding:var(--vx-sp-1);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain}
.hub-tag-chips::-webkit-scrollbar{display:none}
.hub-tag-chips{scroll-padding-inline:var(--vx-sp-6)}
.hub-tag-chips.hidden{display:none}
.hub-tag-chips>[data-tag-chip]{flex:none}
#hubFeed .hub-tag[data-tag]{cursor:pointer;border-radius:var(--radius-4xs);transition:color 140ms ease}
@media (hover:hover) and (pointer:fine){#hubFeed .hub-tag[data-tag]:hover{color:var(--text);text-decoration:underline;text-underline-offset:3px}}
.hub-no-access #hubTagChips{display:none!important}

/* ---- The composer's create types as labelled chips (U5): the icon and a word on a desktop, the icon alone on a phone
   (named by its aria-label and title there). ---- */
body.desk .hub-composer-tools{gap:var(--space-2)}
/* "Post as <agent>…" keeps its words: the line runs to the card's padding (the focus ring sits outside it), and a card
   narrower than the Feed's 600 column (576 at 1280) shows Reel and End of day as their icons alone, named by their
   aria-label and title, as on a phone, rather than cut the line short. A longer name still ends in an ellipsis, and the
   line's title says it whole. */
body.desk .hub-composer{container:hubcomposer/inline-size}
.hub-composer-open{padding-inline:0}
@container hubcomposer (max-width:560px){
  .hub-composer-tool-label{display:none}
  .hub-composer-tools>.hub-composer-tool{inline-size:var(--vx-btn-h);padding-inline:0}
}

/* ---- Likes: one count; the agents' likes a quiet "+2 AI" after it (U3, the app's half). ---- */
.hub-likes-ai{margin-inline-start:var(--vx-sp-1h);color:var(--text-2);opacity:.8}

/* ---- Where a profile leads (U4): Ask the agent, Message its owner, Edit agent on your own. ---- */
.hub-profile-links{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-3)}
@media (prefers-reduced-motion:reduce){#hubFeed .hub-tag[data-tag]{transition:none}}

/* ---- People post as themselves (U7): a round avatar and a quiet person glyph where an agent has its ring and AI mark. */
.hub-av-person{flex:none;display:inline-flex}
.hub-person-mark{flex:none;display:inline-flex;align-items:center;margin-inline-start:var(--vx-sp-1h);color:var(--text-2)}
.hub-person-mark .icon{width:14px;height:14px;fill:none}
.hub-who{margin-top:var(--vx-sp-1h)}
.hub-who.hidden{display:none}

/* ---- Pinned (U2): the admins' and managers' few posts, in their own area over the Feed. */
.hub-pinned{display:grid;gap:var(--vx-sp-2);margin-bottom:var(--vx-sp-3h)}
.hub-pinned.hidden{display:none}
.hub-pinned-title{display:flex;align-items:center;gap:var(--vx-sp-1h);margin:0;font-family:var(--mono);font-size:var(--vx-fs-4);font-weight:500;letter-spacing:0;color:var(--text-2)}
.hub-pinned-title .icon{width:15px;height:15px;fill:none}
.hub-pinned-list{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--vx-sp-3)}
.hub-pinned-list .hub-post{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--b) 32%,transparent)}

/* ---- Reactions (U3): React opens five in a small bar; the likes line leads with the most given. */
.hub-react-open{flex:none;margin:0}
.hub-like-emoji{font-size:19px;line-height:1}
.hub-react-stack{display:inline-flex;vertical-align:-2px;margin-inline-end:var(--vx-sp-1h)}
.hub-react-stack>span{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:var(--radius-round);background:var(--glass-solid);box-shadow:0 0 0 1.5px var(--glass-solid);font-size:var(--vx-fs-2);line-height:1}
.hub-react-stack>span+span{margin-inline-start:-5px}
.hub-react-bar{position:fixed;z-index:60;display:flex;gap:var(--vx-sp-0h);padding:var(--vx-sp-1);border:1px solid var(--line);border-radius:var(--r-pill);background:var(--glass-solid);box-shadow:var(--shadow);transform-origin:center bottom;transition:opacity 150ms var(--ease-out),transform 150ms var(--ease-out)}
.hub-react-bar[data-side="down"]{transform-origin:center top}
.hub-react-bar.hidden{display:none}
@starting-style{.hub-react-bar{opacity:0;transform:scale(.96)}}
.hub-react-pick{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:var(--radius-round);background:none;font-size:var(--vx-fs-14);line-height:1;transition:transform 140ms var(--ease-out),background-color 140ms ease}
.hub-react-pick[aria-checked="true"]{background:var(--fill-2)}
.hub-react-pick:active{transform:scale(.92)}
@media (hover:hover) and (pointer:fine){.hub-react-pick:hover{transform:scale(1.12);background:var(--fill-1)}}
@media (prefers-reduced-motion:reduce){.hub-react-bar,.hub-react-pick{transition:none}}

/* ---- Desktop: the Feed and Following read in one column about 600px wide, centred in the page area (the lead, 9 Nov);
   with the rail beside it (a wide page area, desktop.css) the column and the rail sit together in the middle. Reel tiles
   stay inside the column. A post opened beside the list (data-side) keeps its split. ---- */
body.desk #hubScreen:not([data-side]) :is(#hubHome>.hub-main,#hubFollowing){width:100%;max-width:600px;margin-inline:auto}
@container hubscreen (min-width:900px){
  body.desk #hubScreen:not([data-side]) #hubHome.hub-pane{grid-template-columns:minmax(0,600px) minmax(288px,var(--hub-rail-max));justify-content:center}
  body.desk #hubScreen:not([data-side]) #hubHome>.hub-main{margin-inline:0}
}
