/* Mission Control ("Programs Mission Control" until 2026-10-27) — "flight console" design system, v3 (2026-08-18).
   Aerospace-HUD reading of the Goodwall brand: DM Sans for headings/body,
   JetBrains Mono for the telemetry layer (labels, codes, readouts), the four
   Goodwall accents as a status-LED code (green nominal / orange caution /
   yellow advisory / blue info) + RAG-Red for off-nominal.
   FLAT per brand: no tonal gradients, no glass, no shadows, no canvas texture. Structure
   comes from hairline rules, a plain canvas colour, and corner register ticks.

   v3: DAY/NIGHT theming. ALL color lives in the token blocks below — dark
   (NIGHT) on :root, light (DAY) on :root[data-theme="light"].
   JS must never emit hex colors: components use var(--token) in style
   attributes and color-mix() for tints (docs/REDESIGN-V3.md §2).

   v5 "Workbench" (2026-11-22, docs/REDESIGN-V5.md): the frame (an icon rail, a pane of pages and view
   switches, the work area) replaces the stacked header; its styles are the last block of this file. The token
   values were re-stepped the same day (the table is in the spec §4): the greys moved to one cool family, the
   two faint text inks were darkened / lightened until EVERY text ink clears 4.5:1 on EVERY surface in both
   themes (scripts/test/canvas-assets.test.mjs measures all of it), and the frame's own tokens were added
   (--rail-*, --sel-*, the frame metrics). Day is the default theme since v5: theme-boot.js stamps
   data-theme="light" unless the reader chose Night, and :root (Night) is what an unstamped page shows.
   Pages not yet converted keep the flight-console components below, inside the frame. */

:root {
  /* NIGHT (default) — surfaces. The canvas is a plain very dark blue and the surfaces on it the
     same blue family at the old brightness, so every text ratio holds (2026-11-07; the brand dark
     #0B0A11 and warm greys before; --inv and --band still carry the brand dark). */
  --bg:#0B1221; --card:#131A28; --card2:#182030; --stroke:#343E52;
  --stroke-soft:color-mix(in srgb, var(--stroke) 45%, transparent);
  --track:#1E2636;                 /* progress/burn track */
  --tick:#414B60;                  /* register / crop marks */
  --edge:transparent;              /* card hairline: none on Night (cards read by tone) */
  --well:var(--bg);                /* a sunk cell (out-of-month day) inside a card */
  /* text tiers (v5: cool greys, on the blue surfaces; --t3 was #8A8790, 4.29:1 on --track, now ≥4.89:1 on
     every surface below, the selection wash included) */
  --t1:#FFFFFF; --t2:#B3B8C4; --t3:#9097A5;
  --inv:#0B0A11;                   /* text on a --t1-filled control (active tab) */
  /* v5 frame — the rail is the brand dark in BOTH themes, so its inks are fixed and live here only
     (--rail-ink 7.69:1 on --rail and 6.42:1 on --rail-on; the status dots are the Night accents, which
     the Day accents would be too dark for on this ground) */
  --rail:#0B0A11; --rail-hover:#1B1A25; --rail-on:#1F1E2A; --rail-line:#2B2937;
  --rail-ink:#A3A0AE; --rail-ink-on:#FFFFFF;
  --rail-ok:#15C970; --rail-warn:#FF8626; --rail-bad:#E5484D;
  /* selection: --sel is the MARK (the current row's bar, a focus ring), --sel-ink the TEXT ink (a link, the
     way into a page), --sel-wash the surface under a selected row or the current page in the pane. Text on
     the wash: t1 14.35 · t2 7.22 · t3 4.89 · sel-ink 4.83 */
  --sel:#5796F4; --sel-ink:#5796F4; --sel-wash:#1B2A45;
  /* frame metrics (docs/REDESIGN-V5.md §2) */
  --rail-w:68px; --pane-w:200px; --insp-w:340px; --work-pad:clamp(14px,2vw,24px);
  --r-sheet:10px; --r-ctl:8px;
  /* status-LED code (semantic — never used as arbitrary chart hues) */
  --green:#15C970; --orange:#FF8626; --yellow:#F4DD2A; --blue:#5796F4;
  --red:#E5484D;
  /* TEXT-weight variants of the alarm inks. --red/--yellow above are MARK inks:
     validated at the 3:1 mark threshold, and --red is where they stop being
     legible as TYPE — #E5484D measures 4.46:1 on --card, 4.16:1 on --card2 and
     3.91:1 on --track, all under the 4.5:1 that <18.66px text needs. Red is the
     alarm ink, so that made the least legible text on the console the text that
     signals trouble. Every rule that COLOURS TEXT red or yellow (and every JS
     chip that does — see components.js TEXT_INK) points here instead; nothing
     that draws a MARK does. Measured ≥4.5:1 on --bg/--card/--card2/--track AND
     on each one under a 14% tint() chip wash: red-ink min 4.98, yellow 7.75. */
  --red-ink:#FF8085;
  --yellow-ink:var(--yellow);      /* night yellow already clears 7.75:1 as text */
  /* the insight cards' level words (2026-11-26): "Fine" in green, "To watch" in orange. Night: the mark inks pass as
     text (green ≥6.57:1 and orange ≥5.94:1 on every surface, ≥5.10 / ≥4.81 under their own 14% wash). */
  --green-ink:var(--green);
  --orange-ink:var(--orange);
  /* UNSIGNED — a pre-signed (pipeline) programme (the pipeline forecast, rulings of 2026-10-22; the 19 Oct meeting asked for "a
     distinct color"). Orchid, ΔE ≥26 from --cat3 (violet) and ≥37 from --cat4 (pink), so a status
     never reads as a series. ONE token for mark and text: measured ≥4.68:1 on --bg/--card/--card2/
     --track AND on its own 14% chip wash (min 4.68, on --track). */
  --unsigned:#E07BE0;
  /* COMMITTED (2026-11-18, Benjamin: "show the committed programs in orange … with the lines through, like the
     unsigned"): a pre-signed deal whose Status is Committed. The brand orange, drawn hatched and always beside the
     word "Committed", so it never reads as an Amber RAG (a pre-signed deal carries no RAG). Night: ONE value for
     mark and text, measured ≥6.27:1 on --bg/--card/--card2/--track and ≥5.03:1 on its own 14% chip wash. */
  --committed:#FF8626;
  --committed-ink:var(--committed);
  --on-solid:#06210F;              /* text on a solid green button */
  /* the brand band: the Goodwall dark (#0B0A11) in BOTH themes — the Board Snapshot slides' footer band and
     cover (board-present.js), as the board deck's own; --band-ink is the white type on it (19.6:1) */
  --band:#0B0A11; --band-ink:#FFFFFF; --band-accent:#15C970;   /* accent = the night green, 9.0:1 on the band */
  /* categorical chart series (validated: dataviz six checks, dark surface) */
  --cat1:#3987E5; --cat2:#0FA6A0; --cat3:#9085E9; --cat4:#D55181;
  --cat5:#B98A2E; --cat-other:#8A8790;
  /* chart plumbing (v4 port) — charts.js emits these as var() strings only.
     grid/lane/hover are decoration; --chart-on-ink is TEXT DRAWN ON A MARK and
     must clear 4.5:1 against every RAG ink at full opacity (verified: night
     #0B0A11 on green 9.0 / orange 8.2 / red 5.0). */
  --chart-grid:rgba(255,255,255,.075);
  --chart-grid-soft:rgba(255,255,255,.045);
  --chart-lane:rgba(255,255,255,.030);
  --chart-hover:rgba(255,255,255,.075);
  --chart-on-ink:#0B0A11;
  --chart-tip-bg:#1B1A24;
  --chart-tip-shadow:rgba(0,0,0,.5);
  /* utilisation heat ramp — the ramp IS the banding of constants.js
     utilisationColor(): u1 blue UNDER-utilised (<50%) · u2 green healthy
     (50–85%) · u3 yellow = spare advisory step, no utilisation band · u4 orange
     hot (85–100%) · u5 red over (>100%). u1 must stay BLUE: with a green lowest
     step, spare capacity had no colour anywhere on the ramp, which is the whole
     point of the honesty rework. Each step carries its own main ink (≥6:1 on its
     wash) AND its own -sub ink for the second line (≥4.7:1 — chosen, not faded:
     an opacity on a 9px disclosure line took it under 4:1 on paper). */
  --heat1-bg:color-mix(in srgb, var(--blue) 13%, var(--card2)); --heat1-fg:#A9CDF7; --heat1-sub:#819CBF;
  --heat2-bg:color-mix(in srgb, var(--green) 26%, var(--card2)); --heat2-fg:#B9F2D6; --heat2-sub:#89BEA6;
  --heat3-bg:color-mix(in srgb, var(--yellow) 24%, var(--card2)); --heat3-fg:#F6EBA0; --heat3-sub:#CEC482;
  --heat4-bg:color-mix(in srgb, var(--orange) 28%, var(--card2)); --heat4-fg:#FFC79B; --heat4-sub:#DFAB84;
  --heat5-bg:color-mix(in srgb, var(--red) 34%, var(--card2)); --heat5-fg:#FFC2C4; --heat5-sub:#DA9EA1;
  /* shape + type */
  --radius:16px; --radius-lg:24px;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --sans:"DM Sans",system-ui,-apple-system,sans-serif;
}

/* DAY mode, the default since v5 — a plain, slightly off-white canvas (2026-11-07), ink text, the same
   semantic roles re-stepped for contrast (the status MARK inks ≥4.3:1 on every surface; the categorical
   set validated for the light surface). White cards sit close to the canvas, so each keeps a 1px hairline
   (the console stays flat, no shadow).
   v5 (2026-11-22): the warm greys (#F7F7F4 / #F5F4EF / #DBD8D0 / #E8E6DF, text #17161C / #4A4752 / #67636E)
   moved to the mockup's cool family; the canvas stays a slight off-white. --t3 is darker than the mockup's
   (#69707D, 4.41:1 on --track): #5F6673 clears 4.75:1 on every surface and 5.04:1 on the selection wash. */
:root[data-theme="light"] {
  --bg:#F1F3F6; --card:#FFFFFF; --card2:#F5F6F8; --stroke:#DDE0E6;
  --track:#E6E9EE;
  --tick:#BFC4CE;
  --edge:var(--stroke);
  --well:var(--card2);             /* a sunk cell (out-of-month day) on a white card */
  --t1:#14161B; --t2:#474C57; --t3:#5F6673;
  --inv:#FFFFFF;
  /* selection (see Night): the mark is the Day blue; as TEXT it is 4.50:1 on --track, so links use the
     darker --sel-ink (≥4.99:1 on every surface, 5.29:1 on the wash). Text on the wash: t1 15.77 · t2 7.50 */
  --sel:#2A66C8; --sel-ink:#255FBE; --sel-wash:#E8F0FC;
  --green:#0B7A44; --orange:#B34E00; --yellow:#857000; --blue:#2A66C8;
  --red:#C22E38;
  /* DAY text-weight inks, chosen the same way (measured, not eyeballed): the mark
     values pass on card/paper but --yellow #857000 is 4.27:1 on --bg, 4.42:1 on
     --card2 and 3.90:1 on --track, and both inks drop below 4.5 under a 14% tint
     chip wash. These clear 4.5:1 on all four surfaces AND under that wash
     (red-ink min 4.84, yellow-ink min 4.78). */
  --red-ink:#A0242C;
  --yellow-ink:#665600;
  --unsigned:#8B1F9E;              /* DAY: ≥4.82:1 on all four surfaces and under the 14% wash */
  /* DAY: the mark is the Day orange (≥4.20:1 on every surface, a mark needs 3:1); as TEXT it drops to 3.52:1
     under the 14% wash, so type uses the darker text ink below (≥5.62:1 on all four surfaces, ≥4.59:1 under the wash). */
  --committed:#B34E00;
  --committed-ink:#944000;
  /* DAY: the Day green is 4.45:1 on --track as text, so type uses a darker green (≥5.43:1 on every surface, ≥4.53:1
     under its 14% wash); orange type is the Committed text ink's value (≥5.77:1, ≥4.80:1 under the wash). */
  --green-ink:#086B3B;
  --orange-ink:#944000;
  --on-solid:#FFFFFF;
  --cat1:#2A78D6; --cat2:#0A9A92; --cat3:#7A63D9; --cat4:#C23E82;
  --cat5:#A87415; --cat-other:#6E6A75;
  /* chart plumbing — DAY values are CHOSEN, not inverted. --chart-on-ink flips
     to white because the day RAG inks are dark (white on green 5.4 / orange 5.2
     / red 5.6); the grid/lane washes are ink-on-paper, not white-on-black. */
  --chart-grid:rgba(20,22,27,.10);
  --chart-grid-soft:rgba(20,22,27,.055);
  --chart-lane:rgba(20,22,27,.040);
  --chart-hover:rgba(20,22,27,.055);
  --chart-on-ink:#FFFFFF;
  --chart-tip-bg:#FFFFFF;
  --chart-tip-shadow:rgba(20,22,27,.18);
  /* heat ramp: pale washes with their own dark ink (5.2–6.3:1 on the wash) and a
     darker-not-fainter -sub ink for the 9px second line (4.7–4.8:1 measured).
     u1 is the BLUE under-utilised step, same banding as NIGHT. */
  --heat1-bg:color-mix(in srgb, var(--blue) 12%, var(--card2)); --heat1-fg:#204F96; --heat1-sub:#3962A1;
  --heat2-bg:color-mix(in srgb, var(--green) 24%, var(--card2)); --heat2-fg:#08512D; --heat2-sub:#206241;
  --heat3-bg:color-mix(in srgb, var(--yellow) 20%, var(--card2)); --heat3-fg:#5C4E00; --heat3-sub:#695C13;
  --heat4-bg:color-mix(in srgb, var(--orange) 22%, var(--card2)); --heat4-fg:#8A3B00; --heat4-sub:#8F4209;
  --heat5-bg:color-mix(in srgb, var(--red) 22%, var(--card2)); --heat5-fg:#96222A; --heat5-sub:#9C2E35;
}

*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--t1);font-family:var(--sans);-webkit-font-smoothing:antialiased}
/* the canvas — a plain colour, no texture (2026-11-07: the brand rings of 2026-11-06 were hard on the
   eyes, and a blueprint grid tried the same day was dropped for a plain ground). */
body{
  padding:24px clamp(14px,3.5vw,44px) 72px;
  background-color:var(--bg);
}
/* the white cards on Day's near-white canvas: the hairline sits inside the box
   (outline, offset −1px), so no layout moves and Night (transparent) is unchanged */
.sgroup,.kpi,.panel,.tablewrap,.phead,.bd-readouts>div{outline:1px solid var(--edge);outline-offset:-1px}
.wrap{max-width:1360px;margin:0 auto}
a{color:inherit}
svg text{font-family:var(--mono)}

/* type helpers */
.overline{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--t3)}
.mono{font-family:var(--mono)}
.muted{color:var(--t2)} .t3{color:var(--t3)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.right{text-align:right}
.skip-link{position:absolute;left:-9999px;top:8px;z-index:100;background:var(--t1);color:var(--inv);font-family:var(--mono);font-size:12px;font-weight:600;padding:9px 16px;border-radius:999px}
.skip-link:focus{left:16px}

/* ===== command bar (the control-room header) ===== */
.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px 28px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:14px;min-width:0;flex-wrap:wrap;row-gap:4px}
.brand .logo{height:30px;width:auto;flex:none}
a.brand{color:inherit;text-decoration:none}   /* 404.html: the brand is its link home */
/* both wordmarks render; the theme picks one */
.logo-day{display:none}
:root[data-theme="light"] .logo-day{display:block}
:root[data-theme="light"] .logo-night{display:none}
/* NO white-space:nowrap: at 320px the old "Programs Mission Control" was 193px beside
   the logo and pushed every page 38px sideways (57px on capacity). The clamp
   floor is 20px so the type never shrank out of the overflow either. It wraps
   only when the brand row runs out of width. */
.wordmark{font-size:clamp(20px,2.4vw,28px);font-weight:600;letter-spacing:-.01em;color:var(--t1);line-height:1.1;min-width:0}
h1{font-weight:600;letter-spacing:-.02em;margin:0;line-height:1.02}
.pagehead{margin-top:20px}
.mission-control-title{font-size:clamp(24px,3vw,38px)}
.mission-control-title .title-ctx{color:var(--t1)}
.sub{color:var(--t2);font-size:14px;max-width:680px;line-height:1.5;margin:8px 0 0}

/* telemetry strip — live readouts */
.telemetry{display:flex;gap:0;flex-wrap:wrap;align-items:stretch;justify-content:flex-end;
  border:1px solid var(--stroke);border-radius:12px;overflow:hidden;background:color-mix(in srgb, var(--card) 55%, transparent)}
.tele{display:flex;flex-direction:column;gap:3px;padding:8px 14px;border-left:1px solid var(--stroke);min-width:0}
.tele:first-child{border-left:0}
.tele .tlabel{font-family:var(--mono);font-size:8.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--t3);white-space:nowrap}
.tele .tval{font-family:var(--mono);font-size:13px;color:var(--t1);font-variant-numeric:tabular-nums;display:flex;align-items:center;gap:6px;white-space:nowrap;line-height:1}
.tele.pc-cell{justify-content:center}
.pc{font-family:var(--mono);font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--t3);white-space:nowrap}

/* --- pipeline health --- */
/* The pipeline LED beside "Last synced" (data.js mountHealthLed ← public/data/_health.json).
   Amber = the orange status ink (the repo's Amber); red = the RAG-red mark (3:1 as a mark),
   which also carries .led-r (blinks). The ::after pad widens the 8px dot's hover/click
   target without moving the layout. */
.health-led{position:relative}
.health-led::after{content:"";position:absolute;inset:-6px}
.health-led.health-green{background:var(--green)}
.health-led.health-amber{background:var(--orange)}
.health-led.health-red{background:var(--red)}
a.health-led:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

/* status LEDs (flat dots, the colour code) */
.led{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none}
.led-r{animation:led-pulse 1.7s ease-in-out infinite}  /* only off-nominal blinks */
@keyframes led-pulse{0%,100%{opacity:1}50%{opacity:.3}}

.cmd-rule{height:1px;background:var(--stroke);margin:18px 0 0;position:relative}
.cmd-rule::before,.cmd-rule::after{content:"";position:absolute;top:-3px;width:1px;height:7px;background:var(--tick)}
.cmd-rule::before{left:0}.cmd-rule::after{right:0}

/* vertical rhythm — every section owns the same gap to the next, whether or not
   it opens with a .sec-head. Without this, a section whose first child is a
   .panel or .kpi-grid (the capacity controls, the risks readout tiles) sat
   flush against its neighbour at 0px. Adjacent vertical margins collapse with
   .sec-head's 34px top margin, so head-led sections keep their rhythm (36px). */
main section{margin:0 0 36px}
main section:last-child{margin-bottom:0}

/* section heads — // BREADCRUMB + rule with end tick */
.sec-head{display:flex;align-items:baseline;gap:14px;margin:34px 0 14px}
/* NO white-space:nowrap here. The longest heading in the app ("Capacity —
   department × person × period", 363px) measured 376.9px against a 375px
   viewport and scrolled the whole document sideways — 17px at 360px. It is a
   flex item beside .rule{flex:1;flex-basis:0}, so it still takes its
   max-content width whenever there is room and only wraps when there is not. */
.sec-head h2{font-size:12px;font-family:var(--mono);font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--t2);margin:0;min-width:0}
.sec-head h2::before{content:"// ";color:var(--green)}
.sec-head .rule{flex:1;height:1px;background:var(--stroke);position:relative;align-self:center}
.sec-head .rule::after{content:"";position:absolute;right:0;top:-3px;width:1px;height:7px;background:var(--tick)}
/* A head carrying toggles (scope, Pipeline) and a data-driven count must never set the page's
   minimum width (CLAUDE.md desktop rule: a half-screen window is ~720px). It wraps instead: the
   count drops to its own line, right-aligned, and wraps as prose there. At a width where it all
   fits nothing moves: a flex line breaks on each item's max-content size (and the rule's basis
   is 0), so only an item that does not fit moves down. */
.sec-head{flex-wrap:wrap;row-gap:6px}
.sec-head .count{font-family:var(--mono);font-size:11px;color:var(--t3);margin-left:auto;max-width:100%;text-align:right}

/* Belt and braces against the [hidden] trap: if a future author gives #roster-table a display rule, an author
   rule would beat the UA [hidden] and render the hidden table anyway. */
#roster-table[hidden]{display:none}

/* controls / filters */
.controls{display:flex;gap:12px 18px;align-items:flex-end;flex-wrap:wrap;margin-bottom:18px}
.ctl{display:flex;flex-direction:column;gap:5px}
.ctl label{font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--t3)}
/* Control-bar diagnostic chips (STALE FEED · PLAN OFF AXIS · …) carry data-driven
   name lists, and the base .chip nowrap makes the widest of them the PAGE's minimum
   width — at phone widths the whole document scrolls sideways (375px was 64px over).
   Let the text wrap inside the pill instead: every name stays readable, and at
   desktop widths nothing changes (the pill still sizes to its content). */
.controls .chip{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
select,input[type=search]{font-family:var(--sans);color:var(--t1);border:1px solid var(--stroke);border-radius:10px;padding:9px 12px;background:var(--card);font-size:14px}
/* every dropdown draws its own chevron, 14px in from the right edge (2026-11-13: the native arrow sat tight against the
   border). Two gradient triangles in a token ink, so it follows the theme; longhands only, so a rule that sets the
   background colour keeps it. */
select{appearance:none;-webkit-appearance:none;padding-right:38px;
  background-image:linear-gradient(45deg,transparent 50%,var(--t2) 50%),linear-gradient(135deg,var(--t2) 50%,transparent 50%);
  background-position:calc(100% - 19px) 52%,calc(100% - 14px) 52%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
select:hover{border-color:var(--t3)}
input[type=search]{border-radius:999px;padding:9px 14px;min-width:220px}
select:focus-visible,input:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.btn{font-family:var(--mono);font-size:12px;letter-spacing:.04em;border-radius:999px;border:1px solid var(--stroke);background:transparent;color:var(--t1);padding:9px 18px;cursor:pointer;transition:.15s;text-decoration:none;display:inline-flex;align-items:center;gap:7px}
.btn:hover{border-color:var(--t2)} .btn:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.btn.btn-source{background:var(--green);color:var(--on-solid);border-color:var(--green);font-weight:600;font-size:13px;padding:11px 20px}
.btn.btn-source:hover{filter:brightness(1.06);border-color:var(--green)}
.spacer{flex:1}

/* segmented toggle — grouped mode switches (measure/view/scope) */
.seg{display:inline-flex;border:1px solid var(--stroke);border-radius:999px;overflow:hidden}
.seg button{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;background:transparent;color:var(--t2);border:0;border-left:1px solid var(--stroke);padding:8px 14px;cursor:pointer;transition:.12s}
.seg button:first-child{border-left:0}
.seg button:hover{color:var(--t1)}
.seg button[aria-pressed=true]{background:var(--t1);color:var(--inv);font-weight:600}
.seg button:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}

/* ===== mission summary strip (portfolio headline) ===== */
.sgroup{background:var(--card);border-radius:var(--radius-lg);padding:16px 18px 14px;position:relative;overflow:hidden}
.sgroup::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:var(--accent,var(--stroke))}
.sgroup::after{content:"";position:absolute;right:9px;bottom:9px;width:9px;height:9px;border:1px solid var(--tick);border-left:0;border-top:0}
.sgroup .sg-name{font-family:var(--mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--t3);display:flex;align-items:center;gap:7px;margin-bottom:12px}
.sgroup .sg-row{display:flex;gap:8px 26px;flex-wrap:wrap}
.sgroup .sg-item{display:flex;flex-direction:column;gap:3px;min-width:0}
.sgroup .sg-label{font-family:var(--mono);font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--t3);white-space:nowrap}
.sgroup .sg-val{font-size:24px;font-weight:600;letter-spacing:-.02em;line-height:1.05;font-variant-numeric:tabular-nums;display:flex;align-items:center;gap:7px;white-space:nowrap}
.sgroup .sg-sub{font-family:var(--mono);font-size:10.5px;color:var(--t2);font-variant-numeric:tabular-nums;white-space:nowrap}

/* ===== KPI instruments ===== */
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(196px,1fr));gap:13px}
.kpi{background:var(--card);border-radius:var(--radius-lg);padding:18px 18px 16px;display:flex;flex-direction:column;gap:7px;min-height:122px;position:relative;overflow:hidden}
.kpi::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:var(--accent,var(--stroke))}
.kpi::after{content:"";position:absolute;right:9px;bottom:9px;width:9px;height:9px;border:1px solid var(--tick);border-left:0;border-top:0}
.kpi .row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.kpi .name{font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--t2);display:flex;align-items:center;gap:7px}
.kpi .big{font-size:33px;font-weight:600;letter-spacing:-.02em;line-height:1;font-variant-numeric:tabular-nums}
.kpi .unit{font-family:var(--mono);font-size:11px;color:var(--t3)}
.kpi-sub{font-size:12px;color:var(--t2);display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:2px}
.kpi-sub .seg-note{display:inline-flex;align-items:center;gap:5px;font-family:var(--mono)}

/* panels + columns */
.cols{display:grid;grid-template-columns:1.1fr 1fr;gap:14px}
.cols>*{min-width:0}
@media(max-width:900px){.cols{grid-template-columns:1fr}}
.panel{background:var(--card);border-radius:var(--radius-lg);padding:22px 20px;position:relative}
.panel::before,.panel::after{content:"";position:absolute;width:11px;height:11px;border:1px solid var(--tick);pointer-events:none}
.panel::before{top:10px;left:10px;border-right:0;border-bottom:0}
.panel::after{bottom:10px;right:10px;border-left:0;border-top:0}
.panel h3{font-size:12px;font-family:var(--mono);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--t2);margin:0 0 14px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.panel h3::before{content:"// ";color:var(--t3)}
.kv{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:9px 0;border-bottom:1px solid var(--stroke-soft);font-size:13.5px}
.kv:last-child{border-bottom:none}
.kv .val{font-family:var(--mono);font-variant-numeric:tabular-nums}
.kv.total{font-weight:600}
.kv.total .val{font-size:15px}
.kv .muted{color:var(--t2)}
.burn{height:8px;border-radius:999px;background:var(--track);overflow:hidden;margin:14px 0 6px}
.burn>span{display:block;height:100%;border-radius:999px;background:var(--orange)}

