/* ==== Urgency and assigning (was views/tasks/assign.css, linked right before the tasks page's stylesheet: it stays
   first here, so the cascade is the same). ==== */
/* =========================================================================
   Tasks: urgency and assigning (views/tasks/assign.js).
   The switches sit inside the New task panel, so they carry no blur of their own (blur lives on three levels only),
   as Social's compose switch does. Each is a set of native radios drawn as the app's glass switch.
   ========================================================================= */
.task-seg{margin-block-start:0;-webkit-backdrop-filter:none;backdrop-filter:none}
.task-seg .seg-tab{display:flex;align-items:center;justify-content:center;text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
/* The picked look and focus ring of a .seg radio group are the kit's (ui/components/tabs/tabs.css). */
/* Urgency and Due share one chosen look (the switch's); a chosen urgency adds only its colour on the edge and the word. */
.task-seg:not(.task-urg-chips) .seg-tab[data-value="urgent"]:has(input:checked){box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--crimson) 65%,var(--bad));color:var(--danger-text)}
.task-seg:not(.task-urg-chips) .seg-tab[data-value="high"]:has(input:checked){box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--warn) 70%,transparent);color:var(--warn-text)}
#taskAssignNote{margin-block-start:12px}
/* Urgency as kit chips (taskUrgencyChips): the chip's own look and picked rim (chip.css: a label whose radio is checked);
   Urgent and High carry a 7px dot in their colour. */
.task-seg.task-urg-chips{display:flex;flex-wrap:wrap;gap:var(--space-2);padding:0;border:0;border-radius:0;background:none;box-shadow:none}
/* .seg-tab (workspace.css) would wipe the chip's border, fill and padding: the chip's own values back. */
.task-urg-chips .seg-tab.verser-chip,.task-sheet .task-urg-chips .seg-tab.verser-chip{
  flex:none;min-inline-size:0;min-block-size:var(--tap-min);gap:var(--space-2);padding-block:0;padding-inline:calc(var(--space-3) + 2px);
  border:1px solid var(--_verser-chip-border);border-radius:var(--verser-chip-radius,var(--radius-pill));
  background:var(--verser-chip-gloss,var(--surface-gloss)),var(--_verser-chip-fill);background-origin:border-box;color:var(--_verser-chip-text);font-weight:600
}

/* ---- The urgency badge on a row (Tasks, Home's Team tasks): the kit's filled pill (.verser-pill data-variant="filled",
   built in taskUrgencyBadge), so it never reads as the outlined status chip. Urgent is red (danger), High amber (warn),
   Normal the neutral fill, Low muted (quiet); the name is always written. .task-urgency and .urgency-* stay as hooks. ---- */
