/* The stylesheets every page has, in the order they apply in. index.html links this file. Each page's own stylesheets
   are listed, page by page, in stylesheets.ts, and are added after these when the page is opened.

   Why the order is written down. Two rules of the same weight are settled by which comes later, and the screens were
   tuned against the order the Next.js build gave them. A bundler orders stylesheets by how it splits the code into
   files, which changes when a page is added and differs between the development server and the build. So the screens'
   own `import "./x.css"` lines are ignored by the build (vite.config.ts), and this file and stylesheets.ts say which
   stylesheets a page gets and in which order: the one the Next.js build gave a browser, measured page by page on
   2026-11-17 before Next.js was removed. tests/stylesheets.test.ts fails when a screen imports a stylesheet that
   neither names. */

/* The two house faces, then the tokens. */

/* The two house faces ([[D130]]), self-hosted: the app is a screen surface (Instrument Sans) with a mono metadata face
   (Fragment Mono). Instrument Sans is the variable font (the stylesheets also use weights 450 and 550); Fragment Mono
   ships weight 400 only, so its 600/700 metadata is synthetic bold.
   The wght file covers latin and latin-ext by unicode-range, so a browser downloads latin-ext only for a page that needs it.
   The font files are OFL-1.1; the license travels in each @fontsource package. */

/* instrument-sans-latin-ext-wght-normal */
@font-face {
  font-family: 'Instrument Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/assets/instrument-sans-latin-ext-wght-normal-B5bTHO_g.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* instrument-sans-latin-wght-normal */
@font-face {
  font-family: 'Instrument Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/assets/instrument-sans-latin-wght-normal-BbzFLZTg.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* fragment-mono-latin-400-normal */
@font-face {
  font-family: 'Fragment Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/fragment-mono-latin-400-normal-yxdJ5AmL.woff2) format('woff2'), url(/assets/fragment-mono-latin-400-normal-BYwT3kSJ.woff) format('woff');
}
/* tokens.css, the kit and Paper and Ink read these names first. */
:root {
  --font-instrument: "Instrument Sans Variable";
  --font-fragment: "Fragment Mono";
}
/*
 * The BOS app-UI token layer ([[D118]]) — THEME-AGNOSTIC BY CONSTRUCTION
 * ([[D115]]): components consume the semantic roles below; a theme is a
 * token-set assignment. The shipping theme is the HOUSE identity ([[D130]],
 * ratified 2026-07-12) — navy ink + one blue signal, dense default. A second
 * theme later = a second assignment block, not a refactor.
 *
 * Spec: `docs/design/DESIGN_Tokens_House_Remap_rev2.css` (the ratified [[D130]]
 * remap — values, role assignments, AA annotations, composed-value markings).
 * This is a PURE COLOUR remap of the prior Meridian layer: the font-stack and
 * the density tokens are UNCHANGED (two typefaces is deliberate — the app is a
 * screen surface (Instrument Sans), the pack a print surface (Carlito/Liberation Sans);
 * [[D130]]), so the density measurements stand with NO re-gate.
 *
 * Values are role-remapped from the house palette (`PACK_TOKENS.palette` in
 * `src/lib/artefacts/pack/style/stylesheet.ts`) — cited BY ROLE via the
 * `[house:*]` tags below, never copied by name (the two token universes share
 * names like `--ink`/`--line` with different values). Provenance tags per value:
 * `[house:NAME]` cited from the pack palette · `[kept]` identity-neutral (type
 * sizing / shape / density) · `[composed]` a screen-only role (hover-ring /
 * focus-outline) derived from a ratified house hue and marked. AA ratios are on
 * the token's real background (white unless noted). One named +1-token exception:
 * `--ink-heading` (headings only; [[D130]]).
 *
 * Paper and Ink 0.2.24 sits beside this layer: see docs/design/PAPER_AND_INK_ADOPTION.md
 */

:root {
  /* ---- type (Instrument Sans RETAINED — screen surface; sizing kept) ---
     --font-instrument / --font-fragment are set by next/font in layout.tsx
     (the loaded faces); the literals + system generics remain as fallbacks. */
  --font-ui: var(--font-instrument), "Instrument Sans", "Hanken Grotesk",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  /* [house-study] the second (mono) face — the app is TWO typefaces by design
     ([[D130]]): UI for prose/headings, mono for functional metadata (refs,
     codes, counts, pills, filter chips, section overlines, cluster labels).
     The study ([[D136]]) renders every one of these in Fragment Mono; already
     consumed inline by .type-chip — promoted to a token (read in >1 place). */
  --font-mono: var(--font-fragment), "Fragment Mono", ui-monospace,
    "SFMono-Regular", monospace;
  --text-body: 14px;     /* [kept] */
  --text-small: 12px;    /* [kept] */
  /* [[D140]] the shared Fragment Mono metadata ladder — the floor rule, stated
     once, where the values live. Functional metadata is 11px; 10px is the
     ratified FLOOR for dense contexts; anything smaller than 10px is confined
     to the dark navy rail and to secondary technical references. (That is the
     rule the retained `app.css` note "10px held (D140 floor; study 8.5px)"
     states inline.) Each rung is read by BOTH `app.css` and `atlas.css`, so
     each earns its keep under the [[D143]] reuse test. Naming only — no value
     moves. */
  --mono-label: 11px;    /* the standard metadata size ([[D140]]) */
  --mono-dense: 10px;    /* the ratified floor for dense contexts ([[D140]]) */
  --mono-micro: 9px;     /* dark-rail labels and secondary technical refs only */
  --leading-body: 1.5;   /* [kept] */
  --leading-title: 1.35; /* [kept] */

  /* ---- surfaces + ink (Meridian graphite → house navy family) --------- */
  --canvas: #eef1f4;        /* [house:screen]  app background (was #f2f5f7) */
  --surface: #ffffff;       /* [house:paper]   cards, panes, rows */
  --surface-raised: #f3f7fc;/* [house:tableHead] raised strips/headers (alt: panel #f7faff) */
  --ink: #173157;           /* [house:ink]     body/primary text — 13:1 on white (AAA) */
  --ink-heading: #061f54;   /* [house:navy]    NAMED EXCEPTION (+1 token) — shell headers, screen titles, wordmark — 16:1 on white (AAA) */
  --ink-secondary: #263f61; /* [house:body]    secondary text — 10.7:1 (AAA) */
  --ink-muted: #536783;     /* [house:muted]   metadata/disabled/empty — 5.8:1 (AA); STRONGER than Meridian's #8494a1 (~3:1) — an AA improvement */
  --line: #d9e2ee;          /* [house:line]    standard border */
  --line-soft: #e8eef6;     /* [house:softLine] row dividers */

  /* ---- the one signal hue (teal → house BLUE — ratified) -------------- */
  --signal: #2463a7;        /* [house:blue]    interaction/selection — 6.2:1 on white (AA); teal 5.9:1 → blue 6.2:1 */
  --signal-tint: #eef6ff;   /* [house:blueBg]  selection/hover tint */
  --signal-soft: #aac6e6;   /* [composed]      soft emphasis ring — ~55% tint of --blue; ~1.4:1 on white (a decorative step, NOT the focus indicator) */
  --signal-bright: #3d7fc7; /* [composed]      focus outline — a brighter --blue; 4.2:1 on white (clears the 3:1 UI-component floor) */

  /* ---- identity accent (house orange — IDENTITY, not interaction; [[D130]]
     amendment). THE SPLIT RULE — the whole point; orange is safe ONLY split:
       • --accent      is NEVER legible text on a light background.
       • --accent-text is NEVER a border, rule, or focus indicator.
       Orange LINE → --accent.  Orange TEXT → --accent-text.
     --signal (blue #2463a7) stays the INTERACTIVE semantic colour; orange is
     identity, never interaction. Additive — wired to NO consumer this pass.
     Edge case 1: functional orange non-text must sit on --surface (#fff) — #ff5a00
       is 3.13:1 on white (passes 3:1) but 2.76:1 on --canvas #eef1f4 (fails 3:1).
       Purely decorative orange (glow/shimmer/pulse) is exempt — WCAG un-rated.
     Edge case 2: white text on an --accent fill = 3.13:1 — FAILS 4.5:1 normal
       text; passes only as large/bold (≥24px, or ≥18.66px bold). The primary-
       button hover fill is an open Design question — NOT wired here. ----------- */
  --accent: #ff5a00;       /* [house:orange]  NON-TEXT ONLY (3:1 floor) — 3.13:1 on --surface #fff */
  --accent-text: #c2410c;  /* [composed]      TEXT ONLY (4.5:1 floor) — 5.18:1 on white / 4.57:1 on --canvas.
                              Composed because the traced options fail: amberAccent #d06a00 = 3.66:1 (fails
                              text); amber #9a6400 = 5.00:1 but is the WARN semantic (must not be reused for
                              identity). #c2410c is a darkened derivation of house orange. */

  /* ---- status + confidence — ALREADY house-aligned (byte-identical) ---
     colour NEVER alone: pair with glyph + word. No re-verification needed. --- */
  --conf-high: #278047;       /* [house:green]  ~5:1 (AA) */
  --conf-medium: #916100;     /* [composed] darkened from house amber #9a6400 — the "Medium" band sits on --canvas (#eef1f4) where #9a6400 was 4.41:1; #916100 clears 4.5:1 there (WCAG wins over the raw palette, [[D133]]/[[D134]] precedent). Diverges from --warn, which stays #9a6400. */
  --conf-low: #536783;        /* [house:muted]  low-confidence reads as muted */
  --state-open: #2463a7;      /* [house:blue]   "Open"/requested lens on `proposed` — 6.2:1 */
  --state-open-tint: #eef6ff; /* [house:blueBg] */
  --state-accepted: #278047;  /* [house:green]  Pass-2 reserved (no write path here) */
  --state-accepted-tint: #e4f5e8; /* [house:greenBg] */
  --state-rejected: #b53025;  /* [house:red]    6.2:1 (AA) */
  --state-rejected-tint: #ffe7e2; /* [house:redBg] */
  --warn: #9a6400;            /* [house:amber]  ~5:1 (AA) */
  --warn-tint: #fff0cf;       /* [house:amberBg] */
  --warn-soft: #d06a00;       /* [house:amberAccent] warn border — 3.7:1 on white surface / 3.2:1 on the --warn-tint fill; clears the 3:1 non-text floor (WCAG 1.4.11) */

  /* ---- shape + spacing --------------------------------------------------
     The radius system, complete ([[D139]]/[[D143]]): data cards --radius-data
     12px · controls --radius-ctrl 8px · pills --radius-pill. The study's 10px
     (evidence sub-rows) and 14px (golden-thread hero) are single-consumer
     literals in app.css — a token earns its keep only by being read in more
     than one place ([[D143]]), so they are deliberately NOT tokenised. */
  --radius-data: 12px;  /* [house-study] rounded data cards ([[D139]]); was 0px (Meridian square) */
  --radius-ctrl: 8px;   /* [house-study] buttons/controls — reconciled to the study ([[D143]]); was 4px */
  --radius-pill: 999px; /* [kept] */

  /* [[D138]] density model DELETED here — the study's card IS the queue row
     (~110px, ~6 rows/780px pane); there is no density toggle. The former
     --q-pad-y / --q-pad-x / --q-gap tokens and the comfortable [data-density]
     block are gone; their app.css consumers were rewritten to the card model
     in this pass. */

  /* ---- accessibility roles ([[T-112]]) — WCAG 2.2 AA, light theme only ----
     ADDITIVE. No house-traced value above is replaced, no palette is swapped and
     no theme is added; the roles below are the ones the shared accessibility
     rules in `app.css` consume, and `src/app/ui/a11y-contract.ts` names the pairs
     `tests/ui.accessibility.test.ts` re-measures in real Chrome.

     ★ THE TEXT SPLIT IS THE ONE ALREADY ESTABLISHED IN THIS FILE. `--accent` /
     `--accent-text` exists because a house hue that clears the 3:1 NON-TEXT floor
     does not automatically clear the 4.5:1 TEXT floor. Two more house hues have
     exactly that defect on the grounds this app actually paints them on, measured
     on the real backgrounds:
       --conf-high #278047 — 4.92:1 on --surface, but 4.34:1 on --canvas and
         4.34:1 on --state-accepted-tint. `.conf--high` and `.pill--confirmed` are
         those two grounds, so both were BELOW AA as text.
       --warn      #9a6400 — 5.00:1 on --surface, but 4.41:1 on --canvas and
         4.44:1 on --warn-tint. `.pill--warn` and `.cl-none` are on the tint.
     `--conf-medium` above is the standing precedent for the remedy (WCAG wins
     over the raw palette, [[D133]]/[[D134]]). Both base tokens are UNCHANGED and
     keep every NON-text consumer they had — dots, borders and left rules, which
     sit on the 3:1 floor and clear it. */
  --conf-high-text: #257843; /* [composed] darkened --conf-high — TEXT ONLY (4.5:1 floor): 5.46:1 on --surface, 4.82:1 on --canvas, 4.82:1 on --state-accepted-tint */
  --warn-text: #8e5c00;      /* [composed] darkened --warn — TEXT ONLY (4.5:1 floor): 5.70:1 on --surface, 5.03:1 on --canvas, 5.06:1 on --warn-tint. Distinct from --conf-medium (#916100): that is the confidence band, and the two roles are not merged */

  /* Focus presentation — one indicator, two grounds, never removed and never
     zero-width (WCAG 2.2 SC 2.4.7 / 2.4.11 / 2.4.13). The width and offset are
     the values `a:focus-visible` already used, promoted to roles so a surface
     cannot quietly ship a thinner one. */
  --focus-ring: var(--signal-bright);  /* [role] light grounds — 4.15:1 on --surface, 3.66:1 on --canvas, 3.81:1 on --signal-tint, 3.51:1 on --state-rejected-tint: every ground this app paints clears the 3:1 non-text floor */
  --focus-ring-inverse: #ffffff;       /* [role] the dark navy rail — 15.8:1 on --ink-heading */
  --focus-ring-width: 2px;             /* [kept] */
  --focus-ring-offset: 2px;            /* [kept] */

  /* Target size (WCAG 2.2 SC 2.5.8, MINIMUM — 24 CSS px) and the spacing that
     buys the undersized-target exception. Desktop pointer and keyboard is the
     supported environment ([[T-112]]), so the minimum and not the enhanced
     44 px target is the conformance floor. */
  --target-min: 24px;
  --target-gap: 8px;
}

/* The first kit and the Ask pane, the app's own rules, Paper and Ink 0.2.28 (scoped under .pi), then the Ink shell's
   layout glue and the record pages' rules, after the kit. */

/* THE REASONWARD KIT IN THE APP: plans/design-system/kit-v001/reasonward-kit.css (agreed, Owner yes 15:06 22 Oct 2026; round
   ticks and pick cards, Owner pick C 11:47 23 Oct 2026), copied as it is. Three changes: the slate accent-color and the
   pick cards are scoped to .rw, so Version 1 keeps its own controls; unticked rings are drawn in slate so they stand out
   on white (3:1 or more); and the two faces read the app's own loaded fonts first (--font-instrument, --font-fragment,
   src/app/layout.tsx), so nothing is fetched from Google here. Only Version 2 pages built on the kit import this file.
   Every class is rw- and every token --rw-, so it sits beside app.css without touching Version 1. */

/* Design kit v001 (22 Oct 2026). One shared set of tokens and parts for every
   Layout 2 mockup and the Version 2 build. Mockups import this file instead of copying app.css.
   Everything is prefixed rw- so it can sit beside the app's own styles while pages move over. */

:root{
  /* Colour: Paper and Ink, one gold accent */
  --rw-paper:#faf9f6;  --rw-white:#ffffff;  --rw-ink:#111111;
  --rw-ink-2:#5f5e5a;  /* secondary text */
  --rw-ink-3:#75736d;  /* labels, meta */
  --rw-line:#e7e4dd;   --rw-hair:#f0eee8;
  --rw-field:#d3d0c8;  --rw-field-hover:#a9a69e;
  --rw-wash:#f4f2ed;   --rw-track:#efede7;
  --rw-gold:#c9a227;   --rw-gold-text:#725900; --rw-gold-wash:#f8f1dc;
  --rw-choice:#3d5a73;  /* slate: ticks and radios only (Owner 17:10 22 Oct: not black or gold) */
  --rw-select:var(--rw-choice); --rw-select-hover:#557684;  /* older names, kept so pages that use them still work */
  --rw-positive:#207849; --rw-positive-mark:#2fa96b;
  --rw-attention:#9a5b00; --rw-attention-mark:#e39a1c;
  --rw-critical:#b42318;  --rw-critical-mark:#d92d20;
  --rw-rail:#171717; --rw-rail-text:#ecebe6; --rw-rail-muted:#a8a6a0; --rw-rail-line:#2c2c2b;
  /* Charts: ink and its tints, gold for the one thing to look at */
  --rw-c1:#111111; --rw-c2:#5a5853; --rw-c3:#9d9a92; --rw-c4:#d6d3cb; --rw-c-gold:#c9a227;

  /* Type: six sizes and no others */
  --rw-sans:var(--font-instrument,"Instrument Sans"),system-ui,-apple-system,"Segoe UI",sans-serif;
  --rw-mono:var(--font-fragment,"Fragment Mono"),ui-monospace,"SFMono-Regular",Menlo,monospace;
  --rw-t-label:12.5px; --rw-t-small:13.5px; --rw-t-body:15.5px;
  --rw-t-h3:18px; --rw-t-h2:22px; --rw-t-title:34px;

  /* Spacing: a 4px base, eight steps */
  --rw-s1:4px; --rw-s2:8px; --rw-s3:12px; --rw-s4:16px; --rw-s5:24px; --rw-s6:32px; --rw-s7:48px; --rw-s8:64px;
  --rw-label-col:200px; --rw-measure:68ch; --rw-page-max:1120px;

  /* Shape and depth */
  --rw-r-field:8px; --rw-r-pop:12px; --rw-r-surface:16px; --rw-r-pill:999px;
  --rw-lift:0 1px 2px rgba(17,17,17,.04),0 8px 24px rgba(17,17,17,.07);
  --rw-pop-shadow:0 18px 40px rgba(17,17,17,.12),0 2px 6px rgba(17,17,17,.06);
  --rw-ring:0 0 0 3px rgba(17,17,17,.09);

  /* Motion */
  --rw-ease:cubic-bezier(.2,.8,.2,1); --rw-fast:160ms; --rw-base:220ms; --rw-slow:320ms;
}

/* ---------- Type ---------- */
.rw{font:400 var(--rw-t-body)/1.55 var(--rw-sans);color:var(--rw-ink);-webkit-font-smoothing:antialiased}
.rw :where(button,input,textarea){font:inherit;color:inherit}
.rw [hidden]{display:none!important}
.rw-title{font-size:var(--rw-t-title);font-weight:500;letter-spacing:-.03em;line-height:1.1;margin:0;text-wrap:balance}
.rw-h2{font-size:var(--rw-t-h2);font-weight:500;letter-spacing:-.02em;line-height:1.25;margin:0;text-wrap:balance}
.rw-h3{font-size:var(--rw-t-h3);font-weight:500;letter-spacing:-.01em;line-height:1.3;margin:0}
.rw-lede{font-size:var(--rw-t-body);color:var(--rw-ink-2);max-width:var(--rw-measure);margin:0}
.rw-small{font-size:var(--rw-t-small);color:var(--rw-ink-2)}
.rw-label{font-size:var(--rw-t-label);color:var(--rw-ink-3);font-weight:500}
.rw-eyebrow{font-size:var(--rw-t-small);color:var(--rw-ink-2);font-weight:500}
.rw-ref{font:400 var(--rw-t-label)/1 var(--rw-mono);color:var(--rw-ink-3);letter-spacing:-.01em;white-space:nowrap}
.rw-date{font-family:var(--rw-mono);font-size:var(--rw-t-label);color:var(--rw-ink-3)}
.rw-num{font-variant-numeric:tabular-nums}
.rw :focus-visible{outline:2px solid var(--rw-ink);outline-offset:2px}
/* Selected text in a soft gold wash, not the browser's blue */
.rw ::selection{background:#efe2b6;color:var(--rw-ink)}
/* Text boxes show focus by their own soft lift, never by an extra outline */
.rw :where(input,textarea):focus,.rw :where(input,textarea):focus-visible{outline:none}

/* ---------- Buttons and links (the one set, Owner yes 19 Oct; second button on stone, set D, Owner 22 Oct 15:05) ---------- */
.rw-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 22px;border-radius:var(--rw-r-pill);
  border:1px solid var(--rw-ink);background:var(--rw-ink);color:var(--rw-white);font:500 16px/1 var(--rw-sans);cursor:pointer;white-space:nowrap;
  text-decoration:none;transition:background-color var(--rw-fast) var(--rw-ease),border-color var(--rw-fast) var(--rw-ease),transform var(--rw-fast) var(--rw-ease)}
.rw-btn:hover{background:#2a2a28;border-color:#2a2a28}
.rw-btn:active{transform:translateY(1px)}
.rw-btn--second{background:var(--rw-track);color:var(--rw-ink);border-color:var(--rw-track)}
.rw-btn--second:hover{background:#e6e3db;border-color:#e6e3db}
.rw-btn[disabled]{background:var(--rw-track);border-color:var(--rw-track);color:var(--rw-ink-3);cursor:not-allowed}
.rw-choice{display:inline-flex;align-items:center;min-height:38px;padding:0 16px;border-radius:var(--rw-r-pill);border:1px solid var(--rw-field);
  background:var(--rw-white);font:500 14px/1 var(--rw-sans);cursor:pointer;transition:border-color var(--rw-fast) var(--rw-ease)}
.rw-choice:hover{border-color:var(--rw-ink)}
.rw-choice[aria-pressed=true]{background:var(--rw-ink);border-color:var(--rw-ink);color:var(--rw-white)}
.rw-link{border:0;background:none;padding:0;cursor:pointer;color:var(--rw-ink);font-size:15px;font-weight:400;text-decoration:underline;
  text-underline-offset:4px;text-decoration-thickness:1px;text-decoration-color:var(--rw-field-hover);transition:text-decoration-color var(--rw-fast)}
.rw-link:hover{text-decoration-color:var(--rw-ink)}
.rw-link--small{font-size:var(--rw-t-small);color:var(--rw-ink-2);text-decoration-color:var(--rw-field)}
.rw-back{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--rw-ink-2);text-decoration:none;border:0;background:none;padding:0;cursor:pointer}
.rw-back:hover{color:var(--rw-ink)}
.rw-back::before{content:"←";transition:transform var(--rw-fast) var(--rw-ease)}
.rw-back:hover::before{transform:translateX(-3px)}
/* A page or View named in running text */
.rw-name{color:var(--rw-ink);font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;text-decoration-color:var(--rw-ink)}
.rw-acts{display:flex;flex-wrap:wrap;align-items:center;gap:var(--rw-s3) var(--rw-s5)}
.rw-foot{display:flex;flex-wrap:wrap;gap:var(--rw-s2) var(--rw-s5);padding-top:var(--rw-s4)}

/* ---------- Status: a coloured word or a dot, never a pill ---------- */
.rw-status{display:inline-flex;align-items:center;gap:8px;font-size:var(--rw-t-small);font-weight:500;color:var(--rw-ink)}
.rw-status::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--rw-ink-3);flex:none}
.rw-status--draft::before{background:none;box-shadow:inset 0 0 0 1.5px var(--rw-ink-3)}
.rw-status--ready::before{background:var(--rw-gold)}
.rw-status--ok{color:var(--rw-positive)} .rw-status--ok::before{background:var(--rw-positive-mark)}
.rw-status--attention{color:var(--rw-attention)} .rw-status--attention::before{background:var(--rw-attention-mark)}
.rw-status--critical{color:var(--rw-critical)} .rw-status--critical::before{background:var(--rw-critical-mark)}
.rw-status--proposed{color:var(--rw-gold-text)} .rw-status--proposed::before{background:var(--rw-gold)}
.rw-status small{font-weight:400;color:var(--rw-ink-3);font-size:var(--rw-t-small)}

/* ---------- Surfaces: one per area, never a card inside a card ---------- */
.rw-surface{background:var(--rw-white);border:1px solid var(--rw-line);border-radius:var(--rw-r-surface)}
.rw-group{padding:var(--rw-s6) var(--rw-s6) var(--rw-s5)}
.rw-group+.rw-group{border-top:1px solid var(--rw-line)}
.rw-group>.rw-h3{margin-bottom:var(--rw-s3)}
.rw-section{display:grid;gap:var(--rw-s3)}
.rw-section-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--rw-s2) var(--rw-s3)}
.rw-section-head .rw-count{font-size:var(--rw-t-small);color:var(--rw-ink-3)}
.rw-section-head .rw-end{margin-left:auto}

/* ---------- Fields: edit in place ---------- */
.rw-props{display:grid}
.rw-prop{display:grid;grid-template-columns:var(--rw-label-col) minmax(0,1fr);gap:var(--rw-s1) var(--rw-s5);align-items:start;padding:3px 0}
.rw-prop__label{font-size:var(--rw-t-small);color:var(--rw-ink-3);padding-top:7px}
.rw-prop__value{position:relative;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.rw-value{all:unset;box-sizing:border-box;cursor:text;display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:6px 10px;margin-left:-10px;
  border-radius:var(--rw-r-field);max-width:calc(100% + 10px);overflow-wrap:anywhere;font-size:var(--rw-t-body);line-height:1.5;transition:background-color var(--rw-fast) var(--rw-ease)}
.rw-value[data-edit=pick],.rw-value[data-edit=seg],.rw-value[data-edit=date]{cursor:pointer}
.rw-value:hover,.rw-value[aria-expanded=true]{background:var(--rw-wash)}
.rw-value:focus-visible{outline:2px solid var(--rw-ink);outline-offset:0}
.rw-value .rw-chev{width:14px;height:14px;color:var(--rw-ink-3);opacity:0;transition:opacity var(--rw-fast)}
.rw-value:hover .rw-chev,.rw-value[aria-expanded=true] .rw-chev{opacity:1}
.rw-value--long{white-space:pre-wrap;display:block}
.rw-placeholder{color:var(--rw-ink-3)}
.rw-input{box-sizing:border-box;min-height:38px;padding:7px 10px;margin-left:-11px;border:1px solid var(--rw-line);border-radius:var(--rw-r-field);background:var(--rw-white);
  box-shadow:0 1px 2px rgba(17,17,17,.04),0 8px 20px -12px rgba(17,17,17,.22);outline:none;caret-color:var(--rw-gold-text);font-size:var(--rw-t-body);line-height:1.5;animation:rw-in var(--rw-fast) var(--rw-ease) both}
textarea.rw-input{resize:none;display:block;overflow:hidden;min-height:96px}
.rw-w-s{width:12rem;max-width:100%} .rw-w-m{width:24rem;max-width:100%} .rw-w-l{width:calc(100% + 11px)}
.rw-keys{flex-basis:100%;font-size:var(--rw-t-label);color:var(--rw-ink-3);margin-top:2px}
.rw-keys kbd{font:11.5px var(--rw-mono);border:1px solid var(--rw-field);border-radius:4px;padding:0 4px;color:var(--rw-ink-2)}
.rw-saved{display:inline-flex;align-items:center;gap:6px;font-size:var(--rw-t-small);color:var(--rw-positive);animation:rw-rise var(--rw-base) var(--rw-ease) both}
.rw-saved .rw-link{font-size:var(--rw-t-small);color:var(--rw-ink-2)}
.rw-more{margin-top:var(--rw-s2)}
.rw-bars{display:inline-flex;gap:2px;align-items:flex-end;height:11px}
.rw-bars i{width:3px;background:var(--rw-field);border-radius:1px}
.rw-bars i:nth-child(1){height:5px}.rw-bars i:nth-child(2){height:8px}.rw-bars i:nth-child(3){height:11px}
.rw-bars i.on{background:var(--rw-ink)}

/* Segmented control: ratings, tabs and filters (no pill rows) */
.rw-seg{display:inline-flex;justify-self:start;align-self:start;padding:3px;border-radius:10px;background:var(--rw-track);gap:2px;max-width:100%;overflow-x:auto}
.rw-seg button{border:0;background:none;border-radius:8px;padding:6px 14px;font-size:var(--rw-t-small);color:var(--rw-ink-2);cursor:pointer;white-space:nowrap;
  transition:color var(--rw-fast),background-color var(--rw-fast)}
.rw-seg button:hover{color:var(--rw-ink)}
.rw-seg button[aria-checked=true],.rw-seg button[aria-selected=true]{background:var(--rw-white);color:var(--rw-ink);font-weight:500;box-shadow:0 1px 2px rgba(17,17,17,.12),0 0 0 1px rgba(17,17,17,.04)}
.rw-seg .rw-n{color:var(--rw-ink-3);margin-left:6px;font-weight:400}

/* Switch */
.rw-switch{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:10px;min-height:36px;font-size:var(--rw-t-body)}
.rw-switch i{width:34px;height:20px;border-radius:999px;background:var(--rw-field);position:relative;transition:background-color 180ms var(--rw-ease)}
.rw-switch i::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--rw-white);box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform 180ms var(--rw-ease)}
.rw-switch[aria-checked=true] i{background:var(--rw-ink)}
.rw-switch[aria-checked=true] i::after{transform:translateX(14px)}
.rw-switch:focus-visible i{outline:2px solid var(--rw-ink);outline-offset:2px}

/* Ticks and radios. The browser's blue never shows: accent-color covers any native
   control on a kit page, and inside .rw the kit draws its own in --rw-choice.
   Radios suit a decision such as Approved / Not approved (Owner 17:09 22 Oct). */
.rw{accent-color:var(--rw-choice)}
.rw input:where([type=checkbox],[type=radio]){appearance:none;-webkit-appearance:none;margin:0;flex:none;width:18px;height:18px;
  border:1.5px solid var(--rw-choice);background:var(--rw-white);display:inline-grid;place-content:center;vertical-align:-3px;cursor:pointer;
  transition:background-color var(--rw-fast) var(--rw-ease),border-color var(--rw-fast) var(--rw-ease)}
.rw input[type=checkbox]{border-radius:50%;width:20px;height:20px}  /* round check (Owner pick C, 23 Oct) */
.rw input[type=radio]{border-radius:50%}
.rw input:where([type=checkbox],[type=radio]):hover{border-color:var(--rw-choice)}
.rw input[type=checkbox]:checked{background:var(--rw-choice);border-color:var(--rw-choice)}
.rw input[type=radio]:checked{border-color:var(--rw-choice)}
.rw input[type=checkbox]::before{content:"";width:10px;height:10px;transform:scale(0);transition:transform var(--rw-fast) var(--rw-ease);background:var(--rw-white);
  clip-path:polygon(14% 52%,0 66%,38% 100%,100% 22%,86% 8%,38% 72%)}
.rw input[type=checkbox]:checked::before{transform:scale(1)}
.rw input[type=checkbox]:indeterminate{background:var(--rw-choice);border-color:var(--rw-choice)}
.rw input[type=checkbox]:indeterminate::before{transform:scale(1);clip-path:none;height:2px}
.rw input[type=radio]::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--rw-choice);transform:scale(0);transition:transform var(--rw-fast) var(--rw-ease)}
.rw input[type=radio]:checked::before{transform:scale(1)}
.rw input:where([type=checkbox],[type=radio]):focus{outline:none}
.rw input:where([type=checkbox],[type=radio]):focus-visible{outline:2px solid var(--rw-choice);outline-offset:2px}
.rw input:where([type=checkbox],[type=radio]):disabled{opacity:.45;cursor:default}
.rw-check{display:inline-flex;align-items:center;gap:10px;min-height:36px;font-size:var(--rw-t-body);cursor:pointer}

/* Picking several cards (Owner pick C, 23 Oct): the card is the control. No box to aim at; the whole card
   toggles, gains a slate edge and shows a round check in its corner. Markup:
   <li class="rw-pick" role="checkbox" aria-checked="false" tabindex="0" data-pick> ... <span class="rw-pick__mark" aria-hidden="true"></span></li>
   reasonward-kit.js toggles aria-checked on click, Space and Enter and fires a "rw-pick" event. */
.rw .rw-pick{position:relative;cursor:pointer;padding-right:40px;background:var(--rw-white);border:1px solid var(--rw-line);border-radius:10px;
  transition:box-shadow var(--rw-fast) var(--rw-ease),border-color var(--rw-fast) var(--rw-ease)}
.rw .rw-pick:hover{box-shadow:0 1px 2px rgba(17,17,17,.05),0 8px 20px -14px rgba(17,17,17,.3)}
.rw .rw-pick:focus-visible{outline:2px solid var(--rw-choice);outline-offset:2px}
.rw .rw-pick__mark{position:absolute;top:10px;right:10px;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--rw-choice);background:var(--rw-white);
  display:grid;place-content:center;opacity:0;transition:opacity var(--rw-fast),background-color var(--rw-fast),border-color var(--rw-fast)}
.rw .rw-pick:hover .rw-pick__mark,.rw .rw-pick:focus-visible .rw-pick__mark{opacity:1}
.rw .rw-pick__mark::before{content:"";width:10px;height:10px;background:var(--rw-white);clip-path:polygon(14% 52%,0 66%,38% 100%,100% 22%,86% 8%,38% 72%);transform:scale(0);transition:transform var(--rw-fast) var(--rw-ease)}
.rw .rw-pick[aria-checked=true]{border-color:var(--rw-choice);box-shadow:0 0 0 1px var(--rw-choice),0 8px 20px -14px rgba(61,90,115,.45)}
.rw .rw-pick[aria-checked=true] .rw-pick__mark{opacity:1;background:var(--rw-choice);border-color:var(--rw-choice)}
.rw .rw-pick[aria-checked=true] .rw-pick__mark::before{transform:scale(1)}
@media (hover:none){.rw .rw-pick .rw-pick__mark{opacity:1}}
/* In lists the whole row is the target: wrap the round check and the text in <label class="rw-check">. */

/* Pickers: the product's own list and calendar, never the browser's */
.rw-pop{position:absolute;z-index:30;top:calc(100% + 6px);left:-10px;min-width:280px;max-width:calc(100vw - 40px);background:var(--rw-white);border:1px solid var(--rw-line);
  border-radius:var(--rw-r-pop);box-shadow:var(--rw-pop-shadow);padding:6px;animation:rw-drop 180ms var(--rw-ease) both}
.rw-find{display:block;width:100%;box-sizing:border-box;border:0;border-bottom:1px solid var(--rw-hair);padding:8px 10px 10px;margin-bottom:4px;outline:none;font-size:var(--rw-t-body);background:none}
.rw-opt{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;text-align:left;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:var(--rw-t-body)}
.rw-opt:hover,.rw-opt:focus-visible{background:var(--rw-wash);outline:none}
.rw-opt small{display:block;color:var(--rw-ink-3);font-size:var(--rw-t-small)}
.rw-opt .rw-tick{margin-left:auto;width:16px;height:16px;color:var(--rw-ink)}
.rw-avatar{width:28px;height:28px;border-radius:50%;flex:none;display:grid;place-items:center;background:var(--rw-track);font-size:11.5px;font-weight:600;color:var(--rw-ink-2)}
.rw-cal{padding:8px 8px 6px;min-width:280px}
.rw-cal-head{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 8px;font-weight:500}
.rw-cal-head button{border:0;background:none;width:30px;height:30px;border-radius:50%;cursor:pointer;color:var(--rw-ink-2)}
.rw-cal-head button:hover{background:var(--rw-wash)}
.rw-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center;font-size:var(--rw-t-small)}
.rw-cal-grid b{font-weight:500;font-size:var(--rw-t-label);color:var(--rw-ink-3);padding:4px 0}
.rw-cal-grid button{border:0;background:none;height:34px;border-radius:50%;cursor:pointer;font-variant-numeric:tabular-nums}
.rw-cal-grid button:hover{background:var(--rw-wash)}
.rw-cal-grid button.today{box-shadow:inset 0 0 0 1px var(--rw-field-hover)}
.rw-cal-grid button[aria-pressed=true]{background:var(--rw-ink);color:var(--rw-white)}
.rw-cal-foot{display:flex;justify-content:space-between;padding:8px 4px 2px;border-top:1px solid var(--rw-hair);margin-top:6px}

/* ---------- Lists: rows between hairlines, the whole row opens ---------- */
.rw-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--rw-line)}
.rw-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--rw-s2) var(--rw-s5);padding:14px 16px;margin:0 -16px;
  border-bottom:0;border-radius:0;color:inherit;text-decoration:none;cursor:pointer;position:relative;
  transition:background-color var(--rw-fast) var(--rw-ease),box-shadow var(--rw-fast) var(--rw-ease),border-color var(--rw-fast),border-radius var(--rw-fast)}
/* the hairline sits under the text, so rows line up with headings while the hover lift reaches 16px past them */
.rw-row::after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:1px;background:var(--rw-line);transition:opacity var(--rw-fast)}
.rw-row:hover,.rw-row:focus-visible{background:var(--rw-white);border-radius:12px;box-shadow:var(--rw-lift);outline:none}
.rw-row:hover::after,.rw-row:focus-visible::after{opacity:0}
.rw-row:focus-visible{box-shadow:var(--rw-lift),0 0 0 2px var(--rw-ink)}
.rw-row__title{font-size:var(--rw-t-body);font-weight:500;min-width:0}
.rw-row__meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:var(--rw-t-small);color:var(--rw-ink-2);margin-top:2px}
.rw-row__end{display:flex;align-items:center;gap:var(--rw-s4);font-size:var(--rw-t-small);color:var(--rw-ink-2);white-space:nowrap}
.rw-row__go{width:16px;height:16px;color:var(--rw-ink-3);transition:transform var(--rw-fast) var(--rw-ease),color var(--rw-fast)}
.rw-row:hover .rw-row__go{transform:translateX(3px);color:var(--rw-ink)}
.rw-row--dot{grid-template-columns:auto minmax(0,1fr) auto}
.rw-row--dot::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--rw-attention-mark);align-self:start;margin-top:8px}
.rw-listbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--rw-s3);margin-bottom:var(--rw-s3)}
.rw-summaryline{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:12px 0;border-bottom:1px solid var(--rw-line);font-size:var(--rw-t-small);color:var(--rw-ink-2)}
.rw-summaryline::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--rw-attention-mark)}

/* ---------- Figures ---------- */
.rw-figs{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));border-top:1px solid var(--rw-line);border-bottom:1px solid var(--rw-line)}
.rw-fig{padding:var(--rw-s5) var(--rw-s5) var(--rw-s5) 0;display:grid;gap:6px;align-content:start;min-width:0}
.rw-fig+.rw-fig{padding-left:var(--rw-s5);border-left:1px solid var(--rw-line)}
.rw-fig__label{font-size:var(--rw-t-small);color:var(--rw-ink-2);font-weight:500}
.rw-fig__value{font-size:var(--rw-t-title);font-weight:500;letter-spacing:-.03em;line-height:1.05;font-variant-numeric:tabular-nums}
.rw-fig__sub{font-size:var(--rw-t-small);color:var(--rw-ink-3)}
.rw-fig__bar{display:flex;gap:2px;height:6px;border-radius:3px;overflow:hidden;background:var(--rw-track);margin-top:6px}
.rw-fig__bar i{display:block;height:100%}
.rw-fig svg{display:block;max-width:100%}
.rw-key{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:var(--rw-t-label);color:var(--rw-ink-2)}
.rw-key span{display:inline-flex;align-items:center;gap:6px}
.rw-key span::before{content:"";width:8px;height:8px;border-radius:2px;background:var(--k,var(--rw-ink))}

/* Value story: how a figure was reached, one term at a time */
.rw-story{display:grid;gap:var(--rw-s4)}
.rw-sum{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--rw-s3) var(--rw-s4)}
.rw-term{display:grid;gap:4px;min-width:0}
.rw-term b{font-size:var(--rw-t-h2);font-weight:500;letter-spacing:-.02em;line-height:1.1;font-variant-numeric:tabular-nums}
.rw-term span{font-size:var(--rw-t-small);color:var(--rw-ink-2);max-width:18ch}
.rw-result{display:flex;align-items:flex-start;gap:var(--rw-s3) var(--rw-s4)}
.rw-term .rw-ref{font-size:11.5px}
.rw-op{font-size:var(--rw-t-h2);color:var(--rw-ink-3);line-height:1.1;font-weight:400}
.rw-term--result b{color:var(--rw-ink)}
.rw-term--result{padding-left:var(--rw-s4);border-left:2px solid var(--rw-gold)}

/* Source card */
.rw-source{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--rw-s2) var(--rw-s4);padding:var(--rw-s4) 0;border-bottom:1px solid var(--rw-line)}
.rw-source__icon{width:36px;height:44px;border-radius:4px;border:1px solid var(--rw-line);background:var(--rw-white);position:relative}
.rw-source__icon::after{content:"";position:absolute;inset:10px 8px auto;height:14px;background:repeating-linear-gradient(var(--rw-field) 0 1px,transparent 1px 4px)}
.rw-source__title{font-weight:500}
.rw-source__quote{margin:6px 0 0;font-size:var(--rw-t-body);color:var(--rw-ink-2);max-width:var(--rw-measure)}
.rw-source__quote::before{content:"“"}.rw-source__quote::after{content:"”"}

/* ---------- Pack card (the one card on a stage page) ---------- */
.rw-pack{display:grid;grid-template-columns:150px minmax(0,1fr);gap:var(--rw-s5) var(--rw-s6);padding:var(--rw-s5) var(--rw-s6) var(--rw-s5) var(--rw-s5)}
.rw-thumb{aspect-ratio:3/4;max-width:100%;border-radius:6px;background:var(--rw-paper);border:1px solid var(--rw-line);box-shadow:0 1px 2px rgba(17,17,17,.05);padding:12% 11%;display:grid;align-content:start;gap:5px}
.rw-thumb b{display:block;height:5px;border-radius:2px;background:var(--rw-ink);width:62%}
.rw-thumb i{display:block;height:3px;border-radius:2px;background:var(--rw-field)}
.rw-thumb em{display:block;height:2px;width:22%;background:var(--rw-gold);margin:4px 0 8px}
.rw-pack__counts{display:flex;flex-wrap:wrap;gap:var(--rw-s2) var(--rw-s5);padding:var(--rw-s4) var(--rw-s6) var(--rw-s4) var(--rw-s5);border-top:1px solid var(--rw-line);font-size:var(--rw-t-small);color:var(--rw-ink-2);align-items:center}
.rw-pack__counts b{color:var(--rw-ink);font-weight:600;font-variant-numeric:tabular-nums}
.rw-pack__counts .rw-link{margin-left:auto;font-size:var(--rw-t-small)}

/* Path: where a stage is */
.rw-path{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;list-style:none;margin:0;padding:0}
.rw-path li{position:relative;padding-top:20px;font-size:var(--rw-t-small);color:var(--rw-ink-3)}
.rw-path li::before{content:"";position:absolute;top:4px;left:0;width:9px;height:9px;border-radius:50%;background:var(--rw-paper);box-shadow:inset 0 0 0 1.5px var(--rw-field-hover);z-index:1}
.rw-path li::after{content:"";position:absolute;top:8px;left:9px;right:0;height:1px;background:var(--rw-line)}
.rw-path li:last-child::after{display:none}
.rw-path li.done{color:var(--rw-ink-2)} .rw-path li.done::before{background:var(--rw-ink);box-shadow:none} .rw-path li.done::after{background:var(--rw-ink)}
.rw-path li.now{color:var(--rw-ink);font-weight:500} .rw-path li.now::before{background:var(--rw-gold);box-shadow:0 0 0 4px var(--rw-gold-wash)}
.rw-path small{display:block;font-weight:400;color:var(--rw-ink-3);font-size:var(--rw-t-label)}

/* ---------- Ask panel ---------- */
.rw-ask{display:grid;grid-template-rows:auto 1fr auto;background:var(--rw-white);border-left:1px solid var(--rw-line);min-height:100%}
.rw-ask__head{display:flex;align-items:center;justify-content:space-between;padding:var(--rw-s4) var(--rw-s5);border-bottom:1px solid var(--rw-line)}
.rw-ask__body{padding:var(--rw-s5);display:grid;gap:var(--rw-s4);align-content:start}
.rw-ask__q{justify-self:end;max-width:85%;background:var(--rw-wash);border-radius:14px 14px 4px 14px;padding:10px 14px}
.rw-ask__a{display:grid;gap:var(--rw-s2)}
.rw-ask__foot{padding:var(--rw-s4) var(--rw-s5) var(--rw-s5);display:grid;gap:var(--rw-s2)}
.rw-ask__box{display:flex;align-items:flex-end;gap:var(--rw-s2);border:1px solid var(--rw-line);border-radius:14px;padding:8px 8px 8px 14px;background:var(--rw-white);transition:box-shadow var(--rw-fast) var(--rw-ease),border-color var(--rw-fast)}
.rw-ask__box:focus-within{border-color:var(--rw-field);box-shadow:0 1px 2px rgba(17,17,17,.04),0 8px 20px -12px rgba(17,17,17,.22)}
.rw-ask__box input{flex:1;border:0;outline:none;background:none;min-height:30px;font-size:var(--rw-t-body);min-width:0}
.rw-ask__send{width:32px;height:32px;border-radius:50%;border:0;background:var(--rw-ink);color:var(--rw-white);display:grid;place-items:center;cursor:pointer}

/* ---------- Empty state ---------- */
.rw-empty{display:grid;justify-items:start;gap:var(--rw-s3);padding:var(--rw-s6) 0}
.rw-empty__art{width:64px;height:48px}
.rw-empty p{margin:0;max-width:52ch;color:var(--rw-ink-2)}

/* ---------- Shell (Layout 2 rail and page) ---------- */
.rw-shell{display:grid;grid-template-columns:240px minmax(0,1fr);background:var(--rw-paper);min-height:100%}
.rw-rail{background:var(--rw-rail);color:var(--rw-rail-text);padding:26px 16px 18px;display:flex;flex-direction:column;gap:4px;font-size:var(--rw-t-small)}
.rw-logo{font-size:21px;font-weight:600;letter-spacing:-.04em;padding:0 8px}
.rw-logo i{color:var(--rw-gold);font-style:normal}
.rw-eng{margin:22px 8px 10px;padding-bottom:16px;border-bottom:1px solid var(--rw-rail-line)}
.rw-eng small{display:block;color:var(--rw-rail-muted);font-size:var(--rw-t-label)}
.rw-eng b{display:block;font-weight:500;margin-top:4px}
.rw-nav-h{color:var(--rw-rail-muted);font-size:var(--rw-t-label);padding:14px 10px 6px}
.rw-nav a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:9px;color:var(--rw-rail-text);text-decoration:none}
.rw-nav a:hover{background:#222220}
.rw-nav a .n{color:var(--rw-rail-muted);font-variant-numeric:tabular-nums;width:12px}
.rw-nav a .d{margin-left:auto;width:6px;height:6px;border-radius:50%;background:var(--rw-positive-mark)}
.rw-nav a.on{background:var(--rw-gold);color:var(--rw-ink);font-weight:500}
.rw-nav a.on .n{color:var(--rw-ink)}
.rw-nav a.sub{margin-left:22px;padding:6px 10px;color:var(--rw-rail-muted);font-size:var(--rw-t-label);border-radius:0;border-left:1px solid var(--rw-rail-line)}
.rw-nav a.sub.on{background:none;color:var(--rw-white);border-left:2px solid var(--rw-white);font-weight:500}
.rw-top{display:flex;align-items:center;gap:10px;height:56px;padding:0 var(--rw-s6);border-bottom:1px solid var(--rw-line);font-size:var(--rw-t-small);color:var(--rw-ink-2)}
.rw-top b{font-weight:500;color:var(--rw-ink)}
.rw-top .rw-find-key{margin-left:auto;display:flex;align-items:center;gap:8px}
.rw-top kbd{font:var(--rw-t-label) var(--rw-mono);border:1px solid var(--rw-field-hover);border-radius:5px;padding:0 5px}
.rw-page{padding:var(--rw-s6) var(--rw-s6) var(--rw-s7);display:grid;gap:var(--rw-s6);max-width:var(--rw-page-max);min-width:0}
.rw-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--rw-s2) var(--rw-s5);align-items:start}
.rw-head .rw-title{margin-top:4px}
.rw-head .rw-sub{margin:6px 0 0;font-size:var(--rw-t-small);color:var(--rw-ink-3)}

/* ---------- Motion ---------- */
@keyframes rw-in{from{opacity:0}to{opacity:1}}
@keyframes rw-rise{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
@keyframes rw-drop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.rw *,.rw *::before,.rw *::after{animation:none!important;transition:none!important}}

/* ---------- Narrow screens ---------- */
@media (max-width:760px){
  .rw-shell{grid-template-columns:minmax(0,1fr)}
  .rw-rail{display:none}
  .rw-top,.rw-page{padding-left:var(--rw-s4);padding-right:var(--rw-s4)}
  .rw-prop{grid-template-columns:minmax(0,1fr);gap:0;padding:6px 0}
  .rw-prop__label{padding-top:0}
  .rw-group{padding:var(--rw-s5) var(--rw-s4) var(--rw-s4)}
  .rw-pack{grid-template-columns:minmax(0,1fr);padding:var(--rw-s4);gap:var(--rw-s4)}
  .rw-thumb{width:88px}
  .rw-pack__counts{padding:var(--rw-s3) var(--rw-s4)}
  .rw-pack__counts .rw-link{margin-left:0}
  .rw-head{grid-template-columns:minmax(0,1fr)}
  .rw-fig{padding:var(--rw-s4) 0}
  .rw-fig+.rw-fig{padding-left:0;border-left:0;border-top:1px solid var(--rw-line)}
  .rw-path{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:var(--rw-s4)}
  .rw-path li:nth-child(2)::after{display:none}
}
/* T-086 + T-300 (#1268) — Ask the system, Solutions v057's companion (cs.css .cs-askbtn, .cs-cp*, .cs-msg*, .cs-pills,
   .cs-compose, .cs-send, .cs-thinking), renamed ask-*. Kit tokens only. The panel is fixed to the right edge and runs the
   full height (the product's topbar scrolls with the page, v057's did not); the page and the topbar make room for it. */
.ask-button{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:4px 12px;border-radius:8px;border:1px solid var(--pi-control);background:var(--pi-white);color:var(--pi-text);font-size:13.5px;font-weight:500;cursor:pointer}
.ask-button:hover{border-color:var(--pi-ink)}
.ask-button[aria-expanded="true"]{border-color:var(--pi-ink);background:var(--pi-ink);color:#fff}
.ask-button svg{width:16px;height:16px}
.ask-panel{position:fixed;top:0;right:0;bottom:0;width:380px;max-width:100%;background:#faf9f5;border-left:1px solid var(--pi-line);box-shadow:-12px 0 32px rgba(17,17,17,.06);display:grid;grid-template-rows:auto minmax(0,1fr) auto;z-index:40;color:var(--pi-ink)}
/* The Owner, 13 Oct, from a picture of Claude's own project chat: no rules between the parts, a quiet title with
   its mark at the top left, the conversation as plain reading text, records in thin rounded boxes, and one long
   rounded question box with the send key inside it on the right. */
.ask-head{display:flex;align-items:center;gap:10px;padding:14px 16px 10px}
.ask-head>svg{width:18px;height:18px;flex:none;color:var(--pi-secondary)}
.ask-head>div{flex:1;min-width:0}
.ask-head b{font-size:15px;font-weight:500}
.ask-head small{display:block;font-size:12px;color:var(--pi-muted);overflow-wrap:anywhere}
.ask-log{overflow:auto;padding:12px 16px 20px;display:grid;gap:22px;align-content:start}
.ask-me{justify-self:end;max-width:85%;background:#efede6;border-radius:12px;padding:8px 13px;font-size:14.5px;line-height:1.5;overflow-wrap:anywhere}
.ask-sys{display:grid;gap:10px;font-size:14.5px;line-height:1.6;min-width:0}
.ask-sys p{margin:0;overflow-wrap:anywhere}
/* The speaker is named for a screen reader only: Claude's chat draws no name or avatar over an answer. */
.ask-sys>b{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ask-sys>button{justify-self:start}
.ask-card{background:rgba(255,255,255,.55);border:1px solid #e4e1d8;border-radius:12px;padding:10px 14px;display:grid;gap:8px}
.ask-card h4{margin:0;font-size:12.5px;font-weight:500;color:var(--pi-secondary)}
.ask-card ul{margin:0;padding:0;list-style:none;display:grid;gap:6px}
.ask-card li{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:13.5px}
.ask-card li span{min-width:0;overflow-wrap:anywhere}
.ask-card li a{flex:none}
/* #1867 An answer's points, and what you could do next, as short lists. */
.ask-points{margin:0;padding-left:18px;display:grid;gap:6px}
.ask-points li{overflow-wrap:anywhere;padding-left:2px}
.ask-points li::marker{color:var(--pi-secondary)}
.ask-card[data-testid="ask-not-known"] li,.ask-card.ask-next li{display:list-item;list-style:disc;margin-left:18px}
.ask-muted{color:var(--pi-muted);font-size:13px}
.ask-prop p{margin:0;font-size:13.5px;overflow-wrap:anywhere}
.ask-prop s{color:var(--pi-muted)}
.ask-foot{padding:6px 16px 16px;display:grid;gap:8px;background:#faf9f5}
.ask-foot .pi-refused{margin:0}
/* DW-5 — the suggested questions wrap onto a second line rather than run off the edge: each one is read whole. */
.ask-pills{display:flex;flex-wrap:wrap;gap:6px}
.ask-pills button{flex:none;min-height:30px;padding:3px 10px;border-radius:8px;border:1px solid #e4e1d8;background:rgba(255,255,255,.55);font-size:12.5px;white-space:nowrap;cursor:pointer}
.ask-pills button:hover:not(:disabled){border-color:var(--pi-control)}
.ask-pills button:disabled{opacity:.55;cursor:default}
/* The question box as Claude's chat draws it: one long rounded box, a single line until the words need more (it
   grows, then scrolls), the send key inside on the right, faint until there is something to send. Enter sends,
   Shift+Enter starts a new line. Clicking in deepens the edge and lifts the box a little, no ring. While an answer
   is coming the send key is Stop. */
.ask-compose{display:flex;align-items:flex-end;gap:8px;border:1px solid #dedbd2;border-radius:14px;background:var(--pi-white);padding:9px 8px 9px 16px;box-shadow:0 1px 2px rgba(17,17,17,.03);transition:border-color 120ms ease,box-shadow 120ms ease;cursor:text}
.ask-compose:hover{border-color:#cfcbc0}
.ask-compose:focus-within{border-color:#bdb8ac;box-shadow:0 2px 10px rgba(17,17,17,.07)}
.ask-compose textarea{flex:1;border:0;resize:none;font:inherit;font-size:14.5px;line-height:1.5;min-height:22px;max-height:160px;padding:4px 0;background:transparent;outline:none;min-width:0;width:100%;field-sizing:content}
.ask-compose textarea::placeholder{color:var(--pi-muted)}
/* The box shows the focus, so the words carry no ring of their own; a question too long marks the box. */
.ask-compose textarea:focus-visible{box-shadow:none;border:0}
.ask-compose:has(textarea[aria-invalid=true]){border-color:var(--pi-gap)}
.ask-compose-row{display:flex;flex:none}
.ask-send{width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:var(--pi-ink);display:grid;place-items:center;flex:none;cursor:pointer}
.ask-send:hover:not(:disabled){background:#f0eee8}
.ask-send:disabled{color:#b9b5ab;cursor:default}
.ask-send svg{width:17px;height:17px}
.ask-stop{background:var(--pi-ink);color:#fff;border-radius:50%}
.ask-stop:hover:not(:disabled){background:#333}
.ask-stop svg{width:12px;height:12px}
.ask-thinking{display:flex;gap:4px;padding:4px 0}
.ask-thinking i{width:6px;height:6px;border-radius:50%;background:var(--pi-muted);animation:ask-blink 1s infinite}
.ask-thinking i:nth-child(2){animation-delay:.15s}
.ask-thinking i:nth-child(3){animation-delay:.3s}
@keyframes ask-blink{0%,100%{opacity:.25}50%{opacity:1}}
/* The Owner, 12-13 Oct — full width is Claude's chat page: the panel covers the page, the conversation and the box
   share one wide reading column, the type is reading size and the turns have room between them. */
.ask-panel.is-wide{width:100%;border-left:0;box-shadow:none}
.ask-panel.is-wide .ask-log,.ask-panel.is-wide .ask-foot{padding-inline:max(16px,calc((100% - 880px) / 2))}
.ask-panel.is-wide .ask-foot{padding-bottom:28px}
.ask-panel.is-wide .ask-head{padding:18px 28px 12px}
.ask-panel.is-wide .ask-head b{font-size:16px}
.ask-panel.is-wide .ask-log{padding-top:28px;padding-bottom:40px;gap:36px}
.ask-panel.is-wide .ask-me{font-size:16px;padding:10px 16px;border-radius:14px;max-width:75%}
.ask-panel.is-wide .ask-sys{font-size:16px;line-height:1.65;gap:14px}
.ask-panel.is-wide .ask-card{padding:12px 16px;border-radius:14px}
.ask-panel.is-wide .ask-card h4{font-size:13.5px}
.ask-panel.is-wide .ask-card li,.ask-panel.is-wide .ask-prop p{font-size:15px}
.ask-panel.is-wide .ask-pills button{font-size:13.5px;min-height:34px;padding:4px 12px;border-radius:10px}
.ask-panel.is-wide .ask-compose{border-radius:16px;padding:12px 10px 12px 20px}
.ask-panel.is-wide .ask-compose textarea{font-size:16px;max-height:240px}
.ask-panel.is-wide .ask-send{width:34px;height:34px}
.ask-panel.is-wide .ask-stop{border-radius:50%}
.ask-panel.is-wide .ask-foot .ask-muted{font-size:14px}
body.ask-wide{overflow:hidden}
/* From 1024 px the page and the topbar make room; below it the panel lies over the page, as v057's does. */
@media (min-width:1024px){body.ask-open .pi-main{padding-right:calc(380px + 28px)}body.ask-open .pi-topbar{padding-right:calc(380px + 24px)}}
@media (min-width:1151px){body.ask-open .pi-main{padding-right:calc(380px + 36px)}}
/* DW-5 — with the panel open the page is narrower than the viewport says: below 1600 px the Solutions head stacks, so
   Start a business case keeps its one line instead of squashing beside the title. */
@media (min-width:1024px) and (max-width:1599px){
  body.ask-open .pi-solutions .pi-vhead{flex-direction:column;align-items:stretch}
  body.ask-open .pi-solutions .pi-vhead-act{justify-items:start;text-align:left}
  body.ask-open .pi-solutions .pi-has-emblem.pi-emblem-end{padding-right:0}
  body.ask-open .pi-solutions .pi-emblem-end>.pi-emblem{display:none}
}
@media (max-width:759px){.ask-panel{width:100%}.pi .ask-widen{display:none}.ask-button span{display:none}.ask-button{padding:4px 8px}}
@media (prefers-reduced-motion:reduce){.ask-thinking i{animation:none}.ask-compose{transition:none}}
@media (forced-colors:active){.ask-panel{border-left:1px solid CanvasText}.ask-compose:focus-within{outline:2px solid Highlight}.ask-sys>b i{forced-color-adjust:none}}
/* #1588 Version 2's panel in the one button set the Owner chose (19 Oct): main and second buttons 44 px with
   16 px text, the suggested questions as 38 px choices, every other action a 15 px link. Solutions' own panel is unchanged. */
.ask-button.ask-v2{min-height:44px;padding:0 20px;gap:10px;border-radius:999px;border-color:var(--pi-ink);font-size:16px;font-weight:400}
.ask-button.ask-v2 svg{width:18px;height:18px}
@media (max-width:759px){.ask-button.ask-v2{width:44px;padding:0;justify-content:center}}
.pi.ask-panel.ask-v2 .pi-button{min-height:44px;padding:0 20px;font-size:16px;border-radius:999px}
.pi.ask-panel.ask-v2 .pi-prop-acts{gap:16px}
.pi.ask-panel.ask-v2 .pi-inline{font-size:15px;text-underline-offset:4px;text-decoration-thickness:1px}
.ask-v2 .ask-pills{gap:8px}
.ask-v2 .ask-pills button,.ask-panel.ask-v2.is-wide .ask-pills button{min-height:38px;padding:0 16px;border-radius:999px;border:1px solid var(--pi-ink);background:var(--pi-white);color:var(--pi-ink);font-size:14px}
.ask-v2 .ask-pills button:hover:not(:disabled){border-color:var(--pi-ink);background:#f1efe9}
.ask-v2 .ask-discard{margin:4px 0 0}
/* #1751 + #1810 (Group 12) — Version 2's answer as steps (Ask answers v001, option B): numbered steps, each proposal on
   paper with Accept, Leave out and Change; a decided step ticked, with Undo. Advice sits apart from the facts. */
.ask-v2 .ask-advice{background:var(--rw-gold-wash,#f8f1dc);border-color:transparent}
.ask-v2 .ask-advice p{margin:0;font-size:14px;line-height:1.5}
.ask-v2 .ask-advice .ask-advice-note{font-size:12.5px;color:var(--rw-ink-2,#5f5e5a)}
.ask-v2 .ask-steps-card{background:transparent;border:0;padding:0}
.ask-v2 .ask-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;counter-reset:ask-step}
.ask-v2 .ask-step{position:relative;display:block;border:1px solid var(--rw-line,#e7e4dd);border-radius:12px;padding:12px 14px 13px 42px;background:var(--pi-white,#fff);font-size:13.5px}
.ask-v2 .ask-step::before{counter-increment:ask-step;content:counter(ask-step);position:absolute;left:12px;top:12px;width:22px;height:22px;border-radius:50%;background:var(--rw-paper,#faf9f6);font:600 12.5px/22px var(--pi-font);text-align:center;color:var(--rw-ink-2,#5f5e5a)}
.ask-v2 .ask-step.is-done::before{content:"";background:var(--rw-positive-mark,#2fa96b) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat}
.ask-v2 .ask-step.is-out::before{color:var(--rw-ink-3,#75736d)}
.ask-v2 .ask-step-title{display:block;font-size:15.5px;font-weight:600;line-height:1.4}
.ask-v2 .ask-step-why{margin:3px 0 0;line-height:1.5;color:var(--rw-ink-2,#5f5e5a)}
.ask-v2 .ask-step-rec{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;margin-top:7px}
.ask-v2 .ask-step-rec span{min-width:0;overflow-wrap:anywhere}
.ask-v2 .ask-step-prop{margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--rw-paper,#faf9f6)}
.ask-v2 .ask-step-prop p{margin:0;overflow-wrap:anywhere}
.ask-v2 .ask-step-lab{font-size:12.5px;font-weight:500;color:var(--rw-gold-text,#725900)}
.ask-v2 .ask-step-what{font-size:15.5px;line-height:1.45;color:var(--rw-ink,#111)}
.ask-v2 .ask-step-what s{color:var(--rw-ink-2,#5f5e5a)}
.ask-v2 .ask-step-prop .ask-step-note{margin-top:4px;font-size:12.5px;color:var(--rw-ink-3,#75736d)}
.ask-v2 .ask-step-acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:10px}
.pi.ask-panel.ask-v2 .ask-step-acts .pi-button{min-height:38px;font-size:13.5px;padding:0 16px}
.pi.ask-panel.ask-v2 .ask-step-acts .pi-inline,.pi.ask-panel.ask-v2 .ask-step-done .pi-inline{font-size:13.5px;color:var(--rw-ink-2,#5f5e5a)}
.ask-v2 .ask-step-done{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;margin:8px 0 0;font-size:13.5px;color:var(--rw-positive,#207849)}
.ask-v2 .ask-step-done.is-out{color:var(--rw-ink-3,#75736d)}
.ask-v2 .ask-step-done:focus{outline:none}
.ask-v2 .ask-step-done:focus-visible{outline:2px solid var(--rw-ink,#111);outline-offset:2px;border-radius:2px}
.ask-v2 .ask-step-form{display:grid;gap:10px;margin-top:8px}
.ask-v2 .ask-step-form label{display:grid;gap:4px;font-size:12.5px;font-weight:500;color:var(--rw-ink-2,#5f5e5a)}
.ask-v2 .ask-step-form textarea,.ask-v2 .ask-step-form select{box-sizing:border-box;width:100%;padding:8px 12px;border:1px solid var(--rw-line,#e7e4dd);border-radius:10px;background:#fff;font:400 15.5px/1.5 var(--pi-font);color:var(--pi-text);resize:vertical}
.ask-v2 .ask-step-form fieldset{border:0;margin:0;padding:0;display:grid;gap:2px}
.ask-v2 .ask-step-form legend{padding:0;margin-bottom:2px;font-size:12.5px;font-weight:500;color:var(--rw-ink-2,#5f5e5a)}
.ask-v2 .ask-step-form .ask-step-radio{display:flex;gap:10px;align-items:center;padding:6px 0;font-size:15.5px;font-weight:400;color:var(--rw-ink,#111)}
.ask-v2 .ask-step-radio input{width:18px;height:18px;margin:0;accent-color:var(--rw-choice,#3e5f6e);flex:none}
.ask-v2 .ask-step-radio small{margin-left:6px;font-size:13.5px;color:var(--pi-secondary)}
@media (max-width:420px){.ask-v2 .ask-step{padding-left:38px}.ask-v2 .ask-step::before{left:10px}}
/*
 * Structural styles for the app-UI shell + screens ([[D118]]). Ported from the
 * ratified Fable-5 rebuild study ([[D136]]). Consumes the semantic tokens from
 * tokens.css. ONE documented exception ([[D115]]): the fixed DARK NAVY rail chrome
 * needs light-on-navy values the light token set doesn't carry, so the rail uses
 * `--ink-heading`/`--accent` tokens PLUS a small set of white/rgba literals below
 * (a Nocturne theme, [[D141]], would fold these into a token set).
 */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

/* #2026 — every page sits on the kit's Paper. */
html,
body {
  background: var(--rw-paper, #faf9f6);
}

a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal-bright); outline-offset: 1px; }

/* ==== accessibility, shared ([[T-112]]) ======================================
 * WCAG 2.2 Level AA is the target for every built, user-facing app surface in
 * the shipping light theme. The rules in this block are the shared half of that:
 * one skip relationship, one focus indicator, one reflow posture, one local-
 * scroll rule, and the two automatic fallbacks. `src/app/ui/a11y-contract.ts` is
 * the executable statement of what they must hold, and
 * `tests/ui.accessibility.test.ts` measures them in real Chrome at 1440, 1024 and
 * 720 CSS px plus the 320 CSS px reflow fixture.
 *
 * ★ WHAT THIS BLOCK IS NOT. It is not a component library, not a second
 * interaction grammar and not a mobile mode. Every rule below applies at every
 * supported width; the one width-conditional rule is the reflow rule, and it
 * moves the SAME twelve rail items into a band rather than substituting a
 * navigation mode for them.
 * ========================================================================== */

/* The first tab stop in the document is the kit's `.pi-skip` ([[T-259]]):
   off-screen until focused and fully ON screen when it is. Its target is the
   `main` landmark's own id, which `ShellFrame.tsx` owns and `a11y-contract.ts`
   spells once. */
/* ONE focus indicator, and it is never `outline: none`. `:focus-visible` alone
   would leave any element a surface focuses programmatically (the `main`
   landmark after a skip, a restored return point after a governed operation)
   with no indicator at all, so the ring is on `:focus` as well and the
   `:focus:not(:focus-visible)` case is narrowed back to the elements the
   platform already draws a caret in. */
:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-offset); }
a:focus-visible, button:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-offset); }
/* The `main` landmark is a full-bleed scroll owner that clips an OUTWARD ring
   at its own edge, so its ring is drawn inward. Same width, same colour, same
   visibility. ★ [[T-259]] `main` also carries the kit's `.pi-main`, whose
   `:focus { outline: none }` would otherwise take the ring away after a skip;
   `main.shell-main` outranks it, so the House ring stays. */
main.shell-main:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: calc(-1 * (var(--focus-ring-width) + var(--focus-ring-offset)));
}
/* A scroll owner reserves the ring when it scrolls a focused descendant into
   view; without this the ring is the first thing the edge eats. */
.shell-main, .wb-table-wrap, [data-local-scroll] {
  scroll-padding: calc(var(--focus-ring-width) + var(--focus-ring-offset) + 2px);
}

/* Target size (SC 2.5.8, MINIMUM). A native check box or radio renders at about
   13 CSS px, which is under the 24 px floor, and the spacing exception does not
   rescue it inside a form grid where the next control is closer than 24 px. It
   is sized to the floor rather than given a hit-area trick that the ring would
   then not follow. Nothing else in this app is under the floor: `.btn` is 40 px
   and `.eng-field` controls are 41 px. */
input[type="checkbox"], input[type="radio"] {
  min-width: var(--target-min);
  min-height: var(--target-min);
}

/* Reflow (SC 1.4.10) — no page-level horizontal scrollbar at any supported
   width, and none at the 320 CSS px measurement either. Long refs, titles,
   validation messages and translated-length strings wrap rather than push the
   page wider; `break-word` breaks only a word that would overflow, so ordinary
   prose is unaffected. */
.eng-page, .wb-page, .shell-main { max-width: 100%; overflow-wrap: break-word; }
.wb-mono, .wb-crumb, .eng-code, .type-chip, .wb-value-text { overflow-wrap: anywhere; }
img, video { max-width: 100%; height: auto; }

/* THE ONLY ADMITTED HORIZONTAL OVERFLOW is a local scroller around a
   two-dimensional data table. `wb-table-wrap` is that container and keeps the
   posture [[T-023B]] gave it; what is added is the obligation, not a new
   scroller: an admitted owner is named, keyboard-reachable, and may not conceal
   a focus ring, a label or the current row. `[data-local-scroll]` is the same
   contract for any future one — declaring the attribute is how a container
   enters `a11y-contract.ts`'s admitted set rather than reading as an accident. */
[data-local-scroll] { overflow-x: auto; max-width: 100%; }
.wb-table-wrap:focus-visible, [data-local-scroll]:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: calc(-1 * var(--focus-ring-width));
}

/* ==== the shell ([[T-259]], [[D283]]) =======================================
   The frame — the rail, the topbar, the phone drawer and Find — is Paper and
   Ink's Ink shell, drawn by the vendored `paper-and-ink/shell.css` and seated by
   `shell-bridge.css`. What stays here is `main`'s own House posture, which its
   content was laid out against and keeps: a full-height column that owns its
   content's overflow, so no page widens the document at the 320 px reflow
   width ([[T-112]] `REFLOW_FIXTURE_WIDTH`). */

.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }

/* ==== shared surfaces ======================================================= */

/* State pill — traced study values: Fragment Mono 700, .04em, 4px radius,
   3px 8px pad. The status GLYPH (○/✓/✕) rides in the label text. Proposed &
   rejected fills are TRANSPARENT (they sit on --canvas in the detail head and
   must show it through); only Confirmed carries a green tint. Border tints are
   study literals (#b9dfc4 / #f1b9b4) — softer than the full status hue. */
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): the type rule on this screen. Labels take the one label style (sans 12.5px, weight 600, normal case, no letter spacing); dates stay mono, normal case, no letter spacing; counts and numbers are sans with tabular figures; refs stay mono. */
.pill {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  padding: 3px 8px;
  line-height: 1.5;
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  background: transparent;
  white-space: nowrap;
}
.pill--confirmed { color: var(--conf-high-text); background: var(--state-accepted-tint); border-color: #b9dfc4; }
.pill--rejected { color: var(--state-rejected); background: transparent; border-color: #f1b9b4; }
.pill--proposed { color: var(--ink-muted); background: transparent; }
.pill--warn { color: var(--warn-text); background: var(--warn-tint); border-color: var(--warn-soft); }

/* The entity-type CHIP — traced study values: solid type colour, WHITE text,
   Fragment Mono 700 10px, letter-spacing .1em, radius 5px, padding 5px 10px
   (the type word carries the colour → "colour never carries status alone" holds). */
.type-chip {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  background: var(--type-color, var(--signal));
  color: #fff;
  border-radius: 5px;
  padding: 5px 10px;
  white-space: nowrap;
}

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--high { background: var(--conf-high); }
.dot--medium { background: var(--conf-medium); }
.dot--low { background: var(--ink-muted); }
/* Confidence label — study renders it mono 600 in every context (queue meta,
   detail head, cluster node). Colour still never alone: glyph + word + hue. */
.conf--high { color: var(--conf-high-text); font-weight: 600; }
.conf--medium { color: var(--conf-medium); font-weight: 600; }
.conf--low { color: var(--ink-muted); font-weight: 600; }

/* Action buttons — traced study values: 700 weight, 10px 18px pad (primary
   10px 24px), 8px radius ([[D143]]). Reject carries the soft red border tint
   (#f1b9b4) at rest, not just on hover. */
.btn {
  font: inherit; font-size: var(--text-small); font-weight: 700; padding: 10px 18px;
  border-radius: var(--radius-ctrl); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-secondary); cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--signal); color: var(--signal); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* Primary — house button rule ([[D134]]): rest navy/white → hover orange/navy. */
.btn--primary { background: var(--ink-heading); border-color: var(--ink-heading); color: #fff; padding: 10px 24px; }
.btn--primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--ink-heading); }
.btn--danger { color: var(--state-rejected); border-color: #f1b9b4; }
.btn--danger:hover { border-color: var(--state-rejected); color: var(--state-rejected); }

/* ★ T-340 part 3 ([[#922]]) — the R&A Proposals queue / detail split and its
   rules (`.ra`, `.ra-*`, `.raf`, `.qc*`, `.cl-*`, `.q-guard`, `.empty`,
   `.ra-focus-note`, and `.ra-page` / `.qc-ref` / `.ra-cite` in the reflow lists) went
   with `ProposalsScreen.tsx`: Review & Assurance (v010) is drawn on Paper and
   Ink by `review-assurance/review-assurance.css`, which also carries the
   Generate control's rules now. */

/* ==== T-021 engagement list / create / landing ==============================
   The three bounded browser surfaces this item adds. They are DELIBERATELY not
   the shell: the rail is engagement-scoped and workspace-shaped ([[D129]]), and
   these three screens exist before an engagement is chosen (or, on the landing,
   before any workspace is). Every value below is a token or a house literal
   already in this file — no new palette, no new type scale, no new density. */

.eng-page { max-width: 62rem; margin: 0 auto; padding: 40px 24px 64px; display: flex; flex-direction: column; gap: 18px; }

.eng-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 16px; }
.eng-overline { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; grid-column: 1; margin: 0; color: var(--ink-muted); }
.eng-client { grid-column: 1; margin: 0; font-size: var(--text-small); font-weight: 600; color: var(--ink-secondary); }
.eng-title { grid-column: 1; margin: 2px 0 0; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-heading); line-height: 1.15; }
.eng-subtitle { margin: 0 0 8px; font-size: var(--text-body); font-weight: 700; color: var(--ink-heading); }

.eng-status { margin: 0; font-size: var(--text-small); color: var(--ink-muted); }
.eng-listnote { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; margin: 0; color: var(--ink-muted); }

/* The empty state — an explicit surface with the create action IN it, not a
   greyed line that reads as "still loading". */
.eng-empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-data); padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.eng-empty-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink-heading); }
.eng-empty-body { margin: 0 0 6px; max-width: 62ch; color: var(--ink-secondary); font-size: var(--text-small); }

.eng-code { font-family: var(--font-mono); font-size: var(--mono-label); color: var(--ink-secondary); }

/* The landing's fact list. */
.eng-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-data); padding: 18px 20px; }
.eng-fact dt { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.eng-fact dd { margin: 4px 0 0; font-size: var(--text-small); color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.eng-fact-note { color: var(--ink-muted); }
.eng-description { margin: 0; max-width: 70ch; color: var(--ink-secondary); font-size: var(--text-small); }
.eng-stagelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.eng-stage { display: flex; align-items: baseline; gap: 10px; font-size: var(--text-small); }
.eng-stage-num { font-family: var(--font-ui); font-variant-numeric: tabular-nums; color: var(--ink-muted); min-width: 1.4em; }
.eng-stage-name { color: var(--ink); }

/* [[T-017]] The Overview's stage-move region. One row per stage: the name and
   its state word on one line, the moves BOS offered under it. Both lines wrap
   rather than push the page sideways — this surface is measured for no
   page-level horizontal overflow at 1440, 1024, 720 and 320 CSS px, and a long
   stage name beside a long destination label is exactly what would break it. */
.eng-moves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.eng-move { display: flex; flex-direction: column; gap: 6px; }
.eng-move-head { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: var(--text-small); }
.eng-move-state { color: var(--ink-muted); }
.eng-move .eng-actions { flex-wrap: wrap; }

/* The create form. One column, ordinary controls — no form framework ([[D143]]
   radii, the existing .btn, and the token type scale). */
.eng-form { display: flex; flex-direction: column; gap: 18px; }
.eng-fieldset { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-data); background: var(--surface); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.eng-fieldset:disabled { opacity: 0.6; }
.eng-legend { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 0 6px; color: var(--ink-muted); }
.eng-field { display: flex; flex-direction: column; gap: 5px; }
.eng-label { font-size: var(--text-small); font-weight: 600; color: var(--ink-secondary); }
.eng-optional { font-weight: 400; color: var(--ink-muted); }
.eng-hint { margin: 0; font-size: var(--text-small); color: var(--ink-muted); max-width: 70ch; }
.eng-field input, .eng-field select, .eng-field textarea {
  font: inherit; font-size: var(--text-body); color: var(--ink);
  padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-ctrl);
  background: var(--surface); resize: vertical;
}
.eng-field input:focus-visible, .eng-field select:focus-visible, .eng-field textarea:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-offset); }
.eng-actions { display: flex; align-items: center; gap: 10px; }
.eng-actions .btn { text-decoration: none; display: inline-flex; align-items: center; }
.eng-actions .btn:hover { text-decoration: none; }

/* A refusal, rendered the SAME way on all three surfaces. The kind is carried by
   the title and the message; the tint only agrees with them (colour never alone). */
.eng-refusal { border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius-ctrl); background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.eng-refusal[data-kind="authentication"] { border-left-color: var(--signal); }
.eng-refusal[data-kind="authorization"],
.eng-refusal[data-kind="cross_origin"] { border-left-color: var(--state-rejected); }
.eng-refusal[data-kind="validation"] { border-left-color: var(--warn-soft); background: var(--warn-tint); }
.eng-refusal[data-kind="domain"] { border-left-color: var(--warn); }
.eng-refusal[data-kind="unavailable"] { border-left-color: var(--ink-muted); }
.eng-refusal-title { margin: 0; font-size: var(--text-body); font-weight: 700; color: var(--ink-heading); }
.eng-refusal-message { margin: 0; font-size: var(--text-small); color: var(--ink-secondary); max-width: 74ch; }
.eng-refusal-details { margin: 2px 0 0; padding-left: 1.2em; font-size: var(--text-small); color: var(--ink-secondary); }
.eng-refusal-action { margin: 2px 0 0; font-size: var(--text-small); }
.eng-refusal-step { margin: 0 0 6px; font-size: var(--text-small); font-weight: 600; color: var(--ink-secondary); }

/* ---------------------------------------------------------------------------
   T-023A — the Assumption workbench (Owner-approved V2, 2026-08-22).

   The permanent production workbench: the existing shell, the existing tokens,
   the existing controls. Every value below is a token or a house literal already
   in this file — no new palette, no new type scale, no new density. The 1440 px
   content bound is the approved production width; the record's two-column split
   collapses below it rather than shrinking either pane past readability.

   ★ STATUS IS CARRIED IN WORDS. `data-outcome` and `data-tone` only tint what a
   sentence beside them already says, so every state here reads correctly with
   the stylesheet switched off.
   --------------------------------------------------------------------------- */

.wb-page { max-width: 1440px; margin: 0 auto; padding: 32px 28px 64px; display: flex; flex-direction: column; gap: 18px; width: 100%; overflow-y: auto; }

.wb-head { display: flex; flex-direction: column; gap: 4px; }
.wb-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wb-crumb { background: none; border: 0; padding: 0; font: inherit; color: var(--signal); cursor: pointer; text-decoration: underline; }

.wb-list { display: flex; flex-direction: column; gap: 14px; }
.wb-list-actions { display: flex; flex-direction: column; gap: 10px; }

/* The bounded list, as the approved design reads it: one row per assumption,
   reference first, and the two status vocabularies side by side and distinct. */
/* ★ [[T-023B]] THE WRAP SCROLLS SIDEWAYS RATHER THAN CLIPPING. A six-column
   list is wider than 720px, and a table that overflows its container with no
   way to reach the far columns is a dead end at the narrowest supported
   width. Nothing about the rows, the row control or the focus behaviour
   changes; the columns simply stay reachable. */
.wb-table-wrap { display: flex; flex-direction: column; gap: 10px; max-width: 100%; overflow-x: auto; }
.wb-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-data); overflow: hidden; }
.wb-table th { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; text-align: left; background: var(--surface-raised); color: var(--ink-muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.wb-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: var(--text-small); color: var(--ink); vertical-align: top; }
.wb-table tr:last-child td { border-bottom: 0; }
.wb-table td.wb-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-secondary); }

/* One row opens one assumption. The pointer gesture is on the row and the REAL
   control is the button in the naming cell — tabbable, activated by Enter or
   Space, outlined by the house `:focus-visible` rule. `:focus-within` tints the
   whole row so the keyboard shows the same row the pointer would have opened. */
.wb-table tbody tr.wb-row { cursor: pointer; }
.wb-table tbody tr.wb-row:hover td { background: var(--surface-raised); }
.wb-table tbody tr.wb-row:focus-within td { background: var(--signal-tint); }
/* The open assumption stays marked whatever the pointer is over. */
.wb-table tbody tr[data-selected="true"] td, .wb-table tbody tr[data-selected="true"]:hover td { background: var(--signal-tint); }
.wb-row-open { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.wb-row-open:hover .wb-cell-title, .wb-row-open:focus-visible .wb-cell-title { color: var(--signal); text-decoration: underline; }
.wb-cell-title { font-size: var(--text-body); font-weight: 600; color: var(--ink-heading); line-height: var(--leading-title); }
.wb-origin { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--signal); }

/* One opened assumption: the record on the left, the acts on the right rail. */
.wb-detail { display: flex; flex-direction: column; gap: 16px; }
.wb-detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 424px; gap: 20px; align-items: start; }
@media (max-width: 1080px) { .wb-detail-columns { grid-template-columns: minmax(0, 1fr); } }
.wb-detail-main, .wb-detail-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* [[T-023B2B]] One server-projected lifecycle block. The primary transition is
   visually first; the remaining transitions and Close stay separate. */
.wb-lifecycle-primary { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.wb-lifecycle-other { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.wb-lifecycle-close { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* Pattern 6 — the governed-operation confirmation. The scrim deliberately has
   no dismissal handler: pointer users leave through the same named controls as
   keyboard users. The dialog owns vertical overflow; the page never does. */
.govop-layer { position: fixed; inset: 0; z-index: 240; display: grid; place-items: center; padding: 16px; }
.govop-scrim { position: absolute; inset: 0; background: rgba(6, 31, 84, 0.52); }
.govop-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-data);
  box-shadow: 0 20px 60px rgba(6, 31, 84, 0.3);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-padding: calc(var(--focus-ring-width) + var(--focus-ring-offset) + 4px);
}
.govop-dialog:focus-visible { outline-offset: calc(-1 * var(--focus-ring-width)); }
.govop-title { margin: 0; }
.govop-consequence { margin: 0; color: var(--ink); line-height: 1.55; }
.govop-judgement textarea { width: 100%; resize: vertical; min-height: 96px; }
.govop-outcome { margin: 0; border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius-ctrl); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; color: var(--ink-secondary); }
.govop-outcome strong { color: var(--ink-heading); }
.govop-outcome[data-tone="pending"] { border-left-color: var(--signal); }
.govop-outcome[data-tone="success"] { border-left-color: var(--conf-high); }
.govop-outcome[data-tone="refused"] { border-left-color: var(--state-rejected); }
.govop-outcome[data-tone="conflict"], .govop-outcome[data-tone="unknown"] { border-left-color: var(--warn); background: var(--warn-tint); }
/* An answered problem is not the same event as no answer at all: it reads as a
   refusal that also needs a reload, so it carries the refused edge over the
   unresolved tint. The `data-tone` attribute and the announced words carry the
   distinction; the colour only agrees with them. */
.govop-outcome[data-tone="failed"] { border-left-color: var(--state-rejected); background: var(--warn-tint); }
.govop-actions { justify-content: flex-end; flex-wrap: wrap; }

@media (max-width: 560px) {
  .govop-layer { padding: 8px; }
  .govop-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); padding: 18px 16px; }
  .govop-actions { align-items: stretch; flex-direction: column; }
  .govop-actions .btn { justify-content: center; width: 100%; }
}

.wb-record-head { display: flex; flex-direction: column; gap: 8px; }
.wb-record-ids { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.wb-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-data); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.wb-form { display: flex; flex-direction: column; gap: 14px; }
.wb-field { gap: 5px; }
.wb-field--check { flex-direction: column; }
/* [[T-023B3]] the opted-in boolean's three named choices. The box is the shared
   `.eng-fieldset`; this only tightens the spacing between the three rows, and
   the marked-invalid rule below reaches its inputs through the same selector
   every other field uses. */
.wb-field--choice { gap: 8px; padding: 12px 16px 14px; }
.wb-field--choice[data-invalid="true"] { border-color: var(--state-rejected); }
.wb-field[data-invalid="true"] input, .wb-field[data-invalid="true"] textarea, .wb-field[data-invalid="true"] select { border-color: var(--state-rejected); }
.wb-field-mark { margin: 0; font-size: var(--text-small); font-weight: 600; color: var(--state-rejected); }
.wb-check { display: flex; align-items: center; gap: 8px; }
.wb-check input { width: auto; }
/* [[T-023B4]] T-107 family 9 — the repeatable compound object, generically.
   The box is the shared `.eng-fieldset`; what is added is the ordered list of
   instances, each a named group of its members. Nothing here scrolls sideways:
   the members wrap, so a narrow viewport stacks them rather than clipping them. */
.wb-repeater { gap: 10px; padding: 14px 16px 16px; }
.wb-repeater-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.wb-repeater-item { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.wb-repeater-item:first-child { padding-top: 0; border-top: 0; }
.wb-repeater-name { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-heading); }
.wb-repeater-members { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px 16px; }
.wb-repeater-controls { display: flex; flex-wrap: wrap; gap: 8px; }
/* [[T-122]] The repeater's live region is in the document from the start, so a
   screen reader is listening before the first act. Until it has something to
   say it takes no room in the fieldset's column (an absolutely placed box is
   not a flex item, so it adds no gap) and stays in the accessibility tree. */
/* [[T-122]] An item's members share a row, and a four-line box sits beside
   one-line ones. The keyboard scrolls a one-line control into view and Chrome
   then leaves its taller neighbour partly past the scroller's edge, ring and
   all, because a partly visible control is not scrolled again when it takes
   focus. So a one-line member is brought into view with room below it for the
   row's tallest sibling. */
.wb-repeater-members input, .wb-repeater-members select { scroll-margin-block-end: 96px; }
.wb-repeater-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* [[T-525]] the repeater's TABLE look (`layout="table"`, open membership only),
   drawn as the old Discovery scope table (Evidence v047, evidence.css `.ev-areatable`
   on main 486231f4) with up and down beside the ×: the legend as its `h3`, the hint
   as its `.pi-fine`, the member labels once as its column heads, one row of boxes
   per item with no line between rows, three quiet round icons at the row's end and
   Add as the kit's small button. Each box keeps its full name, visually hidden; the
   live region still speaks, unseen. Under 640px a row stacks, each box under its
   member label, with a hairline between rows and the icons at the row's top right. */
.wb-repeater--table { min-width: 0; border: 0; border-radius: 0; background: none; padding: 0; gap: 0; --wb-repeater-acts: 94px; }
.wb-repeater--table > .eng-legend { padding: 0; margin: 0 0 6px; font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--pi-ink, var(--ink-heading)); }
.wb-repeater--table > legend + .eng-hint { margin: 0 0 8px; max-width: none; font-size: 12.5px; line-height: 1.5; color: var(--pi-muted, var(--ink-muted)); }
.wb-repeater--table > .wb-field-mark { margin: 0 0 8px; }
.wb-repeater--table .wb-label-hidden, .wb-repeater--table .wb-repeater-name, .wb-repeater--table .wb-repeater-ends, .wb-repeater--table .wb-repeater-status { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wb-repeater--table .wb-repeater-heads, .wb-repeater--table .wb-repeater-item { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; }
.wb-repeater--table .wb-repeater-heads { padding: 0 0 8px; border-bottom: 1px solid var(--pi-line, var(--line)); }
.wb-repeater--table .wb-repeater-heads::after { content: ""; flex: 0 0 var(--wb-repeater-acts); }
.wb-repeater--table .wb-repeater-heads span { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; flex: 1 1 0; min-width: 0; line-height: 1.4; color: var(--pi-muted, var(--ink-muted)); }
.wb-repeater--table .wb-repeater-list { gap: 0; }
.wb-repeater--table .wb-repeater-item, .wb-repeater--table .wb-repeater-item:first-child { position: relative; padding: 6px 0 0; border: 0; }
.wb-repeater--table .wb-repeater-cell { flex: 1 1 0; min-width: 0; }
.wb-repeater--table .wb-repeater-heads span:first-child, .wb-repeater--table .wb-repeater-cell:first-of-type { flex: 0 0 22%; }
.wb-repeater--table .wb-repeater-cell .eng-field { gap: 4px; }
/* The old textareas. The doubled class and the :not()s outweigh the kit's `.pi .pi-inform` boxes, which are wider than their column. */
.wb-repeater.wb-repeater--table .wb-repeater-cell :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { display: block; width: 100%; min-width: 0; min-height: 40px; margin: 0; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--pi-line, var(--line)); border-radius: 8px; background: var(--pi-white, var(--surface)); box-shadow: none; font: inherit; font-size: 14.5px; line-height: 1.45; color: var(--pi-text, var(--ink)); }
.wb-repeater.wb-repeater--table .wb-repeater-cell textarea { resize: vertical; field-sizing: content; }
.wb-repeater.wb-repeater--table .wb-repeater-cell :is(input:not([type=checkbox]):not([type=radio]), select, textarea):hover { border-color: var(--pi-control, var(--line)); }
.wb-repeater.wb-repeater--table .wb-repeater-cell :is(input:not([type=checkbox]):not([type=radio]), select, textarea):focus { outline: none; border-color: var(--pi-ink, var(--ink)); box-shadow: inset 0 0 0 1px var(--pi-ink, var(--ink)); }
.wb-repeater.wb-repeater--table .wb-repeater-cell :is(input:not([type=checkbox]):not([type=radio]), select, textarea)[aria-invalid=true] { border-color: var(--pi-gap, var(--state-rejected)); box-shadow: inset 0 0 0 1px var(--pi-gap, var(--state-rejected)); }
.wb-repeater--table .wb-repeater-cell-head { display: none; }
/* Three fixed slots, tight together; a missing move leaves its slot empty. */
.wb-repeater--table .wb-repeater-controls { flex: 0 0 var(--wb-repeater-acts); display: grid; grid-template-columns: repeat(3, 30px); gap: 2px; margin-top: 5px; }
.wb-repeater--table .wb-repeater-slot { width: 30px; height: 30px; }
.wb-repeater--table .wb-repeater-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; min-height: 30px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: none; color: var(--pi-secondary, var(--ink-secondary)); cursor: pointer; }
.wb-repeater--table .wb-repeater-icon .pi-i svg { width: 16px; height: 16px; }
.wb-repeater--table .wb-repeater-icon:hover { border-color: var(--pi-line, var(--line)); color: var(--pi-ink, var(--ink)); }
/* Add is the kit's `pi-button pi-button--small`, as the old one; only its place is set here. */
.wb-repeater--table > .wb-repeater-add { align-self: flex-start; margin-top: 10px; }
.wb-repeater--table .wb-repeater-icon:focus-visible, .wb-repeater--table > .wb-repeater-add:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-offset); }
@media (max-width: 640px) {
  .wb-repeater--table .wb-repeater-heads { display: none; }
  .wb-repeater--table .wb-repeater-item, .wb-repeater--table .wb-repeater-item:first-child { display: block; padding: 10px 0; border-bottom: 1px solid var(--pi-hairline, var(--line-soft)); }
  .wb-repeater--table .wb-repeater-cell { padding: 2px 0; }
  .wb-repeater--table .wb-repeater-cell-head { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--pi-muted, var(--ink-muted)); }
  .wb-repeater--table .wb-repeater-cell:first-of-type .wb-repeater-cell-head { display: flex; align-items: flex-end; min-height: 30px; padding-right: calc(var(--wb-repeater-acts) + 8px); }
  .wb-repeater--table .wb-repeater-controls { position: absolute; top: 10px; right: 0; margin-top: 0; }
}
/* [[T-023B3]] one scope item's classification, in words. It is text and never a
   tint: the three readings are distinguishable with no colour at all. */
.wb-classification { margin: 0; font-weight: 600; color: var(--ink); }
.wb-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0; }
.wb-stack { display: flex; flex-direction: column; gap: 12px; }

.wb-substitution { display: flex; flex-direction: column; gap: 12px; }
.wb-substitution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 20px; }

/* The read-only record: labelled values, never a greyed-out form. */
.wb-values { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.wb-values-group { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-ctrl); padding: 12px 14px; }
.wb-values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 20px; }
.wb-value { display: flex; flex-direction: column; gap: 3px; }
.wb-value dt { margin: 0; }
.wb-value-text { margin: 0; font-size: var(--text-small); color: var(--ink); white-space: pre-wrap; }

/* A read-only affordance. It says WHAT cannot be done and what can be done
   instead; the left border only agrees with the words. */
.wb-readonly { border: 1px dashed var(--line); border-left-width: 3px; border-left-style: solid; border-radius: var(--radius-ctrl); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.wb-readonly[data-outcome="refuse"] { border-left-color: var(--warn); }
.wb-readonly[data-outcome="abstain"] { border-left-color: var(--ink-muted); }
.wb-readonly[data-outcome="absent"] { border-left-color: var(--ink-muted); }
.wb-readonly-label { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; margin: 0; color: var(--ink-muted); }
.wb-readonly-note { margin: 0; font-size: var(--text-small); color: var(--ink-secondary); max-width: 74ch; }

/* The derived validation line, and the saved line. Presentation only — they
   store nothing, send nothing and gate nothing. */
.wb-banner, .wb-note { margin: 0; border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius-ctrl); padding: 10px 12px; font-size: var(--text-small); color: var(--ink-secondary); background: var(--surface); max-width: 90ch; }
.wb-banner strong, .wb-note strong { color: var(--ink-heading); }
.wb-banner[data-tone="validated"] { border-left-color: var(--conf-high); }
.wb-banner[data-tone="in-progress"] { border-left-color: var(--signal); }
.wb-banner[data-tone="outstanding"] { border-left-color: var(--warn); }
.wb-banner[data-tone="disagree"] { border-left-color: var(--warn); background: var(--warn-tint); }
.wb-banner[data-tone="rejected"] { border-left-color: var(--state-rejected); }
.wb-banner[data-tone="unstated"] { border-left-color: var(--ink-muted); }
.wb-note[data-tone="saved"] { border-left-color: var(--conf-high); }

/* The signed-out view. It is SHELL-FREE by CONSTRUCTION: the surface renders
   this INSTEAD of the shell, so the rail, the engagement crumb and their links
   are absent from the document rather than covered by a panel over them. It is
   therefore an ordinary full-height view and not a fixed overlay — there is
   nothing underneath it to overlay. */
.wb-signedout { min-height: 100vh; background: var(--canvas); display: flex; align-items: center; justify-content: center; padding: 24px; }
.wb-signedout-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-data); padding: 32px 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 46rem; }
.wb-signedout-card .btn { margin-top: 8px; text-decoration: none; display: inline-flex; align-items: center; }
.wb-signedout-card .btn:hover { text-decoration: none; }

/* ---------------------------------------------------------------------------
   T-023B — FOUNDATIONS: the records menu, the disclosure groups and the
   setup-check panel.

   ★ EVERY STATE HERE READS WITHOUT THE STYLESHEET. The current record type
   carries `aria-current` and says "Current" in words, a disclosure group is a
   real `details`/`summary`, and a setup check says "Met" or "Not met yet" — the
   tints below only agree with what is already written.

   ★ AND THE THREE SUPPORTED WIDTHS ARE HANDLED BY REFLOW, NOT BY HIDING. At
   1440 and 1024 the record's rail sits beside the form (`.wb-detail-columns`,
   T-023A); at 720 it stacks under it, the group grid falls to one column, the
   list scrolls sideways and the records menu becomes a bottom sheet. No control
   is removed at any width.
   --------------------------------------------------------------------------- */

/* --- the temporary Foundations records menu (T-023B correction) -------------

   ★ ONE TEMPORARY SURFACE, TWO LAYOUTS. `.fnd-menu` is the same element and the
   same markup at every width: anchored under the trigger on a wide screen, a
   bottom sheet over a solid scrim on a narrow one. Semantics, order, copy and
   focus behaviour do not change with the width, and nothing is hidden to make
   the switch.

   ★ IT IS OUT OF FLOW EVERYWHERE, so opening it resizes nothing. The workbench
   below keeps the width the removed permanent rail used to take.

   ★ GLASS IS A LAYERING CUE AND NEVER THE CONTRAST, AND IT IS THE ANCHORED
   DESKTOP MENU'S ALONE. The panel's tint is ~74% opaque BEFORE the blur is
   considered; every piece of text on it is full-opacity ink, and the current,
   hover, pressed and focus states are opaque fills and opaque outlines. Remove
   the blur and nothing becomes unreadable — which is exactly what the two
   fallbacks below and the narrow bottom sheet all do. */

.fnd-records { position: relative; z-index: 40; align-self: flex-start; }

.fnd-trigger { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 12.5px; padding: 8px 12px; border-radius: var(--radius-ctrl); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background 180ms cubic-bezier(0.4, 0, 0.2, 1), border-color 180ms cubic-bezier(0.4, 0, 0.2, 1); }
.fnd-trigger:hover { border-color: #b9c6da; background: #f7faff; }
/* An OPAQUE focus ring, wider than the house default, because this control is
   the only way back to the map once the menu is closed. */
.fnd-trigger:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.fnd-trigger-workspace { color: var(--ink-muted); font-weight: 500; }
.fnd-trigger-sep { color: #8fa0c9; }
.fnd-trigger-current { color: var(--ink-heading); font-weight: 700; }
.fnd-chevron { color: var(--ink-muted); font-size: 13px; line-height: 1; transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1); }
.fnd-trigger[aria-expanded="true"] .fnd-chevron { transform: rotate(180deg); }

/* The dismissal layer. Transparent on a wide screen — it catches the click and
   claims no pixels; a solid navy scrim on a narrow one, where the sheet covers
   the workspace and the page beneath must read as set aside. */
.fnd-scrim { position: fixed; inset: 0; z-index: 1; background: transparent; }

.fnd-menu {
  --fnd-menu-rule: rgba(6, 31, 84, 0.1);
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 324px;
  max-width: calc(100vw - 32px);
  z-index: 2;
  border-radius: var(--radius-data);
  overflow: hidden;
  /* ~74% opaque cool-white over a navy-tinted wash, one fine light border, one
     soft layered navy shadow, one gentle top highlight. The blur is a finish. */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2) 52%), rgba(240, 245, 252, 0.74);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(6, 31, 84, 0.12), 0 2px 6px rgba(6, 31, 84, 0.08), 0 18px 44px rgba(6, 31, 84, 0.18);
  animation: fnd-menu-in 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* Opacity and position only — the blur is never animated. */
@keyframes fnd-menu-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes fnd-sheet-in { from { opacity: 0; transform: translateY(14px); } }

.fnd-menu-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px 6px; }
.fnd-menu-overline { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.fnd-menu-close { margin-left: auto; font: inherit; font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-ctrl); border: 1px solid var(--line); background: var(--surface); color: var(--ink-secondary); cursor: pointer; }
.fnd-menu-close:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.fnd-menu-list { display: flex; flex-direction: column; }
.fnd-record { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; color: var(--ink); padding: 9px 14px 9px 11px; border-left: 3px solid transparent; text-decoration: none; }
.fnd-record-label { flex: 1; }
/* Hover and pressed are OPAQUE fills, so they read at full strength over
   whatever the panel happens to be floating above. */
.fnd-record:hover { background: var(--surface); color: var(--ink-heading); text-decoration: none; }
.fnd-record:active { background: var(--signal-tint); }
/* Drawn INSIDE the row, so the ring sits on the opaque fill rather than on the
   translucent edge of the panel. */
.fnd-record:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.fnd-record.is-current { background: var(--surface); border-left-color: var(--accent); color: var(--ink-heading); font-weight: 700; }
.fnd-record-tag { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--conf-high-text); background: #e9f5ee; border: 1px solid #cbe7d6; border-radius: var(--radius-ctrl); padding: 2px 7px; white-space: nowrap; }
.fnd-record-tag.is-current { color: var(--accent-text); background: transparent; border-color: transparent; padding: 2px 0; }

.fnd-later-head { display: block; padding: 8px 14px 4px; border-top: 1px solid var(--fnd-menu-rule); margin: 6px 0 0; }
/* Plain text: no link, no button, no `tabindex`, nothing that takes focus and
   nothing that looks pressable. A record type with no surface is named, not
   offered. */
.fnd-later { list-style: none; margin: 0; padding: 0 0 4px; display: flex; flex-direction: column; }
.fnd-later-item { font-size: var(--text-small); color: var(--ink-muted); padding: 5px 14px; line-height: 1.35; }
.fnd-menu-note { margin: 2px 0 0; padding: 8px 14px 12px; font-size: 11px; line-height: 1.5; color: var(--ink-muted); border-top: 1px solid var(--fnd-menu-rule); }

/* The two automatic fallbacks. Both replace the glass with a solid near-opaque
   panel and change NOTHING else — same markup, same order, same copy, same
   focus behaviour. The demonstration-only Glass/Solid and blur controls from
   the design study are deliberately not shipped: nothing here is switchable by
   hand. */
@media (prefers-reduced-transparency: reduce) {
  .fnd-menu {
    --fnd-menu-rule: var(--line-soft);
    background: #f7faff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: var(--line);
    box-shadow: 0 2px 6px rgba(6, 31, 84, 0.1), 0 18px 44px rgba(6, 31, 84, 0.16);
  }
}
@supports not ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .fnd-menu {
    --fnd-menu-rule: var(--line-soft);
    background: #f7faff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: var(--line);
    box-shadow: 0 2px 6px rgba(6, 31, 84, 0.1), 0 18px 44px rgba(6, 31, 84, 0.16);
  }
}


.stk-setup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-data); padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.stk-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stk-check { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: var(--text-small); color: var(--ink); }
.stk-check-state { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; border: 1px solid var(--line); border-radius: var(--radius-ctrl); padding: 2px 8px; white-space: nowrap; }
.stk-check[data-satisfied="true"] .stk-check-state { border-color: var(--conf-high-text); color: var(--conf-high-text); }
.stk-check[data-satisfied="false"] .stk-check-state { border-color: var(--warn-text); color: var(--warn-text); }
.stk-check-label { color: var(--ink-heading); }

.stk-groups { display: flex; flex-direction: column; gap: 10px; }
.stk-group { border: 1px solid var(--line); border-radius: var(--radius-ctrl); padding: 10px 12px; }
.stk-group[open] { padding-bottom: 14px; }
.stk-group-summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; list-style: revert; }
.stk-group-summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.stk-group-label { font-weight: 600; color: var(--ink-heading); font-size: var(--text-small); }
.stk-group > .wb-form, .stk-group > .wb-values { margin-top: 12px; }
.stk-group .wb-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 20px; }
.stk-group .wb-form .wb-field--check { grid-column: 1 / -1; }

.wb-cell-sub { font-size: var(--text-small); color: var(--ink-secondary); }

.wb-banner[data-tone="sponsor"] { border-left-color: var(--conf-high); }
.wb-banner[data-tone="not-sponsor"] { border-left-color: var(--ink-muted); }

/* 720px — the narrowest supported width. Everything stacks; nothing goes away. */
@media (max-width: 760px) {
  .wb-page { padding: 20px 16px 48px; }
  .stk-group .wb-form { grid-template-columns: minmax(0, 1fr); }
  /* The same panel, re-seated as a temporary bottom sheet over a SOLID scrim.
     Same markup, same order, same Close — only the seat changes.

     ★ AND THE SHEET IS SOLID, BECAUSE GLASS IS THE DESKTOP MENU'S ALONE. The
     approved treatment confines glassmorphism to the anchored desktop menu; a
     sheet sitting on a scrim that has already set the page aside has nothing
     left to layer over, so it takes the same near-opaque panel the two
     fallbacks below use. Semantics, order, copy and focus behaviour are
     identical in every seat — only the finish differs. */
  .fnd-scrim { background: rgba(6, 31, 84, 0.42); }
  .fnd-menu { position: fixed; top: auto; left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; --fnd-menu-rule: var(--line-soft); background: #f7faff; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--line); box-shadow: 0 2px 6px rgba(6, 31, 84, 0.1), 0 18px 44px rgba(6, 31, 84, 0.16); animation: fnd-sheet-in 180ms cubic-bezier(0.4, 0, 0.2, 1); }
  .fnd-later { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
}

/* Calm by default and still by request. The entrance is the only motion, and it
   goes away entirely rather than being shortened. LAST in the file on purpose:
   it has to beat the bottom sheet's own entrance above as well as the anchored
   menu's. The blur is never animated, in either seat. */
@media (prefers-reduced-motion: reduce) {
  .fnd-menu { animation: none; }
  .fnd-trigger, .fnd-chevron { transition: none; }
}

/* ==== the two automatic fallbacks ([[T-112]]) ================================
 * LAST in the file on purpose: both have to beat every rule above them,
 * including the two `.fnd-menu` entrances and the bottom sheet.
 * ========================================================================== */

/* Reduced motion (SC 2.3.3). Motion goes away rather than being shortened, and
   it goes away for everything — a later surface that adds an animation inherits
   the fallback instead of having to remember one. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Forced colours (SC 1.4.1 / 1.4.11 in a forced palette). Every tint, fill and
   left rule this app uses to SECOND a state is gone in forced colours, which is
   exactly why colour is never the only carrier — each of these also states the
   word. What is restored here is the BOUNDARY, so a pill, a guard, a refusal and
   a read-only panel are still bounded objects, and the focus ring, so it is
   still visible against a palette this file did not choose. */
@media (forced-colors: active) {
  :root {
    --focus-ring: Highlight;
    --focus-ring-inverse: Highlight;
  }
  .pill, .stk-check-state, .wb-readonly, .wb-banner, .wb-note,
  .eng-refusal, .wb-panel, .wb-table, .type-chip, .dot,
  .govop-dialog, .govop-outcome {
    border: 1px solid CanvasText;
  }
  /* The current table row is marked by fill in the light theme; in forced
     colours the fill is the system's selection pair, so "current" survives the
     palette change. (The rail's current item is the kit's, [[T-259]].) */
  .wb-table tbody tr[data-selected="true"] td { background: Highlight; color: HighlightText; }
  /* A dot is a shape, not a word — it keeps an outline so it does not vanish
     into the canvas. */
  .dot { forced-color-adjust: none; background: CanvasText; }
}

/* ===========================================================================
   [[T-023B4]] The Foundations Overview.

   ★ [[T-259]] THE GROUP TAB ROW LEFT. The four groups are sections in the rail
   now, and Framing's Views are the kit's underline tabs under the page head.

   ★ AND NOTHING HERE SCROLLS SIDEWAYS. The panels are ordinary flow. The page
   keeps `.wb-page`'s vertical-only overflow.
   =========================================================================== */

.ovw-page { gap: 22px; }
.ovw-panel { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius-card, 8px); background: var(--surface); padding: 18px 20px; }
.ovw-panel--lower { border-top: 3px solid var(--line); }
.ovw-heading { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink-heading); }
.ovw-heading:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.ovw-note { margin: 0; font-size: var(--text-small); color: var(--ink-muted); max-width: 80ch; line-height: 1.5; }
.ovw-state { margin: 0; font-size: 13px; color: var(--ink-secondary); }
.ovw-saved { margin: 0; font-size: 13px; font-weight: 600; color: var(--conf-high-text); }

.ovw-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ovw-stage { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.ovw-stage-name { flex: 1 1 12rem; min-width: 0; font-size: 13px; color: var(--ink); }
.ovw-stage-state { font-size: 12px; font-weight: 600; color: var(--ink-heading); }
.ovw-stage-current { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--accent-text); }

.ovw-result-grid { display: flex; flex-wrap: wrap; gap: 26px; margin: 0; }
.ovw-result-cell dt { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.ovw-result-cell dd { margin: 2px 0 0; }
.ovw-result-value { font-size: 24px; font-weight: 700; color: var(--ink-heading); line-height: 1.1; }
.ovw-result { display: flex; flex-direction: column; gap: 8px; }
/* T-265: the readiness count headline and the seven areas' states, read only. */
.ovw-result-headline { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink-heading); }
.ovw-subheading { margin: 6px 0 0; font-size: var(--text-small); font-weight: 700; color: var(--ink-heading); }
.ovw-areas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ovw-area { font-size: var(--text-small); }

.ovw-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ovw-field--wide { flex: 1 1 24rem; }

.ovw-actions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ovw-action { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.ovw-action-controls { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===========================================================================
   [[#338]] Engagement Tasks — the Overview region, the register's filter row
   and the contextual block.

   ★ NO NEW TOKEN, NO NEW COLOUR AND NO NEW COMPONENT. Every rule below is
   layout over the existing tokens: the task flags reuse `.wb-banner` /
   `.wb-origin` and their tones, the panels reuse `.wb-panel`, and the controls
   reuse `.eng-field`. A task's state is always carried by a WORD as well as by
   any tint, so nothing here states anything with colour alone.

   ★ AND NOTHING SCROLLS SIDEWAYS. The filter row and the task lists wrap; the
   register's own table keeps the one admitted local scroller it already had.
   =========================================================================== */

.eng-tasks { display: flex; flex-direction: column; gap: 10px; }
.eng-tasklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.eng-tasklist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }

.wb-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.wb-filters .eng-fieldset { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 14px 12px; }
.wb-filters .eng-field { min-width: 14rem; }
.eng-choice { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); }

/* The register's row-level flag: the same chip the origin marker uses, tinted
   only to SECOND the word it already carries. */
.wb-origin[data-tone="overdue"] { color: var(--state-rejected); }
.wb-origin[data-tone="stage-passed"] { color: var(--warn); }

/* Narrow layout: the filter row stacks rather than compressing its controls,
   and the contextual block sits full width under the record it belongs to. */
@media (max-width: 720px) {
  .wb-filters { flex-direction: column; align-items: stretch; }
  .wb-filters .eng-field { min-width: 0; }
  .eng-tasklist li { flex-direction: column; align-items: flex-start; gap: 3px; }
}

/* ===========================================================================
   B5 ([[#495]]) — withdrawn evidence.

   ★ THE WARNING IS CARRIED BY WORDS FIRST. Every line here states its fact in
   text — which record, which fact, which document, and "approved and frozen"
   where that applies — so the tint below only SECONDS what is already written,
   and nothing is stated by colour alone.

   ★ AND IT REUSES THE EXISTING TOKENS. `--warn`, `--line-soft` and the
   established radius/spacing scale; no new palette, no new type scale.
   =========================================================================== */

.withdrawn-evidence {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--warn);
  border-radius: 4px;
  font-size: 13px;
}
.withdrawn-evidence h4 { margin: 0 0 4px; font-size: 13px; color: var(--warn); }
.withdrawn-evidence p { margin: 0 0 6px; }
.withdrawn-evidence ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.withdrawn-evidence li { padding-left: 0; }

/* ===========================================================================
   [[#500]] × [[#495]] — TWO DIFFERENT MARKS NOW MEET ON THE SAME SCREEN, and
   they are told apart by WORDS FIRST and by two colours that are not each
   other's.

   · B5's withdrawn-evidence warning is about a RECORD: the facts beneath it
     were superseded. It is `--warn` (amber) and headed "Evidence withdrawn by
     a newer document".
   · #500's stale mark is about a PROPOSAL: the record moved past the version
     the change was written against, so the change can no longer be applied. It
     is `--state-rejected` and reads "Out of date".
   · #500's pending-change mark is neither a warning nor a refusal — it is a
     count and a link — so it is `--signal`, the informational tone.

   ★ THE THREE RULES ARE WRITTEN OUT RATHER THAN LEFT TO THE DEFAULT. All three
   selectors previously fell through to the neutral border and were distinct by
   accident; a record can carry the warning AND a pending change at once, so
   stating each colour is what stops a later edit collapsing two of them into
   one. None of them is `--warn`, and none states anything by colour alone.
   =========================================================================== */
.wb-readonly[data-outcome="stale"] { border-left-color: var(--state-rejected); }
.wb-note[data-tone="info"] { border-left-color: var(--signal); }

.affected-records { margin: 0 0 12px; font-size: 13px; }
.affected-records h3 { margin: 0 0 4px; font-size: 13px; }
.affected-records .count { font-weight: 700; }
.affected-records .empty, .affected-records .summary { margin: 0 0 6px; color: var(--ink-soft, inherit); }
.affected-records > ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.affected-records > ul > li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.affected-records .flags { list-style: none; margin: 3px 0 0; padding: 0 0 0 12px; display: flex; flex-direction: column; gap: 2px; }
.affected-records .frozen { margin: 4px 0 0; color: var(--warn); }
/* [[#495]] correction 1 — the section's real affordances: the resolution note,
   the re-confirm form, the continuation, and the in-page navigation that opens a
   record in the queue's own detail panel rather than sending a person to JSON. */
.affected-records .resolution { margin: 4px 0 2px; color: var(--ink-soft, inherit); }
.affected-records .note { margin: 0 0 6px; }
.affected-records .warn { margin: 0 0 6px; color: var(--warn); }
.affected-records .reconfirm { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 0; }
.affected-records .reconfirm textarea { min-height: 52px; font: inherit; }
.affected-records .reconfirm .judgement { display: flex; gap: 6px; align-items: flex-start; }
.affected-records .affected-more { margin: 8px 0 0; }
.affected-records .linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--link, inherit);
  text-decoration: underline; cursor: pointer;
}
/* [[#495]] correction 2, finding 4 — the two destinations a row can offer, and
   the honest line where neither exists. A link and a button sit side by side in
   this list, so they are given the same weight; the no-surface line is a
   statement and is deliberately not styled as something to press. */
.affected-records .affected-open, .affected-records .affected-edit { display: inline-block; }
.affected-records .no-surface { margin: 4px 0 0; color: var(--ink-soft, inherit); }

/* ==== [[T-026]] a record page's paper fills `main` (Correction 1.4) =========
   While a record page is open, the House page around it gives up its padding,
   width and gap and takes `main`'s whole height; the page itself — whose `.pi`
   paints the paper — carries the gutters and grows to that height, so no House
   band shows above, beside or below a short page. Layout only: no colour here,
   and the register around a closed page is untouched. */
.wb-page:has(> .pi-recpage) { max-width: none; padding: 0; gap: 0; flex: 1 1 auto; min-height: 0; }
.wb-page > .pi-recpage { flex: 1 0 auto; padding: 32px max(28px, calc((100% - 1384px) / 2)) 64px; }
@media (max-width: 760px) {
  .wb-page > .pi-recpage { padding: 20px 16px 48px; }
}
/* Paper and Ink 0.2.29, the kit's eight CSS files in the kit's load order ([[D281]]; 0.2.26 adopted by A17 under [[D249]]'s rule, 0.2.27 by Q7, 0.2.28 by V29;
   0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026) is the type rule: Instrument Sans for every word, Fragment Mono
   only for refs and dates, one label style (sans 12.5px, weight 600, normal case, no letter spacing), counts in sans with tabular figures).
   threads.css (the loose threads and the glass panel) loads after graphics.css, then dark.css (the dark parts).
   Every rule matches only inside .pi / .pi-*; the vendored files are byte-for-byte and never edited.
   See docs/design/PAPER_AND_INK_ADOPTION.md and manifest.json. */
/* Paper and Ink 0.2.0 (fonts and the label style 0.2.29). Opt in with .pi; never replace legacy root tokens. */
.pi {
 --pi-paper:#faf9f6; --pi-white:#ffffff; --pi-ink:#111111;
 --pi-text:#111111; --pi-secondary:#5f5e5a; --pi-muted:#75736d;
 --pi-line:#e7e4dd; --pi-hairline:#f0eee8; --pi-control:#76736c; --pi-field-line:#918e87; --pi-field-rest:#b3b0a8; --pi-field-hover:#8f8c85;
 --pi-gold:#c9a227; --pi-gold-text:#725900;
 --pi-positive:#207849; --pi-review:#925500; --pi-gap:#bc1935;
 --pi-inverse:#ffffff; --pi-inverse-muted:#c9c7c0; --pi-inverse-line:#76736c;
 --pi-focus:#111111; --pi-focus-inverse:#ffffff; --pi-focus-width:3px; --pi-focus-offset:3px;
 /* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): two faces, each with one job. Instrument Sans for every
    word; Fragment Mono only for refs (BEN-6, BC-1, TASK-4) and dates. next/font (src/app/layout.tsx) loads both under hashed family
    names exposed as --font-instrument / --font-fragment, so those come first (each var() carries the literal name as its own fallback, so
    a page without next/font, the specimen harness, still resolves); the literal names alone never matched the bundled faces.
    One label style: sans 12.5px, weight 600, normal case, no letter spacing (--pi-label-font). --pi-label is that size now. */
 --pi-font:var(--font-instrument,"Instrument Sans"),"Instrument Sans",system-ui,sans-serif; --pi-mono:var(--font-fragment,"Fragment Mono"),"Fragment Mono",ui-monospace,monospace;
 --pi-label-size:12.5px; --pi-label-weight:600; --pi-label-font:var(--pi-label-weight) var(--pi-label-size)/1.4 var(--pi-font);
 --pi-label:var(--pi-label-size); --pi-small:13px; --pi-body:16px; --pi-title:34px;
 --pi-number:clamp(32px,4vw,56px); --pi-leading:1.5;
 --pi-space-1:4px; --pi-space-2:8px; --pi-space-3:12px; --pi-space-4:16px;
 --pi-space-5:20px; --pi-space-6:24px; --pi-space-7:32px; --pi-space-8:40px;
 --pi-radius:16px; --pi-radius-inner:14px; --pi-pill:999px;
 --pi-target:40px; --pi-duration:180ms; --pi-duration-reduced:0ms; --pi-ease:cubic-bezier(.2,.8,.2,1);
 /* revision 2 · accepted v007 accents and sizes. Accents are for marks, bars and lines, never for text. */
 --pi-green:#2fa96b; --pi-amber:#f2a01f; --pi-red:#d21f3c;
 --pi-number-hero:clamp(40px,4vw,60px); --pi-number-card:clamp(28px,2.7vw,40px); --pi-number-cell:clamp(21px,1.75vw,26px);
 --pi-story:clamp(22px,2.3vw,30px);
 --pi-rise:600ms; --pi-stagger:70ms; --pi-draw:1800ms; --pi-grow:1200ms; --pi-count:900ms; --pi-pulse:2400ms;
 --pi-detail-shadow:0 18px 40px rgba(17,17,17,.10);
 /* 0.2.19 · the movement grammar (proposals/2026-09-28-movement-grammar.md): M1 fold · M2 glide · M3 slide · M4 grow · M5 arrive.
    Read by paper-and-ink/move.js (PaperMove). Under reduced motion nothing moves, whatever these say. */
 --pi-fold:280ms; --pi-glide-min:260ms; --pi-glide-max:560ms; --pi-slide-out:170ms; --pi-slide-in:300ms; --pi-slide-dist:48px;
 --pi-grow-line:300ms; --pi-arrive:260ms;
 --pi-ease-open:cubic-bezier(.2,.7,.2,1); --pi-ease-close:cubic-bezier(.4,0,.2,1); --pi-ease-leave:cubic-bezier(.4,0,1,1);
 /* 0.2.22 · the gold wash behind a proposal by the system (.pi-prop); the selected Views' literal #fffbee, now named. */
 --pi-gold-wash:#fffbee;
}
.pi{font-family:var(--pi-font);font-size:var(--pi-body);line-height:var(--pi-leading);background:var(--pi-paper);color:var(--pi-text);color-scheme:light}
.pi *{box-sizing:border-box}.pi [hidden]{display:none!important}.pi h1,.pi h2,.pi h3,.pi p{margin:0}.pi h1{font-size:var(--pi-title);line-height:1.1;letter-spacing:-1.2px;font-weight:600}.pi h2{font-size:22px;letter-spacing:-.5px}.pi h3{font-size:17px}.pi button,.pi input,.pi select{font:inherit}.pi button{cursor:pointer}.pi a{color:inherit;text-underline-offset:4px}.pi :focus-visible{outline:var(--pi-focus-width) solid var(--pi-focus);outline-offset:var(--pi-focus-offset)}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): one label style: .pi-label is sans 12.5px, weight 600, normal case, no letter spacing (was mono 11px uppercase). */
.pi-label{font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}.pi-small{font-size:var(--pi-small);color:var(--pi-secondary)}.pi-stack{display:grid;gap:var(--pi-space-4)}.pi-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--pi-space-3)}
.pi-card{padding:var(--pi-space-6);border:1px solid var(--pi-line);border-radius:var(--pi-radius);background:var(--pi-white);min-width:0;display:grid;align-content:start;gap:var(--pi-space-4)}.pi-card--paper{background:var(--pi-paper)}.pi-card--ink{background:var(--pi-ink);color:var(--pi-inverse);border-color:var(--pi-ink);--pi-focus:var(--pi-focus-inverse)}.pi-card--ink .pi-label,.pi-card--ink .pi-small{color:var(--pi-inverse-muted)}
.pi-status{display:inline-flex;align-items:center;gap:var(--pi-space-2);font-size:var(--pi-small);color:var(--pi-secondary)}.pi-dot{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:currentColor;border:1px solid currentColor}.pi-status[data-tone=positive]{color:var(--pi-positive)}.pi-status[data-tone=review]{color:var(--pi-review)}.pi-status[data-tone=gap]{color:var(--pi-gap)}.pi-status[data-tone=current]{color:var(--pi-gold-text)}.pi-status[data-tone=pending] .pi-dot{background:transparent}.pi-card--ink .pi-status{color:var(--pi-inverse)}
.pi-button{display:inline-flex;align-items:center;justify-content:center;min-height:var(--pi-target);padding:8px 18px;border:1px solid var(--pi-ink);border-radius:var(--pi-pill);background:var(--pi-white);color:var(--pi-ink);font-size:14px;line-height:1.35;text-decoration:none;transition:background-color var(--pi-duration) var(--pi-ease),color var(--pi-duration) var(--pi-ease);max-width:100%;white-space:normal}.pi-button:hover:not(:disabled),.pi-button[data-demo=hover]{background:var(--pi-ink);color:var(--pi-white)}.pi-button--gold{background:var(--pi-gold);color:var(--pi-ink);border-color:var(--pi-ink)}.pi-button:disabled{cursor:not-allowed;background:var(--pi-paper);color:var(--pi-muted);border-color:var(--pi-control);border-style:dashed}.pi-button[data-demo=focus]{outline:var(--pi-focus-width) solid var(--pi-focus);outline-offset:var(--pi-focus-offset)}
.pi-segments{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--pi-control);border-radius:24px;background:var(--pi-white);width:fit-content}.pi-segments .pi-button{border-color:transparent}.pi-segments [aria-pressed=true]{background:var(--pi-ink);color:var(--pi-white)}
.pi-number{display:grid;gap:4px;padding:16px 0;border-top:1px solid var(--pi-hairline)}.pi-number strong{font-size:var(--pi-number);font-weight:500;letter-spacing:-1.6px;font-variant-numeric:tabular-nums;line-height:1.1}.pi-number span{font-size:14px}.pi-number small{font-size:13px;color:var(--pi-muted)}
.pi-reason{border-left:3px solid var(--pi-control);padding:2px 0 2px 12px;font-size:14px}.pi-reason[data-tone=review]{border-color:var(--pi-review)}.pi-reason[data-tone=gap]{border-color:var(--pi-gap)}
.pi-work{display:grid;grid-template-columns:1fr auto;gap:16px;padding:16px 0;border-top:1px solid var(--pi-line);align-items:center}.pi-work>div{display:grid;gap:6px;min-width:0}.pi-work p{overflow-wrap:anywhere}
.pi-detail{border:1px solid var(--pi-control);border-radius:var(--pi-radius);padding:24px;background:var(--pi-white);color:var(--pi-ink);box-shadow:var(--pi-detail-shadow);width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto}.pi-detail::backdrop{background:rgb(17 17 17/.4)}.pi-detail header{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:24px}
.pi-field{display:grid;gap:6px;font-size:14px;min-width:0}.pi-field input,.pi-field select{width:100%;min-width:0;min-height:44px;border:1px solid var(--pi-control);border-radius:8px;padding:8px 12px;background:var(--pi-white);color:var(--pi-text)}.pi-field [aria-invalid=true]{border:2px solid var(--pi-gap)}.pi-error{color:var(--pi-gap);font-size:13px}.pi-empty{padding:24px;border:1px dashed var(--pi-control);border-radius:14px;color:var(--pi-secondary)}
.pi-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:10px 12px}.pi .pi-quiet{display:inline-flex;align-items:center;min-height:42px;margin-left:4px;padding:0 8px;border:0;background:none;font:inherit;font-size:14px;color:var(--pi-secondary);text-decoration:underline;text-underline-offset:4px;cursor:pointer}.pi .pi-quiet:hover{color:var(--pi-gap)}
@media(max-width:520px){.pi-card{padding:16px}.pi-work{grid-template-columns:1fr}.pi-work .pi-button{justify-self:start}}
@media(prefers-reduced-motion:reduce){.pi{--pi-duration:var(--pi-duration-reduced)}.pi *,.pi *::before,.pi *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.pi .pi-card,.pi .pi-button,.pi .pi-segments,.pi .pi-detail{border-color:CanvasText}.pi .pi-segments [aria-pressed=true]{outline:2px solid Highlight}.pi :focus-visible{outline-color:Highlight}.pi-dot{forced-color-adjust:auto}.pi-reason{border-color:CanvasText}}
/* 0.2.27 (T-600; field-focus v001, the Owner: A, 8 Oct 2026) — a selected text field shows ONE edge: its own edge turns the focus
   colour and a 1 px ring sits flush on it (2 px in all), with no outline outside the edge. Buttons, links, ticks and every other
   control keep the ring above. :where() holds this at the weight of the kit-wide ring, so a View's own field focus (.pi-inform)
   still wins. A field marked wrong keeps its red edge; selected, its ring grows to 2 px so the focus still shows. In forced colours the box-shadow is dropped, so a 2 px
   Highlight outline sits on the edge instead. */
.pi :where(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color],[type=button],[type=submit],[type=reset],[type=image]),textarea,select):focus-visible{outline:none;border-color:var(--pi-focus);box-shadow:0 0 0 1px var(--pi-focus)}
.pi :where(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color],[type=button],[type=submit],[type=reset],[type=image]),textarea,select):where([aria-invalid=true]):focus-visible{border-color:var(--pi-gap);box-shadow:0 0 0 2px var(--pi-gap)}
@media(forced-colors:active){.pi :where(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color],[type=button],[type=submit],[type=reset],[type=image]),textarea,select):focus-visible{outline:2px solid Highlight;outline-offset:-1px}}
/* Paper and Ink 0.2.0 · revision 2 · the Overview compositions of accepted Engagement Overview v007.
   Load AFTER tokens/paper-and-ink.css and paper-and-ink/components.css, inside a .pi wrapper.
   Source of the look: mockups/engagement-overview/versions/v007 (ov-kit.css, option.css), renamed to --pi-* tokens and pi-* classes.
   Base parts are reused, not redefined: .pi-card, .pi-card--ink, .pi-button, .pi-segments, .pi-label, .pi-detail.
   Accent marks (.pi-mark) are decoration and always sit beside words. Text uses the contrast-checked --pi-positive / --pi-review / --pi-gap.
   Motion here is composition motion: rise-in, count-up (PaperCountUp), line draw, bar grow, one slow pulse. components.css removes all of it under reduced motion. */
.pi-ov-page{display:grid;gap:0;color:var(--pi-text)}
.pi-ov-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px 32px;flex-wrap:wrap;padding:30px 0 0}
.pi-ov-head h1{margin-top:8px}
.pi[data-mode=present] .pi-work-only,.pi [data-mode=present] .pi-work-only{display:none!important}
.pi-card--ink h2.pi-label{color:var(--pi-inverse-muted)}
.pi-ov-card{padding:20px 22px;gap:14px}
.pi-dl{margin:4px 0 12px;display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;padding:14px 16px;border-radius:12px;background:var(--pi-paper);border:1px solid var(--pi-hairline)}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): dt terms take the one label style. */
.pi-dl dt{font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}
.pi-dl dd{margin:2px 0 0;font-weight:550}
.pi-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.pi-mark{display:inline-block;width:10px;height:10px;border-radius:50%;flex-shrink:0;background:var(--pi-ink)}
.pi-mark.green{background:var(--pi-green)}.pi-mark.amber{background:var(--pi-amber)}.pi-mark.red{background:var(--pi-red)}.pi-mark.gold{background:var(--pi-gold)}
.pi-mark.white{background:#fff}.pi-mark.ink{background:var(--pi-ink)}.pi-mark.hollow{background:none;border:1.5px solid var(--pi-muted)}
.pi-mark.pulse{animation:pi-pulse 2.4s ease-in-out infinite}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): kinds take the label style in the secondary ink; the small line over a page title is sans 13px, weight 500, normal case. */
.pi h2.pi-label,.pi-kind{font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-secondary)}
.pi-ov-head .pi-label,.pi-vhead .pi-label,.pi-recpage-head .pi-label{font:500 13px/1.4 var(--pi-font);letter-spacing:0;text-transform:none;color:var(--pi-secondary)}
.pi-cont{display:flex;align-items:center;gap:12px;margin-top:18px;padding:10px 10px 10px 16px;border-radius:999px;background:var(--pi-white);border:1px solid var(--pi-line);text-decoration:none;color:var(--pi-ink);font:inherit;font-size:14px;transition:border-color .2s ease}
.pi-cont:hover{border-color:var(--pi-ink)}
.pi-cont-t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pi-cont-t b{font-weight:600}.pi-cont-t i{font-style:normal;color:var(--pi-muted);margin-left:8px}
.pi-go{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 14px;border-radius:999px;background:var(--pi-ink);color:#fff;font-size:13px;white-space:nowrap}
.pi-story{font-size:clamp(22px,2.3vw,30px);line-height:1.38;letter-spacing:-.6px;color:var(--pi-secondary);max-width:34em;font-weight:450}
.pi-story b{color:var(--pi-ink);font-weight:600}
.pi-story .pi-need b{box-shadow:inset 0 -.38em 0 color-mix(in srgb,var(--pi-gold) 38%,transparent)}
.pi-fine{font-size:12.5px;line-height:1.5;color:var(--pi-muted)}
.pi-nums{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.pi-nums li{display:grid;gap:2px;padding:16px 18px 18px;border-left:1px solid var(--pi-hairline);border-top:1px solid var(--pi-hairline);min-width:0}
.pi-nums strong{font-size:clamp(34px,3.4vw,52px);font-weight:500;letter-spacing:-2px;line-height:1;font-variant-numeric:tabular-nums}
.pi-nums li>span{font-size:14px;color:var(--pi-ink)}
.pi-nums em{font-style:normal;font-size:12.5px;color:var(--pi-muted);display:flex;align-items:center;gap:7px;line-height:1.35}
.pi-nums em .pi-mark{width:7px;height:7px}
.pi-nums em.tone-red{color:var(--pi-gap)}.pi-nums em.tone-amber{color:var(--pi-review)}
.pi-journey{position:relative}
.pi-jline{position:absolute;left:0;right:0;top:0;width:100%;height:40px;overflow:visible}
.pi-jline path{fill:none;stroke-width:2;vector-effect:non-scaling-stroke;stroke-linecap:round}
.pi-jline .rest{stroke:var(--pi-line)}
.pi-jline .gold{stroke:var(--pi-gold);stroke-dasharray:1;stroke-dashoffset:0;animation:pi-draw 1.8s var(--pi-ease) both .2s}
.pi-journey ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;position:relative}
.pi-journey ol>li{display:grid;grid-template-rows:40px auto auto 1fr;justify-items:center;text-align:center;padding:0 6px;animation:pi-rise .6s var(--pi-ease) both;animation-delay:calc(var(--d)*70ms + 150ms)}
.pi-jdot{width:16px;height:16px;border-radius:50%;background:var(--pi-paper);border:2px solid var(--pi-line);box-sizing:border-box;align-self:center}
.is-done .pi-jdot{background:var(--pi-green);border-color:var(--pi-green)}
.is-cur .pi-jdot{width:26px;height:26px;background:var(--pi-gold);border-color:var(--pi-gold);box-shadow:0 0 0 6px color-mix(in srgb,var(--pi-gold) 22%,transparent)}
.pi-jn{font-size:15px;font-weight:600;letter-spacing:-.4px;margin-top:6px}
.pi-js{font-size:12px;color:var(--pi-muted);margin:1px 0 10px}
.pi-journey ol>li:not(.is-done):not(.is-cur) .pi-jn{color:var(--pi-muted)}
.pi-jcol{width:100%;border:1px solid var(--pi-line);border-radius:14px;background:var(--pi-white);display:flex;flex-direction:column;text-align:left;overflow:hidden}
.is-cur .pi-jcol{border-color:var(--pi-gold);box-shadow:0 0 0 1px var(--pi-gold)}
.pi-jcol ul{list-style:none;margin:0;padding:0}
.pi-jcol ul li{display:grid;gap:1px;padding:9px 14px 10px;border-top:1px solid var(--pi-hairline)}
.pi-jcol ul li:first-child{border-top:0}
.pi-jcol strong{font-size:clamp(21px,1.75vw,26px);font-weight:500;letter-spacing:-1px;line-height:1;font-variant-numeric:tabular-nums}
.pi-jcol ul li>span{font-size:12.5px;color:var(--pi-ink);line-height:1.3}
.pi-jcol em{font-style:normal;display:flex;gap:8px;align-items:baseline;margin-top:auto;padding:8px 14px 9px;border-top:1px solid var(--pi-hairline);font-size:12px;line-height:1.35;color:var(--pi-secondary);background:var(--pi-paper)}
.pi-jcol em .pi-mark{width:7px;height:7px;transform:translateY(-1px)}
/* 0.2.8: only the first foot line takes the spare height; the lines after it stack under it (found in Foundations Overview v013: a white band between two lines when a card is stretched to its neighbour) */
.pi-jcol em~em{margin-top:0}
.pi-jcol em.tone-red{color:var(--pi-gap)}.pi-jcol em.tone-amber{color:var(--pi-review)}
.pi-jcol .none{display:flex;align-items:center;gap:8px;padding:16px;font-size:13.5px;color:var(--pi-muted)}
.pi-stage-wrap{margin-left:auto;position:relative}
.pi-stage{margin-left:auto;display:inline-flex;align-items:center;gap:9px;height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--pi-line);background:var(--pi-white);font-size:13px;color:var(--pi-secondary);cursor:pointer;list-style:none;transition:border-color .2s ease,color .2s ease;white-space:nowrap}
.pi-stage::-webkit-details-marker{display:none}
.pi-stage-wrap .pi-stage{margin-left:0}
.pi-stage:hover{border-color:var(--pi-ink);color:var(--pi-ink)}
.pi-stage .pi-mark{width:8px;height:8px}
.pi-stage.is-done{cursor:default;color:var(--pi-secondary)}.pi-stage.is-done:hover{border-color:var(--pi-line)}
.pi-stage.is-ready{background:var(--pi-gold);border-color:var(--pi-gold);color:#111;animation:pi-ready 2.8s ease-in-out infinite}
.pi-stage.is-ready b{font-weight:600}
.pi-stage.is-ready:hover{background:#d8b33f}
.pi-stage:focus-visible{outline:2px solid var(--pi-ink);outline-offset:3px}
details[open]>.pi-stage .i{transform:rotate(180deg)}
.pi-stage-pop{position:absolute;right:0;top:calc(100% + 8px);z-index:6;width:min(380px,calc(100vw - 48px));padding:16px 18px;border-radius:14px;background:var(--pi-white);border:1px solid var(--pi-line);box-shadow:0 18px 40px rgba(17,17,17,.10);display:grid;gap:12px;font-size:13.5px;line-height:1.45;animation:pi-rise .25s var(--pi-ease)}
.pi-stage-pop ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.pi-stage-pop li{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:baseline}
.pi-stage-pop li .pi-mark{width:8px;height:8px;transform:translateY(-1px)}
.pi-stage-pop a{display:inline-flex;align-items:center;gap:7px;color:var(--pi-ink);text-underline-offset:3px;justify-self:start}
.pi-stage-pop p{font-size:12.5px;color:var(--pi-muted)}
@keyframes pi-ready{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--pi-gold) 40%,transparent)}50%{box-shadow:0 0 0 7px color-mix(in srgb,var(--pi-gold) 0%,transparent)}}
.pi-dl{margin:4px 0 12px;display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;padding:14px 16px;border-radius:12px;background:var(--pi-paper);border:1px solid var(--pi-hairline)}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): dt terms take the one label style. */
.pi-dl dt{font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}
.pi-dl dd{margin:2px 0 0;font-weight:550}
.pi-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.pi-reopen{font-size:13.5px;color:var(--pi-secondary);padding-top:16px;border-top:1px solid var(--pi-line);margin-top:8px}
.pi-reopen button{color:var(--pi-ink);text-decoration:underline;text-underline-offset:3px;font-size:13.5px;margin-left:6px}
.pi-card--ink .pi-asks{border-top:1px solid #2c2c2a;padding-top:14px}
.pi-pills{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.pi-pills li{display:grid;gap:3px;animation:pi-rise .5s var(--pi-ease) both;animation-delay:calc(var(--d)*60ms)}
.pi-pills .bar{height:12px;border-radius:999px;background:var(--pi-line);margin-bottom:8px}
.pi-pills .is-done .bar{background:var(--pi-ink)}
.pi-pills .is-cur .bar{background:var(--pi-gold)}
.pi-pills b{font-size:13.5px;font-weight:600;letter-spacing:-.2px}.pi-pills i{font-style:normal;font-size:12px;color:var(--pi-muted)}
.pi-pills li:not(.is-done):not(.is-cur) b{color:var(--pi-muted);font-weight:500}
.pi-value{gap:0}
.pi-value>h2{margin-bottom:14px}
.pi-vsec{display:grid;gap:12px;padding:0 0 18px}
.pi-vsec.nc{padding-top:18px;border-top:1px solid var(--pi-hairline)}
.pi-vsec h3{margin:0;font-size:15px;font-weight:600;letter-spacing:-.2px}
.pi-vsec h3 span{font-weight:400;color:var(--pi-muted);font-size:13px;margin-left:8px;letter-spacing:0}
.pi-vrow{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.pi-vrow strong{display:block;font-size:clamp(40px,4vw,60px);font-weight:500;letter-spacing:-2.6px;line-height:1;font-variant-numeric:tabular-nums}
.nc .pi-vrow strong{font-size:clamp(28px,2.7vw,40px);letter-spacing:-1.6px}
.pi-vrow strong.soft{color:var(--pi-muted)}
.pi-vrow div>span{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--pi-secondary);margin-top:8px;line-height:1.3}
.pi-vnone{display:flex;align-items:flex-end}.pi-vrow .pi-vnone>span{margin:0;color:var(--pi-muted)}
.pi-vbar{display:flex;gap:4px;height:12px}
.nc .pi-vbar{height:8px}
.pi-vbar i{display:block;width:var(--w);border-radius:999px;background:var(--pi-green);transform-origin:left;animation:pi-grow 1.2s var(--pi-ease) both .3s}
.pi-vbar.ink i{background:var(--pi-ink)}
.pi-vbar i.soft{background:none;border:1.5px dashed var(--pi-muted);box-sizing:border-box}
.pi-cases{list-style:none;margin:0;padding:0;display:grid}
.pi-cases li+li{border-top:1px solid var(--pi-hairline)}
.pi-cases a{display:grid;grid-template-columns:52px 1fr;gap:2px 10px;padding:11px 0;text-decoration:none;color:inherit}
.pi-cases a:hover b{text-decoration:underline;text-underline-offset:3px}
.pi-cases .id{font-family:var(--pi-mono);font-size:11.5px;color:var(--pi-muted);padding-top:3px}
.pi-cases b{font-size:14.5px;font-weight:550;line-height:1.35}
.pi-cases .st,.pi-cases .co{grid-column:2;font-size:12.5px;color:var(--pi-secondary);display:flex;align-items:center;gap:7px}
.pi-cases .st .pi-mark{width:8px;height:8px}.pi-cases .co{color:var(--pi-muted)}
.pi-card--ink{background:var(--pi-ink);border-color:var(--pi-ink);color:#fff;gap:16px}
.pi-card--ink h2{color:#a9a7a0}
.pi-urgent{display:grid;gap:8px;justify-items:start}
.pi-card--ink .pi-kind{color:#fff;display:flex;align-items:center;gap:8px}
.pi-urgent strong{font-size:clamp(22px,2vw,28px);font-weight:600;letter-spacing:-.8px;line-height:1.15}
.pi-urgent p{font-size:14px;line-height:1.5;color:#c9c7c0}
.pi-where{font-size:12px;color:var(--pi-muted)}
.pi-card--ink .pi-where{color:#a9a7a0;margin-bottom:6px}
.pi-next{list-style:none;margin:0;padding:12px 0 0;border-top:1px solid #2c2c2a;display:grid;gap:10px;font-size:13.5px;color:#dedcd5}
.pi-next li{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:baseline}.pi-next .pi-mark{width:8px;height:8px;transform:translateY(-1px)}
.pi-more{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:#fff;text-decoration:underline;text-underline-offset:3px;justify-self:start}
.pi-asks{list-style:none;margin:0;padding:0;display:grid;gap:0}
.pi-asks li{display:grid;gap:3px;padding:14px 0;border-top:1px solid #2c2c2a}
.pi-asks li:first-child{border-top:0;padding-top:0}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): dates stay mono, but quiet: normal case, no letter spacing. */
.pi-asks .when{font-family:var(--pi-mono);font-size:12px;letter-spacing:0;text-transform:none;color:var(--pi-gold)}
.pi-asks b{font-size:17px;font-weight:600;letter-spacing:-.3px;line-height:1.3}.pi-asks p{font-size:13.5px;color:#c9c7c0;line-height:1.45}
.pi-tasks{gap:12px}
.pi-thead{display:flex;justify-content:space-between;align-items:center;gap:10px}
.pi-add{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;border:1px solid var(--pi-line);font-size:12.5px;color:var(--pi-secondary);transition:border-color .2s ease,color .2s ease}
.pi-add:hover{border-color:var(--pi-ink);color:var(--pi-ink)}
.pi-tsum{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.pi-tsum strong{font-size:clamp(34px,3.1vw,50px);font-weight:500;letter-spacing:-2px;line-height:1;font-variant-numeric:tabular-nums}
.pi-tsum>span{font-size:14px;color:var(--pi-ink);margin-right:6px}
.pi-tsum ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12.5px;color:var(--pi-secondary)}
.pi-tsum li{display:flex;align-items:center;gap:6px}.pi-tsum li .pi-mark{width:7px;height:7px}
.pi-tsum .tone-red{color:var(--pi-gap)}.pi-tsum .tone-amber{color:var(--pi-review)}
.pi-tlist{list-style:none;margin:0;padding:0;display:grid}
.pi-tlist li+li{border-top:1px solid var(--pi-hairline)}
.pi-tlist a{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:baseline;padding:9px 0;text-decoration:none;color:inherit}
.pi-tlist a .pi-mark{width:8px;height:8px;transform:translateY(-1px)}
.pi-tlist b{display:block;font-size:14px;font-weight:550;line-height:1.35}
.pi-tlist a:hover b{text-decoration:underline;text-underline-offset:3px}
.pi-tlist em{font-style:normal;font-size:12.5px;color:var(--pi-muted);line-height:1.4}
.pi-tall{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--pi-ink);text-underline-offset:3px;justify-self:start}
.pi-tnone{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--pi-secondary)}
.pi-time{list-style:none;margin:0;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;position:relative}
.pi-time::before{content:"";position:absolute;left:0;right:0;top:5px;height:2px;background:var(--pi-line)}
.pi-time li{position:relative;display:grid;gap:4px;padding:0 14px 0 0;align-content:start;animation:pi-rise .5s var(--pi-ease) both;animation-delay:calc(var(--d)*60ms)}
.pi-tdot{width:12px;height:12px;border-radius:50%;background:var(--pi-ink);margin-bottom:8px;position:relative;box-shadow:0 0 0 4px var(--pi-white)}
.pi-time .next .pi-tdot{background:var(--pi-white);border:2px solid var(--pi-gold);box-sizing:border-box}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): dates stay mono, but quiet: normal case, no letter spacing. */
.pi-time time{font-family:var(--pi-mono);font-size:12px;letter-spacing:0;text-transform:none;color:var(--pi-muted)}
.pi-time p{font-size:13px;line-height:1.4;color:var(--pi-ink)}
.pi-time .next p{color:var(--pi-secondary)}
.pi-time.is-v{grid-auto-flow:row;gap:0}
.pi-time.is-v::before{left:5px;right:auto;top:6px;bottom:6px;width:2px;height:auto}
.pi-time.is-v li{grid-template-columns:12px 84px 1fr;gap:0 16px;align-items:baseline;padding:0 0 22px}
.pi-time.is-v .pi-tdot{margin:0;transform:translateY(1px);box-shadow:0 0 0 4px var(--pi-paper)}
.pi-time.is-v p{font-size:16px}
.pi-timefoot{margin-top:4px}
.pi-timefoot a{color:var(--pi-ink);text-underline-offset:3px}
.pi-worklist{display:grid;gap:14px;scroll-margin-top:16px}
.pi-worklist-head{display:flex;justify-content:space-between;align-items:center;gap:12px 20px;flex-wrap:wrap}
.pi-worklist-head h2{font-size:20px;font-weight:600;letter-spacing:-.5px;display:flex;align-items:center;gap:10px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): a count is a number, not a ref: sans with tabular figures. */
.pi-worklist-head h2 span{font-family:var(--pi-font);font-variant-numeric:tabular-nums;font-size:12px;font-weight:400;padding:2px 9px;border-radius:999px;border:1px solid var(--pi-line);color:var(--pi-secondary);letter-spacing:0}
.pi-quick{display:flex;flex-wrap:wrap;gap:8px}
.pi-quick button{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:999px;background:var(--pi-white);border:1px solid var(--pi-line);font-size:13px;color:var(--pi-ink);transition:border-color .2s ease}
.pi-quick button:hover{border-color:var(--pi-ink)}
.pi-list{list-style:none;margin:0;padding:0;border:1px solid var(--pi-line);border-radius:var(--pi-radius);background:var(--pi-white);overflow:hidden}
.pi-list li{display:grid;grid-template-columns:20px 10px minmax(0,1fr) auto auto;gap:16px;align-items:center;padding:15px 18px;border-top:1px solid var(--pi-hairline)}
.pi-list li:first-child{border-top:0}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): a rank is a number, not a ref: sans with tabular figures. */
.pi-list .rank{font-family:var(--pi-font);font-variant-numeric:tabular-nums;letter-spacing:0;font-size:12px;color:var(--pi-muted);text-align:right}
.pi-list b{display:block;font-size:15.5px;font-weight:600;letter-spacing:-.2px;line-height:1.35;margin-top:2px}
.pi-list p{font-size:13.5px;color:var(--pi-secondary);line-height:1.45}
.pi-list .pi-where{white-space:nowrap}
.pi [data-reveal]{opacity:0;transform:translateY(18px);transition:opacity .7s var(--pi-ease),transform .7s var(--pi-ease)}
.pi [data-reveal].is-in{opacity:1;transform:none}
@keyframes pi-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes pi-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes pi-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes pi-pulse{50%{opacity:.35}}
@media (max-width:900px){
  .pi-journey ol{grid-template-columns:repeat(7,168px);overflow-x:auto;padding-bottom:8px;scroll-snap-type:x proximity}
  .pi-jline{display:none}
  .pi-time:not(.is-v){grid-auto-flow:row;gap:0}
  .pi-time:not(.is-v)::before{left:5px;right:auto;top:6px;bottom:6px;width:2px;height:auto}
  .pi-time:not(.is-v) li{grid-template-columns:12px 64px 1fr;gap:0 12px;align-items:baseline;padding:0 0 16px}
  .pi-time:not(.is-v) .pi-tdot{margin:0}
  .pi-list li{grid-template-columns:10px minmax(0,1fr);gap:8px 12px}
  .pi-list .rank{display:none}.pi-list .pi-where,.pi-list .pi-button{grid-column:2;justify-self:start} 
}
@media (max-width:759px){
  .pi-nums{grid-template-columns:repeat(2,1fr)}
  .pi-pills{grid-template-columns:repeat(7,minmax(0,1fr))}
  .pi-pills b{font-size:11px}.pi-pills li:not(.is-cur) i{display:none}
  .pi-vrow{grid-template-columns:1fr}
  .pi-cont-t i{display:none}
}
@media (prefers-reduced-motion:reduce){
  .pi-journey ol>li,.pi-jline .gold,.pi-pills li,.pi-vbar i,.pi-time li,.pi-mark.pulse,.pi-stage.is-ready,.pi-stage-pop,
  .pi [data-reveal]{opacity:1;transform:none;transition:none}
}
.pi-ov-top{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr);gap:28px;align-items:stretch;margin-top:26px}
.pi-ov-story{display:flex;align-items:center;padding:6px 0}
.pi-ov-journey{margin-top:34px;display:grid;gap:18px;grid-template-columns:minmax(0,1fr)} /* 0.2.4: the column may shrink, so on a phone the journey scrolls in its own row instead of widening the page (Engagement Overview v010) */
.pi-ov-sechead{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap}
.pi-ov-sechead h2{font-size:20px;font-weight:600;letter-spacing:-.5px}
.pi-ov-sechead p{font-size:13.5px;color:var(--pi-muted)}
.pi-ov-bento{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:22px}
.pi-ov-bento .pi-vrow strong{font-size:clamp(34px,3.1vw,50px)}.pi-ov-bento .nc .pi-vrow strong{font-size:clamp(26px,2.3vw,36px)}
.pi-ov-time{grid-column:1/-1}
@media (max-width:1320px){.pi-ov-bento{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.pi-ov-bento .pi-value{grid-column:1/-1}}
@media (max-width:1100px){.pi-ov-top{grid-template-columns:1fr}}
@media (max-width:820px){.pi-ov-bento{grid-template-columns:1fr}}
/* revision 2 · parts that are buttons in the React kit */
.pi-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
button.pi-cont{width:100%;text-align:left;cursor:pointer}
button.pi-more,button.pi-tall,button.pi-add{background:none;cursor:pointer}
button.pi-more{border:0;padding:0;text-decoration:underline;text-underline-offset:3px;font-size:13px}
button.pi-tall{border:0;padding:0;text-decoration:underline}
.pi-stage-pop .pi-more{color:var(--pi-ink);justify-self:start}
.pi-stage{font-family:inherit}
summary.pi-stage{list-style:none}
.pi-quick button{cursor:pointer}

/* ---------- 0.2.4 · the Working / Presenting switch (Engagement Overview v010 .k-mode) ----------
   A pair of pills, 34 px at 13 px; the pressed one is ink. The host sets data-mode="work" | "present" on its .pi root (or the
   .pi-shell), which hides .pi-work-only, .pi-id and, in shell.css, the navigation. PaperModeSwitch renders it. */
.pi-mode{display:flex;width:fit-content;padding:4px;border-radius:999px;background:var(--pi-white);border:1px solid var(--pi-line)}
.pi .pi-mode button{height:34px;padding:0 16px;border-radius:999px;font-size:13px;color:var(--pi-secondary);background:none;border:0;cursor:pointer;transition:background-color .25s ease,color .25s ease}
.pi .pi-mode button[aria-pressed=true]{background:var(--pi-ink);color:var(--pi-white)}

/* ---------- 0.2.4 · internal record ids that Presenting hides (foundations-overview-parts #7) ----------
   Put .pi-id on any id a client does not need to read (BC-1, SH-4). A row whose first column was the id closes it up. */
.pi[data-mode=present] .pi-id,.pi [data-mode=present] .pi-id{display:none!important}
.pi[data-mode=present] .pi-cases a,.pi [data-mode=present] .pi-cases a{grid-template-columns:1fr}
.pi[data-mode=present] .pi-cases :is(.st,.co),.pi [data-mode=present] .pi-cases :is(.st,.co){grid-column:1}
@media (prefers-reduced-motion:reduce){.pi .pi-mode button{transition:none}}
@media (forced-colors:active){.pi .pi-mode button[aria-pressed=true]{outline:2px solid Highlight}}

/* ======================= 0.2.5 · the four Foundations Overview parts (foundations-overview-parts #1, #2, #3, #5) =======================
   From Foundations Overview v010 (selected 21 September 2026), renamed pi- and generalised. */

/* ---------- #1 · a journey with any number of stages, weighted columns, and context stages ----------
   PaperJourney sets grid-template-columns from its weights and adds .pi-journey--weighted. The gold line is revealed by a clip,
   because a dash draw breaks under non-scaling strokes when the viewBox is much narrower than the screen. A context stage
   (.is-context) carries its name and state only; a stage's card can sit under the line in .pi-jcards. */
.pi-journey--weighted .pi-jline .gold{stroke-dasharray:none;animation:pi-clipdraw var(--pi-draw,1.8s) var(--pi-ease) both .2s}
@keyframes pi-clipdraw{from{clip-path:inset(-20px 100% -20px 0)}to{clip-path:inset(-20px 0 -20px 0)}}
.pi-journey--weighted ol>li{grid-template-rows:40px auto auto}
.pi-journey ol>li.is-context{padding:0 4px}
.pi-journey li.is-context .pi-jn{font-size:13.5px;font-weight:500;letter-spacing:-.2px}
.pi-journey li.is-context.is-done .pi-jn{color:var(--pi-secondary)}
.pi-journey li.is-context.is-cur .pi-jn{color:var(--pi-ink);font-weight:600}
.pi-journey li.is-context .pi-js{font-size:11.5px;line-height:1.35;margin-bottom:0}
.pi-journey li.is-context .pi-jdot{width:12px;height:12px}
.pi-journey li.is-context.is-cur .pi-jdot{width:20px;height:20px;box-shadow:0 0 0 5px color-mix(in srgb,var(--pi-gold) 22%,transparent)}
.pi-journey li.is-own .pi-jn{font-size:18px;letter-spacing:-.5px;display:inline-flex;align-items:center;gap:10px}
.pi-journey li.is-own .pi-js{margin-bottom:0}
/* a small gold tag beside a stage name ("Foundations"): what this page serves */
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): a tag takes the label style. */
.pi-jtag{font:600 var(--pi-label-size)/1 var(--pi-font);letter-spacing:0;text-transform:none;color:var(--pi-gold-text);padding:4px 8px;border:1px solid var(--pi-gold);border-radius:999px}
.pi-jcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin-top:16px}
.pi-jcards .pi-jcol.is-cur{border-color:var(--pi-gold);box-shadow:0 0 0 1px var(--pi-gold)}
.pi-jcards .pi-jcol ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
.pi-jcards .pi-jcol ul li{border-top:0;border-left:1px solid var(--pi-hairline);padding:14px 16px;gap:3px}
.pi-jcards .pi-jcol ul li:first-child{border-left:0}
.pi-jcards .pi-jcol strong{font-size:var(--pi-number-card)}
.pi-jcards .pi-jcol ul li>span{font-size:13.5px}
.pi-jcard-h{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0;padding:12px 16px;border-bottom:1px solid var(--pi-hairline);font-size:15px;font-weight:600;letter-spacing:-.3px}
.pi-jcard-h span{font-size:12.5px;font-weight:400;color:var(--pi-muted);letter-spacing:0}
@media (max-width:900px){
  .pi-journey--weighted ol{grid-template-columns:1fr!important;gap:0;overflow:visible;padding-bottom:0}
  .pi-journey--weighted .pi-jline{display:none}
  .pi-journey--weighted ol>li{display:grid;grid-template-columns:20px auto 1fr;grid-template-rows:auto;gap:10px;align-items:center;justify-items:start;text-align:left;padding:10px 2px;border-top:1px solid var(--pi-line)}
  .pi-journey--weighted ol>li:first-child{border-top:0}
  .pi-journey.pi-journey--weighted ol>li,.pi-journey.pi-journey--weighted ol>li.is-context{padding:10px 2px}
  .pi-journey.pi-journey--weighted ol>li .pi-jdot{display:block;justify-self:center;width:12px;height:12px}
  .pi-journey.pi-journey--weighted ol>li.is-cur .pi-jdot{width:16px;height:16px;box-shadow:none}
  .pi-journey--weighted .pi-jn{margin:0}
  .pi-journey--weighted li.is-own .pi-jn{font-size:15px}.pi-journey--weighted .pi-jtag{font-size:9.5px;padding:3px 6px}
  .pi-journey--weighted .pi-js{margin:0;justify-self:end;text-align:right;font-size:12px}
  .pi-journey--weighted ol>li>.pi-jcol{display:none}
  .pi-jcards .pi-jcol ul{grid-template-columns:1fr}
  .pi-jcards .pi-jcol ul li{border-left:0;border-top:1px solid var(--pi-hairline);grid-template-columns:48px 1fr;align-items:baseline}
  .pi-jcards .pi-jcol ul li:first-child{border-top:0}
  .pi-jcards .pi-jcol ul li .pi-reqline{grid-column:2}
}

/* ---------- #2 · the required-input line under a number: what the stage asks for, met or not, in words ---------- */
.pi-reqline{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--pi-positive);margin-top:2px}
.pi-reqline.is-gap{color:var(--pi-gap)}
.pi-reqline .pi-mark{width:7px;height:7px}

/* ---------- #3 · the relation card: one record, a connector in words, and the records linked to it ----------
   Values are shown as recorded; a short value that starts with a number draws its number large. The connector turns down on a
   narrow screen. */
.pi-relation{display:grid;grid-template-columns:minmax(0,1fr) 60px minmax(0,1.6fr);gap:0 8px;align-items:stretch}
.pi-relation-from{display:grid;gap:10px;align-content:start;padding:18px;border-radius:var(--pi-radius-inner);background:var(--pi-paper);border:1px solid var(--pi-hairline);text-decoration:none;color:inherit}
.pi-relation-from strong{font-size:clamp(18px,1.5vw,22px);font-weight:600;letter-spacing:-.6px;line-height:1.2}
.pi-relation-from dl{margin:4px 0 0;display:grid;gap:10px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): dt terms take the one label style. */
.pi-relation-from dt{font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}
.pi-relation-from dd{margin:1px 0 0;font-size:14px;line-height:1.45}
a.pi-relation-from:hover strong{text-decoration:underline;text-underline-offset:3px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): the connector's words take the label style. */
.pi-relation-conn{display:grid;justify-items:center;align-content:center;gap:6px;font:600 var(--pi-label-size)/1.3 var(--pi-font);letter-spacing:0;text-transform:none;color:var(--pi-gold-text);text-align:center}
.pi-relation-conn .pi-arrow{font-size:18px;color:var(--pi-gold);line-height:1}
.pi-relation-list{list-style:none;margin:0;padding:0;display:grid}
.pi-relation-list li+li{border-top:1px solid var(--pi-hairline)}
.pi-relation-list a{display:grid;grid-template-columns:minmax(0,1fr);gap:2px 16px;align-items:center;padding:12px 4px;text-decoration:none;color:inherit} /* 0.2.6: the values sit under the title; values as recorded are too long to sit beside it */
.pi-relation-list a:hover b{text-decoration:underline;text-underline-offset:3px}
.pi-relation-t{display:grid;gap:1px;min-width:0}
.pi-relation-t .pi-id{font-family:var(--pi-mono);font-size:11.5px;color:var(--pi-muted)}
.pi-relation-t b{font-size:15px;font-weight:600;letter-spacing:-.2px;line-height:1.3}
.pi-relation-n{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin-top:4px;font-variant-numeric:tabular-nums}
.pi-relation-n .from{font-size:16px;color:var(--pi-muted);font-weight:500;letter-spacing:-.4px}
.pi-relation-n .to b{font-size:clamp(24px,2.1vw,32px);font-weight:500;letter-spacing:-1.2px;line-height:1}
.pi-relation-n small{font-size:12.5px;color:var(--pi-secondary)}
.pi-relation-n .arrow{color:var(--pi-muted)}
.pi-relation-n .text{font-size:14px;white-space:normal;color:var(--pi-ink)}
.pi-relation-by{font-size:12.5px;color:var(--pi-muted)}
.pi-relation-list em{grid-column:1/-1;font-style:normal;display:flex;align-items:baseline;gap:7px;font-size:12.5px;line-height:1.4;color:var(--pi-secondary)}
.pi-relation-list em .pi-mark{width:7px;height:7px;transform:translateY(-1px)}
.pi-relation-list em.tone-amber{color:var(--pi-review)}
@media (max-width:900px){
  .pi-relation{grid-template-columns:1fr}
  .pi-relation-conn{grid-auto-flow:column;justify-content:start;padding:10px 4px}
  .pi-relation-conn .pi-arrow{transform:rotate(90deg)}
}

/* ---------- #5 · a status bar with more than two parts, and its legend in words with counts ---------- */
.pi-vbar i.ink{background:var(--pi-ink)}.pi-vbar i.red{background:var(--pi-red)}.pi-vbar i.amber{background:var(--pi-amber)}
.pi-vbar.pi-statusbar{height:12px}
.pi-legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12.5px;color:var(--pi-secondary)}
.pi-legend li{display:flex;align-items:baseline;gap:6px}
.pi-legend .pi-mark{width:7px;height:7px;transform:translateY(-1px)}
@media (forced-colors:active){.pi-relation-from{border-color:CanvasText}.pi-vbar i{border:1px solid CanvasText}}

/* 0.2.18 · one sub-heading style (cross-View review, 26 Sep 2026): a card heading in plain words, not the mono label.
   Additive: .pi-label keeps its look; a screen adopts .pi-cardhead to change. */
.pi .pi-cardhead{margin:0 0 10px;font:600 15px/1.4 var(--pi-font);letter-spacing:0;text-transform:none;color:var(--pi-ink)}
.pi-card--ink .pi-cardhead,.pi-inkcard .pi-cardhead{color:var(--pi-inverse,#fff)}

/* ===== 0.2.26 · the Close kit parts (T-358), from Engagement Overview v018–v022 (proposals/2026-09-28-overview-close-parts.md). ===== */
/* A · The Close part: a section of Overview under the journey, not a page (was .eo-close-*, .eo-closenext, .eo-reop, .eo-headact).
   Its head is the journey's .pi-ov-sechead; the one closing control sits at the head's right (.pi-ov-close-act). One card holds the
   folded parts (.pi-ov-close-card); a foot line links out (.pi-ov-close-foot). At stage 6 only the "Coming next" line shows
   (.pi-ov-closenext); after a reopen, one line says so (.pi-ov-reopen). The page head's own actions sit in .pi-ov-headact. */
.pi-ov-headact{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap}
.pi-ov-close{position:relative;margin-top:40px;display:grid;gap:14px;grid-template-columns:minmax(0,1fr);scroll-margin-top:16px}
.pi-ov-close h2:focus{outline:none}
.pi-ov-close-act{margin-left:auto;display:flex;align-items:center}
.pi-ov-close-card{padding:0;gap:0}
.pi-ov-close-foot a{color:var(--pi-secondary);text-decoration:underline;text-underline-offset:3px}
.pi-ov-close-foot a:hover{color:var(--pi-ink)}
.pi-ov-closenext{display:flex;gap:10px;align-items:baseline;margin:0;padding-top:14px;border-top:1px solid var(--pi-hairline);font-size:13.5px;line-height:1.5;color:var(--pi-secondary)}
.pi-ov-closenext b{color:var(--pi-ink);font-weight:600}
.pi-ov-reopen{display:flex;gap:10px;align-items:baseline;margin:0;font-size:13.5px;color:var(--pi-secondary)}
.pi-ov-closenext .pi-mark,.pi-ov-reopen .pi-mark{width:8px;height:8px;transform:translateY(-1px)}
.pi-ov-close .pi-tip{max-width:min(300px,100%)}
@media (max-width:759px){
  .pi-ov-close-act{margin-left:0;width:100%}
  .pi-ov-close .pi-ov-sechead p{flex:1 1 100%}
}

/* ========== 0.2.28 · six step dots on the ink card (T-649; Engagement Overview v024; Design D17, the Owner: "A", 8 Oct 2026) ==========
   Under the title of the ink card's first item when it is a run of steps (the Starting picture): done white, this step gold with a
   ring, the rest dashed. The same reading as the Starting picture's thread; the words beside it say the step, so the dots add no
   meaning of their own. Markup: <ol class="pi-stepdots" aria-label="Step 2 of 6"><li class="is-done"><span></span></li>…</ol>. */
.pi-stepdots{list-style:none;margin:6px 0 2px;padding:0;display:flex;align-items:center}
.pi-stepdots li{display:flex;align-items:center}
.pi-stepdots li+li::before{content:"";width:22px;height:2px;background:#3a3a37}
.pi-stepdots li.is-done+li::before{background:var(--pi-gold)}
.pi-stepdots span{box-sizing:border-box;width:11px;height:11px;border-radius:50%;border:1.5px dashed var(--pi-control)}
.pi-stepdots .is-done span{background:#fff;border:0}
.pi-stepdots .is-cur span{width:14px;height:14px;background:var(--pi-gold);border:0;box-shadow:0 0 0 3px var(--pi-ink),0 0 0 4.5px #fff}
@media (forced-colors:active){.pi-stepdots span{forced-color-adjust:auto;border:1.5px solid CanvasText}.pi-stepdots .is-done span,.pi-stepdots .is-cur span{background:CanvasText}}
/* Paper and Ink 0.2.2 · the working-View layer. 0.2.9 to 0.2.12 add parts at the end of this file.
   Registers, record detail, editors and decision pop-ups, promoted from the Foundations working Views the Owner selected on
   21–22 September 2026 (Stakeholders v006, Scope v004, Problem Statements v006, Objectives v006, Constraints v003), where the same
   parts were shared as local fd- classes (fd.css) and View files (sc.css, ps.css, ob.css, cn.css). Load after tokens,
   components.css and overview.css. Uses only --pi-* tokens. Opt in with the .pi wrapper, as the rest of the kit.
   Each part names the proposal it closes. Not included: the design-exploration bar and "About this mockup" (mockup tools),
   the Workspace shell (navigation-paper-and-ink), per-View register column widths (each View keeps its own profile). */

/* ========== small shared pieces ========== */
/* text buttons carry no browser chrome (the mockups had this from the shell's reset; the kit did not). :where keeps it at the
   lowest weight, so every part's own colour and size below still win. */
.pi :where(.pi-name,.pi-countline,.pi-cellact,.pi-unlink,.pi-inline,.pi-addlink,.pi-step,.pi-strip button,.pi-rectasks-acts button,.pi-search button,.pi-notice button){background:none;border:0;color:inherit;cursor:pointer}
.pi .pi-reclist li>button:first-child{background:var(--pi-white);color:inherit;cursor:pointer}
.pi-i{display:inline-grid;flex-shrink:0}.pi-i svg{width:16px;height:16px}
.pi-button .pi-i svg{width:15px;height:15px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): the crumb is sans 12.5px, weight 500, normal case, in the secondary ink. .pi-ref below stays mono: refs are mono. */
.pi-crumb{font:500 var(--pi-label-size)/1.4 var(--pi-font);letter-spacing:0;text-transform:none;color:var(--pi-secondary)}
.pi-ref{font-family:var(--pi-mono);font-size:11.5px;letter-spacing:.02em}
.pi-absent{color:var(--pi-muted)}
.pi-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pi-subline{display:block;font-size:12.5px;color:var(--pi-secondary);margin-top:4px;font-variant-numeric:tabular-nums}
.pi .pi-inline{padding:0;font:inherit;color:var(--pi-ink);text-decoration:underline;text-underline-offset:3px}
/* the filled ink primary — one per region (stakeholders-parts #10) */
.pi .pi-button--ink{background:var(--pi-ink);color:var(--pi-white);gap:8px}
.pi .pi-button--ink:hover:not(:disabled){background:#2b2b28}
.pi .pi-button--ink:disabled{background:var(--pi-paper);color:var(--pi-muted)}
/* a destructive act inside its decision pop-up: red border, never the primary */
.pi .pi-button--danger{border-color:var(--pi-gap);color:var(--pi-gap)}
.pi .pi-button--danger:hover:not(:disabled){background:var(--pi-gap);color:var(--pi-white)}
/* designation pill: a word that is not a status, e.g. "Sponsor" (stakeholders-parts #5) */
.pi-tag{display:inline-flex;align-items:center;min-height:22px;padding:1px 9px;border:1px solid var(--pi-line);border-radius:999px;font:500 11.5px/1.3 var(--pi-font);color:var(--pi-ink);background:var(--pi-white);white-space:nowrap}
/* notice: says what just happened, or that a link would leave the View (foundations-overview-parts #8) */
.pi-notice{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:60;display:flex;align-items:center;gap:14px;max-width:min(560px,calc(100vw - 32px));padding:12px 12px 12px 18px;border-radius:14px;background:var(--pi-ink);color:#fff;font-size:13.5px;line-height:1.45;box-shadow:var(--pi-detail-shadow);--pi-focus:#fff}
.pi-notice button{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:50%;color:#fff}
.pi-notice button svg{width:15px;height:15px}

/* ========== motion: a short rise on first load only; nothing replays after a redraw ========== */
.pi-first [data-rise]{animation:pi-rise var(--pi-rise) var(--pi-ease) both;animation-delay:calc(var(--d,0)*var(--pi-stagger))}
.pi-first .pi-bars i.on{transform-origin:bottom;animation:pi-bar-grow .5s var(--pi-ease) both .35s}
@keyframes pi-bar-grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}

/* ========== View head ========== */
.pi-vhead{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:22px}
.pi-vhead h1{margin:8px 0 8px}
.pi-vhead p:not(.pi-label){color:var(--pi-secondary);font-size:15px;max-width:60ch}
.pi-vhead-act{display:grid;justify-items:end;gap:6px;text-align:right}
.pi-refused{font-size:12.5px;color:var(--pi-secondary);max-width:30ch}
/* a story over a working register: the kit's story one step smaller (problem-statements-parts #4) */
.pi .pi-story.pi-story--working{font-size:clamp(20px,1.9vw,25px);max-width:none}

/* ========== summary: number cells in one card, with an optional lead block (foundations-overview-parts #6) ========== */
.pi-summary{display:grid;grid-template-columns:minmax(0,1fr);padding:0;gap:0;overflow:hidden;margin-bottom:12px}
.pi-summary.has-lead{grid-template-columns:minmax(220px,.9fr) minmax(0,2.4fr)}
.pi-summary-lead{display:grid;align-content:center;gap:8px;padding:18px 22px;border-right:1px solid var(--pi-line);min-width:0}
.pi-summary-lead b{display:block;font-size:16px;font-weight:600}
.pi-summary-lead small{display:block;font-size:12.5px;color:var(--pi-secondary)}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): initials are words: sans. */
.pi-avatar{width:40px;height:40px;border-radius:50%;border:1px solid var(--pi-line);background:var(--pi-paper);display:grid;place-items:center;font:600 12px var(--pi-font);flex-shrink:0}
.pi-summary .pi-nums li{border-top:0;padding:16px 20px}
.pi-summary .pi-nums li:first-child{border-left:0}
.pi-summary .pi-nums strong{font-size:var(--pi-number-card)}
.pi-summary .pi-nums em{display:block}
/* a cell that cannot show a number says why, in words ("Not loaded") */
.pi-summary .pi-nums strong.pi-numword{font-size:15px;letter-spacing:0;font-weight:500;color:var(--pi-secondary);line-height:1.4;padding-top:10px}

/* ========== checks line: quiet until something is missing (problem-statements-parts #1) ========== */
.pi-checks{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:6px 18px;padding:10px 4px 0;margin-bottom:26px;font-size:13px;color:var(--pi-secondary)}
.pi-checks>.pi-label{padding-top:6px}
.pi-checks .pi-mark{width:8px;height:8px;flex-shrink:0}
.pi-checks-ok{display:inline-flex;flex-wrap:wrap;align-items:center;gap:7px;min-height:32px}
.pi-checks-note{margin-left:10px;padding-left:10px;border-left:1px solid var(--pi-line);font-size:13px;color:var(--pi-secondary)}
.pi-checks-gaps{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.pi-checks-gaps li{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;min-height:32px}
.pi-checks-gaps b{font-weight:500;color:var(--pi-ink);font-size:14px}
.pi-checks-gaps li.is-blocks span{color:var(--pi-gap)}
.pi-checks-gaps li.is-weak span{color:var(--pi-review)}
.pi-checks-gaps .pi-mark{align-self:center}
.pi-checks a{color:var(--pi-ink);text-decoration:underline;text-underline-offset:4px;display:inline-flex;align-items:center;gap:6px;min-height:32px;white-space:nowrap}

/* ========== the work area: the register, and the record docked beside it ========== */
.pi-workarea{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.pi-workarea.is-docked{grid-template-columns:minmax(360px,1fr) minmax(380px,440px)}
.pi-register{background:var(--pi-white);border:1px solid var(--pi-line);border-radius:var(--pi-radius);min-width:0;container:pireg/inline-size}
.pi-register-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 22px 0}
.pi-register-head h2{font-size:19px;font-weight:600;letter-spacing:-.4px}
.pi-register-head h2:focus{outline:none}
.pi-register-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 18px;padding:14px 22px 16px;border-top:1px solid var(--pi-line);font-size:12.5px;color:var(--pi-muted)}

/* toolbar: search, filters, sort — 40 px controls at 14 px (stakeholders-parts #1, #2) */
.pi-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:16px 22px 0}
.pi-search{flex:1 1 260px;position:relative;display:flex;align-items:center;min-width:0}
.pi-search .pi-i{position:absolute;left:13px;color:var(--pi-muted);pointer-events:none}
.pi-search input{width:100%;min-width:0;min-height:40px;border:1px solid var(--pi-control);border-radius:999px;padding:6px 40px 6px 38px;background:var(--pi-white);color:var(--pi-text);font:inherit;font-size:14px}
.pi .pi-search button{position:absolute;right:4px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:var(--pi-secondary)}
.pi-search button svg{width:14px;height:14px}
.pi-toolbar .pi-button{min-height:40px;font-size:14px;gap:8px;padding:6px 16px}
.pi-filter-dot{width:7px;height:7px;border-radius:50%;background:var(--pi-gold)}
.pi-sort{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--pi-secondary)}
.pi-sort select{min-height:40px;border:1px solid var(--pi-control);border-radius:999px;padding:6px 12px;background:var(--pi-white);color:var(--pi-text);font:inherit;font-size:14px}
.pi-filters{display:flex;flex-wrap:wrap;gap:12px 16px;margin:12px 22px 0;padding:14px 16px;border-radius:12px;background:var(--pi-paper);border:1px solid var(--pi-hairline)}
.pi-filters .pi-field{flex:1 1 180px;font-size:13px}
.pi-filters select{min-height:40px!important;font:inherit;font-size:14px}
/* quick filters: the kit's segments, a count in mono on each */
.pi-quickrow{padding:14px 22px 0}
.pi-quickrow .pi-segments{width:fit-content;max-width:100%;border-color:var(--pi-line)}
.pi-quickrow .pi-button{min-height:34px;padding:4px 13px;font-size:13px;gap:7px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): a count is a number: sans with tabular figures. */
.pi-quickrow .pi-button span{font:12px var(--pi-font);font-variant-numeric:tabular-nums;color:var(--pi-muted)}
.pi-quickrow [aria-pressed=true] span{color:var(--pi-inverse-muted)}
/* what the filters show, in words, with Clear all */
.pi-strip{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:12px 22px 0;font-size:13px;color:var(--pi-secondary)}
.pi .pi-strip button{color:var(--pi-ink);text-decoration:underline;text-underline-offset:4px;min-height:32px;display:inline-flex;align-items:center;gap:5px}
.pi-strip button svg{width:13px;height:13px}

/* ========== the register table (stage-grouped-register #1; selected row, stakeholders-parts #9) ==========
   A real table with a hidden caption. Column widths are per View: set them on th/td classes in the View.
   Below 760 px of register width (and beside a docked record) each row becomes one block:
   the row's th spans the width, a td.is-wide spans the width under the others, a td.is-end sits at the end,
   and a td[data-l] shows its column name. Nothing scrolls sideways. */
.pi-table{width:100%;border-collapse:collapse;margin-top:16px;table-layout:fixed}
.pi-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): table headers take the one label style. */
.pi-table thead th{text-align:left;font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted);padding:11px 16px;background:var(--pi-paper);border-top:1px solid var(--pi-line);border-bottom:1px solid var(--pi-line)}
.pi-table tbody th,.pi-table tbody td{padding:15px 16px;border-top:1px solid var(--pi-hairline);vertical-align:top;text-align:left;font-weight:400;font-size:14px}
.pi-table tbody tr:first-child th,.pi-table tbody tr:first-child td{border-top:0}
.pi-table thead th:first-child,.pi-table tbody th{padding-left:22px}
.pi-table thead th:last-child,.pi-table tbody td:last-child{padding-right:22px}
.pi-table tbody tr{cursor:pointer;transition:background-color var(--pi-duration) var(--pi-ease)}
.pi-table tbody tr:hover{background:#fcfbf8}
.pi-table tbody tr[aria-current=true]{background:var(--pi-paper);box-shadow:inset 3px 0 0 var(--pi-gold)}
.pi-table td[data-l]::before{display:none}
.pi .pi-name{padding:0;display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 8px;text-align:left;font-weight:600;font-size:15px;min-height:24px}
.pi-name:hover{text-decoration:underline;text-underline-offset:4px}
.pi-sub{display:block;font-size:12.5px;color:var(--pi-secondary);margin-top:3px;line-height:1.4}
/* a register cell that opens a pop-up over the register and returns focus to itself */
.pi .pi-cellact{padding:0;font-size:14px;text-decoration:underline;text-underline-offset:4px;min-height:24px;text-align:left}
.pi-cellact:hover{text-decoration-thickness:2px}
@container pireg (max-width:760px){
  .pi-table,.pi-table tbody,.pi-table tr,.pi-table th,.pi-table td{display:block;width:auto!important}
  .pi-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .pi-table tbody tr{display:grid;grid-template-columns:auto auto 1fr;gap:6px 18px;padding:15px 20px;border-top:1px solid var(--pi-hairline)}
  .pi-table tbody tr:first-child{border-top:0}
  .pi-table tbody th,.pi-table tbody td{padding:0!important;border:0}
  .pi-table tbody th{grid-column:1/-1}
  .pi-table td.is-wide{grid-column:1/-1;order:5;font-size:13.5px;color:var(--pi-secondary)}
  .pi-table td.is-end{grid-column:2/-1;align-self:center}
  .pi-table td[data-l]{display:flex;align-items:center;gap:8px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): label style for the stacked cell label. */
  .pi-table td[data-l]::before{display:inline;content:attr(data-l);font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}
  .pi-table tbody tr[aria-current=true]{box-shadow:inset 3px 0 0 var(--pi-gold)}
  /* #1144 (T-556) — "a narrow register: a long cell takes its own row" (proposed 5 Oct 2026, Solutions v057): a td.is-long
     takes the full row and its words wrap; a td.is-end after it goes under it, at the start. A cell not marked is as before. */
  .pi-table td.is-long{grid-column:1/-1;flex-wrap:wrap;align-items:baseline}
  .pi-table td.is-long~td.is-end{grid-column:1/-1;justify-self:start}
}
@container pireg (max-width:420px){
  .pi-table tbody tr{grid-template-columns:auto 1fr}
  .pi-table td.is-end{grid-column:1/-1;justify-self:start}
}

/* ========== marks that are not a status ========== */
/* rating: four bars and the word, Low to Critical (foundations-overview-parts #4, variant) */
.pi-rating{display:inline-flex;align-items:center;gap:8px;font-size:14px}
.pi-bars{display:inline-flex;align-items:flex-end;gap:2px;height:12px}
.pi-bars i{display:block;width:3px;border-radius:2px;background:var(--pi-line)}
.pi-bars i:nth-child(1){height:5px}.pi-bars i:nth-child(2){height:7px}.pi-bars i:nth-child(3){height:9.5px}.pi-bars i:nth-child(4){height:12px}
.pi-bars i.on{background:var(--pi-ink)}
/* the three-step level mark: Low · Medium · High, three bars (constraints-parts #1) */
.pi-bars.pi-bars--3 i:nth-child(1){height:5px}.pi-bars.pi-bars--3 i:nth-child(2){height:8.5px}.pi-bars.pi-bars--3 i:nth-child(3){height:12px}
/* decision mark: a recorded answer that is not a status — In · Out · Not yet decided; never coloured (scope-parts #1) */
.pi-decision{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--pi-ink);white-space:nowrap}
.pi-decision i{display:inline-block;width:9px;height:9px;flex:0 0 9px;border-radius:50%;box-sizing:border-box}
.pi-decision[data-dec=in] i{background:var(--pi-ink)}
.pi-decision[data-dec=out] i{border:1.5px solid var(--pi-ink)}
.pi-decision[data-dec=none] i{border:1.5px dashed var(--pi-muted)}
.pi-decision[data-dec=none]{color:var(--pi-secondary)}
/* status in a row: the kit's pi-status, plus a quiet "Retired" beside it */
.pi-statusline{display:flex;flex-wrap:wrap;gap:4px 10px}
.pi-statusline .pi-status .pi-dot{width:8px;height:8px;flex-basis:8px}
.pi-retired{font-size:13px;color:var(--pi-muted)}

/* ========== states of absence (stakeholders-parts #7; activity-indicator.md) ========== */
.pi-state{margin:18px 22px 22px}
.pi-state h3{font-size:16px;font-weight:600;color:var(--pi-ink);margin-bottom:4px}
.pi-state p{font-size:14px;color:var(--pi-secondary);max-width:62ch}
.pi-state .pi-button{margin-top:14px;gap:8px}
.pi-failed{display:grid;gap:4px;padding:6px 0 6px 14px}
.pi-failed h3{color:var(--pi-gap)}
.pi-loading{margin:16px 0 0}
.pi-loading p{display:flex;align-items:center;gap:10px;padding:0 22px 10px;font-size:13px;color:var(--pi-secondary)}
.pi-dots{display:inline-flex;gap:4px}
.pi-dots i{width:5px;height:5px;border-radius:50%;background:var(--pi-ink);animation:pi-dot-wave 1.8s ease-in-out infinite}
.pi-dots i:nth-child(2){animation-delay:.2s}.pi-dots i:nth-child(3){animation-delay:.4s}
@keyframes pi-dot-wave{0%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}
.pi-skel{display:grid;grid-template-columns:30% 32% 1fr;gap:16px;padding:16px 22px;border-top:1px solid var(--pi-hairline)}
.pi-skel i{display:block;height:12px;border-radius:6px;background:var(--pi-hairline);animation:pi-skel-pulse 1.4s ease-in-out infinite}
@keyframes pi-skel-pulse{50%{opacity:.5}}

/* ========== the record: docked (not modal) or in a right-hand sheet (modal) (stakeholders-parts #3, #4) ========== */
.pi-dock{position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow:auto;scrollbar-gutter:stable;background:var(--pi-white);border:1px solid var(--pi-line);border-radius:var(--pi-radius);min-width:0}
.pi-sheet{margin:0 0 0 auto;height:100dvh;max-height:100dvh;width:min(560px,100vw);max-width:100vw;border:0;border-left:1px solid var(--pi-line);padding:0;background:var(--pi-white);color:var(--pi-ink);box-shadow:var(--pi-detail-shadow);overflow:auto}
.pi-sheet::backdrop{background:rgb(17 17 17/.4)}
.pi-sheet[open]{animation:pi-sheet-in .2s ease-out}
@keyframes pi-sheet-in{from{transform:translateX(20px);opacity:0}}
.pi-record{display:grid}
.pi-record-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 16px 0 24px}
.pi-record-id{padding:0 24px 20px}
.pi-record-id h2{font-size:26px;letter-spacing:-.8px;line-height:1.2;font-weight:600;margin-top:6px}
/* the heading takes focus from script only (tabindex -1); it is not a control, so it shows no ring */
.pi-record-id h2:focus{outline:none}
.pi-record-id p{font-size:14px;color:var(--pi-secondary);margin-top:4px}
.pi-badges{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:12px;font-size:13px;color:var(--pi-secondary)}
.pi-record-notice{margin:0 24px 20px}
.pi-record-notice h3{font-size:14px;font-weight:600}
.pi-record-notice p{font-size:14px;color:var(--pi-secondary);margin-top:4px}
.pi-record-notice .pi-button{margin-top:12px;gap:8px}
.pi-section{padding:20px 24px;border-top:1px solid var(--pi-line)}
.pi-section>h3,.pi-section-head h3{font-size:14px;font-weight:600;margin-bottom:10px}
.pi-section-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): a count is a number: sans with tabular figures. */
.pi-section-head .pi-count{font:12px var(--pi-font);font-variant-numeric:tabular-nums;color:var(--pi-muted)}
.pi-section .pi-fine{margin-top:8px}
/* the one "look here" section of a record: on paper, not coloured */
.pi-section--emph{background:var(--pi-paper)}
.pi-prose{font-size:15px;line-height:1.5}
.pi-facts{display:grid;gap:12px;margin:0}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): dt terms take the one label style. */
.pi-facts dt{font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}
.pi-facts dd{margin:2px 0 0;font-size:14.5px;line-height:1.45}
.pi-cells{display:grid;grid-template-columns:1fr 1fr;margin-top:14px;border:1px solid var(--pi-hairline);border-radius:12px;overflow:hidden}
.pi-cells>div{padding:12px 14px;display:grid;gap:6px;align-content:start}
.pi-cells>div+div{border-left:1px solid var(--pi-hairline)}
.pi .pi-addlink{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-size:14px;text-decoration:underline;text-underline-offset:4px;min-height:32px}
.pi-addlink svg{width:14px;height:14px}
.pi-section-head .pi-addlink{margin-top:0}
/* linked records: each line opens the record in its home; Unlink is a quiet text action beside it
   DEPRECATED in 0.2.24 for linked records (the Owner, 1 Oct 2026: "I don't like the boxes"): use the no-box list .pi-linklist
   (end of this file). Kept unchanged so Views pinned to an earlier release, and any .pi-reclist still on a page, look as they did. */
.pi-reclist{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.pi-reclist li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
.pi .pi-reclist li>button:first-child{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;text-align:left;padding:10px 14px;border:1px solid var(--pi-line);border-radius:12px;min-height:44px}
.pi-reclist li>button:first-child:hover{border-color:var(--pi-ink)}
.pi-reclist b{font-weight:500;font-size:14.5px}
.pi-reclist .pi-ref{color:var(--pi-muted)}
.pi-reclist .pi-i{color:var(--pi-secondary)}
.pi .pi-unlink{font-size:13px;color:var(--pi-secondary);text-decoration:underline;text-underline-offset:4px;min-height:40px;padding:0 4px}
.pi-unlink:hover{color:var(--pi-gap)}
/* one count that opens another Workspace ("Cited in 2 appraisals · Open in Solutions") */
.pi .pi-countline{display:inline-flex;align-items:center;gap:8px;padding:0;min-height:40px;font-size:14.5px;text-decoration:underline;text-underline-offset:4px;text-align:left}
.pi-countline svg{width:14px;height:14px}
/* related records that live in another Workspace, e.g. tasks in Overview › Tasks (scope-parts #3) */
/* revised 1 Oct 2026 (0.2.22 revision 4, 0.2.24 revision 2), the Owner's decision 1a: the Tasks section is a no-box list, the look of
   .pi-linklist (0.2.24) on the same markup (li > b, small, .pi-ref): ref in the quiet ref style · title as plain text, the
   status · owner · due line as the small note under the title, a hairline between tasks; no border, fill or radius. No arrow:
   the line does not open (the markup has no button), as before, and nothing suggests that it does (the Architect, 1 Oct 2026). */
.pi-rectasks{list-style:none;margin:0 0 4px;padding:0}
.pi-rectasks li{display:grid;grid-template-columns:minmax(3.75rem,max-content) minmax(0,1fr);align-items:baseline;gap:1px 14px;min-height:44px;padding:11px 0;border:0;border-top:1px solid var(--pi-hairline);border-radius:0;background:none}
.pi-rectasks li:first-child{border-top:0;padding-top:4px}
.pi-rectasks .pi-ref{grid-row:1;grid-column:1;width:fit-content;white-space:nowrap;font-size:12.5px;color:var(--pi-text);text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:3px}
.pi-rectasks b{grid-row:1;grid-column:2;min-width:0;font-weight:400;font-size:14.5px;line-height:1.5}
.pi-rectasks small{grid-row:2;grid-column:2;margin-top:4px;font-size:12.5px;line-height:1.45;color:var(--pi-secondary)}
.pi-recpage-side .pi-rectasks li{grid-template-columns:minmax(0,1fr);row-gap:2px}
.pi-recpage-side .pi-rectasks .pi-ref{grid-column:1;grid-row:1}
.pi-recpage-side .pi-rectasks b{grid-column:1;grid-row:2}
.pi-recpage-side .pi-rectasks small{grid-column:1;grid-row:3;margin-top:3px}
@media (max-width:480px){
  .pi-rectasks li{grid-template-columns:minmax(0,1fr);row-gap:2px}
  .pi-rectasks .pi-ref{grid-column:1;grid-row:1}
  .pi-rectasks b{grid-column:1;grid-row:2}
  .pi-rectasks small{grid-column:1;grid-row:3;margin-top:3px}
}
.pi-rectasks-acts{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:6px}
.pi .pi-rectasks-acts button{display:inline-flex;align-items:center;gap:6px;font-size:14px;text-decoration:underline;text-underline-offset:4px;min-height:36px}
.pi-rectasks-acts svg{width:14px;height:14px}
/* where an AI proposal came from, shown before any decision (problem-statements-parts #6) */
.pi-source{font-size:14px;font-weight:500}
.pi-quote{margin:10px 0 0;padding:2px 0 2px 14px;border-left:2px solid var(--pi-line);font-size:14.5px;line-height:1.5;color:var(--pi-secondary)}
.pi-detail--decision .pi-quote{margin:0 0 14px}
/* the measure pair: baseline → target as recorded, with a date line; .pi-measure--one holds labelled values side by side
   (a short value that starts with a number: wrap its number in <b> and the rest in <small>, add .is-num) (objectives-parts #1) */
.pi-measure{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:4px 14px;margin-top:14px;padding:14px 16px;border:1px solid var(--pi-hairline);border-radius:12px;background:var(--pi-white)}
.pi-measure>div{display:grid;gap:4px;min-width:0;align-content:start}
.pi-measure .pi-v{font-size:16px;line-height:1.35;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.pi-measure .pi-v.is-num b{font-size:var(--pi-number-card);font-weight:500;letter-spacing:-1.2px;line-height:1.05}
.pi-measure .pi-v.is-num small{font-size:14px;color:var(--pi-secondary)}
.pi-measure .pi-v .pi-absent{font-size:14px}
.pi-measure .pi-from .pi-v.is-num b{color:var(--pi-secondary)}
.pi-measure .pi-arrow{align-self:center;color:var(--pi-muted);padding-top:18px}
.pi-measure .pi-by{grid-column:1/-1;border-top:1px solid var(--pi-hairline);padding-top:10px;margin-top:6px;font-size:13.5px;color:var(--pi-secondary)}
.pi-measure .pi-by b{font-weight:500;color:var(--pi-ink)}
.pi-measure.pi-measure--one{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:4px 18px;margin-top:4px}
.pi-measure--one>div+div{border-left:1px solid var(--pi-hairline);padding-left:18px}
/* the thread: one record, then counts of what the recorded links trace from it (problem-statements-parts #2) */
.pi-thread{padding:0;overflow:hidden;margin-bottom:12px}
.pi-thread-row{display:grid;grid-template-columns:minmax(240px,1.35fr) minmax(0,3fr)}
.pi-thread-head{display:grid;align-content:start;gap:6px;padding:18px 22px;border-right:1px solid var(--pi-line);min-width:0}
.pi-thread-head h3{font-size:17px;font-weight:600;letter-spacing:-.3px;line-height:1.3}
.pi-thread-head p{font-size:13px;color:var(--pi-secondary)}
.pi-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--pi-steps,5),minmax(0,1fr));min-width:0}
.pi-steps li{position:relative;min-width:0;border-left:1px solid var(--pi-hairline)}
.pi-steps li:first-child{border-left:0}
.pi-steps li+li::before{content:"";position:absolute;left:-5px;top:30px;width:8px;height:8px;border-top:1px solid var(--pi-muted);border-right:1px solid var(--pi-muted);transform:rotate(45deg);background:var(--pi-white)}
.pi .pi-step{display:grid;align-content:start;gap:2px;width:100%;height:100%;padding:14px 16px 16px;text-align:left;border-radius:0}
.pi-step strong{font-size:var(--pi-number-card);font-weight:500;letter-spacing:-1.4px;line-height:1.05;font-variant-numeric:tabular-nums}
.pi-step>span{font-size:13.5px;color:var(--pi-ink)}
.pi-step em{font-style:normal;font-size:12px;color:var(--pi-muted);line-height:1.35;display:flex;align-items:center;gap:6px}
.pi-step strong.pi-numword{font-size:14px;letter-spacing:0;font-weight:500;color:var(--pi-secondary);padding-top:8px;line-height:1.35}
button.pi-step:hover{background:#fcfbf8}
button.pi-step:hover>span{text-decoration:underline;text-underline-offset:4px}
.pi-thread-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 18px;padding:10px 22px 12px;border-top:1px solid var(--pi-line);font-size:12.5px;color:var(--pi-muted)}
/* quiet disclosure for supporting detail — never for a warning or the key decision (stakeholders-parts #6) */
.pi-disclosure{border-top:1px solid var(--pi-line)}
.pi-disclosure summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 24px;cursor:pointer;font-size:14px;font-weight:500;min-height:48px}
.pi-disclosure summary::-webkit-details-marker{display:none}
.pi-disclosure summary:hover{background:#fcfbf8}
.pi-disclosure summary .pi-i{transition:transform 150ms ease;color:var(--pi-secondary)}
.pi-disclosure[open] summary .pi-i{transform:rotate(180deg)}
.pi-disclosure>div{padding:0 24px 20px}
.pi-disclosure ol{margin:0;padding-left:18px;font-size:14px;display:grid;gap:8px}
/* the record's action row: the 0.2.1 .pi-foot, pinned to the bottom of the record */
.pi-record .pi-foot{position:sticky;bottom:0;padding:16px 24px;border-top:1px solid var(--pi-line);background:var(--pi-white)}
.pi-record .pi-foot .pi-button{gap:8px}
.pi-readonly{font-size:13px;color:var(--pi-secondary)}

/* ========== the editor: a 680 px right-hand sheet with a pinned foot ========== */
.pi-sheet.pi-sheet--editor{width:min(680px,100vw);display:none;flex-direction:column;overflow:hidden}
.pi-sheet.pi-sheet--editor[open]{display:flex}
.pi-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 20px 16px 28px;border-bottom:1px solid var(--pi-line)}
.pi-editor-head h2{font-size:24px;letter-spacing:-.6px;font-weight:600;margin:6px 0 4px}
.pi-editor-head p{font-size:14px;color:var(--pi-secondary)}
.pi-editor-body{flex:1;min-height:0;overflow:auto;padding:4px 28px 28px}
.pi-editor-section{padding:20px 0 4px}
.pi-editor-section>h3{font-size:15px;font-weight:600}
.pi-editor-section>.pi-fine{margin:4px 0 2px}
.pi-editor-foot{border-top:1px solid var(--pi-line);padding:14px 28px 18px;background:var(--pi-white)}
.pi-editor-foot p{font-size:12.5px;color:var(--pi-secondary);margin-bottom:10px}
.pi-editor-foot div{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.pi-editor-foot .pi-button{gap:8px}
/* the unsaved-changes prompt, inside the editor in place of the fields */
.pi-discard{margin:24px 0 0}
.pi-discard h3{font-size:16px;font-weight:600}
.pi-discard p{font-size:14px;color:var(--pi-secondary);margin-top:4px}
.pi-discard div{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
/* form grid and field parts */
.pi-formgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px;margin-top:14px}
.pi-formgrid .pi-full{grid-column:1/-1}
.pi .pi-formgrid .pi-field{font-size:14px;font-weight:500}
.pi .pi-formgrid .pi-field input,.pi .pi-formgrid .pi-field select{font-size:16px;font-weight:400}
.pi-req{font-weight:400;font-size:12.5px;color:var(--pi-secondary);margin-left:8px}
.pi-hint{font-weight:400;font-size:12px;color:var(--pi-secondary)}
/* textarea in a field (stakeholders-parts #8) */
.pi .pi-field textarea{font:inherit;font-size:16px;font-weight:400;line-height:1.5;width:100%;min-width:0;min-height:88px;border:1px solid var(--pi-control);border-radius:8px;padding:10px 12px;background:var(--pi-white);color:var(--pi-text);resize:vertical}
.pi .pi-field textarea[aria-invalid=true]{border:2px solid var(--pi-gap)}
/* tick box in ink (stakeholders-parts #8) */
.pi-check{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:start;margin-top:18px;font-size:14px;font-weight:500;cursor:pointer}
.pi-check input{appearance:none;-webkit-appearance:none;width:20px;height:20px;margin:1px 0 0;border:1.5px solid var(--pi-control);border-radius:5px;background:var(--pi-white) center/14px 14px no-repeat}
.pi-check input:checked{background-color:var(--pi-ink);border-color:var(--pi-ink);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}
.pi-check input:focus-visible{outline:var(--pi-focus-width) solid var(--pi-focus);outline-offset:var(--pi-focus-offset)}
.pi-check small{display:block;font-weight:400;font-size:12.5px;color:var(--pi-secondary);margin-top:2px}
/* choice pills: a radio group for two to four answers, all visible, one click (scope-parts #2) */
.pi-choice{border:0;margin:0;padding:0;min-width:0}
.pi-choice legend{font-size:14px;font-weight:500;padding:0;margin-bottom:8px}
.pi-choice-row{display:flex;flex-wrap:wrap;gap:8px}
.pi-choice label{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 16px;border:1px solid var(--pi-control);border-radius:999px;background:var(--pi-white);font-size:15px;cursor:pointer}
.pi-choice input{position:absolute;opacity:0;width:1px;height:1px}
.pi-choice label:has(input:checked){background:var(--pi-ink);border-color:var(--pi-ink);color:var(--pi-white)}
.pi-choice label:has(input:checked) .pi-decision,.pi-choice label:has(input:checked) .pi-decision[data-dec=none]{color:var(--pi-white)}
.pi-choice label:has(input:checked) .pi-decision[data-dec=in] i{background:var(--pi-white)}
.pi-choice label:has(input:checked) .pi-decision[data-dec=out] i,.pi-choice label:has(input:checked) .pi-decision[data-dec=none] i{border-color:var(--pi-white)}
.pi-choice label:has(input:checked) .pi-bars i{background:rgba(255,255,255,.35)}
.pi-choice label:has(input:checked) .pi-bars i.on{background:var(--pi-white)}
.pi-choice label:has(input:focus-visible){outline:var(--pi-focus-width) solid var(--pi-focus);outline-offset:var(--pi-focus-offset)}
.pi-choice .pi-hint{display:block;margin-top:8px}

/* ========== decision pop-ups: the kit's pi-detail at 480 px ========== */
.pi-detail.pi-detail--decision{width:min(480px,calc(100% - 32px))}
.pi-detail--decision header h2{font-size:21px;letter-spacing:-.4px;font-weight:600;line-height:1.3}
.pi-detail--decision>p{font-size:14.5px;color:var(--pi-secondary);margin-bottom:14px}
.pi-detail--decision .pi-field{font-weight:500}
.pi-detail--decision .pi-dl{grid-template-columns:1fr}
.pi-detail--decision .pi-button{gap:8px}
/* picker: search and a tick list that links and unlinks (problem-statements-parts #3, #5) */
.pi-picker-search{margin:2px 0 12px}
.pi-picker{list-style:none;margin:0 0 6px;padding:0;display:grid;gap:6px;max-height:min(46dvh,340px);overflow:auto}
.pi-picker .pi-check{margin:0;padding:10px 12px;border:1px solid var(--pi-line);border-radius:12px;align-items:center}
.pi-picker .pi-check:has(input:checked:not(:disabled)){border-color:var(--pi-ink)}
.pi-picker .pi-check:has(input:disabled){background:var(--pi-paper);cursor:default}
.pi-picker .pi-check input:disabled{border-style:dashed;background-color:var(--pi-paper)}
.pi-picker .pi-check.is-out{border-style:dashed}
.pi-picker .pi-check.is-out small{color:var(--pi-review)}
.pi-picker .pi-ref{color:var(--pi-muted);margin-right:6px}
.pi-picker-none{font-size:14px;color:var(--pi-secondary);padding:6px 0 10px}

/* ========== responsive ========== */
/* the record docks only at 1200 px and wider; below, a View opens it as a sheet — and if the class stays, the pair stacks */
@media (max-width:1199px){
  .pi-workarea.is-docked{grid-template-columns:minmax(0,1fr)}
  .pi-dock{position:static;max-height:none}
}
@media (max-width:1180px){
  .pi-thread-row{grid-template-columns:minmax(0,1fr)}
  .pi-thread-head{border-right:0;border-bottom:1px solid var(--pi-line)}
}
@media (max-width:1100px){
  .pi-summary.has-lead{grid-template-columns:1fr}
  .pi-summary-lead{border-right:0;border-bottom:1px solid var(--pi-line)}
}
@media (max-width:759px){
  .pi-crumb{display:none}
  .pi-vhead{flex-direction:column;align-items:stretch}
  .pi-vhead-act{justify-items:start;text-align:left}
  .pi-summary .pi-nums{grid-template-columns:1fr 1fr}
  .pi-summary .pi-nums li:nth-child(3){border-left:0}
  .pi-summary .pi-nums li:nth-child(n+3){border-top:1px solid var(--pi-hairline)}
  .pi-checks{grid-template-columns:1fr}
  .pi-checks>.pi-label{padding-top:0}
  .pi-checks-note{display:block;margin:2px 0 0;padding:0;border:0}
  .pi-register-head,.pi-toolbar,.pi-quickrow,.pi-strip{padding-left:16px;padding-right:16px}
  .pi-sort{flex:1 1 100%}
  .pi-sort select{flex:1}
  .pi-record-top{padding-left:18px}.pi-record-id,.pi-section,.pi-disclosure summary,.pi-disclosure>div,.pi-record .pi-foot{padding-left:18px;padding-right:18px}
  .pi-record-notice{margin-left:18px;margin-right:18px}
  .pi-formgrid{grid-template-columns:1fr}
  .pi-editor-head{padding-left:18px}.pi-editor-body{padding:4px 18px 24px}.pi-editor-foot{padding:12px 18px 16px}
  .pi-editor-foot div .pi-button{flex:1}
  .pi-measure,.pi-measure.pi-measure--one{grid-template-columns:minmax(0,1fr)}
  .pi-measure .pi-arrow{display:none}
  .pi-measure .pi-to,.pi-measure--one>div+div{border-left:0;padding-left:0;border-top:1px solid var(--pi-hairline);padding-top:10px}
  .pi-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pi-steps li{border-left:0;border-top:1px solid var(--pi-hairline)}
  .pi-steps li:first-child{grid-column:1/-1;border-top:0}
  .pi-steps li:first-child~li:nth-child(even){border-left:0}
  .pi-steps li:first-child~li:nth-child(odd){border-left:1px solid var(--pi-hairline)}
  .pi-steps li+li::before{display:none}
  .pi-thread-head,.pi-thread-foot{padding-left:16px;padding-right:16px}
}
@media (prefers-reduced-motion:reduce){
  .pi-first [data-rise],.pi-first .pi-bars i.on,.pi-dots i,.pi-skel i,.pi-sheet[open],.pi-sheet.pi-sheet--editor[open]{animation:none}
}
@media (forced-colors:active){
  .pi-table tbody tr[aria-current=true]{outline:2px solid Highlight;outline-offset:-2px}
  .pi-bars i.on{background:CanvasText}.pi-bars i{border:1px solid CanvasText}
  .pi-tag,.pi-dock,.pi-measure,.pi-choice label,.pi-picker .pi-check,.pi-rectasks li,.pi-reclist li>button:first-child{border-color:CanvasText}
  .pi-steps li+li::before{border-color:CanvasText}
  .pi-check input{appearance:auto;-webkit-appearance:auto}
}

/* 0.2.8 · the "out of date" note on a record (from Objectives v008, .fd-stale in ob.css). A pi-reason with data-tone="review":
   an h3 "The <document or review> is out of date", one line "<REF> changed on <date>, after <it> was approved (or reviewed) on <date>",
   and one text link to where it is put right. Amber, never red: the record is fine; what relies on it is behind. */
.pi-stale{margin-bottom:4px}
.pi-stale p{font-size:14px}
.pi .pi-stale button,.pi .pi-stale a{border:0;background:none;color:inherit;font:inherit;cursor:pointer;margin-top:8px;display:inline-flex;align-items:center;gap:6px;padding:0;min-height:36px;font-size:14px;text-decoration:underline;text-underline-offset:4px}
.pi-stale button svg,.pi-stale a svg{width:14px;height:14px}

/* ========== 0.2.9 · parts from the Views the Owner accepted on 23 September 2026 ==========
   Access v004 (access-parts 1-3), Tasks v004 (tasks-parts 1-5), Capture v006 (capture-parts 1-5). Values unchanged from the
   Views' local rules (ac.css, tk.css, cp.css); only the class names move to pi-. */

/* the meaning of a count: one line in ink under the label, the refs after it in the kit's muted em (access-parts 2, ac.css 8) */
.pi-summary .pi-nums em.pi-means,.pi-flow em.pi-means{color:var(--pi-ink);font-style:normal}

/* a register head with its own Add button: the button keeps one line and moves under the heading when room runs out (access-parts 3) */
.pi-register-head{flex-wrap:wrap;row-gap:10px}
.pi-register-head .pi-button{white-space:nowrap;gap:8px}

/* five ink steps and the word, for an ordered field with five values, e.g. classification (access-parts 1, ac.css 5, 5b, 10).
   Steps 3-5 carry the word at 600 (data-step). The bars stay whole in a narrow place; the word may wrap. No colour at any step. */
.pi-bars.pi-bars--5 i:nth-child(1){height:4px}.pi-bars.pi-bars--5 i:nth-child(2){height:6px}.pi-bars.pi-bars--5 i:nth-child(3){height:8px}.pi-bars.pi-bars--5 i:nth-child(4){height:10px}.pi-bars.pi-bars--5 i:nth-child(5){height:12px}
.pi-rating--5{white-space:normal;align-items:flex-start;min-width:0;max-width:100%}
.pi-rating--5 .pi-bars{flex:none;margin-top:.2em}
.pi-rating--5>span:last-child{min-width:0;overflow-wrap:anywhere}
.pi-rating--5[data-step="3"],.pi-rating--5[data-step="4"],.pi-rating--5[data-step="5"]{font-weight:600}
.pi-badges .pi-rating--5{align-items:center}

/* a group heading in a register: on paper, ruled, not a row anyone opens; its state in words with a mark; its warning said once
   (tasks-parts 1, extends stage-grouped-register 2; tk.css 38-46, 87-90) */
.pi-table tr.pi-group,.pi-table tbody tr.pi-group:hover{background:var(--pi-paper);cursor:default}
.pi-table tr.pi-group th{padding-top:14px;padding-bottom:14px;border-top:1px solid var(--pi-line);border-bottom:1px solid var(--pi-line)}
.pi-table tr.pi-group:first-child th{border-top:0}
.pi-table tr.pi-group+tr th,.pi-table tr.pi-group+tr td{border-top:0}
.pi-group-h{display:flex;align-items:baseline;gap:6px 14px;flex-wrap:wrap}
.pi-group-h b{font-size:15px;font-weight:600;letter-spacing:-.1px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): group labels take the one label style. */
.pi-group-h span{font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted);display:inline-flex;align-items:center;gap:6px}
.pi-group-h span i{width:8px;height:8px;flex:0 0 8px}
.pi-group-note{display:block;margin-top:4px;font-size:12.5px;color:var(--pi-secondary);max-width:62ch;font-weight:400}
@container pireg (max-width:760px){
  .pi-table tr.pi-group{padding:14px 20px;border-top:1px solid var(--pi-line);border-bottom:1px solid var(--pi-line)}
  .pi-table tr.pi-group:first-child{border-top:0}
  .pi-table tr.pi-group th{padding:0!important;border:0}
  .pi-table tr.pi-group+tr{border-top:0}
}

/* the due cell: the date, then the word that reads it; overdue = the date at 600 and the word in red; soon = amber (tasks-parts 2) */
.pi-due{display:flex;flex-direction:column;gap:3px;align-items:flex-start}
.pi-due b{font-weight:400;font-variant-numeric:tabular-nums}
.pi-due em{font-style:normal;font-size:12.5px;display:inline-flex;align-items:center;gap:6px;color:var(--pi-secondary)}
.pi-due em i{width:8px;height:8px;flex:0 0 8px}
.pi-due[data-tone=overdue] b{font-weight:600}
.pi-due[data-tone=overdue] em{color:var(--pi-gap)}
.pi-due[data-tone=soon] em{color:var(--pi-review)}

/* whose side a person is on: a hollow ink ring and the organisation under the name; nothing for one of ours (tasks-parts 3) */
.pi-who{display:block}
.pi-who b{font-weight:400}
.pi-org{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:12.5px;color:var(--pi-secondary)}
.pi-org i{width:8px;height:8px;flex:0 0 8px;border-radius:999px;border:1.5px solid var(--pi-ink);background:transparent}

/* quick raise: one line at the foot of a register (tasks-parts 4) */
.pi-raise{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:end;padding:16px 20px;border-top:1px solid var(--pi-line)}
.pi-raise .pi-field{margin:0}
.pi-raise .pi-field select{min-width:148px}
.pi-raise-more{grid-column:1/-1;margin:0;font-size:12.5px;color:var(--pi-secondary)}
.pi .pi-raise-more button{background:none;border:0;cursor:pointer;padding:0;font:inherit;text-decoration:underline;text-underline-offset:3px;color:var(--pi-ink)}
@media (max-width:760px){.pi-raise{grid-template-columns:minmax(0,1fr)}}

/* the way back to a Workspace's own landing: "← Back to <thing>", a pi-crumb (tasks-parts 5) */
.pi .pi-back{display:inline-flex;align-items:center;gap:6px;min-height:32px;margin:0 0 6px -2px;padding:0 2px;border-radius:8px;background:none;border:0;cursor:pointer}
.pi-back:hover{color:var(--pi-ink);text-decoration:underline;text-underline-offset:4px}
.pi-back .pi-i svg{width:14px;height:14px}

/* the steps of a Workspace: numbered steps on one ruled card, a count under each (capture-parts 1, cp.css 7).
   A filled mark = the step happens on this page; a ring = in another Workspace. No step is "current". Replaces the count cells. */
.pi-flow{padding:0;margin-bottom:12px;overflow:hidden}
.pi-flow ol{list-style:none;margin:0;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.pi-flow li{position:relative;display:grid;align-content:start;gap:6px;padding:20px 26px 18px;border-left:1px solid var(--pi-line);min-width:0}
.pi-flow li:first-child{border-left:0}
.pi-flow li+li::before{content:"";position:absolute;left:-12px;top:28px;width:22px;height:22px;border-radius:50%;background:var(--pi-white);border:1px solid var(--pi-line);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");background-size:12px;background-position:center;background-repeat:no-repeat;z-index:1}
.pi-flow-top{display:flex;align-items:center;gap:12px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): a step number is a number: sans with tabular figures. */
.pi-flow-n{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:50%;font:600 13px/1 var(--pi-font);font-variant-numeric:tabular-nums;background:var(--pi-ink);color:var(--pi-white);border:1.5px solid var(--pi-ink)}
.pi-flow .is-there .pi-flow-n{background:var(--pi-white);color:var(--pi-ink)}
.pi-flow-top h3{font-size:19px;font-weight:600;letter-spacing:-.4px}
.pi-flow-means{font-size:13.5px;color:var(--pi-ink);max-width:34ch}
.pi-flow-num{display:flex;align-items:baseline;gap:8px;margin-top:8px}
.pi-flow-num strong{font-size:var(--pi-number-card);font-weight:600;letter-spacing:-1px;line-height:1}
.pi-flow-num strong.pi-numword{font-size:15px;letter-spacing:0;font-weight:500;color:var(--pi-secondary)}
.pi-flow-num span{font-size:14px}
.pi-flow-more{font-size:12.5px;color:var(--pi-secondary)}
@media (max-width:759px){
  .pi-flow ol{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:minmax(0,1fr)}
  .pi-flow li{border-left:0;border-top:1px solid var(--pi-line);padding:16px 20px}
  .pi-flow li:first-child{border-top:0}
  .pi-flow li+li::before{left:24px;top:-12px;transform:rotate(90deg)}
}

/* a drop area for a file: a dashed box on paper, one secondary button over a hidden file input (capture-parts 2, cp.css 4) */
.pi-drop{position:relative;display:grid;justify-items:center;gap:8px;padding:26px 18px;border:1.5px dashed var(--pi-control);border-radius:14px;background:var(--pi-paper);text-align:center}
.pi-drop.is-over{border-color:var(--pi-ink);background:var(--pi-white)}
.pi-drop p{font-size:14px;color:var(--pi-secondary)}
.pi-drop .pi-button{gap:8px}
.pi-drop input[type=file]{position:absolute;width:1px;height:1px;opacity:0}
.pi-drop label:focus-within{outline:3px solid var(--pi-focus);outline-offset:3px}
.pi-picked{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;align-items:center;padding:14px 16px;border:1px solid var(--pi-line);border-radius:12px;background:var(--pi-white)}
.pi-picked .pi-i{grid-row:1/3;color:var(--pi-secondary)}
.pi-picked b{font-weight:600;font-size:14.5px;overflow-wrap:anywhere}
.pi-picked small{font-size:12.5px;color:var(--pi-secondary)}
.pi-limits{margin-top:8px;font-size:12.5px;color:var(--pi-secondary)}

/* an allowance strip: two ink bars, marked "Not in BOS" while no allowance exists; again as one line where the act uses it
   (capture-parts 3, cp.css 5). No colour and no warning until an allowance exists and a threshold is decided. */
.pi-allow{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px 28px;margin:0 0 16px;padding:12px 22px;border:1px solid var(--pi-line);border-radius:var(--pi-radius);background:var(--pi-white)}
.pi-allow-head{display:flex;align-items:center;gap:10px}
.pi-allow-head h2{font-size:14px;font-weight:600}
.pi-meter{display:grid;grid-template-columns:auto minmax(60px,1fr) auto;align-items:center;gap:10px;min-width:0;font-size:13px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): meter labels take the one label style. */
.pi-meter-l{font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}
.pi-meter b{font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.pi-meter-bar{height:6px;border-radius:3px;background:var(--pi-hairline);overflow:hidden}
.pi-meter-bar i{display:block;height:100%;background:var(--pi-ink);border-radius:3px;min-width:2px}
.pi-allow-fine{grid-column:1/-1;font-size:12px;color:var(--pi-muted)}
.pi-allow-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:12px;font-size:12.5px;color:var(--pi-secondary)}
@media (max-width:1100px){.pi-allow{grid-template-columns:minmax(0,1fr)}.pi-meter{grid-template-columns:88px minmax(60px,1fr) auto}}
@media (max-width:480px){.pi-meter{grid-template-columns:minmax(0,1fr) auto}.pi-meter .pi-meter-bar{grid-column:1/-1;grid-row:2}}

/* "Guessed": a value the machine filled in and no person entered; muted, no pill, no colour; Edit is the only act (capture-parts 4) */
.pi-guess{display:inline-block;margin-left:8px;font-size:12px;color:var(--pi-muted);white-space:nowrap}
.pi-table .pi-guess{display:block;margin:3px 0 0}
.pi-cells .pi-guess{margin-left:6px}

@media (forced-colors:active){
  .pi-bars--5 i{forced-color-adjust:none;background:GrayText}.pi-bars--5 i.on{background:CanvasText}
  .pi-org i{forced-color-adjust:none;border-color:CanvasText}
  .pi-flow-n{forced-color-adjust:none;border-color:CanvasText}.pi-flow .is-here .pi-flow-n{background:CanvasText;color:Canvas}
  .pi-drop{border-color:CanvasText}.pi-meter-bar{forced-color-adjust:none;background:GrayText}.pi-meter-bar i{background:CanvasText}
}

/* ========== 0.2.10 · the record in two parts, and edit in place (Stakeholders v012, the Owner, 24 September 2026) ==========
   record-page-parts 1-6. A short peek beside the register; the whole record on its own page; each section edited in place with
   quiet outlined fields that keep the view's grid, widths, labels and text size. The editor sheet stays for a new record only. */

/* 1 · the peek: one counts line under the few facts; Open record is the primary in its .pi-foot */
.pi-peek-counts{padding:14px 24px 18px;border-top:1px solid var(--pi-line);font-size:13.5px;color:var(--pi-secondary)}
.pi-record .pi-foot .pi-button{gap:8px}

/* 2 · the record page: back and pager, the head, the notice, two columns (main sections; related work and history) */
.pi-recpage-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.pi-recpage-bar .pi-back{margin-bottom:0}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): page numbers are numbers: sans with tabular figures. */
.pi-pager{display:flex;align-items:center;gap:6px;font:12px var(--pi-font);font-variant-numeric:tabular-nums;letter-spacing:0;color:var(--pi-muted)}
.pi-pager span{margin-right:6px}
.pi .pi-pager button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--pi-line);border-radius:999px;background:var(--pi-white);color:var(--pi-ink);font-size:18px;line-height:1;cursor:pointer}
.pi-pager button:hover:not(:disabled){border-color:var(--pi-ink)}
.pi-pager button svg{width:16px;height:16px}
.pi .pi-pager button:disabled{opacity:.35;cursor:default}
.pi-recpage-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:22px}
.pi-recpage-head h1{margin:8px 0 6px}
.pi-recpage-head h1:focus{outline:none}
.pi-recpage-head p:not(.pi-label){font-size:15px;color:var(--pi-secondary)}
.pi-recpage-act{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.pi-recpage-act .pi-button{gap:8px}
.pi-recpage-notice{margin-bottom:16px}
.pi-recpage-notice h3{font-size:14px;font-weight:600}
.pi-recpage-notice p{font-size:14px;color:var(--pi-secondary);margin-top:4px}
.pi-recpage-notice .pi-button{margin-top:12px;gap:8px}
.pi-recpage-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:16px;align-items:start}
.pi-recpage-card{background:var(--pi-white);border:1px solid var(--pi-line);border-radius:var(--pi-radius);overflow:hidden;min-width:0}
.pi-recpage-card>.pi-section:first-child{border-top:0}
.pi-recpage-main .pi-section{padding:24px 28px}
.pi-recpage-main .pi-section-head{align-items:center;margin-bottom:6px}
.pi-recpage-main .pi-section-head h3{font-size:16px;margin:0}
.pi-recpage h4{font-size:13px;font-weight:600;margin:18px 0 8px}

/* 3 · two-column facts: the view grid of a section; .pi-full spans both columns */
.pi-facts.pi-facts--two{grid-template-columns:1fr 1fr;gap:16px 24px;margin-top:4px}
.pi-facts--two>.pi-full{grid-column:1/-1}
.pi-recpage-side .pi-facts--two{gap:12px 16px}

/* 4 · edit in place: Edit in the section head; while editing, Cancel and Save take its place (small buttons) */
.pi .pi-sec-edit{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:1px solid var(--pi-line);border-radius:999px;font-size:13px;background:var(--pi-white);color:var(--pi-ink);cursor:pointer}
.pi-sec-edit:hover{border-color:var(--pi-ink)}
.pi-sec-edit .pi-i svg{width:14px;height:14px}
.pi-sec-acts{display:flex;gap:8px}
.pi .pi-button--small{min-height:32px;padding:0 14px;font-size:13px}
.pi-inform .pi-discard{margin:6px 0 0}
.pi-recpage-discard{padding:20px 24px;margin:0 0 16px}

/* 5 · the quiet outlined field: the view's grid, label and 14.5 px text; the value keeps its x position (the field reaches
   8 px past it: 1 px border + 7 px padding). White, a 1 px --pi-field-line border (3:1 on white and paper); hover --pi-control;
   focus a 2 px ink border drawn inset — no fill, no outer ring, nothing over the label. A hint sits on the label line, on focus only. */
.pi-if{display:grid;gap:4px;align-content:start;min-width:0}
.pi-if-head{display:flex;align-items:baseline;gap:10px;min-width:0}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): label style (0.2.13's later rule below still sets these at 14px). */
.pi-if-head>label,.pi-if-l{flex:none;font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}
.pi-if-req,.pi-if-hint{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;line-height:1.5;color:var(--pi-secondary)}
.pi-if-hint{visibility:hidden}
.pi-if:focus-within .pi-if-hint{visibility:visible}
.pi .pi-inform input:not([type=checkbox]):not([type=radio]),.pi .pi-inform select,.pi .pi-inform textarea{
  display:block;width:calc(100% + 16px);min-width:0;min-height:34px;margin:0 -8px;padding:6px 7px;
  border:1px solid var(--pi-field-line);border-radius:8px;background:var(--pi-white);box-shadow:none;
  color:var(--pi-text);font:400 14.5px/1.45 var(--pi-font);transition:border-color .12s,box-shadow .12s}
.pi .pi-inform textarea{resize:none;overflow:hidden}
.pi .pi-inform select{appearance:none;-webkit-appearance:none;padding-right:30px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376736c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 9px center;background-size:14px}
.pi .pi-inform input:not([type=checkbox]):not([type=radio]):hover,.pi .pi-inform select:hover,.pi .pi-inform textarea:hover{border-color:var(--pi-control)}
.pi .pi-inform input:not([type=checkbox]):not([type=radio]):focus,.pi .pi-inform select:focus,.pi .pi-inform textarea:focus{outline:none;border-color:var(--pi-ink);box-shadow:inset 0 0 0 1px var(--pi-ink)}
.pi .pi-inform [aria-invalid=true],.pi .pi-inform [aria-invalid=true]:focus{border-color:var(--pi-gap);box-shadow:inset 0 0 0 1px var(--pi-gap)}
.pi-inform .pi-error{margin-top:4px}
.pi-inform .pi-cells{margin-top:14px}
.pi-inform .pi-cells>.pi-if{padding:12px 14px}
.pi .pi-inform .pi-check{margin:0;min-height:34px;align-items:center;font-weight:400;font-size:14.5px}
.pi .pi-inform .pi-check input{margin:0}

@media (pointer:coarse){
  .pi .pi-inform input:not([type=checkbox]):not([type=radio]),.pi .pi-inform select,.pi .pi-inform textarea{font-size:16px;min-height:44px;padding-top:10px;padding-bottom:10px}
  .pi .pi-button--small{min-height:44px}
}
@media (max-width:1023px){.pi-recpage-cols{grid-template-columns:minmax(0,1fr)}}
@media (max-width:759px){
  .pi-recpage-head{flex-direction:column;align-items:stretch}
  .pi-recpage-act{justify-content:flex-start}
  .pi-recpage-main .pi-section{padding:20px 18px}
  .pi-peek-counts{padding-left:18px;padding-right:18px}
  .pi-facts.pi-facts--two{grid-template-columns:minmax(0,1fr)}
}
@media (forced-colors:active){
  .pi-recpage-card,.pi .pi-sec-edit{border-color:CanvasText}
  .pi .pi-inform input:not([type=checkbox]):not([type=radio]),.pi .pi-inform select,.pi .pi-inform textarea{border-color:CanvasText}
  .pi .pi-inform :focus{outline:2px solid Highlight}
}
@media (prefers-reduced-motion:reduce){.pi .pi-inform input,.pi .pi-inform select,.pi .pi-inform textarea{transition:none}}

/* ========== 0.2.11 · the Framing Views accepted on 24 September 2026 ==========
   Stakeholders v014, Scope v007, Problem Statements v009, Objectives v009, Constraints v006, Assumptions v005 (all on 0.2.10).
   Parts each of them carried locally; values unchanged, only the class names move to pi-. (The underline tabs are in shell.css.) */

/* the dated history list in a record page's Record history (sh-, sc-, ps-, ob-, cn-, as-activity): visible, never folded away */
.pi-activity{margin:0;padding-left:18px;font-size:13.5px;color:var(--pi-secondary);display:grid;gap:8px}
.pi-activity b{font-weight:600;color:var(--pi-ink)}

/* the validation mark: pi-decision with four stored answers and "Not set", in the Foundations Overview colours, the word always
   beside it (revision 2, the Owner, 24 Sep 2026: "retain the colours that we currently have in Foundations and apply those throughout
   the system"). validated = green · validating = ink · open = hollow (muted ring) · rejected = red · not set = dashed ring.
   The colours are the kit's accent marks (--pi-green, --pi-red); the word carries the meaning, as every .pi-mark. */
.pi-decision[data-dec=open] i,.pi-decision[data-dec=validating] i,.pi-decision[data-dec=validated] i,.pi-decision[data-dec=rejected] i{border:0;background:var(--pi-ink)}
.pi-decision[data-dec=validated] i{background:var(--pi-green)}
.pi-decision[data-dec=rejected] i{background:var(--pi-red)}
.pi-decision[data-dec=open] i{background:none;border:1.5px solid var(--pi-muted)}
.pi-choice label:has(input:checked) .pi-decision[data-dec=validating] i{background:var(--pi-white)}
.pi-choice label:has(input:checked) .pi-decision[data-dec=open] i{border-color:var(--pi-white)}

/* revision 5 (24 Sep 2026, Capture v008): the quiet field inside the editor sheet. A sheet has no view to line up with, so the field
   does not reach past its text: it lines up with its label, full width of its column. Everything else is the record page's field. */
.pi .pi-editor-body.pi-inform input:not([type=checkbox]):not([type=radio]),.pi .pi-editor-body.pi-inform select,.pi .pi-editor-body.pi-inform textarea{width:100%;margin:0}

/* a baseline → target pair edited in place (Objectives v009): the date line reads as the form, the date field half width */
.pi-inform .pi-measure .pi-by{font-size:inherit;color:inherit}
.pi-inform .pi-measure .pi-by>.pi-if{max-width:calc(50% - 20px)}
@media (max-width:759px){.pi-inform .pi-measure .pi-by>.pi-if{max-width:none}}

@media (forced-colors:active){
  .pi-decision[data-dec=open] i,.pi-decision[data-dec=validating] i,.pi-decision[data-dec=validated] i,.pi-decision[data-dec=rejected] i{forced-color-adjust:none;background:CanvasText}
  .pi-decision[data-dec=open] i{background:none;border-color:CanvasText}
}

/* ========== 0.2.12 · parts the accepted screens still copied locally (24 September 2026) ==========
   Values unchanged from the screens' own rules; only the class names move to pi-. */

/* the attention line: amber (or red) words with a small mark, on its own line, never the state's dot (0.2.11 rev. 3).
   Was gv-gap, ac-gap, as-sub.is-gap, fo "st tone-amber", tk overdue/soon lines. */
.pi-attention{display:flex;width:fit-content;max-width:100%;align-items:center;gap:6px;font-size:12.5px;line-height:1.45;color:var(--pi-review)}
.pi-attention .pi-mark{width:8px;height:8px;flex:0 0 8px}
.pi-attention[data-tone=gap]{color:var(--pi-gap)}
.pi-table .pi-attention,.pi-facts dd>.pi-attention{margin-top:4px}
.pi-facts dd>.pi-attention:first-child{margin-top:0}

/* several registers on one page, stacked in one column so the docked peek sits beside all of them (was gv-col, ac-col) */
.pi-regcol{display:grid;gap:16px;min-width:0;align-content:start}

/* three cells in a row: the two-cell block with a third column (was tk-cells3); stacks on a narrow screen */
.pi-cells.pi-cells--3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:520px){.pi-cells.pi-cells--3{grid-template-columns:minmax(0,1fr)}.pi-cells.pi-cells--3>div+div{border-left:0;border-top:1px solid var(--pi-hairline)}}
@media (forced-colors:active){.pi-attention .pi-mark{forced-color-adjust:none;background:CanvasText}}

/* ========== 0.2.13 · a field is as wide as what it holds; a field in a table fills its cell (24 September 2026) ==========
   The Owner, after the field-width review (reviews/2026-09-24-fields-and-peek): "a". Until now a field was half the form or all of it,
   so a three-option choice, a number or a date took the same box as a name. Three widths, set by what the field holds:
   .pi-if--s  short  — a short choice, a number, a date, a unit: up to 14rem (224 px)
   .pi-if--m  medium — a name, a short phrase, a longer choice (a person): up to 24rem (384 px)
   (none)     full   — the field's column: a sentence or prose.
   The field keeps its grid cell and its label; only the box is narrower, still reaching 8 px past its text on the left. */
.pi .pi-inform .pi-if--s input:not([type=checkbox]):not([type=radio]),.pi .pi-inform .pi-if--s select{width:min(calc(100% + 16px),14rem)}
.pi .pi-inform .pi-if--m input:not([type=checkbox]):not([type=radio]),.pi .pi-inform .pi-if--m select{width:min(calc(100% + 16px),24rem)}
.pi .pi-editor-body.pi-inform .pi-if--s input:not([type=checkbox]):not([type=radio]),.pi .pi-editor-body.pi-inform .pi-if--s select{width:min(100%,14rem)}
.pi .pi-editor-body.pi-inform .pi-if--m input:not([type=checkbox]):not([type=radio]),.pi .pi-editor-body.pi-inform .pi-if--m select{width:min(100%,24rem)}
/* short fields may share a row: three to a row where the form has room, two on a tablet, one on a phone */
.pi-if-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:16px 24px}

/* a field inside a table cell fills the cell: the 8 px reach would lay each box over its neighbour (Evidence v026, the scope table) */
.pi .pi-inform td input:not([type=checkbox]):not([type=radio]),.pi .pi-inform td select,.pi .pi-inform td textarea{width:100%;margin:0}

/* ========== 0.2.14 · decide from the row; a warning only when something is missing (24 September 2026) ==========
   The Owner, after trials in Evidence v031–v033: "It works, use it for every screen now." Source: reviews/2026-09-24-row-confirm.
   A draft is confirmed, and a system proposal accepted, from its register row — on the right, in the record-status cell, beside
   the status it changes ("Draft · Confirm", "Proposed · Accept…"). Actions sit on the right; people look for them there. */
.pi-recst{display:flex;flex-wrap:nowrap;align-items:baseline;gap:4px 10px;white-space:nowrap}
.pi-recst .pi-statusline{margin:0}
.pi-recst>span:not(.pi-statusline){font-size:13px;color:var(--pi-secondary)}
.pi-table .pi-recst{margin-top:6px}
.pi-table td>.pi-recst:first-child{margin-top:0}
@media (max-width:759px){.pi-recst{flex-wrap:wrap;white-space:normal}}
/* the quiet row action: text weight, no box, underlined; the verb only ("Confirm"; "Accept…" opens the source first) */
.pi button.pi-rowact{display:inline-flex;align-items:center;margin:0;padding:2px 0;border:0;background:none;font:inherit;font-size:13px;font-weight:500;color:var(--pi-ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--pi-field-line);cursor:pointer}
.pi button.pi-rowact:hover{text-decoration-color:var(--pi-ink)}
.pi button.pi-rowact:focus-visible{outline:2px solid var(--pi-ink);outline-offset:2px;border-radius:2px}
/* Undo in a notice: an underlined word after the message, not the round dismiss button (which every .pi-notice button would be) */
.pi .pi-notice button.pi-inline{width:auto;height:auto;flex:none;display:inline;margin-left:6px;padding:0;border-radius:0;color:#fff;font:inherit;font-weight:500;text-decoration:underline;text-underline-offset:3px}
@media (forced-colors:active){.pi button.pi-rowact{text-decoration-color:CanvasText}}

/* the searchable picker (Evidence v026 sources, v034 Raised for): chosen items first and always shown; the rest found by typing,
   or all on request; one live line says how many match. Tick boxes stay one list, so a form reads them as before. */
.pi-pick-find{position:relative;margin:4px 0 8px}
.pi-pick-find .pi-i{position:absolute;left:12px;top:50%;transform:translateY(-50%);z-index:1;pointer-events:none;display:inline-flex;color:var(--pi-secondary)}
.pi .pi-inform .pi-pick-find input[type=search]{width:100%;margin:0;box-sizing:border-box;min-height:40px;padding:9px 12px 9px 36px;border:1px solid var(--pi-field-line);border-radius:10px;background:var(--pi-white);font:inherit}
.pi .pi-inform .pi-pick-find input[type=search]:focus{outline:none;border-color:var(--pi-ink);box-shadow:inset 0 0 0 1px var(--pi-ink)}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): picker group heads take the one label style. */
.pi-pick-h{margin:10px 0 6px;font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-secondary)}
.pi-pick-list li[hidden]{display:none}
.pi-pick-list:not(:has(li:not([hidden]))){display:none}
.pi-pick-n{margin:6px 0 0;font-size:12.5px;color:var(--pi-secondary)}


/* ========== 0.2.15 · the parts of Analyse v014, accepted on 24 September 2026 (proposals/2026-09-24-analyse-parts.md) ==========
   Also fixed here: a stray "}" after the 0.2.11 forced-colours block (0.2.12–0.2.14) made browsers drop the next rule, the
   attention line's own .pi-attention. It now applies as designed: its own line, 12.5 px, amber or red. */

/* New information: what the system has read since a Workspace last generated, and the Workspace's one Generate.
   States: new (a gold mark beside the heading, Generate in ink) · .is-done (what a run proposed) · .is-quiet (nothing new). */
.pi-card.pi-news{display:flex;align-items:flex-start;justify-content:space-between;gap:16px 28px;padding:18px 22px;margin:0 0 16px;border-color:var(--pi-line)}
.pi-news h2{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:600;letter-spacing:-.2px;margin-bottom:4px}
.pi-news h2 .pi-mark{width:9px;height:9px}
.pi-news p{font-size:14.5px;line-height:1.5;max-width:70ch}
.pi-news .pi-fine{margin-top:8px}
.pi-news-docs{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:4px;font-size:14px}
.pi-news-docs li{display:flex;flex-wrap:wrap;gap:2px 10px}
.pi-news-docs span{color:var(--pi-secondary)}
.pi-news-act{display:grid;justify-items:end;gap:6px;flex:0 0 auto}
.pi-news-act small{font-size:12.5px;color:var(--pi-muted)}
.pi-news.is-quiet,.pi-news.is-done{padding:14px 22px}
.pi-news.is-quiet h2,.pi-news.is-done h2{font-size:15px}
.pi-news.is-done .pi-inline{margin-top:6px;font-size:14px}
@media (max-width:760px){.pi-card.pi-news{flex-direction:column;padding:16px}.pi-news-act{justify-items:start}}

/* The ready line in an out-of-date note: what is left before the document can be approved again, or that it is ready. */
.pi-ready{margin-top:8px;font-size:14px}
.pi-ready.is-ready{display:flex;align-items:center;gap:8px}
.pi-ready .pi-mark{width:8px;height:8px}

/* The chain page: a map of records read in the context of each other (three columns of compact cards, the links drawn under
   them), then the record in focus, full width, in the record page's own columns. Lines: gold where they touch the focus,
   quiet otherwise, dashed for a proposed link. .is-lit lights a card's path and dims the rest. On a phone the columns stack,
   the lines give way to .pi-chain-narrow ("→ RC-1"). */
.pi-chain-title{font-size:26px;line-height:1.25;letter-spacing:-.6px;max-width:32ch}
.pi-chain-sum{margin-top:6px;font-size:14.5px;color:var(--pi-secondary)}
.pi-chain{margin:0 0 20px;padding:18px 20px 14px;border:1px solid var(--pi-line);border-radius:var(--pi-radius);background:var(--pi-white)}
.pi-chain-cols{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 56px}
.pi-chain-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}
.pi-chain-lines path{fill:none;stroke:var(--pi-line);stroke-width:1.5}
.pi-chain-lines path.is-hot{stroke:var(--pi-gold);stroke-width:2.5}
.pi-chain-lines path.is-prop{stroke-dasharray:5 4}
.pi-chain-col{position:relative;z-index:1;min-width:0}
.pi-chain-col-h{display:grid;gap:2px;height:40px;margin:0 0 10px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): column labels take the one label style. */
.pi-chain-col-h span{font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}
.pi-chain-col-h small{font-size:12px;color:var(--pi-secondary)}
.pi-chain-col ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.pi-chain-card{display:grid;gap:5px;padding:10px 12px 11px;border:1px solid var(--pi-line);border-radius:12px;background:var(--pi-white);cursor:pointer}
.pi-chain-card:hover{border-color:var(--pi-control)}
.pi-chain-card.is-focus{border:2px solid var(--pi-gold);padding:9px 11px 10px;cursor:default}
.pi-chain-card.is-prop{border-style:dashed}
.pi-chain-card.is-prop.is-focus{border-style:solid}
.pi .pi-chain-open{display:grid;gap:2px;padding:0;border:0;background:none;font:inherit;text-align:left;color:var(--pi-ink);cursor:pointer}
.pi-chain-open b{font-size:14px;font-weight:500;line-height:1.35;overflow-wrap:anywhere}
.pi .pi-chain-open:hover b{text-decoration:underline;text-underline-offset:3px}
.pi .pi-chain-card.is-focus .pi-chain-open{cursor:default}
.pi .pi-chain-card.is-focus .pi-chain-open:hover b{text-decoration:none}
.pi-chain-st{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:13px}
.pi-chain-st .pi-statusline,.pi-chain-card .pi-attention{margin:0}
.pi-chain-st .pi-recst{flex-wrap:wrap;white-space:normal}
.pi-chain-line{font-size:12.5px;color:var(--pi-muted)}
.pi-chain-narrow{display:none;font-size:12.5px;color:var(--pi-secondary)}
.pi .pi-chain-link{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:4px 2px;border:0;background:none;font:inherit;font-size:13.5px;font-weight:500;color:var(--pi-ink);text-decoration:underline;text-decoration-color:var(--pi-field-line);text-underline-offset:4px;cursor:pointer}
.pi .pi-chain-link:hover{text-decoration-color:var(--pi-ink)}
.pi-chain-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 16px;margin-top:14px;padding-top:10px;border-top:1px solid var(--pi-hairline)}
.pi-chain-foot .pi-inline{font-size:13px}
.pi-chain-cols.is-lit .pi-chain-card.is-dim{opacity:.38}
.pi-chain-cols.is-lit .pi-chain-lines path{opacity:.25}
.pi-chain-cols.is-lit .pi-chain-lines path.is-path{opacity:1;stroke:var(--pi-gold);stroke-width:2.5}
.pi-chain-card,.pi-chain-lines path{transition:opacity .15s ease}
.pi-focus{padding-top:20px;border-top:1px solid var(--pi-line)}
.pi-focus-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px 20px;margin:0 0 16px}
.pi-focus-head h2{font-size:24px;font-weight:600;letter-spacing:-.5px;line-height:1.25;max-width:40ch}
.pi-focus-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:8px;font-size:14px;color:var(--pi-secondary)}
.pi-focus-line .pi-statusline,.pi-focus-line .pi-attention{margin:0}
.pi[data-mode=present] .pi-focus,.pi [data-mode=present] .pi-focus{display:none!important}
@media (max-width:900px){.pi-chain-cols{grid-template-columns:minmax(0,1fr);gap:18px}.pi-chain-lines{display:none}.pi-chain-narrow{display:block}}
@media (max-width:760px){.pi-chain{padding:14px}.pi-chain-title{font-size:22px}.pi-focus-head{flex-direction:column}}

/* A chain as a card in an overview: its title (opens the chain), its shape as ref chips with arrows (a proposal dashed), its
   business case, its weakest evidence, up to three flags and what is waiting. */
.pi-chaincards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (max-width:900px){.pi-chaincards{grid-template-columns:minmax(0,1fr)}}
.pi-chaincard{display:grid;gap:8px;align-content:start;padding:16px 18px;border:1px solid var(--pi-line);border-radius:var(--pi-radius-inner);background:var(--pi-white)}
.pi-chaincard h3{font-size:16px;font-weight:600;line-height:1.35;letter-spacing:-.2px}
.pi .pi-chaincard h3 button{padding:0;border:0;background:none;font:inherit;text-align:left;color:var(--pi-ink);cursor:pointer}
.pi .pi-chaincard h3 button:hover{text-decoration:underline;text-underline-offset:4px}
.pi-chaincard-shape{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:13px}
.pi-chaincard-shape .pi-ref{padding:1px 7px;border:1px solid var(--pi-line);border-radius:999px;background:var(--pi-paper)}
.pi-chaincard-shape .pi-ref.is-prop{border-style:dashed;background:var(--pi-white)}
.pi-chaincard-shape .pi-arrow{color:var(--pi-gold-text)}
.pi-chaincard-meta{font-size:13px;color:var(--pi-secondary)}
.pi-chaincard-flags{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:4px}
.pi-chaincard-flags .pi-attention{margin:0}
.pi-chaincard-wait{font-size:12.5px;color:var(--pi-ink)}
.pi-chaincard-ok{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--pi-secondary)}
.pi-chaincard-ok .pi-mark{width:8px;height:8px}

/* The flight between two views of the same records (a new motion rule): a box that moves by transform only (placed where it
   lands, started scaled to where it left) and a label that moves but never scales. The one soft shadow of a floating layer. */
.pi-fly{position:fixed;z-index:60;box-sizing:border-box;background:var(--pi-white);border:1px solid var(--pi-gold);border-radius:10px;
  box-shadow:0 8px 24px rgba(28,27,24,.12);transform-origin:0 0;will-change:transform;pointer-events:none}
.pi-fly.is-chip{border-radius:999px}
.pi-fly-label{position:fixed;z-index:61;display:flex;align-items:center;gap:8px;overflow:hidden;white-space:nowrap;font:500 13px/1.2 var(--pi-font);color:var(--pi-ink);
  transform:translate(0,-50%);will-change:transform;pointer-events:none}
.pi-fly-label b{flex:0 0 auto;font:400 12.5px/1 var(--pi-mono)}
.pi-fly-label span{min-width:0;overflow:hidden;text-overflow:ellipsis}

@media (prefers-reduced-motion:reduce){.pi-fly,.pi-fly-label{display:none}.pi-chain-card,.pi-chain-lines path{transition:none}}
@media (forced-colors:active){.pi-chain-lines path{stroke:CanvasText}.pi-chain-card.is-focus{border-color:Highlight}.pi-fly{border-color:CanvasText}}

/* ========== 0.2.16 · the Research parts, accepted on 25 September 2026 (Research v015; proposals/2026-09-25-research-parts.md) ==========
   The Owner: "a, use the mid-grey border, accept", then "release the new field style and parts". Values are Research v015's; the
   class names move from rs- to pi-. Accepted screens keep their pins; each takes these at its next version. */

/* 1 · the field style (every .pi-inform field). Research on common practice (Baymard): the label sits ABOVE the field in plain
   words and sentence case, so it stays visible while a person types; each field is as wide as what it holds. The box lines up with
   its label (no 8 px reach). A mid-grey edge at rest (--pi-field-rest #b3b0a8, about 2.2:1 on white — below the 3:1 guidance of
   WCAG 1.4.11 BY THE OWNER'S DECISION; recorded in contrast.json, not asserted), darker on hover (--pi-field-hover #8f8c85, 3.36:1),
   ink with a 1 px ring on focus. 8 px corners, 40 px high (44 px on touch). */
.pi-if{gap:6px}
.pi-if-head>label,.pi-if-l{font:500 14px/1.4 var(--pi-font);letter-spacing:0;text-transform:none;color:var(--pi-ink)}
.pi-if-hint{visibility:visible;font-size:12.5px;color:var(--pi-muted)}
.pi .pi-inform input:not([type=checkbox]):not([type=radio]),.pi .pi-inform select,.pi .pi-inform textarea{
  width:100%;margin:0;min-height:40px;padding:8px 12px;border:1px solid var(--pi-field-rest);border-radius:8px;background-color:var(--pi-white);
  font:400 15px/1.45 var(--pi-font);color:var(--pi-text);box-shadow:none}
.pi .pi-inform select{padding-right:32px}
.pi .pi-inform input:not([type=checkbox]):not([type=radio]):hover,.pi .pi-inform select:hover,.pi .pi-inform textarea:hover{border-color:var(--pi-field-hover)}
.pi .pi-inform input:not([type=checkbox]):not([type=radio]):focus,.pi .pi-inform select:focus,.pi .pi-inform textarea:focus{outline:none;border-color:var(--pi-ink);box-shadow:0 0 0 1px var(--pi-ink)}
.pi .pi-inform [aria-invalid=true],.pi .pi-inform [aria-invalid=true]:focus{border-color:var(--pi-gap);box-shadow:0 0 0 1px var(--pi-gap)}
.pi .pi-inform ::placeholder{color:var(--pi-field-hover)}
.pi .pi-inform .pi-picker .pi-check{border-color:var(--pi-field-rest);border-radius:8px}
.pi .pi-inform .pi-picker .pi-check:hover{border-color:var(--pi-field-hover)}
/* widths by what the field holds: s (a short choice, a number, a date) 14rem · m (a person, a longer choice) 24rem · l (a name or a
   title) 32rem · xl (a sentence) 44rem · none: the column (prose) */
.pi .pi-inform .pi-if--s input:not([type=checkbox]):not([type=radio]),.pi .pi-inform .pi-if--s select{width:min(100%,14rem)}
.pi .pi-inform .pi-if--m input:not([type=checkbox]):not([type=radio]),.pi .pi-inform .pi-if--m select{width:min(100%,24rem)}
.pi-inform .pi-if--l{max-width:32rem}
.pi-inform .pi-if--xl{max-width:44rem}
@media (pointer:coarse){.pi .pi-inform input:not([type=checkbox]):not([type=radio]),.pi .pi-inform select,.pi .pi-inform textarea{min-height:44px;font-size:16px}}
@media (forced-colors:active){.pi .pi-inform input:not([type=checkbox]):not([type=radio]),.pi .pi-inform select,.pi .pi-inform textarea{border-color:CanvasText}}

/* a kit gap fixed: a long title squeezed the record page's actions until Retire wrapped to the far edge; they keep one line */
@media (min-width:760px){.pi-recpage-head>div:first-child{flex:1 1 auto;min-width:0}.pi-recpage-act{flex:none;flex-wrap:nowrap}.pi-recpage-act .pi-button{white-space:nowrap}}

/* 2 · the stage line of a record: three (or more) equal columns in a framed strip under the title. done = green with a tick;
   now = gold ("here"); next = hollow; stopped = an ink ring. The joining line fills each column; green between done stages. */
.pi-stageline{list-style:none;margin:4px 0 18px;padding:14px 18px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);border:1px solid var(--pi-line);border-radius:var(--pi-radius);background:var(--pi-white)}
.pi-stageline li{display:flex;align-items:center;gap:12px;min-width:0}
.pi-stageline li:not(:last-child)::after{content:"";flex:1 1 auto;min-width:16px;height:2px;border-radius:2px;background:var(--pi-line);margin:0 14px}
.pi-stageline li.is-done:not(:last-child)::after{background:var(--pi-green)}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): a step number is a number: sans with tabular figures. */
.pi-stageline-dot{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;font:600 14px/1 var(--pi-font);font-variant-numeric:tabular-nums;border:1.5px solid var(--pi-control);color:var(--pi-secondary);background:var(--pi-white)}
.pi-stageline-dot svg{width:16px;height:16px}
.pi-stageline li>span:nth-child(2){display:grid;gap:1px;min-width:0;flex:none}
.pi-stageline b{font-size:16px;font-weight:600;white-space:nowrap}
.pi-stageline small{font-size:12px;color:var(--pi-secondary)}
.pi-stageline .is-done .pi-stageline-dot{background:var(--pi-green);border-color:var(--pi-green);color:#fff}
.pi-stageline .is-now .pi-stageline-dot{background:var(--pi-gold);border-color:var(--pi-gold);color:var(--pi-ink)}
.pi-stageline .is-now small{color:var(--pi-ink);font-weight:600}
.pi-stageline .is-stopped .pi-stageline-dot{border-color:var(--pi-ink);color:var(--pi-ink)}
.pi-stageline .is-todo b{color:var(--pi-secondary);font-weight:500}
@media (max-width:759px){.pi-stageline{padding:12px}.pi-stageline li{gap:6px}.pi-stageline li:not(:last-child)::after{margin:0 6px;min-width:6px}.pi-stageline-dot{width:28px;height:28px}.pi-stageline b{font-size:13px}.pi-stageline small{display:none}}

/* 3 · "Your next step": the page's one ink card (.pi-card.pi-card--ink.pi-nextstep). One sentence and one button; or an answer form;
   or, when done, a list with a link on each line. Every state of the record has exactly one next step; a register repeats it. */
.pi-nextstep{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;margin-bottom:18px;padding:20px 24px}
.pi-nextstep-body{flex:1 1 380px;min-width:0;display:grid;gap:6px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): the next-step label takes the one label style. */
.pi-nextstep h2{font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:#a9a7a0;display:flex;align-items:center;gap:8px}
.pi-nextstep h2:focus{outline:none}
.pi-nextstep h2 .pi-dots i,.pi-nextstep .pi-dots i{background:#fff}
.pi-nextstep-say{font-size:18px;font-weight:600;letter-spacing:-.2px;line-height:1.35;color:#fff}
.pi-nextstep-why,.pi-nextstep-small{font-size:13.5px;color:#cfcdc6}
.pi .pi-nextstep .pi-inline{color:#fff}
.pi-nextstep-act{flex:none}
.pi .pi-nextstep-btn{background:#fff;color:var(--pi-ink);border-color:#fff;gap:8px;white-space:nowrap}
.pi .pi-nextstep-btn:hover{background:#ecebe6}
.pi-nextstep-ask{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.pi .pi-nextstep-ask input{flex:1 1 240px;min-width:0;min-height:40px;border:1px solid #fff;border-radius:10px;padding:8px 12px;background:#fff;color:var(--pi-ink);font:inherit}
.pi-nextstep-list{list-style:none;margin:10px 0 4px;padding:0;display:grid;gap:6px}
.pi-nextstep-list li{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 16px;padding:10px 12px;border:1px solid #3a3a37;border-radius:10px;color:#fff;font-size:14.5px}
.pi-nextstep-list .pi-ref{color:#cfcdc6;margin-right:8px}
@media (max-width:759px){.pi-nextstep{padding:18px}.pi-nextstep-say{font-size:16px}.pi-nextstep-act,.pi-nextstep-act .pi-button{width:100%}}

/* 4 · folded parts: a record page made of numbered <details>; each shows its title and a one-line summary when folded; the part of
   the record's current stage opens by itself; a part with nothing yet is locked with a sentence (data-locked). */
.pi-part{border-top:1px solid var(--pi-line)}
.pi-part:first-child{border-top:0}
.pi-part>summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:60px;padding:14px 24px;cursor:pointer}
.pi-part>summary::-webkit-details-marker{display:none}
.pi-part-t{font-size:17px;font-weight:600;letter-spacing:-.2px}
.pi-part-s{margin-left:auto;font-size:13px;color:var(--pi-secondary);text-align:right}
.pi-part>summary .pi-i{flex:none;color:var(--pi-secondary);transition:transform 150ms ease}
.pi-part[open]>summary .pi-i{transform:rotate(180deg)}
.pi-part[data-locked]>summary{cursor:default}
.pi-part-b{padding:0 24px 24px;display:grid;gap:14px;container:piopt/inline-size}
@media (max-width:759px){.pi-part>summary{padding:14px 16px;flex-wrap:wrap}.pi-part-s{margin-left:0;text-align:left;flex:1 1 100%;order:3}.pi-part-b{padding:0 16px 20px}}

/* 5 · the options table: a tick in the name cell, then Match (.pi-rating--5 and a word), Cost, Time to set up, Effort. The best is
   "Recommended" on a faint gold row. The name opens a detail row: why it fits, main risk, the five tests, where each figure comes
   from. It stays a table while there is room to compare; below 520 px of its part (container piopt) each option is one block. */
.pi-opts{margin:0}
.pi-opts .pi-c-op{width:36%}.pi-opts .pi-c-ma{width:20%}.pi-opts .pi-c-co{width:18%}.pi-opts .pi-c-ti{width:14%}.pi-opts .pi-c-ef{width:12%}
.pi-opts thead th,.pi-opts tbody th,.pi-opts tbody td{padding-left:10px;padding-right:10px}
.pi-opts thead th:first-child,.pi-opts tbody th{padding-left:12px}
.pi-opcell{display:flex;align-items:flex-start;gap:12px}
.pi-tick{display:inline-grid;place-items:center;width:22px;height:22px;flex:none;margin-top:2px}
.pi-tick input{width:18px;height:18px;margin:0;accent-color:var(--pi-ink)}
.pi-tick.is-put{border-radius:50%;background:var(--pi-green);color:#fff}
.pi-tick.is-put svg{width:13px;height:13px}
.pi-opt-t{display:grid;gap:3px;min-width:0}
.pi .pi-opt-open{padding:0;border:0;background:none;font:inherit;font-size:14.5px;font-weight:600;text-align:left;cursor:pointer;color:var(--pi-ink)}
.pi .pi-opt-open:hover{text-decoration:underline;text-underline-offset:3px}
.pi-opt-t small{font-size:12.5px;font-weight:400;color:var(--pi-secondary)}
.pi-rec{font-weight:600;color:var(--pi-ink)}
.pi-opts tr.is-rec{background:color-mix(in srgb,var(--pi-gold) 10%,var(--pi-white))}
.pi-optd td{background:var(--pi-paper)}
.pi-optd-b{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 28px;padding:6px 4px}
.pi-optd-b p{font-size:13.5px}
.pi-optd-b .pi-label{display:block;margin:10px 0 2px}.pi-optd-b>div>.pi-label:first-child{margin-top:0}
.pi-tests{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:3px;font-size:13.5px}
.pi-tests li{display:flex;gap:8px}
.pi-t{width:48px;flex:none;font-weight:600}
.pi-t[data-v="0"]{color:var(--pi-secondary);font-weight:500}
@container piopt (max-width:520px){
  .pi-opts,.pi-opts tbody,.pi-opts tr,.pi-opts th,.pi-opts td{display:block;width:auto!important}
  .pi-opts thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .pi-opts tbody tr.pi-opt{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;padding:14px 16px;border-top:1px solid var(--pi-hairline)}
  .pi-opts tbody th,.pi-opts tbody td{padding:0!important;border:0}
  .pi-opts tbody tr.pi-opt th{grid-column:1/-1}
  .pi-opts td[data-l]{display:grid;gap:2px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): label style for the stacked cell label. */
  .pi-opts td[data-l]::before{display:block;content:attr(data-l);font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}
  .pi-opts .pi-optd td{padding:12px 16px!important}
  .pi-optd-b{grid-template-columns:minmax(0,1fr)}
}

/* 6 · where a line came from, as a quiet dot (not a word on every line), and ONE legend at the foot of the part. ink: from the
   records (the title names them) · hollow: guessed by the system · gold: the person's own · amber with "Check this": needs the person.
   Extends "Guessed" (.pi-guess, 0.2.9) to many lines at once; one "not in the system" line per part replaces many tags. */
.pi-srcline{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding-left:18px;font-size:15px;line-height:1.45}
.pi-srcline::before{content:"";position:absolute;left:2px;top:.52em;width:7px;height:7px;border-radius:50%;box-sizing:border-box}
.pi-srcline--rec::before{background:var(--pi-ink)}
.pi-srcline--guess::before{border:1.5px solid var(--pi-muted)}
.pi-srcline--you::before{background:var(--pi-gold)}
.pi-srcline--need::before{background:var(--pi-amber)}
.pi-srclegend{margin-top:20px;padding-top:12px;border-top:1px solid var(--pi-hairline);display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;font-size:12px;color:var(--pi-secondary)}
.pi-srclegend span{display:inline-flex;align-items:center;gap:6px}
.pi-srclegend i{display:inline-block;width:7px;height:7px;border-radius:50%;box-sizing:border-box}
.pi-srclegend i.is-rec{background:var(--pi-ink)}.pi-srclegend i.is-guess{border:1.5px solid var(--pi-muted)}.pi-srclegend i.is-you{background:var(--pi-gold)}
.pi-srclegend-note{flex:1 1 100%;color:var(--pi-muted)}
@media (forced-colors:active){.pi-srcline::before,.pi-srclegend i{forced-color-adjust:none;border:1px solid CanvasText}}

/* 7 · gap boxes with an amber edge ("Still unknown", "What a business case would still need"): a one-line meaning and the items;
   "Turn into tasks" makes a task raised from the record, and the task's number then shows beside its item. */
.pi-gapbox{padding:14px 16px;border:1px solid var(--pi-line);border-left:3px solid var(--pi-amber);border-radius:0 12px 12px 0;background:var(--pi-white);display:grid;gap:6px;align-content:start}
.pi-gapbox h5{margin:0;font-size:15px}
.pi-gapbox h5 .pi-attention{font-size:15px;font-weight:600;color:var(--pi-ink)}
.pi-gapbox-means{font-size:12.5px;color:var(--pi-secondary)}
.pi-gapbox ul{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:6px}
.pi-gapbox li{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:14px;padding-top:6px;border-top:1px solid var(--pi-hairline)}
.pi-gapbox li:first-child{border-top:0;padding-top:0}
.pi-tasktag{flex:none;font:12px var(--pi-mono)}
.pi-gapbox-act{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}

/* 8 · live progress while work runs (inside .pi-nextstep): three steps (done ✓ · now with pi-dots · next), one line that changes
   ("N pages read so far · started 09:40, 12 minutes ago · updated just now") and one sentence: it usually takes a while, you can
   leave, an alert comes, there is no need to start it again. No percentage and no fixed end time. */
.pi-live{display:grid;gap:8px;margin-top:6px}
.pi-live-steps{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 22px}
.pi-live-steps li{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:#a9a7a0}
.pi-live-steps li svg{width:15px;height:15px;color:#8fd19e}
.pi-live-steps li.is-done{color:#cfcdc6}
.pi-live-steps li.is-now{color:#fff;font-weight:600}
.pi-live-now{font-size:14px;color:#fff}
.pi-live-now b{font-variant-numeric:tabular-nums}

/* 9 · a list edited inside the record's one form: each line an input with ×, a quiet "+ Add a line" under the group; an item with
   a few fields is a small card (its name, then two short choices side by side). Closes governance-parts item 2 (it waited for a
   second View) together with this. */
.pi-lines{border:0;margin:0 0 12px;padding:0;display:grid;gap:6px}
.pi-lines legend{padding:0;margin-bottom:4px;font:500 14px/1.4 var(--pi-font);color:var(--pi-ink)}
.pi-lines ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.pi-lines li{display:flex;align-items:center;gap:8px;max-width:43rem}
.pi .pi-lines li>input{flex:1 1 auto;min-width:0;max-width:40rem}
.pi .pi-addline{justify-self:start;display:inline-flex;align-items:center;gap:6px;font-size:13.5px}
.pi-addline .pi-i svg{width:14px;height:14px}
.pi-itemcards{list-style:none;margin:0;padding:0;display:grid;gap:10px;max-width:44rem}
.pi-itemcard{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:12px;padding:14px 16px;border:1px solid var(--pi-line);border-radius:12px;background:var(--pi-paper)}
.pi-itemcard-top{display:flex;align-items:flex-end;gap:10px}
.pi-itemcard-top .pi-if{flex:1 1 auto;max-width:32rem}
.pi-itemcard-row{display:flex;flex-wrap:wrap;gap:12px 16px}
.pi-itemcard-row .pi-if{flex:0 1 14rem;min-width:11rem}
.pi .pi-itemcard-row .pi-if select{width:100%}

/* the remove button of a line or an item card: a 32 px round target, the glyph 14 px (also where shell.css is not loaded) */
.pi .pi-lines .pi-roundbutton,.pi .pi-itemcard .pi-roundbutton{display:grid;place-items:center;width:32px;height:32px;flex:none;padding:0;border:0;border-radius:50%;background:none;color:var(--pi-secondary);cursor:pointer}
.pi .pi-lines .pi-roundbutton:hover,.pi .pi-itemcard .pi-roundbutton:hover{background:var(--pi-paper);color:var(--pi-ink)}
.pi-lines .pi-roundbutton svg,.pi-itemcard .pi-roundbutton svg{width:14px;height:14px}
.pi-itemcard-top .pi-roundbutton{margin-bottom:4px}

/* 10 · the alert bell in the top bar: a round button with an ink count; its pop-up lists alerts, newest first, with Mark all read */
.pi-bell{position:relative}
.pi-bell-n{position:absolute;top:2px;right:0;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--pi-ink);color:#fff;font:600 10.5px/17px var(--pi-font);text-align:center}
.pi-bell-n[hidden]{display:none}
.pi-alerts{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:8px}
.pi .pi-alerts button{display:grid;gap:3px;width:100%;padding:12px 14px;border:1px solid var(--pi-line);border-radius:12px;background:var(--pi-white);text-align:left;font:inherit;cursor:pointer}
.pi .pi-alerts button:hover{border-color:var(--pi-ink)}
.pi-alerts b{font-weight:500;font-size:14px}
.pi-alerts small{font-size:12.5px;color:var(--pi-secondary)}
.pi-alerts .is-new button{border-left:3px solid var(--pi-ink)}
@media (prefers-reduced-motion:reduce){.pi-part>summary .pi-i{transition:none}}
@media (forced-colors:active){.pi-gapbox,.pi-itemcard,.pi .pi-alerts button,.pi-stageline-dot{border-color:CanvasText}.pi-bell-n,.pi-stageline .pi-stageline-dot{forced-color-adjust:none}}

/* ============================================================================================================================
   0.2.18 · one grammar for reading and editing a record (from Solutions v025–v036, accepted 26 Sep 2026).
   Source: proposals/2026-09-26-reading-and-editing-grammar.md · reviews/2026-09-26-cross-view-rhythm/review.md.
   Additive: nothing above changes. A screen changes look only where it adopts these classes.
   ============================================================================================================================ */

/* 1 · the reading grammar. A part is blocks; a block has one heading and one kind of content: prose, key facts or rows.
   Tables stay only where options are compared side by side. */
.pi-h4{margin:0;font:600 15px/1.4 var(--pi-font);letter-spacing:0;text-transform:none;color:var(--pi-ink)}
.pi-blk{display:grid;gap:10px;min-width:0;padding-top:18px;border-top:1px solid var(--pi-hairline)}
.pi-part-b>.pi-blk:first-child,.pi-blk:first-child{padding-top:0;border-top:0}
.pi-lead{margin:0;font-size:15.5px;line-height:1.55;max-width:70ch}
.pi-kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.25rem),1fr));gap:14px 24px;margin:0;padding:14px 0;border-top:1px solid var(--pi-hairline);border-bottom:1px solid var(--pi-hairline)}
.pi-kv>div{min-width:0}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): dt terms take the one label style. */
.pi-kv dt{margin:0 0 4px;font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}
.pi-kv dd{margin:0;font-size:16px;font-weight:500;line-height:1.35}
.pi-kv dd small{display:block;margin-top:3px;font-size:12.5px;font-weight:400;line-height:1.45;color:var(--pi-secondary)}
.pi-rows{list-style:none;margin:0;padding:0}
.pi-rows>li{display:grid;gap:4px;padding:11px 0;border-top:1px solid var(--pi-hairline);min-width:0}
.pi-rows>li:first-child{border-top:0;padding-top:2px}
.pi-row-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px}
.pi-row-t{flex:1 1 16rem;min-width:0;font-size:14.5px;font-weight:500;line-height:1.45}
.pi-row-v{flex:none;margin-left:auto;font-size:14.5px;font-weight:600;line-height:1.45;text-align:right}
.pi-row-v .pi-lvl,.pi-lvl{font-size:13.5px;font-weight:500;color:var(--pi-secondary)}
.pi-row-m{display:flex;flex-wrap:wrap;gap:2px 16px;margin:0;font-size:13px;line-height:1.5;color:var(--pi-secondary)}
.pi-mk{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:0 4px}
.pi-mk-l{color:var(--pi-muted)}
.pi-row-note{margin:0;font-size:14.5px;line-height:1.5}
.pi-rows>li.is-total{border-top:1px solid var(--pi-ink);padding-top:12px}
.pi-rows>li.is-total .pi-row-t{font-weight:600}
.pi-rows--num .pi-row-t{display:flex;align-items:baseline;gap:10px}
.pi-rows--num .pi-rownum{display:inline-grid;place-items:center;flex:none;width:22px;height:22px;border:1px solid var(--pi-line);border-radius:50%;font-size:12px;font-weight:600}
.pi-foot{margin:0;font-size:13px;line-height:1.5;color:var(--pi-secondary)}
.pi-named{display:inline}
@container piopt (max-width:560px){.pi-row-v{margin-left:0;text-align:left;flex:1 1 100%}}

/* 2 · the edit grammar. The section bar sits at the top and the foot of a section form ("Section n of N", the name,
   Cancel · Save · Save and next). Groups: one heading, at most one help line, then fields or cards. One item-card shape. */
.pi-secbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:12px 14px;border-radius:12px;background:var(--pi-paper);border:1px solid var(--pi-line)}
.pi-secbar.is-foot{justify-content:flex-end;margin-top:4px}
.pi-secbar-t{display:grid;gap:2px;margin:0;min-width:0}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): section labels take the one label style. */
.pi-secbar-t span{font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}
.pi-secbar-t b{font-size:16px;font-weight:600;line-height:1.3}
.pi-secbar-acts{display:flex;flex-wrap:wrap;gap:8px}
.pi-secbar-acts .pi-i svg{width:14px;height:14px;margin-left:4px}
.pi-form{display:grid;min-width:0}
.pi-fgroup{display:grid;gap:10px;padding:20px 0;border-top:1px solid var(--pi-hairline);min-width:0}
.pi-fgroup:first-child{border-top:0;padding-top:18px}
.pi-fgroup:last-child{padding-bottom:18px}
.pi-fgroup-h{display:flex;align-items:baseline;gap:10px;margin:0;font-size:15px;font-weight:600;line-height:1.4}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): label style. */
.pi-fgroup-opt{font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}
.pi-fgroup-hint{margin:-4px 0 0;max-width:44rem;font-size:13.5px;line-height:1.5;color:var(--pi-secondary)}
.pi-form .pi-itemcards,.pi-form .pi-lines{max-width:48rem;width:100%}
.pi-form .pi-if--xl textarea{width:100%;max-width:48rem}
.pi-form .pi-itemcard-top .pi-if{max-width:none}
.pi-form .pi-itemcard-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));align-items:end;gap:12px 16px}
.pi-form .pi-itemcard-row .pi-if{min-width:0;max-width:none}
.pi-form .pi-itemcard-row .pi-if.pi-if--m{grid-column:span 2}
.pi .pi-form .pi-itemcard-row .pi-if input:not([type=checkbox]):not([type=radio]),.pi .pi-form .pi-itemcard-row .pi-if select{width:100%}
.pi-form .pi-itemcard>.pi-if--xl{max-width:none}
.pi .pi-form .pi-itemcard>.pi-if--xl input{width:100%}
.pi-itemcard-sub{display:grid;gap:10px;padding-top:12px;border-top:1px solid var(--pi-hairline);min-width:0}
.pi-itemcard-sub>p{margin:0;font-size:14px;font-weight:600}
.pi-itemcard-note{margin:-2px 0 0;font-size:12.5px;line-height:1.5;color:var(--pi-muted)}
.pi .pi-form .pi-addline{margin-top:2px;min-height:24px}
@media (max-width:480px){
 .pi-secbar-acts{width:100%}
 .pi-secbar-acts .pi-button{flex:1 1 auto;justify-content:center}
 .pi-form .pi-itemcard-row{grid-template-columns:1fr 1fr}
 .pi-form .pi-itemcard-row .pi-if.pi-if--m{grid-column:1/-1}
}

/* 3 · Edit on the part's top line, beside the status word. A button may not sit inside <summary>, so the part is wrapped:
   .pi-part-wrap holds the <details class="pi-part"> and the .pi-part-act button, placed over the summary line. */
.pi-part-wrap{position:relative;border-top:1px solid var(--pi-line)}
.pi-part-wrap:first-child{border-top:0}
.pi-part-wrap>.pi-part{border-top:0}
.pi-part-wrap.has-act>.pi-part>summary .pi-i{margin-left:88px}
.pi-part-wrap.has-act.is-wide>.pi-part>summary .pi-i{margin-left:150px}
.pi-part-act{position:absolute;top:14px;right:56px}
@media (max-width:759px){
 .pi-part-wrap.has-act>.pi-part>summary .pi-part-t{flex:1 1 100%;min-width:0;padding-right:84px;min-height:32px}
 .pi-part-wrap.has-act.is-wide>.pi-part>summary .pi-part-t{padding-right:140px}
 .pi-part-wrap.has-act>.pi-part>summary .pi-part-s{flex:1 1 0;order:3}
 .pi-part-wrap.has-act>.pi-part>summary .pi-i{margin-left:0;order:4}
 .pi-part-act{top:14px;right:16px}
}

/* 4 · Open all / Close all: one quiet switch above several folded parts; its label follows the parts */
.pi-allparts{display:flex;justify-content:flex-end;padding:10px 24px}
.pi .pi-allparts button{display:inline-flex;align-items:center;gap:6px;min-height:24px;font-size:13.5px}
.pi-allparts .pi-i svg{width:14px;height:14px}
.pi-allparts button[aria-expanded=true] .pi-i{transform:rotate(180deg)}

/* 5 · missing information, with its level: blocks (red) or weakens (amber). One issue list per record drives the status
   words, the gap box, the confirm pop-up, the reading rows and the form marks. */
.pi-miss{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;font-weight:500;color:var(--pi-ink)}
.pi-miss .pi-mark{align-self:center}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): a tag takes the label style. */
.pi-misstag{font:var(--pi-label-font);letter-spacing:0;text-transform:none;padding:0 6px;border-radius:4px}
.pi-misstag.is-weakens{color:var(--pi-review);background:#fdf0dc}
.pi-misstag.is-blocks{color:var(--pi-gap);background:#fbe4e8}
.pi-if-head .pi-misstag{margin-left:auto;flex:none}
.pi-fgroup-h .pi-misstag{margin-left:4px}
.pi .pi-missing.is-weakens>input,.pi .pi-missing.is-weakens>select,.pi .pi-missing.is-weakens>textarea{border-color:var(--pi-amber);box-shadow:0 0 0 1px var(--pi-amber);background:#fffaf2}
.pi .pi-missing.is-blocks>input,.pi .pi-missing.is-blocks>select,.pi .pi-missing.is-blocks>textarea{border-color:var(--pi-red);box-shadow:0 0 0 1px var(--pi-red);background:#fff7f8}
.pi-fgroup.pi-missing{padding-left:12px;border-left:3px solid var(--pi-amber)}
.pi-fgroup.pi-missing.is-blocks{border-left-color:var(--pi-red)}
.pi-itemcard:has(.pi-missing.is-weakens){border-color:var(--pi-amber)}
.pi-itemcard:has(.pi-missing.is-blocks){border-color:var(--pi-red)}
.pi-missmsg{display:flex;gap:8px;align-items:baseline;margin:0;padding:8px 12px;border-radius:8px;font-size:13px;line-height:1.45;color:var(--pi-ink);background:#fdf0dc}
.pi-missmsg.is-blocks{background:#fbe4e8}
.pi-missmsg .pi-mark{flex:none;align-self:center}
.pi-gapbox li .pi-miss{font-weight:400}
.pi-gapacts{display:inline-flex;flex-wrap:wrap;gap:4px 12px;margin-left:auto}

/* 6 · the kind badge above a record title: an icon, the kind word, then the ref. The record the work leads to
   (a business case) takes .is-main: an ink edge and an ink icon. */
.pi-kindbadge{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 10px}
.pi .pi-kindbadge-b{display:inline-flex;align-items:center;gap:9px;padding:6px 16px 6px 7px;border-radius:999px;border:1px solid var(--pi-line);background:var(--pi-white);font:600 15.5px/1.4 var(--pi-font);letter-spacing:0;text-transform:none;color:var(--pi-ink)}
.pi-kindbadge-b .pi-i{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--pi-paper)}
.pi-kindbadge-b .pi-i svg{width:16px;height:16px}
.pi-kindbadge.is-main .pi-kindbadge-b{border-color:var(--pi-ink)}
.pi-kindbadge.is-main .pi-kindbadge-b .pi-i{background:var(--pi-ink);color:var(--pi-white)}
.pi .pi-kindbadge .pi-ref{font:400 13px/1.4 var(--pi-mono);color:var(--pi-secondary)}

/* 7 · the labelled thread: the gold thread in HTML so each step can carry its kind, ref(s) and title. Several records per
   step are listed by name. On a phone it runs down the page. */
.pi-thread--labelled{list-style:none;margin:0 0 20px;padding:4px 0 0;display:grid;grid-template-columns:repeat(var(--n),minmax(7.5rem,1fr));position:relative;overflow-x:auto}
.pi-thread--labelled::before{content:"";position:absolute;left:calc(100% / var(--n) / 2);right:calc(100% / var(--n) / 2);top:13px;height:3px;border-radius:2px;background:var(--pi-gold)}
.pi-thread--labelled>li{position:relative;display:grid;justify-items:center;align-content:start;gap:2px;padding:0 8px;text-align:center;min-width:0}
.pi-thread--labelled i{width:18px;height:18px;border-radius:50%;background:var(--pi-ink);margin-bottom:8px;position:relative}
.pi-thread--labelled>li.is-end i{background:var(--pi-gold)}
.pi-thread--labelled>li.is-gap i{background:var(--pi-paper);border:2px dashed var(--pi-ink)}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): label style. */
.pi-thread-k{font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}
.pi-thread-r{font-size:12px;line-height:1.4}
.pi-thread-t{font-size:13px;line-height:1.35;color:var(--pi-ink);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pi-thread-more{display:block;font-size:12px;line-height:1.35;color:var(--pi-secondary)}
.pi-thread--labelled>li.is-gap .pi-thread-t{color:var(--pi-review);font-weight:600}
@media (max-width:759px){
 .pi-thread--labelled{grid-template-columns:minmax(0,1fr);gap:10px;overflow:visible}
 .pi-thread--labelled::before{left:7.5px;right:auto;top:10px;bottom:10px;width:3px;height:auto}
 /* current Chrome applies justify-items to block layout too, so reset it */
 .pi-thread--labelled>li{display:block;justify-items:start;padding:0 0 0 30px;text-align:left}
 .pi-thread--labelled i{position:absolute;left:0;top:1px;margin:0}
 .pi-thread-k::after{content:" · "}
 .pi-thread-t{display:block;-webkit-line-clamp:unset}
}
@media (forced-colors:active){.pi-kindbadge-b,.pi-secbar,.pi-missing>input,.pi-missing>select,.pi-missing>textarea{border-color:CanvasText}.pi-thread--labelled::before,.pi-thread--labelled i{forced-color-adjust:none}}
/* 0.2.18 revision 2 (26 Sep 2026, found by the wave 1 builds): components.css sets `.pi h2{font-size:22px}`, which beat
   .pi-h4 on an h2 (the checks heading rendered at 22 px). Raise the specificity; keep the checks strip's top alignment. */
.pi .pi-h4{margin:0;font:600 15px/1.4 var(--pi-font);letter-spacing:0;text-transform:none;color:var(--pi-ink)}
.pi .pi-checks>.pi-h4{padding-top:4px}
@media (max-width:759px){.pi .pi-checks>.pi-h4{padding-top:0}}

/* ============================================================================================================================
   0.2.19 · the movement grammar (from the Starting picture v003, accepted 28 Sep 2026; proposals/2026-09-28-movement-grammar.md).
   The script half is paper-and-ink/move.js (PaperMove). Additive: a screen moves only where it calls PaperMove or uses these.
   ============================================================================================================================ */
/* M5 · arrive: new content fades up 6 px, one block after another (--d is its place in the order) */
.pi-in{animation:pi-in var(--pi-arrive,260ms) ease-out both;animation-delay:calc(var(--d,0) * var(--pi-stagger,70ms))}
@keyframes pi-in{from{opacity:0;transform:translateY(6px)}}
/* M4 · grow: the labelled thread as progress. A hairline base line; a gold line grows to step --k (0-based); the dot reached
   takes .pi-arrive and grows into place after the line. On a phone the thread runs down the page and the base line is a hairline. */
.pi-thread--labelled.is-growing{--k:0}
.pi-thread--labelled.is-growing::before{background:var(--pi-line)}
.pi-thread--labelled.is-growing::after{content:"";position:absolute;left:calc(100% / var(--n) / 2);top:13px;height:3px;border-radius:2px;background:var(--pi-gold);width:calc(100% / var(--n) * var(--k));transition:width var(--pi-grow-line,300ms) var(--pi-ease-open,ease)}
.pi-thread--labelled.is-growing>li i{z-index:1}
.pi-thread--labelled>li.pi-arrive i{animation:pi-arrive .32s var(--pi-ease-open,ease) .26s both}
@keyframes pi-arrive{from{transform:scale(.35);background:var(--pi-paper)}}
@media (max-width:759px){.pi-thread--labelled.is-growing::after{display:none}}
/* M6 · say what it reads: each name fades in */
.pi-reading{animation:pi-reading .15s ease-out both}
@keyframes pi-reading{from{opacity:.25}}
/* M1 · a part's chevron turns with its fold (the fold itself is PaperMove.fold) */
.pi-part>summary .pi-i{transition:transform var(--pi-fold,280ms) var(--pi-ease-open,ease)}
@media (prefers-reduced-motion:reduce){
  .pi-in,.pi-thread--labelled>li.pi-arrive i,.pi-reading{animation:none}
  .pi-thread--labelled.is-growing::after,.pi-part>summary .pi-i{transition:none}
}

/* ============================================================================================================================
   0.2.20 · from the Starting picture v005 (accepted 29 Sep 2026; proposals/2026-09-28-starting-picture-parts.md, kit gaps 2–3)
   ============================================================================================================================ */
/* "To revisit": a person set a section aside with a note. A hollow amber ring, so it is never read as the gold dot of a proposal
   when the two sit in one list. PaperStatusLine tone="revisit". */
.pi-status[data-tone=revisit]{color:var(--pi-review)}
.pi-status[data-tone=revisit] .pi-dot{background:transparent;border:2px solid var(--pi-amber);box-sizing:border-box;width:9px;height:9px;flex-basis:9px}
/* What was decided, as one quiet line with a coloured left edge (accepted green, rejected red, to revisit amber); no box.
   PaperResultLine. */
.pi-result{display:grid;gap:3px;margin:0;padding:2px 0 2px 14px;border-left:3px solid var(--pi-line);font-size:14px;line-height:1.5}
.pi-result p{margin:0}
.pi-result[data-tone=positive]{border-left-color:var(--pi-green)}
.pi-result[data-tone=gap]{border-left-color:var(--pi-red)}
.pi-result[data-tone=revisit]{border-left-color:var(--pi-amber)}
.pi-result-m{font-size:12.5px;color:var(--pi-secondary)}
@media (forced-colors:active){.pi-result{border-left-color:CanvasText}.pi-status[data-tone=revisit] .pi-dot{forced-color-adjust:none;border-color:CanvasText}}

/* ============================================================================================================================
   0.2.21 · the quiet ref link, from Analyse v023 (selected 29 Sep 2026; proposals/2026-09-29-quiet-ref-link.md)
   ============================================================================================================================ */
/* A record linked from a register cell or a card: its ref and its name, as one button. The ref on its own line with a faint
   underline (the one sign that it opens); the name in the secondary ink, no underline, two lines at most, the full "ref name" in
   the title. Hover and focus darken and underline the name. Inside a sentence, keep .pi-inline. PaperRefLink, PaperRefLinks. */
.pi-reflinks{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0;padding:0;list-style:none}
.pi .pi-reflink{display:grid;gap:1px;padding:0;border:0;background:none;font:inherit;text-align:left;text-decoration:none;color:var(--pi-secondary);cursor:pointer}
.pi .pi-reflink .pi-ref{width:fit-content;font-size:12.5px;color:var(--pi-text);text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:3px}
.pi-reflink-n{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.4}
.pi .pi-reflink:hover,.pi .pi-reflink:focus-visible{color:var(--pi-text)}
.pi .pi-reflink:hover .pi-reflink-n,.pi .pi-reflink:focus-visible .pi-reflink-n{text-decoration:underline;text-underline-offset:3px}
.pi .pi-reflink:hover .pi-ref,.pi .pi-reflink:focus-visible .pi-ref{text-decoration-color:currentColor}
@media (forced-colors:active){.pi .pi-reflink .pi-ref{text-decoration-color:LinkText}.pi .pi-reflink{color:LinkText}}

/* ============================================================================================================================
   0.2.22 · parts the selected Views copied locally, taken into the kit (T-374 consolidation review, 1 Oct 2026;
   proposals/2026-10-01-consolidation-parts.md). Additive: nothing above changes. Values are the mockups' own; where copies
   differed, the proposal says which one was kept and why.
   ============================================================================================================================ */
/* 1a · A proposal by the system (Solutions v055 cs-prop, also Benefits v016, Roadmap v019, R&A v009, Overview v021): a gold rule
   and a gold wash, a mono head "Proposed by the system" with the star, the text, then its buttons. PaperProposal. */
.pi-prop{border-left:3px solid var(--pi-gold);background:var(--pi-gold-wash,#fffbee);padding:12px 16px;display:grid;gap:8px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): the proposal head takes the label style, in gold text. */
.pi-prop-h{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0;font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-gold-text)}
.pi-prop-h svg{width:13px;height:13px;flex:none}
.pi-prop p{margin:0;font-size:14px}
.pi-prop s{color:var(--pi-muted)}
.pi-prop-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
@media (forced-colors:active){.pi-prop{border-left-color:CanvasText}}

/* 1b · A status as a dot and a word, for states the record status does not name (bn-st, rm-st, ra-st, fr-st, eo-st; cs-state +
   cs-dot is the small form). A 9 px dot, a 13.5 px word. data-tone says the meaning; the word always says it too.
   PaperStatusWord. */
.pi-st{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:500;white-space:nowrap}
.pi-st>i{width:9px;height:9px;border-radius:50%;flex:none;box-sizing:border-box;background:var(--pi-field-rest)}
.pi-st--small{gap:6px;font-size:12.5px;font-weight:400;color:var(--pi-secondary)}
.pi-st[data-tone=positive]{color:var(--pi-positive)}.pi-st[data-tone=positive]>i{background:var(--pi-green)}
.pi-st[data-tone=review]{color:var(--pi-review)}.pi-st[data-tone=review]>i{background:var(--pi-amber)}
.pi-st[data-tone=gap]{color:var(--pi-gap)}.pi-st[data-tone=gap]>i{background:var(--pi-red)}
.pi-st[data-tone=ink]>i{background:var(--pi-ink)}
.pi-st[data-tone=grey]{color:var(--pi-secondary)}.pi-st[data-tone=grey]>i{background:#6f6c66}
.pi-st[data-tone=pending]{color:var(--pi-secondary)}.pi-st[data-tone=pending]>i{background:transparent;border:1.5px dashed var(--pi-field-rest)}
.pi-st[data-tone=ring]{color:var(--pi-secondary)}.pi-st[data-tone=ring]>i{background:transparent;border:1.5px solid var(--pi-control)}
.pi-st[data-tone=off]{color:var(--pi-muted)}.pi-st[data-tone=off]>i{background:transparent;border:1.5px solid var(--pi-muted)}
.pi-st[data-tone=dropped]{color:var(--pi-muted)}.pi-st[data-tone=dropped]>i{background:transparent linear-gradient(45deg,transparent 42%,var(--pi-muted) 42%,var(--pi-muted) 58%,transparent 58%);border:1.5px solid var(--pi-muted)}
.pi-st[data-tone=revisit]{color:var(--pi-review)}.pi-st[data-tone=revisit]>i{background:transparent;border:2px solid var(--pi-amber)}
.pi-st[data-tone=proposed]{color:var(--pi-gold-text)}.pi-st[data-tone=proposed]>i{background:var(--pi-gold)}
@media (forced-colors:active){.pi-st>i{forced-color-adjust:none;background:CanvasText}.pi-st:is([data-tone=pending],[data-tone=ring],[data-tone=off],[data-tone=dropped],[data-tone=revisit])>i{background:none;border-color:CanvasText}}

/* 1c · The system's star in a history line or beside a name (bn-, rm-, ra-sysmark). Its tooltip is "Written by the system".
   PaperSysMark. */
.pi-sysmark{display:inline-flex;vertical-align:-2px;margin-right:5px;color:var(--pi-gold)}
.pi-sysmark svg{width:13px;height:13px}

/* 1d · A word with hover help (bn-, rm-, ra-, eo-, fr-term) and the one floating tip of the page (-tip). The tip is in ink: a
   bold line, then plain lines. PaperTerm. */
.pi-term{border-bottom:1px dotted var(--pi-control);cursor:help}
.pi-term:focus-visible{outline:2px solid var(--pi-focus);outline-offset:2px;border-radius:2px}
.pi-tip{position:absolute;z-index:80;max-width:300px;padding:8px 11px;border-radius:8px;background:var(--pi-ink);color:#fff;font-size:12.5px;line-height:1.45;display:grid;gap:3px;pointer-events:none;box-shadow:0 6px 18px rgba(17,17,17,.14)}
.pi-tip[hidden]{display:none}
.pi-tip b{font-weight:600}
.pi-tip span{color:#dcdad3}
@media (forced-colors:active){.pi-tip{border:1px solid CanvasText}}

/* 1e · A dated history list (bn-, rm-, ra-hist): the date in its own column, then who (bold) and what. One column on a phone.
   Not .pi-activity, the numbered record history of 0.2.11. PaperHistory. */
.pi-hist{list-style:none;margin:0;padding:0;display:grid}
.pi-hist li{display:grid;grid-template-columns:110px minmax(0,1fr);gap:4px 14px;padding:8px 0;border-top:1px solid var(--pi-hairline);font-size:13.5px;color:var(--pi-secondary)}
.pi-hist li:first-child{border-top:0}
.pi-hist b{color:var(--pi-ink);font-weight:600}
@media (max-width:640px){.pi-hist li{grid-template-columns:1fr;gap:2px}}

/* 1f · "How it works" where a View has nothing yet (cs-, bn-, rm-, ra-how): four numbered steps, the number in an ink ring (never
   gold: gold means proposed by the system). PaperHowItWorks. */
.pi-how{display:grid;gap:16px;padding:22px 24px;border:1px solid var(--pi-line);border-radius:var(--pi-radius);background:var(--pi-white)}
.pi .pi-how-h{font-size:17px;font-weight:600;letter-spacing:-.1px}
.pi-how ol{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;counter-reset:how}
.pi-how li{display:grid;gap:4px;align-content:start;counter-increment:how;font-size:13.5px;color:var(--pi-secondary)}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): a step number is a number: sans with tabular figures. */
.pi-how li::before{content:counter(how);display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1.5px solid var(--pi-ink);font:600 12px var(--pi-font);font-variant-numeric:tabular-nums;color:var(--pi-ink);margin-bottom:6px}
.pi-how li b{color:var(--pi-ink);font-size:14.5px}
.pi-how-acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.pi-how-foot{margin:0;font-size:14px;color:var(--pi-secondary)}
@media (max-width:900px){.pi-how ol{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.pi-how ol{grid-template-columns:1fr}}

/* 1g · The inside of a pop-up (cs-, bn-, rm-, ra-dlg), in a .pi-detail: the head (title and the round close), a lead line, the
   body, the buttons at the right over a hairline. PaperDialogBody. */
.pi-dlg{display:grid;gap:16px}
.pi-dlg>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:0}
.pi .pi-dlg h2{font-size:20px;font-weight:600;letter-spacing:-.2px}
.pi-dlg-lead{margin:0;font-size:14.5px;color:var(--pi-secondary)}
.pi-dlg-by{margin:0;font-size:12.5px;color:var(--pi-muted)}
.pi-dlg-acts{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;border-top:1px solid var(--pi-hairline);padding-top:14px}

/* 2 · The link from a grouped proposal to its group (ra-grpline in Evidence v042, Capture v015, Analyse v023): one quiet line in
   gold words; the link in ink, a light underline, ↗. PaperGroupLine. */
.pi-grpline{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;margin-top:4px;font-size:12.5px;color:var(--pi-gold-text)}
.pi-grpline a{display:inline-flex;align-items:center;gap:2px;color:var(--pi-ink);font-weight:500;text-decoration:underline;text-decoration-color:var(--pi-field-rest);text-underline-offset:3px}
.pi-grpline a:hover{text-decoration-color:var(--pi-ink)}
.pi-grpline svg{width:12px;height:12px;color:var(--pi-muted)}

/* 3 · The sub-heading on an h2 or h3 is already held at 15 px by `.pi .pi-h4` (0.2.18 revision 2, above). Nothing added; the
   local `.pi h2.pi-h4` copies in Evidence, Analyse and Research are no longer needed. */

/* 4 · The full empty state of a register (cp-, tk-, rs-empty): the title in ink and the button's icon 8 px from its word. The
   kit already draws both (graphics.css, .pi-state); said once here on the composed part, so it does not rest on load order. */
.pi-state.pi-empty .pi-empty-t{color:var(--pi-ink)}
.pi-state.pi-empty .pi-button{gap:8px}

/* 5 · "These two disagree" (as-, gv-, ac-disagree): the kit's .pi-reason[data-tone=review] under the facts it compares, 14 px
   below them; a quoted value in roman. PaperDisagree. */
.pi-reason.pi-disagree{margin-top:14px}
.pi-disagree q{font-style:normal}

/* 6 · Short lines edited in place, inside the record page's form (gv-plist, Governance v017): one quiet field a line, a text
   Remove beside it, "Add a …" under. In an editor sheet, .pi-lines (0.2.16) with × does the same. PaperShortList. */
.pi-plist{display:grid;gap:8px;margin:6px 0 0;padding:0;list-style:none}
.pi-plist li{display:flex;gap:8px;align-items:center}
.pi .pi-inform .pi-plist input:not([type=checkbox]):not([type=radio]),.pi .pi-plist input{flex:1;width:auto;min-width:0;margin:0}
.pi .pi-plist-rm{min-height:34px;padding:0 10px;border:0;background:none;font-size:13px;color:var(--pi-secondary);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.pi .pi-plist-rm:hover{color:var(--pi-ink)}
.pi .pi-plist-add{margin-top:10px;gap:6px}
@media (pointer:coarse){.pi .pi-plist-rm{min-height:44px}}

/* 7 · "Set by you" (Foundations Overview v020 fo-tick, fo-box, fo-key): the kit's tick box with a gold edge when a person set it,
   a gold fill and an ink tick when a person ticked it. Gold here is "yours", as .pi-srcline--you. .pi-box is the same mark, still,
   for a legend (.pi-boxkey). PaperCheck mine, PaperBox. */
.pi-check input.is-mine,.pi-box.is-mine{border:2.5px solid var(--pi-gold)}
.pi-check input.is-mine:checked,.pi-box.is-mine.is-on{background-color:var(--pi-gold);border-color:var(--pi-gold);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}
.pi-box{display:inline-block;flex:0 0 16px;width:16px;height:16px;border:1.5px solid var(--pi-control);border-radius:4px;background:var(--pi-white) center/11px 11px no-repeat;vertical-align:middle;box-sizing:border-box}
.pi-box.is-on{background-color:var(--pi-ink);border-color:var(--pi-ink);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}
.pi-boxkey{list-style:none;margin:10px 0 0;padding:10px 14px;display:flex;flex-wrap:wrap;gap:8px 22px;border-radius:12px;background:var(--pi-paper);border:1px solid var(--pi-hairline);font-size:12.5px;color:var(--pi-secondary)}
.pi-boxkey li{display:inline-flex;align-items:center;gap:8px}
@media (forced-colors:active){.pi-box{forced-color-adjust:none;border-color:CanvasText}.pi-box.is-on{background-color:CanvasText}}

/* 8 · A large decision mark at the head of a record (Scope v014 fd-boundary): 16 px semibold words, an 11 px mark.
   PaperDecision size="large". */
.pi-decision.pi-decision--large{font-size:16px;font-weight:600}
.pi-decision.pi-decision--large i{width:11px;height:11px;flex-basis:11px}

/* ============================================================================================================================
   0.2.23 · A row that opens in place (Review & Assurance v010, ra-exp / ra-detail / ra-det; proposals/2026-10-01-row-in-place.md)
   The Owner, 1 Oct 2026: where a record's details do not need a full screen, its row opens in place under itself; the side panel
   (.pi-dock) stays only for a permanent detail panel (Evidence) and beside a timeline (Roadmap). Values are R&A v010's.
   Markup:  <tr class="is-open" data-row=…> … <th><button class="pi-name" aria-expanded="true" aria-controls="x-det">Name</button>…</th>
              … <td class="pi-rowexp-cell"><button class="pi-rowexp" aria-expanded="true" aria-controls="x-det">Hide <chevron/></button></td></tr>
            <tr class="pi-rowexp-row" id="x-det"><td colspan="N"><div class="pi-rowexp-body"> … </div></td></tr>
   The name and the toggle both open it and both carry aria-expanded. Several rows may be open at once. Enter and Space work because
   both are buttons; after a redraw, focus goes back to the control that was pressed. The detail unfolds by its height
   (PaperMove.foldRow, M1); under reduced motion it appears at once and the chevron does not turn. PaperRowToggle, PaperRowDetail.
   ============================================================================================================================ */
.pi .pi-rowexp{display:inline-flex;align-items:center;gap:4px;padding:2px 0;border:0;background:none;font-size:13px;font-weight:500;color:var(--pi-ink);white-space:nowrap;cursor:pointer}
.pi-rowexp .pi-i svg{width:14px;height:14px;transition:transform 150ms ease}
.pi-rowexp[aria-expanded=true] .pi-i svg{transform:rotate(180deg)}
.pi-rowexp:focus-visible{outline:2px solid var(--pi-focus);outline-offset:2px;border-radius:2px}
.pi-table .pi-rowexp-cell{text-align:right;white-space:nowrap}
.pi .pi-table tr.is-open th,.pi .pi-table tr.is-open td{border-bottom-color:transparent}
.pi .pi-table tr.is-open{background:var(--pi-white)}
.pi-table tr.pi-rowexp-row{cursor:default;background:var(--pi-white)}
.pi-table tbody tr.pi-rowexp-row:hover{background:var(--pi-white)}
.pi .pi-table tr.pi-rowexp-row td{padding:0 22px 20px}
.pi-rowexp-body{display:grid;gap:14px;max-width:880px;padding:14px 0 0;border-top:1px dashed var(--pi-line)}
.pi-rowexp-kv{display:grid;grid-template-columns:1fr 1fr;gap:12px 32px;margin:0}
.pi-rowexp-kv div{display:grid;gap:4px;align-content:start}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): dt terms take the one label style. */
.pi-rowexp-kv dt{font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-muted)}
.pi-rowexp-kv dd{margin:0;font-size:14.5px;line-height:1.55;color:var(--pi-ink)}
.pi-rowexp-acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px}
.pi-rowexp-meta{margin:0;font-size:12.5px;color:var(--pi-muted)}
@media (max-width:760px){.pi-rowexp-kv{grid-template-columns:1fr}}
@container pireg (max-width:760px){
  .pi .pi-table tr.pi-rowexp-row{display:block;padding:0 20px 16px}
  .pi .pi-table tr.pi-rowexp-row td{display:block;padding:0!important}
  .pi-table td.pi-rowexp-cell{grid-column:1/-1;text-align:left;order:6}
}
@media (prefers-reduced-motion:reduce){.pi-rowexp .pi-i svg{transition:none}}
@media (forced-colors:active){.pi-rowexp-body{border-top-color:CanvasText}}

/* 0.2.23 revision 2 (1 Oct 2026) · the searchable picker's icon overlapped "Find …". The 36 px room for the icon (0.2.14, above) was scoped
   to .pi-inform and then reset to 12 px by the 0.2.16 field style (same specificity, later); a picker outside a form had no room.
   One rule, after both, wherever the picker sits. Nothing else changes. */
.pi .pi-pick .pi-pick-find input[type=search]{padding-left:36px}

/* ============================================================================================================================
   0.2.24 · Linked records as a no-box list (Evidence v046 .ev-linkrows / .ev-linkrow; proposals/2026-10-01-linked-records-no-box.md)
   The Owner, 1 Oct 2026: linked records on a record page or in an opened row are a plain list on every screen, "I don't like the
   boxes". It replaces .pi-reclist cards for linked records. One line per record: the ref in the quiet ref style (0.2.21), the full
   title as plain text, a muted arrow; a hairline between lines; no border, fill or radius. The whole line is one button, so it takes
   the kit's focus ring; the title underlines on hover and focus. Values are Evidence v046's.
   Markup:  <ul class="pi-linklist" aria-label="Objectives linked to PS-1">
              <li><button type="button" class="pi-linklist-a"><span class="pi-ref">OBJ-1</span>
                    <span class="pi-linklist-t">Resolve most requests within two days</span><span class="pi-i">arrow</span></button>
                  <button type="button" class="pi-linklist-act pi-unlink" aria-label="Unlink OBJ-1 from PS-1">Unlink…</button>   (optional)
                  <p class="pi-linklist-note">A note under the line</p></li>                                               (optional)
            </ul>
            <p class="pi-linklist-empty">No objective is linked yet.</p>                                     (instead of the list)
   The arrow is arrow-up-right when the record opens in another View, arrow-right within the View. A record with no screen of its
   own is a disabled line with no arrow. In a .pi-section the heading and its .pi-count stay in .pi-section-head; outside one (an
   opened row) use .pi-linklist-head. In a side card, with .pi-linklist--stack, and below 480 px the ref sits above the title.
   PaperLinkList, PaperLinkHead.
   ============================================================================================================================ */
.pi-linklist{list-style:none;margin:0;padding:0}
.pi-linklist>li{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px;min-width:0;border-top:1px solid var(--pi-hairline)}
.pi-linklist>li:first-child{border-top:0}
.pi .pi-linklist-a{display:grid;grid-template-columns:minmax(3.75rem,max-content) minmax(0,1fr) auto;align-items:baseline;gap:1px 14px;flex:1 1 0;min-width:0;width:100%;min-height:44px;padding:11px 0;border:0;background:none;font:inherit;text-align:left;text-decoration:none;color:var(--pi-text);cursor:pointer}
.pi .pi-linklist>li:first-child>.pi-linklist-a{padding-top:4px}
.pi .pi-linklist-a .pi-ref{width:fit-content;white-space:nowrap;font-size:12.5px;color:var(--pi-text);text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:3px}
.pi-linklist-t{min-width:0;font-size:14.5px;line-height:1.5}
.pi-linklist-a .pi-i{align-self:start;margin-top:3px;color:var(--pi-muted)}
.pi .pi-linklist-a:not(:disabled):hover .pi-linklist-t,.pi .pi-linklist-a:focus-visible .pi-linklist-t{text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:3px}
.pi .pi-linklist-a:not(:disabled):hover .pi-i,.pi .pi-linklist-a:focus-visible .pi-i{color:var(--pi-text)}
.pi .pi-linklist-a:not(:disabled):hover .pi-ref,.pi .pi-linklist-a:focus-visible .pi-ref{text-decoration-color:currentColor}
.pi .pi-linklist-a:disabled{cursor:default}
.pi .pi-linklist-a:disabled .pi-ref{text-decoration:none}
/* the optional quiet action at the line's end ("Unlink…"): text only, no box; with .pi-unlink it keeps Unlink's red hover */
.pi .pi-linklist .pi-linklist-act{flex:none;min-height:0;padding:11px 0 11px 4px;border:0;background:none;font-size:13px;line-height:1.5;color:var(--pi-secondary);text-decoration:underline;text-underline-offset:4px;white-space:nowrap;cursor:pointer}
.pi .pi-linklist>li:first-child>.pi-linklist-act{padding-top:4px}
.pi .pi-linklist .pi-linklist-act:not(.pi-unlink):hover{color:var(--pi-text)}
.pi .pi-linklist .pi-linklist-act.pi-unlink:hover{color:var(--pi-gap)}
/* an optional note under a line (a type, a reason), under the title */
.pi-linklist-note{flex:1 0 100%;margin:-6px 0 0;padding:0 0 11px calc(3.75rem + 14px);font-size:12.5px;line-height:1.45;color:var(--pi-secondary)}
/* nothing linked: one muted line where the list would be */
.pi .pi-linklist-empty{margin:0;padding:4px 0 2px;font-size:14px;line-height:1.5;color:var(--pi-muted)}
/* a heading and its count outside a .pi-section (an opened row): 14 px, the count beside it */
.pi-linklist-head{display:flex;align-items:baseline;gap:8px;margin:0 0 8px}
.pi .pi-linklist-head h3,.pi .pi-linklist-head h4{margin:0;font-size:14px;font-weight:600}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): a count is a number: sans with tabular figures. */
.pi-linklist-head .pi-count{font:12px var(--pi-font);font-variant-numeric:tabular-nums;color:var(--pi-muted)}
/* the stacked line: the ref above the title, the arrow beside the ref */
.pi .pi-recpage-side .pi-linklist-a,.pi .pi-linklist--stack .pi-linklist-a{grid-template-columns:minmax(0,1fr) auto;row-gap:2px}
.pi .pi-recpage-side .pi-linklist-a .pi-ref,.pi .pi-linklist--stack .pi-linklist-a .pi-ref,.pi-recpage-side .pi-linklist-t,.pi-linklist--stack .pi-linklist-t{grid-column:1}
.pi-recpage-side .pi-linklist-a .pi-i,.pi-linklist--stack .pi-linklist-a .pi-i{grid-column:2;grid-row:1}
.pi-recpage-side .pi-linklist-note,.pi-linklist--stack .pi-linklist-note{padding-left:0}
@media (max-width:480px){
  .pi .pi-linklist-a{grid-template-columns:minmax(0,1fr) auto;row-gap:2px}
  .pi .pi-linklist-a .pi-ref,.pi-linklist-t{grid-column:1}
  .pi-linklist-a .pi-i{grid-column:2;grid-row:1}
  .pi-linklist-note{padding-left:0}
}
@media (forced-colors:active){.pi .pi-linklist-a{color:LinkText}.pi .pi-linklist-a .pi-ref{text-decoration-color:LinkText}.pi .pi-linklist-a:disabled{color:GrayText}}

/* =========================================================================================================================
   0.2.25 · The date picker (T-393; from Home v004, the Owner, 29 Sep 2026: "a more modern looking date picker that fits the
   design system"; kept through Home v009, selected). The field looks like every other field and shows the day with its year
   ("Tue 29 Sep 2026") and a calendar glyph; the calendar opens under it: Monday first, today ringed, the chosen day in ink,
   month back and forward, Today (and Clear when the date is optional). Keys: arrows (a day, a week), Page Up / Page Down
   (a month), Home / End (the week's start and end), Enter or Space chooses, Escape closes and returns to the field.
   The value is ISO (YYYY-MM-DD). Plain HTML: datepick.js (window.PaperDate). React: PaperDatePicker. Additive.
   ========================================================================================================================= */
.pi-date{position:relative;width:min(100%,14rem)}
.pi-date--fill{width:100%}
.pi .pi-date-btn{width:100%;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border:1px solid var(--pi-field-rest);border-radius:8px;background:var(--pi-white);color:var(--pi-text);font:400 15px/1.45 var(--pi-font);cursor:pointer;text-align:left;transition:border-color var(--pi-duration) var(--pi-ease)}
.pi .pi-date-btn:hover{border-color:var(--pi-field-hover)}
.pi .pi-date-btn[aria-expanded=true]{border-color:var(--pi-ink)}
.pi .pi-date-btn[aria-invalid=true]{border-color:var(--pi-red)}
.pi-date-empty{color:var(--pi-muted)}
.pi-date-i{width:18px;height:18px;flex:none;color:var(--pi-secondary)}
.pi-date-i .g{fill:var(--pi-gold)}
.pi-cal{position:absolute;z-index:20;top:calc(100% + 6px);left:0;width:300px;padding:14px 14px 10px;background:var(--pi-white);border:1px solid var(--pi-line);border-radius:14px;box-shadow:0 18px 40px rgb(17 17 17/.12),0 2px 6px rgb(17 17 17/.06);animation:pi-in var(--pi-arrive,260ms) ease-out both}
.pi-cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.pi-cal-head b{font-size:14px;font-weight:600}
.pi .pi-cal-nav{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:none;border:0;color:var(--pi-secondary);cursor:pointer}
.pi .pi-cal-nav:hover{background:var(--pi-paper);color:var(--pi-ink)}
.pi-cal-nav svg{width:16px;height:16px}
.pi-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;justify-items:center}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): the calendar's weekdays are part of a date: mono, no letter spacing. */
.pi-cal-dow{font:10.5px/2.4 var(--pi-mono);color:var(--pi-muted);letter-spacing:0}
.pi .pi-day{width:36px;height:36px;border-radius:50%;border:0;background:none;font:inherit;font-size:13.5px;color:var(--pi-ink);cursor:pointer;font-variant-numeric:tabular-nums;transition:background-color var(--pi-duration) var(--pi-ease)}
.pi .pi-day:hover{background:var(--pi-paper)}
.pi .pi-day.is-today{box-shadow:inset 0 0 0 1.5px var(--pi-control)}
.pi .pi-day.is-sel{background:var(--pi-ink);color:var(--pi-white);box-shadow:none}
.pi-cal-foot{display:flex;justify-content:flex-end;gap:16px;margin-top:6px;padding-top:6px;border-top:1px solid var(--pi-hairline)}
.pi .pi-cal-foot button{min-height:32px;padding:0;background:none;border:0;font:inherit;font-size:13px;color:var(--pi-ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--pi-control);cursor:pointer}
.pi .pi-cal-foot button:hover{text-decoration-color:currentColor}
@media (max-width:759px){.pi-date{width:100%}.pi-cal{width:100%;min-width:272px}}
@media (forced-colors:active){.pi .pi-day.is-sel{background:Highlight;color:HighlightText}.pi .pi-day.is-today{box-shadow:inset 0 0 0 1.5px CanvasText}}

/* ===== 0.2.26 · the Close kit parts (T-358), from Engagement Overview v018–v022 (proposals/2026-09-28-overview-close-parts.md). ===== */
/* B · Fix: a hidden Undo stays hidden. `.pi .pi-notice button.pi-inline{display:inline}` beat the hidden attribute, so every View
   that hid its Undo added its own rule (Overview's #toast-undo[hidden], the app's close.css). */
.pi .pi-notice button[hidden],.pi .pi-notice button.pi-inline[hidden]{display:none}

/* C · The row that just changed: after a save, an accept or a mark complete, a gold left edge and the gold wash for a moment
   (the page removes .is-hl after 2.6 s), then it fades. The same signal as Benefits' row the person came back to. */
.pi-rows>li{transition:box-shadow .3s ease,background-color .3s ease}
.pi-rows>li.is-hl{box-shadow:inset 3px 0 0 var(--pi-gold);background:var(--pi-gold-wash);padding-left:12px;padding-right:8px}
@media (prefers-reduced-motion:reduce){.pi-rows>li{transition:none}}

/* D · A small square tag, where a label matters ("Kept for later"): a 3 px corner, a hairline, 11.5 px words. With hover help it
   takes focus (tabindex="0", aria-describedby the tip) and shows the help pointer. The round .pi-tag is unchanged. */
.pi-tag--square{min-height:20px;padding:0 7px;border-radius:3px;color:var(--pi-secondary)}
.pi-tag--square[tabindex]{cursor:help}
.pi-tag--square:focus-visible{outline:2px solid var(--pi-ink);outline-offset:2px}

/* E · The document strip: one client document's state and every action on it, once (Overview's closure summary, Roadmaps'
   implementation roadmap; was .eo-doc and .rm-docstrip). The icon; the name and one line of state; only the actions that apply:
   Not made → Make …; Draft → Preview · Mark as sent …; With the sponsor → Preview · Record the approval; Approved → Preview ·
   Download PDF; Out of date or Needs changes → Make version n; always Open in Artefacts ↗. */
.pi-docstrip{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.pi-docstrip-ic{display:grid;place-items:center;flex:none;width:38px;height:46px;border:1px solid var(--pi-line);border-radius:4px;background:var(--pi-white);color:var(--pi-secondary)}
.pi-docstrip-ic svg{width:18px;height:18px}
.pi-docstrip-t{flex:1 1 18rem;min-width:0;display:grid;gap:3px}
.pi-docstrip-t b{font-weight:600;font-size:15px}
.pi-docstrip-t span{font-size:13.5px;color:var(--pi-secondary)}
.pi-docstrip-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.pi-docstrip-acts a{font-size:13px;color:var(--pi-ink);text-underline-offset:3px;white-space:nowrap}

/* F · A short list with dots, in a dialog: what is done (green), still in progress (amber), what will be dropped (gold).
   The close dialog's "ready" and "not done yet" lists (was .eo-checklist). */
.pi-checklist{list-style:none;margin:2px 0 12px;padding:0;display:grid;gap:8px;font-size:14px}
.pi-checklist li{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:baseline}
.pi-checklist .pi-mark{width:8px;height:8px;transform:translateY(-1px)}

/* G · Two statuses side by side in a part's top line ("● 1 lesson · ● 1 proposed"). (A status in a row's value keeps each
   View's own size: Overview's 13.5 px stays local, so no accepted screen changes.) */
.pi-part-s .pi-st+.pi-st{margin-left:2px}

/* 0.2.26 revision 2 · the phone chevron of a part with a wide action (kit gap 6 of the Close proposal; the Owner, 5 Oct 2026: "A").
   Under 760 px the 0.2.18 rule resets the chevron's margin for .has-act, but .has-act.is-wide's 150 px rule is more specific, so the
   chevron dropped to a line of its own. It now sits on the status line, as for every other part. */
@media (max-width:759px){.pi-part-wrap.has-act.is-wide>.pi-part>summary .pi-i{margin-left:0}}
/* 0.2.27 (T-575) — a field marked wrong shows its red edge; selected, its ring grows to 2 px. The [aria-invalid=true] rules above (0,3,0) lost to the field rule
   .pi .pi-inform input:not(…):not(…) (0,4,1), which also sets box-shadow:none, so the red edge never showed. These name the
   element and keep the two :not()s, so they outrank the field rule, its hover and its focus. Values are the second field
   style's (an outer 1 px ring). */
.pi .pi-inform input[aria-invalid=true]:not([type=checkbox]):not([type=radio]),.pi .pi-inform select[aria-invalid=true],.pi .pi-inform textarea[aria-invalid=true],
.pi .pi-inform input[aria-invalid=true]:not([type=checkbox]):not([type=radio]):hover,.pi .pi-inform select[aria-invalid=true]:hover,.pi .pi-inform textarea[aria-invalid=true]:hover,
.pi .pi-inform input[aria-invalid=true]:not([type=checkbox]):not([type=radio]):focus,.pi .pi-inform select[aria-invalid=true]:focus,.pi .pi-inform textarea[aria-invalid=true]:focus{border-color:var(--pi-gap);box-shadow:0 0 0 1px var(--pi-gap)}
.pi .pi-inform input[aria-invalid=true]:not([type=checkbox]):not([type=radio]):focus,.pi .pi-inform select[aria-invalid=true]:focus,.pi .pi-inform textarea[aria-invalid=true]:focus{box-shadow:0 0 0 2px var(--pi-gap)}
/* 0.2.27 (T-600) — the textarea in a field keeps one edge when selected (its own rule, 0,2,1, set the border); a field that shows
   missing information keeps its amber or red edge and, selected, its ring grows to 2 px so the focus still shows */
.pi .pi-field textarea:focus-visible{border-color:var(--pi-focus)}
.pi .pi-field textarea[aria-invalid=true]:focus-visible{border-color:var(--pi-gap)}
.pi .pi-missing.is-weakens>:is(input,select,textarea):focus-visible{box-shadow:0 0 0 2px var(--pi-amber)}
.pi .pi-missing.is-blocks>:is(input,select,textarea):focus-visible{box-shadow:0 0 0 2px var(--pi-red)}

/* ========== 0.2.28 · the round action (T-650; Starting picture v010; Design D17, the Owner: "3", 8 Oct 2026) ==========
   A quiet action that steps aside, such as "Stop for now": its glyph in a small round ring, the words beside it, no box. Never
   black and never a pill. The ring is the round shape of the Starting picture's step dots. The glyph is drawn solid (0.2.17).
   Markup: <button class="pi-roundact"><span class="pi-roundact-ring" aria-hidden="true"><svg …/></span>Stop for now</button>.
   Hover: the ring turns gold and the words underline. Focus: the kit ring, round. Busy (disabled): the ring is dashed. */
.pi .pi-roundact{display:inline-flex;align-items:center;gap:11px;min-height:40px;padding:0 2px 0 0;border:0;border-radius:0;background:none;font:inherit;font-size:14px;font-weight:500;line-height:1.3;color:var(--pi-ink);text-decoration:none;cursor:pointer}
.pi-roundact-ring{display:grid;place-items:center;flex:none;box-sizing:border-box;width:34px;height:34px;border:1px solid var(--pi-line);border-radius:50%;background:var(--pi-white);color:var(--pi-ink);box-shadow:0 1px 2px rgba(17,17,17,.06);transition:border-color var(--pi-duration) var(--pi-ease),background-color var(--pi-duration) var(--pi-ease),color var(--pi-duration) var(--pi-ease)}
.pi-roundact-ring svg{width:12px;height:12px}
.pi-roundact-ring svg :is(path,rect,circle){fill:currentColor;stroke:none}
.pi .pi-roundact:hover:not(:disabled) .pi-roundact-ring{border-color:var(--pi-gold);background:var(--pi-gold-wash);color:var(--pi-gold-text)}
.pi .pi-roundact:hover:not(:disabled){text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.pi .pi-roundact:focus-visible{outline:var(--pi-focus-width) solid var(--pi-focus);outline-offset:var(--pi-focus-offset);border-radius:999px}
.pi .pi-roundact:disabled{cursor:progress;color:var(--pi-muted)}
.pi .pi-roundact:disabled .pi-roundact-ring{border-style:dashed;border-color:var(--pi-control);color:var(--pi-muted);box-shadow:none}
@media (max-width:759px){.pi .pi-roundact{min-height:44px}}
@media (prefers-reduced-motion:reduce){.pi-roundact-ring{transition:none}}
@media (forced-colors:active){.pi-roundact-ring{border-color:ButtonText}}
/* Paper and Ink 0.2.4 · the Ink navigation shell.
   Promoted from the Owner-selected main navigation (mockups/navigation-paper-and-ink/versions/v004, selected 20 September 2026;
   design-system/navigation-current.json) and the accepted screens that use it (Engagement Overview v010, Golden Thread v006,
   Artefacts v006, Foundations Overview v010, the Foundations Views). Values unchanged from v004's navigation.css, renamed to
   pi- classes and scoped: nothing here styles the page's own content, and the global resets of the mockup are not carried.
   Load after tokens/paper-and-ink.css and components.css, inside .pi. Ink is the only treatment (the paper rail of v001–v003
   was not selected). Behaviour — collapse, the phone drawer, Find a workspace with "/" — is in PaperShell (PaperAndInkShell.jsx),
   or the host's own script for plain HTML (see shell.html). */

/* ---------- the frame ---------- */
.pi-app{display:grid;grid-template-columns:264px minmax(0,1fr);min-height:100dvh}
.pi-canvas{min-width:0}
.pi-main{padding:38px 40px 60px;max-width:1500px;margin:0 auto}
.pi-main:focus{outline:none}
.pi-page-foot{font-size:11px;color:var(--pi-secondary);padding:20px 40px;border-top:1px solid var(--pi-line)}
.pi-skip{position:fixed;top:-100px;left:16px;background:var(--pi-white);padding:12px;z-index:30}
.pi-skip:focus{top:12px}

/* ---------- the rail and the phone drawer share the Ink values ---------- */
.pi-rail,.pi-drawer{--nav-bg:#171716;--nav-text:#f8f7f2;--nav-muted:#b9b6ad;--nav-hover:#2b2b28;--nav-active:#c9a227;--nav-active-text:#111;--nav-line:#393935;--pi-focus:#fff;background:var(--nav-bg);color:var(--nav-text)}
.pi-rail{position:sticky;top:0;height:100dvh;max-height:100dvh;border-right:1px solid var(--nav-line);display:flex;flex-direction:column;padding:24px 16px 16px}
.pi-rail :is(a,button),.pi-drawer :is(a,button){color:inherit;text-decoration:none;background:none;border:0;font:inherit;cursor:pointer}
.pi-rail svg,.pi-drawer svg,.pi-topbar svg{width:19px;height:19px;display:block;flex-shrink:0}
.pi-rail-brand{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px;padding:0 8px}
.pi-wordmark{font-size:24px;font-weight:600;letter-spacing:-1px}
.pi-wordmark>span{color:var(--pi-gold)}
/* round 36 px icon button: collapse, menu, close */
.pi .pi-roundbutton{width:36px;height:36px;border:1px solid transparent;border-radius:50%;display:inline-grid;place-items:center;flex-shrink:0;background:none;color:inherit;cursor:pointer}
.pi .pi-roundbutton:hover{border-color:currentColor}
.pi-rail-body{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;padding:4px}
.pi-identity{padding:0 8px 20px;margin-bottom:10px;border-bottom:1px solid var(--nav-line)}
.pi-identity .pi-label{color:var(--nav-muted)}
.pi-identity strong{display:block;font-size:14px;margin:7px 0 3px}
.pi-identity small{font-size:12px;color:var(--nav-muted);display:block}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): the rail's label ("Workspaces") is sans 12px, weight 600, normal case. */
.pi-nav-label{padding:4px 12px 12px;color:var(--nav-muted);font:600 12px/1.4 var(--pi-font);letter-spacing:0;text-transform:none;margin:0}
.pi-nav-item{min-height:43px;display:flex;align-items:center;gap:12px;border-radius:9px;padding:10px 12px;position:relative;font-size:13px;line-height:1.3;transition:background-color 150ms}
.pi-nav-item svg{width:17px;height:17px;opacity:.85}
.pi-nav-item:hover{background:var(--nav-hover)}
.pi-nav-item[aria-current]{background:var(--nav-active);color:var(--nav-active-text);font-weight:600}
.pi-nav-item[aria-current]::before{content:'';position:absolute;width:3px;height:18px;left:0;top:calc(50% - 9px);border-radius:3px;background:var(--nav-active-text)}
.pi-nav-item[aria-current]::after{content:'';width:6px;height:6px;background:var(--pi-ink);border-radius:50%;margin-left:auto}
/* 0.2.24 revision 3 (1 Oct 2026, T-259): the item's 13 px / 1.3 at the reset's specificity. `.pi-rail :is(a,button){font:inherit}`
   (0,1,1) outranked `.pi-nav-item` (0,1,0), so rail and drawer items drew at the .pi body size, 16 px / 24 px, 44 px tall; navigation
   v010 (selected) draws them at 13 px / 16.9 px, 43 px tall. The weight is unchanged (inherited 400; 600 when current). */
.pi-rail .pi-nav-item,.pi-drawer .pi-nav-item{font-size:13px;line-height:1.3}
/* 0.2.24 revision 3 · a Workspace that is not set up yet: <a class="pi-nav-item is-unavailable"> with no href. The name only, in the
   rail's muted grey (as an unavailable Section); no hover, no current treatment, default cursor; the glyph in the same grey (its
   gold part too). Its accessible name says "<Name>, not set up yet" (Ink Navigation guideline). */
.pi-rail .pi-nav-item.is-unavailable,.pi-drawer .pi-nav-item.is-unavailable{color:var(--nav-muted);cursor:default;background:none;font-weight:inherit}
.pi-nav-item.is-unavailable::before,.pi-nav-item.is-unavailable::after{content:none}
.pi-rail .pi-nav-item.is-unavailable .pi-glyph,.pi-drawer .pi-nav-item.is-unavailable .pi-glyph{--pi-cut:var(--nav-bg)}
.pi-nav-item.is-unavailable .pi-glyph .g{fill:currentColor}
.pi-nav-divider{height:1px;background:var(--nav-line);margin:10px 12px}
/* Sections of a Workspace (Foundations: Overview · Framing · Governance · Access) */
.pi-sections{padding:6px 0 7px 31px;display:grid;gap:2px}
.pi-sections a{font-size:12px;color:var(--nav-muted);padding:7px 12px;min-height:32px;border-left:1px solid var(--nav-line)}
.pi-sections a[aria-current]{color:var(--nav-text);font-weight:600;border-left:2px solid var(--nav-text)}
.pi-sections a:hover{color:var(--nav-text);text-decoration:underline;text-underline-offset:4px}
.pi-sections .is-unavailable{font-size:12px;color:var(--nav-muted);padding:7px 12px;border-left:1px dashed var(--nav-line)}
.pi-rail-footer{display:flex;align-items:center;gap:12px;padding:16px 8px 0;margin-top:10px;border-top:1px solid var(--nav-line);flex-shrink:0}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): initials are words: sans. */
.pi-nav-avatar{width:34px;height:34px;border:1px solid var(--nav-muted);border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:600;font-family:var(--pi-font);flex-shrink:0}
.pi-rail-footer b{display:block;font-size:12px}
.pi-rail-footer small{display:block;font-size:11px;color:var(--nav-muted)}
/* navigation scrolls natively; only the scrollbar chrome is hidden */
.pi-rail-body,.pi-drawer{scrollbar-width:none}
.pi-rail-body::-webkit-scrollbar,.pi-drawer::-webkit-scrollbar{display:none;width:0;height:0}

/* ---------- collapsed rail: 80 px, icons only; the name shows on hover and focus ---------- */
.pi-shell.is-collapsed .pi-app{grid-template-columns:80px minmax(0,1fr)}
.pi-shell.is-collapsed .pi-rail{padding-left:10px;padding-right:10px}
.pi-shell.is-collapsed .pi-rail :is(.pi-wordmark,.pi-identity,.pi-nav-label,.pi-sections),.pi-shell.is-collapsed .pi-rail .pi-rail-footer .pi-nav-text{display:none}
.pi-shell.is-collapsed .pi-rail-brand{padding:0;justify-content:center}
.pi-shell.is-collapsed .pi-rail .pi-nav-item{justify-content:center;padding:12px}
.pi-shell.is-collapsed .pi-rail .pi-nav-item .pi-nav-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.pi-shell.is-collapsed .pi-rail .pi-nav-item:hover .pi-nav-text,.pi-shell.is-collapsed .pi-rail .pi-nav-item:focus-visible .pi-nav-text{position:fixed;left:74px;width:auto;height:auto;clip-path:none;overflow:visible;white-space:nowrap;background:var(--nav-active);color:var(--nav-active-text);padding:8px 14px;border:1px solid var(--nav-muted);border-radius:8px;z-index:20}
.pi-shell.is-collapsed .pi-rail .pi-nav-item[aria-current]::after{display:none}
.pi-shell.is-collapsed .pi-rail-footer{justify-content:center;padding-left:0;padding-right:0}
.pi-shell.is-collapsed .pi-rail .pi-nav-divider{margin-left:8px;margin-right:8px}

/* ---------- the topbar: menu (phone), context, actions ---------- */
.pi-topbar{min-height:70px;padding:18px 36px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--pi-line);background:var(--pi-paper)}
.pi-context{font-size:12px;color:var(--pi-secondary)}
.pi-context>span{color:var(--pi-muted);margin:0 12px}
.pi-context b{font-weight:500;color:var(--pi-ink)}
.pi-top-actions{display:flex;gap:16px;align-items:center}
.pi .pi-plain-button{min-width:36px;justify-content:center;display:flex;gap:10px;align-items:center;color:var(--pi-secondary);font-size:12px;min-height:36px;background:none;border:0;cursor:pointer}
.pi-plain-button svg{width:15px;height:15px}
.pi-topbar kbd{font:11px var(--pi-mono);border:1px solid var(--pi-control);border-radius:4px;padding:1px 5px}
.pi-menu-button{display:none!important}

/* ---------- View pills under a page head (Foundations › Framing: Stakeholders · Scope · …) ---------- */
/* 0.2.11: the Views of a Section are underline tabs, not pills (option A, the Owner, 24 Sep 2026). The current tab: ink, 600, a 2 px ink
   line; the others --pi-secondary (4.5:1); hover shows a --pi-control line. On a phone the row scrolls sideways on its own. */
.pi-viewnav{display:flex;flex-wrap:nowrap;gap:0 28px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--pi-line);margin:0 0 28px}
.pi-viewnav::-webkit-scrollbar{display:none}
.pi-viewnav a{flex:none;padding:4px 0 12px;margin-bottom:-1px;border-bottom:2px solid transparent;font-size:14px;color:var(--pi-secondary);text-decoration:none;white-space:nowrap}
.pi-viewnav a:hover{color:var(--pi-ink);border-bottom-color:var(--pi-control)}
.pi-viewnav a[aria-current]{color:var(--pi-ink);font-weight:600;border-bottom-color:var(--pi-ink)}
.pi-viewnav a:focus-visible{outline-offset:2px}

/* ---------- the phone drawer and the Find dialog ---------- */
.pi-drawer{border:0;margin:0;height:100dvh;max-height:100dvh;width:300px;max-width:calc(100vw - 24px);padding:24px 16px;overflow-y:auto}
.pi-drawer::backdrop,.pi-find::backdrop{background:rgb(17 17 17/.4)}
.pi-find{background:var(--pi-paper);color:var(--pi-ink);border:1px solid var(--pi-control);border-radius:16px;padding:24px;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-shadow:var(--pi-detail-shadow)}
.pi-find header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}
.pi-find h2{font-size:22px;letter-spacing:-.5px;margin:0}
.pi-find input{display:block;width:100%;min-width:0;padding:12px;border:1px solid var(--pi-control);border-radius:8px;background:var(--pi-white);margin:8px 0 16px;font:inherit}
.pi-find-results{display:grid;gap:4px}
.pi-find-results a{display:flex;align-items:center;gap:12px;padding:12px;border-radius:8px;background:var(--pi-white);border:1px solid var(--pi-line);color:var(--pi-ink);text-decoration:none}
.pi-find-results a:hover{border-color:var(--pi-ink)}
.pi-find-results svg{width:17px;height:17px}
.pi-find p{margin-top:16px;font-size:12px;color:var(--pi-secondary)}

/* ---------- Presenting: the shell steps back (Engagement Overview, Foundations Overview) ---------- */
.pi-shell[data-mode=present] .pi-app{display:block}
.pi-shell[data-mode=present] :is(.pi-rail,.pi-topbar,.pi-page-foot){display:none!important}

/* ---------- responsive ---------- */
@media (max-width:1150px){
  .pi-app{grid-template-columns:244px minmax(0,1fr)}
  .pi-main{padding:28px}
  .pi-topbar{padding:16px 28px}
  .pi-plain-button span:not(.pi-i),.pi-topbar kbd{display:none}
  .pi-context b,.pi-context>span{display:none}
}
@media (max-width:759px){
  .pi-app,.pi-shell.is-collapsed .pi-app{display:block}
  .pi-rail{display:none}
  .pi-menu-button{display:inline-grid!important}
  .pi-topbar{padding:12px 16px;gap:12px;min-height:60px}
  .pi-context{flex:1}
  .pi-top-actions{gap:4px}
  .pi-main{padding:28px 16px}
  .pi-page-foot{padding:20px 16px}
  .pi-viewnav{gap:0 20px}
}
@media (prefers-reduced-motion:reduce){.pi-nav-item{transition:none}}
@media (forced-colors:active){
  .pi-nav-item[aria-current],.pi-sections a[aria-current]{outline:2px solid Highlight}.pi-viewnav a[aria-current]{border-bottom-color:Highlight}
  .pi-rail,.pi-drawer{border-color:CanvasText}
}

/* 0.2.15 · a count beside a rail item: new information waiting for that Workspace ("6 new"). White on the current (gold) item and
   on the dark rail alike; hidden when the rail is collapsed (the item's label, where it lives, is hidden too). */
.pi-nav-count{display:inline-block;margin-left:8px;padding:0 7px;border-radius:999px;background:var(--pi-white);color:var(--pi-ink);font:500 11px/18px var(--pi-font);vertical-align:1px}

/* 0.2.19 · the content area clips sideways, so a slide (PaperMove.slide, M3) never widens the page. `clip`, not `hidden`:
   hidden would make .pi-main a scroll container and break the sticky heads inside it. Measured on the Starting picture v003 at
   375 px (28 Sep 2026): 36 px too wide during a slide without it, 0 px with it. */
.pi-main,.pi-canvas{overflow-x:clip}
/* revision 2 (28 Sep 2026, found by the group 1 sweep): when a View slides the whole content area (.pi-main itself), the clip must
   sit on its parent too, because an element does not clip its own movement. .pi-canvas clips as well: 0 px on every frame. */

/* ========== 0.2.28 · a section with a note (T-649; Engagement Overview v024; Design D17, 8 Oct 2026) ==========
   A section under a Workspace may carry one short note at its right, in words: the Starting picture under Overview says
   "2 of 6" with a gold mark while it is unfinished, and "Done" once it is. The note is words, never a badge or a count pill. */
.pi-sections a:has(.pi-sections-note){display:flex;align-items:center;gap:8px}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): a step note ("2 of 6") is a number, not a ref: sans with tabular figures. */
.pi-sections-note{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font:12px var(--pi-font);font-variant-numeric:tabular-nums;letter-spacing:0;color:var(--nav-muted);white-space:nowrap}
.pi-sections-note .pi-mark{width:7px;height:7px}
/* Paper and Ink 0.2.17 · the graphics. Accepted by the Owner on 25 September 2026 (style B, geometric solid; gold always;
   reviews/2026-09-25-icons-and-graphics/b-geometric.html; navigation v010). Load after shell.css. Markup comes from
   components/PaperAndInkGraphics.jsx or, in plain HTML, paper-and-ink/graphics.js (window.PaperGraphics).
   Parts of a glyph: plain = currentColor; .o = the quiet part (42 %); .g = gold; .cut = a line cut out in --pi-cut.
   Everything here is decorative: aria-hidden, and the words beside it carry the meaning. */

/* ---------- the glyph ---------- */
.pi-glyph{width:var(--pi-glyph,20px);height:var(--pi-glyph,20px);display:block;flex-shrink:0;fill:currentColor;stroke:none}
.pi-glyph-wrap{display:inline-flex}
.pi-glyph .o,.pi-art .o{opacity:.42}
.pi-glyph .g,.pi-art .g{fill:var(--pi-gold)}
.pi-glyph .cut,.pi-art .cut{fill:none;stroke:var(--pi-cut,var(--pi-white));stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* in the Ink rail and drawer: full opacity, the cut in the rail colour; on the current item the gold part turns white */
.pi-rail .pi-glyph,.pi-drawer .pi-glyph{--pi-cut:var(--nav-bg);width:19px;height:19px;opacity:1}
.pi-nav-item[aria-current] .pi-glyph{--pi-cut:var(--nav-active)}
.pi-nav-item[aria-current] .pi-glyph .g{fill:#fff}

/* ---------- 1 · the page-head emblem ---------- */
/* Revision 3–5 (the Owner, 25 Sep 2026): the emblem is 112 px (--pi-emblem-size); its bottom lines up with the bottom of the head's
   text; it shrinks where the head has less room so it stays 16 px clear of the line above, and never adds space to the head
   (graphics.js / PaperEmblem). Where the head has a button or switch, add .pi-emblem-end: the emblem sits at the far right end
   and the controls move to its left. Without script the emblem is centred and no taller than the head less 16 px. */
.pi-has-emblem{position:relative;isolation:isolate}
.pi-emblem{position:absolute;z-index:-1;right:var(--pi-emblem-right,0);top:50%;transform:translateY(-50%);height:min(var(--pi-emblem-size,112px),calc(100% - 16px));aspect-ratio:1;width:auto;pointer-events:none;color:#ece8df;--pi-cut:var(--pi-paper)}
.pi-has-emblem.pi-emblem-end{padding-right:calc(var(--pi-emblem-size,112px) + 24px)}
.pi-emblem .pi-glyph{width:100%;height:100%}
.pi-emblem .pi-glyph .g{fill:#efe2b3}
.pi-emblem .pi-glyph .o{opacity:1;fill:#f2efe8}
@media(max-width:559px){.pi-emblem{display:none}.pi-has-emblem.pi-emblem-end{padding-right:0}}
/* revision 6: below 1100 px a head with a button or switch has no room to spare; the emblem steps out so the words do not wrap */
@media(max-width:1099px){.pi-emblem-end>.pi-emblem{display:none}.pi-has-emblem.pi-emblem-end{padding-right:0}}
[data-mode=present] .pi-emblem{display:none}
[data-mode=present] .pi-has-emblem.pi-emblem-end{padding-right:0}

/* ---------- 2 · empty states ---------- */
/* only an empty state that holds the art; the older .pi-empty (a dashed note, components.css) is left as it is (revision 6) */
.pi-empty:has(.pi-emptyart){display:grid;justify-items:center;text-align:center;gap:6px;padding:32px 16px}
.pi-emptyart{display:block;width:120px;height:96px;margin-bottom:6px;color:var(--pi-ink)}
.pi-emptyart .pi-art{width:100%;height:100%;fill:currentColor}
.pi-art .l1{fill:var(--pi-line)}.pi-art .l2{fill:#d9d5cb}.pi-art .w{fill:#fff;opacity:.5}
.pi-empty-t,.pi-empty:has(.pi-emptyart) .pi-empty-t{font-size:15px;font-weight:600;color:var(--pi-ink)}
.pi-empty-s{margin:0;font-size:13px;color:var(--pi-secondary);max-width:34ch}
.pi-empty:has(.pi-emptyart) :is(.pi-button,button){margin-top:6px}

/* ---------- 3 · journey stage markers: PaperJourney stages with a glyph ---------- */
.pi-journey .pi-jdot.pi-jmark{width:34px;height:34px;border-width:1px;display:grid;place-items:center;color:var(--pi-muted);background:var(--pi-white);--pi-cut:var(--pi-white)}
.pi-journey .pi-jmark .pi-glyph{width:17px;height:17px}
.pi-journey .pi-jmark .pi-glyph .g{fill:currentColor;opacity:.6}
.pi-journey .is-done .pi-jdot.pi-jmark{background:var(--pi-green);border-color:var(--pi-green);color:#fff;--pi-cut:var(--pi-green)}
.pi-journey .is-done .pi-jmark .pi-glyph .g{fill:#fff;opacity:1}
.pi-journey .is-cur .pi-jdot.pi-jmark{width:40px;height:40px;background:var(--pi-gold);border-color:var(--pi-gold);color:#111;--pi-cut:var(--pi-gold)}
.pi-journey .is-cur .pi-jmark .pi-glyph{width:20px;height:20px}
.pi-journey .is-cur .pi-jmark .pi-glyph .g{fill:#fff;opacity:1}
.pi-journey ol>li:has(.pi-jmark){grid-template-rows:48px auto auto 1fr}
.pi-journey li.is-context .pi-jdot.pi-jmark{width:28px;height:28px}
.pi-journey li.is-context.is-cur .pi-jdot.pi-jmark{width:34px;height:34px}

/* ---------- 4 · the ink card's mark ---------- */
.pi-card--ink:has(.pi-inkmark),.pi-inkcard-host{position:relative;overflow:hidden;isolation:isolate}
.pi-inkmark{position:absolute;right:0;bottom:0;width:150px;height:150px;z-index:-1;pointer-events:none}
.pi-inkmark .pi-art{width:100%;height:100%}
.pi-inkmark .r1{fill:none;stroke:#3a3935;stroke-width:1}.pi-inkmark .r2{fill:none;stroke:#2b2b28;stroke-width:1}.pi-inkmark .w{fill:#fff}
@media(max-width:559px){.pi-inkmark{width:110px;height:110px}}

/* ---------- 5 · the gold thread ---------- */
.pi-thread{overflow-x:auto;scrollbar-width:thin}
.pi-thread svg{display:block;width:100%;min-width:480px;max-width:640px;height:auto;overflow:visible}
.pi-thread-line{fill:none;stroke:var(--pi-gold);stroke-width:3;stroke-linecap:round;stroke-dasharray:500;stroke-dashoffset:500;animation:pi-thread-draw 1.4s .2s var(--pi-ease,ease-out) forwards}
.pi-bead{opacity:0;animation:pi-thread-pop .3s ease-out forwards;animation-delay:calc(var(--d)*220ms + 300ms)}
.pi-bead circle{fill:var(--pi-ink)}
.pi-bead.is-end circle{fill:var(--pi-gold)}
.pi-bead.is-gap circle{fill:var(--pi-paper);stroke:var(--pi-ink);stroke-width:2;stroke-dasharray:3 2.5}
.pi-bead text{font:12px var(--pi-font);fill:var(--pi-secondary)}
.pi-bead.is-gap text{fill:var(--pi-review);font-weight:600}
@keyframes pi-thread-draw{to{stroke-dashoffset:0}}@keyframes pi-thread-pop{to{opacity:1}}

/* ---------- 6 · the engagement cover ---------- */
.pi-cover{position:relative;overflow:hidden;background:var(--pi-ink);border-radius:var(--pi-radius,16px);height:clamp(220px,24vw,300px);color:#fff}
.pi-cover>svg{position:absolute;right:0;top:0;height:100%;width:auto}
.pi-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#111 30%,rgba(17,17,17,0) 70%)}
.pi-cover .c0{fill:#262624}.pi-cover .c1{fill:#34332f}.pi-cover .c2{fill:#4a4944}.pi-cover .c3{fill:#1c1c1a}
.pi-cover-t{position:absolute;z-index:1;left:24px;bottom:22px;max-width:52%}
/* 0.2.29 (T-689; Engagement Overview v029, the Owner: "A", 11 Oct 2026): the cover's small line is a label: sans label style, not mono uppercase. */
.pi-cover-t small{display:block;font:var(--pi-label-font);letter-spacing:0;text-transform:none;color:var(--pi-inverse-muted)}
.pi-cover-t b{display:block;font-size:26px;font-weight:500;letter-spacing:-.02em;line-height:1.15}

/* ---------- 7 · progress dots (.pi-progdots; .pi-dots is the older three-dot loading mark in working.css) ---------- */
.pi-progdots{display:inline-block;max-width:100%}
.pi-progdots svg{display:block;max-width:100%;height:auto}
.pi-progdots .rest{fill:var(--pi-line)}.pi-progdots .done{fill:var(--pi-ink)}
.pi-progdots circle{fill:var(--pi-line)}.pi-progdots circle.is-done{fill:var(--pi-ink)}
.pi-progdots circle.is-now{fill:var(--pi-gold);transform-box:fill-box;transform-origin:center;animation:pi-progdot-pulse 1.4s ease-in-out infinite}
.pi-card--ink .pi-progdots .rest,.pi-card--ink .pi-progdots circle{fill:#3a3935}
.pi-card--ink .pi-progdots .done,.pi-card--ink .pi-progdots circle.is-done{fill:#fff}
.pi-card--ink .pi-progdots circle.is-now{fill:var(--pi-gold)}
@keyframes pi-progdot-pulse{50%{transform:scale(1.25)}}

/* ---------- 8 · the sign-in composition ---------- */
.pi-hero-art{display:block}
.pi-hero-art svg{width:100%;height:auto;display:block}
.pi-hero-art .ln{stroke:#d9d5cb;stroke-width:2}.pi-hero-art .l{fill:#cfcac0}.pi-hero-art .k{fill:var(--pi-ink)}.pi-hero-art .gl{stroke:var(--pi-gold);stroke-width:4}

@media(prefers-reduced-motion:reduce){.pi-thread-line{animation:none;stroke-dashoffset:0}.pi-bead{animation:none;opacity:1}.pi-progdots circle.is-now{animation:none}}
@media(forced-colors:active){.pi-emblem,.pi-inkmark,.pi-cover>svg{display:none}}
/* Paper and Ink · the loose threads (T-376) and the glass panel. From Sign in v004 (ink) and v005 (paper), selected 29 Sep 2026.
   Load after graphics.css. The script is threads.js (PaperThreads). */

/* 1 · The threads fill the box they are in (the box sets position and isolation). Decorative: aria-hidden on the svg. */
.pi-threads{position:absolute;inset:0;z-index:-1;display:block;width:100%;height:100%;pointer-events:none}
/* the light that runs along the gold strand while signing in (the root gets .is-busy) */
.pi-threads-glint{stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-dasharray:.05 1;stroke-dashoffset:.05;opacity:0}
.is-busy .pi-threads-glint{opacity:.95;animation:pi-threads-glint 1.3s cubic-bezier(.45,0,.35,1) infinite}
@keyframes pi-threads-glint{from{stroke-dashoffset:.05}to{stroke-dashoffset:-1}}
/* .pi-threads--band: below 820 px the threads fill a 440 px band above the form and fade out, so the swirl is seen, not hidden
   behind the form (the form then sits below the band, from 250 px). */
@media (max-width:819px){.pi-threads--band{bottom:auto;height:440px;-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}}
@media (prefers-reduced-motion:reduce){.is-busy .pi-threads-glint{animation:none;opacity:0}}

/* 2 · The glass panel: a clear surface for a form over the threads. The threads stay visible through it, softened.
   A light edge catches the top left. On ink it holds the dark form parts (.pi-dark); on paper the kit's own fields. */
.pi-glass{position:relative;border-radius:22px;padding:40px 36px 34px;
  -webkit-backdrop-filter:blur(7px) saturate(1.5);backdrop-filter:blur(7px) saturate(1.5)}
.pi-glass--ink{background:linear-gradient(140deg,rgba(255,255,255,.11),rgba(255,255,255,.025) 55%,rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 1px 1px 0 rgba(255,255,255,.22),inset -1px -1px 0 rgba(255,255,255,.04),0 24px 70px rgba(0,0,0,.4)}
.pi-glass--paper{background:linear-gradient(140deg,rgba(255,255,255,.5),rgba(255,255,255,.08) 55%,rgba(255,255,255,.22));border:1px solid rgba(255,255,255,.9);
  box-shadow:inset 1px 1px 0 #fff,0 24px 70px rgba(17,17,17,.09);-webkit-backdrop-filter:blur(3px) saturate(1.3);backdrop-filter:blur(3px) saturate(1.3)}
/* fields on glass let the panel through a little */
.pi-glass--paper{--pi-glass-field-line:var(--pi-muted)}   /* a field's edge on the paper glass: 3:1 or more to the field, measured (the Owner, 5 Oct 2026: B) */
.pi .pi-glass--paper .pi-inform input:not([type=checkbox]):not([type=radio]){background:rgba(255,255,255,.72);border-color:var(--pi-glass-field-line)}
.pi .pi-glass--paper .pi-inform input:not([type=checkbox]):not([type=radio]):hover{border-color:var(--pi-secondary)}
.pi .pi-glass--paper .pi-inform input:not([type=checkbox]):not([type=radio]):focus{border-color:var(--pi-ink)}
.pi .pi-glass--paper .pi-inform [aria-invalid=true]{border-color:var(--pi-gap)}
@media (max-width:819px){.pi-glass{padding:28px 22px 24px}}
/* a browser without blur gets a solid panel, so words never sit on the threads alone */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .pi-glass--ink{background:rgba(17,17,17,.92)}.pi-glass--paper{background:rgba(250,249,246,.94)}
}
@media (prefers-reduced-transparency:reduce){.pi-glass--ink{background:#111}.pi-glass--paper{background:var(--pi-paper)}}
/* 0.2.27 (T-575) — a field marked wrong shows its red edge on the paper glass (the rule above lost to the glass field rules) */
.pi .pi-glass--paper .pi-inform input[aria-invalid=true]:not([type=checkbox]):not([type=radio]),.pi .pi-glass--paper .pi-inform input[aria-invalid=true]:not([type=checkbox]):not([type=radio]):hover,.pi .pi-glass--paper .pi-inform input[aria-invalid=true]:not([type=checkbox]):not([type=radio]):focus{border-color:var(--pi-gap)}
/* Paper and Ink · the dark parts (T-377): fields on ink, a white primary button, a white focus ring, autofill kept dark.
   From Sign in v004 (selected 29 Sep 2026). The kit's first dark parts. Scope: .pi-dark on the part of the page that is dark
   (the sign-in page at first; the app's own screens stay light until a dark set exists). Nothing outside .pi-dark changes.
   Contrast: verification/contrast.json, "dark parts". Gold stays identity only: no gold button, no gold focus on ink. */
.pi-dark{
  --pi-dark-page:#111111;            /* the page: the kit's ink */
  --pi-dark-field:#1c1c1a;           /* a field on ink */
  --pi-dark-field-line:var(--pi-inverse-line);  /* a field's edge at rest: #76736c, 3.6:1 on the field (the Owner, 5 Oct 2026: B) */
  --pi-dark-field-hover:#8a877f;     /* a field's edge on hover */
  --pi-dark-text:#ffffff;
  --pi-dark-muted:var(--pi-inverse-muted);  /* #c9c7c0 */
  --pi-dark-error:#ff5a6e;           /* a field in error, and the error words */
  --pi-dark-button-hover:#e9e7e1;    /* the white button on hover */
  --pi-dark-disabled-line:#56544d;   /* a disabled button's edge */
  --pi-dark-glass-field:rgba(17,17,17,.55);      /* a field on the ink glass panel */
  --pi-dark-glass-line:rgba(255,255,255,.42);    /* its edge at rest: 3:1 or more to the field, measured on the page (B) */
  --pi-focus:var(--pi-focus-inverse);
  background:var(--pi-dark-page);color:var(--pi-dark-text);color-scheme:dark
}
.pi-dark :focus-visible{outline-color:var(--pi-focus-inverse)}

/* words */
.pi-dark .pi-if-head>label,.pi-dark .pi-if-l{color:var(--pi-dark-text)}
.pi-dark .pi-if-req,.pi-dark .pi-if-hint{color:var(--pi-dark-muted)}
.pi-dark .pi-error{color:var(--pi-dark-error)}
.pi .pi-dark .pi-quiet,.pi .pi-dark .pi-inline{color:var(--pi-dark-text)}

/* fields */
.pi .pi-dark .pi-inform input:not([type=checkbox]):not([type=radio]),.pi .pi-dark .pi-inform select,.pi .pi-dark .pi-inform textarea{
  background:var(--pi-dark-field);border-color:var(--pi-dark-field-line);color:var(--pi-dark-text)}
.pi .pi-dark .pi-inform input:not([type=checkbox]):not([type=radio]):hover,.pi .pi-dark .pi-inform select:hover,.pi .pi-dark .pi-inform textarea:hover{border-color:var(--pi-dark-field-hover)}
.pi .pi-dark .pi-inform input:not([type=checkbox]):not([type=radio]):focus,.pi .pi-dark .pi-inform select:focus,.pi .pi-dark .pi-inform textarea:focus{border-color:var(--pi-dark-text);box-shadow:inset 0 0 0 1px var(--pi-dark-text)}
.pi .pi-dark .pi-inform [aria-invalid=true],.pi .pi-dark .pi-inform [aria-invalid=true]:focus{border-color:var(--pi-dark-error);box-shadow:inset 0 0 0 1px var(--pi-dark-error)}
.pi-dark .pi-inform ::placeholder{color:var(--pi-dark-muted);opacity:1}
/* on the ink glass panel a field lets the panel through */
.pi .pi-dark .pi-glass--ink .pi-inform input:not([type=checkbox]):not([type=radio]){background:var(--pi-dark-glass-field);border-color:var(--pi-dark-glass-line)}
.pi .pi-dark .pi-glass--ink .pi-inform input:not([type=checkbox]):not([type=radio]):hover{border-color:var(--pi-dark-field-hover)}
.pi .pi-dark .pi-glass--ink .pi-inform input:not([type=checkbox]):not([type=radio]):focus{border-color:var(--pi-dark-text)}
.pi .pi-dark .pi-glass--ink .pi-inform [aria-invalid=true]{border-color:var(--pi-dark-error)}
/* autofill kept dark: the browser's own yellow or blue never shows on ink */
.pi-dark input:-webkit-autofill,.pi-dark input:-webkit-autofill:hover,.pi-dark input:-webkit-autofill:focus{
  -webkit-box-shadow:0 0 0 40px var(--pi-dark-field) inset;-webkit-text-fill-color:var(--pi-dark-text);caret-color:var(--pi-dark-text);transition:background-color 9999s}
.pi .pi-dark .pi-inform input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 40px var(--pi-dark-field) inset,inset 0 0 0 1px var(--pi-dark-text)}

/* buttons: the primary button on ink is white with ink words; a plain button is an outline */
.pi .pi-dark .pi-button{background:transparent;color:var(--pi-dark-text);border-color:var(--pi-dark-text)}
.pi .pi-dark .pi-button:hover:not(:disabled){background:var(--pi-dark-text);color:var(--pi-dark-page)}
.pi .pi-dark .pi-button--ink{background:var(--pi-dark-text);color:var(--pi-dark-page);border-color:var(--pi-dark-text)}
.pi .pi-dark .pi-button--ink:hover:not(:disabled){background:var(--pi-dark-button-hover);color:var(--pi-dark-page);border-color:var(--pi-dark-button-hover)}
/* busy (aria-busy) keeps the white button; a plain disabled one goes quiet */
.pi .pi-dark .pi-button--ink[aria-busy=true]:disabled{background:var(--pi-dark-text);color:var(--pi-dark-page);border-style:solid;border-color:var(--pi-dark-text);cursor:progress}
.pi .pi-dark .pi-button:disabled:not([aria-busy=true]){background:transparent;color:var(--pi-dark-muted);border-color:var(--pi-dark-disabled-line)}

/* progress dots on ink (as on the ink card): the hand-off after sign-in */
.pi-dark .pi-progdots circle{fill:#3a3935}
.pi-dark .pi-progdots circle.is-done{fill:var(--pi-dark-text)}
.pi-dark .pi-progdots circle.is-now{fill:var(--pi-gold)}

@media (forced-colors:active){
  .pi .pi-dark .pi-inform input:not([type=checkbox]):not([type=radio]){border-color:CanvasText}
  .pi .pi-dark .pi-button--ink{border-color:ButtonText}
}
/* 0.2.27 (T-575) — a field marked wrong shows its red edge on ink and on the ink glass (the rules above lost to the field rules) */
.pi .pi-dark .pi-inform input[aria-invalid=true]:not([type=checkbox]):not([type=radio]),.pi .pi-dark .pi-inform select[aria-invalid=true],.pi .pi-dark .pi-inform textarea[aria-invalid=true],
.pi .pi-dark .pi-inform input[aria-invalid=true]:not([type=checkbox]):not([type=radio]):hover,.pi .pi-dark .pi-inform select[aria-invalid=true]:hover,.pi .pi-dark .pi-inform textarea[aria-invalid=true]:hover,
.pi .pi-dark .pi-inform input[aria-invalid=true]:not([type=checkbox]):not([type=radio]):focus,.pi .pi-dark .pi-inform select[aria-invalid=true]:focus,.pi .pi-dark .pi-inform textarea[aria-invalid=true]:focus{border-color:var(--pi-dark-error);box-shadow:inset 0 0 0 1px var(--pi-dark-error)}
.pi .pi-dark .pi-inform input[aria-invalid=true]:not([type=checkbox]):not([type=radio]):focus,.pi .pi-dark .pi-inform select[aria-invalid=true]:focus,.pi .pi-dark .pi-inform textarea[aria-invalid=true]:focus{box-shadow:inset 0 0 0 2px var(--pi-dark-error)}
.pi .pi-dark .pi-glass--ink .pi-inform input[aria-invalid=true]:not([type=checkbox]):not([type=radio]),.pi .pi-dark .pi-glass--ink .pi-inform input[aria-invalid=true]:not([type=checkbox]):not([type=radio]):hover,.pi .pi-dark .pi-glass--ink .pi-inform input[aria-invalid=true]:not([type=checkbox]):not([type=radio]):focus{border-color:var(--pi-dark-error)}
/* 0.2.27 (T-600) — a selected field marked wrong on ink keeps the light red, not the paper red */
.pi .pi-dark :where(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color],[type=button],[type=submit],[type=reset],[type=image]),textarea,select):where([aria-invalid=true]):focus-visible{border-color:var(--pi-dark-error);box-shadow:0 0 0 2px var(--pi-dark-error)}
/* The Ink shell seated over House pages ([[T-259]], [[D283]]): layout glue and
   app-only rail controls. The vendored kit files are never edited. */

/* The frame is one viewport high and owns no scroll of its own, as the House
   shell was: each page scrolls inside `main`, against the geometry it was built for. */
.pi-shell .pi-app { height: 100vh; overflow: hidden; }

/* The canvas stacks the topbar over `main`, and `main` takes the rest of the height. */
.pi-shell .pi-canvas { display: flex; flex-direction: column; height: 100vh; min-height: 0; }

/* The topbar keeps its own height when a page is tall. */
.pi-shell .pi-topbar { flex-shrink: 0; }

/* `main` keeps the House geometry: each page brings its own padding and width
   until its screen card rebuilds it in Ink, so the kit's page padding is not applied. */
.pi-shell .pi-main { padding: 0; max-width: none; margin: 0; min-height: 0; }

/* A Version 2 page built on the kit (`.rw-page`) has no scroll of its own, so `main` scrolls it, at the window's edge,
   and the page keeps its full height rather than shrinking into `main`. Without this, a kit page taller than the
   window was cut off and the mouse wheel did nothing. */
.pi-shell .pi-main:has(> .rw-page) { overflow-y: auto; }
.pi-shell .pi-main > .rw-page { flex-shrink: 0; }

/* The rail body scrolls, so an outward ring would be cut at its edge: the ring
   on its links and sections is drawn inward, same width, all four sides on screen. */
.pi-rail-body :is(a, button):focus-visible { outline-offset: calc(-1 * var(--pi-focus-width)); }

/* UX review 1, card D: the rail's scrollbar is hidden, so a soft fade at its
   foot says more is below. ShellFrame sets the class only while there is. */
.pi-rail-body.has-more-below {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent);
}

/* UX review 1, card E: the identity block's place while the engagement is read. */
.pi-identity.is-reading strong, .pi-identity.is-reading small { visibility: hidden; }

/* The same for a Foundations section that is not set up yet. */
.pi-sections .is-unavailable > small { display: block; }

/* In Find, the reason sits at the far end of an unbuilt Workspace's row. */
.pi-find-results .is-unavailable > small { margin-left: auto; }

/* Framing's Views row sits on a House page: `.pi` would paint the paper ground
   behind it as a band, so the row's wrapper lets the page's own ground show. */
.pi.pi-viewnav { background: transparent; }

/* [[T-492]] The shell's unsaved-changes question sits between the topbar and
   `main`, at the topbar's side padding, and keeps its height while `main` scrolls. */
.pi-shell .pi-shell-ask { flex-shrink: 0; padding: 0 36px 22px; }
@media (max-width: 759px) { .pi-shell .pi-shell-ask { padding: 0 16px 18px; } }

/* T-658: the wordmark is now an anchor. Keep its type above the kit's link reset;
   its gold period, plain link treatment and visible focus ring are the kit's. */
.pi-rail .pi-wordmark, .pi-drawer .pi-wordmark { font-size: 24px; font-weight: 600; letter-spacing: -1px; }

/* T-665: a quiet text button beneath the person's role, in both rail and drawer. */
.pi-rail .pi-rail-sign-out, .pi-drawer .pi-rail-sign-out {
  display: block; padding: 0; margin-top: 4px; min-height: 24px;
  font-size: 11px; color: var(--nav-muted); text-align: left;
}
.pi-rail .pi-rail-sign-out:hover, .pi-drawer .pi-rail-sign-out:hover { color: var(--nav-text); text-decoration: underline; }

/* DW-8 (Engagement Overview v030, the Owner: "Foot", 14 Oct 2026): "Needs you" under Overview carries a small line glyph
   (an inbox tray) before its name, in the section's muted colour. Decorative: the name carries the meaning. */
.pi-sections a:has(.pi-sections-i) { display: flex; align-items: center; gap: 8px; }
.pi-sections-i { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* The way back to the Starting picture, under the topbar, on a page opened from it (`sp=n`). */
.pi-shell .pi-shell-spback { flex-shrink: 0; padding: 16px 40px 0; font-size: 14px; }
@media (max-width: 1100px) { .pi-shell .pi-shell-spback { padding: 14px 28px 0; } }
@media (max-width: 760px) { .pi-shell .pi-shell-spback { padding: 12px 16px 0; } }
.pi-shell-spback-link { display: inline-flex; align-items: center; gap: 6px; color: var(--pi-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.pi-shell-spback-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* [[T-634]] Every record page in one column, as Research v024 draws its own ("no side panel"; the Owner's pick,
   12 October 2026, mockups/record-pages v001). App-owned, beside the vendored kit, which is never edited: its
   side-panel grid (.pi-recpage-cols) is simply no longer drawn. Loaded once by the layout, after the kit. */

/* The record's version and last update, quiet in the line under the title (Research's .rs-meta). */
.pi .pi-recpage-fact{font-size:13.5px;color:var(--pi-muted)}

/* Tasks, then Record history, each its own section of the card (the Owner, 16 Oct 2026). The wrapper draws nothing. */
.pi .pi-recpage-th{display:contents}
.pi .pi-recpage-main .pi-recpage-th>.pi-section>h3{font-size:16px;margin:0 0 10px}

/* A new record's page: what comes after saving, one quiet line at the foot of the form card. */
.pi .pi-recpage-quiet{margin:0;padding:18px 28px 22px;border-top:1px solid var(--pi-line);font-size:13px;line-height:1.6;color:var(--pi-secondary)}
@media (max-width:759px){.pi .pi-recpage-quiet{padding:16px 18px 18px}}


/* A gap a file could fill, on the record it concerns (the Owner, 16 Oct 2026): one quiet line each, the link quiet too. */
.pi .pi-recpage-gaps{display:grid;gap:4px;margin:0 0 14px}
.pi .pi-recpage-gap{margin:0;font-size:14px;line-height:1.55;color:var(--pi-secondary)}
.pi .pi-recpage-gap a{color:var(--pi-ink);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}

/* UI review 2, finding 8: Back to Needs you is a link, drawn exactly as the Back button it stands in for. */
.pi a.pi-back{font:inherit;color:var(--pi-secondary);text-decoration:none}
.pi a.pi-back:hover{color:var(--pi-ink);text-decoration:underline}

/* ── Decision 7 (the Owner, 18 Oct 2026; Design Library record-editing v001): ONE FORM KIT, EDITED IN PLACE ──
   InPlace.tsx draws it. A group is a grey label column beside its values; a value is a quiet button with a soft
   wash on hover, and pressing it puts the field in the same place. Six text sizes: 12.5 label, 13.5 small,
   15.5 value, 18 group heading, 22 section, 34 title. Lists, dates and ratings are the product's own, never the
   browser's. On a phone the label sits above its value. */
.pi{--pi-ip-hover:#f4f2ed;--pi-ip-track:#efede7;--pi-ip-ring:0 0 0 3px rgba(17,17,17,.09)}
.pi .pi-ip{display:grid;font-size:15.5px;line-height:1.5}
.pi .pi-ip-row{display:grid;grid-template-columns:200px minmax(0,1fr);gap:4px 24px;align-items:start;padding:3px 0}
.pi .pi-ip-l{font-size:13.5px;line-height:1.45;color:var(--pi-muted);padding-top:8px}
.pi .pi-ip-v{position:relative;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.pi .pi-ip-read{display:block;padding:6px 0;min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}

/* A value you can change: no box at rest, the wash on hover, and the field appears where it was. */
.pi .pi-ip-btn{all:unset;box-sizing:border-box;cursor:text;display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:6px 10px;margin-left:-10px;
  border-radius:8px;max-width:calc(100% + 10px);color:var(--pi-ink);overflow-wrap:anywhere;transition:background-color var(--pi-duration) var(--pi-ease)}
.pi .pi-ip-btn--l{width:calc(100% + 10px)}
.pi .pi-ip-btn--pick{cursor:pointer}
.pi .pi-ip-btn:hover,.pi .pi-ip-btn[aria-expanded=true]{background:var(--pi-ip-hover)}
.pi .pi-ip-btn:focus-visible{outline:2px solid var(--pi-focus);outline-offset:0}
.pi .pi-ip-btn:disabled{cursor:default}
.pi .pi-ip-btn:disabled:hover{background:none}
.pi .pi-ip-btn[aria-invalid=true]{box-shadow:inset 0 0 0 1px var(--pi-red)}
.pi .pi-ip-chev{width:14px;height:14px;flex:none;color:var(--pi-muted);opacity:0;transition:opacity var(--pi-duration) var(--pi-ease)}
.pi .pi-ip-btn:hover .pi-ip-chev,.pi .pi-ip-btn:focus-visible .pi-ip-chev,.pi .pi-ip-btn[aria-expanded=true] .pi-ip-chev{opacity:1}
.pi .pi-ip-empty{color:var(--pi-muted)}
/* On the hover wash the offer reads a step darker, so it keeps its contrast. */
.pi .pi-ip-btn:hover .pi-ip-empty,.pi .pi-ip-btn[aria-expanded=true] .pi-ip-empty,.pi .pi-ip-btn:hover .pi-absent,
.pi .pi-ip-date .pi-date-btn:hover .pi-date-empty,.pi .pi-ip-date .pi-date-btn[aria-expanded=true] .pi-date-empty{color:var(--pi-secondary)}
.pi .pi-ip-multi{white-space:pre-wrap}

/* The open field: ink edge, a soft ring, as wide as the answer needs. */
.pi .pi-ip-field{box-sizing:border-box;min-height:38px;padding:7px 10px;margin-left:-11px;border:1px solid var(--pi-ink);border-radius:8px;background:var(--pi-white);
  color:var(--pi-ink);box-shadow:var(--pi-ip-ring);outline:none;font:400 15.5px/1.5 var(--pi-font);max-width:calc(100% + 11px)}
.pi .pi-ip-field[aria-invalid=true]{border-color:var(--pi-red);box-shadow:0 0 0 3px rgba(210,31,60,.12)}
.pi textarea.pi-ip-field{resize:none;display:block;overflow:hidden}
.pi .pi-ip-field--s{width:12rem}
.pi .pi-ip-field--m{width:24rem}
.pi .pi-ip-field--l{width:calc(100% + 11px)}
.pi .pi-ip-keys{flex-basis:100%;margin-top:2px;font-size:12.5px;color:var(--pi-muted)}
.pi .pi-ip-keys kbd{font:11.5px var(--pi-mono);border:1px solid var(--pi-field-rest);border-radius:4px;padding:0 4px;color:var(--pi-secondary)}
.pi .pi-ip-problem{flex-basis:100%;font-size:13.5px}

/* Saved, quiet and green, with Undo. */
.pi .pi-ip-saved{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--pi-positive);animation:pi-ip-in 220ms var(--pi-ease) both}
.pi .pi-ip-saved svg{width:14px;height:14px}
.pi .pi-ip-undo,.pi .pi-ip-clear{border:0;background:none;padding:0;font:inherit;font-size:13.5px;color:var(--pi-secondary);cursor:pointer;
  text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--pi-field-rest)}
.pi .pi-ip-undo:hover,.pi .pi-ip-clear:hover{color:var(--pi-ink);text-decoration-color:currentColor}
@keyframes pi-ip-in{from{opacity:0;transform:translateY(2px)}to{opacity:1;transform:none}}
@keyframes pi-ip-pop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* The product's own list. */
.pi .pi-ip-pick{position:relative;display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 14px;max-width:100%}
.pi .pi-ip-pop{position:absolute;z-index:30;top:calc(100% + 6px);left:-10px;min-width:260px;max-width:min(360px,calc(100vw - 32px));max-height:320px;overflow:auto;
  background:var(--pi-white);border:1px solid var(--pi-line);border-radius:12px;box-shadow:0 18px 40px rgba(17,17,17,.12),0 2px 6px rgba(17,17,17,.06);
  padding:6px;animation:pi-ip-pop 180ms var(--pi-ease) both}
.pi .pi-ip-find{display:flex;align-items:center;gap:8px;padding:6px 10px 8px;border-bottom:1px solid var(--pi-hairline);margin-bottom:4px;color:var(--pi-muted)}
.pi .pi-ip-find svg{width:15px;height:15px;flex:none}
.pi .pi-ip-find input{border:0;outline:none;flex:1;min-width:0;background:none;font:400 13.5px/1.5 var(--pi-font);color:var(--pi-ink)}
.pi .pi-ip-opt{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;text-align:left;padding:8px 10px;border-radius:8px;cursor:pointer;
  font:400 15.5px/1.4 var(--pi-font);color:var(--pi-ink)}
.pi .pi-ip-opt:hover,.pi .pi-ip-opt.is-act{background:var(--pi-ip-hover)}
.pi .pi-ip-opt:focus-visible{outline:2px solid var(--pi-focus);outline-offset:-2px}
.pi .pi-ip-opt svg{width:16px;height:16px;flex:none;margin-left:auto}
.pi .pi-ip-opt-w{min-width:0}
.pi .pi-ip-opt small{display:block;font-size:12.5px;color:var(--pi-muted)}
.pi .pi-ip-opt--none{color:var(--pi-secondary);font-size:13.5px;border-top:1px solid var(--pi-hairline);border-radius:0 0 8px 8px}
.pi .pi-ip-none{margin:0;padding:8px 10px;font-size:13.5px;color:var(--pi-muted)}

/* A rating: one quiet segmented control, never a row of pills. */
.pi .pi-ip-segwrap{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.pi .pi-ip-seg{display:inline-flex;padding:3px;border-radius:10px;background:var(--pi-ip-track);gap:2px;margin-left:-3px;animation:pi-ip-in 160ms var(--pi-ease) both}
.pi .pi-ip-seg button{border:0;background:none;border-radius:8px;padding:6px 14px;font:400 13.5px/1.4 var(--pi-font);color:var(--pi-secondary);cursor:pointer}
.pi .pi-ip-seg button:hover{color:var(--pi-ink)}
.pi .pi-ip-seg button[aria-checked=true]{background:var(--pi-white);color:var(--pi-ink);font-weight:500;box-shadow:0 1px 2px rgba(17,17,17,.12),0 0 0 1px rgba(17,17,17,.04)}
.pi .pi-ip-seg button:focus-visible{outline:2px solid var(--pi-focus);outline-offset:1px}

/* A yes or no. */
.pi .pi-ip-switch{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:10px;min-height:36px;color:var(--pi-ink)}
.pi .pi-ip-switch i{width:34px;height:20px;flex:none;border-radius:999px;background:var(--pi-field-rest);position:relative;transition:background-color var(--pi-duration) var(--pi-ease)}
.pi .pi-ip-switch i::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--pi-white);box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform var(--pi-duration) var(--pi-ease)}
.pi .pi-ip-switch[aria-checked=true] i{background:var(--pi-ink)}
.pi .pi-ip-switch[aria-checked=true] i::after{transform:translateX(14px)}
.pi .pi-ip-switch:focus-visible i{outline:2px solid var(--pi-focus);outline-offset:2px}
.pi .pi-ip-switch:disabled{cursor:default;opacity:.6}

/* A day: the product's calendar behind a quiet value, like every other value. */
.pi .pi-ip-date{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 14px;max-width:100%}
.pi .pi-ip-date .pi-date--text{width:auto}
.pi .pi-ip-date .pi-date--text .pi-date-btn{width:auto;min-height:36px;padding:6px 10px;margin-left:-10px;border:0;border-radius:8px;background:none;font:400 15.5px/1.5 var(--pi-font);
  transition:background-color var(--pi-duration) var(--pi-ease)}
.pi .pi-ip-date .pi-date--text .pi-date-btn:hover,.pi .pi-ip-date .pi-date--text .pi-date-btn[aria-expanded=true]{background:var(--pi-ip-hover)}
.pi .pi-ip-date .pi-date--text .pi-date-btn:focus-visible{outline:2px solid var(--pi-focus);outline-offset:0}
.pi .pi-ip-date .pi-date-i{width:15px;height:15px;opacity:0;transition:opacity var(--pi-duration) var(--pi-ease)}
.pi .pi-ip-date .pi-date-btn:hover .pi-date-i,.pi .pi-ip-date .pi-date-btn:focus-visible .pi-date-i,.pi .pi-ip-date .pi-date-btn[aria-expanded=true] .pi-date-i{opacity:1}
.pi .pi-ip-date .pi-cal{left:-10px}

/* More details: the fields a group has nothing for, folded under one quiet line. */
.pi .pi-ip-more{border:0;background:none;padding:6px 0;margin-top:6px;display:inline-flex;gap:8px;align-items:center;justify-self:start;font:400 13.5px/1.5 var(--pi-font);color:var(--pi-secondary);cursor:pointer}
.pi .pi-ip-more:hover{color:var(--pi-ink)}
.pi .pi-ip-more svg{width:14px;height:14px}
.pi .pi-ip-more span{color:var(--pi-muted)}

@media (max-width:759px){
  .pi .pi-ip-row{grid-template-columns:minmax(0,1fr);gap:0;padding:6px 0}
  .pi .pi-ip-l{padding-top:4px}
  .pi .pi-ip-field--s,.pi .pi-ip-field--m{width:calc(100% + 11px)}
  .pi .pi-ip-pop{min-width:0;width:calc(100% + 10px)}
  .pi .pi-ip-keys{display:none}
}
@media (prefers-reduced-motion:reduce){
  .pi .pi-ip-saved,.pi .pi-ip-pop,.pi .pi-ip-seg{animation:none}
  .pi .pi-ip-btn,.pi .pi-ip-chev,.pi .pi-ip-switch i,.pi .pi-ip-switch i::after{transition:none}
}