/* chips, tags, dots */
.chip{font-family:var(--mono);font-size:10.5px;font-weight:600;padding:4px 9px;border-radius:999px;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
/* button.chip (the capacity compare chips) had no focus rule and fell back to
   the UA ring, which is invisible on the night ground. */
.chip:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
/* --t2, not --t3: this chip is the honest-null indicator ("no RAG" on an
   uncosted programme) and --t3 on --track measures 4.34:1 in night, i.e. the
   least legible element on the page was the one stating a data gap. --t2 is
   6.31:1 night / 7.27:1 day on --track and still recedes from --t1. */
.chip-muted{color:var(--t2);background:var(--track)}
.rag-manual{font-family:var(--mono);font-size:8px;font-weight:700;letter-spacing:.04em;opacity:.85;margin-left:4px;padding:1px 3px;border:1px solid currentColor;border-radius:4px;line-height:1;cursor:help}
.rag-flag{margin-left:3px;font-size:10px;cursor:help}
.tag{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;border:1px solid var(--stroke);border-radius:999px;padding:5px 11px;color:var(--t2);white-space:nowrap}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex:none}

/* insights / alerts — log entries */
.insights{display:flex;flex-direction:column;gap:8px}
.ins{display:flex;gap:11px;align-items:flex-start;background:var(--card2);border-radius:12px;padding:12px 14px;font-size:13.5px;line-height:1.45;border-left:2px solid var(--stroke)}
.ins .ic{width:8px;height:8px;border-radius:50%;margin-top:5px;flex:none}
.ins b{font-weight:600}
.ins a{color:var(--blue);text-decoration:none}.ins a:hover{text-decoration:underline}

/* ===== data console (tables) ===== */
.tablewrap{background:var(--card);border-radius:var(--radius-lg);padding:6px 6px;overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:13px}
th{font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--t3);text-align:right;padding:13px 11px;font-weight:600;border-bottom:1px solid var(--stroke);white-space:nowrap;user-select:none}
th.sortable{cursor:pointer}
th.l,td.l{text-align:left} th.sortable:hover{color:var(--t1)}
th[aria-sort]{color:var(--t1)}
td{padding:9px 11px;text-align:right;border-bottom:1px solid var(--stroke-soft);white-space:nowrap;font-family:var(--mono);vertical-align:middle;font-variant-numeric:tabular-nums}
td.l{font-family:var(--sans);white-space:normal;font-variant-numeric:normal}
tr:last-child td{border-bottom:none}
tbody tr.clickable{cursor:pointer;transition:background .12s} tbody tr.clickable:hover{background:var(--card2);box-shadow:inset 2px 0 0 var(--green)}
tbody tr.clickable:focus-within{background:var(--card2)}
.prog-name{font-weight:600} .prog-partner{color:var(--t3);font-size:11px;font-family:var(--mono)}
.prog-link{text-decoration:none;color:inherit;border-radius:6px}
.prog-link:hover .prog-name{text-decoration:underline}
.prog-link:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.wb-link{color:var(--green);text-decoration:none;font-family:var(--mono);font-size:12px}
.wb-link:hover{text-decoration:underline}
.wb-link:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
th.sortable:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.num-neg{color:var(--red-ink)}

/* flight strips — the portfolio board rows (still a real <table>) */
.board tbody tr{position:relative}
.board tbody td{padding-top:12px;padding-bottom:12px}
.board tbody tr td:first-child{box-shadow:inset 3px 0 0 var(--rag,var(--stroke))}
.board tbody tr.clickable:hover{box-shadow:none;background:var(--card2)}
.board tbody tr.clickable:hover td:first-child{box-shadow:inset 3px 0 0 var(--rag,var(--stroke))}
.board .code{font-family:var(--mono);font-size:10.5px;letter-spacing:.05em;color:var(--t3)}

/* program-detail header — the mission dossier */
.phead{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;align-items:flex-start;background:var(--card);border-radius:var(--radius-lg);padding:24px 24px;position:relative}
.phead::before,.phead::after{content:"";position:absolute;width:12px;height:12px;border:1px solid var(--tick);pointer-events:none}
.phead::before{top:11px;left:11px;border-right:0;border-bottom:0}
.phead::after{bottom:11px;right:11px;border-left:0;border-top:0}
.phead .ptitle{font-size:clamp(22px,2.6vw,32px);font-weight:600;letter-spacing:-.02em;line-height:1.05;margin:6px 0}
.phead .tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.phead-right{text-align:right;display:flex;flex-direction:column;gap:6px;align-items:flex-end}
.bigmargin{font-size:46px;font-weight:600;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}

/* sticky section nav (program dossier) */
.section-nav{position:sticky;top:0;z-index:40;display:flex;gap:6px;flex-wrap:wrap;align-items:center;
  background:color-mix(in srgb, var(--bg) 88%, transparent);backdrop-filter:none;
  border-bottom:1px solid var(--stroke);padding:10px 2px;margin:18px 0 10px}
.section-nav a{font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--t3);text-decoration:none;border:1px solid transparent;border-radius:999px;padding:6px 12px;transition:.12s}
.section-nav a::before{content:"// ";color:var(--stroke)}
.section-nav a:hover{color:var(--t1)}
.section-nav a.active{color:var(--t1);border-color:var(--stroke)}
.section-nav a.active::before{color:var(--green)}
.section-nav a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.section-nav .sn-spacer{flex:1}
.section-nav .sn-switch{display:flex;gap:6px;align-items:center}
.section-nav .sn-switch a{border:1px solid var(--stroke);color:var(--t2)}
.section-nav .sn-switch a::before{content:""}
.section-anchor{scroll-margin-top:64px}

/* RACI grid */
.raci-wrap{padding:2px}
.raci-table th.raci-rolehead{writing-mode:vertical-rl;transform:rotate(180deg);text-align:left;height:120px;padding:8px 4px;color:var(--t2);vertical-align:bottom}
.raci-table td.raci-activity{font-weight:500;font-size:12.5px;min-width:180px}
.raci-table th,.raci-table td{text-align:center}
.raci-table th.l,.raci-table td.l{text-align:left}
.raci-cell{padding:6px 4px}
.raci-badge{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;font-family:var(--mono);font-weight:600;font-size:12px}

/* legend */
.legend{display:flex;gap:16px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:var(--t2);font-family:var(--mono)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:9px;height:9px;border-radius:2px;display:inline-block}

/* power/interest grid */
.pi-grid-wrap{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr auto;gap:6px;align-items:center}
.pi-axis-y{writing-mode:vertical-rl;transform:rotate(180deg);font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--t3);text-align:center}
.pi-axis-x{grid-column:2;font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--t3);text-align:center}
.pi-grid{grid-column:2;display:grid;grid-template-columns:auto 1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr auto;gap:6px}
.pi-ylabel{font-family:var(--mono);font-size:10px;color:var(--t3);display:flex;align-items:center;justify-content:flex-end;padding-right:6px}
.pi-xlabel{font-family:var(--mono);font-size:10px;color:var(--t3);text-align:center;padding-top:2px}
.pi-cell{background:var(--card2);border:1px solid var(--stroke);border-radius:10px;min-height:62px;padding:7px;display:flex;flex-direction:column;gap:5px;border-left:3px solid var(--tint,var(--stroke))}
.pi-item{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:var(--t1);line-height:1.2}
.pi-empty{flex:1}

/* likelihood × impact heatmap — v3: cells are filter buttons */
.hm-wrap{display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr auto auto;gap:6px;align-items:center}
.hm-axis-y{writing-mode:vertical-rl;transform:rotate(180deg);font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--t3);text-align:center}
.hm-axis-x{grid-column:2;font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--t3);text-align:center}
.hm-grid{grid-column:2;display:grid;grid-template-columns:auto repeat(5,1fr);grid-template-rows:repeat(5,1fr) auto;gap:5px}
.hm-ylabel{font-family:var(--mono);font-size:11px;color:var(--t3);display:flex;align-items:center;justify-content:center}
.hm-xlabel{font-family:var(--mono);font-size:11px;color:var(--t3);text-align:center}
.hm-cell{position:relative;background:color-mix(in srgb,var(--c) 14%,var(--card2));border:1px solid color-mix(in srgb,var(--c) 35%,transparent);border-radius:10px;min-height:52px;display:flex;align-items:center;justify-content:center}
button.hm-cell{cursor:pointer;font:inherit;color:inherit;transition:.12s}
button.hm-cell:hover{border-color:var(--c)}
button.hm-cell[aria-pressed=true]{border-color:var(--c);outline:1px solid var(--c)}
button.hm-cell:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.hm-score{font-family:var(--mono);font-size:11px;color:var(--t3)}
.hm-count{position:absolute;top:5px;right:7px;font-family:var(--mono);font-weight:600;font-size:14px;color:var(--c)}
.hm-legend{grid-column:2;justify-content:flex-start}

/* comms timeline — month-grouped log feed */
.timeline{display:flex;flex-direction:column;gap:10px}
.tl-month{font-family:var(--mono);font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--t2);margin:16px 0 2px;display:flex;align-items:center;gap:12px}
.tl-month::after{content:"";flex:1;height:1px;background:var(--stroke)}
.tl-item{display:grid;grid-template-columns:86px 1fr;gap:14px;align-items:start}
.tl-date{font-family:var(--mono);font-size:11px;color:var(--t3);padding-top:14px;text-align:right;white-space:nowrap}
.tl-card{background:var(--card2);border-radius:12px;padding:13px 15px;font-size:13.5px;line-height:1.45;border-left:2px solid var(--sent,var(--stroke))}
.tl-head{display:flex;gap:8px 12px;flex-wrap:wrap;align-items:center;margin-bottom:5px}
.tl-meta{font-family:var(--mono);font-size:11px;color:var(--t3)}
.tl-summary.clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tl-expand{background:none;border:0;color:var(--blue);font-family:var(--mono);font-size:10.5px;cursor:pointer;padding:2px 0;letter-spacing:.04em}
.tl-expand:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.tl-action{margin-top:7px;font-size:12.5px;color:var(--t2);border-top:1px dashed var(--stroke);padding-top:7px}
.overdue{color:var(--red-ink)}

/* states */
.state{border:1px dashed var(--stroke);border-radius:var(--radius);padding:22px;color:var(--t2);font-size:13.5px;text-align:center}
.state-empty{background:color-mix(in srgb, var(--t2) 3%, transparent)}
.state-error{border-style:solid;border-color:var(--red);background:color-mix(in srgb, var(--red) 6%, transparent);text-align:left}
.state-error b{color:var(--t1)}
.state-detail{margin-top:6px;color:var(--red-ink);font-size:12px;word-break:break-word}
.state-loading{display:flex;align-items:center;justify-content:center;gap:10px}
.spinner{width:14px;height:14px;border-radius:50%;border:2px solid var(--stroke);border-top-color:var(--blue);display:inline-block;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* a column whose definition is a tooltip says so with the cursor */
.cost-table th[title],.legend span[title]{cursor:help}

/* cost breakdown table */
.cost-table .cost-group td{font-family:var(--mono);font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:var(--t2);padding-top:15px;border-bottom:1px solid var(--stroke)}
.cost-table .cost-subtotal td{font-weight:600;border-top:1px solid color-mix(in srgb, var(--stroke) 60%, transparent)}
.cost-table .cost-subtotal td.l{color:var(--t2);font-weight:500}
.cost-table .cost-total td{font-weight:700;border-top:1px solid var(--stroke);font-size:13.5px}
/* portfolio P&L: 20 columns on one row (the direct costs table below it: 14) — tighter
   horizontal padding keeps each on screen at a laptop width; both still scroll inside .tablewrap */
.pnl-table th,.pnl-table td{padding-left:7px;padding-right:7px}
/* a GROUP row over the header (Partnerships Data match: "Notion" over its five columns, page-partnerships-match.js).
   A labelled group carries its own hairline, inset so adjacent groups read apart; an unlabelled cell carries none. */
.pnl-table thead tr.grp th{text-align:center;padding:10px 7px 3px;border-bottom:0;color:var(--t2);letter-spacing:.1em;position:relative}
.pnl-table thead tr.grp th.grp::after{content:"";position:absolute;left:6px;right:6px;bottom:0;height:1px;background:var(--stroke)}
.pnl-table thead tr.grp+tr th{padding-top:7px}
/* pinned headers (Benjamin, 2026-09-09: "the headings … should float when you scroll"). A .tablewrap
   is already the table's horizontal scroll container, so the header can only stick to IT — the
   wrapper therefore gets a viewport-bound max-height and scrolls the rows inside itself, with the
   header row(s) pinned at its top and the Σ footer at its bottom. Cell borders do not travel with
   sticky cells in a collapsed table, so the pinned rows draw their rules as inset shadows instead. */
.tablewrap.pinned{max-height:calc(100vh - 72px);overflow:auto;padding-top:0;padding-bottom:0} /* no vertical padding: the pinned rows sit flush, nothing scrolls past them in a 6px gap */
.tablewrap.pinned thead{position:sticky;top:0;z-index:3}
.tablewrap.pinned thead th{background:var(--card);border-bottom:0;box-shadow:inset 0 -1px 0 var(--stroke)}
.tablewrap.pinned thead tr.grp th{box-shadow:none}
.tablewrap.pinned tfoot{position:sticky;bottom:0;z-index:3}
.tablewrap.pinned tfoot td{background:var(--card);border-top:0;box-shadow:inset 0 1px 0 var(--stroke)}
/* the direct costs table follows its readout strip inside ONE section (no .sec-head between them), so
   without this the table panel sits flush against the cards — 0px, where every other section has 36px.
   14px = the .sec-head bottom margin, so the strip → table step reads like head → table elsewhere. */
#direct-table-wrap{margin-top:14px}
.chart-wrap{width:100%;overflow-x:auto}

/* footer — status line */
footer{margin-top:40px;border-top:1px solid var(--stroke);padding-top:16px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;color:var(--t3);font-size:11px;font-family:var(--mono);letter-spacing:.04em}

/* one restrained entrance — the console powering on */
main#main{animation:boot .42s ease both}
@keyframes boot{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}

/* misc */
.hide{display:none!important}

@media(max-width:760px){
  .topbar{align-items:flex-start}
  .telemetry{width:100%}
}
@media(max-width:600px){
  .hm-wrap,.pi-grid-wrap{overflow-x:auto}
  .hm-grid{min-width:420px}
  .pi-grid{min-width:360px}
  .tele{padding:7px 11px}
  .tl-item{grid-template-columns:1fr}
  .tl-date{text-align:left;padding-top:0}
  /* section heads carry long counts + toggles now — wrap instead of pushing the body wide */
  .sec-head{flex-wrap:wrap;row-gap:6px}
  .sec-head .count{white-space:normal;text-align:right;flex:1 1 auto;min-width:0}
  /* long legend sentences must wrap as prose, not ride out of the viewport */
  .legend span{display:inline;white-space:normal}
  .legend i{vertical-align:middle;margin-right:4px}
}
@media(max-width:560px){
  body{padding:18px 14px 56px}
  .wordmark{font-size:16px}
  .raci-table th.raci-rolehead{height:96px;font-size:8px}
  .panel::before,.panel::after,.phead::before,.phead::after,.kpi::after,.sgroup::after{display:none}
}
@media(prefers-reduced-motion:reduce){
  main#main{animation:none}
  .led-r{animation:none}
  .spinner{animation:none}
  tbody tr.clickable{transition:none}
}

/* --- KPI loop v2: On-Target badges, trend sparklines, source tags --- */
.otx-badge{display:inline-flex;align-items:center;font-family:var(--mono);font-size:10.5px;font-weight:600;padding:2px 7px;border-radius:6px;line-height:1.5;font-variant-numeric:tabular-nums;cursor:help}
.otx-tick{color:var(--green);font-weight:700;cursor:help}
.src-tag{font-family:var(--mono);font-size:8.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--t3);border:1px solid var(--stroke);border-radius:4px;padding:1px 4px;margin-left:6px;vertical-align:middle;cursor:help}
.spark{display:block;margin-top:4px}
.kpi-window{font-family:var(--mono);font-size:11px;color:var(--t2);white-space:nowrap}

/* roster & rates (capacity page, absorbs team.html) */

/* ==========================================================================
   v4 PORT (2026-08-20) — the redesign's component layer.
   Everything below is ADDITIVE: no v3 class was redefined, so an un-ported
   page keeps rendering exactly as it did. Colour comes only from the token
   blocks at the top of this file, which means every rule here has a DAY value.

   Owned by charts.js  → .chart · .chart-scroll · #chart-tip · .legend .sw/.ln/.dm
                          .meter · .dw-* · .hgrid/.hcell
   Owned by the pages  → .cta · .costblock/.cb-*
                          .panel-grid · .chip-ok/.warn/.bad/.info · .att-*
   ========================================================================== */

/* ---------- chart frame ---------- */
/* a wide mark scrolls INSIDE its own box; the page body never scrolls sideways */
.chart{margin-top:14px}
.chart-scroll{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain}
.chart svg{display:block;height:auto}
.chart figcaption{font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--t3);margin-bottom:6px}
/* stackedRows segment value labels — the number ON the segment. Hidden until
   charts.js fitSegLabels() measures that it fits (segment widths are flex
   proportions, unknown until layout), so it can never render clipped.
   The ink is --t1 on a plate of --card, NOT --chart-on-ink on the bare segment:
   these segments are inked by the CALLER (people, categories) and the
   categorical palette is a MARK palette — in Day, white on --cat2 measures
   3.14:1. An 88% --card plate is legible on any ink in either theme (14.3–15.7:1
   measured across cat1–5 and the RAG inks) because the ink shows through 12%. */
.sr-seg{display:flex;align-items:center;justify-content:center;overflow:hidden}
.sr-val{font-family:var(--mono);font-size:8.5px;font-weight:600;line-height:1;color:var(--t1);background:color-mix(in srgb,var(--card) 88%,transparent);border-radius:3px;white-space:nowrap;padding:1px 3px;visibility:hidden}
.sr-seg.fits>.sr-val{visibility:visible}

/* shared hover tooltip (charts.js creates the node once, on first use) */
#chart-tip{
  position:fixed;z-index:90;pointer-events:none;opacity:0;transition:opacity .1s;
  background:var(--chart-tip-bg);border:1px solid var(--stroke);border-radius:10px;
  padding:9px 11px;max-width:290px;font-size:12px;color:var(--t2);
  box-shadow:0 8px 24px var(--chart-tip-shadow);
}
#chart-tip.on{opacity:1}
#chart-tip .t-nm{font-size:13px;font-weight:600;color:var(--t1);margin-bottom:3px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#chart-tip .t-r{font-size:11.5px;line-height:1.45}
#chart-tip .t-r .num{color:var(--t1);font-family:var(--mono);font-variant-numeric:tabular-nums}
#chart-tip .t-go{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;color:var(--blue);margin-top:5px}
#chart-tip .dim{color:var(--t3)}

/* legend marks — .legend itself is the v3 class; these are the mark shapes */
.legend i.sw{width:13px;height:8px;border-radius:2px}
.legend i.ln{width:15px;height:2px;border-radius:0}
.legend i.dm{width:8px;height:8px;border-radius:0;transform:rotate(45deg);border:1.5px solid var(--t1);background:transparent}
.legend i.dm.solid{background:var(--t2);border-color:transparent}
.legend i.hatch{border-radius:2px;width:13px;height:8px}
/* round legend swatches — used where the MARK is a dot (the stakeholder-map
   sentiment key), so the key looks like the thing it keys. .hollow is the
   "value not recorded" mark: an outline, never a grey fill, because the grey
   fill is already Neutral's. */
.legend i.rnd{border-radius:50%}
.legend i.hollow{background:transparent}
/* the plotted twin of .legend i.hollow — a stakeholder whose sentiment is not
   recorded. No background: the outline (an inline box-shadow) is the whole mark,
   because a grey FILL is already what Neutral means. */
.dot.pi-dot-none{background:transparent}

/* ---------- inline margin meter (a value against its target) ---------- */
.meter{position:relative;display:inline-block;width:78px;height:11px;vertical-align:middle}
.meter .trk{position:absolute;top:5px;left:0;right:0;height:1px;background:var(--stroke)}
.meter .tick{position:absolute;top:1px;width:1px;height:9px;background:var(--yellow)}
.meter .mk{position:absolute;top:0;width:3px;height:11px;background:var(--green);border-radius:1px}
.meter .mk.a{background:var(--orange)}
.meter .mk.r{background:var(--red)}
.meter .mk.n{background:var(--t3)}          /* no computable margin */
.meter .mk.u{background:var(--unsigned)}    /* an est. margin on an unsigned programme: no RAG to ink */

/* ---------- delivery windows (one row per programme) ---------- */
.dw{position:relative}
/* full opacity in BOTH themes: at .88 the in-bar name fell to 4.2:1 (night red)
   and 4.3:1 (day green), so the hover "lift" is the lane band, not opacity */
.dw-bar{opacity:1}
.dw-lane{fill:var(--chart-lane)}
.dw-band{fill:transparent}
.dw-band.on{fill:var(--chart-hover)}
.dw-hit{fill:transparent;outline:none}
.dw-hit:focus-visible{outline:none}
.dw-band.focus{stroke:var(--blue);stroke-width:1.5}
.dw-name{font-family:var(--sans);font-weight:700}
.dw-legend text{font-family:var(--mono)}

/* ---------- name / meta lines + CTAs ---------- */
.xlab{font-family:var(--mono);font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:var(--t3)}
.xname{font-size:13.5px;font-weight:600;color:var(--t1);line-height:1.25;overflow-wrap:anywhere}
.xmeta{font-family:var(--mono);font-size:10.5px;color:var(--t3);margin-top:2px}
/* the CTA reveals more rows */
.cta{display:inline-flex;align-items:center;gap:7px;font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;background:none;border:1px solid var(--stroke);border-radius:999px;color:var(--t1);padding:9px 16px;cursor:pointer;margin-top:14px;text-decoration:none}
.cta:hover{border-color:var(--blue);color:var(--blue)}
.cta:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* ---------- cost block (one panel: mix on top, selector, breakdown) ---------- */
.costblock{display:flex;flex-direction:column;min-width:0}
.cb-ctl{display:flex;gap:10px 14px;align-items:center;flex-wrap:wrap;margin:11px 0 2px}
.cb-ctl .ctrl-lab{font-family:var(--mono);font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--t3)}
.cb-mix{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:12px}
.cb-bar{display:flex;gap:2px;height:16px;align-items:center;min-width:0}
.cb-seg{min-width:2px;height:7px;opacity:.32;border-radius:1px;transition:height .12s,opacity .12s}
.cb-seg.on{height:16px;opacity:1}
.cb-shares{font-family:var(--mono);font-size:9.5px;white-space:nowrap;color:var(--t3);font-variant-numeric:tabular-nums}
.cb-shares .on{color:var(--t1);font-weight:600}
.cb-list{margin-top:15px}
.cb-head,.cb-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 66px;gap:10px}
.cb-head{align-items:end;padding:0 0 6px;border-bottom:1px solid var(--stroke)}
.cb-head .cb-keys{text-align:right;font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--t3);line-height:1.55}
.cb-row{align-items:center;padding:6px 0;border-bottom:1px solid var(--stroke-soft)}
.cb-lab{font-size:11.5px;color:var(--t2);line-height:1.3;min-width:0;overflow-wrap:anywhere}
.cb-right{text-align:right;min-width:0;font-family:var(--mono);font-variant-numeric:tabular-nums}
.cb-pct{font-size:11px;color:var(--t1)}
.cb-pct.neg{color:var(--red-ink)}
.cb-tail{font-size:9.5px;color:var(--t3)}
.cb-tail.neg{color:var(--red-ink)}

/* ---------- panel grids (signals, paired panels) ---------- */
.panel-grid{display:grid;gap:14px;margin-top:14px;grid-template-columns:repeat(auto-fit,minmax(min(360px,100%),1fr))}
.panel-grid>*{min-width:0;margin-top:0}
/* flex, not auto-fit, where one panel legitimately earns the wider column */
.panel-pair{display:flex;flex-wrap:wrap;gap:14px;margin-top:14px;align-items:flex-start}
.panel-pair>.pp-wide{flex:1 1 540px;max-width:100%;min-width:0;display:grid}
.panel-pair>.pp-narrow{flex:1 1 380px;max-width:100%;min-width:0;display:grid}
.phead-row{display:flex;align-items:baseline;justify-content:space-between;gap:6px 14px;flex-wrap:wrap;margin-bottom:2px}
.phead-row h3{margin:0}
.phead-row .note{font-size:11.5px;color:var(--t3);text-align:right}
.fnote{font-size:11.5px;color:var(--t3);margin:12px 0 0;max-width:92ch}

/* ---------- attention rail ---------- */
.att{margin-top:6px}
.att-row{display:grid;grid-template-columns:112px 1fr;gap:4px 16px;padding:11px 0 11px 11px;border-bottom:1px solid var(--stroke-soft);align-items:baseline;border-left:2px solid var(--att,var(--stroke))}
.att-row:last-child{border-bottom:0}
.att-tag{font-family:var(--mono);font-size:10.5px;font-weight:600;letter-spacing:.06em;white-space:nowrap}
.att-tag.due{color:var(--orange)}
.att-tag.brk{color:var(--red-ink)}
.att-txt{font-size:13px;color:var(--t2);max-width:96ch}
.att-txt b{color:var(--t1);font-weight:600}

/* ---------- outlined chip variants (semantic, on top of .chip) ---------- */
.chip-ok,.chip-warn,.chip-bad,.chip-info,.chip-uns{border:1px solid currentColor;background:transparent;text-transform:uppercase;letter-spacing:.06em;font-size:10px}
.chip-ok{color:var(--green)} .chip-warn{color:var(--orange)}
.chip-bad{color:var(--red-ink)}  .chip-info{color:var(--blue)}
.chip-uns{color:var(--unsigned)}

/* ---------- utilisation heat grid ---------- */
.hgrid-wrap{overflow-x:auto}
.hgrid{border-collapse:separate;border-spacing:2px;font-size:11.5px;width:100%}
.hgrid th{font-family:var(--mono);font-size:9.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--t3);padding:4px 6px;text-align:center;white-space:nowrap}
.hgrid th.rowh{text-align:left;min-width:150px}
.hgrid td{padding:0;text-align:center}
/* u1 = under-utilised (blue) … u5 = over (red); u3 carries no utilisation band —
   see the --heat* token block. Each step also sets --hsub, the ink for the .sub
   line, because that line holds the disclosed hours pair ("120/160") at 9px and
   an opacity fade put it under 4:1 in DAY mode across the whole ramp. */
