  /* ──────────────────────────────────────────────────────────────────
     Legacy variable aliases → ValueSight design tokens (see tokens.css).
     This block keeps existing rules working while shifting colour,
     surface, and text choices to the new system. Do NOT add new
     legacy variables here — use the design tokens directly.
     Source of truth: docs/design/valuesight-design.md
     ────────────────────────────────────────────────────────────── */
  :root {
    /* Surfaces */
    --bg: var(--surface-base);
    --surface: var(--surface-panel);
    --surface2: var(--surface-dim);
    --surface3: var(--surface-raised);

    /* Borders */
    --border: var(--border-subtle);
    --border2: var(--border-default);

    /* Text */
    --text: var(--text-primary);
    --text2: var(--text-secondary);
    --text3: var(--text-tertiary);

    /* Brand — was blue, now mineral green. Purple --accent2 retired (§15 forbids). */
    --accent: var(--brand-primary);
    --accent2: var(--brand-primary);
    --accent-glow: var(--brand-primary-fade);
    --accent-light: var(--brand-primary-tint);

    /* Semantic */
    --gold: var(--warning);
    --gold-bg: var(--warning-tint);
    --gold-dim: rgba(194, 138, 28, 0.10);
    --green: var(--positive);
    --green-bg: var(--positive-tint);
    --green-dim: rgba(59, 122, 92, 0.10);
    --red: var(--negative);
    --red-bg: var(--negative-tint);
    --red-dim: rgba(184, 39, 59, 0.10);
    /* Legacy names that were used but never defined (plan 3D, 2026-10-31): each resolved to
       nothing — a colour fell back to inherit, a background went transparent. */
    --text1: var(--text-primary);
    --bg2: var(--surface-dim);
    --surface1: var(--surface-panel);
    --blue: var(--info);
    --purple-dim: var(--brand-primary-fade);

    /* Radius — design caps at 8px (§6). Track 2 will remove --radius-full
       from pill-shaped buttons; for now it stays so circular dots still work.
       --radius-sm is intentionally NOT redefined here: tokens.css §6 sets it
       to 4px (inputs/buttons/chips/pills/cells) and the legacy redefinition
       to --radius-md (6px) was silently overriding ~70 components.css uses.
       Removed 2026-05-31 (design-audit batch). */
    --radius-xs: 4px;
    --radius: var(--radius-lg);          /* was 10px → 8px */
    --radius-lg: var(--radius-lg);       /* was 12px → 8px */
    --radius-full: 9999px;               /* circular dots only */

    /* Shadows — legacy elevation tokens. Design forbids shadow on cards
       and rows (§7.2); Track 2 will replace those uses with hairlines. */
    --shadow: var(--shadow-popover);
    --shadow-md: var(--shadow-popover);
    --shadow-lg: var(--shadow-modal);

    /* Skeleton (loading states) — derive from surface tokens. */
    --skeleton-bg: var(--surface-dim);
    --skeleton-shine: rgba(45, 90, 76, 0.06);
  }

  [data-theme="dark"] {
    --skeleton-bg: var(--surface-raised);
    --skeleton-shine: rgba(255, 255, 255, 0.04);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  /* ── SKIP LINK ── */
  .skip-link { position: absolute; top: -100px; left: 16px; z-index: 9999; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 0 0 6px 6px; font-size: 13px; font-weight: 500; text-decoration: none; transition: top 0.15s; }
  .skip-link:focus { top: 0; }

  /* ── FOCUS VISIBLE ── */
  button:focus-visible,
  [role="button"]:focus-visible,
  [tabindex]:focus-visible,
  a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
  input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

  body { font-family: 'Geist', 'Plus Jakarta Sans', -apple-system, 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; transition: background 0.2s, color 0.2s; }

  /* ── §11.1 APP SHELL ──────────────────────────────────────────────
     Three-column persistent structure:
       [Top bar — 44px, full width]
       [Left rail | hairline | Canvas | hairline | Vega rail]
     The shell is flex-column (topbar then body); the body is flex-row. */
  .app-shell { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
  .app-body { display: flex; flex: 1; min-height: 0; overflow: hidden; }
  /* Legacy .app alias — kept so any external CSS / scripts referencing it
     still find the shell wrapper. New code should target .app-shell. */
  .app { display: flex; height: 100vh; overflow: hidden; }

  /* App-topbar specific concerns layered on top of legacy .topbar rules.
     §11.1: brand mark + wordmark left, breadcrumb center-left, actions right. */
  .app-topbar { position: relative; z-index: 10; }
  .app-topbar-brand {
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; user-select: none; height: 100%;
    padding: 0 4px; border-radius: var(--radius-sm);
    transition: background-color var(--duration-fast) var(--ease-standard);
  }
  .app-topbar-brand:hover { background: rgba(255,255,255,0.08); }
  .app-topbar-mark { flex-shrink: 0; }
  .app-topbar-wordmark {
    /* §2.1 wordmark — lowercase, Geist 500, -0.01em at UI sizes. */
    font: 500 14px/1 var(--font-sans);
    letter-spacing: -0.01em;
    color: var(--text-on-anchor);
    text-transform: lowercase;
  }
  .app-topbar-divider {
    width: 1px; height: 14px;
    background: rgba(255,255,255,0.16);
    flex-shrink: 0;
  }
  .app-topbar-context { display: flex; flex-direction: column; min-width: 0; }

  /* ── SIDEBAR ──────────────────────────────────────────────────────
     §11.1 Left rail — 240px expanded default; 56px collapsed.
     Canonical treatment per foundational-updates-may-2026 §1:
       - Background: --anchor (navy)
       - Default rows: transparent bg, 70%-opacity text, 2px reserved
         transparent left border so text alignment doesn't shift
       - Hover/active rows: --anchor-raised bg, 100% text
       - Active row: 2px --brand-primary left edge (the only mineral-green
         signal — never a filled green block)
     ──────────────────────────────────────────────────────────────── */
  .sidebar { width: 240px; min-width: 240px; background: var(--anchor); border-right: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; overflow: hidden; transition: width var(--duration-base) var(--ease-standard), min-width var(--duration-base) var(--ease-standard); color: var(--text-on-anchor); }
  .sidebar.collapsed { width: 56px; min-width: 56px; }
  .sidebar.collapsed .nav-item span,
  .sidebar.collapsed .nav-group-label,
  .sidebar.collapsed .ctx-label,
  .sidebar.collapsed .ctx-name,
  .sidebar.collapsed .util-item span,
  .sidebar.collapsed .util-persona,
  .sidebar.collapsed .sidebar-cmdk-label,
  .sidebar.collapsed .sidebar-cmdk-kbd { display: none; }
  .sidebar.collapsed .nav-item,
  .sidebar.collapsed .util-item { justify-content: center; padding: 7px 0; }
  .sidebar.collapsed .sidebar-head { flex-direction: column; gap: 8px; padding: 12px 8px; }
  .sidebar.collapsed .sidebar-cmdk { justify-content: center; padding: 7px 0; }

  /* §11.1 Pinned head: brand icon + ⌘K trigger. Wordmark lives in topbar. */
  .sidebar-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .sidebar-logo-btn { flex-shrink: 0; width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--brand-primary); display: flex; align-items: center; justify-content: center; border: none; padding: 0; cursor: pointer; transition: filter var(--duration-fast) var(--ease-standard); }
  .sidebar-logo-btn:hover { filter: brightness(1.08); }
  .sidebar-logo-btn:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
  .sidebar-cmdk { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; background: var(--anchor-raised); color: rgba(255,255,255,0.78); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-sm); font: 400 12px/1 var(--font-sans); cursor: pointer; transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
  .sidebar-cmdk:hover { background: rgba(255,255,255,0.06); color: #fff; }
  .sidebar-cmdk:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
  .sidebar-cmdk-icon { color: rgba(255,255,255,0.6); flex-shrink: 0; }
  .sidebar-cmdk-label { color: inherit; flex: 1; text-align: left; }
  .sidebar-cmdk-kbd kbd { font: 500 10px/1 var(--font-mono); color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 3px; padding: 2px 5px; }

  .sidebar-nav { padding: 8px 8px 0; }
  .nav-group { margin-bottom: 4px; }
  .nav-group-label { font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.45); letter-spacing: 0.05em; text-transform: none; padding: 8px 8px 4px; }
  /* Default row: transparent bg, 70% white text, 2px transparent left border to reserve space. */
  .nav-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.7); background: transparent; border: none; border-left: 2px solid transparent; position: relative; white-space: nowrap; }
  .nav-item:hover { background: var(--anchor-raised); color: var(--text-on-anchor); }
  .nav-item.active { background: var(--anchor-raised); color: var(--text-on-anchor); font-weight: 500; border-left: 2px solid var(--brand-primary); }
  .nav-item.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
  .nav-icon { width: 16px; height: 16px; display: block; flex-shrink: 0; }
  .nav-item.active .nav-icon { background: transparent; }
  .nav-badge { margin-left: auto; font-size: 10px; font-weight: 500; background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.7); padding: 1px 6px; border-radius: 10px; font-family: var(--font-sans); }
  .nav-item.active .nav-badge { background: rgba(255,255,255,0.16); color: var(--text-on-anchor); }
  /* Context panel - quick access items below nav */
  .sidebar-context { flex: 1; overflow-y: auto; border-top: 1px solid rgba(255,255,255,0.08); padding: 8px; margin-top: 4px; }
  .ctx-section { margin-bottom: 2px; }
  .ctx-label { font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.45); text-transform: none; letter-spacing: 0.05em; padding: 6px 6px 3px; }
  .ctx-item { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 5px; cursor: pointer; font-size: 12px; color: rgba(255,255,255,0.7); transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); overflow: hidden; }
  .ctx-item:hover { background: var(--anchor-raised); color: var(--text-on-anchor); }
  .ctx-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
  .ctx-dot-blue { background: var(--accent); }
  .ctx-dot-purple { background: var(--accent2); }
  .ctx-dot-amber { background: var(--gold); }
  .ctx-dot-green { background: var(--green); }
  .ctx-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ctx-empty { font-size: 11px; color: rgba(255,255,255,0.45); padding: 3px 6px; font-style: italic; }
  /* Bottom utility bar */
  .sidebar-util { border-top: 1px solid rgba(255,255,255,0.08); padding: 8px; display: flex; flex-direction: column; gap: 1px; }
  .util-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: var(--radius-sm); cursor: pointer; font-size: 12.5px; color: rgba(255,255,255,0.7); transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
  .util-item:hover { background: var(--anchor-raised); color: var(--text-on-anchor); }
  .theme-toggle-track { width: 28px; height: 16px; border-radius: 8px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); margin-left: auto; position: relative; transition: background 0.2s; cursor: pointer; flex-shrink: 0; }
  .theme-toggle-track.on { background: var(--accent); border-color: var(--accent); }
  .theme-toggle-thumb { width: 10px; height: 10px; border-radius: 50%; background: white; position: absolute; top: 2px; left: 2px; transition: left 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
  .theme-toggle-track.on .theme-toggle-thumb { left: 14px; }
  /* Phase 0 (2026-06-07) — explicit persona switcher (sidebar util).
     Minimal segmented control; visual polish is a later Design concern. */
  .util-persona { display: flex; flex-direction: column; gap: 5px; padding: 4px 8px 8px; }
  .util-persona-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.45); }
  .util-persona-seg { display: flex; gap: 2px; padding: 2px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); }
  .util-persona-opt { flex: 1; border: 0; background: transparent; color: rgba(255,255,255,0.6); font-family: inherit; font-size: 11px; padding: 4px 2px; border-radius: 4px; cursor: pointer; transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
  .util-persona-opt:hover { color: var(--text-on-anchor); }
  .util-persona-opt.active { background: var(--accent); color: #fff; }
  /* Legacy compat — sidebar nested rows */
  .profile-item { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 5px; cursor: pointer; font-size: 12px; color: rgba(255,255,255,0.7); transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
  .profile-item:hover { background: var(--anchor-raised); color: var(--text-on-anchor); }
  .profile-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); flex-shrink: 0; }
  .company-dot { background: var(--accent); }
  .opp-dot { background: var(--gold); }
  .session-dot { background: var(--green); }
  .profile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }

  /* ── MAIN ── */
  .main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
  /* §11.1 Top bar — 44px, anchor-navy, hairline bottom.
     LOCKED PATTERN (Batch 1): the top bar uses the dark anchor surface and
     hosts the brand mark in white-stroke chevrons per §2.1's rule that the
     mark may appear in solid white on dark backgrounds. Wordmark inherits
     --text-on-anchor. Do not light-mode the top bar. */
  .topbar { height: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; padding: 0 16px; gap: 12px; flex-shrink: 0; background: var(--anchor); }
  .topbar-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.16); }
  .topbar-title { font: 500 14px/1.3 var(--font-sans); letter-spacing: -0.01em; color: var(--text-on-anchor); }
  /* Merge loose ends Task 5 (2026-10-21): showView focuses the title after every navigation
     (kept — keyboard and screen-reader users land on the view's name). It is tabindex -1, never
     a tab stop, so the ring read as a stuck green box: not drawn. An empty title (Home) is not
     rendered at all (it was an empty box with a stray green square). */
  .topbar-title[tabindex="-1"]:focus, .topbar-title[tabindex="-1"]:focus-visible { outline: none; }
  .topbar-title:empty { display: none; }
  .topbar-subtitle { font: 400 11px/1.3 var(--font-mono); color: rgba(255,255,255,0.6); letter-spacing: 0; }
  .topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
  .topbar-actions .btn-ghost { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); }
  .topbar-actions .btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
  .topbar-actions .btn-primary { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.3); color: white; box-shadow: none; }
  .topbar-actions .btn-primary:hover { background: rgba(255,255,255,0.26); transform: none; }
  .topbar-actions .btn-danger { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.2); }
  [data-theme="dark"] .topbar { background: var(--anchor); border-bottom-color: rgba(255,255,255,0.06); }
  .content { --content-pad-top: 28px; flex: 1; overflow-y: auto; padding: var(--content-pad-top) 32px; }

  /* ── VIEWS ── */
  .view { display: none; }
  .view.active { display: block; }


  /* ── §10.1 Button matrix ────────────────────────────────────
     Variants: primary / secondary / ghost / destructive / icon.
     Sizes: sm (24px), md (32px, default), lg (40px). The global
     .btn-sm class kept at 32px for accessibility (touch target).
     Use .btn-size-sm for the design's true 24px in non-touch contexts.
     ────────────────────────────────────────────────────────── */
  .btn {
    font: 500 13px/1 var(--font-sans);
    letter-spacing: -0.005em;
    height: 32px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition:
      background-color var(--duration-fast) var(--ease-standard),
      border-color var(--duration-fast) var(--ease-standard),
      color var(--duration-fast) var(--ease-standard),
      transform var(--duration-instant) var(--ease-standard);
  }
  .btn:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
  .btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

  /* Primary — solid brand. */
  .btn-primary { background: var(--brand-primary); color: var(--text-on-brand); border-color: var(--brand-primary); }
  .btn-primary:hover { background: var(--brand-primary-hover); border-color: var(--brand-primary-hover); }
  .btn-primary:active { background: var(--brand-primary-hover); transform: scale(0.98); }

  /* Secondary — bordered neutral. */
  .btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border-default); }
  .btn-secondary:hover { background: var(--surface-raised); border-color: var(--border-strong); }
  .btn-secondary:active { transform: scale(0.98); }

  /* Ghost — borderless tertiary. */
  /* Bordered (owner ruling 2026-11-02): with a transparent border a ghost control read as plain
     text — 'Record a conversation', admin 'Edit…'. Still quieter than secondary (lighter text). */
  .btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border-default); }
  .btn-ghost:hover { background: var(--surface-raised); color: var(--text-primary); }
  .btn-ghost:active { transform: scale(0.98); }

  /* Destructive (alias .btn-danger kept for back-compat). */
  .btn-destructive,
  .btn-danger { background: transparent; color: var(--negative); border-color: var(--negative); }
  .btn-destructive:hover,
  .btn-danger:hover { background: var(--negative-tint); }
  .btn-destructive:active,
  .btn-danger:active { transform: scale(0.98); }

  /* Icon — square borderless. Always pair with aria-label. */
  .btn-icon { background: transparent; color: var(--text-tertiary); border-color: transparent; padding: 0; width: 32px; justify-content: center; gap: 0; }
  .btn-icon:hover { background: var(--surface-raised); color: var(--text-primary); }
  .btn-icon:active { transform: scale(0.95); }

  /* Sizes. .btn-sm preserved at 32px height for accessibility — the design's
     true 24px is .btn-size-sm, only for dense non-touch contexts. */
  .btn-sm { height: 32px; padding: 0 10px; font-size: 12px; min-height: 32px; min-width: 32px; }
  .btn-size-sm { height: 24px; padding: 0 8px; font-size: 12px; }
  .btn-lg { height: 40px; padding: 0 16px; font-size: 14px; }

  /* ── DETAIL VIEW ── */
  .detail-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
  .detail-title { font: 500 24px/1.25 var(--font-sans); letter-spacing: -0.018em; color: var(--text); }
  .detail-meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
  .meta-tag { font-family: var(--font-mono); font-size: 10px; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border2); color: var(--text3); background: var(--surface2); }
  .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
  .detail-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
  .detail-list li { font-size: 13px; color: var(--text2); padding: 6px 10px; background: var(--surface2); border-radius: 5px; border: 1px solid var(--border); line-height: 1.4; }
  .detail-list li::before { content: '→ '; color: var(--accent); font-family: var(--font-mono); font-size: 11px; }

  /* ── FORM ── */
  .form-row { margin-bottom: 18px; }
  .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
  .form-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text2); margin-bottom: 6px; font-family: var(--font-mono); letter-spacing: 0.5px; text-transform: none; }
  /* .layer-badge / .layer-badge.l1 / .layer-badge.l2 removed in Batch 3.
     Replaced by .vs-provenance-tag per form-modal-spec §4.2. */
  /* ── §10.2 Input state matrix ─────────────────────────────────
     32px height, 1px border, hover strengthens, focus rings brand
     fade, error rings negative. Numeric inputs override align/font
     in the Input class downstream.
     ────────────────────────────────────────────────────────────── */
  input[type="text"], input[type="number"], input[type="email"],
  input[type="search"], textarea, select {
    width: 100%;
    height: 32px;
    background: var(--surface-panel);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font: 400 13px/1.4 var(--font-sans);
    letter-spacing: -0.003em;
    padding: 0 10px;
    outline: none;
    transition: border-color var(--duration-fast) var(--ease-standard),
                box-shadow var(--duration-fast) var(--ease-standard);
  }
  textarea { height: auto; min-height: 80px; padding: 8px 10px; resize: vertical; line-height: 1.45; }
  /* A select carrying its own vertical padding (inline 8px on the Value Library form) clipped
     its text at a fixed 32px — "Productivity" read "Productivitv" (cleanup 2026-11-02, screenshot).
     32px is a floor, never a ceiling: unpadded selects are unchanged. */
  select { height: auto; min-height: 32px; }
  input[type="text"]:hover, input[type="number"]:hover, input[type="email"]:hover,
  input[type="search"]:hover, textarea:hover, select:hover { border-color: var(--border-strong); }
  input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus,
  input[type="search"]:focus, textarea:focus, select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px var(--brand-primary-fade);
  }
  input:disabled, textarea:disabled, select:disabled {
    background: var(--surface-dim);
    opacity: 0.6;
    cursor: not-allowed;
  }
  input.error, textarea.error, select.error,
  input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
    border-color: var(--negative);
    box-shadow: 0 0 0 2px var(--negative-tint);
  }
  /* Numeric inputs — right-align, mono. */
  input[type="number"] {
    text-align: right;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum", "zero", "ss01";
  }
  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
  input[type="number"] { -moz-appearance: textfield; }
  .form-section-title { font-family: var(--font-sans); font-size: 15px; color: var(--text); margin: 20px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
  /* .use-case-list, .use-case-item, .add-btn, .remove-btn removed in
     Batch 3. Replaced by .vs-repeating-list / .vs-repeating-row /
     .vs-repeating-add / .vs-repeating-remove per form-modal-spec §3.3. */


  /* ── SETTINGS ── */
  .settings-section { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 16px; border-left: 3px solid var(--accent); }
  .settings-section h3 { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
  .settings-section p { font-size: 13px; color: var(--text3); margin-bottom: 14px; line-height: 1.5; }
  .api-key-field { display: flex; gap: 8px; }
  .api-key-field input { flex: 1; font-family: var(--font-mono); font-size: 12px; }
  .tier-list { display: flex; flex-direction: column; gap: 6px; }
  .tier-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text2); padding: 8px 12px; background: var(--bg); border-radius: 6px; border: 1px solid var(--border); }
  .tier-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
  .tier-dot.l1 { background: var(--green); }
  .tier-dot.l2 { background: var(--gold); }
  .tier-item small { color: var(--text3); font-size: 12px; margin-left: auto; font-family: var(--font-mono); flex-shrink: 0; }

  /* ── EMPTY / COMING SOON ── */
  .empty-state { text-align: center; padding: 60px 20px; color: var(--text3); }
  .empty-state .icon { display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--text3); }
  .empty-state h3 { font-family: var(--font-sans); font-size: 20px; color: var(--text2); margin-bottom: 8px; }
  .empty-state p { font-size: 13.5px; line-height: 1.6; max-width: 380px; margin: 0 auto 20px; }
  .coming-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; gap: 16px; }
  .coming-soon-icon { font-size: 48px; }
  .coming-soon h2 { font-family: var(--font-sans); font-size: 26px; color: var(--text); }
  .coming-soon p { font-size: 14px; color: var(--text2); max-width: 420px; line-height: 1.6; }
  .stage-tag { font-family: var(--font-mono); font-size: 10px; padding: 4px 12px; border-radius: 20px; background: rgba(232,184,75,0.1); border: 1px solid rgba(232,184,75,0.25); color: var(--gold); letter-spacing: 1.5px; text-transform: none; }

  /* ── API KEY NOTICE ── */
  .api-key-bar { background: rgba(79,142,247,0.08); border: 1px solid rgba(79,142,247,0.2); border-radius: 8px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 13px; color: var(--text2); }
  .api-key-bar .icon { font-size: 18px; flex-shrink: 0; }
  .api-key-bar .btn { margin-left: auto; flex-shrink: 0; }

  /* ── SECTION HEADERS ── */
  .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--border); }
  .section-title { font: 500 19px/1.3 var(--font-sans); letter-spacing: -0.015em; color: var(--text); display: flex; align-items: center; gap: 10px; }
  .section-title::before { content: ''; width: 3px; height: 18px; background: var(--brand-primary); border-radius: 0; display: inline-block; flex-shrink: 0; }
  .section-sub { font-size: 12px; color: var(--text3); margin-top: 2px; font-family: var(--font-mono); letter-spacing: 0.5px; }

  /* ══════════════════════════════════════════
     STAGE 2 — COMPANY RESEARCH STYLES
  ══════════════════════════════════════════ */


  .run-input-wrapper { position: relative; }
  .run-input-wrapper input { font-size: 16px; padding: 12px 16px; }

  /* Progress log */
  .progress-container { margin-top: 20px; }
  .progress-header { font-family: var(--font-mono); font-size: 10px; color: var(--text3); letter-spacing: 1.5px; text-transform: none; margin-bottom: 10px; }
  .progress-log { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; min-height: 120px; max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
  .log-entry { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; animation: logIn 0.2s ease; }
  @keyframes logIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
  .log-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
  .log-text { color: var(--text2); line-height: 1.4; }
  .log-text strong { color: var(--text); font-weight: 500; }
  .log-entry.pending .log-text { color: var(--text3); }
  .log-entry.running .log-text { color: var(--accent); }
  .log-entry.done .log-text { color: var(--green); }
  .log-entry.error .log-text { color: var(--red); }
  .log-spinner { display: inline-block; animation: spin 0.8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .progress-bar-wrap { margin-top: 12px; background: var(--surface3); border-radius: 999px; height: 8px; overflow: hidden; }
  .progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 999px; transition: width 0.9s ease-out; }

  /* Research streaming preview (Phase P / Day 5) — sections appear live as
     Claude streams text-delta events into them. Append-only rendering, no
     markdown parsing during stream so there is zero flicker. */
  .research-preview { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
  .research-preview-section { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface-panel); animation: logIn 0.2s ease; }
  .research-preview-header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface-dim); border-bottom: 1px solid var(--border-subtle); font-size: 12px; }
  .research-preview-icon { font-size: 13px; flex-shrink: 0; }
  .research-preview-title { color: var(--text); font-weight: 500; }
  .research-preview-section.running .research-preview-title { color: var(--accent); }
  .research-preview-section.done .research-preview-title { color: var(--green); }
  .research-preview-section.error .research-preview-title { color: var(--red); }
  .research-preview-content { font-family: var(--font-mono); font-size: 11px; line-height: 1.55; color: var(--text2); margin: 0; padding: 10px 12px; max-height: 220px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
  .research-preview-content:empty { display: none; }

  /* Company detail / dashboard */
  .company-detail-header { margin-bottom: 28px; }
  .company-detail-title { font-family: var(--font-sans); font-size: 28px; color: var(--text); }
  .company-detail-meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; }

  .research-dashboard { display: flex; flex-direction: column; gap: 16px; }
  .research-section { background: var(--surface-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--duration-fast) var(--ease-standard); }
  .research-section:hover { border-color: var(--border2); }
  .research-section.open { border-color: var(--brand-primary); }
  .research-section.open .research-section-header { background: var(--brand-primary-fade); border-left: 3px solid var(--accent); }
  .research-section.open .research-section-header { background: var(--brand-primary-fade); border-left: 3px solid var(--accent); }
  .NOOP { border-color: var(--border-strong); }
  .research-section-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px 13px 16px; cursor: pointer; transition: background 0.12s, border-color 0.12s; user-select: none; border-left: 3px solid transparent; }
  .research-section-header:hover { background: var(--accent-glow); border-left-color: rgba(45, 90, 76, 0.3); }
  .research-section-title { font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 10px; letter-spacing: -0.1px; }
  .research-section-icon { font-size: 15px; opacity: 0.8; }
  .research-section.open .research-section-icon { opacity: 1; }
  .research-section.open .research-section-title { color: var(--accent); }
  .research-section-badge { font-family: var(--font-mono); font-size: 10px; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--brand-primary-tint); color: var(--accent); background: var(--accent-light); font-weight: 500; }
  .research-section-chevron { color: var(--text3); font-size: 11px; transition: transform 0.2s; }
  .research-section.open .research-section-chevron { transform: rotate(180deg); color: var(--accent); }
  .research-section.open .research-section-header { background: var(--accent-glow); border-left-color: var(--accent); }
  .research-section-body { display: none; padding: 0 20px 20px; border-top: 1px solid var(--border); }
  .research-section.open .research-section-body { display: block; animation: sectionIn 0.15s ease; }
  @keyframes sectionIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  .research-content { font-size: 13.5px; color: var(--text2); line-height: 1.75; padding-top: 16px; }
  .research-content h1, .research-content h2, .research-content h3 { font-family: var(--font-sans); color: var(--text); margin: 16px 0 8px; }
  .research-content h1 { font-size: 18px; }
  .research-content h2 { font-size: 15px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
  .research-content h3 { font-size: 13.5px; color: var(--accent); }
  .research-content strong { color: var(--text); font-weight: 500; }
  .research-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12.5px; }
  .research-content th { background: var(--surface2); color: var(--text2); padding: 8px 10px; text-align: left; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px; text-transform: none; font-weight: 500; }
  .research-content td { padding: 8px 10px; border: 1px solid var(--border); color: var(--text2); vertical-align: top; line-height: 1.5; }
  .research-content tr:nth-child(even) td { background: var(--surface2); }
  .research-content ul, .research-content ol { padding-left: 18px; margin: 8px 0; }
  .research-content li { margin-bottom: 4px; }
  .research-content code { font-family: var(--font-mono); font-size: 11.5px; background: var(--surface2); padding: 1px 5px; border-radius: 3px; }

  /* Facts & handoff tabs */
  .tab-bar { display: flex; gap: 4px; padding: 0; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
  .tab-btn { font-family: var(--font-sans); font-size: 12px; font-weight: 500; padding: 9px 16px; background: none; border: none; color: var(--text3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s; letter-spacing: 0; }
  .tab-btn:hover { color: var(--text); }
  .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }
  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  /* Structured facts */
  .facts-list { display: flex; flex-direction: column; gap: 6px; }
  .fact-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; color: var(--text2); line-height: 1.5; }
  .fact-item::before { content: '·'; color: var(--accent); font-size: 18px; line-height: 1; flex-shrink: 0; }
  .fact-source { font-family: var(--font-mono); font-size: 10px; color: var(--text3); margin-top: 2px; }

  /* Refresh banner */
  .stale-banner { background: rgba(232,184,75,0.08); border: 1px solid rgba(232,184,75,0.2); border-radius: 8px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 13px; color: var(--text2); }
  .stale-banner .btn { margin-left: auto; flex-shrink: 0; }

  /* ── TOAST ── */
  .toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
  /* Merge loose ends (2026-10-21): toasts (the merge's Undo among them) sat ON the Vega rail's
     chat input, bottom-right. Stand clear of the rail — 360px open, 40px collapsed (.vega-rail). */
  body:has(#vega-rail) .toast-container { right: calc(360px + 24px); }
  body:has(#vega-rail.collapsed) .toast-container { right: calc(40px + 24px); }
  .toast { background: var(--surface); border: 1px solid var(--border2); border-radius: 8px; padding: 12px 16px; font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 320px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); animation: toastIn 0.2s ease; }
  .toast.success { border-color: rgba(61,214,140,0.3); }
  .toast.success .toast-icon { color: var(--green); }
  .toast.error { border-color: rgba(247,80,80,0.3); }
  .toast.error .toast-icon { color: var(--red); }
  /* G19 (2026-08-25): `info` and `warning` are used by 13 live call sites and
     had NO variant here, so they fell to the neutral base while success/error
     were coloured — the toast's own type was invisible. Paired with the glyph
     map in utils.js showToast(), which drew an ERROR mark for both. */
  .toast.info { border-color: var(--brand-primary-fade); }
  .toast.info .toast-icon { color: var(--accent); }
  .toast.warning { border-color: var(--warning-tint); }
  .toast.warning .toast-icon { color: var(--gold); }
  @keyframes toastIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

  /* ── BRANDED ROUTE/NAV LOADER (owner-smoke design track 2026-07-08) ── */
  /* Fades over the app background during "don't yet know which screen to
     paint" windows, so a stale screen never flashes. Toggled by
     window.vsLoader.show()/.hide() (public/modules/workspace/branded-loader.js). */
  .vs-loader { position: fixed; inset: 0; z-index: 4000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity var(--duration-fast, 0.16s) var(--ease-standard, ease); }
  .vs-loader.visible { opacity: 1; pointer-events: auto; }
  .vs-loader-mark { display: flex; animation: vsLoaderPulse 1.4s var(--ease-standard, ease) infinite; }
  .vs-loader-mark svg { display: block; }
  .vs-loader-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.5px; color: var(--text3); min-height: 14px; }
  @keyframes vsLoaderPulse { 0%, 100% { opacity: 0.35; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-2px); } }
  @media (prefers-reduced-motion: reduce) { .vs-loader-mark { animation: none; opacity: 0.85; } }

  /* ── PROFILE RESEARCH PREFILL ── */
  .prefill-bar { display: flex; gap: 8px; align-items: center; padding: 14px 16px; background: rgba(79,142,247,0.07); border: 1px solid rgba(79,142,247,0.18); border-radius: 8px; margin-bottom: 20px; }
  .prefill-bar input { flex: 1; background: var(--bg); }
  .prefill-phase { display: none; }
  .prefill-phase.active { display: block; }
  .prefill-log { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; min-height: 80px; max-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
  .prefill-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
  .prefill-divider-line { flex: 1; height: 1px; background: var(--border); }
  .prefill-divider-text { font-family: var(--font-mono); font-size: 9px; color: var(--text3); letter-spacing: 1.5px; text-transform: none; white-space: nowrap; }
  .prefill-success-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(61,214,140,0.08); border: 1px solid rgba(61,214,140,0.2); border-radius: 7px; margin-bottom: 16px; font-size: 12.5px; color: var(--green); font-family: var(--font-mono); }
  /* Flow S0: the product form's autosave line ("Saved", "Couldn't save — retrying"). */
  .vs-autosave-status { font-size: 12px; color: var(--text3); margin-bottom: 12px; min-height: 16px; }


  /* ══════════════════════════════════════════
     STAGE 4 — AI CHAT / OUTPUT SESSIONS
  ══════════════════════════════════════════ */

  .session-mode-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 10px; padding: 2px 8px; border-radius: 4px; border: 1px solid; margin-bottom: 10px; }
  .session-mode-badge.mode-discovery { border-color: rgba(56,201,247,0.3); color: #38c9f7; background: rgba(56,201,247,0.07); }
  .session-mode-badge.mode-objection { border-color: rgba(247,80,80,0.3); color: var(--red); background: rgba(247,80,80,0.07); }
  .session-mode-badge.mode-narrative { border-color: rgba(123,90,245,0.3); color: var(--accent2); background: rgba(123,90,245,0.07); }
  .session-mode-badge.mode-executive { border-color: rgba(61,214,140,0.3); color: var(--green); background: rgba(61,214,140,0.07); }

  /* Mode selector */
  .mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
  .mode-item { padding: 14px 16px; border-radius: 8px; border: 1px solid var(--border2); cursor: pointer; transition: all 0.15s; }
  .mode-item:hover { border-color: var(--border2); background: var(--surface2); }
  .mode-item.selected.mode-discovery { border-color: rgba(56,201,247,0.4); background: rgba(56,201,247,0.07); }
  .mode-item.selected.mode-objection { border-color: rgba(247,80,80,0.4); background: rgba(247,80,80,0.07); }
  .mode-item.selected.mode-narrative { border-color: rgba(123,90,245,0.4); background: rgba(123,90,245,0.08); }
  .mode-item.selected.mode-executive { border-color: rgba(61,214,140,0.4); background: rgba(61,214,140,0.07); }
  .mode-item-icon { font-size: 20px; margin-bottom: 6px; }
  .mode-item-name { font-size: 13.5px; color: var(--text); font-weight: 500; margin-bottom: 3px; }
  .mode-item-desc { font-size: 12px; color: var(--text3); line-height: 1.4; }

  /* Session detail — split layout */
  .session-layout { display: grid; grid-template-columns: 1fr 400px; gap: 20px; height: calc(100vh - 140px); overflow: hidden; }

  /* Live document panel */
  .session-doc-panel { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .session-doc-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; background: var(--surface2); }
  .session-doc-title { font-family: var(--font-sans); font-size: 15px; color: var(--text); }
  .session-doc-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
  .session-doc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: var(--text3); gap: 10px; }
  .session-doc-empty-icon { font-size: 32px; }
  .session-doc-empty-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: none; }
  .session-doc-empty-text { font-size: 13px; line-height: 1.6; max-width: 260px; }
  .session-doc-content { font-size: 14px; color: var(--text2); line-height: 1.75; }
  .session-doc-content h1 { font-family: var(--font-sans); font-size: 22px; color: var(--text); margin: 0 0 6px; }
  .session-doc-content h2 { font-family: var(--font-sans); font-size: 17px; color: var(--text); margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
  .session-doc-content h3 { font-family: var(--font-sans); font-size: 14.5px; color: var(--accent2); margin: 16px 0 6px; }
  .session-doc-content strong { color: var(--text); font-weight: 500; }
  .session-doc-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
  .session-doc-content th { background: var(--surface2); color: var(--text2); padding: 8px 10px; text-align: left; border: 1px solid var(--border2); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px; text-transform: none; }
  .session-doc-content td { padding: 7px 10px; border: 1px solid var(--border); color: var(--text2); vertical-align: top; }
  .session-doc-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
  .session-doc-content ul, .session-doc-content ol { padding-left: 20px; margin: 8px 0; }
  .session-doc-content li { margin-bottom: 5px; }
  .session-doc-content code { font-family: var(--font-mono); font-size: 12px; background: var(--surface2); padding: 1px 5px; border-radius: 3px; }
  .session-doc-content p { margin-bottom: 10px; }
  .session-doc-content blockquote { border-left: 3px solid var(--accent2); padding-left: 14px; color: var(--text3); font-style: italic; margin: 10px 0; }

  /* Session chat panel */
  .session-chat-panel { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .session-context-bar { padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex-shrink: 0; }
  .ctx-chip { font-family: var(--font-mono); font-size: 10px; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border2); color: var(--text3); }
  .ctx-chip.has-value { color: var(--text2); border-color: var(--border2); }


  /* ══════════════════════════════════════════
     STAGE 5 — OUTPUTS LIBRARY
  ══════════════════════════════════════════ */
  /* .outputs-toolbar / .outputs-filter-group / .outputs-divider removed
     (W6-C 2026-07-25) — orphaned once the dead shell #outputs-toolbar
     block died; grep-verified no other consumers. The four .filter-chip
     rules removed (W6-D 2026-07-25) — orphaned since W6-C deleted
     vlFilterBtn; grep-verified no other consumers (backlog idea from
     the W6-C close, folded in per the W6-D spec). */

  /* Output viewer */
  .output-viewer { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
  .output-viewer-header { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--surface2); }
  .output-viewer-title { font-family: var(--font-sans); font-size: 18px; color: var(--text); }
  .output-viewer-body { padding: 28px 32px; overflow-y: auto; max-height: calc(100vh - 280px); }
  .output-doc-content { font-size: 14px; color: var(--text2); line-height: 1.8; }
  .output-doc-content h1 { font-family: var(--font-sans); font-size: 24px; color: var(--text); margin: 0 0 8px; }
  .output-doc-content h2 { font-family: var(--font-sans); font-size: 18px; color: var(--text); margin: 24px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
  .output-doc-content h3 { font-family: var(--font-sans); font-size: 15px; color: var(--accent2); margin: 18px 0 6px; }
  .output-doc-content strong { color: var(--text); font-weight: 500; }
  .output-doc-content p { margin-bottom: 10px; }
  .output-doc-content ul, .output-doc-content ol { padding-left: 20px; margin: 8px 0; }
  .output-doc-content li { margin-bottom: 5px; }
  .output-doc-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
  .output-doc-content th { background: var(--surface2); color: var(--text2); padding: 8px 10px; text-align: left; border: 1px solid var(--border2); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px; text-transform: none; }
  .output-doc-content td { padding: 7px 10px; border: 1px solid var(--border); color: var(--text2); vertical-align: top; }
  .output-doc-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
  .output-doc-content blockquote { border-left: 3px solid var(--accent2); padding-left: 14px; color: var(--text3); font-style: italic; margin: 10px 0; }

  /* .map-session-strip / .map-session-btn* removed (2026-05-05) —
     orphaned after the hotfix sweep deleted the six "Start an AI
     Session" buttons on the opp-map detail surface. See
     opportunity-maps.js for the deletion comment. */


  /* HOME PAGE — legacy marketing-aesthetic styles removed (Batch 5).
     Replaced by .home-dashboard / .home-kpi-* / .home-continue-* /
     .home-activity-* / .home-vega-* / .home-footer-nudge in
     public/styles/components.css per docs/design/home-dashboard-spec.md. */

  /* ── ADMIN ── */
  .admin-gear-btn { display:block; margin:8px auto 4px; background:none; border:none; color:var(--text3); font-size:16px; cursor:pointer; padding:7px 10px; border-radius:6px; transition:color .15s,background .15s; width:calc(100% - 16px); text-align:left; }
  .admin-gear-btn:hover { color:var(--text1); background:var(--surface2); }
  .admin-layout { display:grid; grid-template-columns:210px 1fr; height:100%; overflow:hidden; }
  .admin-sidebar { border-right:1px solid var(--border); padding:20px 0; overflow-y:auto; height:100%; }
  .admin-sidebar-title { font-size:10px; font-weight:700; letter-spacing:.1em; color:var(--text3); text-transform: none; padding:0 16px 10px; }
  .admin-nav-item { padding:9px 16px; font-size:13px; color:var(--text2); cursor:pointer; transition:all .15s; border-left:2px solid transparent; display:flex; align-items:center; gap:8px; }
  .admin-nav-item:hover { color:var(--text1); background:var(--surface2); }
  .admin-nav-item.active { color:var(--accent2); border-left-color:var(--accent2); background:rgba(99,102,241,.06); font-weight:500; }
  .admin-main { overflow-y:auto; padding:28px 36px; }
  .admin-section-title { font-size:17px; font-weight:700; color:var(--text1); margin-bottom:4px; }
  .admin-section-sub { font-size:13px; color:var(--text3); margin-bottom:24px; }
  .form-row { margin-bottom:14px; }
  .form-row label { display:block; font-size:11px; font-weight:600; text-transform: none; letter-spacing:.06em; color:var(--text3); margin-bottom:5px; }
  .form-row input, .form-row textarea { width:100%; background:var(--surface2); border:1px solid var(--border); border-radius:6px; padding:9px 11px; font-size:13px; color:var(--text1); font-family:inherit; resize:vertical; box-sizing:border-box; }
  .form-row input:focus, .form-row textarea:focus { outline:none; border-color:var(--accent2); }
  .form-row textarea { min-height:90px; line-height:1.5; }
  .form-row-half { display:grid; grid-template-columns:80px 1fr; gap:12px; }
  .admin-empty-state { text-align:center; padding:36px 20px; color:var(--text3); font-size:13px; }
  .admin-empty-state .ei { font-size:28px; margin-bottom:10px; }

  /* ── LEVER LINE REVIEW QUEUE (unit 7, 2026-09-13) ──
     Admin -> Lever reviews. An agent proposes a P&L line per canonical lever;
     the practitioner confirms, edits or rejects.
     Spec: docs/specs/2026-09-12-lever-line-review-queue.md */
  .admin-review-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0 10px; flex-wrap:wrap; }
  .admin-review-counts { font-size:12px; color:var(--text3); }
  .admin-review-banner { font-size:12px; color:var(--text2); background:var(--surface2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px 10px; margin-bottom:10px; cursor:pointer; }
  .admin-review-banner-error { color:#f87171; border-color:rgba(248,113,113,.4); background:rgba(248,113,113,.08); }
  .admin-review-list { display:flex; flex-direction:column; gap:10px; }
  .admin-review-row { border:1px solid var(--border); border-radius:var(--radius-sm); padding:12px 14px; background:var(--surface1); }
  .admin-review-lever { font-size:13px; font-weight:600; color:var(--text1); margin-bottom:8px; }
  .admin-review-key { font-family:var(--font-mono, ui-monospace, monospace); font-size:11px; color:var(--accent2); margin-right:6px; }
  /* min-width:0 on the columns so a long display name wraps instead of forcing
     the row wider than the admin main column (KI #31's class: a label that does
     not fit its own cell spills into the neighbour, and a left spill leaves
     scrollWidth === clientWidth, so overflow checks cannot see it). */
  .admin-review-compare { display:flex; align-items:flex-start; gap:12px; flex-wrap:wrap; }
  .admin-review-col { flex:1 1 200px; min-width:0; }
  .admin-review-col-label { font-size:10px; text-transform:uppercase; letter-spacing:.04em; color:var(--text3); margin-bottom:2px; }
  .admin-review-col-value { font-size:12px; color:var(--text1); overflow-wrap:anywhere; }
  .admin-review-attr, .admin-review-ftype { color:var(--text2); }
  .admin-review-arrow { color:var(--text3); font-size:13px; align-self:center; flex:0 0 auto; }
  .admin-review-change { font-size:11px; color:var(--accent2); margin-top:8px; overflow-wrap:anywhere; }
  .admin-review-change-none { color:var(--text3); }
  .admin-review-sibling { font-size:11px; color:var(--text2); margin-top:8px; overflow-wrap:anywhere; }
  .admin-review-rationale { font-size:12px; color:var(--text2); margin-top:8px; line-height:1.5; overflow-wrap:anywhere; }
  .admin-review-actions { display:flex; align-items:center; gap:8px; margin-top:10px; flex-wrap:wrap; }
  .admin-review-reject-reason { flex:1 1 180px; min-width:0; font-size:12px; }
  .admin-review-edit { margin-top:10px; padding-top:10px; border-top:1px solid var(--border); }
  .admin-review-edit-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:10px; margin-bottom:10px; }
  .admin-review-hint { font-size:11px; color:#f59e0b; margin-bottom:8px; }
  .admin-review-decided { margin-top:16px; }
  .admin-review-decided-toggle { background:none; border:none; color:var(--text2); font-size:12px; cursor:pointer; padding:4px 0; }
  .admin-review-row-decided { background:transparent; }
  .admin-review-decided-line { font-size:12px; color:var(--text2); overflow-wrap:anywhere; }
  .admin-review-meta { font-size:11px; color:var(--text3); margin-top:4px; overflow-wrap:anywhere; }
  .admin-review-status { font-size:10px; text-transform:uppercase; letter-spacing:.04em; padding:1px 6px; border-radius:8px; border:1px solid var(--border); margin-right:6px; }
  .admin-review-status-confirmed { color:#3dd68c; border-color:rgba(61,214,140,.4); }
  .admin-review-status-edited { color:#e8b84b; border-color:rgba(232,184,75,.4); }
  .admin-review-status-rejected { color:#f87171; border-color:rgba(248,113,113,.4); }

  /* ── PROFILE LEVER FIT (unit 3, 2026-09-15) ──────────────────────────
     The profile-time lever-fit panel, rendered as a full-width card at the
     end of the profile detail grid (ProfileLeverFitIsland).

     min-width:0 + overflow-wrap:anywhere on every text row for KI #31's
     reason: a long lever name or a gate refusal that does not fit its own
     row spills into the neighbour, and a LEFT spill leaves
     scrollWidth === clientWidth, so an overflow check cannot see it. */
  /* (STOP) `grid-column` HERE IS LOAD-BEARING, NOT STYLING (KI #29's lesson).
     `.detail-grid` is `1fr 1fr` and there is NO `.detail-card.full` rule in
     this file -- measured on production 2026-09-15: the panel rendered 377px
     wide and 3191px tall, one column, with `gridColumn: auto`. The `full`
     class the detail cards pass is inert and has been all along; this rule is
     scoped to THIS panel rather than to `.full`, because fixing `.full`
     globally would silently re-lay-out every existing profile card.
     (WARN) Reported, not fixed: `.detail-card.full` is still inert. */
  .vs-lfit { grid-column: 1 / -1; }
  .vs-lfit-meta { font-weight:400; color:var(--text3); font-size:11px; }
  .vs-lfit-intro { font-size:12px; color:var(--text2); line-height:1.5; margin:4px 0 12px; }
  .vs-lfit-toolbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
  .vs-lfit-banner { font-size:12px; border-radius:var(--radius-sm); padding:8px 10px; margin-bottom:10px; }
  .vs-lfit-banner-error { color:#f87171; border:1px solid rgba(248,113,113,.4); background:rgba(248,113,113,.08); }
  .vs-lfit-empty { font-size:12px; color:var(--text3); padding:8px 0; }
  .vs-lfit-story { font-size:13px; color:var(--text1); font-style:italic; line-height:1.5; margin-bottom:14px; overflow-wrap:anywhere; }
  .vs-lfit-group { margin-top:16px; }
  .vs-lfit-group-title { font-size:12px; font-weight:600; color:var(--text1); margin-bottom:2px; }
  .vs-lfit-group-blurb { font-size:11px; color:var(--text3); line-height:1.5; margin-bottom:8px; }
  .vs-lfit-row { border:1px solid var(--border); border-radius:var(--radius-sm); padding:10px 12px; background:var(--surface1); margin-bottom:8px; min-width:0; }
  .vs-lfit-row-refused { border-color:rgba(248,113,113,.35); }
  .vs-lfit-row-head { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; min-width:0; }
  .vs-lfit-key { font-family:var(--font-mono, ui-monospace, monospace); font-size:11px; color:var(--accent2); flex:0 0 auto; }
  .vs-lfit-name { font-size:12px; font-weight:600; color:var(--text1); min-width:0; overflow-wrap:anywhere; }
  .vs-lfit-relevance { font-size:11px; color:var(--text3); margin-left:auto; flex:0 0 auto; }
  .vs-lfit-verdict { font-size:10px; text-transform:uppercase; letter-spacing:.04em; border:1px solid var(--border); border-radius:3px; padding:1px 5px; margin-left:auto; flex:0 0 auto; }
  .vs-lfit-verdict-pass { color:#3dd68c; border-color:rgba(61,214,140,.4); }
  .vs-lfit-verdict-refused { color:#f87171; border-color:rgba(248,113,113,.4); }
  .vs-lfit-reason { font-size:12px; color:var(--text2); line-height:1.5; margin-top:6px; overflow-wrap:anywhere; }
  .vs-lfit-formula { font-family:var(--font-mono, ui-monospace, monospace); font-size:11px; color:var(--text3); margin-top:6px; overflow-wrap:anywhere; }
  .vs-lfit-refusals { font-size:11px; color:#f87171; margin-top:6px; line-height:1.5; overflow-wrap:anywhere; }
  .vs-lfit-warnings { font-size:11px; color:#e8b84b; margin-top:6px; line-height:1.5; overflow-wrap:anywhere; }
  .vs-lfit-detail { margin-top:6px; font-size:11px; color:var(--text3); }
  .vs-lfit-detail > summary { cursor:pointer; user-select:none; }
  .vs-lfit-actions { display:flex; align-items:center; gap:6px; margin-top:8px; flex-wrap:wrap; }
  .vs-lfit-chosen { font-size:10px; text-transform:uppercase; letter-spacing:.04em; color:var(--text3); }
  .vs-lfit-edit-note { font-size:11px; color:var(--text3); margin-top:8px; line-height:1.5; }
  .vs-lfit-edit { width:100%; min-height:220px; margin-top:6px; font-family:var(--font-mono, ui-monospace, monospace); font-size:11px; line-height:1.5; color:var(--text1); background:var(--surface2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px; resize:vertical; }


  /* ── SKELETON / SHIMMER LOADER ── */
  .skeleton { background: var(--skeleton-bg); border-radius: var(--radius-sm); position: relative; overflow: hidden; }
  .skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, var(--skeleton-shine) 50%, transparent 100%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; }
  @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
  @media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

  /* Stat card skeletons */
  .skel-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
  .skel-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
  .skel-stat-label { height: 10px; width: 55%; }
  .skel-stat-value { height: 28px; width: 70%; }
  .skel-stat-sub { height: 10px; width: 45%; }

  /* Opp map generating layout — skeleton sections + progress log side-by-side */
  .opp-gen-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
  .opp-gen-skeleton { display: flex; flex-direction: column; gap: 12px; }
  .skel-opp-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
  .skel-opp-header { height: 14px; width: 40%; }
  .skel-opp-line { height: 10px; border-radius: 3px; }

  /* Session doc skeleton */
  .session-doc-skeleton { display: flex; flex-direction: column; gap: 12px; }
  .skel-doc-title { height: 22px; width: 58%; border-radius: 4px; }
  .skel-doc-subtitle { height: 12px; width: 38%; border-radius: 4px; }
  .skel-doc-para { height: 10px; border-radius: 3px; }
  .skel-doc-spacer { height: 16px; }

  /* Grid skeleton cards — shown before data loads */
  .skel-grid-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
  .skel-grid-card .skel-line { height: 12px; border-radius: 3px; }
  .skel-grid-card .skel-line-short { height: 12px; width: 60%; border-radius: 3px; }
  .skel-grid-card .skel-line-xs { height: 10px; width: 40%; border-radius: 3px; }

  /* ── COMPANY STATS STRIP ── */
  /* ── RELATED-WORK STRIP on account research (owner-smoke design track 2026-07-08) ── */
  /* Was unstyled run-on text ("Business cases 0 No BCs yet…"); now a labeled
     strip with clear counts + jump-to affordance. Markup: companies.js
     (_renderAccountPersonaStrip). */
  .cd-related-work { margin-bottom: 20px; }
  /* A tab's sentence and its action never touch (cleanup 2026-11-02: "Map this deal" sat flush under its sentence). */
  .cd-related-work > p + .btn, .cd-related-work > p + button { margin-top: 10px; }
  .cd-related-work-head { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px; color: var(--text3); margin-bottom: 8px; }
  /* What the buyer asked for (ST-6 design pass 2026-11-27): one row per item — the thing in body text, where it
     came from as a caption under it, its actions on the right at a fixed size so they never wrap under the text. */
  .vs-asks-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-subtle); }
  .vs-asks-list + .cd-related-work-head, .vs-asks-empty + .cd-related-work-head { margin-top: 16px; }
  .vs-asks-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
  .vs-asks-main { flex: 1 1 auto; min-width: 0; }
  .vs-asks-text { font-size: 14px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
  .vs-asks-row[data-ask-status="done"] .vs-asks-text { color: var(--text3); }
  .vs-asks-meta { font-size: 12px; line-height: 1.4; color: var(--text3); margin-top: 2px; }
  .vs-asks-met { color: var(--positive); font-weight: 500; }
  .vs-asks-actions { display: flex; gap: 4px; flex: 0 0 auto; }
  .vs-asks-empty { font-size: 13px; color: var(--text2); margin: 0; }
  .vs-asks-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
  /* Design system 10.2: a 32px input, body text. */
  .vs-asks-add .vs-input { height: 32px; font-size: 13px; padding: 0 10px; }
  .cd-persona-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cd-persona-card { background: var(--surface-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; transition: border-color var(--duration-fast) var(--ease-standard); }
  .cd-persona-card:hover { border-color: var(--border2); }
  .cd-persona-card-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px; color: var(--text3); }
  .cd-persona-card-count { font-family: var(--font-sans); font-size: 24px; font-weight: 500; color: var(--text); letter-spacing: -0.5px; line-height: 1.1; }
  .cd-persona-card-link { align-self: flex-start; margin-top: 2px; padding: 0; background: none; border: none; font-family: var(--font-sans); font-size: 12px; color: var(--accent); cursor: pointer; transition: filter var(--duration-fast) var(--ease-standard); }
  .cd-persona-card-link:hover { filter: brightness(1.15); text-decoration: underline; }
  .cd-persona-card-empty { font-size: 12px; color: var(--text3); margin-top: 2px; }

  .company-stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
  .stat-card { background: var(--surface-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px; position: relative; overflow: hidden; transition: border-color var(--duration-fast) var(--ease-standard); }
  .stat-card:hover { border-color: var(--border2); }
  .stat-card-label { font-family: var(--font-mono); font-size: 10px; color: var(--text3); letter-spacing: 1px; text-transform: none; margin-bottom: 8px; }
  .stat-card-value { font-family: var(--font-sans); font-size: 22px; font-weight: 500; color: var(--text); letter-spacing: -0.5px; line-height: 1; }
  .stat-card-sub { font-size: 11px; color: var(--text3); margin-top: 4px; font-family: var(--font-mono); }
  .stat-card-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }
  .stat-card { transition: box-shadow 0.15s, transform 0.15s; }
  .stat-card:hover { border-color: var(--border-strong); }
  .stat-card.accent-blue { border-left-width: 3px; border-left-color: var(--accent); }
  .stat-card.accent-purple { border-left-width: 3px; border-left-color: var(--accent2); }
  .stat-card.accent-gold { border-left-width: 3px; border-left-color: var(--gold); }
  .stat-card.accent-green { border-left-width: 3px; border-left-color: var(--green); }
  .stat-card.accent-blue .stat-card-bar { background: linear-gradient(90deg, var(--accent), transparent); }
  .stat-card.accent-purple .stat-card-bar { background: linear-gradient(90deg, var(--accent2), transparent); }
  .stat-card.accent-gold .stat-card-bar { background: linear-gradient(90deg, var(--gold), transparent); }
  .stat-card.accent-green .stat-card-bar { background: linear-gradient(90deg, var(--green), transparent); }
  .stat-card-trend { font-size: 11px; font-family: var(--font-mono); display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; }
  .stat-card-trend.up { color: var(--green); }
  .stat-card-trend.down { color: var(--red); }
  .stat-card-trend.neutral { color: var(--text3); }

  /* ── COMPANY DETAIL HERO ── */
  .company-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 0 0 0; margin-bottom: 20px; position: relative; overflow: hidden; }
  .company-hero-band { height: 4px; background: linear-gradient(90deg, var(--accent) 0%, var(--brand-primary) 50%, var(--brand-primary-tint) 100%); }
  .company-hero-body { padding: 20px 24px 20px; }
  .company-hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; background: radial-gradient(circle, var(--brand-primary-fade) 0%, transparent 70%); pointer-events: none; }
  .company-hero-name { font-family: var(--font-sans); font-size: 26px; color: var(--text); letter-spacing: -0.5px; margin-bottom: 8px; line-height: 1.2; }
  .company-hero-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .company-hero-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

  /* ── OPP MAP SECTION SCORES ── */
  .section-score-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 14px; background: var(--surface2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
  .score-label { font-family: var(--font-mono); font-size: 10px; color: var(--text3); letter-spacing: 1px; text-transform: none; min-width: 80px; }
  .score-track { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
  .score-fill { height: 100%; border-radius: 2px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
  .score-fill.high { background: linear-gradient(90deg, var(--green), #38e8a0); }
  .score-fill.medium { background: linear-gradient(90deg, var(--gold), #f5cc6a); }
  .score-fill.low { background: linear-gradient(90deg, var(--red), #f57070); }
  .score-pct { font-family: var(--font-mono); font-size: 11px; font-weight: 500; min-width: 32px; text-align: right; }
  .score-pct.high { color: var(--green); }
  .score-pct.medium { color: var(--gold); }
  .score-pct.low { color: var(--red); }

  /* ── PAIN POINT CHIPS ── */
  .pain-chip-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; padding: 12px; background: var(--surface2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
  .pain-chip { padding: 4px 10px; border-radius: 20px; font-size: 11.5px; font-family: var(--font-sans); font-weight: 500; border: 1px solid; cursor: default; transition: transform 0.1s; }
  .pain-chip:hover { border-color: var(--border-strong); }
  .pain-chip.high { background: rgba(240,79,79,0.1); border-color: rgba(240,79,79,0.3); color: #f07070; }
  .pain-chip.medium { background: rgba(232,184,75,0.1); border-color: rgba(232,184,75,0.3); color: var(--gold); }
  .pain-chip.low { background: var(--brand-primary-fade); border-color: rgba(45, 90, 76, 0.25); color: var(--accent); }

  /* ── VALUE LEVER BARS ── */
  .value-lever-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .value-lever-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
  .lever-name { font-size: 12.5px; font-weight: 500; color: var(--text); min-width: 160px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lever-track { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
  .lever-fill { height: 100%; border-radius: 3px; transition: width 1s cubic-bezier(0.4,0,0.2,1); }
  .lever-impact { font-family: var(--font-mono); font-size: 10px; min-width: 50px; text-align: right; }
  .lever-impact.high { color: var(--green); }
  .lever-impact.medium { color: var(--gold); }

  /* ── OPP MAP SECTION HEADER REFINEMENT ── */
  .opp-map-section { background: var(--surface-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--duration-fast) var(--ease-standard); }
  .opp-map-section:hover { border-color: var(--border2); }
  .opp-map-section.open { border-color: var(--brand-primary); }
  .opp-map-section.open .opp-map-section-header { background: var(--brand-primary-fade); border-left: 3px solid var(--accent); }
  .opp-map-section-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; cursor: pointer; transition: background 0.12s; user-select: none; }
  .opp-map-section-header:hover { background: var(--surface2); }
  .opp-map-section-title { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 10px; letter-spacing: -0.1px; }
  .opp-map-section-chevron { color: var(--text3); font-size: 11px; transition: transform 0.2s; }
  .opp-map-section.open .opp-map-section-chevron { transform: rotate(180deg); }


  /* ── McKINSEY VISUALIZATIONS ── */

  /* Chart modal overlay */
  .chart-modal-overlay { display:none; position:fixed; inset:0; background:rgba(16,24,40,0.6); backdrop-filter:blur(4px); z-index:2000; align-items:center; justify-content:center; animation:fadeIn 0.15s ease; }
  .chart-modal-overlay.open { display:flex; }
  @keyframes fadeIn { from{opacity:0}to{opacity:1} }
  .chart-modal-box { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:32px; width:min(780px,96vw); max-height:92vh; overflow-y:auto; box-shadow:var(--shadow-lg); animation:scaleIn 0.15s ease; }
  .modal-chart-wrap { overflow-x:auto; padding:8px 0; }
  .modal-chart-wrap svg { max-width:100%; height:auto; }
  @keyframes scaleIn { from{opacity:0;transform:scale(0.96)}to{opacity:1;transform:none} }
  .chart-modal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; padding-bottom:14px; border-bottom:1px solid var(--border); }
  .chart-modal-title { font-size:15px; font-weight:700; color:var(--text); letter-spacing:-0.2px; }
  .chart-modal-badge { font-size:10px; font-weight:600; color:var(--accent); background:var(--accent-light); padding:2px 8px; border-radius:10px; }
  .chart-modal-close { width:28px; height:28px; border-radius:6px; border:1px solid var(--border); background:none; color:var(--text2); cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; transition:background 0.1s; }
  .chart-modal-close:hover { background:var(--surface2); }
  .chart-modal-content { }

  /* Viz card — full-width hero, clickable to expand */
  .viz-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: visible; margin-bottom: 20px; cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .viz-card-header { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
  .viz-card:hover { border-color: var(--border-strong); }
  .viz-card::after {
    content: '⤢ Click to expand'; position: absolute; right: 16px; top: 14px;
    font-size: 10px; color: var(--text3); font-family: var(--font-mono);
    opacity: 0; transition: opacity 0.15s; pointer-events: none;
  }
  .viz-card { position: relative; }
  .viz-card:hover::after { opacity: 1; }
  .viz-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px 10px; border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, var(--brand-primary-fade), transparent);
  }
  [data-theme="dark"] .viz-card-header { background: linear-gradient(90deg, var(--brand-primary-fade), transparent); }
  .viz-card-title {
    font-size: 10px; font-weight: 500; text-transform: none; letter-spacing: 0.08em;
    color: var(--text3); display: flex; align-items: center; gap: 8px;
  }
  .viz-badge {
    font-size: 9px; padding: 2px 7px; border-radius: 10px;
    background: var(--accent-light); color: var(--accent); font-weight: 500;
    text-transform: none; letter-spacing: 0.06em;
  }
  .viz-expand-btn { display: none; } /* hidden — whole card is clickable */
  .viz-card-body { padding: 20px 22px 22px; position: relative; overflow: visible; border-radius: 0 0 var(--radius) var(--radius); }

  /* Full-width chart above text — Stripe style */
  .section-with-viz { display: flex; flex-direction: column; gap: 0; }
  .section-with-viz .viz-side { margin-bottom: 4px; }
  .section-with-viz .text-side { }

  /* Horizontal bar chart — Stripe-sized */
  .hbar-chart { display: flex; flex-direction: column; gap: 14px; }
  .hbar-row { display: grid; grid-template-columns: 140px 1fr 52px; align-items: center; gap: 10px; }
  .hbar-name { font-size: 12px; font-weight: 500; color: var(--text2); text-align: right; white-space: normal; word-break: break-word; line-height: 1.3; }
  .hbar-track { height: 14px; background: var(--surface2); border-radius: 7px; overflow: hidden; border: 1px solid var(--border); }
  .hbar-fill { height: 100%; border-radius: 7px; transition: width 1.4s cubic-bezier(.4,0,.2,1) .15s; }
  .hbar-val { font-size: 13px; font-family: var(--font-mono); font-weight: 500; }

  /* Radar chart */
  .radar-wrap { display:flex; flex-direction:column; align-items:center; gap:12px; }
  .radar-legend { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
  .radar-legend-item { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--text2); font-weight:500; }
  .radar-legend-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }

  /* Donut chart */
  .donut-wrap { display:flex; align-items:center; gap:20px; }
  .donut-legend { display:flex; flex-direction:column; gap:8px; flex:1; min-width:0; }
  .donut-legend-item { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text2); font-weight:500; }
  .donut-legend-dot { width:10px; height:10px; border-radius:3px; flex-shrink:0; }
  .donut-legend-pct { margin-left:auto; font-family:var(--font-mono); font-size:11px; font-weight:700; color:var(--text); }

  /* 2×2 matrix */
  .matrix-2x2 { position:relative; width:100%; aspect-ratio:1; max-width:300px; border:1px solid var(--border); border-radius:8px; overflow:visible; background:var(--surface2); }
  .matrix-2x2.modal-size { max-width:420px; }
  .matrix-quadrant { position:absolute; width:50%; height:50%; display:flex; align-items:center; justify-content:center; font-size:8.5px; font-weight:700; text-transform: none; letter-spacing:0.05em; color:var(--text3); padding:6px; text-align:center; line-height:1.4; word-break:break-word; overflow:hidden; }
  .matrix-q-tl { top:0;left:0; border-right:1px dashed var(--border2); border-bottom:1px dashed var(--border2); border-radius:8px 0 0 0; }
  .matrix-q-tr { top:0;right:0; border-bottom:1px dashed var(--border2); border-radius:0 8px 0 0; }
  .matrix-q-bl { bottom:0;left:0; border-right:1px dashed var(--border2); border-radius:0 0 0 8px; }
  .matrix-q-br { bottom:0;right:0; border-radius:0 0 8px 0; }
  .matrix-axis-x { position:absolute; bottom:-22px; left:0; right:0; text-align:center; font-size:10px; font-weight:600; color:var(--text3); font-family:var(--font-mono); }
  .matrix-axis-y { position:absolute; left:-40px; top:0; bottom:0; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:600; color:var(--text3); font-family:var(--font-mono); writing-mode:vertical-rl; transform:rotate(180deg); }
  .matrix-dot { position:absolute; width:14px; height:14px; border-radius:50%; transform:translate(-50%,-50%); border:2.5px solid var(--surface); box-shadow:0 2px 6px rgba(0,0,0,0.18); cursor:pointer; transition:transform 0.15s,box-shadow 0.15s; z-index:2; }
  .matrix-dot:hover { transform:translate(-50%,-50%) scale(1.4); box-shadow:0 3px 10px rgba(0,0,0,0.25); z-index:3; }
  .matrix-dot-tooltip { position:absolute; pointer-events:none; opacity:0; transition:opacity 0.15s; z-index:10; }
  .matrix-dot:hover .matrix-dot-tooltip { opacity:1; }
  .matrix-dot-tooltip-inner { background:var(--text); color:var(--surface); font-size:10px; font-weight:600; padding:3px 7px; border-radius:4px; white-space:nowrap; transform:translate(-50%,-120%); display:block; }
  /* 2x2 legend */
  .matrix-legend { display:flex; flex-direction:column; gap:6px; margin-top:12px; }
  .matrix-legend-item { display:flex; align-items:flex-start; gap:8px; font-size:11.5px; color:var(--text2); font-weight:500; line-height:1.4; word-break:break-word; }
  .matrix-legend-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; border:2px solid var(--surface); box-shadow:0 1px 3px rgba(0,0,0,0.15); }

  /* Waterfall */
  .waterfall-wrap { overflow-x:auto; padding-bottom:4px; }

  /* Heat grid */
  .heat-grid { display:grid; gap:4px; }
  .heat-cell { border-radius:4px; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:600; padding:6px 6px; text-align:center; line-height:1.3; min-height:36px; word-break:break-word; overflow:visible; hyphens:auto; }
  .heat-row-label { font-size:11px; font-weight:600; color:var(--text2); display:flex; align-items:center; padding-right:6px; }
  .heat-col-label { font-size:10px; color:var(--text3); text-align:center; font-weight:700; text-transform: none; letter-spacing:0.05em; padding:2px 0 4px; }

  /* Viz layout row */
  .viz-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
  .viz-row.single { grid-template-columns:1fr; }

  
  /* ── CHART INFO PANEL ── */
  .chart-info-toggle { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--text3); cursor:pointer; user-select:none; padding:8px 0 4px; border:none; background:none; font-family:var(--font-sans); transition:color 0.1s; }
  .chart-info-toggle:hover { color:var(--accent); }
  .chart-info-icon { width:16px; height:16px; border-radius:50%; border:1.5px solid currentColor; display:inline-flex; align-items:center; justify-content:center; font-size:9px; font-weight:700; flex-shrink:0; }
  .chart-info-body { font-size:12px; color:var(--text2); line-height:1.6; padding:10px 14px; background:var(--surface2); border-radius:8px; border:1px solid var(--border); margin-bottom:12px; display:none; }
  .chart-info-body.open { display:block; }
  .chart-info-body strong { color:var(--text); font-weight:600; }
  /* Modal expand — bigger chart sizes */
  .modal-chart-wrap { padding:4px 0 8px; }
  .modal-chart-wrap svg { display:block; margin:0 auto; }

  /* ── LIVE RESEARCH ── */
  .live-research-indicator { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2); border-radius: 6px; margin-bottom: 8px; font-size: 12px; color: var(--accent2); font-family: var(--font-mono); }
  .live-research-indicator .lr-icon { font-size: 14px; animation: pulse 1.2s ease-in-out infinite; }
  .live-research-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25); border-radius: 10px; font-size: 10px; font-family: var(--font-mono); color: var(--accent2); margin-bottom: 4px; }
  @keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

  /* ── CITATIONS ── */
  .section-sources { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
  .section-sources-toggle { font-family: var(--font-mono); font-size: 10px; color: var(--text3); cursor: pointer; user-select: none; letter-spacing: 0.5px; display: flex; align-items: center; gap: 5px; }
  .section-sources-toggle:hover { color: var(--text2); }
  .section-sources-list { display: none; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
  .section-sources-list.open { display: flex; }
  .source-unverified-toggle { font-family: var(--font-mono); font-size: 10px; color: var(--text3); cursor: pointer; user-select: none; letter-spacing: 0.5px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); }
  .source-unverified-toggle:hover { color: var(--text2); }
  .source-unverified-list { display: none; margin-top: 6px; flex-direction: column; gap: 4px; }
  .source-unverified-list.open { display: flex; }
  .source-unverified-list .source-item { opacity: 0.72; }
  .source-item { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; }
  .source-num { font-family: var(--font-mono); color: var(--accent2); font-size: 10px; min-width: 18px; margin-top: 1px; }
  .source-url { color: var(--text3); word-break: break-all; line-height: 1.4; }
  .source-url a { color: var(--accent2); text-decoration: none; }
  .source-url a:hover { text-decoration: underline; }
  .source-item-signal { border-left: 2px solid var(--gold); padding-left: 6px; }
  .source-num-signal { color: var(--gold) !important; }
  .source-item-signal .source-url a { color: var(--gold); }
  .signal-source-count { color: var(--gold); font-size: 10px; font-family: var(--font-mono); margin-left: 4px; }
  .source-domain-badge { display: inline-block; font-family: var(--font-mono); font-size: 9px; font-weight: 500; text-transform: none; letter-spacing: 0.5px; background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(180,83,9,0.2); border-radius: 3px; padding: 1px 4px; margin-right: 4px; white-space: nowrap; }
  .doc-sources { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
  .doc-sources-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: none; color: var(--text3); margin-bottom: 10px; }
  .doc-source-item { display: flex; gap: 8px; font-size: 12px; color: var(--text2); margin-bottom: 5px; line-height: 1.4; }
  .doc-source-num { font-family: var(--font-mono); color: var(--accent2); min-width: 20px; }
  sup.cite { font-family: var(--font-mono); font-size: 9px; color: var(--accent2); cursor: default; }

  /* ── SCROLLBAR ── */
  ::-webkit-scrollbar { width: 5px; height: 5px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--text3); }

  /* ══════════════════════════════════════════
     STAGE 3 — OPPORTUNITY MAPPING STYLES
  ══════════════════════════════════════════ */
  /* ── OPP DETAIL — full-width map + floating reasoning drawer ── */
  .opp-detail-layout { position: relative; height: calc(100vh - 140px); overflow: hidden; }
  .opp-map-panel { height: 100%; overflow-y: auto; padding-right: 4px; transition: padding-right 0.3s ease; }
  .opp-map-section { background: var(--surface-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 14px; }
  .opp-map-section-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; cursor: pointer; transition: background 0.15s; user-select: none; }
  .opp-map-section-header:hover { background: var(--surface2); }
  .opp-map-section-title { font-family: var(--font-sans); font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 10px; }
  .opp-map-section-chevron { color: var(--text3); font-size: 12px; transition: transform 0.2s; }
  .opp-map-section.open .opp-map-section-chevron { transform: rotate(180deg); }
  .opp-map-section-body { display: none; padding: 0 18px 18px; border-top: 1px solid var(--border); }
  .opp-map-section.open .opp-map-section-body { display: block; }
  .opp-map-content { font-size: 13.5px; color: var(--text2); line-height: 1.7; padding-top: 14px; }
  .opp-map-content h2 { font-family: var(--font-sans); font-size: 15px; color: var(--text); margin: 14px 0 7px; border-bottom: 1px solid var(--border); padding-bottom: 5px; }
  .opp-map-content h3 { font-family: var(--font-sans); font-size: 13.5px; color: var(--gold); margin: 12px 0 5px; }
  .opp-map-content strong { color: var(--text); font-weight: 500; }
  .opp-map-content table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12.5px; }
  .opp-map-content th { background: var(--surface2); color: var(--text2); padding: 7px 10px; text-align: left; border: 1px solid var(--border2); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px; text-transform: none; }
  .opp-map-content td { padding: 6px 10px; border: 1px solid var(--border); color: var(--text2); vertical-align: top; }
  .opp-map-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
  .opp-map-content ul, .opp-map-content ol { padding-left: 18px; margin: 8px 0; }
  .opp-map-content li { margin-bottom: 4px; }
  .opp-map-content code { font-family: var(--font-mono); font-size: 11.5px; background: var(--surface2); padding: 1px 5px; border-radius: 3px; }
  .version-bar { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--border); background: var(--surface2); flex-wrap: wrap; }
  .version-bar-label { font-family: var(--font-mono); font-size: 10px; color: var(--text3); letter-spacing: 1px; text-transform: none; flex-shrink: 0; }
  .version-chip { font-family: var(--font-mono); font-size: 10.5px; padding: 3px 10px; border-radius: 4px; border: 1px solid var(--border2); color: var(--text3); cursor: pointer; transition: all 0.15s; background: var(--bg); }
  .version-chip:hover { border-color: var(--gold); color: var(--gold); }
  .version-chip.active { border-color: rgba(232,184,75,0.4); color: var(--gold); background: rgba(232,184,75,0.1); }
  .opp-gen-progress { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; margin-bottom: 16px; }
  .opp-gen-title { font-family: var(--font-sans); font-size: 17px; color: var(--text); margin-bottom: 14px; }
  .thinking-dots span { display: inline-block; animation: blink 1.2s infinite; }
  .thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
  .thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes blink { 0%,80%,100% { opacity: 0.2; } 40% { opacity: 1; } }
  .opp-selector { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
  .opp-select-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 7px; border: 1px solid var(--border2); cursor: pointer; transition: all 0.15s; }
  .opp-select-item:hover { border-color: var(--gold); background: rgba(232,184,75,0.05); }
  .opp-select-item.selected { border-color: rgba(232,184,75,0.4); background: rgba(232,184,75,0.08); }
  .opp-select-name { font-size: 13.5px; color: var(--text); font-weight: 500; }
  .opp-select-sub { font-size: 11.5px; color: var(--text3); font-family: var(--font-mono); margin-top: 1px; }
  .opp-select-check { margin-left: auto; color: var(--gold); font-size: 16px; opacity: 0; }
  .opp-select-item.selected .opp-select-check { opacity: 1; }
  .opp-pair-preview { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border2); margin-top: 12px; font-size: 13px; color: var(--text2); }
  .opp-pair-preview .arrow { color: var(--gold); font-size: 16px; }

  /* ══════════════════════════════════════════
     STAGE 6 — BUSINESS CASE BUILDER STYLES
  ══════════════════════════════════════════ */

  /* ── Opp map entry point ── */
  .bc-opp-strip { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: linear-gradient(135deg, var(--brand-primary-fade), var(--brand-primary-fade)); border: 1px solid var(--brand-primary-tint); border-radius: 10px; margin-bottom: 16px; }
  .bc-opp-strip-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: none; color: var(--text3); flex-shrink: 0; }
  .bc-opp-btn { background: var(--accent2); border-color: var(--accent2); color: #fff; font-weight: 500; }
  .bc-opp-btn:hover { background: #6d28d9; border-color: #6d28d9; }
  .bc-opp-hint { font-size: 12px; color: var(--text3); }

  /* ── OPP MAP CURATION PANEL (owner-smoke design track 2026-07-08) ── */
  /* Was unstyled run-on text above the map; now a collapsible, purpose-framed
     card below it. Markup: opportunity-maps-curation.js (_renderOppCurationPanel). */
  .od-curation-panel { background: var(--surface-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); margin-top: 20px; overflow: hidden; }
  .od-curation-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; user-select: none; list-style: none; }
  .od-curation-summary::-webkit-details-marker { display: none; }
  .od-curation-summary:hover { background: var(--surface2); }
  .od-curation-summary-main { display: flex; flex-direction: column; gap: 3px; }
  .od-curation-summary-title { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--text); letter-spacing: -0.1px; }
  .od-curation-summary-sub { font-size: 12px; color: var(--text3); }
  .od-curation-chevron { color: var(--text3); font-size: 11px; transition: transform 0.2s; flex-shrink: 0; }
  .od-curation-panel[open] .od-curation-chevron { transform: rotate(180deg); }
  .od-curation-body { padding: 4px 18px 18px; border-top: 1px solid var(--border-subtle); }
  .od-curation-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
  .od-curation-row { padding: 14px; background: var(--surface2); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 12px; }
  .od-curation-row-title { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--text); }
  .od-curation-field { display: flex; flex-direction: column; }
  .od-curation-field-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px; color: var(--text3); margin-bottom: 6px; }
  .od-curation-row-priority-edit { display: flex; gap: 8px; }
  .od-curation-thumb { font-family: var(--font-sans); font-size: 12px; padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border2); background: var(--surface-panel); color: var(--text2); cursor: pointer; transition: border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard); }
  .od-curation-thumb:hover { border-color: var(--border-strong); color: var(--text); }
  .od-curation-thumb.active[data-priority="up"] { border-color: var(--green); color: var(--green); background: rgba(61,214,140,0.08); }
  .od-curation-thumb.active[data-priority="down"] { border-color: var(--border-strong); color: var(--text2); background: var(--surface3); }
  .od-curation-stk-picker { display: flex; flex-wrap: wrap; gap: 8px; }
  .od-curation-stk-option { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); padding: 5px 10px; border: 1px solid var(--border2); border-radius: var(--radius-sm); cursor: pointer; transition: border-color var(--duration-fast) var(--ease-standard); }
  .od-curation-stk-option:hover { border-color: var(--border-strong); }
  .od-curation-stk-option input { accent-color: var(--brand-primary); cursor: pointer; margin: 0; }
  .od-curation-reasoning { width: 100%; min-height: 52px; resize: vertical; background: var(--surface-panel); border: 1px solid var(--border2); border-radius: var(--radius-sm); padding: 8px 10px; font-family: var(--font-sans); font-size: 12.5px; color: var(--text); line-height: 1.5; box-sizing: border-box; }
  .od-curation-reasoning:focus { outline: none; border-color: var(--brand-primary); }
  .od-curation-reasoning::placeholder { color: var(--text3); }
  .od-curation-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
  .od-curation-save-btn { font-family: var(--font-sans); font-size: 12px; font-weight: 500; padding: 7px 16px; border-radius: var(--radius-sm); border: 1px solid var(--brand-primary); background: var(--brand-primary); color: #fff; cursor: pointer; transition: filter var(--duration-fast) var(--ease-standard); }
  .od-curation-save-btn:hover { filter: brightness(1.08); }
  .od-curation-meta { font-family: var(--font-mono); font-size: 10px; color: var(--text3); }
  .od-curation-row-readonly { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text2); }
  .od-curation-row-priority { font-weight: 500; color: var(--text); }
  .od-curation-row-reasoning { color: var(--text3); }


  /* ── Step indicator ── */

  /* ── Step body ── */
  .bc-confirm-btn { min-width: 180px; }

  /* ── Thinking / loading ── */

  /* ── Lever cards (step 1) ── */
  .bc-lever-value { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 500; white-space: nowrap; }
  .bc-relevance-reason { font-size: 12.5px; color: var(--text2); line-height: 1.5; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-style: italic; }
  .bc-cat-badge { font-family: var(--font-mono); font-size: 10px; padding: 2px 7px; border-radius: 4px; background: var(--surface2); border: 1px solid var(--border); color: var(--text3); }
  .bc-hs-badge { font-family: var(--font-mono); font-size: 10px; padding: 2px 7px; border-radius: 4px; border: 1px solid; }
  .bc-hs-badge.hard { color: var(--accent2); border-color: rgba(45, 90, 76, 0.25); background: var(--brand-primary-fade); }
  .bc-hs-badge.soft { color: var(--text3); border-color: var(--border); background: var(--surface2); }

  /* ── Toggle ── */
  .bc-toggle { display: inline-flex; align-items: center; cursor: pointer; position: relative; }
  .bc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
  .bc-toggle-track { width: 36px; height: 20px; background: var(--border2); border-radius: 10px; transition: background 0.2s; position: relative; }
  .bc-toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
  .bc-toggle input:checked + .bc-toggle-track { background: var(--accent); }
  .bc-toggle input:checked + .bc-toggle-track::after { transform: translateX(16px); }
  .bc-toggle.bc-toggle-sm .bc-toggle-track { width: 28px; height: 16px; }
  .bc-toggle.bc-toggle-sm .bc-toggle-track::after { width: 10px; height: 10px; top: 3px; left: 3px; }
  .bc-toggle.bc-toggle-sm input:checked + .bc-toggle-track::after { transform: translateX(12px); }

  /* ── Add from library ── */
  .bc-add-from-lib { margin-top: 16px; border: 1px dashed var(--border2); border-radius: 9px; overflow: hidden; }
  .bc-add-from-lib-toggle { width: 100%; padding: 12px 16px; background: none; border: none; font-size: 13px; color: var(--accent); cursor: pointer; text-align: left; font-family: var(--font-sans); font-weight: 500; transition: background 0.15s; }
  .bc-add-from-lib-toggle:hover { background: var(--surface2); }
  .bc-add-lib-list { display: none; padding: 12px; border-top: 1px solid var(--border); }
  .bc-add-lib-list.open { display: block; }
  .bc-add-custom-row { margin-top: 12px; }

  /* ── Total bar ── */
  .bc-total-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: linear-gradient(135deg, var(--brand-primary-fade), var(--brand-primary-fade)); border: 1px solid var(--brand-primary-tint); border-radius: 10px; margin-bottom: 20px; gap: 20px; }
  .bc-total-bar-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: none; color: var(--text3); }
  .bc-total-bar-values { display: flex; gap: 24px; }
  .bc-total-scenario { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .bc-total-scenario span { font-family: var(--font-mono); font-size: 10px; color: var(--text3); text-transform: none; letter-spacing: 0.5px; }
  .bc-total-scenario strong { font-size: 18px; font-weight: 500; color: var(--text2); }
  .bc-total-scenario.featured strong { font-size: 22px; color: var(--accent); }

  /* ── Input sections (step 2) ── */
  .bc-input-section { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; margin-bottom: 10px; overflow: hidden; }
  .bc-input-section-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; user-select: none; gap: 12px; transition: background 0.12s; }
  .bc-input-section-header:hover { background: var(--surface2); }
  .bc-input-section-name { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 5px; }
  .bc-lever-computed { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 500; white-space: nowrap; }
  .bc-value-range-sm { font-size: 10.5px; color: var(--text3); font-weight: 400; }
  .bc-chevron { font-size: 10px; color: var(--text3); transition: transform 0.2s; flex-shrink: 0; }
  .bc-input-section.open .bc-chevron { transform: rotate(180deg); }
  .bc-input-section-body { display: none; padding: 16px 18px; border-top: 1px solid var(--border); }
  .bc-input-section.open .bc-input-section-body { display: block; }
  .bc-var-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: start; margin-bottom: 12px; }
  .bc-var-row.required .bc-var-label { color: var(--text); }
  .bc-var-label { font-size: 13px; color: var(--text2); padding-top: 9px; line-height: 1.4; }
  .bc-required { color: var(--red); margin-left: 3px; }
  .bc-var-input { font-family: var(--font-mono); }
  .bc-var-hint { font-family: var(--font-mono); font-size: 10.5px; color: var(--text3); margin-top: 4px; }
  .bc-no-vars { font-size: 13px; color: var(--text3); font-style: italic; padding: 4px 0; }

  /* ── Modeler (step 3) ── */
  .bc-scenario-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
  .bc-scenario-btn { padding: 5px 14px; border-radius: 6px; border: 1.5px solid var(--border2); background: var(--surface); color: var(--text2); font-size: 13px; cursor: pointer; font-family: var(--font-sans); font-weight: 500; transition: all 0.15s; }
  .bc-scenario-btn:hover { border-color: var(--accent); color: var(--accent); }
  .bc-scenario-btn.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); font-weight: 500; }
  .bc-modeler-total { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; margin-bottom: 16px; gap: 20px; }
  .bc-total-range { font-size: 15px; color: var(--text2); margin-top: 3px; }
  .bc-total-range strong { color: var(--accent); font-size: 20px; }
  .bc-range-bar-wrap { flex: 1; max-width: 240px; }
  .bc-range-bar { height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
  .bc-range-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 4px; transition: width 0.4s ease; }
  .bc-modeler-table-wrap { overflow-x: auto; }
  .bc-modeler-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .bc-modeler-table thead th { background: var(--surface2); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px; text-transform: none; color: var(--text3); padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border2); white-space: nowrap; }
  .bc-modeler-table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
  .bc-modeler-row.excluded td { opacity: 0.4; }
  .bc-modeler-row:last-child td { border-bottom: none; }
  .bc-modeler-row:hover > td { background: rgba(99,102,241,0.04); }
  .bc-lever-hover-vars { display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid var(--border); }
  .bc-lever-hover-var { min-width:130px;flex:1; }
  .bc-lever-hover-var label { font-size:10px;color:var(--text3);display:block;margin-bottom:2px; }

  /* ── Generation ── */
  .bc-generating { display: flex; flex-direction: column; align-items: center; padding: 60px 20px; gap: 16px; }
  .bc-gen-icon { font-size: 36px; color: var(--accent2); animation: pulse 1.5s ease-in-out infinite; }
  .bc-gen-title { font-family: var(--font-sans); font-size: 20px; color: var(--text); }
  .bc-gen-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
  .bc-gen-step { font-family: var(--font-mono); font-size: 12px; color: var(--text3); padding: 6px 14px; border-radius: 6px; border: 1px solid var(--border); transition: all 0.3s; }
  .bc-gen-step.active { color: var(--accent2); border-color: rgba(45, 90, 76, 0.3); background: var(--brand-primary-fade); }

  /* ── Reading view ── */

  /* ── Output Type Selector ── */
  .bc-output-type-selector { display: flex; gap: 8px; flex-wrap: wrap; }
  .bc-output-type-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: 8px; border: 1.5px solid var(--border2); background: var(--surface); cursor: pointer; transition: all 0.15s; text-align: left; min-width: 130px; }
  .bc-output-type-btn:hover { border-color: var(--accent2); }
  .bc-output-type-btn.active { border-color: var(--accent2); background: var(--brand-primary-fade); }
  .bc-output-type-icon { font-size: 14px; font-weight: 500; color: var(--text2); font-family: var(--font-mono); }
  .bc-output-type-btn.active .bc-output-type-icon { color: var(--accent2); }
  .bc-output-type-label { font-size: 13px; font-weight: 500; color: var(--text); }
  .bc-output-type-desc { font-size: 11px; color: var(--text3); line-height: 1.4; }
  .bc-output-type-chips { display: flex; gap: 6px; flex-wrap: wrap; }
  .bc-output-chip { padding: 3px 10px; border-radius: 5px; border: 1.5px solid var(--border2); background: var(--surface); color: var(--text2); font-size: 12px; cursor: pointer; font-family: var(--font-sans); transition: all 0.12s; }
  .bc-output-chip:hover { border-color: var(--accent2); color: var(--accent2); }
  .bc-output-chip.active { border-color: var(--accent2); background: var(--brand-primary-fade); color: var(--accent2); font-weight: 500; }
  .bc-output-chip.financial.active { border-color: var(--accent); background: var(--brand-primary-fade); color: var(--accent); }
  .bc-output-type-chip-sm { display: inline-block; font-family: var(--font-mono); font-size: 10px; padding: 1px 5px; border-radius: 3px; margin-left: 4px; }
  .bc-output-type-chip-sm.financial { background: var(--brand-primary-fade); color: var(--accent); }
  .bc-output-type-chip-sm.quantified { background: rgba(16,185,129,0.08); color: var(--green); }
  .bc-output-type-chip-sm.soft { background: var(--surface2); color: var(--text3); }

  /* ── Formula Chain Builder ── */
  .bc-formula-chain { display: flex; flex-direction: column; gap: 8px; }
  .bc-formula-var-row { display: flex; align-items: flex-start; gap: 8px; }
  .bc-formula-op-selector { display: flex; flex-direction: column; gap: 3px; padding-top: 8px; flex-shrink: 0; }
  .bc-formula-op-btn { width: 28px; height: 22px; border-radius: 4px; border: 1.5px solid var(--border2); background: var(--surface); color: var(--text3); font-family: var(--font-mono); font-size: 12px; cursor: pointer; transition: all 0.12s; display: flex; align-items: center; justify-content: center; }
  .bc-formula-op-btn:hover { border-color: var(--accent2); color: var(--accent2); }
  .bc-formula-op-btn.active { border-color: var(--accent2); background: var(--brand-primary-tint); color: var(--accent2); font-weight: 500; }
  .bc-formula-var-card { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
  .bc-formula-var-remove { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border2); background: none; color: var(--text3); cursor: pointer; font-size: 11px; display: flex; align-items: center; justify-content: center; transition: all 0.12s; margin-top: 8px; flex-shrink: 0; }
  .bc-formula-var-remove:hover { border-color: var(--red); color: var(--red); background: rgba(239,68,68,0.06); }
  .bc-formula-preview { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: 7px; margin-top: 10px; }
  .bc-formula-preview-label { font-family: var(--font-mono); font-size: 10px; color: var(--text3); text-transform: none; letter-spacing: 0.5px; }
  .bc-formula-preview-value { font-family: var(--font-mono); font-size: 14px; color: var(--accent); font-weight: 500; }
  .form-input-sm { padding: 5px 8px; font-size: 12px; }

  /* ── Stat Cards (Zone 1) ── */
  .bc-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
  .bc-stat-card { background: var(--surface-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px; }
  .bc-stat-card.bc-stat-primary { border-color: rgba(45, 90, 76, 0.25); background: linear-gradient(135deg, var(--brand-primary-fade), var(--brand-primary-fade)); }
  .bc-stat-card.bc-stat-positive { border-color: rgba(16,185,129,0.25); }
  .bc-stat-card.bc-stat-negative { border-color: rgba(239,68,68,0.25); }
  .bc-stat-label { font-family: var(--font-mono); font-size: 10px; color: var(--text3); text-transform: none; letter-spacing: 0.5px; margin-bottom: 6px; }
  .bc-stat-value { font-size: 22px; font-weight: 500; color: var(--text); line-height: 1.2; margin-bottom: 4px; }
  .bc-stat-primary .bc-stat-value { color: var(--accent); }
  .bc-stat-positive .bc-stat-value { color: var(--green); }
  .bc-stat-negative .bc-stat-value { color: var(--red); }
  .bc-stat-sub { font-size: 11px; color: var(--text3); }

  /* ── Charts (Zone 2) ── */
  .bc-charts-grid { display: grid; grid-template-columns: 2fr 1fr 0.7fr; gap: 14px; margin-bottom: 20px; }
  .bc-chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 16px; }
  .bc-chart-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
  .bc-chart-sub { font-size: 11px; color: var(--text3); margin-bottom: 12px; }
  @media (max-width: 900px) { .bc-charts-grid { grid-template-columns: 1fr; } }

  /* ── Ramp & Cost Panels ── */

  /* ── Modeler Table Enhancements ── */
  .bc-modeler-lever-name { font-size: 13px; font-weight: 500; color: var(--text); }
  .bc-modeler-val { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text2); white-space: nowrap; }
  .bc-modeler-yr-val { white-space: nowrap; }
  .bc-lever-ramp-cell { min-width: 70px; }
  .bc-lever-ramp-editor { border-top: 1px solid var(--border); padding-top: 6px; margin-top: 4px; }
  .bc-lever-inline-expand { }
  .bc-lever-table-section { margin-bottom: 24px; }
  .bc-output-type-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }


  /* ── Headline Metrics Bar ── */
  .bc-metric-card { background: var(--surface-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px; }
  .bc-metric-card.bc-metric-primary { border-color: rgba(45, 90, 76, 0.3); background: linear-gradient(135deg, var(--brand-primary-fade), var(--brand-primary-fade)); }
  .bc-metric-label { font-family: var(--font-mono); font-size: 10px; color: var(--text3); text-transform: none; letter-spacing: 0.5px; margin-bottom: 6px; }
  .bc-metric-value { font-size: 22px; font-weight: 500; color: var(--text); line-height: 1.2; margin-bottom: 4px; }
  .bc-metric-primary .bc-metric-value { color: var(--accent); }
  .bc-metric-sub { font-size: 11px; color: var(--text3); }
  .bc-wacc-row { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
  .bc-wacc-label { font-size: 12px; color: var(--text2); font-weight: 500; white-space: nowrap; }
  .bc-wacc-input-wrap { display: flex; align-items: center; gap: 4px; }
  .bc-wacc-input { width: 64px !important; font-family: var(--font-mono); font-size: 13px; padding: 5px 8px !important; text-align: center; }
  .bc-wacc-pct { font-size: 13px; color: var(--text2); font-weight: 500; }
  .bc-wacc-hint { font-size: 11px; color: var(--text3); }
  @media (max-width: 900px) { .bc-headline-metrics { grid-template-columns: repeat(2, 1fr); } }

  /* ── Cost Model Table ── */
  .bc-cost-summary-inline { font-size: 12px; color: var(--text3); font-family: var(--font-mono); }
  .bc-cost-table-wrap { overflow-x: auto; margin-bottom: 12px; }
  .bc-cost-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .bc-cost-table thead th { background: var(--surface2); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px; text-transform: none; color: var(--text3); padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border2); white-space: nowrap; }
  .bc-cost-table tbody td { padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
  .bc-cost-category { min-width: 160px; }
  .bc-cost-row-label { font-size: 13px; color: var(--text2); }
  .bc-cost-label-input { font-size: 12px !important; padding: 4px 8px !important; width: 160px !important; }
  .bc-cost-cell { font-family: var(--font-mono); font-size: 12px !important; padding: 4px 8px !important; width: 90px !important; text-align: right; }
  .bc-cost-rowtotal { font-family: var(--font-mono); font-size: 12px; color: var(--text3); white-space: nowrap; }
  .bc-cost-grand { font-family: var(--font-mono); font-size: 12px; color: var(--text); white-space: nowrap; padding: 9px 10px !important; background: var(--surface2); }
  .bc-cost-totals-row td { border-top: 2px solid var(--border2) !important; }

  /* ── Risk Factor Column ── */
  .bc-risk-factor-cell { display: flex; align-items: center; gap: 3px; }
  .bc-risk-input { width: 52px !important; font-family: var(--font-mono); font-size: 11px !important; padding: 3px 6px !important; text-align: right; }
  .bc-risk-pct-label { font-size: 11px; color: var(--text3); }
  .bc-modeler-val-main { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--accent); }
  .bc-th-sub { font-weight: 400; font-size: 9px; color: var(--text3); display: block; text-transform: none; letter-spacing: 0; margin-top: 1px; }

  /* ═══════════════════════════════════════════════
     BC SLIDE DECK VIEWER
     ═══════════════════════════════════════════════ */

  /* Shell layout */

  /* Stage: arrows + canvas */

  /* Thumbnail strip */

  /* ── Slide interiors (font sizes relative to canvas size via clamp) ── */

  /* Title slide */

  /* Generic slide frame with header bar */

  /* Shared slide elements */



  /* Bar chart (pure CSS) */

  /* Table in slides */

  /* Slide hover controls overlay */

  /* Slide edit modal */
  .bc-sv-edit-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 3000; display: flex; align-items: center; justify-content: center; }
  .bc-sv-edit-modal { background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; width: 640px; max-width: 94vw; max-height: 80vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
  .bc-sv-edit-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
  .bc-sv-edit-title { font-size: 15px; font-weight: 500; }
  .bc-sv-edit-body { flex: 1; overflow: auto; padding: 16px 20px; }
  .bc-sv-edit-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--border); }


