/* Pipeline Explorer design tokens — the ONLY file that holds colour, size, duration and easing values.
   Visual owner: Grok Bot (Tim ruling 2026-10-18 17:54 ET). Transcribed by Claude from
   forge-coordination/proposals/GROK_20261015_1650ET_PIPELINE_EXPLORER_DESIGN_TOKENS_V1_5_1.txt section 8,
   with the measured values from Pipeline_Explorer_Proposal_v1.5.pdf p40 (rendered 1:1 at 2560 x 1440),
   and the accessibility-floor corrections (L-1) marked "L-1". Status: LIVE in the app from REV-023 (frames approved, REV-019).
   Change a value here only on a Grok Bot ruling (or a Tim ruling for L-1 / L-2). */

/* Inter variable, subset to Latin + the glyph vocabulary Inter covers (✓ ⊖ ⊗ ⊘ ▲ ◆ ● ▽ ○ ∅ ‖ ≈ → ↗ Δ …). Grok Bot R-7. */
@font-face { font-family: "Inter"; src: url("fonts/inter-var-pe.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-700.woff2") format("woff2"); font-weight: 700; font-display: block; }
/* Glyphs Inter / Plex do not cover (◷ ◌ ⟳ ✕ ▸ ✉ ◉ ⤢ ▾ ⌕ and the rail icons) ship as inline SVG: pe-icons.js (R-7). */