.hcell{display:block;width:100%;min-width:46px;padding:6px 4px;border:0;border-radius:6px;cursor:default;font-family:var(--mono);font-size:11px;font-weight:500;font-variant-numeric:tabular-nums;background:var(--card2);color:var(--t2);--hsub:var(--t3)}
.hcell.u1{background:var(--heat1-bg);color:var(--heat1-fg);--hsub:var(--heat1-sub)}
.hcell.u2{background:var(--heat2-bg);color:var(--heat2-fg);--hsub:var(--heat2-sub)}
.hcell.u3{background:var(--heat3-bg);color:var(--heat3-fg);--hsub:var(--heat3-sub)}
.hcell.u4{background:var(--heat4-bg);color:var(--heat4-fg);--hsub:var(--heat4-sub)}
.hcell.u5{background:var(--heat5-bg);color:var(--heat5-fg);--hsub:var(--heat5-sub)}
.hcell.none{color:var(--t3)}
/* A month with no Capacity rows (capacity page, 2026-10-22): hours only, no band. Outlined
   rather than washed, so it can't read as a utilisation; solid, so it can't read as the
   dashed unplaced-demand cell. Existing tokens only, so both themes hold. */
.hcell.nocap{background:transparent;box-shadow:inset 0 0 0 1px var(--stroke);color:var(--t2);--hsub:var(--t3)}
.hgrid th.nocap{text-decoration:underline dotted;text-underline-offset:3px}
.hcell .sub{display:block;font-size:9px;color:var(--hsub);margin-top:1px}
.hgrid tr.subt td .hcell,.hgrid tr.subt th{border-top:1px solid var(--stroke)}
.hgrid .rlab{font-size:12.5px;color:var(--t1);font-weight:500}
.hgrid .rrole{font-family:var(--mono);font-size:10px;color:var(--t3);display:block}

@media(max-width:600px){
  .att-row{grid-template-columns:1fr;gap:3px}
  .cb-head,.cb-row{grid-template-columns:minmax(0,1fr) 84px 62px;gap:8px}
}
@media(prefers-reduced-motion:reduce){
  #chart-tip{transition:none}
  .cb-seg{transition:none}
}

/* --- simplification --- */
/* 2026-09-27 (T7). Fewer columns, fewer words: a dim sub-value under a cell's figure (the $
   under an OPS Margin %, the shares under a Direct EAC, the month split under a Σ), the
   "Closing" tag on a live programme whose delivery window has ended, and the P&L column
   switch in its section head. */
.subv{display:block;font-family:var(--mono);font-size:10px;line-height:1.25;color:var(--t3);margin-top:2px;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}
td.l .subv{white-space:normal}
.tag-closing{color:var(--orange);border-color:var(--orange);margin-left:6px;padding:3px 8px;font-size:9.5px}
/* Program series (2026-10-09): "continues Y2" / "continued in Y3" on a wall card — the .tag's own
   neutral ink, sized like "Closing". The card head row wraps only when it carries one, so the tag
   drops under the name instead of squeezing it to a few letters a line. */
.tag-series{padding:3px 8px;font-size:9.5px}
/* Unsigned (the pipeline forecast, 2026-10-22): a pre-signed programme — Status Unsigned (2026-11-08; the old
   Blocked · Lifecycle Pre-sales during the transition). The status ink is --unsigned, defined in both token blocks;
   the tag is the one place a list names it. */
.tag-unsigned{color:var(--unsigned);border-color:var(--unsigned);padding:3px 8px;font-size:9.5px;margin-left:6px}
/* Committed (2026-11-18): the same tag in the orange --committed ink (text in --committed-ink) */
.tag-unsigned.tag-committed{color:var(--committed-ink);border-color:var(--committed)}
.chip-com{color:var(--committed-ink)}
.att-tag.com{color:var(--committed-ink)}
.pipe-aside .k-com,.k-com{color:var(--committed-ink)}
.mcal-i.s-com{color:var(--committed-ink)}
.meter .mk.c{background:var(--committed)}
/* Cancelled (2026-11-08): a lost deal or a programme stopped before delivery, listed only in the All scope and
   counted nowhere. A neutral ink (no status colour: nothing is wrong with it), sized like the Unsigned tag. */
.tag-cancelled{color:var(--t3);border-color:var(--t3);padding:3px 8px;font-size:9.5px;margin-left:6px}
.tag-internal{color:var(--blue);border-color:var(--blue);padding:3px 8px;font-size:9.5px;margin-left:6px}
.att-tag.uns{color:var(--unsigned)}
.est{color:var(--t2)}
/* the Pipeline switch (2026-10-22): one on/off control per page; ON wears the unsigned status ink */
.pipe-switch{display:inline-flex;align-items:center;gap:8px}
.pipe-switch .ps-lab{font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--t3);white-space:nowrap}
.pipe-switch.ctl{align-items:flex-start;gap:5px}
.pipe-switch .seg button[data-val="on"][aria-pressed=true]{background:var(--unsigned);color:var(--inv)}
/* the Committed switch (2026-11-18) sits right after the Pipeline switch; faded while the pipeline is off */
.pipe-switches{display:inline-flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
.pipe-switch.is-off{opacity:.45}
/* the Committed switch ON wears the --committed ink (text on it: --inv, 8.2:1 Night · 5.2:1 Day) */
.pipe-switch[data-switch="committed"] .seg button[data-val="on"][aria-pressed=true]{background:var(--committed);color:var(--inv)}
.pipe-switch.is-off .seg button{cursor:not-allowed}
/* a pipeline figure beside a signed one ("+ $835,000 pipeline · 4 unsigned") — never inside it */
.pipe-aside{color:var(--unsigned)}
/* on a pressed (filled) seg button the status ink would sit on --t1 at <3:1: the "+N" keeps the
   button's own ink there and stays apart by its "+" */
.seg button[aria-pressed=true] .pipe-aside{color:inherit}
/* the head of an unsigned group under a committed chart (capacity programme plan) */
.pipe-group-head{margin:12px 0 2px;padding-top:8px;border-top:1px dashed color-mix(in srgb, var(--unsigned) 45%, transparent);font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--unsigned)}
/* the Pipeline group head inside a P&L table (All scope): the unsigned rows sit under it */
.pnl-table tbody tr.pipe-head td{text-align:left;padding-top:16px;font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--unsigned);border-bottom:1px solid var(--stroke-soft)}
/* the Cancelled group under it (All scope only, 2026-11-08): the same head in a neutral ink */
.pnl-table tbody tr.pipe-head.canc-head td{color:var(--t3)}
.pnl-table tfoot tr.pipe-total td:first-child{color:var(--unsigned)}
/* one sub-row per kind of pre-signed deal (Unsigned · Committed) under the pipeline Σ, lighter and indented */
.pnl-table tfoot tr.pipe-total.pipe-kind td{font-weight:400;font-size:12.5px;border-top:0;box-shadow:none}
.pnl-table tfoot tr.pipe-total.pipe-kind td:first-child{padding-left:22px}
.pnl-table tfoot tr.pipe-total.pipe-kind.k-committed td:first-child{color:var(--committed-ink)}
/* the LED (8px) + its 7px gap: a long name wraps inside line 1 and never drops away from its LED */
.cols-toggle{display:inline-flex;align-items:center;gap:8px}
/* Needs-attention filter (2026-10-07): the switch scrolls inside the narrow panel rather than widening the page. */
.att-filter{margin-top:8px;max-width:100%;overflow-x:auto}
.att-filter .seg button{padding:7px 12px}
/* segToggle with a second line (a count under each label): one consistent two-line pill at every width. */
.seg-stack{border-radius:12px}
.seg-stack button{white-space:nowrap;line-height:1.25}
.seg-stack .seg-sub{display:block;font-size:11px;letter-spacing:0;font-variant-numeric:tabular-nums;margin-top:1px}
/* Needs-attention risk titles (2026-10-07): each open High / Medium risk listed under its programme with
   its severity, and the rail scrolls inside a viewport-high box instead of running the page long. */
.att{max-height:max(320px,calc(100vh - 180px));overflow-y:auto}
.att-list{grid-column:1/-1;list-style:none;margin:2px 0 0;padding:0;display:grid;gap:6px}
.att-list li{display:grid;grid-template-columns:112px minmax(0,1fr);gap:0 16px;align-items:baseline}
.att-sev{font-family:var(--mono);font-size:10px;font-weight:600;letter-spacing:.06em;padding-left:10px}
.att-title{font-size:13px;line-height:1.4;color:var(--t2);max-width:96ch;overflow-wrap:anywhere}
.att-txt{overflow-wrap:anywhere}
.att:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media(max-width:600px){.att-list li{grid-template-columns:64px minmax(0,1fr);gap:0 8px}.att-sev{padding-left:0}}
.att-sev.brk{color:var(--red-ink)}
.att-sev.due{color:var(--orange)}
/* B2B Comms (2026-10-22): the Comms Map by lane. The chart reuses .dw-lane/.dw-band/.dw-hit; the commitment and
   task lists reuse .att-row (--att = the lane ink) and .tl-month as the lane heading. */
.ctl.links{flex-direction:row;gap:18px;align-self:center}
/* the Comms Map read date beside the Comms Map / Playbook links on every Communications page (comms-ui.js) */
.ctl.links .cm-read{font-family:var(--mono);font-size:11px;letter-spacing:.04em;color:var(--t3);align-self:center}
/* the lane and quarter switches scroll inside their own box in a half-screen window, never widen the page.
   flex-start, as .pipe-switch.ctl: a stretched .seg (overflow:hidden) is cut to the box's width and clips its
   buttons, so nothing is left for the box to scroll */
.ctl.cm-seg{max-width:100%;min-width:0;overflow-x:auto;align-items:flex-start}
.cm-lane{gap:8px}
.cm-lane::after{margin-left:4px}
.cm-tag{color:var(--t2);text-transform:uppercase}
.cm-tag.key{color:var(--t1)}
.cm-tag.meas{color:var(--t3)}
.cm-tag.done{color:var(--green)}
.cm-sub .wb-link{font-size:inherit}
.cm-sub{display:block;font-family:var(--mono);font-size:10.5px;color:var(--t3);margin-top:3px}
/* Calendar page (Governance Calendar plan §6). The year chart reuses .dw-lane/.dw-band/.dw-hit and the agenda
   reuses .att-row/.tl-month; these rules add only the kind chips (a disabled chip = a source calendar.json did
   not pull: dashed, "not pulled" in place of a count), the legend glyphs, the coverage table and the small text
   helpers. Colour is tokens only, both themes. */
.cal-kinds{min-width:0;max-width:100%}
.cal-chips{display:flex;flex-wrap:wrap;gap:6px}
.cal-chip{font-family:var(--mono);font-size:10.5px;letter-spacing:.04em;padding:5px 10px;border-radius:999px;border:1px solid var(--stroke);background:transparent;color:var(--t3);cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.cal-chip:hover{color:var(--t1)}
.cal-chip:disabled,.cal-chip:disabled:hover{cursor:default;color:var(--t3);border-style:dashed;background:transparent;text-decoration:none}
.cal-chip[aria-pressed=true]{color:var(--t1);border-color:var(--t2);background:var(--card2)}
.cal-chip[aria-pressed=false]{text-decoration:line-through;text-decoration-color:var(--t3)}
.cal-chip.tmpl[aria-pressed=false]{text-decoration:none}
.cal-chip .n{color:var(--t3);font-variant-numeric:tabular-nums}
.cal-chip:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.cal-legend svg{display:inline-block;flex:none;overflow:visible}
.cal .dw-hit:focus-visible{outline:none}
.kpi .big .cal-of{font-size:.5em;color:var(--t2);font-weight:500}
.cal-sub{display:block;font-family:var(--mono);font-size:10.5px;color:var(--t3);margin-top:3px}
.cal-warn{color:var(--orange)}
.cal-muted{color:var(--t3)}
.tag.cal-tag{padding:2px 7px;font-size:9.5px;margin-left:6px}
.cal-week{margin-top:20px}
/* Calendar view (Governance Calendar page, ?view=calendar): month grids you flip through. Tokens only, both themes. */
.cal-nav{display:inline-flex;align-items:center;gap:6px}
.cal-nav button{font-family:var(--mono);font-size:11px;padding:5px 10px;border-radius:999px;border:1px solid var(--stroke);background:transparent;color:var(--t2);cursor:pointer;line-height:1}
.cal-nav button:hover{color:var(--t1);border-color:var(--t2)}
.cal-nav button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.cal-nav .cal-when{font-family:var(--mono);font-size:12px;color:var(--t1);font-weight:600;min-width:150px;text-align:center;letter-spacing:.02em}
.mcal-wrap{display:grid;gap:22px}
.mcal-title{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--t2);margin:0 0 6px}
.mcal-grid{border:1px solid var(--stroke);border-radius:6px;overflow:hidden;background:var(--card)}
.mcal-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) repeat(2,minmax(0,.62fr))}
.mcal-row + .mcal-row{border-top:1px solid var(--stroke)}
.mcal-dow div{font-family:var(--mono);font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--t3);padding:7px 8px;background:var(--card2)}
.mcal-d{min-height:112px;padding:5px 5px 6px;border-left:1px solid var(--stroke);display:flex;flex-direction:column;gap:2px;min-width:0}
.mcal-d:first-child,.mcal-dow div:first-child{border-left:0}
.mcal-dow div + div{border-left:1px solid var(--stroke)}
.mcal-wrap.multi .mcal-d{min-height:82px}
.mcal-d.we{background:color-mix(in srgb, var(--card2) 70%, transparent)}
.mcal-d.out{background:var(--well)}
.mcal-d.out .mcal-n{color:var(--t3);opacity:.6}
.mcal-d.today{box-shadow:inset 0 0 0 2px var(--blue)}
.mcal-n{font-family:var(--mono);font-size:10.5px;color:var(--t2);padding:1px 3px 3px;display:flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums}
.mcal-d.past:not(.today) .mcal-n{color:var(--t3)}
.mcal-n .tdy{font-size:8.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);font-weight:600}
.mcal-i{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:6px;width:100%;padding:2px 5px;border-radius:3px;font-family:var(--mono);font-size:10px;line-height:1.35;color:var(--t1);cursor:pointer;min-width:0}
.mcal-i .t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mcal-i:hover,.mcal-i:focus-visible{background:var(--card2)}
.mcal-i:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.mcal-i.static{cursor:default}
.mcal-i.k-qbr{background:color-mix(in srgb, var(--blue) 14%, transparent);font-weight:600}
.mcal-i.k-renewal{background:color-mix(in srgb, var(--yellow) 16%, transparent);font-weight:600}
.mcal-i.k-checkin,.mcal-i.k-review{color:var(--t2)}
.mcal-i.s-past,.mcal-i.s-done,.mcal-i.s-cxl{color:var(--t3)}
.mcal-i.s-cxl .t{text-decoration:line-through}
.mcal-i.s-late{color:var(--orange)}
.mcal-i.s-bad{color:var(--red-ink)}
.mcal-i.s-uns{color:var(--unsigned)}
.mcal-i.s-prov .t{font-style:italic}
.mcal-i .g{flex:none;width:8px;height:8px;box-sizing:border-box;border:1.3px solid currentColor;display:inline-flex;align-items:center;justify-content:center}
.mcal-i .g-sq{background:transparent}
.mcal-i.s-done .g-sq,.mcal-i.s-late .g-sq{background:currentColor}
.mcal-i .g-di{transform:rotate(45deg) scale(.82)}
.mcal-i.s-done .g-di,.mcal-i.s-late .g-di{background:currentColor}
.mcal-i .g-ci{border-radius:50%}
.mcal-i.s-done .g-ci{background:currentColor}
.mcal-i .g-bar{width:2px;height:10px;border:0;background:currentColor}
.mcal-i .g-tk{width:2px;height:10px;border:0;background:currentColor;opacity:.75}
.mcal-i .g-pen{border:0;width:9px;height:10px;background:currentColor;clip-path:polygon(0 0,100% 30%,18% 60%,18% 100%,0 100%)}
.mcal-i .g-br{border-right:0;width:5px}
.mcal-i .g-st{border:0;width:10px;height:10px;background:currentColor;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}
.mcal-i .g-dl{border-radius:50%;width:12px;height:12px;font-size:8px;font-weight:700;border-width:1px}
/* Events Roadmap items (2026-11-10): a teal bar glyph and a faint teal wash, like the QBR's blue */
.mcal-i.k-event{background:color-mix(in srgb, var(--cat2) 12%, transparent)}
.mcal-i .g-ev{border:0;width:10px;height:6px;border-radius:1.5px;background:var(--cat2)}
.mcal-i.k-event.s-done .g-ev{background:currentColor}
.mcal-i.k-event.s-past .g-ev,.mcal-i.k-event.s-cxl .g-ev{background:transparent;border:1.2px dashed currentColor}
.mcal-i.k-event.s-late .g-ev{background:transparent;border:1.5px solid var(--orange)}
.mcal-more{all:unset;font-family:var(--mono);font-size:9.5px;color:var(--t3);padding:2px 5px;cursor:pointer;border-radius:3px}
.mcal-more:hover,.mcal-more:focus-visible{color:var(--t1);background:var(--card2)}
.mcal-more:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.mcal-key{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:10px;font-family:var(--mono);font-size:10px;color:var(--t3)}
.mcal-key .mcal-i{width:auto;cursor:default;padding:1px 4px}
.mcal-key .mcal-i:hover{background:transparent}
.mcal-key .mcal-i.k-qbr:hover{background:color-mix(in srgb, var(--blue) 14%, transparent)}
.mcal-key .mcal-i.k-renewal:hover{background:color-mix(in srgb, var(--yellow) 16%, transparent)}
/* Partnerships pages */
/* The inline styles two or more Partnerships pages repeated, as classes. Tokens only, both themes. */
/* a block that follows a card strip, chart or notice in the same section: 14px = the .sec-head bottom margin, the
   step #direct-table-wrap gives the P&L page (UI-KIT trap 22) */
.after-block{margin-top:14px}
/* "est." before a big card figure: the estimate named, half the figure's size, in the est. ink */
.kpi .big .est-pre{font-size:.5em;color:var(--t2);font-weight:500;margin-right:6px}
/* a chip or tag inside a table cell (deal flags, a contested Code), sized like .tag-series */
.chip.chip-sm,.tag.tag-sm{padding:3px 8px;font-size:9.5px}
/* a table inside a .panel: the panel is already the card, so the table sits flush under the panel head */
.panel .tablewrap.flush{background:none;padding:0;margin-top:10px}
/* a deal or programme name cell: wide enough that a long name wraps instead of crushing the figures beside it */
td.cell-name{min-width:200px}
/* Partnerships · Capacity: a booked period (already in the calendar, not yet held) is outlined, not filled, so the
   heat stays readable and the cell still says "not happened yet" */
.hgrid th.booked{text-decoration:underline dotted;text-underline-offset:3px}
.hcell.booked{box-shadow:inset 0 0 0 1.5px var(--t3)}


/* Board Snapshot (board.html, page-board.js, 2026-11-01): the board deck's Programs section as a page.
   Tokens only; every bd- rule is page-local. */
.bd-hero{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1180px){.bd-hero{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bd-card{min-width:0}
.bd-card .xmeta{white-space:normal}
.bd-ring-row{display:flex;align-items:center;gap:14px}
.bd-ring{width:84px;height:84px;flex:none}
.bd-ragbar{display:flex;height:8px;border-radius:999px;overflow:hidden;gap:2px;margin-top:6px}
.bd-ragbar>span{display:block;height:100%}
.bd-trend{width:100%;height:46px;display:block;margin-top:4px}
.bd-targets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:16px 28px;margin-top:6px}
.bd-target-fig{font-size:22px;font-weight:600;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-variant-numeric:tabular-nums;margin:4px 0}
.bd-target-fig .t3{font-size:13px;font-family:var(--mono)}
.bd-bar{height:8px;border-radius:999px;background:var(--track);overflow:hidden;margin:6px 0 4px}
.bd-bar>span{display:block;height:100%;border-radius:999px}
.bd-motion{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
@media (max-width:900px){.bd-motion{grid-template-columns:1fr}}
.bd-motion-n{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums;margin:4px 0 8px}
.bd-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.bd-chips .tag{white-space:normal}
.bd-chips .tag:hover{color:var(--t1);border-color:var(--t3)}
.bd-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
@media (max-width:1000px){.bd-cols{grid-template-columns:1fr}}
.bd-col h3 .bd-pip{width:8px;height:8px;border-radius:2px;display:inline-block}
.bd-item{padding:10px 0;border-top:1px solid var(--stroke-soft)}
.bd-item:first-of-type{border-top:0;padding-top:0}
.bd-item-t{font-weight:600;font-size:14px;margin-bottom:4px}
.bd-item-x{color:var(--t2);font-size:13px;line-height:1.5}
.bd-group{margin-bottom:22px}
.bd-group-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px 24px;flex-wrap:wrap;margin:6px 0 12px}
.bd-group-name{font-size:24px;font-weight:600;margin:0;display:flex;align-items:center;gap:10px;letter-spacing:-.01em}
.bd-group-name .dot{width:10px;height:10px}
.bd-readouts{display:flex;gap:10px;flex-wrap:wrap}
.bd-readouts>div{background:var(--card);border-radius:var(--radius);padding:10px 16px;min-width:120px}
.bd-ro{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums;margin-top:3px}
.bd-table th,.bd-table td{text-align:left}
.bd-table th.num,.bd-table td.num{text-align:right}
.bd-table td{vertical-align:top}
.bd-table td .xmeta{margin-top:3px}
.bd-table .prog-name{font-family:var(--sans);white-space:normal;min-width:150px}
.bd-table .nowrap{white-space:nowrap}
.bd-table tbody tr.bd-row{cursor:pointer;transition:background .12s}
.bd-table tbody tr.bd-row:hover,.bd-table tbody tr.bd-row:focus{background:var(--card2);outline:none;box-shadow:inset 2px 0 0 var(--green)}
.bd-table tbody tr.bd-row.on{box-shadow:inset 3px 0 0 var(--blue)}
.bd-kpis{min-width:300px}
.bd-kl{display:grid;grid-template-columns:96px 70px minmax(92px,auto) 46px;align-items:center;gap:8px;font-size:11.5px;line-height:1.9}
.bd-kl-m{font-family:var(--sans);color:var(--t2)}
.bd-kl-bar{height:6px;border-radius:999px;background:var(--track);overflow:hidden}
.bd-kl-bar>span{display:block;height:100%;border-radius:999px}
.bd-kl-v{color:var(--t1);text-align:right}
.bd-kl-unc{opacity:.6}
.bd-pick{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;background:transparent;color:var(--t2);border:1px solid var(--stroke);border-radius:999px;padding:7px 14px;cursor:pointer}
.bd-pick:hover{color:var(--t1)}
.bd-pick.on{background:var(--t1);color:var(--inv);border-color:var(--t1);font-weight:600}
.bd-pick:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
/* Partner Spotlight tabs (2026-11-03): one per partner, a row per group; a key partner of the quarter's narrative
   carries a green pip, a partner with two programmes in the quarter their count */
#bd-spot-pick{margin-bottom:13px}
.bd-tabs{display:flex;flex-direction:column;gap:8px}
.bd-tabrow{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.bd-tabrow-l{display:inline-flex;align-items:center;gap:7px;width:118px;flex:none;font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--t3)}
.bd-pick.key::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:7px;vertical-align:1px}
.bd-pick.key.on::before{background:var(--inv)}
.bd-pick-n{display:inline-block;margin-left:6px;padding:0 5px;border-radius:999px;background:var(--track);color:var(--t2);font-size:10px}
.bd-pick.on .bd-pick-n{background:var(--inv);color:var(--t1)}
.bd-spot-years{margin-top:10px}
.bd-spot-head{margin-bottom:13px}
.bd-spot-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr) minmax(0,1.1fr);gap:13px}
@media (max-width:1100px){.bd-spot-grid{grid-template-columns:1fr}}
.bd-kv{display:grid;grid-template-columns:1fr auto;gap:10px 16px;margin:0 0 10px}
.bd-kv dt{color:var(--t2);font-size:13px}
.bd-kv dd{margin:0;text-align:right;font-weight:600;font-size:15px}
.bd-sk{padding:10px 0;border-top:1px solid var(--stroke-soft)}
.bd-sk:first-of-type{border-top:0;padding-top:0}
.bd-sk-h{display:flex;justify-content:space-between;align-items:center;gap:8px;font-weight:600;font-size:13px}
.bd-sk-fig{font-size:22px;font-weight:600;margin-top:4px}
.bd-sk-fig .t3{font-size:13px}
.bd-spot-update{background:var(--card2)}
.bd-ul{margin:0 0 12px;padding-left:18px;color:var(--t1);font-size:13.5px;line-height:1.55}
.bd-ul li{margin-bottom:7px}
.bd-ul li::marker{color:var(--green)}
.bd-facts{color:var(--t2);font-size:12.5px}
.bd-facts li::marker{color:var(--t3)}
.bd-links{display:flex;gap:14px;font-family:var(--mono);font-size:12px}
.bd-links a{color:var(--green);text-decoration:none}
.bd-links a:hover{text-decoration:underline}
.bd-ren-sum{display:flex;gap:28px;align-items:flex-end;flex-wrap:wrap;margin-bottom:14px}
.bd-ren-key{margin-left:auto;display:flex;gap:16px;flex-wrap:wrap;font-family:var(--mono);font-size:11px;color:var(--t2)}
.bd-ren-key span{display:inline-flex;align-items:center;gap:6px}
.bd-sw{width:13px;height:8px;border-radius:2px;display:inline-block}
.bd-ren{display:flex;flex-direction:column}
.bd-ren-row{display:grid;grid-template-columns:200px minmax(0,1fr) 70px 190px;gap:14px;align-items:center;padding:9px 0;border-top:1px solid var(--stroke-soft)}
.bd-ren-row:first-child{border-top:0}
.bd-ren-name{font-weight:600;font-size:13.5px;display:flex;flex-wrap:wrap;align-items:center;gap:0 8px}
.bd-ren-name .xmeta{flex-basis:100%}
.bd-ren-bars{display:flex;flex-direction:column;gap:4px;min-width:0}
.bd-ren-line{display:flex;align-items:center;gap:3px;min-height:12px}
.bd-ren-bar{display:block;height:10px;border-radius:3px;flex:none}
.bd-ren-bar.current,.bd-sw.current{background:var(--t3)}
.bd-ren-bar.signed,.bd-sw.signed{background:var(--green)}
.bd-ren-bar.unsigned,.bd-sw.unsigned{background-image:repeating-linear-gradient(45deg,var(--unsigned) 0 3px,transparent 3px 6px);box-shadow:inset 0 0 0 1px var(--unsigned)}
.bd-ren-v{font-size:11px;color:var(--t2);margin-left:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bd-ren-d{text-align:right;font-size:12px}
@media (max-width:1000px){.bd-ren-row{grid-template-columns:1fr}.bd-ren-d{text-align:left}}
.bd-rm{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;align-items:start}
@media (max-width:1100px){.bd-rm{grid-template-columns:1fr}}
.bd-rm-bar{display:flex;height:8px;border-radius:999px;overflow:hidden;gap:2px;margin:10px 0 12px}
.bd-rm-bar>span{display:block;height:100%}
.bd-rm-list{list-style:none;margin:0;padding:0}
.bd-rm-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center;padding:8px 0;border-top:1px solid var(--stroke-soft);font-size:13px}
.bd-rm-list li:first-child{border-top:0}
.bd-rm-list li .xmeta{grid-column:1 / -1;white-space:normal}
.bd-rm-name .mono{font-size:10.5px}
.bd-rm-list li.bd-rm-sub{padding:6px 0 6px 16px;border-top:0;font-size:12.5px}
.bd-rm-list li.bd-rm-sub .bd-rm-name{color:var(--t2);font-style:italic}
.bd-gloss summary{cursor:pointer;font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--t2)}
.bd-gloss summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.bd-gloss-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 32px;margin-top:16px}
@media (max-width:900px){.bd-gloss-grid{grid-template-columns:1fr}}
.bd-gloss dt{font-weight:600;font-size:13.5px;margin-top:12px}
.bd-gloss dd{margin:3px 0 0;color:var(--t2);font-size:13px;line-height:1.5}
.bd-main .panel h3,.bd-present .panel h3{justify-content:flex-start}
.bd-main .panel h3 .bd-pip,.bd-main .panel h3 .bd-h3-r,.bd-present .panel h3 .bd-pip,.bd-present .panel h3 .bd-h3-r{margin-left:auto}