/* ── SIGNAL INTELLIGENCE ──────────────────────────────────────────────── */

.signal-empty-state { padding: 16px 0; }

.signal-panel { display: flex; flex-direction: column; gap: 16px; padding: 4px 0; }
.signal-subtitle { font-size: 12px; color: var(--text3); line-height: 1.5; }
.signal-generated-at { font-size: 11px; color: var(--text3); font-family: var(--font-mono); }
.signal-refresh-row { display: flex; align-items: center; gap: 10px; }

.signal-categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

.signal-category-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.signal-category-header { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }

.signal-findings-list { display: flex; flex-direction: column; gap: 10px; }
.signal-finding { border-top: 1px solid var(--border); padding-top: 8px; }
.signal-finding:first-child { border-top: none; padding-top: 0; }

.signal-finding-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
/* Stage 3 Session 9 (2026-05-10): Promote-to-evidence ghost button.
   Sits to the right of the conf badge + sources. Pushes itself to the
   far right via margin-left:auto. Hidden under the row's hover state
   isn't viable here because the row never has a hover treatment — keep
   it always-visible at low contrast so the affordance is discoverable. */
.signal-promote-btn { margin-left: auto; font-size: 10px; padding: 2px 7px; color: var(--text3); border: 1px solid var(--border); background: transparent; border-radius: 4px; cursor: pointer; transition: color 160ms, border-color 160ms, background 160ms; }
.signal-promote-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
@media (prefers-reduced-motion: reduce) { .signal-promote-btn { transition: none; } }

