/* action-items.css - fetch-1972: Team > Action Items, the list filed by department (action-items.js). Tokens only: no raw colour,
   no pixel type sizes. The shared record, sheet and cell rules still come from aiShellCSS() (index.html); this file lays out the new
   list around them, under its own .ai2 wrapper so none of the old table's width rules apply.

   Drawn to the figures of the job's design page (round 4): the header is one card - title and tool row, the counts line as chips,
   the tabs along its foot (D2, D2b); a row is 40 pixels with a round Done, the title, a plain priority number, a round initial and a
   name, the venue's dot, a muted age, the due date and the revised date (D2); All is one row per department and the queues as their
   own card (D1); Closed is D2c; a phone's row is the title over who and when (P2).

   The row is one real table row at every width (rows and cells for a screen reader, with explicit roles because the row is laid out
   as a grid): one line at a desk, two lines from 721 to 1180 pixels (venue, age, revised and cost under the item), two lines on a
   phone. Each row is its own grid with no content-sized track that other rows read, so the columns line up without a table layout. */

/* ---------- the page ---------- */
.ai2 { padding-bottom: calc(2 * var(--control-height-touch) + var(--s-4)); } /* room under the last row for the floating help launcher and the pill above it (neither is moved) */
.ai2 .ai-row { cursor: default; }
.ai2 .ai-row:focus-visible { outline: none; }
/* a row is a grid of cells of their own heights: hover and the arrive glow tint the row, never each cell */
.ai2-tbl .ai-row:hover { background: color-mix(in srgb, var(--navy) 4%, var(--surface-card)); }
.ai2-tbl .ai-row:hover .ai-td { background: transparent; }
#content .ai2-tbl tr.ai-row.cse-arrive { background: color-mix(in srgb, var(--gold) 18%, transparent); }
#content .ai2-tbl tr.ai-row.cse-arrive > td { background: transparent; }
.ai2-card { margin-bottom: var(--s-3); border-radius: var(--r-l); }
.ai2-loading { padding: var(--s-3) 18px; }
.ai2-foot { margin: 0; padding: 10px 18px; border-top: 1px solid var(--hair); color: var(--muted); font-size: var(--t-sub); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
.ai2-foot .btn { min-height: var(--control-height-sm); }
.ai2-link { appearance: none; margin: 0; padding: 0; border: 0; background: none; color: var(--text-heading); font: inherit; font-weight: 650; cursor: pointer; }
.ai2-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ai2-foot[data-aiclosedfoot] { color: var(--ink); font-weight: 600; }
.ai2-foot[data-aifoot] { font-variant-numeric: tabular-nums; }
.ai2-foot .ai-late { color: var(--bad-fg); font-weight: 650; }
.ai2-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--r-s); }
.ai2 .mnt-total { margin: 0 0 var(--s-3); align-items: baseline; }
.ai2 .mnt-total strong { font-size: var(--t-body); }

/* ---------- the states (S1 to S9) and the save notes: a wash line with a bar at its left edge, a bold lead, one underlined action ---------- */
.ai2 .empty-state.ai2-empty, .ai2 .empty-state.filtered-zero { display: flex; flex-direction: column; align-items: flex-start; max-width: none; margin: 0 0 var(--s-3); padding: 18px 20px; border: 1px solid var(--hair); border-radius: var(--r-l); background: var(--surface-card); text-align: left; } /* S2, S4: a card in the list's place, its words at the left */
.ai2 .ai2-empty .es-title, .ai2 .filtered-zero .es-title { color: var(--ink); font-size: var(--t-mid); font-weight: 700; }
.ai2 .ai2-empty .es-body { margin: var(--s-2) 0 var(--s-3); color: var(--muted); font-size: var(--t-mid); }
.ai2 .ai2-empty .btn { min-height: var(--control-height-icon); border-radius: var(--r-m); }
.ai2 .stale-line, .ai2 .load-failed { margin-top: 0; }
.ai2 .stale-line { display: flex; align-items: center; gap: var(--s-3); margin: 0 0 var(--s-2); padding: var(--s-2) var(--s-3); border: 0; border-radius: var(--r-s); background: var(--wash); box-shadow: inset 3px 0 0 var(--bad-fg); color: var(--bad-fg); font-size: var(--t-sub); }
.ai2 .stale-line.ai2-partline { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--navy) 30%, transparent); color: var(--muted); }
.ai2 .stale-line .stale-line-t { flex: 1 1 auto; min-width: 0; }
.ai2 .stale-line .btn, .ai2 .row-note .row-note-btn { flex: 0 0 auto; height: auto; padding: 0 var(--s-1); border: 0; background: none; box-shadow: none; color: var(--navy); font-size: var(--t-sub); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.ai2 .load-failed { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--s-3); min-height: 0; max-width: none; margin: 0 0 var(--s-3); padding: 18px 20px; border: 1px solid var(--hair); border-radius: var(--r-l); background: var(--surface-card); color: var(--ink); font-size: var(--t-mid); text-align: left; }
.ai2 .load-failed .load-failed-t { flex: 0 0 auto; }
/* could not load (S5): what failed in bold, what it means quieter on the line beneath, then Try again */
.ai2 .ai2-fail { gap: 10px; }
.ai2 .ai2-fail-what { display: block; color: var(--ink); font-size: var(--t-mid); font-weight: 700; }
.ai2 .ai2-fail-why { display: block; margin-top: var(--s-1); color: var(--muted); font-size: var(--t-mid); }
.ai2 .ai2-fail .load-failed-btn { min-height: var(--control-height-icon); border-radius: var(--r-m); font-size: var(--t-mid); font-weight: 650; }
@media (max-width: 720px) { .ai2 .ai2-fail .load-failed-btn { min-height: var(--control-height-touch); } }
.ai2 .row-note { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border: 0; border-radius: 0; background: var(--wash); box-shadow: inset 3px 0 0 var(--ok-fg); color: var(--muted); font-size: var(--t-sub); }
.ai2 .row-note--err { box-shadow: inset 3px 0 0 var(--bad-fg); }
/* the rule at a note's left takes the tone of where the change is (figures N1 to N4): saved is the ok green, refused the breach red; a change
   still on this device or on its way has no result to colour, and one whose answer is not known yet is the page's own navy */
.ai2 .row-note:not(.row-note--err):is([data-save-state="queued"], [data-save-state="sending"]) { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--navy) 30%, transparent); }
.ai2 .row-note:not(.row-note--err)[data-save-state="unknown"] { box-shadow: inset 3px 0 0 var(--navy); }
.ai2 .row-note .row-note-t { flex: 1 1 auto; min-width: 0; }

/* ---------- the header (D2): the title and the tool row; the counts line as chips; the tabs along the card's foot ---------- */
.ai2-pbar { display: none; }
.ai2-pbar .ai-lens-c:empty { padding: 0; background: none; } /* no count until the items have answered: nothing is drawn, and the chevron keeps its place */
.ai2 .pgh-tabrow { --ai2-tabgap: clamp(10px, calc(10px + (100vw - 1024px) * 0.11), 20px); display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 0 var(--ai2-tabgap); min-width: 0; } /* Other work sits at the far end; the gap closes as the window narrows; tabs that still do not fit wrap, none is cut off */
.ai2 .pgh-tabrow > .pgh-tabs { flex: 0 1 auto; flex-wrap: wrap; gap: 0 var(--ai2-tabgap); margin-top: 0; min-width: 0; overflow: visible; box-shadow: none; }
.ai2 .pgh-tab { display: inline-flex; align-items: center; height: var(--control-height-md); padding-block: 0; font-size: var(--t-mid); font-weight: 550; }
.ai2 .pgh-tab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.ai2 .pgh-tab .n { font-weight: 500; } /* fetch-2027 (impeccable audit, WCAG AA): no opacity - .85 over --muted read 3.6:1 on white; --muted alone is 4.9:1 */
.ai2 .pgh-search input::placeholder { color: var(--muted); opacity: 1; } /* fetch-2027: the browser's own grey read 4.3:1 on the search's wash */
.ai2 .pgh-tabmenu { flex: 0 0 auto; }
.ai2 .pgh-tabrow > [data-cmenu="aiQueues"] { margin-left: auto; }
.ai2 .pgh-tabmenu .btn.cmenu-trigger--word { flex-direction: row-reverse; gap: var(--s-1); width: auto; height: var(--control-height-md); min-height: 0; padding: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted); font-weight: 550; }
.ai2 .pgh-tabmenu .btn.cmenu-trigger--word:hover { color: var(--ink); }
.ai2 .pgh-tabmenu .cmenu-word { font-size: var(--t-mid); }
.ai2 .pgh-tabmenu--on .btn.cmenu-trigger--word { color: var(--ink); font-weight: 700; border-bottom-color: var(--brand-gold-mid); }
.ai2 .pgh-tab:focus-visible, .ai2 .pgh-tabmenu .btn.cmenu-trigger--word:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--r-s); }
/* the counts line: the scope's total in bold, then each count as a bordered chip; a chosen count is filled and carries its own remove */
.ai2 .pgh-facts { gap: var(--s-1) var(--s-2); margin-top: 10px; color: var(--muted); font-size: var(--t-sub); }
.ai2 .pgh-facts > .pgh-fact:first-child, .ai2 .pgh-facts > .pgh-fact:first-child strong { color: var(--ink); font-weight: 650; }
.ai2 .pgh-fact--btn { display: inline-block; box-sizing: border-box; height: 28px; min-height: 0; margin: 0; padding: 0 9px; line-height: 26px; white-space: nowrap; border: 1px solid var(--hair); border-radius: 8px; background: transparent; color: var(--navy); font-weight: 600; text-decoration: none; }
.ai2 .pgh-fact--btn strong { color: inherit; font-weight: inherit; }
.ai2 .pgh-fact--btn:hover { background: var(--wash); }
.ai2 .pgh-fact--btn[data-actquick="late"]:not([aria-label$=", 0"]):not([aria-pressed="true"]) { color: var(--bad-fg); } /* overdue is the one count in the breach colour, and only when there is one */
.ai2 .pgh-fact--btn[aria-pressed="true"], .ai2 .pgh-fact--btn[aria-pressed="true"]:hover { border-color: var(--navy); background: var(--navy); color: var(--surface-card); }
.ai2 .pgh-fact--btn[aria-pressed="true"]::after { content: "\00d7"; margin-left: var(--s-2); font-weight: 600; }
.ai2 .pgh-fact--btn[data-actquick="open"] { height: auto; padding: 0; border: 0; line-height: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; } /* Clear */
.ai2 .pgh-fact--btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.ai2 .pgh-meta { margin-top: 10px; font-size: var(--t-sub); }
.ai2 .pgh-meta .pgh-tokens { margin-left: 0; }
.ai2 .pgh-meta .pgh-token { min-height: 28px; border-color: var(--navy); border-radius: 8px; background: var(--navy); color: var(--surface-card); font-weight: 600; }
.ai2 .pgh-meta .pgh-token-x { color: inherit; }
/* Sort: one worded control with its chevron, between the search and Filters */
.ai2 .ai2-sortmenu > .btn.cmenu-trigger--word { flex-direction: row-reverse; gap: var(--s-1); width: auto; }
.ai2 .ai2-sortmenu .cmenu-i[aria-current="true"] { font-weight: 700; }
.ai2 .ai2-sortmenu .cmenu-i[aria-current="true"]::after { content: "\2713"; margin-left: auto; padding-left: var(--s-3); color: var(--navy); }
@media (min-width: 721px) {
  .ai2 > .pgh { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-2); padding: 14px 18px 0; margin-bottom: var(--s-4); border-radius: var(--r-l); }
  .ai2 > .pgh > * { order: 9; flex: 0 0 100%; }
  .ai2 > .pgh::before { content: ""; order: 4; flex: 0 0 100%; height: 0; } /* the line ends after the tool row, whatever the counts line holds */
  .ai2 > .pgh > .pgh-top { display: contents; }
  .ai2 > .pgh .pgh-titles { order: 1; flex: 0 0 auto; }
  .ai2 > .pgh > .pgh-row { order: 2; flex: 1 1 0; flex-wrap: nowrap; justify-content: flex-end; gap: var(--s-2); min-width: 0; margin-top: 0; }
  .ai2 > .pgh .pgh-acts { order: 3; flex: 0 0 auto; gap: var(--s-2); }
  .ai2 > .pgh > .pgh-facts { order: 5; flex: 0 1 auto; }
  .ai2 > .pgh > .pgh-meta { order: 6; flex: 1 1 0; min-width: 10rem; }
  .ai2 > .pgh > .pgh-status { order: 7; margin-top: var(--s-2); }
  .ai2 > .pgh > .pgh-tabrow { order: 8; flex: 0 0 auto; width: calc(100% + 36px); box-sizing: border-box; margin: 12px -18px 0; padding: 0 18px; border-top: 1px solid var(--hair); box-shadow: none; }
  /* a "·" stands between the counts, as the figures draw the line. Every count carries the 12 pixels its "·" stands in and the line is drawn
     12 to the left, so a wrapped line starts where the first one does; the binder marks whatever starts a line (aiFactsLines) and no "·"
     is drawn before it. The filters' tokens follow the counts on their line, or start their own under them: marked then, and moved to the
     line's start without changing any size. */
  .ai2 > .pgh > .pgh-facts { margin-left: -12px; }
  .ai2 .pgh-facts > *, .ai2 .pgh-facts ~ .pgh-meta .pgh-tokens { position: relative; margin-left: 12px; }
  .ai2 .pgh-facts > .ai2-ls::before, .ai2 .pgh-facts ~ .pgh-meta .pgh-tokens.ai2-ls::before { content: none; }
  .ai2 .pgh-facts ~ .pgh-meta .pgh-tokens.ai2-ls { transform: translateX(-12px); }
  .ai2 .pgh-facts > * + *::before, .ai2 .pgh-facts ~ .pgh-meta .pgh-tokens::before { content: "\00b7"; position: absolute; left: -13px; top: 50%; width: 6px; transform: translateY(-50%); color: var(--muted); font-weight: 400; text-align: center; text-decoration: none; pointer-events: none; }
  /* the tool row, in the figures' order: search, Sort, Filters, the list's menu, the add button */
  .ai2 > .pgh .pgh-search { position: relative; flex: 0 1 250px; width: 250px; min-width: 9rem; height: var(--control-height-icon); box-sizing: border-box; padding: 0 var(--s-2) 0 34px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--wash); }
  .ai2 > .pgh .pgh-search input { font-size: var(--t-mid); }
  .ai2 > .pgh .ai2-sortmenu > .btn.cmenu-trigger--word, .ai2 > .pgh .pgh-filters { height: var(--control-height-icon); min-height: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); box-shadow: none; color: var(--navy); font-size: var(--t-mid); font-weight: 650; }
  .ai2 > .pgh .ai2-sortmenu .cmenu-word { font-size: var(--t-mid); }
  .ai2 .pgh-meta .pgh-token { gap: 0; padding-left: 9px; }
  /* round 5 addendum (design rule 21, 2026-11-14): a token's x keeps portal.css's own 44px hit area (fetch-1671), overhanging the 28px chip;
     it was drawn 26px here, under the floor rule 8 forbids buying space with */
  .ai2 > .pgh .pgh-acts > .cmenu { order: 1; }
  .ai2 > .pgh .pgh-acts > :not(.cmenu) { order: 2; }
  .ai2 > .pgh .pgh-acts > .cmenu > .btn { width: var(--control-height-icon); height: var(--control-height-icon); border-radius: var(--r-m); }
  .ai2 > .pgh .pgh-acts .btn-primary { height: var(--control-height-icon); min-height: 0; font-size: var(--t-mid); }
}
/* 721 to 879 pixels (a tablet held upright): the title, the tool row and the buttons do not fit one line. The title and the buttons keep the
   first; the search, Sort and Filters take the next one, whole - never run over the title. */
@media (min-width: 721px) and (max-width: 879px) {
  .ai2 > .pgh .pgh-titles { flex: 1 1 auto; }
  .ai2 > .pgh > .pgh-row { order: 4; flex: 0 0 100%; justify-content: flex-start; margin-top: var(--s-2); }
  .ai2 > .pgh .pgh-search { flex: 1 1 250px; width: auto; }
}
/* the search glass and the filter lines are drawn here: the header's own search box and Filters button carry no glyph */
.ai2 > .pgh .pgh-search::before { content: ""; position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border: 1.5px solid var(--muted); border-radius: 50%; }
.ai2 > .pgh .pgh-search::after { content: ""; position: absolute; left: 23px; top: 50%; width: 5px; height: 1.5px; margin-top: 4px; border-radius: 1px; background: var(--muted); transform: rotate(45deg); transform-origin: left center; }
.ai2 > .pgh .pgh-filters::before { content: ""; flex: 0 0 auto; width: 14px; height: 10px; background: linear-gradient(currentColor, currentColor) center top / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center bottom / 6px 1.5px no-repeat; }

/* ---------- Filters: a side sheet at a desk; on a phone the whole sheet (Show, Filters, Venue, Sort, This list) ---------- */
.ai2-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 0 var(--s-3) var(--s-2) var(--s-4); font-size: var(--t-section); }
.ai2-sheet .ai-lab--sep { margin-top: var(--s-4); }
.ai2-sheet:focus { outline: none; }
.ai2-sheet .ai-opt:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
@media (min-width: 721px) {
  .ai2-sheet.ai-sheet { top: 0; right: 0; bottom: 0; left: auto; width: min(22rem, 100%); max-height: none; padding-top: var(--s-3); border-radius: 0; border-left: 1px solid var(--line); }
  .ai2-phoneonly { display: none; }
}