:root {
  /* Base surfaces */
  --pe-void: #000000; --pe-hull: #0B0B0B; --pe-plate: #141414;
  --pe-raised: #1E1E1E; --pe-seam: #2A2A2A; --pe-gridline: #3A3A3A;
  --pe-field: #050505; --pe-divider: #1C1C1C;
  --pe-map-grid-minor: #161616; --pe-map-grid-major: #262626;
  --pe-map-state-fill: #0A0A0A; --pe-map-state-stroke: #7A7A76; --pe-map-state-label: #6B6B66; /* T-5: 3.67:1 at full opacity */
  /* L-1 (N-07, V-10): control boundaries need 3:1. Inputs and neutral/ghost buttons use this; Gridline stays for map grid and rules. */
  --pe-outline: #6B6B66;
  /* Text */
  --pe-text-primary: #E6E6E2; --pe-text-secondary: #A3A39E;
  --pe-text-muted: #6B6B66;  /* LARGE TEXT ONLY (>= 24 px, or >= 18.66 px bold) — L-1 (N-08, V-11) */
  /* Signal */
  --pe-green: #4ADE80; --pe-amber: #F2B33D; --pe-red: #FF4D3D;
  --pe-cyan: #38E1D6; --pe-olive: #8A8F7A; --pe-terminal: #5A5A5A;
  /* Percentile bands (display-only; cut-points computed at runtime) */
  --pe-band-top: #4ADE80; --pe-band-upper: #F2B33D; --pe-band-mid: #8E8E89; --pe-band-low: #D9826B;
  --pe-band-hold: var(--pe-red);
  --pe-band-rank-top: 0.90; --pe-band-rank-upper: 0.65; --pe-band-rank-low: 0.20; --pe-band-min-n: 40;
  /* Scope & markers */
  --pe-scope-shared: var(--pe-amber); --pe-scope-local: var(--pe-text-secondary);
  --pe-changed: #E6E6E2; --pe-stale-evidence: var(--pe-olive);
  --pe-state-waiting: var(--pe-amber); --pe-state-writing: var(--pe-cyan);
  --pe-state-confirmed: var(--pe-green); --pe-state-failed: var(--pe-red);
  --pe-keepout: var(--pe-red);
  /* Tints measured from p40 (selected row, active KPI, receipts) */
  --pe-tint-cyan: rgba(56, 225, 214, 0.06);
  --pe-tint-green: rgba(74, 222, 128, 0.08);
  --pe-tint-amber: rgba(242, 179, 61, 0.10);
  --pe-tint-red: rgba(255, 77, 61, 0.06);
  /* Grok Bot look-owner tokens, 2026-10-18 18:30 ET (GROK_20261018_1830ET_PE_LOOK_OWNER_NEW_TOKENS.txt) */
  --pe-closed: var(--pe-text-secondary); --pe-unknown: var(--pe-text-secondary); --pe-info-bar: var(--pe-outline);
  --pe-nt-blocking: var(--pe-red); --pe-nt-action: var(--pe-amber); --pe-nt-watch: var(--pe-text-secondary);
  --pe-badge-text: #000000;
  --pe-text-min: 11px; --pe-kpi-value: 38px; --pe-kpi-weight: 650; --pe-kpi-line: 1.05;
  --pe-pill-h: 32px; --pe-pill-bar: 3px; --pe-pill-gap: 12px; --pe-pill-collapse-bp: 2200px; --pe-pill-fs: 12px; --pe-pill-tracking: .08em;
  --pe-col-score: 112px; --pe-col-company: 140px; --pe-map-canvas-h: 1024px;
  --pe-nt-watch-row-h: 34px; --pe-target-phone: 44px; --pe-target-decision-phone: 52px; --pe-ring-phone: 88px;   /* REV-071 phone drawer ring (v1.5 p42 B) */
  --pe-pill-change: var(--pe-motion-fast);
  --pe-chip-h: 20px; --pe-dec-h: 50px; --pe-dec-fs: var(--pe-fs-btn);   /* LOOK-3: golden .decide 50 px, .dbtn 16 px */
  --pe-weight-bar: rgba(56, 225, 214, 0.6);   /* weight bars: Cyan at .6 (v1.5.1 tokens §4; Grok Bot pages) */
  /* Grok Bot R3 C-03 / C-05 / C-09, ported from golden-src/oct15.css (QA #126 LOOK-12) */
  --pe-row-a: #0B0B0B; --pe-row-b: #070707;   /* p40: first row #0B0B0B, then #070707 */
  --pe-select-edge: rgba(56, 225, 214, 0.35); /* C-03: selected-row top / bottom / right edges */
  --pe-badge-local: #3A3A3A; --pe-badge-ok: #1F4A2C; --pe-badge-prov: #3A3D33; --pe-badge-cy: #17403D; --pe-badge-red: #4A1D18; --pe-badge-shared: #4A3A17;
  --pe-tint-new: rgba(230, 230, 226, 0.10); --pe-tint-new-end: rgba(230, 230, 226, 0);
  --pe-tint-wait-start: rgba(242, 179, 61, 0.16);   /* C-09: .16 -> Plate at 70 % */ --pe-tint-wait-end: rgba(242, 179, 61, 0.06);
  --pe-glow-green: 0 0 6px rgba(74, 222, 128, 0.25);
  /* Shape, glow, focus */
  --pe-border: 1px solid var(--pe-seam); --pe-radius: 2px; --pe-bar: 2px; --pe-bar-card: 3px;
  --pe-focus-ring: 2px solid #E6E6E2; --pe-focus-offset: 2px;
  --pe-nontext-min: 3;
  --pe-glow: 0 0 6px rgba(56, 225, 214, 0.40);
  --pe-glow-kpi: 0 0 10px rgba(56, 225, 214, 0.35);   /* C-11: active KPI tile (golden oct15.css .kpi.active) */
  /* Type */
  --pe-font-label: "IBM Plex Mono", "Inter", ui-monospace, monospace;
  --pe-font-ui: "Inter", system-ui, sans-serif;
  --pe-label-tracking: .12em; --pe-th-tracking: .08em; --pe-btn-tracking: .06em; --pe-cell-tracking: .02em;   /* REV-090: phone COMPANY / LOCATION cells (Grok Bot nit on #166) */
  /* Type scale measured on p40 at 1:1 (px). L-1 (N-10): nothing below 11 px. */
  --pe-fs-min: 11px;
  --pe-fs-brand: 16px;        /* PIPELINE EXPLORER */
  --pe-fs-crumb: 12px;        /* breadcrumb, header status pill, header controls */
  --pe-fs-tab: 12px;          /* sub-tabs */
  --pe-fs-label: 12px;        /* KPI labels, change-strip label, panel titles */
  --pe-fs-th: 11px;           /* table header, drawer section labels, small mono */
  --pe-fs-body: 14px;         /* table body, drawer meta */
  --pe-fs-small: 13px;        /* KPI captions, change strip items, breakdown rows, receipts */
  --pe-fs-why: 15.5px;        /* drawer WHY sentence */
  --pe-fs-score-row: 16px;    /* score in row */
  --pe-fs-btn: 16px;          /* drawer decision buttons */
  --pe-fs-drawer-title: 26px; /* drawer job title */
  --pe-fs-drawer-title-phone: 22px; /* REV-072 phone drawer job title (v1.5 p42 B) */
  --pe-fs-kpi: var(--pe-kpi-value);  /* V-12 (Grok Bot): 38 px / 650 / line-height 1.05 */
  --pe-fs-ring: 42px;         /* opportunity ring value */
  --pe-fw-heavy: 650;
  /* Targets */
  --pe-target-min: 44px; --pe-target-decision: 52px; --pe-target-desktop-min: 24px;  /* V-17: px, not pt */
  /* Motion */
  --pe-motion-instant: 0ms; --pe-motion-fast: 120ms; --pe-motion-base: 240ms;
  --pe-motion-lock: 240ms; --pe-motion-materialize: 400ms; --pe-motion-sweep: 600ms;
  --pe-motion-roll: 800ms; --pe-motion-boot: 1200ms; --pe-motion-breathe: 1600ms;
  --pe-motion-fit: 300ms; --pe-motion-fit-set: 600ms; --pe-motion-stagger: 18ms;
  --pe-loop-max: 5s; --pe-stagger-max: 250ms; --pe-flash-gap: 400ms;
  --pe-select-budget: 700ms; --pe-frame-p95: 16.7ms; --pe-flash-max: 3;
  --pe-writer-lock: 30s; --pe-writer-retry-1: 8s; --pe-writer-retry-2: 15s; --pe-writer-retry-3: 30s; --pe-writer-retry-4: 45s;
  --pe-ease-out: cubic-bezier(.16, 1, .3, 1); --pe-ease-in: cubic-bezier(.7, 0, .84, 0);
  --pe-ease-inout: cubic-bezier(.65, 0, .35, 1); --pe-ease-snap: cubic-bezier(.34, 1.56, .64, 1); --pe-ease-linear: linear;
  /* Layout @2560 x 1440 at 100 % (D-9), measured on p40 1:1 */
  --pe-pad-top: 22px; --pe-pad-right: 16px; --pe-pad-bottom: 17px; --pe-pad-left: 23px;
  --pe-gap: 12px; --pe-gutter: 16px;
  --pe-col-rail: 56px; --pe-col-table: 1112px; --pe-col-map: 801px; --pe-col-work: 508px;
  --pe-row-header: 57px; --pe-row-subtabs: 56px; --pe-row-kpi: 96px; --pe-row-strip: 40px; --pe-row-main: 1068px; --pe-row-ticker: 36px;
  --pe-row-h: 32px; --pe-row-h-header: 36px;
}
/* B-15: in-app toggle; OS prefers-reduced-motion -> one-time prompt, never silent */
[data-reduce-motion] { --pe-motion-breathe: 0ms; --pe-motion-fit: 0ms; --pe-motion-fit-set: 0ms;
  --pe-motion-lock: 0ms; --pe-motion-sweep: 0ms; --pe-motion-roll: 0ms; --pe-motion-stagger: 0ms;
  --pe-motion-materialize: 0ms; --pe-motion-boot: 0ms; --pe-motion-base: 120ms; }
:focus-visible { outline: var(--pe-focus-ring); outline-offset: var(--pe-focus-offset); }