.signal-conf-badge { display: inline-block; font-size: 10px; font-weight: 500; padding: 2px 6px; border-radius: 4px; letter-spacing: 0.03em; text-transform: none; }
.signal-conf-high   { background: rgba(52,214,140,0.12); color: var(--green); border: 1px solid rgba(52,214,140,0.25); }
.signal-conf-medium { background: rgba(232,184,75,0.12);  color: var(--gold);  border: 1px solid rgba(232,184,75,0.25); }
.signal-conf-low    { background: var(--surface);          color: var(--text3); border: 1px solid var(--border); }

.signal-sources { display: inline-flex; gap: 3px; }
.signal-source-link { font-size: 10px; color: var(--accent); text-decoration: none; font-family: var(--font-mono); }
.signal-source-link:hover { text-decoration: underline; }

.signal-signal-text   { font-size: 13px; color: var(--text);  line-height: 1.5; }
.signal-inference-text { font-size: 12px; color: var(--text2); line-height: 1.5; margin-top: 3px; }
.signal-basis-text    { font-size: 11px; color: var(--text3); font-style: italic; margin-top: 3px; line-height: 1.4; }

/* Lever influence table */
.signal-lever-section { margin-top: 4px; }
.signal-lever-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.signal-lever-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.signal-lever-table th { text-align: left; padding: 6px 8px; border-bottom: 2px solid var(--border2); color: var(--text3); font-weight: 500; text-transform: none; font-size: 10px; letter-spacing: 0.05em; }
.signal-lever-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: middle; }
.signal-lever-table tr:last-child td { border-bottom: none; }
.signal-lever-table tr:hover td { background: var(--surface2); }