.task-meta .meta-part{display:inline-block;max-inline-size:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
/* A row's second line (Tasks, Home's My tasks and Team tasks): the badge, then the rest of the line beside it. */
.task-sub{display:block;margin-block-start:6px}
/* The line flows as text after the badge, so a second line starts at the inline start, not under the badge's end. Every
   piece keeps 8px after it (the lead, 2026-10-06: the status tag sat on the due day): the badge, the meta line's last
   word, and a tag, which starts flush at the start when it wraps. */
.task-sub>.task-urgency{margin-inline-end:8px;vertical-align:1px}
.task-sub>p,.task-sub>.task-meta{display:inline;margin:0}
.task-sub>:is(p,.task-meta):has(+ .task-status){margin-inline-end:8px}
.task-sub>.task-status{margin-block:3px;margin-inline:0 8px;vertical-align:1px}
/* A project chip after the due day keeps the same step after the day's last word as a tag does (it sat against it when
   both fit one line); wrapped, it starts flush at the start under the day. */
.task-sub>:is(p,.task-meta):has(+ .task-row-project){margin-inline-end:var(--vx-sp-2)}

/* ---- Proposals (a task offered to a whole department): above the lists, answered in place. Their sections and rows are in views/tasks/view.css. ---- */
#taskProposalsMessage{margin-block:0 6px;margin-inline:0}

/* ---- Tasks on the kit: token overrides (proposals and the Edit proposal sheet). ---- */
/* The urgency badge sizes to its word (no 22px floor), so the desktop split's 20px row badge (desktop.css) keeps its height. */
.task-urgency{--verser-pill-height:auto}
/* A card is a .verser-row-card laid out as a column (views/tasks/view.css .proposal): no row gap or row height of its own. */
#taskProposals .proposal{--verser-row-card-gap:0;--verser-row-card-row-height:0;--verser-row-card-row-padding-block:12px}
/* Edit on a card: the compact toolbar button (workspace.css .task-actions>.btn). */
#taskProposals .task-actions{--verser-button-padding-inline:10px;--verser-button-font-size:13px}
/* The sheet's description box keeps the task sheet's 96px floor (views/tasks/view.css .task-sheet textarea.field). */
.task-proposal-edit{--verser-field-textarea-min-height:96px}
.task-proposal-edit .task-field{min-inline-size:0;max-inline-size:100%}

/* ==== The tasks page (this file before the fold). ==== */
/* =========================================================================
   Tasks page (views/tasks/page.js): the filters and search, the cards, New task and the task sheet, and the proposal
   cards drawn to match. Colours are the app's tokens only: --a for the person's own controls; urgency is the word
   written on the card.
   ========================================================================= */

/* ---- Tasks on the kit: token overrides (the list, the filters, Team tasks and the desktop list frame). ---- */
/* The filter row's chips and the search circle are the kit's chips (.vx-chip, layout pass TK-7: the one chip of the
   Projects group, 36 under a mouse and 44 under a finger; .tasks-chip stays as the row's hook). The urgency, project,
   days and department chips are its menu chips. On a phone they tighten (below). */
/* The search icon is a square chip with no side room. */
#tasksTools .tasks-search-open{padding-inline:0}
/* Section heads (.verser-sec-head data-variant="fold"): the inner radius. The label stays the app's .k and the count
   keeps .task-group-toggle .count (a generic .count rule would beat the kit's count). */
#tasksScreen .task-group-toggle{--verser-section-head-fold-radius:var(--r-inner)}
/* A day's tasks (.verser-row-list of .verser-row-card): no padding of its own, 64px rows with 4px above and below. */
#tasksScreen .task-group-body{--verser-row-card-padding-block:0;--verser-row-card-padding-inline:0;--verser-row-card-row-height:64px;--verser-row-card-row-padding-block:4px;--verser-row-card-gap:0}
/* Kit gap: .verser-row-card sets 14px type on the row (not a token); the card keeps the screen's. */
/* The task sheet, New task, Edit task and the review: labels and fields are .verser-label/-input/-textarea beside
   .field-label/.field; a focused field keeps its own edge under the ring (the kit turns it violet). The sheet's main button
   keeps the app's .btn.block size (the kit's block size is 15px type). */
.task-sheet{--verser-field-focus-border:var(--field-edge)}

/* ---- Filters and search. ---- */
.tasks-tools{position:relative;display:flex;align-items:flex-start;gap:var(--vx-filter-bar-gap);margin-top:var(--vx-sp-3)}
.tasks-filters{display:flex;flex-wrap:wrap;gap:var(--vx-filter-bar-gap);flex:1 1 auto;min-width:0;transition:opacity .2s ease}
/* .tasks-chip is the kit's chip (ui-kit.css ONE FAMILY): the glass pill, the violet rim when picked. */
/* The row is one line at 320 (the lead, 2026-10-01): the urgency select drawn as a chip with its chevron, pressed while
   an urgency is picked, then In progress, Sent back and Done, then the search icon. Up to 400px the chips tighten so
   all four fit from 375 up; narrower (320) they cannot (the select keeps 16px so iOS does not zoom), so the row slides
   sideways under the finger instead of wrapping or clipping a label; the search icon stays put. */
/* The scroll box clips, so it reaches 4px past the chips on every side (the focus ring: 2px offset, 2px wide) and the
   chips stay where they were. */
.tasks-filters{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:4px;margin:-4px}
/* While more chips wait past the end, the row's end fade (ui-kit.css .scroll-row) is clear a step before the box's edge,
   so a cut chip fades out short of the search circle instead of running into it (layout pass TK-15); a row that fits
   keeps its whole box (the focus ring's room). */
.tasks-filters{--_tf-end:min(var(--scroll-row-end),var(--vx-sp-1));
  -webkit-mask-image:linear-gradient(90deg,transparent 0,var(--mask-opaque) var(--scroll-row-start),var(--mask-opaque) calc(100% - var(--scroll-row-end) - var(--_tf-end)),transparent calc(100% - var(--_tf-end)));
  mask-image:linear-gradient(90deg,transparent 0,var(--mask-opaque) var(--scroll-row-start),var(--mask-opaque) calc(100% - var(--scroll-row-end) - var(--_tf-end)),transparent calc(100% - var(--_tf-end)))}
.tasks-filters:dir(rtl){
  -webkit-mask-image:linear-gradient(270deg,transparent 0,var(--mask-opaque) var(--scroll-row-start),var(--mask-opaque) calc(100% - var(--scroll-row-end) - var(--_tf-end)),transparent calc(100% - var(--_tf-end)));
  mask-image:linear-gradient(270deg,transparent 0,var(--mask-opaque) var(--scroll-row-start),var(--mask-opaque) calc(100% - var(--scroll-row-end) - var(--_tf-end)),transparent calc(100% - var(--_tf-end)))}
.tasks-filters::-webkit-scrollbar{display:none}
.tasks-filters .tasks-chip{flex:none;min-inline-size:var(--vx-chip-h);justify-content:center;white-space:nowrap}
/* A phone: the chips tighten by the 27 Oct glide (the --verser-tasks-filter-* tokens, a 375px phone to 440px), so all of
   them fit from 375 up: less room at the ends, the menu chips' chevron further in, a smaller gap. The label stays 13px
   at the narrowest (12px read too small at 320); where they still do not fit, the row slides as above. */
@media (max-width:719px){
  /* The phone row keeps its 44px chips and circle under a mouse too (the kit's chip is 36 there), as it always had. */
  #tasksTools{--vx-chip-h:var(--tap-min)}
  .tasks-tools,.tasks-filters{gap:var(--verser-tasks-filter-gap)}
  .tasks-filters .tasks-chip{--vx-chip-px:var(--verser-tasks-filter-padding-inline);font-size:var(--verser-tasks-filter-font-size)}
  .tasks-filters .tasks-chip[data-variant="menu"]{padding-inline:var(--verser-tasks-filter-menu-start) var(--verser-tasks-filter-menu-end)}
  .tasks-filters .tasks-chip[data-variant="menu"]::after{inset-inline-end:var(--verser-tasks-filter-chevron-inset)}
}
/* A row wider than the screen (320, or Team tasks with its extra chips at 360) fades at its ends, and with a mouse it
   wraps: the kit's .scroll-row (ui-kit.css). */
/* The pager under a list of more than one page: ‹, the page numbers (this one filled), ›; 44px targets, one line. */
.tasks-pager{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;margin-top:16px}
.tasks-pager .tasks-chip{display:grid;place-items:center;min-width:44px;padding:0 6px;font-family:var(--mono);font-variant-numeric:tabular-nums}
.tasks-pager .tasks-chip:disabled{opacity:.38;cursor:default}
.tasks-pager .icon{width:18px;height:18px}
.tasks-page-back{transform:rotate(180deg)}
.tasks-page-gap{min-width:16px;text-align:center;color:var(--text-2)}
/* Search: a round icon at the end of the chips. Open, the field grows out of it to the row's full width over the chips
   (a clip-path reveal from the icon's circle, so nothing reflows), and the icon stays on top at its right end. */
.tasks-search-open{display:grid;place-items:center;flex:none;inline-size:var(--vx-chip-h);padding:0;position:relative;z-index:1}
.tasks-search-open .icon{width:20px;height:20px}
/* As tall as the chips (the kit's --vx-chip-h: 36 under a mouse, 44 under a finger), its end room the circle and a step. */
.tasks-search{position:absolute;inset-block:0 auto;inset-inline:0;block-size:var(--vx-chip-h);min-block-size:var(--vx-chip-h);border-radius:var(--r-pill);padding-block:0;padding-inline:var(--vx-sp-4h) calc(var(--vx-chip-h) + var(--vx-sp-3));font-size:var(--font-size-reading);background:var(--fill-2);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);
  clip-path:inset(0 0 0 calc(100% - var(--vx-chip-h)) round calc(var(--vx-chip-h) / 2));opacity:0;visibility:hidden;
  transition:clip-path .24s var(--ease-out),opacity .16s ease,visibility 0s linear .24s}
