/* Foundation screens: sign-up call to action, organization sign-up, Home, admin, the bottom sheet.
   Every colour is read from the Studio tokens in index.html; this file defines none of its own. */
.field-label{display:block;margin:14px 2px 6px;font-size:var(--vx-fs-6);font-weight:500;line-height:1.35;color:var(--text-2)}
.form-submit{margin-top:14px}
/* One error style everywhere: --bad and a leading dot, so a failure never reads like an ordinary status line. */
.status-error{color:var(--danger-text)}
.status-error:not(:empty)::before{content:"";display:inline-block;width:6px;height:6px;margin-block:0 1px;margin-inline:0 var(--vx-sp-2);border-radius:var(--radius-round);background:currentColor;vertical-align:middle}
/* Rows loading (loadingEl): the kit row shapes stack as the rows will, with no gap of their own. */
.verser-loading[data-shape="rows"]{gap:0}
/* A failure with no list of its own: Try again under the words, a full-size button. */
.note>.retry-btn,.parley-status>.retry-btn{display:flex;margin-top:8px}
/* Loading (workspace.js setLoading): the kit's loading bar (ui/components/loading) in the list's own box, shown only after
   400ms, across the whole row of a grid list. */
.skel{grid-column:1/-1}
/* An empty status line takes no space. */
.note[role=status]:empty{display:none}
/* A consequence of saving, not a hint: it reads in the warning colour the warn buttons use. */
.note.warn-note,.warn-text{color:var(--warn-text)}
.list[data-empty]:empty::after{content:var(--list-empty-text,'Nothing here yet.');font-size:var(--vx-fs-8);color:var(--text-2)}
#invitationDetails{user-select:all;overflow-wrap:anywhere}
.row b,.row small,.title h2,.agent-head h3{overflow-wrap:anywhere}
.agent-phone>.panel{margin-top:0}

/* ---- Home ---- */
/* Home on the kit in place (10 Nov): its panels are .vx-card.vx-panel with a .vx-panel-head and a .vx-title, lists
   .vx-rows of .vx-row, buttons .vx-btn, empties .vx-empty, notes .vx-help. What is left here is layout, by Home's own
   ids and classes, on tokens. The greeting and the work status (above the panels) keep their own rules. */
.home-panel{margin-block-start:var(--space-3)}
.home-notice-text{margin:0;font:var(--vx-fw-medium) var(--vx-fs-9)/1.45 var(--vx-font);color:var(--vx-ink)}
.home-notice-message:empty{display:none}
/* A quiet button under a list (See all, Add a task, Connect calendar, More): its words start on the rows' edge, its
   padding (and hover fill) reaching out before it. */