.signal-cat-badge { display: inline-block; font-size: 10px; padding: 2px 6px; border-radius: 4px; background: var(--surface2); border: 1px solid var(--border); color: var(--text3); margin-right: 3px; text-transform: capitalize; }

/* Signal badge on BC lever cards */
.bc-signal-badge { display: inline-block; font-size: 10px; font-weight: 500; padding: 2px 6px; border-radius: 4px; border: 1px solid; cursor: default; white-space: nowrap; }

/* Canvas-anchored Generate-button mount (Batch 9 — vega-workflow-spec §2.1).
   Right-aligned strip above the cd-hero card so the affordance lives in the
   canvas surface rather than the global topbar. The strip collapses to zero
   height when empty (no Vega button rendered yet), so it doesn't push the
   hero down before vegaWorkflow.attachGenerateButton runs. */
.cd-actions { display: flex; justify-content: flex-end; align-items: center; min-height: 0; margin-bottom: 8px; }
.cd-actions:empty { display: none; }

/* ── Company Detail Tabs ───────────────────────────────────────────────── */
.cd-tabs { display: flex; gap: 4px; padding: 12px 24px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.cd-tab-btn { background: none; border: none; border-bottom: 2px solid transparent; padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--text3); cursor: pointer; margin-bottom: -1px; border-radius: 4px 4px 0 0; transition: color 0.15s, border-color 0.15s; display: flex; align-items: center; gap: 6px; }
.cd-tab-btn:hover { color: var(--text); background: var(--surface2); }
.cd-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.cd-tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; background: var(--accent); color: #fff; border-radius: 9px; font-size: 10px; font-weight: 500; line-height: 1; }