/* ---------- the list (D2) ---------- */
.ai2-tbl { display: block; width: 100%; border-collapse: collapse; font-size: var(--t-mid); --ai2-pri: 34px; --ai2-in: 30px; --ai2-ven: 56px; --ai2-who: 146px; }
.ai2-tbl > thead, .ai2-tbl > tbody { display: block; }
.ai2-tbl tr { display: grid; grid-template-columns: [done] calc(44px + var(--ai2-in)) [item] minmax(0, 1fr) [venue] var(--ai2-ven) [pri] var(--ai2-pri) [who] var(--ai2-who) var(--ai2-from,) [age] 56px [due] 122px var(--ai2-cost,) [rev] 56px [end] 40px; column-gap: 10px; align-items: center; min-height: var(--control-height-md); border-top: 1px solid var(--hair); } /* the row has no padding of its own: the first cell holds the left room (--ai2-in) and the last the right, so the line under a row is the row's full width */
.ai2-tbl > tbody > tr:first-child { border-top: 0; }
.ai2-tbl--mnt { --ai2-pri: 5rem; }
.ai2-tbl--q { --ai2-from: [from] minmax(0, 8.5rem); }
.ai2-tbl--cost { --ai2-cost: [cost] 6.5rem; }
.ai2-tbl .ai-th, .ai2-tbl .ai-td { display: block; grid-row: 1; min-width: 0; padding: 6px 0; border-bottom: 0; overflow-wrap: anywhere; white-space: normal; }
.ai2-nb { white-space: nowrap; }
/* the headings: sentence case on the wash band */
.ai2-tbl > thead > tr { min-height: 34px; border-top: 0; border-bottom: 1px solid var(--line); border-radius: var(--r-l) var(--r-l) 0 0; background: var(--wash); }
.ai2-tbl .ai-th { padding-block: 0; background: transparent; color: var(--muted); font-size: var(--t-sub); font-weight: 650; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.ai2-c-done { grid-column: done; }
.ai2-c-item { grid-column: item; }
.ai2-c-pri { grid-column: pri; }
.ai2-c-who { grid-column: who; }
.ai2-c-from { grid-column: from; }
.ai2-c-venue { grid-column: venue; }
.ai2-c-age { grid-column: age; }
.ai2-c-due { grid-column: due; }
.ai2-c-cost { grid-column: cost; }
.ai2-c-rev { grid-column: rev; }
.ai2-c-end { grid-column: end; }
/* Done: a 20-pixel circle; the whole cell is its target. fetch-1967 AC4 holds the hit area at 44 by 44 at every width, so an open
   row is 44 pixels tall on a desk (the figure draws 40) */
.ai2-tbl .ai-th.ai2-c-done { padding-left: var(--ai2-in); }
.ai2-tbl .ai-td.ai2-c-done { display: flex; justify-content: center; padding: 0 0 0 var(--ai2-in); }
.ai2-tbl .ai-td.ai-donecell { cursor: pointer; }
.ai2-tbl .ai-done { position: relative; width: 44px; height: var(--control-height-touch); }
.ai2-tbl .ai-done::after { content: ""; position: absolute; top: 50%; left: 50%; width: 5px; height: 9px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; opacity: 0; transform: translate(-50%, -62%) rotate(45deg); pointer-events: none; }
.ai2-tbl .ai-done:has(.ai-cbx:checked)::after { border-color: var(--surface-card); opacity: 1; }
@media (hover: hover) { .ai2-tbl .ai-done:hover::after, .ai2-tbl .ai-donecell:hover > .ai-done::after { opacity: 1; } }
@media (min-width: 721px) { .ai2-tbl tr.ai2-row:not(.ai2-row--closed) { min-height: var(--control-height-touch); } } /* a row with no Done control (daily work, a blocked item) is the same height */
.ai2-tbl .ai-cbx { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--muted); border-radius: 50%; background: var(--surface-card); cursor: pointer; }
.ai2-tbl .ai-cbx:hover { border-color: var(--navy); }
.ai2-tbl .ai-cbx:checked { border-color: var(--navy); background: var(--navy); }
.ai2-tbl .ai-cbx:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* the row's one quiet menu */
.ai2-tbl .ai-td.ai2-c-end { display: flex; justify-content: flex-end; padding: 0 12px 0 0; }
.ai2-c-end .btn.cmenu-trigger { width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0; border-color: transparent; border-radius: var(--r-s); background: transparent; box-shadow: none; color: var(--muted); }
.ai2-c-end .btn.cmenu-trigger:hover, .ai2-c-end .btn.cmenu-trigger[aria-expanded="true"] { border-color: var(--line); background: var(--mute-bg); color: var(--ink); }
.ai2-c-end .cmenu-list { min-width: 264px; } /* "Asks for a reason. Nothing is deleted." on one line (D2d) */
.ai2-c-end .cmenu-i > span { font-weight: 600; } /* D2d: the worded item, its consequence in small muted words under it */
.ai2-c-end .cmenu-i > span > small { font-weight: 400; }
.ai2-tbl .ai-th.ai2-c-cost, .ai2-tbl .ai-td.ai2-c-cost { text-align: right; }
.ai2-daily { font-size: var(--t-sub); line-height: 1.3; } /* fetch-2027: on the state line above the title, left with the title (it was right-aligned in the 40px end column) */
.ai2-why { color: var(--muted); font-size: var(--t-sub); overflow-wrap: anywhere; } /* fetch-2027 (rule 30): a blocked row's reason, in words beside "Blocked" */
/* priority: the plain number, muted and centred; nothing when there is none */
.ai2-tbl .ai-th.ai2-c-pri, .ai2-tbl .ai-td.ai2-c-pri { text-align: center; }
.ai2-tbl .ai-td.ai2-c-pri { color: var(--muted); font-size: var(--t-sub); font-variant-numeric: tabular-nums; }
.ai2-tbl .ai-pri { display: inline-block; width: auto; min-width: 1.25rem; height: auto; border-radius: 0; background: none; color: inherit; font-size: inherit; font-weight: 400; line-height: inherit; }
/* who is on it: a round initial and the plain name; two rounds and "Shared"; muted words when nobody is */
.ai2-tbl .ai-who, .ai2-tbl .ai-venue, .ai2-tbl .ai-due, .ai2-tbl .ai-age { color: var(--ink); font-size: var(--t-sub); font-weight: 400; white-space: nowrap; }
.ai2-tbl .ai-who > .acted, .ai2-tbl .ai-venue > .acted { max-width: 100%; vertical-align: middle; }
.ai2-tbl .ai-owner { display: inline-block; max-width: 100%; padding: 0; overflow: hidden; border-radius: 0; background: none; color: var(--ink); font-size: var(--t-sub); font-weight: 400; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.ai2-tbl .ai-owner--none { color: var(--muted); }
/* fetch-2037: who is on it - two-letter rounds, four at most and a navy "+N"; the card opens under them (a sheet on a phone) */
.ai2-ppl-w { position: relative; display: inline-block; max-width: 100%; vertical-align: middle; }
.ai2-ppl { display: inline-flex; align-items: center; min-height: var(--control-height-touch); margin: -6px 0; padding: 0 4px 0 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--t-sub); cursor: pointer; pointer-events: auto; }
.ai2-ppl:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--r-s); }
.ai2-rd { display: inline-grid; flex: 0 0 auto; place-items: center; box-sizing: border-box; width: 28px; height: 28px; border-radius: 50%; background: var(--mute-bg); color: var(--navy); font-size: var(--t-label); font-style: normal; font-weight: 700; line-height: 1; }
.ai2-ppl .ai2-rd { box-shadow: 0 0 0 2px var(--surface-card); }
.ai2-ppl .ai2-rd--own { box-shadow: 0 0 0 2px var(--surface-card), inset 0 0 0 1.5px var(--navy); }
.ai2-ppl .ai2-rd + .ai2-rd { margin-left: -2px; } /* more cover cuts the second letter */
.ai2-plus { display: inline-grid; place-items: center; height: 22px; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--navy); color: var(--paper); font-size: var(--t-label); font-weight: 700; font-variant-numeric: tabular-nums; }
.ai2-plus--t { display: none; }
@media (max-width: 359px) { .ai2-rd--w, .ai2-plus:not(.ai2-plus--t) { display: none; } .ai2-plus--t { display: inline-grid; } } /* past four people: two rounds and the rest, clear of a late due date */
.ai2-who-none { color: var(--muted); }
.ai2-pcard { position: absolute; top: calc(100% + 4px); right: 0; z-index: 320; width: 17rem; max-width: calc(100vw - 32px); padding: var(--s-2) 0 0; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); box-shadow: 0 12px 30px rgba(20, 33, 61, .18); text-align: left; white-space: normal; pointer-events: auto; }
.ai2-pc-k { margin: 0; padding: 0 var(--s-3) var(--s-1); color: var(--muted); font-size: var(--t-sub); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ai2-pc-k > span { color: var(--ink); font-variant-numeric: tabular-nums; }
.ai2-pc-l { max-height: min(21rem, 50vh); margin: 0; padding: 0 0 var(--s-1); overflow: auto; list-style: none; }
.ai2-pc-r { display: flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 2px var(--s-3); }
.ai2-pc-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ai2-pc-t b { color: var(--ink); font-size: var(--t-mid); font-weight: 650; overflow-wrap: anywhere; }
.ai2-pc-t small { color: var(--muted); font-size: var(--t-sub); }
.ai2-pc-none { margin: 0; padding: 0 var(--s-3) var(--s-2); color: var(--muted); font-size: var(--t-sub); }
.ai2-pc-go { display: flex; align-items: center; width: 100%; min-height: var(--control-height-touch); padding: 0 var(--s-3); border: 0; border-top: 1px solid var(--hair); border-radius: 0 0 var(--r-m) var(--r-m); background: none; color: var(--navy); font: inherit; font-size: var(--t-mid); font-weight: 650; cursor: pointer; }
.ai2-pc-go:hover { background: var(--wash); }
.ai2-pc-go:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.ai2-pc-scrim { display: none; }
/* fetch-2037 (D1): venue is a dot per venue in its own column, the name in a tip on hover and on the door's focus */
.ai2-tbl .ai-td.ai2-c-venue { overflow: visible; }
.ai2-vds { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 20px; vertical-align: middle; }
.ai2-vd { position: relative; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--vc, var(--muted)); }
/* fetch-2037.2: one tip for the dots (a tip per dot plus the group's own drew two); none while the venue box is open */
.ai2-vds::after { position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 330; padding: 3px 8px; border-radius: var(--r-s); background: var(--navy-dark); color: var(--paper); font-size: var(--t-sub); font-weight: 600; white-space: nowrap; pointer-events: none; transform: translateX(-50%); }
.ai2-vds:hover::after, .acted:focus-visible > .ai2-vds::after { content: attr(data-tip); }
.acted[aria-expanded="true"] > .ai2-vds::after { content: none; }
.ai2-tbl .ai2-c-venue .acted { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 28px; min-height: 28px; padding: 0 4px; border-bottom: 0; border-radius: var(--r-s); vertical-align: middle; }
.ai2-tbl .ai-td .acted[aria-expanded="true"] { border-bottom-color: transparent; background: color-mix(in srgb, var(--navy) 8%, var(--surface-card)); }
/* Age and Revised are muted; only Due carries the breach colour */
.ai2-tbl .ai-venue { overflow: hidden; text-overflow: ellipsis; }
.ai2-tbl .ai-venue .vchip { display: inline-block; max-width: 100%; overflow: hidden; color: var(--ink); font-size: var(--t-sub); font-weight: 400; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; } /* one line: a long name is cut with an ellipsis, never stacked */
.ai2-tbl .ai-venue .vchip .vdot { margin-right: 5px; }
.ai2-tbl .ai-td.ai2-c-age, .ai2-tbl .ai-td.ai2-c-rev { color: var(--muted); font-variant-numeric: tabular-nums; }
.ai2-tbl .ai-late { color: var(--bad-fg); font-weight: 650; }
.ai2-nodate { color: var(--muted); }
/* the full line under a row: an open editor, a save note, the reason ask, a result. Never a cell a few pixels wide. */
.ai2-tbl .ai-td.ai2-c-note, .ai2-tbl .ai-td.ai-note-td { grid-column: 1 / -1; }
.ai2-tbl .ai-td.ai2-c-note { grid-row: 2; padding: 0 12px var(--s-2) calc(54px + var(--ai2-in)); }
.ai2-tbl .ai-td.ai-note-td { padding: var(--s-2) 12px var(--s-2) calc(54px + var(--ai2-in)); }
.ai2-tbl .ai-note-td:focus { outline: none; }
.ai2-c-note > *, .ai2 .ai-note-td > .row-note { margin: var(--s-1) 0 0; }
.ai2-c-note .ai-pedit { max-width: 34rem; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); }
.ai2-c-note .ai-pedit .inp, .ai2-c-note .ai-pedit select { max-width: 100%; min-height: var(--control-height-sm); }
.ai2-c-note .row-note-btn, .ai2 .ai-note-td .row-note-btn, .ai2-c-note .ai-pedit .btn { min-height: var(--control-height-touch); }
.ai2-c-note .ai-pnote { display: block; }
/* fetch-2037.2: an open field is a box at its cell (rules 10, 23); it opens to the other side where the screen ends (aiFboxBind) */
.ai2-tbl .ai-td .acted { cursor: pointer; }
.ai2-fw { position: relative; display: inline-block; max-width: 100%; vertical-align: middle; }
.ai2-fbox { position: absolute; top: calc(100% + 6px); left: 0; z-index: 320; box-sizing: border-box; width: 17rem; max-width: calc(100vw - 32px); padding: var(--s-2) var(--s-3) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); box-shadow: 0 12px 30px rgba(20, 33, 61, .18); color: var(--ink); font-size: var(--t-mid); font-weight: 400; line-height: 1.35; text-align: left; white-space: normal; cursor: default; }
.ai2-fbox:focus { outline: none; }
.ai2-fbox--end { right: 0; left: auto; }
.ai2-fbox--up { top: auto; bottom: calc(100% + 6px); }
.ai2-fbox-h { margin: 0 0 var(--s-2); padding-right: 36px; color: var(--muted); font-size: var(--t-sub); font-weight: 700; letter-spacing: .08em; line-height: 28px; text-transform: uppercase; }
.ai2-fbox .ai-pedit { gap: var(--s-2); }
.ai2-fbox .ai-pedit-acts .icon-btn { position: absolute; top: 4px; right: 4px; }
.ai2-fbox .inp { box-sizing: border-box; width: 100%; min-height: var(--control-height-sm); font-size: var(--t-mid); }
.ai2-fbox .af-fhint:empty { display: none; }
.ai2-fbox .row-note-btn { min-height: var(--control-height-touch); }
.ai2-fbox .date-presets { gap: var(--s-1); margin: 0; }
.ai2-fbox--wide { width: 21.5rem; }
.ai2-fbox .date-preset { align-items: center; min-height: var(--control-height-sm); padding: 0 10px; font-size: var(--t-mid); font-weight: 600; }
.ai2-fbox .date-preset-d { display: none; }
/* a choice is a list to tick; the radio on the right */
.ai-fchoices { display: flex; flex-direction: column; max-height: min(18rem, 46vh); overflow: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); }
.ai-fchoice { display: flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-3); border-bottom: 1px solid var(--hair); color: var(--ink); font-size: var(--t-mid); font-weight: 400; cursor: pointer; }
.ai-fchoice:last-child { border-bottom: 0; }
.ai-fchoice[hidden] { display: none; }
.ai-fchoice:hover { background: var(--wash); }
.ai-fchoice > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ai-fchoice > input { order: 3; flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.ai-fchoice:has(> input:checked) { font-weight: 650; }
.ai-fchoice:has(> input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.ai-fchoice > input:focus-visible { outline: none; }
.ai-fchoice:has(> input:disabled) { color: var(--muted); cursor: default; }
.ai-fdots { display: inline-flex; flex: 0 0 auto; gap: 4px; }
.ai-fdot { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--vc, var(--muted)); }
.ai-ffind { box-sizing: border-box; width: 100%; }
.ai2-fbox .ai-fchoices { margin: 0 calc(-1 * var(--s-3)) calc(-1 * var(--s-2)); border: 0; border-top: 1px solid var(--hair); border-radius: 0; }
.ai2 .ai-drawer .ai-fld .ai-pedit:has(> .ai-fchoices) { flex-flow: row wrap; align-items: flex-start; } /* the record: its close beside the list */
.ai2 .ai-drawer .ai-fld .ai-pedit:has(> .ai-fchoices) > .ai-fchoices { flex: 1 1 14rem; max-width: 22rem; }
.ai2 .ai-drawer .ai-fld .ai-pedit:has(> .ai-fchoices) > .af-fhint { flex: 1 1 100%; }
.ai2 .ai-drawer .ai-fld .ai-pedit:has(> .ai-fchoices) > .af-fhint:empty { display: none; }
@media (max-width: 720px) { .ai-fchoice { min-height: var(--control-height-touch); } }
/* the item cell: the title alone, on one line, and it is the link that opens the record; the latest update by a person sits under it.
   The rename door stays where it was (after the title, a tab stop); its pencil is painted on the row in hand, not on every resting row. */
.ai2-titleline { display: flex; align-items: center; gap: var(--s-1); min-width: 0; }
.ai2-title { appearance: none; min-width: 0; max-width: 100%; margin: 0; padding: 0; overflow: hidden; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.ai2-title:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.ai2-title:focus-visible, .ai2-sort:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--r-s); }
.ai2-titleline > .acted { display: inline-flex; flex: 0 0 auto; min-width: 0; padding: 2px; border-bottom: 0; color: var(--muted); opacity: 0; cursor: pointer; }
.ai2-row:hover .ai2-titleline > .acted, .ai2-titleline > .acted:focus, .ai2-titleline > .acted:hover { opacity: 1; }
.ai2-titleline > .acted:hover, .ai2-titleline > .acted:focus { color: var(--ink); }
.ai2-statechip { display: block; margin-bottom: 2px; }
.ai2-filed { display: block; margin-top: 1px; color: var(--muted); font-size: var(--t-sub); }
.ai2-meta { margin-top: 1px; color: var(--muted); font-size: var(--t-sub); } /* a phone's line; wider screens have the cells (.ai2-phoneonly hides it there) */
.ai2-meta .vchip { color: inherit; font-weight: 400; }
.ai2-tbl .ai-upd { display: block; margin-top: 1px; overflow: hidden; color: var(--muted); font-size: var(--t-sub); text-overflow: ellipsis; white-space: nowrap; }
.ai2-tbl .ai-upd em { color: var(--ink); font-style: normal; font-weight: 650; }
.ai2-k { display: none; color: var(--muted); font-weight: 400; }
.ai2-from { color: var(--navy); font-size: var(--t-sub); }
.ai2-tbl .ai2-svy { display: inline-flex; align-items: center; gap: var(--s-1); max-width: 100%; height: auto; min-height: var(--control-height-sm); text-align: left; white-space: normal; }
.ai2-sort { appearance: none; display: inline-flex; align-items: center; gap: 3px; max-width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; cursor: pointer; }
.ai2-sort:hover { color: var(--navy); }
.ai2-sort .ai-ar { display: inline-flex; margin-left: 0; color: var(--muted); }
.ai2-sort .ai-ar--flip { transform: rotate(180deg); }
/* a prospect's row is drawn by crm-prospects.js in the old column order; it is placed into this grid by position */
.ai2-tbl .prx-ai-row > :nth-child(1) { grid-column: item; grid-row: 1; padding-bottom: 0; }
.ai2-tbl .prx-ai-row > :nth-child(3) { grid-column: item; grid-row: 2; padding-top: 0; }
.ai2-tbl .prx-ai-row > :nth-child(2) { grid-column: pri; text-align: center; }
.ai2-tbl .prx-ai-row > :nth-child(4) { grid-column: who; }
.ai2-tbl .prx-ai-row > :nth-child(5) { display: none; }
.ai2-tbl--q .prx-ai-row > :nth-child(5) { display: block; grid-column: from; }
.ai2-tbl .prx-ai-row > :nth-child(6) { grid-column: venue; }
.ai2-tbl .prx-ai-row > :nth-child(7) { grid-column: age; }
.ai2-tbl .prx-ai-row > :nth-child(8) { grid-column: due; }
.ai2-tbl .prx-ai-row > :nth-child(9) { display: none; }
.ai2-tbl--cost .prx-ai-row > :nth-child(9) { display: block; grid-column: cost; }
.ai2-tbl .prx-ai-row > :nth-child(10) { grid-column: rev; }
.ai2-tbl .prx-ai-row > :nth-child(11) { grid-column: rev / -1; grid-row: 2; padding-top: 0; padding-right: 12px; font-size: var(--t-sub); line-height: 1.3; text-align: right; } /* fetch-2027: inside the card's edge, as the menu column is (it ran to the edge, L-follow) */
.ai2-tbl .prx-ai-row > :is(:nth-child(2), :nth-child(4), :nth-child(5), :nth-child(6), :nth-child(7), :nth-child(8), :nth-child(9), :nth-child(10)) { grid-row: 1 / span 2; } /* one selector weight with the lines around it: a later line (the filed row, a narrower layout) can still place a cell */
.ai2-tbl .prx-ai-row > :is(:nth-child(2), :nth-child(6), :nth-child(10)) { visibility: hidden; }
.ai2-tbl .prx-ai-open { text-align: left; overflow-wrap: anywhere; }
/* where rows of several kinds share a list (My items), a prospect says where it is filed too: its own "Prospecting" words, under its title */
.ai2-tbl--filed .prx-ai-row > :nth-child(5) { display: block; grid-column: item; grid-row: 3; padding-top: 0; color: var(--muted); font-size: var(--t-sub); }

