/* =========================================================================
   DESKTOP MODE (the lead, 2026-10-15). body.desk is set by workspace.js (DESKTOP MODE, DESK_MEDIA) on every window at
   least 720px wide (DESK_MEDIA in workspace.js), a mouse or a touch screen alike (27 Oct, the lead: "the side bar is only on the phone
   screen"); a phone on its side (under 501px tall with touch) and every narrower window keep the phone column. Every
   rule here is under body.desk. Under 1024px the rail compacts to icons over small labels; under
   1200px the open dock floats over the middle instead of taking a column (both below). Three columns: the menu drawer pinned open on the left as the rail (desk-shell), the
   screen in front in the middle, and My Agent (#liveScreen itself, docked, never .screen.active) on the right
   (desk-dock). Collapsed (desk-dock-min) it is a small text box at the bottom right, and as the chat window
   (desk-dock-chat) a small chat in that corner; both give the column back to the middle.
     --rail-w and --dock-w are what the rail and the dock take (0 while they are not shown); --desk-col is the widest
   the middle page's content runs. Every page fills the middle from the rail to the dock, as the Studio does, with the
   same gutter either side (the lead, 2026-10-23: never centred with space either side, and no wide gap before the
   dock either). Only a very wide monitor reaches --desk-col; the rest of the middle then stays on the right.
   --col-left is the gutter after the rail, --col-right the rest of the middle beyond the content. --edge-left/
   --edge-right, which the toasts and the floating buttons already follow, are set from these, so they line up with
   the page; --mid-centre is the page's centre line.
     Every one of these is measured from the inline start, not from the left: in Arabic (dir="rtl" on <html>, the lead
   2026-10-26: "Arabic is the only one for right to left; we would invert the whole thing") the whole layout mirrors, the
   rail on the right, the dock on the left and the middle between them, with the same rules. So "left" in --col-left and
   --edge-left means the inline-start side (the rail's), "right" the inline-end side (the dock's), and every rule that
   places something by them uses inset-inline-*, margin-inline and padding-inline. --mid-centre-x is the one physical
   value: the centre line from the left edge, for a floating thing centred with left + translateX(-50%).
   ========================================================================= */
body.desk{--rail-w:0px;--dock-w:0px;--desk-col:1680px;--desk-gut:28px;
  --mid-w:calc(100vw - var(--rail-w) - var(--dock-w));
  --col-left:var(--desk-gut);
  --col-right:max(var(--desk-gut),calc(var(--mid-w) - var(--desk-col) - var(--desk-gut)));
  --mid-centre:calc(var(--rail-w) + var(--col-left) + (var(--mid-w) - var(--col-left) - var(--col-right)) / 2);
  --edge-left:calc(var(--rail-w) + var(--col-left));
  --edge-right:calc(var(--dock-w) + var(--col-right));
  --mid-centre-x:var(--mid-centre)}
body.desk:dir(rtl){--mid-centre-x:calc(100vw - var(--mid-centre))}
body.desk.desk-shell{--rail-w:var(--desk-rail-full)}
body.desk.desk-dock{--dock-w:var(--desk-dock)}
body.desk.desk-dock:is(.desk-dock-min,.desk-dock-chat){--dock-w:0px}
/* The small text box (316px wide, about 52px tall, 24px in) and the chat window (360px, up to min(50vh,520px) tall)
   float at the bottom right over a page that fills the middle (2026-10-23: a column kept for them would leave the
   empty strip beside the page the lead asked to be rid of). A page ends low enough to scroll its last row clear of
   them (the small box, below; the chat window, further down). 2026-10-26 the lead: Studio and the Tasks split fill
   the middle to the right edge like every other page (this replaces 2026-10-22 "needs to stay on its own like when the
   avatar is fully up"). Studio scrolls with the window, so it takes the page's bottom padding. The split is
   fixed-height and clears them itself (the split section, below). The Inbox and an open Hub item or chat room keep a
   column for the chat window (below). */
