/* ============================================================================
   INSTRUMENT — V2 MASTER TASK LIST styles · ProfitPlus Command Center
   Requires v2/tokens.css + v2/base.css. Consumed only by v2/tasks.js.

   ---------------------------------------------------------------------------
   LIQUID GLASS PASS (RUN 2, LANE B2, 2026-08-02) — read before touching a surface
   ---------------------------------------------------------------------------
   This page now speaks TWO token systems on purpose: `--v2-*` for space, type
   and the "one needle" status-colour doctrine (untouched — that system still
   owns what counts as critical/live, see the header note below), and `--g-*`
   (css/glass.css, LANE A) for every SURFACE property — fill, blur, edge,
   specular, shadow, radius. A surface only ever pulls from ONE ladder at a
   time: swap fill+blur+shadow+radius together, never mix a --v2-e* shadow
   with a --g-fill background, or the depth cues fight each other.
   . The group body (.v2t-body) and board column head/body are the FEW,
     low-count containers — they get REAL blur (glass-2/glass-1 equivalents).
   . Rows and cards are the MANY, heavily-repeated ones (up to hundreds) — they
     stay OPAQUE (g-solid-2 equivalent, zero backdrop-filter) per the perf rule
     in glass.css §5 "past ~12 repeated, use g-solid-*". Bubbly radius/edge/
     specular still apply; blur does not.
   . Text colour is switched to the matching --g-text-* tier ONLY on a surface
     whose background also switched to a --g-fill-* / --g-solid-* token — the
     (globs spaced apart on purpose: a bare asterisk-slash pair here terminated
     this whole header comment early and CSS error recovery then ate the ENTIRE
     .v2-tasks page-shell rule below (§1) as the junk rule's block — the page
     lost its canvas/mesh background, font stack, flex layout AND the
     --v2t-indent/-rail/-colw/-namew column tracks in prod, a live functional
     bug, not a style nit. Fixed 2026-08-04, W6-v2css.)
     glass contrast ratios in glass.css's header were computed against ITS OWN
     fills, not v2's, so a `--v2-text-3` label left on a `--g-fill-2` chip
     would be an unverified contrast pairing. Status/needle colours (is-late,
     is-warn, bulk-del, the drag-feedback accent) are UNCHANGED — that is a
     cross-app semantic system this lane does not own.
   . The task DETAIL PANEL and every dropdown/context menu this page opens
     (row-menu, status/priority/assignee/custom-field pickers, the field-menu
     kebabs) are built and positioned by js/app.js, not this file — v2/tasks.js
     only emits the `data-act` trigger elements. LANE B2 owns v2/tasks.js +
     v2/tasks.css exclusively, so those overlays are OUT OF SCOPE here; see the
     handoff note in the ship report.

   ---------------------------------------------------------------------------
   RULES THIS FILE OBEYS (lint gate, DESIGN_SYSTEM.md §Lint + TASKS_SPEC §3)
   ---------------------------------------------------------------------------
   . ZERO literal font-size / font-weight / border-radius values — tokens only
     (now `--v2-*` OR `--g-*`, per the glass pass note above — still never a
     bare literal).
   . ZERO hex colours. Every colour is var(--v2-*) or var(--g-*). Owner-chosen
     option colours are DATA and arrive inline from tasks.js — never from this
     file.
   . Every transition names its properties — never the `all` keyword.
   . ZERO importance overrides. Where a V1 rule has to be beaten it is beaten on
     SPECIFICITY, inside `.v2-tasks`, which matches nothing with the flag off.
   . MOBILE-FIRST. The phone card layout is the BASE; the table starts at 521px
     — the same 520px boundary app.js's _ptMobile() uses, so JS and CSS can never
     disagree about which layout is on screen.
   . Nothing animates layout. Colour, opacity, transform and box-shadow only
     (the v640 jank law). The group chevron rotates; it never slides a height.

   ---------------------------------------------------------------------------
   THE FIVE V1 CLASSES THIS FILE RE-DRESSES (they are JS hooks, not styling)
   ---------------------------------------------------------------------------
     .trow-sel / .trow-grip-ic   `task-sel` toggles .on here; index.html hides
                                 .trow-sel by default and only reveals it under
                                 `.trow:hover` — a selector a V2 row never
                                 matches, so WITHOUT the rules below selection
                                 would be permanently invisible.
     .th-sortable                the spec's sort contract; index.html scopes its
                                 rules to `.trow.thead`, so nothing leaks in.
     .cell-inline-input          inlineDate / inlineTaskCustom / inlineAddTask
                                 WRITE this markup into our cells at click time.
     .ttimer-btn / .ttimer-el    TimeTrack repaints these in place.
     .bulk-bar                   _refreshBulkBar rebuilds this node as a SIBLING
                                 of the V2 root and appends it to `.content`.

   ---------------------------------------------------------------------------
   THE NEEDLE ON THIS PAGE — seven rules, and the harness enumerates them
   ---------------------------------------------------------------------------
   The one PRIMARY ACTION (New Task) wears --v2-accent via base.css's
   .v2-btn-needle. Inside this file the needle is spent on exactly six things,
   all of them "critical" or "live" in the doctrine's own words:
     .v2t-ctr.is-late              a group's overdue counter
     .v2t-c-due.is-late            a due date that has passed
     .v2t-startmk.is-bad           a start date AFTER its due date — a data error
     .cell-inline-input.addnew     the inline CREATE input
     .ttimer-btn.is-running        a timer that is LIVE
     .bulk-bar .bulk-del           the one destructive control
     .v2t-qn.is-warn               the header's overdue count
     .row-dropbefore / .row-dropchild / .is-droptarget
                                   the LIVE drop indicators during a drag (the
                                   partners precedent spends it here too)
   Nothing else — not hover, not selection (a checked box fills with INK), not
   the sort arrow, not a group bar, not a focus ring's fill.
   ============================================================================ */

/* ============================================================================
   1 · PAGE SHELL — re-establish the V2 chassis inside V1's #content, which sets
   V1 tokens on .content (the move v2/funnel.css and v2/partners.css both needed).
   ============================================================================ */
.v2-tasks {
  --v2t-indent: var(--v2-space-4);      /* one subtask depth step */
  --v2t-rail: var(--v2-space-2);        /* tree rail offset inside the name cell */
  --v2t-colw: calc(var(--v2-space-7) * 2.8);   /* ONE data-column track (see §12) */
  --v2t-namew: calc(var(--v2-space-7) * 8);    /* the Task column: the wide one   */
  display: flex;
  flex-direction: column;
  gap: var(--v2-space-3);
  width: 100%;
  min-width: 0;
  color: var(--v2-text);
  /* the ambient wash every glass surface on this page blurs against — scoped
     to .v2-tasks so it cannot leak into a page another lane owns. */
  background-color: var(--g-canvas);
  background-image: var(--g-mesh);
  background-attachment: fixed;
  background-size: cover;
  font-family: var(--v2-font);
  font-size: var(--v2-fs-body);
  line-height: var(--v2-lh-body);
  letter-spacing: var(--v2-tr-body);
  font-weight: var(--v2-fw-normal);
  font-feature-settings: var(--v2-font-features);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
.v2-tasks *,
.v2-tasks *::before,
.v2-tasks *::after { box-sizing: border-box; }

/* background-attachment:fixed repaints the mesh every frame on iOS scroll —
   the same perf note glass.css §4 makes for .g-app. Pin it to the viewport on
   touch instead of the fixed root. */
@media (pointer: coarse) {
  .v2-tasks { background-attachment: scroll; }
}

/* The delegated calendar / timeline wrapper. P1/P2 gave it NO descendant rules
   at all; P3 gives it a deliberate, enumerated few — the two views' outer CHROME
   and nothing else. The rules and the line they must not cross live together in
   §15; this is only the flex context. (The board left this wrapper in P2 — it is
   V2-owned now.) */
.v2t-delegate { display: block; min-width: 0; width: 100%; }

.v2-tasks .v2t-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================================
   2 · TAG BAR
   ============================================================================ */
.v2-tasks .v2t-tagbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--v2-space-1);
  min-height: var(--v2-ctl-sm);
}
.v2-tasks .v2t-tagbar-l {
  display: inline-flex;
  align-items: center;
  gap: var(--v2-space-1);
  color: var(--v2-text-3);
  font-size: var(--v2-fs-micro);
  letter-spacing: var(--v2-tr-micro);
  font-weight: var(--v2-fw-medium);
  text-transform: uppercase;
  margin-right: var(--v2-space-1);
}
.v2-tasks .v2t-tagbar-l svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }

.v2-tasks .v2t-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--v2-space-1);
  height: var(--v2-ctl-xs);
  padding: 0 var(--v2-space-2);
  border-radius: var(--v2-r-pill);
  background: var(--g-fill-nested);
  box-shadow: inset 0 0 0 1px var(--g-hairline);
  color: var(--g-text-2);
  font-size: var(--v2-fs-micro);
  line-height: var(--v2-lh-micro);
  letter-spacing: var(--v2-tr-micro);
  font-weight: var(--v2-fw-medium);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease), transform var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-tag:hover { background: var(--g-fill-hover); color: var(--g-text); }
.v2-tasks .v2t-tag:active { transform: scale(0.96); }
.v2-tasks .v2t-tag.is-on { background: var(--g-fill-sel); color: var(--v2-accent); box-shadow: inset 0 0 0 1px var(--g-accent-soft); }
.v2-tasks .v2t-tag-dot {
  width: var(--v2-space-1); height: var(--v2-space-1);
  border-radius: var(--v2-r-pill);
  background: var(--v2t-tagc, var(--v2-text-3));
  flex: 0 0 auto;
}
.v2-tasks .v2t-tagclear {
  display: inline-flex; align-items: center; gap: var(--v2-space-1);
  height: var(--v2-ctl-xs); padding: 0 var(--v2-space-2);
  border: 0; border-radius: var(--v2-r-pill);
  background: transparent; color: var(--v2-text-3);
  font: inherit; font-size: var(--v2-fs-micro); cursor: pointer;
  transition: color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-tagclear:hover { color: var(--v2-text); }
.v2-tasks .v2t-tagclear svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }

/* ============================================================================
   3 · GROUPS — engraved section bars, never stacked cards.
   ============================================================================ */
.v2-tasks .v2t-groups { display: flex; flex-direction: column; gap: var(--v2-space-4); min-width: 0; }

.v2-tasks .v2t-grp { display: flex; flex-direction: column; min-width: 0; }

.v2-tasks .v2t-grphd {
  display: flex;
  align-items: center;
  gap: var(--v2-space-2);
  min-height: var(--v2-row-h-head);
  padding: var(--v2-space-1) var(--v2-space-2);
  /* W6-v2css 2026-08-04: surface comes from .glass-1 in the markup (v2/tasks.js).
     Radius stays --g-r-ctl — an engraved BAR, not chrome; (0,2,0) beats the primitive.
     The :hover/:focus-visible state re-pins below survive for the same reason. */
  border-radius: var(--g-r-ctl);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--v2-dur-1) var(--v2-ease), box-shadow var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-grphd:hover { background-color: var(--g-fill-hover); box-shadow: var(--g-edge-1), var(--g-spec-1), var(--g-shadow-2); }
.v2-tasks .v2t-grphd:focus-visible { outline: none; box-shadow: var(--g-focus-ring); }

.v2-tasks .v2t-grp-chev {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--v2-icon-md); height: var(--v2-icon-md);
  color: var(--v2-text-3);
  transform: rotate(0deg);
  transition: transform var(--v2-dur-2) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-grp-chev svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2-tasks .v2t-grp.is-collapsed .v2t-grp-chev { transform: rotate(-90deg); }