/* ---------- Closed (D2c) ---------- */
.ai2-tbl--closed tr { grid-template-columns: [state] 122px [item] minmax(0, 1fr) [who] 170px [due] 72px [end] 46px; column-gap: 12px; }
.ai2-tbl--closed .ai2-c-state { padding-left: 18px; }
.ai2-tbl.ai2-tbl--closed .ai-td.ai2-c-end { padding-right: 18px; }
.ai2-tbl--closed .ai2-c-state { grid-column: state; }
.ai2-tbl--closed .ai-td { padding-block: var(--s-2); }
.ai2-tbl--closed .ai-td.ai2-c-end { padding-block: 0; }
.ai2-tbl--closed .ai-td.ai2-c-due { color: var(--muted); }
.ai2-tbl--closed .ai-td.ai2-c-note, .ai2-tbl--closed .ai-td.ai-note-td { padding-left: 18px; padding-right: 18px; }
.ai2-state { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--s-2); border-radius: 999px; background: var(--mute-bg); color: var(--mute-fg); font-size: var(--t-sub); font-weight: 650; }
.ai2-state--done { color: var(--ok-fg); }

/* ---------- All (D1): one row per department; the queues as their own card under a label line ---------- */
.ai2-ov { display: block; width: 100%; border-collapse: collapse; font-size: var(--t-mid); }
.ai2-ov > thead:not(.sr-only), .ai2-ov > tbody { display: block; }
.ai2-ov tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px 62px 118px 96px 256px 20px; column-gap: 14px; align-items: center; min-height: 50px; padding: 0 18px; border-top: 1px solid var(--hair); }
.ai2-ov > thead > tr { min-height: 36px; border-top: 0; border-bottom: 1px solid var(--line); }
.ai2-ov > tbody > tr:first-child { border-top: 0; }
.ai2-ov .ai-th, .ai2-ov .ai-td { display: block; min-width: 0; padding: 0; border-bottom: 0; background: transparent; white-space: normal; }
.ai2-ov .ai-th { color: var(--muted); font-size: var(--t-sub); font-weight: 650; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.ai2-ov .ai2-ov-num, .ai2-ov .ai2-ov-due { font-variant-numeric: tabular-nums; text-align: left; }
.ai2-ov .ai-td.none { color: var(--muted); }
.ai2-ov .ai-td.ai-late { color: var(--bad-fg); font-weight: 650; }
.ai2-ov .ai2-ov-go { grid-column: -2; display: flex; justify-content: flex-end; color: var(--muted); }
.ai2-ov .ai2-ov-go .ci { transform: rotate(-90deg); }
.ai2-ov .ai2-title { font-weight: 700; }
.ai2-ov .ai2-title::after { content: ""; position: absolute; inset: 0; } /* the whole row opens it */
.ai2-ov .ai2-title:focus-visible { outline: none; }
.ai2-ov .ai2-ov-row:has(.ai2-title:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.ai2-ov .ai2-ov-row:hover { background: var(--wash); }
.ai2-ov-label { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0; padding: 0 18px; border-bottom: 1px solid var(--hair); color: var(--muted); font-size: var(--t-sub); }
.ai2-ov-label strong { color: var(--text-heading); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ai2-ov-label::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }

/* ---------- the reason ask, the export's text ---------- */
.ai2-reason { max-width: 36rem; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); }
.ai2-reason-l { display: block; color: var(--ink); font-size: var(--t-body); font-weight: 600; }
.ai2-reason-c { margin: var(--s-1) 0 var(--s-2); color: var(--muted); font-size: var(--t-sub); }
.ai2-reason textarea, .ai2-export textarea { display: block; width: 100%; box-sizing: border-box; padding: var(--s-2); border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface-card); color: var(--ink); font: inherit; font-size: var(--t-body); resize: vertical; }
.ai2-reason textarea[aria-invalid="true"] { border-color: var(--bad-fg); }
.ai2-reason-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); margin-top: var(--s-2); }
.ai2-reason-acts .btn { min-height: var(--control-height-touch); }
.ai-dfoot > .ai2-reason { max-width: none; margin: 0; }
.ai2-export { display: grid; gap: var(--s-2); margin-bottom: var(--s-3); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); font-size: var(--t-sub); }
.ai2-export .btn { justify-self: end; min-height: var(--control-height-sm); }

/* ---------- the record (R1): the bar with Previous and Next; the title and the Next strip; the facts as aligned labels and values; Updates and
   history with Add an update first; the foot, last on the sheet and always in view ---------- */
.ai2 .ai-drawer { width: min(600px, 100%); }
.ai2 .ai-dhead { min-height: calc(var(--control-height-icon) + var(--s-3) * 2); padding: var(--s-3) var(--s-5); }
.ai2-step { display: flex; align-items: center; gap: var(--s-2); margin: 0 var(--s-6) 0 calc(-1 * var(--s-2)); color: var(--muted); font-size: var(--t-sub); }
.ai2-step .rec-step, .ai2-step-keys { display: contents; }
.ai2-step .rec-step-btn { width: auto; min-width: 0; height: var(--control-height-icon); gap: var(--s-1); padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); box-shadow: none; color: var(--text-heading); font-size: var(--t-mid); font-weight: 650; }
.ai2-step .rec-step-btn[disabled] { color: var(--muted); opacity: .55; }
.ai2-step .rec-step-btn[data-recstep="prev"] { order: 1; }
.ai2-step .rec-step-btn[data-recstep="prev"]::after { content: "Previous"; }
.ai2-step .ai2-step-key--prev { order: 2; }
.ai2-step .rec-step-n { order: 3; margin-left: auto; color: var(--ink); font-weight: 600; white-space: nowrap; }
.ai2-step .ai2-step-by { order: 4; margin-right: auto; white-space: nowrap; } /* "7 of 25 · by due date" is never broken over two lines; a phone has no room for the sort words and drops them (below) */
.ai2-step .ai2-step-by::before { content: "\00b7\00a0"; }
.ai2-step .ai2-step-key--next { order: 5; }
.ai2-step .rec-step-btn[data-recstep="next"] { order: 6; }
.ai2-step .rec-step-btn[data-recstep="next"]::before { content: "Next"; }
.ai2-step-keys kbd { padding: 0 var(--s-1); border: 1px solid var(--line); border-radius: var(--r-s); background: var(--wash); font: inherit; font-size: var(--t-label); }
.ai2 .ai-drawer .ai-dbody { padding: var(--s-4) var(--s-5) var(--s-5); overflow-anchor: none; } /* the page keeps the body in place itself (the steps editor anchors its own row, a repaint puts the scroll back): the browser moving it as well took a ticked step out from under the finger */
/* the title leads; it is its own door (the pencil is not painted), and while it is edited the heading is kept for a screen reader only */
.ai2 .ai-drawer .ai-dtitle { margin: 0 0 var(--s-3); color: var(--text-heading); font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.ai2 .ai-drawer .ai-dtitle .acted { display: inline; border-bottom: 0; font: inherit; color: inherit; cursor: text; }
.ai2 .ai-drawer .ai-dtitle--edit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ai2 .ai-drawer .ai-dtitle--edit + .ai-pedit { margin-bottom: var(--s-3); }
.ai-drawer .ai-dtitle:focus { outline: none; }
.ai-drawer .ai-dtitle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--r-s); }
/* Next: the due day (the door to its edit) and the steps, on the wash with the navy edge */
.ai2-next { display: flex; align-items: baseline; gap: var(--s-3); margin: 0 0 var(--s-4); padding: var(--s-2) var(--s-3); border-radius: var(--r-m); background: var(--wash); box-shadow: inset 3px 0 0 var(--navy); color: var(--ink); font-size: var(--t-mid); }
.ai2-next-k { flex: 0 0 auto; color: var(--muted); font-size: var(--t-sub); font-weight: 650; }
.ai2-next-v { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); min-width: 0; }
.ai2-next-v > .acted { border-bottom-color: transparent; cursor: pointer; }
.ai2-next-due { color: var(--text-heading); font-weight: 700; }
.ai2-next-due.ai-late { color: var(--bad-fg); }
.ai2-next-n { color: var(--muted); }
.ai2-next .ai2-link { text-decoration: underline; text-underline-offset: 3px; }
.ai2-next-v > .ai-pedit { flex: 1 1 100%; }
/* the facts: a label and its value on one line each, no rules between them */
.ai2 .ai-drawer .ai-lab { color: var(--muted); font-size: var(--t-sub); font-weight: 650; letter-spacing: 0; text-transform: none; }
.ai2 .ai-drawer .ai-flds { display: flex; flex-direction: column; gap: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
.ai2 .ai-drawer .ai-fld { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: baseline; gap: 0 var(--s-3); min-height: 0; padding: 5px 0; border: 0; background: none; font-size: var(--t-mid); }
.ai2 .ai-drawer .ai-fld > :nth-child(n+3) { grid-column: 2; }
.ai2 .ai-drawer .ai-fld > span:first-child { color: var(--muted); font-size: var(--t-sub); font-weight: 650; letter-spacing: 0; text-transform: none; }
.ai2 .ai-drawer .ai-fld .acted { border-bottom-color: transparent; color: var(--ink); font-size: var(--t-mid); font-weight: 400; cursor: pointer; }
.ai2 .ai-drawer .ai-fld .acted:hover { border-bottom-color: var(--navy); }
/* A value that edits in place. With a mouse it is plain at rest, as figure R1 draws it, and takes the app's own mark for such a value - the
   dashed line under it - on hover and on keyboard focus. A touch screen has no hover, and on a phone the record is the only door to these
   values (a phone's row has no priority door and no menu), so there the mark is drawn at rest, under the value's own words. A value that
   already carries an underlined word (Change, Add actual) or a save note is left as it is. The line is the one .acted already holds,
   coloured: nothing moves. */
.ai2-next-v > .acted:hover, .ai2-next-v > .acted:focus-visible, .ai2 .ai-drawer .ai-fld .acted:focus-visible { border-bottom-color: var(--navy); }
@media (hover: none) {
  .ai2-next-v > .acted, .ai2 .ai-drawer .ai-fld .acted:not(:has(u, .row-note)) { border-bottom-color: var(--muted); }
  .ai2 .ai-drawer .ai-fld > .acted { justify-self: start; } /* the line is as long as the value, not the column */
}
.ai2 .ai-drawer .ai-fld .ai-muted { color: var(--muted); }
.ai2 .ai2-av { width: 28px; height: 28px; } /* fetch-2037 (A3): two letters */
.ai2-people { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); }
.ai2-person { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; overflow-wrap: anywhere; } /* a name stays whole while it fits the line; one longer than the line wraps, never runs off a phone's edge */
.ai2-av, .ai2 .ai-drawer .ai-lav { display: inline-grid; flex: 0 0 auto; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mute-bg); color: var(--navy); font-size: var(--t-label); font-style: normal; font-weight: 700; line-height: 1; }
.ai2-change { display: block; width: max-content; margin-top: var(--s-1); color: var(--text-heading); font-weight: 650; text-underline-offset: 3px; }
.ai2 .ai-drawer .ai-cost { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); text-align: left; }
.ai2 .ai-drawer .ai-cost-sep { color: var(--muted); }
.ai2 .ai-drawer .ai-cost u { color: var(--muted); text-underline-offset: 3px; }
.ai2 .ai-drawer .ai-cost > .ai-pedit { flex: 1 1 100%; }
.ai2-revnote { color: var(--muted); font-style: normal; }
/* Updates and history: the box that says Add an update is first; its status picker and Post update show once it has the focus, text, a status
   or an answer. Then the trail: an update by a person with its round initial, a receipt as one quiet line. */