.tasks-tools.is-searching .tasks-search,.task-to-bar.is-searching .tasks-search{clip-path:inset(0 0 0 0 round calc(var(--vx-chip-h) / 2));opacity:1;visibility:visible;transition:clip-path .24s var(--ease-out),opacity .16s ease,visibility 0s}
.tasks-tools.is-searching .tasks-filters{opacity:0;pointer-events:none}
.tasks-tools.is-searching .tasks-search-open,.task-to-bar.is-searching .tasks-search-open{border-color:transparent;background:none;-webkit-backdrop-filter:none;backdrop-filter:none}
@media (prefers-reduced-motion:reduce){.tasks-search,:is(.tasks-tools,.task-to-bar).is-searching .tasks-search{transition:opacity .15s ease,visibility 0s}.tasks-search{clip-path:none}}
/* Right to left: the search opens out of the icon at the inline end, the menu grows
   from the chip's start and the pager's back arrow points the other way. */
.tasks-search:dir(rtl){clip-path:inset(0 calc(100% - var(--vx-chip-h)) 0 0 round calc(var(--vx-chip-h) / 2))}
@media (prefers-reduced-motion:reduce){.tasks-search:dir(rtl){clip-path:none}}
.tasks-page-back:dir(rtl){transform:none}

/* ---- My tasks / Team tasks (admins and managers). Team tasks hide the person's own lists. ---- */
#tasksScreen.is-team :is(#taskLists,#tasksLaterNote,#taskProposals){display:none}
#tasksTeam .list{display:grid;gap:8px;margin-top:8px}
/* Team tasks' days: the same sections as My tasks, a little closer under the filters; Overdue in the overdue colour. */
#tasksScreen #tasksTeamList .task-section{margin-top:6px}
#tasksTeamList .task-section.is-overdue .task-group-toggle .k{color:var(--pink)}   /* the count is the kit's badge, in its own ink */
/* Team tasks' header reads as a section's (below): the title, its count, and an admin's department picker at the end. */
#tasksTeamSummary{margin:0 4px}
#tasksTeamSummary:empty{display:none}
/* A team row's words start on its section head's line (the head's label, 4 in from the row's edge: the body's own 4). */
.task-card.team-task,.task-card.team-end-time{grid-template-columns:minmax(0,1fr);padding-inline-start:0}

/* ---- Sections: one list, a line and a small header per section (no panels), each foldable. Everything under the
   filters is drawn this way: My tasks' lists, the proposals, Team tasks and the empty state. ---- */
#tasksScreen .task-section{margin-top:14px;padding-top:4px}
#tasksScreen .task-section:empty{display:none}
#tasksScreen .task-section :is(.task-group-toggle,.pulse-head) .k{margin:0;font-size:var(--font-size-meta)}
h3.task-list-head{margin:0;font-size:inherit}
/* The heads are the kit's fold head (.verser-sec-head data-variant="fold": views/tasks/page.js tasksGroup, views/tasks/assign.js
   taskProposalsSection). The count keeps this rule: a generic .count rule would beat the kit's count. */
.task-group-toggle .count{color:var(--vx-badge-fg)}   /* the kit's badge keeps its ink (workspace.css greys every .count) */
.task-group-body{display:grid;gap:8px;margin-top:4px}
.task-section-card>.task-group-body{gap:0;margin-top:0}
.task-group-body[hidden]{display:none}
/* An empty list: clear of the line above and of what follows, centred (the lead, 2026-10-01). */
/* Its icon, title and line are the kit's .verser-empty data-variant="hero"; only the room above and below is Tasks'. */
#tasksScreen .tasks-empty.task-section{padding-block:28px}

/* ---- A card: the one-tap box, then the title and its line; the rest opens the task sheet. No urgency edge: the
   urgency pill already says it. ---- */
/* Home's cards (workspace.js) keep their own card; a proposal is a kit card; a list's task card is a kit row in its section's kit card. */
.task-card.home-task{position:relative;overflow:hidden;border:1px solid var(--hairline);border-radius:var(--r-inner);background:var(--fill-1)}
.proposal{position:relative;overflow:hidden}
.task-card{position:relative}
.task-card{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;min-height:64px;padding-block:4px;padding-inline:6px 8px;transition:opacity .15s ease}
.task-card.is-saving{opacity:.8}
.task-check{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:var(--r-inner);background:none}
.task-check svg{width:24px;height:24px;padding:2px;border:1.75px solid color-mix(in srgb,var(--text-2) 65%,transparent);border-radius:var(--radius-2xs);fill:none;stroke:transparent;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;transition:background-color .12s ease,border-color .12s ease}
@media (hover:hover) and (pointer:fine){.task-check:hover svg{border-color:var(--text)}}
.task-check[aria-checked="true"] svg{border-color:var(--primary);background:var(--primary);stroke:var(--on-primary)}
.task-body{display:block;width:100%;min-width:0;min-height:44px;padding:8px 4px;border:0;border-radius:var(--r-inner);background:none;color:inherit;text-align:start}
.task-card .task-title{font-size:var(--font-size-body);font-weight:600}
/* A long title stops at three lines with an ellipsis, said in full in its title (page.js tasksTitleFit; root decision
   D-TK), and its box stays beside the first line instead of floating to the middle of a tall row: the box takes the
   title's line (lh) and stands its middle on that line's middle (the body's 8px above it). */