.v2-tasks .v2t-grp-dot {
  width: var(--v2-space-2); height: var(--v2-space-2);
  border-radius: var(--v2-r-pill);
  background: var(--v2-text-3);
  flex: 0 0 auto;
}
.v2-tasks .v2t-grp-l {
  font-size: var(--v2-fs-body);
  font-weight: var(--v2-fw-semi);
  letter-spacing: var(--v2-tr-body);
  color: var(--g-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.v2-tasks .v2t-grp.is-empty .v2t-grp-l { color: var(--g-text-3); font-weight: var(--v2-fw-medium); }

/* Instrument counters — tabular, quiet, right of the title. */
.v2-tasks .v2t-rollup {
  display: inline-flex; align-items: center; gap: var(--v2-space-2);
  margin-left: auto; min-width: 0; overflow: hidden;
}
.v2-tasks .v2t-ctr {
  display: inline-flex; align-items: center; gap: var(--v2-space-0);
  height: var(--v2-ctl-xs); padding: 0 var(--v2-space-1);
  border-radius: var(--v2-r-4);
  color: var(--g-text-3);
  font-size: var(--v2-fs-micro);
  line-height: var(--v2-lh-micro);
  letter-spacing: var(--v2-tr-micro);
  font-weight: var(--v2-fw-medium);
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--v2-font-features-num);
  white-space: nowrap;
}
.v2-tasks .v2t-ctr--n { background: var(--g-fill-nested); color: var(--g-text-2); font-weight: var(--v2-fw-semi); }
.v2-tasks .v2t-ctr.is-late { color: var(--v2-accent); }
.v2-tasks .v2t-grphd:hover .v2t-ctr { color: var(--g-text-2); }

.v2-tasks .v2t-grp-add {
  display: none;
  align-items: center; gap: var(--v2-space-1);
  height: var(--v2-ctl-xs); padding: 0 var(--v2-space-2);
  border-radius: var(--v2-r-4);
  color: var(--g-text-3);
  font-size: var(--v2-fs-micro);
  font-weight: var(--v2-fw-medium);
  white-space: nowrap; cursor: pointer;
  transition: background-color var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-grp-add svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2-tasks .v2t-grp-add:hover { background: var(--g-fill-press); color: var(--g-text); }
.v2-tasks .v2t-grphd:hover .v2t-grp-add { display: inline-flex; }

/* the group body — a LOW-COUNT container (a handful per page at most), so it
   is allowed the real thing: fill + blur + sheen + edge + specular + shadow,
   the full glass-2 recipe. Its sticky header (§12 .v2t-th) and its many rows
   stay opaque underneath — see the blur-budget note at the top of this file. */
.v2-tasks .v2t-body {
  display: block;
  margin-top: var(--v2-space-1);
  /* W6-v2css 2026-08-04: surface comes from .glass-2 in the markup (v2/tasks.js) —
     and the class is GATED OFF empty groups there, because the primitive's §19
     themeable border + engraved ::after cannot be stripped by the .is-empty
     reset below (it only resets element props, not pseudo layers). The reset
     stays as belt-and-braces for the un-gated path. */
  overflow: hidden;
}
.v2-tasks .v2t-grp.is-collapsed .v2t-body { display: none; }
.v2-tasks .v2t-grp.is-empty .v2t-body { background-color: transparent; background-image: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }

.v2-tasks .v2t-scroll { min-width: 0; overflow: visible; }

/* ============================================================================
   4 · PHONE (BASE, <=520px) — the table becomes a card list. One tap target per
   task; the readout stacks. The page NEVER scrolls sideways on a phone.
   ============================================================================ */
.v2-tasks .v2t-table,
.v2-tasks .v2t-table tbody,
.v2-tasks .v2t-table tr,
.v2-tasks .v2t-table td { display: block; width: auto; }
.v2-tasks .v2t-table thead,
.v2-tasks .v2t-table colgroup { display: none; }

.v2-tasks .v2t-row {
  position: relative;
  padding: var(--v2-space-2) var(--v2-space-3);
  cursor: pointer;
  transition: background-color var(--v2-dur-1) var(--v2-ease);
  /* Rows are controls, not prose: without this, the 300ms long-press that should
     LIFT the row for touch drag starts iOS text selection instead (V1 only
     suppressed selection after the lift — too late on a card-sized text target). */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.v2-tasks .v2t-row + .v2t-row { box-shadow: inset 0 1px 0 var(--g-hairline); }
.v2-tasks .v2t-row:active { background: var(--g-fill-sel); }
.v2-tasks .v2t-row.is-sel { background: var(--g-fill-sel); }

.v2-tasks .v2t-td { padding: 0; min-width: 0; }

/* Phone: the lead (grip + checkbox) column collapses into the row's left edge. */
.v2-tasks .v2t-lead { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v2-space-3); }
.v2-tasks .v2t-grip {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--v2-text-3);
}

/* The built-in cells become label/value lines. */
.v2-tasks .v2t-table td[data-label]:not(.v2t-namecell):not(.v2t-lead) {
  display: flex; align-items: center; gap: var(--v2-space-2);
  padding: var(--v2-space-0) 0;
  color: var(--v2-text-2);
  font-size: var(--v2-fs-small);
}
.v2-tasks .v2t-table td[data-label]:not(.v2t-namecell):not(.v2t-lead)::before {
  content: attr(data-label);
  flex: 0 0 auto;
  min-width: var(--v2-space-7);
  color: var(--v2-text-3);
  font-size: var(--v2-fs-micro);
  letter-spacing: var(--v2-tr-micro);
  font-weight: var(--v2-fw-medium);
}
.v2-tasks .v2t-kebabcell { position: absolute; right: var(--v2-space-1); top: var(--v2-space-1); }

/* Base phone layout hides custom columns. The final populated-value card rules below
   reveal labeled values while leaving empty fields in the full task detail. */
.v2-tasks .v2t-table td[data-label].v2t-c-cf:not(.v2t-namecell):not(.v2t-lead) { display: none; }

/* ============================================================================
   5 · NAME CELL + SUBTASK TREE — a hairline rail, never a nested box.
   ============================================================================ */
.v2-tasks .v2t-namecell {
  position: relative;
  padding-left: calc(var(--d, 0) * var(--v2t-indent));
  min-width: 0;
}
.v2-tasks .v2t-nameline {
  display: flex; align-items: center; gap: var(--v2-space-1);
  min-width: 0; flex-wrap: wrap;
}
/* Request state gets its own line; it must never compete with the title,
   child progress and discussion/timer controls for horizontal space. */
.v2-tasks .v2t-withdrawal {
  display: block;
  margin-top: var(--v2-space-1);
  margin-left: calc(var(--v2-icon-md) + var(--v2-space-2) + var(--v2-space-1) * 2);
  white-space: normal;
}
.v2-tasks .v2t-withdrawal .task-withdrawn-label {
  vertical-align: top;
  overflow-wrap: normal;
}
/* The rail: a vertical hairline dropping to the row's midline, plus a short
   elbow into the caret. Pseudo-elements only — no extra nodes, no layout. */
.v2-tasks .v2t-row.is-child .v2t-namecell::before {
  content: '';
  position: absolute;
  left: calc((var(--d, 1) * var(--v2t-indent)) - var(--v2t-rail));
  top: 0; height: 50%; width: var(--v2-hairline-w);
  background: var(--v2-hairline-strong);
}
.v2-tasks .v2t-row.is-child .v2t-namecell::after {
  content: '';
  position: absolute;
  left: calc((var(--d, 1) * var(--v2t-indent)) - var(--v2t-rail));
  top: 50%; height: var(--v2-hairline-w); width: var(--v2-space-1);
  background: var(--v2-hairline-strong);
}

.v2-tasks .v2t-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--v2-icon-md); height: var(--v2-icon-md);
  flex: 0 0 auto;
  color: var(--v2-text-3);
  border-radius: var(--v2-r-4);
  cursor: pointer;
  transform: rotate(0deg);
  transition: transform var(--v2-dur-2) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-caret svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2-tasks .v2t-caret.is-collapsed { transform: rotate(-90deg); }
.v2-tasks .v2t-caret.is-blank { cursor: default; }
.v2-tasks .v2t-caret:not(.is-blank):hover { color: var(--v2-text); }