.ai2 .ai-drawer .ai-dbody .ai-compose { margin: 0 0 var(--s-4); padding: 0; border: 0; background: none; }
.ai2 .ai-drawer .ai-dbody .ai-compose textarea { display: block; min-height: var(--control-height-touch); padding: 11px 12px; border-radius: var(--r-m); }
.ai2 .ai-drawer .ai-dbody .ai-compose textarea::placeholder { color: var(--muted); opacity: 1; }
.ai2 .ai-drawer .ai-dbody .ai-compose:not(.ai-compose--open):not(:focus-within) textarea:placeholder-shown { height: var(--control-height-touch); overflow: hidden; resize: none; }
.ai2 .ai-drawer .ai-dbody .ai-compose:not(.ai-compose--open):not(:focus-within):not(:has(textarea:not(:placeholder-shown))):not(:has(option:not([value=""]):checked)) .ai-crow { display: none; }
.ai2 .ai-drawer .ai-dbody .ai-compose .btn { min-height: var(--control-height-sm); }
.ai2 .ai-drawer .ai-log::before { display: none; }
.ai2 .ai-drawer .ai-le { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: var(--s-2); padding: 0 0 var(--s-3); }
.ai2 .ai-drawer .ai-lav { grid-row: 1 / span 2; margin-top: 1px; }
.ai2 .ai-drawer .ai-lw { grid-column: 2; color: var(--muted); font-size: var(--t-sub); }
.ai2 .ai-drawer .ai-lwho { color: var(--text-heading); font-size: var(--t-mid); font-weight: 700; }
.ai2 .ai-drawer .ai-lwhen { margin: 0; color: var(--muted); font-size: var(--t-sub); }
.ai2 .ai-drawer .ai-le > .ai-lnote { grid-column: 2; margin-top: 1px; color: var(--ink); font-size: var(--t-mid); line-height: 1.45; }
.ai2 .ai-drawer .ai-lstate { margin: 0 0 0 var(--s-1); }
.ai2 .ai-drawer .ai-le--rec { display: block; padding-left: calc(20px + var(--s-2)); color: var(--muted); font-size: var(--t-sub); }
.ai2 .ai-drawer .ai-le--rec .ai-lwho, .ai2 .ai-drawer .ai-le--rec .ai-lwhen, .ai2 .ai-drawer .ai-le--rec .ai-lnote { display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: 400; white-space: normal; }
.ai2 .ai-drawer .ai-lrec { margin-left: var(--s-1); font-size: var(--t-label); font-style: normal; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ai2 .ai-drawer .ai-le:last-child { padding-bottom: 0; }
/* the foot: Cancel item... at the left, Mark done (Reopen... on a closed item) at the right; nothing is drawn under it */
.ai2 .ai-drawer .ai-dfoot { flex: 0 0 auto; padding: var(--s-3) var(--s-5); border-top: 1px solid var(--hair); background: var(--wash); }
.ai2-recfoot { margin: 0; }
.ai2-recfoot .btn { min-height: var(--control-height-icon); border-radius: var(--r-m); font-size: var(--t-mid); font-weight: 650; }
.ai2-recfoot .btn.ai-del { color: var(--text-heading); }
.ai2-recload { margin-top: var(--s-3); }
.ai2 .ai-drawer .cant-do { margin: var(--s-1) 0 0; text-align: right; }

/* ---------- the add form (D6), as an overlay ---------- */
.ai2-add { max-width: 43.75rem; border-radius: var(--r-l); }
.ai2-add:focus { outline: none; }
.ai2-add .cse-modal-head h2 { font-size: 1rem; font-weight: 700; }
.ai2-addform { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.ai2-addform > .cse-modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 18px var(--s-5) var(--s-3); }
.ai2-addform > .cse-modal-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s-2); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--hair); background: var(--wash); }
.ai2-addform > .cse-modal-foot[hidden] { display: none; }
.ai2-addform > .cse-modal-foot > :first-child { margin-right: auto; }
.ai2-addform > .cse-modal-foot .btn { min-height: var(--control-height-md); border-radius: var(--r-m); font-size: var(--t-mid); font-weight: 650; }
.ai2-addgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-4); }
.ai2-addgrid .field { min-width: 0; margin: 0 0 14px; }
.ai2-addgrid .field > label { display: block; margin-bottom: 6px; color: var(--muted); font-size: var(--t-sub); font-weight: 650; }
.ai2-addgrid :is(input:not([type="checkbox"]), select, textarea) { width: 100%; box-sizing: border-box; min-height: var(--control-height-touch); border-radius: var(--r-m); }
.ai2-addgrid .af-people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: var(--control-height-touch); box-sizing: border-box; padding: 5px var(--s-2); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); }
.ai2-addgrid .af-people:focus-within { border-color: var(--brand-gold-mid); box-shadow: 0 0 0 2px color-mix(in srgb, var(--focus-ring) 35%, transparent); }
/* one box (figure D6): the chips and the typing place share the field's own border. The overlay's class is in the selector because the shell's
   field rule (.field input:not([type=checkbox]):not([type=radio]): three classes and an element) outweighs three classes alone, and
   was drawing its own bordered input inside the box */
.ai2-add .ai2-addgrid .af-people .af-padd { flex: 1 1 8rem; width: auto; min-width: 0; min-height: var(--control-height-sm); padding: 0 var(--s-1); border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; }
.ai2-addgrid .af-people .af-pchip { min-height: 28px; border: 0; background: var(--mute-bg); color: var(--text-heading); font-size: var(--t-sub); font-weight: 650; }
.ai2-add #goalPersonHint { display: none; } /* the form draws the field without its helper line (D6); a screen reader still gets it through aria-describedby */
/* Due: six chips in one row, in D6's order. The shared presets and This Friday are two groups in the markup; here they are one row. */
.ai2-due { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.ai2-due .date-presets, .ai2-duex { display: contents; }
.ai2-due .date-preset { order: 5; flex-wrap: wrap; align-content: center; min-height: var(--control-height-sm); padding: 0 12px; border-radius: 999px; font-size: var(--t-mid); font-weight: 600; }
.ai2-due .date-presets > .date-preset:nth-child(1) { order: 1; }
.ai2-due .date-presets > .date-preset:nth-child(2) { order: 2; }
.ai2-duex > .date-preset { order: 3; }
.ai2-due .date-presets > .date-preset:nth-child(3) { order: 4; }
.ai2-due .date-preset[data-ainodate] { order: 6; }
.ai2-due .date-preset-d { display: none; }
.ai2-addgrid .ai2-due input[type="date"] { order: 7; flex: 0 1 11rem; width: auto; }
.ai2-addgrid .ai2-due input[type="date"][hidden] { display: none; }
.ai2-more { margin-top: 0; border-top: 0; }
.ai2-more > summary { display: flex; align-items: center; gap: 10px; min-height: var(--control-height-touch); color: var(--text-heading); font-size: var(--t-mid); font-weight: 650; cursor: pointer; list-style: none; }
.ai2-more > summary::-webkit-details-marker { display: none; }
.ai2-more > summary::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-left: 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.ai2-more[open] > summary::before { transform: rotate(45deg); }
.ai2-more > summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--r-s); }
.ai2-added { color: var(--ok-fg); font-size: var(--t-sub); font-weight: 600; overflow-wrap: anywhere; }
.ai2-discard { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); background: var(--wash); font-size: var(--t-sub); }
.ai2-discard p { margin: 0 0 var(--s-2); color: var(--ink); }
.ai2-discard-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); }
.ai2-discard-acts .btn { min-height: var(--control-height-touch); }
.ai2-impboard { max-width: 16rem; margin: var(--s-2) 0 0; }
.ai2-impboard select { width: 100%; min-height: var(--control-height-md); }
body:has(.ai2-addbg) .own-ta { z-index: 610; } /* the roster's name list is mounted on the body: it sits over the overlay it belongs to */

/* ---------- 721 to 1179 pixels: venue, age, revised and cost drop to the row's second line, under the item ---------- */
@media (min-width: 721px) and (max-width: 1179px) {
  .ai2-tbl { --ai2-in: 18px; }
  .ai2-tbl tr { grid-template-columns: [done] calc(44px + var(--ai2-in)) [age] auto [rev] auto [cost] auto [fill] minmax(0, 1fr) [venue] var(--ai2-ven) [pri] var(--ai2-pri) [who] var(--ai2-who) var(--ai2-from,) [due] 122px [end] 40px; }
  .ai2-tbl--closed tr { grid-template-columns: [state] 122px [item] minmax(0, 1fr) [who] var(--ai2-who) [due] 72px [end] 46px; }
  .ai2-tbl:not(.ai2-tbl--closed) .ai-td:is(.ai2-c-done, .ai2-c-venue, .ai2-c-pri, .ai2-c-who, .ai2-c-from, .ai2-c-due, .ai2-c-end) { grid-row: 1 / span 2; }
  .ai2-tbl:not(.ai2-tbl--closed) .ai-td.ai2-c-item { grid-column: age / venue; grid-row: 1; padding-bottom: 0; }
  .ai2-tbl:not(.ai2-tbl--closed) .ai-td:is(.ai2-c-age, .ai2-c-rev, .ai2-c-cost) { grid-row: 2; padding-top: 0; }
  .ai2-tbl:not(.ai2-tbl--closed) .ai-td.ai2-c-cost { text-align: left; }
  .ai2-tbl:not(.ai2-tbl--closed) .ai-td.ai2-c-note { grid-row: 3; }
  .ai2-tbl .ai-td:is(.ai2-c-age, .ai2-c-rev, .ai2-c-cost) .ai2-k { display: inline; } /* on the second line a value says what it is */
  /* the headings stay on one line: the second line's three sit after "Item", in the item's own span */
  .ai2-tbl:not(.ai2-tbl--closed) > thead .ai-th { grid-row: 1; }
  .ai2-tbl:not(.ai2-tbl--closed) > thead .ai-th.ai2-c-item { grid-column: age; }
  .ai2-tbl:not(.ai2-tbl--closed) > thead .ai-th.ai2-c-age { grid-column: rev; }
  .ai2-tbl:not(.ai2-tbl--closed) > thead .ai-th.ai2-c-rev { grid-column: cost; }
  .ai2-tbl:not(.ai2-tbl--closed) > thead .ai-th.ai2-c-cost { grid-column: fill; text-align: left; }
  .ai2-tbl .prx-ai-row > :nth-child(1) { grid-column: age / venue; grid-row: 1; }
  .ai2-tbl .prx-ai-row > :nth-child(3) { grid-column: age / venue; grid-row: 2; }
  .ai2-tbl .prx-ai-row > :nth-child(2) { grid-column: pri; grid-row: 1 / span 3; }
  .ai2-tbl .prx-ai-row > :nth-child(4) { grid-column: who; grid-row: 1 / span 3; }
  .ai2-tbl .prx-ai-row > :nth-child(5) { grid-row: 1 / span 3; }
  .ai2-tbl .prx-ai-row > :nth-child(6) { grid-column: venue; grid-row: 1 / span 3; }
  .ai2-tbl .prx-ai-row > :nth-child(7) { grid-column: age; grid-row: 3; padding-top: 0; }
  .ai2-tbl .prx-ai-row > :nth-child(8) { grid-column: due; grid-row: 1 / span 3; }
  .ai2-tbl .prx-ai-row > :nth-child(9), .ai2-tbl .prx-ai-row > :nth-child(10) { display: none; }
  .ai2-tbl--filed .prx-ai-row > :nth-child(5) { grid-column: rev / venue; grid-row: 3; padding-top: 0; }
  .ai2-tbl .prx-ai-row > :nth-child(11) { grid-column: due / -1; grid-row: 3; }
  .ai2-ov tr { grid-template-columns: minmax(0, 1fr) 48px 62px 112px 92px 20px; column-gap: 10px; }
}

/* 960 to 1179 pixels: the second line's values keep their own width - an age, a date and an amount are never cut (fetch-1967 AC1) - and
   the venue's name gives way first. Under 960 there is not the room for every floor at once, so the tracks share what there is. */
@media (min-width: 960px) and (max-width: 1179px) {
  .ai2-tbl:not(.ai2-tbl--closed) tr { grid-template-columns: [done] calc(44px + var(--ai2-in)) [age] max-content [rev] max-content [cost] minmax(min-content, auto) [fill] minmax(0, 1fr) [venue] var(--ai2-ven) [pri] var(--ai2-pri) [who] minmax(96px, var(--ai2-who)) var(--ai2-from,) [due] 122px [end] 40px; }
  .ai2-tbl--q { --ai2-from: [from] minmax(96px, 8.5rem); }
}

/* fetch-2037.1: on a desk a heading and its cells share one centre line (Item stays left); where the cell has room the sort arrow hangs past the word */
@media (min-width: 721px) {
  .ai2-tbl > thead { position: sticky; top: var(--app-sticky-top, var(--phone-nav-height, 0px)); z-index: 3; border-radius: var(--r-l) var(--r-l) 0 0; background: var(--bg); }
  .ai2-tbl :is(.ai-th, .ai-td):is(.ai2-c-done, .ai2-c-venue, .ai2-c-pri, .ai2-c-who, .ai2-c-from, .ai2-c-due) { text-align: center; }
  .ai2-tbl .ai2-vds { justify-content: center; }
  .ai2-tbl .ai2-ppl { padding: 0 4px; }
  .ai2-tbl .prx-ai-row > :is(:nth-child(4), :nth-child(6), :nth-child(8)), .ai2-tbl--q .prx-ai-row > :nth-child(5) { text-align: center; }
  .ai2-tbl .ai-th:is(.ai2-c-who, .ai2-c-from, .ai2-c-due) .ai2-sort { position: relative; }
  .ai2-tbl .ai-th:is(.ai2-c-who, .ai2-c-from, .ai2-c-due) .ai-ar { position: absolute; top: 50%; left: calc(100% + 3px); transform: translateY(-50%); }
  .ai2-tbl .ai-th:is(.ai2-c-who, .ai2-c-from, .ai2-c-due) .ai-ar--flip { transform: translateY(-50%) rotate(180deg); }
}
@media (min-width: 1180px) {
  .ai2-tbl .ai2-dash { color: var(--muted); opacity: 0; }
  .ai2-tbl .ai-row:hover .ai2-dash, .ai2-tbl .acted:focus-visible .ai2-dash { opacity: 1; }
  .ai2-tbl :is(.ai-th, .ai-td):is(.ai2-c-age, .ai2-c-rev, .ai2-c-cost) { text-align: center; }
  .ai2-tbl .prx-ai-row > :is(:nth-child(7), :nth-child(9), :nth-child(10)) { text-align: center; }
  .ai2-tbl .ai-th:is(.ai2-c-age, .ai2-c-cost) .ai2-sort { position: relative; }
  .ai2-tbl .ai-th:is(.ai2-c-age, .ai2-c-cost) .ai-ar { position: absolute; top: 50%; left: calc(100% + 3px); transform: translateY(-50%); }
  .ai2-tbl .ai-th:is(.ai2-c-age, .ai2-c-cost) .ai-ar--flip { transform: translateY(-50%) rotate(180deg); }
}

/* 721 to 959 pixels: the second line has the item's own width, about 220 to 450 pixels. An age and a revised day keep their width, so one
   never runs into the next; the venue's name gives way first; a cost, the widest value, takes the line under them when the row has one,
   and is not drawn when it has none ("Cost" and a dash say nothing; the record sets one). */
@media (min-width: 721px) and (max-width: 959px) {
  .ai2-tbl:not(.ai2-tbl--closed) tr { grid-template-columns: [done] calc(44px + var(--ai2-in)) [age] max-content [rev] max-content [cost] auto [fill] minmax(0, 1fr) [venue] var(--ai2-ven) [pri] var(--ai2-pri) [who] var(--ai2-who) var(--ai2-from,) [due] 122px [end] 40px; }
  .ai2-tbl:not(.ai2-tbl--closed) .ai-td.ai2-c-cost.none { display: none; }
  .ai2-tbl:not(.ai2-tbl--closed) .ai-td.ai2-c-cost:not(.none) { grid-column: age / venue; grid-row: 3; white-space: nowrap; }
  .ai2-tbl:not(.ai2-tbl--closed) tr:has(> .ai2-c-cost:not(.none)) > .ai-td:is(.ai2-c-done, .ai2-c-venue, .ai2-c-pri, .ai2-c-who, .ai2-c-from, .ai2-c-due, .ai2-c-end) { grid-row: 1 / span 3; }
  .ai2-tbl:not(.ai2-tbl--closed) tr:has(> .ai2-c-cost:not(.none)) > .ai-td.ai2-c-note { grid-row: 4; }
}