/* ── Deal Timeline Layout ─────────────────────────────────────────────── */
#cd-timeline { padding: 24px; }
.dt-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1400px; }
@media (max-width: 900px) { .dt-layout { grid-template-columns: 1fr; } }

.dt-memory-col,
.dt-events-col { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }

.dt-col-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface2); }
.dt-col-title { font-size: 13px; font-weight: 500; color: var(--text); text-transform: none; letter-spacing: 0.04em; }

.dt-memory-body { padding: 18px; font-size: 13px; line-height: 1.7; color: var(--text2); }
.dt-memory-body h2 { font-size: 14px; font-weight: 500; color: var(--text); margin: 0 0 12px; }
.dt-memory-body strong { color: var(--text); }
.dt-memory-body ul { padding-left: 18px; margin: 6px 0; }
.dt-memory-body li { margin-bottom: 4px; }

.dt-loading-text { padding: 24px 18px; font-size: 13px; color: var(--text3); font-style: italic; }
.dt-empty-state { padding: 24px 18px; font-size: 13px; color: var(--text3); line-height: 1.6; }
.dt-error { padding: 16px 18px; font-size: 12px; color: var(--red, #e84c4c); }

/* ── Deal Timeline Events ─────────────────────────────────────────────── */
.dt-event { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.dt-event:last-child { border-bottom: none; }
.dt-event:hover { background: var(--surface2); }
.dt-event-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; margin-top: 2px; }
.dt-event-body { flex: 1; min-width: 0; }
.dt-event-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.dt-event-label { font-size: 13px; font-weight: 500; color: var(--text); }
.dt-event-time { font-size: 11px; color: var(--text3); white-space: nowrap; }
.dt-event-detail { font-size: 12px; color: var(--text2); line-height: 1.5; }

.dt-value-position { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 24px; max-width: 1400px; }
.dt-value-position:empty { display: none; }
.dt-vp-body { padding: 14px 18px; }
.dt-vp-stat { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.dt-vp-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.dt-vp-item { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); padding: 3px 0; }
.dt-vp-lever { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-vp-amount { font-weight: 500; color: var(--text); }
.dt-vp-stakeholders { font-size: 12px; color: var(--text3); }

/* ═══════════════════════════════════════════════════════
   VALUE GRAPH PANEL (Stage 2 Session 7)
   ═══════════════════════════════════════════════════════ */
.vg-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1400px; }
@media (max-width: 900px) { .vg-layout { grid-template-columns: 1fr; } }
.vg-col,
.vg-full-row { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.vg-full-row { margin-top: 24px; }

.vg-summary { padding: 18px; }
.vg-story-card { padding: 12px 14px; background: var(--surface2); border-radius: 8px; margin-bottom: 16px; }
.vg-story-label { font-size: 10px; text-transform: none; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 4px; }
.vg-story-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; }

.vg-stat-row { display: flex; gap: 16px; margin-bottom: 16px; }
.vg-stat { flex: 1; text-align: center; padding: 10px 8px; background: var(--surface2); border-radius: 8px; }
.vg-stat-value { font-size: 20px; font-weight: 500; color: var(--text); }
.vg-stat-label { font-size: 11px; color: var(--text3); margin-top: 2px; }

.vg-breakdown { margin-bottom: 14px; }
.vg-breakdown-label { font-size: 11px; text-transform: none; letter-spacing: 0.04em; color: var(--text3); margin-bottom: 6px; }
.vg-breakdown-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; color: var(--text2); }
.vg-breakdown-count { margin-left: auto; font-weight: 500; color: var(--text); }
.vg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.vg-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--surface2); color: var(--text2); }
.vg-tier-hard { background: #dcfce7; color: #15803d; }
.vg-tier-soft { background: var(--brand-primary-tint); color: var(--brand-primary-hover); }
.vg-tier-strategic { background: #f3e8ff; color: #7e22ce; }
.vg-tier-mixed { background: #fef3c7; color: #b45309; }

.vg-stakeholder { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.vg-stakeholder:last-child { border-bottom: none; }
.vg-stakeholder-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.vg-stakeholder-name { font-size: 14px; font-weight: 500; color: var(--text); }
.vg-stakeholder-role { font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.vg-persona-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 3px; background: var(--surface2); color: var(--text3); text-transform: none; letter-spacing: 0.04em; }
.vg-stance-badge { font-size: 11px; padding: 1px 8px; border: 1px solid; border-radius: 4px; text-transform: capitalize; }

.vg-stakeholder-meters { display: flex; gap: 16px; margin-top: 8px; }
.vg-meter { display: flex; align-items: center; gap: 6px; flex: 1; }
.vg-meter-label { font-size: 10px; color: var(--text3); white-space: nowrap; width: 50px; }
.vg-meter-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.vg-meter-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.vg-meter-value { font-size: 10px; color: var(--text3); width: 20px; text-align: right; }

.vg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vg-table th { text-align: left; padding: 10px 14px; font-size: 11px; text-transform: none; letter-spacing: 0.04em; color: var(--text3); border-bottom: 1px solid var(--border); background: var(--surface2); }
.vg-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.vg-table tr:last-child td { border-bottom: none; }

.vg-evidence-summary { display: flex; align-items: center; gap: 16px; padding: 12px 18px; font-size: 13px; color: var(--text2); border-top: 1px solid var(--border); }
.vg-loading { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 12px; border-radius: 4px; background: var(--skeleton-bg); animation: skeleton-pulse 1.5s ease-in-out infinite; }
@keyframes skeleton-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.vg-evidence-count { font-weight: 500; }

.vg-narrative-card { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.vg-narrative-card:last-child { border-bottom: none; }
.vg-narrative-header { margin-bottom: 10px; }
.vg-narrative-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.vg-narrative-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text3); }
.vg-narrative-body { font-size: 13px; color: var(--text2); line-height: 1.6; }
.vg-narrative-body h1, .vg-narrative-body h2, .vg-narrative-body h3 { font-size: 14px; font-weight: 500; color: var(--text); margin: 12px 0 6px; }
.vg-narrative-body p { margin: 0 0 8px; }
.vg-narrative-body ul, .vg-narrative-body ol { margin: 0 0 8px; padding-left: 20px; }
.vg-narrative-body li { margin-bottom: 4px; }

/* ═══════════════════════════════════════════════════════
   BUSINESS CASE MODELER V2
   ═══════════════════════════════════════════════════════ */

/* Layout */
.bcv2-layout { display: flex; gap: 20px; min-height: 70vh; }
.bcv2-main { flex: 1; min-width: 0; }
.bcv2-sidebar { width: 320px; min-width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; position: sticky; top: 16px; max-height: calc(100vh - 120px); overflow-y: auto; }
@media (max-width: 1024px) { .bcv2-layout { flex-direction: column; } .bcv2-sidebar { width: 100%; min-width: 0; position: static; max-height: none; } }

/* Nav steps */
.bcv2-nav { display: flex; gap: 4px; margin-bottom: 20px; }
.bcv2-nav-step { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text2); transition: all 0.15s; }
.bcv2-nav-step.active { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.bcv2-nav-step.disabled { opacity: 0.4; cursor: not-allowed; }
.bcv2-nav-num { width: 22px; height: 22px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; }
.bcv2-nav-step.active .bcv2-nav-num { background: var(--accent); color: #fff; }

/* Seed banner */
.bcv2-seed-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 48px 32px; text-align: center; max-width: 560px; margin: 40px auto; }
.bcv2-seed-icon { margin-bottom: 20px; }
.bcv2-seed-card h2 { font-size: 20px; font-weight: 500; margin-bottom: 12px; color: var(--text); }
.bcv2-seed-desc { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 24px; }
.bcv2-seed-actions { display: flex; gap: 12px; justify-content: center; }
.bcv2-seed-loading { padding: 40px; }
/* W2 — "Before we calculate" (BcSetupPanel.tsx). Reuses the seed card, input
   field and source picker; these rules only lay the rows out. */
.bcv2-setup-card { max-width: 720px; text-align: left; padding: 32px; }
.bcv2-setup-card h2 { text-align: center; }
.bcv2-setup-card .bcv2-seed-desc { text-align: center; }
.bcv2-setup-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.bcv2-setup-current { font-size: 12px; color: var(--text2); }
.bcv2-setup-levers { font-size: 11px; color: var(--text3); margin-top: 2px; }
.bcv2-setup-applies { font-size: 11px; color: var(--text2); margin-top: 2px; }
.bcv2-setup-suggestion { font-size: 12px; color: var(--text); margin-top: 6px; }
.bcv2-setup-note { font-size: 11px; color: var(--text3); margin-top: 2px; }
.bcv2-setup-controls { flex-wrap: wrap; margin-top: 8px; }
.bcv2-setup-controls .bcv2-source-picker { margin-top: 0; }
.bcv2-setup-controls .bcv2-field-input { width: 140px; }
.bcv2-setup-row.is-skipped { opacity: 0.55; }
/* Branded chevron loader (reuses .vs-loader-mark) centered inside the seed box. */
.bcv2-seed-loading .vs-loader-mark { justify-content: center; margin-bottom: 4px; }
.bcv2-seed-loading h3 { margin-top: 16px; font-size: 16px; color: var(--text); }
.bcv2-seed-loading p { font-size: 13px; color: var(--text2); margin-top: 8px; }
.bcv2-spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: bcv2spin 0.8s linear infinite; margin: 0 auto; }
@keyframes bcv2spin { to { transform: rotate(360deg); } }

/* Inputs panel */
.bcv2-inputs-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.bcv2-confidence { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bcv2-confidence-label { font-size: 12px; color: var(--text2); font-weight: 500; }
.bcv2-confidence-badge { font-size: 12px; font-weight: 500; padding: 2px 8px; border: 1px solid; border-radius: 12px; }
.bcv2-confidence-bar { width: 120px; height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; }
.bcv2-confidence-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.bcv2-confidence-detail { font-size: 11px; color: var(--text3); }
.bcv2-input-groups { display: flex; flex-direction: column; gap: 8px; }
.bcv2-input-group { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.bcv2-input-group-header { padding: 12px 16px; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.bcv2-group-prov-summary { font-size: 11px; color: var(--text3); font-weight: 400; }
.bcv2-input-fields { padding: 4px 16px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.bcv2-input-field { padding: 8px 10px; border-radius: 6px; background: var(--surface2); }
.bcv2-field-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bcv2-field-label { font-size: 12px; color: var(--text2); }
.bcv2-field-value-wrap { display: flex; align-items: center; gap: 4px; }
.bcv2-field-value { font-size: 14px; font-weight: 500; color: var(--accent); cursor: pointer; padding: 2px 8px; border-radius: 4px; border: 1px dashed var(--border); position: relative; min-width: 60px; text-align: right; transition: border-color 0.15s, background 0.15s; }
.bcv2-field-value::after { content: ' \270E'; font-size: 11px; color: var(--text3); margin-left: 4px; }
.bcv2-field-value:hover { background: var(--accent-light); border-color: var(--accent); }
.bcv2-field-value:hover::after { color: var(--accent); }
.bcv2-field-input { width: 100px; padding: 2px 6px; font-size: 14px; font-weight: 500; border: 1px solid var(--accent); border-radius: 4px; outline: none; background: var(--surface); color: var(--text); }
.bcv2-field-reset { background: none; border: none; cursor: pointer; font-size: 14px; color: var(--text3); padding: 2px; }
.bcv2-field-reset:hover { color: var(--accent); }
.bcv2-field-bottom { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
/* §10.9 Tier indicators on provenance badges. Each badge leads with a
   5px tier dot in the matching tier color (validated/corpus/inferred/override). */
.bcv2-prov-badge { font: 500 11px/1.25 var(--font-sans); padding: 2px 8px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: 5px; }
.bcv2-prov-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.bcv2-prov-customer  { background: var(--positive-tint); color: var(--positive); }
.bcv2-prov-customer::before  { background: var(--tier-validated); }
.bcv2-prov-research  { background: var(--brand-primary-tint); color: var(--brand-primary); }
.bcv2-prov-research::before  { background: var(--tier-corpus); }
.bcv2-prov-benchmark { background: var(--surface-dim); color: var(--text-tertiary); }
.bcv2-prov-benchmark::before { background: var(--tier-corpus); }
.bcv2-prov-estimate  { background: var(--warning-tint); color: var(--warning); }
.bcv2-prov-estimate::before  { background: var(--tier-inferred); }
.bcv2-prov-override  { background: transparent; color: var(--text-tertiary); border: 1px solid var(--border-default); }
.bcv2-prov-override::before  { background: transparent; border: 1.5px solid var(--tier-override); width: 5px; height: 5px; box-sizing: border-box; }
.bcv2-lever-impact { font-size: 10px; color: var(--text3); }
/* The working calendar (spec 2026-08-09) — the derived value shown alongside an
   override slot, so a disagreement between what is stored and what the calendar
   derives is always visible rather than silently resolved. */
.bcv2-calendar-note { font-size: 10px; color: var(--text-tertiary); margin-top: 3px; line-height: 1.4; }
/* §10.9b Stage H impl-3 — estimate-flagging states. Verified (confident, bordered,
   with a source hint) / Estimated (higher-urgency amber, drives the confirm cue) /
   Benchmark reuses the muted grey above. Kept visually distinct per feedback_silent_fallbacks. */
.bcv2-prov-verified { background: var(--positive-tint); color: var(--positive); border: 1px solid var(--positive); }
.bcv2-prov-verified::before { background: var(--positive); }
.bcv2-prov-verified .bcv2-prov-src { margin-left: 5px; padding-left: 5px; border-left: 1px solid currentColor; opacity: 0.75; font-weight: 400; font-size: 10px; }
.bcv2-prov-estimated { background: var(--warning-tint); color: var(--warning); font-weight: 600; border: 1px solid var(--warning); }
.bcv2-prov-estimated::before { background: var(--tier-inferred); }
.bcv2-confirm-cue { font: 600 10px/1.25 var(--font-sans); color: var(--warning); background: transparent; border: 1px dashed var(--warning); border-radius: var(--radius-sm); padding: 2px 6px; cursor: pointer; }
.bcv2-confirm-cue:hover { background: var(--warning-tint); }
.bcv2-field-estimated { border-left: 2px solid var(--warning); padding-left: 8px; }
.bcv2-source-picker { display: flex; gap: 4px; margin-top: 4px; }
.bcv2-src-btn { font-size: 10px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text2); cursor: pointer; }
.bcv2-src-btn.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.bcv2-src-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

/* Workspace */
.bcv2-workspace { display: flex; gap: 16px; }
.bcv2-lever-library { width: 35%; min-width: 280px; max-height: calc(100vh - 200px); overflow-y: auto; }
.bcv2-selected-area { flex: 1; min-width: 0; }
.bcv2-lib-header, .bcv2-sel-header { font-size: 14px; font-weight: 500; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.bcv2-lib-group { margin-bottom: 16px; }
.bcv2-lib-cat { font-size: 12px; font-weight: 500; margin-bottom: 6px; text-transform: none; letter-spacing: 0.5px; }
.bcv2-lib-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; transition: border-color 0.15s; }
.bcv2-lib-card.selected { border-color: var(--accent); background: var(--accent-light); }
.bcv2-lib-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.bcv2-lib-name { font-size: 13px; font-weight: 500; color: var(--text); }
.bcv2-cat-badge { font-size: 9px; font-weight: 500; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.bcv2-lib-desc { font-size: 11px; color: var(--text2); line-height: 1.4; margin-bottom: 6px; }
.bcv2-lib-card-bottom { display: flex; justify-content: space-between; align-items: center; }
.bcv2-lib-est { font-size: 12px; font-weight: 500; color: var(--accent); }
.bcv2-lib-empty { font-size: 13px; color: var(--text3); padding: 20px; }

/* Selected lever cards */
.bcv2-sel-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.bcv2-sel-card-header { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.bcv2-sel-card-header:hover { background: var(--surface2); }
.bcv2-sel-card-left { display: flex; flex-direction: column; gap: 2px; }
.bcv2-sel-name { font-size: 14px; font-weight: 500; color: var(--text); }
.bcv2-cat-badge-sm { font-size: 10px; font-weight: 500; }
.bcv2-sel-card-right { display: flex; align-items: center; gap: 8px; }
.bcv2-sel-value { font-size: 18px; font-weight: 500; color: var(--accent); }
.bcv2-sel-hours { font-size: 12px; color: var(--text2); }
.bcv2-sel-expand { font-size: 10px; color: var(--text3); }
.bcv2-sel-empty { padding: 32px; text-align: center; color: var(--text3); font-size: 13px; }

/* Expanded lever / formula chain */
.bcv2-expanded { padding: 0 14px 14px; }
.bcv2-formula-chain { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; padding: 12px; background: var(--surface2); border-radius: 8px; margin-bottom: 10px; }
.bcv2-formula-var { text-align: center; padding: 6px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: border-color 0.15s, opacity 0.15s; min-width: 60px; position: relative; }
.bcv2-formula-var:hover { border-color: var(--accent); }
.bcv2-formula-var.bcv2-dragging { opacity: 0.4; border-style: dashed; }
.bcv2-formula-var.bcv2-drag-over { border-color: var(--accent); background: var(--accent-light, var(--brand-primary-tint)); }
.bcv2-drag-handle { font-size: 14px; color: var(--text3); margin-bottom: 2px; cursor: grab; user-select: none; line-height: 1; }
.bcv2-drag-handle:active { cursor: grabbing; }
.bcv2-var-value { font-size: 15px; font-weight: 500; color: var(--text); }
.bcv2-var-label { font-size: 10px; color: var(--text2); margin-top: 2px; white-space: nowrap; }
.bcv2-var-prov { margin-top: 3px; }
.bcv2-formula-op { font-size: 16px; font-weight: 300; color: var(--text3); align-self: center; padding-top: 4px; }
.bcv2-formula-result { text-align: center; padding: 6px 12px; background: var(--accent-light); border: 1px solid var(--accent); border-radius: 6px; }
.bcv2-result-value { font-size: 16px; font-weight: 500; color: var(--accent); }
.bcv2-result-hours { font-size: 11px; color: var(--text2); }

/* Ramp row */
.bcv2-ramp-row { display: flex; gap: 8px; margin-bottom: 8px; }
.bcv2-ramp-cell { flex: 1; text-align: center; padding: 6px; background: var(--surface2); border-radius: 6px; }
.bcv2-ramp-year { font-size: 10px; color: var(--text3); margin-bottom: 2px; }
.bcv2-ramp-val { font-size: 13px; font-weight: 500; color: var(--text); }
.bcv2-ramp-hrs { font-size: 10px; color: var(--text2); }
.bcv2-bench-note { font-size: 11px; color: var(--text3); font-style: italic; line-height: 1.4; }
.bcv2-corpus-header-range { margin-top: 4px; }
.bcv2-chr-tag { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 4px; background: var(--surface2); color: var(--text3); }

/* Popover */
.bcv2-popover { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 100; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px; width: 240px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); margin-top: 6px; }
.bcv2-pop-header { font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.bcv2-pop-prov { margin-bottom: 6px; }
.bcv2-pop-source { font-size: 10px; color: var(--text3); margin-bottom: 6px; line-height: 1.3; }
.bcv2-pop-bench { font-size: 11px; color: var(--text2); margin-bottom: 4px; }
.bcv2-corpus-range { margin-bottom: 8px; }
.bcv2-corpus-label { font-size: 10px; color: var(--text3); margin-bottom: 2px; }
.bcv2-corpus-bar { display: flex; gap: 8px; font-size: 10px; color: var(--text2); padding: 3px 6px; background: var(--surface2); border-radius: 4px; }
.bcv2-corpus-p { white-space: nowrap; }
.bcv2-corpus-mid { font-weight: 500; color: var(--accent); }
.bcv2-pop-label { font-size: 11px; color: var(--text2); display: block; margin-bottom: 4px; }
.bcv2-pop-input { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; background: var(--surface); color: var(--text); margin-bottom: 4px; }
.bcv2-pop-range { font-size: 10px; color: var(--text3); margin-bottom: 8px; }
.bcv2-pop-current { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.bcv2-pop-readonly-note { font-size: 11px; color: var(--text3); line-height: 1.5; margin-bottom: 10px; font-style: italic; }
.bcv2-pop-link { background: none; border: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 11px; text-decoration: underline; font-style: normal; }
.bcv2-pop-cascade-warn { font-size: 11px; color: #b45309; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 4px; padding: 5px 8px; margin-bottom: 8px; line-height: 1.4; }
.bcv2-pop-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Financial sidebar */
.bcv2-sidebar-empty { padding: 32px 16px; text-align: center; color: var(--text3); font-size: 13px; }
.bcv2-fin-header { font-size: 15px; font-weight: 500; margin-bottom: 12px; color: var(--text); }
.bcv2-scenario-bar { display: flex; gap: 4px; margin-bottom: 14px; }
.bcv2-scenario-btn { flex: 1; padding: 6px 8px; font-size: 12px; font-weight: 500; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text2); cursor: pointer; text-align: center; transition: all 0.15s; }
.bcv2-scenario-btn.active { background: var(--accent-light); border-color: var(--accent); color: var(--accent); font-weight: 500; }
.bcv2-fin-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.bcv2-fin-metric { text-align: center; padding: 10px 4px; background: var(--surface2); border-radius: 8px; }
.bcv2-fin-label { font-size: 10px; color: var(--text3); text-transform: none; letter-spacing: 0.5px; margin-bottom: 4px; }
.bcv2-fin-value { font-size: 18px; font-weight: 500; color: var(--text); }
.bcv2-fin-primary .bcv2-fin-value { color: var(--accent); }
/* Shown only when the deal has no cost side, so the headline reads
   "PV of Benefits" rather than a mislabelled NPV. Toggled by inline
   display, never by mounting/unmounting the node. */
.bcv2-fin-hint { font-size: 9px; line-height: 1.3; color: var(--text3); margin-top: 4px; }
/* Value-basis notes (2026-08-23). The app quotes GROSS benefits NPV-discounted
   while the exports quote RISK-ADJUSTED benefits undiscounted; both are correct,
   and the defect was that neither surface said which. Deliberately quiet type —
   this is a footnote to the figures, not a warning about them. */
/* ⚠️ `grid-column: 1 / -1` is LOAD-BEARING. This note sits inside
   .bcv2-fin-metrics, a 3-column grid, so without it the note becomes a
   fourth grid CELL and renders 90px wide inside a 320px sidebar — measured
   on production before this line existed. A contract test on the text
   cannot see that; only the rendered geometry can. */
.bcv2-fin-basis { grid-column: 1 / -1; font-size: 9px; line-height: 1.35; color: var(--text3); margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border); }
.bcv2-deal-kpi-basis { font-size: 10px; line-height: 1.35; color: var(--text3); margin-top: 6px; }
.ar-bento-basis { font-size: 11px; line-height: 1.4; color: var(--text3); margin: 8px 0 0; }

/* Provenance-composition badge (2026-09-08, programme item 3). WHAT the figure
   above is made of, as against the basis line's HOW it was computed. Two axes,
   two elements, deliberately not merged — see lib/provenanceComposition.ts.
   Louder than the basis footnote (--text2, not --text3) because this one is a
   statement about the number's defensibility, not a footnote to it.

   🔴 `grid-column: 1 / -1` ON THE SIDEBAR RULES IS LOAD-BEARING, FOR EXACTLY
   THE REASON THE COMMENT ABOVE RECORDS. These sit inside .bcv2-fin-metrics, a
   3-column grid; without the span they become extra grid CELLS and render ~90px
   wide in a 320px sidebar. That is how the 2026-08-23 value-basis note shipped
   broken with its own contract test green — a text gate cannot see geometry. */
.bcv2-fin-composition { grid-column: 1 / -1; font-size: 9px; line-height: 1.35; color: var(--text2); margin-top: 3px; }
.bcv2-fin-composition-caveat { grid-column: 1 / -1; font-size: 9px; line-height: 1.35; color: var(--text3); margin-top: 2px; font-style: italic; }
.bcv2-deal-kpi-composition { font-size: 10px; line-height: 1.35; color: var(--text2); margin-top: 3px; }
.bcv2-deal-kpi-composition-caveat { font-size: 10px; line-height: 1.35; color: var(--text3); margin-top: 2px; font-style: italic; }
.ar-bento-composition { font-size: 11px; line-height: 1.4; color: var(--text2); margin: 4px 0 0; }
.ar-bento-composition-caveat { font-size: 11px; line-height: 1.4; color: var(--text3); margin: 2px 0 0; font-style: italic; }
.bcv2-fin-secondary { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.bcv2-fin-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text2); padding: 4px 0; border-bottom: 1px solid var(--surface2); }
.bcv2-fin-chart-wrap { margin-bottom: 14px; height: 200px; }
.bcv2-fin-categories { }
.bcv2-fin-cat-header { font-size: 12px; font-weight: 500; color: var(--text2); margin-bottom: 8px; }
.bcv2-fin-cat-row { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 0; }
.bcv2-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bcv2-cat-label { flex: 1; color: var(--text2); }
.bcv2-cat-val { font-weight: 500; color: var(--text); }
.bcv2-cat-pct { color: var(--text3); width: 32px; text-align: right; }

/* Responsive workspace */
@media (max-width: 768px) {
  .bcv2-workspace { flex-direction: column; }
  .bcv2-lever-library { width: 100%; max-height: none; }
  .bcv2-formula-chain { gap: 4px; }
  .bcv2-ramp-row { flex-wrap: wrap; }
}

/* ── Retire R1b: an archived case is read-only. Edit fields stop taking input; nav, expand, hover and Export keep working.
   The server refuses any write the screen still lets through, with its own sentence. ── */
.bcv2-layout[data-read-only="1"] input,
.bcv2-layout[data-read-only="1"] select,
.bcv2-layout[data-read-only="1"] textarea,
.bcv2-layout[data-read-only="1"] [contenteditable="true"] { pointer-events: none; opacity: 0.75; }

/* ── Gate 4: no-sidebar layout ── */
.bcv2-layout-nosidebar { display: block; }
.bcv2-layout-nosidebar .bcv2-main { width: 100%; }

/* ── §13.1 Deal header band (Workbench) ──────────────────────────
   Hero surface header. Deal name (display-md) + customer line +
   status pill + KPI pill row with primary variant on NPV. Renders
   above the fin bar (scenario controls).                              */
.bcv2-deal-header {
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bcv2-deal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.bcv2-deal-header-left { min-width: 0; }
.bcv2-deal-name {
  /* display-md: 24px / 500 / -0.018em */
  font: 500 24px/1.25 var(--font-sans);
  letter-spacing: -0.018em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bcv2-deal-customer {
  font: 400 12px/1.4 var(--font-mono);
  color: var(--text-tertiary);
  letter-spacing: 0;
  margin-top: 2px;
}
.bcv2-deal-header-right { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }

/* TODO taxonomy: replace placeholder lifecycle (Drafting / Active /
   Closed) with the canonical value-case lifecycle. */
.bcv2-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 11px/1 var(--font-sans);
  letter-spacing: 0;
  height: 22px;
  padding: 0 10px;
  background: var(--surface-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}
.bcv2-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
}
.bcv2-status-pill.bcv2-status-drafting { color: var(--text-secondary); }
.bcv2-status-pill.bcv2-status-drafting .bcv2-status-dot { background: var(--text-tertiary); }
.bcv2-status-pill.bcv2-status-modeling {
  color: var(--brand-primary);
  background: var(--brand-primary-fade);
  border-color: rgba(45, 90, 76, 0.3);
}
.bcv2-status-pill.bcv2-status-modeling .bcv2-status-dot { background: var(--brand-primary); }
.bcv2-status-pill.bcv2-status-finalized,
.bcv2-status-pill.bcv2-status-sent {
  color: var(--positive);
  background: var(--positive-tint);
  border-color: rgba(59, 122, 92, 0.3);
}
.bcv2-status-pill.bcv2-status-finalized .bcv2-status-dot,
.bcv2-status-pill.bcv2-status-sent .bcv2-status-dot { background: var(--positive); }

.bcv2-deal-kpis {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Gate 4: pinned financial bar ── */
/* Coherence S0 item 10: sticky offsets are measured inside .content's padding,
   so `top: 8px` pinned the bar 36px down and lever rows scrolled through the gap
   ABOVE it. Cancelling the padding pins it flush to the visible top edge. */
.bcv2-fin-bar { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; position: sticky; top: calc(-1 * var(--content-pad-top, 28px)); z-index: 10; }
.bcv2-fin-bar-inner { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
/* ⛔ ROW, NOT COLUMN (Backlog l, 2026-10-13): as a column the three scenario buttons stacked one per
   row and the PINNED bar grew to ~158px, covering lever rows as the grid scrolled. Buttons share one
   row, the ramp row wraps beneath (flex-basis 100%), and the lever count + Add Levers stay right. */
.bcv2-fin-bar-scenarios { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; flex: 0 1 400px; min-width: 0; }
.bcv2-fin-bar-scenarios > .bcv2-scenario-btn { flex: 1 1 0; }
.bcv2-scenario-ramp-row { display: flex; align-items: center; gap: 6px; padding-top: 4px; flex-wrap: wrap; flex-basis: 100%; }
.bcv2-ramp-mini-label { font-size: 10px; font-weight: 500; color: var(--text3); text-transform: none; letter-spacing: .04em; white-space: nowrap; }
.bcv2-ramp-mini-wrap { display: flex; align-items: center; gap: 2px; font-size: 11px; color: var(--text2); }
.bcv2-ramp-mini-input { width: 40px; padding: 2px 3px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text1); font-size: 11px; text-align: center; }
.btn-xs { padding: 2px 7px; font-size: 11px; border-radius: 4px; }
.bcv2-fin-bar-kpis { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
/* §10.6 KPI pill — inline metric pill used in deal headers and chart legends. */
.bcv2-fin-kpi { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 7px 11px; background: var(--surface-panel); border: 1px solid var(--border-default); border-radius: var(--radius-sm); }
.bcv2-fin-kpi-label { font: 400 11px/1.3 var(--font-sans); color: var(--text-tertiary); letter-spacing: 0; }
.bcv2-fin-kpi-value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "zero", "ss01"; font-size: 19px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: var(--text-primary); }
/* Primary variant — featured KPI (NPV). Brand-primary-fade bg + brand border @ 30% + value in brand. */
.bcv2-fin-kpi.primary { background: var(--brand-primary-fade); border-color: rgba(45, 90, 76, 0.30); }
.bcv2-fin-kpi.primary .bcv2-fin-kpi-value { color: var(--brand-primary); }
.bcv2-fin-bar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.bcv2-fin-bar-count { font-size: 12px; color: var(--text3); white-space: nowrap; }
.bcv2-claims-badge { font-size: 11px; color: var(--accent); white-space: nowrap; }
.bcv2-fin-bar-empty { justify-content: space-between; }
.bcv2-fin-bar-hint { font-size: 13px; color: var(--text3); }

/* ── Realization / confidence adjustment ── */
.bcv2-real-panel { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; flex-wrap: wrap; }
.bcv2-real-label-wrap { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--text2); }
.bcv2-real-input { width: 56px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text); font-size: 13px; text-align: center; }
.bcv2-real-label-input { width: 160px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text); font-size: 13px; }
.bcv2-realization-annotation { font-size: 10px; color: var(--text3); margin-top: 2px; font-style: italic; }
.bcv2-ramp-readonly { font-size: 11px; color: var(--text2); padding: 2px 6px; background: var(--surface2); border-radius: 4px; }

/* ── Gate 4: lever table ── */
.bcv2-workspace-v4 { display: flex; flex-direction: column; gap: 0; }
.bcv2-lever-table-area { flex: 1; }
.bcv2-lever-table-footer { display: flex; gap: 8px; padding: 10px 0 4px; align-items: center; }
.bcv2-lever-table-empty { padding: 40px 20px; text-align: center; color: var(--text3); font-size: 13px; background: var(--surface); border: 1px dashed var(--border); border-radius: 8px; }
/* ── Workspace Visualization Panel ── */
.bcv2-workspace-viz { margin-top: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
/* §13.1 result band — chart + sensitivity (right) + breakdown + costs.
   Sensitivity column sits adjacent to the chart per §13.1 ("alongside").
   Breakdown + costs ride to the right; they'll be revisited as the
   §13.1 result band tightens further. */
/* G8 (2026-08-25) — these four tiles WRAP; they are not a fixed 4-track grid.
   Was `grid-template-columns: 1fr 280px 200px 180px`. The three fixed tracks
   total 660px and `1fr` resolves as `minmax(auto, 1fr)`, so the chart's
   min-content floored the grid at 993px inside a 697px box — measured
   scrollWidth 993 vs clientWidth 697. `.bcv2-workspace-viz` is
   `overflow: hidden`, so the 115px spill was not scrollable, it was INVISIBLE:
   on Corebridge every figure in the breakdown column ($37.5M · 70% · $16.4M ·
   30%) sat entirely past the clip edge at x=987. 697px is the DEFAULT width —
   the Vega rail is 360px and open by default — so the panel shipped broken and
   "fixed itself" only when the rail was collapsed.
   ⛔ Do NOT re-express this as a media query. The constraint is the CONTAINER
   (the rail opening/closing changes it by 320px at one unchanged viewport
   width), so a viewport breakpoint fires in the wrong half of the cases.
   `flex-wrap` needs no breakpoint at all, and unlike `container-type:
   inline-size` it introduces no containment context for fixed-position
   descendants. Verified on production: scrollWidth 993 -> 697 (== clientWidth),
   tiles reflow 2x2, and the breakdown column GAINS width, 200 -> 359. */
.bcv2-viz-inner { display: flex; flex-wrap: wrap; gap: 0; }
.bcv2-viz-chart-col { flex: 1 1 300px; min-width: 0; padding: 16px; border-right: 1px solid var(--border); }
.bcv2-viz-sens-col { flex: 1 1 280px; min-width: 0; padding: 12px 14px; border-right: 1px solid var(--border); }
.bcv2-viz-breakdown-col { flex: 1 1 200px; min-width: 0; padding: 16px; border-right: 1px solid var(--border); }
.bcv2-viz-costs-col { flex: 1 1 180px; min-width: 0; padding: 12px 14px; }

/* ── §13.1 Sensitivity heatmap ───────────────────────────────────
   24px row height (compact), rows ranked by absolute Δ NPV swing,
   tier dot + variable label + bar + value. Bar fill --brand-primary,
   track --surface-dim. Hairline row separators match §13.2 ledger. */
.bcv2-sens-col {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.bcv2-sens-title {
  font: 500 11px/1 var(--font-sans);
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.bcv2-sens-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-panel);
}
.bcv2-sens-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 70px 56px;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-panel);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.bcv2-sens-row:last-child { border-bottom: 0; }
.bcv2-sens-row:hover { background: var(--surface-raised); }
.bcv2-sens-row:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: -2px;
}
.bcv2-sens-tier { display: inline-flex; align-items: center; justify-content: center; }
.bcv2-sens-name {
  display: flex; align-items: baseline; gap: 6px;
  min-width: 0;
}
.bcv2-sens-var {
  font: 400 12px/1 var(--font-sans);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}
.bcv2-sens-lever {
  font: 400 10px/1 var(--font-sans);
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 2;
  min-width: 0;
}
.bcv2-sens-bar-track {
  position: relative;
  height: 6px;
  background: var(--surface-dim);
  border-radius: 999px;
  overflow: hidden;
}
.bcv2-sens-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--brand-primary);
  border-radius: 999px;
  transition: width var(--duration-base) var(--ease-standard);
}
.bcv2-sens-value {
  font: 500 11px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "zero", "ss01";
  color: var(--text-primary);
  text-align: right;
}
.bcv2-sens-show-all {
  align-self: flex-start;
  font: 400 11px/1 var(--font-sans);
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  padding: 4px 4px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.bcv2-sens-show-all:hover { background: var(--surface-raised); color: var(--text-primary); }
.bcv2-sens-empty {
  padding: 16px 12px;
  text-align: center;
}
.bcv2-sens-empty-headline {
  font: 500 12px/1.3 var(--font-sans);
  color: var(--text-secondary);
  margin: 0 0 4px;
}
.bcv2-sens-empty-body {
  font: 400 11px/1.45 var(--font-sans);
  color: var(--text-tertiary);
  margin: 0;
}
.bcv2-viz-title { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: .05em; color: var(--text3); margin-bottom: 10px; }
.bcv2-cost-summary-empty { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; color: var(--text3); font-size: 12px; }
.bcv2-cost-sum-totals { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.bcv2-cost-sum-kpi { display: flex; flex-direction: column; gap: 2px; background: var(--surface-raised); border-radius: 6px; padding: 6px 10px; }
.bcv2-cost-sum-kpi span { font-size: 10px; color: var(--text3); text-transform: none; letter-spacing: .04em; }
.bcv2-cost-sum-kpi strong { font-size: 14px; font-weight: 500; color: var(--text); }
.bcv2-cost-sum-rows { display: flex; flex-direction: column; gap: 3px; }
.bcv2-cost-sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text2); gap: 6px; }
.bcv2-cost-sum-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcv2-cost-sum-val { font-weight: 500; color: var(--text); white-space: nowrap; }
.bcv2-cost-sum-empty { font-size: 11px; color: var(--text3); }
.bcv2-viz-chart-wrap { position: relative; }
.bcv2-viz-cat-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; font-size: 12px; border-bottom: 1px solid var(--border); }
.bcv2-viz-cat-row:last-child { border-bottom: none; }
.bcv2-viz-cat-label { flex: 1; color: var(--text2); }
.bcv2-viz-cat-val { font-weight: 500; color: var(--text1); }
.bcv2-viz-cat-pct { width: 32px; text-align: right; color: var(--text3); font-size: 11px; }
/* (Batch 3) Old .bcv2-lever-table + .bcv2-lt-* lever-table styles
   removed. The §13.2 ledger primitive lives below as
   .bcv2-lever-ledger / .bcv2-ll-*. */
.bcv2-ramp-editor { display: flex; align-items: center; gap: 8px; padding: 8px 0 2px; flex-wrap: wrap; }
.bcv2-ramp-editor-label { font-size: 11px; font-weight: 500; color: var(--text3); text-transform: none; letter-spacing: .04em; }
.bcv2-ramp-mode-badge { font-size: 10px; font-weight: 500; padding: 1px 7px; border-radius: 10px; border: 1px solid; }
.bcv2-ramp-mode-badge.default { background: var(--surface2); color: var(--text3); border-color: var(--border); }
.bcv2-ramp-mode-badge.custom { background: var(--brand-primary-tint); color: var(--brand-primary-hover); border-color: var(--brand-primary-tint); }
.bcv2-ramp-override-cell { display: flex; align-items: center; gap: 2px; }
.bcv2-ramp-year-label { font-size: 10px; color: var(--text3); min-width: 16px; }
.bcv2-ramp-override-input { width: 44px; padding: 2px 4px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text1); font-size: 12px; text-align: center; }
.bcv2-ramp-pct-sym { font-size: 11px; color: var(--text3); }
.bcv2-ramp-reset-btn { margin-left: 4px; font-size: 10px; }
.bcv2-ramp-input-wrap { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text2); }
.bcv2-ramp-input { width: 48px; padding: 2px 4px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text1); font-size: 12px; text-align: center; }
/* (Batch 3) .bcv2-lt-expanded removed — replaced by .bcv2-ll-expanded below. */