/* The status pip — the at-a-glance status readout. Colour is DATA (inline). */
.v2-tasks .v2t-pip {
  width: var(--v2-space-2); height: var(--v2-space-2);
  flex: 0 0 auto;
  border-radius: var(--v2-r-pill);
  background: var(--v2t-sc, var(--v2-hairline-strong));
  box-shadow: var(--v2-ring-inset);
  cursor: pointer;
  transition: transform var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-pip:hover { transform: scale(1.25); }
.v2-tasks .v2t-pip:focus-visible { outline: none; box-shadow: var(--g-focus-ring); }

.v2-tasks .v2t-name {
  min-width: 0;
  color: var(--v2-text);
  font-size: var(--v2-fs-body);
  font-weight: var(--v2-fw-medium);
  letter-spacing: var(--v2-tr-body);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.v2-tasks .v2t-row.is-done .v2t-name { color: var(--v2-text-3); text-decoration: line-through; }
.v2-tasks .v2t-row.is-child .v2t-name { font-weight: var(--v2-fw-normal); }

.v2-tasks .v2t-subn { background: var(--v2-surface-2); color: var(--v2-text-3); }

.v2-tasks .v2t-prog { display: inline-flex; align-items: center; gap: var(--v2-space-1); flex: 0 0 auto; }
.v2-tasks .v2t-prog-bar {
  display: block; width: var(--v2-space-6); height: var(--v2-space-1);
  border-radius: var(--v2-r-pill);
  background: var(--v2-surface-2);
  overflow: hidden;
}
.v2-tasks .v2t-prog-fill { display: block; height: 100%; border-radius: var(--v2-r-pill); background: var(--v2-text-3); }
.v2-tasks .v2t-prog.is-done .v2t-prog-fill { background: var(--v2-green); }
.v2-tasks .v2t-prog-n {
  color: var(--v2-text-3);
  font-size: var(--v2-fs-micro);
  font-weight: var(--v2-fw-medium);
  font-variant-numeric: tabular-nums;
}

.v2-tasks .v2t-tags { display: inline-flex; align-items: center; gap: var(--v2-space-1); flex-wrap: wrap; min-width: 0; }
.v2-tasks .v2t-est { background: var(--g-fill-nested); border-radius: var(--g-r-xs); }

.v2-tasks .v2t-people { display: inline-flex; align-items: center; }
.v2-tasks .v2t-people .v2t-avw + .v2t-avw,
.v2-tasks .v2t-people .v2t-av + .v2t-av { margin-left: calc(var(--v2-space-1) * -1); }

.v2-tasks .v2t-meta { display: inline-flex; align-items: center; gap: var(--v2-space-1); flex: 0 0 auto; }
.v2-tasks .v2t-mk {
  display: inline-flex; align-items: center; gap: var(--v2-space-0);
  color: var(--v2-text-3);
  font-size: var(--v2-fs-micro);
  font-weight: var(--v2-fw-medium);
  font-variant-numeric: tabular-nums;
}
.v2-tasks .v2t-mk svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2-tasks .v2t-mk.is-blocked { color: var(--v2-amber); }

/* ============================================================================
   6 · CELLS
   ============================================================================ */
.v2-tasks .v2t-opt {
  display: inline-flex; align-items: center; gap: var(--v2-space-1);
  min-width: 0; max-width: 100%;
  border-radius: var(--v2-r-4);
  color: var(--v2-text-2);
  cursor: pointer;
  transition: color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-opt:hover { color: var(--v2-text); }
.v2-tasks .v2t-opt:focus-visible { outline: none; box-shadow: var(--g-focus-ring); }
.v2-tasks .v2t-optdot {
  width: var(--v2-space-1); height: var(--v2-space-1);
  flex: 0 0 auto;
  border-radius: var(--v2-r-pill);
  background: var(--v2-text-3);
}
.v2-tasks .v2t-opt-l {
  min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--v2-fs-small);
  letter-spacing: var(--v2-tr-small);
}
.v2-tasks .v2t-c-multi { display: flex; flex-wrap: wrap; gap: var(--v2-space-1); }

.v2-tasks .v2t-add {
  display: inline-flex; align-items: center; gap: var(--v2-space-0);
  color: var(--v2-text-4);
  font-size: var(--v2-fs-small);
  font-weight: var(--v2-fw-normal);
  white-space: nowrap;
  transition: color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-add svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2-tasks .v2t-row:hover .v2t-add { color: var(--v2-text-3); }
.v2-tasks .v2t-dash { color: var(--v2-text-4); }

.v2-tasks .v2t-c-edit { cursor: pointer; }
.v2-tasks .v2t-c-edit:focus-visible { outline: none; box-shadow: var(--g-focus-ring); }
.v2-tasks .v2t-cli,
.v2-tasks .v2t-cfv {
  display: block; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--v2-text-2);
  font-size: var(--v2-fs-small);
}
.v2-tasks .v2t-num,
.v2-tasks .v2t-duetxt { font-variant-numeric: tabular-nums; font-feature-settings: var(--v2-font-features-num); }

.v2-tasks .v2t-c-due { color: var(--v2-text-2); }
.v2-tasks .v2t-c-due.is-soon .v2t-duetxt { color: var(--v2-amber); font-weight: var(--v2-fw-medium); }
.v2-tasks .v2t-c-due.is-late .v2t-duetxt { color: var(--v2-accent); font-weight: var(--v2-fw-medium); }
.v2-tasks .v2t-startmk {
  color: var(--v2-text-3);
  font-size: var(--v2-fs-micro);
  font-variant-numeric: tabular-nums;
  margin-right: var(--v2-space-1);
}
.v2-tasks .v2t-startmk.is-bad { color: var(--v2-accent); }

.v2-tasks .v2t-prio { display: inline-flex; align-items: center; gap: var(--v2-space-1); cursor: pointer; }
.v2-tasks .v2t-prio-ic { display: inline-flex; align-items: center; color: var(--v2-text-3); }
.v2-tasks .v2t-prio-ic svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2-tasks .v2t-prio-ic.is-none { color: var(--v2-text-4); }
.v2-tasks .v2t-prio-l { font-size: var(--v2-fs-small); color: var(--v2-text-2); }

.v2-tasks .v2t-avs { display: inline-flex; align-items: center; }
.v2-tasks .v2t-avs .v2t-avw + .v2t-avw,
.v2-tasks .v2t-avs .v2t-av + .v2t-av { margin-left: calc(var(--v2-space-1) * -1); }
.v2-tasks .v2t-avw { position: relative; display: inline-flex; flex: none; }
.v2-tasks .v2t-av {
  display: inline-grid; place-items: center;
  width: var(--v2-ctl-xs); height: var(--v2-ctl-xs);
  flex: 0 0 auto;
  border-radius: var(--v2-r-pill);
  background: var(--v2-text-3);
  color: var(--v2-text-on-accent);
  font-size: var(--v2-fs-micro);
  font-weight: var(--v2-fw-semi);
  letter-spacing: var(--v2-tr-micro);
  overflow: hidden;
  box-shadow: 0 0 0 var(--v2-hairline-w) var(--v2-panel);
}
.v2-tasks .v2t-av-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-tasks .v2t-av--xs { width: var(--v2-icon-lg); height: var(--v2-icon-lg); }
.v2-tasks .v2t-av--more { background: var(--v2-surface-2); color: var(--v2-text-3); }

.v2-tasks .v2t-kb {
  display: inline-grid; place-items: center;
  width: var(--v2-ctl-sm); height: var(--v2-ctl-sm);
  border-radius: var(--v2-r-6);
  color: var(--v2-text-4);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease), background-color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-row:hover .v2t-kb,
.v2-tasks .v2t-kb:focus-visible { opacity: 1; }
.v2-tasks .v2t-kb:hover { color: var(--v2-text); background: var(--g-fill-hover); }
.v2-tasks .v2t-kb-ic { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }

/* ============================================================================
   7 · THE V1 JS-HOOK CLASSES, re-dressed (see the header note).
   ============================================================================ */
.v2-tasks .v2t-row .trow-grip-ic {
  display: inline-grid; place-items: center;
  color: var(--v2-text-4);
  opacity: 0;
  transition: opacity var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-row .trow-grip-ic svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2-tasks .v2t-row:hover .trow-grip-ic { opacity: 1; }
.v2-tasks .v2t-row:hover .trow-grip-ic,
.v2-tasks .v2t-row.is-sel .trow-grip-ic { display: none; }

.v2-tasks .v2t-row .trow-sel {
  display: none;
  align-items: center; justify-content: center;
  width: var(--v2-icon-md); height: var(--v2-icon-md);
  padding: 0;
  border: var(--v2-hairline-w) solid var(--g-hairline-strong);
  border-radius: var(--g-r-xs);
  background: transparent;
  color: transparent;
  cursor: pointer;
  transition: background-color var(--v2-dur-1) var(--v2-ease), border-color var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-row:hover .trow-sel,
.v2-tasks .v2t-row.is-sel .trow-sel,
.v2-tasks .v2t-row .trow-sel.on { display: inline-flex; }
.v2-tasks .v2t-row .trow-sel svg { width: var(--v2-space-2); height: var(--v2-space-2); }
/* A checked box is a SELECTION, not a critical state — so it fills with ink, not
   with the needle (DESIGN_SYSTEM law 3). V1 filled it red; that was the needle
   spent on the most ordinary interaction on the page. */
.v2-tasks .v2t-row .trow-sel.on {
  background: var(--v2-text);
  border-color: var(--v2-text);
  color: var(--v2-panel);
}

/* inlineDate / inlineTaskCustom / inlineAddTask write this input INTO our cells.
   Glass sunken-well recipe (glass.css §9 .g-input), unchanged behaviour — this
   node's survive-a-background-refresh fix lives in app.js/tasks.js JS, not
   here; only the paint changed. */
.v2-tasks .cell-inline-input {
  width: 100%;
  min-height: var(--v2-ctl-sm);
  padding: 0 var(--v2-space-2);
  border: 0;
  border-radius: var(--g-r-ctl);
  background-color: var(--g-fill-sunken);
  box-shadow: inset 0 0 0 1px var(--g-hairline), inset 0 1px 2px rgba(0,0,0,0.06);
  color: var(--g-text);
  font-family: var(--v2-font);
  font-size: var(--v2-fs-body);
  font-weight: var(--v2-fw-normal);
  letter-spacing: var(--v2-tr-body);
  outline: none;
  transition: box-shadow var(--v2-dur-1) var(--v2-ease), background-color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .cell-inline-input:hover { box-shadow: inset 0 0 0 1px var(--g-hairline-strong), inset 0 1px 2px rgba(0,0,0,0.06); }
.v2-tasks .cell-inline-input:focus { background-color: var(--g-fill-nested); box-shadow: inset 0 0 0 1px var(--g-accent), var(--g-focus-ring); }
.v2-tasks .cell-inline-input.addnew { box-shadow: inset 0 0 0 1px var(--v2-accent); }

/* TimeTrack repaints these in place between renders. */
.v2-tasks .ttimer-btn {
  display: inline-flex; align-items: center; gap: var(--v2-space-0);
  height: var(--v2-ctl-xs); padding: 0 var(--v2-space-1);
  border: 0; border-radius: var(--v2-r-4);
  background: transparent;
  color: var(--v2-text-4);
  font: inherit;
  font-size: var(--v2-fs-micro);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease), background-color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-row:hover .ttimer-btn,
.v2-tasks .ttimer-btn.is-running { opacity: 1; }
.v2-tasks .ttimer-btn:hover { color: var(--v2-text); background: var(--g-fill-hover); }
.v2-tasks .ttimer-btn.is-running { color: var(--v2-accent); }
.v2-tasks .ttimer-btn .ttimer-ic { display: inline-flex; align-items: center; }
.v2-tasks .ttimer-btn svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }

/* ============================================================================
   8 · GROUP FOOTER (numeric custom-field sums) + INLINE ADD ROW
   ============================================================================ */
.v2-tasks .v2t-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--v2-space-4);
  padding: var(--v2-space-2) var(--v2-space-3);
  box-shadow: inset 0 1px 0 var(--g-hairline);
  background: var(--g-fill-nested);
}
.v2-tasks .v2t-foot-i { display: inline-flex; align-items: baseline; gap: var(--v2-space-1); min-width: 0; }
.v2-tasks .v2t-foot-i i {
  font-style: normal;
  color: var(--g-text-3);
  font-size: var(--v2-fs-micro);
  letter-spacing: var(--v2-tr-micro);
  font-weight: var(--v2-fw-medium);
  text-transform: uppercase;
}
.v2-tasks .v2t-foot-i b {
  color: var(--g-text);
  font-size: var(--v2-fs-md);
  font-weight: var(--v2-fw-semi);
  letter-spacing: var(--v2-tr-md);
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--v2-font-features-num);
}
.v2-tasks .v2t-foot-i small { color: var(--g-text-4); font-size: var(--v2-fs-micro); }

.v2-tasks .v2t-addrow {
  display: flex; align-items: center; gap: var(--v2-space-1);
  min-height: var(--v2-row-h);
  padding: 0 var(--v2-space-3);
  box-shadow: inset 0 1px 0 var(--v2-hairline);
  color: var(--v2-text-4);
  font-size: var(--v2-fs-small);
  cursor: pointer;
  transition: background-color var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-addrow svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2-tasks .v2t-addrow:hover { background: var(--v2-row-hover); color: var(--v2-text-2); }
.v2-tasks .v2t-addrow.editing { padding: var(--v2-space-1) var(--v2-space-3); color: var(--v2-text); }

/* ============================================================================
   9 · BULK BAR — _refreshBulkBar (app.js) appends this into `.content`, a
   SIBLING of the V2 root, so it is reached with the sibling combinator. Inert
   with the flag off. It is `position: fixed`, so it appears without ever
   shifting the list. TRUE glass-4 (top of the stack, floating over content —
   the one blurred layer allowed to be this loud on the page).

   OPEN/CLOSE, and the one gap this lane cannot close: app.js creates a fresh
   node the moment the FIRST row is selected (`bar=document.createElement(...)`)
   and only ever mutates the count in place after that (`n.textContent=...`) —
   so the `g-bulkbar-in` mount animation below plays exactly once per "open",
   correctly, with zero JS changes needed here. Closing is `bar.remove()` in
   the same function — an instant unmount CSS cannot intercept or delay. A
   real animated close needs `_refreshBulkBar` to defer the remove (Glass.close
   semantics), and that function lives in js/app.js, outside this lane's
   exclusive files. Flagged in the ship report as a cross-lane follow-up.
   ============================================================================ */
.v2-tasks ~ .bulk-bar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--v2-space-4) + var(--v2-sab) + var(--v2-tabbar-h));
  transform: translateX(-50%);
  z-index: var(--v2-z-sticky);
  display: flex; align-items: center; gap: var(--v2-space-1);
  max-width: calc(100vw - var(--v2-space-5));
  overflow-x: auto;
  padding: var(--v2-space-1);
  /* W6-v2css 2026-08-04: surface comes from .glass-4 in the markup — v2/tasks.js
     builds the bar with the class, and js/app.js _refreshBulkBar re-adds it
     (v2-flag-gated) when it rebuilds the node in place. r-modal radius was the
     primitive's own default, so the line is gone with the recipe. The hand-rolled
     g-bulkbar-in entrance below stays. */
  font-family: var(--v2-font);
  font-size: var(--v2-fs-small);
  -webkit-overflow-scrolling: touch;
  animation: g-bulkbar-in var(--g-t-slow) var(--g-ease-glass) both;
}
@keyframes g-bulkbar-in {
  from { opacity: 0; transform: translate3d(-50%, 14px, 0) scale(0.96); }
  to   { opacity: 1; transform: translate3d(-50%, 0, 0) scale(1); }
}
@media (max-width: 520px) {
  @keyframes g-bulkbar-in {
    from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.97); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .v2-tasks ~ .bulk-bar { animation-duration: 1ms; }
}
.v2-tasks ~ .bulk-bar .bulk-n {
  padding: 0 var(--v2-space-2);
  color: var(--g-text-3);
  font-size: var(--v2-fs-micro);
  letter-spacing: var(--v2-tr-micro);
  font-weight: var(--v2-fw-semi);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.v2-tasks ~ .bulk-bar .bulk-btn {
  display: inline-flex; align-items: center; gap: var(--v2-space-1);
  height: var(--v2-ctl-h); padding: 0 var(--v2-space-2);
  border: 0; border-radius: var(--g-r-ctl);
  background: transparent;
  color: var(--g-text-2);
  font: inherit;
  font-size: var(--v2-fs-small);
  font-weight: var(--v2-fw-medium);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks ~ .bulk-bar .bulk-btn svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2-tasks ~ .bulk-bar .bulk-btn:hover { background: var(--g-fill-hover); color: var(--g-text); }
.v2-tasks ~ .bulk-bar .bulk-btn:active { transform: scale(.97); }
.v2-tasks ~ .bulk-bar .bulk-btn:focus-visible { outline: none; box-shadow: var(--g-focus-ring); }
.v2-tasks ~ .bulk-bar .bulk-del { color: var(--v2-accent); }
.v2-tasks ~ .bulk-bar .bulk-clear { color: var(--g-text-3); }

/* ============================================================================
   9b · DRAG FEEDBACK — the four state classes wireListDnD writes.

   THESE CLASS NAMES ARE THE WIRER'S CONTRACT, NOT OURS (js/app.js: `row-dragging`
   on lift, `row-dropbefore` / `row-dropchild` on the hovered row, `is-droptarget`
   on the hovered group). V1 styles them as `.trow.*` and `.group.is-droptarget`,
   which a V2 row and a V2 group never match — so without this block a V2 drag
   paints NOTHING: no lift, no insertion line, no nest hint, no group ring. The
   drop still commits, which makes it a BLIND drop that silently rewrites
   status / department / priority / assignee depending on State.groupBy.

   The nest threshold is invisible otherwise too: wireListDnD flips to "make this
   a child" at `(x - startX) > 28`, so `row-dropchild` has to look DIFFERENT from
   `row-dropbefore`, not just tinted — one is "insert above", the other is
   "nest inside". Hence: a TOP rule for before, and a LEFT rail plus an indent
   step for child, matching the hairline tree rail a real subtask gets.

   Compositor-safe: opacity, transform, box-shadow and background only — never a
   width/height/margin, so a 200-row list does not relayout mid-drag (v640 law).

   SPECIFICITY IS LOAD-BEARING HERE, and it was got wrong once: §12 carries
   `.v2-tasks .v2t-table tbody tr:first-child .v2t-td { box-shadow: none }` at
   (0,4,2) to kill the first row's top hairline. A drop rule written as
   `.v2-tasks .v2t-row.row-dropbefore > .v2t-td` is only (0,4,0), so the
   insert-above line vanished on the FIRST ROW OF EVERY GROUP — precisely where
   you aim when you want something at the top. Every rule below therefore carries
   the full `.v2t-table tbody tr.v2t-row` prefix and out-specifies §12 outright.
   Measured in the browser, not reasoned about.
   ============================================================================ */
.v2-tasks .v2t-table tbody tr.v2t-row.row-dragging {
  opacity: .55;
  background: var(--v2-surface);
  cursor: grabbing;
  user-select: none;
}
/* INSERT ABOVE — a rule on the top edge, the full width of the row. */
.v2-tasks .v2t-table tbody tr.v2t-row.row-dropbefore > .v2t-td { box-shadow: inset 0 2px 0 var(--v2-accent); }
/* NEST INSIDE — a left rail plus an indent step on the title, so the row visibly
   becomes a child before the pointer is released. Deliberately unlike the
   insert-above rule: these are two different outcomes. */
.v2-tasks .v2t-table tbody tr.v2t-row.row-dropchild > .v2t-td { background: var(--v2-accent-softer); }
.v2-tasks .v2t-table tbody tr.v2t-row.row-dropchild > .v2t-td:first-child { box-shadow: inset 3px 0 0 var(--v2-accent); }
.v2-tasks .v2t-table tbody tr.v2t-row.row-dropchild .v2t-nameline {
  transform: translateX(var(--v2t-indent));
  transition: transform var(--v2-dur-1) var(--v2-ease);
}
/* DROP INTO THIS GROUP — ring the chassis and light the header, the same two
   surfaces V1 marks (`.group.is-droptarget > .table-card` + `> .group-head`). */
.v2-tasks .v2t-groups .v2t-grp.is-droptarget > .v2t-body { box-shadow: var(--v2-ring-strong); }
.v2-tasks .v2t-groups .v2t-grp.is-droptarget > .v2t-grphd {
  background: var(--v2-accent-softer);
  box-shadow: var(--v2-ring-strong);
}

/* ============================================================================
   10 · EMPTY STATES — ghost rows, never a centred illustration. The page shows
   the SHAPE of what would be there, then says exactly why it is not.
   ============================================================================ */
/* SIM-11 — the empty state is a normal COLUMN now (message, then shape), not a message
   floated over a skeleton. scroll-margin-top keeps it clear of the sticky #mainhead
   whenever anything scrolls it into view, and the top pad means the heading is never the
   pixel row that lands under the glass header on first paint. */
.v2-tasks .v2t-empty {
  display: flex; flex-direction: column; gap: var(--v2-space-3);
  min-height: var(--v2-space-7);
  padding-top: var(--v2-space-3);
  scroll-margin-top: var(--v2-sticky-safe);
}
/* #mainhead is `position:sticky; top:0` (index.html §.mainhead) and on the task list it
   carries a crumb row, a scrolling tab strip and a controls row. This is the clearance any
   scroll-into-view has to leave for it. Declared here, next to its only consumer, rather
   than in tokens.css — no other page's geometry should move because of a task-list fix. */
.v2-tasks { --v2-sticky-safe: 120px; }
@media (max-width: 720px) { .v2-tasks { --v2-sticky-safe: calc(140px + var(--v2-sat, 0px)); } }
.v2-tasks .v2t-ghosts {
  display: flex; flex-direction: column;
  border-radius: var(--g-r-card);
  background-color: var(--g-fill-2);
  background-image: var(--g-sheen-2);
  -webkit-backdrop-filter: var(--g-blur-2);
  backdrop-filter: var(--g-blur-2);
  box-shadow: var(--g-edge-2), var(--g-spec-2), var(--g-shadow-1);
  overflow: hidden;
  opacity: .65;
}
.v2-tasks .v2t-ghost {
  display: flex; align-items: center; gap: var(--v2-space-3);
  min-height: var(--v2-row-h);
  padding: 0 var(--v2-space-3);
}
.v2-tasks .v2t-ghost + .v2t-ghost { box-shadow: inset 0 1px 0 var(--g-hairline); }
/* the glass.css skeleton shimmer (--g-skel / --g-skel-shine / @keyframes
   g-shimmer), reused verbatim here so a loading state on this page moves
   exactly like every other one in the app. */
.v2-tasks .v2t-ghost span,
.v2-tasks .v2t-ghost-colhd,
.v2-tasks .v2t-ghost-card,
.v2-tasks .v2t-ghost-cellnum,
.v2-tasks .v2t-ghost-tllbl,
.v2-tasks .v2t-ghost-tlbar {
  position: relative;
  display: block; height: var(--v2-space-2);
  border-radius: var(--g-r-xs);
  background-color: var(--g-skel);
  overflow: hidden;
}
.v2-tasks .v2t-ghost span::after,
.v2-tasks .v2t-ghost-colhd::after,
.v2-tasks .v2t-ghost-card::after,
.v2-tasks .v2t-ghost-cellnum::after,
.v2-tasks .v2t-ghost-tllbl::after,
.v2-tasks .v2t-ghost-tlbar::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--g-skel-shine);
  transform: translate3d(-100%, 0, 0);
  animation: g-shimmer 1.5s var(--g-ease-in-out) infinite;
}
.v2-tasks .v2t-ghost-a { width: var(--v2-space-5); flex: 0 0 auto; }
.v2-tasks .v2t-ghost-b { flex: 1 1 auto; max-width: var(--v2-modal-w-sm); }
.v2-tasks .v2t-ghost-c { width: var(--v2-space-6); flex: 0 0 auto; }