/* Board Snapshot slides view (board-present.js, 2026-11-03): a 1440 × 810 stage scaled to the window; the slide's
   content is laid out at the stage's width and scaled down when taller (fitBody), so the page's viewport media
   queries are pinned to their desktop values here: a slide's layout never depends on the window. */
body.presenting{overflow:hidden}
body.presenting>.wrap{display:none}
.bd-present{position:fixed;inset:0;z-index:80;background:var(--band);overflow:hidden;outline:none}
.bd-present.idle{cursor:none}
.bd-stage{position:absolute;left:0;top:0;transform-origin:0 0}
.bd-slide{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;color:var(--t1);background-color:var(--bg);
  position:relative}
.bd-slide-head{flex:none;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:38px 56px 20px}
.bd-slide-title{font-size:38px;font-weight:700;letter-spacing:-.02em;line-height:1.1;margin:8px 0 0}
.bd-slide-note{font-family:var(--mono);font-size:12px;color:var(--t3);text-align:right;max-width:46%}
.bd-slide-body{flex:1;min-height:0;padding:0 56px 22px}
.bd-slide-box{position:relative;width:100%;height:100%;overflow:hidden}
.bd-slide-fit{transform-origin:0 0;display:flow-root}   /* flow-root: a child's margin counts in the height fitBody reads */
.bd-slide-foot{flex:none;height:54px;display:flex;align-items:center;gap:20px;padding:0 56px;background:var(--band);color:var(--band-ink)}
.bd-slide-logo{height:19px;display:block}
.bd-slide-pc{font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;opacity:.72}
.bd-slide-n{margin-left:auto;font-size:15px;font-weight:600}
.bd-slide.cover{background:var(--band);color:var(--band-ink)}
.bd-slide.cover .bd-slide-head,.bd-slide.cover .bd-slide-foot{display:none}
.bd-slide.cover .bd-slide-body{padding:56px 72px}
.bd-cover{height:698px;display:grid;grid-template-rows:auto 1fr auto;gap:28px}
.bd-cover>div:nth-child(2){align-self:center}
.bd-cover-logo{height:30px;display:block}
.bd-cover-over{font-family:var(--mono);font-size:14px;letter-spacing:.16em;text-transform:uppercase;opacity:.72}
.bd-cover-title{font-size:92px;font-weight:700;letter-spacing:-.03em;line-height:1;margin:16px 0 18px}
.bd-cover-title span{color:var(--band-accent)}
.bd-cover-sub{font-family:var(--mono);font-size:15px;opacity:.72}
.bd-cover-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;border-top:1px solid color-mix(in srgb,var(--band-ink) 18%,transparent);padding-top:24px}
.bd-cover-big{font-size:40px;font-weight:600;font-variant-numeric:tabular-nums}
.bd-cover-lbl{font-family:var(--mono);font-size:12px;letter-spacing:.06em;opacity:.72;margin-top:6px}
.bd-present .bd-hero{grid-template-columns:repeat(4,minmax(0,1fr))}
.bd-present .bd-motion{grid-template-columns:repeat(3,minmax(0,1fr))}
.bd-present .bd-cols{grid-template-columns:repeat(3,minmax(0,1fr))}
.bd-present .bd-spot-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr) minmax(0,1.1fr)}
.bd-present .bd-ren-row{grid-template-columns:200px minmax(0,1fr) 70px 190px}
.bd-present .bd-ren-d{text-align:right}
/* the renewals list runs a row per partner (16 on the Q3 board): one line each on a slide */
.bd-present .bd-ren-row{padding:4px 0}
.bd-present .bd-ren-name .xmeta{flex-basis:auto;margin:0}
.bd-present .bd-ren-sum{margin-bottom:8px}
.bd-present .bd-rm{grid-template-columns:repeat(3,minmax(0,1fr))}
.bd-present .bd-gloss-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0}
.bd-present .bd-links{display:none}
.bd-present .bd-rm-list .xmeta{display:none}
.bd-present .chart-scroll{overflow:visible}
.bd-present-ctl{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:2;display:flex;align-items:center;gap:4px;padding:5px;border-radius:999px;
  background:var(--card);border:1px solid var(--stroke);transition:opacity .2s}
.bd-present.idle .bd-present-ctl{opacity:0;pointer-events:none}
.bd-present-ctl button,.bd-present-ctl select{font-family:var(--mono);font-size:11px;color:var(--t1);background-color:transparent;border:1px solid transparent;border-radius:999px;padding:6px 11px;cursor:pointer}
.bd-present-ctl button[data-act="prev"],.bd-present-ctl button[data-act="next"]{font-size:18px;line-height:1;padding:3px 11px 5px}
.bd-present-ctl button:hover,.bd-present-ctl select:hover{border-color:var(--stroke)}
.bd-present-ctl button:disabled{opacity:.35;cursor:default}
.bd-present-ctl button:focus-visible,.bd-present-ctl select:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.bd-present-ctl select{background-color:var(--card2);max-width:300px;padding-right:32px}
.bd-ctl-sep{width:1px;height:18px;background:var(--stroke);margin:0 4px}
.bd-present-open{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--on-solid);background:var(--green);border:0;border-radius:999px;padding:7px 14px;font-weight:600;cursor:pointer}
.bd-present-open:hover{filter:brightness(1.06)}
.bd-present-open:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* Growth Marketing pages (2026-11-02): one bar per row, the name on one line (ad-platform names run long and have
   no spaces, so they are cut with an ellipsis and carried whole in the title), the value once, at the right. */
.gm-bars{display:flex;flex-direction:column;gap:2px}
.gm-row{display:grid;grid-template-columns:minmax(200px,34%) 1fr 84px;gap:14px;align-items:center;padding:5px 0}
.gm-name{min-width:0}
.gm-name .xname,.gm-name .xmeta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gm-track{height:13px;display:flex;align-items:stretch;min-width:0}
.gm-bar{min-width:2px;border-radius:1px}
.gm-val{font-family:var(--mono);font-size:11.5px;color:var(--t2);text-align:right;font-variant-numeric:tabular-nums}
.gm-pace-ahead{color:var(--red-ink)}
.gm-pace-behind{color:var(--yellow-ink)}
/* A card strip on these pages: the table or empty state under it keeps the 14px a .sec-head gives (it sat flush,
   0px, on Campaigns, Partners & referrals and By program), and each note under a card's figure takes its own line,
   so the cards of one strip break the same way at every width. */
/* By program: flags stack in their cell (short words, the sentence in the title), so the table fits a laptop. */
.gm-flags{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
/* Campaigns: an ad-platform name has no spaces to break at, so the longest one set the table's width (6px past a
   1280px laptop); it is cut with an ellipsis and carried whole in the title, as in the bars. */
.gm-cname{display:block;max-width:380px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Promotions and Notifications pages (2026-11-03, Promotion PR 6; split in two on 2026-11-06): the four components as small labels (on / off, the reason in the
   title), the planner's week cells (a broadcast count, red past the cap; a flight as a bar in its kind's ink), and
   the status inks for a page or index that needs a look. Tokens only. */
.pm-table td,.pm-table th{vertical-align:top}
.pm-comps{display:inline-flex;gap:4px;flex-wrap:nowrap}
.pm-comp{font-family:var(--mono);font-size:9.5px;letter-spacing:.04em;padding:2px 6px;border-radius:999px;border:1px solid var(--stroke);white-space:nowrap}
.pm-comp.pm-on{color:var(--green);border-color:currentColor}
.pm-comp.pm-off{color:var(--t3)}
.pm-warn-ink{color:var(--yellow-ink)}
.pm-n{font-family:var(--mono);font-weight:600}
.pm-n.pm-over{color:var(--red-ink)}
.pm-cell{padding-left:0;padding-right:0}
.pm-bar{display:block;height:10px;margin-top:4px;border-radius:1px}
.pm-bar-placement{background:var(--cat1)}
.pm-bar-paid{background:var(--cat3)}
.pm-bar-referral{background:var(--cat5)}
.pm-sub{margin-top:18px}
.pm-flags{display:flex;flex-wrap:wrap;gap:4px;max-width:300px}
/* a pinned list holds about fifteen rows in view; the cost-group month rows of Sent stay inside the scroll */
.tablewrap.pm-pinned{max-height:min(calc(100vh - 72px), 760px)}
.pm-table .prog-link{white-space:nowrap}
.pm-table .prog-name{white-space:normal;max-width:210px}

/* Events pages (2026-11-13): an event's planning Sheet (event-plan.js rules, events-ui.js shared, page-event-*.js).
   Every colour is a token; a status ink rides in --ink, an open (blank or TBC) field in .ev-open. */
.ev-open{color:var(--yellow-ink);font-style:italic}
.ev-bad{color:var(--red-ink)}
.ev-yes{color:var(--green)}
.ev-read{flex-wrap:wrap}
/* Sync now (2026-11-20): the button in the "Planning sheet read" line, its chip, status words and run link. */
.ev-sync{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;align-self:center}
.ev-sync-btn{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;font-weight:600;border-radius:999px;border:1px solid var(--green);background:transparent;color:var(--green);padding:5px 12px;cursor:pointer;transition:.12s}
.ev-sync-btn:hover:not([aria-disabled=true]){background:var(--green);color:var(--on-solid)}
.ev-sync-btn[aria-disabled=true]{border-color:var(--stroke);color:var(--t3);cursor:default}
.ev-sync-btn:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.ev-sync-msg{font-family:var(--mono);font-size:11px;color:var(--t2)}
.ev-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:13px}
.ev-card{display:flex;flex-direction:column;gap:10px}
.ev-kicker{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--t2);display:flex;align-items:center;gap:8px}
.panel h3.ev-name{margin:0;font-family:var(--sans);font-size:20px;font-weight:600;letter-spacing:0;text-transform:none;line-height:1.25;color:var(--t1);display:block}
.panel h3.ev-name::before{content:none}
.ev-venue{color:var(--t2);font-size:13.5px}
.ev-q{margin:2px 0;padding:8px 0 8px 12px;border-left:2px solid var(--blue);color:var(--t1);font-size:13.5px;line-height:1.5}
.ev-dl{display:grid;grid-template-columns:150px 1fr;gap:6px 14px;margin:4px 0 0;font-size:13px}
.ev-dl dt{font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--t3);align-self:center}
.ev-dl dd{margin:0;color:var(--t1)}
.ev-flag{font-size:12.5px;padding:7px 10px;border-radius:8px;border:1px solid currentColor}
.ev-flag.bad{color:var(--red-ink)}
.ev-flag.warn{color:var(--orange)}
/* task timeline: an HTML grid (real text for the labels), a % axis on each track */
.gt{min-width:980px;font-size:12.5px}
.gt-row{display:grid;grid-template-columns:minmax(260px,32%) 1fr;align-items:stretch;border-bottom:1px solid var(--stroke-soft)}
.gt-lab{padding:5px 12px 5px 2px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.gt-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--t1)}
.gt-who{font-family:var(--mono);font-size:10px;color:var(--t3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gt-track{position:relative;min-height:34px}
.gt-head .gt-track{min-height:40px;border-bottom:1px solid var(--stroke)}
.gt-phase{background:color-mix(in srgb, var(--t1) 4%, transparent)}
.gt-phase .gt-lab{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;padding-left:8px}
.gt-phase .gt-lab .t3{text-transform:none;letter-spacing:0}
.gt-month,.gt-event,.gt-today,.gt-tick{position:absolute;top:0;bottom:0;width:0;pointer-events:none}
.gt-month{border-left:1px solid var(--stroke)}
.gt-tick{border-left:1px dotted var(--stroke-soft)}
.gt-event{border-left:2px solid var(--yellow)}
.gt-today{border-left:1.5px solid var(--blue)}
.gt-mlab,.gt-elab,.gt-tlab{position:absolute;font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;padding-left:4px}
.gt-mlab{top:4px;color:var(--t2)}
.gt-elab{bottom:3px;color:var(--yellow-ink)}
.gt-tlab{bottom:3px;color:var(--blue);transform:translateX(-100%);padding:0 4px 0 0}
.gt-span{position:absolute;top:50%;height:6px;margin-top:-3px;border-radius:3px;background:color-mix(in srgb, var(--t2) 35%, transparent)}
.gt-bar{position:absolute;top:50%;height:8px;margin-top:-4px;border-radius:4px;opacity:.45}
.gt-late{position:absolute;top:50%;height:0;border-top:2px dashed var(--red);margin-top:-1px}
.gt-mark,.gt-key{width:10px;height:10px;transform:rotate(45deg);border:2px solid var(--ink);background:var(--card);display:inline-block}
.gt-mark{position:absolute;top:50%;margin:-5px 0 0 -5px;z-index:1}
.gt-mark.solid,.gt-key.solid{background:var(--ink)}
.legend i.gt-key{width:9px;height:9px;border-radius:0}
.gt-date{position:absolute;top:50%;transform:translate(9px,-50%);font-family:var(--mono);font-size:10px;color:var(--t2);white-space:nowrap}
.gt-date.left{transform:translate(calc(-100% - 9px),-50%)}
.gt-task.late .gt-date{color:var(--red-ink)}
/* content & comms (the Content + Comms tab): its own group after the task phases, marked by a yellow rail */
.gt-phase.gt-content{background:color-mix(in srgb, var(--yellow) 8%, transparent);box-shadow:inset 3px 0 0 var(--yellow)}
.gt-task.gt-c .gt-lab{box-shadow:inset 3px 0 0 color-mix(in srgb, var(--yellow) 55%, transparent);padding-left:8px}
.gt-nodate{position:absolute;left:6px;top:50%;transform:translateY(-50%);font-family:var(--mono);font-size:10px;color:var(--t3);font-style:italic}
.gt-date.est,.ev-est{font-style:italic}
tr.ev-c td:first-child{box-shadow:inset 2px 0 0 var(--yellow)}
.ev-legend i.ln{width:14px;height:2px;border-radius:0}
.ev-table td.l{vertical-align:top}
.ev-notes{max-width:340px;font-size:12px;color:var(--t2)}
.ev-status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.ev-status::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ink)}
tr.ev-late td:first-child,tr.ev-fix td:first-child{box-shadow:inset 2px 0 0 var(--orange)}
tr.ev-fix.bad td:first-child{box-shadow:inset 2px 0 0 var(--red)}
/* roles: one closed <details> per role */
.ev-role-name{font-weight:600;color:var(--t1)}
.ev-role-who{color:var(--t2);font-size:13px}
.ev-role-counts{display:flex;justify-content:flex-end;gap:12px;font-family:var(--mono);font-size:11px;color:var(--t2)}
.ev-role-counts .raci-badge{width:20px;height:20px;font-size:10px;border-radius:6px}
.ev-bullets{margin:6px 0 4px;padding-left:18px;font-size:13px;line-height:1.55;color:var(--t1)}
.ev-bullets li{margin:3px 0}
.ev-bullets .raci-badge{width:auto;min-width:20px;height:18px;padding:0 4px;font-size:9.5px;border-radius:5px;vertical-align:1px}
.raci-badge.wide{width:auto;padding:0 6px}
.ev-raci th.raci-rolehead{height:150px}
.ev-raci .ev-rh-who{display:block;font-weight:400;color:var(--t3);text-transform:none;letter-spacing:0;margin-top:4px}
.ev-raci th.raci-rolehead.on,.ev-raci td.raci-cell.on{background:color-mix(in srgb, var(--blue) 8%, transparent)}
.ev-raci td.raci-activity{min-width:300px;max-width:440px;white-space:normal}
.ev-raci td.ev-timing{min-width:130px;max-width:190px;white-space:normal;font-family:var(--sans);font-size:12px}
.ev-raci td.ev-check{min-width:110px;white-space:normal}
.ev-raci tr.ev-grp td{font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--t2);padding-top:16px;border-bottom:1px solid var(--stroke)}
/* run of show: a strip per block, segment width ∝ minutes, ink = its lead */
.ros-block{margin-bottom:8px}
.ros-strip{display:flex;height:44px;border-radius:10px;overflow:hidden;margin:0 0 12px;background:var(--track);gap:2px}
.ros-seg{position:relative;min-width:2px;background:var(--ink);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:1px;padding:0 4px;overflow:hidden}
.ros-seg.nolead{background:repeating-linear-gradient(45deg,var(--stroke) 0 4px,transparent 4px 8px)}
/* the value ON the segment: --t1 on a --card plate, never on-ink text (the categorical inks are a MARK palette) */
.ros-t,.ros-m{font-family:var(--mono);white-space:nowrap;color:var(--t1);background:color-mix(in srgb, var(--card) 88%, transparent);border-radius:3px;padding:0 3px;line-height:1.35}
.ros-t{font-size:10px;font-weight:600}
.ros-m{font-size:9.5px}
.ros-checks{display:flex;flex-direction:column;gap:6px;margin:0 0 12px}
.ros-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.ros-slot{background:var(--card);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:3px;border:1px dashed var(--stroke)}
.ros-slot.on{border:1px solid var(--green)}
.ros-st{font-family:var(--mono);font-size:10.5px;color:var(--t2)}
.ros-sg{font-size:13px;color:var(--t3)}
.ros-slot.on .ros-sg{color:var(--t1)}
/* budget and guest bars: the bar is the budget (or the count), the darker bar inside it the actual */
.ev-barrow{display:grid;grid-template-columns:minmax(150px,34%) 1fr 168px;gap:12px;align-items:center;padding:7px 0;border-bottom:1px solid var(--stroke-soft);font-size:13px}
.ev-barrow:last-child{border-bottom:0}
.ev-bl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-bt{position:relative;height:12px;background:var(--track);border-radius:6px;overflow:hidden}
.ev-b{position:absolute;left:0;top:0;bottom:0;background:var(--blue);opacity:.55;border-radius:6px}
.ev-a{position:absolute;left:0;top:3px;bottom:3px;background:var(--blue);border-radius:3px}
.ev-bv{font-family:var(--mono);font-size:12px;white-space:nowrap;text-align:right}
.ev-av{color:var(--t2)}
.ev-pri{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;font-family:var(--mono);font-weight:600;font-size:11px;border:1px solid var(--stroke);color:var(--t2)}
.ev-pri.p-a{border-color:var(--green);color:var(--green)}
.ev-pri.p-b{border-color:var(--blue);color:var(--blue)}

/* Team load (Capacity Planning page; the Portfolio page's PM team load until 2026-11-17; rules in pm-load.js).
   The grid is the page's .hgrid / .hcell on the same heat ramp, and the rebalancing list is the attention rail's .att-row. New here: the mark of a cell
   whose load includes unsigned deals (a bar in the --unsigned status ink, never a wash: the band stays the
   utilisation's), the dashed unassigned-demand cell (the capacity page's unplaced-demand look), and the numbers
   column of a rebalancing row. */
#load-recs{margin-top:14px}
.hcell.pl-uns{box-shadow:inset 0 -3px 0 var(--unsigned)}
.hcell.pl-loose{background:color-mix(in srgb, var(--orange) 7%, transparent);border:1px dashed color-mix(in srgb, var(--orange) 45%, transparent);color:var(--orange);--hsub:var(--orange)}
.hgrid .pl-strong{font-weight:600}
.pl-led{margin-right:7px}
.legend i.pl-sw{display:inline-block;width:15px;height:9px;min-width:0;padding:0;margin-right:6px;box-shadow:inset 0 0 0 1px currentColor}
.legend i.pl-sw.pl-uns{background:var(--card2);box-shadow:inset 0 -3px 0 var(--unsigned),inset 0 0 0 1px var(--stroke)}
.att-row.pl-rec{grid-template-columns:132px minmax(0,1fr) minmax(0,1.25fr)}
.pl-rec .att-tag{display:inline-flex;align-items:center}
.pl-num{font-family:var(--mono);font-size:11.5px;line-height:1.5;color:var(--t2);text-align:right;overflow-wrap:anywhere}
@media(max-width:900px){
  .att-row.pl-rec{grid-template-columns:132px minmax(0,1fr)}
  .pl-num{grid-column:2;text-align:left}
}
.hgrid th.pl-group{padding-top:14px;color:var(--t2)}
/* Projected (2026-11-25, projected.js): the bookings forecast not yet on the board. A dotted outline marks an
   est. hour no program stands behind; the text stays the body ink (--blue is a mark here, never type). */
.hcell.pj-cell{background:transparent;border:1px dotted var(--blue);color:var(--t1);--hsub:var(--t3)}
.hcell.pj-with{box-shadow:inset 0 -3px 0 var(--blue)}
.legend i.pl-sw.pj-cell{background:var(--card2);border:1px dotted var(--blue);box-shadow:none}
.pipe-switch[data-switch="projected"] .seg button[data-val="on"][aria-pressed=true]{background:var(--t1);color:var(--inv)}
.pj .pj-ros{margin-top:0}
.pj-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:22px 0 8px;font-size:13px;font-weight:600;color:var(--t1)}
.pj-h span{font-size:11.5px;font-weight:500;color:var(--t3)}
.pj .tablewrap{max-width:860px}
.pj-grid td,.pj-grid th{height:34px}
.pj-grid tbody th{padding:5px 8px;text-align:left;font-weight:600;border-bottom:1px solid var(--stroke);vertical-align:middle}
.pj-grid .pj-q{vertical-align:top;padding-top:9px;white-space:nowrap}
.pj-grid .pj-strong{font-weight:600;color:var(--t1)}
.pj-grid .pj-sub{display:block;font-family:var(--sans);font-size:10.5px;font-weight:500;color:var(--t3);white-space:normal}
.pj-grid .dim{color:var(--t3)}
.pj .hgrid-wrap{padding:0;overflow-x:auto}
.pj-note{margin:8px 0 0;font-size:12px;color:var(--t3)}
.pj-ass{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px 22px}
.pj-as{display:flex;flex-direction:column;gap:3px;padding-left:12px;border-left:1px solid var(--stroke);font-size:12px;color:var(--t2);min-width:0}
.pj-as b{font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--t3)}
.pj-as .dim{color:var(--t3)}
/* the reader's month in the Team load grid: the months before it are past */
.hgrid th.pl-now{color:var(--t1);box-shadow:inset 0 -2px 0 var(--blue)}
/* Year stepper (Capacity Planning, 2026-11-17): previous · the year · next. One in the controls bar and one
   in each section head; flat, on the .seg pill so it reads as the same family of control. */
.ynav{display:inline-flex;align-items:stretch;border:1px solid var(--stroke);border-radius:999px;overflow:hidden;align-self:center}
.ynav button{font-family:var(--mono);font-size:14px;line-height:1;background:transparent;color:var(--t2);border:0;padding:7px 12px 8px;cursor:pointer;transition:.12s}
.ynav button:hover:not(:disabled){color:var(--t1);background:var(--track)}
.ynav button:disabled{color:var(--t3);opacity:.45;cursor:default}
.ynav button:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.ynav-cur{display:inline-flex;align-items:center;font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.08em;color:var(--t1);padding:0 10px;border-left:1px solid var(--stroke);border-right:1px solid var(--stroke);font-variant-numeric:tabular-nums}
.sec-head .ynav button{font-size:12px;padding:3px 9px 4px}
.sec-head .ynav-cur{font-size:10.5px;padding:0 8px}
/* 12 months + Avg + Peak: a long name wraps in the row header so the grid fits a laptop without scrolling */
.hgrid.pl-grid th.rowh{white-space:normal;min-width:128px;max-width:168px}
.panel[hidden]{display:none}
/* Allocation under the Team load grid (Capacity Planning, 2026-11-18): one bar per person, its programmes and
   internal work against a capacity tick. Rules in pm-load.js allocationOf. */
#load-alloc{margin-top:14px}
.al-row{display:grid;grid-template-columns:minmax(120px,190px) minmax(0,1fr) minmax(168px,auto);gap:12px;align-items:center;padding:6px 0}
.al-track{position:relative;height:18px}
.al-bar{display:flex;gap:2px;height:100%;align-items:stretch;min-width:2px}
.al-cap{position:absolute;top:-4px;bottom:-4px;width:2px;margin-left:-1px;background:var(--t1)}
.al-fig{font-size:11.5px;color:var(--t2);text-align:right;white-space:nowrap}
.al-fig b{color:var(--t1);margin-right:6px}
.al-fig b.al-over{color:var(--red-ink)}
.al-fig .al-sub{display:block;font-size:10px;color:var(--t3)}
/* The team and people pickers (Capacity Planning controls): a <details> whose summary looks like a select and
   whose menu holds tick boxes, so several teams or people are picked together. */
.mpick{position:relative}
.mpick>summary{list-style:none;cursor:pointer;font-family:var(--sans);font-size:14px;color:var(--t1);border:1px solid var(--stroke);
  border-radius:10px;padding:9px 38px 9px 12px;background:var(--card);min-width:150px;max-width:230px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;position:relative;user-select:none}
.mpick>summary::-webkit-details-marker{display:none}
.mpick>summary::after{content:"";position:absolute;right:14px;top:50%;width:6px;height:6px;margin-top:-5px;
  border-right:1.5px solid var(--t3);border-bottom:1.5px solid var(--t3);transform:rotate(45deg)}
.mpick>summary:hover{border-color:var(--t3)}
.mpick>summary:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.mpick>summary.on{border-color:var(--blue)}
.mpick[open]>summary::after{transform:rotate(225deg);margin-top:-1px}
.mpick-menu{position:absolute;z-index:30;top:calc(100% + 6px);left:0;min-width:270px;max-width:360px;max-height:min(420px,60vh);
  overflow:auto;background:var(--card);border:1px solid var(--stroke);border-radius:12px;padding:6px}