/* ── §13.2 Lever ledger — Excel-grade data grid ──────────────────
   24px row height (compact). Columns:
     # (36)  · name (flex 2.4) · input (84) · annual$ (96)
            · risk-adj (96)    · 3yr NPV (100) · confidence (88)
     · actions (auto)
   Frozen header (26px, --surface-dim, label-sm). Vertical hairlines
   between columns. Alternating rows: even --surface-base, odd
   --surface-panel. Hover: --surface-raised. Selected row:
   --brand-primary-fade with 2px left --border-brand. */
.bcv2-lever-ledger {
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.bcv2-ll-grid-cols {
  /* Track template referenced by .bcv2-ll-head and .bcv2-ll-row-main */
}
.bcv2-ll-head,
.bcv2-ll-row-main {
  display: grid;
  /* ⚠️ THE CONFIDENCE TRACK IS 100px, NOT 88px, AND IT WAS MEASURED. The column
     used to hold `bcLeverTier`'s words (Corpus / Override / Estimated); it now
     holds the provenance KIND words, three of which contain a SPACE. At 88px
     "My number" WRAPPED TO TWO LINES inside a 24px row — caught by a screenshot
     on Western Union, and by nothing else: every text assertion read the label
     as correct, because it WAS correct. Measured in the live cell at the real
     font: Stand-in 44 · My number 57 · Benchmark 58 · Needs input 61 ·
     Company fact 71. 100px clears the longest by 3px.
     ⛔ Do not shrink it back without re-measuring `Company fact` — that is the
     binding word, and it is the one no live row renders yet. */
  grid-template-columns: 36px minmax(0, 2.4fr) 84px 96px 96px 100px 100px auto;
  align-items: center;
}
.bcv2-ll-head {
  height: 26px;
  background: var(--surface-dim);
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
  z-index: 2;
}
.bcv2-ll-head .bcv2-ll-col {
  font: 500 10px/1 var(--font-sans);
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  padding: 0 8px;
  display: flex;
  align-items: center;
  height: 100%;
  border-right: 1px solid var(--border-subtle);
}
.bcv2-ll-head .bcv2-ll-col:last-child { border-right: 0; }

.bcv2-ll-row {
  border-bottom: 1px solid var(--border-subtle);
  border-left: 2px solid transparent;
}
.bcv2-ll-row:last-child { border-bottom: 0; }
.bcv2-ll-row:nth-child(even of .bcv2-ll-row) { background: var(--surface-base); }
.bcv2-ll-row:nth-child(odd of .bcv2-ll-row)  { background: var(--surface-panel); }
/* Fallback shading for browsers without :nth-child(of) — alternate rows
   read odd/even on standard pattern starting from the row after head. */
.bcv2-ll-row:nth-child(odd) { background: var(--surface-base); }
.bcv2-ll-row:nth-child(even) { background: var(--surface-panel); }
.bcv2-ll-row:hover { background: var(--surface-raised); }
/* KI #16 — the reason a lever reads $0, on its own line under the row.
   Deliberately NOT the amber/gold "needs input" palette: nothing is missing
   here, so warning colour would be a lie about what the practitioner has to do.
   Reads as a quiet note, because the honest answer really is zero. */
.bcv2-ll-row-note {
  padding: 6px 12px 8px 34px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-subtle);
}
.bcv2-ll-row-note[data-guard-basis="comparison"] { color: var(--text-primary); }
.bcv2-ll-row.is-expanded {
  background: var(--brand-primary-fade);
  border-left-color: var(--border-brand);
}
.bcv2-ll-row-main {
  height: 24px;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard);
}