/* The BOARD's ghost (P2). An empty state has to show the shape of the view you
   are ACTUALLY on — ghost rows behind a "board is empty" headline reads as the
   wrong page having loaded. Same component, ghost COLUMNS instead of rows. */
.v2-tasks .v2t-ghosts.is-board {
  flex-direction: row;
  gap: var(--v2-space-3);
  padding: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  overflow: hidden;
}
.v2-tasks .v2t-ghost-col {
  display: flex; flex-direction: column; gap: var(--v2-space-2);
  flex: 1 1 0; min-width: 0;
  padding: var(--v2-space-2);
  border-radius: var(--g-r-card);
  background-color: var(--g-fill-2);
  background-image: var(--g-sheen-2);
  -webkit-backdrop-filter: var(--g-blur-2);
  backdrop-filter: var(--g-blur-2);
  box-shadow: var(--g-edge-2), var(--g-spec-2), var(--g-shadow-1);
}
.v2-tasks .v2t-ghost-colhd { width: 60%; border-radius: var(--g-r-xs); }
.v2-tasks .v2t-ghost-card { height: var(--v2-space-6); border-radius: var(--g-r-md); }

/* The two DELEGATED shapes (P3), same doctrine again: a month GRID behind the
   calendar's message, stacked BARS behind the timeline's. */
.v2-tasks .v2t-ghosts.is-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--v2-hairline-w);
  padding: 0;
  background: var(--g-hairline);
  box-shadow: var(--g-edge-2);
  border-radius: var(--g-r-card);
  overflow: hidden;
}
.v2-tasks .v2t-ghost-cell {
  display: block;
  min-height: var(--v2-space-6);
  padding: var(--v2-space-2);
  background: var(--g-solid-2);
}
.v2-tasks .v2t-ghost-cellnum { width: var(--v2-space-3); border-radius: var(--g-r-xs); }
.v2-tasks .v2t-ghosts.is-timeline { padding: var(--v2-space-2) 0; }
.v2-tasks .v2t-ghost-tlrow {
  display: flex; align-items: center; gap: var(--v2-space-3);
  min-height: var(--v2-row-h);
  padding: 0 var(--v2-space-3);
}
.v2-tasks .v2t-ghost-tlrow + .v2t-ghost-tlrow { box-shadow: inset 0 1px 0 var(--g-hairline); }
.v2-tasks .v2t-ghost-tllbl { flex: 0 0 auto; width: var(--v2-space-7); border-radius: var(--g-r-xs); }
.v2-tasks .v2t-ghost-tltrack { flex: 1 1 auto; min-width: 0; }
.v2-tasks .v2t-ghost-tlbar { height: var(--v2-space-3); border-radius: var(--g-r-xs); }

/* SIM-11: static, in flow, first. Nothing renders behind the heading any more. */
.v2-tasks .v2t-empty-msg {
  position: static;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--v2-space-2);
  padding: var(--v2-space-4);
  text-align: center;
}
/* SIM-11 — the ghost block is the "shape of the view" affordance, and it earns that on a
   wide screen. On a phone it filled the whole first screen with grey bars under a
   short message, which is exactly what a stuck loading skeleton looks like. Phones get
   the message alone; the shape stays where there is room for it to mean something. */
@media (max-width: 720px) {
  .v2-tasks .v2t-empty .v2t-ghosts { display: none; }
  .v2-tasks .v2t-empty { padding-top: var(--v2-space-4); }
}
.v2-tasks .v2t-empty-msg h3 {
  margin: 0;
  color: var(--v2-text);
  font-size: var(--v2-fs-md);
  font-weight: var(--v2-fw-semi);
  letter-spacing: var(--v2-tr-md);
}
.v2-tasks .v2t-empty-msg p {
  margin: 0;
  max-width: var(--v2-read-col);
  color: var(--v2-text-3);
  font-size: var(--v2-fs-small);
  line-height: var(--v2-lh-small);
}
.v2-tasks .v2t-undo { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--v2-space-1); }
.v2-tasks .v2t-undo-b {
  display: inline-flex; align-items: center; gap: var(--v2-space-1);
  height: var(--v2-ctl-sm); padding: 0 var(--v2-space-2);
  border: 0;
  border-radius: var(--g-r-pill);
  background-color: var(--g-fill-2);
  box-shadow: inset 0 0 0 1px var(--g-hairline);
  color: var(--g-text-2);
  font: inherit;
  font-size: var(--v2-fs-micro);
  font-weight: var(--v2-fw-medium);
  cursor: pointer;
  transition: background-color var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2t-undo-b svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2-tasks .v2t-undo-b:hover { background-color: var(--g-fill-hover); color: var(--g-text); }
.v2-tasks .v2t-undo-b:focus-visible { outline: none; box-shadow: var(--g-focus-ring); }
/* A narrowing with no way out: named, never dressed as a control. No border, no
   hover, no pointer — so it cannot be mistaken for a button that does nothing. */
.v2-tasks .v2t-undo-s {
  display: inline-flex; align-items: center;
  height: var(--v2-ctl-sm); padding: 0 var(--v2-space-2);
  border-radius: var(--g-r-pill);
  background: var(--g-fill-nested);
  color: var(--g-text-3);
  font-size: var(--v2-fs-micro);
  font-weight: var(--v2-fw-medium);
}

/* ============================================================================
   11 · HEADER RAIL (#mainhead)
   ============================================================================ */
.v2t-head {
  display: flex;
  flex-direction: column;
  gap: var(--v2-space-2);
  width: 100%;
  min-width: 0;
  padding-bottom: var(--v2-space-2);
  color: var(--v2-text);
  font-family: var(--v2-font);
  font-size: var(--v2-fs-body);
  font-feature-settings: var(--v2-font-features);
}
.v2t-head .v2t-hrow { display: flex; align-items: center; gap: var(--v2-space-2); min-width: 0; }
.v2t-head .v2t-hrow-1 { flex-wrap: wrap; }
.v2t-head .v2t-hgap { flex: 1 1 auto; }

.v2t-head .v2t-hburger {
  display: none;
  align-items: center; justify-content: center;
  width: var(--v2-ctl-h); height: var(--v2-ctl-h);
  border: 0; border-radius: var(--g-r-ctl);
  background: transparent; color: var(--v2-text-2);
  cursor: pointer;
  transition: background-color var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease);
}
.v2t-head .v2t-hburger svg { width: var(--v2-icon-lg); height: var(--v2-icon-lg); }
.v2t-head .v2t-hburger:hover { background: var(--g-fill-hover); color: var(--g-text); }