.ctl .mpick-item{display:flex;align-items:center;gap:9px;padding:6px 8px;border-radius:8px;font-family:var(--sans);font-size:13.5px;
  letter-spacing:0;text-transform:none;color:var(--t1);cursor:pointer}
.ctl .mpick-item:hover{background:var(--card2)}
.ctl .mpick-item input{accent-color:var(--blue);width:15px;height:15px;flex:none;margin:0}
.ctl .mpick-item>span{white-space:nowrap}
.ctl .mpick-item .t3{margin-left:auto;font-size:11.5px;padding-left:10px}
.mpick-group{font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--t3);padding:9px 8px 3px}
.mpick-clear{display:block;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--stroke);
  padding:7px 8px 9px;margin-bottom:4px;font-family:var(--mono);font-size:11px;letter-spacing:.06em;color:var(--blue);cursor:pointer}
.mpick-clear:hover{color:var(--t1)}
.mpick-clear:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}

/* AI-Enablement pages (2026-11-18, docs/AI-ENABLEMENT.md): the not-connected state spans the card strip; the next
   gate's column is marked; a forecast cell in the month grid is dim and italic (an actual is not). */
.kpi-grid > .state{grid-column:1/-1}
.ai-connect{text-align:left;line-height:1.6}
.ai-connect a{color:var(--blue)}
.cost-table .ai-fc{color:var(--t3);font-style:italic}
.ai-grid th,.ai-grid td{padding-left:6px;padding-right:6px;white-space:nowrap}
.cost-table td.ai-metric{max-width:360px;white-space:normal;font-size:12.5px;color:var(--t2)}
.ai-measures td .subv{max-width:320px;white-space:normal}
/* AI-Enablement, the visual pass (18 Nov 2026): bar rows (a track, the value's bar, a budget tick), the two-up panels,
   the measure tiles with their meter, the workflow status strip. Colour only from tokens. */
.ai-sub{font-size:11px;font-family:var(--mono);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--t2);margin:0 0 12px}
.ai-sub::before{content:"// ";color:var(--t3)}
.ai-sub-gap{margin-top:18px}
.ai-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width:900px){.ai-split{grid-template-columns:1fr}}
.ai-bars{display:flex;flex-direction:column;gap:9px}
.ai-bars + .ai-bars{margin-top:14px;padding-top:12px;border-top:1px dashed var(--stroke)}
.ai-bar{display:grid;grid-template-columns:minmax(120px,170px) minmax(0,1fr) auto;gap:12px;align-items:center}
.ai-bar-l{font-size:12.5px;color:var(--t1);line-height:1.25}
.ai-bar-l small{display:block;font-family:var(--mono);font-size:10px;color:var(--t3)}
.ai-bar-t{position:relative;height:12px;background:var(--track);border-radius:2px}
.ai-bar-t i{position:absolute;left:0;top:0;bottom:0;border-radius:2px}
.ai-tick{position:absolute;top:-4px;bottom:-4px;width:2px;margin-left:-1px;background:var(--t1);border-radius:1px}
.ai-bar-v{font-family:var(--mono);font-size:12px;color:var(--t1);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.ai-bar-v .t3,.ai-bar-v .ai-over{font-size:10.5px;margin-left:4px}
.ai-over{color:var(--red-ink)}
.ai-key{display:flex;gap:14px;margin-top:14px;font-family:var(--mono);font-size:10.5px;color:var(--t3)}
.ai-key span{display:inline-flex;align-items:center;gap:6px}
.ai-key i{display:inline-block;width:12px;height:8px;border-radius:2px}
.ai-key-s{background:var(--cat1)}
.ai-key-f{background:var(--cat1);opacity:.38}
.ai-key-t{width:2px !important;height:12px !important;background:var(--t1)}
.ai-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}
.ai-tile{background:var(--card);border-radius:var(--radius-lg);padding:14px 15px 12px;display:flex;flex-direction:column;gap:8px;outline:1px solid var(--edge, transparent);outline-offset:-1px}
.ai-tile-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ai-tile-l{font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--t3)}
.ai-tile-n{font-size:12.5px;color:var(--t2);line-height:1.3;min-height:2.6em}
.ai-tile-n a{color:inherit;text-decoration:none}
.ai-tile-n a:hover{color:var(--t1);text-decoration:underline}
.ai-tile-v{font-size:24px;font-weight:600;color:var(--t1);line-height:1.1;font-variant-numeric:tabular-nums}
.ai-tile-v small{display:inline-block;margin-left:8px;font-family:var(--mono);font-size:10.5px;font-weight:400;color:var(--t3)}
.ai-meter{height:4px;background:var(--track);border-radius:2px;position:relative;overflow:hidden}
.ai-meter i{position:absolute;left:0;top:0;bottom:0;border-radius:2px}
.ai-tile-t{font-family:var(--mono);font-size:10px;color:var(--t3);line-height:1.4}
.ai-tile-t b{color:var(--t2);font-weight:600}
.ai-cat-sw{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:7px;vertical-align:baseline}
.ai-strip{display:flex;height:22px;border-radius:3px;overflow:hidden;gap:2px;margin:4px 0 10px}
.ai-strip span{min-width:6px}

/* Finance Snapshot page (2026-11-19): page-finance.js */
.fs-table th,.fs-table td{padding-left:6px;padding-right:6px}
.fs-table td.fs-prog{min-width:190px;max-width:270px;white-space:normal}
.fs-table td.fs-f{color:var(--t2);font-style:italic}
.fs-table td.fs-year{font-weight:600}
.fs-table tr.fs-share td{font-size:11px;color:var(--t3);border-top:0;font-weight:400;padding-top:2px;padding-bottom:2px}
.fs-table tr.pipe-total td:first-child,.fs-table tr.fs-share.pipe-total td:first-child{color:var(--unsigned)}
.fs-table th .subv{font-weight:400;text-transform:none;letter-spacing:0}
/* Finance Snapshot charts (2026-11-19): one bar a programme or a cost line, its parts named under it */
.fs-bars{display:flex;flex-direction:column}
.fs-brow{display:grid;grid-template-columns:minmax(150px,240px) 1fr 86px;column-gap:14px;row-gap:5px;align-items:center;padding:9px 0;border-bottom:1px solid var(--stroke-soft, var(--stroke))}
.fs-brow:last-of-type{border-bottom:0}
.fs-bname{min-width:0;font-size:13px;line-height:1.25}
.fs-bname .prog-name{overflow:hidden;text-overflow:ellipsis}
.fs-bsub{display:block;font-family:var(--mono);font-size:10px;color:var(--t3);margin-top:2px}
.fs-btrack{display:flex;height:16px;background:var(--track);border-radius:2px;overflow:hidden;min-width:0}
.fs-seg{display:block;height:100%;flex:none;border-right:1px solid var(--card)}
.fs-seg:last-child{border-right:0}
.fs-seg.pipe{background-image:repeating-linear-gradient(45deg,color-mix(in srgb, var(--card) 55%, transparent) 0 3px,transparent 3px 6px)}
.fs-btot{font-family:var(--mono);font-size:13px;font-weight:600;text-align:right;color:var(--t1);font-variant-numeric:tabular-nums}
.fs-btot span{display:block;font-size:10px;font-weight:400;color:var(--t3)}
.fs-bparts{grid-column:2 / 4;display:flex;flex-wrap:wrap;gap:4px 14px;font-family:var(--mono);font-size:10.5px;color:var(--t2);font-variant-numeric:tabular-nums}
.fs-bparts span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.fs-bparts b{color:var(--t1);font-weight:600}
.fs-bparts i,.fs-dot{display:inline-block;width:9px;height:9px;border-radius:2px;flex:none}
.fs-dot{margin-right:7px;vertical-align:-1px}
.fs-bhead{display:flex;justify-content:space-between;align-items:baseline;margin:16px 0 2px;padding-bottom:6px;border-bottom:1px solid var(--stroke);font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--t2)}
.fs-bhead b{font-size:12px;letter-spacing:0;color:var(--t1)}
.fs-bhead.pipe{color:var(--unsigned)}
.fs-more{margin-top:10px;align-self:flex-start}
.fs-tlabel{font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--t2);margin:18px 0 8px}
#detail-section .sec-head .cta{margin-top:0}

/* ============================================================================
   v5 "WORKBENCH" FRAME (2026-11-22, docs/REDESIGN-V5.md §2)
   The rail (the team sections as icons) and the pane (the section's pages, the view switches, "Go to
   program") replace the stacked header. data.js renderHeader draws both as <body> children before .wrap
   (markup: shell.js). Everything here applies only under <html data-shell="v5">, which theme-boot.js stamps
   before first paint on every page that draws the frame; "bare" (404.html, the redirect stubs) keeps the rules
   above untouched. (The ?shell=classic fallback, the header as it was, went in session O16, 2026-11-24.)

   The frame is a three-column grid on <body>: rail · pane · work area (.wrap). The rail and the pane are
   sticky, a full window high, and scroll on their own. A page on the pattern (<body class="v5-page">, every
   nav page since session O15) takes the fixed-height work area (the spec §3); a page without the class (an
   event's Run of show, switched off) keeps the WINDOW as what scrolls its work area.

   The columns are reserved from the first paint: until the module script has drawn the rail and the pane, a
   hard-stopped background (two flat blocks, no tonal gradient) holds their place in their own colours, so a
   page load does not flash or jump.
   ========================================================================== */
:root[data-shell="v5"] body{
  padding:0;display:grid;align-items:start;min-height:100vh;
  grid-template-columns:[rail] var(--rail-w) [pane] var(--pane-w) [work] minmax(0,1fr);
  background-image:linear-gradient(90deg,var(--rail) 0 var(--rail-w),var(--card) var(--rail-w) calc(var(--rail-w) + var(--pane-w)),transparent calc(var(--rail-w) + var(--pane-w)));
  background-attachment:fixed;background-repeat:no-repeat}
:root[data-shell="v5"] body>*{grid-column:work}
:root[data-shell="v5"] body>.rail{grid-column:rail}
:root[data-shell="v5"] body>.pane{grid-column:pane}
/* a page's own row of view controls, emptied because its switches moved to the pane (data.js paneSlot): the
   author display:flex on .controls would beat the UA [hidden] rule and leave an empty 18px row */
.controls[hidden]{display:none}
:root[data-shell="v5"] .wrap{grid-row:1;width:100%;min-width:0;margin:0;max-width:calc(1360px + 2 * var(--work-pad));padding:18px var(--work-pad) 56px}
:root[data-shell="v5"] .pagehead{margin-top:0}
:root[data-shell="v5"] .mission-control-title{font-size:22px;letter-spacing:-.015em;line-height:1.2}
:root[data-shell="v5"] .sub{font-size:13px;margin-top:4px}
:root[data-shell="v5"] body.presenting{display:block}   /* the Board slides view covers the window */
:root[data-shell="v5"] body.presenting>.rail,:root[data-shell="v5"] body.presenting>.pane{display:none}

/* --- rail --- */
.rail{grid-row:1;position:sticky;top:0;height:100vh;z-index:60;overflow:hidden auto;
  background:var(--rail);color:var(--rail-ink);font-family:var(--sans);
  display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 0 10px}
.rail-mark{display:block;line-height:0;border-radius:9px;margin-bottom:8px;flex:none}
.rail-mark img{display:block;border-radius:9px}
.rail-mark:focus-visible{outline:2px solid var(--rail-ink-on);outline-offset:2px}
.rail-items{display:flex;flex-direction:column;align-items:center;gap:4px}
.rail-btn{width:56px;flex:none;padding:8px 0 6px;border:0;border-radius:10px;background:none;color:var(--rail-ink);cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:4px;text-decoration:none;
  font-family:var(--sans);font-size:9.5px;font-weight:600;line-height:1.1;letter-spacing:.02em}
.rail-btn:hover{color:var(--rail-ink-on);background:var(--rail-hover)}
.rail-btn.on{color:var(--rail-ink-on);background:var(--rail-on);box-shadow:inset 3px 0 0 var(--rail-ok)}
.rail-btn.off,.rail-btn.off:hover{opacity:.5;cursor:default;background:none;color:var(--rail-ink)}
.rail-btn:focus-visible{outline:2px solid var(--rail-ink-on);outline-offset:-2px}
.rail-pages{display:none}          /* the stand-alone Pages button: drawn only on a page the nav does not know, shown when the pane is collapsed (below) */
.rail-sp{flex:1 0 8px}
/* --- the section flyout (2026-11-23): hover or focus a section that is not the current one and its pages open
   beside it, so the way to a page starts at its own section. The flyout is fixed to the window (the rail clips
   and scrolls, a fixed box is not clipped); data.js wireFlyouts sets --fly-top to the button's top. The outer box
   starts at the button's right edge and its first 6px are empty: that bridges the gap between the button and the
   panel, so the pointer never leaves .rail-it on its way across. It opens after 120ms (a pointer crossing the rail
   opens nothing) and closes at once when the pointer moves to another section. Flat, like the pane: no shadow. --- */
.rail-it{position:relative;width:56px;flex:none}
.rail-fly{position:fixed;left:calc(var(--rail-w) - 6px);top:var(--fly-top,12px);z-index:5;padding-left:6px;
  visibility:hidden;opacity:0;transition:opacity .1s linear .16s,visibility 0s linear .26s}
.rail-it:hover>.rail-fly,.rail-it:focus-within>.rail-fly{visibility:visible;opacity:1;transition-delay:.12s,.12s}
.rail-items:hover .rail-it:not(:hover):not(:focus-within)>.rail-fly,
.rail-it[data-fly="shut"]>.rail-fly{visibility:hidden;opacity:0;transition:none}
.rail-fly-in{width:224px;max-height:calc(100vh - 16px);overflow:hidden auto;box-sizing:border-box;padding:10px 8px 8px;
  background:var(--card);border:1px solid var(--tick);border-radius:10px;
  color:var(--t1);font-family:var(--sans);font-size:13px;font-weight:400;letter-spacing:0;line-height:1.3;text-align:left}
.rail-fly h2{margin:0 8px 8px;font-size:14px;font-weight:600;letter-spacing:-.005em;line-height:1.25;color:var(--t1)}
.rail-fly h3{margin:12px 8px 6px;font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--t3);line-height:1.3}
.rail-fly h2+h3{margin-top:4px}
.rail-btn[aria-expanded=true]{color:var(--rail-ink-on);background:var(--rail-hover)}
@media (prefers-reduced-motion:reduce){.rail-fly{transition:visibility 0s linear .16s}}
/* "Synced <date>" and the pipeline LED at the rail's foot (data.js renderTelemetry, mountHealthLed) */
.rail .telemetry{display:block;border:0;border-radius:0;background:none;overflow:visible;margin:0 0 4px;flex:none}
.rail .tele{padding:0;border:0;align-items:center;gap:3px;width:60px;text-align:center}
.rail .tele .tlabel{font-family:var(--sans);font-size:9.5px;font-weight:600;letter-spacing:.02em;text-transform:none;color:var(--rail-ink)}
.rail .tele .tval{font-family:var(--mono);font-size:9.5px;line-height:1.3;color:var(--rail-ink-on);white-space:normal;flex-direction:column;gap:5px;text-align:center}
.rail .health-led.health-green{background:var(--rail-ok)}
.rail .health-led.health-amber{background:var(--rail-warn)}
.rail .health-led.health-red{background:var(--rail-bad)}
.rail a.health-led:focus-visible{outline-color:var(--rail-ink-on)}

/* --- pane --- */
.pane{grid-row:1;position:sticky;top:0;height:100vh;z-index:55;overflow:hidden auto;
  background:var(--card);border-right:1px solid var(--stroke);color:var(--t1);
  font-family:var(--sans);font-size:13px;display:flex;flex-direction:column;padding:14px 10px 14px}
.pane>*{flex:none}
.pane-brand{margin:0 8px 2px;font-size:11px;font-weight:600;color:var(--t3)}
.pane h2{margin:0 8px 10px;font-size:14px;font-weight:600;letter-spacing:-.005em;line-height:1.25}
/* a group label: the one place the frame keeps small capitals (two words at most, in the sans face) */
.pane h3{margin:14px 8px 6px;font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--t3);line-height:1.3}
.pane h3 label{font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit}
.pane-nav h3:first-child{margin-top:4px}
.pg{display:block;padding:5px 8px;border-radius:7px;color:var(--t2);text-decoration:none;line-height:1.3}
.pg:hover{background:var(--card2);color:var(--t1)}
.pg[aria-current=page]{background:var(--sel-wash);color:var(--t1);font-weight:600}
.pg[aria-current=true]{color:var(--t1);font-weight:600}          /* a parent (an event): its pages follow */
.pg.off,.pg.off:hover{opacity:.5;cursor:default;background:none;color:var(--t3);font-weight:400}
.pg:focus-visible{outline:2px solid var(--sel);outline-offset:-1px}
.pg-sub{margin:1px 0 4px 12px;padding-left:6px;border-left:1px solid var(--stroke)}
.pg3{font-size:12.5px;padding:4px 8px}
/* the View section: the scope switch and the Pipeline / Committed switches a page mounts (data.js paneSlot).
   It shows only while a slot holds a control. */
#pane-view:not(:has(.seg)){display:none}
.pane-slot{margin:0 4px 8px}
.pane-slot[hidden],.pane-slot:empty{display:none}
.pane .seg{display:flex;flex-direction:column;width:100%;border-radius:var(--r-ctl)}
.pane .seg button{font-family:var(--sans);font-size:12.5px;font-weight:500;line-height:1.3;letter-spacing:0;text-transform:none;text-align:left;
  border-left:0;border-top:1px solid var(--stroke);padding:6px 10px}
.pane .seg button:first-child{border-top:0}
.pane .seg button[aria-pressed=true]{background:var(--sel-wash);color:var(--t1);font-weight:600;box-shadow:inset 3px 0 0 var(--sel)}
.pane .seg button:focus-visible{outline-color:var(--sel)}
.pane .pipe-switches{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.pane .pipe-switch.ctl{display:flex;flex-direction:column;align-items:stretch;gap:4px}
.pane .ctl label{font-family:var(--sans);font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--t2);padding:0 4px}
.pane .pipe-switch .seg{flex-direction:row}
.pane .pipe-switch .seg button{flex:1;text-align:center;border-top:0;border-left:1px solid var(--stroke);box-shadow:none}
.pane .pipe-switch .seg button:first-child{border-left:0}
.pane .pipe-switch .seg button[data-val="off"][aria-pressed=true]{background:var(--track);color:var(--t1);box-shadow:none}
.pane-picker select{width:100%;margin:0 4px;max-width:calc(100% - 8px);font-size:12.5px;padding:7px 32px 7px 10px;border-radius:var(--r-ctl)}
.pane-foot{margin-top:auto;padding:18px 8px 0;display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--t3)}
.pane-foot .pc{font-family:var(--sans);font-size:11px;letter-spacing:0;text-transform:none;color:var(--t3);white-space:normal}
.pane-foot a{color:var(--sel-ink);text-decoration:none;align-self:flex-start}
.pane-foot a:hover{text-decoration:underline}
.pane-foot a:focus-visible{outline:2px solid var(--sel);outline-offset:2px;border-radius:4px}

/* --- the Settings button (2026-11-26, Benjamin: "a prominent Settings or configuration button with a cog … a different
   color"): the first thing in every framed page's top bar, a solid green button (the brand accent, which no other bar
   control uses filled). Under 1250px it opens and closes the pane over the page, like the current section's rail
   button; at 1250px and wider, where the pane is already a column, it takes the focus to the pane's View (else
   Filter) section and lights it briefly, so the button does one job in one place at every width (data.js wirePane). */
.settings-btn{flex:none;display:inline-flex;align-items:center;gap:6px;padding:6px 12px 6px 10px;border:0;border-radius:var(--r-ctl);
  font-family:var(--sans);font-size:13px;font-weight:600;line-height:1.3;white-space:nowrap;cursor:pointer;
  background:var(--green);color:var(--on-solid)}
.settings-btn:hover{background:color-mix(in srgb,var(--green) 86%,var(--t1))}
.settings-btn:focus-visible{outline:2px solid var(--t1);outline-offset:2px}
.settings-btn[aria-expanded=true] svg{transform:rotate(60deg)}
.settings-btn svg{transition:transform .15s linear}
.pane-sec{border-radius:var(--r-ctl);outline:2px solid transparent;outline-offset:1px;transition:background .6s linear,outline-color .6s linear}
.pane-sec.pane-lit{background:var(--sel-wash);outline-color:var(--sel);transition:none}
@media (prefers-reduced-motion:reduce){.settings-btn svg,.pane-sec.pane-lit{transition:none}}

/* --- width rules (the spec §5): under 1250px the pane leaves the frame and opens over the page from the
   CURRENT section's rail button (#pane-toggle; <html data-pane="open">, data.js wirePane). The button carries a
   chevron there, which turns when the pane is open; no flyout shows while the pane is open (it would sit under it) --- */
@media (max-width:1249.98px){
  :root[data-shell="v5"] body{grid-template-columns:[rail] var(--rail-w) [work] minmax(0,1fr);
    background-image:linear-gradient(90deg,var(--rail) 0 var(--rail-w),transparent var(--rail-w))}
  .pane{position:fixed;left:var(--rail-w);top:0;bottom:0;width:232px;height:auto;z-index:70;display:none}
  :root[data-pane="open"] .pane{display:flex}
  .rail-pages{display:flex}
  :root[data-pane="open"] .rail-pages{color:var(--rail-ink-on);background:var(--rail-on)}
  a#pane-toggle{position:relative}
  a#pane-toggle::after{content:"";position:absolute;right:5px;top:50%;width:5px;height:5px;margin-top:-4px;
    border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .12s linear}
  :root[data-pane="open"] a#pane-toggle::after{transform:rotate(135deg);right:3px}
  :root[data-pane="open"] .rail-fly{display:none}
}

/* ============================================================================
   v5 PAGE PATTERN (2026-11-22, session F2 — docs/REDESIGN-V5.md §3 and §10)
   What every converted page is made of: the bar (views · row filter · Export), the figures strip, ONE sheet
   per view (a grid with bars inside its cells, a board, or a chart) and the inspector. The markup is
   pattern.js; components.js places and wires it. Tokens only, both themes.

   A converted page carries <body class="v5-page">: in the v5 frame its work area is one window high, the bar
   and the figures are fixed rows and the body scrolls inside. A page without the class keeps the window
   scroll (F1): an event's Run of show, switched off, is the one such page.
   ========================================================================== */
:root[data-shell="v5"] body.v5-page{height:100vh;min-height:0;overflow:hidden;align-items:stretch}
:root[data-shell="v5"] body.v5-page>.wrap{height:100vh;max-width:none;padding:0;display:flex;flex-direction:column;overflow:hidden auto}
:root[data-shell="v5"] .v5-page #topbar{flex:none;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:9px var(--work-pad);background:var(--card);border-bottom:1px solid var(--stroke)}
:root[data-shell="v5"] .v5-page .pagehead{margin:0}
:root[data-shell="v5"] .v5-page .mission-control-title{font-size:17px;line-height:1.3;white-space:nowrap}
:root[data-shell="v5"] .v5-page .pmain{flex:1 1 auto}
:root[data-shell="v5"] .v5-page .pbody{flex:1 1 auto;min-height:220px;overflow:auto;display:flex;flex-direction:column}
:root[data-shell="v5"] .v5-page .pbody>.sheet{flex:0 1 auto;min-height:0;overflow:auto}
:root[data-shell="v5"] .v5-page footer{flex:none;margin:0;padding:6px var(--work-pad);border-top:1px solid var(--stroke);background:var(--card);font-size:10.5px}
/* on paper the work area is not one window high: the whole page prints */
@media print{
  :root[data-shell="v5"] body.v5-page,:root[data-shell="v5"] body.v5-page>.wrap{height:auto;overflow:visible}
  :root[data-shell="v5"] .v5-page .pbody,:root[data-shell="v5"] .v5-page .pbody>.sheet{overflow:visible}
}