.task-card .task-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
.task-card>.task-check{align-self:start;font:inherit;font-size:var(--font-size-body);translate:0 calc(var(--vx-sp-2) + .5lh - 50%)}
.task-card.task-done .task-title{text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--text-2) 60%,transparent)}
.task-card .task-sub{margin-top:4px}
.task-card .task-meta{margin:0}
/* The meta line keeps its 8px before a tag that follows it (.task-sub, in the assigning part above). */
.task-card .task-sub>.task-meta:has(+ .task-status){margin-inline-end:8px}
/* Overdue: the due day itself says so, in pink; the edge stays urgency's. */
.task-list[data-list="overdue"] .task-meta .meta-part:first-child,.home-task.is-overdue .task-meta .meta-part:first-child{color:var(--pink)}
/* Home's My tasks: the same card as a single tap target that opens the task's sheet. */
.task-card.home-task{display:block;width:100%;min-height:56px;padding-block:10px;padding-inline:16px 12px;color:inherit;font:inherit;text-align:start;cursor:pointer}
/* The list's own row rules reach these buttons too; the id keeps the text 12px clear of the 4px edge. */
#homeTaskList .task-card.home-task{padding-block:10px;padding-inline:16px 12px}
.home-task .task-title{display:block;font-size:var(--font-size-body);font-weight:600;line-height:1.35}
.home-task .task-sub{margin-top:4px}
.home-task .task-meta:empty{display:none}
/* Progress on a row (taskProgressLine, workspace.js; the lead, 2026-10-28): one line, the kit's ring, "60% · 3/5", Behind. */
.task-steps-line{display:flex;align-items:center;gap:6px;margin-top:6px;min-width:0;font-family:var(--mono);font-size:var(--font-size-meta);font-variant-numeric:tabular-nums;color:var(--text-2)}
.task-steps-line:is(:lang(ar),:dir(rtl)){font-family:var(--font-mono-rtl)}
.task-steps-line .verser-pill{--verser-pill-height:20px;font-size:var(--font-size-caption)}
.task-row-meta .task-steps-line{margin:0}
.team-task-note{margin:6px 0 0;font-size:var(--font-size-small);line-height:1.4;color:var(--text-2);overflow-wrap:anywhere}

/* ---- Proposals: the same card, answered in place, in one row per section that scrolls sideways. Each card is 80% of
   the column so the next one peeks (a lone card takes it all), and a swipe stops on a card. The row is the column's
   width, so the page never scrolls sideways; on touch its scrollbar is hidden. ---- */
#taskProposals .task-list-head{margin-block-end:4px}
.proposal-row{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding-block-end:2px}
/* Side by side, a card's top edge is its own hairline, not the stacked list's row edge (workspace.css .task+.task). */
.proposal+.proposal{border-block-start-color:var(--hairline)}
@media (hover:none){.proposal-row{scrollbar-width:none}.proposal-row::-webkit-scrollbar{display:none}}
/* A card (.verser-row-card, views/tasks/assign.js) stacked as a column, in the list's own type; the 16px start side clears
   the urgency edge. */
.proposal{display:flex;flex-direction:column;align-items:stretch;font-family:inherit;font-size:inherit;flex:0 0 80%;min-inline-size:0;padding-block:12px;padding-inline:16px 12px;scroll-snap-align:start}
.proposal:only-child{flex-basis:100%}
.proposal .task-title{overflow-wrap:anywhere}
.proposal .task-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.proposal .task-actions{margin-block-start:auto;padding-block-start:10px}
/* A proposal offered to me is the kit's action card (views/tasks/assign.js taskProposalAsk), sized as a card in the row; its
   urgency pill ends the head. */
.proposal-ask{flex:0 0 80%;min-inline-size:0;margin:0;scroll-snap-align:start}
.proposal-ask:only-child{flex-basis:100%}
.proposal-ask .verser-action-head>.task-urgency{flex:none;margin-inline-start:auto}

/* ---- The floating New task button, above the tab bar: the kit's square primary icon button, large
   (.verser-icon-btn data-variant="square primary" data-size="lg"; also Drive, Documents, Inbox, the Hub's +). Its
   corner is the compact radius and its icon a little bigger; the kit draws the rest. ---- */
/* (Its rules are the kit's create button: ui/components/fab/create-fab.css.) */
/* The last card and its chips clear the button: the bottom gap, the button, a gap. */
body:not(.agent-fab-on) #tasksScreen.active{padding-bottom:var(--verser-fab-reserve)}
/* Press feedback on the Tasks page, the house dim on rows, chips and toggles, a small scale on the round button and the
   check box (on its svg, so the 44px hit area stays put). A check turns only when the server says it saved. Reduced
   motion: the dim instead of the scale. */
.task-group-toggle,.task-body{transition:opacity 120ms ease}
.task-group-toggle:active,.task-body:active:not(:disabled){opacity:.72}
.task-check svg{transition:background-color .12s ease,border-color .12s ease,transform 160ms var(--ease-out)}
.task-check{transition:opacity 120ms ease}
.task-check:active:not(:disabled) svg{transform:scale(.92)}
@media (prefers-reduced-motion:reduce){.task-check:active:not(:disabled) svg{transform:none}.task-check:active:not(:disabled){opacity:.72}}

/* ---- The task sheet and New task. ---- */
.task-sheet-state{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:2px 2px 4px}
.task-sheet-state .task-meta{margin:0}
.task-sheet textarea.field{min-height:96px}
.task-sheet-actions{flex-wrap:nowrap;gap:6px}
.task-sheet-actions>button:not([data-icon]){flex:1 1 0;min-inline-size:0;padding-inline:var(--vx-sp-2);white-space:normal}
/* The status buttons stay one row (2026-10-01); Mark missed is a plain kit button like the others. */
.task-sheet-actions>button[aria-pressed="true"]{border-color:transparent;background:var(--vx-btn-primary-bg);color:var(--vx-btn-primary-fg)}
/* A note field that grows with its text to about six lines, then scrolls (taskAutoGrow); no resize handle. */
.task-sheet textarea.task-grow{min-height:52px;resize:none;overflow-y:hidden}
.task-note-row{align-items:end}
.task-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;margin-top:10px}
.task-inline .btn{min-height:52px;border-radius:var(--r-inner)}
#taskNoteStatus{margin:8px 2px 0}
/* ---- Steps on the sheet (2026-10-28, the approved mockup): the bar, the checklist with "Add a step" at its foot (or, with
   none, a line of copy and Suggest steps), the suggested steps' line, "Weighted evenly · Weigh again". Kit parts only;
   these place them. */