.v2t-head .v2t-hspace,
.v2t-head .v2t-hsep { color: var(--v2-text-4); font-size: var(--v2-fs-small); }
.v2t-head .v2t-htitle {
  color: var(--v2-text);
  font-size: var(--v2-fs-lg);
  font-weight: var(--v2-fw-bold);
  letter-spacing: var(--v2-tr-lg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.v2t-head .v2t-htitle.is-editable { cursor: text; border-radius: var(--v2-r-4); transition: color var(--v2-dur-1) var(--v2-ease); }
.v2t-head .v2t-htitle.is-editable:hover { color: var(--v2-text-2); }
.v2t-head .v2t-hcount {
  color: var(--v2-text-3);
  font-size: var(--v2-fs-micro);
  letter-spacing: var(--v2-tr-micro);
  font-weight: var(--v2-fw-medium);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.v2t-head .v2t-hbtn { flex: 0 0 auto; white-space: nowrap; }
.v2t-head .v2t-hbtn--ic { padding: 0 var(--v2-space-2); }
.v2t-head .v2t-hbtn-l { display: none; }
@media (max-width: 520px) {
  .v2t-head [data-act="print-tasks-menu"] {
    min-width: var(--v2-ctl-touch, 44px);
    min-height: var(--v2-ctl-touch, 44px);
  }
}

.v2t-head .v2t-search {
  display: inline-flex; align-items: center; gap: var(--v2-space-1);
  height: var(--v2-ctl-h);
  min-width: 0; flex: 1 1 var(--v2-modal-w-sm); max-width: var(--v2-modal-w-sm);
  padding: 0 var(--v2-space-2);
  border-radius: var(--g-r-ctl);
  background-color: var(--g-fill-sunken);
  box-shadow: inset 0 0 0 1px var(--g-hairline), inset 0 1px 2px rgba(0,0,0,0.06);
  transition: box-shadow var(--v2-dur-1) var(--v2-ease), background-color var(--v2-dur-1) var(--v2-ease);
}
.v2t-head .v2t-search:focus-within { background-color: var(--g-fill-nested); box-shadow: inset 0 0 0 1px var(--g-accent), var(--g-focus-ring); }
.v2t-head .v2t-search-ic { display: inline-flex; color: var(--g-text-3); }
.v2t-head .v2t-search-ic svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2t-head .v2t-search-inp {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: transparent; outline: none;
  color: var(--g-text);
  font-family: var(--v2-font);
  font-size: var(--v2-fs-body);
  letter-spacing: var(--v2-tr-body);
}
.v2t-head .v2t-search-inp::placeholder { color: var(--g-placeholder); }
.v2t-head .v2t-search-x {
  display: inline-flex; align-items: center;
  border: 0; padding: 0; background: none;
  color: var(--v2-text-3); cursor: pointer;
  transition: color var(--v2-dur-1) var(--v2-ease);
}
/* V1 puts `hidden` AND an inline display on this button, and the inline style
   beats the UA sheet — so on V1 the X shows with an empty box. Here the attribute
   wins because the display lives in the stylesheet. */
.v2t-head .v2t-search-x[hidden] { display: none; }
.v2t-head .v2t-search-x svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2t-head .v2t-search-x:hover { color: var(--v2-text); }

.v2t-head .v2t-quick { display: inline-flex; align-items: center; gap: var(--v2-space-1); flex: 0 0 auto; }
.v2t-head .v2t-qchip {
  display: inline-flex; align-items: center; gap: var(--v2-space-1);
  height: var(--v2-ctl-h); padding: 0 var(--v2-space-2);
  border: 0; border-radius: var(--g-r-ctl);
  background: transparent;
  color: var(--v2-text-2);
  font: inherit;
  font-size: var(--v2-fs-small);
  font-weight: var(--v2-fw-medium);
  white-space: nowrap; cursor: pointer;
  transition: background-color var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease);
}
.v2t-head .v2t-qchip svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2t-head .v2t-qchip:hover { background: var(--g-fill-hover); color: var(--g-text); }
.v2t-head .v2t-qchip.is-on { background: var(--g-fill-nested); color: var(--g-text); box-shadow: inset 0 0 0 1px var(--g-hairline); }
.v2t-head .v2t-qn {
  display: inline-grid; place-items: center;
  min-width: var(--v2-icon-md); height: var(--v2-icon-md);
  padding: 0 var(--v2-space-0);
  border-radius: var(--v2-r-pill);
  background: var(--g-fill-nested);
  color: var(--g-text-3);
  font-size: var(--v2-fs-micro);
  font-weight: var(--v2-fw-semi);
  font-variant-numeric: tabular-nums;
}
.v2t-head .v2t-qn.is-warn { color: var(--v2-accent); }

.v2t-head .v2t-gb { display: inline-flex; align-items: center; gap: var(--v2-space-1); color: var(--v2-text-3); flex: 0 0 auto; }
.v2t-head .v2t-gb > svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
/* uiSelect's own V1 chrome, re-dressed. The registry + the hidden input stay. */
.v2t-head .uiselect { position: relative; min-width: 0; }
.v2t-head .uis-trigger {
  display: inline-flex; align-items: center; gap: var(--v2-space-1);
  height: var(--v2-ctl-h); padding: 0 var(--v2-space-2);
  border: 0; border-radius: var(--g-r-ctl);
  background: transparent;
  color: var(--v2-text-2);
  font: inherit;
  font-size: var(--v2-fs-small);
  font-weight: var(--v2-fw-medium);
  white-space: nowrap; cursor: pointer;
  transition: background-color var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease);
}
.v2t-head .uis-trigger:hover { background: var(--g-fill-hover); color: var(--g-text); }
.v2t-head .uis-chev { width: var(--v2-icon-sm); height: var(--v2-icon-sm); color: var(--v2-text-4); }
.v2t-head .uis-dot { width: var(--v2-space-1); height: var(--v2-space-1); border-radius: var(--v2-r-pill); }

.v2t-head .v2t-segs {
  display: flex; align-items: center; gap: var(--v2-space-0);
  min-width: 0; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.v2t-head .v2t-segs::-webkit-scrollbar { display: none; }
.v2t-head .v2t-segsep {
  flex: 0 0 auto;
  width: var(--v2-hairline-w); height: var(--v2-icon-md);
  margin: 0 var(--v2-space-1);
  background: var(--v2-hairline-strong);
}
.v2t-head .v2t-seg {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--v2-space-1);
  flex: 0 0 auto;
  height: var(--v2-ctl-h); padding: 0 var(--v2-space-2);
  border: 0; border-radius: var(--g-r-ctl);
  background: transparent;
  color: var(--v2-text-3);
  font: inherit;
  font-size: var(--v2-fs-small);
  font-weight: var(--v2-fw-medium);
  letter-spacing: var(--v2-tr-small);
  white-space: nowrap; cursor: pointer;
  transition: background-color var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease);
}
.v2t-head .v2t-seg svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2t-head .v2t-seg:hover { background: var(--g-fill-hover); color: var(--v2-text-2); }
.v2t-head .v2t-seg.is-on { color: var(--v2-text); font-weight: var(--v2-fw-semi); }
.v2t-head .v2t-seg.is-on::after {
  content: '';
  position: absolute; left: var(--v2-space-2); right: var(--v2-space-2); bottom: 0;
  height: var(--v2-ring-w);
  border-radius: var(--v2-r-pill);
  background: var(--v2-text);
}
.v2t-head .v2t-seg:focus-visible { outline: none; box-shadow: var(--g-focus-ring); }
.v2t-head .v2t-seg-dot { width: var(--v2-space-1); height: var(--v2-space-1); border-radius: var(--v2-r-pill); flex: 0 0 auto; }
.v2t-head .v2t-seg-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.v2t-head .v2t-seg-n {
  color: var(--v2-text-4);
  font-size: var(--v2-fs-micro);
  font-weight: var(--v2-fw-medium);
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--v2-font-features-num);
}
.v2t-head .v2t-seg.is-on .v2t-seg-n { color: var(--v2-text-3); }
.v2t-head .v2t-seg-kb {
  display: none; place-items: center;
  width: var(--v2-icon-md); height: var(--v2-icon-md);
  border-radius: var(--v2-r-4);
  color: var(--v2-text-4);
  transition: color var(--v2-dur-1) var(--v2-ease);
}
.v2t-head .v2t-seg:hover .v2t-seg-kb { display: inline-grid; }
.v2t-head .v2t-seg-kb:hover { color: var(--v2-text); }
.v2t-head .v2t-seg--add { color: var(--v2-text-4); }
.v2t-head .v2t-seg--add:hover { color: var(--v2-text-2); }

.v2t-head .v2t-hrow-3 { flex-wrap: wrap; gap: var(--v2-space-1); }
.v2t-head .v2t-fchip {
  display: inline-flex; align-items: center; gap: var(--v2-space-1);
  height: var(--v2-ctl-sm); padding: 0 var(--v2-space-1) 0 var(--v2-space-2);
  border-radius: var(--v2-r-pill);
  background: var(--g-fill-nested);
  box-shadow: inset 0 0 0 1px var(--g-hairline);
  color: var(--g-text-2);
  font-size: var(--v2-fs-micro);
  letter-spacing: var(--v2-tr-micro);
  font-weight: var(--v2-fw-medium);
  white-space: nowrap;
}
.v2t-head .v2t-fchip-k { color: var(--g-text-3); }
.v2t-head .v2t-fchip-eq { color: var(--g-text-4); }
.v2t-head .v2t-fchip-v { color: var(--g-text); font-weight: var(--v2-fw-semi); }
.v2t-head .v2t-fchip-x {
  display: inline-grid; place-items: center;
  width: var(--v2-icon-md); height: var(--v2-icon-md);
  border-radius: var(--v2-r-pill);
  color: var(--g-text-4);
  cursor: pointer;
  transition: color var(--v2-dur-1) var(--v2-ease), background-color var(--v2-dur-1) var(--v2-ease);
}
.v2t-head .v2t-fchip-x svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2t-head .v2t-fchip-x:hover { color: var(--g-text); background: var(--g-hairline-strong); }

/* The one needle. */
.v2t-head .v2-btn-needle svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }

/* ============================================================================
   12 · TABLE LAYOUT (>= 521px) — the phone card list becomes a real instrument.
   ============================================================================ */