/* --- the bar: views · row filter · count · Export --- */
.pbar{display:flex;align-items:center;gap:8px 12px;flex:1 1 430px;min-width:0}
.views{display:inline-flex;flex:0 1 auto;min-width:0;gap:2px;padding:2px;background:var(--card2);border:1px solid var(--stroke);border-radius:var(--r-ctl);overflow-x:auto}
.views button{font-family:var(--sans);font-size:13px;font-weight:500;line-height:1.3;white-space:nowrap;padding:4px 10px;border:0;border-radius:6px;background:none;color:var(--t2);cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.views button:hover{color:var(--t1)}
.views button[aria-pressed=true]{background:var(--card);color:var(--t1);font-weight:600;outline:1px solid var(--stroke);outline-offset:-1px}
.views button:focus-visible{outline:2px solid var(--sel);outline-offset:-1px}
.views-n{font-family:var(--mono);font-size:10.5px;font-weight:500;color:var(--t3)}
.find{display:flex;align-items:center;gap:7px;height:30px;padding:0 9px;border:1px solid var(--stroke);border-radius:var(--r-ctl);background:var(--card);color:var(--t3);flex:0 1 190px;min-width:104px}
.find input[type=search]{border:0;border-radius:0;outline:0;background:none;width:100%;min-width:0;padding:0;font-size:13px}
.find input[type=search]:focus-visible{outline:0}
.find:focus-within{outline:2px solid var(--sel);outline-offset:1px}
.pbar-right{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:1 1 0;min-width:0}
.pbar-note{font-size:12px;color:var(--t3);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.pbtn{font-family:var(--sans);font-size:13px;font-weight:500;line-height:1.3;padding:4px 10px;border:1px solid var(--stroke);border-radius:var(--r-ctl);background:var(--card);color:var(--t2);cursor:pointer;flex:none}
.pbtn:hover{color:var(--t1);border-color:var(--t3)}
.pbtn:focus-visible{outline:2px solid var(--sel);outline-offset:1px}

/* --- the figures strip: five at most, a number and what it is out of --- */
.figs{display:flex;flex:none;padding:10px var(--work-pad);background:var(--card);border-bottom:1px solid var(--stroke);overflow-x:auto}
.figs:empty{display:none}
/* the figures share the row; a long "out of" line wraps under its number before the strip has to scroll */
.fig{flex:0 1 auto;min-width:118px;padding:0 18px;border-left:1px solid var(--stroke)}
.fig:first-child{padding-left:0;border-left:0}
.fig-l{font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;color:var(--t3)}
.fig-l a{color:inherit;text-decoration:none}
.fig-l a:hover{color:var(--sel-ink);text-decoration:underline}
.fig-l a:focus-visible{outline:2px solid var(--sel);outline-offset:2px;border-radius:3px}
.fig-v{display:flex;align-items:center;gap:6px;margin-top:1px;white-space:nowrap;font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:1.3;font-variant-numeric:tabular-nums}
.fig-v small{font-size:11.5px;font-weight:500;letter-spacing:0;color:var(--t3)}
.fig-v .dot{margin-right:-2px}
.fig-v.fig-pipe{color:var(--unsigned)}
.fig-v.fig-committed{color:var(--committed-ink)}
.fig-s{margin-top:1px;font-size:11.5px;color:var(--t3)}
.fig-s .pipe-aside{margin:0}

/* --- status words and inks inside the pattern (text inks: every one clears 4.5:1 on every surface) --- */
:is(.pmain,.insp) .bad{color:var(--red-ink)}
:is(.pmain,.insp) .warn{color:var(--committed-ink)}
:is(.pmain,.insp) .dim{color:var(--t3)}
:is(.pmain,.insp) .uns{color:var(--unsigned)}
:is(.pmain,.insp) .com{color:var(--committed-ink)}
:is(.pmain,.insp) .num{font-family:var(--mono);font-size:12px;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.dot.green{background:var(--green)} .dot.amber{background:var(--orange)} .dot.red{background:var(--red)}
.dot.none{background:var(--tick)} .dot.uns{background:var(--unsigned)} .dot.com{background:var(--committed)}
.st{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--t2);white-space:nowrap}

/* --- the body and the sheet --- */
.pmain{display:flex;flex-direction:column;min-height:0;min-width:0}
/* position:relative: the body is the scroller, so anything absolutely placed inside it (a screen-reader-only
   caption, a chart's label) must be measured from it, or it escapes the clip and lets the frame itself scroll */
.pbody{position:relative;padding:12px var(--work-pad) 14px;min-width:0;container-type:inline-size}
/* the flight-console switch, in the pattern's type (sentence case, the sans face) */
.pmain .seg button{font-family:var(--sans);font-size:12.5px;font-weight:500;letter-spacing:0;text-transform:none;padding:6px 12px}
.pmain .seg{border-radius:var(--r-ctl)}
/* a sheet wider than its place scrolls inside itself, in either shell: nothing sets the page's minimum width */
.sheet{background:var(--card);border:1px solid var(--stroke);border-radius:var(--r-sheet);min-width:0;max-width:100%;overflow:auto}
.sheet-pad{padding:14px 16px}
.sheet-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;padding:8px 12px;border-bottom:1px solid var(--stroke);font-size:12px;color:var(--t2)}
.sheet-head>b{font-weight:600;color:var(--t1)}
.sheet-tools{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-width:0;max-width:100%}
.sheet-note{margin-left:auto;color:var(--t3);text-align:right;min-width:0}
.sheet-fact b{font-weight:600;color:var(--t2)}
.sheet-fact [data-n=value]{font-family:var(--mono);font-weight:600;color:var(--t1)}
.sheet-asides{color:var(--t3)}
.sheet .phead-row h3{font-size:13px;font-weight:600;letter-spacing:0}
.sheet-chart>#dw-wrap{padding:2px 12px 12px}
.sheet-chart .chart{margin-top:8px}
/* two sheets side by side (the Costs view); one column when the body is narrow */
.pcols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));gap:12px;align-items:start}

/* --- the grid: the name first with its code beneath, figures right-aligned in mono, a bar inside the cell --- */
table.grid{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.grid thead th{position:sticky;top:0;z-index:2;height:30px;padding:0 8px;background:var(--card2);border-bottom:1px solid var(--stroke);
  font-family:var(--sans);font-size:10.5px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;text-align:left;white-space:nowrap;color:var(--t3)}
.grid thead th:first-child{border-top-left-radius:var(--r-sheet)}
.grid thead th:last-child{border-top-right-radius:var(--r-sheet)}
.grid th.r,.grid td.r{text-align:right}
.th-sort{font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.th-sort:hover{color:var(--t1)}
.th-sort:focus-visible{outline:2px solid var(--sel);outline-offset:2px;border-radius:3px}
.grid th[aria-sort]{color:var(--t1)}
/* the flight-console tables set every cell in mono, right-aligned (the rules near the top of this file): the grid
   reads in the sans face, left-aligned, and only its figures (.num, td.num) are mono */
.grid td{height:40px;padding:5px 8px;border-bottom:1px solid var(--stroke);white-space:nowrap;vertical-align:middle;
  font-family:var(--sans);font-variant-numeric:normal;text-align:left}
.grid tr:last-child td{border-bottom:1px solid var(--stroke)}
.grid tbody tr:last-child td{border-bottom:0}
.grid td.num{font-family:var(--mono);font-size:12px;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.grid tr.row{cursor:pointer}
.grid tr.row:hover td{background:var(--card2)}
.grid tr.row.sel td{background:var(--sel-wash)}
.grid tr.row.sel td:first-child{box-shadow:inset 3px 0 0 var(--sel)}
.grid tr.row:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
.grid td.nm{white-space:normal;min-width:190px;max-width:320px}
/* a grid wider than its sheet scrolls inside it; the name column stays in view */
.grid td.nm,.grid thead th:first-child{position:sticky;left:0;background:var(--card)}
.grid thead th:first-child{z-index:3;background:var(--card2)}
.grid td.nm{z-index:1}
/* in a narrow sheet (the inspector open on a laptop) the window keeps its bar and drops its dates */
@container (max-width:1000px){
  .tl-t{display:none}
  .grid td,.grid thead th{padding-left:6px;padding-right:6px}
  .grid td.nm{min-width:168px}
  .ib{width:34px;margin-left:6px}
  .tl{width:70px}
}
.nm-top{display:flex;align-items:center;flex-wrap:wrap;gap:3px 6px}
.nm-top>b{font-weight:500;color:var(--t1)}
.nm-top .tag,.kc-t .tag{margin-left:0;padding:1px 6px;font-size:9px}
.nm-top .chip,.kc-t .chip{padding:1px 6px;font-size:9px}
.nm-sub{display:block;margin-top:1px;font-family:var(--mono);font-size:10.5px;color:var(--t3)}
/* a group: its name and its own sums on one line; the Pipeline group in the unsigned ink, after the signed ones */
.grid tr.grp th{position:sticky;top:30px;z-index:1;height:32px;padding:6px 8px;background:var(--card2);border-bottom:1px solid var(--stroke);
  font-family:var(--sans);font-size:12px;font-weight:600;letter-spacing:0;text-transform:none;text-align:left;white-space:normal;color:var(--t1)}
.grp-n{margin-left:10px;font-size:11.5px;font-weight:400;color:var(--t3)}
.grid tr.grp.pipeline .grp-l{color:var(--unsigned)}
.grid tr.grp.muted .grp-l{color:var(--t3)}
.grid tr.gfoot td{height:auto;padding:7px 8px;background:var(--card2);font-size:11.5px;color:var(--t2);white-space:normal;text-align:left}
/* a foot written cell by cell keeps its columns: a figure stays under its header */
.grid tr.gfoot td.r{text-align:right}
.gf-l{margin-right:12px;font-weight:600}
.gf-i{display:inline-block;margin-right:14px;white-space:nowrap}
.gf-i b{font-weight:600;color:var(--t1)}
.gf-n{color:var(--t3)}
.nx-late{font-size:11px}
/* the bar after a number: a share of the measure's maximum or target; <u> is the target's tick */
.ib{display:inline-block;position:relative;vertical-align:middle;width:50px;height:6px;margin-left:8px;border-radius:3px;background:var(--track)}
.ib b{position:absolute;inset:0 auto 0 0;border-radius:3px;background:var(--blue)}
.ib b.green,.pb b.green,.tl b.green{background:var(--green)}
.ib b.amber,.pb b.amber,.tl b.amber{background:var(--orange)}
.ib b.red,.pb b.red,.tl b.red{background:var(--red)}
.ib b.uns,.pb b.uns{background:var(--unsigned)}
.ib b.com,.pb b.com{background:var(--committed)}
.ib b.muted,.pb b.muted,.tl b.muted{background:var(--tick)}
.ib u,.pb u,.tl u{position:absolute;top:-3px;bottom:-3px;width:1.5px;background:var(--t1);text-decoration:none}
/* a window on a shared axis; <u> is today. An unsigned deal's window is hatched, as on the Timeline. */
.tl-w{display:inline-flex;align-items:center;gap:8px}
.tl{display:inline-block;position:relative;width:92px;height:10px;border-left:1px solid var(--stroke);border-right:1px solid var(--stroke);flex:none}
.tl b{position:absolute;top:2px;height:6px;border-radius:3px;background:var(--blue)}
.tl b.hatch-uns{background:repeating-linear-gradient(45deg,var(--unsigned) 0 2px,color-mix(in srgb,var(--unsigned) 22%,transparent) 2px 5px)}
.tl b.hatch-com{background:repeating-linear-gradient(45deg,var(--committed) 0 2px,color-mix(in srgb,var(--committed) 22%,transparent) 2px 5px)}
.tl-t{font-size:11.5px;color:var(--t2);font-variant-numeric:tabular-nums}

/* --- the board: lanes of cards --- */
.sheet.sheet-board{background:none;border:0;border-radius:0}
.board{display:grid;grid-template-columns:repeat(var(--lanes,4),minmax(196px,1fr));gap:10px;align-items:start}
.lane{min-width:0;padding:8px;background:var(--card2);border:1px solid var(--stroke);border-radius:var(--r-sheet)}
.lane h4{display:flex;flex-direction:column;gap:2px;margin:2px 4px 8px;font-size:12px;font-weight:600}
.lane-n{font-family:var(--mono);font-size:10.5px;font-weight:400;color:var(--t3);line-height:1.5}
.kc{display:block;width:100%;margin-bottom:6px;padding:8px 10px;text-align:left;font:inherit;color:inherit;background:var(--card);border:1px solid var(--stroke);border-radius:8px;cursor:pointer}
.kc:last-child{margin-bottom:0}
.kc:hover{border-color:var(--t3)}
.kc.sel{border-color:var(--sel);outline:1px solid var(--sel)}
.kc:focus-visible{outline:2px solid var(--sel);outline-offset:1px}
.kc-t{display:flex;flex-wrap:wrap;align-items:center;gap:3px 6px}
.kc-t b{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.kc-m{display:flex;align-items:center;margin-top:5px;font-family:var(--mono);font-size:10.5px;color:var(--t3)}
.kc-m .dot{margin-right:6px}
.kc-meta{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kc-v{margin-left:auto;padding-left:8px;font-size:12px;color:var(--t1)}

/* --- a list view in a sheet (the Portfolio's Attention): the rows select like grid rows --- */
.sheet-att .att{max-height:none;overflow:visible;margin:0;padding:0 14px}
.sheet-att .att-filter{margin-top:0}
.sheet-att .state{margin:14px}
.att-row.row{cursor:pointer}
.att-row.row:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
/* the Timeline's selected row (charts.js .dw-hit, marked by the page) */
.dw-hit.sel{stroke:var(--sel);stroke-width:1.5}
.att-row.row:hover{background:var(--card2)}
.att-row.row.sel{background:var(--sel-wash)}

/* --- the pane's Filter section: a converted page's own row filters (data.js paneSlot 'filter') --- */
#pane-filters:not(:has(select,.seg)){display:none}
#pane-filter .ctl{display:flex;flex-direction:column;gap:4px;margin-bottom:8px}
#pane-filter .ctl select{width:100%;font-size:12.5px;padding:7px 32px 7px 10px;border-radius:var(--r-ctl)}
.pane #group-toggle .seg{flex-direction:row}
.pane #group-toggle .seg button{flex:1;text-align:center;border-top:0;border-left:1px solid var(--stroke);box-shadow:none}
.pane #group-toggle .seg button:first-child{border-left:0}

/* --- the inspector: the selected row opened in place. A drawer by default (under
   1100px); a column of the frame at 1100px and wider (the spec §5). --- */
.insp{display:none;position:fixed;top:0;right:0;bottom:0;z-index:66;width:min(var(--insp-w),calc(100vw - var(--rail-w)));
  padding:14px 18px 28px;overflow:hidden auto;background:var(--card);border-left:1px solid var(--stroke);color:var(--t1);font-family:var(--sans);font-size:13px}
:root[data-insp="open"] .insp{display:block}
@media (min-width:1100px){
  :root[data-shell="v5"][data-insp="open"] body.v5-page{grid-template-columns:[rail] var(--rail-w) [work] minmax(0,1fr) [insp] var(--insp-w)}
  :root[data-shell="v5"] body.v5-page>.insp{position:relative;grid-column:insp;grid-row:1;width:auto;height:100vh;z-index:auto}
}
@media (min-width:1250px){
  :root[data-shell="v5"][data-insp="open"] body.v5-page{grid-template-columns:[rail] var(--rail-w) [pane] var(--pane-w) [work] minmax(0,1fr) [insp] var(--insp-w)}
}
.insp-top{display:flex;align-items:center}
.insp-k{font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--t3)}
.insp-x{margin-left:auto;padding:0 7px;border:0;border-radius:6px;background:none;color:var(--t3);font-size:20px;line-height:1.3;cursor:pointer}
.insp-x:hover{background:var(--card2);color:var(--t1)}
.insp-x:focus-visible,.insp a:focus-visible{outline:2px solid var(--sel);outline-offset:1px;border-radius:4px}
.insp-h{margin:4px 0 6px;font-size:19px;font-weight:600;letter-spacing:-.02em;line-height:1.25;overflow-wrap:anywhere}
.insp-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.insp-tags .tag{margin-left:0}
.insp-meta{margin-bottom:12px;font-size:12px;line-height:1.5;color:var(--t2)}
.insp-open{display:block;margin-bottom:14px;padding:7px;text-align:center;font-weight:600;color:var(--sel-ink);text-decoration:none;border:1px solid var(--stroke);border-radius:var(--r-ctl)}
.insp-open:hover{background:var(--sel-wash)}
.q{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--stroke);border:1px solid var(--stroke);border-radius:var(--r-sheet);overflow:hidden}
.q>div{min-width:0;padding:9px 11px;background:var(--card)}
.q-l{font-size:11px;color:var(--t3)}
.q-v{margin-top:1px;font-size:17px;font-weight:600;letter-spacing:-.02em;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.q-v .est,.q-v .dim{font-size:14px;letter-spacing:0}
.q-s{display:flex;flex-wrap:wrap;align-items:center;gap:3px 6px;margin-top:2px;font-size:11px;color:var(--t3)}
.q-s .chip{padding:1px 7px;font-size:9.5px}
.insp-sec h3{display:flex;align-items:baseline;gap:10px;margin:18px 0 8px;font-size:12px;font-weight:600}
.insp-sec h3 span{margin-left:auto;font-size:11.5px;font-weight:400;color:var(--t3);text-align:right}
.pb{position:relative;height:8px;border-radius:4px;background:var(--track)}
.pb b{position:absolute;inset:0 auto 0 0;border-radius:4px;background:var(--blue)}
.pb b.light{opacity:.35}
.pb u{width:2px}
.pbl{display:flex;justify-content:space-between;gap:10px;margin-top:4px;font-size:11px;color:var(--t3)}
.pbl.top{margin:0 0 4px}
.pbl b{font-weight:500;color:var(--t1)}
.pbl .num{font-size:11px}
.insp-kpi{margin-bottom:9px}
.facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 12px;margin:16px 0 0;font-size:12px;line-height:1.45}
.facts dt{color:var(--t3)}
.facts dd{margin:0;min-width:0;color:var(--t2);overflow-wrap:anywhere}
.facts a,.insp-more,.insp-links a{color:var(--sel-ink);text-decoration:none}
.facts a:hover,.insp-more:hover,.insp-links a:hover{text-decoration:underline}
.il{display:flex;gap:10px;padding:6px 0;border-bottom:1px solid var(--stroke-soft);font-size:12.5px;line-height:1.4}
.il:last-child{border-bottom:0}
.il-d{flex:none;min-width:44px;font-size:11px;color:var(--t3)}
.il-d .chip{padding:1px 7px;font-size:9.5px}
.il-t{min-width:0;color:var(--t2);overflow-wrap:anywhere}
.insp-none{margin:0;font-size:12px;color:var(--t3)}
.insp-more{display:inline-block;margin-top:6px;font-size:12px}
.insp-links{display:flex;gap:16px;margin-top:18px;font-size:12px}
/* one small column per month (direct cost by month): solid = actual, light = forecast; the foot mark is this month */
.mbars{display:flex;align-items:flex-end;gap:2px;height:72px;border-bottom:1px solid var(--stroke)}
.mbar{position:relative;display:flex;align-items:flex-end;flex:1 1 0;min-width:0;max-width:26px;height:100%}
.mbar i{display:block;width:100%;border-radius:2px 2px 0 0;background:var(--blue)}
.mbar i.light{opacity:.4}
.mbar i.uns{background:var(--unsigned)}
.mbar i.com{background:var(--committed)}
.mbar.now::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:2px;background:var(--t1)}

/* --- the insights strip: up to three insights, each from ONE rule of insights.js (plan §5), each a framed card
       (2026-11-26, Benjamin: "very text-heavy … put some frames around it … highlighting whether it's good or bad").
       A card carries its level three ways, never by colour alone: a coloured edge, an icon and a word. The section's
       name links to the page that holds the detail. Cards sit on the canvas, three at most to a row. --- */
.pins{flex:none;padding:9px var(--work-pad) 11px;background:var(--bg);border-bottom:1px solid var(--stroke)}
.pins[hidden]{display:none}
.pins-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin-bottom:7px;font-size:11.5px;color:var(--t3)}
.pins-h b{font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.pins-l{display:grid;gap:10px;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,max(250px,calc((100% - 20px) / 3))),1fr))}
.pin{--lv-mark:var(--tick);--lv-ink:var(--t2);
  position:relative;display:flex;flex-direction:column;gap:5px;min-width:0;margin:0;padding:8px 12px 10px 12px;
  background:var(--card);border:1px solid var(--stroke);border-left:4px solid var(--lv-mark);border-radius:var(--r-ctl)}
.pin.l-act{--lv-mark:var(--red);--lv-ink:var(--red-ink)}
.pin.l-watch{--lv-mark:var(--orange);--lv-ink:var(--orange-ink)}
.pin.l-ok{--lv-mark:var(--green);--lv-ink:var(--green-ink)}
.pin-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.pin-sec{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--t3)}
.pin-sec a{color:inherit;text-decoration:none}
.pin-sec a:hover{color:var(--sel-ink);text-decoration:underline}
.pin-sec a:focus-visible{outline:2px solid var(--sel);outline-offset:2px;border-radius:3px}
.pin-lv{flex:none;display:inline-flex;align-items:center;gap:5px;padding:2px 8px 2px 6px;border-radius:999px;
  font-size:11px;font-weight:600;line-height:1.35;white-space:nowrap;color:var(--lv-ink);background:color-mix(in srgb,var(--lv-mark) 14%,var(--card))}
.pin-lv svg{flex:none}
.pin-t{margin:0;font-size:12.5px;line-height:1.45;color:var(--t2)}
.pin-hd{display:block;font-size:13.5px;font-weight:600;line-height:1.35;color:var(--t1)}
.pin-hd strong{font-weight:700;font-size:15px;font-variant-numeric:tabular-nums}
.pin-sep{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}
.pin-sub{display:block;margin-top:2px}
.pins-none{margin:0;font-size:12.5px;color:var(--t3)}
/* the cards fold to ONE line (2026-11-25, Benjamin: "taking up the majority of the space … needs to scroll up with
   the rest of the page or disappear somehow"). The strip is a fixed row, so components.js adds .min once the body is
   scrolled, or when the reader presses Hide (kept in the browser). Folded, each card keeps its edge, its level icon,
   its section and its headline, cut to the room; the supporting line and the note wait behind Show. */
.pins-tg{margin-left:auto;flex:none;display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border:1px solid var(--stroke);
  border-radius:var(--r-ctl);background:var(--card);color:var(--t2);font-family:var(--sans);font-size:11.5px;font-weight:500;line-height:1.4;cursor:pointer}
.pins-tg:hover{color:var(--t1);border-color:var(--tick)}
.pins-tg:focus-visible{outline:2px solid var(--sel);outline-offset:2px}
.pins.min .pins-tg svg{transform:rotate(180deg)}
.pins.min{display:flex;align-items:center;gap:10px;padding-block:6px}
.pins.min .pins-h{display:contents}
.pins.min .pins-h>span{display:none}
.pins.min .pins-h>b{flex:none;font-size:10.5px;color:var(--t3)}
.pins.min .pins-l{order:1;flex:1 1 0;min-width:0;display:flex;gap:8px}
.pins.min .pins-tg{order:2}
.pins.min .pin{flex:1 1 0;flex-direction:row;align-items:center;gap:7px;padding:3px 10px 3px 8px}
.pins.min .pin-top{display:contents}
.pins.min .pin-lv{order:-1;padding:0;gap:0;font-size:0;background:none}
.pins.min .pin-sec{flex:0 1 auto;max-width:45%}
.pins.min .pin-t{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pins.min .pin-hd{display:inline;font-size:12.5px}
.pins.min .pin-hd strong{font-size:inherit}
.pins.min .pin-sub{display:none}

/* ============================================================================
   LEADERSHIP OVERVIEW (v5, session F3 — docs/redesign-v5/PAGES.md §2)
   One page across every team: a grid of blocks, each a sheet that ends in a link to its detail page. The body
   scrolls; a block is as tall as its content. Tokens only; the unsigned and Committed inks mark the pipeline.
   ========================================================================== */
.ov-src{display:flex;flex-wrap:wrap;gap:3px 16px;margin:0 0 10px;font-size:11.5px;line-height:1.5;color:var(--t3)}
.ov-src b{font-weight:500;color:var(--t2)}
.ov-src .ov-src-h{font-weight:600}
.ov-src .chip{padding:0 6px;font-size:9.5px}
.ov-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px}
.ov-b{grid-column:span 12}
/* side by side once the work area is wide enough; below that every block takes the full width */
@container (min-width:980px){
  .ov-revenue{grid-column:span 5} .ov-coming{grid-column:span 3} .ov-financials{grid-column:span 4}
  .ov-grid.nopipe .ov-revenue,.ov-grid.nopipe .ov-financials{grid-column:span 6}
  .ov-capacity{grid-column:span 7} .ov-risks{grid-column:span 5}
}
.ov-b .sheet-note{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;align-items:baseline;gap:2px 12px}
.ov-b a:focus-visible{outline:2px solid var(--sel);outline-offset:2px;border-radius:3px}
.ov-more{font-weight:500;white-space:nowrap;color:var(--sel-ink);text-decoration:none}
.ov-more:hover{text-decoration:underline}
.ov-none{margin:8px 0 0;font-size:12px;line-height:1.45;color:var(--t3)}
.ov-sub{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 10px;margin:14px 0 6px;font-size:11.5px;font-weight:600;color:var(--t2)}
.ov-sub .ov-more{font-weight:500}
.ov-q .ov-sub{margin-top:0}
.ov-q+.ov-q{margin-top:12px}
/* the unsigned and Committed hatch, as on the Timeline */
.ov-b .hatch-uns,.ov-b .s-uns{background:repeating-linear-gradient(45deg,var(--unsigned) 0 2px,color-mix(in srgb,var(--unsigned) 22%,transparent) 2px 5px)}
.ov-b .hatch-com,.ov-b .s-com{background:repeating-linear-gradient(45deg,var(--committed) 0 2px,color-mix(in srgb,var(--committed) 22%,transparent) 2px 5px)}
.ov-b .s-signed{background:var(--blue)}
/* small readouts in a row */
.ov-minis{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:1px;margin-top:12px;background:var(--stroke);border:1px solid var(--stroke);border-radius:var(--r-ctl);overflow:hidden}
.ov-minis.three{margin-top:0}
.ov-minis>div{min-width:0;padding:7px 10px;background:var(--card)}
.ov-minis span{display:block;font-size:11px;color:var(--t3)}
.ov-minis b{font-size:15px;font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.ov-pb{height:12px;border-radius:6px}
.ov-pb b{border-radius:6px}
.ov-revenue .pbl{flex-wrap:wrap}
/* one bar per row: a label, a track, its figure */
.ov-hb{display:grid;grid-template-columns:118px minmax(30px,1fr) auto;align-items:center;gap:10px;padding:3px 0;font-size:12px;color:var(--t2)}
.ov-financials .ov-hb{grid-template-columns:58px minmax(30px,1fr) auto}
.ov-hb-l{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ov-hb-t{position:relative;display:block;height:8px;border-radius:4px;background:var(--track)}
.ov-hb-t b{position:absolute;inset:0 auto 0 0;border-radius:4px;background:var(--blue)}
.ov-hb-t b.light{opacity:.35}
.ov-hb-t b.uns{background:var(--unsigned)}
.ov-qb{display:flex;gap:2px;height:10px;margin-bottom:4px}
.ov-qb b{display:block;height:100%;border-radius:3px}
.ov-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:3px 0;font-size:12px}
.ov-row a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--t1);text-decoration:none}
.ov-row a:hover{color:var(--sel-ink);text-decoration:underline}
.ov-row .num{flex:none}
/* one stacked column per month; the figures stand above each column (the pipeline beside the signed one) */
.ov-cols{display:flex;align-items:flex-end;gap:6px;height:156px;margin-top:6px}
.ov-col{flex:1 1 0;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px}
.ov-col-v{display:flex;flex-direction:column;align-items:center;font-family:var(--mono);font-size:10.5px;line-height:1.25;white-space:nowrap;color:var(--t2)}
.ov-col-v b{font-weight:500;color:var(--t1)}
.ov-col-b{flex:1 1 auto;min-height:0;width:100%;max-width:46px;display:flex;flex-direction:column-reverse;justify-content:flex-start;border-bottom:1px solid var(--tick)}
.ov-col-b i{display:block;width:100%;min-height:2px}
.ov-col-b i:last-child{border-radius:2px 2px 0 0}
.ov-col-m{font-size:10.5px;white-space:nowrap;color:var(--t3)}
.ov-col-m small{font-size:9.5px}
.ov-col.now .ov-col-m{font-weight:600;color:var(--t1)}
.ov-lg{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:11px;color:var(--t3)}
.ov-lg i{display:inline-block;width:11px;height:8px;margin-right:5px;border-radius:2px}
.ov-lg i.k-se{display:none}
.ov-se{display:flex;gap:6px;margin-top:4px}
.ov-se span{flex:1 1 0;min-width:0;text-align:center;font-family:var(--mono);font-size:10.5px;white-space:nowrap}
.ov-se b{font-weight:500;color:var(--t1)}
.ov-se b.dn{margin-left:3px;color:var(--t3)}
.ov-se i{font-style:normal;color:var(--t3)}
/* delivery: the chart, and four facts beside it */
.ov-del{display:grid;grid-template-columns:minmax(0,1fr);gap:16px 20px}
.ov-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;align-content:start}
@container (min-width:980px){ .ov-del{grid-template-columns:minmax(0,1fr) 256px} .ov-facts{grid-template-columns:minmax(0,1fr)} }
.ov-fact{display:block;padding:8px 10px;border:1px solid var(--stroke);border-radius:var(--r-ctl);color:inherit;text-decoration:none}
.ov-fact:hover{border-color:var(--t3)}
.ov-fact b{display:block;font-size:13.5px;font-weight:600;color:var(--t1)}
.ov-fact span{display:block;font-size:11.5px;line-height:1.4;color:var(--t3)}
/* the calendar ahead: five lanes on one axis */
.ov-calendar .sheet-pad{overflow:hidden}
.ov-cl{display:grid;grid-template-columns:128px minmax(0,1fr) 28px;align-items:start;gap:10px;border-top:1px solid var(--stroke-soft)}
.ov-cl.ov-cl-h{border-top:0}
.ov-cl-n,.ov-cl-c{padding-top:5px;font-size:12px;color:var(--t2)}
.ov-cl-t{position:relative;height:28px}
.ov-cl-t::before{content:"";position:absolute;left:0;right:0;top:13px;height:1px;background:var(--stroke)}
.ov-cm{position:absolute;top:9px;width:9px;height:9px;margin-left:-4.5px;border-radius:2px;background:var(--blue)}
.ov-cm.c-renewal{border-radius:50%;background:var(--yellow)}
.ov-cm.c-contract{top:6px;width:3px;height:15px;margin-left:-1.5px;border-radius:1px;background:var(--t1)}
.ov-cm.c-plan{width:8px;height:8px;margin-left:-4px;background:var(--green);transform:rotate(45deg)}
.ov-cm.c-event{border-radius:50%;background:var(--cat4)}
.ov-cl-ls{display:flex;flex-wrap:wrap;gap:1px 14px;padding:0 0 7px;font-size:11px;line-height:1.5;color:var(--t2)}
.ov-cl-ls b{font-weight:500;color:var(--t3)}
.ov-cl-c{text-align:right}
.ov-cl-ax{position:relative;height:16px}
.ov-ct{position:absolute;top:0;padding-left:4px;border-left:1px solid var(--stroke);font-size:10.5px;white-space:nowrap;color:var(--t3)}
/* capacity by team: the Capacity Planning page's heat cells, a team per row */
.ov-capacity .hgrid-wrap{padding:6px 10px 10px}
.ov-cap{table-layout:fixed}
.ov-cap th{font-family:var(--sans);font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;padding:4px 2px}
.ov-cap th.rowh{width:150px;padding-left:4px;white-space:normal}
.ov-cap .rlab{display:block;font-size:12.5px}
.ov-cap .rrole{font-family:var(--sans);font-size:11px;font-weight:400;line-height:1.35;white-space:normal}
.ov-cap .rrole a{color:var(--sel-ink);text-decoration:none}
.ov-cap .rrole a:hover{text-decoration:underline}
.ov-cap .hcell{position:relative;min-width:0;padding:7px 0;overflow:hidden}
.ov-cap .hcell s{position:absolute;left:0;bottom:0;height:3px;background:var(--unsigned);text-decoration:none}
.ov-cap td.ov-na{padding:6px 8px;font-family:var(--sans);font-size:11.5px;line-height:1.45;text-align:left;white-space:normal;color:var(--t3)}
.ov-cap td.ov-na.ov-gap{padding:6px 2px;text-align:center}
/* priority risks: the score, the risk, its program */
.ov-risk{display:flex;align-items:flex-start;gap:10px;padding:7px 0;border-bottom:1px solid var(--stroke-soft);color:inherit;text-decoration:none}
.ov-risk:last-of-type{border-bottom:0}
.ov-risk:first-child{padding-top:0}
.ov-sc{flex:none;min-width:28px;padding:2px 0;border-radius:6px;text-align:center;font-family:var(--mono);font-size:12px;font-weight:600}
.ov-sc.b-high{background:var(--heat5-bg);color:var(--heat5-fg)}
.ov-sc.b-mid{background:var(--heat4-bg);color:var(--heat4-fg)}
.ov-sc.b-low{background:var(--heat3-bg);color:var(--heat3-fg)}
.ov-rk{min-width:0}
.ov-rk b{display:block;font-size:12.5px;font-weight:500;line-height:1.35;color:var(--t1)}
.ov-rk span{display:block;font-size:11.5px;color:var(--t3)}
.ov-risk:hover .ov-rk b{color:var(--sel-ink)}