.task-steps-bar:not(:empty){margin:16px 2px 0}
.task-steps{margin-top:18px}
.task-steps-head{min-block-size:32px;margin-block:0 var(--space-1)}
.task-steps-hint{margin:0 2px 4px;font-size:var(--font-size-small);line-height:1.45;color:var(--text-muted)}
.task-step-list{margin-inline:calc(var(--space-2) * -1)}
.task-step-list:empty{display:none}
.task-step-add{display:flex;align-items:center;gap:var(--space-2);margin-top:var(--space-2)}
.task-step-field{flex:1 1 auto;min-inline-size:0}
.task-step-add>button{flex:none}
.task-step-rename{grid-area:title;min-inline-size:0}
.task-steps-even{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3);margin-top:var(--space-2)}
.task-steps-even .icon,.task-steps-draft-words .icon{inline-size:16px;block-size:16px}
.task-steps-draft{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2) var(--space-3);margin-top:var(--space-2);padding-inline:2px}
.task-steps-draft-words{display:inline-flex;align-items:center;gap:6px;min-inline-size:0;flex:1 1 100%;margin:0;font-family:var(--mono);font-size:var(--font-size-caption);line-height:1.4;color:var(--text-muted)}
.task-steps-draft-words:is(:lang(ar),:dir(rtl)){font-family:var(--font-mono-rtl)}
.task-steps-draft-acts{display:flex;gap:var(--space-2);flex:none;margin-inline-start:auto}
#taskStepsStatus,#taskNewStepsStatus{margin:8px 2px 0}
#taskStepsStatus:empty,#taskNewStepsStatus:empty{display:none}
.task-new-steps{margin-top:6px}
.task-new-steps .task-steps-draft-words{margin-top:var(--space-1)}
/* "Add a note…": one line that opens to the note, Add files and Add a note. */
.task-note{margin-top:18px}
.task-note-line{display:flex;align-items:center;gap:var(--space-2);inline-size:100%;text-align:start;color:var(--text-muted);cursor:text}
.task-note-line .icon{inline-size:18px;block-size:18px;flex:none}
.task-note-form{--verser-card-padding:var(--space-3)}
.task-note-form .verser-textarea{background-color:var(--surface-chip)}
.task-note-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2);margin-top:var(--space-3)}
.task-note-foot .task-report{margin-inline-start:auto}
.task-note-foot .task-file-add{margin:0}
/* History: the kit's timeline under its fold head; "Show N earlier" under the newest three. */
.task-history{margin-top:18px}
.task-history-title{margin:0}
.task-history-more{margin-block-start:var(--space-1);margin-inline-start:var(--space-6)}
.task-history-none{margin:4px 2px 0;color:var(--text-2)}
.task-history-review .task-history-what{color:var(--vx-ink)}
.task-file-chip .task-file-name{display:inline-flex;align-items:center;gap:6px;min-width:0;min-height:0;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:500;text-align:start;overflow-wrap:anywhere;cursor:pointer}
.task-file-chip .icon{inline-size:14px;block-size:14px;flex:none}
.task-file-remove{display:inline-grid;place-items:center;flex:none;inline-size:22px;block-size:22px;margin-inline:2px -4px;padding:0;border:0;border-radius:var(--radius-round);background:none;color:var(--text-muted);cursor:pointer}
.task-file-full{display:block;clear:both;inline-size:100%;block-size:auto;margin-top:var(--space-2);border-radius:var(--radius-sm)}
/* The status row: Postpone and Mark missed (In progress too without steps), the bin apart at its end; Complete is the
   sheet's own primary at its foot, with how many steps are left. */
.task-sheet-actions{margin-top:20px;align-items:center}
.task-sheet-actions .task-sheet-bin{flex:none;margin-inline-start:auto;margin-inline-end:calc(var(--space-2) * -1)}
.task-complete-left{font-family:var(--mono);font-size:var(--font-size-meta);font-weight:500}
.task-complete-left:is(:lang(ar),:dir(rtl)){font-family:var(--font-mono-rtl)}
.task-complete-left::before{content:" · "}
.task-review .task-steps-bar:not(:empty){margin-top:12px}
.team-task-review .task-steps-bar:not(:empty){margin:4px 2px 8px}
#taskNoteStatus:empty{display:none}
/* How many people: typed, no spinner. */
#taskNewSeats{-moz-appearance:textfield;appearance:textfield}
#taskNewSeats::-webkit-inner-spin-button,#taskNewSeats::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#taskNewDay{margin-top:10px}
/* How many people: − and + either side of the number (1 to everyone asked). */
.task-stepper{display:flex;align-items:center;gap:8px}
.task-stepper>.task-field{flex:0 1 88px;min-inline-size:0;margin:0}   /* the kit field is the stepper's middle, 88px as before */
.task-stepper #taskNewSeats{min-width:0;min-height:44px;margin:0;text-align:center}
.task-step{flex:none;width:44px;height:44px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--fill-1);color:var(--text);font:inherit;font-size:var(--vx-fs-title);line-height:1}
.task-step:disabled{opacity:.4}
/* Add details: a text button that opens the description. */
.task-details-open{margin-top:10px}
#taskAssignNote{margin-top:14px}
/* Assign to: a department select (Me first) and the round search icon beside it, whose field opens over the row as
   Tasks' search does (the rules above); then the department's Whole department and its people as ticks. */