/* ---------- a phone (P1, P2): the bar names where you are and opens the sheet; a row is the title over who and when ---------- */
@media (max-width: 720px) {
  .ai2-pbar { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); }
  .ai2-padd { flex: 0 0 auto; min-height: var(--control-height-touch); border-radius: var(--r-m); }
  .ai2 > .pgh { display: flex; flex-direction: column; padding: 0 0 var(--s-1); margin-bottom: var(--s-1); border: 0; background: none; box-shadow: none; }
  .ai2 > .pgh > * { order: 3; }
  .ai2 > .pgh > .pgh-row { order: 1; }
  .ai2 > .pgh > .pgh-facts { order: 2; }
  .ai2-pbar .ai-lens { min-height: var(--control-height-touch); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); font-weight: 650; }
  .ai2-pbar .ai-lens .ci { margin-left: auto; }
  .ai2-pbar .ai-lens-c { display: none; } /* the count is the first word of the counts line, right under the bar */
  .ai2 > .pgh > .pgh-top, .ai2 > .pgh > .pgh-tabrow, .ai2 > .pgh .ai2-sortmenu { display: none; }
  /* Filters and Search, side by side as two buttons; the search box opens to the full line while it is in use */
  .ai2 > .pgh > .pgh-row { flex-wrap: wrap; gap: var(--s-2); margin-top: 0; }
  .ai2 > .pgh .pgh-filters { order: 1; flex: 0 0 auto; min-height: var(--control-height-touch); padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); color: var(--navy); font-size: var(--t-mid); font-weight: 650; }
  .ai2 > .pgh .pgh-search { position: relative; order: 2; flex: 0 1 7.5rem; min-height: var(--control-height-touch); padding: 0 var(--s-2) 0 34px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); }
  .ai2 > .pgh .pgh-search input { font-weight: 650; } /* the box keeps the header's own type size: under 16 pixels an iPhone zooms the page on focus (tests/phone-zoom.mjs) */
  .ai2 > .pgh .pgh-search input::placeholder { color: var(--navy); font-size: var(--t-mid); opacity: 1; } /* the resting word is drawn like the Filters button beside it (P2) */
  .ai2 > .pgh .pgh-search:focus-within, .ai2 > .pgh .pgh-search:has(input:not(:placeholder-shown)) { flex: 1 1 100%; }
  .ai2 > .pgh .pgh-search:focus-within input, .ai2 > .pgh .pgh-search:has(input:not(:placeholder-shown)) input { font-weight: 400; }
  .ai2 .pgh-facts { gap: 0 var(--s-1); margin-top: var(--s-1); }
  .ai2 .pgh-facts > .pgh-fact:first-child { margin-right: var(--s-2); }
  .ai2 .pgh-fact--btn, .ai2 .pgh-fact--btn:hover, .ai2 .pgh-fact--btn[aria-pressed="true"], .ai2 .pgh-fact--btn[aria-pressed="true"]:hover { position: relative; z-index: 0; height: var(--control-height-touch); min-width: var(--control-height-touch); padding: 0 10px; border: 0; background: none; line-height: var(--control-height-touch); text-align: center; } /* a 30-pixel chip drawn inside a 44-pixel button */
  .ai2 .pgh-fact--btn::before { content: ""; position: absolute; z-index: -1; inset: 7px 0; border: 1px solid var(--hair); border-radius: 8px; background: var(--surface-card); }
  .ai2 .pgh-fact--btn[aria-pressed="true"]::before { border-color: var(--navy); background: var(--navy); }
  .ai2 .pgh-fact--btn[data-actquick="open"]::before { content: none; }
  .ai2-sheet.ai-sheet { max-height: 84%; }
  .ai2-sheet-head { display: none; }
  .ai2-tbl > thead { display: none; }
  .ai2-tbl { --ai2-in: 0px; }
  .ai2-tbl tr { grid-template-columns: [done] var(--control-height-touch) [item] minmax(0, 1fr) [end] auto; column-gap: 0; align-content: start; min-height: 60px; padding: 2px 0 8px; } /* P2, P6: the Done control, then the title on the row's whole remaining width */
  .ai2-tbl .ai-td, .ai2-tbl .ai-td.ai2-c-done, .ai2-tbl .ai-td.ai2-c-end, .ai2-tbl.ai2-tbl--closed .ai-td.ai2-c-end { padding: 0; }
  .ai2-tbl .ai2-c-done { position: relative; top: 6px; grid-column: done; grid-row: 1 / span 2; align-self: center; } /* the circle at the row's middle (P2) */
  .ai2-tbl .ai-done { width: var(--control-height-touch); height: var(--control-height-touch); }
  .ai2-tbl .ai2-c-item { grid-column: item; grid-row: 1; }
  .ai2-tbl:not(.ai2-tbl--closed) .ai-td.ai2-c-item { padding-right: 10px; }
  .ai2-tbl .ai-td.ai2-c-pri { display: none; } /* no priority door on a phone row: the priority is changed in the record, which the title opens */
  .ai2-tbl .ai-td.ai2-c-end { position: relative; top: -5px; grid-column: end; grid-row: 1; align-self: start; }
  .ai2-tbl:not(.ai2-tbl--closed) .ai-td.ai2-c-end:empty { display: none; } /* and no row menu: Cancel item... is in the record's foot */
  .ai2-tbl:not(.ai2-tbl--closed) .ai-td.ai2-c-end { top: 0; padding: 13px 10px 0 0; } /* a Daily work row keeps its two words at the title's right */
  .ai2-tbl .ai2-c-end .btn.icon-btn { width: var(--control-height-touch); min-width: var(--control-height-touch); height: var(--control-height-touch); min-height: var(--control-height-touch); }
  .ai2-tbl .ai2-c-who { grid-column: item / -1; grid-row: 2; justify-self: start; max-width: calc(100% - 118px); } /* the line, less the room a due date needs: "Shared · 4 people" is whole at 320 (P6) */
  .ai2-tbl .ai2-c-who .ai-owner { color: var(--muted); }
  .ai2-pc-scrim { display: block; position: fixed; inset: 0; z-index: 600; background: rgba(20, 33, 61, .32); pointer-events: auto; }
  .ai2-pcard { position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 601; width: auto; max-width: none; border-radius: var(--r-l) var(--r-l) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .ai2-pc-r { min-height: var(--control-height-touch); }
  .ai2-tbl .ai2-c-due { grid-column: item / -1; grid-row: 2; justify-self: end; padding-right: 10px; }
  .ai2-tbl .ai-td.ai2-c-due:not(:has(.ai-late)) { color: var(--muted); }
  /* the title's 44-pixel target reaches down over the who-and-when line, so a row is 60 pixels and a tap anywhere on its words opens the record */
  .ai2-tbl .ai2-row:is(:has(.ai2-c-item > .ai2-titleline:last-child), :has(.ai2-c-item > .ai2-titleline + .ai-upd:last-child)) > :is(.ai2-c-who, .ai2-c-due) { margin-top: -16px; pointer-events: none; }
  .ai2-tbl .ai2-titleline + :is(.ai2-meta, .ai2-filed) { margin-top: -14px; pointer-events: none; } /* a venue, amount or filed line hugs the title: it sits in the title's target, as the who-and-when line does */
  .ai2-tbl .ai2-c-from { grid-column: item / -1; grid-row: 3; }
  .ai2-tbl .ai2-c-venue, .ai2-tbl .ai2-c-age, .ai2-tbl .ai2-c-cost, .ai2-tbl .ai2-c-rev { display: none; } /* a venue or an amount is said under the title (.ai2-meta); age and revised are in the record */
  .ai2-meta { display: block; }
  .ai2-tbl .ai-upd { display: none; } /* the update line is a desk's; a phone's row is two lines */
  .ai2-tbl .ai-td.ai2-c-note { grid-row: 4; padding: var(--s-1) var(--s-2) 0 var(--s-2); }
  .ai2-tbl .ai-td.ai-note-td { padding: var(--s-2) var(--s-2) 0 var(--s-3); }
  .ai2-title { display: inline-block; min-height: var(--control-height-touch); padding: 0 0 11px; box-sizing: border-box; font-size: var(--t-body); vertical-align: top; }
  .ai2-titleline { align-items: flex-start; }
  .ai2-tbl .ai2-svy { min-height: var(--control-height-touch); }
  .ai2-tbl .prx-ai-row > :nth-child(1) { grid-column: item / -1; grid-row: 1; }
  .ai2-tbl .prx-ai-row > :nth-child(3) { grid-column: item / -1; grid-row: 2; }
  .ai2-tbl .prx-ai-row > :nth-child(4) { grid-column: item; grid-row: 3; }
  .ai2-tbl .prx-ai-row > :nth-child(8) { grid-column: item / -1; grid-row: 3; justify-self: end; padding-right: 10px; }
  .ai2-tbl .prx-ai-row > :is(:nth-child(2), :nth-child(5), :nth-child(6), :nth-child(7), :nth-child(9), :nth-child(10), :nth-child(11)) { display: none; }
  .ai2-tbl--filed .prx-ai-row > :nth-child(5) { display: block; grid-column: item / -1; grid-row: 4; }
  .ai2-tbl .prx-ai-open { min-height: var(--control-height-touch); }
  .ai2-tbl--closed tr { grid-template-columns: [item] minmax(0, 1fr) [due] auto [end] var(--control-height-touch); padding: 2px 0 8px 12px; }
  .ai2-tbl--closed .ai2-c-state { padding-left: 0; }
  .ai2-tbl--closed .ai2-c-item { grid-column: item / end; grid-row: 1; }
  .ai2-tbl--closed .ai-td.ai2-c-end { grid-column: end; grid-row: 1; }
  .ai2-tbl--closed .ai2-c-state { grid-column: item; grid-row: 2; }
  .ai2-tbl--closed .ai2-c-due { grid-column: due / -1; grid-row: 2; }
  .ai2-tbl--closed .ai2-c-who { grid-column: item / -1; grid-row: 3; max-width: none; padding-top: var(--s-1); }
  .ai2-tbl--closed .ai2-row > :is(.ai2-c-who, .ai2-c-due) { margin-top: 0; pointer-events: auto; }
  .ai2-tbl--closed .ai-td.ai2-c-note { grid-row: 4; }
  /* All on a phone (P1): the department, its open count and next date on two lines, the overdue count at the right */
  .ai2 .ai2-ov > thead { display: none; }
  .ai2-ov .ai2-title { display: inline; min-height: 0; padding-top: 0; }
  .ai2-ov tr { grid-template-columns: auto minmax(0, 1fr) auto 20px; column-gap: 6px; min-height: 56px; padding: 6px 12px; }
  .ai2-ov .ai2-ov-n { grid-column: 1 / 3; grid-row: 1; }
  .ai2-ov .ai2-ov-num:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); font-size: var(--t-sub); }
  .ai2-ov .ai2-ov-num:nth-child(2)::after { content: " open"; }
  .ai2-ov .ai2-ov-num[data-aicheckn]::after { content: none; }
  .ai2-ov .ai2-ov-num:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; font-size: var(--t-sub); }
  .ai2-ov .ai2-ov-num:nth-child(3).ai-late::after { content: " overdue"; }
  .ai2-ov .ai2-ov-num:nth-child(3).none, .ai2-ov .ai2-ov-quiet { display: none; }
  .ai2-ov .ai2-ov-due { grid-column: 2; grid-row: 2; color: var(--muted); font-size: var(--t-sub); }
  .ai2-ov .ai-td.ai2-ov-due.ai-late { color: var(--muted); font-weight: 400; }
  .ai2-ov .ai2-ov-due:not(:empty)::before { content: "\00b7  next "; }
  .ai2-ov .ai2-ov-due.ai-late::before { content: "\00b7  earliest "; }
  .ai2-ov .ai2-ov-od { display: none; }
  .ai2-ov .ai2-ov-go { grid-column: 4; grid-row: 1 / span 2; }
  .ai2-foot .btn, .ai2-export .btn, .ai2-recfoot .btn { min-height: var(--control-height-touch); }
  .ai2-link { min-height: var(--control-height-touch); }
  .ai2-addgrid { grid-template-columns: minmax(0, 1fr); }
  .ai2-addform > .cse-modal-foot .btn { min-height: var(--control-height-touch); }
  .ai2-addform > .cse-modal-foot .btn-primary { order: 3; flex: 1 1 100%; } /* P5: the one action is the full width of the screen */
  /* the add form on a phone (P5): Cancel and the title in the head; the item's text; what it starts with as chips; the one button, all above
     where the keyboard opens. A chip is a 30-pixel pill drawn inside 44-pixel targets: its name opens the field, its x clears the value. */
  .ai2-add--phone { background: var(--bg); } /* fetch-1994 round 5 (P5): the phone form is the page's pink ground, as drawn - white is for the cards on it */
  .ai2-add--phone .ai2-addgrid .field > label { color: var(--mute-fg); } /* fetch-2027 (impeccable audit, WCAG AA): --muted on the pink ground read 3.9:1; --mute-fg is 6.6:1 */
  .ai2-add--phone > .ai2-phead { justify-content: flex-start; gap: var(--s-1); min-height: 56px; padding: 0 14px 0 4px; border-bottom: 0; background: var(--brand-blue-deep); color: var(--surface-card); }
  .ai2-add--phone > .ai2-phead h2 { color: inherit; }
  .ai2-pcancel { appearance: none; min-width: var(--control-height-touch); min-height: var(--control-height-touch); margin: 0; padding: 0 10px; border: 0; background: none; color: var(--brand-gold-light); font: inherit; font-size: var(--t-mid); font-weight: 650; cursor: pointer; }
  .ai2-pcancel:focus-visible { outline: 2px solid var(--brand-gold-light); outline-offset: -4px; border-radius: var(--r-m); }
  .ai2-pcancel:disabled { opacity: .5; cursor: default; } /* while a save is out */
  .ai2-add--phone .ai2-addform > .cse-modal-body { flex: 0 1 auto; padding: 12px 12px 0; }
  .ai2-add--phone .ai2-addform > .cse-modal-foot { padding: 10px 12px 14px; border-top: 0; background: none; }
  .ai2-add--phone .ai2-addform > .cse-modal-foot .btn-primary { border-radius: 10px; }
  .ai2-add--phone .ai2-addgrid #goalTitle { height: 64px; padding: 10px 12px 30px; border-radius: 10px; } /* the text sits at the top of a two-line box, as drawn; a title is one line */
  .ai2-cchips { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s-2); margin-top: 10px; }
  .ai2-cchip { position: relative; z-index: 0; display: inline-flex; align-items: center; max-width: 100%; min-height: var(--control-height-touch); color: var(--navy); }
  .ai2-cchip::before { content: ""; position: absolute; z-index: -1; inset: 7px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-card); }
  .ai2-cchip--open::before { border-color: var(--navy); }
  .ai2-cchip--on { color: var(--surface-card); }
  .ai2-cchip--on::before { border-color: var(--navy); background: var(--navy); }
  .ai2-cchip-b, .ai2-cchip-x { appearance: none; height: var(--control-height-touch); margin: 0; border: 0; background: none; color: inherit; font: inherit; font-size: var(--t-mid); font-weight: 600; white-space: nowrap; cursor: pointer; }
  .ai2-cchip-b { min-width: var(--control-height-touch); padding: 0 10px; overflow: hidden; text-overflow: ellipsis; }
  .ai2-cchip--on .ai2-cchip-b { min-width: 0; padding-right: 2px; } /* the pill with its x is the 44-pixel target */
  .ai2-cchip-x { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 36px; padding: 0 6px 0 0; }
  .ai2-cchip-b:focus-visible, .ai2-cchip-x:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -5px; border-radius: 10px; }
  .ai2-csecs { margin-top: var(--s-2); }
  .ai2-csecs:not(:has(> .ai2-csec:not([hidden]))) { display: none; }
  .ai2-csec { grid-column: 1 / -1; min-width: 0; }
  .ai2-csec[hidden] { display: none; }
  .ai2-csec--more { margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--hair); }
  .ai2-csec--more > #aiAddAnother { width: 100%; min-height: var(--control-height-touch); margin: var(--s-3) 0 var(--s-1); border-radius: 10px; }
  .ai2-due .date-preset { min-height: var(--control-height-touch); }
  .ai2-step { margin-right: var(--control-height-touch); }
  .ai2-step .rec-step-btn { min-height: var(--control-height-touch); }
  .ai2-step .ai2-step-keys, .ai2-step .ai2-step-by { display: none; } /* a phone: no keys to press, and between two worded buttons there is room for the count only */
  .ai2-step .rec-step-n { margin-right: auto; }
  .ai2 .ai-drawer .ai-fld { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .ai2 .ai-drawer .ai-dhead, .ai2 .ai-drawer .ai-dfoot { padding-left: var(--s-4); padding-right: var(--s-4); }
  .ai2 .ai-drawer .ai-dbody { padding: var(--s-4); }
  .ai2 .ai-drawer .ai-dbody .ai-compose .btn, .ai2 .ai-drawer .ai-dbody .ai-compose select { min-height: var(--control-height-touch); }
  .ai2-next .ai2-link { min-height: 0; padding: var(--s-2) 0; margin: calc(-1 * var(--s-2)) 0; }
}

/* ====================== fetch-1994 (pull request 2 of 3): projects and people ======================
   Drawn to this job's figures (S1 to S5, S4b) and to the agreed mockups with "group" read as "project" (D1, D2d, D5, D6, R1, P1 to P6).
   A project's heading, a bucket's label and a "more" line are each one cell across the row's whole grid. */

/* ---------- a department's projects as sections (S1): a heading row per project, then "Not in a project" ---------- */
.ai2-tbl tr.ai2-g-row, .ai2-tbl tr.ai2-g-more, .ai2-tbl tr.ai2-bk-row { display: block; min-height: 0; }
.ai2-tbl .ai-th.ai2-g-h, .ai2-tbl .ai-th.ai2-bk-h, .ai2-tbl tr.ai2-g-more > .ai-td { display: block; padding: 0; color: var(--ink); font-size: var(--t-mid); font-weight: 400; text-align: left; white-space: normal; }
.ai2-tbl > tbody.ai2-g ~ tbody.ai2-g > tr.ai2-g-row { border-top: 1px solid var(--line); }
.ai2-g-line { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px 0 12px; font-size: var(--t-body); white-space: nowrap; }
.ai2-g-fold { appearance: none; display: inline-grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; margin: 0 -6px 0 -2px; padding: 0; border: 0; border-radius: var(--r-s); background: none; color: var(--muted); cursor: pointer; }
.ai2-g-fold:hover { background: var(--mute-bg); color: var(--ink); }
.ai2-g--folded .ai2-g-fold .ci { transform: rotate(-90deg); }
.ai2-g-fold:focus-visible, .ai2-g-name:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--r-s); }
.ai2-g-mark { flex: 0 0 auto; box-sizing: border-box; width: 10px; height: 10px; border-radius: 3px; background: var(--navy); }
.ai2-g-mark--loose { border: 1.5px solid color-mix(in srgb, var(--navy) 35%, transparent); background: transparent; }
.ai2-g-name { appearance: none; min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; text-overflow: ellipsis; }
/* round 5 addendum (design rule 7, 2026-11-14: identity leads directory rows): a project's name takes a second line before it gives way - the
   counts, the initials and "N people" beside it keep their small size and never cut it to an ellipsis (they did at 1024) */