/* ============================================================================
   CAPACITY PLANNING (v5, session F4 — docs/redesign-v5/PAGES.md §3)
   The page's own pieces on the pattern: its controls in the pane's Filter section, the heat grid inside a sheet
   (a row selects), the person inspector's month-by-month lines. Tokens only; classes of its own (.cpl-*, .pim*).
   ========================================================================== */
/* --- the controls in the pane: a switch reads across, a picker opens in place --- */
#pane-filter .cpl-seg .seg{flex-direction:row}
#pane-filter .cpl-seg .seg button{flex:1 1 0;min-width:0;text-align:center;padding:6px 2px;border-top:0;border-left:1px solid var(--stroke);box-shadow:none}
#pane-filter .cpl-seg .seg button:first-child{border-left:0}
#pane-filter .ynav{align-self:stretch;border-radius:var(--r-ctl)}
#pane-filter .ynav-cur{flex:1;justify-content:center;font-family:var(--sans);font-size:12.5px;letter-spacing:0}
#pane-filter .mpick>summary{min-width:0;max-width:none;font-size:12.5px;padding:7px 30px 7px 10px;border-radius:var(--r-ctl)}
#pane-filter .mpick>summary::after{right:12px}
#pane-filter .mpick>summary:focus-visible,#pane-filter .ynav button:focus-visible{outline-color:var(--sel)}
#pane-filter .mpick>summary.on{border-color:var(--sel)}
/* the pane clips what leaves it, so a picker's menu opens in the flow, under its summary */
#pane-filter .mpick-menu{position:static;min-width:0;max-width:none;max-height:264px;margin-top:4px;padding:4px;border-radius:var(--r-ctl)}
#pane-filter .mpick-item{gap:7px;padding:5px 6px;font-size:12.5px;align-items:flex-start}
#pane-filter .mpick-item>span{white-space:normal;min-width:0;overflow-wrap:anywhere}
#pane-filter .mpick-item .t3{flex:none;max-width:44%;font-size:10.5px;padding-left:4px;text-align:right}
#pane-filter .mpick-item input{margin-top:1px;accent-color:var(--sel)}
#pane-filter .mpick-clear{font-family:var(--sans);font-size:12px;letter-spacing:0;color:var(--sel-ink)}
#pane-filter .mpick-group{font-family:var(--sans);font-size:10.5px;font-weight:600;letter-spacing:.04em;padding:8px 6px 2px}
.cpl-chips{gap:6px}
.cpl-chips .chip{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.cpl-rule{margin:2px 4px 0;font-size:11px;line-height:1.45;color:var(--t3)}
.cpl-rule b{font-weight:600;color:var(--t2)}
.cpl-rule .cpl-lens{color:var(--sel-ink)}

/* --- a view's sheet: its switches in the pattern's type, its count line at the right --- */
.cpl-sheet .sheet-head{position:sticky;left:0}
.cpl-lab{font-size:12px;color:var(--t3)}
.cpl-toolrow{display:inline-flex;align-items:center;gap:8px}
.cpl-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-bottom:8px}
.cpl-tools .seg{margin-right:8px}
.cpl-tools-n{margin-left:auto;font-size:11.5px;color:var(--t3);min-width:0}
.cpl-sheet .legend{padding:8px 12px 10px}
.cpl-sheet .sheet-pad .legend{padding:8px 0 0}
.cpl-sheet .state{margin:14px}
.cpl-sheet .al-chart{margin-top:0}
.cpl-none{margin:0;padding:12px 14px;font-size:12.5px;color:var(--t3)}
.cpl-sheet .att{max-height:none;overflow:visible;margin:0}

/* --- the heat grid inside a sheet: the sheet scrolls it, its months and its names stay in view --- */
.cpl-sheet .hgrid-wrap{overflow:visible;padding:0 10px}
.cpl-sheet .hgrid thead th{position:sticky;top:0;z-index:2;background:var(--card);padding-top:9px;padding-bottom:7px;
  font-family:var(--sans);font-size:10.5px;letter-spacing:.03em}
.cpl-sheet .hgrid th.rowh{position:sticky;left:0;z-index:1;background:var(--card)}
.cpl-sheet .hgrid thead th.rowh{z-index:3}
/* the row header in the pattern's type: the name in the sans face, its role beneath (the code line of a grid) */
.cpl-sheet .hgrid tbody th.rowh{font-family:var(--sans);font-size:12px;font-weight:400;letter-spacing:0;text-transform:none;white-space:normal;
  min-width:148px;max-width:196px;padding:3px 8px 3px 6px;color:var(--t2)}
.cpl-sheet .hgrid tbody th[colspan]{position:sticky;left:0;font-weight:600;color:var(--t1)}
.cpl-sheet .hgrid .rlab{font-size:13px}
.cpl-sheet .hgrid .rrole{font-size:10.5px;line-height:1.35}
.cpl-sheet .hcell{padding:4px 3px}
.cpl-sheet .hcell .sub{margin-top:0;line-height:1.3}
.cpl-sheet .hgrid tr.row{cursor:pointer}
.cpl-sheet .hgrid tr.row .hcell{cursor:pointer}
.cpl-sheet .hgrid tr.row:hover th.rowh{background:var(--card2)}
.cpl-sheet .hgrid tr.row.sel th.rowh{background:var(--sel-wash);box-shadow:inset 3px 0 0 var(--sel)}
.cpl-sheet .hgrid tr.row.sel th.rowh .rlab{padding-left:5px}
.cpl-sheet .hgrid tr.row:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
/* an Allocation row selects like a grid row */
.cpl-sheet .al-row.row{cursor:pointer;padding-left:6px;padding-right:6px;border-radius:6px}
.cpl-sheet .al-row.row:hover{background:var(--card2)}
.cpl-sheet .al-row.row.sel{background:var(--sel-wash);box-shadow:inset 3px 0 0 var(--sel)}
.cpl-sheet .al-row.row:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
/* a grid cell that holds a small chart (Plan vs actual: the plan rule over the tracked bar) */
.cpl-sheet .grid td svg{display:block}

/* --- Plan vs actual: the per-period strip under the grid --- */
.cpl-strip-h{font-size:11.5px;color:var(--t3)}
.cpl-strip{display:flex;flex-wrap:wrap;margin:6px 0 2px;border:1px solid var(--stroke);border-radius:var(--r-sheet);overflow:hidden}
.cpl-strip-c{flex:1;min-width:74px;text-align:center;padding:8px 4px;border-left:1px solid var(--stroke)}
.cpl-strip-c:first-child{border-left:0}
.cpl-strip-t{font-size:10.5px;font-weight:600;color:var(--t3)}
.cpl-strip-v{margin-top:3px;font-family:var(--mono);font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--t1)}
.cpl-strip-s{font-family:var(--mono);font-size:10.5px;color:var(--t3)}

/* --- the person inspector: one line per month (the committed load, the unsigned hours over it, a tick at
       capacity), the allocation's names, a rebalancing line's detail --- */
.pim-l{display:flex;flex-direction:column;gap:5px}
.pim{display:grid;grid-template-columns:28px minmax(0,1fr) 76px 46px;align-items:center;gap:8px;font-size:11.5px}
.pim-m{color:var(--t3)}
.pim .num{font-size:11px;text-align:right;color:var(--t2);white-space:nowrap}
.pim .pim-p{color:var(--t1)}
.pim .pim-p.bad{color:var(--red-ink)}
.pia-n{min-width:0;overflow-wrap:anywhere}
.pia-n a{color:var(--sel-ink);text-decoration:none;font-weight:500}
.pia-n a:hover{text-decoration:underline}
.pir .il-d{display:inline-flex;align-items:baseline;gap:6px;min-width:86px;color:var(--t2)}
.pir .il-d .dot{flex:none;width:7px;height:7px;border-radius:50%;align-self:center}
.pir .il-t b{font-weight:500;color:var(--t1)}
.pir-d{display:block;margin-top:2px;font-size:11.5px;color:var(--t3)}
.insp .il-t a[data-sel-go]{color:var(--sel-ink);text-decoration:none}
.insp .il-t a[data-sel-go]:hover{text-decoration:underline}

/* ============================================================================
   RISKS (v5, session O1, 2026-11-22: docs/REDESIGN-V5.md §10, plan §6) — the page's own rules after the pattern.
   Tokens only; text inks through the pattern's classes (bad · warn · dim · uns).
   ========================================================================== */
.rsc{display:inline-block;min-width:22px;font-weight:600;text-align:right}
.rk{display:inline-block;max-width:46ch;white-space:normal;line-height:1.35;color:var(--t2)}
.rsev{display:inline-flex;align-items:center;gap:10px;font-family:var(--mono);font-size:12px}
.rsev-i{display:inline-flex;align-items:center;gap:4px}
.rsev-i .dot{width:7px;height:7px;border-radius:50%}
.grid td.nm .nm-top>b{white-space:normal}
#risk-all .grid td.nm,#risk-priority .grid td.nm,#risk-cell .grid td.nm{min-width:260px;max-width:380px}
#risk-by-program .rk{min-width:240px}
.insp:has(.rmini) .insp-h{font-size:16px;line-height:1.35}
/* Matrix: the grid with the severity mix under it, the picked cell's risks beside it */
.rmx{display:grid;grid-template-columns:minmax(0,440px) minmax(0,1fr);gap:12px;align-items:start}
@container (max-width:760px){.rmx{grid-template-columns:minmax(0,1fr)}}
.rmx>.sheet{max-height:100%}
.rmx-a .hm-wrap{margin:0 auto}
.rmix{margin-top:14px;max-width:360px}
.rmix .kv{padding:6px 0;font-size:12.5px}
.rmix .kv .dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:2px}
.rmix-h{margin:14px 0 2px;font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--t3)}
.rcell-x{cursor:pointer;font:inherit;font-size:11px;border:0}
/* the inspector: where the risk sits (impact up, likelihood across), the mitigation, the other open risks */
.rmini{display:inline-grid;grid-template-columns:repeat(5,9px);grid-auto-rows:9px;gap:2px;margin-top:4px}
.rmini i{display:block;border-radius:2px;background:var(--track)}
.rmini i.on{background:var(--sel)}
.rmini i.on.b-high{background:var(--red)}
.rmini i.on.b-mid{background:var(--orange)}
.rmini i.on.b-low{background:var(--blue)}
.insp-txt{margin:0;font-size:12.5px;line-height:1.5;color:var(--t2);white-space:pre-line;overflow-wrap:anywhere}
.il-btn{width:100%;text-align:left;font:inherit;background:none;border:0;border-bottom:1px solid var(--stroke-soft);cursor:pointer;color:inherit}
.il-btn:hover .il-t{color:var(--t1)}
.il-btn:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
.il-btn .rsc{min-width:0}
.rmix .dot.low,.rsev .dot.low{background:var(--blue)}

/* ============================================================================
   P&L AND FINANCE SNAPSHOT (v5, session O2, 2026-11-22: docs/REDESIGN-V5.md §10) — the two finance pages' own
   rules after the pattern. The tables and charts are the pages' own (cost-table, fs-*), moved into a sheet as they
   were: the SHEET scrolls them (the pinned header and Σ rows stick to it), the name column stays in view, a row
   selects like a grid row. Tokens only; text inks through the pattern's classes.
   ========================================================================== */
.pnl-sheet .sheet-head{position:sticky;left:0;z-index:5}
.pnl-sheet .tablewrap,.pnl-sheet .tablewrap.pinned{max-height:none;overflow:visible;border-radius:0;padding:0 6px}
.pnl-sheet .tablewrap.pinned thead{top:0}
/* the Σ rows (up to four) stay at the table's end: pinned, they would leave a short sheet a few rows of body */
.pnl-sheet .tablewrap.pinned tfoot{position:static}
.pnl-sheet .cost-table td:first-child,.pnl-sheet .cost-table th:first-child{position:sticky;left:0;z-index:1;background:var(--card)}
.pnl-sheet .cost-table thead th:first-child,.pnl-sheet .cost-table tfoot td:first-child{z-index:4}
.pnl-sheet .cost-table tbody tr.pipe-head td:first-child{position:static}
.pnl-sheet .cost-table tr.row{cursor:pointer}
.pnl-sheet .cost-table tr.row:hover td{background:var(--card2)}
.pnl-sheet .cost-table tr.row.sel td{background:var(--sel-wash)}
.pnl-sheet .cost-table tr.row.sel td:first-child{box-shadow:inset 3px 0 0 var(--sel)}
.pnl-sheet .cost-table tr.row:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
.pnl-sheet .legend{padding:8px 12px 10px}
.pnl-sheet>.state{margin:14px}
.pnl-facts{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;font-size:12px;color:var(--t2)}
.pnl-facts .sheet-fact b{font-weight:600;color:var(--t2)}
.pnl-facts .pipe-aside{font-size:11.5px}
/* Finance Snapshot: a chart sheet is padded; a programme bar or a detail row selects */
.fin-sheet .sheet-pad{min-width:0}
.fin-sheet .fs-bhead:first-of-type{margin-top:6px}
.fin-sheet .fs-brow.row{cursor:pointer;padding-left:6px;padding-right:6px;border-radius:6px}
.fin-sheet .fs-brow.row:hover{background:var(--card2)}
.fin-sheet .fs-brow.row.sel{background:var(--sel-wash);box-shadow:inset 3px 0 0 var(--sel)}
.fin-sheet .fs-brow.row:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
.fin-sheet .fs-tlabel:first-child{margin-top:4px}
.fin-sheet .fnote{margin:12px 0 0}

/* ============================================================================
   WEEKLY SNAPSHOT (v5, session O3 — docs/REDESIGN-V5-PLAN.md §7)
   One view, This week: a grid of blocks, each a sheet. New and Cleared side by side once the work area is wide
   enough; the body scrolls. Tokens only; the unsigned and Committed inks through the pattern's classes.
   ========================================================================== */
.wk-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px}
.wk-b{grid-column:span 12}
@container (min-width:980px){ .wk-b.wk-half{grid-column:span 6} }
.wk-b .sheet-note{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;align-items:baseline;gap:2px 12px}
.wk-b .grid td.nm{white-space:normal;min-width:220px}
.wk-b .grid td.nm .nm-top b{font-weight:500}
.wk-sev{margin-left:6px;font-size:12px;color:var(--t2)}
/* a row label is a th (for screen readers) that reads like the grid's first cell, not like its header */
.wk-b .wk-table tbody th{height:40px;padding:5px 8px;border-bottom:1px solid var(--stroke);background:none;font-family:var(--sans);
  font-size:13px;font-weight:500;letter-spacing:normal;text-transform:none;text-align:left;white-space:nowrap;color:var(--t1)}
.wk-b .wk-table tbody tr:last-child th{border-bottom:0}
.wk-b .wk-table tr.gfoot th,.wk-b .wk-table tr.gfoot td{font-weight:600;background:var(--card2)}
.wk-none{margin:0;font-size:12px;line-height:1.45;color:var(--t3)}
.wk-rows,.wk-days{display:flex;flex-direction:column;gap:2px}
.wk-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px 18px}
.wk-day>b{display:block;margin:0 0 4px;font-size:11.5px;font-weight:600;color:var(--t2)}
.wk-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;padding:2px 0;font-size:12px}
.wk-row a{color:var(--t1);text-decoration:none}
.wk-row a:hover{color:var(--sel-ink);text-decoration:underline}
.wk-row .wk-t{min-width:0;overflow-wrap:anywhere}
.wk-row .dim{font-size:11px}

/* ============================================================================
   KPIs (v5, session O4 — docs/redesign-v5/PAGES.md, the KPIs row). Tokens only, no new colour.
   ========================================================================== */
/* Reach: four metric panels, two to a row, each with its trend chart; the AI Alliance under them */
.kpi-reach{display:grid;gap:12px;padding:12px;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr))}
.kpi-reach>.kpi{min-width:0;min-height:0;padding:12px 14px 10px;gap:5px;border:1px solid var(--stroke)}
.kpi-reach>.kpi .big{font-size:26px}
.kpi-reach>.kpi .kpi-sub{display:flex;flex-wrap:wrap;gap:2px 10px}
.kpi-ally{border-top:1px solid var(--stroke)}
.kpi-ally-l{display:flex;gap:18px 34px;flex-wrap:wrap}
.kpi-ally-i{min-width:0}
.kpi-ally-i .overline{display:flex;align-items:center;gap:6px}
.kpi-ally-v{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--t1)}
.kpi-ally-t{margin-top:4px;display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:11px}
/* the register: a metric cell holds its figure, its badge and its sparkline */
.kpi-sheet .grid td.kmc{vertical-align:top;padding-top:7px;padding-bottom:7px}
.kpi-sheet .grid td .xmeta{margin-top:2px}
.kpi-sheet .grp-n .kpi-chips{display:inline-flex;flex-wrap:wrap;gap:4px 6px;vertical-align:middle}
.kpi-foot .legend{margin-top:0}
/* the program inspector's KPI trend (every page that opens it) */
.insp-trend{display:flex;align-items:center;gap:8px;margin-top:4px;font-size:11px}
.insp-trend .spark{margin-top:0;flex:none}

/* ============================================================================
   Governance Calendar (v5, session O5 — docs/redesign-v5/PAGES.md, the Governance Calendar row). Tokens only, no new
   colour. The charts keep their own classes (.cal-*, .dw-*, .mcal-*): only where they sit changes.
   ========================================================================== */
.fig-v .cal-of{font-size:.62em;font-weight:500;color:var(--t2)}
/* Bars and Calendar: the chart in its sheet; it keeps its minimum width and scrolls sideways inside its own box */
.cal-sheet .cal-wrap{padding:2px 12px 12px}
.cal-sheet .cal-wrap>.state{margin:12px 0}
/* Next 30 days: the agenda's rows; a programme's row selects (the inspector), a band's row does not */
.cal-agenda{padding:2px 14px 14px}
.cal-agenda>.tl-month:first-child{margin-top:12px}
.cal-agenda .att-row.row{cursor:pointer}
.cal-agenda .att-row.row:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
.cal-agenda .att-row.sel{background:var(--sel-wash);box-shadow:inset 3px 0 0 var(--sel)}
/* Coverage: the worklist's cells wrap (chips, two-line cells) */
.cal-cover .grid td{white-space:normal;vertical-align:top;padding-top:7px;padding-bottom:7px}
.cal-cover .grid td.cal-next{min-width:240px;max-width:340px}
.cal-cover .grid .chip{white-space:normal}
/* the pane's Filter slot: the kind chips wrap, the month stepper takes the pane's width */
#pane-filter .cal-chips{gap:5px}
#pane-filter .cal-nav{flex-wrap:wrap}
#pane-filter .cal-nav .cal-when{flex:1 0 100%;min-width:0;text-align:left;order:-1}

/* ============================================================================
   PROGRAM PAGE (v5, session O6 — docs/redesign-v5/PAGES.md, the Program page row)
   One tab on screen at a time inside the work area's body; each tab is the section it was on main, drawn as it was.
   The Overview holds the head, the Delivery section and four of the program inspector's sections as panels.
   Tokens only.
   ========================================================================== */
.pp-tab{padding:2px 0 6px}
.pp-head{margin-bottom:22px}
.pp-head .phead{margin:0}
.pp-ov-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0 0 20px}
@container (min-width:700px){.pp-ov-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pp-ov-b{display:flex;flex-direction:column;min-width:0}
.pp-ov-b .insp-sec{flex:1 1 auto}
.pp-ov-b .insp-sec h3{margin-top:0}
.pp-ov-b .ov-more{align-self:flex-end;margin-top:10px;font-size:12px}
.pp-ov-b .ov-more:focus-visible{outline:2px solid var(--sel);outline-offset:2px;border-radius:3px}
.pp-tab tr.row{cursor:pointer}
.pp-tab tr.row:hover td{background:var(--card2)}
.pp-tab tr.row.sel td{background:var(--sel-wash)}
.pp-tab tr.row.sel td:first-child{box-shadow:inset 3px 0 0 var(--sel)}
.pp-tab tr.row:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
.pp-tab>section:first-child>.sec-head:first-child{margin-top:6px}
.pbar-note .pp-pn{display:inline-flex;gap:14px}
.pbar-note .pp-pn a{color:var(--sel-ink);text-decoration:none}
.pbar-note .pp-pn a:hover{text-decoration:underline}
/* the inspector's sections keep the inspector's heading inside a panel (a .panel h3 is the flight-console label) */
.pp-ov-b .insp-sec h3{font-family:var(--sans);font-size:12px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--t1)}
.pp-ov-b .insp-sec h3::before{content:none}

/* ============================================================================
   COMMS & STAKEHOLDERS (v5, session O7 — docs/redesign-v5/PAGES.md, the Comms & Stakeholders row)
   Views Actions · Timeline · Stakeholders. The timeline's log cards select (the comm inspector); the map and the list
   sit side by side when the work area allows. Tokens only.
   ========================================================================== */