.task-to-hint{margin-top:0;margin-bottom:8px}
.task-to-bar{position:relative;display:flex;align-items:center;gap:6px;margin-bottom:8px}
.task-to-select{flex:1 1 auto;min-width:0;min-height:44px;margin:0;transition:opacity .2s ease}
.task-to-bar.is-searching .task-to-select{opacity:0;pointer-events:none}
.task-to-picked{margin:-2px 2px 8px}
.task-to{overflow:hidden;border:1px solid var(--hairline);border-radius:var(--r-inner);background:var(--fill-1)}
.task-to [hidden]{display:none!important}
.task-to-row{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:48px;padding:4px 14px;cursor:pointer}
.task-to-row+.task-to-row,.task-to>.task-to-row~.task-to-group .task-to-dept,.task-to-group+.task-to-group .task-to-dept{border-top:1px solid var(--hairline)}
.task-to-row input{width:20px;height:20px}
.task-to-row:has(input:checked){background:color-mix(in srgb,var(--a) 22%,transparent)}
.task-to-row:has(input:disabled){cursor:default;opacity:.5}
.task-to-row:has(input:focus-visible){outline:var(--ring-width) solid var(--ring);outline-offset:calc(-1 * var(--ring-width))}
.task-to-row input:focus-visible{outline:none}
.task-to-name{min-width:0;font-size:var(--font-size-body);font-weight:500;overflow-wrap:anywhere}
.task-to-row small{max-width:45vw;overflow:hidden;text-overflow:ellipsis;font-size:var(--font-size-meta);color:var(--text-2);white-space:nowrap}
.task-to-dept{padding:12px 14px 6px;font-size:var(--font-size-meta);font-weight:600;letter-spacing:.01em;color:var(--eyebrow)}
.task-to-none{margin:0;padding:12px 14px}
/* New task in the modal: the people picker is the kit's inset picker (.verser-sheet-picker, search on top); the rows keep
   their grid and hooks, as rounded picks without hairlines. The real due day sits under Due. */
.task-to-box .task-to{border:0;border-radius:0;background:none}
.task-to-box .task-to-row{min-block-size:48px;padding-inline:var(--space-2);border-radius:var(--radius-sm)}
.task-to-box .task-to-row+.task-to-row{border-block-start:0}
.task-to-box .task-to-row:has(input:checked){background:var(--surface-fill-2)}
.task-to-box .task-to-row:has(input:focus-visible){outline-offset:0}
.task-to-box+.task-to-picked{margin-block-start:var(--space-2)}
.task-to-search .verser-search-input:focus-visible{outline:none}
/* On touch the people search's input is the 44 target itself: the kit sizes it 2 under the pill (its border), so it grows by the 1px border each side and the pill stays the kit's height. */
@media (pointer:coarse){.task-to-search .verser-search-input{block-size:var(--tap-min);margin-block:-1px}}
.task-due-said{margin-block:6px 0;margin-inline:2px}
.task-due-said:empty{display:none}

/* ---- Motion. The lists arrive once per open or full load (#taskLists[data-motion="in"], set by views/tasks/page.js): each
   group rises in, and its cards a beat after it, a short step apart and capped so a long list is never slow. A filter
   crossfades the lists ("swap"). Typing in search and the quiet reload after a write redraw in place with no motion.
   Only transform and opacity (and the tick's stroke) animate; every resting style is the final frame. ---- */
/* On an open, the filters and the later-tasks line wait out of sight until the new read is drawn (data-arriving, workspace.js
   openTasks); the lists are emptied instead, so their placeholders can show, and everything rises once, with the data. */
#tasksScreen[data-arriving] :is(.tasks-tools,#tasksLaterNote){visibility:hidden}
#tasksTools[data-motion="in"]{animation:tasks-rise .42s var(--ease-out) backwards}
/* First load of the session only (openTasks.arrived); every offset together stays under 150 ms. */
#taskLists[data-motion="in"]>*{animation:tasks-rise .3s var(--ease-out) calc(min(var(--i,0),5) * 15ms) backwards}
#taskLists[data-motion="in"] .task-card{animation:tasks-rise .3s var(--ease-out) calc(min(var(--i,0),5) * 15ms + min(var(--j,0),8) * 9ms) backwards}
#taskLists[data-motion="swap"]>*{animation:tasks-fade .2s ease-out backwards}
/* A proposal card not drawn before rises in, a short step apart (views/tasks/assign.js); one answered in place keeps still. */
:is(.proposal,.proposal-ask).is-arriving{animation:tasks-rise .42s var(--ease-out) calc(min(var(--j,0),5) * 50ms) backwards}
#tasksTeamList[data-motion="in"]>*{animation:tasks-rise .3s var(--ease-out) calc(min(var(--i,0),5) * 15ms) backwards}
#tasksTeamList[data-motion="in"] .task-card{animation:tasks-rise .3s var(--ease-out) calc(min(var(--i,0),5) * 15ms + min(var(--j,0),8) * 9ms) backwards}
#tasksTeamList[data-motion="swap"]>*{animation:tasks-fade .2s ease-out backwards}
/* Press feedback is above (dim, and a little give on the box and +). Ticking fills the box on a spring and draws the tick on the card tapped, before the
   lists redraw (.ticking, views/tasks/page.js); a reopened task's new card pops its empty box (.just-checked). */
.task-check path{stroke-dasharray:1;stroke-dashoffset:0}
.task-card.ticking .task-check svg{border-color:var(--primary);background:var(--primary);stroke:var(--on-primary);animation:tasks-pop .6s var(--spring)}
.task-card.ticking .task-check path{animation:tasks-tick .34s var(--ease-out) .06s backwards}
.task-card.ticking .task-title{animation:tasks-dim .4s ease-out forwards}
.task-card.just-checked .task-check svg{animation:tasks-pop .6s var(--spring)}
.task-card.task-done .task-title{color:var(--text-2)}
/* While the server answers, the box breathes instead of the whole card dimming at once. */
.task-card.is-saving .task-check svg{animation:tasks-wait .7s ease-in-out infinite alternate}
/* The + arrives once per session (workspace.js adds .fab-entered when it ends), with no delay, so it is never there to tap
   while unseen; reduced motion: it fades in, nothing moves (below). */