.bcv2-ll-col {
  padding: 0 8px;
  border-right: 1px solid var(--border-subtle);
  height: 100%;
  display: flex;
  align-items: center;
  font: 400 12px/1 var(--font-sans);
  color: var(--text-primary);
  min-width: 0;
}
.bcv2-ll-col:last-child { border-right: 0; }
.bcv2-ll-col-num {
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.bcv2-ll-col-name {
  font: 400 12px/1.3 var(--font-sans);
  gap: 4px;
}
.bcv2-ll-cat-stripe {
  width: 3px;
  height: 14px;
  border-radius: 1px;
  flex-shrink: 0;
}
.bcv2-ll-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  font-weight: 400;
}
.bcv2-ll-tag {
  font: 500 9px/1 var(--font-sans);
  letter-spacing: 0.04em;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  background: var(--surface-dim);
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.bcv2-ll-tag[data-tag="manual"] { color: var(--positive); border-color: rgba(59, 122, 92, 0.3); background: var(--positive-tint); }
.bcv2-ll-tag[data-tag="hours"]  { color: var(--text-tertiary); }
.bcv2-ll-tag[data-tag="signal"] { color: var(--brand-primary); border-color: rgba(45, 90, 76, 0.3); background: var(--brand-primary-fade); }

.bcv2-ll-col-input,
.bcv2-ll-col-annual,
.bcv2-ll-col-risk,
.bcv2-ll-col-npv {
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "zero", "ss01";
  color: var(--text-secondary);
}
.bcv2-ll-col-input { color: var(--text-primary); }
.bcv2-ll-col-npv {
  font-weight: 500;
  color: var(--text-primary);
}

.bcv2-ll-col-conf {
  gap: 6px;
}
.bcv2-ll-conf-label {
  font: 400 11px/1 var(--font-sans);
  color: var(--text-secondary);
  /* ⛔ LOAD-BEARING, NOT TIDINESS. The row is a fixed 24px and these labels are
     multi-word; without this a two-word kind breaks at the space and overflows
     its own row. "Benchmark" never showed it because a single token cannot
     wrap — which is exactly why the bug reached production review looking fine.
     Paired with the 100px track above; neither works alone. */
  white-space: nowrap;
}

.bcv2-ll-col-actions {
  justify-content: flex-end;
  gap: 4px;
  border-right: 0;
  padding-right: 8px;
}
.bcv2-ll-roi {
  font: 500 10px/1 var(--font-sans);
  height: 20px;
  width: auto;
  padding: 0 6px;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.bcv2-ll-roi.is-on {
  color: var(--brand-primary);
  border-color: rgba(45, 90, 76, 0.3);
  background: var(--brand-primary-fade);
}
.bcv2-ll-roi:hover { background: var(--surface-raised); }
.bcv2-ll-remove {
  width: 22px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text-tertiary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.bcv2-ll-remove:hover { color: var(--negative); background: var(--negative-tint); }
.bcv2-ll-chev {
  display: inline-flex;
  color: var(--text-tertiary);
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
}

/* Hours-mode rows — gentle de-emphasis on dollar columns. */
.bcv2-ll-row.is-non-financial .bcv2-ll-col-annual,
.bcv2-ll-row.is-non-financial .bcv2-ll-col-risk,
.bcv2-ll-row.is-non-financial .bcv2-ll-col-npv { color: var(--text-tertiary); }

/* ROI-excluded rows (Batch 3 refinement): row-level 50% opacity is the
   at-a-glance scan signal. The .bcv2-ll-roi toggle keeps its brand-fade
   treatment as the primary affordance. Hover/expanded states still show
   at full opacity so the row is operationally accessible. */
.bcv2-ll-row.is-roi-excluded { opacity: 0.5; }
.bcv2-ll-row.is-roi-excluded:hover,
.bcv2-ll-row.is-roi-excluded.is-expanded { opacity: 1; }
.bcv2-ll-row.is-roi-excluded .bcv2-ll-col-annual,
.bcv2-ll-row.is-roi-excluded .bcv2-ll-col-risk,
.bcv2-ll-row.is-roi-excluded .bcv2-ll-col-npv { text-decoration: line-through; text-decoration-color: var(--text-tertiary); }

.bcv2-ll-expanded {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-base);
}

/* ── §13.4 Lever ledger multi-context (scenario comparison) ─────
   Multi-mode track template is computed dynamically (data-cols on
   the ledger). Layout: 36px # · flex Lever name · then per-context
   value columns (100px each), with optional Δ delta columns (80px)
   between adjacent contexts when diffMode is enabled. */
.bcv2-lever-ledger-multi { width: 100%; }
.bcv2-lever-ledger-multi .bcv2-ll-head,
.bcv2-lever-ledger-multi .bcv2-ll-row-main {
  /* Sentinel — actual track is overridden by [data-cols] selectors below.
     Falls back to a sane default for 2 contexts + diff. */
  grid-template-columns: 36px minmax(0, 2.4fr) 100px;
}
.bcv2-lever-ledger-multi .bcv2-ll-col-scenario-value,
.bcv2-lever-ledger-multi .bcv2-ll-col-scenario-delta {
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "zero", "ss01";
}
.bcv2-lever-ledger-multi .bcv2-ll-col-scenario-value {
  color: var(--text-primary);
  font-weight: 500;
}
.bcv2-lever-ledger-multi .bcv2-ll-col-scenario-delta {
  color: var(--text-secondary);
  font-weight: 400;
}
/* §13.4 diff treatment: changed cells get 1px left accent + tint. */
.bcv2-lever-ledger-multi .bcv2-ll-col-scenario-value.is-diffed {
  background: var(--brand-primary-fade);
  box-shadow: inset 1px 0 0 var(--brand-primary);
}
/* Delta sign coloring per §3.3 (positive/negative are directional;
   brand color is reserved for headline series). */
.bcv2-lever-ledger-multi .bcv2-ll-col-scenario-delta.is-positive { color: var(--positive); }
.bcv2-lever-ledger-multi .bcv2-ll-col-scenario-delta.is-negative { color: var(--negative); }

/* Header treatment for the per-context column labels — left-aligned
   sentence-case scenario name (mirrors header semantics from the
   §10.4 segmented tabs). */
.bcv2-lever-ledger-multi .bcv2-ll-col-scenario-value[role="columnheader"],
.bcv2-lever-ledger-multi .bcv2-ll-col-scenario-delta[role="columnheader"] {
  justify-content: flex-end;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
}

/* Track templates per context count. The primitive emits data-cols on
   the ledger element to match (2 + N + (diffMode ? N-1 : 0)). */
.bcv2-lever-ledger-multi[data-cols="3"] .bcv2-ll-head,
.bcv2-lever-ledger-multi[data-cols="3"] .bcv2-ll-row-main {
  grid-template-columns: 36px minmax(0, 2.4fr) 110px;
}
.bcv2-lever-ledger-multi[data-cols="4"] .bcv2-ll-head,
.bcv2-lever-ledger-multi[data-cols="4"] .bcv2-ll-row-main {
  /* 2 contexts no diff */
  grid-template-columns: 36px minmax(0, 2.4fr) 110px 110px;
}
.bcv2-lever-ledger-multi[data-cols="5"] .bcv2-ll-head,
.bcv2-lever-ledger-multi[data-cols="5"] .bcv2-ll-row-main {
  /* 2 contexts + diff (Δ) */
  grid-template-columns: 36px minmax(0, 2.4fr) 110px 80px 110px;
}
.bcv2-lever-ledger-multi[data-cols="6"] .bcv2-ll-head,
.bcv2-lever-ledger-multi[data-cols="6"] .bcv2-ll-row-main {
  /* 3 contexts no diff */
  grid-template-columns: 36px minmax(0, 2.4fr) 110px 110px 110px;
}
.bcv2-lever-ledger-multi[data-cols="7"] .bcv2-ll-head,
.bcv2-lever-ledger-multi[data-cols="7"] .bcv2-ll-row-main {
  /* 3 contexts + 2 diffs */
  grid-template-columns: 36px minmax(0, 2.4fr) 110px 80px 110px 80px 110px;
}

/* ── §13.4 Scenario comparison surface ─────────────────────────── */
.sc-surface {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sc-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.sc-toolbar-divider {
  width: 1px; height: 14px;
  background: var(--border-default);
}
.sc-toolbar-deal {
  font: 400 12px/1.4 var(--font-mono);
  color: var(--text-tertiary);
  letter-spacing: 0;
}

/* §13.4: editorial pull-quote at the canvas top, max-width 720px,
   centered, italic optional. Renders Vega-authored synthesis. */
.sc-pull-quote {
  max-width: 720px;
  margin: 8px auto 4px;
  padding: 0 16px;
  font: 500 24px/1.35 var(--font-sans);
  letter-spacing: -0.018em;
  color: var(--text-primary);
  font-style: italic;
  text-align: left;
  border-left: 2px solid var(--brand-primary);
  padding-left: 16px;
}

.sc-header-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.sc-scenario-card {
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-scenario-card.is-active {
  border-color: rgba(45, 90, 76, 0.4);
}
.sc-scenario-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.sc-scenario-name {
  font: 500 18px/1.25 var(--font-sans);
  letter-spacing: -0.012em;
  color: var(--text-primary);
}
.sc-scenario-active-pill {
  font: 500 10px/1 var(--font-sans);
  letter-spacing: 0.04em;
  color: var(--brand-primary);
  background: var(--brand-primary-fade);
  border: 1px solid rgba(45, 90, 76, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.sc-scenario-kpis {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sc-ledger-wrap {
  /* Synchronous scrolling: the multi-context ledger is one table, so
     the rows scroll together by construction. The outer canvas owns
     vertical scroll; the ledger expands to natural height. */
  display: block;
}

.sc-empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--text-tertiary);
  font: 400 13px/1.5 var(--font-sans);
}

/* ── §13.5 Analysis reading view ────────────────────────────────
   Single-column max-width 720px editorial canvas with a sticky ToC
   rail on the left (≥1024px) and floating top-right action toolbar.
   Read-only consumer of the §13.2 lever ledger primitive.            */
.ar-surface {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding-top: 8px;
  /* Reserve room for the absolutely-positioned action toolbar at top-right. */
  padding-right: 0;
}
@media (max-width: 1024px) {
  .ar-surface { grid-template-columns: 1fr; gap: 12px; }
}

.ar-top-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}
/* Wider gap on each side separates the navigation group ("← Workbench")
   from the export/share group (Print / PDF / PPTX / Link). Hairline rule
   reads as a deliberate boundary, not a visual seam. */
.ar-actions-divider {
  width: 1px; height: 14px;
  background: var(--border-subtle);
  margin: 0 10px;
}

/* Sticky ToC rail. Replaces the global left rail behavior described in
   §13.5; on this surface only, it's a content-local rail anchored to
   the canvas left edge. Print / small viewports collapse it. */
.ar-toc-rail {
  position: sticky;
  top: 16px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 56px;  /* clear the absolute toolbar */
}
@media (max-width: 1024px) { .ar-toc-rail { display: none; } }
.ar-toc-label {
  font: 500 10px/1 var(--font-sans);
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.ar-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border-subtle);
}
.ar-toc-link {
  display: block;
  padding: 6px 10px;
  font: 400 12px/1.4 var(--font-sans);
  color: var(--text-tertiary);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;  /* overlap the ul border */
  transition: color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}
.ar-toc-link:hover {
  color: var(--text-primary);
  border-left-color: var(--border-strong);
}
.ar-toc-link:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}
.ar-toc-link[aria-current="location"] {
  /* Scroll-spy active state (queued #10). aria-current="location" is the
     semantic value for in-page nav indicators; analysis-reading-view.js
     toggles it via IntersectionObserver. Echoes §1.2 sidebar pattern:
     brand-primary text + matching 2px left edge. */
  color: var(--brand-primary);
  border-left-color: var(--brand-primary);
}

/* Canvas — single column, max-width 720px, centered. Editorial
   typography per §13.5. */
.ar-canvas {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 96px;  /* clear the absolute toolbar at top */
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Headline block — display-xl headline + customer line. */
.ar-headline-block { display: flex; flex-direction: column; gap: 6px; }
.ar-headline {
  margin: 0;
  /* display-xl: per §3 type scale — 40/1.15/-0.022em / weight 500. */
  font: 500 40px/1.15 var(--font-sans);
  letter-spacing: -0.022em;
  color: var(--text-primary);
}
.ar-customer-line {
  font: 400 12px/1.4 var(--font-mono);
  color: var(--text-tertiary);
  letter-spacing: 0;
}

/* Inline metric bento — 3 tiles in a row, surface-panel bg, 1px
   border-subtle, label caption, value mono-display. */
.ar-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ar-bento-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.ar-bento-label {
  font: 400 10px/1.2 var(--font-sans);
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}
.ar-bento-value {
  /* mono-display — large mono numerals, tabular-nums for alignment. */
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "zero", "ss01";
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--text-primary);
}

/* Section pattern — display-lg header with a thin underline rule. */
.ar-section { display: flex; flex-direction: column; gap: 14px; }
.ar-section-head {
  margin: 0;
  /* display-lg: 28/1.18/-0.018em / weight 500. */
  font: 500 28px/1.18 var(--font-sans);
  letter-spacing: -0.018em;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Read-only ledger consumer. Removes Workbench-specific row affordances
   (cursor pointer, hover bg) since rows are not interactive here. */
.ar-ledger-wrap .bcv2-ll-row .bcv2-ll-row-main { cursor: default; }
.ar-ledger-wrap .bcv2-ll-row:hover .bcv2-ll-row-main { background: inherit; }

/* Chart wrap — full content width, fixed aspect-ratio container so the
   §10.10 chart has a layout box on first paint. */
.ar-chart-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

/* Sensitivity — use the existing .bcv2-sens-* CSS for visual
   consistency with the Workbench. ar-sens-row disables interactivity. */
.ar-sens-list { background: var(--surface-panel); }
.ar-sens-row { cursor: default !important; }
.ar-sens-row:hover { background: var(--surface-panel) !important; }

/* Synthesis — §10.8 synthesis card variant: --brand-primary stripe,
   larger padding. The "pending" fallback (Refinement #2) is a single
   line in --text-tertiary with an inline link back to the Workbench;
   no card chrome. */
.ar-section-synthesis { gap: 16px; }
.ar-synthesis-card {
  position: relative;
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px 26px 32px;
  /* Stripe — 3px brand-primary on the leading edge. */
  border-left: 3px solid var(--brand-primary);
}
/* Tier-2 attribution label (Batch 9 — narrative source tiering).
   Rendered above the title when the synthesis is the company-level
   narrative fallback, not a BC-specific one. Tertiary color keeps
   it editorial, not visually competitive with the title. */
.ar-synthesis-attribution {
  font: 500 11px/1.4 var(--font-sans);
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.ar-synthesis-title {
  font: 500 16px/1.3 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.ar-synthesis-body {
  /* body-lg per §13.5 — 16/1.55, slightly more relaxed for prose. */
  font: 400 16px/1.55 var(--font-sans);
  color: var(--text-secondary);
}
.ar-synthesis-body p { margin: 0 0 12px; }
.ar-synthesis-body p:last-child { margin-bottom: 0; }

.ar-synthesis-pending {
  margin: 0;
  font: 400 14px/1.5 var(--font-sans);
  color: var(--text-tertiary);
}
.ar-synthesis-cta {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ar-synthesis-cta:hover { color: var(--brand-primary-hover); }

.ar-empty {
  margin: 0;
  font: 400 13px/1.5 var(--font-sans);
  color: var(--text-tertiary);
}

/* §13.5 spec intent — Analysis is structurally a publication, not an
   app screen. Hide the global sidebar so the local ToC rail is the
   only sidebar visible. Other views clear data-view and the sidebar
   returns. The Vega rail stays — it's not a navigation surface. */
body[data-view="bc-analysis"] .sidebar { display: none; }

/* Print rules — hide the chrome, keep the canvas, expand to page. */
@media print {
  .ar-top-actions,
  .ar-toc-rail,
  .vega-rail,
  .sidebar,
  .topbar { display: none !important; }
  .ar-surface { display: block; padding: 0; }
  .ar-canvas { max-width: 100%; padding: 0; }
}

/* ── Cap 4: Formula Editor ── */
.bcv2-formula-editor { margin-top: 12px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.bcv2-fe-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bcv2-fe-title { font-size: 11px; font-weight: 500; color: var(--text3); text-transform: none; letter-spacing: .04em; }
.bcv2-fe-modified-badge { font-size: 10px; font-weight: 500; padding: 1px 6px; border-radius: 10px; background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.bcv2-fe-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-height: 30px; }
.bcv2-fe-op { background: none; border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 14px; cursor: pointer; color: var(--text2); transition: background .15s; }
.bcv2-fe-op:hover { background: var(--surface-raised); }
.bcv2-fe-op-spacer { display: inline-block; width: 4px; }
.bcv2-fe-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 12px; color: var(--text1); }
.bcv2-fe-chip-label { max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcv2-fe-remove { background: none; border: none; cursor: pointer; color: var(--text3); font-size: 13px; line-height: 1; padding: 0 2px; border-radius: 50%; }
.bcv2-fe-remove:hover { color: #ef4444; background: #fee2e2; }
.bcv2-fe-empty { font-size: 12px; color: var(--text3); font-style: italic; }
.bcv2-fe-addbtn { margin-top: 6px; }
.bcv2-fe-add-panel { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.bcv2-fe-select { flex: 1; min-width: 160px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text1); font-size: 12px; }
.bcv2-fe-const { width: 100px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text1); font-size: 12px; }
.bcv2-fe-or { font-size: 11px; color: var(--text3); font-style: italic; }
.bcv2-fe-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* ── Inline formula card controls (C2 consolidation) ── */
.bcv2-card-remove { position: absolute; top: 2px; right: 2px; background: none; border: none; cursor: pointer; color: var(--text3); font-size: 11px; line-height: 1; padding: 1px 3px; border-radius: 50%; opacity: 0; transition: opacity .15s, color .15s; }
.bcv2-formula-var:hover .bcv2-card-remove { opacity: 1; }
.bcv2-card-remove:hover { color: #ef4444; background: #fee2e2; opacity: 1; }
.bcv2-formula-var-edit { cursor: default; }
.bcv2-formula-var-edit .bcv2-card-remove { opacity: 1; }
.bcv2-op-btn { background: none; border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 14px; cursor: pointer; color: var(--text2); align-self: center; transition: background .15s, border-color .15s; }
.bcv2-op-btn:hover { background: var(--surface-raised); border-color: var(--accent); }
.bcv2-op-select { border: 1px solid var(--border); border-radius: 4px; padding: 2px 4px; font-size: 13px; cursor: pointer; color: var(--text2); align-self: center; background: var(--surface); height: 28px; width: auto; flex-shrink: 0; }
.bcv2-labor-cost-tag { font-size: 9px; font-weight: 500; color: #d97706; background: #fef3c7; border-radius: 3px; padding: 1px 4px; margin-top: 2px; text-transform: none; letter-spacing: .3px; }
.bcv2-formula-save-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.bcv2-fe-addbtn { align-self: center; }

/* ── Costs Tab (C4) ── */
.bcv2-costs-panel { display: flex; flex-direction: column; gap: 16px; }
.bcv2-costs-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.bcv2-costs-title { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.bcv2-costs-subtitle { margin: 0; font-size: 13px; color: var(--text2); }
.bcv2-costs-grand-total { text-align: right; flex-shrink: 0; }
.bcv2-costs-total-label { display: block; font-size: 11px; font-weight: 500; color: var(--text3); text-transform: none; letter-spacing: .04em; }
.bcv2-costs-total-val { font-size: 22px; font-weight: 500; color: var(--text1); }
.bcv2-cost-rows { display: flex; flex-direction: column; gap: 8px; }
.bcv2-cost-row { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.bcv2-cost-row-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bcv2-cost-item-label { font-size: 14px; font-weight: 500; flex: 1; }
.bcv2-cost-label-input { font-size: 14px; font-weight: 500; flex: 1; min-width: 120px; padding: 3px 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text1); }
.bcv2-cost-total { font-size: 14px; font-weight: 500; color: var(--text1); white-space: nowrap; }
.bcv2-cost-source { font-size: 11px; padding: 2px 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text2); cursor: pointer; }
.bcv2-cost-desc { font-size: 12px; color: var(--text3); }
.bcv2-cost-years { display: flex; gap: 12px; flex-wrap: wrap; }
.bcv2-cost-year-wrap { display: flex; flex-direction: column; gap: 4px; }
.bcv2-cost-year-label { font-size: 11px; font-weight: 500; color: var(--text3); text-transform: none; letter-spacing: .03em; }
.bcv2-cost-year-input-wrap { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); overflow: hidden; }
.bcv2-cost-currency { padding: 5px 6px; font-size: 13px; color: var(--text3); border-right: 1px solid var(--border); background: var(--surface); }
.bcv2-cost-input { width: 110px; padding: 5px 8px; border: none; background: transparent; color: var(--text1); font-size: 13px; outline: none; }
.bcv2-cost-notes-wrap { margin-top: 2px; }
.bcv2-cost-notes-toggle { font-size: 11px; color: var(--text3); cursor: pointer; list-style: none; }
.bcv2-cost-notes-toggle::-webkit-details-marker { display: none; }
.bcv2-cost-notes { width: 100%; margin-top: 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text1); font-size: 12px; resize: vertical; box-sizing: border-box; }
.bcv2-costs-footer { display: flex; gap: 10px; align-items: center; padding-top: 4px; }
/* Cost ledger v2 — detailed cost lines (CostLinesSection.tsx, spec 2026-10-12). */
.bcv2-cl-section { margin: 16px 0 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.bcv2-cl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bcv2-cl-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--text1); }
.bcv2-cl-sub { margin: 4px 0 10px; font-size: 12px; color: var(--text3); }
.bcv2-cl-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.bcv2-cl-row { display: flex; gap: 16px; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.bcv2-cl-row.is-incomplete { border-color: var(--warning, #d97706); }
.bcv2-cl-row-main { flex: 1; min-width: 0; }
.bcv2-cl-row-title { font-size: 13px; color: var(--text1); }
.bcv2-cl-meta { color: var(--text3); font-size: 12px; }
.bcv2-cl-warn, .bcv2-cl-warn-text { color: var(--warning, #b45309); margin-right: 4px; }
.bcv2-cl-working { font-size: 12px; color: var(--text2); margin-top: 4px; overflow-wrap: anywhere; }
.bcv2-cl-actions { display: flex; gap: 6px; margin-top: 8px; }
.bcv2-cl-years { display: flex; flex-direction: column; gap: 2px; min-width: 120px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text1); }
.bcv2-cl-year { display: flex; justify-content: space-between; gap: 10px; }
.bcv2-cl-year span { color: var(--text3); }
.bcv2-cl-editor { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.bcv2-cl-field-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-size: 12px; color: var(--text2); }
.bcv2-cl-field-row label { display: inline-flex; align-items: center; gap: 6px; }
.bcv2-cl-field-row input:not([type=radio]), .bcv2-cl-field-row select { padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text1); font-size: 12px; min-width: 0; width: 120px; }
.bcv2-cl-field-row input.bcv2-cl-yr, .bcv2-cl-field-row input.bcv2-cl-pct { width: 64px; }
.bcv2-cl-field-row input.bcv2-cl-note { width: 200px; }
.bcv2-cl-label { font-weight: 600; color: var(--text2); font-size: 12px; }
.bcv2-cl-terms summary { cursor: pointer; font-size: 12px; color: var(--text2); }
.bcv2-cl-terms[open] summary { margin-bottom: 8px; }
.bcv2-cl-tiers { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bcv2-cl-tiers > button { align-self: flex-start; }
.bcv2-cl-field-row select.bcv2-cl-cat { width: 210px; }
.bcv2-cl-preview { padding: 8px 10px; border-radius: 4px; background: var(--bg); font-size: 12px; color: var(--text1); font-variant-numeric: tabular-nums; }
.bcv2-cl-preview .bcv2-cl-label { margin-right: 8px; }
.bcv2-cl-problems { margin: 0; padding-left: 18px; font-size: 12px; color: var(--warning, #b45309); }
/* TCO piece 2 — "Today — what they spend now" (CurrentStateSection.tsx / CurrentStateEditor.tsx, mockup 2026-10-13). */
.bcv2-cs-strips { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.bcv2-cs-strip-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text2); }
.bcv2-cs-strip-year { min-width: 48px; color: var(--text3); font-variant-numeric: tabular-nums; }
.bcv2-cs-strip { display: inline-flex; flex: 0 0 200px; height: 10px; border-radius: 3px; overflow: hidden; background: var(--bg); border: 1px solid var(--border); }
.bcv2-cs-seg { display: block; height: 100%; }
.bcv2-cs-seg--retires { background: var(--accent, #2563eb); }
.bcv2-cs-seg--levers { background: repeating-linear-gradient(45deg, var(--accent, #2563eb) 0 2px, transparent 2px 5px); }
.bcv2-cs-seg--continues { background: var(--surface); }
.bcv2-cs-strip-words { overflow-wrap: anywhere; }
.bcv2-cs-disposition { margin-top: 6px; font-size: 12px; color: var(--text1); }
.bcv2-cs-upside { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid var(--accent, #2563eb); border-radius: 10px; font-size: 11px; color: var(--accent, #2563eb); }
.bcv2-cs-legend { display: flex; gap: 14px; margin: 0 0 10px; font-size: 11px; color: var(--text3); }
.bcv2-cs-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.bcv2-cs-swatch { display: inline-block; width: 14px; height: 8px; border: 1px solid var(--border); border-radius: 2px; }
.bcv2-cs-panel { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); font-size: 12px; color: var(--text2); }
.bcv2-cs-panel-title { font-weight: 600; font-size: 13px; color: var(--text1); }
.bcv2-cs-choice { display: inline-flex; align-items: center; gap: 6px; }
.bcv2-cs-indent { display: flex; flex-direction: column; gap: 6px; margin-left: 22px; }
.bcv2-cs-note { margin: 0; font-size: 11px; color: var(--text3); }
.bcv2-cs-unsaved { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--warning, #b45309); }
.bcv2-cl-field-row select.bcv2-cs-yr { width: 56px; }
.bcv2-cl-field-row select.bcv2-cs-lever { width: 320px; }
.bcv2-cs-claimed { border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text1); }
.bcv2-cs-claimed th, .bcv2-cs-claimed td { padding: 2px 12px 2px 0; text-align: right; }
.bcv2-cs-claimed th:first-child, .bcv2-cs-claimed td:first-child { text-align: left; color: var(--text2); }
.bcv2-cs-claimed-total td { border-top: 1px solid var(--border); }
.bcv2-cs-claimed td.is-over { color: var(--warning, #b45309); font-weight: 600; }
.bcv2-cs-ok { font-size: 12px; color: var(--green, #15803d); }
.bcv2-cs-oldnew { margin: 4px 0 12px; display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
.bcv2-cs-oldnew-table th { font-weight: 600; color: var(--text1); }

/* ── Gate 4: lever library drawer ── */
.bcv2-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 100; display: flex; justify-content: flex-end; }
.bcv2-lever-drawer { width: 400px; max-width: 95vw; height: 100%; background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.22s ease; }
.bcv2-lever-drawer.open { transform: translateX(0); }
.bcv2-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.bcv2-drawer-title { font-size: 15px; font-weight: 500; color: var(--text); }
.bcv2-drawer-body { flex: 1; overflow-y: auto; padding: 16px; }

@media (max-width: 768px) {
  .bcv2-lever-table-head, .bcv2-lt-row-main { grid-template-columns: 1fr 100px 80px 60px; }
  .bcv2-lt-col-cat, .bcv2-lt-col-yr1, .bcv2-lt-col-yr2 { display: none; }
  .bcv2-lever-drawer { width: 100vw; }
  .bcv2-fin-bar-kpis { gap: 10px; }
  .bcv2-fin-kpi-value { font-size: 16px; }
}

/* (Batch 3) Local Vega advisory panel CSS removed — the panel was
   deleted from business-case-financials-v2.js and replaced by the
   global Vega rail. .bcv2-sensitivity-* helpers also removed; the
   sensitivity heatmap (Batch 4) will land in §13.1 result band. */

/* ── Small phone (≤480px) ── */
@media (max-width: 480px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  /* legacy grid responsive rule removed (Batch 5.5) — list-view primitive owns its own responsive layout */
  .topbar { padding: 0 12px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .bcv2-fin-bar-kpis { gap: 8px; }
  .bcv2-fin-kpi-value { font-size: 16px; }
}

/* ── Wide desktop (≥1440px) ── */
@media (min-width: 1440px) {
  /* legacy grid responsive rule removed (Batch 5.5) — list-view primitive owns its own responsive layout */
}

/* ── BC Save Indicator ─────────────────────────────── */
.bcv2-save-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}
.bcv2-save-bar .btn { min-width: 70px; }
.bcv2-save-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text3);
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}
.bcv2-save-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bcv2-save-dot.saved { background: var(--green); }
.bcv2-save-dot.dirty { background: var(--gold); }
.bcv2-save-dot.saving { background: var(--blue); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Stage 3: Realization Review ───────────────────── */
.bcv2-real-container { padding: 16px 0; }
.bcv2-real-loading { text-align: center; padding: 48px 0; color: var(--text3); }
.bcv2-real-empty { text-align: center; padding: 32px 0; color: var(--text3); font-size: 14px; }
/* Record a conversation on Review Actuals (2026-10-26). */
.bcv2-real-convo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

.bcv2-real-summary-header {
  display: flex; gap: 24px; padding: 16px; border-radius: 8px;
  background: var(--bg2); border: 1px solid var(--border); margin-bottom: 16px;
}
.bcv2-real-stat { display: flex; flex-direction: column; align-items: center; min-width: 100px; }
.bcv2-real-stat-value { font-size: 22px; font-weight: 500; color: var(--text1); }
.bcv2-real-stat-label { font-size: 12px; color: var(--text3); margin-top: 2px; }
.bcv2-real-favorable { color: #16a34a; }
.bcv2-real-unfavorable { color: #dc2626; }

.bcv2-real-post-save {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; margin-bottom: 16px;
}
.bcv2-real-post-save-title { font-weight: 500; font-size: 14px; }
.bcv2-real-post-save-stats { display: flex; gap: 12px; font-size: 13px; flex: 1; }

.bcv2-real-lever-card {
  border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; overflow: hidden;
}
.bcv2-real-lever-header {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer;
  background: var(--bg2); user-select: none;
}
.bcv2-real-lever-header:hover { background: var(--surface-dim); }
.bcv2-real-lever-title { flex: 1; display: flex; align-items: center; gap: 12px; }
.bcv2-real-lever-name { font-weight: 500; font-size: 14px; }
.bcv2-real-lever-progress { font-size: 12px; color: var(--text3); }
.bcv2-real-lever-bar { width: 80px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.bcv2-real-lever-bar-fill { height: 100%; background: var(--brand-primary); border-radius: 2px; transition: width .2s; }
.bcv2-real-lever-chevron { font-size: 10px; color: var(--text3); }

.bcv2-real-lever-body { padding: 0 16px 16px; }
.bcv2-real-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bcv2-real-table th { text-align: left; padding: 8px 6px; font-weight: 500; color: var(--text3); border-bottom: 1px solid var(--border); font-size: 11px; text-transform: none; letter-spacing: .5px; }
.bcv2-real-table td { padding: 6px; vertical-align: middle; }
.bcv2-real-row-pending { opacity: 1; }
.bcv2-real-row-reviewed { background: #fafafa; }

.bcv2-real-var-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.bcv2-real-assumed { color: var(--text3); }
.bcv2-real-na { color: var(--text3); }
.bcv2-real-variance { white-space: nowrap; font-weight: 500; }

.bcv2-real-input { width: 90px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; }
.bcv2-real-date { width: 120px; }
.bcv2-real-select { padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; }

.bcv2-real-note-row td { padding: 0 6px 8px; }
.bcv2-real-note { width: 100%; padding: 4px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; color: var(--text2); }

.bcv2-real-actions {
  display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); margin-top: 8px;
}
.bcv2-real-edit-count { font-size: 13px; color: var(--text3); }

/* ── Stage 3: Library Health (Vega panel) ──────────── */
.bcv2-library-health { padding: 8px 0; }
.bcv2-library-health-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text2); padding: 4px 0 8px; }
.bcv2-lh-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.bcv2-lh-item:last-child { border-bottom: none; }
.bcv2-lh-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bcv2-lh-lever-name { font-weight: 500; font-size: 13px; }
.bcv2-lh-var-key { font-size: 11px; color: var(--text3); background: var(--bg2); padding: 1px 6px; border-radius: 4px; }
.bcv2-lh-item-values { display: flex; gap: 12px; font-size: 12px; color: var(--text2); flex-wrap: wrap; margin-bottom: 6px; }
.bcv2-lh-item-actions { display: flex; gap: 6px; }
.bcv2-deep-btn { font-size: 11px; padding: 2px 8px; margin-left: auto; }

/* ── Stage 3: Signal badges ────────────────────────── */
.bcv2-signal-badge { display: inline-block; font-size: 9px; font-weight: 500; background: var(--brand-primary-tint); color: var(--brand-primary); border: 1px solid var(--brand-primary-tint); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.vg-signal-badge { display: inline-block; font-size: 11px; font-weight: 500; background: var(--brand-primary-tint); color: var(--brand-primary); border-radius: 4px; padding: 1px 8px; margin-left: 8px; }
.vg-signal-dot { display: inline-block; width: 6px; height: 6px; background: var(--brand-primary); border-radius: 50%; margin-right: 6px; flex-shrink: 0; }
.vg-evidence-list { margin-top: 8px; }
.vg-evidence-item { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 12px; border-bottom: 1px solid var(--border); }
.vg-evidence-item:last-child { border-bottom: none; }
.vg-evidence-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-evidence-type { font-size: 10px; color: var(--text3); background: var(--bg2); padding: 1px 6px; border-radius: 3px; }
.vg-evidence-cred-sm { font-size: 10px; color: var(--text3); }

/* ── Stage 3: Baseline drift ──────────────────────── */
.bcv2-real-drift-row td { padding: 0 6px 8px; }
.bcv2-real-drift { padding: 6px 10px; border-radius: 6px; background: #fefce8; border: 1px solid #fde68a; font-size: 12px; }
.bcv2-real-drift-warn { background: #fef2f2; border-color: #fecaca; }
.bcv2-real-drift-badge { font-weight: 500; margin-right: 8px; }
.bcv2-real-drift-summary { color: var(--text2); }
.bcv2-real-drift-detail { margin-top: 6px; }
.bcv2-real-drift-detail summary { cursor: pointer; font-size: 11px; color: var(--accent); }
.bcv2-real-drift-timeline { margin-top: 4px; }
.bcv2-real-drift-entry { display: flex; gap: 12px; padding: 2px 0; font-size: 11px; color: var(--text2); border-bottom: 1px solid var(--border); }
.bcv2-real-drift-entry:last-child { border-bottom: none; }

/* ── Stage 3 Session 8 (2026-05-09): per-lever Review Actuals card ─ */
/* Replaces the per-assumption table layout with a one-card-per-lever
 * surface. Many of the legacy .bcv2-real-{table,row-pending,
 * row-reviewed,assumed,variance,drift} rules above are kept in case
 * any backwards-compat rendering surfaces them; the new card uses
 * the rules below. */

.bcv2-real-lever-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
}
.bcv2-real-lever-card.expanded { border-color: var(--brand-primary); }

.bcv2-real-lever-header {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
}
.bcv2-real-lever-header:hover { background: var(--surface-dim); }

.bcv2-real-lever-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bcv2-real-lever-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--text1);
}

.bcv2-real-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--surface-dim);
  color: var(--text2);
}
.bcv2-real-status-pending        { background: #f3f4f6; color: #6b7280; }
.bcv2-real-status-in_progress    { background: #fef3c7; color: #92400e; }
.bcv2-real-status-fully_realized { background: #dcfce7; color: #166534; }
.bcv2-real-status-exceeded       { background: #dbeafe; color: #1e40af; }
.bcv2-real-status-not_realized   { background: #fee2e2; color: #991b1b; }

.bcv2-real-revised-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text3);
  border: 1px dashed var(--border);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.bcv2-real-lever-figures {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.bcv2-real-fig {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 70px;
}
.bcv2-real-fig-label {
  font-size: 10px;
  color: var(--text3);
  text-transform: none;
  letter-spacing: 0.02em;
}
.bcv2-real-fig-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text1);
}

.bcv2-real-lever-trail {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bcv2-real-spark {
  width: 140px;
  height: 32px;
  display: block;
}
.bcv2-real-spark-empty {
  display: inline-block;
  width: 140px;
  height: 32px;
}
.bcv2-real-spark-assumed {
  stroke: var(--text-tertiary, #9ca3af);
  stroke-width: 1;
  stroke-dasharray: 2 2;
  fill: none;
}
.bcv2-real-spark-realized {
  stroke: var(--brand-primary, #2D5A4C);
  stroke-width: 1.5;
  fill: none;
}
.bcv2-real-spark-dot {
  fill: var(--brand-primary, #2D5A4C);
}
.bcv2-real-lever-snap-count {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
}

.bcv2-real-lever-body {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
}
.bcv2-real-lever-actions-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.bcv2-real-section-h {
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  margin: 12px 0 8px;
  letter-spacing: 0.02em;
}

.bcv2-real-empty-snap {
  font-size: 13px;
  color: var(--text3);
  padding: 12px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 6px;
}

.bcv2-real-snap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bcv2-real-snap-row {
  border-left: 2px solid var(--border);
  padding: 6px 12px;
  font-size: 13px;
}
.bcv2-real-snap-row-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.bcv2-real-snap-date {
  font-weight: 500;
  color: var(--text1);
  min-width: 90px;
}
.bcv2-real-snap-realized {
  font-weight: 500;
  color: var(--text1);
}
.bcv2-real-snap-variance { font-weight: 500; }
.bcv2-real-snap-row-meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}
.bcv2-real-snap-explain {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text2);
  font-style: italic;
}
.bcv2-real-snap-created { color: var(--text3); }

.bcv2-real-revisions {
  background: var(--surface-raised);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}
.bcv2-real-revisions summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text2);
}
.bcv2-real-revision-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.bcv2-real-revision-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  border-top: 1px solid var(--border);
}
.bcv2-real-revision-list li:first-child { border-top: none; }
.bcv2-real-revision-date { font-weight: 500; min-width: 80px; }
.bcv2-real-revision-shift { color: var(--text2); }
.bcv2-real-revision-reason { color: var(--text3); }
.bcv2-real-revision-note { color: var(--text2); font-style: italic; }

.bcv2-real-add-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--surface-raised);
  border-radius: 6px;
}
.bcv2-real-add-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.bcv2-real-add-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}
.bcv2-real-add-field span {
  color: var(--text3);
  font-weight: 500;
}
.bcv2-real-add-field input,
.bcv2-real-add-field select {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  font-size: 13px;
}
.bcv2-real-add-explain { width: 100%; }
.bcv2-real-add-actions {
  display: flex;
  justify-content: flex-end;
}

.bcv2-real-adjust-form { display: flex; flex-direction: column; gap: 12px; }
.bcv2-real-adjust-intro {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.4;
  margin: 0;
}

/* ── Stage 3: Value Graph realization summary ──────── */
.vg-realization-summary { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.vg-real-title { font-weight: 500; font-size: 13px; margin-bottom: 6px; color: var(--text1); }

/* ── Stage 3: Fin bar reviewed badge ──────────────── */
.bcv2-fin-bar-reviewed { font-size: 11px; color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 4px; padding: 2px 8px; }

/* ── Materiality panel (unit 5 — docs/specs/2026-09-12-materiality-panel.md) ──
   The BC modeler sidebar's "Against the customer's filings" block: what this
   deal's claims land on, and what share of the customer's own filed line it is
   claiming. Every string comes from lib/materialityRead.ts.

   Sits inside .bcv2-financial-sidebar, which is a plain block column (not a
   grid), so no `grid-column: 1 / -1` is needed here — that idiom is load-bearing
   only under `display: contents` (KI #29). */
.bcv2-fin-materiality {
  border-top: 1px solid #e5e7eb;
  margin-top: 14px;
  padding-top: 12px;
}
.bcv2-fin-mat-empty,
.bcv2-fin-mat-unresolved {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
  padding: 4px 0;
}
.bcv2-fin-mat-line {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
.bcv2-fin-mat-share {
  font-size: 12px;
  color: #111827;
  line-height: 1.45;
  /* The share sentence is long by design ("If these claims land where
     proposed: …"). It WRAPS rather than truncating: a clipped denominator is a
     number the practitioner cannot defend, which is the failure this panel
     exists to prevent. */
  overflow-wrap: anywhere;
}
.bcv2-fin-mat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}
.bcv2-fin-mat-verdict {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
/* D5's bands. The colours carry no meaning the text does not also carry —
   the verdict word is always printed beside them. */
.bcv2-fin-mat-ordinary { background: #f3f4f6; color: #4b5563; }
.bcv2-fin-mat-material { background: #fef3c7; color: #92400e; }
.bcv2-fin-mat-implausible { background: #fee2e2; color: #991b1b; }
.bcv2-fin-mat-confirmed,
.bcv2-fin-mat-rung,
.bcv2-fin-mat-vintage {
  font-size: 11px;
  color: #6b7280;
}
.bcv2-fin-mat-vintage { margin-top: 2px; }
.bcv2-fin-mat-claims { margin-top: 8px; }
.bcv2-fin-mat-claim {
  font-size: 11px;
  color: #4b5563;
  line-height: 1.4;
  padding: 2px 0 2px 8px;
  border-left: 2px solid #e5e7eb;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}
.bcv2-fin-mat-kind-definite { border-left-color: #059669; }
.bcv2-fin-mat-kind-none { border-left-color: #d1d5db; }
.bcv2-fin-mat-budget {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
  font-size: 11px;
  color: #6b7280;
}
.bcv2-fin-mat-budget-label { font-weight: 600; margin-right: 6px; }
.bcv2-fin-mat-budget-owners { margin-top: 2px; color: #9ca3af; }

/* Unit 6 — one block per budget owner this deal draws on.
   docs/specs/2026-09-12-practitioner-budget-figure.md */
.bcv2-fin-mat-budget-line {
  margin-top: 6px;
  padding: 6px 0 0;
  border-top: 1px solid #f3f4f6;
}
.bcv2-fin-mat-budget-share { color: #374151; line-height: 1.4; }
/* C1 — THE one flag. ⛔ Deliberately NOT one of the .bcv2-fin-mat-ordinary /
   -material / -implausible band colours: this is not a band, and giving it the
   band palette would invite a reader to rank it against them. */
.bcv2-fin-mat-budget-exceeds {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #fef3c7;
  color: #92400e;
}
.bcv2-fin-mat-budget-add {
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 11px;
  color: #2563eb;
  background: none;
  border: 1px solid #dbeafe;
  border-radius: 4px;
  cursor: pointer;
}
.bcv2-fin-mat-budget-add:hover { background: #eff6ff; }
.bcv2-fin-mat-budget-form { margin-top: 6px; }
.bcv2-fin-mat-budget-form input,
.bcv2-fin-mat-budget-form select {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  padding: 4px 6px;
  font-size: 11px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  /* The sidebar is 320px; a field that sets its own intrinsic width overflows
     the column (the same class of defect that put an 11px label outside its
     own cell in KI #31). */
  box-sizing: border-box;
  max-width: 100%;
}
.bcv2-fin-mat-budget-actions { display: flex; gap: 6px; }
.bcv2-fin-mat-budget-actions button {
  padding: 3px 10px;
  font-size: 11px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.bcv2-fin-mat-budget-error { margin-top: 4px; color: #991b1b; line-height: 1.4; }
/* `view === null` is NOT LOADED YET, never "nothing to say" — an empty panel in
   that window would read as "this deal claims nothing against its filings". */
.bcv2-fin-mat-loading {
  font-size: 12px;
  color: #9ca3af;
  padding: 4px 0;
  font-style: italic;
}

/* ── Customer context intake (2026-10-14, BcContextIntakePanel.tsx) ── */
.bcv2-context-action { display: inline-flex; align-items: center; margin-right: 8px; }
.bcv2-context-body { display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 260px); overflow-y: auto; }
.bcv2-context-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bcv2-context-field { display: flex; flex-direction: column; gap: 4px; font: 500 12px/1.3 var(--font-sans); color: var(--text-secondary); flex: 1 1 180px; }
.bcv2-context-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.bcv2-context-file .bcv2-context-hint { margin: 0; }
.bcv2-context-text { width: 100%; min-height: 220px; resize: vertical; font: 400 13px/1.5 var(--font-sans); }
.bcv2-context-hint { font: 400 12px/1.5 var(--font-sans); color: var(--text-secondary); margin: 6px 0 0; }
.bcv2-context-group { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.bcv2-context-group-title { font: 600 12px/1.3 var(--font-sans); color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.04em; }
.bcv2-context-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); cursor: pointer; }
.bcv2-context-item input { margin-top: 3px; flex-shrink: 0; }
.bcv2-context-item-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bcv2-context-item-head { font: 400 14px/1.4 var(--font-sans); color: var(--text-primary); }
.bcv2-context-was { color: var(--text-tertiary); font-size: 12px; }
.bcv2-context-quote { font: italic 400 13px/1.45 var(--font-sans); color: var(--text-secondary); overflow-wrap: anywhere; }

/* ── Record by conversation (ADR 0026) — app/_workspace/islands/ConversationIntakePanel.tsx ── */
.bcv2-convo-mode { display: inline-flex; gap: 6px; margin-bottom: 12px; }
.bcv2-convo-item[data-include="0"] { opacity: 0.55; }
.bcv2-convo-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.bcv2-convo-chip { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border-subtle); font: 500 11px/1.6 var(--font-sans); color: var(--text-secondary); background: var(--surface-panel, transparent); }
.bcv2-convo-chip-muted { color: var(--text-tertiary); }
.bcv2-convo-fit { display: block; margin-top: 2px; }
.bcv2-convo-nofit { margin-top: 6px; }
.bcv2-convo-speaker-customer { border-color: var(--border-strong); color: var(--text-primary); }
.bcv2-convo-speaker-unlabelled { border-style: dashed; }
.bcv2-convo-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 400 12px/1.4 var(--font-sans); color: var(--text-secondary); }
.bcv2-convo-inline .vs-input { width: auto; min-width: 150px; }
.bcv2-convo-edit { width: 100%; font: 400 13px/1.45 var(--font-sans); resize: vertical; }
.bcv2-convo-item .bcv2-context-item-main { flex: 1 1 auto; }

/* Information we need — deal Overview (spec 2026-10-26-information-we-need §D7). */
.vs-info-bucket { margin: 10px 0 14px; }
.vs-info-bucket-head { font: 600 12px/1.5 var(--font-sans); color: var(--text-primary, var(--text1)); margin-bottom: 4px; }
.vs-info-item { display: grid; grid-template-columns: minmax(140px, 1.1fr) 2fr 132px; gap: 10px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--border-subtle); font-size: 12px; }
/* A FIXED action column: each row is its own grid, so an `auto` column sized to its own button
   ("Change" vs "Set the date") shifted that row's text out of line (screenshot, 2026-10-26). */
.vs-info-item > .btn { justify-self: end; }
.vs-info-note { font-size: 12px; line-height: 1.5; color: var(--text-secondary); margin: 6px 0; }
.vs-info-item[data-state="open"] .vs-info-item-label { color: var(--text-primary, var(--text1)); }
.vs-info-item[data-state="known"] .vs-info-item-label { color: var(--text-secondary); }
.vs-info-item-detail { color: var(--text-secondary); }
.vs-info-entry { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; font-size: 12px; }
.vs-info-entry label { display: inline-flex; gap: 6px; align-items: center; }
.vs-info-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* People rows (spec 2026-10-27-people-bucket §D7): Set/Change + Undo share the fixed action
   column; the inline editor and any error span the whole row. The budget holder, when not
   identified, is the bucket's one REQUIRED item (owner ruling 2026-10-27). */
.vs-info-item-actions { justify-self: end; display: inline-flex; gap: 6px; }
/* Flow S4-4: a framing is prose — full width, then its line of facts and buttons beneath (S4 smoke 2026-11-25:
   the three-column info grid squeezed it into a narrow column beside an empty gap). */
.vs-framing-row { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 0; }
.vs-framing-row .vs-info-item-label { font-size: 13px; line-height: 1.45; }
.vs-framing-row .vs-info-item-detail { font-size: 12px; }
.vs-framing-row-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.vs-framing-row-foot .vs-info-actions { display: inline-flex; gap: 6px; margin: 0; }
.vs-framing-edit { width: 100%; box-sizing: border-box; }
/* Flow S3 prep: each line is a sentence — one full-width column, the answer beneath the pushback
   (S4 smoke 2026-11-25: weak spots wrapped in the grid's first column beside two empty ones). */
[data-deal-prep] .vs-info-item { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0; }
[data-deal-prep] .vs-info-item-label { font-size: 13px; line-height: 1.45; }
/* Flow S5: the copy-out block's text, as it will paste (spec 2026-11-25-flow-s5-copy-out). */
.vs-copy-out-text { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13px; line-height: 1.5; color: var(--text-primary); background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 10px 12px; margin: 8px 0; max-height: 420px; overflow-y: auto; }
.vs-info-item > .vs-info-entry, .vs-info-item > .vs-info-note { grid-column: 1 / -1; }
.vs-info-item[data-required] .vs-info-item-label { color: var(--warning); font-weight: 600; }
.bcv2-convo-date, .bcv2-convo-person { display: flex; align-items: flex-start; gap: 10px; }
/* The text takes the row so Undo sits at the right edge whatever the sentence's length — a short
   one ("Who signs: CFO.") left Undo mid-row (screenshot, 2026-10-27). */
.bcv2-convo-date .bcv2-context-item-main, .bcv2-convo-person .bcv2-context-item-main { flex: 1 1 auto; }
/* Flow S6 — how far the buyer went with a claim (app/_workspace/components/ClaimStepChip.tsx). A separate
   marker beside the basis label, never a fifth label. Tokens only. */
.vs-claim-step { position: relative; display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.vs-claim-step-compact { flex: 0 1 auto; min-width: 0; }
.vs-claim-step-compact .vs-claim-step-chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vs-claim-step-compact .vs-claim-step-challenged { flex: 0 0 auto; }
.vs-claim-step-chip { font: 500 10px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--text-tertiary); background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: 3px; padding: 2px 5px; cursor: pointer; white-space: nowrap; }
.vs-claim-step-chip[data-step="2"], .vs-claim-step-chip[data-step="3"] { color: var(--brand-primary); border-color: var(--brand-primary-fade); }
.vs-claim-step-chip[data-step="4"], .vs-claim-step-chip[data-step="5"] { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.vs-claim-step-words { color: var(--text-tertiary); }
.vs-claim-step-challenged { font: 500 10px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--warning); border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); border-radius: 3px; padding: 2px 5px; white-space: nowrap; }
.vs-claim-step-pop { position: fixed; z-index: 1000; display: flex; flex-direction: column; gap: 6px; width: 300px; max-width: 80vw; padding: 10px 12px; background: var(--surface-panel); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 6px 18px color-mix(in srgb, var(--text-primary) 14%, transparent); font: 400 12px/1.45 var(--font-sans); color: var(--text-primary); white-space: normal; text-align: left; }
.vs-claim-step-pop-head { font-weight: 600; }
.vs-claim-step-pop-line { display: block; color: var(--text-secondary); }
.vs-claim-step-pop-actions { display: flex; gap: 6px; }