@media (min-width: 521px) {
  .v2-tasks .v2t-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }

  /* THE WIDTH MODEL — and why it is what it is.

     Every group is its own <table> (V1's shape: the group box owns the rows, the
     add-row and the footer), so the columns of group A and group B MUST land on
     the same x or the page stops reading as one instrument.

     `width: max-content` cannot do that: a fixed-layout table sized to
     max-content still lets a column grow past its specified width to fit
     nowrap content, so a group holding a long task title came out 194px wider
     than an empty group. Measured, not guessed.

     So: ONE data-column width token for every column except the name, a
     `min-width` computed in CSS from a plain COLUMN COUNT the module emits
     (`--v2t-nc` — a count, never a measurement, so there is nothing to drift),
     and `width: 100%` above that floor. Below the floor .v2t-scroll scrolls
     sideways; above it the surplus distributes identically in every table
     because every table has the same colgroup and the same container width.

     The documented cost: V1's per-column width tuning (TASK_BUILTIN_COLS' `w`)
     is not reproduced — Priority gets the same track as Client. Alignment across
     groups is worth more than 40px on one column. */
  .v2-tasks .v2t-table {
    display: table;
    width: 100%;
    min-width: calc(var(--v2-space-5) + var(--v2t-namew) + var(--v2-space-6)
                    + (var(--v2t-nc, 6) * var(--v2t-colw)));
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    font-variant-numeric: tabular-nums;
  }
  .v2-tasks .v2t-table thead { display: table-header-group; }
  .v2-tasks .v2t-table colgroup { display: table-column-group; }
  .v2-tasks .v2t-table tbody { display: table-row-group; }
  .v2-tasks .v2t-table tr { display: table-row; }
  .v2-tasks .v2t-table td,
  .v2-tasks .v2t-table th { display: table-cell; }

  /* Column widths live here, not in the markup, so a hidden column is simply not
     emitted and the count in --v2t-nc drops with it. TWO tracks only — see the
     width-model note above. The Task column is the wide one: it is what the eye
     goes to first, and being the widest track keeps it the biggest share of any
     surplus as the window grows. */
  .v2-tasks .v2t-cw-lead { width: var(--v2-space-5); }
  .v2-tasks .v2t-cw-name { width: var(--v2t-namew); }
  .v2-tasks .v2t-cw-b,
  .v2-tasks .v2t-cw-cf { width: var(--v2t-colw); }
  .v2-tasks .v2t-cw-kb { width: var(--v2-space-6); }

  /* Engraved header row — a SOLID opaque ground, deliberately not glass: it is
     `position: sticky` inside the already-blurred .v2t-body (§3), and a sticky
     bar over scrolling rows must never be see-through on iOS (glass.css iOS
     trap A) — same reasoning as glass.css's own .g-table th. */
  .v2-tasks .v2t-th {
    position: relative;
    height: var(--v2-row-h-head);
    padding: 0 var(--v2-row-pad-x);
    text-align: left;
    vertical-align: middle;
    background-color: var(--g-solid-1);
    box-shadow: inset 0 -1px 0 var(--g-hairline);
    color: var(--g-text-3);
    font-size: var(--v2-fs-micro);
    line-height: var(--v2-lh-micro);
    letter-spacing: var(--v2-tr-micro);
    font-weight: var(--v2-fw-medium);
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
  }
  .v2-tasks .v2t-th.th-sortable { cursor: pointer; transition: color var(--v2-dur-1) var(--v2-ease); }
  .v2-tasks .v2t-th.th-sortable:hover { color: var(--g-text); }
  .v2-tasks .v2t-th.is-sorted { color: var(--g-text); }
  .v2-tasks .v2t-th-l { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
  /* One chevron, rotated. Direction is a transform, never a different glyph. */
  .v2-tasks .v2t-sortarr {
    display: inline-grid; place-items: center;
    width: var(--v2-icon-sm); height: var(--v2-icon-sm);
    margin-left: var(--v2-space-0);
    color: var(--v2-text-2);
    vertical-align: middle;
    transform: rotate(0deg);
    transition: transform var(--v2-dur-1) var(--v2-ease);
  }
  .v2-tasks .v2t-sortarr.is-asc { transform: rotate(180deg); }
  .v2-tasks .v2t-sortarr svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
  .v2-tasks .v2t-th-lead { padding: 0; }
  .v2-tasks .v2t-th-add { padding: 0; text-align: center; }
  .v2-tasks .v2t-th-kb {
    display: none; place-items: center;
    width: var(--v2-icon-md); height: var(--v2-icon-md);
    margin-left: var(--v2-space-0);
    border-radius: var(--g-r-xs);
    color: var(--g-text-4);
    vertical-align: middle;
    transition: color var(--v2-dur-1) var(--v2-ease);
  }
  .v2-tasks .v2t-th:hover .v2t-th-kb { display: inline-grid; }
  .v2-tasks .v2t-th-kb:hover { color: var(--g-text); }
  .v2-tasks .v2t-addfield {
    display: inline-grid; place-items: center;
    width: var(--v2-ctl-sm); height: var(--v2-ctl-sm);
    border: 0; border-radius: var(--g-r-ctl);
    background: transparent; color: var(--g-text-4);
    cursor: pointer;
    transition: color var(--v2-dur-1) var(--v2-ease), background-color var(--v2-dur-1) var(--v2-ease);
  }
  .v2-tasks .v2t-addfield svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
  .v2-tasks .v2t-addfield:hover { color: var(--g-text); background: var(--g-fill-hover); }

  /* Rows: hover is a LIGHTNESS STEP, never a shadow, never a tint. Opaque,
     no blur — the MANY-repeated surface, see the glass-pass note up top. */
  .v2-tasks .v2t-row { padding: 0; }
  .v2-tasks .v2t-row + .v2t-row { box-shadow: none; }
  .v2-tasks .v2t-row:hover { background: var(--g-fill-hover); }
  .v2-tasks .v2t-row.is-sel { background: var(--g-fill-sel); }
  .v2-tasks .v2t-row:focus-visible { outline: none; box-shadow: var(--g-focus-ring); }

  .v2-tasks .v2t-td {
    height: var(--v2-row-h);
    padding: 0 var(--v2-row-pad-x);
    vertical-align: middle;
    box-shadow: inset 0 1px 0 var(--g-hairline);
    overflow: hidden;
  }
  .v2-tasks .v2t-table tbody tr:first-child .v2t-td { box-shadow: none; }
  .v2-tasks .v2t-table td[data-label]:not(.v2t-namecell):not(.v2t-lead)::before { content: none; }
  .v2-tasks .v2t-table td[data-label]:not(.v2t-namecell):not(.v2t-lead) { display: table-cell; }
  /* back on above the phone breakpoint (same specificity as the hide rule, later in the file) */
  .v2-tasks .v2t-table td[data-label].v2t-c-cf:not(.v2t-namecell):not(.v2t-lead) { display: table-cell; }

  .v2-tasks .v2t-lead { position: static; width: auto; padding: 0; text-align: center; }
  .v2-tasks .v2t-grip { position: relative; inset: auto; display: inline-grid; place-items: center; width: var(--v2-space-4); height: var(--v2-space-4); }

  .v2-tasks .v2t-namecell { padding-left: calc(var(--v2-row-pad-x) + (var(--d, 0) * var(--v2t-indent))); }
  /* One line, always. The title yields first (it truncates); the trailing
     readouts never wrap onto a second line and never change the row height —
     a row that grows when you add a tag is not an instrument. */
  .v2-tasks .v2t-nameline { flex-wrap: nowrap; }
  /* THE TITLE WINS. It grows into whatever is free and is guaranteed a floor, so
     the thing the eye reads first is never squeezed to an ellipsis by a couple of
     tags. The tag cluster is what gives way — clipped as a GROUP at the cell
     edge, so the chips that survive keep their labels instead of every chip
     losing its text. */
  .v2-tasks .v2t-name { flex: 1 1 auto; min-width: calc(var(--v2-space-7) * 4); }
  .v2-tasks .v2t-tags { flex: 0 1 auto; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
  .v2-tasks .v2t-subn,
  .v2-tasks .v2t-prog,
  .v2-tasks .v2t-est,
  .v2-tasks .v2t-people,
  .v2-tasks .v2t-meta { flex: 0 0 auto; }
  .v2-tasks .v2t-row.is-child .v2t-namecell::before,
  .v2-tasks .v2t-row.is-child .v2t-namecell::after {
    left: calc(var(--v2-row-pad-x) + (var(--d, 1) * var(--v2t-indent)) - var(--v2t-rail));
  }

  .v2-tasks .v2t-kebabcell { position: static; padding: 0; text-align: center; }

  /* Row density follows the global density mode: --v2-row-h changes, type never
     does (DESIGN_SYSTEM §Space). Nothing here hard-codes a height. */
  .v2-tasks .v2t-addrow { padding-left: var(--v2-row-pad-x); }

  .v2t-head .v2t-hbtn-l { display: inline; }
  .v2t-head .v2t-hbtn--ic .v2t-hbtn-l { display: none; }
}

/* ============================================================================
   13 · TABLE SHADE — State.tableShade, the same five options V1 offers, redrawn
   with V2 surfaces. `''` (default) adds no class and no rule.
   ============================================================================ */
@media (min-width: 521px) {
  .v2-tasks.v2t-shade-zebra .v2t-table tbody tr:nth-child(even) { background: var(--g-fill-hover); }
  .v2-tasks.v2t-shade-lines .v2t-td { box-shadow: inset 0 1px 0 var(--g-hairline-strong); }
  .v2-tasks.v2t-shade-tint .v2t-body { background-color: var(--g-fill-nested); }
  .v2-tasks.v2t-shade-tint .v2t-th { background-color: var(--g-solid-2); }
  .v2-tasks.v2t-shade-contrast .v2t-th { background-color: var(--g-solid-2); color: var(--g-text-2); }
  .v2-tasks.v2t-shade-contrast .v2t-table tbody tr:nth-child(even) { background: var(--g-fill-hover); }
  .v2-tasks.v2t-shade-contrast .v2t-td { box-shadow: inset 0 1px 0 var(--g-hairline-strong); }
}

/* ============================================================================
   13b · BOARD (kanban) — P2.

   ONE INSTRUMENT, TWO LAYOUTS. The board reuses the list's vocabulary rather
   than inventing a second one: the same engraved bar for a column head as for a
   group head, the same `.v2t-ctr` counters, the same `.v2t-optdot` + label for
   an option, the same `.v2t-pip` for status, the same `.trow-sel` checkbox, the
   same `.v2t-tag` chips. A card is a ROW folded onto three lines — nothing on it
   is a new idea, which is what stops the two views feeling like two products.

   THE CARD'S CHASSIS IS ONE HAIRLINE (`var(--v2-ring-inset)`) and nothing else.
   No card shadow, no border-plus-shadow, no elevation ladder inside a column —
   twenty cards each casting a shadow is a gravel path, not an instrument. Hover
   is a LIGHTNESS STEP (--v2-row-hover), never a shadow, exactly as the list row.

   SCROLLING. The column strip scrolls sideways and NOTHING ELSE does:
   `overscroll-behavior-x: contain` stops the swipe chaining into the page (and
   into the browser's back-gesture on iOS), and the strip is the only element
   allowed `overflow-x`. On a phone the columns SNAP so a swipe lands on a column
   edge rather than half a card. Columns do NOT scroll vertically on their own —
   V1's don't either, and a nested scroller fights the drag auto-scroller.

   TOUCH. Cards and column heads are `user-select: none` (the v654 lesson: a long
   press to lift a card must not paint a text selection first), and the drag
   handles carry `touch-action: none` so the browser hands the gesture to the
   pointer engine instead of scrolling.

   THE THREE DRAG STATE CLASSES ARE THE ENGINE'S CONTRACT, NOT OURS:
   wireBoardDnD writes `dragging` on the lifted card and `dragover` on the hovered
   column body; wireBoardReorder writes `bcard-dropbefore` on the card the drop
   would land in front of. index.html styles all three as `.bcard.*` /
   `.bcol-body.*`, which a V2 card and a V2 column body never match — so without
   the block at the bottom of this section a V2 board drag would paint NOTHING
   while still committing a status write. That exact omission was P1's blocker on
   the list; the harness now extracts the class list from app.js's own source and
   fails if any of them is unstyled.
   ============================================================================ */
.v2-tasks.v2b { --v2b-colw: calc(var(--v2-space-7) * 6); }

.v2-tasks .v2b-cols {
  display: flex;
  align-items: flex-start;
  gap: var(--v2-space-3);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  /* `overflow-y` is deliberately NOT declared. Setting one axis to auto forces
     the other's USED value to auto too (CSS Overflow §3), so `overflow-y: visible`
     here would be a line that lies — it would compute to auto regardless. The
     strip has no height constraint, so nothing ever overflows vertically and no
     second scrollbar appears; V1's `.board` behaves identically. */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--v2-space-2);
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--v2-space-1);
}
.v2-tasks .v2b-cols::-webkit-scrollbar { height: var(--v2-space-1); }
.v2-tasks .v2b-cols::-webkit-scrollbar-thumb { background: var(--v2-scroll-thumb); border-radius: var(--v2-r-pill); }
.v2-tasks .v2b-cols::-webkit-scrollbar-thumb:hover { background: var(--v2-scroll-thumb-hover); }

.v2-tasks .v2b-col {
  display: flex;
  flex-direction: column;
  gap: var(--v2-space-1);
  flex: 0 0 var(--v2b-colw);
  max-width: var(--v2b-colw);
  min-width: 0;
  scroll-snap-align: start;
}

/* --- column head: the same engraved bar the list's group head wears --------- */
.v2-tasks .v2b-colhd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--v2-space-2);
  min-height: var(--v2-row-h-head);
  padding: var(--v2-space-1) var(--v2-space-2);
  /* W6-v2css 2026-08-04: surface comes from .glass-1 in the markup (v2/tasks.js).
     Radius stays --g-r-ctl (same call as .v2t-grphd). The old shadow stack mixed
     --g-e1 in — the primitive's edge-1/spec-1/shadow-1 stack replaces it. */
  border-radius: var(--g-r-ctl);
  user-select: none;
  -webkit-user-select: none;
}
.v2-tasks .v2b-coldot {
  width: var(--v2-space-2); height: var(--v2-space-2);
  border-radius: var(--v2-r-pill);
  background: var(--g-text-3);
  flex: 0 0 auto;
}
.v2-tasks .v2b-coll {
  flex: 1 1 auto; min-width: 0;
  color: var(--g-text);
  font-size: var(--v2-fs-body);
  font-weight: var(--v2-fw-semi);
  letter-spacing: var(--v2-tr-body);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v2-tasks .v2b-coln { flex: 0 0 auto; }
.v2-tasks .v2b-orph { display: inline-flex; align-items: center; color: var(--v2-amber); flex: 0 0 auto; }
.v2-tasks .v2b-orph svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
/* The counters take the whole second line — in a 288px column they would
   otherwise push the title into an ellipsis, and the title is what you scan. */
.v2-tasks .v2b-colmeta {
  flex: 1 0 100%;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--v2-space-2);
  min-width: 0;
}
.v2-tasks .v2b-col.is-empty .v2b-coll { color: var(--g-text-3); font-weight: var(--v2-fw-medium); }

/* --- column body: the drop target ------------------------------------------ */
.v2-tasks .v2b-colbody {
  display: flex;
  flex-direction: column;
  gap: var(--v2-space-2);
  min-height: calc(var(--v2-space-7) * 2);
  padding: var(--v2-space-2);
  /* W6-v2css 2026-08-04: surface comes from .glass-2 in the markup (v2/tasks.js;
     data-status drop-target contract untouched). Note: the bespoke stack used
     --g-shadow-1; the primitive carries --g-shadow-2 — a one-step elevation gain
     accepted by the work order. Drag/drop state paint below survives. */
  transition: background-color var(--v2-dur-2) var(--v2-ease), box-shadow var(--v2-dur-2) var(--v2-ease);
}
.v2-tasks .v2b-colempty {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--v2-row-h);
  border: var(--v2-hairline-w) dashed var(--g-hairline-strong);
  border-radius: var(--g-r-md);
  color: var(--g-text-4);
  font-size: var(--v2-fs-micro);
  letter-spacing: var(--v2-tr-micro);
  font-weight: var(--v2-fw-medium);
  user-select: none;
  -webkit-user-select: none;
}
.v2-tasks .v2b-add {
  display: flex; align-items: center; gap: var(--v2-space-1);
  min-height: var(--v2-ctl-h);
  padding: 0 var(--v2-space-2);
  border-radius: var(--g-r-md);
  color: var(--g-text-3);
  font-size: var(--v2-fs-small);
  font-weight: var(--v2-fw-medium);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2b-add svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2-tasks .v2b-add:hover { background-color: var(--g-fill-hover); color: var(--g-text); }
.v2-tasks .v2b-add:focus-visible { outline: none; box-shadow: var(--g-focus-ring); }

/* --- the card ---------------------------------------------------------------
   MANY per column (can run into dozens across a board), so it stays OPAQUE —
   the g-solid-2 recipe, zero backdrop-filter — while still getting the bubbly
   glass radius/edge/specular/shadow so it reads as "beautifully held" sitting
   inside the already-blurred column body. */
.v2-tasks .v2b-card {
  display: flex;
  flex-direction: column;
  gap: var(--v2-space-1);
  padding: var(--v2-space-2);
  /* W6-v2css 2026-08-04: surface comes from .g-solid-2 in the markup (v2/tasks.js)
     — solid-for-repeats, this card can run into dozens per board. Bespoke stack
     used --g-shadow-1; primitive carries --g-shadow-2 (accepted). Hover lift,
     .is-sel and .is-done state paint below survive at higher specificity. */
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color var(--v2-dur-1) var(--v2-ease), box-shadow var(--v2-dur-1) var(--v2-ease), transform var(--v2-dur-1) var(--v2-ease), opacity var(--v2-dur-1) var(--v2-ease);
}
@media (hover: hover) and (pointer: fine) {
  .v2-tasks .v2b-card:hover { background-color: var(--g-fill-hover); transform: translate3d(0, -1px, 0); box-shadow: var(--g-edge-2), var(--g-spec-2), var(--g-shadow-2); }
}
.v2-tasks .v2b-card.is-sel { background-color: var(--g-fill-sel); box-shadow: var(--g-edge-2), var(--g-spec-2), inset 0 0 0 1px var(--g-accent-soft); }
.v2-tasks .v2b-card.is-done .v2b-name { color: var(--g-text-3); text-decoration: line-through; }

.v2-tasks .v2b-top { display: flex; align-items: center; gap: var(--v2-space-1); min-height: var(--v2-ctl-xs); }
.v2-tasks .v2b-top-sp { flex: 1 1 auto; }
.v2-tasks .v2b-grip {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--v2-icon-md); height: var(--v2-icon-md);
  margin-left: calc(var(--v2-space-1) * -1);
  border-radius: var(--v2-r-4);
  color: var(--v2-text-4);
  cursor: grab;
  touch-action: none;
  flex: 0 0 auto;
}
.v2-tasks .v2b-grip:active { cursor: grabbing; }
.v2-tasks .v2b-card .v2b-grip .trow-grip-ic { display: inline-grid; place-items: center; opacity: .55; }
.v2-tasks .v2b-card:hover .v2b-grip .trow-grip-ic { opacity: 1; }
.v2-tasks .v2b-flag { display: inline-flex; align-items: center; flex: 0 0 auto; }
.v2-tasks .v2b-flag svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2-tasks .v2b-kb {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--v2-icon-md); height: var(--v2-icon-md);
  border-radius: var(--v2-r-4);
  color: var(--v2-text-4);
  cursor: pointer;
  opacity: 0;
  flex: 0 0 auto;
  transition: opacity var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease), background-color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2b-card:hover .v2b-kb,