.ai2-g-line > .ai2-g-name { overflow: visible; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.ai2-ov--pj .ai2-ov-n .ai2-title { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
/* An item's title keeps its one line in the table (figures D2 and P2, fetch-1972; rule 7 lets a compact table keep one-line rows while the
   essential reads): it leads its row, its column is the one that gives way last (min-width: 0 beside bounded Pri, Who, Due and End columns),
   and the record shows it whole */
button.ai2-g-name { cursor: pointer; }
button.ai2-g-name:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.ai2-g-n, .ai2-g-pn { flex: 0 0 auto; color: var(--muted); font-size: var(--t-sub); font-variant-numeric: tabular-nums; }
.ai2-g-late { flex: 0 0 auto; font-size: var(--t-sub); }
.ai2-g-ppl { display: inline-flex; flex: 0 0 auto; align-items: center; gap: var(--s-2); margin-left: 2px; }
.ai2-g-avs { display: inline-flex; }
.ai2-g-avs > i { display: inline-grid; place-items: center; box-sizing: border-box; width: 26px; height: 26px; border: 1.5px solid var(--surface-card); border-radius: 50%; background: var(--mute-bg); color: var(--mute-fg); font-size: var(--t-label); font-style: normal; font-weight: 700; }
.ai2-g-avs > i + i { margin-left: -7px; }
.ai2-tag { display: inline-flex; flex: 0 0 auto; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--mute-bg); color: var(--mute-fg); font-size: var(--t-sub); font-weight: 650; white-space: nowrap; }
.ai2-c-item > .ai2-tag { margin-top: 2px; }
.ai2-g-line > .ai-grow { flex: 1 1 auto; }
.ai2-g-line .btn.ai2-g-add { flex: 0 0 auto; width: 30px; min-width: 30px; height: 30px; min-height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-card); box-shadow: none; color: var(--navy); }
.ai2-g-line .btn.ai2-g-add:hover { background: var(--wash); }
.ai2-tbl tr.ai2-g-more > .ai-td { padding: 6px 18px 8px calc(54px + var(--ai2-in)); }
.ai2-g-more .ai2-link { color: var(--navy); font-size: var(--t-sub); }
/* a project's own items, by time (D3): Overdue, This week, Later. A bucket label is routine text, never a chip: the 12px floor (--t-sub, as
   the shared .group-label), not the figure's 11px (design rule 16) */
.ai2-bk-l { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; color: var(--muted); font-size: var(--t-sub); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ai2-bk-l::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.ai2-bk--late .ai2-bk-l { color: var(--bad-fg); }
/* fetch-2044: a project's finished rows; the mark is not a control (Reopen is in the row's menu) */
.ai2-donemark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mute-bg); color: var(--navy); }
.ai2-tbl .ai2-row--done .ai2-title { font-weight: 500; }
.ai2-tbl .ai-td.ai2-c-closed { color: var(--muted); }
.ai2-ov--pj tr { grid-template-columns: minmax(0, 1fr) 56px 56px 62px 118px 96px 256px 20px; } /* Done beside Open */

/* ---------- All with projects (D1): a label per department, its projects as rows, the lead and the people in the last column ---------- */
.ai2-ov--pj tr.ai2-ov-dept { display: block; min-height: 0; padding: 0; border-top: 0; }
.ai2-ov--pj tr.ai2-ov-dept > .ai-th { display: flex; align-items: center; gap: 10px; padding: 18px 18px 8px; color: var(--muted); font-size: var(--t-sub); font-weight: 500; }
.ai2-ov--pj tr.ai2-ov-dept > .ai-th::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.ai2-ov--pj .ai2-ov-dept .ai2-title { flex: 0 0 auto; color: var(--ink); font-size: var(--t-sub); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ai2-ov--pj .ai2-ov-dept .ai2-title::after { content: none; } /* the name is the door here, not the whole label line */
.ai2-ov--pj .ai2-ov-dept .ai2-title:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--r-s); }
.ai2-ov-dn { flex: 0 0 auto; }
.ai2-ov--pj .ai2-ov-n { display: flex; align-items: center; gap: var(--s-2); }
.ai2-ov--pj .ai2-ov-n .ai2-title { font-weight: 650; }
.ai2-ov--pj .ai2-ov-loose .ai2-title { color: var(--muted); font-weight: 500; }
.ai2-ov--pj > tbody > tr.ai2-ov-row { border-top: 1px solid var(--hair); }
.ai2-ov .ai-td.ai2-ov-lead { display: flex; flex-direction: column; gap: 1px; color: var(--muted); font-size: var(--t-sub); white-space: nowrap; }
.ai2-ov-ln { overflow: hidden; color: var(--ink); text-overflow: ellipsis; }

/* ---------- a project's page (S3): the header card runs on into the people line and the tabs ---------- */
.ai2 > .pgh.ai2-pjhead { margin-bottom: 0; padding-bottom: 10px; border-bottom: 0; border-radius: var(--r-l) var(--r-l) 0 0; }
.ai2 > .pgh.ai2-pjhead .pgh-titles { display: flex; flex: 1 1 0; flex-wrap: wrap; align-items: center; gap: var(--s-2) 10px; min-width: 0; }
.ai2-pjhead .pgh-back { height: 30px; min-height: 0; margin: 0; padding: 0 10px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--wash); color: var(--navy); font-size: var(--t-sub); font-weight: 650; }
.ai2-pjhead .pgh-h { display: flex; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.ai2-pjhead .pgh-h::before { content: ""; flex: 0 0 auto; width: 12px; height: 12px; margin-right: 9px; border-radius: 3px; background: var(--navy); }
.ai2-pjhead .pgh-sub { display: inline-flex; align-items: center; height: 24px; margin: 0; padding: 0 9px; border-radius: 999px; background: var(--mute-bg); color: var(--mute-fg); font-size: var(--t-sub); font-weight: 650; white-space: nowrap; }
.ai2-pj-ppl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); padding: 0 18px 10px; border: 1px solid var(--line); border-width: 0 1px; background: var(--paper); color: var(--muted); font-size: var(--t-sub); }
.ai2-pj-k { color: var(--ink); font-weight: 650; }
.ai2-pj-ppl .ai2-people { gap: var(--s-2); }
.ai2-pj-ppl .ai2-person { height: 28px; padding: 0 10px 0 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-card); color: var(--ink); font-weight: 600; white-space: nowrap; }
.ai2-pj-ppl .btn.ai2-pj-addppl { display: inline-flex; align-items: center; height: 28px; min-height: 0; gap: 6px; padding: 0 12px 0 8px; border-radius: 999px; font-size: var(--t-sub); font-weight: 650; }
.ai2-pj-ppl > .ai-grow { flex: 1 1 auto; }
.ai2-pj .sec-tab { min-height: var(--control-height-md); padding: 0; border-radius: 0; background: transparent; font-size: var(--t-mid); font-weight: 650; }
.ai2-pj .sec-tab.is-on { background: transparent; color: var(--ink); }
.ai2-pj-note > .row-note { border-radius: var(--r-s); }
/* round 5 addendum (design rule 6, 2026-11-14, "connect tabs to their record"): the header, the people line, the tab row and the open section
   are ONE white record surface - no page ground between the tabs and the section, and no card of its own around the section. A divider is
   the grouping. A scoped variant, as Contacts' (.ct-record, fetch-2010): sectionTabsHTML and the tokens are not changed */
.ai2-pj .sec-tabs { gap: 22px; margin: 0; padding: 0 22px; border: 1px solid var(--line); border-top: 0; border-bottom-color: var(--hair); border-radius: 0; background: var(--paper); }
.ai2-pj > .cant-do { margin: 0; padding: 0 18px 10px; border: 1px solid var(--line); border-width: 0 1px; background: var(--paper); }
.ai2-pj-panel { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-l) var(--r-l); background: var(--paper); }
.ai2-pj-panel > .ai-card { margin: 0; border: 0; border-radius: 0 0 var(--r-l) var(--r-l); box-shadow: none; }
.ai2-pj-panel > .ai2-selbar { border-radius: 0; }
.ai2-pj-panel > .ai2-pj-note { margin: 0; padding: var(--s-3) 18px 0; }
.ai2-pj-panel > :is(.stale-line, .mnt-total) { margin: var(--s-3) 18px 0; }
/* a move's result is a strip of the surface itself: its foot at a desk (under the table), its head on a phone (over it) */
.ai2 .ai2-pj-panel > .ai2-moved { margin: 0; border: 0; border-radius: 0; }
.ai2 .ai2-pj-panel > .ai2-card + .ai2-moved { border-top: 1px solid var(--line); border-radius: 0 0 var(--r-l) var(--r-l); }
.ai2 .ai2-pj-panel > .ai2-moved + .ai2-card { border-top: 1px solid var(--hair); }
.ai2 .ai2-pj-panel > .empty-state:is(.ai2-empty, .filtered-zero) { margin: 0; border: 0; border-radius: 0 0 var(--r-l) var(--r-l); background: none; box-shadow: none; }
.ai2-pj-panel > :last-child:is(.ai2-pj-note, .stale-line, .mnt-total) { margin-bottom: var(--s-3); }
/* People: one row per person, the lead marked, one quiet menu at the row's end */
.ai2-pp-list { margin: 0; padding: 0; list-style: none; }
.ai2-pp { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 6px 12px 6px 18px; border-top: 1px solid var(--hair); }
.ai2-pp:first-child { border-top: 0; }
.ai2-pp-t { display: flex; flex-direction: column; min-width: 0; }
.ai2-pp-n { color: var(--ink); font-size: var(--t-mid); font-weight: 650; overflow-wrap: anywhere; }
.ai2-pp-l { color: var(--muted); font-size: var(--t-sub); }
.ai2-pp > .ai-grow { flex: 1 1 auto; }
.ai2-pp .btn.cmenu-trigger { width: var(--control-height-icon); min-width: var(--control-height-icon); height: var(--control-height-icon); min-height: 0; border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
.ai2-pp .btn.cmenu-trigger:hover, .ai2-pp .btn.cmenu-trigger[aria-expanded="true"] { border-color: var(--line); background: var(--mute-bg); color: var(--ink); }
.ai2-pp .cmenu-list { min-width: 264px; }
.ai2-pp-card .ai2-foot .btn { display: inline-flex; align-items: center; gap: 6px; min-height: var(--control-height-icon); border-radius: var(--r-m); font-weight: 650; }
.ai2-pp-card > .cant-do, .ai2-pd-card > .cant-do { margin: 0; padding: 10px 18px; border-top: 1px solid var(--hair); }
/* Details: a label and its value on one line each, edited in place */
.ai2-pd-card { padding: var(--s-2) 0 0; }
.ai2-pd-card .ai-fld.ai2-pd { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; align-items: center; gap: 0 var(--s-3); min-height: var(--control-height-touch); padding: 4px 12px 4px 18px; background: none; font-size: var(--t-mid); }
.ai2-pd-card .ai-fld.ai2-pd > span:first-child { color: var(--muted); font-size: var(--t-sub); font-weight: 650; }
.ai2-pd-v { min-width: 0; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.ai2-pd-v .ai-muted { color: var(--muted); }
.ai2-pd-fixed { display: block; color: var(--muted); font-size: var(--t-sub); }
.ai2-pd .btn.icon-btn { border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
.ai2-pd .btn.icon-btn:hover { border-color: var(--line); background: var(--mute-bg); color: var(--ink); }
.ai2-pd-ed { display: flex; grid-column: 2 / -1; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-width: 0; padding: 4px 0; }
.ai2-pd-ed > :is(input, select, textarea) { flex: 1 1 14rem; min-width: 0; min-height: var(--control-height-md); box-sizing: border-box; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); color: var(--ink); font: inherit; font-size: var(--t-body); }
.ai2-pd-ed > textarea { padding: var(--s-2) var(--s-3); resize: vertical; }
.ai2-pd-ed > input[type="date"] { flex: 0 1 11rem; }
.ai2-pd-ed > .date-presets { flex: 1 1 100%; margin: 0; }
.ai2-pd-ed > .field-error { flex: 1 1 100%; margin: 0; }
.ai2-pd-theirs { flex: 1 1 100%; color: var(--muted); font-size: var(--t-sub); overflow-wrap: anywhere; } /* a stale save: their value, under what was typed */
.ai2-pd-acts { display: inline-flex; flex: 0 0 auto; gap: var(--s-2); }
.ai2-pd-acts .btn { min-height: var(--control-height-icon); border-radius: var(--r-m); font-weight: 650; }
.ai2-pd-made { border-top: 1px solid var(--hair); margin-top: var(--s-2); }

/* ---------- New project (S2), Add people and Where to (P4a): the overlay of this half ---------- */
.ai2-add.ai2-pjdlg { max-width: 38.75rem; }
.ai2-toks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: var(--control-height-touch); box-sizing: border-box; padding: 5px var(--s-2); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); }
.ai2-toks:focus-within { border-color: var(--brand-gold-mid); box-shadow: 0 0 0 2px color-mix(in srgb, var(--focus-ring) 35%, transparent); }
.ai2-tok { display: inline-flex; align-items: center; gap: 2px; min-height: 28px; padding: 0 2px 0 10px; border-radius: 999px; background: var(--mute-bg); color: var(--mute-fg); font-size: var(--t-sub); font-weight: 650; white-space: nowrap; }
.ai2-tok-x { appearance: none; display: inline-grid; place-items: center; width: 24px; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.ai2-tok-x:hover { background: color-mix(in srgb, var(--navy) 12%, transparent); }
.ai2-tok-x:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.ai2-toks > .person-pick { flex: 1 1 9rem; min-width: 0; }
.ai2-add .ai2-addgrid .ai2-toks .person-pick-q { width: 100%; min-height: var(--control-height-sm); padding: 0 var(--s-1); border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; }
/* fetch-2037.2: the add form's Who is on it, the people box's door */
.ai2-apb { display: flex; align-items: center; gap: var(--s-2); box-sizing: border-box; width: 100%; min-height: var(--control-height-touch); margin: 0; padding: 0 var(--s-3) 0 var(--s-2); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); color: var(--ink); font: inherit; font-size: var(--t-body); text-align: left; cursor: pointer; }
.ai2-apb:hover { border-color: var(--navy); }
.ai2-apb:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.ai2-apb-r { display: inline-flex; flex: 0 0 auto; align-items: center; }
.ai2-apb-r > .ai2-rd { box-shadow: 0 0 0 2px var(--surface-card); }
.ai2-apb-r > .ai2-rd + .ai2-rd { margin-left: -2px; }
.ai2-apb-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai2-apb > .ai2-apb-t:first-child { padding-left: var(--s-1); color: var(--muted); }
.ai2-apb-go { flex: 0 0 auto; color: var(--navy); font-size: var(--t-mid); font-weight: 650; }
.ai2-pjlead { margin: var(--s-1) 0 0; color: var(--ink); font-size: var(--t-sub); font-weight: 600; }
.ai2-auds { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.ai2-auds > legend { margin-bottom: 6px; padding: 0; color: var(--muted); font-size: var(--t-sub); font-weight: 650; }
.ai2-addgrid .ai2-auds > label.ai2-aud { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 var(--s-2); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); font-size: var(--t-mid); font-weight: 600; cursor: pointer; }
.ai2-addgrid .ai2-auds > label.ai2-aud:last-child { margin-bottom: 0; }
.ai2-addgrid .ai2-auds > label.ai2-aud--on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.ai2-add .ai2-addgrid .ai2-aud > input[type="radio"] { appearance: none; flex: 0 0 auto; box-sizing: border-box; width: 18px; min-height: 0; height: 18px; margin: 1px 0 0; padding: 0; border: 1.5px solid var(--muted); border-radius: 50%; background: var(--surface-card); cursor: pointer; }
.ai2-add .ai2-addgrid .ai2-aud > input[type="radio"]:checked { border-color: var(--navy); background: var(--navy); box-shadow: inset 0 0 0 4px var(--surface-card); }
.ai2-add .ai2-addgrid .ai2-aud > input[type="radio"]:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ai2-add .ai2-addgrid .ai2-aud > input[type="radio"]:disabled { opacity: .5; cursor: default; }
.ai2-aud-t { min-width: 0; }
.ai2-aud-t > small { display: block; color: var(--muted); font-size: var(--t-sub); font-weight: 400; }
/* Where to (P4a): one card of rows. The chosen row carries the gold bar; the place the items are in says so on the right and cannot be chosen */
.ai2-addgrid .ai2-auds.ai2-where { overflow: hidden; padding: 6px 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface-card); }
.ai2-addgrid .ai2-where > legend { float: left; box-sizing: border-box; width: 100%; margin: 0; padding: 10px 18px 6px; }
.ai2-addgrid .ai2-where > label.ai2-where-o { position: relative; clear: both; align-items: center; min-height: var(--control-height-touch); box-sizing: border-box; margin: 0; padding: 0 18px; border: 0; border-radius: 0; font-size: var(--t-body); font-weight: 500; }
.ai2-addgrid .ai2-where > label.ai2-where-o.ai2-aud--on { background: var(--wash); box-shadow: inset 3px 0 0 var(--brand-gold-mid); font-weight: 700; }
.ai2-addgrid .ai2-where > label.ai2-where-o:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.ai2-add .ai2-addgrid .ai2-where > .ai2-where-o > input[type="radio"] { position: absolute; width: 1px; height: 1px; margin: 0; border: 0; opacity: 0; }
.ai2-where-o > .ai2-aud-t { display: flex; flex: 1 1 auto; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.ai2-where-o > .ai2-aud-t > small { flex: 0 0 auto; white-space: nowrap; }
.ai2-addgrid .ai2-auds > label.ai2-where-o--here { color: var(--muted); cursor: default; }
.ai2-pjwait { margin: var(--s-2) 0 0; color: var(--muted); font-size: var(--t-sub); font-weight: 600; }
.ai2-pjdlg .ai2-due .date-preset { order: 0; }
.ai2-pjdlg .ai2-due .date-presets > .date-preset:nth-child(n) { order: 0; }
.ai2-opt-hint { display: block; color: var(--muted); font-size: var(--t-sub); font-weight: 400; }

/* ---------- moving (S4, S4b): the selection's bar, the square boxes, the drop target, the chip, the result under the list ---------- */
.ai2-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) 10px; min-height: 48px; box-sizing: border-box; margin-bottom: -1px; padding: var(--s-2) 14px; border-radius: var(--r-l) var(--r-l) 0 0; background: var(--navy); color: var(--surface-card); font-size: var(--t-mid); font-weight: 650; }
.ai2-selbar + .ai2-card { border-top-left-radius: 0; border-top-right-radius: 0; }
.ai2-selbar + .ai2-card .ai2-tbl > thead > tr { border-radius: 0; }
.ai2-selbar .ai2-link { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ai2-selbar .ai2-link:focus-visible, .ai2-selbar .btn:focus-visible { outline: 2px solid var(--brand-gold-light); outline-offset: 2px; }
.ai2-sel-why { font-weight: 500; }
.ai2-selbar > .ai-grow { flex: 1 1 auto; }
.ai2-selbar .btn { height: var(--control-height-sm); min-height: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); box-shadow: none; color: var(--navy); font-size: var(--t-mid); font-weight: 650; }
.ai2-selbar .btn[disabled] { opacity: .6; }
.ai2-tbl .ai-td.ai2-c-pick { cursor: default; }
.ai2-pick { display: grid; place-items: center; width: 44px; height: var(--control-height-touch); cursor: pointer; }
.ai2-pickbox { appearance: none; -webkit-appearance: none; box-sizing: border-box; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--muted); border-radius: 5px; background: var(--surface-card); cursor: pointer; }
.ai2-pickbox:hover { border-color: var(--navy); }
.ai2-pickbox:checked { border-color: var(--navy); background: var(--navy); box-shadow: inset 0 0 0 3px var(--surface-card); }
.ai2-pickbox:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ai2-tbl > tbody > tr.ai2-row--sel, .ai2-tbl > tbody > tr.ai2-row--sel:hover { background: color-mix(in srgb, var(--navy) 7%, var(--surface-card)); } /* a ticked row is tinted (P3) */
.ai2-tbl > tbody.ai2-g--drop > tr.ai2-g-row { outline: 2px dashed var(--brand-gold-mid); outline-offset: -3px; background: var(--wash); }
.ai2--dragging, .ai2--dragging .ai-row { cursor: grabbing; }
.ai2-dragchip { position: fixed; z-index: 700; display: inline-flex; align-items: center; gap: var(--s-2); height: 34px; padding: 0 12px; border-radius: var(--r-m); background: var(--navy); box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 28%, transparent); color: var(--surface-card); font-size: var(--t-mid); font-weight: 650; white-space: nowrap; pointer-events: none; }
.ai2-dragchip-box { box-sizing: border-box; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 4px; }
/* the result (S4b): the last line of the list's card, with Undo as a button */
.ai2-card:has(+ .ai2-moved) { margin-bottom: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 0; }
.ai2-moved { margin: 0 0 var(--s-3); overflow: hidden; border: 1px solid var(--hair); border-top-color: var(--line); border-radius: 0 0 var(--r-l) var(--r-l); background: var(--wash); }
.ai2-empty + .ai2-moved { border-radius: var(--r-l); border-top-color: var(--hair); }
.ai2 .ai2-moved .row-note { gap: var(--s-3); padding: 10px 18px; box-shadow: none; color: var(--ink); font-size: var(--t-mid); }
.ai2 .ai2-moved .row-note--err { box-shadow: inset 3px 0 0 var(--bad-fg); }
.ai2 .ai2-moved .row-note b { font-weight: 700; }
.ai2 .ai2-moved .row-note .row-note-btn { height: 30px; min-height: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); color: var(--navy); font-size: var(--t-mid); text-decoration: none; }
/* the record (R1): Filed under with Move, and who can see the item */
.ai2-recfiled-v { min-width: 0; }
.ai2-recpj { color: var(--ink); }
.ai2-recmark { display: inline-block; margin-right: 7px; }
.ai2-recmove-w { white-space: nowrap; } /* the dot stays with Move when the line wraps (a phone) */
.ai2-recmove { text-decoration: underline; text-underline-offset: 3px; }
.ai2-recmove[disabled] { color: var(--muted); text-decoration: none; cursor: default; }
.ai2-recwhy { display: block; margin-top: 2px; color: var(--muted); font-size: var(--t-sub); }
.ai2 .ai-drawer .ai2-moved--rec { display: block; margin: var(--s-2) 0 0; border-radius: var(--r-s); }
.ai2 .ai-drawer .ai2-moved--rec .row-note { padding: var(--s-2) var(--s-3); font-size: var(--t-sub); }