:is(.home-more,.home-task-all,.home-waiting-all,.home-cal-connect,.home-cal-more){margin-inline-start:calc(var(--vx-btn-px-sm) * -1)}
/* The greeting is Home's title row, under the menu row; who and where sit under it as free text, no card. */
.home-head{margin-block:calc(var(--vx-sp-1) * -1) var(--vx-sp-4);margin-inline:0}   /* on the cards' edge, as the page head (layout pass) */
.home-head .note{margin-block:var(--vx-sp-0h) 0;margin-inline:0}
.home-head .note:first-child{margin-block-start:0}
.home-head .note:empty{display:none}
/* Who and where on one line, "Director · Admin · YouVerse", breaking at a separator when it must (02-31). */
/* Each part stays whole; a separator sits before each part, and the one that would start a line is clipped away. */
.home-head .home-who{display:flex;flex-wrap:wrap;margin-inline-start:-1.6em;clip-path:inset(0 0 0 1.6em)}
[dir="rtl"] .home-head .home-who,.home-head .home-who:dir(rtl){clip-path:inset(0 1.6em 0 0)}
.home-who>span{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.home-who>span::before{content:"·";display:inline-block;width:1.6em;text-align:center}
.home-who>span:empty{display:none}
.home-who:not(:has(>span:not(:empty))){display:none}
#homeTitle{text-wrap:balance}
/* My tasks (H1-H3): a row is the tick, then the body: the title, the overdue words, the urgency badge, the state pill
   when not plain open, then the due line. A row ticked done stays a beat, struck through, then the list closes over it. */
#homeTaskList .home-task-tick{flex:none;margin-inline:var(--vx-sp-2h)}
#homeTaskList .task-body{min-block-size:var(--tap-min)}
#homeTaskList .task-sub{display:flex;flex-wrap:wrap;align-items:center;gap:var(--vx-sp-1h);min-block-size:var(--vx-pill-h);white-space:normal}
#homeTaskList .task-sub>.task-meta{margin:0;min-inline-size:0;max-inline-size:100%}
/* The due line wraps (a long "Assigned by" name breaks onto the next line inside the card), never cut: each part keeps
   its own direction in an Arabic row, whether or not the Tasks page's ellipsis rule has loaded. */
#homeTaskList .task-meta .meta-part{display:inline;white-space:normal;unicode-bidi:isolate}
#homeTaskList .task-meta:not(:has(.meta-part)){display:none}
#homeTaskList .home-task.task-done .task-title{text-decoration:line-through;text-decoration-color:currentColor;color:var(--vx-ink-3)}
#homeTaskList .home-task{transition:opacity var(--vx-dur-mid) var(--vx-ease)}
#homeTaskList .home-task.task-done{opacity:.6}
@media (prefers-reduced-motion:reduce){#homeTaskList .home-task{transition-duration:var(--vx-dur-fast)}}
/* Empty: the words, and Add a task as a quiet button under them, at the start, not a centred hero. */
#homeTaskList .home-task-empty{justify-items:start;text-align:start;padding:var(--vx-sp-2) 0}
/* Team pulse, compact (29 Oct, the lead: "team pulse should not be that big whatsoever"): a small avatar whose dot says
   the state the words say, the name and the day on one line; the day gives way first. An admin's department picker
   sits on the head line. The summary is the title's second line. */
.pulse-head{flex-wrap:wrap}
.pulse-head .pulse-picker{flex:none;max-width:60%}
/* Rows the tap target tall at most, with no line between them: in two or more columns a line under one column's row
   and not the next reads as a gap. */
#staffList>.pulse-row{padding-block:var(--vx-sp-1h);border-block-start-width:0}
/* Under a finger a row is the 44px target (46: the 30px avatar and 8px over and under it). */
@media (pointer:coarse){#staffList>.pulse-row{padding-block:var(--vx-sp-2)}}
#staffList .pulse-text{display:flex;align-items:baseline;gap:var(--verser-pulse-line-gap);min-width:0}
#staffList .pulse-name{flex:0 1 auto;flex-shrink:0;max-width:62%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#staffList .pulse-line{flex:0 10 auto;min-width:0}
/* The people in one column on a phone, five of them; side by side as the card widens (300px a column and the gap: two
   columns from a 652px card, three from 972px, four from 1292px; container queries cannot read a variable), two lines
   of them. See all shows only when someone is left out; with .pulse-all everyone shows. */
#teamPulsePanel{container:pulse/inline-size}
#staffList{grid-template-columns:minmax(0,1fr);column-gap:var(--verser-pulse-col-gap)}
#staffList>.home-empty{grid-column:1/-1}
#teamPulseMore{display:none;justify-self:start}
@container pulse (width < 652px){
  #teamPulsePanel:not(.pulse-all) #staffList>.pulse-row:nth-child(n+6){display:none}
  #teamPulsePanel:has(#staffList>.pulse-row:nth-child(6)) #teamPulseMore{display:inline-flex}
}
@container pulse (652px <= width < 972px){
  #staffList{grid-template-columns:repeat(2,minmax(0,1fr))}
  #teamPulsePanel:not(.pulse-all) #staffList>.pulse-row:nth-child(n+5){display:none}
  #teamPulsePanel:has(#staffList>.pulse-row:nth-child(5)) #teamPulseMore{display:inline-flex}
}
@container pulse (972px <= width < 1292px){
  #staffList{grid-template-columns:repeat(3,minmax(0,1fr))}
  #teamPulsePanel:not(.pulse-all) #staffList>.pulse-row:nth-child(n+7){display:none}
  #teamPulsePanel:has(#staffList>.pulse-row:nth-child(7)) #teamPulseMore{display:inline-flex}
}
@container pulse (width >= 1292px){
  #staffList{grid-template-columns:repeat(4,minmax(0,1fr))}
  #teamPulsePanel:not(.pulse-all) #staffList>.pulse-row:nth-child(n+9){display:none}
  #teamPulsePanel:has(#staffList>.pulse-row:nth-child(9)) #teamPulseMore{display:inline-flex}
}
#homeScreen>.title .k{margin-block-end:var(--vx-sp-1)}
/* Waiting for you (home-waiting.js): the kit's rows; the body opens the item. Verify and Approve are buttons; a row that
   only opens says its verb as a quiet ghost button with the chevron. The acting / done / failed words go under the row. */
#homeWaitingList .home-waiting-row{flex-wrap:wrap}
#homeWaitingList .home-waiting-open{min-block-size:var(--tap-min)}
#homeWaitingList .home-waiting-actions{flex:none}
#homeWaitingList .home-waiting-status{flex-basis:100%;margin:0}
#homeWaitingList .home-waiting-status:empty{display:none}
/* The private agent's header line: "N waiting for you" (home-waiting.js), a button with a 44px target that keeps the
   16px line (its padding reaches above and below it). */
.story-stats:has(.story-waiting){overflow:visible}
.story-waiting{display:inline-flex;align-items:center;gap:4px;margin-block:-14px;padding-block:14px;padding-inline:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.story-waiting b{color:var(--text)}
.story-waiting:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring);outline-offset:-10px;border-radius:var(--radius-xs)}
/* Home's work status, a full-width long card under the greeting. The dot is grey while inactive and, only when the
   server says a day is open, green and breathing like the "Listening" dots. It is the kit's dot (ui/components/dot,
   data-size="lg" data-halo); the state classes set its tone and its pulse. */
.work-status-row{display:flex;align-items:center;gap:12px}
.work-status-text{flex:1 1 auto;min-width:0;font-size:var(--vx-fs-10);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
/* One line only (the lead, 2026-09-22): the dot, then "Work status · …" beside it, then the button on the right.
   No detail line and no message line, so the card keeps its size in every state and while it is tapped. */
.work-status-row .btn{flex:none;min-width:104px;padding:0 12px;white-space:nowrap}
.work-dot.active{--verser-dot-tone:var(--success);--verser-dot-pulse:running}
/* Breaks (2026-09-25): icon buttons in place of the worded one, so the row stays one line with two of them; an amber
   dot and the frozen worked time beside the break timer while on a break. */
.work-status-row .btn.work-icon-btn{min-width:44px;width:44px;padding:0;border-radius:var(--vx-r-round)}
.work-status-row{gap:8px}
/* On a phone (review, 2026-09-25) the break timer and the worked time are read in full beside the two 44px buttons: tight
   gaps, "Break" and "Work" as the words, the worked time at 12px. The worked time is the frozen one, so it yields first,
   and below 360px, where both cannot fit, it is left out rather than cut (the chevron goes first, below 375px). */
.work-status-worked{flex:0 1000 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--text-2);font-size:var(--vx-fs-4);white-space:nowrap;font-variant-numeric:tabular-nums}
@container card (width < 294px){.work-status-worked{display:none}}
/* D12: the dot and the times are one button that opens today's attendance; it looks like the bar, not like a button. */
.work-status-open{display:flex;align-items:center;gap:var(--vx-sp-1h);flex:1;min-width:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:start;cursor:pointer}
.work-status-open:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:var(--radius-3xs)}
/* UI polish B1: the work day leads Home. A chevron beside the words says the bar opens attendance (02-18); the dot sits
   8px from them. On narrow phones the chevron (the hint) goes first, below 375px; the worked time below 360px.
   Since 29 Oct every button is its icon alone, on a phone as in the desktop pill (the lead picked the icon pill): "Start
   my day" and "End my day" are the main button's label and title, the word beside the icon is gone. */
#workStatusPanel{padding-top:14px;padding-bottom:14px}
/* Since 27 Oct these steps follow the card's own width (it is a kit panel, a container named card), not the window's:
   each @container width below is the card's inside at the window width the step was tuned at (the card is the window
   less 66px on a phone: 400 -> 334, 390 -> 324, 375 -> 309, 360 -> 294, 340 -> 274), so a phone reads exactly as before,
   and a card that is narrow for another reason (a narrow column) takes the same steps. */
#workStatusPanel .work-status-text{flex:0 1 auto;font-size:var(--vx-fs-12);font-weight:600}
.work-status-chev{flex:none;width:16px;height:16px;margin-inline-start:2px;color:var(--text-2)}
#workStatusPanel.break .work-status-chev{display:none}
.work-main-btn .icon{flex:none;width:18px;height:18px}
@container card (width < 334px){#workStatusPanel .work-status-text{font-size:var(--vx-fs-10)}}
@container card (width < 309px){#workStatusPanel .work-status-chev{display:none}}
/* On a phone the gaps are 4px, so a worked time of 10 hours or more ("Work 10:59:59") fits beside the break timer at 375px. */
@media (max-width:699px){.work-status-open{gap:var(--vx-sp-1)}.work-status-row{gap:var(--vx-sp-2)}}
#workStatusOpen{gap:var(--vx-sp-2)}#workStatusOpen .work-status-worked{margin-inline-start:calc(var(--vx-sp-1) * -1)}
/* The bar is a 44px target under a finger: as tall as the row its 44px buttons make, so the card keeps its height. */
#workStatusOpen{min-block-size:var(--tap-min)}
/* On a break both timers need the room: the tight 4px gaps and 15px words of before. */
/* While a day runs the time is never cut: only the words "Work day ·" may shrink, and below 390px they are "Work ·". */
#workStatusLabel.timed{display:flex;align-items:baseline;overflow:visible}
/* At 320px, beside Take a break and End day, the 8px gaps left "Active · 9:17:59" 1px short ("Activ…"); 6px gaps and the
   chevron flush give it 6px more. */
@container card (width < 309px){#workStatusPanel.active:not(.break) #workStatusOpen{gap:6px}#workStatusPanel.active:not(.break) .work-status-chev{margin-inline-start:0}}
.work-status-word{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.work-status-time{flex:none;white-space:pre}
/* Below 390px "Active ·" and the running time take one size down, so the time is always read in full beside the buttons. */
@container card (width < 324px){#workStatusLabel.timed{font-size:var(--vx-fs-8)}}
#workStatusPanel.break #workStatusOpen{gap:4px}#workStatusPanel.break .work-status-worked{margin-inline-start:0}#workStatusPanel.break .work-status-text{font-size:var(--vx-fs-10)}
/* Inter (27 Oct) runs about 4px wider than Geist did over both timers: a touch of tracking keeps a long day's worked time whole at 375px. */
#workStatusPanel.break :is(.work-status-text,.work-status-worked){letter-spacing:-.015em}
/* The Change end time sheet (Home's idle notice) keeps the app's field edge on focus, as the Tasks forms do. */
.attendance-end-time{--verser-field-focus-border:var(--field-edge)}
.work-dot.break{--verser-dot-tone:var(--warn)}
/* Reserved whether or not there is anything to say, so starting or ending the day adds no line to the card. */
/* No reserved space: the Home card says nothing after Start or End (the lead, 2026-09-22); only a failure appears here. */
#workStatusMessage{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#workStatusMessage:empty{display:none}
.workday-days{display:flex;flex-wrap:wrap;gap:6px 12px;margin:4px 0 8px}
.workday-days label{display:flex;align-items:center;gap:6px;font-size:var(--vx-fs-8)}
/* A finger: each day is a 44px row to tap (its box and its name), the mouse layout unchanged. */
@media (pointer:coarse){.workday-days label{min-block-size:var(--tap-min)}}
#teamPulseSummary:empty{display:none}

/* ---- Agents tab: the create card, then a fixed 130px glass card per agent, flowing from the left.
   Glass level set with the panels in index.html. ---- */
/* An agent card (ref/agent_menu.jpeg): the portrait large and square on top, which opens the agent; Follow and the
   heart with its count over the portrait's lower edge; name, role on one line and whose it is under it; Tools and
   Edit for someone who manages the agent. A live agent carries a LIVE mark and a ring. */
.agent-card,.agent-create-card{position:relative;min-width:0;border-radius:var(--r-compact);color:var(--text);text-align:start}
.agent-card{display:flex;flex-direction:column;overflow:hidden;padding:0}
.agent-card.live{box-shadow:0 0 0 2px var(--live),var(--shadow)}
.agent-card-role{display:block;font-size:var(--vx-fs-4);line-height:1.35;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agent-card-owner{display:block;font-size:var(--vx-fs-4);line-height:1.35;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agent-create-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;min-height:170px;padding:12px;font-size:var(--vx-fs-6);font-weight:600;line-height:1.3;text-align:center;transition:opacity .12s ease}
.agent-create-card .icon{width:28px;height:28px}
.agent-create-card:active{opacity:.72}

/* Delete, everywhere (2026-10-03): this 44px bin with "Delete <name>" as its name (.trash-btn). */
.btn.trash-btn{flex:none;display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;background:none;box-shadow:none;color:var(--text-2)}
.trash-btn .icon{width:20px;height:20px}
.trash-btn:active:not(:disabled){opacity:.72}
@media (hover:hover) and (pointer:fine){.trash-btn:hover{color:var(--danger-text)}}
/* An inline add (beside or under a field), everywhere (2026-10-03): a secondary button, the FAB's + and its label. */
.btn.add-btn{min-height:44px}
.add-btn .icon{flex:none;width:18px;height:18px}
.check-row{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:var(--vx-fs-6);line-height:1.4;color:var(--text-2)}

#profileSidebar [role="switch"].menu-fixed::after{opacity:.45}
/* The drawer: a row taken out of the menu (Settings > Menu) is gone. */
#nav .menu-off{display:none}
/* ---- Tasks: one glass panel per list the server sends (the cards themselves are tasks-page.css).
   Titles, notes and buttons in Inter; the due day and where a task came from in the machine voice. ---- */
#tasksLaterNote:empty{display:none}
#tasksLaterNote{margin:12px 4px 0;font-size:var(--vx-fs-5)}
.task-list-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:2px}
.task-list-head .k{margin:0}
.task-list-head .count{color:var(--text-2)}
.task-empty{margin:10px 0 2px;font-size:var(--vx-fs-6);line-height:1.45;color:var(--text-2)}
.task{padding:14px 0 12px}
.task+.task{border-top:1px solid var(--row-edge)}
.task-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.task-title{display:block;min-width:0;font-size:var(--vx-fs-9);line-height:1.35;overflow-wrap:anywhere}
.task-done .task-title{color:var(--text-2)}
.task-meta{margin:4px 0 0;font-family:var(--mono);font-size:var(--vx-fs-4);font-weight:500;line-height:1.45;letter-spacing:0;color:var(--text-2);overflow-wrap:anywhere}
.task-summary{margin:6px 0 0;font-size:var(--vx-fs-6);line-height:1.5;color:var(--text-2);white-space:pre-wrap;overflow-wrap:anywhere}
.task-notes{display:grid;gap:6px;margin:10px 0 0;padding:0;list-style:none}
.task-notes li{padding-inline-start:10px;border-inline-start:2px solid var(--line);font-size:var(--vx-fs-6);line-height:1.45;overflow-wrap:anywhere}
.task-note-at{display:block;font-family:var(--mono);font-size:var(--vx-fs-2);font-weight:500;letter-spacing:0;color:var(--text-2)}
.task-actions{gap:6px;margin-top:10px}
.task-actions>.btn{padding:0 10px;font-size:var(--vx-fs-6);box-shadow:none}

/* ---- Live microphone: the always-listening mic in the text bar and the line above it. The green
   "listening" state follows the recognition engine, never the intent. ---- */
/* ---- Attach in the text bar (workspace.js, CHAT ATTACHMENTS): the paperclip beside EN, and a chip per file above the bar.
   The bar is the kit's composer (44px buttons); narrow phones narrow EN, the paperclip and the mic so the box keeps room. ---- */
@media (max-width:399px){
  .story .composer #attachBtn{width:38px}
  .story .composer #liveMicBtn{width:40px}
}
/* Narrowed, the paperclip and the mic still take a finger's 44px: an invisible area of their own runs into the gaps
   beside them (never over EN, the text or Send). Below 360 the row is too tight for it. */
@media (min-width:360px) and (max-width:399px) and (pointer:coarse){
  .story .composer :is(#attachBtn,#liveMicBtn)::after{content:"";position:absolute;inset-block:0;inset-inline:min(0px,calc((100% - var(--vx-h)) / 2))}
}
/* At 320 the message box keeps the placeholder on one line: EN, the paperclip and the mic go to 34px, Send to 38px, 2px apart. */
@media (max-width:359px){
  .story .composer{--verser-composer-gap:2px}
  .story .composer :is(#langBtn,#attachBtn,#liveMicBtn){width:34px}
  .story .composer.verser-composer.verser-composer{--_verser-composer-lang:34px}   /* under the smallest phone (360) only: the placeholder keeps its line */
  .story .composer #sendBtn{width:38px}
  .story .composer textarea::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
/* ---- My Agent on the kit: token overrides (Verser chat, the docked agent, the floating agent and the builder). The
   screen's own rules above and in index.html still draw it; these keep the kit classes beside them from changing it. ---- */
/* The press as before: every .btn scales to .97 (minimal.css), the other buttons do not scale. */
:is(#liveScreen,#agentFab) :is(.verser-btn,.verser-icon-btn):not(.btn){--verser-button-press-scale:1}
:is(#liveScreen,#agentFab) .btn:is(.verser-btn,.verser-icon-btn){--verser-button-press-scale:.97}
/* A primary button keeps the pressed tint every .btn takes. */
:is(#liveScreen,#agentFab) .verser-btn[data-variant="primary"]:active:not(:disabled):not([aria-disabled="true"]){box-shadow:inset 0 0 0 100px var(--pressed)}
/* Pressed, a filled icon button keeps its own fill (the app's .btn press is an inset tint over it). */
.composer .verser-icon-btn:not([data-variant~="primary"]),#agentFabMic{--verser-button-pressed:var(--fill-2)}
#dockToggle,#liveEditBtn{--verser-button-pressed:var(--glass-solid)}
#liveEditBtn{--verser-icon-button-fill-hover:var(--glass-solid)}
@media (hover:hover){#liveMicBtn.paused.verser-icon-btn:hover{color:var(--text-2)}}
/* An element hidden with the hidden attribute stays hidden under the kit's display. */
#dockToggle[hidden]{display:none}
/* The agent's picture (.verser-avatar data-variant="agent") keeps its own ring, type and line: on Verser the 2px cyan
   halo of .story .av, in the collapsed dock's launcher none. */
:is(#liveMini,#dockLauncherFace).verser-avatar{--verser-avatar-agent-ring:transparent;text-transform:none;white-space:normal;user-select:auto}
#liveMini.verser-avatar{line-height:inherit}
#liveWhere{--verser-pill-height:0px}
/* Quiet icon buttons (remove on a chat file chip) keep their own press
   (a fade) and no hover fill or colour change. */
.chat-attach-remove.verser-icon-btn{--verser-button-pressed:transparent;--verser-icon-button-fill-hover:transparent}
@media (hover:hover){.chat-attach-remove.verser-icon-btn:hover{color:var(--text-2)}}
/* The kit's desktop chip size (36px, 12px sides) does not reach the chat's own chips: Tap to hear, Join and Open stay
   44px with 14px sides, a file chip 36px with its 12/4 sides (4 at the start beside a photo). */
.verser-chip.news-hear{min-block-size:44px;padding-inline:14px}
.verser-chip.chat-attach{min-block-size:36px;padding-inline:12px 4px}
.verser-chip.chat-attach.photo{padding-inline-start:4px}
.verser-chip:is(.news-hear,.source-chip,.chat-attach,.agent-fab-hear):active{transform:none}
/* The inbox count on Live keeps its own type (Inter 10.5/700), not the kit's mono badge. */
#liveInboxBadge{--verser-badge-font:var(--font);--verser-badge-font-size:10.5px;--verser-badge-font-weight:700}
#attachBtn .icon{width:20px;height:20px}
.chat-attachments{flex:none;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px}
.chat-attach{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:36px;padding-block:0;padding-inline:12px 4px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--story-glass,var(--fill-3));color:var(--text);font:500 12px/1.2 var(--font)}
.chat-attach-name{min-width:0;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-attach.photo{padding-inline-start:4px}
.chat-attach-thumb{flex:none;width:28px;height:28px;border-radius:var(--radius-3xs);object-fit:cover}
.chat-attach-state{flex:none;font-size:var(--vx-fs-2);font-weight:600;color:var(--text-2)}
.chat-attach.failed{border-color:var(--bad)}
.chat-attach.failed .chat-attach-state{color:var(--danger-text)}
.chat-attach.sending{opacity:.6}
.chat-attach-retry{flex:none;min-height:32px;padding:0 8px;border:0;background:none;color:var(--text);font:600 12px/1 var(--font);text-decoration:underline;cursor:pointer}
.chat-attach-remove{flex:none;display:inline-grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:var(--radius-round);background:none;color:var(--text-2);cursor:pointer}
.chat-attach-remove .icon{width:16px;height:16px}
.msg-attached{display:block;margin-top:4px;font-size:var(--vx-fs-4);font-weight:500;line-height:1.4;color:var(--text-2);overflow-wrap:anywhere}
/* A file attached from the Drive: the Drive's mark on its chip, and a chip under the sent message that opens it there. */
.chat-attach-drive{flex:none;width:16px;height:16px;color:var(--text-2)}
.msg-drive-files{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.msg-drive-file .icon{flex:none;width:14px;height:14px;color:var(--text-2)}
#liveMicBtn .icon{width:20px;height:20px}
#liveMicBtn.listening{border-color:var(--green);background:var(--green);box-shadow:none;color:var(--on-success)}
#liveMicBtn.paused{color:var(--text-2)}
.live-mic-status{flex:none;display:flex;align-items:center;gap:6px;margin:0;font-size:var(--vx-fs-4);font-weight:600;line-height:1.35;color:var(--text-2)}
.live-mic-status:has(#liveMicStatusText:empty):not(:has(#liveListenNow:not(.hidden))){display:none}
.live-mic-status.live{color:var(--green)}
.live-mic-status.live .dot{--verser-dot-tone:var(--success);--verser-dot-pulse:running}
.live-mic-status.blocked{color:var(--danger-text)}
.live-mic-status.blocked .dot{--verser-dot-tone:var(--danger)}
/* On short screens the button column reaches down to the chat; the line keeps clear of it as the chat does. */
@media (max-height:760px){body:not(.verser-open) .live-mic-status{margin-inline-end:52px}}
@media (max-height:600px){body:not(.verser-open) .live-mic-status{margin-inline-end:48px}}
/* Listen now: shown only once a reply has held the microphone for several seconds (workspace.js, LISTEN NOW). */
.listen-now{flex:none;min-height:44px;padding:0 12px;font-size:var(--vx-fs-4);font-weight:600;box-shadow:none}
.live-mic-status .listen-now{margin-inline-start:auto}
#meetingListenNow{display:block;margin:10px 0 0}
/* The pending count on Live's Inbox button: the server's pendingCount, 99+ above 99. */
#liveInboxBtn{position:relative}
/* The right column on Verser: Go Live, Parley, Tools, Edit and Social, with Meeting (the agent has the meetings tool)
   and Inbox (the person manages the agent). With the stage the full height of the screen, all seven stay 44px in one
   column above the text bar at 390x844 and 375x667; below 600px of height they step down to 40px (index.html). */
/* The badge is the kit's count badge (.verser-badge: the 18px pink pill, its mono type); on the kit, token overrides keep
   its own size and weight (10.5/700) and night text, and it sits 3px over the button's top inline-end corner. */
.story-badge{--verser-badge-font-size:10.5px;--verser-badge-font-weight:700;--verser-badge-text:var(--night-floor);position:absolute;top:-3px;inset-inline-end:-3px;line-height:18px;pointer-events:none}

/* ---- Meeting room: before, recording, minutes, all on one screen.
   What was said is reading text, in Inter; the times and the capacity count are in the mono. Nothing on this screen plays audio. ---- */
#meetingMicBtn .icon{width:18px;height:18px}
/* "Listening" is only ever on screen while recognition is actually running: the class follows the
   engine, not the intent, so a paused or refused microphone can never read as listening. */
.meeting-status{display:inline-flex;align-items:center;gap:8px;margin:14px 0 0;padding:6px 12px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--chip-fill);font-size:var(--vx-fs-5);font-weight:600;line-height:1.3;color:var(--text-2)}
.meeting-status.live{border-color:color-mix(in srgb,var(--green) 45%,transparent);color:var(--green)}
.meeting-status.live .dot{--verser-dot-tone:var(--success);--verser-dot-pulse:running}
.meeting-status.paused{border-color:color-mix(in srgb,var(--warn) 45%,transparent);color:var(--warn-text)}
.meeting-status.paused .dot{--verser-dot-tone:var(--warn)}
.meeting-status.blocked{border-color:color-mix(in srgb,var(--bad) 45%,transparent);color:var(--danger-text)}
.meeting-status.blocked .dot{--verser-dot-tone:var(--danger)}
.meeting-capacity{margin-top:10px;font-family:var(--mono);font-size:var(--vx-fs-4);font-weight:500;letter-spacing:0}
.meeting-capacity.status-error{font-family:var(--font);font-weight:500}
/* One spoken line: who said it (Inter), then the words themselves (Inter, reading text). */
.meeting-line{display:grid;gap:3px;padding:11px 0}
.meeting-line+.meeting-line{border-top:1px solid var(--row-edge)}
.meeting-who{display:flex;align-items:baseline;gap:8px;font-size:var(--vx-fs-6);font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.meeting-when{flex:none;font-family:var(--mono);font-size:var(--vx-fs-2);font-weight:500;letter-spacing:0;color:var(--text-2)}
.meeting-said{margin:0;font-family:var(--font);font-size:var(--vx-fs-10);font-weight:400;line-height:1.55;letter-spacing:0;overflow-wrap:anywhere}
/* Said but not yet accepted by the server: it stays on screen and says what it is. */
.meeting-line.unsent .meeting-said{color:var(--text-2)}
.meeting-unsent{font-family:var(--font);font-size:var(--vx-fs-2);font-weight:600;color:var(--warn-text)}
/* A guess the engine may still change: never posted, and grey at the end of the caption. */
.meeting-said.meeting-guess{color:var(--placeholder)}
/* Side talk (coffee, jokes, personal chat): kept in the transcript, shown muted, left out of the minutes and notes. */
.meeting-said.meeting-side{color:var(--placeholder);font-style:italic}
/* Side talk next to each other folds into one dimmed row; a tap opens it. Its lines, and a business line tapped, carry
   one small action to move the line (a wrong sort tapped back). */
.meeting-fold{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:2px 10px;border:1px dashed var(--row-edge);border-radius:var(--radius-pill);background:transparent;color:var(--placeholder);font-family:var(--font);font-size:var(--vx-fs-4);font-weight:600;font-style:normal;line-height:1.3;letter-spacing:0;vertical-align:baseline;cursor:pointer}
.meeting-fold::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .16s ease}
.meeting-fold.open::after{transform:translateY(1px) rotate(-135deg)}
.meeting-fold:hover,.meeting-fold:focus-visible{color:var(--text-2);border-color:var(--selected-edge)}
.meeting-fold-row{padding:8px 0}
.meeting-flip{min-height:24px;margin-inline-start:6px;padding:1px 8px;border:1px solid var(--row-edge);border-radius:var(--radius-pill);background:transparent;color:var(--text-2);font-family:var(--font);font-size:var(--vx-fs-2);font-weight:600;font-style:normal;line-height:1.3;letter-spacing:0;vertical-align:baseline;cursor:pointer}
.meeting-flip:hover,.meeting-flip:focus-visible{color:var(--text);border-color:var(--selected-edge);background:var(--pressed)}
.meeting-who .meeting-flip{margin-inline-start:auto}
/* Both stay small to look at, but a finger gets 44px: an invisible hit area centred on the button, at least 44px each
   way (the fold's chevron is its ::after, so the hit area is ::before on both). */
.meeting-fold,.meeting-flip{position:relative}
.meeting-fold::before,.meeting-flip::before{content:"";position:absolute;top:50%;left:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}
#meetingTranscript [data-id]:not(.meeting-side-line),#meetingTranscriptFull [data-id]:not(.meeting-side-line){cursor:pointer}
@media (prefers-reduced-motion:reduce){.meeting-fold::after{transition:none}}
/* In the room: one running caption, four lines tall; older words flow off the top, fading as they go. */
.meeting-room-caption{max-height:calc(17px * 1.55 * 4);overflow:hidden}
.meeting-room-caption.overflowing{-webkit-mask-image:linear-gradient(to bottom,transparent,var(--mask-opaque) 1.6em);mask-image:linear-gradient(to bottom,transparent,var(--mask-opaque) 1.6em)}
.meeting-room-caption p{margin:0;font-family:var(--font);font-size:var(--vx-fs-13);line-height:1.55;letter-spacing:0;overflow-wrap:anywhere}
.meeting-room-caption .meeting-line{display:inline;padding:0;border:0}
.meeting-room-caption .meeting-said{font-size:inherit;line-height:inherit}
/* EN / AR, for a meeting held in both: what this person speaks, on their own screen. */
.meeting-lang{display:flex;flex:none;gap:4px}
.meeting-lang .btn{min-width:44px;padding-inline:10px}
.meeting-lang .btn[aria-pressed="true"]{border-color:var(--selected-edge);background:var(--pressed);box-shadow:inset 0 0 0 1px var(--selected-edge);color:var(--text)}
/* The kit's hover light is an inset shadow too; the chosen language keeps its ring under it. */
@media (hover:hover) and (pointer:fine){
  .meeting-lang .btn.verser-btn[aria-pressed="true"]:not(:disabled):not([aria-disabled="true"]):not(:active):not([data-variant="primary"]):hover{box-shadow:inset 0 0 0 1px var(--selected-edge),inset 0 0 0 100px var(--verser-button-hover,var(--surface-fill-1))}
}
.meeting-rec{margin-top:14px}
.meeting-rec b{display:block;font-size:var(--vx-fs-6);line-height:1.35}
.meeting-rec ul{margin:6px 0 0;padding-inline-start:20px}
.meeting-rec li{margin-top:5px;font-size:var(--vx-fs-7);line-height:1.5;color:var(--text-2);overflow-wrap:anywhere}
.meeting-rec-at{margin-top:12px;font-family:var(--mono);font-size:var(--vx-fs-2);font-weight:500;letter-spacing:0;color:var(--text-2)}
/* The risk level is a quiet label beside its heading: no colour, no alarm. */
.meeting-rec-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.meeting-risk{flex:none;font-size:var(--vx-fs-2);font-weight:500;line-height:1.35;color:var(--text-2);opacity:.8}
.meeting-rec-none{margin:6px 0 0;font-size:var(--vx-fs-6);line-height:1.45;color:var(--text-2)}
.meeting-rec-auto{margin-top:8px}
.meeting-rec-auto:empty{display:none}
/* A proposed task is a proposal: a dashed card, a Proposal chip, and no control that gives it to anybody.
   Before approval the organiser may delete one. */
.meeting-task{margin-top:10px;padding:14px;border:1px dashed var(--line);border-radius:var(--r-inner);background:var(--fill-1)}
.meeting-task-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.meeting-task b{display:block;font-size:var(--vx-fs-8);line-height:1.35;overflow-wrap:anywhere}
.meeting-task p{margin:6px 0 0;font-size:var(--vx-fs-5);line-height:1.45;color:var(--text-2)}
/* Approved with the minutes: a solid edge and an Open chip, still with nothing to tap. */
.meeting-task.open{border-style:solid}
.meeting-task.removed{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px;font-size:var(--vx-fs-6);color:var(--text-2)}
.meeting-task.removed span{min-width:0;overflow-wrap:anywhere}
.meeting-task-undo{flex:none;min-height:44px;padding:0 14px;font-size:var(--vx-fs-6);box-shadow:none}
.meeting-quote{margin:8px 0 0;padding-inline-start:10px;border-inline-start:2px solid var(--line);font-family:var(--font);font-size:var(--vx-fs-8);font-weight:400;line-height:1.5;letter-spacing:0;color:var(--text-2);overflow-wrap:anywhere}
#meetingAttendees .row,#meetingRoster .row{grid-template-columns:44px minmax(0,1fr) auto}
#meetingSummaryHint,#meetingTypedNote,#minutesTasksNote,#minutesReadOnlyNote{margin-top:8px}
#minutesReadOnlyNote:empty,#meetingTypedNote:empty{display:none}
#meetingMinutes textarea.field{min-height:96px;overflow-y:hidden;resize:none}
/* Minutes, one section per page: Back, where you are, Next. */
.minutes-pager .invisible{visibility:hidden}
.minutes-arrow{display:grid;place-items:center;padding:0}
/* Both arrows point the way they turn the page: Back toward the start edge, Next toward the end edge, mirrored in Arabic
   (the icon draws pointing left; in Arabic both pointed inward). */
.minutes-arrow.next .icon,.minutes-arrow:not(.next):dir(rtl) .icon{transform:scaleX(-1)}
.minutes-arrow.next:dir(rtl) .icon{transform:none}
/* 04-14: minutes a reader cannot edit read as text, not as fields. */
#meetingMinutes .field[readonly]{min-height:0;padding-inline:2px;border-color:transparent;background:transparent;box-shadow:none;resize:none}
#minutesReadOnlyNote{margin:0 0 10px}
#minutesReadOnlyNote:empty{display:none}
.minutes-pager{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:12px}
#minutesPage{font-size:var(--vx-fs-6);text-align:center;color:var(--text-2)}
.meeting-task-side{display:flex;flex:none;align-items:center;gap:8px}
.meeting-task-top{flex-wrap:wrap;align-items:center;row-gap:6px}
/* The title has the card's full width; the tag and Delete sit on the line under it, Delete at the end. */
.meeting-task-top>b{flex:1 1 100%}
.meeting-task-side{flex:1 1 100%;justify-content:space-between}
.meeting-task p.meeting-task-meta span{display:block}
#minutesSummary{min-height:132px}
/* Your meetings: one tappable row per meeting, its state in words. */
.meeting-list{display:grid;gap:0;margin-top:8px}
/* Loading, failed or empty is said by #meetingListMessage in words: no "Nothing here yet." underneath it. */
#meetingList:empty{display:none}
.meeting-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:56px;padding:10px 0;border:0;border-radius:0;background:none;color:var(--text);font:inherit;text-align:start}
.meeting-list-row+.meeting-list-row{border-top:1px solid var(--row-edge)}
#meetingInviteMore,#meetingCopyLink{margin-top:10px}
.meeting-list-row b{display:block;font-size:var(--vx-fs-8);line-height:1.35;overflow-wrap:anywhere}
.meeting-list-row small{display:block;margin-top:2px;font-size:var(--vx-fs-4);line-height:1.45;color:var(--text-2)}
.meeting-list-row:disabled{opacity:.7}
.meeting-done-when{margin:0 0 4px}
/* House press on the rows and links that had none. */
.meeting-list-row,.work-status-open,.linkbtn{transition:opacity 120ms ease}
.meeting-list-row:active:not(:disabled),.work-status-open:active{opacity:.72}
#meetingListMessage:empty{display:none}

/* What a notification or a link opened (targetFlash, workspace.js): ringed, then the ring fades. */
.is-target{outline:2px solid var(--ring);outline-offset:3px;animation:target-fade 2.6s var(--ease-out) forwards}
@keyframes target-fade{0%,55%{outline-color:var(--ring)}100%{outline-color:transparent}}
@media (prefers-reduced-motion:reduce){.is-target{animation:none}}

/* ---- Inline confirm (the confirm dialog, #confirmHost, is the kit's: ui/components/dialog/dialog.css) ---- */
.confirm-row{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.confirm-row small{flex-basis:100%;font-size:var(--vx-fs-5);line-height:1.45;color:var(--text-2)}
.confirm-row .toolbar{gap:8px}
/* A question under the row it asks about (confirmInline's after): a line of its own under the row's words, on the row's
   own step. */
.confirm-row[data-place="after"]{display:flex;padding-block-end:var(--vx-row-pad-y)}
/* A sheet's head action that asks (Delete section): the question takes a line of its own under the title and the close,
   which keep their place (beside them it took the title's width and the title stood a letter a line). */
#sheetHead:has(>.confirm-row){flex-wrap:wrap}
#sheetHead>.confirm-row{order:1;flex:1 1 100%;min-inline-size:0}
/* The inline question fades in where the button was (opacity only: its width differs). Reduced motion: the same fade. */
.confirm-row{transition:opacity 150ms var(--ease-out)}
@starting-style{.confirm-row{opacity:0}}
/* While an inline confirm is open in a sheet, the sheet's Cancel/Save step aside: one Cancel on screen. */
.sheet.confirming .sheet-foot{display:none}

/* ---- The glass switch: Sign in / Sign up on login, the three scopes on the Agents tab.
   Glass level set with the bottom nav in index.html. ---- */

/* ---- Form helpers: the hint under a field, the required mark, the link button, a counter ---- */
.field-hint{margin:6px 2px 0;font-size:var(--vx-fs-5)}
.req{color:var(--danger-text)}
.counter{margin:6px 2px 0;text-align:end;font-variant-numeric:tabular-nums}
.plan{width:100%;text-align:start;color:var(--text)}
.review-row{display:grid;grid-template-columns:minmax(88px,38%) minmax(0,1fr);gap:10px;margin:0;padding-top:9px;font-size:var(--vx-fs-5);line-height:1.45;color:var(--text-2)}
.review-row b{font-size:var(--vx-fs-8);font-weight:500;color:var(--text);overflow-wrap:anywhere}
.field-invalid{border-color:var(--bad);box-shadow:0 0 0 1px var(--bad)}

/* ---- Per-agent tool selection ---- */
.tool-row{grid-template-columns:minmax(0,1fr) auto;min-height:64px;cursor:pointer}
.tool-row input{width:24px;height:24px;margin-block:0;margin-inline:0 2px}

/* ---- Admin hub, detail screens and the bottom sheet ---- */
.hub-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;text-align:start}
.glist-row.hub-card{grid-template-columns:auto minmax(0,1fr) auto;gap:14px}
.hub-card>div{min-width:0}
.hub-card p{margin:2px 0 0}
.screen>.hub-card{min-height:72px}
/* 04-20: an Add card's + is a 44px solid chip, so the card reads as the button it is. */
.hub-card .chev.add-chip{display:grid;place-items:center;width:44px;height:44px;border-radius:var(--radius-round);background:var(--primary);box-shadow:none;color:var(--on-primary)}
.hub-card:disabled .chev.add-chip{background:var(--fill-2);box-shadow:none;color:var(--text-2)}
/* Counts in the hub list speak in the machine voice; a failure line stays in Inter. */
#hubDepartmentsNote:not(.status-error),#hubStaffNote:not(.status-error){font-family:var(--mono);font-weight:500}
/* A disabled card is dimmed, but the line saying WHY it is disabled has to stay readable. Opacity on
   the button dims its whole subtree, so it is applied only to the parts that carry no reason. */
.hub-card:disabled>div>b,.hub-card:disabled>div>p:not([role=status]),.hub-card:disabled .chev.add-chip{opacity:.55}
.hub-card:disabled .chev:not(.add-chip){opacity:.3}
.hub-card:disabled{cursor:default}
.detail-list{margin-top:2px}
.detail-list .review-row{align-items:baseline;padding:11px 0}
.detail-list .review-row+.review-row{border-top:1px solid var(--hairline)}
.detail-list .review-row b{white-space:pre-wrap}
/* The sheet's look is the kit's (ui/components/sheet/sheet.css, data-variant="classic" / "modal"). What stays here is the
   app's: drag down from the handle or head to close (workspace.js, dragToDismiss): the sheet follows the finger with no
   transition, and those parts take the vertical touch instead of the page. */
.sheet.dragging{transition:none}
.sheet :is(.sheet-handle,.sheet-head){touch-action:none}
.sheet-body>.field-label:first-child{margin-top:1px}
.field-error{margin:6px 2px 0}
.field-error:empty{display:none}
body.sheet-open{position:fixed;inset-inline:0;width:100%;overflow:hidden}

/* ---- Departments and Staff screens ---- */
.field[readonly]{color:var(--text-2);background:var(--fill-1)}
.card .mono{margin:10px 0;padding:12px 14px;border-radius:var(--r-small);background:var(--fill-2)}
.reset-code{user-select:all;overflow-wrap:anywhere}
/* A field error replaces its own rule hint rather than printing the same sentence twice. */
.sheet-body .field-error:not(:empty)+.field-hint{display:none}

/* ---- Machine voice: JetBrains Mono for meta under a title or name (a role, a time, a status) and nav labels ----
   Full sentences (a card's paragraph, a line under a heading, hints) are in the UI face (the lead's B1, 2 Nov:
   --font-sentence); not for field labels, hints, status or error lines, privacy text, sheet copy or eyebrows. */
.brand span,#profileLabel,#workspaceLabel,#departmentLabel,#jobTitleLabel,.glist-row small,.row small,
.agent-meta,.agent-card-role{font-family:var(--mono);font-weight:500;letter-spacing:0}
/* The tagline shares the bar with Refresh: sized so all 29 characters fit at 375px. */
.brand span{font-size:var(--vx-fs-1);letter-spacing:-.02em}

/* VERSER NEWS: "Tap to hear" under the agent's news when the browser would not play it without a tap. */
.news-hear{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:8px;padding:0 14px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--fill-3);color:var(--text);font:600 12.5px/1 var(--font);cursor:pointer}
.news-hear::before{content:'';width:0;height:0;border-inline-start:8px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}
.news-hear:disabled{opacity:.6;cursor:default}
.news-hear:disabled::before{display:none}
.news-hear + .news-hear{margin-inline-start:8px}
/* The play mark points right in every language (a media glyph does not mirror). */
.news-hear:dir(rtl)::before{border-inline-start:0;border-inline-end:8px solid currentColor}
/* The play mark is for Tap to hear only: Join has no mark, Open its chevron and Try again the refresh icon (inline SVG). */
.news-hear:is(.news-join,.news-open,.chat-retry)::before{display:none}

/* SOURCE CHIPS: what a reply found in the organization's brain, under it; a tap opens it (workspace.js,
   attachSourceChips). The floating agent shows the newest reply's above its bubble. */
.source-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.source-chip{position:relative;display:inline-flex;align-items:center;gap:4px;max-width:100%;min-height:32px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--fill-3);color:var(--text);font:500 12px/1 var(--font);text-align:start;cursor:pointer}
.source-chip::after{content:"";position:absolute;inset:-4px 0}
.source-chip b{flex:none;color:var(--text-2);font-weight:600}
.source-chip b::after{content:" ·"}
.source-chip span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

/* ---- First-run tour (workspace.js, FIRST-RUN TOUR) ---- */
/* The scrim takes every click off the page; the ring's shadow dims everything but the target. */
.tour-scrim{position:fixed;inset:0;z-index:90;background:transparent}
.tour-ring{position:fixed;z-index:91;border:2px solid var(--ring);border-radius:var(--r-inner);box-shadow:0 0 0 9999px var(--scrim),0 0 18px var(--brand-glow);pointer-events:none}
/* The card is a .verser-card: its padding, edge, corners and solid glass come from the card tokens (Tour on the kit:
   token overrides). */
.tour-card{--verser-card-padding:16px;--verser-card-border:var(--line);--verser-card-radius:var(--r-compact);--verser-card-fill:var(--gloss),var(--glass-solid);--verser-card-text:var(--text);
  position:fixed;z-index:92;width:min(340px,calc(100vw - 24px));background-origin:border-box;box-shadow:var(--shadow)}
/* The tour dims in and its card rises 6px into place once, when it starts. Only opacity and transform move: the ring and
   card follow their target through left/top every frame, which must stay instant. Reduced motion: fades only. */
.tour-ring{transition:opacity 250ms var(--ease-out)}
.tour-card{transition:opacity 250ms var(--ease-out),transform 250ms var(--ease-out)}
@starting-style{.tour-ring{opacity:0}.tour-card{opacity:0;transform:translateY(6px)}}
@media (prefers-reduced-motion:reduce){.tour-card{transition-property:opacity}}
.tour-card h3{margin:10px 0 4px;font-size:var(--vx-fs-13);line-height:1.3}
.tour-card p{margin:0;font-size:var(--vx-fs-8);line-height:1.45;color:var(--text-2)}
.tour-dots{display:flex;gap:6px}
.tour-dots i{width:6px;height:6px;border-radius:var(--radius-5xs);background:var(--track)}
.tour-dots i.on{width:18px;background:var(--text)}
.tour-actions{display:flex;gap:8px;margin-top:14px}
.tour-actions #tourSkip{margin-inline-end:auto}

/* ---- Back on every sub-screen (02-35). Its look is the kit's .vx-back (frontend/kit, 10 Nov); here only where it sits.
   Top-level tabs have no Back. */
.title.has-back{justify-content:flex-start}
.title.has-back>.back-btn+div{flex:1 1 auto}
/* Back in the menu's row: a sub-page's Back is a chevron and the name of where it goes ("‹ Toolbox", workspace.js
   navCrumb). The button keeps its place in the title row's markup (its id and handler); here it is lifted out of the
   row, so every title row holds the page's icon, title and actions alone, as on a main page. It is placed from the
   title row, the first thing on every screen: the menu row's top is --menu-row and 10px above it, 30px in. So it
   rises in with the title when a screen opens (desktop.css moves it into the title row; a phone fixes it in the menu
   button's spot, below). A long name is cut short with an ellipsis 16px before the column's edge. Editing the agent
   and the document editor have the same Back. */
.screen>.title.has-back{position:relative}
.screen>.title.has-back>.back-btn{position:absolute;z-index:44;top:calc(-1 * var(--menu-row) - var(--vx-sp-2h));inset-inline-start:calc(var(--vx-sp-7) + var(--vx-sp-0h));max-width:calc(100% - var(--vx-sp-6) - var(--vx-sp-0h))}
/* On a phone (the lead, 2026-10-27, iOS style) Back takes the menu button's spot on a sub-page and ☰ steps aside
   (index.html): "‹ Toolbox" in the link colour, no capsule, fixed at the top start corner, so it stays in reach while
   the page scrolls (the top bar's glass fills in behind it then). The look is .vx-back's phone look (kit). It still lives in
   the title row's markup, but nothing between it and the viewport may carry a transform, or it would be placed from
   that box instead: the screen-opening rise (minimal.css, mg-in) moves the title row, so on a phone a title row with
   a Back shown fades in without moving (mg-fade). A long name ends in an ellipsis 12px before the column's edge. The
   desktop keeps the crumb in the title row (desktop.css). */
body:not(.desk) .screen>.title.has-back>.back-btn{position:fixed;top:var(--verser-nav-top);inset-inline-start:calc(var(--edge-left) + var(--verser-nav-inset));max-width:calc(100vw - var(--edge-left) - var(--edge-right) - var(--vx-sp-6) - var(--vx-sp-8))}
body:not(.desk) .screen.active:not(#liveScreen):not(#loginScreen):not(#orgSetupScreen)>.title.has-back:has(>.back-btn:not(.hidden)){animation-name:mg-fade}
/* A title with a line under it (the Inbox's agent) keeps both beside its icon. */
.title-with-icon>div{min-width:0}

.staff-remove-note{margin-top:18px}
/* The keyboard is up over a fixed-bottom text field (body.kb-field, index.html): the bubble, a bottom sheet and the
   reels comment bar sit on top of it instead of under it. */
body.kb-field .sheet-backdrop{bottom:var(--kb-field-lift,0px)}
body.kb-field .sheet{max-height:calc(100dvh - var(--kb-field-lift,0px) - 16px)}
/* Muted reads as a state, not a warning (live UI review C20): the secondary text colour; the crossed speaker says it. */
#liveMuteBtn.muted{color:var(--text-2)}
/* Account basics: the profile photo fills the sidebar circle; Resend invite sits beside Edit on a staff row awaiting first sign-in. */

.import-preview{max-height:320px;overflow:auto;margin-top:8px}
.import-preview .bad{color:var(--danger-text)}
.import-preview .import-admin{display:block}
.import-preview .import-admin-row{box-shadow:inset 3px 0 0 var(--warn)}
.import-preview .import-admin-row:dir(rtl){box-shadow:inset -3px 0 0 var(--warn)}

/* ---- Admin on the kit: token overrides. The admin screens (Admin settings, Organization info, Departments, Staff,
   Activity) and their sheets (.admin-sheet, workspace.js) carry kit classes beside the app's; these keep today's look. */
:is(#adminScreen,#organizationScreen,#departmentsScreen,#staffScreen,#activityScreen,.admin-sheet){--verser-row-card-row-height:auto;--verser-field-focus-border:var(--border-field)}
/* A disabled field (your own Access and Status) keeps the app's fill and text; the kit dims it. */
:is(#adminScreen,#organizationScreen,#departmentsScreen,#staffScreen,#activityScreen,.admin-sheet) :is(.verser-input,.verser-textarea,.verser-select):disabled{background-color:var(--surface-fill-2);color:var(--text)}
/* Kit gap: .verser-card and .verser-row-card set their own type (14px, 1.45; not tokens). The panels and rows keep the
   screen's; the hub rows are buttons and keep the app's button size; the item cards keep .card's 14px. */
:is(#adminScreen,#organizationScreen,#departmentsScreen,#staffScreen,#activityScreen,.admin-sheet) :is(.panel.verser-card,.row.verser-row-card){font-size:inherit}
:is(#adminScreen,#organizationScreen,#departmentsScreen,#staffScreen,#activityScreen,.admin-sheet) :is(.verser-card,.verser-row-card){line-height:inherit}
/* A row's sub-line wraps as the app's .row small does (the kit's is pretty); the hub's notes are paragraphs, already pretty. */
:is(#adminScreen,#organizationScreen,#departmentsScreen,#staffScreen,#activityScreen,.admin-sheet) .row .verser-row-card-sub{text-wrap:wrap}
/* Initials and row numbers in .verser-avatar: the app's .av line, as typed, wrapping as it did. */
:is(#adminScreen,#organizationScreen,#departmentsScreen,#staffScreen,#activityScreen,.admin-sheet) .verser-avatar{line-height:inherit;text-transform:none;white-space:normal}
/* 2 Nov (K3): a kit section head that opens a panel sits on the panel's own padding; a day heading in Activity keeps the
   kit's space above it. */
:is(#adminScreen,#departmentsScreen,#staffScreen,#activityScreen,.admin-sheet) .panel>.verser-sec-head:first-child{--verser-section-head-margin-block:0 var(--space-1);--verser-section-head-min-height:28px}
/* A department's page: a member's Move picker keeps its size at the row's end. */
.dept-page .dept-move{flex:none;max-inline-size:45%}
/* Buttons keep wrapping a long label, as the app's .btn does (the kit's never wraps). */
:is(#adminScreen,#organizationScreen,#departmentsScreen,#staffScreen,#activityScreen,.admin-sheet) .verser-btn:not(.row-resend){white-space:normal}

/* Home's My tasks: five cards, then this link-like button to the rest on Tasks (workspace.js, renderHomeTasks). */
/* ---- Profile settings on the kit (workspace.js openSettings). The sheets' fields are .verser-input / .verser-select
   under .verser-label, the hints .verser-helper; a focused field keeps its edge (no focus colour). The list: who is
   signed in on top (the kit's avatar, the name, then username, email and access in the mono), then each group a kit
   section head over a plain row list of small kit rows; Delete account alone at the end, under a hairline. A sub-sheet
   opened from the list starts its head with Back (.settings-back), on the title's line. ---- */
.settings-sheet{--verser-field-focus-border:var(--field-edge)}
/* A list of words only (Language: English, Arabic) starts and ends on the sheet's own edges, where its title does (the
   plain list's 4px inset put the words 4 in from the title). Rows with an icon tile keep the inset, in line with the
   avatar over them. */
.settings-sheet .settings-list:not(:has(.verser-row-card-icon)){padding-inline:0}
.settings-me{display:flex;align-items:center;gap:var(--space-3);padding-block:var(--space-1) var(--space-2);padding-inline:var(--space-1)}
.settings-me-text{display:grid;gap:2px;min-width:0}
.settings-me-text b{font-size:var(--vx-fs-13);font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.settings-me-text small{font-family:var(--font-mono);font-size:var(--vx-fs-4);line-height:1.45;color:var(--text-secondary);overflow-wrap:anywhere}
.settings-me-text small:is(:lang(ar),:dir(rtl)){font-family:var(--font-mono-rtl)}
.settings-me-text small:empty{display:none}
.settings-group>.verser-sec-head{--verser-section-head-margin-block:var(--space-4) 0;--verser-section-head-min-height:32px}
.settings-row .verser-switch{flex:none}
.settings-row .verser-row-card-meta{max-width:50%;overflow:hidden;text-overflow:ellipsis}
.settings-tick{flex:none;display:grid;place-items:center;color:var(--text)}
.settings-tick .icon{width:20px;height:20px}
.settings-danger{margin-top:var(--space-4);padding-top:var(--space-1);border-top:1px solid var(--hairline)}
/* Settings G1-G3 (2 Nov). General: a choice (Time zone, Start page, Text size) is a kit select at the row's end; on a
   narrow sheet it drops under the row's words at full width. Notifications: From and Until side by side under the
   Quiet hours switch. The Sign out on a signed-in device is the kit's small button at the row's end. */
.settings-select-row{flex-wrap:wrap;row-gap:var(--space-2)}
.settings-select-row>.verser-row-card-text{flex:1 1 160px}
.settings-select-row>.verser-select{flex:1 1 200px;inline-size:auto;max-inline-size:100%;min-block-size:var(--tap-min)}
@media (min-width:720px){.settings-select-row>.verser-select{flex:0 1 260px}}
.notif-quiet-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3);margin-block:var(--space-2) 0}
.notif-quiet-times[hidden]{display:none}
.settings-group .verser-pref-matrix{margin-block-start:var(--space-2)}
.settings-row .verser-row-card-meta>.verser-btn{white-space:nowrap}
.settings-erases{margin:4px 0 8px;padding-inline-start:20px}
/* Back is the sheet's head action (sheet.css: on the title's first line, on the close's line); here only its icon on
   the title's edge. */
.settings-back{flex:none;margin-inline-start:calc(-1 * var(--space-1))}
/* Settings > Signed in with: one row per Google, Microsoft or Apple login, the brand mark on its white tile (as on
   the sign-in buttons), the name, and Remove. Remove's question takes the row's full width under the name. */
.siw{margin-top:14px;padding-top:12px;border-top:1px solid var(--hairline)}
/* Settings and Help: Privacy policy, Terms of use and Support, opened in a new tab. */
.legal-links{margin-top:14px;padding-top:12px;border-top:1px solid var(--hairline)}
.legal-links .field-label{margin:0 2px 6px}
.legal-links a{color:var(--link);text-underline-offset:2px}
.siw-title{margin:0 2px 6px}
.siw-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-height:52px;padding:6px 12px;min-width:0}
.siw-mark{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:var(--radius-2xs);background:var(--sso-google-fill);color:var(--sso-apple-text)}
.siw-mark svg{width:18px;height:18px}
.siw-apple svg{width:15px;height:18px}
.siw-name{flex:1 1 auto;min-width:0;font-size:var(--vx-fs-10);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.siw-remove{flex:none;min-height:36px;padding:0 14px}
.siw-row .confirm-row{flex:1 1 100%;min-width:0}
/* Add Google / Microsoft / Apple: the whole row is the button, its mark on the same white tile. */
.siw-add{width:100%;border:0;border-radius:var(--r-inner);background:none;color:var(--text-2);text-align:start;font:inherit}
.siw-add .siw-name{color:var(--text-2);font-weight:500}
.siw-add:active{background:var(--fill-1)}
.siw-add:disabled{opacity:.5}
.siw-said{margin:6px 2px 0}
/* Sign-up's Join screen (#invite=, helpers_invites.py) and Staff's invite links: a link wraps anywhere, never past its card. */
.invite-link-text{user-select:all;overflow-wrap:anywhere;word-break:break-all;white-space:pre-wrap;font-size:var(--vx-fs-6)}
.invite-actions{flex-wrap:wrap}
/* Sign-up's open invites (Join <Org> as <Role>): the Join choices 12 apart, one block together, 18 under the field above
   (as any block button) and 24 over Create my own organization, the other choice. */
.signup-invites{display:grid;gap:var(--vx-sp-3);margin-block:var(--vx-sp-1h)}
.login-form .signup-invites>button[data-block]{margin-block-start:0}
.signup-invites .note{margin:0}
/* Home's Waiting for you card while its first read is out (home-waiting.js homeWaitingKept): it keeps the room it took last
   time, so the cards under it do not jump when the rows land. */
#homeWaiting[aria-busy="true"]{min-block-size:var(--home-waiting-reserve)}
/* Home's KPI row (index.html #homeStats, the kit's vx-kpi-row): the panels' 12px over it; a failed load's callout takes
   the whole row in the cards' place. */
.home-kpis{margin-block-start:var(--space-3)}
.home-kpis>.home-kpis-error{grid-column:1/-1}