.v2-tasks .v2b-card.is-sel .v2b-kb { opacity: 1; }
.v2-tasks .v2b-kb:focus-visible { outline: none; opacity: 1; box-shadow: var(--g-focus-ring); }
.v2-tasks .v2b-kb:hover { background: var(--g-fill-hover); color: var(--g-text-2); }

/* the JS-hook checkbox, re-dressed for a card (§7 scopes its rules to .v2t-row) */
.v2-tasks .v2b-card .trow-sel {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: var(--v2-icon-md); height: var(--v2-icon-md);
  padding: 0;
  border: var(--v2-hairline-w) solid var(--g-hairline-strong);
  border-radius: var(--g-r-xs);
  background: transparent;
  color: transparent;
  cursor: pointer;
  opacity: 0;
  flex: 0 0 auto;
  transition: background-color var(--v2-dur-1) var(--v2-ease), border-color var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease), opacity var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2b-card:hover .trow-sel,
.v2-tasks .v2b-card.is-sel .trow-sel,
.v2-tasks .v2b-card .trow-sel.on,
.v2-tasks .v2b-card .trow-sel:focus-visible { opacity: 1; }
.v2-tasks .v2b-card .trow-sel svg { width: var(--v2-space-2); height: var(--v2-space-2); }
/* a checked box fills with INK, never the needle (DESIGN_SYSTEM law 3) */
.v2-tasks .v2b-card .trow-sel.on {
  background: var(--v2-text);
  border-color: var(--v2-text);
  color: var(--v2-panel);
}

/* title — the ONE loud thing on the card */
.v2-tasks .v2b-titleline { display: flex; align-items: flex-start; gap: var(--v2-space-2); min-width: 0; }
.v2-tasks .v2b-card .v2b-pip { margin-top: var(--v2-space-1); }
.v2-tasks .v2b-name {
  /* A native task-open button, separate from the card's status/menu controls. */
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: inherit;
  text-align: start;
  cursor: pointer;
  border-radius: var(--v2-r-4);
  min-width: 0;
  color: var(--g-text);
  font-size: var(--v2-fs-body);
  line-height: var(--v2-lh-body);
  letter-spacing: var(--v2-tr-body);
  font-weight: var(--v2-fw-semi);
  overflow-wrap: anywhere;
}

.v2-tasks .v2b-name:focus-visible { outline: none; box-shadow: var(--g-focus-ring); }

/* the subordinate line — client · department · due, all quiet, all one line */
.v2-tasks .v2b-sub-l {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--v2-space-1) var(--v2-space-2);
  min-width: 0;
  color: var(--g-text-3);
  font-size: var(--v2-fs-micro);
  line-height: var(--v2-lh-micro);
  letter-spacing: var(--v2-tr-micro);
}
.v2-tasks .v2b-cli { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-tasks .v2b-dept { display: inline-flex; align-items: center; gap: var(--v2-space-1); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-tasks .v2b-due { display: inline-flex; align-items: center; white-space: nowrap; font-variant-numeric: tabular-nums; font-feature-settings: var(--v2-font-features-num); }
.v2-tasks .v2b-due.is-late { color: var(--v2-accent); font-weight: var(--v2-fw-semi); }
.v2-tasks .v2b-due.is-soon { color: var(--v2-text-2); font-weight: var(--v2-fw-medium); }

.v2-tasks .v2b-card .v2t-tags { display: flex; flex-wrap: wrap; gap: var(--v2-space-1); }

/* subtask count — the card's WIP readout */
.v2-tasks .v2b-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v2-space-1); }
.v2-tasks .v2b-subchip {
  display: inline-flex; align-items: center; gap: var(--v2-space-0);
  height: var(--v2-ctl-xs); padding: 0 var(--v2-space-1);
  border-radius: var(--v2-r-4);
  background: var(--g-fill-nested);
  color: var(--g-text-3);
  font-size: var(--v2-fs-micro);
  line-height: var(--v2-lh-micro);
  font-weight: var(--v2-fw-medium);
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--v2-font-features-num);
  cursor: pointer;
  transition: background-color var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2b-subchip:hover { background: var(--g-fill-hover); color: var(--g-text); }
.v2-tasks .v2b-subchip:focus-visible { outline: none; box-shadow: var(--g-focus-ring); }
.v2-tasks .v2b-subchip svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2-tasks .v2b-subchip.is-done { color: var(--v2-green); }
.v2-tasks .v2b-subcaret {
  display: inline-flex; align-items: center;
  transform: rotate(-90deg);
  transition: transform var(--v2-dur-2) var(--v2-ease);
}
.v2-tasks .v2b-subcaret.is-open { transform: rotate(0deg); }

.v2-tasks .v2b-subs {
  display: flex; flex-direction: column;
  margin-top: var(--v2-space-1);
  padding-left: var(--v2-space-2);
  box-shadow: inset var(--v2-hairline-w) 0 0 var(--v2-hairline);
}
.v2-tasks .v2b-sub {
  display: flex; align-items: center; gap: var(--v2-space-2);
  min-height: var(--v2-ctl-sm);
  padding: 0 var(--v2-space-1);
  border-radius: var(--v2-r-4);
  color: var(--v2-text-2);
  font-size: var(--v2-fs-micro);
  line-height: var(--v2-lh-micro);
  cursor: pointer;
  transition: background-color var(--v2-dur-1) var(--v2-ease), color var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .v2b-sub:hover { background: var(--v2-row-hover); color: var(--v2-text); }
.v2-tasks .v2b-sub:focus-visible { outline: none; box-shadow: var(--g-focus-ring); }
.v2-tasks .v2b-sub.is-done .v2b-sub-name { color: var(--v2-text-4); text-decoration: line-through; }
.v2-tasks .v2b-sub-dot { width: var(--v2-space-1); height: var(--v2-space-1); border-radius: var(--v2-r-pill); background: var(--v2-text-4); flex: 0 0 auto; }
.v2-tasks .v2b-sub-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the footer — who, then the counters */
.v2-tasks .v2b-foot { display: flex; align-items: center; gap: var(--v2-space-2); min-width: 0; }
.v2-tasks .v2b-foot-l { display: inline-flex; align-items: center; gap: var(--v2-space-1); min-width: 0; }
.v2-tasks .v2b-foot-r { display: inline-flex; align-items: center; gap: var(--v2-space-1); margin-left: auto; flex: 0 0 auto; }
.v2-tasks .v2b-foot:empty,
.v2-tasks .v2b-foot-l:empty,
.v2-tasks .v2b-foot-r:empty { display: none; }

/* --- DRAG FEEDBACK — the three state classes the BOARD engines write -------- */
/* LIFTED. Compositor-only: opacity + transform + shadow, never a size. */
.v2-tasks .v2b-cols .v2b-card.dragging {
  opacity: .92;
  transform: scale(1.02);
  box-shadow: var(--v2-e3);
  cursor: grabbing;
  position: relative;
  z-index: var(--v2-z-base);
  user-select: none;
}
/* INSERT BEFORE THIS CARD — a rule on the top edge, the same grammar the list's
   row-dropbefore uses, so the two drags read as one gesture. */
.v2-tasks .v2b-cols .v2b-card.bcard-dropbefore { box-shadow: var(--v2-ring-inset), inset 0 2px 0 var(--v2-accent); }
/* DROP INTO THIS COLUMN — ring the body and warm it, the same two-surface
   treatment the list gives .v2t-grp.is-droptarget. */
.v2-tasks .v2b-cols .v2b-colbody.dragover {
  background: var(--v2-accent-softer);
  box-shadow: var(--v2-ring-strong);
}

/* --- phone: one column per swipe ------------------------------------------- */
@media (max-width: 520px) {
  .v2-tasks.v2b { --v2b-colw: min(84vw, calc(var(--v2-space-7) * 6)); }
  .v2-tasks .v2b-cols { scroll-snap-type: x mandatory; gap: var(--v2-space-2); }
  .v2-tasks .v2b-card { padding: var(--v2-space-3) var(--v2-space-2); }
  /* touch targets never hide behind hover on a device that has no hover */
  .v2-tasks .v2b-card .trow-sel,
  .v2-tasks .v2b-card .v2b-kb { opacity: 1; }
  .v2-tasks .v2b-card .v2b-grip { width: var(--v2-ctl-sm); height: var(--v2-ctl-sm); }
  .v2-tasks .v2b-card .v2b-grip .trow-grip-ic { opacity: 1; }
  .v2-tasks .v2b-sub { min-height: var(--v2-ctl-h); }
  .v2-tasks .v2b-add { min-height: var(--v2-ctl-touch); }
}
/* A pointer that cannot hover must not hide a control behind :hover, at any
   width — the iPad in landscape is wider than 520px and still has no cursor. */
@media (hover: none) {
  .v2-tasks .v2b-card .trow-sel,
  .v2-tasks .v2b-card .v2b-kb,
  .v2-tasks .v2b-card .v2b-grip .trow-grip-ic { opacity: 1; }
  /* THE LIST ROW'S TWIN (this ship — the gap p3_harness §5 pinned when the board
     half shipped). The list handle is `opacity: 0` at rest (§7 above) and its only
     reveal was `.v2t-row:hover`, so on a pointer that cannot hover it stayed
     invisible at EVERY width while wireListDnD happily lifted from it — the same
     invisible-but-live trap v670/v671 fixed on the partner and V1 task handles.
     Same specificity (0,3,0) as the rest rule and later in the file, so this wins
     by document order and out-ranks nothing else. `display` is deliberately NOT
     touched: `.v2t-row.is-sel .trow-grip-ic { display: none; }` must keep winning
     so a SELECTED row still swaps its grip for the checkbox instead of showing
     both. Un-hide the ink, change nothing about the swap. */
  .v2-tasks .v2t-row .trow-grip-ic { opacity: 1; }
  /* THE VIEW-TAB KEBAB'S TWIN (views P2 review N1, 2026-07-28): the ⋯ on every view
     tab — including the All tab this ship just granted one — was display:none with a
     `.v2t-seg:hover` reveal as its ONLY path, so on touch it was unreachable at every
     width (V1's row has had an opacity-based hover:none rule since v4679; the V2 rail
     never got the twin). Reveal it dimmed, exactly like V1's. */
  .v2t-head .v2t-seg-kb { display: inline-grid; opacity: .5; }
  /* THE ROW KEBAB + TIMER'S TWIN (Wave 2 sweep): §6 above defines `.v2t-kb` (the
     row's ⋯ menu) and `.ttimer-btn` (the row's start/stop timer) as opacity:0 at
     rest with `.v2t-row:hover` as their ONLY reveal — the exact same trap the grip
     handle had two rules up, just never given its own twin here. Both are LIVE,
     clickable controls (menu + timer toggle), not decoration, so leaving them at
     opacity:0 on a pointer that cannot hover makes them invisible-but-tappable at
     every width, same class of bug as v670/v671 and the grip fix directly above.
     Full reveal, matching `.trow-grip-ic`/`.v2b-kb`'s precedent (not the dimmed .5
     used for the smaller tab-level kebab). */
  .v2-tasks .v2t-row .v2t-kb,
  .v2-tasks .v2t-row .ttimer-btn { opacity: 1; }
}
/* Keyboard path (the partners rail's :focus-visible precedent, v2/partners.css §kebab).
   The kebab is a SPAN inside the tab button — the button is what takes focus — so the
   reveal keys on the focused parent, and the dblclick fallback (app.js) covers activation. */
.v2t-head .v2t-seg:focus-visible .v2t-seg-kb { display: inline-grid; }

/* ============================================================================
   14 · PHONE HEADER + burger (the sidebar toggle only exists below the desk
   breakpoint, matching V1's own .sb-toggle visibility).
   ============================================================================ */
@media (max-width: 900px) {
  .v2t-head .v2t-hburger { display: inline-flex; }
  .v2t-head .v2t-hspace,
  .v2t-head .v2t-hsep { display: none; }
}
@media (max-width: 520px) {
  .v2-tasks { --v2-content-pad: var(--v2-space-3); }
  .v2t-head .v2t-search { flex: 1 1 100%; max-width: none; order: 10; }
  .v2t-head .v2t-quick { order: 11; }
  .v2t-head .v2t-gb { order: 12; }
  .v2-tasks ~ .bulk-bar { left: var(--v2-space-2); right: var(--v2-space-2); transform: none; max-width: none; }
}

/* ============================================================================
   15 · DELEGATED VIEWS (P3) — the V2 chassis around V1's calendar + timeline.

   READ THIS BEFORE CHANGING ANYTHING HERE.

   Scope. Every selector below starts with `.v2-tasks ` and targets a class V1
   emits. With the flag off there is no `.v2-tasks` on the page, so every rule
   here matches nothing — this file is additive by construction and V1's calendar
   and timeline keep their own look byte for byte.

   Specificity. Both V1 modules inject their CSS into <head> at RENDER time
   (_tcalEnsureCss / TaskTimeline._injectCss), i.e. AFTER this stylesheet in
   document order. Order does not decide this: `.v2-tasks .tcal-navbtn` is (0,2,0)
   against their (0,1,0), so the V2 dressing wins on specificity, not on luck.
   Keep every rule here at two classes or more.

   The line. CHROME only — the header bar, its nav buttons, its title, its
   readout. The GRID is V1's: day cells, chips, the undated tray, gantt bars,
   milestones, the axis, and every drag target inside them are deliberately NOT
   listed below. A rule that reaches into `.tcal-day`, `.tcal-chip`, `.tltl-row`,
   `.tltl-bar` or `.tltl-track` does not belong in P3.

   The standing risk (same shape as the v652 week-log lesson): this styling is
   coupled to V1 CLASS NAMES. Rename `.tcal-head` in js/app.js and this chrome
   silently reverts to V1 with nothing failing. auditDom() therefore checks these
   exact hooks on every delegated paint and warns in the console; the durable fix
   is owning the renderers, which is a later phase, not this one.
   ============================================================================ */

/* --- shared: the delegated body sits flush in the chassis --------------- */
.v2-tasks.v2t-delegate {
  gap: var(--v2-space-3);
}
/* V1's own outer padding is a hand-typed 2px/48px pair; the chassis owns
   spacing on this page, so it is normalised to the grid. */
.v2-tasks .tcal { gap: var(--v2-space-3); padding: 0 0 var(--v2-space-7); }
.v2-tasks .tltl-root { padding: 0 0 var(--v2-space-5); }

/* --- the header bar, both views: one engraved rule, no card ------------- */
.v2-tasks .tcal-head,
.v2-tasks .tltl-head {
  align-items: center;
  gap: var(--v2-space-3);
  margin: 0;
  padding: 0 0 var(--v2-space-2);
  box-shadow: inset 0 -1px 0 var(--g-hairline);
}

/* --- nav + Today: a glass pill button, restated on V1's class names ----- */
.v2-tasks .tcal-navbtn,
.v2-tasks .tcal-today,
.v2-tasks .tltl-btn {
  height: var(--v2-ctl-sm);
  min-width: var(--v2-ctl-sm);
  padding: 0 var(--v2-space-2);
  border: 0;
  border-radius: var(--g-r-ctl);
  background-color: var(--g-fill-2);
  box-shadow: var(--g-edge-2), var(--g-spec-2);
  color: var(--g-text-2);
  font-family: var(--v2-font);
  font-size: var(--v2-fs-small);
  font-weight: var(--v2-fw-medium);
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--v2-dur-1) var(--v2-ease),
              color var(--v2-dur-1) var(--v2-ease),
              box-shadow var(--v2-dur-1) var(--v2-ease),
              transform var(--v2-dur-1) var(--v2-ease);
}
.v2-tasks .tcal-navbtn { width: var(--v2-ctl-sm); padding: 0; }
.v2-tasks .tcal-navbtn svg { width: var(--v2-icon-sm); height: var(--v2-icon-sm); }
.v2-tasks .tcal-navbtn:hover,
.v2-tasks .tcal-today:hover,
.v2-tasks .tltl-btn:hover {
  background-color: var(--g-fill-hover);
  color: var(--g-text);
}
.v2-tasks .tcal-navbtn:focus-visible,
.v2-tasks .tcal-today:focus-visible,
.v2-tasks .tltl-btn:focus-visible { outline: none; box-shadow: var(--g-focus-ring); }
/* the haptic illusion — the same press step every other glass control uses */
.v2-tasks .tcal-navbtn:active,
.v2-tasks .tcal-today:active,
.v2-tasks .tltl-btn:active { transform: scale(.97); }
.v2-tasks .tcal-nav,
.v2-tasks .tltl-nav { gap: var(--v2-space-1); }