/* ---------- the shared parts first used here (ui-kit.js): the consequence confirm and the person picker ---------- */
.confirm-sheet.cse-modal { max-width: 30rem; border-radius: var(--r-l); }
.confirm-sheet:focus { outline: none; }
.confirm-sheet > .cse-modal-head { align-items: flex-start; padding: var(--s-4) var(--s-4) var(--s-3) var(--s-5); border-bottom-color: var(--hair); }
.confirm-sheet > .cse-modal-head h2 { color: var(--text-heading); font-size: var(--t-section); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.confirm-sheet > .cse-modal-body { padding: 18px var(--s-5); color: var(--ink); font-size: var(--t-mid); line-height: 1.45; }
.confirm-sheet > .cse-modal-body > p { margin: 0 0 var(--s-2); }
.confirm-sheet > .cse-modal-body > p:last-child { margin-bottom: 0; }
.confirm-sheet-muted { color: var(--muted); }
.confirm-sheet-type { margin: var(--s-3) 0 0; }
.confirm-sheet-type > label { display: block; margin-bottom: 6px; color: var(--muted); font-size: var(--t-sub); font-weight: 650; }
.confirm-sheet-type > input { width: 100%; box-sizing: border-box; min-height: var(--control-height-touch); border-radius: var(--r-m); }
.confirm-sheet > .cse-modal-foot { flex-wrap: wrap; gap: var(--s-2) 10px; padding: 14px var(--s-5); border-top-color: var(--hair); background: var(--wash); }
.confirm-sheet > .cse-modal-foot .btn { min-height: var(--control-height-icon); border-radius: var(--r-m); font-size: var(--t-mid); font-weight: 650; }
.confirm-sheet-cant { flex: 1 1 12rem; margin: 0; text-align: right; }
.person-pick { position: relative; }
.person-pick-list { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; width: min(22rem, 86vw); max-height: 264px; overflow: auto; padding: var(--s-1); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); box-shadow: 0 12px 28px color-mix(in srgb, var(--ink) 18%, transparent); }
.person-pick-list[hidden] { display: none; }
.person-pick-row { appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--control-height-touch); margin: 0; padding: 4px var(--s-2); border: 0; border-radius: var(--r-s); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.person-pick-row[hidden] { display: none; }
.person-pick-row:hover, .person-pick-row:focus-visible { background: var(--wash); }
.person-pick-row:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.person-pick-av { display: inline-grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mute-bg); color: var(--mute-fg); font-size: var(--t-label); font-weight: 700; }
.person-pick-t { display: flex; flex-direction: column; min-width: 0; }
.person-pick-n { font-size: var(--t-mid); font-weight: 650; overflow-wrap: anywhere; }
.person-pick-l { color: var(--muted); font-size: var(--t-sub); }
.person-pick-me { margin-left: var(--s-1); padding: 0 6px; border-radius: 999px; background: var(--mute-bg); color: var(--mute-fg); font-size: var(--t-label); font-weight: 700; }
.person-pick-none { margin: 0; padding: var(--s-2) var(--s-3); color: var(--muted); font-size: var(--t-sub); }
.person-pick-none[hidden] { display: none; }

/* ---------- 721 to 1179 pixels: the overview has no room for the last column ---------- */
@media (min-width: 721px) and (max-width: 1179px) {
  .ai2-ov--pj .ai-td.ai2-ov-lead, .ai2-ov--pj > thead .ai-th.ai2-ov-lead { display: none; }
  .ai2-ov--pj tr { grid-template-columns: minmax(0, 1fr) 48px 48px 62px 112px 92px 20px; } /* fetch-2044: + Done */
}

/* ---------- a phone (P1 to P4b): a project's row is its mark, its name and its count; ticking and moving from the bar ---------- */
@media (max-width: 720px) {
  .confirm-sheet-bg.cse-modal-bg { align-items: flex-end; padding: 0; }
  .confirm-sheet.cse-modal { max-width: none; }
  .confirm-sheet > .cse-modal-foot { flex-direction: column-reverse; align-items: stretch; }
  .confirm-sheet > .cse-modal-foot > :first-child { margin-right: 0; }
  .confirm-sheet > .cse-modal-foot .btn { min-height: var(--control-height-touch); }
  .confirm-sheet-cant { flex: 0 0 auto; text-align: left; }
  .ai2-g-line { gap: var(--s-2); min-height: var(--control-height-touch); padding: 1px 12px 1px 0; }
  .ai2-g-fold { width: var(--control-height-touch); height: var(--control-height-touch); margin: 0 -8px 0 0; }
  .ai2-g-name { flex: 1 1 auto; min-height: var(--control-height-touch); overflow: visible; line-height: 1.25; text-align: left; white-space: normal; overflow-wrap: anywhere; } /* a long name takes a second line (P6), never an ellipsis */
  span.ai2-g-name { display: flex; align-items: center; }
  .ai2-g-ppl, .ai2-g-seen, .ai2-g-late, .ai2-g-line > .ai-grow, .ai2-g-line .btn.ai2-g-add { display: none; }
  .ai2-tbl tr.ai2-g-more > .ai-td { padding: 0 12px 0 var(--control-height-touch); }
  .ai2-bk-l { padding: 14px 12px 4px; }
  .ai2-ov--pj tr.ai2-ov-dept > .ai-th { padding: 14px 12px 6px; }
  .ai2-ov--pj .ai-td.ai2-ov-lead { display: none; }
  .ai2-ov--pj .ai2-ov-n .ai2-title, .ai2-ov--pj .ai2-ov-dept .ai2-title { padding-bottom: 0; } /* the mark and the count sit on the name's own line (P1) */
  .ai2-ov--pj tr.ai2-ov-row { row-gap: 3px; align-content: center; }
  /* fetch-2044: "7 open · 6 done · next Sep 14" under the name; cells placed by class */
  .ai2-ov--pj tr { grid-template-columns: auto auto minmax(0, 1fr) auto 20px; }
  .ai2-ov--pj .ai2-ov-n { grid-column: 1 / 4; }
  .ai2-ov--pj .ai2-ov-num.ai2-ov-done { grid-column: 2; grid-row: 2; color: var(--muted); font-size: var(--t-sub); }
  .ai2-ov--pj .ai2-ov-num.ai2-ov-done:not(:empty)::before { content: "\00b7  "; }
  .ai2-ov--pj .ai2-ov-num.ai2-ov-done::after { content: " done"; }
  .ai2-ov--pj .ai2-ov-num.ai2-ov-done.none { display: none; }
  .ai2-ov--pj .ai2-ov-num.ai2-ov-done.none ~ .ai2-ov-due { margin-left: -6px; } /* a hidden Done keeps its two gaps */
  .ai2-ov--pj .ai2-ov-num.ai2-ov-late { grid-column: 4; grid-row: 1 / span 2; font-size: var(--t-sub); }
  .ai2-ov--pj .ai2-ov-num.ai2-ov-late.ai-late::after { content: " overdue"; }
  .ai2-ov--pj .ai2-ov-num.ai2-ov-late.none { display: none; }
  .ai2-ov--pj .ai2-ov-due { grid-column: 3; }
  .ai2-ov--pj .ai2-ov-go { grid-column: 5; }
  /* round 5 addendum (design rule 6): on a phone too the record is one white surface, the header at its top (it was drawn on the page ground) */
  .ai2 > .pgh.ai2-pjhead { display: flex; margin-bottom: 0; padding: var(--s-3) var(--s-3) var(--s-2); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-l) var(--r-l) 0 0; background: var(--paper); }
  .ai2 > .pgh.ai2-pjhead > .pgh-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); order: 1; }
  .ai2-pjhead .pgh-back { height: var(--control-height-touch); padding: 0 14px 0 10px; background: var(--wash); }
  .ai2-pjhead .pgh-h { flex: 1 1 100%; font-size: var(--t-section); }
  .ai2-pjhead .pgh-acts .btn { min-height: var(--control-height-touch); }
  /* the bar above holds "+ Action item", so an active project's header keeps only its menu: at the top right, on the back link's line */
  .ai2 > .pgh.ai2-pjhead { position: relative; }
  .ai2 > .pgh.ai2-pjhead:not(:has(.pgh-acts .btn-primary)) .pgh-acts { position: absolute; top: var(--s-3); right: var(--s-3); left: auto; width: auto; margin: 0; }
  .ai2-pj-ppl { margin: 0; padding: 0 var(--s-3) var(--s-3); }
  .ai2-pj > .cant-do { padding: 0 var(--s-3) var(--s-3); }
  .ai2-pj-ppl .ai2-person, .ai2-pj-ppl .btn.ai2-pj-addppl { height: var(--control-height-sm); }
  .ai2-pj-ppl .btn.ai2-pj-addppl { min-height: var(--control-height-touch); margin-block: -6px; }
  .ai2-pj-ppl > .ai-grow { display: none; }
  .ai2-pj-seen { flex: 1 1 100%; }
  /* fetch-2027 (impeccable audit, rule 8): the people as one line of initials and "4 people on it", Add people at its right end; the names
     are on the People tab and stay in the line for a screen reader. Four chips and Add people took three lines and put the first item at y 637 */
  .ai2-pj-ppl { flex-wrap: wrap; row-gap: var(--s-1); }
  .ai2-pj-ppl > .ai2-pj-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ai2-pj-ppl .ai2-people { flex-wrap: nowrap; gap: 0; padding-left: 6px; }
  .ai2-pj-ppl .ai2-person { height: auto; margin-left: -6px; padding: 0; border: 0; background: none; }
  .ai2-pj-ppl .ai2-av { width: 28px; height: 28px; box-shadow: 0 0 0 2px var(--paper); }
  .ai2-pj-ppl .ai2-person-n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ai2-pj-ppl > .ai2-pj-n { color: var(--ink); font-weight: 600; }
  .ai2-pj-ppl .btn.ai2-pj-addppl { margin-left: auto; }
  .ai2-pj .sec-tabs { padding: 0 var(--s-3); }
  .ai2-pj .sec-tab { min-height: var(--control-height-touch); }
  .ai2-pj-panel > .ai2-pj-note { padding: var(--s-2) var(--s-3) 0; }
  .ai2-pj-panel > :is(.stale-line, .mnt-total) { margin: var(--s-2) var(--s-3) 0; }
  .ai2-pj-panel > :last-child:is(.ai2-pj-note, .stale-line, .mnt-total) { margin-bottom: var(--s-2); }
  .ai2-pd-card .ai-fld.ai2-pd { grid-template-columns: 6.5rem minmax(0, 1fr) auto; padding-left: 12px; }
  .ai2-pd .btn.icon-btn, .ai2-pp .btn.cmenu-trigger { width: var(--control-height-touch); min-width: var(--control-height-touch); height: var(--control-height-touch); }
  .ai2-pd-acts .btn, .ai2-pp-card .ai2-foot .btn { min-height: var(--control-height-touch); }
  .ai2-pp { padding-left: 12px; padding-right: 4px; }
  .ai2-aud { min-height: var(--control-height-touch); box-sizing: border-box; }
  .ai2-tok { min-height: var(--control-height-sm); }
  .ai2-tok-x { width: var(--control-height-sm); height: var(--control-height-sm); }
  .ai2-add .ai2-addgrid .ai2-toks .person-pick-q { min-height: var(--control-height-md); }
  /* round 6 (round-5 ui note 1): the open person list spans the field it belongs to, inside the form's gutter (it ran from the search
     box's left edge to the screen's edge) */
  .ai2-add .ai2-toks { position: relative; }
  .ai2-add .ai2-toks > .person-pick { position: static; }
  .ai2-add .ai2-toks .person-pick-list { left: 0; right: 0; width: auto; }
  .ai2-add--phone.ai2-pjdlg .ai2-addform > .cse-modal-body { flex: 1 1 auto; }
  .ai2-add--phone.ai2-pjdlg[data-aipjdlg="where"] .ai2-addform > .cse-modal-body { flex: 0 1 auto; } /* Where to (P4a): the buttons follow the list */
  /* Where to is a choice list, so on a phone it is a sheet that ends at its buttons (design rule 23: content height, at most 90dvh), on the
     page's own ground with the choices on their white card - as the figure draws it and as the question after it (confirmSheet) already sits */
  .ai2-addbg:has(> .ai2-add--phone[data-aipjdlg="where"]) { align-items: flex-end; padding: 0; }
  .ai2-add--phone.ai2-pjdlg[data-aipjdlg="where"] { max-width: none; height: auto; max-height: 90dvh; border-radius: var(--r-l) var(--r-l) 0 0; background: var(--bg); }
  .ai2-add--phone.ai2-pjdlg[data-aipjdlg="where"] > .ai2-phead { padding-left: 14px; } /* the bar is the title alone */
  .ai2-add--phone.ai2-pjdlg[data-aipjdlg="where"] .ai2-addform > .cse-modal-foot { flex-wrap: nowrap; gap: 10px; } /* Cancel and the move, side by side */
  .ai2-add--phone.ai2-pjdlg[data-aipjdlg="where"] .ai2-addform > .cse-modal-foot > .btn { order: 0; flex: 1 1 0; min-width: 0; margin: 0; border-radius: 10px; }
  /* selecting (P3): the bar takes the place of the scope and the add button, edge to edge under the app's own bar */
  .ai2-pbar.ai2-psel { flex-wrap: wrap; gap: 6px var(--s-2); min-height: 56px; box-sizing: border-box; margin: -14px calc(50% - 50vw) var(--s-2); padding: 6px 12px; background: var(--navy); color: var(--surface-card); font-size: var(--t-mid); font-weight: 650; }
  .ai2 > .pgh > .pgh-row:has(> .ai2-pselect) .pgh-search:not(:focus-within):not(:has(input:not(:placeholder-shown))) { flex-basis: 6rem; } /* Filters, Search and Select share one line at 320 (P6) */
  .ai2-psel > .ai-grow { flex: 1 1 auto; }
  .ai2-psel .btn.ai2-psel-b { min-height: var(--control-height-touch); padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-card); box-shadow: none; color: var(--navy); font-size: var(--t-body); font-weight: 650; }
  .ai2-psel .btn.ai2-psel-b[disabled] { opacity: .6; }
  .ai2-psel > .ai2-sel-why { flex: 1 1 100%; margin: 0; font-size: var(--t-sub); }
  .ai2 > .pgh .btn.ai2-pselect { order: 3; flex: 0 0 auto; min-height: var(--control-height-touch); padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); box-shadow: none; color: var(--navy); font-size: var(--t-mid); font-weight: 650; }
  .ai2-tbl .ai2-c-done.ai2-c-pick { top: 0; }
  .ai2-pick { width: var(--control-height-touch); }
  .ai2-moved { border-radius: 0 0 var(--r-m) var(--r-m); }
  .ai2-moved:has(+ .ai2-card) { margin-bottom: 0; border-bottom: 0; border-radius: var(--r-l) var(--r-l) 0 0; } /* P4b: the result heads the list's card */
  .ai2-moved + .ai2-card { border-top-left-radius: 0; border-top-right-radius: 0; }
  .ai2 .ai2-moved .row-note { flex-wrap: nowrap; padding: 6px 12px; box-shadow: inset 3px 0 0 var(--ok-fg); font-size: var(--t-sub); }
  .ai2 .ai2-moved .row-note-t { flex: 1 1 0; }
  .ai2 .ai2-moved .row-note--err { box-shadow: inset 3px 0 0 var(--bad-fg); }
  .ai2 .ai2-moved .row-note .row-note-btn { height: auto; min-height: var(--control-height-touch); padding: 0 var(--s-1); border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; }
  .ai2-recmove { min-height: 0; }
}