.grid td.cm-act,.grid td.cm-role,.grid td.cm-stk{white-space:normal}
.grid td.cm-stk{min-width:140px;max-width:30ch}
.grid td.cm-act{min-width:260px;max-width:52ch}
.grid td.cm-role{min-width:180px;max-width:34ch}
.cm-txt{display:block;overflow-wrap:anywhere}
.grid .xmeta.warn{color:var(--yellow-ink)}
.cm-log{margin-top:18px}
.cm-log .tl-item.row{cursor:pointer;border-radius:6px;padding:4px 6px;margin:0 -6px}
.cm-log .tl-item.row:hover{background:var(--card2)}
.cm-log .tl-item.row.sel{background:var(--sel-wash);box-shadow:inset 3px 0 0 var(--sel)}
.cm-log .tl-item.row:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
.cmx{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
@container (min-width:1180px){.cmx{grid-template-columns:minmax(0,520px) minmax(0,1fr)}}
.cmx-a .sheet-pad{min-width:0;max-height:min(460px,52vh);overflow:auto}

/* Promotions and Notifications (v5, session O8): two sheets stacked in one view, the page's one footnote under them,
   the link to the other page in the bar, and the old tables inside a sheet without their own frame */
.v5-page .pbody>.sheet+.sheet{margin-top:12px}
.v5-page .pbody>.pm-fnote{margin:10px 2px 0;flex:none}
.pm-sheet>.tablewrap{border:0;border-radius:0;margin:0}
.pbtn.pm-other{text-decoration:none}
.pm-sheet tr.row{cursor:pointer}
.pm-page .fig-s{display:flex;flex-wrap:wrap;column-gap:10px}
.pm-page .fig-v{white-space:normal;align-items:baseline}
.pm-page .fig-v small{line-height:1.25}
.pm-page .fig-v>span{white-space:nowrap}

/* Board Snapshot (v5, session O9 — docs/redesign-v5/PAGES.md). The Overview's reach cards (the KPI and Under
   delivery cards are the figures strip), its sub-heads, the selected Programs row, the quarter in the pane. */
.bd-hero.bd-hero-reach{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:900px){.bd-hero.bd-hero-reach{grid-template-columns:1fr}}
.bd-sheet .bd-sub{display:flex;align-items:baseline;gap:12px;margin:22px 0 10px}
.bd-sheet .bd-sub h3{margin:0;font-size:15px;font-weight:600}
.bd-sheet .bd-sub .count{font-family:var(--mono);font-size:11px;color:var(--t3)}
.bd-sheet .bd-gloss{margin-top:18px}
.bd-table tbody tr.bd-row.sel{box-shadow:inset 3px 0 0 var(--sel);background:var(--sel-wash)}
#pane-filter .bd-qctl .seg{flex-direction:column}
.bd-qtags{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:4px}
.bd-qtags .tag{white-space:normal;text-align:left}

/* Partnerships (v5, session O10 — docs/redesign-v5/PAGES.md §4): Summary, Forecast, Revenue, Pipeline. The old cards'
   asides wrap under a figure; the cards that are not figures are compact readouts in a sheet; the HubSpot read line
   sits in the pane; a deal row of an old table selects. Tokens only. */
.pt-page .fig-s{display:flex;flex-wrap:wrap;column-gap:10px}
.pt-page .fig-s .seg-note{display:inline-flex;align-items:center;gap:5px}
.pt-page .fig-v{white-space:normal;align-items:baseline}
.pt-page .fig-v small{line-height:1.25}
.pt-page .fig-v>span{white-space:nowrap}
.pt-page .fig-v .est-pre{font-size:.6em;font-weight:500;color:var(--t2);margin-right:4px}
.pt-ros{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px 18px;margin-top:8px}
.pt-ro{min-width:0;padding:2px 0 2px 12px;border-left:1px solid var(--stroke)}
.pt-ro-l{font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--t3)}
.pt-ro-v{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin-top:1px;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.pt-ro-v small{font-size:11.5px;font-weight:500;color:var(--t3)}
.pt-ro-s{display:flex;flex-wrap:wrap;column-gap:10px;margin-top:2px;font-size:11.5px;color:var(--t3)}
.pt-ro-s .seg-note{display:inline-flex;align-items:center;gap:5px}
.pt-ros-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-top:18px;font-size:12px;color:var(--t3)}
.pt-ros-h b{font-weight:600;color:var(--t1)}
.pt-sheet .chart{margin-top:4px}
.pt-sheet tr.row{cursor:pointer}
.pt-sheet tr.row:hover td{background:var(--card2)}
.pt-sheet tr.row.sel td{background:var(--sel-wash)}
.pt-sheet tr.row.sel td:first-child{box-shadow:inset 3px 0 0 var(--sel)}
.pt-sheet tr.row:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
.v5-page .pbody>.pt-fnote{margin:10px 2px 0;flex:none}
#pane-filters:has(.pt-src){display:block}
#pane-filters:not(:has(select,.seg)):has(.pt-src)>h3{display:none}
#pane-filter .pt-src{margin-top:4px}
#pane-filter .pt-src>span{font-size:11.5px;line-height:1.5;color:var(--t2)}
#pane-filter .pt-src .chip{margin-left:2px}
:root[data-shell="v5"] .pt-page .pbody>.sheet{flex:none}
.pt-page .fig-v{flex-wrap:wrap;row-gap:0}
.pt-page .fig-v small{flex-basis:100%;white-space:normal}
.pt-page .fig{max-width:300px}
.pt-sheet .tablewrap{border:0;border-radius:0;background:none;margin:0}
.pt-sheet .tablewrap+.tablewrap,.pt-sheet .chart+.tablewrap{margin-top:12px}
.pt-sheet .panel{box-shadow:none}
.pt-sheet .panel::before,.pt-sheet .panel::after{content:none}
.pt-sheet .panel h3{font-family:var(--sans);text-transform:none;letter-spacing:0;font-size:13px;font-weight:600;color:var(--t1)}
.pt-sheet .panel h3::before{content:none}
.pt-lastq{margin:2px 0 8px}
.pt-sheet .tablewrap{outline:0;box-shadow:none}
/* Partnerships (v5, session O11): Leads, Renewals, Team, Capacity and Data match. A person's row of an hgrid selects
   (the Team activity grid, the Capacity selling-time grid), an at-risk renewal or a list line selects; the leads notice
   and "What the team asked for", the Capacity roster sit in the pane. Tokens only. */
.pt-sheet .hgrid tr.row{cursor:pointer}
.pt-sheet .hgrid tr.row .hcell{cursor:pointer}
.pt-sheet .hgrid tr.row:hover th.rowh{background:var(--card2)}
.pt-sheet .hgrid tr.row.sel th.rowh{background:var(--sel-wash);box-shadow:inset 3px 0 0 var(--sel)}
.pt-sheet .hgrid tr.row:focus-visible,.pt-sheet .att-row.row:focus-visible,.pt-sheet li.row:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
.pt-sheet .att-row.row,.pt-sheet li.row{cursor:pointer}
.pt-sheet .att-row.row.sel,.pt-sheet li.row.sel{background:var(--sel-wash);box-shadow:inset 3px 0 0 var(--sel)}
.pt-sheet .att{max-height:none}
.pt-moved{margin:14px 0 0;font-size:12px;color:var(--t3)}
/* Revenue › By director: an owner's row opens the deals behind it (Cameron's R4, 2026-11-26) */
.pt-pd-toggle{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;display:inline-flex;align-items:center;gap:6px;text-align:left}
.pt-pd-toggle::before{content:"";width:0;height:0;border-left:5px solid currentColor;border-top:4px solid transparent;border-bottom:4px solid transparent;transition:transform .12s}
.pt-pd-toggle[aria-expanded=true]::before{transform:rotate(90deg)}
.pt-pd-toggle:focus-visible{outline:2px solid var(--sel);outline-offset:2px}
tr.pt-pd-deals>td{padding:4px 8px 12px 22px;background:var(--card2)}
.pt-pd-list{width:auto;min-width:60%}
.pt-ask{display:block}
.pt-ask .pt-ask-n,.pt-ask .pt-ask-c{margin:2px 0 6px;font-size:11.5px;line-height:1.45;color:var(--t2)}
.pt-ask .pt-ask-c{color:var(--t3)}
.pt-ask-l{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.pt-ask-l li{display:grid;gap:1px;font-size:11.5px;line-height:1.4;color:var(--t2)}
.pt-ask-l .pt-ask-m{color:var(--t1)}
.pt-ask-l .chip{margin-left:3px;font-size:9.5px}
.pt-roster{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:6px}
.pt-roster li{display:grid;font-size:11.5px;line-height:1.4;color:var(--t3)}
.pt-roster li b{font-weight:600;color:var(--t1)}
.pt-roster li.warn span:last-child{color:var(--yellow-ink)}
/* the heat grid inside a Partnerships sheet: Capacity Planning's type (names in the sans face, sentence case) and no
   second frame around it */
.pt-sheet .sheet-pad>.panel{border:0;padding:0;background:none}
.pt-sheet .hgrid th.rowh{position:sticky;left:0;z-index:1;background:var(--card)}
.pt-sheet .hgrid tbody th.rowh{font-family:var(--sans);font-size:12px;font-weight:400;letter-spacing:0;text-transform:none;white-space:normal;
  min-width:148px;max-width:196px;padding:3px 8px 3px 6px;color:var(--t2)}
.pt-sheet .hgrid .rlab{font-size:13px;color:var(--t1)}
.pt-sheet .hgrid .rrole{font-size:10.5px;line-height:1.35;text-transform:none;letter-spacing:0}
.pt-sheet .hgrid thead th{font-family:var(--sans);font-size:10.5px;letter-spacing:.03em}

/* ============================================================================
   Communications (v5) — session O12, 2026-11-23: the five Communications pages on the page pattern
   (b2b-comms*.html, body.cm-page). Tokens only. The swim-lane chart keeps its own rules (.dw-*, above).
   ========================================================================== */
/* the pane: the lane filter as a column, then the Comms Map read line and its links */
#pane-filter .cm-lanectl{overflow:visible}
#pane-filter .cm-lanectl .seg{flex-direction:column;width:100%}
#pane-filter .cm-lanectl .seg button{text-align:left;border-left:0;border-top:1px solid var(--stroke)}
#pane-filter .cm-lanectl .seg button:first-child{border-top:0}
.cm-page #pane-filter .spacer{display:none}
#pane-filter .cm-src{gap:6px;margin-top:10px;align-items:flex-start}
#pane-filter .cm-src .cm-read{align-self:flex-start;font-family:var(--sans);font-size:11.5px;letter-spacing:0;color:var(--t2)}
#pane-filter .cm-src .wb-link{font-size:12px}
/* sheets that hold lists of rows, and the overview's two lists side by side */
.cm-page .pbody>.sheet+.sheet,.cm-page .pbody>.sheet+.cm-lists{margin-top:12px}
/* several blocks on one page (the overview), or one long list: the body scrolls, a sheet keeps its height; the
   Comms plan's and Comms KPIs' single sheet scrolls inside itself, so their heads stay in view */
:root[data-shell="v5"] .cm-page .pbody>.sheet,:root[data-shell="v5"] .cm-page .pbody>.cm-lists{flex:none}
:root[data-shell="v5"] .cm-page .pbody>.sheet.cm-sheet:only-child{flex:0 1 auto}
.cm-page .fig-p .seg-note,.cm-page .fig-p .chip{margin-right:8px}
.cm-page .fig-p .seg-note:last-child,.cm-page .fig-p .chip:last-child{margin-right:0}
#pane-filter .cm-lanectl .seg button{white-space:normal;overflow-wrap:anywhere}
.cm-list{padding:4px 14px 10px}
.cm-list .state{margin:10px 0}
.cm-list .tl-month:first-child{margin-top:8px}
.cm-list .xmeta{margin:10px 0 2px}
.cm-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
@container (max-width:900px){.cm-lists{grid-template-columns:minmax(0,1fr)}}
.cm-page .att-row.row{border-radius:0}
.cm-page .att-row.row.sel{box-shadow:inset 3px 0 0 var(--sel)}
/* the by-lane table: one inline bar per plan quarter, the quarter the page opens on washed */
.cm-lanes td.nm{min-width:220px;max-width:340px}
.cm-lanes td.nm .led{flex:none}
.cm-lanes td.nm .wb-link{font-family:var(--sans);font-size:13px;font-weight:600;letter-spacing:0}
.cm-lanes td .nm-sub{display:block}
.cm-lanes td.cm-q,.cm-lanes th.cm-q{min-width:74px}
.cm-lanes td.cm-q .ib{display:block;width:100%;margin:3px 0 0}
.cm-lanes .cm-q.on{background:var(--sel-wash)}
.cm-lanes thead th.cm-q.on{color:var(--t1)}
.cm-lanes tr.gfoot td{text-align:right}
.cm-lanes tr.gfoot td.nm{text-align:left;font-weight:600;color:var(--t1);background:var(--card2)}
/* the quarter switch in the bar */
.cm-quarters{margin-left:8px}
/* the Comms plan's chart in its sheet */
.cm-plan{padding:6px 12px 12px}
.cm-plan .legend{margin-top:10px}
/* Comms KPIs: lanes that fold, activity rows, KPI rows */
.cm-kpis{width:100%}
.cm-kpis td{height:auto;padding:7px 8px}
.cm-kpis td.cm-wrap{white-space:normal;overflow-wrap:break-word;min-width:110px}
.cm-kpis td.kpi-txt{min-width:300px}
.cm-kpis tr.lane-row th{box-shadow:inset 3px 0 0 var(--lane,var(--stroke))}
.cm-kpis .cm-fold{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.cm-kpis .cm-fold::before{content:"";width:0;height:0;border-left:5px solid currentColor;border-top:4px solid transparent;border-bottom:4px solid transparent;transition:transform .12s}
.cm-kpis .cm-fold[aria-expanded=true]::before{transform:rotate(90deg)}
.cm-kpis .cm-fold:focus-visible{outline:2px solid var(--sel);outline-offset:2px}
.cm-kpis tr.act-row td{font-weight:600;color:var(--t1);padding-top:11px;background:var(--card)}
.cm-kpis tr.act-row td .dim{font-weight:400}
.cm-kpis tr.flash td{background:var(--card2)}
.cm-kpis .tag.cm-key{padding:2px 7px;font-size:9.5px;color:var(--t1);margin-right:4px}
.cm-kpis .warn{color:var(--yellow-ink)}

/* ============================================================================
   Growth Marketing (v5) — session O13, 2026-11-24: the four Growth Marketing pages on the page pattern
   (growth*.html, body.gm-page). Tokens only. The bars and the pacing inks keep their own rules (.gm-bars …, above).
   ========================================================================== */
/* the pane: the weekly pull (its week, when it was pulled and its age chip, the sources) under the page's controls */
#pane-filters:has(.gm-src){display:block}
#pane-filters:not(:has(select,.seg)):has(.gm-src)>h3{display:none}
#pane-filter .gm-src{gap:3px;margin-top:6px;align-items:flex-start}
#pane-filter .gm-src .gm-src-l{font-size:11.5px;line-height:1.5;color:var(--t2);white-space:normal;overflow-wrap:anywhere}
#pane-filter .gm-src .chip{margin:2px 2px 0 0;white-space:normal}
#pane-filter .ctl .seg,#pane-scope .gm-scope .seg{flex-wrap:wrap}
.gm-page #pane-filter .ctl+.ctl{margin-top:10px}
/* figures: the asides wrap under the number */
.gm-page .fig-s{display:flex;flex-wrap:wrap;column-gap:10px}
.gm-page .fig-s .seg-note{display:inline-flex;align-items:center;gap:5px}
.gm-page .fig-v{white-space:normal;align-items:baseline}
.gm-page .fig-v .bad{color:var(--red-ink)}
.gm-page .fig{max-width:300px}
/* sheets: an old table sits in its sheet with no second frame; a row of it selects */
:root[data-shell="v5"] .gm-page .pbody>.sheet{flex:0 1 auto}
.gm-sheet .tablewrap,.gm-sheet .tablewrap.pinned{border:0;border-radius:0;background:none;margin:0;outline:0;box-shadow:none;max-height:none;overflow:visible;padding:0 6px}
.gm-tsheet .sheet-head{position:sticky;left:0;z-index:5}
.gm-tsheet .cost-table thead{position:sticky;top:0;z-index:3}
.gm-tsheet .cost-table thead th{background:var(--card);border-bottom:0;box-shadow:inset 0 -1px 0 var(--stroke)}
.gm-sheet .tablewrap.pinned tfoot{position:static}
.gm-tsheet .cost-table td:first-child,.gm-tsheet .cost-table th:first-child{position:sticky;left:0;z-index:1;background:var(--card)}
.gm-tsheet .cost-table thead th:first-child{z-index:4}
.gm-tsheet .cost-table td.l:not(.cell-name){white-space:nowrap}
.gm-tsheet .cost-table td.cell-name{min-width:150px}
.insp [data-f="gm-flags"]{margin-top:8px}
#pane-filter .gm-src .gm-src-l{padding:0 4px}
#pane-filter .gm-src>label{margin-left:0}
.gm-sheet .state{margin:12px 14px}
.gm-sheet tr.row{cursor:pointer}
.gm-sheet tr.row:hover td{background:var(--card2)}
.gm-sheet tr.row.sel td{background:var(--sel-wash)}
.gm-sheet tr.row.sel td:first-child{box-shadow:inset 3px 0 0 var(--sel)}
.gm-sheet tr.row:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
.gm-sheet .sheet-tools .controls{display:inline-flex;margin:0}
/* the Overview's blocks in one sheet; top campaigns and installs by source side by side when there is room */
.gm-block{padding:10px 14px 12px;min-width:0}
.gm-block+.gm-block,.gm-block+.gm-two,.gm-two>.gm-block{border-top:1px solid var(--stroke)}
.gm-block-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-bottom:8px;font-size:12px;color:var(--t3)}
.gm-block-h b{font-size:13px;font-weight:600;color:var(--t1)}
.gm-two{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
.gm-two>.gm-block+.gm-block{border-left:1px solid var(--stroke)}
@container (max-width:980px){.gm-two{grid-template-columns:minmax(0,1fr)}.gm-two>.gm-block+.gm-block{border-left:0}}
.gm-block .gm-row{grid-template-columns:minmax(150px,38%) 1fr 76px}
/* readouts in a sheet: the cards that are not one of the page's figures */
.gm-pad{padding:0 14px}
.gm-pad:empty{display:none}
.gm-ros{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px 18px;padding:12px 0}
.gm-ro{min-width:0;padding:2px 0 2px 12px;border-left:1px solid var(--stroke)}
.gm-ro-l{font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--t3)}
.gm-ro-v{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin-top:1px;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.gm-ro-v small{font-size:11.5px;font-weight:500;color:var(--t3)}
.gm-ro-v .bad{color:var(--red-ink)}
.gm-ro-s{display:flex;flex-wrap:wrap;column-gap:10px;margin-top:2px;font-size:11.5px;color:var(--t3)}

/* ============================================================================
   Events (v5) — session O14, 2026-11-24: an event's pages on the page pattern (event-<slug>*.html, body.ev-page;
   Run of show is switched off and keeps its old layout). Tokens only. The timeline, the bars, the RACI table and the
   Sync now button keep their own rules (.gt-*, .ev-*, .raci-*, above).
   ========================================================================== */
/* the pane: the page's controls, then the planning sheet's read line with its stale chip, Sync now and the Sheet links */
#pane-filters:has(.ev-src){display:block}
#pane-filters:has(.ev-src)>h3{display:none}
#pane-filter .ev-src{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:0 0 14px;padding:0 4px}
.ev-src-l{font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--t3)}
#pane-filter .ev-src .ctl{margin:0;gap:6px;align-items:flex-start}
#pane-filter .ev-src .cm-read{font-family:var(--sans);font-size:11.5px;letter-spacing:0;color:var(--t2);white-space:normal}
#pane-filter .ev-src .wb-link{font-size:12px}
#pane-filter .ev-sync{align-self:flex-start;gap:6px}
#pane-filter .ev-sync-msg{white-space:normal;overflow-wrap:anywhere}
.ev-page #pane-filter>.ctl+.ctl{margin-top:10px}
#pane-filter .ev-colseg .seg{flex-direction:column;width:100%}
#pane-filter .ev-colseg .seg button{text-align:left;border-left:0;border-top:1px solid var(--stroke);white-space:normal;overflow-wrap:anywhere}
#pane-filter .ev-colseg .seg button:first-child{border-top:0}
/* figures: the asides wrap under the number */
.ev-page .fig-v{white-space:normal;align-items:baseline}
.ev-page .fig-v .bad{color:var(--red-ink)}
.ev-page .fig-v .warn{color:var(--yellow-ink)}
.ev-page .fig-s{white-space:normal}
.ev-page .fig-p .seg-note.warn{color:var(--yellow-ink)}
/* sheets: an old table sits in its sheet with no second frame; a row of it selects */
:root[data-shell="v5"] .ev-page .pbody>.sheet{flex:0 1 auto}
.ev-page .pbody>.ev-fnote{margin:10px 2px 0;flex:none}
.ev-sheet .tablewrap,.ev-sheet .tablewrap.pinned{border:0;border-radius:0;background:none;margin:0;outline:0;box-shadow:none;max-height:none;overflow:visible;padding:0 6px}
.ev-sheet .state{margin:12px 14px}
.ev-sheet .sheet-tools .controls{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0}
.ev-tsheet .sheet-head{position:sticky;left:0;z-index:5}
.ev-tsheet .cost-table thead,.ev-tsheet .raci-table thead{position:sticky;top:0;z-index:3}
.ev-tsheet .cost-table thead th,.ev-tsheet .raci-table thead th{background:var(--card);border-bottom:0;box-shadow:inset 0 -1px 0 var(--stroke)}
.ev-tsheet .cost-table td.cell-name{min-width:220px;max-width:420px;white-space:normal}
.ev-tsheet .cost-table tr.row td:first-child,.ev-tsheet .cost-table thead th:first-child{position:sticky;left:0;z-index:1;background:var(--card)}
.ev-tsheet .cost-table thead th:first-child{z-index:4}
.ev-table tr.ev-grp td{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--t2);padding-top:14px;border-bottom:1px solid var(--stroke);background:var(--card)}
.ev-table tr.ev-grp td .t3{text-transform:none;letter-spacing:0}
.ev-sheet tr.row,.ev-sheet .gt-task.row{cursor:pointer}
.ev-sheet tr.row:hover td,.ev-sheet .gt-task.row:hover .gt-lab{background:var(--card2)}
.ev-sheet tr.row.sel td,.ev-sheet .gt-task.row.sel .gt-lab{background:var(--sel-wash)}
.ev-sheet tr.row.sel td:first-child{box-shadow:inset 3px 0 0 var(--sel)}
.ev-sheet .gt-task.row.sel .gt-lab{box-shadow:inset 3px 0 0 var(--sel)}
.ev-sheet tr.row:focus-visible,.ev-sheet .gt-task.row:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
.ev-sheet .att-row.row.sel{box-shadow:inset 3px 0 0 var(--sel)}
.ev-gantt #tasks-wrap{padding:6px 12px 10px}
.ev-rsheet .ev-read{margin:0}
/* blocks in one sheet (the Overview; the budget's and the guests' two halves) */
.ev-block{padding:10px 14px 12px;min-width:0}
.ev-block+.ev-pair,.ev-pair+.ev-block{border-top:1px solid var(--stroke)}
.ev-block-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-bottom:8px;font-size:12px;color:var(--t3)}
.ev-block-h b{font-size:13px;font-weight:600;color:var(--t1)}
.ev-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.ev-pair>.ev-block+.ev-block{border-left:1px solid var(--stroke)}
@container (max-width:980px){.ev-pair{grid-template-columns:minmax(0,1fr)}.ev-pair>.ev-block+.ev-block{border-left:0;border-top:1px solid var(--stroke)}}
.ev-list{padding:0}
.ev-sheet>.ev-list{padding:4px 14px 10px}
.ev-ov .ev-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}
.ev-ov .panel.ev-card{background:var(--card2);outline:0;box-shadow:none;margin:0}
.ev-sheet .ev-barrow{grid-template-columns:minmax(120px,34%) 1fr minmax(120px,168px)}
.ev-sheet .ev-role-counts{justify-content:flex-start}
.ev-insp-counts{display:inline-flex;flex-wrap:wrap;gap:8px;font-family:var(--mono);font-size:11px}
.ev-insp-counts .raci-badge,.insp .il-d .raci-badge{width:auto;min-width:20px;height:18px;padding:0 4px;font-size:9.5px;border-radius:5px}
.insp .ev-bullets{padding-left:16px;font-size:12.5px;color:var(--t2)}
.ev-page .fig-s .wb-link{font-family:inherit;font-size:inherit;letter-spacing:0;color:var(--sel-ink)}

/* ==========================================================================
   AI-Enablement (v5) — session O15, 2026-11-24: the three AI-Enablement pages on the page pattern
   (ai-enablement*.html, body.ai-page). Tokens only. The charts, bars, tiles and strip keep their own rules (.ai-*, above).
   ========================================================================== */
/* the pane: the source block (the hub page in Notion, the day read, a source not shared yet) under the page's controls */
#pane-filters:has(.ai-src){display:block}
#pane-filters:not(:has(select,.seg)):has(.ai-src)>h3{display:none}
#pane-filter .ai-src{gap:3px;margin-top:6px;align-items:flex-start}
#pane-filter .ai-src .ai-src-l{font-size:11.5px;line-height:1.5;color:var(--t2);white-space:normal;overflow-wrap:anywhere;padding:0 4px}
#pane-filter .ai-src>label{margin-left:0}
#pane-filter .ai-src a{color:var(--sel-ink)}
.ai-page #pane-filter .ctl+.ctl{margin-top:10px}
/* figures: the asides wrap under the number */
.ai-page .fig-s{display:flex;flex-wrap:wrap;column-gap:10px}
.ai-page .fig-s .seg-note{display:inline-flex;align-items:center;gap:5px}
.ai-page .fig-v{white-space:normal;align-items:baseline}
.ai-page .fig-v .bad{color:var(--red-ink)}
.ai-page .fig{max-width:300px}
/* the not-connected state fills the body */
.ai-page .pbody>.ai-connect,.ai-page .pbody>.state{margin:16px 0}
/* sheets: the blocks of one view, one under the other; an old table sits in its sheet with no second frame */
:root[data-shell="v5"] .ai-page .pbody>.sheet{flex:0 1 auto}
.ai-block{padding:10px 14px 14px;min-width:0}
.ai-block+.ai-block{border-top:1px solid var(--stroke)}
.ai-block-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-bottom:8px;font-size:12px;color:var(--t3)}
.ai-block-h b{font-size:13px;font-weight:600;color:var(--t1)}
.ai-sheet .ai-panel{background:none;outline:0;border:1px solid var(--stroke)}
.ai-sheet .tablewrap{border:0;border-radius:0;background:none;margin:0;outline:0;box-shadow:none;max-height:none;overflow:auto;padding:0}
.ai-tsheet .cost-table td:first-child,.ai-tsheet .cost-table th:first-child{position:sticky;left:0;z-index:1;background:var(--card)}
.ai-sheet .state{margin:8px 0}
.ai-sheet tr.row{cursor:pointer}
.ai-sheet tr.row:hover td{background:var(--card2)}
.ai-sheet tr.row.sel td{background:var(--sel-wash)}
.ai-sheet tr.row.sel td:first-child{box-shadow:inset 3px 0 0 var(--sel)}
.ai-sheet tr.row:focus-visible{outline:2px solid var(--sel);outline-offset:-2px}
/* readouts: a card that is not one of the page's figures */
.ai-ros{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px 18px;padding:4px 0}
.ai-ro{min-width:0;padding:2px 0 2px 12px;border-left:1px solid var(--stroke)}
.ai-ro-l{font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--t3)}
.ai-ro-v{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin-top:1px;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.ai-ro-v small{font-size:11.5px;font-weight:500;color:var(--t3)}
.ai-ro-s{display:flex;flex-wrap:wrap;column-gap:10px;margin-top:2px;font-size:11.5px;color:var(--t3)}