/* --- titles + readouts -------------------------------------------------- */
.v2-tasks .tcal-title {
  margin: 0 0 0 var(--v2-space-1);
  color: var(--v2-text);
  font-family: var(--v2-font);
  font-size: var(--v2-fs-md);
  font-weight: var(--v2-fw-semi);
  line-height: var(--v2-lh-md);
  letter-spacing: var(--v2-tr-md);
}
/* Instrument counters: both views end their header with a number, so both get
   the tabular/slashed-zero treatment the rest of the page uses for readouts. */
.v2-tasks .tcal-legend,
.v2-tasks .tltl-range {
  color: var(--v2-text-3);
  font-family: var(--v2-font);
  font-size: var(--v2-fs-micro);
  font-weight: var(--v2-fw-medium);
  line-height: var(--v2-lh-micro);
  letter-spacing: var(--v2-tr-micro);
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--v2-font-features-num);
}

/* --- the timeline's "No dates" section label (chrome, not a bar) -------- */
.v2-tasks .tltl-nd { margin-top: var(--v2-space-4); }
.v2-tasks .tltl-nd-h {
  margin: 0 0 var(--v2-space-2);
  padding: 0 0 var(--v2-space-1);
  box-shadow: inset 0 -1px 0 var(--g-hairline);
  color: var(--v2-text-3);
  font-family: var(--v2-font);
  font-size: var(--v2-fs-micro);
  font-weight: var(--v2-fw-semi);
  letter-spacing: var(--v2-tr-micro);
  text-transform: uppercase;
}

/* --- W6-handoff 2026-08-04 TOMBSTONE (C10 ruling): the belt-and-braces glass-2
       re-dress of V1's generic empty texts (.tltl-empty / .tcal-tray-empty, plus
       their two padding lines) is DELETED. Its own comment said it never fires —
       V2 paints its own empty states for the only condition these appear on (an
       empty visible list, see delegateHtml) — and if it ever did fire it would
       nest a glass-2 recipe INSIDE the glass-2 view pane, which glass.css §5's
       blur cap forbids. If a future V1 change surfaces one of these anyway, it
       falls back to js/task-timeline.js's own injected quiet fill-nested style
       (deliberately untouched), which nests safely. ---- */

@media (max-width: 520px) {
  .v2-tasks .tcal-head,
  .v2-tasks .tltl-head { gap: var(--v2-space-2); }
  /* THE MONTH TITLE IS A CHILD OF .tcal-nav, NOT OF .tcal-head (V1's markup) —
     so the wrap has to be declared on the nav, and the title given its own row
     there. Reading order on a phone: which month, then how to move, then the
     count. Without the wrap the three buttons shrink and "Today" clips. */
  .v2-tasks .tcal-nav { flex-wrap: wrap; row-gap: var(--v2-space-2); }
  .v2-tasks .tcal-title { order: -1; flex: 1 1 100%; margin-left: 0; }
  /* month/range nav is the ONLY way through these two views on a phone, and V1
     sized it at --ctl-sm (26px, 32px at touch density) — under the tap minimum.
     --v2-ctl-touch is a fixed 44px that density modes do not scale. */
  .v2-tasks .tcal-navbtn,
  .v2-tasks .tcal-today,
  .v2-tasks .tltl-btn {
    flex: 0 0 auto;
    height: var(--v2-ctl-touch);
    min-width: var(--v2-ctl-touch);
    padding: 0 var(--v2-space-3);
  }
  .v2-tasks .tcal-navbtn { width: var(--v2-ctl-touch); padding: 0; }
}

/* ============================================================================
   16 · MOTION DISCIPLINE — one opt-out, honoured everywhere.
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  .v2-tasks *,
  .v2t-head * { transition-duration: 1ms; animation-duration: 1ms; }
  /* `*` does not reach a ::after pseudo-element's OWN animation-duration (it is
     not an inherited property), so the glass-skeleton shimmer added in §10
     needs its own kill switch here — same shape as glass.css's own
     `.g-skeleton::after` reduced-motion rule. */
  .v2-tasks .v2t-ghost span::after,
  .v2-tasks .v2t-ghost-colhd::after,
  .v2-tasks .v2t-ghost-card::after,
  .v2-tasks .v2t-ghost-cellnum::after,
  .v2-tasks .v2t-ghost-tllbl::after,
  .v2-tasks .v2t-ghost-tlbar::after { animation: none; }
}

/* Native sort controls preserve column typography; the field menu remains a separate sibling. */
.v2-tasks .v2t-sort-btn{
  appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;
  max-width:100%;min-width:0;min-height:32px;padding:0;border:0;border-radius:0;
  background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;
  text-align:inherit;cursor:pointer;
}
.v2-tasks .v2t-sort-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

/* Populated custom values stay readable on phone cards; empty fields remain in task detail. */
.v2-tasks .v2t-cf-label { display: none; }
.v2-tasks .v2t-cf-value { min-width: 0; }
/* An outline survives the first-row separator rule, which intentionally clears box shadows. */
.v2-tasks .v2t-table .v2t-c-cf[role="button"]:focus-visible { outline: 2px solid var(--g-accent); outline-offset: -2px; }
@media (max-width: 520px) {
  .v2-tasks .v2t-table td[data-label].v2t-c-cf:not(.v2t-namecell):not(.v2t-lead) {
    display: grid; grid-template-columns: minmax(76px, .85fr) minmax(0, 1.4fr);
    align-items: start; gap: 6px 12px; min-width: 0; min-height: var(--v2-ctl-touch, 44px);
    padding: 8px 0; margin: 0; border-top: 1px solid var(--g-hairline);
    white-space: normal; overflow: visible; font-size: 13px; line-height: 1.45;
  }
  .v2-tasks .v2t-table td[data-label].v2t-c-cf.is-empty:not(.v2t-namecell):not(.v2t-lead) { display: none; }
  .v2-tasks .v2t-table td[data-label].v2t-c-cf::before { display: none; content: none; }
  .v2-tasks .v2t-cf-label { display: block; min-width: 0; color: var(--g-text-3); font-size: 12px; overflow-wrap: anywhere; }
  .v2-tasks .v2t-cf-value { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .v2-tasks .v2t-cf-value .v2t-cfv, .v2-tasks .v2t-cf-value .v2t-opt, .v2-tasks .v2t-cf-value .v2t-opt-l { min-width: 0; max-width: 100%; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  .v2-tasks .v2t-c-cf > .cell-inline-input { grid-column: 1 / -1; width: 100%; min-width: 0; }
}

/* Daily task lists: also used by the current V1 header through listControls(). */
.ppm-task-lists,.v2t-head .v2t-views{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;overflow:visible;min-width:0;width:100%}
.ppm-task-lists{padding:8px 0;font-size:13px;color:var(--ws-ink,var(--text))}
.v2t-list-controls,.v2t-layout-controls{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.v2t-list-picker{position:relative;max-width:100%;min-width:160px}
.v2t-list-picker summary{display:flex;align-items:center;gap:8px;min-height:44px;max-width:300px;padding:8px 12px;cursor:pointer;list-style:none;border:1px solid var(--ws-line,var(--border));border-radius:8px;background:var(--ws-surface,var(--surface));color:var(--ws-ink,var(--text))}
.v2t-list-picker summary::-webkit-details-marker{display:none}
.v2t-list-picker summary strong{font-size:13px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.v2t-list-label{font-size:11px;color:var(--ws-muted,var(--text-3))}
.v2t-list-picker svg,.ppm-task-lists .v2t-seg svg{height:16px;width:16px;flex-shrink:0}
.v2t-list-options{position:absolute;top:calc(100% + 5px);left:0;z-index:100;width:max(260px,100%);max-width:calc(100vw - 40px);max-height:340px;overflow:auto;padding:8px;border:1px solid var(--ws-line,var(--border));border-radius:10px;background:var(--ws-surface,var(--surface));box-shadow:0 8px 24px #0002}
.v2t-list-options p{margin:4px 8px 8px;font-size:12px;line-height:1.4;color:var(--ws-muted,var(--text-3))}
.v2t-list-option,.ppm-task-lists .v2t-seg{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 10px;font:inherit;border:1px solid transparent;border-radius:7px;color:inherit;background:transparent;cursor:pointer;text-align:left}
.v2t-list-option{width:100%;justify-content:space-between;font-size:13px;overflow-wrap:anywhere}
.v2t-list-option span{min-width:0}
.v2t-list-option[aria-pressed=true],.ppm-task-lists .v2t-seg.is-on{background:var(--ws-surface-soft,var(--bg));font-weight:650}
.v2t-list-option:hover,.ppm-task-lists .v2t-seg:hover{background:var(--ws-surface-soft,var(--bg))}
.v2t-list-picker summary:focus-visible,.v2t-list-option:focus-visible,.ppm-task-lists .v2t-seg:focus-visible{outline:2px solid var(--ws-accent,var(--red));outline-offset:2px}
.ppm-task-lists .v2t-seg--add{color:var(--ws-accent,var(--red))}
body.workspace-ui.workspace-design #panel:has([data-act="edit-task-title"]) .panel-head{padding:16px 20px 12px}
body.workspace-ui.workspace-design #panel:has([data-act="edit-task-title"]) .panel-title{font-size:21px;line-height:1.35;overflow-wrap:anywhere}
body.workspace-ui.workspace-design #panel:has([data-act="edit-task-title"]) .field-grid.compact{row-gap:8px;column-gap:14px}
body.workspace-ui.workspace-design #panel:has([data-act="edit-task-title"]) .field-grid.compact .fl{font-size:12px}
body.workspace-ui.workspace-design #panel:has([data-act="edit-task-title"]) .psub{gap:8px;padding-block:8px}
@media(max-width:640px){.ppm-task-lists{gap:6px}.v2t-list-controls{width:100%}.v2t-list-picker{flex:1;min-width:120px}.v2t-list-picker summary{max-width:none}.v2t-layout-controls{width:100%;gap:2px}.ppm-task-lists .v2t-seg{padding-inline:8px;font-size:12px}.v2t-list-options{width:calc(100vw - 40px)}body.workspace-ui.workspace-design #panel:has([data-act="edit-task-title"]) .panel-head{padding:14px 16px 10px}body.workspace-ui.workspace-design #panel:has([data-act="edit-task-title"]) .panel-title{font-size:19px}}

body.workspace-ui.workspace-design[data-module="tasks"] #mainhead .head-controls>.task-list-rail{width:100%;min-width:0;height:auto;overflow:visible;flex-basis:100%;grid-column:1/-1}