/* ---------- fetch-2020 (Action Items 3/3): project updates, the composer, the overview's last column ---------- */
/* "Post update" is the header's nav slot (the one slot pageHeaderHTML has for a second button): at a desk it shares the facts line, at its right end, under the menu's column */
.ai2-pjhead .pgh-nav { margin-top: var(--s-3); }
@media (min-width: 721px) {
  .ai2 > .pgh.ai2-pjhead:has(> .pgh-nav) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-3); align-items: center; }
  .ai2 > .pgh.ai2-pjhead:has(> .pgh-nav) > * { grid-column: 1 / -1; min-width: 0; }
  .ai2 > .pgh.ai2-pjhead:has(> .pgh-nav) > .pgh-facts { grid-column: 1; }
  .ai2 > .pgh.ai2-pjhead:has(> .pgh-nav) > .pgh-nav { grid-column: 2; margin: var(--s-2) 0 0; }
}
.ai2-pjhead .pgh-nav .btn.ai2-pj-post { min-height: var(--control-height-md); border-radius: var(--r-m); font-weight: 650; }
/* the latest update, the first thing on Items (R4): authored writing, not a row */
.ai2-upd-latest { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) 18px; border-bottom: 1px solid var(--hair); }
.ai2-upd-b { flex: 1 1 auto; min-width: 0; }
.ai2-upd-av { display: inline-grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mute-bg); color: var(--navy); font-size: var(--t-label); font-style: normal; font-weight: 700; }
.ai2-upd-av--lg { width: 36px; height: 36px; font-size: var(--t-sub); }
.ai2-upd-by { margin: 0; color: var(--muted); font-size: var(--t-sub); }
.ai2-upd-by b { color: var(--ink); font-weight: 650; }
.ai2-upd-t { margin: var(--s-1) 0 0; color: var(--ink); font-size: var(--t-body); overflow-wrap: anywhere; white-space: pre-wrap; }
.ai2-upd-more { display: inline-block; margin-top: var(--s-1); font-size: var(--t-sub); text-decoration: underline; text-underline-offset: 3px; }
.ai2-upd-edit { flex: 0 0 auto; min-height: var(--control-height-icon); border-radius: var(--r-m); font-weight: 650; }
/* the Updates tab: newest first, one row per update */
.ai2-upd-card { padding: 0; }
.ai2-upd-list { margin: 0; padding: 0; list-style: none; }
.ai2-upd { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) 18px; border-top: 1px solid var(--hair); }
.ai2-upd:first-child { border-top: 0; }
.ai2-upd-ed { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-1); }
.ai2-upd-ed > textarea, .ai2-upd-card textarea { width: 100%; box-sizing: border-box; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); color: var(--ink); font: inherit; font-size: var(--t-body); resize: vertical; }
.ai2-upd-ed .ai2-pd-acts { align-self: flex-start; }
.ai2-upd-foot { margin: 0; padding: var(--s-3) 18px; border-top: 1px solid var(--hair); }
.ai2-upd-card > .empty-state { margin: 0; border: 0; background: none; box-shadow: none; }
.ai2-upd-card > .load-failed { margin: var(--s-3) 18px; }
/* the composer (R2): the draft line always sits directly under the text, and the audience before the foot */
.ai2-pjdlg[data-aipjdlg="update"] .field textarea { width: 100%; box-sizing: border-box; min-height: 9rem; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); color: var(--ink); font: inherit; font-size: var(--t-body); resize: vertical; }
.ai2-upd-count { margin: var(--s-1) 0 0; color: var(--muted); font-size: var(--t-sub); text-align: right; }
.ai2-upd-count[hidden] { display: none; }
.ai2-upd-kept { min-height: 1.5em; margin: var(--s-1) 0 0; color: var(--muted); font-size: var(--t-sub); font-weight: 600; }
.ai2-upd-aud { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-3); border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--wash); color: var(--muted); font-size: var(--t-sub); }
.ai2-upd-aud b { color: var(--ink); font-weight: 650; }
.ai2-upd-check { color: var(--ink); }
.ai2-upd-footl { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.ai2-upd-footl [hidden] { display: none; }
.ai2-pd-fixed--row { flex: 1 1 100%; }
/* All: the last column's first line is the latest update, ellipsized; the lead and the people sit beneath it on one line */
.ai2-ov .ai-td.ai2-ov-lead > .ai2-ov-lu { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.ai2-ov .ai-td.ai2-ov-lead > .ai2-ov-lu b { color: var(--ink); font-weight: 650; }
.ai2-ov .ai-td.ai2-ov-lead > .ai2-ov-lu--none { color: var(--muted); font-weight: 500; }
.ai2-ov-ll { display: flex; align-items: baseline; gap: var(--s-1); min-width: 0; }
.ai2-ov-ll > .ai2-ov-ln { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
.ai2-ov-ll > .ai2-ov-lp { flex: 0 0 auto; }
.ai2-ov-ll > .ai2-ov-lp::before { content: "· "; }
@media (max-width: 720px) {
  .ai2-upd-latest, .ai2-upd { padding-left: var(--s-3); padding-right: var(--s-3); }
  .ai2-upd-edit, .ai2-upd-more, .ai2-upd-footl .btn { min-height: var(--control-height-touch); }
  .ai2-upd-more { display: inline-flex; align-items: center; }
  .ai2-upd-foot { padding-left: var(--s-3); padding-right: var(--s-3); }
  .ai2-upd-ed .ai2-pd-acts .btn { min-height: var(--control-height-touch); }
  /* "Clear" beside a quick count filter: a 44 by 44 target (the rule above at the desk's size out-ranked the phone rule that sizes every other count) */
  .ai2 .pgh-fact--btn[data-actquick="open"], .ai2 .pgh-fact--btn[data-actquick="open"]:hover { height: var(--control-height-touch); min-width: var(--control-height-touch); padding: 0 10px; line-height: var(--control-height-touch); }
}

/* ---------- fetch-2028 (Action Items, simplified) ---------- */
/* A2: New project, the header's secondary button left of the primary - a plain button, sized like Sort and Filters (a phone has it in the sheet) */
@media (min-width: 721px) {
  .ai2 > .pgh .pgh-acts > .ai2-pjnew { height: var(--control-height-icon); min-height: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); box-shadow: none; color: var(--navy); font-size: var(--t-mid); font-weight: 650; white-space: nowrap; }
}
/* C2, C3: the Move overlay - a department's heading over its projects, Not in a project after a hairline, and what the chosen line means under it */
.ai2-addgrid .ai2-where > .ai2-where-h { clear: both; margin: 0; padding: 10px 18px 4px; color: var(--muted); font-size: var(--t-sub); font-weight: 650; }
.ai2-addgrid .ai2-where > label.ai2-where-o--none { border-top: 1px solid var(--hair); }
.ai2-addgrid .ai2-where > .ai2-move-says { clear: both; margin: 0; padding: var(--s-2) 18px var(--s-3); background: var(--wash); box-shadow: inset 3px 0 0 var(--brand-gold-mid); font-size: var(--t-sub); }
.ai2-move-says > p { margin: 0 0 var(--s-1); }
.ai2-move-says > p:last-child { margin-bottom: 0; }
.ai2-addgrid .ai2-where > .field-error { clear: both; margin: 0; padding: var(--s-1) 18px var(--s-2); }
/* D5: a project's section head says who sees it, at a desk */
.ai2-g-seen { flex: 0 1 auto; min-width: 0; overflow: hidden; color: var(--muted); font-size: var(--t-sub); text-overflow: ellipsis; }
/* D3: the record's Who can see this - the menu button, then "and anyone on this item", the result beside it, the people under it */
.ai2-recseen-v { min-width: 0; }
.ai2-recseen-ctl { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
.ai2-audmenu > .btn.cmenu-trigger--word { flex-direction: row-reverse; gap: var(--s-1); width: auto; }
.ai2 .ai-drawer .ai2-recseen-v .cant-do { text-align: left; }
.ai2-recseen-also { display: block; margin-top: var(--s-1); color: var(--muted); font-size: var(--t-sub); }
/* D2: the add form's Who can see it, when the chosen project decides */
.ai2-addaud-k { display: block; margin-bottom: var(--s-1); font-size: var(--t-sub); font-weight: 650; }
.ai2-addaud-v { margin: 0; color: var(--muted); }
/* fetch-2028: the save layer's note over the Move overlay's buttons while a move is out */
.ai2-move-out { padding: var(--s-2) var(--s-3) 0; }
/* fetch-2028: the move's button names the place ("Move to Fall tasting series"), so on a phone it takes more of the row than Cancel and wraps a long name */
.ai2-add--phone.ai2-pjdlg[data-aipjdlg="where"] .ai2-addform > .cse-modal-foot > .btn-primary { flex-grow: 1.6; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
/* ---------- fetch-2037 (C): the people box - a 520px dialog on a desk, a content-height sheet on a phone ---------- */
.ai2-bx.cse-modal { width: min(520px, calc(100vw - 32px)); max-height: min(44rem, calc(100dvh - 64px)); }
.ai2-bx.cse-modal--dialog > .cse-modal-head { align-items: flex-start; padding: var(--s-4) var(--s-4) var(--s-3) var(--s-5); border-bottom: 0; }
.ai2-bx-hd { flex: 1 1 auto; min-width: 0; }
.ai2-bx-hd h2 { font-size: var(--t-section); }
.ai2-bx-sub { margin: 2px 0 0; color: var(--muted); font-size: var(--t-mid); font-weight: 400; overflow-wrap: anywhere; }
.ai2-bx.cse-modal--dialog > .cse-modal-body { padding: 0 var(--s-5) var(--s-2); }
.ai2-bx-q { box-sizing: border-box; width: 100%; min-height: var(--control-height-touch); margin: 0 0 var(--s-1); padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-card); color: var(--ink); font: inherit; font-size: 1rem; }
.ai2-bx-q:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.ai2-bx-list { margin: 0; padding: 0; list-style: none; }
.ai2-bx-h { padding: var(--s-3) 0 var(--s-1); border-bottom: 1px solid var(--hair); color: var(--muted); font-size: var(--t-sub); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ai2-bx-h > span { color: var(--ink); font-variant-numeric: tabular-nums; }
.ai2-bx-r { display: flex; align-items: center; gap: var(--s-2); min-height: 56px; border-bottom: 1px solid var(--hair); }
.ai2-bx-l { display: flex; flex: 1 1 auto; align-items: center; gap: var(--s-3); min-width: 0; min-height: 56px; cursor: pointer; }
.ai2-bx-t { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; line-height: 1.3; }
.ai2-bx-t b { color: var(--ink); font-size: var(--t-body); font-weight: 650; overflow-wrap: anywhere; }
.ai2-bx-you { color: var(--muted); font-weight: 400; }
.ai2-bx-t small { color: var(--muted); font-size: var(--t-sub); }
.ai2-bx-s { flex: 0 0 auto; color: var(--ok-fg); font-size: var(--t-sub); font-weight: 650; }
.ai2-bx-s--off { color: var(--bad-fg); }
.ai2-bx-cb { flex: 0 0 auto; width: 20px; height: 20px; margin: 0 4px 0 0; accent-color: var(--navy); cursor: pointer; }
.ai2-bx-mk { flex: 0 0 auto; min-height: var(--control-height-touch); padding: 0 var(--s-1); font-size: var(--t-sub); white-space: nowrap; }
/* Make lead shows on the row pointed at or focused, never as a column of buttons; a touch screen uses the People tab's row menu */
.ai2-bx-r:not(:hover):not(:focus-within) > .ai2-bx-mk:not(.ai2-bx-mk--keep) { opacity: 0; }
@media (hover: none), (max-width: 720px) { .ai2-bx-mk:not(.ai2-bx-mk--keep) { display: none; } }
.ai2-bx.cse-modal--dialog > .ai2-bx-foot { flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.ai2-bx.cse-modal--dialog > .ai2-bx-foot > :first-child { flex: 1 1 14rem; margin: 0; }
.ai2-bx-say { color: var(--ink); font-size: var(--t-mid); }
.ai2-bx-acts { display: flex; gap: var(--s-2); margin-left: auto; }
.ai2-bx-acts .btn { min-height: var(--control-height-touch); }
.ai2-bx-err { flex: 1 1 100%; order: 3; margin: 0; color: var(--bad-fg); font-size: var(--t-sub); font-weight: 600; text-align: right; }
.ai2-bx .cse-modal-body > .notice, .ai2-bx .cse-modal-body > .row-note { margin-top: var(--s-2); }
@media (max-width: 640px) {
  .ai2-bx.cse-modal { width: 100%; }
  .ai2-bx.cse-modal--dialog > .cse-modal-head { padding: var(--s-2) var(--s-3) var(--s-2) var(--s-4); }
  .ai2-bx.cse-modal--dialog > .cse-modal-body { padding: 0 var(--s-4) var(--s-2); }
  .ai2-bx.cse-modal--dialog > .ai2-bx-foot { padding-inline: var(--s-4); }
  .ai2-bx-l { min-height: 60px; }
}