#tasksScreen.active:not(.fab-entered) .tasks-fab{animation:tasks-fab-in .24s var(--vx-ease)}
/* With a pointer, cards, chips and the + light up under it. */
@media (hover:hover) and (pointer:fine){
  .task-body:hover{background:var(--fill-1)}
  .tasks-fab.verser-icon-btn:hover{background:var(--primary-hover)}
}
@keyframes tasks-rise{from{opacity:0;transform:translateY(10px)}}
@keyframes tasks-fade{from{opacity:0}}
@keyframes tasks-pop{from{transform:scale(.72)}}
@keyframes tasks-tick{from{stroke-dashoffset:1}}
@keyframes tasks-dim{to{color:var(--text-2)}}
@keyframes tasks-wait{to{opacity:.35}}
@keyframes tasks-fab-in{0%{opacity:0;transform:translateY(8px) scale(.9)}25%{opacity:1}}
/* Reduced motion: the filters and lists only fade; nothing moves. (The page-wide switch-off in index.html is beaten here
   so arrivals still don't pop.) */
@media (prefers-reduced-motion:reduce){
  #tasksTools[data-motion],:is(#taskLists[data-motion],#tasksTeamList[data-motion]) :is(.task-list,.task-card,.tasks-empty),:is(.proposal,.proposal-ask).is-arriving{animation:tasks-fade .2s ease backwards!important}
  /* The + (Tasks, Documents, Hub) fades in once, without the rise. */
  :is(#tasksScreen,#documentsScreen).active:not(.fab-entered) .tasks-fab,#hubScreen.active:not(.hub-entered) .hub-create{animation:tasks-fade .2s ease}
  /* A tick or reopen fades instead of popping. */
  .task-card:is(.ticking,.just-checked) .task-check svg{animation:tasks-fade .2s ease}
}

/* Verify and Send back in the verification sheet (views/tasks/page.js, tasksTeamReview), never on a Team tasks row (2026-10-01). */
.team-task-decide{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.team-task-decide>button{min-height:44px}
.team-task-review{margin-top:6px}
.team-task-review .task-seg{margin-bottom:10px}
.team-task-send{width:100%;min-height:48px;margin-top:10px}

/* ---- The verification sheet (2026-10-01). */
.task-file-add{margin-top:10px}
#taskReviewStatus:empty{display:none}
.task-review-summary{margin:0 2px;white-space:pre-wrap;overflow-wrap:anywhere}
.task-card.team-task{cursor:pointer}
/* The pencil beside the task sheet's title, and the details form it opens at the top (2026-10-01). */
.task-edit-open[aria-expanded="true"]{color:var(--primary)}
.task-edit{margin:0 0 14px;padding-bottom:14px;border-bottom:1px solid var(--hairline)}
.task-edit-actions{flex-wrap:wrap;justify-content:flex-end}
#taskEditStatus{margin:0 var(--vx-sp-0h)}
#taskEditStatus:empty{display:none}
/* Add files: the picked files as chips, each with its remove, wrapping on a narrow phone. */
.task-pending{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;padding:0;list-style:none}
.task-pending:empty{display:none}
.task-pending-file{display:flex;align-items:center;gap:2px;min-width:0;max-width:100%;padding-block:4px;padding-inline:12px 2px;border:1px solid var(--line);border-radius:var(--r-inner);background:var(--fill-1)}
.task-pending-info{display:flex;flex-direction:column;min-width:0}
.task-pending-name{font-size:var(--font-size-small);font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.task-pending-info .task-meta{margin:0;font-size:var(--font-size-caption)}
.task-pending-remove{flex:none}
/* No sideways scroll on a phone (the lead, 2026-10-01): every row may shrink, long words wrap, and the body clips as a
   last guard. */
.task-sheet{min-width:0;max-width:100%}
.task-sheet .task-quote,.task-sheet label{overflow-wrap:anywhere}
.task-sheet .field,.task-sheet input[type=date]{min-width:0;max-width:100%}
.task-sheet .task-seg{flex-wrap:wrap}
.task-sheet .task-seg .seg-tab{flex:1 1 0}
/* Due's four chips (Today, Tomorrow, Next week, Pick a date) need about 390px on one line since they are the kit's chips
   (309px when this was written). In a narrower sheet (every phone) they sit two by two in equal halves rather than
   wrapping "Pick a date" alone onto a second row (27 Oct; layout pass: it wrapped alone at 390). The sheet is the
   container, so this follows the sheet's width, not the window's. The 400px is written in the @container rule (a
   container query cannot read a variable). */
.task-sheet{container:tasksheet/inline-size}
/* Urgency's four (about 330px) sit the same way beside them, so the form's two chip groups keep one shape on a phone and
   in Edit task's narrow desktop pane (about 300, where "Low" was left alone on a second row). */
@container tasksheet (width < 400px){.task-sheet .task-seg:is(.task-chips,.task-urg-chips){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
.sheet-body:has(>.task-sheet){overflow-x:hidden}

/* Team tasks' Overdue head and filters, the person button on a card, and the person sheet (2026-10-06). */
#tasksTeamShow{display:contents}
.team-task.is-overdue .task-meta .meta-part:last-child{color:var(--pink)}
/* The person's name: the meta line's own type, a shade brighter, so the line reads as one (no underline, no bold block);
   the tap area reaches 6px above and below without moving the line. */
.team-task-person{display:inline;margin:-6px 0;padding:6px 0;border:0;background:none;color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.team-task-person:active{opacity:.6}
/* Under a finger the name is a 44px target (an invisible area round it, as the kit's check box), the line unmoved. */
@media (pointer:coarse){.team-task-person{position:relative}.team-task-person::before{content:"";position:absolute;inset-block:calc((100% - var(--vx-h)) / 2);inset-inline:0}}
.team-task-rest{display:inline-block;max-width:100%}
.person-row{cursor:pointer}
.person-figures{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
.person-figures>div{display:flex;flex-direction:column;gap:2px;padding:10px 8px;border:1px solid var(--line);border-radius:var(--radius-md);min-width:0}
.person-figures b{font-family:var(--mono);font-size:var(--font-size-heading);font-weight:600}
.person-figures small{font-size:var(--font-size-meta);color:var(--text-2);overflow-wrap:anywhere}
.person-figures .is-overdue b{color:var(--pink)}
.person-tasks{list-style:none;margin:4px 0 12px;padding:0;display:flex;flex-direction:column;gap:6px}
.person-tasks li{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid var(--line)}
.person-tasks li.is-overdue .meta-part:first-child{color:var(--pink)}
.person-task-title{overflow-wrap:anywhere}
.person-actions,.team-task-manage{flex-wrap:wrap;margin-top:8px}
#personMessageBox{margin-top:8px;display:flex;flex-direction:column;gap:8px}
@media (max-width:400px){.person-figures{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---- One family (2026-10-21): a day's tasks are one glass card with hairlines between them, as the Drive's files,
   the meetings and the Toolbox are; the urgency edge stays (it is status). The desktop board keeps its columns. ---- */
#tasksScreen .task-group-body:not(:empty){gap:0;margin-block-start:2px;overflow:hidden}
#tasksScreen .task-group-body>.task-card{border:0;border-radius:0;background:none}
#tasksScreen .task-group-body>.task-card+.task-card{border-top:1px solid var(--row-edge)}

/* ---- Second kit pass (review S-T1..S-T4): the kit's pills, badge, checklist, bar, empty card and timeline, placed here. */
/* A step of the kit's checklist: the tick, the title (a button for the owner: Rename, Remove), when it was ticked, its
   weight at the end. */
.task-step-row{gap:var(--vx-sp-2h)}
.task-step-title{flex:1;min-inline-size:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:start;overflow-wrap:anywhere}
button.task-step-title{cursor:pointer}
button.task-step-title:focus-visible{outline:2px solid var(--vx-focus);outline-offset:2px;border-radius:var(--vx-r-xs)}
.task-step-meta{flex:none;font:var(--vx-fw-medium) var(--vx-fs-4) var(--vx-font);color:var(--vx-ink-3)}
.task-step-figure{flex:none;margin-inline-start:auto;font:var(--vx-fw-semibold) var(--vx-fs-6) var(--vx-font);color:var(--vx-ink-2);font-variant-numeric:tabular-nums}
/* The task's bar: its words (and Behind) over the kit's bar. */
.task-steps-progress{display:grid;gap:var(--vx-sp-1h)}
.task-steps-words{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--vx-sp-2);font:var(--vx-fw-medium) var(--vx-fs-6) var(--vx-font);color:var(--vx-ink-2)}
/* History on the kit's timeline: a dot, then when, who and what on one line, the note, a change and the files under it. */
.task-history-list{margin-block-start:var(--vx-sp-2)}
.task-history-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--vx-sp-1) var(--vx-sp-2);flex:1;min-inline-size:0}
.task-history-line>time{font:var(--vx-fw-medium) var(--vx-fs-4) var(--vx-font);color:var(--vx-ink-3)}
.task-history-who{font-weight:var(--vx-fw-semibold);color:var(--vx-ink)}
.task-history-note,.task-history-files{flex:1 0 100%;margin:0}
.task-history-note{color:var(--vx-ink)}
.task-history-change{font-variant-numeric:tabular-nums}
.task-history-files{display:flex;flex-wrap:wrap;gap:var(--vx-sp-1h);padding:0;list-style:none}
.task-pane-quiet>p{margin:0}
/* A sheet's kit field (and native select) keeps the room under it before the next label; a select is as wide as a field. */
.task-field{margin-block-end:var(--vx-sp-3)}
select.task-field{inline-size:100%}
/* Send back's reason and a new requirement: one line that grows as the note does; the requirement takes the row, Add beside it. */
.task-note-row>.task-one-line{flex:1 1 auto;min-inline-size:0}

/* ---- New task sheet spacing (lead, 10 Nov: "the spacing is bad in this with the buttons and text boxes"). New task, Edit
   task and Team's Edit task are the kit's form (.vx-form, its groups .vx-form-group: --vx-sp-4h between groups, --vx-sp-2
   inside one). No margin of its own is left on a field, chip row, help line or stepper. */
.task-new>*,.task-new .task-group>*,.task-new .task-group #taskNewDay{margin:0}
.task-new>.task-details-open{justify-self:start}
.task-new .task-stepper{gap:var(--vx-sp-2)}
.task-new .task-stepper .task-step{inline-size:var(--vx-h-field);block-size:var(--vx-h-field);border-color:var(--vx-hair);background:var(--vx-card);color:var(--vx-ink);font-size:var(--vx-fs-14)}
.task-new .task-stepper>.task-field{flex:0 1 calc(var(--vx-h-field) * 2)}
.task-new .task-stepper #taskNewSeats{min-block-size:var(--vx-h-field)}
.task-new .task-step-add{margin-block-start:0;gap:var(--vx-sp-2)}

/* ---- Layout pass (TK-13): the project line in the task's facts. Its folder stays on the name's first line and the
   name (any language) starts beside it, on the page's side, however many lines it takes. */
:is(.task-sheet,#taskPane) .task-project-tag{align-items:flex-start}
:is(.task-sheet,#taskPane) .task-project-tag>.icon{flex:none;margin-block-start:calc((1lh - var(--icon-size-sm)) / 2)}
:is(.task-sheet,#taskPane) .task-project-tag>span{min-inline-size:0;unicode-bidi:plaintext}
/* (the page's side: match-parent would say it, but Chrome resolves it against the name's own direction) */
:is(.task-sheet,#taskPane) .task-project-tag:dir(ltr)>span{text-align:left}
:is(.task-sheet,#taskPane) .task-project-tag:dir(rtl)>span{text-align:right}