body.desk.desk-dock.desk-dock-min:not(:has(#tasksScreen.screen.active.task-split-on)) .phone{padding-bottom:var(--desk-dock-min-room)!important}
/* The same room for whatever the browser scrolls into view (Tab, find, a link's target, targetFlash): it lands above the box, not under it. */
html:has(body.desk.desk-dock.desk-dock-min){scroll-padding-block-end:var(--desk-dock-min-room)}

/* No phone frame around the page. */
body.desk::after{content:none}
/* body's overflow-x:hidden (index.html) makes it a scroll box of its own that never scrolls, so nothing on the page
   could stick (the open item beside a list, Credit Underwriting's stages); clip cuts the sides the same way without
   that. */
body.desk{overflow-x:clip}

/* ---- Middle column: the page still scrolls the window (Back's scroll restore keeps working). */
body.desk .phone{max-width:none;width:auto;margin-block:0;margin-inline:var(--rail-w) var(--dock-w);padding-block:32px 64px!important;padding-inline:var(--col-left) var(--col-right)!important}
/* A full-screen form (sign in and sign up, Set your PIN, Set up your organization) fills the window exactly, as on a
   phone: the column's own top edge and the login foot, not the page's 32/64, so there is nothing to scroll. */
body.desk .phone:has(:is(#loginScreen,#orgSetupScreen,#activateScreen).active){padding-block:calc(var(--edge-top) - var(--vx-sp-0h)) var(--login-foot)!important}
/* With the rail up the top row (#appBar, "Search Verser") sits above the page: the page starts under it. */
body.desk.desk-shell .phone{padding-block-start:calc(var(--app-bar-top) + var(--app-bar-h) + 12px)!important}
/* One search on a desktop (the approved mockup has only the pill): the top row's bar finds the menu's pages, the
   settings and the person's card too (search.js), so the rail's own box goes while the bar is up. The phone keeps it. */
body.desk.desk-shell #profileSidebar .side-search{display:none}
body.desk{--app-bar-h:56px}
body.desk.desk-shell{--app-bar-room:calc(var(--app-bar-top) + var(--app-bar-h) - 20px)}
/* The column takes its new inset in one step when the dock opens or collapses: animating the margin ran layout for the
   whole page every frame (live UI review C12, 2 Nov). The dock itself carries the motion (below, dock-open-in). */
/* ---- Pages made for the phone column, across the full middle (2026-10-23). Each keeps a shape that reads at that width
   instead of a field or a line running 1,600px. */
/* Signed out (sign in, sign up, activate, the organization setup: DESK_NO_SHELL in workspace.js) there is no rail and no
   dock, so the phone's forms stand in a 480px column in the middle of the window. */
body.desk:not(.desk-shell){--desk-col:480px;--col-left:max(var(--desk-gut),calc((var(--mid-w) - var(--desk-col)) / 2));--col-right:var(--col-left)}
/* The menu button's row is gone: the rail is always there. */
body.desk .profile-btn{display:none!important}
/* With no menu row there is nothing above the title for a sub-page's Back to sit in (workspace.css, "Back in the
   menu's row"), so here the crumb ("‹ Toolbox") is the first line of the title row's own box, above the title. */
body.desk .screen>.title.has-back:has(>.back-btn:not(.hidden)){padding-top:40px}
body.desk .screen>.title.has-back>.back-btn{top:-6px;inset-inline-start:0}

/* ---- Left rail (right in Arabic): the drawer, open in place: the kit's side sheet pinned (data-pinned, set with the
   rest by workspace.js deskRail). Not a dialog here (workspace.js drops role, aria-modal, inert); no scrim, no slide, no
   swipe. Shown once the shell is up, as wide as the rail's column. */
body.desk #profileScrim{display:none!important}
body.desk:not(.desk-shell) #profileSidebar{display:none}
body.desk #profileSidebar{--verser-sheet-side-pinned-inline-size:var(--rail-w)}
/* My Agent stays first in the rail too; its row opens the existing dock. */
/* The rows' and the menu search's sizes are the kit's (42px rows and a 36px field for a mouse, 44px rows for a finger). */
body.desk .side-head h2{font-size:24px}

/* ---- Right dock (left in Arabic): #liveScreen shown by .docked, the same face, chat and text bar as Verser, sized for the column. */
body.desk.desk-dock #liveScreen.docked{display:block;position:fixed;top:0;inset-inline-end:0;bottom:0;z-index:30;width:var(--desk-dock);padding-block:12px;padding-inline:0 12px}
/* Opening (on arrival, or from the small box or the chat window): the dock slides in from its own edge and fades in,
   240ms, transform and opacity only (it used to grow its width, a layout every frame). The page beside it has already
   taken its column. In Arabic the dock is on the left, so it comes from the left. Reduced motion: the fade only. */
body.desk.desk-dock.desk-dock-open #liveScreen.docked{animation:dock-open-in .24s var(--ease-out)}
@keyframes dock-open-in{from{opacity:0;transform:translateX(var(--dock-open-from,16px))}}
body.desk #liveScreen.docked:dir(rtl){--dock-open-from:-16px}
@media (prefers-reduced-motion:reduce){body.desk.desk-dock.desk-dock-open #liveScreen.docked{animation-name:dock-fade-in}}
@keyframes dock-fade-in{from{opacity:0}}
/* Before /agents has answered on a reload, the dock's column is kept for a person whose dock was open last time
   (workspace.js deskSync, desk-dock-expect), so Home lays out once at its final width instead of reflowing when the
   dock arrives (live UI review C6). Only where the open dock takes a column (1200px and up). */
@media (min-width:1200px){body.desk.desk-dock-expect:not(.desk-dock,.desk-dock-min,.desk-dock-chat){--dock-w:var(--desk-dock)}}
body.desk #liveScreen.docked .agent-phone.story{height:100%;margin:0}
body.desk #liveScreen.docked .story-stage{height:100%;min-height:0;border:1px solid var(--line);border-radius:var(--r-panel)}
body.desk #liveScreen.docked .story-overlay{padding:16px 14px 14px;--story-head-veil-h:var(--story-head-veil-h-dock)}
body.desk #liveScreen.docked .story-head{padding-inline-end:40px}
/* The open dock as the kit's agent panel (9 Nov, the lead: "in the mockup the agent box was way better"; frontend/kit
   .vx-agent-panel, whose tier-3 tokens these rules read): the shortcuts (From agents, Live, Mute, More) stand in a rail
   at the inline-start edge, a row of the panel under the head; the chat is the row under the rail, the panel's full
   width (the lead, round 4: no column kept beside the rail), growing up from the text bar to a gap under the rail; the
   picture is larger and the panel takes the kit's radius. Only the open dock (the small box and the chat window keep their own rules, below). */
body.desk #liveScreen.docked #storyActions{flex-direction:row;flex-wrap:nowrap;align-self:flex-start;height:auto;gap:4px}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story-stage{border-radius:var(--vx-agent-panel-r)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story-overlay{padding:var(--vx-agent-panel-pad)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story-av-btn{inline-size:var(--vx-agent-face-size);block-size:var(--vx-agent-face-size);border-radius:var(--vx-agent-face-r)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #storyActions{
  position:static;flex:none;flex-direction:column;align-items:stretch;gap:var(--vx-sp-1h);inline-size:var(--vx-agent-rail-w)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #storyActions>.story-action{inline-size:100%;min-inline-size:0;padding-inline:0}
/* A calm card (the kit's agent panel, 9 Nov, the lead: "this is the ideal way i want my agent to be"): the panel is the
   kit's card, with the portrait faint behind it; the head is the picture, the name over the role in the reading face,
   and the agent's state under them; the shortcuts are small icons over small labels; the microphone note runs the
   panel's width as the kit's note; the text bar runs the panel's width with EN at its start, its tools round and the
   paperclip without a fill. The waiting count is on Home (Waiting for you), so the head leaves it out. */
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story{
  --story-glass:var(--vx-card-bg);--story-glass-filter:var(--vx-blur);--verser-composer-radius:var(--vx-r-pill)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story-stage{
  border:0;background:var(--vx-card-bg);box-shadow:var(--vx-card-shadow);-webkit-backdrop-filter:var(--vx-card-blur);backdrop-filter:var(--vx-card-blur)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked :is(.story-stage::after,.avatar-stage::after){content:none}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .avatar-stage{background:none;opacity:.2}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story-overlay{text-shadow:none;gap:var(--vx-agent-panel-gap)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story-overlay::before{display:none}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story-head{padding-inline-end:var(--vx-sp-8)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story-id{align-items:flex-start;gap:var(--vx-sp-3)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story .av{box-shadow:none}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story-name-row{flex-wrap:wrap;row-gap:0;line-height:1.05}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked :is(#liveName,.story .agent-meta){
  font-family:var(--vx-font);font-size:var(--vx-fs-title-sm);font-weight:var(--vx-fw-bold);line-height:1.1;letter-spacing:-.025em}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #liveName{color:var(--vx-ink)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story .agent-meta{flex:1 1 100%;text-align:match-parent;color:var(--vx-ink-3)}
/* An English role on an Arabic page (dir="auto" makes the line left-to-right) still lines up under the name, on the right. */
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story-name-row:dir(rtl)>.agent-meta{text-align:right}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story-dot{display:none}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #liveStats{display:none}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #storyActions>.story-action{
  block-size:auto;min-block-size:0;padding-block:var(--vx-sp-2);gap:var(--vx-sp-0h);border-radius:var(--vx-r-sm);color:var(--vx-agent-rail-fg);
  transition:background-color var(--vx-dur-quick) var(--vx-ease-std),transform var(--vx-dur-fast) var(--vx-ease)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #storyActions>.story-action:active{transform:scale(.97)}
@media (hover:hover) and (pointer:fine){body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #storyActions>.story-action:hover{background:var(--vx-agent-rail-hover)}}
@media (prefers-reduced-motion:reduce){body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #storyActions>.story-action:active{transform:none}}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #storyActions>.story-action .icon{inline-size:var(--vx-agent-rail-icon);block-size:var(--vx-agent-rail-icon);filter:none}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story-action-label{
  font-family:var(--vx-font);font-size:var(--vx-agent-rail-fs);font-weight:var(--vx-fw-semibold);line-height:1.2;text-shadow:none}
/* The microphone note: the kit's note (.vx-callout), the panel's width; its live green and blocked red stay. */
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .verser-agent-panel .live-mic-status{
  --_note-pb:var(--vx-sp-2h);--_note-pi:var(--vx-sp-4);--_note-stop-in:var(--vx-sp-1h);
  align-self:stretch;inline-size:auto;gap:var(--vx-sp-3);margin:0;padding:var(--_note-pb) var(--_note-pi);border-radius:var(--vx-r-md);
  background:var(--vx-well);font-family:var(--vx-font);font-size:var(--vx-fs-8);font-weight:var(--vx-fw-regular);-webkit-backdrop-filter:none;backdrop-filter:none}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .live-mic-status:not(.live,.blocked){color:var(--vx-ink-2)}
/* The chat fills its row: from the text bar's note up to a gap under the rail (the panel's gap), no higher. */
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story .messages{max-height:100%}
/* The text bar: round tools, the paperclip without a fill (the kit's .vx-agent-foot). */
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story .composer :is(.verser-composer-tool,.verser-composer-send){border-radius:var(--vx-r-round)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story .composer #attachBtn{background:none;box-shadow:none;border-color:transparent}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story .composer::before{box-shadow:var(--vx-card-shadow)}
/* Room for the prompt in the panel's 352: EN stands --vx-sp-1 from the box, the paperclip --vx-sp-1 inside it (as Send
   stands from its end), and the prompt starts at the paperclip's edge, so "Type in any language…" shows whole (it was cut
   at "language"; a textarea's placeholder cannot end in an ellipsis). */
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story .composer>#langBtn{margin-inline-end:var(--vx-sp-1)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story .composer textarea{padding-inline-start:0}
/* Matched to the kit's agent panel reference (the mockups' dock): Debate and Tools stand in the rail too (on the phone
   they are folded into More); the agent's state is the kit's pill in its tone; the close button is a plain round cross. */
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #storyActions>.story-action-folded{display:flex}
/* A short panel (the stage under the kit's --vx-agent-short, 760px; a container query cannot read a variable): Debate and
   Tools fold into More, as on the phone, so the chat keeps room under the rail. More lists them on every desktop. */
@container dock-stage (max-height:759px){body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #storyActions>.story-action-folded{display:none}}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #readyBadge{
  display:inline-flex;align-items:center;gap:var(--vx-sp-1h);block-size:var(--vx-pill-h);min-height:0;margin-top:var(--vx-sp-1h);padding-inline:var(--vx-sp-2h);
  border:0;border-radius:var(--vx-r-pill);background:var(--vx-pill-bg);box-shadow:none;color:var(--vx-pill-fg);
  font-family:var(--vx-font);font-size:var(--vx-fs-5);font-weight:var(--vx-fw-semibold);line-height:1;letter-spacing:0}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #readyBadge.warn{background:var(--vx-warn-soft);color:var(--vx-warn-text)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #readyBadge.good{background:var(--vx-success-soft);color:var(--vx-success-text)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked #readyBadge::before{
  content:"";content:"" / "";flex:none;inline-size:6px;block-size:6px;margin:0;border-radius:var(--vx-r-round);background:currentColor;box-shadow:0 0 var(--vx-sp-2) currentColor}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) .dock-toggle{border-color:transparent;background:none;box-shadow:none;color:var(--vx-ink-2);
  transition:background-color var(--vx-dur-quick) var(--vx-ease-std),transform var(--vx-dur-fast) var(--vx-ease)}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) .dock-toggle:active{transform:scale(.97)}
@media (hover:hover) and (pointer:fine){body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) .dock-toggle:hover{background:var(--vx-well);color:var(--vx-ink)}}
@media (prefers-reduced-motion:reduce){body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) .dock-toggle:active{transform:none}}
/* The starters as the kit's suggestions: a hairline round each on the panel. */
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story .chat-starter{--verser-chip-border:var(--vx-hair-2);-webkit-backdrop-filter:none;backdrop-filter:none}
/* The chat takes the room between the head and the text bar and sits at its foot, the newest message just above the
   text bar; it scrolls up and down inside that room (the chat-scroll-y rules) and never rises over the head. A decision
   waiting may take the whole room. */
body.desk #liveScreen.docked .story-lower{flex:1 1 0;min-height:0;align-items:flex-end}
/* The chat's top stops at the portrait's collar (the lead, 2026-10-16): about 52% down the stage for the agents' portraits
   (the stage shows the portrait with cover, so the line is the same share of its height at any window size). The stage is
   a size container, so the chat's height is the 48% under that line less the text bar, the microphone line and the
   gaps under the chat (about 100px). */
body.desk #liveScreen.docked .story-stage{container:dock-stage/size}
body.desk #liveScreen.docked .story .messages{flex:1 1 auto;max-height:min(100%,calc(48cqh - 100px));margin-inline-end:0}
/* The chat in the dock is the lower part only, in a smaller type than the phone. */
body.desk #liveScreen.docked .story .msg-text{font-size:var(--vx-agent-msg-fs);line-height:1.45}
body.desk #liveScreen.docked .story .msg-name{font-size:var(--vx-agent-who-fs)}
body.desk #liveScreen.docked .aa-box{font-size:var(--vx-fs-4)}
/* The dock's cards sit on the panel, not over the portrait: the kit's well (frontend/kit .vx-agent-msg). */
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .verser-agent-panel{--_agent-card:var(--vx-agent-msg-bg);--_agent-card-blur:none}
body.desk.desk-dock:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .verser-agent-panel .bubble>.msg-name{text-shadow:none}
body.desk #liveScreen.docked .story .messages:has(.tool-confirm:not(.retired) .tool-run:not(:disabled),.tool-confirm.brief-ask .btn:not(:disabled)){max-height:100%}
/* Collapse, top right of the dock. */
body.desk .dock-toggle{position:absolute;top:24px;inset-inline-end:22px;z-index:5;display:grid;place-items:center;width:var(--vx-h-sm);height:var(--vx-h-sm);min-height:0;padding:0;border:1px solid var(--line);border-radius:var(--vx-r-round);background:var(--glass-solid);box-shadow:var(--shadow-control);color:var(--text);cursor:pointer}
/* A host on air keeps the dock open, so End live stays in reach. */
body.desk.broadcasting .dock-toggle{display:none}
body.desk .dock-toggle[hidden],body.desk .dock-launcher[hidden]{display:none}
body.desk .dock-toggle .icon{width:16px;height:16px;transition:transform .2s var(--ease-out)}
/* Arabic: the dock is on the left, so its collapse chevron points left (the chat window's turn, below, wins). */
body.desk .dock-toggle:dir(rtl) .icon{transform:scaleX(-1)}
@media (hover:hover){body.desk .dock-toggle:hover{background:var(--fill-2)}}

/* ---- Collapsed (desk-dock-min), workspace.js deskDockState. The dock leaves the column (--dock-w is 0) and #liveScreen
   becomes a small text box at the bottom right (the lead, 2026-10-22): one glass row, the agent's picture (the
   launcher) at its left, then the same text bar as the dock with only Send beside it, so the agent can be typed to
   straight from it. The picture opens the full dock; a message sent from the box opens the chat window (below). The box sits over a sheet's scrim, so the agent can be typed to about the item the sheet has open, as with
   the dock beside it. */
body.desk.desk-dock.desk-dock-min #liveScreen.docked{top:auto;inset-inline-start:auto;inset-inline-end:var(--desk-dock-inset);bottom:var(--desk-dock-inset);z-index:61;display:flex;flex-direction:row;align-items:flex-end;gap:var(--vx-sp-1h);width:var(--desk-dock-min-w);max-width:calc(100vw - 2 * var(--desk-dock-inset));padding:var(--vx-sp-1);border:1px solid var(--line);border-radius:var(--verser-dock-min-radius);background:var(--glass-solid);box-shadow:var(--shadow-float);transform-origin:bottom right;transition:none;animation:dock-pill-in .24s var(--ease-out)}
body.desk.desk-dock-min #liveScreen.docked .agent-phone.story{display:flex;flex:1 1 auto;min-width:0;width:auto;height:auto;margin:0}
body.desk.desk-dock-min #liveScreen.docked .story-stage{container-type:normal;display:flex;flex:1 1 auto;width:100%;height:auto;min-height:0;border:0;border-radius:0;background:none;overflow:visible}
body.desk.desk-dock-min #liveScreen.docked .story-stage::after{content:none}
body.desk.desk-dock-min #liveScreen.docked .story-overlay{position:relative;inset:auto;flex:1 1 auto;gap:0;min-width:0;padding:0;text-shadow:none}
body.desk.desk-dock-min #liveScreen.docked :is(.avatar-stage,.story-head,.story-lower,.broadcast-panel,#liveMicStatus,#chatStarters,#langBtn,#attachBtn,#liveMicBtn){display:none!important}
body.desk.desk-dock-min #liveScreen.docked .chat-attachments{margin:var(--vx-sp-0h) 0 var(--vx-sp-1h)}
/* :has() with the ids outranks the phone's columns for EN, the paperclip and the mic, hidden here. */
body.desk.desk-dock-min #liveScreen.docked .story .composer:has(#chatInput):has(#sendBtn){--verser-composer-height:var(--vx-h);flex-wrap:nowrap;align-items:center;gap:var(--vx-sp-1);padding:0;border:0;border-radius:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;outline:none}
/* The language button is hidden here, so the text bar draws no box of its own beside it (composer.css .verser-composer-lang):
   the small box itself is the one outline. */
body.desk.desk-dock-min #liveScreen.docked .story .composer::before{content:none}
/* Focus shows on the whole box, not the text bar inside it: the violet edge every text field shows (index.html), no ring. */
body.desk.desk-dock-min #liveScreen.docked:has(#chatInput:focus){border-color:var(--selected-edge)}
/* One row: a long draft scrolls inside it (the text bar's own height, set as it grows, is for the open dock). */
body.desk.desk-dock-min #liveScreen.docked .story .composer textarea{height:var(--vx-h)!important;min-height:0;padding:calc((var(--vx-h) - 22px) / 2) var(--vx-sp-0h);font-size:var(--vx-fs-12);line-height:22px;resize:none}
body.desk.desk-dock-min #liveScreen.docked .story .composer #sendBtn{width:var(--vx-h-sm);height:var(--vx-h-sm);min-height:0;margin:calc((var(--vx-h) - var(--vx-h-sm)) / 2) 0;padding:0;border-radius:var(--radius-round)}
@keyframes dock-pill-in{from{opacity:0;transform:translateY(6px) scale(.97)}}
/* Arabic: the box and the chat window sit in the bottom left corner (inset-inline-end), so they grow from there. */
body.desk.desk-dock.desk-dock-min #liveScreen.docked:dir(rtl),body.desk.desk-dock-chat #liveScreen.docked:dir(rtl) .agent-phone.story{transform-origin:bottom left}
/* The launcher: the agent's picture in a 40px circle at the box's left; a ring while it speaks, a dot for a reply that
   came while collapsed. */
body.desk .dock-launcher{position:relative;order:-1;flex:none;display:grid;place-items:center;width:var(--vx-h);height:var(--vx-h);min-height:0;padding:0;border:2px solid var(--line);border-radius:var(--radius-round);background:var(--glass-solid);color:var(--text);cursor:pointer;transition:transform 160ms var(--ease-out)}
body.desk .dock-launcher:active{transform:scale(.97)}
body.desk .dock-launcher.speaking{border-color:var(--b);animation:agent-fab-ring 1.4s ease-out infinite}
body.desk .dock-launcher.has-unread::after{content:"";position:absolute;top:-1px;inset-inline-end:-1px;width:11px;height:11px;border:2px solid var(--glass-solid);border-radius:var(--radius-round);background:var(--pink)}
body.desk .dock-launcher-face{display:grid;place-items:center;width:100%;height:100%;overflow:hidden;border-radius:var(--radius-round);background:var(--logo);font:700 13px/1 var(--font)}
body.desk .dock-launcher-face img{width:100%;height:100%;object-fit:cover}

/* ---- The chat window (desk-dock-chat), workspace.js deskDockState: a message sent from the small text box opens it
   (the lead, 2026-10-23). The same corner as the box, 360px wide, nothing under it: the same chat, steps line, confirm
   cards, mic line and text bar as the dock, on solid glass, with the agent's picture and name in a small head. It opens
   only on a send, so it always has a chat; it grows with it up to about half the window's height, the newest message
   just above the text bar, the rest scrolling inside it. The portrait, the shortcuts and the status line are not
   shown (the speech still plays, through the same queue, with no mouth to see). The picture in the head opens the full
   dock (workspace.js, liveMini); the chevron, or Escape, goes back to the small text box. */
body.desk.desk-dock.desk-dock-chat #liveScreen.docked{top:auto;inset-inline-start:auto;inset-inline-end:var(--desk-dock-inset);bottom:var(--desk-dock-inset);z-index:61;display:flex;flex-direction:column;align-items:stretch;gap:0;width:var(--desk-dock-chat-w);max-width:calc(100vw - 2 * var(--desk-dock-inset));padding:0;transition:none}
body.desk.desk-dock-chat #liveScreen.docked .agent-phone.story{width:100%;height:auto;max-height:min(50vh,520px);display:flex;transform-origin:bottom right;animation:dock-chat-in .24s var(--ease-out)}
body.desk.desk-dock-chat #liveScreen.docked .story-stage{container-type:normal;display:flex;flex-direction:column;width:100%;height:auto;min-height:0;max-height:inherit;background:var(--glass-solid);box-shadow:var(--shadow-float)}
body.desk.desk-dock-chat #liveScreen.docked :is(.avatar-stage,#storyActions,#liveStats,#readyBadge,#faceProgress,.story-dot,.agent-meta,#liveEditBtn){display:none!important}
body.desk.desk-dock-chat #liveScreen.docked .story-stage::after{content:none}
body.desk.desk-dock-chat #liveScreen.docked .story-overlay{position:relative;inset:auto;flex:1 1 auto;min-height:0;padding:var(--vx-sp-3);text-shadow:none}
/* No stage behind the overlay in the slim and chat-only docks: no veil. */
body.desk:is(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story-overlay::before{display:none}
body.desk.desk-dock-chat #liveScreen.docked .story-head{flex:none;margin-bottom:0;padding-block:0 var(--vx-sp-2);padding-inline:0 calc(var(--vx-h-sm) + var(--vx-sp-2));border-bottom:1px solid var(--line)}
body.desk.desk-dock-chat #liveScreen.docked .story .av{width:var(--vx-sp-8);height:var(--vx-sp-8)}
/* The picture is the control for the full dock: a ring on hover and on keyboard focus. */
body.desk.desk-dock-chat #liveScreen.docked #liveMini{cursor:pointer;transition:box-shadow 160ms var(--ease-out),transform 160ms var(--ease-out)}
body.desk.desk-dock-chat #liveScreen.docked #liveMini:active{transform:scale(.95)}
body.desk.desk-dock-chat #liveScreen.docked #liveMini:focus-visible{outline:var(--ring-width) solid var(--ring);outline-offset:var(--ring-offset)}
@media (hover:hover){body.desk.desk-dock-chat #liveScreen.docked #liveMini:hover{box-shadow:0 0 0 2px var(--b)}}
body.desk.desk-dock-chat #liveScreen.docked .story-name-row h3{font-size:var(--vx-fs-8)}
body.desk.desk-dock-chat #liveScreen.docked .story-lower{flex:1 1 auto;flex-direction:column;align-items:stretch;min-height:0;animation:dock-grow-in .24s var(--ease-out)}
body.desk.desk-dock-chat #liveScreen.docked .story .messages{flex:1 1 auto;max-height:none;min-height:0;padding-top:var(--vx-sp-2);-webkit-mask-image:none;mask-image:none}
/* The window's text bar: EN, the paperclip, the mic and Send as --vx-h-sm squares --vx-sp-1 apart, the bar on the same
   start edge as the head and the chat, so a short question fits the field on one line. The dock's and the phone's bars
   are unchanged. */
body.desk.desk-dock-chat #liveScreen.docked .story .composer:has(#chatInput):has(#sendBtn){--verser-composer-height:var(--vx-h-sm);gap:var(--vx-sp-1);margin:0}
body.desk.desk-dock-chat #liveScreen.docked .story .composer :is(#attachBtn,#liveMicBtn,#sendBtn){width:var(--vx-h-sm)}
body.desk.desk-dock-chat #liveScreen.docked .story .composer #langBtn{width:var(--vx-h-sm);height:var(--vx-h-sm);min-height:0}
body.desk.desk-dock-chat #liveScreen.docked .story .composer #langBtn{font-size:var(--vx-fs-4)}
body.desk.desk-dock-chat .dock-toggle{top:var(--vx-sp-3);inset-inline-end:var(--vx-sp-3)}
body.desk.desk-dock-chat .dock-toggle .icon{transform:rotate(90deg)}
/* Where the window floats over the page (no column of its own), the page ends with room to scroll its last content
   above the window: the window's cap (min(50vh,520px)), its 24px from the edge and a 24px gap. */
body.desk.desk-dock.desk-dock-chat:not(:has(#tasksScreen.screen.active.task-split-on,#inboxScreen.screen.active,#commsScreen.screen.active .hc-compose,#hubScreen.screen.active[data-side])) .phone{padding-bottom:calc(min(50vh,520px) + 2 * var(--desk-dock-inset))!important}
@keyframes dock-chat-in{from{opacity:0;transform:translateY(8px) scale(.98)}}
@keyframes dock-grow-in{from{opacity:0;transform:translateY(6px)}}
@media (prefers-reduced-motion:reduce){body.desk.desk-dock.desk-dock-min #liveScreen.docked,body.desk.desk-dock-chat #liveScreen.docked :is(.agent-phone.story,.story-lower){animation:none}}

/* ---- Floating things follow the middle column, not the phone column (the create button's own placement: the kit's
   ui/components/fab/create-fab.css). */
body.desk .drive-tray{inset-inline-start:auto;inset-inline-end:var(--edge-right);inline-size:var(--vx-tray-w)}
/* The round + and the Drive tray stand above the small text box (24px up, about 52px tall), clear of it. */
body.desk.desk-dock.desk-dock-min .drive-tray{translate:0 calc(-1 * var(--desk-fab-lift))}
/* The chat window open, they stay left of it (360px wide, 24px in). */
body.desk.desk-dock.desk-dock-chat .drive-tray{inset-inline-end:max(var(--edge-right),400px)}
body.desk .meeting-return{left:var(--mid-centre-x)}
body.desk .toast{max-width:min(340px,calc(var(--mid-w) - 48px))}
/* The dock is the agent on a desktop: no floating agent. */
body.desk .agent-fab{display:none!important}
/* Sheets are centred dialogs at this width, drawn by the kit (ui/components/sheet/sheet.css): between the rail and the
   dock's edge (--verser-overlay-inset-start/-end, index.html), so the agent can still be typed to about the task or item
   the sheet has open (onSheetKey leaves the dock's keys alone). What stays here is where the app's dock leaves room:
   collapsed, a tall sheet stops above the small text box; the chat window open, sheets centre in the room left of it,
   so it never covers a sheet's buttons. */
body.desk.desk-dock.desk-dock-min{--verser-sheet-inset-block-end:var(--desk-dock-min-room)}
/* Folded, the + stands --desk-fab-lift higher: a side pane ([data-pane-fit], kit.css) ends that much higher too. */
body.desk.desk-dock.desk-dock-min{--vx-fab-lift:var(--desk-fab-lift)}
body.desk.desk-dock.desk-dock-chat{--verser-sheet-inset-end:var(--desk-dock-chat-room)}

/* ---- Narrow desktop windows, 720-1199px (milestone 3, 27 Oct; 1024 and 1200px are written in the media queries here, as in
   workspace.js's DOCK_COLUMN_MEDIA, because a media query cannot read a variable).
   Under 1024px the rail compacts: each row is its icon over a small label (so a finger on a tablet and a mouse both see
   what a row is, with no hover needed), the menu search and the Verser word go, and the badge is the picture alone. */
@media (max-width:1023.98px){
  body.desk.desk-shell{--rail-w:var(--desk-rail-compact)}
  body.desk.desk-shell #profileSidebar{padding-inline:6px}
  body.desk.desk-shell #profileSidebar .side-head{justify-content:center;padding:0;margin-bottom:10px}
  body.desk.desk-shell #profileSidebar .side-head h2{gap:0;font-size:0}
  body.desk.desk-shell #profileSidebar .verser-client-logo{display:none}
  /* The rows are the kit's stacked nav (data-stacked on #nav and the foot, core/helpers.js railStacked). */
}
/* Under 1200px the open dock floats over the middle (a shadow on its inline-start edge) rather than squeezing it, and
   the page keeps the whole middle (--dock-w 0); workspace.js (DOCK_COLUMN_MEDIA) lands it collapsed there, so it is
   opened only when asked for. Never wider than the window less the rail. */
@media (max-width:1199.98px){
  body.desk.desk-dock{--dock-w:0px}
  body.desk.desk-dock.desk-dock-open #liveScreen.docked{width:min(var(--desk-dock),calc(100vw - var(--rail-w)));z-index:46}
  body.desk.desk-dock.desk-dock-open #liveScreen.docked .story-stage{box-shadow:-16px 0 36px -12px var(--shadow-edge)}
  body.desk.desk-dock.desk-dock-open #liveScreen.docked:dir(rtl) .story-stage{box-shadow:16px 0 36px -12px var(--shadow-edge)}
  /* The open panel keeps that edge with the kit card's own shadow, and starts under the top row ("Search Verser"):
     the row runs over the whole middle here and sits above the page's column, so it covered the panel's head and close. */
  body.desk.desk-dock.desk-dock-open:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked .story-stage{box-shadow:var(--vx-card-shadow),-16px 0 36px -12px var(--shadow-edge)}
  body.desk.desk-dock.desk-dock-open:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked:dir(rtl) .story-stage{box-shadow:var(--vx-card-shadow),16px 0 36px -12px var(--shadow-edge)}
  body.desk.desk-shell.desk-dock.desk-dock-open:not(.desk-dock-min,.desk-dock-chat) #liveScreen.docked{top:calc(var(--app-bar-top) + var(--app-bar-h))}
}

/* =========================================================================
   KEY SCREENS on a desktop (phase 2): Home, Tasks, Agent Hub, Inbox, Email and calendar use the middle's width.
   Each is only the phone screen's own parts set side by side; nothing is added to the page that is not on a phone.
   ========================================================================= */

/* ---- Home: the greeting and work status across; under them the brief and the calendar, then My numbers (the four KPI
   cards) the page's width under those (10 Nov, the lead: "the kpi cards should appear under the agent box and the
   calendar"), Waiting for you and the notices; then Team pulse on the left and My tasks on the right (30 Oct, the lead:
   "team pulse should just be less wide, not keep the full width ... too big on these too"). Team pulse only shows for
   managers and admins. */
/* The two columns only while the middle is at least 640px wide (27 Oct, the lead: "shrink accordingly";
   640px since 30 Oct): narrower, halves squeezed Team pulse's head and My tasks' titles, so the page stays one column,
   as on a phone (the cards, My tasks, Team pulse). 1280 with the dock open is a 576px middle, so one column there.
   Home is the container, so this follows the middle's own width (rail and dock included), not the window's. Container
   queries cannot read a variable: the 640px below is the number, written in the rule. */
/* A grid, not two floats (29 Oct, the lead: "spacing is whack"). Home is the container, so a query cannot change its own
   tracks: the columns (--desk-home-start / --desk-home-end) and rows are set on every desktop, and each part spans both
   columns except the two the query places. The parts above Team pulse and My tasks (greeting, the brief and calendar,
   the numbers, Waiting for you, notices; eleven today, room for --desk-home-lead-rows) fill the first rows, and an empty
   row is 0 tall (the row after them, where the numbers stood until 10 Nov, is one). Team pulse and a last flexible row
   are counted from the grid's end, and My tasks spans them: the flexible row takes only what My tasks has beyond Team
   pulse, so a long My tasks never opens a gap under Team pulse. Grid margins do not collapse, so the head's 16px under
   it is written as the 4px it adds to the next card's 12px (#homeTop's own 12px in two columns, home-today.css). */
body.desk #homeScreen{container:deskhome/inline-size}
body.desk #homeScreen.active{display:grid;grid-template-columns:minmax(0,var(--desk-home-start)) minmax(0,var(--desk-home-end));
  grid-template-rows:repeat(var(--desk-home-lead-rows),auto) auto auto auto 1fr;column-gap:var(--verser-stat-gap)}
body.desk #homeScreen>*{grid-column:1/-1;min-width:0}
body.desk #homeScreen>.home-head{margin-block-end:var(--vx-sp-1)}
/* The page fills the window's height (the lead's B5, 2 Nov): Home is at least the middle's height (the window less the
   desktop page's 32px + 64px of room, --desk-home-fill), the last flexible row takes what is left, and in two columns
   the right column's last card runs down the right (home-today.css). Layout only: no number tiles. Team pulse stays as
   tall as its own rows (7 Nov, the lead: "team pulse should not take this much space"): stretched down the left
   column, its grid spread the extra height over its rows and opened a gap above and under the header. */
body.desk #homeScreen.active{min-block-size:calc(var(--desk-home-fill) - var(--app-bar-room,0px))}
@container deskhome (width >= 640px){
  /* The four KPI cards (the kit's vx-kpi-row, 10 Nov) as one row the page's full width, in the flow under the brief and
     the calendar. */
  body.desk #homeScreen>#homeStats{grid-column:1/-1}
  body.desk #homeScreen>#teamPulsePanel{grid-column:1;grid-row:-4/-3;align-self:start;margin-block-end:0}
  /* My tasks as tall as its own list (a short empty state, or five tasks and See all), at the top of its column. */
  body.desk #homeScreen>.home-mine{grid-column:2;grid-row:-4/-1;align-self:start}
}
/* Four across on a desktop Home from 680px of row (the dock open at 1440, the dock folded at 1024): the kit's row waits
   for 880px, which the middle column with the rail and the dock reaches only on a wide window. Two by two under it. */
body.desk #homeStats{--vx-kpi-row-four:680px}
/* The work status as a pill on the right of the greeting (29 Oct, the lead picked the icon pill): the dot and the time,
   then Take a break / Back to work and Start / End my day as icons. It stays the card's own element, after the greeting
   in the page, placed in the corner, so the greeting and the who line keep the pill's width clear. One width in every
   state (the card never changes size). Only while the middle has room for both (700px, written in the @container rule); narrower, it
   is the card under the greeting, as on a phone. A failure message hangs under the pill. */
body.desk #homeScreen{position:relative}
@container deskhome (width >= 700px){
  body.desk #homeScreen>:is(.title,.home-head){padding-inline-end:calc(var(--desk-work-pill-w) + var(--vx-sp-3))}
  /* Out of Home's grid: placed against Home's own edges, not a grid area's. */
  body.desk #homeScreen>#workStatusPanel{grid-column:auto}
  body.desk #workStatusPanel{position:absolute;z-index:2;inset-block-start:var(--desk-work-pill-top);inset-inline-end:0;inline-size:var(--desk-work-pill-w);margin:0;
    padding-block:var(--vx-sp-1h);padding-inline:var(--vx-sp-4) var(--vx-sp-1h);--verser-card-glass-radius:var(--radius-pill);container-type:normal}
  body.desk #workStatusPanel .work-status-row{gap:var(--vx-sp-1h)}
  /* The bar's own height in the pill (the buttons'), not the phone card's 44px reach. */
  body.desk #workStatusPanel #workStatusOpen{flex:1;align-self:stretch;min-block-size:0;gap:var(--vx-sp-2);margin-inline-end:var(--vx-sp-1)}
  body.desk #workStatusPanel .work-status-text{font-size:var(--vx-fs-8)}
  body.desk #workStatusPanel .work-status-chev{display:none}
  body.desk #workStatusPanel .work-status-row .btn.work-icon-btn{inline-size:var(--vx-h-sm);min-inline-size:var(--vx-h-sm);block-size:var(--vx-h-sm);min-block-size:var(--vx-h-sm);border-radius:var(--radius-round)}
  body.desk #workStatusMessage{position:absolute;inset-block-start:calc(100% + var(--vx-sp-1h));inset-inline-end:0;inline-size:max-content;max-inline-size:var(--desk-work-pill-w);margin:0;text-align:end}
}

/* ---- Tasks: My tasks as the split (below). In progress and Done are its glyphs and sections, so their chips go.
   Team tasks keeps them. */
body.desk #tasksScreen.task-split-on .tasks-chip:is([data-state="progress"],[data-state="done"]){display:none}
/* The toolbar (tasks-page.js tasksDeskBar, tasksDeskFit; New task is the + at the bottom end, as on a phone). The
   screen's parts are flex items that each take a full row, so they keep their order. One row while everything fits the
   middle: the chips · the search icon. When it does not (tasksDeskFit adds .tasks-bar-two), the chips wrap rather than
   slide under the search. Every control is 44px tall so the row's centres line up. */
body.desk #tasksScreen.active{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--vx-sp-2h)}
body.desk #tasksScreen>*{flex:1 1 100%;min-width:0}
/* The smaller desktop controls (below) are for a mouse; a touch tablet in desktop mode keeps 44px targets. */
body.desk #tasksScreen>#tasksTools{flex:1 1 0;margin-top:0;align-items:center}   /* the head's own step (12) above it, as on Projects: flex margins add up */
body.desk #tasksScreen>#tasksTools>.tasks-filters{align-items:center}
body.desk #tasksScreen.tasks-bar-two>#tasksTools,body.desk #tasksScreen.tasks-bar-two>#tasksTools~*{order:1}
body.desk #tasksScreen.tasks-bar-two>#tasksTools{flex:1 1 100%;align-items:flex-start}
body.desk #tasksScreen.tasks-bar-two>#tasksTools>.tasks-filters{flex-wrap:wrap;row-gap:var(--vx-sp-2);overflow:visible}
/* ---- The split (tasks-page.js tasksSplitDraw; the lead, 2026-10-22, in place of the four-column board): My tasks as a
   list (about 40%) beside the task picked or Today's brief (about 60%), inside the middle column, which already ends
   where the dock starts, so the pair never runs under My Agent (at 1280 with the dock open the middle is 552px). The
   panes scroll on their own; the list never pages. They end above the + at the column's bottom end (the lead, 11 Nov:
   it sat on the pane's corner): the split stops the kit's --vx-fab-reserve above the window's foot, and --vx-fab-lift
   more while the folded agent box lifts the + (the line a [data-pane-fit] pane keeps: Inbox, Drive), from where it
   starts on the page (--task-split-at, views/tasks/page.js tasksSplitFit). The pane keeps that whole height; the list is
   as tall as its rows (a lone Done row is a short card, not a tall empty one) and scrolls inside once they reach it. */
body.desk .task-split{display:grid;grid-template-columns:minmax(220px,2fr) minmax(0,3fr);align-items:start;gap:var(--vx-sp-3h);margin-top:var(--vx-page-block-gap)}
body.desk #tasksScreen .task-split{block-size:calc(100dvh - var(--task-split-at,0px) - var(--vx-fab-reserve) - var(--vx-fab-lift,0px));min-block-size:calc(var(--vx-sp-9) * 8)}
/* The list and the pane are the containing block of what they hold that is absolutely placed (the step field's screen-reader label, a row's): in OG their backdrop blur made them one,
   but in Light and Dark the blur is none, so such a label's block was the page and, sitting far down the scrolled pane, it stretched the page under the fitted split. */
body.desk #tasksScreen .task-split-list{position:relative;max-block-size:100%}
body.desk #tasksScreen .task-split-pane{position:relative;align-self:stretch}
/* While My tasks loads, its row placeholders stand where the list pane will be (its column, under the filters), not
   across both panes, so the split arrives without a jump (layout pass TK-5). */
body.desk #tasksScreen:not(.is-team) #taskLists:has(>[data-skel]){display:grid;grid-template-columns:minmax(220px,2fr) minmax(0,3fr);gap:var(--vx-sp-3h);margin-top:var(--vx-page-block-gap)}
body.desk #tasksScreen:not(.is-team) #taskLists>[data-skel]{grid-column:1;min-inline-size:0}
/* The split already clears the +, so the page keeps no room of its own under it and does not scroll. */
body.desk #tasksScreen.active.task-split-on{padding-bottom:0}
body.desk:has(#tasksScreen.screen.active.task-split-on) .phone{padding-bottom:0!important}
body.desk .task-split-list,body.desk .task-split-pane{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--fill-3) transparent}
/* Both panes are the same plain glass (no tint); everything inside them is a flat fill or a hairline, never a card in a card.
   The list is one panel: the section heads (the kit's .sec-head) on the glass, rows under them with hairlines between, and the sections' own glass bodies (tasks-page.css, the phone's) go. */
body.desk :is(.task-split-list,.task-split-pane){border:1px solid var(--line);border-radius:var(--r-panel);background:var(--gloss),var(--fog),var(--glass-panel);background-origin:border-box;-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);box-shadow:var(--shadow)}
body.desk .task-split-list{padding:4px 8px 10px;container:tasklist/inline-size}
/* A list under 400px (1440 with the dock open) says just "Waiting" in its head; the words stay for screen readers. */
@container tasklist (max-width:399px){body.desk #taskSplit .task-group-toggle .task-split-long{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
body.desk #taskSplit .task-section{margin:0;padding:0}
body.desk #taskSplit .task-section+.task-section{margin-top:4px}
body.desk #taskSplit .task-list-head.sec-head{min-height:0;margin:0;padding:8px 0 2px}
body.desk #taskSplit .task-group-toggle{gap:8px;min-height:40px;padding-block:0;padding-inline:10px 8px;border-radius:var(--r-small);white-space:nowrap}
body.desk #taskSplit .task-group-toggle .k{margin:0;overflow:hidden;text-overflow:ellipsis;font-size:var(--vx-fs-4);color:var(--eyebrow)}
body.desk #taskSplit .task-section[data-list="overdue"] .task-group-toggle .k{color:var(--danger-text)}
body.desk #taskSplit .task-group-toggle .count{display:inline-grid;place-items:center;flex:none;min-width:22px;height:20px;padding:0 6px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--chip-fill);font-size:var(--vx-fs-3);line-height:1;color:var(--text-2)}
body.desk #taskSplit{--verser-section-head-chev-size:16px}
@media (hover:hover) and (pointer:fine){body.desk #taskSplit .task-group-toggle:hover{background:var(--fill-1)}}
body.desk #taskSplit .task-group-body:not(:empty):not([hidden]){display:block;margin:0;padding:0;overflow:visible;border:0;border-radius:0;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
/* The body is the kit's .verser-row-list (reset above): its border hairline between rows goes; the rows draw their own (::before). */
body.desk #taskSplit .task-group-body>.task-row{border-block-start:0}
/* A row: the state ring, the title cut with an ellipsis, then the percent, the urgency and Sent back pills and the due
   day. Hairlines between rows, hidden around the row picked and the row under the pointer, which take the fill. */
body.desk .task-row{position:relative;display:flex;align-items:center;gap:var(--verser-task-row-gap);width:100%;min-width:0;min-height:46px;margin:0;padding-block:0;padding-inline:10px 12px;border:0;border-radius:var(--r-row);background:none;font:inherit;font-size:var(--vx-fs-9);color:var(--text);text-align:start;cursor:pointer;transition:background-color 140ms ease,transform 160ms var(--ease-out)}
body.desk .task-row+.task-row::before{content:"";position:absolute;inset-block:0 auto;inset-inline:38px 12px;height:1px;background:var(--row-edge);pointer-events:none}
body.desk .task-row:is([aria-current="true"],[aria-current="true"]+.task-row)::before{opacity:0}
body.desk .task-row:active{transform:scale(.985)}
@media (hover:hover) and (pointer:fine){
  body.desk .task-row:hover{background:var(--fill-1)}
  body.desk .task-row:is(:hover,:hover+.task-row)::before{opacity:0}
}
body.desk .task-row:focus-visible{outline:var(--ring-width) solid var(--ring);outline-offset:-2px}
/* Picked: the person's violet, as a rim and a faint wash (accent for selection, the glass under it untinted). */
body.desk .task-row[aria-current="true"]{background:color-mix(in srgb,var(--a) 22%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--a) 70%,transparent) inset}
body.desk .task-row-state{display:grid;place-items:center;flex:none;width:18px;height:18px}
body.desk .task-row-ring{position:relative;display:block;width:16px;height:16px;border-radius:var(--radius-round);box-shadow:0 0 0 1.5px color-mix(in srgb,var(--text-2) 60%,transparent) inset}
body.desk .task-row-ring[data-ring="part"]{box-shadow:none;background:conic-gradient(var(--track-fill) calc(var(--p) * 1%),var(--track) 0);-webkit-mask:radial-gradient(circle,transparent 4.6px,var(--text) 5.2px);mask:radial-gradient(circle,transparent 4.6px,var(--text) 5.2px)}
body.desk .task-row-ring[data-ring="late"]{width:10px;height:10px;box-shadow:none;background:var(--bad)}
body.desk .task-row-ring:is([data-ring="done"],[data-ring="wait"]){box-shadow:none;background:var(--ring-c);-webkit-mask:var(--check-mark) center/14px no-repeat;mask:var(--check-mark) center/14px no-repeat}
body.desk .task-row-ring[data-ring="done"]{--ring-c:var(--green)}
body.desk .task-row-ring[data-ring="wait"]{--ring-c:var(--warn)}
body.desk .task-row-title{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
body.desk .task-row.task-done .task-row-title{color:var(--text-2)}
body.desk .task-row-meta{display:contents}
body.desk .task-row-pct{order:-1;flex:none;margin-inline-start:-4px;font-family:var(--mono);font-size:var(--vx-fs-4);font-variant-numeric:tabular-nums;color:var(--text-2)}
body.desk .task-row-state{order:-2}
body.desk .task-row-due{flex:none;font-size:var(--vx-fs-6);text-align:end;color:var(--text-2);white-space:nowrap}
body.desk .task-row[data-section="overdue"] .task-row-due{color:var(--danger-text);font-weight:500}
/* One badge for the split (the kit's .pill: a dot and a word, mono, on the chip fill): urgency, Sent back, the status,
   the brief's reasons. The dot carries the meaning in the status tokens. */
body.desk :is(#taskSplit,#taskPane) :is(.task-urgency,.tag){display:inline-flex;align-items:center;gap:6px;flex:none;height:22px;padding-block:0;padding-inline:7px 9px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--chip-fill);font-family:var(--mono);font-size:var(--vx-fs-3);font-weight:500;line-height:1;letter-spacing:0;color:var(--text);white-space:nowrap;vertical-align:middle}
body.desk :is(#taskSplit,#taskPane) :is(.task-urgency,.tag)::before{content:"";flex:none;width:6px;height:6px;border-radius:var(--radius-round);background:var(--dot,var(--text-2))}
body.desk :is(#taskSplit,#taskPane) .urgency-urgent{--dot:var(--bad)}
body.desk :is(#taskSplit,#taskPane) .urgency-high{--dot:var(--warn)}
body.desk :is(#taskSplit,#taskPane) :is(.urgency-low,.urgency-normal){color:var(--text-2)}
body.desk #taskSplit .task-row .task-status,body.desk #taskPane .task-brief-kind[data-kind="sentback"]{--dot:var(--bad)}
/* In a row the pill sits a size down, so the title keeps the room. */
body.desk :is(#taskSplit .task-row,#taskPane .task-brief-row) :is(.task-urgency,.tag){--verser-pill-height:20px;gap:5px;height:20px;padding-block:0;padding-inline:6px 8px;font-size:var(--vx-fs-2)}
body.desk #taskPane .task-brief-kind[data-kind="requirement"]{--dot:var(--warn)}
body.desk #taskPane .task-brief-kind[data-kind="new"]{--dot:var(--track-fill)}
body.desk #taskPane .task-sheet-state.task-awaiting .tag{--dot:var(--warn)}
body.desk #taskPane .task-sheet-state:is(.task-done) .tag{--dot:var(--green)}
body.desk #taskPane .task-sheet-state:is(.task-missed,.task-closed) .tag{--dot:var(--bad)}
body.desk .task-split-long{white-space:nowrap}

/* ---- The pane with a task. Header: the eyebrow (late in the late colour), the title in the display face, the meta line,
   Edit and Delete as icons at the top right (Delete's confirm takes the row under the title). */
body.desk .task-split-pane{padding:22px 24px 28px;container:taskpane/inline-size}
/* ---- Tasks on the kit: token overrides (the pane: a task's detail and a team task's review, tasks-page.js tasksPaneKit).
   Edit and Delete are .verser-icon-btn: 40px round, the secondary icon colour, fill-2 on hover, a deeper press. Delete
   keeps the 44px it has today (the app's .trash-btn size); Cancel task on a team task is 40px as Edit. */
body.desk #taskPane .task-pane-actions{--verser-icon-button-size:40px;--verser-icon-button-ghost-text:var(--text-2);--verser-icon-button-fill-hover:var(--fill-2);--verser-button-press-scale:.94}
body.desk #taskPane .task-pane-actions #taskDelete{--verser-icon-button-size:44px;border:0}
/* "What did you do?" is a .verser-card: 14px round, fill-1, 14px in (12 at the foot); it keeps the screen's type (the kit
   card sets 14px/1.45, not a token). Add files is a ghost .verser-btn, Complete or Save the primary one, both 40px. */
body.desk #taskPane .task-pane-report.verser-card{--verser-card-padding:14px 14px 12px;--verser-card-radius:var(--r-compact);--verser-card-fill:var(--fill-1);font-family:inherit;font-size:inherit;line-height:inherit}
body.desk #taskPane .task-pane-report-foot{--verser-button-height:40px;--verser-button-radius:var(--r-btn)}
body.desk #taskPane .task-pane-report-foot .task-file-add{--verser-button-padding-inline:12px;--verser-button-text:var(--text-2);--verser-button-hover:var(--fill-2)}
body.desk #taskPane .task-pane-report-foot .task-report{--verser-button-padding-inline:18px;--verser-button-radius:var(--r-pill)}
/* Status: the buttons are ghost .verser-btn inside the segmented row, 38px, 13.5px; Mark missed in the rose. */
@media (pointer:fine){body.desk #taskPane .task-sheet-actions{--verser-button-height:38px}}
body.desk #taskPane .task-sheet-actions{--verser-button-padding-inline:8px;--verser-button-radius:var(--r-small);--verser-button-font-size:13.5px;--verser-button-hover:var(--fill-2)}
body.desk #taskPane .task-sheet-actions .task-missed{--verser-button-text:var(--danger-text)}
/* A team task's Verify and Send back: 40px pills, Send back on the app's control fill and line. */
body.desk #taskPane .task-pane-decide{--verser-button-height:40px;--verser-button-padding-inline:22px;--verser-button-radius:var(--r-pill);--verser-button-fill:var(--fill-2);--verser-button-border:var(--line)}
body.desk #taskPane .task-pane-decide .verser-btn[data-variant="primary"]{border:0}
body.desk #taskPane .task-pane-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px}
body.desk #taskPane .task-pane-eyebrow{grid-column:1;grid-row:1;margin:0;font-family:var(--mono);font-size:var(--vx-fs-4);font-weight:500;color:var(--eyebrow);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.desk #taskPane .task-pane-eyebrow.is-late{color:var(--danger-text)}
body.desk #taskPane .task-pane-actions{grid-column:2;grid-row:1;display:flex;align-items:center;gap:2px;margin-block:-10px -6px;margin-inline:0 -12px}
body.desk #taskPane .task-pane-actions .verser-icon-btn{transition:background-color 140ms ease,color 140ms ease,transform 160ms var(--ease-out)}
body.desk #taskPane .task-pane-actions .icon{width:19px;height:19px}
body.desk #taskPane .task-edit-open[aria-expanded="true"]{background:var(--pressed);color:var(--text)}
@media (hover:hover) and (pointer:fine){body.desk #taskPane .task-pane-actions .trash-btn:hover{color:var(--danger-text)}body.desk #taskPane .task-edit-open[aria-expanded="true"]:hover{background:var(--fill-2)}}
body.desk #taskPane .task-pane-actions:has(.confirm-row){grid-column:1/-1;grid-row:3;margin:12px 0 0}
body.desk #taskPane .task-pane-actions:has(.confirm-row) .task-edit-open{display:none}
body.desk #taskPane .task-pane-title{grid-column:1/-1;grid-row:2;margin:var(--vx-sp-2) 0 0;font-family:var(--display);font-size:26px;font-weight:600;letter-spacing:-.015em;line-height:1.2;text-wrap:balance;overflow-wrap:anywhere}
/* A long title stops at three lines with an ellipsis, said in full in its title (page.js tasksTitleFit; root decision
   D-TK), so the facts stay near the top. */
body.desk #taskPane .task-pane-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
body.desk #taskPane .task-pane-facts{margin:12px 0 0}
body.desk #taskPane .task-pane-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
body.desk #taskPane .task-pane-meta .task-sheet-state{display:contents}
body.desk #taskPane .task-pane-meta .task-urgency{order:1}
body.desk #taskPane .task-pane-meta .task-status{order:2}
body.desk #taskPane .task-pane-meta .task-pane-due{order:3}
body.desk #taskPane .task-pane-meta .task-sheet-state>.task-meta{order:4}
body.desk #taskPane .task-pane-meta .task-meta{margin:0;font-family:var(--font);font-size:var(--vx-fs-7);color:var(--text-2)}
body.desk #taskPane .task-pane-summary{margin:14px 0 0;max-width:65ch;font-size:var(--vx-fs-9);line-height:1.55;color:var(--text-2);white-space:pre-wrap;overflow-wrap:anywhere}
body.desk #taskPane .task-sheet{display:block}
body.desk #taskPane .task-edit:not(.hidden){margin-top:16px;padding:4px 16px 16px;border-radius:var(--r-compact);background:var(--fill-1)}
/* Steps (2026-10-28): the bar, the checklist, the note line and History in the sheet's order (tasks-page.css); the foot
   holds the status buttons and Complete at the end (mockup D). */
body.desk #taskPane .task-steps-bar:not(:empty){margin-top:22px;padding-top:18px;border-top:1px solid var(--hairline)}
body.desk #taskPane .task-pane-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:24px;padding-top:16px;border-top:1px solid var(--hairline)}
body.desk #taskPane .task-pane-foot .task-sheet-actions{flex:1 1 auto;min-inline-size:0}
body.desk #taskPane .task-pane-foot .task-complete{--verser-button-height:40px;--verser-button-padding-inline:22px;--verser-button-radius:var(--r-pill);flex:none;margin-inline-start:auto}
body.desk #taskPane .task-pane-foot .task-complete.hidden{display:none}
/* "What did you do?": one flat card with the note, the files and the two buttons at its foot. */
body.desk #taskPane .task-pane-report{margin-block-start:14px}
body.desk #taskPane .task-pane-report>.field-label{margin:0 2px 10px;font-size:var(--vx-fs-8);font-weight:600;color:var(--text)}
body.desk #taskPane .task-pane-report #taskNoteText{background:var(--chip-fill)}
body.desk #taskPane .task-pane-report-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 10px;margin-top:10px}
body.desk #taskPane .task-pane-report-foot .task-report{min-inline-size:0;margin-block:0;margin-inline:auto 0;border:0}
@media (hover:hover) and (pointer:fine){body.desk #taskPane .task-pane-report-foot .task-file-add:hover{color:var(--text)}}
/* Status: one segmented row, the buttons flat inside it; In progress pressed takes the person's violet. */
body.desk #taskPane .task-pane-status{margin-top:22px}
body.desk #taskPane .task-pane-status>.field-label{margin:0 2px 10px;font-family:var(--mono);font-size:var(--vx-fs-4);font-weight:500;color:var(--eyebrow)}
body.desk #taskPane .task-sheet-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;margin:0;padding:4px;border:1px solid var(--hairline);border-radius:var(--r-btn);background:var(--chip-fill)}
body.desk #taskPane .task-sheet-actions .verser-btn{min-inline-size:0;border:0;line-height:1.15;overflow:hidden;text-overflow:ellipsis;transition:background-color 140ms ease,transform 160ms var(--ease-out)}
body.desk #taskPane .task-sheet-actions .verser-btn[aria-pressed="true"],body.desk #taskPane .task-sheet-actions .verser-btn[aria-pressed="true"]:hover{background:var(--pressed);box-shadow:0 0 0 1px var(--selected-edge) inset}
body.desk #taskPane .task-kept-note{margin-top:4px}

/* ---- Today's brief. "Today" in the display face with the date as its eyebrow; the three counts in one strip; Start with
   as the kit's hero (flat inside the pane) with Open as the one primary button; Needs your attention as rows; This week's
   figures in a line over a Monday-Sunday bar chart. */
body.desk #taskPane .task-brief-day{display:flex;flex-direction:column-reverse;gap:6px;margin:0;font-family:var(--display);font-size:28px;font-weight:600;letter-spacing:-.02em;line-height:1.1}
body.desk #taskPane .task-brief-comma{display:none}
body.desk #taskPane .task-brief-date{font-family:var(--mono);font-size:var(--vx-fs-4);font-weight:500;color:var(--eyebrow)}
body.desk #taskPane .task-brief-stats{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);margin-top:18px;padding:14px 0;border-block:1px solid var(--hairline)}
body.desk #taskPane .task-brief-stat{display:grid;align-content:start;gap:6px;min-width:0;padding:0 16px}
body.desk #taskPane .task-brief-stat:first-child{padding-inline-start:2px}
body.desk #taskPane .task-brief-stat+.task-brief-stat{border-inline-start:1px solid var(--hairline)}
body.desk #taskPane .task-brief-stat b{font-family:var(--font-figure);font-size:32px;font-weight:600;letter-spacing:-.02em;line-height:1;font-variant-numeric:tabular-nums}
body.desk #taskPane .task-brief-stat span{font-size:var(--vx-fs-6);line-height:1.3;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.desk #taskPane .task-brief-stat.is-late b{color:var(--danger-text)}
body.desk #taskPane .task-brief-block{margin-top:24px}
body.desk #taskPane .task-brief-head{margin:0 2px 10px;font-size:var(--vx-fs-4)}
body.desk #taskPane .hero.task-brief-start{margin:0;padding:18px 18px 16px;border-color:var(--hairline);border-radius:var(--r-compact);background:var(--gloss),var(--fill-1);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
body.desk #taskPane .task-brief-start .task-brief-head{margin:0 0 10px}
body.desk #taskPane .task-brief-start .hero-title{font-size:var(--vx-fs-title);line-height:1.25;text-wrap:balance;overflow-wrap:anywhere}
body.desk #taskPane .task-brief-start .hero-text{margin-top:6px;font-size:var(--vx-fs-7)}
body.desk #taskPane .task-brief-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
body.desk #taskPane .task-brief-facts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
body.desk #taskPane .task-brief-facts .task-meta{margin:0;font-family:var(--font);font-size:var(--vx-fs-6);color:var(--text-2)}
body.desk #taskPane .task-late{font-size:var(--vx-fs-6);font-weight:500;color:var(--danger-text)}
body.desk #taskPane .task-brief-open{min-height:40px;margin-inline-start:auto;padding:0 22px;border-radius:var(--r-pill)}
body.desk #taskPane .task-brief-open:active{transform:scale(.97)}
body.desk #taskPane .task-brief-list{display:grid;gap:0;margin:0;padding:0;list-style:none}
body.desk #taskPane .task-brief-list>li+li{border-top:1px solid var(--row-edge)}
body.desk #taskPane .task-brief-row{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:4px 8px;border:0;border-radius:var(--r-row);background:none;font:inherit;color:var(--text);text-align:start;cursor:pointer;transition:background-color 140ms ease,transform 160ms var(--ease-out)}
body.desk #taskPane .task-brief-row:active{transform:scale(.985)}
@media (hover:hover) and (pointer:fine){body.desk #taskPane .task-brief-row:hover{background:var(--fill-1)}}
body.desk #taskPane .task-brief-av{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid var(--icon-edge);border-radius:var(--radius-round);background:var(--icon-fill);font-size:var(--vx-fs-3);font-weight:600;letter-spacing:.02em}
body.desk #taskPane .task-brief-main{display:grid;gap:1px;flex:1 1 auto;min-width:0}
body.desk #taskPane .task-brief-line{display:flex;align-items:center;gap:8px;min-width:0}
body.desk #taskPane .task-brief-row .task-brief-title{flex:0 1 auto;min-width:0;font-size:var(--vx-fs-9);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.desk #taskPane .task-brief-row .task-brief-why{font-size:var(--vx-fs-6);color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.desk #taskPane .task-brief-week-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 16px}
body.desk #taskPane .task-brief-week-top .task-brief-head{margin-bottom:0}
/* Each figure and its words stay on one line; a narrow pane (1280 with the dock open) puts the second under the first
   rather than breaking each in two. */
body.desk #taskPane .task-brief-figs{display:flex;flex-wrap:wrap;gap:var(--vx-sp-1) var(--vx-sp-4);margin:0;font-size:var(--vx-fs-6);color:var(--text-2)}
body.desk #taskPane .task-brief-figs>span{white-space:nowrap}
body.desk #taskPane .task-brief-figs b{margin-inline-end:4px;font-family:var(--mono);font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--text)}
body.desk #taskPane .task-brief-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;height:120px;margin-top:14px;padding:12px 4px 0;border-radius:var(--r-compact);background:var(--fill-1)}
body.desk #taskPane .task-brief-bar{display:grid;grid-template-rows:auto 1fr auto;justify-items:center;gap:4px;min-height:0;padding-bottom:8px}
body.desk #taskPane .task-brief-n{min-height:14px;font-family:var(--mono);font-size:var(--vx-fs-3);line-height:14px;font-variant-numeric:tabular-nums;color:var(--text-2)}
body.desk #taskPane .task-brief-fill{align-self:end;width:100%;max-width:26px;height:calc(var(--v) * 100%);min-height:3px;border-radius:var(--radius-3xs) var(--radius-3xs) var(--radius-5xs) var(--radius-5xs);background:var(--fill-3)}
body.desk #taskPane .task-brief-bar.none .task-brief-fill{height:3px;max-width:14px;border-radius:var(--radius-6xs);background:var(--fill-2)}
body.desk #taskPane .task-brief-bar.today .task-brief-fill{background:var(--a)}
body.desk #taskPane .task-brief-bar.today .task-brief-n{color:var(--text)}
body.desk #taskPane .task-brief-d{display:grid;place-items:center;width:22px;height:22px;border-radius:var(--radius-round);font-size:var(--vx-fs-4);color:var(--text-2)}
body.desk #taskPane .task-brief-bar.today .task-brief-d{background:var(--fill-3);color:var(--text);font-weight:600}
body.desk #taskPane .task-brief-plan{margin-top:24px}
/* Collapsed, the dock is a small text box at the bottom right (316px wide, 52px tall, 24px in), or the chat window
   there (360px). 2026-10-26 the lead: the split fills the middle to the right edge as every other page does (this
   replaces 2026-10-22 "needs to stay on its own like when the avatar is fully up"). Over the small box the + stands
   --desk-fab-lift higher and the split ends above it (the split, above), so both clear the box. With the chat window
   open, the pane keeps its height and scrolls its last row above the window (the same room as a page's padding further up). */
body.desk.desk-dock.desk-dock-chat #tasksScreen.task-split-on .task-split-pane{padding-bottom:calc(min(50vh,520px) + 48px)}
body.desk #taskPane .task-brief-plan:active{transform:scale(.97)}
/* A narrow pane (the dock open at 1280 and below): "Waiting" alone, the counts a size down. */
@container taskpane (max-width:520px){
  body.desk #taskPane .task-split-long{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body.desk #taskPane .task-brief-stat{padding:0 12px}
  body.desk #taskPane .task-brief-stat b{font-size:28px}
  /* A count's label may take two lines here rather than end in an ellipsis (27 Oct: "Due today" read "Due tod…" at
     1200-1300 with the dock open); a single word too long for its column still ends in one. */
  body.desk #taskPane .task-brief-stat span{white-space:normal;text-wrap:balance}
  body.desk #taskPane .task-pane-title{font-size:23px}
  body.desk #taskPane .task-sheet-actions{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}
  body.desk #taskPane .task-pane-report-foot .task-report{flex:1 1 auto}
}
@media (prefers-reduced-motion:reduce){body.desk :is(.task-row,#taskPane :is(.btn,.verser-btn,.verser-icon-btn),#taskPane .task-brief-row){transition:background-color 140ms ease}body.desk :is(.task-row,#taskPane :is(.btn,.verser-btn,.verser-icon-btn),#taskPane .task-brief-row):active{transform:none}}
/* A narrow split (the middle under 640px: 552 at 1280 with the dock open; 712 at 1440 with it open, 952 with it shut, so
   those keep the rules above). The list takes 45% and a row is two lines beside its ring: the title, then the percent,
   the pills and the due day. Section heads say "Waiting" alone. */
body.desk #tasksScreen.task-split-on #taskLists{container:tasksplit/inline-size}
/* A middle of 640-799px (1440 with the dock open): the list 47% and the pane 53%, so one-line rows keep room for the title and the pane stays the wider. */
@container tasksplit (min-width:640px) and (max-width:799px){body.desk .task-split{grid-template-columns:minmax(0,47fr) minmax(0,53fr)}}
@container tasksplit (max-width:639px){
  body.desk .task-split{grid-template-columns:minmax(0,45fr) minmax(0,55fr);gap:12px}
  body.desk .task-row{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;column-gap:var(--verser-task-row-gap);row-gap:4px;padding:var(--verser-task-row-padding-block) var(--verser-task-row-padding-inline)}
  body.desk .task-row-state{grid-column:1;grid-row:1 / span 2;align-self:start;margin-top:2px}
  body.desk .task-row-title{grid-column:2;grid-row:1}
  body.desk .task-row-meta{grid-column:2;grid-row:2;display:flex;align-items:center;gap:6px;min-width:0}
  body.desk .task-row-pct{order:0;min-width:0;margin:0}
  body.desk .task-row-due{min-width:0;margin-inline-start:auto;font-size:var(--vx-fs-5)}
  body.desk .task-row+.task-row::before{inset-inline-start:38px}
  body.desk .task-row+.task-row-team::before{inset-inline-start:48px}
  body.desk #taskSplit .task-group-toggle .task-split-long{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body.desk .task-split-pane{padding:18px 16px 22px}
}
/* No tasks at all on a desktop: the kit empty block in the list pane, drawing no second card inside the pane's glass,
   instead of two bare lines in an empty list (the kit's one shape: never a card in a card). The phone keeps its own. */
body.desk #taskSplit .task-split-list>.tasks-empty{margin:0;padding:72px 24px 40px;border-color:transparent;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
/* ---- Team tasks as the same split (tasks-page.js tasksTeamSplitDraw; the lead, 2026-10-22: the switch changes what the
   panes hold, never the layout). A row's state ring is the person's initials (the kit's icon badge); their name sits
   before the title, the status pill says just "Waiting" (the words stay for screen readers). */
body.desk #tasksScreen.task-split-on #tasksTeamList{display:block;margin-top:0;container:tasksplit/inline-size}
body.desk #tasksTeamList #taskSplit .task-section{margin:0}
body.desk #tasksTeamList #taskSplit .task-section+.task-section{margin-top:4px}
body.desk #tasksTeamList #taskSplit .task-section.is-overdue .task-group-toggle .k{color:var(--danger-text)}
body.desk #tasksTeamList #taskSplit .task-section.is-overdue .task-group-toggle .count{color:var(--text-2)}
body.desk #taskSplit .task-av{display:grid;place-items:center;width:var(--verser-task-row-avatar-size);height:var(--verser-task-row-avatar-size);border:1px solid var(--icon-edge);border-radius:var(--radius-round);background:var(--icon-fill);font-size:var(--vx-fs-1);font-weight:600;letter-spacing:.02em;color:var(--text)}
body.desk .task-row-team{min-height:50px}
body.desk .task-row-team .task-row-state{width:var(--verser-task-row-avatar-size);height:var(--verser-task-row-avatar-size)}
body.desk .task-row+.task-row-team::before{inset-inline-start:48px}
body.desk .task-row-who{order:-1;flex:0 1 auto;max-width:32%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--vx-fs-7);font-weight:600;color:var(--text-2)}
body.desk .task-row-team .task-split-long{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* The name and the pills need more room than My tasks' rows: two lines in a list under 560px (1440 with the dock open). */
@container tasklist (max-width:559px){
  body.desk .task-row-team{display:grid;grid-template-columns:var(--verser-task-row-avatar-size) minmax(0,1fr);align-items:center;column-gap:var(--verser-task-row-gap);row-gap:4px;padding:var(--verser-task-row-padding-block) var(--verser-task-row-padding-inline)}
  body.desk .task-row-team .task-row-state{grid-column:1;grid-row:1 / span 2;align-self:center}
  body.desk .task-row-team .task-row-title{grid-column:2;grid-row:1}
  /* Two lines at most: the title (ellipsis), then the name, the pills and the due day on the right; the name gives way first. */
  body.desk .task-row-team .task-row-meta{grid-column:2;grid-row:2;display:flex;flex-wrap:nowrap;align-items:center;gap:6px;min-width:0}
  body.desk .task-row-team .task-row-who{flex:0 1 auto;min-width:0;max-width:100%;font-size:var(--vx-fs-5)}
  body.desk .task-row-team .task-row-meta>.tag{flex:none}
  body.desk .task-row-team .task-row-due{flex:0 1 auto;min-width:0;margin-inline-start:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--vx-fs-5)}
}
/* A list under 280px (1280 wide): the initials stand for the person; the name is in the row's tooltip and label. */
@container tasklist (max-width:279px){
  body.desk .task-row-team .task-row-who{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  /* So the longest pill and a date ("In progress", "Mon 19 Oct") share the line whole. */
  body.desk .task-row-team{column-gap:8px}
  body.desk .task-row-team .task-row-meta{gap:4px}
  body.desk #taskSplit .task-row-team .task-row-meta>:is(.tag,.task-urgency){gap:4px;padding-block:0;padding-inline:5px 6px}
  body.desk .task-row-team .task-row-due{font-size:var(--vx-fs-4)}
}
body.desk #taskSplit .task-row-team .task-status[data-kind="wait"]{--dot:var(--warn)}
body.desk #taskSplit .task-row-team .task-status[data-kind="blocked"]{--dot:var(--bad)}
body.desk #taskSplit .task-row-team .task-status[data-kind="progress"]{--dot:var(--track-fill)}
body.desk #taskSplit .task-row-team .task-status[data-kind="later"]{--dot:var(--text-2)}
/* End times waiting (Approve and Send back on the row, as on the phone): a flat block at the list's top, not a card. */
body.desk #taskSplit .task-card.team-end-time{margin:8px 0 6px;padding:12px 14px;border:1px solid var(--hairline);border-radius:var(--r-compact);background:var(--fill-1);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
body.desk #taskSplit .team-end-time .team-task-decide .btn{border-radius:var(--r-pill)}
@media (pointer:fine){body.desk #taskSplit .team-end-time .team-task-decide .btn{min-height:38px}}
/* The pane with a team task: the review's parts as My tasks' pane lays out its own. */
body.desk #taskPane .task-pane-meta .team-task-person{margin:0;padding:0;font-size:var(--vx-fs-7);font-weight:600;color:var(--text)}
@media (hover:hover) and (pointer:fine){body.desk #taskPane .task-pane-meta .team-task-person:hover{text-decoration:underline;text-underline-offset:3px}}
body.desk #taskPane .task-pane-loading{margin-top:18px;color:var(--text-2)}
body.desk #taskPane .task-review>.task-inline,body.desk #taskPane .task-review>label[for="taskReviewRequirement"]{margin-top:18px}
body.desk #taskPane .task-pane-decide{margin-top:20px}
body.desk #taskPane .task-pane-decide .team-task-decide{margin:0}
body.desk #taskPane #taskReviewBack.task-pane-report:not(.hidden){margin-top:12px}
body.desk #taskPane #taskReviewBack #taskReviewComment{background:var(--chip-fill)}
body.desk #taskPane #taskReviewBack .team-task-send{width:auto;min-height:40px;margin-block:10px 0;margin-inline:auto 0;padding:0 18px;display:flex;border-radius:var(--r-pill)}
/* The team brief: Open on each waiting row, the plain line when nothing waits, a count per person overdue. */
body.desk #taskPane .task-brief-go{flex:none;display:inline-grid;place-items:center;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--chip-fill);font-size:var(--vx-fs-6);font-weight:600;color:var(--text)}
@media (pointer:fine){body.desk #taskPane .task-brief-go{min-height:32px}}
@media (hover:hover) and (pointer:fine){body.desk #taskPane .task-brief-row:hover .task-brief-go{background:var(--fill-2)}}
body.desk #taskPane .task-brief-bit{white-space:nowrap}
/* A narrow pane (1280 and 1440 with the dock open): the waiting row is the button, so Open goes; the title takes up to two
   lines and the second line wraps between its parts instead of cutting them. */
@container taskpane (max-width:520px){
  body.desk #taskPane .task-brief-wait{align-items:flex-start;padding-block:8px}
  body.desk #taskPane .task-brief-wait .task-brief-go{display:none}
  body.desk #taskPane .task-brief-wait .task-brief-main{gap:2px}
  body.desk #taskPane .task-brief-wait .task-brief-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
  body.desk #taskPane .task-brief-wait .task-brief-why{white-space:normal;line-height:1.35}
}
body.desk #taskPane .task-brief-none{margin:0 2px;font-size:var(--vx-fs-8);color:var(--text-2)}
body.desk #taskPane .task-brief-count{flex:none;display:inline-grid;place-items:center;min-width:26px;height:22px;padding:0 8px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--chip-fill);font-family:var(--mono);font-size:var(--vx-fs-4);font-variant-numeric:tabular-nums;color:var(--danger-text)}

/* ---- Agent Hub: a post beside the list it was opened from (hub.js, hubSide), the list on the left as it was, the post
   on the right, held in view while the list scrolls. A profile takes the page. */
body.desk #hubScreen.active[data-side]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);column-gap:var(--desk-gut);align-items:start}
body.desk #hubScreen[data-side]>*{grid-column:1/-1}
body.desk #hubScreen[data-side]>.hub-side-list{grid-column:1;grid-row:2}
body.desk #hubScreen[data-side]>#hubItemView{grid-column:2;grid-row:2;position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
/* The Feed laid out like X (the lead, 2026-10-21): the timeline and, when the middle has room for both (900px or
   more), a rail of 288-360px beside it at the right, against the dock, with Live now, Agents to follow and Your agent;
   the rail's Live now then stands in for the story row. The timeline takes the rest of the width, so the page fills
   the middle like every other (2026-10-23); a reel's 4:5 picture keeps its shape under its height cap instead of
   stretching. With a post open beside the Feed (data-side) or a narrower middle, the timeline takes the column and the
   rail stays hidden. The title and the other Hub views run the page's full width; the tabs belong to the timeline
   column (as on X), so stuck at the top they never run over the rail (the lead, 2026-10-27). The rail always takes
   its full --hub-rail-max here (a 1fr timeline beside it grows only after it), so the tabs stop that far plus the gap
   short of the edge. */
body.desk #hubScreen{container:hubscreen/inline-size;--hub-rail-max:360px;--hub-rail-gap:28px}
@container hubscreen (min-width:900px){
  body.desk #hubScreen:not([data-side]) #hubHome{display:grid;grid-template-columns:minmax(0,1fr) minmax(288px,var(--hub-rail-max));column-gap:var(--hub-rail-gap);align-items:start}
  body.desk #hubScreen:not([data-side]) #hubTabs{margin-inline-end:calc(var(--hub-rail-max) + var(--hub-rail-gap))}
  body.desk #hubScreen:not([data-side]) #hubHome>.hub-rail{display:block;position:sticky;top:72px;max-height:calc(100dvh - 88px);overflow-y:auto;overscroll-behavior:contain}
  /* The small text box or the chat window floats at the bottom right, over the rail's column: the rail stops above it. */
  body.desk.desk-dock-min #hubScreen:not([data-side]) #hubHome>.hub-rail{max-height:calc(100dvh - 172px)}
  body.desk.desk-dock-chat #hubScreen:not([data-side]) #hubHome>.hub-rail{max-height:calc(100dvh - 72px - min(50vh,520px) - 48px)}
  body.desk #hubScreen:not([data-side]) #hubHome:has(#hubRailLive:not(.hidden)) #hubLiveRow{display:none}
}
body.desk #hubScreen .hub-reel-tile{max-width:calc(62dvh * 4 / 5)}
body.desk #hubScreen .hub-feed .hub-reel-tile{max-width:calc(min(62dvh,460px) * 4 / 5)}
body.desk #hubScreen .hub-post-text{max-width:70ch}
/* Chat (9 Nov review, one pane on the lead's word): one glass panel holding the room list on the left (hub-chat.js,
   pinSync) and the room on the right with its composer, a hairline between them; both end on the panel's bottom edge. */
body.desk .hc.hc-pinned{display:grid;grid-template-columns:clamp(260px,26%,320px) minmax(0,1fr);column-gap: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)}
body.desk .hc-pinned>:not(.hc-drop){grid-column:2}
body.desk .hc-pinned>.hc-drop{grid-column:1;grid-row:1;contain:size;border:0;border-inline-end:1px solid var(--vx-hair);border-radius:0;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
body.desk .hc-pinned>.hc-thread{padding-bottom:var(--vx-sp-3);overflow:hidden}
body.desk .hc-pinned>.hc-thread>.hc-box{border:0;border-radius:0;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
body.desk .hc-pinned>.hc-thread>:not(.hc-box){margin-inline:var(--vx-sp-3)}
/* Collapsed, the small text box holds the bottom right (24px up, about 52px tall), and the panel runs to the column's
   right edge under it. The panel keeps 60px under it, which fit() in hub-chat.js counts (the panel's margin), so the
   list and the room end together 60px higher and the composer sits above the box. */
body.desk.desk-dock-min #commsScreen .hc.hc-pinned{margin-bottom:60px}
/* The chat window is up to half the window's height, too tall to stand the bar above it (the room would shrink to its
   180px floor and the page would scroll): with a room open it keeps a column of its own instead, as on the Tasks split,
   and the room's bar and Send end left of it. */
body.desk.desk-dock.desk-dock-chat:has(#commsScreen.screen.active .hc-compose){--dock-w:384px}

body.desk.desk-dock-min #hubScreen[data-side]>#hubItemView{max-height:calc(100dvh - 116px)}
/* The chat window open: the open item would have to stop at half the window's height to clear it, so beside the Inbox
   list and an item open on the Hub the window keeps a column of its own (as on the Tasks split) and the item keeps
   its full height left of it. */
body.desk.desk-dock.desk-dock-chat:has(#inboxScreen.screen.active,#hubScreen.screen.active[data-side]){--dock-w:384px}
