/* ==========================================================================
   StockProof V2 — "institutional research terminal"

   Loaded ONLY by screener/templates/screener/base_v2.html, AFTER app.css.
   Every page that still extends base.html never requests this file at all,
   which is the first half of the legacy-isolation guarantee.

   THE FOUR RULES THIS FILE LIVES UNDER
   (docs/ui_design_system.md is the full statement; they are restated here
   because this is the file a future edit will actually be typing in.)

   1. NO `:root` BLOCK, EVER.
      app.css's `:root` is a contract with three NON-CSS consumers:
      charts.js reads --ink/--verified/--slate/--risk/--rule/--paper/
      --surface and two -rgb triplets out of the computed root style at
      script-load time; report.css declares no colour of its own and is
      asserted to contain no hex literal; and 33 inline `style=` attributes
      across 16 legacy templates reference the --sN spacing scale. A V2
      `:root` block would reach every one of those, on every page, and a
      wrong chart colour fails no test. So every token below is declared on
      `.sp-v2` — the class base_v2.html puts on <body> — and is therefore
      unreachable from a legacy page by construction, not by convention.

   2. EVERY SELECTOR IS PREFIXED `sp-`.
      app.css defines 521 classes across families already in use (.ws-,
      .ai-, .calc-, .pf-, .trace-, .learn-, .nav-group, .section-nav, ...).
      `sp-` was verified unused in app.css, report.css and every template
      before this file was written. Reusing ANY legacy class name here —
      `.nav-group` is the trap, it is styled twice in app.css including
      inside the 860px block — would make a V2 page inherit legacy layout.

   3. NO ORDERING PROPERTY. NOT ONE.
      No `order`, `grid-row`, `grid-column`, `grid-auto-flow`, no
      `flex-direction: *-reverse`, no `flex-flow: ... reverse`.
      ~120 assertions across ~20 test files prove a mandatory disclosure
      renders BEFORE the figures it qualifies by comparing `html.index()`
      positions. That guarantee is about SOURCE order, so any CSS that can
      decouple visual order from source order silently voids it while every
      content assertion still passes. The Workspace block and report.css
      already carry this ban as a test; test_v2_foundation.py extends it
      here. DOM order is reading order, everywhere, with no exceptions.

   4. NOTHING HERE MAY RESTYLE A BARE ELEMENT.
      app.css's global footprint is 23 selectors (`*`, `body`, `main`, `a`,
      `h1`/`h2`/`h3`, `:focus-visible`, the form-control group). Several of
      those DO reach into a V2 page — `main { max-width: var(--maxw) }`
      would cap the workspace, `body { background: var(--paper) }` would
      paint it light. They are overridden below by SPECIFICITY from inside
      `.sp-v2` (a class beats an element, always, across files and
      regardless of source order), never by `!important` and never by
      editing app.css.

   Type is IBM Plex Sans + IBM Plex Mono — both already vendored and
   @font-face'd by app.css, so V2 adds no font request and no remote
   dependency. Archivo is deliberately not used here: it is the legacy
   "working paper" display voice, and V2 is a different one.
   ========================================================================== */


/* ==========================================================================
   1. TOKENS — on `.sp-v2`, never on :root
   ========================================================================== */

/* Dark is the base, because dark is where this design lives. The two
   blocks after it mirror the light palette back in, so the theme toggle
   in the shell stays honest: a reader who picks Light gets a designed
   light page, not a dark page with the toggle doing nothing.

   Three theme states are handled, exactly as app.css handles them:
     data-theme="dark"   -> base block below
     data-theme="light"  -> explicit block (3)
     no attribute        -> prefers-color-scheme decides, block (2)
   Resolved side-by-side against app.css, the two agree in all four
   combinations, so app.css's own `color-scheme` is always correct for a
   V2 page and is deliberately not re-declared here. */
.sp-v2 {
  /* Locked MarketDeck production palette. These names mirror the shared
     suite contract; the existing --sp-* names below remain as compatibility
     aliases so page-level V2 modules do not need a broad rewrite. */
  --md-bg-deep: #070b10;
  --md-bg: #0a1017;
  --md-sidebar: #031220;
  --md-topbar: #050d18;
  --md-surface-1: #0d131b;
  --md-surface-2: #121a24;
  --md-surface-3: #182332;
  --md-border-subtle: #1b2734;
  --md-border: #293846;
  --md-border-strong: #3a4d60;
  --md-border-active: #176fd1;
  --md-text: #f4f7fb;
  --md-text-secondary: #b4bfcd;
  --md-text-muted: #7f8d9e;
  --md-text-faint: #617185;
  --md-primary: #1392fd;
  --md-primary-hover: #39a5ff;
  --md-primary-active: #0877e6;
  --md-primary-soft: rgba(19,146,253,.09);
  --md-primary-strong-soft: rgba(19,146,253,.15);
  --md-positive: #22c55e;
  --md-negative: #ef4444;
  --md-warning: #f59e0b;
  --md-info: #22d3ee;

  /* surfaces */
  --sp-canvas: var(--md-bg-deep);
  --sp-sidebar: var(--md-sidebar);
  --sp-topbar-surface: var(--md-topbar);
  --sp-surface: var(--md-surface-1);
  --sp-raised: var(--md-surface-2);
  --sp-hover: var(--md-surface-3);

  /* borders */
  --sp-line: var(--md-border-subtle);
  --sp-line-mid: var(--md-border);
  --sp-line-strong: var(--md-border-strong);

  /* text */
  --sp-text: var(--md-text);
  --sp-text-2: var(--md-text-secondary);
  --sp-text-3: var(--md-text-muted);
  --sp-link: #eef4fb;
  --sp-link-muted: #d5deea;
  --sp-on-brand: #ffffff;

  /* brand — one accent, spent sparingly */
  --sp-brand: var(--md-primary);
  --sp-brand-hi: var(--md-primary-hover);
  --sp-brand-active: var(--md-primary-active);
  --sp-brand-tint: var(--md-primary-soft);
  --sp-brand-line: rgba(19, 146, 253, 0.58);

  /* semantic status, separate from the accent */
  --sp-pos: var(--md-positive);
  --sp-neg: var(--md-negative);
  --sp-warn: var(--md-warning);
  --sp-warn-tint: rgba(245, 158, 11, 0.12);

  /* Hero photograph. These do NOT flip with the theme, and that is the
     point: the image is a dark mountain in both themes, so the scrim over
     it and the text on it stay light-on-dark either way. Only the LEFT
     fade is theme-aware, because it dissolves the photo into the hero
     panel and therefore has to match whatever colour that panel is. */
  --sp-photo-base: #030911;
  --sp-photo-scrim: rgba(3, 9, 17, 0.74);
  --sp-photo-ink: #f4f7fb;
  /* The colour the feather starts from at the image's inner edge. In dark
     it is the panel itself, so the join disappears; the light mirror
     overrides it. */
  --sp-photo-edge: var(--sp-surface);
  --sp-photo-filter: saturate(1.12) brightness(1.78) contrast(1.04);

  /* Icon accents. A small controlled multi-hue set used ONLY for icon
     glyphs and their tinted containers — never for a large surface, never
     for text, never as a second brand colour. They exist so five featured
     screens read as five different kinds of analysis at a glance. */
  --sp-ic-teal: #20C7C9;      --sp-ic-teal-tint: rgba(32, 199, 201, 0.13);
  --sp-ic-amber: #E4AA4F;     --sp-ic-amber-tint: rgba(228, 170, 79, 0.15);
  --sp-ic-blue: #4C93E0;      --sp-ic-blue-tint: rgba(76, 147, 224, 0.15);
  --sp-ic-violet: #9C87F5;    --sp-ic-violet-tint: rgba(156, 135, 245, 0.15);
  --sp-ic-coral: #F0685C;     --sp-ic-coral-tint: rgba(240, 104, 92, 0.15);
  --sp-ic-cyan: #4ECDE0;      --sp-ic-cyan-tint: rgba(78, 205, 224, 0.15);

  /* radii */
  --sp-r-sm: 6px;
  --sp-r: 8px;
  --sp-r-lg: 12px;
  --sp-r-pill: 999px;

  /* spacing — V2's own scale, independent of app.css's --sN so that a
     future app.css edit cannot silently reflow a V2 page */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-9: 48px; --sp-10: 64px;

  /* type */
  --sp-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sp-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --sp-t-hero: clamp(30px, 1.4rem + 1.5vw, 40px);
  --sp-t-h2: 19px;
  --sp-t-h3: 15px;
  --sp-t-body: 14.5px;
  --sp-t-meta: 12.5px;
  --sp-t-micro: 11px;

  /* layout */
  --sp-rail: 188px;
  --sp-topbar: 48px;
  --sp-workspace-max: 2400px;

  /* elevation, used sparingly */
  --sp-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
  --sp-hairline: rgba(255, 255, 255, 0.05);

  --sp-fast: 120ms ease;
  --sp-base: 150ms ease;
}

/* (2) No explicit choice + the OS asks for light. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .sp-v2 {
    --sp-canvas: #F2F6FB;
    --sp-sidebar: #FFFFFF;
    --sp-topbar-surface: #FFFFFF;
    --sp-surface: #FFFFFF;
    --sp-raised: #F5F9FE;
    --sp-hover: #E9F3FE;
    /* THE MEDIA PANEL DOES NOT FLIP WITH THE THEME. A light-themed
       mountain is a bleached mountain; the photograph is a dark object in
       both themes, and the content column beside it is what changes. Only
       two things differ here: the feather starts from this theme's panel
       colour, and the filter is a touch firmer so the picture holds
       together against a white surround. */
    --sp-photo-edge: #001020;
    --sp-photo-filter: saturate(1.12) brightness(1.16) contrast(1.08);

    --sp-line: #DCE8F5;
    --sp-line-mid: #B9CDE2;
    --sp-line-strong: #176FD1;

    --sp-text: #10243A;
    --sp-text-2: #405A73;
    /* Measured against the white card on the light canvas, not eyeballed:
       --sp-text-3 at the old #6E7F84 scored 4.17:1, under the 4.5 AA floor
       for small text, and every card description on this page is 11px. The
       hairline at 0.09 alpha scored 1.21:1 against the card it outlines and
       1.10:1 against the canvas behind it, so a white card on a near-white
       ground had effectively no edge. #63747A is 4.87:1 and 0.18 alpha is
       1.47:1 -- a visible hairline, still restrained. Dark is unchanged; it
       never had either problem. */
    --sp-text-3: #5A7088;
    --sp-on-brand: #FFFFFF;

    --sp-brand: #0877E6;
    --sp-brand-hi: #0566C7;
    --sp-brand-tint: rgba(19, 146, 253, 0.10);
    --sp-brand-line: rgba(8, 119, 230, 0.38);

    --sp-pos: #0F7A52;
    --sp-neg: #C6303F;
    --sp-warn: #9E6B18;
    --sp-warn-tint: rgba(158, 107, 24, 0.10);

    /* --sp-photo-* are deliberately NOT redefined: the hero photograph is
       the same dark image in both themes, so its scrim and its caption
       stay light-on-dark. Only the left fade follows the panel, and it
       reads --sp-surface directly. */
    --sp-ic-teal: #0C8E90;      --sp-ic-teal-tint: rgba(12, 142, 144, 0.11);
    --sp-ic-amber: #9E6B18;     --sp-ic-amber-tint: rgba(158, 107, 24, 0.12);
    --sp-ic-blue: #2C6BB0;      --sp-ic-blue-tint: rgba(44, 107, 176, 0.12);
    --sp-ic-violet: #6A51C8;    --sp-ic-violet-tint: rgba(106, 81, 200, 0.12);
    --sp-ic-coral: #C6453A;     --sp-ic-coral-tint: rgba(198, 69, 58, 0.12);
    --sp-ic-cyan: #10748A;      --sp-ic-cyan-tint: rgba(16, 116, 138, 0.12);

    --sp-shadow: 0 4px 16px rgba(10, 20, 22, 0.10);
    --sp-hairline: rgba(10, 20, 22, 0.04);
  }
}

/* (3) The reader chose Light explicitly — wins over a dark OS. */
:root[data-theme="light"] .sp-v2 {
  --sp-canvas: #F2F6FB;
  --sp-sidebar: #FFFFFF;
  --sp-topbar-surface: #FFFFFF;
  --sp-surface: #FFFFFF;
  --sp-raised: #F5F9FE;
  --sp-hover: #E9F3FE;
  /* THE MEDIA PANEL DOES NOT FLIP WITH THE THEME. A light-themed
     mountain is a bleached mountain; the photograph is a dark object in
     both themes, and the content column beside it is what changes. Only
     two things differ here: the feather starts from this theme's panel
     colour, and the filter is a touch firmer so the picture holds
     together against a white surround. */
  --sp-photo-edge: #001020;
  --sp-photo-filter: saturate(1.12) brightness(1.16) contrast(1.08);

  --sp-line: #DCE8F5;
  --sp-line-mid: #B9CDE2;
  --sp-line-strong: #176FD1;

  --sp-text: #10243A;
  --sp-text-2: #405A73;
  /* Measured against the white card on the light canvas, not eyeballed:
     --sp-text-3 at the old #6E7F84 scored 4.17:1, under the 4.5 AA floor
     for small text, and every card description on this page is 11px. The
     hairline at 0.09 alpha scored 1.21:1 against the card it outlines and
     1.10:1 against the canvas behind it, so a white card on a near-white
     ground had effectively no edge. #63747A is 4.87:1 and 0.18 alpha is
     1.47:1 -- a visible hairline, still restrained. Dark is unchanged; it
     never had either problem. */
  --sp-text-3: #5A7088;
  --sp-on-brand: #FFFFFF;

  --sp-brand: #0877E6;
  --sp-brand-hi: #0566C7;
  --sp-brand-tint: rgba(19, 146, 253, 0.10);
  --sp-brand-line: rgba(8, 119, 230, 0.38);

  --sp-pos: #0F7A52;
  --sp-neg: #C6303F;
  --sp-warn: #9E6B18;
  --sp-warn-tint: rgba(158, 107, 24, 0.10);

  --sp-ic-teal: #0C8E90;      --sp-ic-teal-tint: rgba(12, 142, 144, 0.11);
  --sp-ic-amber: #9E6B18;     --sp-ic-amber-tint: rgba(158, 107, 24, 0.12);
  --sp-ic-blue: #2C6BB0;      --sp-ic-blue-tint: rgba(44, 107, 176, 0.12);
  --sp-ic-violet: #6A51C8;    --sp-ic-violet-tint: rgba(106, 81, 200, 0.12);
  --sp-ic-coral: #C6453A;     --sp-ic-coral-tint: rgba(198, 69, 58, 0.12);
  --sp-ic-cyan: #10748A;      --sp-ic-cyan-tint: rgba(16, 116, 138, 0.12);

  --sp-shadow: 0 4px 16px rgba(10, 20, 22, 0.10);
  --sp-hairline: rgba(10, 20, 22, 0.04);
}

/* StockProof V2 is now intentionally dark-only. The cookie-backed theme
   endpoint remains untouched for legacy pages, but every V2 surface resolves
   to the same calm graphite workspace even when an older Light preference is
   present. This keeps routing and preference semantics intact while removing
   the theme control from the product shell. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .sp-v2 {
    color-scheme: dark;
    --sp-canvas: var(--md-bg-deep);
    --sp-sidebar: var(--md-sidebar);
    --sp-topbar-surface: var(--md-topbar);
    --sp-surface: var(--md-surface-1);
    --sp-raised: var(--md-surface-2);
    --sp-hover: var(--md-surface-3);
    --sp-photo-edge: var(--sp-surface);
    --sp-photo-filter: saturate(1.12) brightness(1.78) contrast(1.04);
    --sp-line: var(--md-border-subtle);
    --sp-line-mid: var(--md-border);
    --sp-line-strong: var(--md-border-strong);
    --sp-text: var(--md-text);
    --sp-text-2: var(--md-text-secondary);
    --sp-text-3: var(--md-text-muted);
    --sp-on-brand: #FFFFFF;
    --sp-brand: var(--md-primary);
    --sp-brand-hi: var(--md-primary-hover);
    --sp-brand-tint: var(--md-primary-soft);
    --sp-brand-line: rgba(19, 146, 253, 0.58);
    --sp-pos: var(--md-positive);
    --sp-neg: var(--md-negative);
    --sp-warn: var(--md-warning);
    --sp-warn-tint: rgba(245, 158, 11, 0.12);
    --sp-ic-teal: #20C7C9; --sp-ic-teal-tint: rgba(32, 199, 201, 0.13);
    --sp-ic-amber: #E4AA4F; --sp-ic-amber-tint: rgba(228, 170, 79, 0.15);
    --sp-ic-blue: #4C93E0; --sp-ic-blue-tint: rgba(76, 147, 224, 0.15);
    --sp-ic-violet: #9C87F5; --sp-ic-violet-tint: rgba(156, 135, 245, 0.15);
    --sp-ic-coral: #F0685C; --sp-ic-coral-tint: rgba(240, 104, 92, 0.15);
    --sp-ic-cyan: #4ECDE0; --sp-ic-cyan-tint: rgba(78, 205, 224, 0.15);
    --sp-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
    --sp-hairline: rgba(255, 255, 255, 0.05);
  }
}

:root[data-theme="light"] .sp-v2 {
  color-scheme: dark;
  --sp-canvas: var(--md-bg-deep);
  --sp-sidebar: var(--md-sidebar);
  --sp-topbar-surface: var(--md-topbar);
  --sp-surface: var(--md-surface-1);
  --sp-raised: var(--md-surface-2);
  --sp-hover: var(--md-surface-3);
  --sp-photo-edge: var(--sp-surface);
  --sp-photo-filter: saturate(1.12) brightness(1.78) contrast(1.04);
  --sp-line: var(--md-border-subtle);
  --sp-line-mid: var(--md-border);
  --sp-line-strong: var(--md-border-strong);
  --sp-text: var(--md-text);
  --sp-text-2: var(--md-text-secondary);
  --sp-text-3: var(--md-text-muted);
  --sp-on-brand: #FFFFFF;
  --sp-brand: var(--md-primary);
  --sp-brand-hi: var(--md-primary-hover);
  --sp-brand-tint: var(--md-primary-soft);
  --sp-brand-line: rgba(19, 146, 253, 0.58);
  --sp-pos: var(--md-positive);
  --sp-neg: var(--md-negative);
  --sp-warn: var(--md-warning);
  --sp-warn-tint: rgba(245, 158, 11, 0.12);
  --sp-ic-teal: #20C7C9; --sp-ic-teal-tint: rgba(32, 199, 201, 0.13);
  --sp-ic-amber: #E4AA4F; --sp-ic-amber-tint: rgba(228, 170, 79, 0.15);
  --sp-ic-blue: #4C93E0; --sp-ic-blue-tint: rgba(76, 147, 224, 0.15);
  --sp-ic-violet: #9C87F5; --sp-ic-violet-tint: rgba(156, 135, 245, 0.15);
  --sp-ic-coral: #F0685C; --sp-ic-coral-tint: rgba(240, 104, 92, 0.15);
  --sp-ic-cyan: #4ECDE0; --sp-ic-cyan-tint: rgba(78, 205, 224, 0.15);
  --sp-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
  --sp-hairline: rgba(255, 255, 255, 0.05);
}


/* ==========================================================================
   2. GROUND — overriding app.css's global element rules by specificity
   ========================================================================== */

/* app.css: `body { background: var(--paper); color: var(--ink); ... }`
   at specificity (0,0,1). This is (0,1,0) and wins on every V2 page while
   being unreachable on every legacy one. */
.sp-v2 {
  background: var(--sp-canvas);
  color: var(--sp-text);
  font-family: var(--sp-font);
  font-size: var(--sp-t-body);
  line-height: 1.5;
}

/* app.css: `a { color: var(--verified-ink) }` (0,0,1) — overridden at
   (0,1,1). Underlines are removed only for the shell's own controls,
   never for prose links. */
.sp-v2 a { color: var(--sp-link); text-underline-offset: 2px; }
.sp-v2 a:hover { color: var(--sp-text); }

/* app.css: `h1, h2, h3 { font-family: Archivo; font-weight: 800 }` and
   `h2 { text-transform: uppercase }` — both would fight the V2 voice. */
.sp-v2 h1,
.sp-v2 h2,
.sp-v2 h3 {
  font-family: var(--sp-font);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--sp-text);
  margin: 0;
}

/* app.css: `:focus-visible { outline: 2px solid var(--verified) }`. The
   V2 accent is a different hue; the ring itself is kept (it is the app's
   only focus treatment and losing it would be an accessibility
   regression). */
.sp-v2 :focus-visible {
  outline: 2px solid var(--sp-brand);
  outline-offset: 2px;
  border-radius: 2px;
}

.sp-v2 ::selection { background: var(--sp-brand-tint); }

.sp-skip {
  position: absolute;
  left: var(--sp-3);
  top: -100px;
  z-index: 200;
  background: var(--sp-brand);
  color: var(--sp-on-brand);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--sp-r);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--sp-fast);
}
.sp-skip:focus { top: var(--sp-3); }

/* Visually hidden, still announced. Used for form labels whose purpose is
   already carried by an adjacent icon and placeholder — the label exists
   because a placeholder is not an accessible name. */
.sp-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The drawer scrim is a real <button> so it is keyboard-reachable, but it
   must never be focusable or visible above the drawer breakpoint, where
   it is also `hidden`. Sizing lives in the 1024px block. */
.sp-sidebar:focus { outline: none; }


/* ==========================================================================
   3. SHELL — sidebar + main column
   ========================================================================== */

.sp-shell { display: flex; align-items: flex-start; min-height: 100vh; }

.sp-sidebar {
  width: var(--sp-rail);
  flex: 0 0 var(--sp-rail);
  background: var(--sp-sidebar);
  border-right: 1px solid var(--sp-line);
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.sp-sidebar-head { padding: 8px 10px 7px; border-bottom: 1px solid var(--sp-line); }

/* MarketDeck is the suite identity; StockProof remains the selected product
   below and the workspace identity in the topbar. */
.sp-factory {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 2px 4px;
  border-radius: var(--sp-r);
  color: var(--sp-text);
  text-decoration: none;
}
.sp-factory-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sp-r-sm);
  background: transparent;
  color: var(--sp-brand);
}
.sp-factory-mark svg { width: 22px; height: 22px; }
.sp-factory-name {
  display: block;
  color: var(--sp-text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.sp-sidebar-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 8px var(--sp-4);
}

.sp-rail-label {
  display: block;
  font-family: var(--sp-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-text-3);
  padding: 13px 5px 6px;
}

.sp-list { list-style: none; margin: 0; padding: 0; }

/* --- product family --------------------------------------------------- */

.sp-product {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 5px 7px;
  border-radius: var(--sp-r);
  color: var(--sp-link-muted);
  text-decoration: none;
  transition: background var(--sp-fast), color var(--sp-fast);
}
.sp-product:hover { background: var(--sp-hover); color: var(--sp-text); }

.sp-product-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sp-r-sm);
  color: var(--sp-brand);
  background: var(--sp-brand-tint);
}
.sp-product-icon svg { width: 15px; height: 15px; }

.sp-product-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--sp-link);
  line-height: 1.25;
}
.sp-product-desc {
  display: block;
  font-size: 11px;
  color: var(--sp-text-3);
  line-height: 1.3;
}

.sp-product-on {
  background: linear-gradient(90deg, var(--md-primary-strong-soft), var(--md-primary-soft));
  box-shadow: inset 0 0 0 1px rgba(19, 146, 253, 0.12);
}
.sp-product-on .sp-product-name { color: var(--sp-text); font-weight: 600; }
.sp-product-on::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 5px;
  bottom: 5px;
  width: 3px;
  border-radius: var(--sp-r-pill);
  background: var(--sp-brand);
}

/* A sibling product with no base URL configured. Rendered as a real
   non-navigating element, never a guessed href — the same honesty the
   legacy shell's inert <span> pill already carries. */
.sp-product-off { opacity: 0.42; cursor: not-allowed; }
.sp-product-off .sp-product-icon { color: var(--sp-text-3); background: var(--sp-line); }

.sp-divider {
  height: 1px;
  background: var(--sp-line);
  margin: var(--sp-4) var(--sp-2) 0;
}

/* --- section nav ------------------------------------------------------ */

.sp-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 6px 7px;
  border-radius: var(--sp-r);
  color: var(--sp-link-muted);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--sp-fast), color var(--sp-fast);
}
.sp-nav-item:hover { background: var(--sp-hover); color: var(--sp-text); }

.sp-nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--sp-text-3);
}
.sp-nav-item:hover .sp-nav-icon { color: var(--sp-text-2); }

.sp-nav-text { flex: 1 1 auto; min-width: 0; }

.sp-nav-on {
  background: var(--md-primary-strong-soft);
  color: var(--sp-text);
  font-weight: 600;
}
.sp-nav-on .sp-nav-icon { color: var(--sp-brand); }

.sp-badge {
  flex: 0 0 auto;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: var(--sp-r-pill);
  background: var(--sp-warn-tint);
  color: var(--sp-warn);
  font-family: var(--sp-mono);
  font-size: 10px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-caret {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--sp-text-3);
  transition: transform var(--sp-fast);
}
.sp-nav-item[aria-expanded="true"] .sp-caret { transform: rotate(180deg); }

.sp-subnav { display: none; padding: var(--sp-1) 0 var(--sp-2) 30px; }
.sp-nav-item[aria-expanded="true"] + .sp-subnav { display: block; }

.sp-subitem {
  display: block;
  padding: 6px var(--sp-2);
  border-radius: var(--sp-r-sm);
  color: var(--sp-link-muted);
  font-size: 13px;
  text-decoration: none;
  border-left: 1px solid var(--sp-line);
  transition: color var(--sp-fast), border-color var(--sp-fast);
}
.sp-subitem:hover { color: var(--sp-text); border-left-color: var(--sp-line-strong); }
.sp-subitem-on { color: var(--sp-text); border-left-color: var(--sp-brand); }

/* --- sidebar footer: account ------------------------------------------ */

.sp-sidebar-foot {
  flex: 0 0 auto;
  padding: var(--sp-3);
  border-top: 1px solid var(--sp-line);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.sp-sidebar-preferences {
  display: grid;
  gap: 5px;
  padding: 2px 4px 9px;
  border-bottom: 1px solid var(--sp-line);
}
.sp-sidebar-pref-title {
  color: var(--sp-text-3);
  font: 500 9px/1.4 var(--sp-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sp-sidebar-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 25px;
}
.sp-sidebar-pref-name {
  color: var(--sp-text-2);
  font-size: 11px;
}
.sp-sidebar-pref-options {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--sp-line-mid);
  border-radius: 5px;
  background: rgba(0, 0, 0, .12);
}
.sp-sidebar-pref-options > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  min-height: 19px;
  padding: 0 5px;
  border-radius: 3px;
  color: var(--sp-text-3);
  font: 500 9px/1 var(--sp-mono);
  text-decoration: none;
}
.sp-sidebar-pref-options a:hover {
  color: var(--sp-text);
  background: var(--sp-hover);
}
.sp-sidebar-pref-options .sp-sidebar-pref-on {
  color: var(--sp-text);
  background: var(--sp-brand-tint);
  box-shadow: inset 0 0 0 1px rgba(19, 146, 253, .18);
}

.sp-account {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-1);
  min-width: 0;
}
.sp-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: var(--sp-r-pill);
  background: var(--sp-brand-tint);
  color: var(--sp-brand);
  font-family: var(--sp-mono);
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.sp-account-text { min-width: 0; }
.sp-account-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--sp-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-account-role {
  display: block;
  font-family: var(--sp-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-text-3);
}

/* Log out is a POST form with CSRF, exactly as the legacy shell has it.
   It is styled to sit in the footer row; it is not, and must never
   become, an anchor. */
.sp-logout { margin: 0; }
.sp-logout button {
  width: 100%;
  padding: 7px var(--sp-2);
  border-radius: var(--sp-r);
  border: 1px solid var(--sp-line-mid);
  background: none;
  color: var(--sp-text-2);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: background var(--sp-fast), color var(--sp-fast);
}
.sp-logout button:hover { background: var(--sp-hover); color: var(--sp-text); }

.sp-auth-actions { display: flex; gap: var(--sp-2); }
.sp-auth-actions > * { flex: 1 1 0; text-align: center; }


/* ==========================================================================
   4. MAIN COLUMN + TOPBAR
   ========================================================================== */

.sp-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.sp-topbar {
  height: var(--sp-topbar);
  flex: 0 0 var(--sp-topbar);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 14px;
  border-bottom: 1px solid var(--sp-line);
  background: var(--sp-topbar-surface);
  position: sticky;
  top: 0;
  z-index: 30;
}

/* The full desktop sidebar owns product switching. This companion rail is
   revealed only at the same breakpoint where that sidebar becomes a drawer. */
.sp-suite-nav {
  display: none;
  position: sticky;
  top: var(--sp-topbar);
  z-index: 29;
  min-width: 0;
  border-bottom: 1px solid var(--sp-line);
  background: var(--sp-topbar-surface);
}
.sp-suite-scroll {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  min-width: 0;
  height: 42px;
  padding: 0 var(--sp-6);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: var(--sp-6);
  scrollbar-width: thin;
  scrollbar-color: var(--sp-line-strong) transparent;
}
.sp-suite-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--sp-3);
  border-radius: var(--sp-r);
  color: var(--sp-link);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--sp-fast), background var(--sp-fast);
}
.sp-suite-link:hover { color: var(--sp-text); background: var(--sp-hover); }
.sp-suite-on,
.sp-suite-on:hover {
  color: var(--sp-text);
  background: var(--sp-brand-tint);
  box-shadow: inset 0 -2px 0 var(--sp-brand);
}
.sp-suite-off { color: var(--sp-text-faint, var(--md-text-faint)); cursor: not-allowed; }
.sp-suite-last { gap: 6px; padding-right: var(--sp-4); }

.sp-drawer-btn {
  display: none;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
  background: none;
  color: var(--sp-text-2);
  cursor: pointer;
}
.sp-drawer-btn svg { width: 18px; height: 18px; }

.sp-identity {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--sp-text);
  text-decoration: none;
  flex: 0 0 auto;
}
.sp-identity-mark { width: 20px; height: 20px; color: var(--sp-brand); }
.sp-identity-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.sp-identity-suite,
.sp-identity-text {
  color: var(--sp-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.sp-identity-divider {
  color: var(--sp-line-strong);
  font-size: 12px;
}
.sp-identity-text { font-weight: 600; }

/* Global search. A GET form to the screener, with the SAME `q` field the
   legacy hero search used — it is the homepage's real search action
   promoted into the shell, not a new feature. */
.sp-topbar-search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: 36px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
  background: #0a111a;
  transition: border-color var(--sp-fast), box-shadow var(--sp-fast);
}
.sp-topbar-search:focus-within {
  border-color: var(--sp-brand-line);
  box-shadow: 0 0 0 3px var(--sp-brand-tint);
}
.sp-search-icon { width: 16px; height: 16px; flex: 0 0 16px; color: var(--sp-text-3); }

/* app.css styles `input:not([type="checkbox"])` at (0,1,1) — this is
   (0,2,1) and wins. Set explicitly rather than inherited, because the
   legacy rule sets background, color AND border-color together. */
.sp-v2 .sp-topbar-search input,
.sp-v2 .sp-hero-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--sp-text);
  font-family: inherit;
  font-size: var(--sp-t-body);
}
.sp-v2 .sp-topbar-search input::placeholder,
.sp-v2 .sp-hero-search input::placeholder { color: var(--sp-text-3); }
.sp-v2 .sp-topbar-search input:focus-visible,
.sp-v2 .sp-hero-search input:focus-visible { outline: none; }

/* Compact suite-wide control baseline. More specific component rules keep
   their established layouts, while ordinary controls share the approved
   36/38px sizing and 8px radius. */
.sp-v2 .btn,
.sp-v2 .btn-ghost {
  min-height: 36px;
  border-radius: var(--sp-r);
  font-family: var(--sp-font);
  font-weight: 500;
}
.sp-v2 input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="search"]),
.sp-v2 select {
  min-height: 38px;
  border-radius: var(--sp-r);
  font-family: var(--sp-font);
}

/* app.css: `main { max-width: var(--maxw); margin: 0 auto; padding: ... }`
   at (0,0,1), plus a phone override in its 640px block at the same
   specificity. This is (0,2,1) and beats both. Without it the V2
   workspace would be capped and centred like a legacy document column. */
.sp-v2 main.sp-content {
  max-width: none;
  margin: 0;
  padding: 10px 14px 48px;
  width: 100%;
  background: var(--sp-canvas);
}
.sp-workspace { width: 100%; max-width: var(--sp-workspace-max); margin: 0 auto; }

/* Landing surfaces keep the richer MarketDeck navy atmosphere. Work pages
   inherit the neutral graphite tokens above, so data, forms and charts sit on
   quieter material while the homepage still feels intentionally cinematic. */
.sp-v2 main.sp-content.sp-home {
  --sp-surface: #07182a;
  --sp-raised: #0a2035;
  --sp-hover: #0d2842;
  --sp-line: #132a42;
  --sp-line-mid: #1b3c5e;
  background: #000b17;
}

/* Django messages. Same {% if messages %} block and same
   {{ message.tags }} class hook as the legacy shell. */
.sp-messages { list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: grid; gap: var(--sp-2); }
.sp-messages li {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--sp-line-mid);
  border-left: 3px solid var(--sp-brand);
  border-radius: var(--sp-r);
  background: var(--sp-surface);
  font-size: var(--sp-t-body);
}
.sp-messages li.error { border-left-color: var(--sp-neg); }
.sp-messages li.warning { border-left-color: var(--sp-warn); }
.sp-messages li.success { border-left-color: var(--sp-pos); }


/* ==========================================================================
   5. HERO
   ========================================================================== */

.sp-hero { margin-bottom: var(--sp-7); }

.sp-hero-surface {
  position: relative;
  display: block;
  /* The full hero remains a dark photographic canvas in both themes. The
     surrounding page still follows the reader's theme; keeping the canvas
     dark avoids a pale blend over the mountain in Light mode. */
  --sp-photo-edge: var(--sp-photo-base);
  background: var(--sp-photo-base);
  border: 1px solid var(--md-border-active);
  border-radius: var(--sp-r-lg);
  overflow: hidden;
  box-shadow: 0 0 22px rgba(19, 146, 253, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sp-hero-body {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: min(100%, 650px);
  min-height: 286px;
  padding: 30px 34px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* The canvas deliberately stays dark in Light as well as Dark mode, so its
   copy uses photograph-safe ink instead of inheriting the page-theme ink. */
.sp-v2 .sp-home .sp-hero-surface .sp-hero-title,
.sp-v2 .sp-home .sp-hero-surface .sp-metric-v { color: var(--sp-photo-ink); }
.sp-v2 .sp-home .sp-hero-surface .sp-hero-sub { color: rgba(243, 247, 247, 0.72); }
.sp-v2 .sp-home .sp-hero-surface .sp-metric-k { color: rgba(243, 247, 247, 0.58); }
.sp-v2 .sp-home .sp-hero-surface .sp-hero-search {
  background: rgba(8, 17, 28, 0.9);
  border-color: rgba(113, 132, 155, 0.58);
}
.sp-v2 .sp-home .sp-hero-surface .sp-hero-search input,
.sp-v2 .sp-home .sp-hero-surface .sp-hero-search input::placeholder { color: rgba(243, 247, 247, 0.62); }

.sp-eyebrow {
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-brand);
  margin: 0 0 var(--sp-3);
}

.sp-v2 .sp-hero-title {
  font-size: var(--sp-t-hero);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.sp-hero-title .sp-accent { color: var(--sp-brand); }

.sp-hero-sub {
  margin: var(--sp-3) 0 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.4;
  color: var(--sp-text-2);
}

.sp-hero-search {
  margin-top: 18px;
  max-width: 545px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sp-raised);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
  padding: 2px 2px 2px 13px;
  transition: border-color var(--sp-fast), box-shadow var(--sp-fast);
}
.sp-hero-search:focus-within {
  border-color: var(--sp-brand-line);
  box-shadow: 0 0 0 3px var(--sp-brand-tint);
}
.sp-hero-search input { height: 38px; }

.sp-btn {
  flex: 0 0 auto;
  height: 38px;
  min-width: 108px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--sp-r);
  background: var(--sp-brand);
  color: var(--sp-on-brand);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--sp-fast);
}
.sp-btn:hover { background: var(--sp-brand-hi); }

.sp-btn-quiet {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
  background: none;
  color: var(--sp-text-2);
  font-family: inherit;
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--sp-fast), color var(--sp-fast);
}
.sp-btn-quiet:hover { background: var(--sp-hover); color: var(--sp-text); }

/* Coverage figures. Both are REAL context values from home_view —
   Company.objects.count() and len(PRESET_SCREENS). Nothing else is shown
   here, because nothing else on this page is a measured fact. */
.sp-hero-evidence {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.48fr);
  align-items: stretch;
  margin: 0 12px 10px;
  border: 1px solid rgba(23, 111, 209, 0.48);
  border-radius: 9px;
  background: rgba(8, 17, 28, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
}
.sp-hero-metrics {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.sp-hero-metrics > div {
  min-width: 0;
  padding: 14px 22px;
  border-right: 1px solid rgba(23, 58, 94, 0.82);
}
.sp-metric-v {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--sp-text);
  font-variant-numeric: tabular-nums;
}
/* The full margin shorthand, not just margin-top: this is a <dd>, and the
   user-agent default `margin-inline-start: 40px` otherwise survives and
   indents every label 40px off its own figure. */
.sp-metric-k {
  display: block;
  margin: 2px 0 0;
  padding-left: 28px;
  font-size: 11px;
  color: var(--sp-text-3);
}

/* --- hero media: the approved photograph -----------------------------
   SP-UI-001 shipped a CSS/SVG ridge here because an image asset was not
   among the five files that task was allowed to create. SP-UI-001R lifts
   that restriction for exactly one asset, and live review was blunt about
   the difference: the geometric silhouette read as synthetic. This is the
   approved prototype photograph, copied into this repository at
   screener/static/screener/img/v2/hero-mountain.png and served through
   {% static %} -- the application never reaches outside itself for it.

   The treatment is what keeps it institutional rather than a travel
   advertisement: the image is pushed back with a slight desaturation, a
   long left-to-right fade dissolves it into the hero surface so it reads as
   one continuous canvas rather than a pasted-in banner. The photograph is
   behind the content, with the peak held in the right third and a bottom
   scrim carrying the research statement. The left content field stays
   dominant.

   The photo does NOT flip with the theme -- it is the same dark image in
   both -- so its scrim and caption are fixed light-on-dark. Only the left
   fade is theme-aware, because it has to dissolve into whatever colour
   the panel is. */
.sp-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--sp-photo-base);
}
.sp-hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  /* SP-UI-003A1R: a background, so the file is only fetched where the
     panel shows (see the (min-width: 768px) rule below). The wide scale and
     far-right anchor put the mountain peak in the right third of the full
     hero rather than immediately beside the copy. */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 54%;
  /* Pushed back so it sits behind the type rather than competing with it,
     never darkened into invisibility -- the ridge line staying legible is
     the whole reason for using a photograph rather than a flat panel. A
     token, because the light theme wants slightly more contrast to hold
     the picture together against a white surround. */
  filter: var(--sp-photo-filter);
}
/* The complement of the (max-width: 767px) rule that hides .sp-hero-media.
   The image is attached only here, so at 767px and below it is never
   requested at all -- not merely hidden after download. */
@media (min-width: 768px) {
  .sp-hero-photo { background-image: var(--sp-hero-image); }
}

/* SP-UI-003M. The approved crop is the 100% keyframe: no background size,
   position, filter, veil or caption changes. The small overscan only exists
   while a JS-enabled desktop page performs its one settling entrance. */
@keyframes sp-home-hero-settle {
  from { transform: translate3d(4px, -3px, 0) scale(1.022); }
  to { transform: translate3d(0, 0, 0) scale(1); }
}
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .sp-home-js .sp-v2 .sp-home .sp-hero-photo-settle {
    animation: sp-home-hero-settle 3600ms cubic-bezier(0.22, 0.75, 0.2, 1) both;
  }
}
.sp-hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* The long feather makes the photograph part of the hero canvas. It
       holds the copy field as a solid surface, then gives way gradually to
       cloud texture and the peak. `--sp-photo-edge` follows the existing
       theme architecture: dark in Dark, and the intentional light content
       surface in Light. */
    linear-gradient(to right,
      rgba(4, 10, 17, 0.92) 0%,
      rgba(4, 10, 17, 0.74) 27%,
      rgba(4, 10, 17, 0.22) 57%,
      rgba(4, 10, 17, 0.03) 82%),
    /* A quiet top vignette keeps the sky from becoming a bright band. */
    linear-gradient(to bottom,
      rgba(5, 12, 20, 0.08) 0%,
      rgba(5, 12, 20, 0) 42%),
    /* bottom scrim: the bed the research statement is read off */
    linear-gradient(to top,
      rgba(3, 9, 17, 0.62) 0%,
      rgba(3, 9, 17, 0.14) 34%,
      rgba(3, 9, 17, 0) 62%);
}
/* `.sp-hero-note` IS the <p>, so everything about it is declared here.
   SP-UI-001 carried a `.sp-hero-note p` rule that matched nothing — there
   is no <p> inside the <p> — and the caption only looked right because it
   inherited --sp-text from the body. That happens to be light in the dark
   theme, so the bug was invisible there and would have put dark text on
   the photograph's dark scrim the moment a reader picked Light. */
.sp-hero-note {
  position: relative;
  width: auto;
  margin: 0;
  padding: 14px 20px;
  font-size: 11.5px;
  line-height: 1.42;
  /* Fixed light ink, NOT --sp-text: this sits on the photograph's own dark
     scrim in BOTH themes, so following the theme would invert it. */
  color: var(--sp-photo-ink);
}
.sp-hero-note-rule {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: var(--sp-r-pill);
  background: var(--sp-brand);
  margin-bottom: var(--sp-2);
}


/* ==========================================================================
   6. SECTIONS
   ========================================================================== */

.sp-section { margin-bottom: var(--sp-7); }

.sp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--sp-line);
}
.sp-v2 .sp-section-title {
  font-size: var(--sp-t-h2);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.sp-section-sub {
  margin: var(--sp-1) 0 0;
  font-size: var(--sp-t-meta);
  color: var(--sp-text-3);
  max-width: 76ch;
}
.sp-v2 .sp-home .sp-section-head {
  margin-bottom: 6px;
  padding-bottom: 0;
  border-bottom: 0;
}
.sp-v2 .sp-home .sp-section-sub { max-width: 112ch; }
.sp-section-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--sp-link);
  text-decoration: none;
  white-space: nowrap;
}
.sp-section-link svg { width: 14px; height: 14px; }
.sp-section-link:hover { color: var(--sp-text); }
.sp-v2 .sp-home .sp-section-link svg,
.sp-v2 .sp-home .sp-feature-open svg {
  transition: transform 150ms ease-out;
}
.sp-v2 .sp-home .sp-section-link:hover svg,
.sp-v2 .sp-home .sp-section-link:focus-visible svg,
.sp-v2 .sp-home .sp-feature-open:hover svg,
.sp-v2 .sp-home .sp-feature-open:focus-visible svg {
  transform: translateX(2px);
}

/* --- Research Pulse --------------------------------------------------
   A status rail, not a KPI-card row. Company and sector coverage come from
   one aggregate query; research is the registry length; market data is the
   latest stored DailyPriceHistory date and disappears when none exists. */
.sp-v2 .sp-home .sp-hero { margin-bottom: 10px; }
.sp-v2 .sp-home .sp-research-pulse {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1.58fr);
  align-items: stretch;
  gap: var(--sp-3);
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
  background: linear-gradient(180deg, var(--sp-surface), var(--sp-raised));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.sp-v2 .sp-home .sp-pulse-heading {
  align-self: center;
  padding: 0 var(--sp-2);
}
.sp-v2 .sp-home .sp-pulse-heading h2 {
  margin: 0;
  color: var(--sp-text);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.sp-v2 .sp-home .sp-pulse-heading p {
  margin: 4px 0 0;
  color: var(--sp-text-3);
  font-size: var(--sp-t-micro);
  line-height: 1.35;
}
.sp-v2 .sp-home .sp-pulse-data {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 0;
  min-width: 0;
}
.sp-v2 .sp-home .sp-pulse-data > div {
  min-width: 0;
  padding: 5px 14px;
  border-left: 1px solid var(--sp-line-mid);
}
.sp-v2 .sp-home .sp-pulse-data dt {
  margin: 0 0 4px;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sp-v2 .sp-home .sp-pulse-data dd {
  margin: 0;
  color: var(--sp-text);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
.sp-v2 .sp-home .sp-pulse-data dd span {
  color: var(--sp-text-2);
  font-size: 12px;
  font-weight: 400;
}

/* --- quick access companies ------------------------------------------ */

.sp-company-grid {
  display: grid;
  /* 240px, not 210: home_view curates exactly six companies, and at 210 a
     1440px workspace lays out five columns, stranding the sixth card alone
     on a row. 240 gives six columns on a 1920 monitor (filling exactly)
     and four, then two, below that -- never one on its own. */
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--sp-3);
}
.sp-company {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: 9px 11px;
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
  background: linear-gradient(145deg, var(--sp-surface), var(--sp-raised));
  text-decoration: none;
  transition: border-color var(--sp-fast), background var(--sp-fast);
}
.sp-company:hover { border-color: var(--sp-brand-line); background: var(--sp-raised); }
.sp-company-text { min-width: 0; }

/* The monogram badge. Two letters off the real ticker, set in the mono
   face inside a tinted square -- deliberately NOT a logo, and it must not
   be mistaken for one: this application ships no company imagery and no
   logo source, so an anchor that LOOKED official would be a claim it
   cannot support. It is a reading aid that gives each card a fixed point
   for the eye, and it stays quieter than the company name beside it. */
.sp-badge-mono {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: var(--sp-r);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sp-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--sp-ic-teal-tint);
  color: var(--sp-ic-teal);
}
.sp-badge-teal   { background: var(--sp-ic-teal-tint);   color: var(--sp-ic-teal); }
.sp-badge-violet { background: var(--sp-ic-violet-tint); color: var(--sp-ic-violet); }
.sp-badge-amber  { background: var(--sp-ic-amber-tint);  color: var(--sp-ic-amber); }
.sp-badge-blue   { background: var(--sp-ic-blue-tint);   color: var(--sp-ic-blue); }
.sp-badge-coral  { background: var(--sp-ic-coral-tint);  color: var(--sp-ic-coral); }
.sp-company-ticker {
  display: block;
  font-family: var(--sp-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--sp-link);
  letter-spacing: 0.02em;
}
.sp-company-name {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--sp-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-company-sector {
  display: block;
  margin-top: 2px;
  font-size: var(--sp-t-micro);
  color: var(--sp-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- featured research explorer --------------------------------------
   Five real registry entries. Without JS, each submit button opens its real
   screener route and all five detail articles remain visible. JS turns the
   same markup into a user-controlled preview surface; there is no timer. */
.sp-v2 .sp-home .sp-research-explorer {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-lg);
  background: var(--sp-surface);
}
.sp-v2 .sp-home .sp-feature-selector {
  min-width: 0;
  border-right: 1px solid var(--sp-line-mid);
  background: color-mix(in srgb, var(--sp-raised) 45%, var(--sp-surface));
}
.sp-v2 .sp-home .sp-feature-select-form { margin: 0; }
.sp-v2 .sp-home .sp-feature-select {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 58px;
  padding: var(--sp-3) var(--sp-4);
  border: 0;
  border-bottom: 1px solid var(--sp-line);
  background: transparent;
  color: var(--sp-text-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease-out, background 150ms ease-out;
}
.sp-v2 .sp-home .sp-feature-select-form:last-child .sp-feature-select { border-bottom: 0; }
.sp-v2 .sp-home .sp-feature-select:hover { color: var(--sp-text); background: var(--sp-hover); }
.sp-v2 .sp-home .sp-feature-select[aria-pressed="true"] {
  color: var(--sp-text);
  background: var(--sp-brand-tint);
}
.sp-v2 .sp-home .sp-feature-select[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 2px;
  border-radius: var(--sp-r-pill);
  background: var(--sp-brand);
}
.sp-v2 .sp-home .sp-feature-select:focus-visible {
  z-index: 1;
  outline: 2px solid var(--sp-brand);
  outline-offset: -3px;
}
.sp-v2 .sp-home .sp-feature-select-name {
  min-width: 0;
  color: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}
.sp-v2 .sp-home .sp-feature-select-kind {
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.sp-v2 .sp-home .sp-feature-details { min-width: 0; }
.sp-v2 .sp-home .sp-feature-detail {
  min-height: 290px;
  padding: var(--sp-6);
  border-bottom: 1px solid var(--sp-line);
}
.sp-v2 .sp-home .sp-feature-detail:last-child { border-bottom: 0; }
.sp-home-js .sp-v2 .sp-home .sp-feature-detail[hidden] { display: none; }
.sp-v2 .sp-home .sp-feature-detail-enter {
  animation: sp-home-detail-enter 180ms ease-out both;
}
@keyframes sp-home-detail-enter {
  from { opacity: 0.76; transform: translate3d(0, 4px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.sp-v2 .sp-home .sp-feature-detail-kind {
  margin: 0 0 var(--sp-2);
  color: var(--sp-brand);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sp-v2 .sp-home .sp-feature-detail h3 {
  margin: 0;
  color: var(--sp-text);
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.sp-v2 .sp-home .sp-feature-detail-desc {
  max-width: 68ch;
  margin: var(--sp-3) 0 0;
  color: var(--sp-text-2);
  font-size: 14px;
  line-height: 1.55;
}
.sp-v2 .sp-home .sp-feature-detail-note {
  max-width: 78ch;
  margin: var(--sp-3) 0 0;
  padding-left: var(--sp-3);
  border-left: 2px solid var(--sp-line-strong);
  color: var(--sp-text-3);
  font-size: var(--sp-t-meta);
  line-height: 1.5;
}
.sp-v2 .sp-home .sp-feature-detail-evidence {
  margin: var(--sp-4) 0 0;
  color: var(--sp-text-2);
  font-size: var(--sp-t-meta);
  line-height: 1.5;
}
.sp-v2 .sp-home .sp-feature-detail-evidence span {
  display: block;
  margin-bottom: 3px;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sp-v2 .sp-home .sp-feature-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: var(--sp-5);
  color: var(--sp-link);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.sp-v2 .sp-home .sp-feature-open:hover { color: var(--sp-text); }
.sp-v2 .sp-home .sp-feature-open svg { width: 14px; height: 14px; }
.sp-ic-1 { background: var(--sp-ic-teal-tint);   color: var(--sp-ic-teal); }
.sp-ic-2 { background: var(--sp-ic-amber-tint);  color: var(--sp-ic-amber); }
.sp-ic-3 { background: var(--sp-ic-blue-tint);   color: var(--sp-ic-blue); }
.sp-ic-4 { background: var(--sp-ic-violet-tint); color: var(--sp-ic-violet); }
.sp-ic-5 { background: var(--sp-ic-coral-tint);  color: var(--sp-ic-coral); }

/* --- the remaining screens, behind a native disclosure ----------------
   A <details>, not a scripted accordion: it opens from the keyboard on
   its own, it works with scripting off, and a closed <details> takes its
   contents out of the tab order without any code of ours. */
.sp-more {
  margin-top: var(--sp-4);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
  background: var(--sp-surface);
}
.sp-more-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  font-size: var(--sp-t-body);
  font-weight: 500;
  color: var(--sp-text-2);
  list-style: none;
  border-radius: var(--sp-r);
}
.sp-more-summary::-webkit-details-marker { display: none; }
.sp-more-summary:hover { color: var(--sp-text); background: var(--sp-hover); }
.sp-more-sign {
  flex: 0 0 auto;
  font-family: var(--sp-mono);
  font-size: 15px;
  line-height: 1;
  color: var(--sp-text-3);
}
.sp-more[open] .sp-more-sign { color: var(--sp-brand); }
/* The glyph is swapped in CSS rather than duplicated in the markup, so
   the summary stays a single text node for a screen reader. */
.sp-more-sign::before { content: "+"; }
.sp-more[open] .sp-more-sign::before { content: "\2013"; }
.sp-more-body { padding: 0 var(--sp-4) var(--sp-4); }

/* --- screen index -----------------------------------------------------
   The remaining twenty-four, dense and compact inside the disclosure.

   EVERY ONE OF THE 29 SCREENS IS STILL IN THE DOM, and that is a
   contract rather than a preference: test_home.py iterates the whole
   PRESET_SCREENS registry and asserts each key, label AND description is
   present on this page. The disclosure changes how much height they take
   when closed; it removes none of them, and none is duplicated between
   the featured five and this list. */
.sp-screen-index {
  display: grid;
  /* 260px: there are twenty-four of these, and 24 divides exactly by the
     column count this yields at every desktop width — six on a 1920
     workspace, four at 1440, three at 1024 — so the last row is never
     a ragged remainder. */
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--sp-line);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
  overflow: hidden;
}
.sp-screen {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  background: var(--sp-surface);
  text-decoration: none;
  transition: background var(--sp-fast);
}
.sp-screen:hover { background: var(--sp-hover); }
.sp-screen-name {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sp-text);
  letter-spacing: -0.005em;
}
.sp-screen-desc {
  display: block;
  margin-top: 2px;
  font-size: var(--sp-t-micro);
  line-height: 1.4;
  color: var(--sp-text-3);
}

/* --- hero metric icons -------------------------------------------------
   Small, muted, on the figure baseline. They label the figure rather than
   decorating it, and they must never grow into a card: these are three
   real measurements, not three tiles. */
.sp-metric-v { display: flex; align-items: center; gap: 6px; }
.sp-metric-icon { flex: 0 0 17px; width: 17px; height: 17px; color: var(--sp-brand); }

/* --- destination cards (Explore StockProof / Your research) ------------
   One component, two sections. Compact and data-product-like on purpose:
   these are a launchpad into pages that already exist, not marketing
   tiles, so they get a hairline, a 30px mark and two lines of type -- no
   lift, no gradient, no oversized padding.

   auto-fit rather than a fixed count: eleven public destinations and six
   private ones share no divisor, so pinning a column count would strand a
   card in one section or the other at some width. 230px resolves to five
   columns on a 1920 workspace, four at 1440, three at 1024, two on a
   tablet and one on a phone, with the items filling each row. */
.sp-dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-3);
}
.sp-dest {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
  background: var(--sp-surface);
  text-decoration: none;
  transition: border-color 150ms ease-out, background 150ms ease-out, transform 150ms ease-out;
}
.sp-dest:hover { border-color: var(--sp-brand-line); background: var(--sp-raised); }
.sp-v2 .sp-home .sp-dest:hover,
.sp-v2 .sp-home .sp-dest:focus-visible { transform: translateY(-1px); }
/* THE MARK IS SIZED IN TWO PLACES ON PURPOSE, and the markup is the one
   that must not be removed. These glyphs are inline <svg> with a viewBox
   and, as first shipped, no width/height attributes -- so their entire
   rendered size hung on the `.sp-dest-icon svg` rule below. An <svg> with
   a viewBox and no intrinsic size defaults to width:100% of its
   containing block and derives its height from the 1:1 aspect ratio, so
   the instant that one rule does not apply each icon renders at the full
   content width. Measured live on this page with the rule removed: 969px
   square per icon, and an 11,153px-tall section.

   That is not hypothetical. `/static/` here is served with no
   Cache-Control and no ETag, so a browser applies heuristic freshness and
   can reuse a cached v2.css without revalidating -- which is exactly how
   senior review saw full-page illustrations against post-R2 HTML: a
   pre-R2 stylesheet, carrying every OTHER icon family's rule and none of
   these. Hence width="19" height="19" on each glyph in home.html: with no
   stylesheet at all the icon is now 19px, not 969px. The rule below still
   governs; the attribute is the floor under it.

   34/19 is not a new size -- it is `.sp-feature-icon`'s, so the two card
   families on this page read as one system rather than two. */
.sp-dest-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: var(--sp-r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sp-dest-icon svg { width: 19px; height: 19px; display: block; }
.sp-dest-text { min-width: 0; }
.sp-dest-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sp-text);
  letter-spacing: -0.005em;
}
.sp-dest-desc {
  display: block;
  margin-top: 3px;
  font-size: var(--sp-t-micro);
  line-height: 1.45;
  color: var(--sp-text-3);
}

/* The icon-accent set already carries five hues for the featured screens;
   a sixth (cyan) is added here so eleven destinations can cycle without
   two neighbours sharing a colour. Glyph and tint only, never a surface
   and never text -- the same rule the set was created under. */
.sp-ic-6 { background: var(--sp-ic-cyan-tint); color: var(--sp-ic-cyan); }

/* --- principles strip ------------------------------------------------- */

.sp-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
  background: var(--sp-surface);
}
.sp-principle { display: flex; align-items: flex-start; gap: var(--sp-3); min-width: 0; }
.sp-principle svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--sp-brand); margin-top: 1px; }
.sp-principle-t { display: block; font-size: 13.5px; font-weight: 500; color: var(--sp-text); }
.sp-principle-d { display: block; margin-top: 2px; font-size: var(--sp-t-meta); color: var(--sp-text-3); line-height: 1.4; }

.sp-empty {
  padding: var(--sp-5);
  border: 1px dashed var(--sp-line-mid);
  border-radius: var(--sp-r);
  color: var(--sp-text-3);
  font-size: var(--sp-t-body);
}

/* Progressive section entrance. Content is fully visible by default; only
   JS adds the pending class, and only when IntersectionObserver exists and
   reduced motion is not requested. Each section is unobserved after reveal. */
.sp-home-js .sp-v2 .sp-home .sp-home-reveal {
  transition: opacity 230ms ease-out, transform 230ms ease-out;
}
.sp-home-js .sp-v2 .sp-home .sp-home-reveal-pending {
  opacity: 0.94;
  transform: translate3d(0, 7px, 0);
}
.sp-home-js .sp-v2 .sp-home .sp-home-reveal-done {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}


/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

/* Below this the sidebar becomes an off-canvas drawer. 1024px is chosen
   rather than the legacy shell's 860px because the V2 sidebar is a fixed
   236px column, not a wrapping row: it stops paying for itself as soon as
   the workspace beside it drops under ~780px. */
@media (max-width: 1024px) {
  .sp-drawer-btn { display: inline-flex; }
  .sp-suite-nav { display: block; }

  /* A closed drawer is `visibility: hidden`, not merely translated out of
     view. Two reasons, and the first is an accessibility bug rather than a
     nicety: an element moved off-screen by `transform` is still in the tab
     order, so a keyboard reader tabbing out of the topbar would walk
     through a dozen invisible nav links before reaching the page. The
     second is robustness — if the slide-out transition is interrupted or
     never runs (a throttled or non-compositing tab), `visibility` still
     makes the closed drawer inert and unclickable, so correctness never
     depends on an animation reaching its end.

     The delay is the whole trick: visibility flips to hidden only AFTER
     the slide finishes, and back to visible instantly on open, so the
     motion is still seen in both directions. */
  .sp-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 60;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--sp-base), visibility 0s linear var(--sp-base);
    box-shadow: var(--sp-shadow);
  }
  .sp-sidebar-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--sp-base), visibility 0s linear 0s;
  }

  .sp-scrim {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(4, 9, 11, 0.6);
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .sp-v2 main.sp-content { padding: 12px var(--sp-5) var(--sp-9); }
  .sp-topbar { padding: 0 var(--sp-5); gap: var(--sp-3); }
  .sp-suite-scroll { padding-inline: var(--sp-5); scroll-padding-inline: var(--sp-5); }
  .sp-hero-body { padding: var(--sp-6); }
  .sp-hero-media { min-height: 0; }
  .sp-hero-note { display: none; }
  .sp-hero-evidence { grid-template-columns: minmax(0, 1fr); }
  .sp-hero-body { width: min(100%, 680px); }
}

/* Between the drawer breakpoint and the phone one, retain the product name
   and collapse only the suite prefix. The full MarketDeck identity remains
   immediately available in the drawer. */
@media (max-width: 900px) {
  .sp-identity-suite,
  .sp-identity-divider { display: none; }
}

@media (max-width: 767px) {
  .sp-hero-media { display: none; }
  .sp-topbar-search { flex-basis: 100%; max-width: none; }
  .sp-topbar { height: auto; flex-wrap: wrap; padding: var(--sp-3) var(--sp-4); gap: var(--sp-2); position: static; }
  .sp-suite-nav { top: 0; }
  .sp-suite-nav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 34px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 14, 31, 0), var(--sp-topbar-surface));
  }
  .sp-suite-scroll {
    height: 46px;
    padding-inline: var(--sp-4) 42px;
    scroll-padding-inline: var(--sp-4);
  }
  .sp-suite-link { min-height: 36px; padding-inline: var(--sp-3); font-size: 13.5px; }
  .sp-v2 main.sp-content { padding: var(--sp-5) var(--sp-4) var(--sp-8); }
  .sp-hero-body { min-height: 0; padding: var(--sp-5); }
  /* The hero search stacks: field on one line, button under it. Each child
     is given `flex: 1 1 100%` rather than `width: 100%` — a flex item with
     `flex: 0 0 auto` and `width: 100%` resolves against the CONTAINER, not
     its line, so the button overflowed the form box and landed on top of
     the coverage figures below it. The input also needs an explicit height
     here: it inherits `height: 100%` from the shared rule above, which
     once the row wraps stretches it to the full line height. */
  .sp-hero-search { flex-wrap: wrap; padding: var(--sp-3); gap: var(--sp-3); align-items: center; }
  .sp-hero-search .sp-search-icon { display: none; }
  .sp-v2 .sp-hero-search input { flex: 1 1 100%; width: 100%; height: 44px; }
  .sp-hero-search .sp-btn { flex: 1 1 100%; width: auto; min-height: 44px; }
  .sp-screen-index { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-home .sp-research-pulse { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  .sp-v2 .sp-home .sp-pulse-heading { padding: 0; }
  .sp-v2 .sp-home .sp-pulse-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-v2 .sp-home .sp-pulse-data > div { padding: var(--sp-2) var(--sp-3); }
  .sp-v2 .sp-home .sp-pulse-data > div:nth-child(odd) { border-left: 0; }
  .sp-v2 .sp-home .sp-pulse-data dd { white-space: normal; }
  .sp-v2 .sp-home .sp-research-explorer { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .sp-v2 .sp-home .sp-feature-selector {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-right: 0;
    border-bottom: 1px solid var(--sp-line-mid);
    scrollbar-width: thin;
  }
  .sp-v2 .sp-home .sp-feature-select-form { flex: 0 0 194px; }
  .sp-v2 .sp-home .sp-feature-select {
    min-height: 52px;
    border-right: 1px solid var(--sp-line);
    border-bottom: 0;
    padding: var(--sp-3);
  }
  .sp-v2 .sp-home .sp-feature-select-form:last-child .sp-feature-select { border-right: 0; }
  .sp-v2 .sp-home .sp-feature-detail { min-height: 0; padding: var(--sp-5); }
  /* Touch targets. app.css's own 640px block sets .btn to a 44px minimum
     and .wl-btn to 40px; these match that convention rather than
     inventing a second one. Measured at 390px before this rule the drawer
     button was 36px and a toggle option 34px, both under it. */
  .sp-toggle-opt { line-height: 40px; padding: 0 var(--sp-3); }
  .sp-toggle-tag { line-height: 40px; }
  .sp-nav-item, .sp-product { min-height: 44px; }
  .sp-drawer-btn { width: 44px; height: 44px; flex-basis: 44px; }
  .sp-subitem { min-height: 40px; }
  .sp-subitem { min-height: 40px; display: flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-v2 * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .sp-v2 .sp-home .sp-hero-photo-settle,
  .sp-v2 .sp-home .sp-home-reveal,
  .sp-v2 .sp-home .sp-feature-detail-enter,
  .sp-v2 .sp-home .sp-section-link svg,
  .sp-v2 .sp-home .sp-feature-open svg,
  .sp-v2 .sp-home .sp-dest {
    animation: none !important;
    transform: none !important;
  }
}


/* ==========================================================================
   8d. SCREENER RESULTS WORKSPACE (SP-UI-004B4)
   ========================================================================== */

.sp-v2 .sp-screener .sp-sc-results {
  scroll-margin-top: 80px;
  margin-top: var(--sp-7);
  min-width: 0;
}

.sp-v2 .sp-screener .sp-sc-result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--sp-line-mid);
}

.sp-v2 .sp-screener .sp-sc-result-kicker,
.sp-v2 .sp-screener .sp-sc-active-query-label {
  margin: 0 0 4px;
  color: var(--sp-brand);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sp-v2 .sp-screener .sp-sc-result-head h2 {
  margin: 0;
  color: var(--sp-text);
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.018em;
  text-transform: none;
}

.sp-v2 .sp-screener .sp-sc-edit-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 36px;
  color: var(--sp-text-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.sp-v2 .sp-screener .sp-sc-edit-link:hover { color: var(--sp-text); }

.sp-v2 .sp-screener .sp-sc-summary-strip {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  min-width: 0;
  border-bottom: 1px solid var(--sp-line-mid);
  background: var(--sp-surface);
}

.sp-v2 .sp-screener .sp-sc-result-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0;
  min-width: 0;
}

.sp-v2 .sp-screener .sp-sc-result-counts > div {
  min-width: 112px;
  padding: var(--sp-4);
  border-right: 1px solid var(--sp-line);
}

.sp-v2 .sp-screener .sp-sc-result-counts dt,
.sp-v2 .sp-screener .sp-sc-condition-list dt {
  margin: 0 0 5px;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sp-v2 .sp-screener .sp-sc-result-counts dd {
  margin: 0;
  color: var(--sp-text);
  font-family: var(--sp-mono);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sp-v2 .sp-screener .sp-sc-active-query {
  min-width: 0;
  padding: var(--sp-4);
}

.sp-v2 .sp-screener .sp-sc-active-query-mode {
  margin: 0 0 var(--sp-2);
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-v2 .sp-screener .sp-sc-condition-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin: 0;
}

.sp-v2 .sp-screener .sp-sc-condition-list > div { min-width: min(100%, 118px); }

.sp-v2 .sp-screener .sp-sc-condition-list dd {
  margin: 0;
  max-width: 52ch;
  color: var(--sp-text);
  font-family: var(--sp-mono);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sp-v2 .sp-screener .sp-sc-formula-semantics {
  margin: 0;
  padding: 9px var(--sp-4);
  border-bottom: 1px solid var(--sp-line-mid);
  background: color-mix(in srgb, var(--sp-brand-tint) 28%, var(--sp-surface));
  color: var(--sp-text-2);
  font-size: 11.5px;
  line-height: 1.5;
}

.sp-v2 .sp-screener .sp-sc-result-context {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--sp-line-mid);
  background: color-mix(in srgb, var(--sp-raised) 58%, var(--sp-surface));
}

.sp-v2 .sp-screener .sp-sc-result-description,
.sp-v2 .sp-screener .sp-sc-result-disclosure,
.sp-v2 .sp-screener .sp-sc-result-method p {
  margin: 0;
  color: var(--sp-text-2);
  font-size: 12px;
  line-height: 1.55;
}

.sp-v2 .sp-screener .sp-sc-result-description strong { color: var(--sp-text); }

.sp-v2 .sp-screener .sp-sc-result-disclosure {
  margin-top: var(--sp-2);
  padding-left: var(--sp-3);
  border-left: 2px solid var(--sp-warn);
}

.sp-v2 .sp-screener .sp-sc-result-method { margin-top: var(--sp-2); }

.sp-v2 .sp-screener .sp-sc-result-method summary,
.sp-v2 .sp-screener .sp-sc-criteria summary,
.sp-v2 .sp-screener .sp-sc-unjudged summary {
  color: var(--sp-text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sp-v2 .sp-screener .sp-sc-result-method summary:hover,
.sp-v2 .sp-screener .sp-sc-criteria summary:hover,
.sp-v2 .sp-screener .sp-sc-unjudged summary:hover { color: var(--sp-text); }

.sp-v2 .sp-screener .sp-sc-result-method p { margin-top: var(--sp-2); max-width: 92ch; }

.sp-v2 .sp-screener .sp-sc-result-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--sp-line-mid);
  background: var(--sp-raised);
}

.sp-v2 .sp-screener .sp-sc-tool-group {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--sp-2);
  min-width: 0;
  flex: 1 1 620px;
}

.sp-v2 .sp-screener .sp-sc-tool-link,
.sp-v2 .sp-screener .sp-sc-tool-panel > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  background: var(--sp-surface);
  color: var(--sp-text-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.sp-v2 .sp-screener .sp-sc-tool-panel > summary::-webkit-details-marker { display: none; }

.sp-v2 .sp-screener .sp-sc-tool-panel > summary span {
  margin-left: var(--sp-2);
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 10px;
}

.sp-v2 .sp-screener .sp-sc-tool-link:hover,
.sp-v2 .sp-screener .sp-sc-tool-panel > summary:hover,
.sp-v2 .sp-screener .sp-sc-tool-panel[open] > summary {
  border-color: var(--sp-brand-line);
  color: var(--sp-text);
  background: var(--sp-brand-tint);
}

.sp-v2 .sp-screener .sp-sc-tool-panel[open] { flex: 1 0 100%; }

.sp-v2 .sp-screener .sp-sc-tool-popover {
  margin-top: var(--sp-2);
  padding: var(--sp-4);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
  background: var(--sp-surface);
}

.sp-v2 .sp-screener .sp-sc-tool-popover > p {
  max-width: 78ch;
  margin: 0 0 var(--sp-3);
  color: var(--sp-text-2);
  font-size: 12px;
  line-height: 1.5;
}

.sp-v2 .sp-screener .sp-sc-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-bottom: var(--sp-3);
  background: var(--sp-line);
  border: 1px solid var(--sp-line);
}

.sp-v2 .sp-screener .sp-sc-column-grid label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 38px;
  padding: var(--sp-2) var(--sp-3);
  background: var(--sp-raised);
  color: var(--sp-text-2);
  font-size: 12px;
  cursor: pointer;
}

.sp-v2 .sp-screener .sp-sc-column-grid input { accent-color: var(--sp-brand); }

.sp-v2 .sp-screener .sp-sc-tool-apply {
  min-height: 34px;
  border-color: var(--sp-brand-line);
  background: var(--sp-brand-tint);
  color: var(--sp-text);
  font-size: 12px;
}

.sp-v2 .sp-screener .sp-sc-toolbar-range {
  margin: 8px 0 0;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  white-space: nowrap;
}

.sp-v2 .sp-screener .sp-sc-share-popover { max-width: 900px; }
.sp-v2 .sp-screener .sp-sc-share-create { margin: 0; }
.sp-v2 .sp-screener .sp-sc-tool-muted { color: var(--sp-text-3) !important; }

.sp-v2 .sp-screener .sp-sc-share-list {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--sp-line);
}

.sp-v2 .sp-screener .sp-sc-share-row { display: grid; gap: var(--sp-2); }

.sp-v2 .sp-screener .sp-sc-share-row > label {
  color: var(--sp-text-2);
  font-size: 12px;
  font-weight: 600;
}

.sp-v2 .sp-screener .sp-sc-share-url-wrap { display: flex; gap: var(--sp-2); min-width: 0; }

.sp-v2 .sp-screener .sp-sc-share-url-wrap input {
  min-width: 0;
  flex: 1 1 auto;
  background: var(--sp-raised);
  border-color: var(--sp-line-mid);
  color: var(--sp-text-2);
  font-family: var(--sp-mono);
  font-size: 11px;
}

.sp-v2 .sp-screener .sp-sc-share-copy { flex: 0 0 auto; }

.sp-v2 .sp-screener .sp-sc-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.sp-v2 .sp-screener .sp-sc-share-actions form { margin: 0; }

.sp-v2 .sp-screener .sp-sc-table-workspace {
  min-width: 0;
  border-right: 1px solid var(--sp-line-mid);
  border-left: 1px solid var(--sp-line-mid);
  background: var(--sp-surface);
}

.sp-v2 .sp-screener .sp-sc-table-scroll {
  width: 100%;
  max-width: 100%;
  max-height: min(72vh, 760px);
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: var(--sp-surface);
}

.sp-v2 .sp-screener .sp-sc-table-scroll:focus-visible {
  outline: 2px solid var(--sp-brand);
  outline-offset: -2px;
}

.sp-v2 .sp-screener .sp-sc-data-table {
  width: 100%;
  min-width: 1000px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--sp-surface);
  color: var(--sp-text);
  table-layout: auto;
}

.sp-v2 .sp-screener .sp-sc-data-table--preset { min-width: 1120px; }
.sp-v2 .sp-screener .sp-sc-data-table--formula { min-width: 1040px; }
.sp-v2 .sp-screener .sp-sc-data-table--plain { min-width: 1000px; }
.sp-v2 .sp-screener .sp-sc-share-panel { min-width: 0; }
.sp-v2 .sp-screener .sp-sc-stale-row { background: var(--sp-surface); }

.sp-v2 .sp-screener .sp-sc-data-table > thead > tr > th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 10px 12px;
  border-bottom: 1px solid var(--sp-line-strong);
  background: var(--sp-raised);
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 600;
  letter-spacing: 0.065em;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.sp-v2 .sp-screener .sp-sc-data-table > tbody > tr > th,
.sp-v2 .sp-screener .sp-sc-data-table > tbody > tr > td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--sp-line);
  background: var(--sp-surface);
  color: var(--sp-text-2);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  vertical-align: middle;
}

.sp-v2 .sp-screener .sp-sc-data-table > tbody > tr:hover > th,
.sp-v2 .sp-screener .sp-sc-data-table > tbody > tr:hover > td {
  background: color-mix(in srgb, var(--sp-brand-tint) 28%, var(--sp-surface));
}

.sp-v2 .sp-screener .sp-sc-data-table .sp-sc-ticker-col {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 128px;
  border-right: 1px solid var(--sp-line-mid);
  box-shadow: 7px 0 12px var(--sp-line);
}

.sp-v2 .sp-screener .sp-sc-data-table > thead .sp-sc-ticker-col { z-index: 4; background: var(--sp-raised); }

.sp-v2 .sp-screener .sp-sc-num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sp-v2 .sp-screener .sp-sc-ticker-link {
  color: var(--sp-link);
  font-family: var(--sp-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.sp-v2 .sp-screener .sp-sc-ticker-link:hover { color: var(--sp-text); text-decoration: underline; }

.sp-v2 .sp-screener .sp-sc-company {
  min-width: 170px;
  max-width: 230px;
  color: var(--sp-text) !important;
  font-weight: 500 !important;
}

.sp-v2 .sp-screener .sp-sc-sector {
  min-width: 132px;
  max-width: 175px;
  color: var(--sp-text-3) !important;
}

.sp-v2 .sp-screener .sp-sc-price { color: var(--sp-text) !important; }

.sp-v2 .sp-screener .sp-sc-stale {
  display: block;
  width: max-content;
  margin: 3px 0 0 auto;
  padding: 1px 5px;
  border: 1px solid color-mix(in srgb, var(--sp-warn) 44%, transparent);
  border-radius: 2px;
  background: var(--sp-warn-tint);
  color: var(--sp-warn);
  font-family: var(--sp-mono);
  font-size: 9px;
  line-height: 1.3;
  text-transform: uppercase;
}

.sp-v2 .sp-screener .sp-sc-trend-col { min-width: 82px; }
.sp-v2 .sp-screener .sp-sc-trend svg { display: block; width: 64px; height: 24px; margin-left: auto; }

.sp-v2 .sp-screener .sp-sc-na {
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 11px;
}

.sp-v2 .sp-screener .sp-sc-asof { min-width: 128px; }

.sp-v2 .sp-screener .sp-sc-period,
.sp-v2 .sp-screener .sp-sc-newer {
  display: block;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 10px;
  line-height: 1.45;
  white-space: nowrap;
}

.sp-v2 .sp-screener .sp-sc-newer { margin-top: 3px; color: var(--sp-warn); }
.sp-v2 .sp-screener .sp-sc-muted { color: var(--sp-text-3); }

.sp-v2 .sp-screener .sp-sc-watchlist { min-width: 92px; }
.sp-v2 .sp-screener .sp-sc-watchlist form { margin: 0; }

.sp-v2 .sp-screener .sp-sc-watch-button,
.sp-v2 .sp-screener .sp-sc-watch-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  background: transparent;
  color: var(--sp-text-3);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.sp-v2 .sp-screener .sp-sc-watch-button:hover,
.sp-v2 .sp-screener .sp-sc-watch-login:hover {
  border-color: var(--sp-brand-line);
  background: var(--sp-brand-tint);
  color: var(--sp-text);
}

.sp-v2 .sp-screener .sp-sc-screen-reading { min-width: 170px; }

.sp-v2 .sp-screener .sp-sc-stamp {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 6px;
  border: 1px solid var(--sp-line-mid);
  border-radius: 2px;
  color: var(--sp-text-2);
  font-family: var(--sp-mono);
  font-size: 9.5px;
  line-height: 1.35;
}

.sp-v2 .sp-screener .sp-sc-stamp--pass,
.sp-v2 .sp-screener .sp-sc-stamp--strong { border-color: var(--sp-pos); color: var(--sp-pos); }
.sp-v2 .sp-screener .sp-sc-stamp--weak { border-color: var(--sp-neg); color: var(--sp-neg); }

.sp-v2 .sp-screener .sp-sc-score {
  display: block;
  color: var(--sp-text-3);
  font-size: 10.5px;
  line-height: 1.4;
}

.sp-v2 .sp-screener .sp-sc-criteria-cell { min-width: 122px; }
.sp-v2 .sp-screener .sp-sc-criteria { min-width: 0; }

.sp-v2 .sp-screener .sp-sc-criteria-scroll {
  width: min(680px, 70vw);
  max-width: 680px;
  margin-top: var(--sp-2);
  overflow-x: auto;
  border: 1px solid var(--sp-line-mid);
  background: var(--sp-raised);
}

.sp-v2 .sp-screener .sp-sc-criteria-table {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}

.sp-v2 .sp-screener .sp-sc-criteria-table th,
.sp-v2 .sp-screener .sp-sc-criteria-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--sp-line);
  background: var(--sp-raised);
  color: var(--sp-text-2);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.sp-v2 .sp-screener .sp-sc-criteria-table thead th {
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sp-v2 .sp-screener .sp-sc-criteria-table tbody th { min-width: 190px; color: var(--sp-text); }
.sp-v2 .sp-screener .sp-sc-criteria-table tbody th > span { display: block; }
.sp-v2 .sp-screener .sp-sc-met { margin-bottom: 2px; color: var(--sp-pos); font-weight: 600; }
.sp-v2 .sp-screener .sp-sc-unmet { margin-bottom: 2px; color: var(--sp-neg); font-weight: 600; }
.sp-v2 .sp-screener .sp-sc-citation { min-width: 210px; color: var(--sp-text-3) !important; font-family: var(--sp-mono); }
.sp-v2 .sp-screener .sp-sc-criterion-na th,
.sp-v2 .sp-screener .sp-sc-criterion-na td { background: color-mix(in srgb, var(--sp-warn-tint) 48%, var(--sp-raised)); }
.sp-v2 .sp-screener .sp-sc-criterion-unmet th,
.sp-v2 .sp-screener .sp-sc-criterion-unmet td { background: color-mix(in srgb, var(--sp-neg) 4%, var(--sp-raised)); }

.sp-v2 .sp-screener .sp-sc-unjudged {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--sp-line-mid);
  border-left: 3px solid var(--sp-warn);
  border-radius: var(--sp-r);
  background: color-mix(in srgb, var(--sp-warn-tint) 32%, var(--sp-surface));
}

.sp-v2 .sp-screener .sp-sc-unjudged-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
}

.sp-v2 .sp-screener .sp-sc-unjudged-head p,
.sp-v2 .sp-screener .sp-sc-provenance-label {
  margin: 0 0 4px;
  color: var(--sp-warn);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-v2 .sp-screener .sp-sc-unjudged-head h3,
.sp-v2 .sp-screener .sp-sc-provenance h3 {
  margin: 0;
  color: var(--sp-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}

.sp-v2 .sp-screener .sp-sc-unjudged-head > span {
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.03em;
  text-align: right;
}

.sp-v2 .sp-screener .sp-sc-unjudged-explainer {
  max-width: 90ch;
  margin: var(--sp-3) 0;
  color: var(--sp-text-2);
  font-size: 12px;
  line-height: 1.55;
}

.sp-v2 .sp-screener .sp-sc-unjudged-list { margin: 0; }
.sp-v2 .sp-screener .sp-sc-unjudged-list > summary { width: max-content; max-width: 100%; }
.sp-v2 .sp-screener .sp-sc-unjudged-list ul {
  display: grid;
  gap: 1px;
  max-height: 420px;
  margin: var(--sp-3) 0 0;
  padding: 1px;
  overflow: auto;
  background: var(--sp-line);
  border: 1px solid var(--sp-line);
  list-style: none;
}
.sp-v2 .sp-screener .sp-sc-unjudged-list li {
  display: grid;
  grid-template-columns: minmax(118px, 0.55fr) minmax(180px, 1fr) minmax(220px, 1.2fr);
  gap: var(--sp-3);
  align-items: baseline;
  padding: 9px var(--sp-3);
  background: var(--sp-surface);
  color: var(--sp-text-2);
  font-size: 11px;
  line-height: 1.45;
}
.sp-v2 .sp-screener .sp-sc-unjudged-list li a { color: var(--sp-link); font-family: var(--sp-mono); font-weight: 600; }
.sp-v2 .sp-screener .sp-sc-unjudged-company { color: var(--sp-text); }
.sp-v2 .sp-screener .sp-sc-unjudged-reason { color: var(--sp-text-3); }
.sp-v2 .sp-screener .sp-sc-unjudged-reason strong { color: var(--sp-text-2); font-weight: 600; }

.sp-v2 .sp-screener .sp-sc-provenance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--sp-4);
  border-top: 1px solid var(--sp-line-mid);
  border-bottom: 1px solid var(--sp-line-mid);
  background: var(--sp-surface);
}

.sp-v2 .sp-screener .sp-sc-provenance > section {
  min-width: 0;
  padding: var(--sp-4);
}

.sp-v2 .sp-screener .sp-sc-provenance > section + section { border-left: 1px solid var(--sp-line); }
.sp-v2 .sp-screener .sp-sc-provenance-label { color: var(--sp-brand); }
.sp-v2 .sp-screener .sp-sc-provenance section > p:last-child {
  max-width: 70ch;
  margin: var(--sp-2) 0 0;
  color: var(--sp-text-2);
  font-size: 11.5px;
  line-height: 1.55;
}

.sp-v2 .sp-screener .sp-sc-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--sp-line-mid);
  background: var(--sp-raised);
}

.sp-v2 .sp-screener .sp-sc-pagination p {
  margin: 0;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
}

.sp-v2 .sp-screener .sp-sc-pagination > div { display: flex; align-items: center; gap: var(--sp-2); }
.sp-v2 .sp-screener .sp-sc-page-numbers { display: flex; flex-wrap: wrap; gap: 4px; }
.sp-v2 .sp-screener .sp-sc-page-numbers a { min-width: 32px; padding-inline: 8px; justify-content: center; }
.sp-v2 .sp-screener .sp-sc-page-numbers a[aria-current="page"] { border-color: var(--sp-brand-line); color: var(--sp-text); font-weight: 600; }

.sp-v2 .sp-screener .sp-sc-pagination a,
.sp-v2 .sp-screener .sp-sc-page-current,
.sp-v2 .sp-screener .sp-sc-page-disabled {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  background: var(--sp-surface);
  color: var(--sp-text-2);
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.sp-v2 .sp-screener .sp-sc-pagination a:hover { border-color: var(--sp-brand-line); color: var(--sp-text); }
.sp-v2 .sp-screener .sp-sc-page-current { border-color: transparent; background: transparent; color: var(--sp-text); font-family: var(--sp-mono); }
.sp-v2 .sp-screener .sp-sc-page-disabled { opacity: 0.48; }

.sp-v2 .sp-screener .sp-sc-zero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px dashed var(--sp-line-mid);
  border-radius: var(--sp-r);
  background: var(--sp-surface);
}

.sp-v2 .sp-screener .sp-sc-tool-link:focus-visible,
.sp-v2 .sp-screener .sp-sc-tool-panel > summary:focus-visible,
.sp-v2 .sp-screener .sp-sc-edit-link:focus-visible,
.sp-v2 .sp-screener .sp-sc-watch-button:focus-visible,
.sp-v2 .sp-screener .sp-sc-watch-login:focus-visible,
.sp-v2 .sp-screener .sp-sc-pagination a:focus-visible,
.sp-v2 .sp-screener .sp-sc-criteria summary:focus-visible,
.sp-v2 .sp-screener .sp-sc-unjudged-list summary:focus-visible {
  outline: 2px solid var(--sp-brand);
  outline-offset: 2px;
}

@media (max-width: 780px) {
  .sp-v2 .sp-screener .sp-sc-summary-strip { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-screener .sp-sc-result-counts { border-bottom: 1px solid var(--sp-line); }
  .sp-v2 .sp-screener .sp-sc-result-counts > div { flex: 1 1 108px; }
  .sp-v2 .sp-screener .sp-sc-result-toolbar { align-items: stretch; }
  .sp-v2 .sp-screener .sp-sc-tool-group { flex-basis: 100%; }
  .sp-v2 .sp-screener .sp-sc-toolbar-range { margin-top: 0; }
  .sp-v2 .sp-screener .sp-sc-table-scroll { max-height: 68vh; }
  .sp-v2 .sp-screener .sp-sc-unjudged-list li { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}

@media (max-width: 520px) {
  .sp-v2 .sp-screener .sp-sc-result-head { align-items: center; }
  .sp-v2 .sp-screener .sp-sc-result-counts > div { min-width: 0; padding: var(--sp-3); }
  .sp-v2 .sp-screener .sp-sc-result-counts dd { font-size: 18px; }
  .sp-v2 .sp-screener .sp-sc-active-query,
  .sp-v2 .sp-screener .sp-sc-result-context,
  .sp-v2 .sp-screener .sp-sc-result-toolbar,
  .sp-v2 .sp-screener .sp-sc-pagination { padding: var(--sp-3); }
  .sp-v2 .sp-screener .sp-sc-condition-list { display: grid; gap: var(--sp-2); }
  .sp-v2 .sp-screener .sp-sc-tool-link,
  .sp-v2 .sp-screener .sp-sc-tool-panel > summary { min-height: 36px; }
  .sp-v2 .sp-screener .sp-sc-tool-popover { padding: var(--sp-3); }
  .sp-v2 .sp-screener .sp-sc-column-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-v2 .sp-screener .sp-sc-pagination { align-items: stretch; }
  .sp-v2 .sp-screener .sp-sc-pagination > div { width: 100%; justify-content: space-between; }
  .sp-v2 .sp-screener .sp-sc-formula-semantics { padding: 9px var(--sp-3); }
  .sp-v2 .sp-screener .sp-sc-unjudged { padding: var(--sp-3); }
  .sp-v2 .sp-screener .sp-sc-unjudged-head { align-items: flex-start; flex-direction: column; gap: var(--sp-2); }
  .sp-v2 .sp-screener .sp-sc-unjudged-head > span { text-align: left; }
  .sp-v2 .sp-screener .sp-sc-provenance { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-screener .sp-sc-provenance > section { padding: var(--sp-3); }
  .sp-v2 .sp-screener .sp-sc-provenance > section + section { border-top: 1px solid var(--sp-line); border-left: 0; }
  .sp-v2 .sp-screener .sp-sc-pagination a,
  .sp-v2 .sp-screener .sp-sc-page-current,
  .sp-v2 .sp-screener .sp-sc-page-disabled { padding-inline: var(--sp-2); }
  .sp-v2 .sp-screener .sp-sc-zero { align-items: flex-start; flex-wrap: wrap; }
}


/* ==========================================================================
   8. SCREENER WORKBENCH (SP-UI-004B1 — shell, header and containment only)

   The Screener keeps its legacy builder and result partials during S1. This
   layer gives that existing functionality a V2 research frame without
   changing shared partials used by Watchlist, Browse all companies and the
   public shared view. Every rule is scoped to this page's `sp-screener`
   main class. Preset discovery and the core filter hierarchy are S2-owned;
   formula and result-table design stay deliberately transitional until S3
   and S4 respectively.
   ========================================================================== */

.sp-v2 .sp-screener {
  min-width: 0;
}

.sp-v2 .sp-screener .sp-sc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--sp-line-mid);
}

.sp-v2 .sp-screener .sp-sc-head-copy {
  min-width: 0;
}

.sp-v2 .sp-screener .sp-sc-eyebrow,
.sp-v2 .sp-screener .sp-sc-section-kicker,
.sp-v2 .sp-screener .sp-sc-empty-kicker {
  margin: 0 0 var(--sp-2);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-brand);
}

.sp-v2 .sp-screener .sp-sc-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--sp-text);
}

.sp-v2 .sp-screener .sp-sc-lede {
  margin: var(--sp-3) 0 0;
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--sp-text-2);
}

.sp-v2 .sp-screener .sp-sc-utility,
.sp-v2 .sp-screener .sp-sc-empty-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--sp-link);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.sp-v2 .sp-screener .sp-sc-utility:hover,
.sp-v2 .sp-screener .sp-sc-empty-link:hover {
  color: var(--sp-text);
}

.sp-v2 .sp-screener .sp-sc-basis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 var(--sp-7);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
  background: var(--sp-surface);
  overflow: hidden;
}

.sp-v2 .sp-screener .sp-sc-basis-cell {
  min-width: 0;
  padding: var(--sp-3) var(--sp-4);
  border-left: 1px solid var(--sp-line);
}

.sp-v2 .sp-screener .sp-sc-basis-cell:first-child {
  border-left: 0;
}

.sp-v2 .sp-screener .sp-sc-basis-cell--attention {
  background: var(--sp-warn-tint);
}

.sp-v2 .sp-screener .sp-sc-basis-cell dt {
  margin: 0 0 5px;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-text-3);
}

.sp-v2 .sp-screener .sp-sc-basis-cell dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sp-text);
}

/* Preset discovery — make the curated screen registry a first-class entry point. */
.sp-v2 .sp-screener .sp-sc-presets {
  margin: var(--sp-6) 0 var(--sp-7, 40px);
}

.sp-v2 .sp-screener .sp-sc-presets-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
}

.sp-v2 .sp-screener .sp-sc-presets-head h2 {
  margin: 0;
  color: var(--sp-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-transform: none;
}

.sp-v2 .sp-screener .sp-sc-presets-lede {
  max-width: 72ch;
  margin: var(--sp-2) 0 0;
  color: var(--sp-text-2);
  font-size: 13px;
  line-height: 1.55;
}

.sp-v2 .sp-screener .sp-sc-presets-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sp-v2 .sp-screener .sp-sc-presets-count strong {
  color: var(--sp-brand);
  font-size: 13px;
  font-weight: 600;
}

.sp-v2 .sp-screener .sp-sc-presets-count span {
  margin-inline: 5px;
  color: var(--sp-line-strong);
}

.sp-v2 .sp-screener .sp-sc-preset-groups {
  display: grid;
  gap: var(--sp-5);
}

.sp-v2 .sp-screener .sp-sc-preset-group {
  min-width: 0;
}

.sp-v2 .sp-screener .sp-sc-preset-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--sp-line);
}

.sp-v2 .sp-screener .sp-sc-preset-group-head h3 {
  margin: 0;
  color: var(--sp-text-2);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.085em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sp-v2 .sp-screener .sp-sc-preset-group-head > span {
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sp-v2 .sp-screener .sp-sc-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}

.sp-v2 .sp-screener .sp-sc-preset-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 166px;
  padding: var(--sp-4);
  flex-direction: column;
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
  background: var(--sp-raised);
  color: var(--sp-text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.sp-v2 .sp-screener .sp-sc-preset-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--sp-line-strong);
  transition: background 140ms ease;
}

.sp-v2 .sp-screener .sp-sc-preset-card:hover {
  border-color: var(--sp-brand-line);
  background: color-mix(in srgb, var(--sp-brand-tint) 38%, var(--sp-raised));
  transform: translateY(-1px);
}

.sp-v2 .sp-screener .sp-sc-preset-card:hover::before,
.sp-v2 .sp-screener .sp-sc-preset-card.is-active::before {
  background: var(--sp-brand);
}

.sp-v2 .sp-screener .sp-sc-preset-card:focus-visible {
  outline: 2px solid var(--sp-brand);
  outline-offset: 2px;
}

.sp-v2 .sp-screener .sp-sc-preset-card.is-active {
  border-color: var(--sp-brand);
  background: color-mix(in srgb, var(--sp-brand-tint) 50%, var(--sp-raised));
}

.sp-v2 .sp-screener .sp-sc-preset-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.sp-v2 .sp-screener .sp-sc-preset-kind,
.sp-v2 .sp-screener .sp-sc-preset-scope {
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.sp-v2 .sp-screener .sp-sc-preset-kind {
  color: var(--sp-brand);
}

.sp-v2 .sp-screener .sp-sc-preset-scope {
  color: var(--sp-text-3);
  text-align: right;
}

.sp-v2 .sp-screener .sp-sc-preset-card h4 {
  margin: 0;
  color: var(--sp-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
}

.sp-v2 .sp-screener .sp-sc-preset-card > p {
  margin: var(--sp-2) 0 var(--sp-4);
  color: var(--sp-text-2);
  font-size: 12.5px;
  line-height: 1.5;
}

.sp-v2 .sp-screener .sp-sc-preset-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--sp-text-2);
  font-size: 12px;
  font-weight: 600;
}

.sp-v2 .sp-screener .sp-sc-preset-card-action > span {
  color: var(--sp-brand);
  transition: transform 140ms ease;
}

.sp-v2 .sp-screener .sp-sc-preset-card:hover .sp-sc-preset-card-action > span {
  transform: translateX(2px);
}

.sp-v2 .sp-screener .sp-sc-builder-region {
  margin-bottom: var(--sp-5);
}

.sp-v2 .sp-screener .sp-sc-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-3);
}

.sp-v2 .sp-screener .sp-sc-section-head h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sp-text);
  text-transform: none;
}

.sp-v2 .sp-screener .sp-sc-section-head > p {
  max-width: 58ch;
  margin: 0;
  font-size: var(--sp-t-meta);
  line-height: 1.45;
  color: var(--sp-text-3);
  text-align: right;
}

.sp-v2 .sp-screener .sp-sc-builder {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--sp-line-mid);
  border-bottom: 1px solid var(--sp-line-mid);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.sp-v2 .sp-screener .sp-sc-builder::before {
  display: none;
}

.sp-v2 .sp-screener .sp-sc-builder-block {
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--sp-line);
}

.sp-v2 .sp-screener .sp-sc-builder-block:first-child {
  border-top: 0;
}

.sp-v2 .sp-screener .sp-sc-builder-block--preset {
  background: transparent;
}

.sp-v2 .sp-screener .sp-sc-builder-block-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.sp-v2 .sp-screener .sp-sc-builder-block-head > p {
  max-width: 56ch;
  margin: 0 0 0 auto;
  color: var(--sp-text-3);
  font-size: var(--sp-t-meta);
  line-height: 1.45;
  text-align: right;
}

.sp-v2 .sp-screener .sp-sc-block-kicker {
  margin: 0 0 3px;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-v2 .sp-screener .sp-sc-builder-block-head h3 {
  margin: 0;
  color: var(--sp-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}

.sp-v2 .sp-screener .sp-sc-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--sp-r);
  color: var(--sp-text-2);
  background: var(--sp-raised);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
}

.sp-v2 .sp-screener .sp-sc-preset-layout {
  max-width: 38rem;
}

.sp-v2 .sp-screener .sp-sc-preset-layout--active {
  display: grid;
  grid-template-columns: minmax(17rem, 0.8fr) minmax(22rem, 1.2fr);
  align-items: start;
  gap: var(--sp-4);
  max-width: none;
}

.sp-v2 .sp-screener .sp-sc-preset-context {
  min-width: 0;
  padding: var(--sp-4);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
  background: var(--sp-raised);
}

.sp-v2 .sp-screener .sp-sc-preset-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.sp-v2 .sp-screener .sp-sc-preset-meta span {
  color: var(--sp-brand);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-v2 .sp-screener .sp-sc-preset-meta span + span {
  padding-left: var(--sp-2);
  border-left: 1px solid var(--sp-line-mid);
  color: var(--sp-text-3);
}

.sp-v2 .sp-screener .sp-sc-preset-context h3 {
  margin: 0;
  color: var(--sp-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
}

.sp-v2 .sp-screener .sp-sc-preset-description {
  margin: var(--sp-2) 0 0;
  color: var(--sp-text-2);
  font-size: 13px;
  line-height: 1.5;
}

.sp-v2 .sp-screener .sp-sc-preset-disclosure {
  margin: var(--sp-3) 0 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--sp-line);
  color: var(--sp-text-3);
  font-size: 12px;
  line-height: 1.5;
}

.sp-v2 .sp-screener .sp-sc-preset-disclosure strong {
  display: block;
  margin-bottom: 3px;
  color: var(--sp-text-2);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sp-v2 .sp-screener .sp-sc-core-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 1.35fr) minmax(12rem, 1.2fr) minmax(8rem, 0.7fr) minmax(9rem, 0.8fr);
  gap: var(--sp-4);
}

.sp-v2 .sp-screener .sp-sc-field label {
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.07em;
}

.sp-v2 .sp-screener .sp-sc-unit {
  color: var(--sp-text-2);
  letter-spacing: 0;
  text-transform: none;
}

.sp-v2 .sp-screener .sp-sc-field input,
.sp-v2 .sp-screener .sp-sc-field select {
  border-color: var(--sp-line-mid);
  background: var(--sp-raised);
  color: var(--sp-text);
}

.sp-v2 .sp-screener .sp-sc-field input:hover,
.sp-v2 .sp-screener .sp-sc-field select:hover,
.sp-v2 .sp-screener .sp-sc-field input:focus,
.sp-v2 .sp-screener .sp-sc-field select:focus {
  border-color: var(--sp-brand-line);
}

.sp-v2 .sp-screener .sp-sc-field--preset select {
  width: 100%;
}

.sp-v2 .sp-screener .sp-sc-field-help {
  margin-top: var(--sp-2);
  color: var(--sp-text-3);
  font-size: 11px;
  line-height: 1.4;
}

.sp-v2 .sp-screener .sp-sc-field--formula {
  min-width: 0;
}

.sp-v2 .sp-screener .sp-sc-field--formula input {
  width: 100%;
  min-height: 46px;
  padding-inline: var(--sp-4);
  font-family: var(--sp-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.005em;
}

.sp-v2 .sp-screener .sp-sc-formula-help {
  display: block;
  max-width: 78ch;
  margin-top: var(--sp-2);
  font-family: var(--sp-font);
  font-size: 12px;
  line-height: 1.5;
}

.sp-v2 .sp-screener .sp-sc-inline-code {
  color: var(--sp-text-2);
  font-family: var(--sp-mono);
}

.sp-v2 .sp-screener .sp-sc-formula-help a {
  font-weight: 600;
}

.sp-v2 .sp-screener .sp-sc-field--invalid input,
.sp-v2 .sp-screener .sp-sc-field--invalid input:hover {
  border-color: var(--sp-neg);
  background: color-mix(in srgb, var(--sp-neg) 6%, var(--sp-raised));
}

.sp-v2 .sp-screener .sp-sc-field--invalid input:focus {
  border-color: var(--sp-neg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-neg) 18%, transparent);
}

.sp-v2 .sp-screener .sp-sc-formula-errors {
  margin: var(--sp-3) 0 0;
  padding: var(--sp-3) var(--sp-4);
  list-style: none;
  color: var(--sp-neg);
  background: color-mix(in srgb, var(--sp-neg) 8%, var(--sp-surface));
  border: 1px solid color-mix(in srgb, var(--sp-neg) 44%, transparent);
  border-left: 3px solid var(--sp-neg);
  border-radius: var(--sp-r-sm);
  font-family: var(--sp-font);
  font-size: 13px;
  line-height: 1.55;
}

.sp-v2 .sp-screener .sp-sc-formula-errors li {
  margin: 0;
}

.sp-v2 .sp-screener .sp-sc-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--sp-line);
  background: transparent;
}

.sp-v2 .sp-screener .sp-sc-actions > p {
  margin: 0;
  color: var(--sp-text-3);
  font-size: var(--sp-t-meta);
}

.sp-v2 .sp-screener .sp-sc-actions-buttons {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.sp-v2 .sp-screener .sp-sc-run {
  border-color: transparent;
  background: var(--sp-brand);
  color: var(--sp-on-brand);
  min-width: 112px;
}

.sp-v2 .sp-screener .sp-sc-run:hover {
  background: var(--sp-brand-hi);
}

.sp-v2 .sp-screener .sp-sc-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: var(--sp-text-3);
  font-size: 13px;
  text-decoration: none;
}

.sp-v2 .sp-screener .sp-sc-clear:hover {
  color: var(--sp-text);
}

.sp-v2 .sp-screener .sp-sc-support,
.sp-v2 .sp-screener .sp-sc-results {
  min-width: 0;
}

.sp-v2 .sp-screener .sp-sc-support {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.sp-v2 .sp-screener .sp-sc-neutrality {
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  color: var(--sp-text-2);
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-left: 2px solid var(--sp-line-strong);
  border-radius: var(--sp-r);
  font-size: 12.5px;
  line-height: 1.6;
}

.sp-v2 .sp-screener .sp-sc-neutrality strong {
  color: var(--sp-text);
  font-weight: 600;
}

.sp-v2 .sp-screener .sp-sc-disclosure {
  min-width: 0;
  margin: 0;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
  overflow: clip;
}

.sp-v2 .sp-screener .sp-sc-disclosure > summary {
  display: list-item;
  min-height: 50px;
  padding: var(--sp-3) var(--sp-4);
  color: var(--sp-text);
  background: var(--sp-raised);
  cursor: pointer;
  list-style-position: inside;
}

.sp-v2 .sp-screener .sp-sc-disclosure > summary::marker {
  color: var(--sp-brand);
}

.sp-v2 .sp-screener .sp-sc-disclosure > summary:hover {
  color: var(--sp-text);
  background: color-mix(in srgb, var(--sp-brand-tint) 35%, var(--sp-raised));
}

.sp-v2 .sp-screener .sp-sc-disclosure > summary:focus-visible {
  outline: 2px solid var(--sp-brand);
  outline-offset: -3px;
}

.sp-v2 .sp-screener .sp-sc-disclosure[open] > summary {
  border-bottom: 1px solid var(--sp-line-mid);
}

.sp-v2 .sp-screener .sp-sc-summary-title {
  min-width: 0;
  margin-left: var(--sp-2);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.sp-v2 .sp-screener .sp-sc-summary-meta {
  float: right;
  margin: 3px 0 0 var(--sp-4);
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sp-v2 .sp-screener .sp-sc-disclosure-body {
  min-width: 0;
  padding: var(--sp-4);
}

.sp-v2 .sp-screener .sp-sc-guide {
  display: grid;
  grid-template-columns: minmax(10rem, 0.34fr) minmax(0, 1.66fr);
  gap: var(--sp-4);
  margin: 0;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--sp-line);
}

.sp-v2 .sp-screener .sp-sc-guide:first-child {
  padding-top: 0;
}

.sp-v2 .sp-screener .sp-sc-guide > div:first-child {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: baseline;
  gap: var(--sp-2);
}

.sp-v2 .sp-screener .sp-sc-guide-index {
  margin: 0;
  color: var(--sp-brand);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.08em;
}

.sp-v2 .sp-screener .sp-sc-guide h3 {
  margin: 0;
  color: var(--sp-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
}

.sp-v2 .sp-screener .sp-sc-guide > p,
.sp-v2 .sp-screener .sp-sc-guide-copy > p {
  margin: 0;
  color: var(--sp-text-2);
  font-size: 13px;
  line-height: 1.6;
}

.sp-v2 .sp-screener .sp-sc-guide-copy {
  display: grid;
  gap: var(--sp-3);
}

.sp-v2 .sp-screener .sp-sc-examples {
  display: grid;
  gap: var(--sp-2);
  min-width: 0;
}

.sp-v2 .sp-screener .sp-sc-examples code {
  display: block;
  min-width: 0;
  padding: 8px 10px;
  color: var(--sp-text);
  background: var(--sp-raised);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r-sm);
  font-family: var(--sp-mono);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.sp-v2 .sp-screener .sp-sc-guide--inventory {
  padding-bottom: var(--sp-3);
  border-bottom: 0;
}

.sp-v2 .sp-screener .sp-sc-availability-note {
  margin: 0 0 var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  color: var(--sp-text-2);
  background: var(--sp-warn-tint);
  border-left: 2px solid var(--sp-warn);
  border-radius: 0 var(--sp-r-sm) var(--sp-r-sm) 0;
  font-size: 12px;
  line-height: 1.55;
}

.sp-v2 .sp-screener .sp-sc-metric-group + .sp-sc-metric-group {
  margin-top: var(--sp-5);
}

.sp-v2 .sp-screener .sp-sc-metric-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.sp-v2 .sp-screener .sp-sc-metric-group-head h4 {
  margin: 0;
  color: var(--sp-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.sp-v2 .sp-screener .sp-sc-metric-group-head span {
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sp-v2 .sp-screener .sp-sc-metric-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
}

.sp-v2 .sp-screener .sp-sc-metric-scroll:focus-visible {
  outline: 2px solid var(--sp-brand);
  outline-offset: 2px;
}

.sp-v2 .sp-screener .sp-sc-metric-table {
  width: 100%;
  min-width: 700px;
  margin: 0;
  border-collapse: collapse;
  border: 0;
  table-layout: fixed;
}

.sp-v2 .sp-screener .sp-sc-metric-table th,
.sp-v2 .sp-screener .sp-sc-metric-table td {
  padding: 10px var(--sp-3);
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--sp-line);
}

.sp-v2 .sp-screener .sp-sc-metric-table thead th {
  color: var(--sp-text-3);
  background: var(--sp-raised);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sp-v2 .sp-screener .sp-sc-metric-table tbody tr:last-child th,
.sp-v2 .sp-screener .sp-sc-metric-table tbody tr:last-child td {
  border-bottom: 0;
}

.sp-v2 .sp-screener .sp-sc-metric-table thead th:nth-child(1) { width: 24%; }
.sp-v2 .sp-screener .sp-sc-metric-table thead th:nth-child(2) { width: 20%; }
.sp-v2 .sp-screener .sp-sc-metric-table thead th:nth-child(3) { width: 12%; }
.sp-v2 .sp-screener .sp-sc-metric-table thead th:nth-child(4) { width: 44%; }

.sp-v2 .sp-screener .sp-sc-metric-table tbody th {
  color: var(--sp-text);
  background: color-mix(in srgb, var(--sp-raised) 62%, var(--sp-surface));
  font-weight: 400;
}

.sp-v2 .sp-screener .sp-sc-metric-table tbody td {
  color: var(--sp-text-2);
  background: var(--sp-surface);
  font-size: 12.5px;
  line-height: 1.5;
}

.sp-v2 .sp-screener .sp-sc-metric-key {
  display: block;
  color: var(--sp-brand);
  font-family: var(--sp-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sp-v2 .sp-screener .sp-sc-metric-aliases {
  display: block;
  margin-top: 4px;
  color: var(--sp-text-3);
  font-size: 10.5px;
  line-height: 1.45;
}

.sp-v2 .sp-screener .sp-sc-metric-aliases code {
  color: inherit;
  font-family: var(--sp-mono);
  font-size: inherit;
}

.sp-v2 .sp-screener .sp-sc-metric-unit {
  color: var(--sp-text) !important;
  font-family: var(--sp-mono);
  font-size: 11px !important;
  white-space: normal;
}

.sp-v2 .sp-screener .sp-sc-saved-intro {
  margin: 0 0 var(--sp-4);
  color: var(--sp-text-2);
  font-size: 13px;
  line-height: 1.55;
}

.sp-v2 .sp-screener .sp-sc-saved-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--sp-line);
}

.sp-v2 .sp-screener .sp-sc-saved-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--sp-line);
}

.sp-v2 .sp-screener .sp-sc-saved-copy {
  display: grid;
  grid-template-columns: minmax(9rem, 0.34fr) minmax(0, 1fr);
  align-items: baseline;
  gap: var(--sp-3);
  min-width: 0;
}

.sp-v2 .sp-screener .sp-sc-saved-copy strong {
  color: var(--sp-text);
  font-size: 13px;
  line-height: 1.45;
}

.sp-v2 .sp-screener .sp-sc-saved-copy code {
  min-width: 0;
  color: var(--sp-text-2);
  font-family: var(--sp-mono);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.sp-v2 .sp-screener .sp-sc-saved-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.sp-v2 .sp-screener .sp-sc-saved-actions form {
  margin: 0;
}

.sp-v2 .sp-screener .sp-sc-saved-run,
.sp-v2 .sp-screener .sp-sc-saved-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 var(--sp-3);
  border-radius: var(--sp-r-sm);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.sp-v2 .sp-screener .sp-sc-saved-run {
  color: var(--sp-text);
  border: 1px solid var(--sp-brand-line);
  background: var(--sp-brand-tint);
}

.sp-v2 .sp-screener .sp-sc-saved-run:hover {
  color: var(--sp-text);
  border-color: var(--sp-brand);
}

.sp-v2 .sp-screener .sp-sc-saved-delete {
  color: var(--sp-text-3);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.sp-v2 .sp-screener .sp-sc-saved-delete:hover {
  color: var(--sp-neg);
  border-color: color-mix(in srgb, var(--sp-neg) 38%, transparent);
}

.sp-v2 .sp-screener .sp-sc-saved-empty {
  display: grid;
  gap: 3px;
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  color: var(--sp-text-2);
  background: var(--sp-raised);
  border: 1px dashed var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  font-size: 12px;
  line-height: 1.5;
}

.sp-v2 .sp-screener .sp-sc-saved-empty strong {
  color: var(--sp-text);
  font-size: 13px;
}

.sp-v2 .sp-screener .sp-sc-save-form {
  margin: var(--sp-5) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--sp-line-mid);
}

.sp-v2 .sp-screener .sp-sc-save-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}

.sp-v2 .sp-screener .sp-sc-save-head h3,
.sp-v2 .sp-screener .sp-sc-signed-out h3 {
  margin: 0;
  color: var(--sp-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
}

.sp-v2 .sp-screener .sp-sc-save-head p {
  max-width: 68ch;
  margin: 0;
  color: var(--sp-text-3);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: right;
}

.sp-v2 .sp-screener .sp-sc-save-fields {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(18rem, 1.5fr) auto;
  align-items: end;
  gap: var(--sp-3);
}

.sp-v2 .sp-screener .sp-sc-save-fields label {
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-v2 .sp-screener .sp-sc-save-fields input {
  width: 100%;
  min-height: 38px;
  border-color: var(--sp-line-mid);
  background: var(--sp-raised);
  color: var(--sp-text);
}

.sp-v2 .sp-screener .sp-sc-save-expression input {
  font-family: var(--sp-mono);
  font-size: 12px;
}

.sp-v2 .sp-screener .sp-sc-save-action button {
  min-height: 38px;
  white-space: nowrap;
}

.sp-v2 .sp-screener .sp-sc-signed-out {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.sp-v2 .sp-screener .sp-sc-signed-out p {
  max-width: 72ch;
  margin: var(--sp-1) 0 0;
  color: var(--sp-text-2);
  font-size: 13px;
  line-height: 1.55;
}

.sp-v2 .sp-screener .sp-sc-signed-out > a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 var(--sp-4);
  color: var(--sp-text);
  border: 1px solid var(--sp-brand-line);
  border-radius: var(--sp-r-sm);
  background: var(--sp-brand-tint);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.sp-v2 .sp-screener .sp-sc-status {
  max-width: none;
  margin: 0;
  color: var(--sp-text-2);
  font-size: 13px;
  line-height: 1.5;
}

.sp-v2 .sp-screener .sp-sc-empty {
  padding: clamp(28px, 5vw, 56px);
  border: 1px dashed var(--sp-line-mid);
  border-radius: var(--sp-r-lg);
  background: color-mix(in srgb, var(--sp-surface) 72%, transparent);
}

.sp-v2 .sp-screener .sp-sc-empty h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--sp-text);
  text-transform: none;
}

.sp-v2 .sp-screener .sp-sc-empty > p:not(.sp-sc-empty-kicker) {
  max-width: 66ch;
  margin: var(--sp-3) 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sp-text-2);
}

.sp-v2 .sp-screener .sp-sc-empty-steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
  padding: 0;
  list-style: none;
}

.sp-v2 .sp-screener .sp-sc-empty-steps li {
  flex: 1 1 190px;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
  padding: var(--sp-3);
  border-top: 1px solid var(--sp-line-mid);
  color: var(--sp-text-2);
  font-size: 13px;
}

.sp-v2 .sp-screener .sp-sc-empty-steps span {
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  color: var(--sp-brand);
}

@media (max-width: 1024px) {
  .sp-v2 .sp-screener .sp-sc-basis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sp-v2 .sp-screener .sp-sc-basis-cell:nth-child(3) {
    border-left: 0;
  }
  .sp-v2 .sp-screener .sp-sc-basis-cell:nth-child(n+3) {
    border-top: 1px solid var(--sp-line);
  }
  .sp-v2 .sp-screener .sp-sc-core-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sp-v2 .sp-screener .sp-sc-preset-layout--active {
    grid-template-columns: minmax(15rem, 0.8fr) minmax(18rem, 1.2fr);
  }
  .sp-v2 .sp-screener .sp-sc-save-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .sp-v2 .sp-screener .sp-sc-save-action button {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .sp-v2 .sp-screener .sp-sc-head,
  .sp-v2 .sp-screener .sp-sc-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--sp-3);
  }
  .sp-v2 .sp-screener .sp-sc-section-head > p {
    text-align: left;
  }
  .sp-v2 .sp-screener .sp-sc-basis {
    grid-template-columns: minmax(0, 1fr);
  }
  .sp-v2 .sp-screener .sp-sc-basis-cell,
  .sp-v2 .sp-screener .sp-sc-basis-cell:nth-child(3) {
    border-left: 0;
  }
  .sp-v2 .sp-screener .sp-sc-basis-cell:nth-child(n+2) {
    border-top: 1px solid var(--sp-line);
  }
  .sp-v2 .sp-screener .sp-sc-builder {
    padding: 0;
  }
  .sp-v2 .sp-screener .sp-sc-builder-block {
    padding: var(--sp-5) 0;
  }
  .sp-v2 .sp-screener .sp-sc-builder-block-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .sp-v2 .sp-screener .sp-sc-builder-block-head > p {
    width: calc(100% - 42px);
    max-width: none;
    margin: 0 0 0 42px;
    text-align: left;
  }
  .sp-v2 .sp-screener .sp-sc-preset-layout--active,
  .sp-v2 .sp-screener .sp-sc-core-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sp-v2 .sp-screener .sp-sc-preset-layout--active {
    gap: var(--sp-4);
  }
  .sp-v2 .sp-screener .sp-sc-field,
  .sp-v2 .sp-screener .sp-sc-field--formula {
    width: 100%;
    min-width: 0;
  }
  .sp-v2 .sp-screener .sp-sc-field input,
  .sp-v2 .sp-screener .sp-sc-field select,
  .sp-v2 .sp-screener .sp-sc-field--preset select {
    width: 100%;
    min-height: 44px;
  }
  .sp-v2 .sp-screener .sp-sc-run {
    width: 100%;
    min-height: 44px;
  }
  .sp-v2 .sp-screener .sp-sc-actions {
    align-items: stretch;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-4);
  }
  .sp-v2 .sp-screener .sp-sc-actions-buttons {
    align-items: stretch;
    flex-direction: column;
    gap: var(--sp-2);
  }
  .sp-v2 .sp-screener .sp-sc-clear {
    width: 100%;
    min-height: 44px;
  }
  .sp-v2 .sp-screener .sp-sc-neutrality {
    padding: var(--sp-3);
    font-size: 12px;
  }
  .sp-v2 .sp-screener .sp-sc-disclosure > summary {
    min-height: 52px;
    padding: var(--sp-3);
  }
  .sp-v2 .sp-screener .sp-sc-summary-title {
    font-size: 13px;
  }
  .sp-v2 .sp-screener .sp-sc-summary-meta {
    font-size: 10.5px;
  }
  .sp-v2 .sp-screener .sp-sc-disclosure-body {
    padding: var(--sp-3);
  }
  .sp-v2 .sp-screener .sp-sc-guide {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-3);
    padding: var(--sp-4) 0;
  }
  .sp-v2 .sp-screener .sp-sc-availability-note {
    margin-bottom: var(--sp-4);
    padding: var(--sp-3);
  }
  .sp-v2 .sp-screener .sp-sc-metric-table {
    min-width: 660px;
  }
  .sp-v2 .sp-screener .sp-sc-saved-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-1);
  }
  .sp-v2 .sp-screener .sp-sc-saved-list > li {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-3);
  }
  .sp-v2 .sp-screener .sp-sc-saved-actions {
    justify-content: flex-start;
  }
  .sp-v2 .sp-screener .sp-sc-saved-run,
  .sp-v2 .sp-screener .sp-sc-saved-delete {
    min-height: 40px;
  }
  .sp-v2 .sp-screener .sp-sc-save-head,
  .sp-v2 .sp-screener .sp-sc-signed-out {
    align-items: stretch;
    flex-direction: column;
    gap: var(--sp-3);
  }
  .sp-v2 .sp-screener .sp-sc-save-head p {
    max-width: none;
    text-align: left;
  }
  .sp-v2 .sp-screener .sp-sc-save-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .sp-v2 .sp-screener .sp-sc-save-fields input,
  .sp-v2 .sp-screener .sp-sc-save-action button,
  .sp-v2 .sp-screener .sp-sc-signed-out > a {
    width: 100%;
    min-height: 44px;
  }
  .sp-v2 .sp-screener .sp-sc-empty {
    padding: var(--sp-5);
  }
}


/* ==========================================================================
   9. COMPANY RESEARCH (SP-UI-002B1 — header + internal nav only)

   Scope: every selector here begins `.sp-v2 .sp-co`, where `sp-co` is the
   class base_v2's own `main_class` block puts on <main> for this page alone.
   So none of it can reach the homepage, and none of it can reach a page still
   on the legacy shell. `sp-co-` rather than `sp-company-` because
   `.sp-company*` is already the homepage's quick-access card family.

   This stage styles the header and the nav and NOTHING BELOW THEM. The
   analytical sections still carry their legacy app.css appearance on purpose;
   they are staged 002B2 through 002B5. A mixed page is the expected state at
   the end of B1.

   Three legacy rules in app.css reach into this page and are overridden here
   by specificity, never by editing app.css:
     .detail-head                 flex row with space-between
     .detail-head .ident h1       baseline flex row
     main h2[id]                  scroll-margin-top: 4rem
   The last one matters most: it was tuned for the legacy page's own sticky
   bar, and under the V2 shell the offset is the topbar plus this nav.
   ========================================================================== */

/* --- header shell ------------------------------------------------------
   Two children: the research data, which grows, and the photograph, which
   does not. The image is capped in both directions -- a percentage alone
   would let it grow with an ultrawide workspace until it stopped being
   atmosphere and became a banner. */
/* Portfolio Overview P1 — scoped; all other portfolio pages stay legacy. */
.sp-v2 .sp-portfolio .sp-pf-workspace { min-width: 0; max-width: 1840px; color: var(--sp-text); }
.sp-v2 .sp-portfolio .sp-pf-kicker,
.sp-v2 .sp-portfolio .sp-pf-control-label { margin: 0 0 var(--sp-1); color: var(--sp-brand); font: 650 var(--sp-t-micro)/1.4 var(--sp-mono); letter-spacing: .11em; text-transform: uppercase; }
.sp-v2 .sp-portfolio .sp-pf-head h1 { margin: 0; font-size: clamp(1.85rem, 2.8vw, 2.7rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; overflow-wrap: anywhere; }
.sp-v2 .sp-portfolio .sp-pf-lede { margin: var(--sp-2) 0 var(--sp-4); color: var(--sp-text-2); font-size: var(--sp-t-meta); }
.sp-v2 .sp-portfolio .sp-pf-controls { position: relative; display: flex; flex-wrap: wrap; align-items: end; gap: var(--sp-2) var(--sp-5); padding: var(--sp-3) 0; border-top: 1px solid var(--sp-line-mid); border-bottom: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-portfolio .sp-pf-select { min-width: 0; flex: 1 1 360px; }
.sp-v2 .sp-portfolio .sp-pf-switches { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.sp-v2 .sp-portfolio .sp-pf-switches form { margin: 0; }
.sp-v2 .sp-portfolio .sp-pf-selected,
.sp-v2 .sp-portfolio .sp-pf-switch { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 34px; padding: 5px var(--sp-3); border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-surface); color: var(--sp-text-2); font: 600 var(--sp-t-meta)/1.3 var(--sp-font); cursor: pointer; }
.sp-v2 .sp-portfolio .sp-pf-selected { border-color: var(--sp-brand-line); background: var(--sp-brand-tint); color: var(--sp-text); cursor: default; }
.sp-v2 .sp-portfolio .sp-pf-switch:hover { color: var(--sp-text); border-color: var(--sp-brand-line); }
.sp-v2 .sp-portfolio .sp-pf-switches small { color: var(--sp-text-3); font: 500 var(--sp-t-micro) var(--sp-mono); }
.sp-v2 .sp-portfolio .sp-pf-control-actions { display: flex; align-items: center; gap: var(--sp-2); }
.sp-v2 .sp-portfolio .sp-pf-control-detail > summary { display: flex; align-items: center; min-height: 34px; padding: 5px var(--sp-3); border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); color: var(--sp-text-2); font-size: var(--sp-t-meta); cursor: pointer; list-style: none; }
.sp-v2 .sp-portfolio .sp-pf-control-detail > summary::-webkit-details-marker { display: none; }
.sp-v2 .sp-portfolio .sp-pf-control-detail > summary:hover,
.sp-v2 .sp-portfolio .sp-pf-control-detail[open] > summary { color: var(--sp-text); border-color: var(--sp-brand-line); }
.sp-v2 .sp-portfolio .sp-pf-control-panel { position: absolute; z-index: 8; right: 0; width: min(360px, 100%); max-height: min(70vh, 580px); overflow: auto; margin-top: var(--sp-2); padding: var(--sp-4); border: 1px solid var(--sp-line-strong); border-radius: var(--sp-r-sm); background: var(--sp-raised); box-shadow: var(--sp-shadow); }
.sp-v2 .sp-portfolio .sp-pf-control-panel h2 { margin: 0 0 var(--sp-3); font-size: var(--sp-t-h3); font-weight: 600; text-transform: none; }
.sp-v2 .sp-portfolio .sp-pf-control-panel p { margin: 0 0 var(--sp-3); color: var(--sp-text-2); font-size: var(--sp-t-meta); line-height: 1.5; }
.sp-v2 .sp-portfolio .sp-pf-control-panel form { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-4); }
.sp-v2 .sp-portfolio .sp-pf-control-panel label { color: var(--sp-text-2); font-size: var(--sp-t-meta); }
.sp-v2 .sp-portfolio .sp-pf-control-panel input { width: 100%; min-width: 0; min-height: 36px; padding: var(--sp-2); border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-surface); color: var(--sp-text); }
.sp-v2 .sp-portfolio .sp-pf-control-panel button { justify-self: start; min-height: 34px; padding: 5px var(--sp-3); border: 1px solid var(--sp-line-strong); border-radius: var(--sp-r-sm); background: var(--sp-surface); color: var(--sp-text); cursor: pointer; }
.sp-v2 .sp-portfolio .sp-pf-delete { padding-top: var(--sp-3); border-top: 1px solid var(--sp-line); }
.sp-v2 .sp-portfolio .sp-pf-delete button { color: var(--sp-neg); }
.sp-v2 .sp-portfolio .sp-pf-share-link { padding-top: var(--sp-3); border-top: 1px solid var(--sp-line); }
.sp-v2 .sp-portfolio .sp-pf-share-panel { width: min(420px, 100%); }
.sp-v2 .sp-portfolio .sp-pf-share-link > label { display: block; margin-bottom: var(--sp-2); }
.sp-v2 .sp-portfolio .sp-pf-share-link > div { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); }
.sp-v2 .sp-portfolio .sp-pf-copy { align-self: start; }
.sp-v2 .sp-portfolio .sp-pf-share-link form { margin: 0; }
.sp-v2 .sp-portfolio .sp-pf-scope { flex: 0 0 100%; margin: 0; color: var(--sp-text-3); font-size: var(--sp-t-micro); }
.sp-v2 .sp-portfolio .sp-pf-scope strong { color: var(--sp-text-2); }
.sp-v2 .sp-portfolio .sp-pf-nav { display: flex; gap: var(--sp-5); margin: var(--sp-3) 0 0; border-bottom: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-portfolio .sp-pf-nav a { display: inline-flex; align-items: center; min-height: 42px; border-bottom: 2px solid transparent; color: var(--sp-text-2); font: 650 var(--sp-t-meta) var(--sp-font); text-decoration: none; }
.sp-v2 .sp-portfolio .sp-pf-nav a:hover { color: var(--sp-text); }
.sp-v2 .sp-portfolio .sp-pf-nav a[aria-current="page"] { border-color: var(--sp-brand); color: var(--sp-text); }
.sp-v2 .sp-portfolio .sp-pf-delete-confirm-body { max-width: 760px; margin: 28px 0 48px; padding-top: 20px; border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-portfolio .sp-pf-delete-confirm-body h2 { margin: 0 0 14px; color: var(--sp-text); font-size: 23px; font-weight: 600; text-transform: none; overflow-wrap: anywhere; }
.sp-v2 .sp-portfolio .sp-pf-delete-confirm-body > p:not(.sp-pf-kicker) { margin: 0 0 14px; color: var(--sp-text-2); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-portfolio .sp-pf-delete-confirm-body strong { color: var(--sp-text); }
.sp-v2 .sp-portfolio .sp-pf-delete-confirm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.sp-v2 .sp-portfolio .sp-pf-delete-confirm-actions form { margin: 0; }
.sp-v2 .sp-portfolio .sp-pf-delete-confirm-actions button { min-height: 42px; padding: 9px 15px; border: 1px solid var(--sp-neg); border-radius: var(--sp-r-sm); background: transparent; color: var(--sp-neg); font: 650 13px var(--sp-font); cursor: pointer; }
.sp-v2 .sp-portfolio .sp-pf-delete-confirm-actions button:hover { background: var(--sp-neg); color: var(--sp-on-brand); }
.sp-v2 .sp-portfolio .sp-pf-delete-confirm-actions a { color: var(--sp-link); font-size: 13px; text-decoration: none; }
.sp-v2 .sp-portfolio .sp-pf-delete-confirm-actions a:focus-visible,
.sp-v2 .sp-portfolio .sp-pf-delete-confirm-actions button:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: 2px; }
.sp-v2 .sp-portfolio .sp-pf-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--sp-5); border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-surface); }
.sp-v2 .sp-portfolio .sp-pf-metric { min-width: 0; padding: var(--sp-4); border-right: 1px solid var(--sp-line); }
.sp-v2 .sp-portfolio .sp-pf-metric:last-child { border-right: 0; }
.sp-v2 .sp-portfolio .sp-pf-metric > span { display: block; min-height: 2.5em; color: var(--sp-text-2); font: 650 var(--sp-t-micro)/1.4 var(--sp-mono); letter-spacing: .04em; text-transform: uppercase; }
.sp-v2 .sp-portfolio .sp-pf-metric small { display: block; margin-top: 3px; color: var(--sp-text-3); font: 400 var(--sp-t-micro)/1.4 var(--sp-font); letter-spacing: 0; text-transform: none; }
.sp-v2 .sp-portfolio .sp-pf-metric strong { display: block; margin-top: var(--sp-3); font: 600 clamp(1.2rem, 1.7vw, 1.85rem)/1.15 var(--sp-mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-v2 .sp-portfolio .sp-pf-metric strong small { font-family: var(--sp-mono); font-size: var(--sp-t-meta); }
.sp-v2 .sp-portfolio .sp-pf-proceeds { display: block; margin-top: var(--sp-2); color: var(--sp-text-3); font-size: var(--sp-t-micro); line-height: 1.4; }
.sp-v2 .sp-portfolio .sp-pf-positive { color: var(--sp-pos); }
.sp-v2 .sp-portfolio .sp-pf-negative { color: var(--sp-neg); }
.sp-v2 .sp-portfolio .sp-pf-price-note { margin: var(--sp-2) 0 0; color: var(--sp-text-3); font-size: var(--sp-t-micro); }
.sp-v2 .sp-portfolio .sp-pf-alert { margin: var(--sp-3) 0 0; padding: var(--sp-2) var(--sp-3); border-left: 2px solid var(--sp-warn); background: var(--sp-warn-tint); color: var(--sp-text-2); font-size: var(--sp-t-meta); }
.sp-v2 .sp-portfolio .sp-pf-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-5) 0 var(--sp-7); }
.sp-v2 .sp-portfolio .sp-pf-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: var(--sp-2) var(--sp-4); border: 1px solid var(--sp-brand); border-radius: var(--sp-r-sm); background: var(--sp-brand); color: var(--sp-on-brand); font-size: var(--sp-t-meta); font-weight: 650; text-decoration: none; }
.sp-v2 .sp-portfolio .sp-pf-action:hover { background: var(--sp-brand-hi); color: var(--sp-on-brand); }
.sp-v2 .sp-portfolio .sp-pf-action-secondary { background: transparent; color: var(--sp-link); }
.sp-v2 .sp-portfolio .sp-pf-action-secondary:hover { background: var(--sp-brand-tint); color: var(--sp-text); }
.sp-v2 .sp-portfolio .sp-pf-section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-bottom: var(--sp-3); }
.sp-v2 .sp-portfolio .sp-pf-holdings { min-width: 0; }
.sp-v2 .sp-portfolio .sp-pf-section-head h2 { margin: 0; font-size: var(--sp-t-h2); font-weight: 600; letter-spacing: -.025em; text-transform: none; }
.sp-v2 .sp-portfolio .sp-pf-section-head h2 span { color: var(--sp-text-3); font: 500 var(--sp-t-meta) var(--sp-mono); letter-spacing: 0; }
.sp-v2 .sp-portfolio .sp-pf-section-head > p { max-width: 38ch; margin: 0; color: var(--sp-text-3); font-size: var(--sp-t-meta); }
.sp-v2 .sp-portfolio .sp-pf-table-frame { max-width: 100%; min-width: 0; overflow: hidden; border-radius: var(--sp-r-sm); }
.sp-v2 .sp-portfolio .sp-pf-table-scroll { max-width: 100%; max-height: 65vh; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--sp-line-mid); background: var(--sp-surface); }
.sp-v2 .sp-portfolio .sp-pf-table-scroll:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: -2px; }
.sp-v2 .sp-portfolio .sp-pf-table { width: 100%; min-width: 980px; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; background: var(--sp-surface); color: var(--sp-text); font-size: 12.5px; table-layout: fixed; }
.sp-v2 .sp-portfolio .sp-pf-table th,
.sp-v2 .sp-portfolio .sp-pf-table td { padding: 10px var(--sp-3); border: 0; border-bottom: 1px solid var(--sp-line); background: var(--sp-surface); vertical-align: middle; }
.sp-v2 .sp-portfolio .sp-pf-table thead th { position: sticky; z-index: 3; top: 0; height: 38px; padding-block: 5px; border-bottom-color: var(--sp-line-strong); color: var(--sp-text-3); font: 650 10px var(--sp-mono); letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.sp-v2 .sp-portfolio .sp-pf-table tbody tr:hover > * { background: var(--sp-hover); }
.sp-v2 .sp-portfolio .sp-pf-table .sp-pf-identity { position: sticky; z-index: 2; left: 0; width: 23%; min-width: 210px; box-shadow: 8px 0 12px -12px var(--sp-text); text-align: left; }
.sp-v2 .sp-portfolio .sp-pf-table thead .sp-pf-identity { z-index: 4; }
.sp-v2 .sp-portfolio .sp-pf-identity a { color: var(--sp-link); font: 700 12px var(--sp-mono); text-decoration: none; }
.sp-v2 .sp-portfolio .sp-pf-identity a:hover { text-decoration: underline; }
.sp-v2 .sp-portfolio .sp-pf-table .sp-pf-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-v2 .sp-portfolio .sp-pf-table td:nth-child(4) { width: 21%; }
.sp-v2 .sp-portfolio .sp-pf-table small,
.sp-v2 .sp-portfolio .sp-pf-identity span { display: block; margin-top: 4px; color: var(--sp-text-3); font-size: 10.5px; font-weight: 400; line-height: 1.35; white-space: normal; }
.sp-v2 .sp-portfolio .sp-pf-table small { overflow-wrap: anywhere; }
.sp-v2 .sp-portfolio .sp-pf-muted { color: var(--sp-text-3); }
.sp-v2 .sp-portfolio .sp-pf-empty { padding: var(--sp-5); border: 1px solid var(--sp-line-mid); background: var(--sp-surface); color: var(--sp-text-2); }
.sp-v2 .sp-portfolio .sp-pf-empty a { color: var(--sp-link); }
.sp-v2 .sp-portfolio .sp-pf-basis { margin-top: var(--sp-4); border-top: 1px solid var(--sp-line-mid); border-bottom: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-portfolio .sp-pf-basis > summary { min-height: 42px; display: flex; align-items: center; gap: var(--sp-3); color: var(--sp-text); font: 650 var(--sp-t-micro) var(--sp-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.sp-v2 .sp-portfolio .sp-pf-basis > summary span { color: var(--sp-text-3); font: 400 var(--sp-t-meta) var(--sp-font); letter-spacing: 0; text-transform: none; }
.sp-v2 .sp-portfolio .sp-pf-basis > div { max-width: 92ch; padding: 0 0 var(--sp-3); color: var(--sp-text-2); font-size: var(--sp-t-meta); line-height: 1.6; }
.sp-v2 .sp-portfolio .sp-pf-basis p { margin: var(--sp-2) 0; }
.sp-v2 .sp-portfolio .sp-pf-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-portfolio .sp-pf-next h2 { margin: 0; font-size: var(--sp-t-h3); font-weight: 600; text-transform: none; }
.sp-v2 .sp-portfolio .sp-pf-next p:not(.sp-pf-kicker) { margin: var(--sp-2) 0; color: var(--sp-text-2); font-size: var(--sp-t-meta); }
.sp-v2 .sp-portfolio .sp-pf-next a { display: inline-block; margin: var(--sp-2) var(--sp-4) 0 0; color: var(--sp-link); font-size: var(--sp-t-meta); text-decoration: none; }
.sp-v2 .sp-portfolio .sp-pf-next a:hover { text-decoration: underline; }
.sp-v2 .sp-portfolio a:focus-visible,
.sp-v2 .sp-portfolio button:focus-visible,
.sp-v2 .sp-portfolio summary:focus-visible,
.sp-v2 .sp-portfolio input:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: 2px; }

@media (max-width: 1100px) {
  .sp-v2 .sp-portfolio .sp-pf-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-v2 .sp-portfolio .sp-pf-metric:nth-child(2) { border-right: 0; }
  .sp-v2 .sp-portfolio .sp-pf-metric:nth-child(-n+2) { border-bottom: 1px solid var(--sp-line); }
}
@media (max-width: 600px) {
  .sp-v2 .sp-portfolio .sp-pf-controls { align-items: flex-start; }
  .sp-v2 .sp-portfolio .sp-pf-select { flex-basis: 100%; }
  .sp-v2 .sp-portfolio .sp-pf-control-panel { left: 0; right: auto; }
  .sp-v2 .sp-portfolio .sp-pf-metric { padding: var(--sp-3); }
  .sp-v2 .sp-portfolio .sp-pf-metric strong { font-size: clamp(1.02rem, 4vw, 1.3rem); white-space: normal; overflow-wrap: anywhere; }
  .sp-v2 .sp-portfolio .sp-pf-nav { gap: var(--sp-4); }
  .sp-v2 .sp-portfolio .sp-pf-next { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-portfolio .sp-pf-basis > summary { flex-wrap: wrap; padding-block: var(--sp-2); }
  .sp-v2 .sp-portfolio .sp-pf-table .sp-pf-identity { width: 190px; min-width: 190px; }
}

/* P2/P2R: Portfolio Analysis. Presentation only; analytical helpers unchanged. */
.sp-v2 .sp-portfolio-analysis .sp-pf-nav { margin-top: 0; }
.sp-v2 .sp-pa-head { padding: 18px 0 12px; }
.sp-v2 .sp-pa-head h1 { margin: 0; color: var(--sp-text); font: 600 clamp(26px, 2.6vw, 38px)/1.12 var(--sp-font); letter-spacing: -.035em; }
.sp-v2 .sp-pa-lede { margin: 7px 0 10px; color: var(--sp-text-2); font-size: 14px; }
.sp-v2 .sp-pa-context { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--sp-text-2); font-size: 12px; line-height: 1.5; }
.sp-v2 .sp-pa-context strong { color: var(--sp-text); overflow-wrap: anywhere; }
.sp-v2 .sp-portfolio-analysis .sp-pf-controls { padding-block: 8px; }
.sp-v2 .sp-portfolio-analysis .sp-pf-control-label { display: none; }
.sp-v2 .sp-pa-truth { margin: 12px 0; color: var(--sp-text-2); font-size: 11px; line-height: 1.6; }
.sp-v2 .sp-pa-truth > span { margin-right: 12px; color: var(--sp-text); font: 550 10px/1.6 var(--sp-mono); letter-spacing: .08em; text-transform: uppercase; }
.sp-v2 .sp-pa-summary { display: flex; align-items: stretch; border-block: 1px solid var(--sp-line-strong); background: var(--sp-surface); }
.sp-v2 .sp-pa-metric { min-width: 0; padding: 0 12px; }
.sp-v2 .sp-pa-metric > span { display: block; min-height: 18px; color: var(--sp-text-2); font: 500 11px/1.4 var(--sp-font); }
.sp-v2 .sp-pa-metric small { display: block; margin-top: 4px; color: var(--sp-text-2); font: 400 10px/1.4 var(--sp-font); }
.sp-v2 .sp-pa-metric strong { display: block; margin-top: 7px; color: var(--sp-text); font: 500 clamp(20px, 1.65vw, 26px)/1.2 var(--sp-mono); font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.sp-v2 .sp-pa-overline { margin: 0 0 11px; color: var(--sp-text); font: 550 10px/1.4 var(--sp-mono); letter-spacing: .09em; text-transform: uppercase; }
.sp-v2 .sp-pa-overline > span { margin-left: 12px; color: var(--sp-text-2); font-family: var(--sp-font); font-weight: 400; letter-spacing: 0; text-transform: none; }
.sp-v2 .sp-pa-summary .sp-pa-investor { flex: 0 0 25%; padding: 15px 18px 14px 0; border-right: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-investor > span { min-height: 0; color: var(--sp-text); }
.sp-v2 .sp-pa-investor strong { margin-top: 6px; font-size: clamp(28px, 2.5vw, 36px); font-weight: 550; }
.sp-v2 .sp-pa-book { flex: 1; min-width: 0; padding: 15px 0 12px 18px; }
.sp-v2 .sp-pa-book-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sp-v2 .sp-pa-book-metrics .sp-pa-metric { padding-left: 0; }
.sp-v2 .sp-pa-metric-empty { min-width: 0; }
.sp-v2 .sp-pa-disclosure { margin-top: 5px; color: var(--sp-text-2); font-size: 11px; }
.sp-v2 .sp-pa-disclosure summary { cursor: pointer; }
.sp-v2 .sp-pa-disclosure p { margin: 6px 0 0; line-height: 1.5; }
.sp-v2 .sp-pa-window { margin: 10px 0 0; color: var(--sp-text-2); font: 400 10px/1.6 var(--sp-font); }
.sp-v2 .sp-pa-window strong { color: var(--sp-text); font-weight: 500; }
.sp-v2 .sp-pa-window a { margin-left: 10px; color: var(--sp-link-muted); white-space: nowrap; }
.sp-v2 .sp-pa-map { min-width: 0; margin-top: 24px; }
.sp-v2 .sp-pa-map-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; margin-bottom: 8px; }
.sp-v2 .sp-pa-map-head h2 { margin: 0; color: var(--sp-text); font: 600 14px/1.4 var(--sp-mono); letter-spacing: .08em; text-transform: uppercase; }
.sp-v2 .sp-pa-map-head p { margin: 0; color: var(--sp-text-2); font-size: 11px; }
.sp-v2 .sp-pa-map-head p span { color: var(--sp-text-2); }
.sp-v2 .sp-pa-lenses { display: flex; flex-wrap: wrap; column-gap: 24px; margin: 0; padding: 0; border-block: 1px solid var(--sp-line-strong); list-style: none; }
.sp-v2 .sp-pa-lens { display: flex; flex: 1 1 22%; gap: 12px; min-width: 0; padding: 16px 0; }
.sp-v2 .sp-pa-lens:nth-child(n+5) { border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-lens > div { flex: 1; min-width: 0; }
.sp-v2 .sp-pa-number { padding-top: 2px; color: var(--sp-brand-hi); font: 400 14px/1.3 var(--sp-mono); }
.sp-v2 .sp-pa-lens h3 { margin: 0; color: var(--sp-text); font: 550 14px/1.35 var(--sp-font); letter-spacing: -.012em; }
.sp-v2 .sp-pa-lens h3 a { display: flex; justify-content: space-between; gap: 5px; color: inherit; text-decoration: none; }
.sp-v2 .sp-pa-lens h3 a span { color: var(--sp-text-2); font-size: 12px; }
.sp-v2 .sp-pa-lens p { margin: 8px 0 4px; color: var(--sp-text-2); font-size: 11px; line-height: 1.65; }
.sp-v2 .sp-pa-lens small { display: block; color: var(--sp-text-2); font-size: 10px; line-height: 1.5; }
.sp-v2 .sp-pa-subroute { display: inline-flex; align-items: center; min-height: 24px; color: var(--sp-link-muted); font-size: 11px; text-decoration: none; }
.sp-v2 .sp-pa-lab-sections { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px; margin-top: 11px; }
.sp-v2 .sp-pa-lab-sections h4 { margin: 0; font: 500 9px/1.5 var(--sp-mono); letter-spacing: .045em; text-transform: uppercase; }
.sp-v2 .sp-pa-lab-sections h4 a { display: flex; justify-content: space-between; gap: 5px; color: var(--sp-link); text-decoration: none; }
.sp-v2 .sp-pa-lab-sections p { margin: 5px 0 3px; font-size: 11px; line-height: 1.4; }
.sp-v2 .sp-pa-lab-sections .sp-pa-implied-lab { padding-left: 13px; border-left: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-implied-lab strong { color: var(--sp-text); font-size: 15px; font-weight: 550; letter-spacing: -.02em; }
.sp-v2 .sp-pa-lens .sp-pa-lab-boundary { margin-top: 9px; font-size: 9px; }
.sp-v2 .sp-analysis-nav { display: flex; flex-wrap: nowrap; width: 100%; max-width: 100%; gap: 0; margin: 0 0 20px; padding: 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; border: 1px solid var(--sp-line-mid); border-radius: 3px; background: #0a1017; }
.sp-v2 .sp-analysis-nav a { display: inline-flex; flex: 1 0 auto; align-items: center; justify-content: center; min-height: 44px; padding: 0 11px; color: var(--sp-text-2); background: #0a1017; font: 500 15px/1.25 var(--sp-font); text-decoration: none; white-space: nowrap; border-right: 1px solid var(--sp-line); }
.sp-v2 .sp-analysis-nav a:last-child { border-right: 0; }
.sp-v2 .sp-analysis-nav a[aria-current] { color: var(--sp-on-brand); background: var(--sp-brand); }
.sp-v2 .sp-analysis-nav a:hover:not([aria-current]) { color: var(--sp-text); background: var(--sp-hover); }
.sp-v2 .sp-portfolio-analysis .sp-analysis-nav a:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--sp-brand-hi); outline-offset: -3px; }
.sp-v2 .sp-pa-lens a:hover { color: var(--sp-text); }
.sp-v2 .sp-pa-detail { min-width: 0; margin-top: 25px; }
.sp-v2 .sp-pa-detail > .sp-analysis-nav { position: sticky; top: var(--sp-topbar); z-index: 5; }
.sp-v2 .sp-pa-detail-head { margin-bottom: 12px; }
.sp-v2 .sp-pa-detail-head > .sp-pa-overline { margin-bottom: 5px; color: var(--sp-text-2); }
.sp-v2 .sp-pa-depth-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 16px; }
.sp-v2 .sp-pa-depth-heading h2 { margin: 0; color: var(--sp-text); font: 550 22px/1.25 var(--sp-font); letter-spacing: -.02em; }
.sp-v2 .sp-pa-depth-heading p { margin: 0; color: var(--sp-text-2); font-size: 11px; }
.sp-v2 .sp-pa-bridge { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 14px 0 9px; padding: 12px 0; border-block: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-bridge dt { margin-bottom: 5px; font: 550 10px/1.4 var(--sp-mono); letter-spacing: .07em; text-transform: uppercase; }
.sp-v2 .sp-pa-bridge dt a { display: inline-flex; align-items: center; gap: 14px; color: var(--sp-text); text-decoration: none; }
.sp-v2 .sp-pa-bridge dt a span { color: var(--sp-link); }
.sp-v2 .sp-pa-bridge dd { margin: 0; color: var(--sp-text); font-size: 12px; line-height: 1.5; }
.sp-v2 .sp-pa-bridge dd strong { font-family: var(--sp-mono); font-size: 14px; font-weight: 500; }
.sp-v2 .sp-pa-bridge dd span { font-size: 10px; color: var(--sp-text-2); }
.sp-v2 .sp-pa-bridge .sp-pa-bridge-note { margin-top: 3px; color: var(--sp-text-2); font-size: 10px; }
.sp-v2 .sp-pa-depth-note { margin: 0; color: var(--sp-text-2); font-size: 10px; line-height: 1.5; }
.sp-v2 .sp-pa-detail section, .sp-v2 .sp-pa-detail div { min-width: 0; }
.sp-v2 .sp-pa-detail .sp-pa-holdings { grid-template-columns: repeat(auto-fit, minmax(min(100%, 384px), 1fr)); }
.sp-v2 .sp-pa-detail table { display: block; max-width: 100%; overflow-x: auto; }
.sp-v2 .sp-pa-detail code { overflow-wrap: anywhere; }
.sp-v2 .sp-pa-detail [id] { scroll-margin-top: 115px; }
.sp-v2 .sp-pa-head { scroll-margin-top: 85px; }
.sp-v2 .sp-pa-method { margin: 20px 0; border-block: 1px solid var(--sp-line-strong); color: var(--sp-text); }
.sp-v2 .sp-pa-method-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 0; padding: 14px 0; }
.sp-v2 .sp-pa-method-meta dt { margin: 0 0 6px; color: var(--sp-text-2); font: 500 10px/1.4 var(--sp-mono); letter-spacing: .08em; text-transform: uppercase; }
.sp-v2 .sp-pa-method-meta dd { margin: 0; font: 500 12px/1.5 var(--sp-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sp-v2 .sp-pa-method-meta dd small { display: block; margin-top: 3px; color: var(--sp-text-2); font: 400 10px/1.4 var(--sp-font); }
.sp-v2 .sp-pa-method-disclosure { border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-method-disclosure > summary { padding: 12px 0; color: var(--sp-text); font-size: 12px; cursor: pointer; }
.sp-v2 .sp-pa-method-disclosure > summary span { margin-left: 14px; color: var(--sp-text-2); font-size: 10px; }
.sp-v2 .sp-pa-method-disclosure > div { max-width: 100ch; padding: 0 0 12px; }
.sp-v2 .sp-pa-method-disclosure p { margin: 0 0 8px; color: var(--sp-text-2); font-size: 12px; line-height: 1.6; }
.sp-v2 .sp-pa-lens-detail { min-width: 0; margin: 32px 0 42px; }
.sp-v2 .sp-pa-section-head { max-width: 76ch; margin-bottom: 18px; }
.sp-v2 .sp-pa-section-head h2 { margin: 0; color: var(--sp-text); font: 600 clamp(23px, 2.2vw, 31px)/1.18 var(--sp-font); letter-spacing: -.025em; text-transform: none; }
.sp-v2 .sp-pa-section-head > p:last-child { margin: 7px 0 0; color: var(--sp-text-2); font-size: 13px; line-height: 1.55; }
.sp-v2 .sp-pa-performance-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; border-block: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-result { min-width: 0; padding: 20px 0 22px; }
.sp-v2 .sp-pa-result-primary { padding-right: 26px; border-right: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-result-label, .sp-v2 .sp-pa-risk-category { display: block; color: var(--sp-brand-hi); font: 550 10px/1.4 var(--sp-mono); letter-spacing: .08em; text-transform: uppercase; }
.sp-v2 .sp-pa-result h3 { margin: 8px 0; color: var(--sp-text); font: 550 15px/1.35 var(--sp-font); text-transform: none; }
.sp-v2 .sp-pa-result-value { display: block; color: var(--sp-text); font: 500 clamp(29px, 3vw, 44px)/1.12 var(--sp-mono); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.sp-v2 .sp-pa-result-meta { margin: 7px 0 0; color: var(--sp-text-2); font-size: 11px; }
.sp-v2 .sp-pa-interpretation { max-width: 57ch; margin: 17px 0 0; color: var(--sp-text); font-size: 13px; line-height: 1.55; }
.sp-v2 .sp-pa-result-note { margin: 8px 0 0; color: var(--sp-text-2); font-size: 11px; line-height: 1.5; }
.sp-v2 .sp-pa-secondary-result { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; max-width: 390px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--sp-line-mid); color: var(--sp-text-2); font-size: 12px; }
.sp-v2 .sp-pa-secondary-result strong { color: var(--sp-text); font: 500 18px/1.2 var(--sp-mono); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-pa-text-link { display: inline-flex; align-items: center; min-height: 34px; margin-top: 10px; color: var(--sp-link-muted); font-size: 12px; text-decoration: none; }
.sp-v2 .sp-pa-text-link:hover { text-decoration: underline; }
.sp-v2 .sp-pa-unavailable { color: var(--sp-text-2); font-size: 12px; }
.sp-v2 .sp-pa-risk-rows { border-top: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-risk-row { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(100px, .45fr) minmax(210px, 1.3fr); align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-risk-row h3 { margin: 4px 0 0; color: var(--sp-text); font: 550 13px/1.4 var(--sp-font); text-transform: none; }
.sp-v2 .sp-pa-risk-row > strong { color: var(--sp-text); font: 500 19px/1.25 var(--sp-mono); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-pa-risk-row > p { margin: 0; color: var(--sp-text-2); font-size: 11px; line-height: 1.5; }
.sp-v2 .sp-pa-ci { display: block; margin-top: 3px; font: 10px/1.45 var(--sp-mono); overflow-wrap: anywhere; }
.sp-v2 .sp-pa-capm { margin-top: 24px; padding: 18px 0; border-block: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-capm-head { display: flex; justify-content: space-between; gap: 24px; }
.sp-v2 .sp-pa-capm-head h3 { margin: 5px 0; color: var(--sp-text); font: 550 19px/1.3 var(--sp-font); text-transform: none; }
.sp-v2 .sp-pa-capm-head p { margin: 0; color: var(--sp-text-2); font-size: 12px; line-height: 1.5; }
.sp-v2 .sp-pa-capm-head > div:last-child { min-width: 100px; text-align: right; }
.sp-v2 .sp-pa-capm-head > div:last-child span { color: var(--sp-text-2); font-size: 11px; }
.sp-v2 .sp-pa-capm-head strong { display: block; color: var(--sp-text); font: 500 27px/1.2 var(--sp-mono); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-pa-capm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-capm-facts dt { color: var(--sp-text-2); font: 10px/1.4 var(--sp-mono); text-transform: uppercase; }
.sp-v2 .sp-pa-capm-facts dd { margin: 4px 0; color: var(--sp-text); font: 500 17px/1.25 var(--sp-mono); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-pa-capm-facts small { color: var(--sp-text-2); font-size: 10px; line-height: 1.45; }
.sp-v2 .sp-pa-holdings-section { margin-top: 30px; }
.sp-v2 .sp-pa-holdings-section h3 { margin: 0; color: var(--sp-text); font: 550 19px/1.3 var(--sp-font); text-transform: none; }
.sp-v2 .sp-pa-holdings-section > p { max-width: 85ch; margin: 6px 0 14px; color: var(--sp-text-2); font-size: 11px; line-height: 1.55; }
.sp-v2 .sp-pa-table-scroll { max-width: 100%; overflow-x: auto; border-block: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-detail .sp-pa-holdings-table { display: table; width: 100%; max-width: none; min-width: 1050px; border-collapse: collapse; font-size: 11px; }
.sp-v2 .sp-pa-holdings-table caption { padding: 9px 0; color: var(--sp-text-2); text-align: left; }
.sp-v2 .sp-pa-holdings-table th, .sp-v2 .sp-pa-holdings-table td { padding: 10px 12px; border-bottom: 1px solid var(--sp-line-mid); color: var(--sp-text); vertical-align: top; }
.sp-v2 .sp-pa-holdings-table thead th { position: sticky; top: 0; z-index: 2; background: var(--sp-surface); color: var(--sp-text-2); font-weight: 550; text-align: left; white-space: nowrap; }
.sp-v2 .sp-pa-holdings-table th:nth-child(n+2), .sp-v2 .sp-pa-holdings-table td:nth-child(n+2) { text-align: right; font-family: var(--sp-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-v2 .sp-pa-holdings-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 145px; background: var(--sp-surface); }
.sp-v2 .sp-pa-holdings-table thead th:first-child { z-index: 3; }
.sp-v2 .sp-pa-holdings-table a { color: var(--sp-link); }
.sp-v2 .sp-pa-holdings-table small, .sp-v2 .sp-pa-na-reason { display: block; margin-top: 3px; color: var(--sp-text-2); font: 10px/1.4 var(--sp-font); white-space: normal; }
.sp-v2 .sp-pa-history-basis { padding: 12px 16px; border-left: 2px solid var(--sp-brand); background: var(--sp-surface); }
.sp-v2 .sp-pa-history-basis strong { color: var(--sp-text); font: 550 11px/1.4 var(--sp-mono); text-transform: uppercase; }
.sp-v2 .sp-pa-history-basis p { max-width: 90ch; margin: 5px 0 0; color: var(--sp-text-2); font-size: 12px; line-height: 1.55; }
.sp-v2 .sp-pa-history-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.sp-v2 .sp-pa-history-stats div { padding-top: 10px; border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-history-stats dt { color: var(--sp-text-2); font: 10px/1.4 var(--sp-mono); text-transform: uppercase; }
.sp-v2 .sp-pa-history-stats dd { margin: 6px 0 0; color: var(--sp-text); font: 500 clamp(18px, 2vw, 25px)/1.2 var(--sp-mono); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-pa-history-figure { min-width: 0; margin: 0; padding: 14px 20px 8px; border: 1px solid var(--sp-line-strong); background: var(--sp-surface); }
.sp-v2 .sp-pa-history-figure figcaption { color: var(--sp-text); font: 550 14px/1.4 var(--sp-font); }
.sp-v2 .sp-pa-history-figure > p { margin: 5px 0 0; color: var(--sp-text-2); font-size: 11px; }
.sp-v2 .sp-pa-history-figure > div { height: clamp(300px, 35vw, 490px); margin: 12px 0 0; }
.sp-v2 .sp-pa-p4 { border-top: 1px solid var(--sp-line-strong); padding-top: 24px; }
.sp-v2 .sp-pa-p4 .sp-pa-section-head { margin-bottom: 22px; }
.sp-v2 .sp-pa-p4 .sp-pa-section-head .sp-pa-result-label { margin-bottom: 8px; }
.sp-v2 .sp-pa-p4-block { margin-top: 26px; }
.sp-v2 .sp-pa-p4-block-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 12px; }
.sp-v2 .sp-pa-p4-block-head h3 { margin: 5px 0 0; color: var(--sp-text); font: 550 19px/1.3 var(--sp-font); }
.sp-v2 .sp-pa-p4-block-head > p { margin: 0; color: var(--sp-text-2); font: 11px/1.5 var(--sp-mono); }
.sp-v2 .sp-pa-p4-intro, .sp-v2 .sp-pa-p4-interpretation { max-width: 91ch; margin: 12px 0; color: var(--sp-text-2); font-size: 12px; line-height: 1.6; }
.sp-v2 .sp-pa-p4-interpretation { color: var(--sp-text); }
.sp-v2 .sp-pa-p4-interpretation .sp-pa-text-link { margin: 0 0 0 5px; }
.sp-v2 .sp-pa-p4-scroll { max-width: 100%; overflow-x: auto; border-block: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-p4-scroll:focus-visible { outline: 2px solid var(--sp-brand-hi); outline-offset: 2px; }
.sp-v2 .sp-pa-detail .sp-pa-p4-table { display: table; width: 100%; max-width: none; min-width: 760px; overflow: visible; border-collapse: collapse; font-size: 12px; }
.sp-v2 .sp-pa-p4-table caption { padding: 8px 0; color: var(--sp-text-2); text-align: left; font-size: 11px; }
.sp-v2 .sp-pa-p4-table th, .sp-v2 .sp-pa-p4-table td { padding: 11px 13px; border-bottom: 1px solid var(--sp-line-mid); color: var(--sp-text); text-align: right; vertical-align: middle; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-v2 .sp-pa-p4-table thead th { color: var(--sp-text-2); background: var(--sp-surface); font-weight: 550; }
.sp-v2 .sp-pa-p4-table thead tr:first-child th[scope="colgroup"] { color: var(--sp-text); text-align: center; border-bottom: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-p4-table th:first-child { text-align: left; }
.sp-v2 .sp-pa-p4-table tbody th { font-weight: 550; }
.sp-v2 .sp-pa-p4-calibration-table { min-width: 820px; }
.sp-v2 .sp-pa-p4-calibration-table th:nth-child(2), .sp-v2 .sp-pa-p4-calibration-table td:last-child { text-align: left; }
.sp-v2 .sp-pa-p4-tests-table { min-width: 620px; }
.sp-v2 .sp-pa-p4-tests-table th, .sp-v2 .sp-pa-p4-tests-table td:last-child { text-align: left; }
.sp-v2 .sp-pa-p4-methods, .sp-v2 .sp-pa-p4-shape { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 18px 0 0; }
.sp-v2 .sp-pa-p4-methods > div, .sp-v2 .sp-pa-p4-shape > div { padding-top: 10px; border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-p4-methods dt, .sp-v2 .sp-pa-p4-shape dt { color: var(--sp-text); font-size: 12px; font-weight: 550; }
.sp-v2 .sp-pa-p4-methods dd { margin: 5px 0 0; color: var(--sp-text-2); font-size: 11px; line-height: 1.55; }
.sp-v2 .sp-pa-p4-shape { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-v2 .sp-pa-p4-shape dd { margin: 9px 0 5px; color: var(--sp-text); font: 500 clamp(22px, 2.2vw, 30px)/1.2 var(--sp-mono); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-pa-p4-shape small { display: block; color: var(--sp-text-2); font-size: 11px; line-height: 1.5; }
.sp-v2 .sp-pa-p4-research-note { margin: 24px 0 4px; padding: 12px 16px; border-left: 2px solid var(--sp-brand); background: var(--sp-surface); }
.sp-v2 .sp-pa-p4-research-note strong { color: var(--sp-text); font: 550 10px/1.4 var(--sp-mono); letter-spacing: .08em; text-transform: uppercase; }
.sp-v2 .sp-pa-p4-research-note p { max-width: 100ch; margin: 6px 0 0; color: var(--sp-text-2); font-size: 11px; line-height: 1.6; }
.sp-v2 .sp-pa-p4-research-note details { margin-top: 7px; }
.sp-v2 .sp-pa-p4-research-note summary { width: fit-content; padding: 7px 0; color: var(--sp-link-muted); font-size: 11px; cursor: pointer; }
.sp-v2 .sp-pa-p4-research-note summary:focus-visible { outline: 2px solid var(--sp-brand-hi); outline-offset: 2px; }
.sp-v2 .sp-pa-p4 .sp-pa-method { margin-top: 26px; }
.sp-v2 .sp-pa-p4 .sp-pa-method-disclosure a { color: var(--sp-link-muted); }
.sp-v2 .sp-pa-p4 .sp-pa-method-disclosure summary:focus-visible { outline: 2px solid var(--sp-brand-hi); outline-offset: -2px; }

/* Portfolio P6: historical risk–return and correlation, presented without
   score or good/bad colour semantics. */
.sp-v2 .sp-pa-frontier {
  --sp-chart-primary: var(--sp-brand);
  --sp-chart-primary-hover: var(--sp-brand-hi);
  --sp-chart-secondary: #8395B2;
  --sp-chart-neutral: var(--sp-text-2);
  --sp-chart-strong: var(--sp-text);
  --sp-chart-axis: var(--sp-text-3);
  --sp-chart-grid: rgba(180, 194, 211, 0.08);
  --sp-chart-reference: var(--sp-text-2);
  --sp-chart-surface: var(--sp-raised);
  --sp-chart-tooltip-bg: var(--sp-raised);
  --sp-chart-tooltip-border: var(--sp-line-strong);
  --sp-chart-tooltip-text: var(--sp-text);
  --sp-chart-tooltip-muted: var(--sp-text-2);
  --sp-corr-positive-rgb: 119, 104, 157;
  --sp-corr-negative-rgb: 67, 119, 145;
}
.sp-v2 .sp-pa-frontier .sp-pa-lens-detail { margin-bottom: 50px; }
.sp-v2 .sp-pa-frontier .sp-pa-section-head > p { color: var(--sp-text-2); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-pa-frontier-facts, .sp-v2 .sp-pa-correlation-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.sp-v2 .sp-pa-frontier-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-v2 .sp-pa-frontier-facts > div, .sp-v2 .sp-pa-correlation-facts > div { padding-top: 10px; border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-frontier-facts dt, .sp-v2 .sp-pa-correlation-facts dt { color: var(--sp-text-2); font: 500 10px/1.4 var(--sp-mono); letter-spacing: .06em; text-transform: uppercase; }
.sp-v2 .sp-pa-frontier-facts dd, .sp-v2 .sp-pa-correlation-facts dd { margin: 5px 0 0; color: var(--sp-text); font: 500 13px/1.45 var(--sp-mono); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-pa-correlation-facts small { display: block; margin-top: 3px; color: var(--sp-text-2); font: 400 11px/1.45 var(--sp-font); }
.sp-v2 .sp-pa-frontier-figure { margin: 0; padding: 16px 20px 10px; border: 1px solid var(--sp-line-mid); background: var(--sp-raised); }
.sp-v2 .sp-pa-frontier-figure:focus-visible, .sp-v2 .sp-pa-frontier-scroll:focus-visible, .sp-v2 .sp-pa-correlation-scroll:focus-visible { outline: 2px solid var(--sp-brand-hi); outline-offset: 2px; }
.sp-v2 .sp-pa-frontier-figure figcaption { color: var(--sp-text); font: 550 14px/1.4 var(--sp-font); }
.sp-v2 .sp-pa-frontier-figure > p { max-width: 100ch; margin: 5px 0 0; color: var(--sp-text-2); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-pa-frontier-canvas { height: clamp(320px, 38vw, 510px); margin-top: 12px; }
.sp-v2 .sp-pa-frontier-canvas canvas { max-width: 100%; }
.sp-v2 .sp-pa-frontier-holdings { margin-top: 28px; }
.sp-v2 .sp-pa-frontier-holdings h3 { margin: 0; color: var(--sp-text); font: 550 19px/1.3 var(--sp-font); }
.sp-v2 .sp-pa-frontier-holdings > p, .sp-v2 .sp-pa-frontier-interpretation p, .sp-v2 .sp-pa-correlation-key p { max-width: 100ch; margin: 6px 0 14px; color: var(--sp-text-2); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-pa-frontier-scroll, .sp-v2 .sp-pa-correlation-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior: contain; border-block: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-detail .sp-pa-frontier-table, .sp-v2 .sp-pa-detail .sp-pa-correlation-table { display: table; width: 100%; max-width: none; margin: 0; border-collapse: collapse; font-size: 12px; line-height: 1.35; }
.sp-v2 .sp-pa-frontier-table { min-width: 660px; }
.sp-v2 .sp-pa-correlation-table { min-width: max-content; }
.sp-v2 .sp-pa-frontier-table caption, .sp-v2 .sp-pa-correlation-table caption { padding: 9px 0; color: var(--sp-text-2); font-size: 12px; line-height: 1.5; text-align: left; }
.sp-v2 .sp-pa-frontier-table th, .sp-v2 .sp-pa-frontier-table td, .sp-v2 .sp-pa-correlation-table th, .sp-v2 .sp-pa-correlation-table td { padding: 10px 12px; border-bottom: 1px solid var(--sp-line-mid); color: var(--sp-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-v2 .sp-pa-frontier-table thead th, .sp-v2 .sp-pa-correlation-table thead th { background: var(--sp-surface); color: var(--sp-text-2); font: 550 10px/1.4 var(--sp-mono); letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.sp-v2 .sp-pa-frontier-table th:not(:first-child), .sp-v2 .sp-pa-frontier-table td, .sp-v2 .sp-pa-correlation-table td { text-align: right; font-family: var(--sp-mono); }
.sp-v2 .sp-pa-frontier-table tbody th { color: var(--sp-text); font: 550 12px/1.35 var(--sp-mono); text-align: left; }
.sp-v2 .sp-pa-frontier-current > * { background: color-mix(in srgb, var(--sp-text-2) 9%, var(--sp-surface)); }
.sp-v2 .sp-pa-correlation-table th { min-width: 64px; text-align: center; }
.sp-v2 .sp-pa-correlation-table thead th:first-child, .sp-v2 .sp-pa-correlation-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--sp-surface); color: var(--sp-text); font-family: var(--sp-mono); text-align: left; }
.sp-v2 .sp-pa-correlation-table thead th:first-child { z-index: 2; color: var(--sp-text-2); }
.sp-v2 .sp-pa-correlation-cell { min-width: 64px; }
.sp-v2 .sp-pa-correlation-diagonal { color: var(--sp-text-2) !important; }
.sp-v2 .sp-pa-frontier-interpretation, .sp-v2 .sp-pa-correlation-key { margin-top: 22px; padding: 13px 16px; border-left: 2px solid var(--sp-brand); background: var(--sp-surface); }
.sp-v2 .sp-pa-frontier-interpretation strong, .sp-v2 .sp-pa-correlation-key strong { display: block; color: var(--sp-text); font: 550 11px/1.4 var(--sp-mono); letter-spacing: .07em; text-transform: uppercase; }
.sp-v2 .sp-pa-frontier-interpretation p, .sp-v2 .sp-pa-correlation-key p { margin-bottom: 0; }
.sp-v2 .sp-pa-frontier-method, .sp-v2 .sp-pa-correlation-method { margin-top: 22px; border-block: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-frontier-method > summary, .sp-v2 .sp-pa-correlation-method > summary { min-height: 44px; padding: 12px 0; color: var(--sp-text); font-size: 12px; cursor: pointer; }
.sp-v2 .sp-pa-frontier-method > summary span, .sp-v2 .sp-pa-correlation-method > summary span { margin-left: 14px; color: var(--sp-text-2); font-size: 10px; }
.sp-v2 .sp-pa-frontier-method > div, .sp-v2 .sp-pa-correlation-method > div { max-width: 104ch; }
.sp-v2 .sp-pa-frontier-method p, .sp-v2 .sp-pa-correlation-method p { margin: 0 0 12px; color: var(--sp-text-2); font-size: 13px; line-height: 1.65; }
@media (max-width: 800px) {
  .sp-v2 .sp-pa-frontier-facts, .sp-v2 .sp-pa-correlation-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 540px) {
  .sp-v2 .sp-pa-frontier-facts, .sp-v2 .sp-pa-correlation-facts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sp-v2 .sp-pa-frontier-figure { padding: 12px 8px 8px; overflow-x: auto; }
  .sp-v2 .sp-pa-frontier-canvas { min-width: 500px; height: 290px; }
}

/* Portfolio Factor Laboratory: descriptive regression evidence, not a scorecard. */
.sp-v2 .sp-pa-factor-lab { padding-top: 24px; border-top: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-factor-lab .sp-pa-section-head .sp-pa-result-label { margin-bottom: 8px; }
.sp-v2 .sp-pa-factor-universe { padding: 13px 17px; border-left: 2px solid var(--sp-brand); background: var(--sp-surface); }
.sp-v2 .sp-pa-factor-universe strong { display: block; margin: 5px 0; color: var(--sp-text); font: 550 15px/1.4 var(--sp-font); }
.sp-v2 .sp-pa-factor-universe p, .sp-v2 .sp-pa-factor-proxy { margin: 0; max-width: 94ch; color: var(--sp-text-2); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-pa-factor-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 23px; }
.sp-v2 .sp-pa-factor-index > div { padding: 12px 0; border-top: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-factor-index strong { display: block; margin: 8px 0 5px; color: var(--sp-text); font: 550 15px/1.4 var(--sp-font); }
.sp-v2 .sp-pa-factor-index p { margin: 0; color: var(--sp-text-2); font-size: 12.5px; line-height: 1.65; }
.sp-v2 .sp-pa-factor-index a { color: var(--sp-link); }
.sp-v2 .sp-pa-factor-proxy { margin: 12px 0 16px; color: var(--sp-text); }
.sp-v2 .sp-pa-factor-nav { display: flex; flex-wrap: wrap; gap: 7px 20px; padding: 10px 0; border-block: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-factor-nav a { display: inline-flex; align-items: center; min-height: 35px; color: var(--sp-link-muted); font-size: 12px; text-decoration: none; }
.sp-v2 .sp-pa-factor-nav a:hover { text-decoration: underline; }
.sp-v2 .sp-pa-factor-nav a:focus-visible, .sp-v2 .sp-pa-factor-scroll:focus-visible, .sp-v2 .sp-pa-factor-provenance summary:focus-visible { outline: 2px solid var(--sp-brand-hi); outline-offset: 2px; }
.sp-v2 .sp-pa-factor-model { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-factor-model-head, .sp-v2 .sp-pa-factor-result-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 26px; }
.sp-v2 .sp-pa-factor-model-head h3 { margin: 5px 0 0; color: var(--sp-text); font: 600 clamp(21px, 2vw, 27px)/1.2 var(--sp-font); }
.sp-v2 .sp-pa-factor-model-head p { margin: 0; color: var(--sp-text); font: 12px/1.5 var(--sp-mono); text-align: right; }
.sp-v2 .sp-pa-factor-model-head small { color: var(--sp-text-2); font: 12px/1.5 var(--sp-font); }
.sp-v2 .sp-pa-factor-notes { margin-top: 20px; border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-factor-note { padding: 11px 0; border-bottom: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-factor-note > strong { display: block; margin-top: 5px; color: var(--sp-text); font-size: 12px; font-weight: 550; }
.sp-v2 .sp-pa-factor-note p { max-width: 110ch; margin: 5px 0 0; color: var(--sp-text-2); font-size: 13px; line-height: 1.68; }
.sp-v2 .sp-pa-factor-note-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.sp-v2 .sp-pa-factor-result-head { margin: 29px 0 10px; }
.sp-v2 .sp-pa-factor-result-head h4, .sp-v2 .sp-pa-factor-subhead { margin: 5px 0 0; color: var(--sp-text); font: 550 18px/1.3 var(--sp-font); }
.sp-v2 .sp-pa-factor-result-head p { margin: 0; color: var(--sp-text-2); font: 12px/1.5 var(--sp-mono); text-align: right; }
.sp-v2 .sp-pa-factor-scroll { max-width: 100%; overflow-x: auto; border-block: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-factor-scroll table { display: table; width: 100%; max-width: none; min-width: 690px; margin: 0; border-collapse: collapse; background: transparent; font-size: 11.5px; }
.sp-v2 .sp-pa-factor-scroll th, .sp-v2 .sp-pa-factor-scroll td { padding: 11px 12px; border-bottom: 1px solid var(--sp-line-mid); color: var(--sp-text); background: transparent; text-align: left; vertical-align: top; }
.sp-v2 .sp-pa-factor-scroll thead th { color: var(--sp-text-2); font-weight: 550; white-space: nowrap; }
.sp-v2 .sp-pa-factor-scroll [class~="num"] { text-align: right; font-family: var(--sp-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-v2 .sp-pa-factor-scroll [class~="metric-formula"] { max-width: 38ch; color: var(--sp-text-2); line-height: 1.5; }
.sp-v2 .sp-pa-factor-scroll small, .sp-v2 .sp-pa-factor-scroll [class~="se-inline"] { display: block; margin-top: 3px; color: var(--sp-text-2); font: 11px/1.4 var(--sp-font); white-space: normal; }
.sp-v2 .sp-pa-factor-scroll a { color: var(--sp-link); }
.sp-v2 .sp-pa-factor-scroll[aria-label="Five-factor portfolio loadings"] table { min-width: 820px; }
.sp-v2 .sp-pa-factor-scroll[aria-label="Same-day three- and five-factor fit comparison"] table { min-width: 750px; }
.sp-v2 .sp-pa-factor-fit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 17px 0; }
.sp-v2 .sp-pa-factor-fit > div { padding-top: 11px; border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-factor-fit span { display: block; }
.sp-v2 .sp-pa-factor-fit span:first-child { color: var(--sp-text-2); font-size: 12px; }
.sp-v2 .sp-pa-factor-fit span:nth-child(2) { margin: 6px 0; color: var(--sp-text); font: 500 23px/1.2 var(--sp-mono); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-pa-factor-fit span:last-child { color: var(--sp-text-2); font-size: 12.5px; line-height: 1.6; }
.sp-v2 .sp-pa-factor-explain, .sp-v2 .sp-pa-factor-formula { max-width: 106ch; margin: 13px 0; color: var(--sp-text-2); line-height: 1.65; }
.sp-v2 .sp-pa-factor-explain { font-size: 13px; line-height: 1.68; }
.sp-v2 .sp-pa-factor-formula { font-size: 12.5px; }
.sp-v2 .sp-pa-factor-explain strong { color: var(--sp-text); }
.sp-v2 .sp-pa-factor-formula code { color: var(--sp-text); }
.sp-v2 .sp-pa-factor-subhead { margin: 27px 0 7px; }
.sp-v2 .sp-pa-factor-provenance { margin: 24px 0; border-block: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-factor-provenance summary { padding: 12px 0; color: var(--sp-text); font-size: 12px; cursor: pointer; }
.sp-v2 .sp-pa-factor-provenance p, .sp-v2 .sp-pa-factor-reference p { color: var(--sp-text-2); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-pa-factor-lab .sp-pa-result-label { font-size: 11.5px; }
.sp-v2 .sp-pa-factor-endnote { margin-top: 22px; border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-factor-reference { margin-top: 22px; }
.sp-v2 .sp-pa-factor-reference p { margin: 6px 0 10px; }
@media (max-width: 800px) {
  .sp-v2 .sp-pa-factor-index { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .sp-v2 .sp-pa-factor-note-group { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-pa-factor-fit { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .sp-v2 .sp-pa-factor-model-head, .sp-v2 .sp-pa-factor-result-head { display: block; }
  .sp-v2 .sp-pa-factor-model-head p, .sp-v2 .sp-pa-factor-result-head p { margin-top: 8px; text-align: left; }
}
@media (max-width: 800px) {
  .sp-v2 .sp-pa-p4-methods { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sp-v2 .sp-pa-p4-shape { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 520px) {
  .sp-v2 .sp-pa-p4-block-head { display: block; }
  .sp-v2 .sp-pa-p4-block-head > p { margin-top: 5px; }
  .sp-v2 .sp-pa-p4-shape { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sp-v2 .sp-pa-p4-shape dd { margin: 3px 0; }
}
@media (max-width: 800px) {
  .sp-v2 .sp-pa-performance-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sp-v2 .sp-pa-result-primary { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--sp-line-mid); }
  .sp-v2 .sp-pa-risk-row { display: block; }
  .sp-v2 .sp-pa-risk-row > strong { display: block; margin: 5px 0; }
}
@media (max-width: 540px) {
  .sp-v2 .sp-pa-capm-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sp-v2 .sp-pa-history-stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sp-v2 .sp-pa-history-figure { padding: 12px 8px; overflow-x: auto; }
  .sp-v2 .sp-pa-history-figure > div { min-width: 500px; height: 290px; }
}
.sp-v2 .sp-portfolio-analysis a:focus-visible, .sp-v2 .sp-portfolio-analysis summary:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: 4px; }
@media (max-width: 1200px) {
  .sp-v2 .sp-pa-lens { flex-basis: 29%; }
  .sp-v2 .sp-pa-lens:nth-child(n+4) { border-top: 1px solid var(--sp-line-mid); }
  .sp-v2 .sp-pa-overline > span { display: block; margin: 3px 0 0; }
}
@media (max-width: 800px) {
  .sp-v2 .sp-pa-lens { flex-basis: 43%; }
  .sp-v2 .sp-pa-lens:nth-child(n+3) { border-top: 1px solid var(--sp-line-mid); }
  .sp-v2 .sp-pa-summary .sp-pa-investor { flex-basis: 28%; }
  .sp-v2 .sp-pa-book-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 0; }
  .sp-v2 .sp-pa-book-metrics .sp-pa-metric > span { min-height: 0; }
  .sp-v2 .sp-pa-detail .sp-pa-pair { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-pa-method-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sp-v2 .sp-pa-detail > .sp-analysis-nav { top: 0; }
  .sp-v2 .sp-pa-detail [id] { scroll-margin-top: 60px; }
}
@media (max-width: 480px) {
  .sp-v2 .sp-pa-head { padding-top: 17px; }
  .sp-v2 .sp-pa-lede { font-size: 12px; }
  .sp-v2 .sp-pa-truth > span { display: block; margin-bottom: 3px; }
  .sp-v2 .sp-pa-summary { flex-direction: column; }
  .sp-v2 .sp-pa-summary .sp-pa-investor { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--sp-line-mid); }
  .sp-v2 .sp-pa-investor > span small { display: inline; margin-left: 6px; }
  .sp-v2 .sp-pa-investor > small { display: inline; }
  .sp-v2 .sp-pa-investor > small:last-child { display: block; margin-top: 3px; }
  .sp-v2 .sp-pa-book { padding: 13px 0; }
  .sp-v2 .sp-pa-book-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .sp-v2 .sp-pa-metric { padding: 0 12px 0 0; }
  .sp-v2 .sp-pa-lenses { column-gap: 0; }
  .sp-v2 .sp-pa-lens { flex-basis: 100%; padding: 10px 0; gap: 14px; }
  .sp-v2 .sp-pa-lens:nth-child(n+2) { border-top: 1px solid var(--sp-line-mid); }
  .sp-v2 .sp-pa-lens p { margin-top: 3px; line-height: 1.5; }
  .sp-v2 .sp-pa-lens h3 a { min-height: 36px; align-items: center; }
  .sp-v2 .sp-pa-subroute, .sp-v2 .sp-pa-lab-sections h4 a { min-height: 44px; align-items: center; }
  .sp-v2 .sp-pa-bridge { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sp-v2 .sp-pa-bridge dt a { min-height: 30px; }
  .sp-v2 .sp-pa-method-disclosure > summary { min-height: 44px; }
}

/* P7 · Implied Returns: return evidence, not an allocation surface. */
.sp-v2 .sp-pa-implied .sp-pa-implied-lab { min-width: 0; margin: 32px 0 0; }
.sp-v2 .sp-pa-implied .sp-bl-label { margin: 0 0 7px; color: var(--sp-brand-hi); font: 600 11.5px/1.4 var(--sp-mono); letter-spacing: .075em; text-transform: uppercase; }
.sp-v2 .sp-pa-implied .sp-bl-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 18px 0 22px; padding: 13px 0; border-block: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-implied .sp-bl-facts > div { min-width: 0; padding: 4px 13px; border-right: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-implied .sp-bl-facts > div:first-child { padding-left: 0; }
.sp-v2 .sp-pa-implied .sp-bl-facts > div:last-child { border-right: 0; }
.sp-v2 .sp-pa-implied .sp-bl-facts dt { margin: 0 0 5px; color: var(--sp-text-2); font: 600 11.5px/1.4 var(--sp-mono); letter-spacing: .04em; text-transform: uppercase; }
.sp-v2 .sp-pa-implied .sp-bl-facts dd { margin: 0; color: var(--sp-text); font: 550 12px/1.5 var(--sp-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sp-v2 .sp-pa-implied .sp-bl-facts dd small { display: block; margin-top: 3px; color: var(--sp-text-2); font: 400 11.5px/1.45 var(--sp-font); }
.sp-v2 .sp-pa-implied .sp-bl-boundary { margin: 0 0 18px; padding: 13px 16px; border-left: 3px solid var(--sp-brand); background: var(--sp-brand-tint); }
.sp-v2 .sp-pa-implied .sp-bl-boundary p:last-child { max-width: 92ch; margin: 0; color: var(--sp-text); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-pa-implied .sp-bl-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 24px 0; border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-implied .sp-bl-notes--lead { margin: 0 0 30px; }
.sp-v2 .sp-pa-implied .sp-bl-note { padding: 12px 0 14px; border-bottom: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-implied .sp-bl-note h3 { margin: 0 0 6px; color: var(--sp-text); font-size: 13px; font-weight: 600; line-height: 1.4; }
.sp-v2 .sp-pa-implied .sp-bl-note p { margin: 0; color: var(--sp-text-2); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-pa-implied .sp-bl-heading { margin: 31px 0 15px; }
.sp-v2 .sp-pa-implied .sp-bl-heading h3 { margin: 0 0 5px; color: var(--sp-text); font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.sp-v2 .sp-pa-implied .sp-bl-heading p:last-child { max-width: 95ch; margin: 0; color: var(--sp-text-2); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-pa-implied .sp-bl-concepts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0 0 18px; }
.sp-v2 .sp-pa-implied .sp-bl-concepts > div { padding-top: 9px; border-top: 2px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-implied .sp-bl-concepts h4 { margin: 0 0 5px; color: var(--sp-text); font-size: 13px; font-weight: 600; }
.sp-v2 .sp-pa-implied .sp-bl-concepts p, .sp-v2 .sp-pa-implied .sp-bl-limit, .sp-v2 .sp-pa-implied .sp-bl-table-foot, .sp-v2 .sp-pa-implied .sp-bl-empty, .sp-v2 .sp-pa-implied .sp-bl-form-help { margin: 0 0 12px; color: var(--sp-text-2); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-pa-implied .sp-bl-limit { max-width: 100ch; color: var(--sp-text); }
.sp-v2 .sp-pa-implied .sp-bl-table-region { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; border-block: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-implied .sp-bl-table-region:focus-visible { outline: 2px solid var(--sp-brand-hi); outline-offset: 2px; }
.sp-v2 .sp-pa-implied .sp-pa-detail .sp-bl-table { display: table; width: 100%; max-width: none; min-width: 735px; margin: 0; overflow: visible; border-collapse: collapse; font-size: 12px; line-height: 1.4; }
.sp-v2 .sp-pa-implied .sp-pa-detail .sp-bl-table--views { min-width: 1020px; }
.sp-v2 .sp-pa-implied .sp-bl-table caption { padding: 9px 0; color: var(--sp-text-2); font-size: 12px; text-align: left; }
.sp-v2 .sp-pa-implied .sp-bl-table th, .sp-v2 .sp-pa-implied .sp-bl-table td { padding: 10px 12px; border-bottom: 1px solid var(--sp-line-mid); color: var(--sp-text); font-variant-numeric: tabular-nums; vertical-align: middle; }
.sp-v2 .sp-pa-implied .sp-bl-table thead th { color: var(--sp-text-2); background: var(--sp-surface); font: 550 11.5px/1.4 var(--sp-mono); }
.sp-v2 .sp-pa-implied .sp-bl-table tbody th { min-width: 145px; font: 600 12px/1.4 var(--sp-mono); text-align: left; }
.sp-v2 .sp-pa-implied .sp-bl-table tbody th small { display: block; margin-top: 2px; color: var(--sp-text-2); font: 400 11.5px/1.4 var(--sp-font); }
.sp-v2 .sp-pa-implied .sp-bl-table .sp-bl-num { text-align: right; white-space: nowrap; font-family: var(--sp-mono); }
.sp-v2 .sp-pa-implied .sp-bl-table-foot { margin: 10px 0 14px; }
.sp-v2 .sp-pa-implied .sp-bl-form { margin: 18px 0 25px; padding: 16px 18px; border: 1px solid var(--sp-line-strong); background: var(--sp-surface); }
.sp-v2 .sp-pa-implied .sp-bl-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; align-items: end; }
.sp-v2 .sp-pa-implied .sp-bl-field { min-width: 0; }
.sp-v2 .sp-pa-implied .sp-bl-field label { display: block; margin: 0 0 6px; color: var(--sp-text); font-size: 12px; font-weight: 600; }
.sp-v2 .sp-pa-implied .sp-bl-field label span { color: var(--sp-text-2); font-size: 11.5px; font-weight: 400; }
.sp-v2 .sp-pa-implied .sp-bl-field select, .sp-v2 .sp-pa-implied .sp-bl-field input { box-sizing: border-box; width: 100%; min-height: 39px; padding: 7px 9px; border: 1px solid var(--sp-line-strong); border-radius: 2px; background: var(--sp-surface); color: var(--sp-text); font: 12px/1.4 var(--sp-font); }
.sp-v2 .sp-pa-implied .sp-bl-field--versus { opacity: .76; }
.sp-v2 .sp-pa-implied .sp-bl-field--versus:focus-within { opacity: 1; }
.sp-v2 .sp-pa-implied .sp-bl-field-help { margin: 5px 0 0; color: var(--sp-text-2); font-size: 11.5px; line-height: 1.45; }
.sp-v2 .sp-pa-implied .sp-bl-button { min-height: 39px; padding: 7px 14px; border: 1px solid var(--sp-brand); border-radius: 2px; background: var(--sp-brand); color: var(--sp-on-brand); font: 600 12px/1.4 var(--sp-font); cursor: pointer; }
.sp-v2 .sp-pa-implied .sp-bl-button--quiet { border-color: var(--sp-line-strong); background: transparent; color: var(--sp-text); }
.sp-v2 .sp-pa-implied .sp-bl-button:hover { filter: brightness(1.08); }
.sp-v2 .sp-pa-implied .sp-bl-field--action .sp-bl-button { width: 100%; }
.sp-v2 .sp-pa-implied .sp-bl-form-help { margin: 13px 0 0; }
.sp-v2 .sp-pa-implied .sp-bl-error { margin: 5px 0; color: var(--sp-text); font-size: 12px; line-height: 1.5; }
.sp-v2 .sp-pa-implied .sp-bl-error:before { content: "Error · "; font-weight: 700; }
.sp-v2 .sp-pa-implied .sp-bl-clear { margin: 0 0 12px; }
.sp-v2 .sp-pa-implied .sp-bl-method { margin: 26px 0 46px; border-block: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-pa-implied .sp-bl-method > summary { min-height: 46px; padding: 13px 0; color: var(--sp-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.sp-v2 .sp-pa-implied .sp-bl-method-body { max-width: 105ch; padding: 0 0 15px; }
.sp-v2 .sp-pa-implied .sp-bl-method-body p { margin: 0 0 12px; color: var(--sp-text-2); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-pa-implied .sp-bl-method-body strong { color: var(--sp-text); }
.sp-v2 .sp-pa-implied .sp-bl-field input:focus-visible, .sp-v2 .sp-pa-implied .sp-bl-field select:focus-visible, .sp-v2 .sp-pa-implied .sp-bl-button:focus-visible, .sp-v2 .sp-pa-implied .sp-bl-method > summary:focus-visible { outline: 2px solid var(--sp-brand-hi); outline-offset: 2px; }
@media (max-width: 1000px) { .sp-v2 .sp-pa-implied .sp-bl-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } .sp-v2 .sp-pa-implied .sp-bl-facts > div:nth-child(3) { border-right: 0; } .sp-v2 .sp-pa-implied .sp-bl-facts > div:nth-child(4) { padding-left: 0; } }
@media (max-width: 700px) { .sp-v2 .sp-pa-implied .sp-bl-notes, .sp-v2 .sp-pa-implied .sp-bl-concepts { grid-template-columns: minmax(0, 1fr); gap: 0; } .sp-v2 .sp-pa-implied .sp-bl-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sp-v2 .sp-pa-implied .sp-bl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-v2 .sp-pa-implied .sp-bl-facts > div { padding: 7px 10px; } .sp-v2 .sp-pa-implied .sp-bl-facts > div:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--sp-line-mid); } .sp-v2 .sp-pa-implied .sp-bl-facts > div:nth-child(even) { border-right: 0; } .sp-v2 .sp-pa-implied .sp-bl-fields { grid-template-columns: minmax(0, 1fr); } .sp-v2 .sp-pa-implied .sp-bl-form { padding: 14px; } }
/* P8 Activity: ledger, forms and realised-gains presentation. */
.sp-v2 .sp-pa-activity .sp-pa-activity-head { padding: 18px 0 12px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-head h1 { margin: 0; color: var(--sp-text); font: 600 clamp(28px, 2.8vw, 40px)/1.12 var(--sp-font); letter-spacing: -.035em; text-transform: none; }
.sp-v2 .sp-pa-activity .sp-pa-activity-head > p:last-child { margin: 8px 0 0; color: var(--sp-text-2); font-size: 14px; line-height: 1.55; }
.sp-v2 .sp-pa-activity .sp-pa-activity-head strong { color: var(--sp-text); }
.sp-v2 .sp-pa-activity .sp-pf-controls { padding-block: 8px; }
.sp-v2 .sp-pa-activity .sp-pf-nav { margin-top: 0; }
.sp-v2 .sp-pa-activity .sp-pa-activity-local { display: flex; gap: var(--sp-4); margin: 14px 0 0; border-bottom: 1px solid var(--sp-line); }
.sp-v2 .sp-pa-activity .sp-pa-activity-local a { display: inline-flex; align-items: center; min-height: 38px; border-bottom: 2px solid transparent; color: var(--sp-text-2); font: 600 var(--sp-t-meta) var(--sp-font); text-decoration: none; }
.sp-v2 .sp-pa-activity .sp-pa-activity-local a[aria-current="page"] { border-color: var(--sp-brand); color: var(--sp-text); }
.sp-v2 .sp-pa-activity .sp-pa-activity-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin: 23px 0 32px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-actions .sp-pf-action { min-height: 38px; padding: 7px 14px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-text-link { color: var(--sp-link-muted); font-size: var(--sp-t-meta); font-weight: 600; text-decoration: none; }
.sp-v2 .sp-pa-activity .sp-pa-activity-text-link:hover { text-decoration: underline; }
.sp-v2 .sp-pa-activity .sp-pa-activity-section { min-width: 0; margin: 28px 0 42px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 14px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-section-head h2 { margin: 0; color: var(--sp-text); font: 600 clamp(19px, 1.7vw, 24px)/1.25 var(--sp-font); letter-spacing: -.02em; text-transform: none; }
.sp-v2 .sp-pa-activity .sp-pa-activity-section-head > p { margin: 0; color: var(--sp-text-3); font-size: 12.5px; line-height: 1.5; }
.sp-v2 .sp-pa-activity .sp-pa-activity-table-frame { max-width: 100%; min-width: 0; overflow: hidden; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-surface); }
.sp-v2 .sp-pa-activity .sp-pa-activity-scroll { max-width: 100%; max-height: 67vh; overflow: auto; overscroll-behavior: contain; }
.sp-v2 .sp-pa-activity .sp-pa-activity-scroll:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: -2px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-table { width: 100%; min-width: 790px; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; background: var(--sp-surface); color: var(--sp-text); font: 400 12px/1.45 var(--sp-font); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-pa-activity .sp-pa-activity-gains-table { min-width: 1040px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-table th,
.sp-v2 .sp-pa-activity .sp-pa-activity-table td { padding: 11px 13px; border: 0; border-bottom: 1px solid var(--sp-line); background: var(--sp-surface); vertical-align: middle; text-align: left; }
.sp-v2 .sp-pa-activity .sp-pa-activity-table tbody tr:last-child > * { border-bottom: 0; }
.sp-v2 .sp-pa-activity .sp-pa-activity-table tbody tr:hover > * { background: var(--sp-hover); }
.sp-v2 .sp-pa-activity .sp-pa-activity-table thead th { position: sticky; z-index: 2; top: 0; color: var(--sp-text-3); background: var(--sp-raised); font: 650 11.5px/1.4 var(--sp-mono); letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.sp-v2 .sp-pa-activity .sp-pa-activity-table .sp-pa-activity-num { text-align: right; white-space: nowrap; }
.sp-v2 .sp-pa-activity .sp-pa-activity-date { white-space: nowrap; }
.sp-v2 .sp-pa-activity .sp-pa-activity-holding { min-width: 150px; font-weight: 600; }
.sp-v2 .sp-pa-activity .sp-pa-activity-holding a { color: var(--sp-link); font: 700 12px var(--sp-mono); text-decoration: none; }
.sp-v2 .sp-pa-activity .sp-pa-activity-holding a:hover { text-decoration: underline; }
.sp-v2 .sp-pa-activity .sp-pa-activity-holding span { display: block; margin-top: 3px; color: var(--sp-text-3); font-size: 12px; font-weight: 400; }
.sp-v2 .sp-pa-activity .sp-pa-activity-type,
.sp-v2 .sp-pa-activity .sp-pa-activity-class { display: inline-block; padding: 3px 7px; border: 1px solid var(--sp-line-mid); border-radius: 3px; background: var(--sp-raised); color: var(--sp-text-2); font: 650 11.5px/1.3 var(--sp-mono); letter-spacing: .03em; }
.sp-v2 .sp-pa-activity .sp-pa-activity-row-actions { white-space: nowrap; }
.sp-v2 .sp-pa-activity .sp-pa-activity-row-actions a { margin-right: 12px; color: var(--sp-link-muted); font-size: 11.5px; text-decoration: none; }
.sp-v2 .sp-pa-activity .sp-pa-activity-row-actions a:hover { text-decoration: underline; }
.sp-v2 .sp-pa-activity .sp-pa-activity-company-list { border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-activity .sp-pa-activity-company { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 26px; padding: 15px 2px; border-bottom: 1px solid var(--sp-line); }
.sp-v2 .sp-pa-activity .sp-pa-activity-company strong { display: block; color: var(--sp-text); font: 700 12px var(--sp-mono); }
.sp-v2 .sp-pa-activity .sp-pa-activity-company span { display: block; margin-top: 3px; color: var(--sp-text-3); font-size: 12px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-company p { margin: 0; color: var(--sp-text-2); font-size: 12px; white-space: nowrap; }
.sp-v2 .sp-pa-activity .sp-pa-activity-company b { margin-left: 5px; color: var(--sp-text); font: 650 12px var(--sp-mono); }
.sp-v2 .sp-pa-activity .sp-pa-activity-company a,
.sp-v2 .sp-pa-activity .sp-pa-activity-empty a { color: var(--sp-link); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sp-v2 .sp-pa-activity .sp-pa-activity-empty { padding: 26px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-surface); }
.sp-v2 .sp-pa-activity .sp-pa-activity-empty h2,
.sp-v2 .sp-pa-activity .sp-pa-activity-empty h3 { margin: 0 0 7px; color: var(--sp-text); font-size: 18px; font-weight: 600; text-transform: none; }
.sp-v2 .sp-pa-activity .sp-pa-activity-empty p { margin: 0 0 13px; color: var(--sp-text-2); font-size: 13px; line-height: 1.6; }
.sp-v2 .sp-pa-activity .sp-pa-activity-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0 30px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-surface); }
.sp-v2 .sp-pa-activity .sp-pa-activity-facts > div { min-width: 0; padding: 16px 20px; border-right: 1px solid var(--sp-line); }
.sp-v2 .sp-pa-activity .sp-pa-activity-facts > div:last-child { border-right: 0; }
.sp-v2 .sp-pa-activity .sp-pa-activity-facts dt { color: var(--sp-text-3); font: 650 11.5px var(--sp-mono); letter-spacing: .05em; text-transform: uppercase; }
.sp-v2 .sp-pa-activity .sp-pa-activity-facts dd { margin: 8px 0 0; color: var(--sp-text); font: 600 clamp(17px, 1.65vw, 23px) var(--sp-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sp-v2 .sp-pa-activity .sp-pa-activity-facts small { display: block; margin-top: 6px; color: var(--sp-text-3); font-size: 12px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-fy { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 15px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-trail { border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-activity .sp-pa-activity-sale { border-bottom: 1px solid var(--sp-line); }
.sp-v2 .sp-pa-activity .sp-pa-activity-sale summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 16px 2px; color: var(--sp-text); font-size: 12.5px; cursor: pointer; }
.sp-v2 .sp-pa-activity .sp-pa-activity-sale summary strong { font: 650 12px var(--sp-mono); }
.sp-v2 .sp-pa-activity .sp-pa-activity-sale > div { padding: 0 3px 17px; color: var(--sp-text-2); font-size: 12.5px; line-height: 1.6; }
.sp-v2 .sp-pa-activity .sp-pa-activity-sale ul { margin: 8px 0 0; padding-left: 20px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-sale li { margin: 8px 0; }
.sp-v2 .sp-pa-activity .sp-pa-activity-sale li span { display: block; color: var(--sp-text-3); }
.sp-v2 .sp-pa-activity .sp-pa-activity-form-layout { display: grid; grid-template-columns: minmax(0, 650px) minmax(230px, 1fr); align-items: start; gap: 26px; margin: 26px 0 50px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-form-main { min-width: 0; }
.sp-v2 .sp-pa-activity .sp-pa-activity-scope { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--sp-brand-line); border-radius: var(--sp-r-sm); background: var(--sp-brand-tint); color: var(--sp-text-2); font-size: 13px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-scope strong { color: var(--sp-text); }
.sp-v2 .sp-pa-activity .sp-pa-activity-note { margin: 0 0 17px; padding: 14px 17px; border-left: 2px solid var(--sp-brand); background: var(--sp-raised); color: var(--sp-text-2); font-size: 13px; line-height: 1.6; }
.sp-v2 .sp-pa-activity .sp-pa-activity-note strong { color: var(--sp-text); }
.sp-v2 .sp-pa-activity .sp-pa-activity-note p { margin: 4px 0 0; }
.sp-v2 .sp-pa-activity .sp-pa-activity-form { padding: 22px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-surface); }
.sp-v2 .sp-pa-activity .sp-pa-activity-field { margin-bottom: 18px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-field label { display: block; margin-bottom: 6px; color: var(--sp-text); font-size: 12.5px; font-weight: 600; }
.sp-v2 .sp-pa-activity .sp-pa-activity-field input { display: block; width: 100%; min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid var(--sp-line-strong); border-radius: var(--sp-r-sm); background: var(--sp-surface); color: var(--sp-text); font: 13px var(--sp-font); }
.sp-v2 .sp-pa-activity .sp-pa-activity-help { margin: 5px 0 0; color: var(--sp-text-3); font-size: 12.5px; line-height: 1.6; }
.sp-v2 .sp-pa-activity .sp-pa-activity-field-errors { margin: 5px 0 0; padding-left: 18px; color: var(--sp-neg); font-size: 12.5px; line-height: 1.5; }
.sp-v2 .sp-pa-activity .sp-pa-activity-field-errors:empty { display: none; }
.sp-v2 .sp-pa-activity .sp-pa-activity-form-error { margin-bottom: 17px; padding: 12px 15px; border: 1px solid var(--sp-neg); color: var(--sp-text); font-size: 12.5px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-form-error ul { margin: 5px 0 0; padding-left: 18px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-form-actions .sp-pf-action { margin: 0; font: 650 13px var(--sp-font); cursor: pointer; }
.sp-v2 .sp-pa-activity .sp-pa-activity-form-actions a { color: var(--sp-link-muted); font-size: 13px; text-decoration: none; }
.sp-v2 .sp-pa-activity .sp-pa-activity-available { padding: 17px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-surface); }
.sp-v2 .sp-pa-activity .sp-pa-activity-available h2 { margin: 0; color: var(--sp-text); font-size: 18px; text-transform: none; }
.sp-v2 .sp-pa-activity .sp-pa-activity-available > p:not(.sp-pf-kicker) { color: var(--sp-text-2); font-size: 12.5px; line-height: 1.6; }
.sp-v2 .sp-pa-activity .sp-pa-activity-available ul { margin: 15px 0 0; padding: 0; list-style: none; }
.sp-v2 .sp-pa-activity .sp-pa-activity-available li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--sp-line); color: var(--sp-text-2); font: 12px var(--sp-mono); }
.sp-v2 .sp-pa-activity .sp-pa-activity-available li strong { color: var(--sp-text); }
.sp-v2 .sp-pa-activity .sp-pa-activity-confirm { max-width: 720px; margin: 26px 0 45px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-confirm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 18px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-surface); }
.sp-v2 .sp-pa-activity .sp-pa-activity-confirm-facts > div { padding: 14px 18px; border-bottom: 1px solid var(--sp-line); }
.sp-v2 .sp-pa-activity .sp-pa-activity-confirm-facts dt { color: var(--sp-text-3); font: 650 11.5px var(--sp-mono); letter-spacing: .05em; text-transform: uppercase; }
.sp-v2 .sp-pa-activity .sp-pa-activity-confirm-facts dd { margin: 6px 0 0; color: var(--sp-text); font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sp-v2 .sp-pa-activity .sp-pa-activity-confirm-facts dd span { display: block; color: var(--sp-text-3); font-size: 12px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-delete-button { min-height: 42px; padding: 9px 15px; border: 1px solid var(--sp-neg); border-radius: var(--sp-r-sm); background: transparent; color: var(--sp-neg); font: 650 13px var(--sp-font); cursor: pointer; }
.sp-v2 .sp-pa-activity .sp-pa-activity-delete-button:hover { background: var(--sp-neg); color: var(--sp-on-brand); }
.sp-v2 .sp-pa-activity .sp-pa-activity-caveat { margin: -12px 0 20px; color: var(--sp-text-2); font-size: 13px; line-height: 1.6; }
.sp-v2 .sp-pa-activity .sp-pa-activity-rate-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 18px 0; }
.sp-v2 .sp-pa-activity .sp-pa-activity-rate-form .sp-pa-activity-field { width: min(160px, 100%); margin: 0; }
.sp-v2 .sp-pa-activity .sp-pa-activity-rate-form .sp-pf-action { margin: 0; font: 650 13px var(--sp-font); cursor: pointer; }
.sp-v2 .sp-pa-activity .sp-pa-activity-rate-form > a { align-self: center; color: var(--sp-link-muted); font-size: 12.5px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-method { margin: 35px 0; border-top: 1px solid var(--sp-line-mid); border-bottom: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-pa-activity .sp-pa-activity-method summary { min-height: 42px; padding: 12px 0; color: var(--sp-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.sp-v2 .sp-pa-activity .sp-pa-activity-method > div { max-width: 92ch; padding-bottom: 14px; color: var(--sp-text-2); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-pa-activity .sp-pa-activity-gains-empty { margin: 26px 0 50px; }
.sp-v2 .sp-pa-activity .sp-pa-activity-gains-empty > div { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.sp-v2 .sp-pa-activity a:focus-visible,
.sp-v2 .sp-pa-activity button:focus-visible,
.sp-v2 .sp-pa-activity summary:focus-visible,
.sp-v2 .sp-pa-activity input:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: 2px; }
@media (max-width: 800px) {
  .sp-v2 .sp-pa-activity .sp-pa-activity-form-layout { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-pa-activity .sp-pa-activity-available { max-width: 650px; }
}
@media (max-width: 600px) {
  .sp-v2 .sp-pa-activity .sp-pa-activity-head { padding-top: 10px; }
  .sp-v2 .sp-pa-activity .sp-pa-activity-company { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .sp-v2 .sp-pa-activity .sp-pa-activity-facts { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-pa-activity .sp-pa-activity-facts > div { border-right: 0; border-bottom: 1px solid var(--sp-line); }
  .sp-v2 .sp-pa-activity .sp-pa-activity-facts > div:last-child { border-bottom: 0; }
  .sp-v2 .sp-pa-activity .sp-pa-activity-confirm-facts { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-pa-activity .sp-pa-activity-form { padding: 16px; }
  .sp-v2 .sp-pa-activity .sp-pa-activity-empty { padding: 20px; }
}


.sp-v2 .sp-co .sp-co-head {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: var(--sp-5);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r-lg);
  background: var(--sp-surface);
  overflow: hidden;
}
.sp-v2 .sp-co .sp-co-head-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--sp-5) var(--sp-6) var(--sp-5);
}

/* --- breadcrumb -------------------------------------------------------- */
.sp-v2 .sp-co .sp-co-crumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sp-v2 .sp-co .sp-co-crumb-up {
  color: var(--sp-text-3);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--sp-t-micro);
  transition: color var(--sp-fast);
}
.sp-v2 .sp-co .sp-co-crumb-up:hover { color: var(--sp-text); }
.sp-v2 .sp-co .sp-co-crumb-sep { color: var(--sp-text-3); opacity: 0.6; }
.sp-v2 .sp-co .sp-co-crumb-here { color: var(--sp-text-2); }

/* --- the identity row -------------------------------------------------
   `.detail-head` arrives from app.css as `space-between` with the action
   cluster pushed to the far right, which on a wide workspace left a large
   hole between the name and the price. Re-laid out as identity | price |
   actions with the identity taking the slack. */
.sp-v2 .sp-co .detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--sp-5) var(--sp-6);
  flex-wrap: wrap;
  margin-bottom: 0;
}
.sp-v2 .sp-co .detail-head > .ident { flex: 1 1 22rem; min-width: 0; }

.sp-v2 .sp-co .sp-co-ident {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  min-width: 0;
}
/* The two-character ticker mark. Same device as the homepage's company
   cards, one size up, and brand-tinted rather than multi-hue: there is one
   company on this page, so there is nothing to tell apart. */
.sp-v2 .sp-co .sp-co-mark {
  flex: 0 0 58px;
  width: 58px;
  height: 52px;
  border-radius: var(--sp-r);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-brand-tint);
  border: 1px solid var(--sp-brand-line);
  color: var(--sp-brand);
  font-family: var(--sp-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
/* SP-UI-002B5R1 -- the brand mark. The same bay as the monogram, so a company
   with a verified logo and one without lay out identically. A real mark gets
   a quieter neutral surface than the brand-tinted monogram, and is fitted
   with `object-fit: contain` inside a fixed inset: never cropped, stretched
   or recoloured -- no filter of any kind touches company artwork. A dark
   variant is a second <img>; exactly one is visible, following the same
   theme state the tokens follow (dark by default, light by system preference
   or the explicit toggle), so switching theme swaps it with no reload and no
   script. `visibility` rather than removal, so both occupy the same box. */
/* SP-UI-002B5R2, measured on the real marks. The bay keeps the monogram's
   height but its WIDTH follows the logo's own aspect ratio, capped: in a
   58px square HDFC Bank's 5.8:1 wordmark rendered 42x7 and TCS's 3.8:1 was
   no better -- present, and unreadable. Square marks (IRCTC) stay at the
   monogram's 58px minimum. */
.sp-v2 .sp-co .sp-co-brand {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: auto;
  min-width: 58px;
  max-width: 132px;
  padding: 8px 10px;
  overflow: hidden;
  background: var(--sp-raised);
  border-color: var(--sp-line-mid);
}
.sp-v2 .sp-co .sp-co-brand-img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  object-position: center;
}
/* The dark twin sits exactly over its light twin, which sizes the bay. */
.sp-v2 .sp-co .sp-co-brand-img--dark {
  position: absolute;
  top: 8px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 16px);
  max-width: none;
}
/* A mark that ships NO dark variant is, by the asset contract, artwork for
   a light background. Measured: Reliance's wordmark ink is #1b1413 and
   IRCTC's mark is navy, both close to invisible on the dark surface. Such a
   mark sits on a soft light plate in dark theme -- a tinted grey, not a white
   advertising tile -- and on the ordinary raised surface in light theme. The
   artwork itself is never altered. */
.sp-v2 .sp-co .sp-co-brand--plate {
  background: #DCE3E3;
  border-color: rgba(255, 255, 255, 0.16);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .sp-v2 .sp-co .sp-co-brand--plate { background: var(--sp-raised); border-color: var(--sp-line-mid); }
}
:root[data-theme="light"] .sp-v2 .sp-co .sp-co-brand--plate { background: var(--sp-raised); border-color: var(--sp-line-mid); }
.sp-v2 .sp-co .sp-co-brand-img--light { visibility: hidden; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .sp-v2 .sp-co .sp-co-brand-img--light { visibility: visible; }
  :root:not([data-theme="dark"]) .sp-v2 .sp-co .sp-co-brand-img--dark { visibility: hidden; }
}
:root[data-theme="light"] .sp-v2 .sp-co .sp-co-brand-img--light { visibility: visible; }
:root[data-theme="light"] .sp-v2 .sp-co .sp-co-brand-img--dark { visibility: hidden; }

.sp-v2 .sp-co .sp-co-ident-text { min-width: 0; }

/* Ticker as metadata above the name, not a second heading beside it. */
.sp-v2 .sp-co .sp-co-ticker {
  display: block;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-meta);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--sp-brand);
  margin-bottom: 2px;
}
/* The one h1. app.css lays `.detail-head .ident h1` out as a baseline flex
   row for the old ticker-beside-name arrangement; the ticker is its own
   block now, so this goes back to being an ordinary heading. */
.sp-v2 .sp-co .detail-head .ident h1 {
  display: block;
  margin: 0;
  font-family: var(--sp-font);
  font-size: clamp(23px, 1rem + 0.9vw, 30px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--sp-text);
  /* A 52-character name is real (IRCTC). It wraps; it is never truncated,
     because an ellipsis on the primary heading hides a layout problem
     rather than solving it. */
  overflow-wrap: break-word;
  text-transform: none;
}
.sp-v2 .sp-co .detail-head .ident .sector {
  margin-top: var(--sp-2);
  font-size: var(--sp-t-meta);
  color: var(--sp-text-3);
}

/* --- price panel ------------------------------------------------------
   Same four values as before. Rebuilt as a bordered readout rather than a
   floating card, so it reads as part of the header rather than a widget
   sitting on top of it. */
.sp-v2 .sp-co .detail-head .price-box {
  flex: 0 0 auto;
  max-width: none;
  align-items: flex-start;
  gap: 1px;
  padding: var(--sp-3) var(--sp-5);
  background: var(--sp-raised);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
}
.sp-v2 .sp-co .detail-head .price-box .tile-label,
.sp-v2 .sp-co .detail-head .price-box .price-box-sub,
.sp-v2 .sp-co .detail-head .price-box .price-box-asof {
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  color: var(--sp-text-3);
  letter-spacing: 0.05em;
}
.sp-v2 .sp-co .detail-head .price-box .tile-label { text-transform: uppercase; }
.sp-v2 .sp-co .detail-head .price-box .tile-value {
  font-family: var(--sp-font);
  font-weight: 650;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--sp-text);
  margin: 1px 0 2px;
}
.sp-v2 .sp-co .detail-head .price-box .price-box-sub { text-transform: none; }
/* Never colour-only: the badge keeps the word "stale" beside the figure. */
.sp-v2 .sp-co .stale-badge {
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  color: var(--sp-warn);
  background: var(--sp-warn-tint);
  border: 1px solid rgba(228, 170, 79, 0.38);
  border-radius: var(--sp-r-sm);
  padding: 0 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- action row -------------------------------------------------------
   Deliberately NOT wrapped in tier containers: test_statement_and_peer_views
   slices this row from `class="action"` to the first `</div>`, so a nested
   div before the statement links truncates it. The two tiers are therefore
   expressed on the controls themselves. */
.sp-v2 .sp-co .detail-head .action {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  justify-content: flex-start;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--sp-line);
}
/* Secondary: the five places a reader GOES. Quiet, equal, compact. */
.sp-v2 .sp-co .detail-head .action .btn-ghost {
  font-family: var(--sp-font);
  font-size: var(--sp-t-meta);
  font-weight: 500;
  line-height: 1;
  padding: 7px var(--sp-3);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  background: transparent;
  color: var(--sp-text-2);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--sp-fast), color var(--sp-fast), background var(--sp-fast);
}
.sp-v2 .sp-co .detail-head .action .btn-ghost:hover {
  border-color: var(--sp-line-strong);
  background: var(--sp-hover);
  color: var(--sp-text);
}
/* Primary: the two things a reader DOES. One filled control, plus one
   outlined in the accent -- not two filled buttons competing. */
.sp-v2 .sp-co .detail-head .action .btn {
  font-family: var(--sp-font);
  font-size: var(--sp-t-meta);
  font-weight: 600;
  line-height: 1;
  padding: 8px var(--sp-4);
  border: 1px solid var(--sp-brand);
  border-radius: var(--sp-r-sm);
  background: var(--sp-brand);
  color: var(--sp-on-brand);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--sp-fast), border-color var(--sp-fast);
}
.sp-v2 .sp-co .detail-head .action .btn:hover {
  background: var(--sp-brand-hi);
  border-color: var(--sp-brand-hi);
}
.sp-v2 .sp-co .detail-head .action .btn-ghost.sp-co-act-on {
  border-color: var(--sp-brand-line);
  color: var(--sp-text);
}
.sp-v2 .sp-co .detail-head .action .btn-ghost.sp-co-act-on:hover {
  background: var(--sp-brand-tint);
  border-color: var(--sp-brand);
  color: var(--sp-text);
}
/* Remove-from-watchlist is destructive-adjacent, so it is distinguished
   from the neutral links without becoming alarming. */
.sp-v2 .sp-co .detail-head .action .btn-ghost.sp-co-act-off { color: var(--sp-text-3); }
.sp-v2 .sp-co .detail-head .action .btn-ghost.sp-co-act-off:hover {
  color: var(--sp-neg);
  border-color: rgba(240, 90, 103, 0.4);
  background: rgba(240, 90, 103, 0.08);
}
/* Anonymous: honest text links, never dressed as buttons that would then
   not do what a button implies. */
.sp-v2 .sp-co .detail-head .action .wl-login {
  font-family: var(--sp-font);
  font-size: var(--sp-t-meta);
  color: var(--sp-text-3);
  text-decoration: none;
  border-bottom: 1px solid var(--sp-line-mid);
  padding-bottom: 1px;
  transition: color var(--sp-fast), border-color var(--sp-fast);
}
.sp-v2 .sp-co .detail-head .action .wl-login:hover {
  color: var(--sp-text);
  border-color: var(--sp-brand-line);
}
.sp-v2 .sp-co .wl-form { display: inline-flex; margin: 0; }

/* --- source-first research snapshot ----------------------------------
   A compact evidence strip inside the existing identity header. It uses the
   page's already-loaded records, contains no interactive calculation state,
   and deliberately reads as metadata rather than a new dashboard section. */
.sp-v2 .sp-co .sp-co-research-snapshot {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--sp-line);
}
.sp-v2 .sp-co .sp-co-research-snapshot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.sp-v2 .sp-co .sp-co-research-snapshot-head h2 {
  margin: 0;
  font-size: var(--sp-t-body);
  font-weight: 650;
  letter-spacing: 0;
}
.sp-v2 .sp-co .sp-co-research-snapshot-head span {
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sp-v2 .sp-co .sp-co-research-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r-sm);
  background: var(--sp-line);
}
.sp-v2 .sp-co .sp-co-research-facts > div {
  min-width: 0;
  padding: var(--sp-3);
  background: var(--sp-raised);
}
.sp-v2 .sp-co .sp-co-research-facts dt {
  margin-bottom: 3px;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sp-v2 .sp-co .sp-co-research-facts dd {
  margin: 0;
  color: var(--sp-text);
  font-size: var(--sp-t-meta);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.sp-v2 .sp-co .sp-co-research-comparisons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin: var(--sp-3) 0 0;
  padding: 0;
  list-style: none;
}
.sp-v2 .sp-co .sp-co-research-comparisons li {
  color: var(--sp-text-2);
  font-size: var(--sp-t-meta);
  line-height: 1.45;
}
.sp-v2 .sp-co .sp-co-research-comparisons strong {
  display: block;
  color: var(--sp-text);
  font-weight: 600;
}
.sp-v2 .sp-co .sp-co-research-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-3);
}
.sp-v2 .sp-co .sp-co-research-links a {
  color: var(--sp-link-muted);
  font-size: var(--sp-t-meta);
  text-decoration: none;
  border-bottom: 1px solid var(--sp-line-mid);
}
.sp-v2 .sp-co .sp-co-research-links a:hover {
  color: var(--sp-text);
  border-bottom-color: var(--sp-brand);
}

/* --- the photograph ---------------------------------------------------
   The homepage hero's rule applies unchanged: the media does not flip with
   the theme. A light-themed mountain is a bleached mountain, so this stays
   a dark object in both, and nothing is ever printed on top of it. Far more
   restrained than the hero: a narrow column, capped, heavily scrimmed, and
   with no caption. Purely atmosphere. */
/* SP-UI-002B2R1 re-art-directed this panel. B1's version stacked a flat
   55%-to-30% black scrim on an already-dark night photograph, cropped at
   62% 38% -- which lands mostly on cloud and sky -- so in dark the mountain
   barely read, and in light it read as an unrelated dark slab.

   THE ASSET CONTRACT. Everything specific to one photograph lives in the
   `--sp-co-media-*` custom properties below, so a future curated asset
   (company-dark-NN / company-light-NN, see docs/ui_design_system.md §8d) is
   a change of tokens, not of layout:
     --sp-co-media-image   the photograph (an absolute URL if ever set from
                           a template, since relative url()s resolve against
                           the stylesheet)
     --sp-co-media-zoom    background-size; zooms toward the subject so a
                           narrow panel still shows a composition
     --sp-co-media-focus   background-position; the subject's focal point
     --sp-co-media-filter  exposure, per theme
     --sp-co-media-veil    a tonal layer over the photo, per theme
     --sp-co-media-fade    how far the left edge dissolves, per theme
   The panel reads NONE of the homepage's `--sp-photo-edge`/`--sp-photo-filter`
   any more, so tuning it here cannot move the approved hero.

   THE EDGE IS A MASK, NOT A PAINTED FEATHER. A colour gradient over the photo
   has to guess the colour it fades into; a mask makes the photograph itself
   transparent, so what shows through is the header's own surface in whichever
   theme rendered. That is what removes the "image rectangle" seam in light. */
.sp-v2 .sp-co .sp-co-media {
  /* Crop, computed on the 1672x941 asset rather than eyeballed: the lit
     summit sits at (1300, 180) and its snowfield spans roughly y 190-520.
     Measured at the 1440 layout (panel 273x317), `cover` at center or at
     65% leaves the summit OUT of frame, and `cover` at right-center shows it
     small inside a frame that is half sky. At 176% of the panel height and
     an 85% / 12% focus the summit lands ~58% across and ~24% down, clear of
     the left dissolve, with the snowfield filling the frame below it. */
  --sp-co-media-image: url("../img/v2/hero-mountain.793b35087b72.png");
  --sp-co-media-zoom: auto 176%;
  --sp-co-media-focus: 85% 12%;
  /* Dark: lifted, not blown. The asset is a night exposure, so a modest
     brightness step plus a little contrast brings the ridge and snow out
     while the sky stays dark; saturation is eased so the blue cast does not
     go electric. */
  --sp-co-media-filter: brightness(1.18) contrast(1.08) saturate(0.88);
  --sp-co-media-veil: linear-gradient(to top, rgba(2, 6, 8, 0.28) 0%, rgba(2, 6, 8, 0) 42%);
  --sp-co-media-fade: 34%;

  flex: 0 0 clamp(180px, 24%, 340px);
  position: relative;
  align-self: stretch;
  min-height: 100%;
  background-color: var(--sp-photo-base);
  background-image: var(--sp-co-media-veil), var(--sp-co-media-image);
  background-size: auto, var(--sp-co-media-zoom);
  background-position: center, var(--sp-co-media-focus);
  background-repeat: no-repeat;
  filter: var(--sp-co-media-filter);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 var(--sp-co-media-fade));
  mask-image: linear-gradient(to right, transparent 0%, #000 var(--sp-co-media-fade));
}

/* --- internal research nav --------------------------------------------
   Sticks BELOW the shell's own topbar, which is sticky at top:0 with
   z-index 30 -- hence the offset and a lower stacking order. One row at
   every width; it scrolls horizontally rather than wrapping into the four
   ragged rows the brief specifically ruled out. */
/* The nav and every scroll offset below are measured from what is really pinned
   above the page (header, plus the toolbar where it is sticky). workspace-sidebar.js
   publishes that as --sp-co-chrome; the fixed value is only the no-JS fallback. */
.sp-v2 .sp-co { --sp-topbar: var(--sp-co-chrome, 104px); }
@media (min-width: 641px) { .sp-v2 .sp-co { --sp-topbar: var(--sp-co-chrome, 125px); } }
/* Phones: only the site header stays pinned; the toolbar row scrolls away with the page. */
@media (max-width: 640px) { .sp-v2.mdw-ready .mdw-toolbar { position: static; } }
/* The drawer's company group is only needed where the drawer is used. */
@media (min-width: 1200px) { .sp-v2 .mdw-group-local { display: none; } }
.sp-v2 .sp-co .sp-co-nav {
  position: sticky;
  top: var(--sp-topbar);
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  gap: var(--sp-1);
  align-items: stretch;
  margin: 0 0 var(--sp-6);
  padding: var(--sp-1);
  background: var(--sp-canvas);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.sp-v2 .sp-co .sp-co-nav::-webkit-scrollbar { height: 4px; }
.sp-v2 .sp-co .sp-co-nav::-webkit-scrollbar-thumb {
  background: var(--sp-line-strong);
  border-radius: var(--sp-r-pill);
}
.sp-v2 .sp-co .sp-co-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--sp-3);
  min-height: 32px;
  border-radius: var(--sp-r-sm);
  font-family: var(--sp-font);
  font-size: var(--sp-t-meta);
  font-weight: 500;
  color: var(--sp-link-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--sp-fast), background var(--sp-fast);
}
.sp-v2 .sp-co .sp-co-nav a:hover { color: var(--sp-text); background: var(--sp-hover); }
/* The active state is set by the page's own IntersectionObserver, which is
   progressive enhancement -- these rules simply never match without it. */
.sp-v2 .sp-co .sp-co-nav a.sp-co-nav-on {
  color: var(--sp-text);
  background: var(--sp-brand-tint);
  font-weight: 600;
}
.sp-v2 .sp-co .sp-co-nav a:focus-visible {
  outline: 2px solid var(--sp-brand);
  outline-offset: -2px;
}

/* --- anchor offsets ---------------------------------------------------
   app.css sets `main h2[id] { scroll-margin-top: 4rem }` globally, sized for
   the legacy page's own sticky bar. Under this shell the obstruction is the
   topbar plus this nav, and three of the eleven nav targets are not h2s at
   all (the header, the source-document pair, the notes panel), so they are
   named explicitly. */
.sp-v2 .sp-co h2[id],
.sp-v2 .sp-co #sp-co-overview,
.sp-v2 .sp-co #beneish-m-score,
.sp-v2 .sp-co #source-documents,
.sp-v2 .sp-co #notes {
  scroll-margin-top: calc(var(--sp-topbar) + 64px);
}

/* --- responsive ------------------------------------------------------- */
@media (max-width: 1100px) {
  /* Narrow enough that the photograph costs the data more room than the
     atmosphere is worth. */
  .sp-v2 .sp-co .sp-co-media { flex: 0 0 128px; }
}
@media (max-width: 860px) {
  .sp-v2 .sp-co .sp-co-media { display: none; }
  .sp-v2 .sp-co .sp-co-head-main { padding: var(--sp-4) var(--sp-5); }
  .sp-v2 .sp-co .detail-head > .ident { flex: 1 1 100%; }
  .sp-v2 .sp-co .detail-head .price-box { flex: 1 1 100%; }
  .sp-v2 .sp-co .sp-co-research-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-v2 .sp-co .sp-co-research-comparisons { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .sp-v2 .sp-co .sp-co-mark { flex: 0 0 48px; width: 48px; height: 44px; font-size: 13px; }
  .sp-v2 .sp-co .sp-co-brand { flex: 0 0 auto; width: auto; min-width: 48px; max-width: 108px; padding: 6px 8px; }
  .sp-v2 .sp-co .sp-co-brand-img { max-width: 90px; }
  .sp-v2 .sp-co .sp-co-brand-img--dark { top: 6px; left: 8px; width: calc(100% - 16px); height: calc(100% - 12px); max-width: none; }
  /* Roughly 44px of touch target on the nav rail, per the brief. */
  .sp-v2 .sp-co .sp-co-nav a { min-height: 40px; padding: 0 var(--sp-4); }
  .sp-v2 .sp-co .detail-head .action { gap: var(--sp-2); }
  .sp-v2 .sp-co .detail-head .action .btn,
  .sp-v2 .sp-co .detail-head .action .btn-ghost { padding: 9px var(--sp-3); }
  .sp-v2 .sp-co .sp-co-research-snapshot-head { align-items: flex-start; flex-direction: column; gap: var(--sp-1); }
  .sp-v2 .sp-co .sp-co-research-facts { grid-template-columns: minmax(0, 1fr); }
}

/* Light mirrors. `--sp-photo-*` are untouched here, exactly as on the
   homepage: it is the SAME photograph in both themes, never inverted and
   never bleached. What changes in light is its PRESENTATION (SP-UI-002B2R1):
   a longer, softer dissolve into the white header, a gentler exposure that
   opens the shadows instead of adding contrast, and a pale atmospheric veil
   strongest at the top, so the night sky reads as high haze beside a light
   interface rather than a black slab. The ridge and snow stay legible. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .sp-v2 .sp-co .sp-co-nav { background: var(--sp-surface); }
  :root:not([data-theme="dark"]) .sp-v2 .sp-co .sp-co-media {
    --sp-co-media-filter: brightness(1.36) contrast(0.92) saturate(0.74);
    --sp-co-media-veil: linear-gradient(to bottom, rgba(241, 245, 245, 0.34) 0%, rgba(241, 245, 245, 0.08) 58%, rgba(241, 245, 245, 0.18) 100%);
    --sp-co-media-fade: 48%;
  }
}
:root[data-theme="light"] .sp-v2 .sp-co .sp-co-nav { background: var(--sp-surface); }
:root[data-theme="light"] .sp-v2 .sp-co .sp-co-media {
  --sp-co-media-filter: brightness(1.36) contrast(0.92) saturate(0.74);
  --sp-co-media-veil: linear-gradient(to bottom, rgba(241, 245, 245, 0.34) 0%, rgba(241, 245, 245, 0.08) 58%, rgba(241, 245, 245, 0.18) 100%);
  --sp-co-media-fade: 48%;
}


/* ==========================================================================
   10. COMPANY RESEARCH — PRICE + TECHNICAL WORKSPACES (SP-UI-002B2)

   Every selector still begins `.sp-v2 .sp-co`. This stage styles the Price
   history and Technical indicators sections and nothing below them.

   A workspace is NOT a floating card. The title sits on the canvas under a
   hairline eyebrow; only the things that hold data -- the window rail, the
   summary strip, the chart surface -- are contained, and those with a single
   hairline and a small radius.

   THE NAMESPACING GUARD SHAPES THIS BLOCK. v2.css may name a legacy class
   only if it is on test_v2_foundation's migration-hook allowlist, and
   `range-opt`, `summary-tile`, `metric-select`, `chart-reset-zoom`,
   `chart-save-btn`, `gain` and `loss` are not on it. So every V2 control
   carries its own `sp-co-` class and beats the legacy rule on the same
   element by specificity, and state is keyed on attributes rather than on
   legacy state classes: `[aria-current]` for the selected window,
   `[data-direction]` for the change figure.

   Chart colours. The `--sp-chart-*` roles below are declared on the
   workspace section itself, NOT on `.sp-v2` and never on :root. charts.js
   resolves a palette per canvas from that canvas's computed style, so only a
   chart inside a migrated workspace picks these up. The quarterly and
   shareholding charts further down this page are still legacy sections with
   legacy legend swatches; they keep the legacy palette until their own stage
   adds this class, and every legacy page keeps it permanently.
   ========================================================================== */

/* --- chart roles + section rhythm ------------------------------------------
   Roles that are just an existing V2 token are written as var() references,
   so they follow the theme with no mirror. Roles that need an alpha or a
   value no V2 token carries are literals, and those -- only those -- are
   redefined in the two light blocks at the end of this section. */
.sp-v2 .sp-co .sp-co-ws {
  --sp-chart-primary: var(--sp-brand);
  --sp-chart-primary-hover: var(--sp-brand-hi);
  --sp-chart-positive: var(--sp-pos);
  --sp-chart-negative: var(--sp-neg);
  --sp-chart-attention: var(--sp-warn);
  --sp-chart-neutral: var(--sp-text-2);
  --sp-chart-strong: var(--sp-text);
  --sp-chart-axis: var(--sp-text-3);
  --sp-chart-surface: var(--sp-surface);

  --sp-chart-fill: rgba(32, 199, 201, 0.09);
  --sp-chart-secondary: #7AA3D6;
  --sp-chart-neutral-fill: rgba(166, 178, 182, 0.28);
  --sp-chart-grid: rgba(255, 255, 255, 0.055);
  --sp-chart-reference: rgba(166, 178, 182, 0.42);
  --sp-chart-hist-positive: rgba(32, 199, 201, 0.40);
  --sp-chart-hist-negative: rgba(240, 90, 103, 0.44);
  --sp-chart-tooltip-bg: #14232A;
  --sp-chart-tooltip-border: rgba(255, 255, 255, 0.14);
  --sp-chart-tooltip-text: #F3F7F7;
  --sp-chart-tooltip-muted: #A6B2B6;

  margin: 0 0 var(--sp-9);
}

/* --- section head ------------------------------------------------------- */
.sp-v2 .sp-co .sp-co-ws-head { margin: 0 0 var(--sp-4); }
.sp-v2 .sp-co .sp-co-ws-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-2);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-ws-eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--sp-line);
}
.sp-v2 .sp-co .sp-co-ws-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-1) var(--sp-4);
}
.sp-v2 .sp-co .sp-co-ws-title h2 {
  font-size: var(--sp-t-h2);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sp-v2 .sp-co .sp-co-ws-lede {
  margin: 0;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.03em;
  color: var(--sp-text-3);
}
/* The heading now has an eyebrow above it, so its anchor offset grows by
   that eyebrow; `#price-chart` is what every window link targets. */
.sp-v2 .sp-co .sp-co-ws-title h2[id] { scroll-margin-top: calc(var(--sp-topbar) + 64px + 30px); }
.sp-v2 .sp-co #price-chart { scroll-margin-top: calc(var(--sp-topbar) + 64px); }

/* --- window rail + summary strip ---------------------------------------- */
.sp-v2 .sp-co .sp-co-ws-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-3);
}
.sp-v2 .sp-co .sp-co-range {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
}
.sp-v2 .sp-co .sp-co-range::-webkit-scrollbar { display: none; }
.sp-v2 .sp-co .sp-co-range-opt {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 30px;
  padding: 0 var(--sp-3);
  border: 0;
  border-radius: var(--sp-r-sm);
  background: transparent;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-meta);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sp-text-3);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--sp-fast), background var(--sp-fast);
}
.sp-v2 .sp-co .sp-co-range-opt:hover { color: var(--sp-text); background: var(--sp-hover); }
.sp-v2 .sp-co .sp-co-range-opt[aria-current="true"] {
  color: var(--sp-brand);
  background: var(--sp-brand-tint);
  box-shadow: inset 0 0 0 1px var(--sp-brand-line);
  font-weight: 600;
}
.sp-v2 .sp-co .sp-co-range-opt:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: -2px; }

.sp-v2 .sp-co .sp-co-strip {
  flex: 1 1 460px;
  display: flex;
  min-width: 0;
  margin: 0;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
}
.sp-v2 .sp-co .sp-co-strip:empty { display: none; }
.sp-v2 .sp-co .sp-co-strip-cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px var(--sp-4) 10px;
}
.sp-v2 .sp-co .sp-co-strip-cell + .sp-co-strip-cell { border-left: 1px solid var(--sp-line); }
.sp-v2 .sp-co .sp-co-strip-label {
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sp-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-v2 .sp-co .sp-co-strip-date {
  margin-left: 6px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.sp-v2 .sp-co .sp-co-strip-value {
  font-family: var(--sp-font);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--sp-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Never colour-only: the sign stays in the figure itself. */
.sp-v2 .sp-co .sp-co-strip-value[data-direction="up"] { color: var(--sp-pos); }
.sp-v2 .sp-co .sp-co-strip-value[data-direction="down"] { color: var(--sp-neg); }
/* The indicator readout holds one to three figures, so it sizes to them
   rather than stretching a single ATR value across the whole workspace. */
.sp-v2 .sp-co .sp-co-strip--readout {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 var(--sp-3);
}
.sp-v2 .sp-co .sp-co-strip--readout .sp-co-strip-cell { flex: 0 1 auto; min-width: 124px; }

/* --- controls ------------------------------------------------------------
   app.css themes every <select> and <input> from legacy tokens at the
   element level; on a V2 page those are the wrong tokens, so the V2 control
   restates its colours. The legacy select rule's `padding-right: 1.9rem
   !important` is deliberately left to apply -- it is the room the chevron
   needs anyway. */
.sp-v2 .sp-co .sp-co-ws-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  margin: 0 0 var(--sp-3);
}
.sp-v2 .sp-co .sp-co-field {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}
.sp-v2 .sp-co .sp-co-field-label {
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sp-text-3);
  white-space: nowrap;
}
.sp-v2 .sp-co .sp-co-select {
  min-width: 210px;
  max-width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 0 var(--sp-3);
  font-family: var(--sp-font);
  font-size: var(--sp-t-meta);
  font-weight: 500;
  line-height: 1.2;
  color: var(--sp-text);
  background-color: var(--sp-surface);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sp-text-3) 50%),
    linear-gradient(135deg, var(--sp-text-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) center, calc(100% - 12px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  cursor: pointer;
  transition: border-color var(--sp-fast);
}
.sp-v2 .sp-co .sp-co-select:hover { border-color: var(--sp-line-strong); }
.sp-v2 .sp-co .sp-co-select option { background-color: var(--sp-raised); color: var(--sp-text); }
/* Disabled options stay in the list, legibly, with "— unavailable" in the
   text: the truthful state, not a hidden one. */
.sp-v2 .sp-co .sp-co-select option:disabled { color: var(--sp-text-3); }

/* The Bollinger overlay is a real checkbox inside its label, so the whole
   control is the hit target, keyboard focus lands on the native input, and
   the checked state is the input's own. The border and tint only echo it. */
.sp-v2 .sp-co .sp-co-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 32px;
  margin: 0;
  padding: 0 var(--sp-3);
  font-family: var(--sp-font);
  font-size: var(--sp-t-meta);
  font-weight: 500;
  color: var(--sp-text-2);
  background: transparent;
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--sp-fast), color var(--sp-fast), background var(--sp-fast);
}
.sp-v2 .sp-co .sp-co-toggle:hover { border-color: var(--sp-line-strong); color: var(--sp-text); }
.sp-v2 .sp-co .sp-co-toggle-input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--sp-brand);
  cursor: pointer;
}
.sp-v2 .sp-co .sp-co-toggle:has(.sp-co-toggle-input:checked) {
  color: var(--sp-text);
  border-color: var(--sp-brand-line);
  background: var(--sp-brand-tint);
}
/* charts.js disables the overlay while a non-price metric is charted,
   because the bands are computed from closes. */
.sp-v2 .sp-co .sp-co-toggle:has(.sp-co-toggle-input:disabled) { opacity: 0.5; cursor: not-allowed; }
.sp-v2 .sp-co .sp-co-toggle-input:disabled { cursor: not-allowed; }

.sp-v2 .sp-co .sp-co-ws-meta {
  margin-left: auto;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.03em;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-ws-controls:has(+ .sp-co-strip:empty) .sp-co-ws-meta { display: none; }

/* --- chart surface -------------------------------------------------------
   Chart.js sizes a responsive canvas to its PARENT's content box (padding
   and border already subtracted), so the height lives here and the top
   padding reserves a band for the toolbar. The toolbar is absolutely placed
   inside that band, so it never sits over plotted data, and it precedes the
   canvas in source order as well as visually. */
.sp-v2 .sp-co .sp-co-chart {
  position: relative;
  height: 420px;
  margin: 0;
  padding: 40px var(--sp-3) var(--sp-2) var(--sp-2);
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
}
.sp-v2 .sp-co .sp-co-chart--indicator { height: 370px; }
.sp-v2 .sp-co .sp-co-chart-canvas {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.sp-v2 .sp-co .sp-co-chart-hint {
  position: absolute;
  top: 0;
  left: var(--sp-4);
  height: 40px;
  display: flex;
  align-items: center;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.03em;
  color: var(--sp-text-3);
  white-space: nowrap;
  pointer-events: none;
}
.sp-v2 .sp-co .sp-co-chart-toolbar {
  position: absolute;
  top: 7px;
  right: var(--sp-2);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Both Reset zoom (server-rendered) and Save chart (added by charts.js into
   this toolbar) carry this class. It resets app.css's absolute positioning
   for those two legacy classes, which would otherwise stack them on top of
   the plot. Quiet on purpose: they are utilities, not analysis. */
.sp-v2 .sp-co .sp-co-chart-tool {
  position: static;
  top: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0;
  padding: 0 var(--sp-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  color: var(--sp-text-3);
  background: transparent;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r-sm);
  cursor: pointer;
  transition: color var(--sp-fast), border-color var(--sp-fast), background var(--sp-fast);
}
.sp-v2 .sp-co .sp-co-chart-tool:hover {
  color: var(--sp-text);
  border-color: var(--sp-line-strong);
  background: var(--sp-hover);
}
.sp-v2 .sp-co .sp-co-chart-noscript {
  position: absolute;
  inset: 40px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: var(--sp-t-meta);
  color: var(--sp-text-3);
}

/* --- caveat, methodology, empty state ----------------------------------- */
/* The lead caveat is visible and uncollapsed, but quieter than the chart:
   a hairline box on the canvas, no tint, no accent. */
.sp-v2 .sp-co .sp-co-caveat {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  max-width: 120ch;
  margin: 0 0 var(--sp-4);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--sp-t-meta);
  line-height: 1.55;
  color: var(--sp-text-2);
  background: transparent;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r-sm);
}
.sp-v2 .sp-co .sp-co-caveat-mark {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sp-line-strong);
  border-radius: 50%;
  font-family: var(--sp-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-note {
  max-width: 120ch;
  margin: var(--sp-3) 0 0;
  padding: var(--sp-1) 0 var(--sp-1) var(--sp-4);
  border-left: 2px solid var(--sp-line-mid);
}
.sp-v2 .sp-co .sp-co-note-label {
  display: block;
  margin: 0 0 var(--sp-1);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-note p {
  margin: 0;
  font-size: var(--sp-t-meta);
  line-height: 1.6;
  color: var(--sp-text-2);
}
.sp-v2 .sp-co .sp-co-empty {
  margin: 0;
  padding: var(--sp-4);
  font-size: var(--sp-t-meta);
  color: var(--sp-text-2);
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
}

/* --- responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
  .sp-v2 .sp-co .sp-co-chart { height: 380px; }
  .sp-v2 .sp-co .sp-co-chart--indicator { height: 340px; }
}
@media (max-width: 767px) {
  .sp-v2 .sp-co .sp-co-ws { margin-bottom: var(--sp-8); }
  .sp-v2 .sp-co .sp-co-ws-top { gap: var(--sp-2); }
  /* One rail, full width, scrolling sideways if a window list ever outgrows
     it -- never wrapping into rows. */
  .sp-v2 .sp-co .sp-co-range { flex: 1 1 100%; }
  .sp-v2 .sp-co .sp-co-range-opt { flex: 1 0 auto; min-height: 36px; padding: 0 var(--sp-2); }
  /* Three figures stay on one row; labels and long values wrap inside their
     cell rather than stacking three full-width cards. */
  .sp-v2 .sp-co .sp-co-strip { flex: 1 1 100%; }
  .sp-v2 .sp-co .sp-co-strip-cell { padding: 8px 10px; }
  .sp-v2 .sp-co .sp-co-strip-label { white-space: normal; }
  .sp-v2 .sp-co .sp-co-strip-date { display: block; margin: 1px 0 0; }
  .sp-v2 .sp-co .sp-co-strip-value { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
  .sp-v2 .sp-co .sp-co-strip--readout { display: flex; }
  .sp-v2 .sp-co .sp-co-strip--readout .sp-co-strip-cell { flex: 1 1 0; min-width: 0; }
  .sp-v2 .sp-co .sp-co-field { flex: 1 1 100%; }
  .sp-v2 .sp-co .sp-co-select { flex: 1 1 auto; min-width: 0; min-height: 38px; }
  .sp-v2 .sp-co .sp-co-toggle { min-height: 38px; }
  .sp-v2 .sp-co .sp-co-ws-meta { margin-left: 0; }
  .sp-v2 .sp-co .sp-co-chart { height: 330px; padding: 44px var(--sp-2) var(--sp-1) 0; }
  .sp-v2 .sp-co .sp-co-chart--indicator { height: 310px; }
  .sp-v2 .sp-co .sp-co-chart-hint { display: none; }
  .sp-v2 .sp-co .sp-co-chart-toolbar { top: 6px; right: 6px; }
  .sp-v2 .sp-co .sp-co-chart-tool { min-height: 32px; }
}

/* --- light mirrors: only the literal chart roles ------------------------
   The var()-referenced roles already follow the theme. A dark tooltip on
   the light surface is deliberate: it reads as a floating readout rather
   than a second white card on a white chart. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .sp-v2 .sp-co .sp-co-ws {
    --sp-chart-fill: rgba(12, 142, 144, 0.08);
    --sp-chart-secondary: #3D6BA3;
    --sp-chart-neutral-fill: rgba(70, 88, 92, 0.24);
    --sp-chart-grid: rgba(10, 20, 22, 0.075);
    --sp-chart-reference: rgba(70, 88, 92, 0.50);
    --sp-chart-hist-positive: rgba(12, 142, 144, 0.34);
    --sp-chart-hist-negative: rgba(198, 48, 63, 0.34);
    --sp-chart-tooltip-bg: #0B1B1E;
    --sp-chart-tooltip-border: #0B1B1E;
    --sp-chart-tooltip-text: #F3F7F7;
    --sp-chart-tooltip-muted: #A6B2B6;
  }
}
:root[data-theme="light"] .sp-v2 .sp-co .sp-co-ws {
  --sp-chart-fill: rgba(12, 142, 144, 0.08);
  --sp-chart-secondary: #3D6BA3;
  --sp-chart-neutral-fill: rgba(70, 88, 92, 0.24);
  --sp-chart-grid: rgba(10, 20, 22, 0.075);
  --sp-chart-reference: rgba(70, 88, 92, 0.50);
  --sp-chart-hist-positive: rgba(12, 142, 144, 0.34);
  --sp-chart-hist-negative: rgba(198, 48, 63, 0.34);
  --sp-chart-tooltip-bg: #0B1B1E;
  --sp-chart-tooltip-border: #0B1B1E;
  --sp-chart-tooltip-text: #F3F7F7;
  --sp-chart-tooltip-muted: #A6B2B6;
}


/* ==========================================================================
   11. COMPANY RESEARCH — RATIOS + SOURCE TRACE (SP-UI-002B3)

   Every selector still begins `.sp-v2 .sp-co`. The section reuses the B2
   workspace head (eyebrow, title, anchor offset) and styles the ratio cards
   and nothing below them.

   VALUE FIRST, THEN HOW IT WAS CALCULATED, THEN WHERE THE INPUTS CAME FROM.
   A card is a flex COLUMN in DOM order -- no `order`, no reversed direction,
   no grid areas -- so the visual order is the source order the disclosure
   tests compare.

   THE GRID IS NORMAL FLOW. Three columns on a wide workspace, because the
   four-column legacy grid left ~260px for citations whose XBRL identifiers
   run to 44 characters and broke every few letters. Cards in one row stretch
   to the row's height (plain CSS Grid), so rows read as rows; no masonry and
   no JavaScript layout.

   Source Trace is an EVIDENCE PANEL nested in the card: an inset surface, a
   teal left rule, a quiet mono heading with the filing stamp opposite it, and
   the exact citation string in a readable mono. It claims provenance, not
   assurance -- there is no checkmark and no "verified" language. The
   unavailable variant swaps the teal rule for a neutral one and states the
   real reason in proportional text: data-model truth, not an error.
   ========================================================================== */

.sp-v2 .sp-co .sp-co-ratios-intro {
  max-width: 92ch;
  margin: var(--sp-2) 0 0;
  font-size: var(--sp-t-meta);
  line-height: 1.55;
  color: var(--sp-text-2);
}

.sp-v2 .sp-co .sp-co-ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  align-items: stretch;
  margin: 0;
}

.sp-v2 .sp-co .sp-co-ratio {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 0;
  margin: 0;
  padding: var(--sp-4);
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
}

/* --- A. metric ---------------------------------------------------------- */
.sp-v2 .sp-co .sp-co-ratio-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sp-v2 .sp-co .sp-co-ratio-label {
  margin: 0;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-text-3);
}
/* Large but controlled, and never coloured: a ratio is a reading, and green
   or red here would be a valuation verdict the product does not make. */
.sp-v2 .sp-co .sp-co-ratio-value {
  font-family: var(--sp-font);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--sp-text);
  font-variant-numeric: tabular-nums;
}
.sp-v2 .sp-co .sp-co-ratio-value--na {
  font-family: var(--sp-mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sp-text-3);
}
/* Data-quality / not-meaningful state shown in place of the number. */
.sp-v2 .sp-co .sp-co-ratio-value--state {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0;
}
/* Data-quality note above the price chart (unadjusted corporate action). */
.sp-v2 .sp-co .sp-co-ws-note {
  margin: 0 0 var(--sp-3);
  font-size: var(--sp-t-meta);
  color: var(--sp-text-2);
}

/* --- B. definition ------------------------------------------------------ */
.sp-v2 .sp-co .sp-co-ratio-def {
  margin: 0;
  font-size: var(--sp-t-meta);
  line-height: 1.5;
  color: var(--sp-text-2);
}

/* --- qualification: mandatory, uncollapsed, amber only on its edge ------ */
.sp-v2 .sp-co .sp-co-ratio-qual {
  margin: 0;
  padding: var(--sp-1) 0 var(--sp-1) var(--sp-3);
  border-left: 2px solid var(--sp-warn);
  font-size: var(--sp-t-meta);
  line-height: 1.55;
  color: var(--sp-text-2);
}
.sp-v2 .sp-co .sp-co-ratio-qual-label {
  display: block;
  margin: 0 0 2px;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sp-warn);
}

/* --- Learning Mode inside a card ----------------------------------------
   The partial is shared with legacy pages and is untouched, so it is styled
   here through this card's own wrapper by element, not by its legacy
   classes. Collapsed by default, quieter than the qualification, and it
   always sits BEFORE the evidence panel. */
.sp-v2 .sp-co .sp-co-ratio-learn {
  display: grid;
  gap: var(--sp-2);
}
.sp-v2 .sp-co .sp-co-ratio-learn details {
  margin: 0;
  background: transparent;
  border: 1px solid var(--sp-line);
  border-left: 2px solid var(--sp-line-strong);
  border-radius: var(--sp-r-sm);
}
.sp-v2 .sp-co .sp-co-ratio-learn details > summary {
  padding: 7px var(--sp-3);
  font-size: var(--sp-t-meta);
  color: var(--sp-text-2);
}
.sp-v2 .sp-co .sp-co-ratio-learn details > summary:hover { color: var(--sp-text); }
.sp-v2 .sp-co .sp-co-ratio-learn details[open] > summary {
  color: var(--sp-text);
  border-bottom: 1px solid var(--sp-line);
}
.sp-v2 .sp-co .sp-co-ratio-learn details > summary > span {
  color: var(--sp-brand);
  background: var(--sp-surface);
  border-color: var(--sp-line-strong);
}
.sp-v2 .sp-co .sp-co-ratio-learn details > div {
  font-size: var(--sp-t-meta);
  line-height: 1.6;
  color: var(--sp-text-2);
}
.sp-v2 .sp-co .sp-co-ratio-learn details > div > p {
  color: var(--sp-text-2);
  background-color: transparent;
  border-color: var(--sp-line);
}
.sp-v2 .sp-co .sp-co-ratio-learn details > div > p:first-child { color: var(--sp-text); }

/* --- C. evidence -------------------------------------------------------- */
.sp-v2 .sp-co .sp-co-trace {
  margin: 0;
  padding: var(--sp-2) var(--sp-3) var(--sp-3) var(--sp-3);
  background: var(--sp-raised);
  border: 1px solid var(--sp-line);
  border-left: 2px solid var(--sp-brand);
  border-radius: var(--sp-r-sm);
}
.sp-v2 .sp-co .sp-co-trace-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px var(--sp-3);
  margin: 0 0 var(--sp-2);
  padding: 0 0 var(--sp-2);
  border-bottom: 1px solid var(--sp-line);
}
.sp-v2 .sp-co .sp-co-trace-label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-brand);
}
.sp-v2 .sp-co .sp-co-trace-glyph { font-weight: 400; }
.sp-v2 .sp-co .sp-co-trace-stamp {
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sp-text-3);
  white-space: nowrap;
}
/* The exact citation. Readable before compact: generous line-height, and
   long XBRL identifiers break only when one cannot fit a line at all
   (`break-word`), never at an arbitrary letter first, never truncated, never
   scrolled sideways. */
.sp-v2 .sp-co .sp-co-trace-citation {
  margin: 0;
  font-family: var(--sp-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--sp-text-2);
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}
.sp-v2 .sp-co .sp-co-trace--na {
  background: transparent;
  border-left-color: var(--sp-line-strong);
}
.sp-v2 .sp-co .sp-co-trace--na .sp-co-trace-label { color: var(--sp-text-3); }
.sp-v2 .sp-co .sp-co-trace-reason {
  margin: 0;
  font-size: var(--sp-t-meta);
  line-height: 1.55;
  color: var(--sp-text-2);
}

/* --- responsive --------------------------------------------------------- */
/* Two columns only while a card still fits the longest real identifier
   (`ProfitOrLossAttributableToOwnersOfParent`) on one line. Measured at 768,
   two 348px columns broke it in two cards and pushed all six filing stamps
   below their labels, so one column takes over at 900px, not at phone width. */
@media (max-width: 1180px) {
  .sp-v2 .sp-co .sp-co-ratio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sp-v2 .sp-co .sp-co-ratio-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .sp-v2 .sp-co .sp-co-ratio-value { font-size: 26px; }
}


/* ==========================================================================
   12. COMPANY RESEARCH — GROWTH, SECTOR POSITION, FORENSICS, OWNERSHIP
       (SP-UI-002B4)

   Every selector still begins `.sp-v2 .sp-co`. Four research questions in one
   sequence -- is it growing, where does it sit in its sector, are there
   accounting screening signals, who owns it -- so the four surfaces share the
   workspace grammar (eyebrow, title, hairline surfaces, mono metadata) but
   each keeps its own hierarchy: a metric strip and series cards for growth, a
   track list for percentiles, a disclosure-led table for Beneish, a
   composition strip plus chart plus history for ownership.

   Colour discipline. Direction colour (positive / negative) appears ONLY on a
   growth rate and on the margin-direction label. Margins, ROCE, percentiles,
   Beneish readings and ownership figures are neutral: a percentile or an
   index value is a position, not a judgement, and the backend's own
   "Better than N of M" sentence is what carries direction for a percentile.

   Tables. Both tables sit in `.sp-co-table-scroll`, which owns the horizontal
   scroll so the DOCUMENT never does (the bare Beneish table pushed a 390px
   viewport 247px sideways). No transforms, no hidden columns; on narrow
   screens the first column stays pinned so every row stays legible while the
   rest scrolls.

   Normal flow throughout: no ordering property, no grid placement, no
   background images.
   ========================================================================== */

.sp-v2 .sp-co .sp-co-ws-intro {
  max-width: 92ch;
  margin: var(--sp-2) 0 0;
  font-size: var(--sp-t-meta);
  line-height: 1.55;
  color: var(--sp-text-2);
}

/* --- growth: summary strip ---------------------------------------------- */
.sp-v2 .sp-co .sp-co-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 var(--sp-4);
  background: var(--sp-line);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
  overflow: hidden;
}
.sp-v2 .sp-co .sp-co-kpi {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 10px var(--sp-4) 11px;
  background: var(--sp-surface);
}
.sp-v2 .sp-co .sp-co-kpi-label {
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-kpi-value {
  font-family: var(--sp-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--sp-text);
  font-variant-numeric: tabular-nums;
}
.sp-v2 .sp-co .sp-co-kpi-value--na {
  font-family: var(--sp-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--sp-text-3);
}

/* Direction, on growth rates only. The sign stays in the figure. */
.sp-v2 .sp-co .sp-co-growth [data-direction="up"] { color: var(--sp-pos); }
.sp-v2 .sp-co .sp-co-growth [data-direction="down"] { color: var(--sp-neg); }

/* --- growth: series cards ----------------------------------------------- */
.sp-v2 .sp-co .sp-co-growth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  align-items: stretch;
}
.sp-v2 .sp-co .sp-co-gcard {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
  margin: 0;
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
}
.sp-v2 .sp-co .sp-co-gcard-title {
  margin: 0;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-series {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.sp-v2 .sp-co .sp-co-series-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 5px 0;
  border-bottom: 1px solid var(--sp-line);
}
.sp-v2 .sp-co .sp-co-series-row:last-child { border-bottom: 0; }
.sp-v2 .sp-co .sp-co-series-row dt {
  min-width: 0;
  margin: 0;
  font-size: var(--sp-t-meta);
  color: var(--sp-text-2);
}
.sp-v2 .sp-co .sp-co-series-row dd {
  margin: 0;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-meta);
  font-weight: 500;
  color: var(--sp-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sp-v2 .sp-co .sp-co-na { color: var(--sp-text-3); }
.sp-v2 .sp-co .sp-co-dir,
.sp-v2 .sp-co .sp-co-flag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 2px var(--sp-2);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sp-text-2);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
}
.sp-v2 .sp-co .sp-co-flag[data-state="flagged"] {
  color: var(--sp-warn);
  border-color: var(--sp-warn);
}
.sp-v2 .sp-co .sp-co-gcard-note {
  margin: 0;
  font-size: var(--sp-t-meta);
  line-height: 1.55;
  color: var(--sp-text-2);
}

/* --- sector-relative percentiles ---------------------------------------- */
.sp-v2 .sp-co .sp-co-peer {
  margin: var(--sp-4) 0 0;
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
}
.sp-v2 .sp-co .sp-co-peer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px var(--sp-4);
  margin: 0 0 var(--sp-3);
}
.sp-v2 .sp-co .sp-co-peer-meta {
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-peer-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-8);
}
.sp-v2 .sp-co .sp-co-pct {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px var(--sp-3);
  min-width: 0;
}
.sp-v2 .sp-co .sp-co-pct-label {
  flex: 1 1 auto;
  font-size: var(--sp-t-meta);
  font-weight: 500;
  color: var(--sp-text);
}
.sp-v2 .sp-co .sp-co-pct-value {
  font-family: var(--sp-mono);
  font-size: var(--sp-t-meta);
  color: var(--sp-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* The track is decorative: the value and the sentence below it say the same
   thing in text. Neutral teal, never a good/bad colour. */
.sp-v2 .sp-co .sp-co-pct-track {
  position: relative;
  flex: 1 1 100%;
  height: 6px;
  margin: 4px 0 2px;
  background: var(--sp-line);
  border-radius: var(--sp-r-pill);
}
.sp-v2 .sp-co .sp-co-pct-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--sp-brand-line);
  border-radius: var(--sp-r-pill);
}
.sp-v2 .sp-co .sp-co-pct-mark {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--sp-brand);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--sp-surface);
}
.sp-v2 .sp-co .sp-co-pct-detail {
  flex: 1 1 100%;
  font-size: var(--sp-t-meta);
  line-height: 1.45;
  color: var(--sp-text-3);
}

/* --- forensics ----------------------------------------------------------- */
.sp-v2 .sp-co .sp-co-disclosures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
}
.sp-v2 .sp-co .sp-co-disclosure {
  margin: 0;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--sp-t-meta);
  line-height: 1.55;
  color: var(--sp-text-2);
  border: 1px solid var(--sp-line);
  border-left: 2px solid var(--sp-line-strong);
  border-radius: var(--sp-r-sm);
}
.sp-v2 .sp-co .sp-co-forensics-window {
  margin: 0 0 var(--sp-2);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-forensics-window strong { font-weight: 600; color: var(--sp-text-2); }

.sp-v2 .sp-co .sp-co-mscore {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px var(--sp-4);
  margin: 0 0 var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--sp-raised);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
}
.sp-v2 .sp-co .sp-co-mscore-label {
  flex: 0 0 100%;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-mscore-value {
  font-family: var(--sp-font);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--sp-text);
  font-variant-numeric: tabular-nums;
}
.sp-v2 .sp-co .sp-co-mscore-note {
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-mscore-na {
  margin: 0;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--sp-t-meta);
  line-height: 1.55;
  color: var(--sp-text-2);
  border: 1px solid var(--sp-line);
  border-left: 2px solid var(--sp-line-strong);
  border-radius: var(--sp-r-sm);
}
.sp-v2 .sp-co .sp-co-forensics-reading { max-width: 92ch; }

/* --- contained tables ---------------------------------------------------- */
.sp-v2 .sp-co .sp-co-table-scroll {
  max-width: 100%;
  margin: 0 0 var(--sp-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
}
.sp-v2 .sp-co .sp-co-table-scroll:focus-visible {
  outline: 2px solid var(--sp-brand);
  outline-offset: 2px;
}
.sp-v2 .sp-co .sp-co-table-scroll table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border: 0;
  font-size: var(--sp-t-meta);
}
.sp-v2 .sp-co .sp-co-table-scroll thead th {
  padding: 9px var(--sp-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--sp-text-3);
  white-space: nowrap;
  background: var(--sp-raised);
  border-bottom: 1px solid var(--sp-line-mid);
}
.sp-v2 .sp-co .sp-co-table-scroll tbody td,
.sp-v2 .sp-co .sp-co-table-scroll tbody th {
  padding: 9px var(--sp-3);
  line-height: 1.5;
  vertical-align: top;
  text-align: left;
  color: var(--sp-text-2);
  background: var(--sp-surface);
  border-bottom: 1px solid var(--sp-line);
}
.sp-v2 .sp-co .sp-co-table-scroll tbody tr:last-child td,
.sp-v2 .sp-co .sp-co-table-scroll tbody tr:last-child th { border-bottom: 0; }
.sp-v2 .sp-co .sp-co-table-scroll td span {
  font: inherit;
  color: inherit;
}

/* Beneish: Index | Value | Threshold | Reading. The reading column holds the
   long unavailable reasons, so it gets room to wrap, and the table as a whole
   has a floor width below which its wrapper scrolls instead of the page. */
.sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll table { min-width: 680px; }
.sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody td:first-child {
  min-width: 13rem;
  font-weight: 500;
  color: var(--sp-text);
}
.sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll th:nth-child(2),
.sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll th:nth-child(3),
.sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll td:nth-child(2),
.sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll td:nth-child(3) {
  text-align: right;
  white-space: nowrap;
}
.sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll td:nth-child(2),
.sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll td:nth-child(3) {
  font-family: var(--sp-mono);
  font-variant-numeric: tabular-nums;
}
.sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll td:nth-child(2) { color: var(--sp-text); }
.sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll td:nth-child(3) { color: var(--sp-text-3); }
.sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll td:nth-child(4) { min-width: 20rem; }

/* Ownership: Metric | one column per filing, oldest to newest. */
.sp-v2 .sp-co .sp-co-data-table tbody th {
  font-weight: 500;
  color: var(--sp-text);
  white-space: nowrap;
}
.sp-v2 .sp-co .sp-co-table-scroll .sp-co-num {
  text-align: right;
  font-family: var(--sp-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sp-v2 .sp-co .sp-co-table-scroll tbody td.sp-co-num { color: var(--sp-text); }
.sp-v2 .sp-co .sp-co-th-glyph {
  margin-right: 4px;
  color: var(--sp-text-3);
  font-weight: 400;
}

/* Legend swatch shared by the company workspaces. */
.sp-v2 .sp-co .sp-co-key {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.sp-v2 .sp-co .sp-co-chart--compact { height: 320px; }
.sp-v2 .sp-co .sp-co-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin: var(--sp-2) 0 var(--sp-4);
  font-size: var(--sp-t-meta);
  color: var(--sp-text-2);
}
.sp-v2 .sp-co .sp-co-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- who owns it (SP ownership block, phase A) ---------------------------
   One blue hue, three steps: promoter = the brand blue, public = a light tint of
   it, employee trusts = a middle tint. Every encoded value is also labelled in
   text on or beside the mark, so nothing depends on telling two blues apart.
   Colours are the workspace's own tokens; nothing is hand-copied. */
.sp-v2 .sp-co .sp-own-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin: 0 0 var(--sp-3);
  padding: var(--sp-4);
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
}
.sp-v2 .sp-co .sp-own-sentence {
  margin: 0;
  max-width: 90ch;
  color: var(--sp-text);
  font-size: 15px;
  line-height: 1.55;
}
.sp-v2 .sp-co .sp-own-bar {
  display: flex;
  height: 34px;
  overflow: hidden;
  border-radius: var(--sp-r);
  background: var(--sp-line);
}
.sp-v2 .sp-co .sp-own-seg {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 3px;
  overflow: hidden;
}
.sp-v2 .sp-co .sp-own-seg--promoter { background: var(--sp-brand); color: var(--sp-on-brand); }
.sp-v2 .sp-co .sp-own-seg--public { background: color-mix(in srgb, var(--sp-brand) 24%, var(--sp-surface)); color: var(--sp-text); }
.sp-v2 .sp-co .sp-own-seg--trusts { background: color-mix(in srgb, var(--sp-brand) 52%, var(--sp-surface)); }
.sp-v2 .sp-co .sp-own-seg-text {
  padding: 0 10px;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sp-v2 .sp-co .sp-own-split-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-8);
  margin: var(--sp-3) 0 0;
}
.sp-v2 .sp-co .sp-own-split-item { display: flex; flex-direction: column; gap: 2px; min-width: 7rem; }
.sp-v2 .sp-co .sp-own-split-item dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sp-v2 .sp-co .sp-own-split-item dd {
  margin: 0;
  color: var(--sp-text);
  font-family: var(--sp-font);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sp-v2 .sp-co .sp-own-key { display: inline-block; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 2px; }
.sp-v2 .sp-co .sp-own-key--promoter { background: var(--sp-brand); }
.sp-v2 .sp-co .sp-own-key--public { background: color-mix(in srgb, var(--sp-brand) 24%, var(--sp-surface)); box-shadow: inset 0 0 0 1px var(--sp-line-strong); }
.sp-v2 .sp-co .sp-own-key--trusts { background: color-mix(in srgb, var(--sp-brand) 52%, var(--sp-surface)); }
.sp-v2 .sp-co .sp-own-readout-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px var(--sp-3);
  margin: 0 0 var(--sp-2);
}
.sp-v2 .sp-co .sp-own-readout-name {
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sp-v2 .sp-co .sp-own-readout {
  min-height: 1.5em;
  color: var(--sp-text);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sp-v2 .sp-co .sp-own-chart {
  border-radius: var(--sp-r);
  touch-action: pan-y;
  cursor: crosshair;
}
.sp-v2 .sp-co .sp-own-chart:focus-visible { outline: 2px solid var(--sp-brand-hi); outline-offset: 3px; }
.sp-v2 .sp-co .sp-own-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sp-font); }
.sp-v2 .sp-co .sp-own-grid { stroke: var(--sp-line); stroke-width: 1; }
.sp-v2 .sp-co .sp-own-tick { fill: var(--sp-text-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.sp-v2 .sp-co .sp-own-line { fill: none; stroke: var(--sp-brand); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.sp-v2 .sp-co .sp-own-pt { fill: var(--sp-brand); stroke: var(--sp-surface); stroke-width: 1.5; }
.sp-v2 .sp-co .sp-own-pt.is-active { stroke: var(--sp-brand); stroke-opacity: 0.3; stroke-width: 6; }
.sp-v2 .sp-co .sp-own-guide { stroke: var(--sp-line-strong); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.sp-v2 .sp-co .sp-own-svg.is-reading .sp-own-guide { opacity: 1; }
.sp-v2 .sp-co .sp-own-val { fill: var(--sp-text); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sp-v2 .sp-co .sp-own-series { fill: var(--sp-text-3); font-size: 13px; }
/* Layout: chart panel + a 340px stats column on wide screens, stacked below
   900px. Source order is chart then stats; nothing here reorders it. */
.sp-v2 .sp-co .sp-own-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--sp-5);
  align-items: start;
}
.sp-v2 .sp-co .sp-own-trend { min-width: 0; container-type: inline-size; }
.sp-v2 .sp-co .sp-own-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-4);
  margin: 0 0 var(--sp-2);
}
.sp-v2 .sp-co .sp-own-toolbar .sp-own-readout-line { margin: 0; }
.sp-v2 .sp-co .sp-own-toggle:not([hidden]) { display: inline-flex; }
.sp-v2 .sp-co .sp-own-toggle {
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--sp-r);
  overflow: hidden;
}
.sp-v2 .sp-co .sp-own-toggle-btn {
  min-height: 44px;
  min-width: 64px;
  padding: 0 var(--sp-4);
  background: transparent;
  color: var(--sp-text-2);
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sp-v2 .sp-co .sp-own-toggle-btn + .sp-own-toggle-btn { border-left: 1px solid var(--sp-line-strong); }
.sp-v2 .sp-co .sp-own-toggle-btn[aria-pressed="true"] { background: var(--sp-brand); color: var(--sp-on-brand); }
.sp-v2 .sp-co .sp-own-toggle-btn:focus-visible { outline: 2px solid var(--sp-brand-hi); outline-offset: -3px; }
/* The wide SVG (viewBox 800) shows in roomy containers, the narrow one (viewBox
   400, bigger relative type) in tight ones. Without container-query support the
   wide chart simply stays. */
.sp-v2 .sp-co .sp-own-chart--narrow { visibility: hidden; height: 0; overflow: hidden; }
@container (max-width: 520px) {
  .sp-v2 .sp-co .sp-own-chart--wide { visibility: hidden; height: 0; overflow: hidden; }
  .sp-v2 .sp-co .sp-own-chart--narrow { visibility: visible; height: auto; overflow: visible; }
  .sp-v2 .sp-co .sp-own-tick { font-size: 15px; }
  .sp-v2 .sp-co .sp-own-val { font-size: 17px; }
  .sp-v2 .sp-co .sp-own-series { font-size: 14px; }
}
.sp-v2 .sp-co .sp-own-area { fill: color-mix(in srgb, var(--sp-brand) 16%, transparent); stroke: none; }
.sp-v2 .sp-co .sp-own-halo { fill: color-mix(in srgb, var(--sp-brand) 22%, transparent); stroke: none; pointer-events: none; }
.sp-v2 .sp-co .sp-own-pt--last { stroke-width: 2; }
.sp-v2 .sp-co .sp-own-col--promoter { fill: var(--sp-brand); }
.sp-v2 .sp-co .sp-own-col--public { fill: color-mix(in srgb, var(--sp-brand) 24%, var(--sp-surface)); stroke: var(--sp-line-strong); stroke-width: 1; }
.sp-v2 .sp-co .sp-own-col.is-active { stroke: var(--sp-text); stroke-width: 1.5; }
.sp-v2 .sp-co .sp-own-hit { fill: transparent; }
.sp-v2 .sp-co .sp-own-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin: var(--sp-2) 0 0;
  padding: 0;
  list-style: none;
  color: var(--sp-text-2);
  font-size: 13px;
}
.sp-v2 .sp-co .sp-own-legend li { display: inline-flex; align-items: center; gap: 6px; }

.sp-v2 .sp-co .sp-own-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
}
.sp-v2 .sp-co .sp-own-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: var(--sp-3);
  background: var(--sp-raised);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
}
.sp-v2 .sp-co .sp-own-stat p { margin: 0; }
.sp-v2 .sp-co .sp-own-stat-label {
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sp-v2 .sp-co .sp-own-stat-value {
  color: var(--sp-text);
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.sp-v2 .sp-co .sp-own-stat-sub { color: var(--sp-text-2); font-size: 12px; line-height: 1.4; }
.sp-v2 .sp-co .sp-own-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.sp-v2 .sp-co .sp-own-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--sp-brand);
  box-sizing: border-box;
}
.sp-v2 .sp-co .sp-own-dot.is-on { background: var(--sp-brand); }

.sp-v2 .sp-co .sp-own-funds {
  margin: 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--sp-line);
  color: var(--sp-text-2);
  font-size: 13px;
  line-height: 1.5;
}
.sp-v2 .sp-co .sp-own-data { margin: 0 0 var(--sp-4); }
.sp-v2 .sp-co .sp-own-data > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sp-text-2);
  font-size: 13px;
  cursor: pointer;
}
/* inline-flex: no native disclosure marker, so the glyph below is the only one */
.sp-v2 .sp-co .sp-own-data > summary::before { content: "\25B8"; margin-right: 8px; color: var(--sp-text-3); }
.sp-v2 .sp-co .sp-own-data[open] > summary::before { content: "\25BE"; }
.sp-v2 .sp-co .sp-own-data > summary:focus-visible { outline: 2px solid var(--sp-brand-hi); outline-offset: 2px; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .sp-v2 .sp-co .sp-co-growth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-v2 .sp-co .sp-co-disclosures { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sp-v2 .sp-co .sp-co-peer-rows { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-co .sp-own-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sp-v2 .sp-co .sp-own-stats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .sp-v2 .sp-co .sp-co-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-v2 .sp-co .sp-co-kpi { padding: 8px var(--sp-3) 9px; }
  .sp-v2 .sp-co .sp-co-kpi-value { font-size: 17px; }
  .sp-v2 .sp-co .sp-co-growth-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .sp-v2 .sp-co .sp-co-chart--compact { height: 280px; }
  .sp-v2 .sp-co .sp-own-card { padding: var(--sp-3); }
  .sp-v2 .sp-co .sp-own-split-list { gap: var(--sp-2) var(--sp-5); }
  .sp-v2 .sp-co .sp-own-seg-text { padding: 0 8px; font-size: 12px; }
  /* Pin the first column so each row stays identifiable while the figures
     scroll inside the wrapper. */
  .sp-v2 .sp-co .sp-co-table-scroll tbody td:first-child,
  .sp-v2 .sp-co .sp-co-table-scroll tbody th:first-child,
  .sp-v2 .sp-co .sp-co-table-scroll thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 1px 0 0 var(--sp-line);
  }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody td:first-child {
    min-width: 0;
    width: 9.5rem;
    max-width: 9.5rem;
  }
}


/* Beneish table on narrow screens (scoped to the forensics section only).
   641-1023px: the table keeps its layout and scrolls, with a fade cue on the
   edge that still has hidden content. Up to 640px: each index becomes a
   stacked block (name, then labelled Value / threshold / Reading). */
@media (min-width: 641px) and (max-width: 1023px) {
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll table { min-width: 600px; }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll thead th { white-space: normal; }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody td:first-child {
    min-width: 9rem;
    white-space: normal;
  }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody td:nth-child(4) { min-width: 14rem; }
  /* Cells must not paint over the wrapper's edge cue. */
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody td { background: transparent; }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll {
    background:
      linear-gradient(to right, var(--sp-surface) 30%, transparent) 0 0 / 40px 100% no-repeat local,
      linear-gradient(to left, var(--sp-surface) 30%, transparent) 100% 0 / 40px 100% no-repeat local,
      linear-gradient(to right, rgba(0, 0, 0, 0.28), transparent) 0 0 / 14px 100% no-repeat scroll,
      linear-gradient(to left, rgba(0, 0, 0, 0.28), transparent) 100% 0 / 14px 100% no-repeat scroll,
      var(--sp-surface);
  }
}
@media (max-width: 640px) {
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll { overflow-x: visible; }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll table,
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody { display: block; min-width: 0; width: 100%; }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody tr {
    display: block;
    padding: var(--sp-3);
    border-bottom: 1px solid var(--sp-line);
  }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody tr:last-child { border-bottom: 0; }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody td {
    display: block;
    padding: 2px 0;
    border: 0;
    background: transparent;
    min-width: 0;
    width: auto;
    max-width: none;
    position: static;
    box-shadow: none;
    text-align: left;
  }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody td:first-child {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 14px;
    padding-bottom: 6px;
  }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody td:nth-child(2),
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody td:nth-child(3) {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-3);
    white-space: normal;
    font-size: 13px;
  }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody td:nth-child(4) {
    min-width: 0;
    font-size: 12.5px;
    line-height: 1.55;
    padding-top: 4px;
    overflow-wrap: anywhere;
  }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody td[data-label]::before {
    content: attr(data-label);
    font-family: var(--sp-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sp-text-3);
    font-weight: 400;
  }
  .sp-v2 .sp-co .sp-co-forensics .sp-co-table-scroll tbody td:nth-child(4)::before {
    display: block;
    margin-bottom: 2px;
  }
}


/* ==========================================================================
   13. COMPANY RESEARCH — TRADING ACTIVITY, DATA BASIS, FINANCIALS, FILINGS,
       NOTES (SP-UI-002B5)

   The last Company Detail sections. Every selector still begins
   `.sp-v2 .sp-co`. Reuses the established pieces rather than inventing
   parallel ones: the workspace head, `.sp-co-kpis`, `.sp-co-table-scroll`,
   `.sp-co-note`, `.sp-co-chart`, `.sp-co-legend`/`.sp-co-key`, `.sp-co-empty`.

   Families, by meaning:
     trading activity  descriptive data, neutral figures, no signal colour
     data basis        compact metadata cells, stale badge kept visible
     financials        the one real negative reading (a loss quarter) in coral
     filings           EVIDENCE: the teal left rule Source Trace uses
     notes             USER WRITING: neutral surfaces, no teal, no mono
                       citation type -- it must never look like evidence

   Legacy classes these sections still carry for test contracts
   (`statement-ledger`, `period-stamp`, `recon`, `notes-panel`,
   `notes-price-row`, `empty-note`) are reached through their V2 wrappers by
   element and attribute, never named here -- the migration-hook allowlist did
   not grow.

   Normal flow, no ordering property, no grid placement, no background images.
   ========================================================================== */

/* --- shared bits ---------------------------------------------------------- */
.sp-v2 .sp-co .sp-co-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sp-v2 .sp-co .sp-co-callout {
  max-width: 110ch;
  margin: 0 0 var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--sp-t-meta);
  line-height: 1.55;
  color: var(--sp-text-2);
  border: 1px solid var(--sp-line);
  border-left: 2px solid var(--sp-line-strong);
  border-radius: var(--sp-r-sm);
}
.sp-v2 .sp-co .sp-co-callout--warn { border-left-color: var(--sp-warn); }
/* A scroll region must also be the containing block for anything absolutely
   positioned inside its table. Without it, the screen-reader-only header in
   the insider table was positioned against the ROOT at its static place far
   along the scrolled table, escaped the region's clipping, and widened the
   whole document by 61px at 1440 -- invisible, and found only by measuring
   documentElement.scrollWidth against body.scrollWidth. */
.sp-v2 .sp-co .sp-co-table-scroll { position: relative; }
/* Tables added in this stage size to their content but never below the
   wrapper's width; past that, the wrapper scrolls. */
.sp-v2 .sp-co .sp-co-table-scroll .sp-co-data-table {
  width: max-content;
  min-width: 100%;
}
.sp-v2 .sp-co .sp-co-date {
  font-family: var(--sp-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sp-v2 .sp-co .sp-co-evidence {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--sp-link);
  text-decoration: none;
  border-bottom: 1px solid var(--sp-brand-line);
  white-space: nowrap;
  transition: color var(--sp-fast), border-color var(--sp-fast);
}
.sp-v2 .sp-co .sp-co-evidence:hover { color: var(--sp-text); border-bottom-color: var(--sp-brand); }
.sp-v2 .sp-co .sp-co-evidence-glyph { font-weight: 400; }
/* Light theme: --sp-brand (#0C8E90) measured 3.97:1 on the white card at this
   11px size -- under AA. The deeper brand ink clears it (5.1:1); hover moves
   to body ink rather than to an even lighter teal. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .sp-v2 .sp-co .sp-co-evidence { color: var(--sp-link); }
  :root:not([data-theme="dark"]) .sp-v2 .sp-co .sp-co-evidence:hover { color: var(--sp-text); }
}
:root[data-theme="light"] .sp-v2 .sp-co .sp-co-evidence { color: var(--sp-link); }
:root[data-theme="light"] .sp-v2 .sp-co .sp-co-evidence:hover { color: var(--sp-text); }
/* SP-UI-002B5R1. The company page's small secondary copy (section ledes,
   the notes helper, table notes, crumbs) reads --sp-text-3 at 11px, which
   measured 4.44:1 where a workspace sits on the light canvas instead of a
   card. Deepened for the company page only and only in light: 5.38:1 on the
   canvas, 5.58:1 on a raised surface, 5.90:1 on white -- still well short of
   --sp-text-2 (7.47:1), so it keeps reading as secondary. Dark is untouched,
   and so is every other V2 page. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .sp-v2 .sp-co { --sp-text-3: #56676D; }
}
:root[data-theme="light"] .sp-v2 .sp-co { --sp-text-3: #56676D; }

/* --- trading activity ------------------------------------------------------ */
.sp-v2 .sp-co .sp-co-kpis--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 36rem;
}
/* The insider section continues the trading family: a hairline, not a second
   eyebrow, and a tighter gap above it than between unrelated sections. */
.sp-v2 .sp-co .sp-co-trading:has(+ .sp-co-ws--continued) { margin-bottom: var(--sp-7); }
.sp-v2 .sp-co .sp-co-ws--continued .sp-co-ws-head {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--sp-line);
}
.sp-v2 .sp-co .sp-co-insider-table tbody td { white-space: nowrap; }
.sp-v2 .sp-co .sp-co-insider-table tbody td:nth-child(2) {
  min-width: 12rem;
  white-space: normal;
  color: var(--sp-text);
}

/* Wide-screen fix. Company page only (main.sp-content.sp-co): the content
   column stops at 1360px and centres instead of stretching across a 2400px
   area. The header, section nav and every workspace live inside this main, so
   they cap together; the sidebar and top bar are outside it and untouched. */
.sp-v2 main.sp-content.sp-co {
  max-width: 1360px;
  margin-inline: auto;
}
/* Who owns it: the 800-wide SVG must never be drawn much above 1x. 900px is
   1.125x, so chart text stays near its authored 14-16px. The stats column is
   a grid sibling and is unaffected. */
.sp-v2 .sp-co .sp-own-trend { max-width: 900px; }
/* Collapsible tables: rows past the default are hidden only after
   table-toggle.js has run (the `hidden` attribute does it; no CSS needed); the
   server HTML always carries all of them. */
.sp-v2 .sp-co .sp-co-delivery-scroll { max-width: 720px; }
.sp-v2 .sp-co .sp-co-more-btn {
  margin: var(--sp-2) 0 var(--sp-4);
  min-height: 44px;
  padding: 0 var(--sp-4);
  background: transparent;
  color: var(--sp-text-2);
  border: 1px solid var(--sp-line-strong);
  border-radius: var(--sp-r);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sp-v2 .sp-co .sp-co-more-btn:hover { color: var(--sp-text); background: var(--sp-hover); }
.sp-v2 .sp-co .sp-co-more-btn:focus-visible { outline: 2px solid var(--sp-brand-hi); outline-offset: 2px; }

/* --- data basis + utilities ------------------------------------------------ */
.sp-v2 .sp-co .sp-co-basis { margin: 0 0 var(--sp-7); }
.sp-v2 .sp-co .sp-co-basis-cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 var(--sp-3);
  background: var(--sp-line);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
  overflow: hidden;
}
.sp-v2 .sp-co .sp-co-basis-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 10px var(--sp-4) 11px;
  background: var(--sp-surface);
}
.sp-v2 .sp-co .sp-co-basis-label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-basis-glyph { color: var(--sp-brand); font-weight: 400; }
.sp-v2 .sp-co .sp-co-basis-value {
  font-family: var(--sp-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sp-text);
  font-variant-numeric: tabular-nums;
}
.sp-v2 .sp-co .sp-co-basis-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--sp-2);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.03em;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-basis-empty { margin: 0 0 var(--sp-7); }
.sp-v2 .sp-co .sp-co-utils {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-6);
}
.sp-v2 .sp-co .sp-co-utils-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.sp-v2 .sp-co .sp-co-utils-label {
  margin-right: 4px;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-util {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 var(--sp-3);
  font-size: var(--sp-t-meta);
  font-weight: 500;
  color: var(--sp-text-2);
  text-decoration: none;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r-sm);
  transition: color var(--sp-fast), border-color var(--sp-fast), background var(--sp-fast);
}
.sp-v2 .sp-co .sp-co-util:hover {
  color: var(--sp-text);
  background: var(--sp-hover);
  border-color: var(--sp-line-strong);
}

/* --- financials ------------------------------------------------------------ */
.sp-v2 .sp-co .sp-co-financials .sp-co-legend { margin-bottom: var(--sp-3); }
.sp-v2 .sp-co .sp-co-filings .sp-co-ws-head { margin-bottom: var(--sp-4); }
.sp-v2 .sp-co .sp-co-key--revenue { background: var(--sp-chart-neutral-fill); box-shadow: inset 0 0 0 1px var(--sp-chart-neutral); }
.sp-v2 .sp-co .sp-co-key--profit { background: var(--sp-chart-primary); }
.sp-v2 .sp-co .sp-co-key--loss { background: var(--sp-chart-negative); }
.sp-v2 .sp-co .sp-co-qtr-table thead th > span { font: inherit; letter-spacing: inherit; color: inherit; }
.sp-v2 .sp-co .sp-co-qtr-table thead th:first-child > span {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-qtr-table thead th span > span { margin-right: 4px; color: var(--sp-text-3); }
.sp-v2 .sp-co .sp-co-qtr-table tbody th { white-space: nowrap; }
/* The reconciliation companion (Gross / incl. minority) stays under its
   primary figure, quieter than it. */
.sp-v2 .sp-co .sp-co-qtr-table tbody td > span[title] {
  display: block;
  margin-top: 2px;
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-qtr-table tbody td:last-child {
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  color: var(--sp-text-3);
  white-space: nowrap;
}

/* --- filings & evidence ------------------------------------------------------ */
.sp-v2 .sp-co .sp-co-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  align-items: start;
}
.sp-v2 .sp-co .sp-co-doc {
  min-width: 0;
  margin: 0;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-left: 2px solid var(--sp-brand);
  border-radius: var(--sp-r);
}
.sp-v2 .sp-co .sp-co-doc > summary {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  list-style: none;
  cursor: pointer;
  font-size: var(--sp-t-meta);
  font-weight: 500;
  color: var(--sp-text);
}
.sp-v2 .sp-co .sp-co-doc > summary::-webkit-details-marker { width: 0; height: 0; visibility: hidden; }
.sp-v2 .sp-co .sp-co-doc > summary::after {
  content: "▸";
  margin-left: auto;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-doc[open] > summary::after { content: "▾"; }
.sp-v2 .sp-co .sp-co-doc[open] > summary { border-bottom: 1px solid var(--sp-line); }
.sp-v2 .sp-co .sp-co-doc > summary:hover .sp-co-doc-title { color: var(--sp-text); }
.sp-v2 .sp-co .sp-co-doc-glyph { color: var(--sp-brand); }
.sp-v2 .sp-co .sp-co-doc-title { min-width: 0; }
.sp-v2 .sp-co .sp-co-doc-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}
.sp-v2 .sp-co .sp-co-doc-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  font-size: var(--sp-t-meta);
}
.sp-v2 .sp-co .sp-co-doc-note {
  font-size: var(--sp-t-micro);
  line-height: 1.5;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-doc .sp-co-table-scroll { margin: 0; }
.sp-v2 .sp-co .sp-co-raw-table tbody td {
  padding: 5px var(--sp-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
}
.sp-v2 .sp-co .sp-co-raw-table tbody td.sp-co-num { color: var(--sp-text-2); }

/* --- notes ------------------------------------------------------------------ */
/* `.notes-price-row` and `.notes-panel` are exact test hooks and are not
   named here; the wrapper reaches them as its child div and its section. */
.sp-v2 .sp-co .sp-co-notes > div {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--sp-5);
  margin: 0;
}
.sp-v2 .sp-co .sp-co-notes > div > section {
  flex: 1 1 36rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.sp-v2 .sp-co .sp-co-note-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
}
.sp-v2 .sp-co .sp-co-note-form textarea {
  width: 100%;
  min-height: 96px;
  margin: 0;
  padding: 10px var(--sp-3);
  font-family: var(--sp-font);
  font-size: var(--sp-t-body);
  line-height: 1.55;
  color: var(--sp-text);
  background: var(--sp-canvas);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  resize: vertical;
}
.sp-v2 .sp-co .sp-co-note-form textarea:hover { border-color: var(--sp-line-strong); }
.sp-v2 .sp-co .sp-co-note-form ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--sp-t-meta);
  color: var(--sp-neg);
}
.sp-v2 .sp-co .sp-co-note-submit { display: flex; justify-content: flex-end; }
.sp-v2 .sp-co .sp-co-notes .btn {
  font-family: var(--sp-font);
  font-size: var(--sp-t-meta);
  font-weight: 600;
  line-height: 1;
  padding: 8px var(--sp-4);
  color: var(--sp-on-brand);
  background: var(--sp-brand);
  border: 1px solid var(--sp-brand);
  border-radius: var(--sp-r-sm);
  cursor: pointer;
}
.sp-v2 .sp-co .sp-co-notes .btn:hover { background: var(--sp-brand-hi); border-color: var(--sp-brand-hi); }
.sp-v2 .sp-co .sp-co-notes .btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--sp-font);
  font-size: var(--sp-t-meta);
  font-weight: 500;
  line-height: 1;
  padding: 6px var(--sp-3);
  color: var(--sp-text-2);
  background: transparent;
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  cursor: pointer;
  list-style: none;
}
.sp-v2 .sp-co .sp-co-notes .btn-ghost:hover { color: var(--sp-text); border-color: var(--sp-line-strong); background: var(--sp-hover); }
/* Delete is available, never loud: quiet until hovered. */
.sp-v2 .sp-co .sp-co-notes .note-delete { color: var(--sp-text-3); border-color: transparent; }
.sp-v2 .sp-co .sp-co-notes .note-delete:hover {
  color: var(--sp-neg);
  border-color: var(--sp-line-mid);
  background: transparent;
}
.sp-v2 .sp-co .sp-co-note-list {
  display: grid;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sp-v2 .sp-co .sp-co-note {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
}
.sp-v2 .sp-co .sp-co-note-meta {
  font-size: var(--sp-t-micro);
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-note-text {
  margin: 0;
  font-size: var(--sp-t-body);
  line-height: 1.6;
  color: var(--sp-text);
  overflow-wrap: anywhere;
}
.sp-v2 .sp-co .sp-co-note-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--sp-2);
}
.sp-v2 .sp-co .sp-co-note-edit > summary::-webkit-details-marker { width: 0; height: 0; visibility: hidden; }
.sp-v2 .sp-co .sp-co-note-edit[open] { flex: 1 1 100%; }
.sp-v2 .sp-co .sp-co-note-edit[open] .sp-co-note-form { margin: var(--sp-2) 0 0; }
.sp-v2 .sp-co .sp-co-note-delete-form { margin: 0; }
.sp-v2 .sp-co .sp-co-notes-empty {
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--sp-t-meta);
  color: var(--sp-text-2);
  background: transparent;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-r);
}
.sp-v2 .sp-co .sp-co-notes-anon { margin: 0; font-size: var(--sp-t-meta); }
.sp-v2 .sp-co .sp-co-notes .wl-login {
  color: var(--sp-link);
  text-decoration: none;
  border-bottom: 1px solid var(--sp-brand-line);
}
/* The price reference beside the notes -- same four values as the header's
   price box, so it reads as the same readout, one size down. */
.sp-v2 .sp-co .sp-co-notes .price-box {
  flex: 0 0 15rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: none;
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--sp-raised);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
  box-shadow: none;
}
.sp-v2 .sp-co .sp-co-notes .price-box .tile-label,
.sp-v2 .sp-co .sp-co-notes .price-box .price-box-sub,
.sp-v2 .sp-co .sp-co-notes .price-box .price-box-asof {
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: 0.05em;
  color: var(--sp-text-3);
}
.sp-v2 .sp-co .sp-co-notes .price-box .tile-label { text-transform: uppercase; }
.sp-v2 .sp-co .sp-co-notes .price-box .tile-value {
  font-family: var(--sp-font);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.2;
  color: var(--sp-text);
}

/* --- whole-page rhythm --------------------------------------------------------
   With every section on the workspace grammar, 48px between workspaces made
   the page feel like a stack of separate modules. 40px keeps sections clearly
   apart while reading as one continuous research document. */
.sp-v2 .sp-co .sp-co-ws { margin-bottom: var(--sp-8); }
.sp-v2 .sp-co .sp-co-notes { margin-bottom: 0; }

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .sp-v2 .sp-co .sp-co-docs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .sp-v2 .sp-co .sp-co-ws { margin-bottom: var(--sp-7); }
  .sp-v2 .sp-co .sp-co-basis-cells { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-co .sp-co-utils { justify-content: flex-start; }
  .sp-v2 .sp-co .sp-co-util { min-height: 34px; }
  .sp-v2 .sp-co .sp-co-kpis--pair { max-width: none; }
  .sp-v2 .sp-co .sp-co-notes .price-box { flex: 1 1 100%; }
  .sp-v2 .sp-co .sp-co-insider-table tbody td:nth-child(2) { min-width: 9rem; }
}


/* ==========================================================================
   10. COMPANIES DIRECTORY (SP-UI-005B1–B4)

   Every selector is scoped through the page's `sp-companies` main-class
   hook. C3's compact directory table is intentionally independent from the
   shared legacy ledger used by Watchlist and public/shared output.
   ========================================================================== */

.sp-v2 .sp-companies .sp-companies-workspace { min-width: 0; }

.sp-v2 .sp-companies .sp-companies-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-3) 0 var(--sp-5);
  border-bottom: 1px solid var(--sp-line-mid);
}

.sp-v2 .sp-companies .sp-companies-head-copy { min-width: 0; }

.sp-v2 .sp-companies .sp-companies-eyebrow,
.sp-v2 .sp-companies .sp-companies-section-kicker {
  margin: 0 0 var(--sp-2);
  color: var(--sp-brand);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sp-v2 .sp-companies .sp-companies-head h1 {
  margin: 0;
  color: var(--sp-text);
  font-size: clamp(31px, 4vw, 43px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.sp-v2 .sp-companies .sp-companies-lede {
  max-width: 54ch;
  margin: var(--sp-3) 0 0;
  color: var(--sp-text-2);
  font-size: var(--sp-t-body);
  line-height: 1.55;
}

.sp-v2 .sp-companies .sp-companies-utility {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 38px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  background: var(--sp-surface);
  color: var(--sp-text-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--sp-fast), color var(--sp-fast), background var(--sp-fast);
}

.sp-v2 .sp-companies .sp-companies-utility:hover {
  border-color: var(--sp-brand-line);
  background: var(--sp-brand-tint);
  color: var(--sp-text);
}

.sp-v2 .sp-companies .sp-companies-basis {
  display: grid;
  grid-template-columns: minmax(9rem, 0.8fr) minmax(8rem, 0.7fr) minmax(13rem, 1.25fr) minmax(13rem, 1.25fr);
  margin: 0 0 var(--sp-8);
  border-bottom: 1px solid var(--sp-line-mid);
  background: var(--sp-surface);
}

.sp-v2 .sp-companies .sp-companies-basis-cell {
  min-width: 0;
  padding: var(--sp-4);
  border-right: 1px solid var(--sp-line);
}

.sp-v2 .sp-companies .sp-companies-basis-cell:last-child { border-right: 0; }

.sp-v2 .sp-companies .sp-companies-basis dt {
  margin: 0 0 6px;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sp-v2 .sp-companies .sp-companies-basis dd {
  margin: 0;
  color: var(--sp-text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.sp-v2 .sp-companies .sp-companies-section-head,
.sp-v2 .sp-companies .sp-companies-directory-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
}

.sp-v2 .sp-companies .sp-companies-section-head { margin-bottom: var(--sp-4); }

.sp-v2 .sp-companies .sp-companies-section-head h2,
.sp-v2 .sp-companies .sp-companies-directory-head h2 {
  margin: 0;
  color: var(--sp-text);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-transform: none;
}

.sp-v2 .sp-companies .sp-companies-section-head > p {
  max-width: 34rem;
  margin: 0;
  color: var(--sp-text-3);
  font-size: var(--sp-t-meta);
  line-height: 1.5;
  text-align: right;
}

.sp-v2 .sp-companies .sp-companies-search {
  margin: 0;
  padding: var(--sp-4);
  border-color: var(--sp-line-mid);
  border-radius: var(--sp-r);
  background: var(--sp-surface);
}

.sp-v2 .sp-companies .sp-companies-search-fields {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(13rem, 0.38fr) auto auto;
  align-items: flex-end;
  gap: var(--sp-3);
  margin: 0;
}

.sp-v2 .sp-companies .sp-companies-search-field,
.sp-v2 .sp-companies .sp-companies-sector-field,
.sp-v2 .sp-companies .sp-companies-search-action,
.sp-v2 .sp-companies .sp-companies-search-clear { margin: 0; }
.sp-v2 .sp-companies .sp-companies-search-field { min-width: 0; }

.sp-v2 .sp-companies .sp-companies-search label {
  display: block;
  margin-bottom: 7px;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-v2 .sp-companies .sp-companies-search input,
.sp-v2 .sp-companies .sp-companies-search select {
  width: 100%;
  min-height: 44px;
  border-color: var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  background: var(--sp-canvas);
  color: var(--sp-text);
  font-family: var(--sp-font);
  font-size: 14px;
}

.sp-v2 .sp-companies .sp-companies-search input:focus-visible,
.sp-v2 .sp-companies .sp-companies-search select:focus-visible {
  outline: 2px solid var(--sp-brand);
  outline-offset: 2px;
  border-color: var(--sp-brand-line);
}

.sp-v2 .sp-companies .sp-companies-search .btn {
  min-height: 44px;
  padding-inline: var(--sp-6);
}

.sp-v2 .sp-companies .sp-companies-search-clear {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.sp-v2 .sp-companies .sp-companies-directory { min-width: 0; margin-top: var(--sp-8); }

.sp-v2 .sp-companies .sp-companies-directory-head {
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--sp-line-mid);
}

.sp-v2 .sp-companies .sp-companies-count {
  margin: 0;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sp-v2 .sp-companies .sp-companies-table-frame {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.sp-v2 .sp-companies .sp-companies-table-scroll {
  max-width: 100%;
  max-height: clamp(31rem, 68vh, 48rem);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--sp-line-mid);
  border-top: 0;
  border-radius: 0 0 var(--sp-r) var(--sp-r);
  background: var(--sp-surface);
}

.sp-v2 .sp-companies .sp-companies-table-scroll:focus-visible {
  outline: 2px solid var(--sp-brand);
  outline-offset: 2px;
}

.sp-v2 .sp-companies .sp-companies-data-table {
  width: 100%;
  min-width: 1040px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: var(--sp-surface);
  color: var(--sp-text);
  font-size: 12.5px;
  line-height: 1.35;
}

.sp-v2 .sp-companies .sp-companies-data-table th,
.sp-v2 .sp-companies .sp-companies-data-table td {
  box-sizing: border-box;
  height: 48px;
  padding: 7px var(--sp-3);
  border: 0;
  border-bottom: 1px solid var(--sp-line);
  background: var(--sp-surface);
  vertical-align: middle;
}

.sp-v2 .sp-companies .sp-companies-data-table thead th {
  position: sticky;
  z-index: 3;
  top: 0;
  height: 40px;
  padding-block: 5px;
  border-bottom-color: var(--sp-line-strong);
  background: var(--sp-surface);
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.075em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.sp-v2 .sp-companies .sp-companies-data-table tbody tr:last-child > * { border-bottom: 0; }

.sp-v2 .sp-companies .sp-companies-data-table tbody tr:hover > *,
.sp-v2 .sp-companies .sp-companies-data-table tbody tr:focus-within > * {
  background: var(--sp-hover);
}

.sp-v2 .sp-companies .sp-companies-identity-col {
  position: sticky;
  z-index: 2;
  left: 0;
  width: 250px;
  min-width: 250px;
  box-shadow: 8px 0 12px -12px var(--sp-text);
  text-align: left;
}

.sp-v2 .sp-companies .sp-companies-data-table thead .sp-companies-identity-col { z-index: 4; }

.sp-v2 .sp-companies .sp-companies-data-table [data-column="sector"] { width: 168px; }
.sp-v2 .sp-companies .sp-companies-data-table [data-column="price"] { width: 112px; }
.sp-v2 .sp-companies .sp-companies-data-table [data-column="pe"] { width: 78px; }
.sp-v2 .sp-companies .sp-companies-data-table [data-column="roe"] { width: 82px; }
.sp-v2 .sp-companies .sp-companies-data-table [data-column="debt-to-equity"] { width: 108px; }
.sp-v2 .sp-companies .sp-companies-data-table [data-column="current-ratio"] { width: 112px; }
.sp-v2 .sp-companies .sp-companies-data-table [data-column="as-of"] { width: 132px; }
.sp-v2 .sp-companies .sp-companies-data-table [data-column="save"] { width: 82px; }

.sp-v2 .sp-companies .sp-companies-identity-head-label {
  display: block;
  color: var(--sp-text-2);
}

.sp-v2 .sp-companies .sp-companies-identity-sort {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
  color: var(--sp-text-3);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.sp-v2 .sp-companies .sp-companies-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  color: var(--sp-text-3);
  text-decoration: none;
}

.sp-v2 .sp-companies .sp-companies-sort-link:hover,
.sp-v2 .sp-companies .sp-companies-sort-link[aria-label*="currently"] {
  color: var(--sp-brand);
}

.sp-v2 .sp-companies .sp-companies-sort-indicator {
  margin-left: 0;
  color: var(--sp-brand);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.sp-v2 .sp-companies .sp-companies-company-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.sp-v2 .sp-companies .sp-companies-company-link:hover .sp-companies-ticker { color: var(--sp-text); }

.sp-v2 .sp-companies .sp-companies-ticker {
  overflow: hidden;
  color: var(--sp-link);
  font-family: var(--sp-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-v2 .sp-companies .sp-companies-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--sp-text-2);
  font-size: 11.5px;
  font-weight: 450;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sp-v2 .sp-companies .sp-companies-sector {
  overflow-wrap: anywhere;
  color: var(--sp-text-2);
  font-size: 11.5px;
}

.sp-v2 .sp-companies .sp-companies-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sp-v2 .sp-companies .sp-companies-price { color: var(--sp-text); }

.sp-v2 .sp-companies .sp-companies-price-value { color: var(--sp-text); font-weight: 600; }

.sp-v2 .sp-companies .sp-companies-stale {
  display: block;
  width: max-content;
  margin: 1px 0 0 auto;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sp-v2 .sp-companies .sp-companies-row--stale .sp-companies-stale::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--sp-text-3);
  vertical-align: 1px;
}

.sp-v2 .sp-companies .sp-companies-na {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 6px;
  border: 1px dashed var(--sp-line-mid);
  border-radius: 999px;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sp-v2 .sp-companies .sp-companies-na:focus-visible,
.sp-v2 .sp-companies .sp-companies-stale:focus-visible {
  outline: 2px solid var(--sp-brand);
  outline-offset: 2px;
}

.sp-v2 .sp-companies .sp-companies-asof { color: var(--sp-text-2); }

.sp-v2 .sp-companies .sp-companies-period {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-variant-numeric: tabular-nums;
}

.sp-v2 .sp-companies .sp-companies-period-label {
  color: var(--sp-text);
  font-family: var(--sp-mono);
  font-size: 10.5px;
  font-weight: 650;
}

.sp-v2 .sp-companies .sp-companies-period-kind,
.sp-v2 .sp-companies .sp-companies-muted {
  color: var(--sp-text-3);
  font-size: 9.5px;
}

.sp-v2 .sp-companies .sp-companies-newer {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: var(--sp-brand);
  font-family: var(--sp-mono);
  font-size: 8.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-v2 .sp-companies .sp-companies-save-cell { text-align: center; }

.sp-v2 .sp-companies .sp-companies-save-form { margin: 0; }

.sp-v2 .sp-companies .sp-companies-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 58px;
  min-height: 30px;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  background: transparent;
  color: var(--sp-text-2);
  font: 600 10.5px/1 var(--sp-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.sp-v2 .sp-companies .sp-companies-save:hover {
  border-color: var(--sp-brand-line);
  background: var(--sp-brand-tint);
  color: var(--sp-text);
}

.sp-v2 .sp-companies .sp-companies-save--saved {
  border-color: var(--sp-brand-line);
  color: var(--sp-text);
}

.sp-v2 .sp-list-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 16px;border:1px solid var(--sp-line-mid);background:var(--sp-surface);font-size:13px}
.sp-v2 .sp-list-pagination p,.sp-v2 .sp-list-page-current{margin:0;color:var(--sp-text-3);font:12px/1.5 var(--sp-mono)}
.sp-v2 .sp-list-page-controls,.sp-v2 .sp-list-page-numbers{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.sp-v2 .sp-list-pagination a,.sp-v2 .sp-list-page-disabled{display:inline-flex;align-items:center;justify-content:center;min-height:40px;min-width:40px;padding:6px 10px;border:1px solid var(--sp-line-mid);border-radius:var(--sp-r-sm);color:var(--sp-text-2);text-decoration:none}
.sp-v2 .sp-list-pagination a:hover,.sp-v2 .sp-list-pagination a[aria-current=page]{border-color:var(--sp-brand-line);color:var(--sp-text);background:var(--sp-surface-2,var(--sp-surface))}
.sp-v2 .sp-list-pagination a:focus-visible{outline:2px solid var(--sp-brand-line);outline-offset:3px}
.sp-v2 .sp-list-page-disabled{opacity:.48}.sp-v2 .sp-list-page-gap{padding:6px;color:var(--sp-text-3)}
#sast-results,#sector-companies{scroll-margin-top:calc(var(--mdw-top,64px) + 72px)}
@media(max-width:600px){.sp-v2 .sp-list-pagination{padding:12px;align-items:stretch;flex-direction:column}.sp-v2 .sp-list-page-controls{justify-content:space-between}.sp-v2 .sp-list-page-current{order:-1;flex-basis:100%}.sp-v2 .sp-list-page-numbers{order:2;flex-basis:100%}.sp-v2 .sp-list-pagination a,.sp-v2 .sp-list-page-disabled{min-height:44px;min-width:44px}}

.sp-v2 .sp-companies .sp-companies-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--sp-line-mid);
  border-top: 0;
  background: var(--sp-surface);
}

.sp-v2 .sp-companies .sp-companies-pagination p,
.sp-v2 .sp-companies .sp-companies-page-current {
  margin: 0;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
}

.sp-v2 .sp-companies .sp-companies-page-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.sp-v2 .sp-companies .sp-companies-page-numbers { display: flex; flex-wrap: wrap; gap: 4px; }

/* Page-size law: crawlable A-Z company index (letter nav + letter pages). */
.sp-v2 .sp-companies .sp-companies-letters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: var(--sp-3) 0;
}
.sp-v2 .sp-companies .sp-companies-letters-label {
  margin-right: var(--sp-2);
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
}
.sp-v2 .sp-companies .sp-companies-letters a {
  min-width: 28px;
  padding: 4px 6px;
  border: 1px solid var(--sp-line-mid);
  color: var(--sp-text-2);
  text-align: center;
  text-decoration: none;
}
.sp-v2 .sp-companies .sp-companies-letters a[aria-current="page"] { border-color: var(--sp-brand-line); color: var(--sp-text); font-weight: 600; }
.sp-v2 .sp-companies .sp-companies-letter-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--sp-line-mid);
  background: var(--sp-surface);
}
.sp-v2 .sp-companies .sp-companies-letter-list li {
  padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--sp-line);
}
.sp-v2 .sp-companies .sp-companies-letter-list li span,
.sp-v2 .sp-companies .sp-companies-letter-list li small {
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
}
.sp-v2 .sp-companies .sp-companies-page-numbers a { min-width: 34px; padding-inline: 8px; }
.sp-v2 .sp-companies .sp-companies-page-numbers a[aria-current="page"] { border-color: var(--sp-brand-line); color: var(--sp-text); font-weight: 600; }

.sp-v2 .sp-companies .sp-companies-pagination a,
.sp-v2 .sp-companies .sp-companies-page-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px var(--sp-3);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  color: var(--sp-text-2);
  font-size: var(--sp-t-meta);
  text-decoration: none;
  white-space: nowrap;
}

.sp-v2 .sp-companies .sp-companies-pagination a:hover {
  border-color: var(--sp-brand-line);
  color: var(--sp-text);
}

.sp-v2 .sp-companies .sp-companies-page-disabled { opacity: 0.48; }

.sp-v2 .sp-companies .sp-companies-provenance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--sp-5);
  border-top: 1px solid var(--sp-line-mid);
  border-bottom: 1px solid var(--sp-line-mid);
  background: var(--sp-surface);
}

.sp-v2 .sp-companies .sp-companies-provenance section {
  min-width: 0;
  padding: var(--sp-4) var(--sp-5);
}

.sp-v2 .sp-companies .sp-companies-provenance section + section {
  border-left: 1px solid var(--sp-line);
}

.sp-v2 .sp-companies .sp-companies-provenance-label {
  margin: 0 0 5px;
  color: var(--sp-brand);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sp-v2 .sp-companies .sp-companies-provenance h3 {
  margin: 0 0 5px;
  color: var(--sp-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.sp-v2 .sp-companies .sp-companies-provenance section > p:last-child {
  max-width: 68ch;
  margin: 0;
  color: var(--sp-text-3);
  font-size: 11.5px;
  line-height: 1.55;
}

.sp-v2 .sp-companies .sp-companies-empty {
  margin: 0;
  padding: var(--sp-6);
  border: 1px dashed var(--sp-line-mid);
  border-top: 0;
  border-radius: 0 0 var(--sp-r) var(--sp-r);
  background: var(--sp-surface);
  color: var(--sp-text-2);
}

.sp-v2 .sp-companies .sp-companies-utility:focus-visible,
.sp-v2 .sp-companies .sp-companies-search .btn:focus-visible,
.sp-v2 .sp-companies .sp-companies-clear:focus-visible,
.sp-v2 .sp-companies .sp-companies-table-frame a:focus-visible,
.sp-v2 .sp-companies .sp-companies-table-frame button:focus-visible {
  outline: 2px solid var(--sp-brand);
  outline-offset: 2px;
}

.sp-v2 .sp-companies .sp-companies-pagination a:focus-visible {
  outline: 2px solid var(--sp-brand);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .sp-v2 .sp-companies .sp-companies-basis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sp-v2 .sp-companies .sp-companies-basis-cell:nth-child(2) { border-right: 0; }
  .sp-v2 .sp-companies .sp-companies-basis-cell:nth-child(-n + 2) { border-bottom: 1px solid var(--sp-line); }
  .sp-v2 .sp-companies .sp-companies-search-fields {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.5fr) auto;
  }
  .sp-v2 .sp-companies .sp-companies-search-clear { min-height: auto; }
}

@media (max-width: 620px) {
  .sp-v2 .sp-companies .sp-companies-head {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--sp-4);
  }
  .sp-v2 .sp-companies .sp-companies-utility { min-height: 44px; }
  .sp-v2 .sp-companies .sp-companies-basis {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: var(--sp-7);
  }
  .sp-v2 .sp-companies .sp-companies-basis-cell,
  .sp-v2 .sp-companies .sp-companies-basis-cell:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--sp-line);
  }
  .sp-v2 .sp-companies .sp-companies-basis-cell:last-child { border-bottom: 0; }
  .sp-v2 .sp-companies .sp-companies-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--sp-2);
  }
  .sp-v2 .sp-companies .sp-companies-section-head > p { text-align: left; }
  .sp-v2 .sp-companies .sp-companies-search-fields {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .sp-v2 .sp-companies .sp-companies-search-field { min-width: 0; }
  .sp-v2 .sp-companies .sp-companies-search .btn { width: 100%; }
  .sp-v2 .sp-companies .sp-companies-search-clear { justify-content: center; }
  .sp-v2 .sp-companies .sp-companies-directory { margin-top: var(--sp-7); }
  .sp-v2 .sp-companies .sp-companies-pagination { align-items: stretch; flex-direction: column; }
  .sp-v2 .sp-companies .sp-companies-page-controls { justify-content: space-between; width: 100%; }
  .sp-v2 .sp-companies .sp-companies-pagination a,
  .sp-v2 .sp-companies .sp-companies-page-disabled { min-height: 44px; }
  .sp-v2 .sp-companies .sp-companies-data-table { min-width: 985px; }
  .sp-v2 .sp-companies .sp-companies-identity-col { width: 220px; min-width: 220px; }
  .sp-v2 .sp-companies .sp-companies-provenance { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-companies .sp-companies-provenance section + section {
    border-top: 1px solid var(--sp-line);
    border-left: 0;
  }
}

/* ===========================================================================
   11. COMPARE — B1 SHELL + SELECTION WORKSPACE (SP-UI-006B1)
   The legacy results table below the selector is deliberately transitional;
   B2 owns its semantic table redesign. Every new rule is Compare-scoped.
   =========================================================================== */

.sp-v2 .sp-compare .sp-compare-workspace { min-width: 0; }

.sp-v2 .sp-compare .sp-compare-head {
  padding: var(--sp-3) 0 var(--sp-5);
  border-bottom: 1px solid var(--sp-line-mid);
}

.sp-v2 .sp-compare .sp-compare-eyebrow,
.sp-v2 .sp-compare .sp-compare-results-kicker {
  margin: 0 0 var(--sp-2);
  color: var(--sp-brand);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.sp-v2 .sp-compare .sp-compare-head h1 {
  margin: 0;
  color: var(--sp-text);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.sp-v2 .sp-compare .sp-compare-lede {
  margin: var(--sp-3) 0 0;
  color: var(--sp-text-2);
  font-size: var(--sp-t-body);
  line-height: 1.5;
}

.sp-v2 .sp-compare .sp-compare-truth {
  margin: var(--sp-2) 0 0;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: var(--sp-t-micro);
  letter-spacing: .025em;
}

.sp-v2 .sp-compare .sp-compare-selector {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r);
  background: var(--sp-surface);
}

.sp-v2 .sp-compare .sp-compare-selector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.sp-v2 .sp-compare .sp-compare-selector h2 {
  margin: 0;
  color: var(--sp-text);
  font-family: var(--sp-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sp-v2 .sp-compare .sp-compare-selector h2 span { color: var(--sp-text-3); }

.sp-v2 .sp-compare .sp-compare-clear,
.sp-v2 .sp-compare .sp-compare-secondary {
  min-height: 38px;
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  background: transparent;
  color: var(--sp-text-2);
  font: 600 11px/1 var(--sp-font);
  text-decoration: none;
  white-space: nowrap;
}

.sp-v2 .sp-compare .sp-compare-clear {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--sp-3);
}

.sp-v2 .sp-compare .sp-compare-secondary { padding: 0 var(--sp-4); cursor: pointer; }
.sp-v2 .sp-compare .sp-compare-clear:hover,
.sp-v2 .sp-compare .sp-compare-secondary:hover { border-color: var(--sp-brand-line); color: var(--sp-text); }

.sp-v2 .sp-compare .sp-compare-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  min-height: 30px;
  margin: var(--sp-4) 0;
}

.sp-v2 .sp-compare .sp-compare-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 32px;
  border: 1px solid var(--sp-brand-line);
  border-radius: var(--sp-r-sm);
  background: var(--sp-brand-tint);
  color: var(--sp-text);
  font-family: var(--sp-mono);
  font-size: 11px;
  font-weight: 600;
}

.sp-v2 .sp-compare .sp-compare-chip span { overflow: hidden; padding: 0 8px; text-overflow: ellipsis; white-space: nowrap; }
.sp-v2 .sp-compare .sp-compare-chip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 30px;
  border-left: 1px solid var(--sp-brand-line);
  color: var(--sp-text-2);
  font: 600 18px/1 var(--sp-font);
  text-decoration: none;
}
.sp-v2 .sp-compare .sp-compare-chip a:hover { background: color-mix(in srgb, var(--sp-brand) 12%, transparent); color: var(--sp-text); }

.sp-v2 .sp-compare .sp-compare-add { margin: var(--sp-4) 0 0; }
.sp-v2 .sp-compare .sp-compare-add label,
.sp-v2 .sp-compare .sp-compare-sector label {
  display: block;
  margin-bottom: 7px;
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sp-v2 .sp-compare .sp-compare-add-row { display: flex; gap: var(--sp-2); }
.sp-v2 .sp-compare .sp-compare-add input,
.sp-v2 .sp-compare .sp-compare-sector select {
  min-height: 44px;
  border-color: var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  background: var(--sp-canvas);
  color: var(--sp-text);
  font-family: var(--sp-font);
  font-size: 14px;
}
.sp-v2 .sp-compare .sp-compare-add input { flex: 1 1 auto; min-width: 0; }
.sp-v2 .sp-compare .sp-compare-add .btn { min-height: 44px; padding-inline: var(--sp-5); }
.sp-v2 .sp-compare .sp-compare-add p { margin: var(--sp-2) 0 0; color: var(--sp-text-3); font-size: var(--sp-t-meta); line-height: 1.45; }
.sp-v2 .sp-compare .sp-compare-add .sp-compare-error { color: var(--sp-risk); }

.sp-v2 .sp-compare .sp-compare-sector {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-2);
  margin: var(--sp-4) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--sp-line);
}
.sp-v2 .sp-compare .sp-compare-sector label { flex: 0 0 100%; }
.sp-v2 .sp-compare .sp-compare-sector select { flex: 1 1 15rem; max-width: 22rem; }

.sp-v2 .sp-compare .sp-compare-notice,
.sp-v2 .sp-compare .sp-compare-max,
.sp-v2 .sp-compare .sp-compare-guidance {
  margin: var(--sp-3) 0 0;
  color: var(--sp-text-2);
  font-size: var(--sp-t-meta);
  line-height: 1.5;
}
.sp-v2 .sp-compare .sp-compare-notice { padding-left: var(--sp-3); border-left: 2px solid var(--sp-brand-line); }
.sp-v2 .sp-compare .sp-compare-guidance { padding: var(--sp-3) 0; color: var(--sp-text-3); }

/* B2 is deliberately an analytical worksheet, not a card grid. Its only
   horizontal overflow lives inside this named region, never on the document. */
.sp-v2 .sp-compare .sp-compare-results { min-width: 0; margin-top: var(--sp-7); }
.sp-v2 .sp-compare .sp-compare-basis {
  display: grid;
  grid-template-columns: minmax(13rem, .9fr) minmax(0, 1.6fr);
  gap: var(--sp-5);
  align-items: start;
  margin-top: var(--sp-5);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--sp-line-mid);
  border-bottom: 1px solid var(--sp-line-mid);
}
.sp-v2 .sp-compare .sp-compare-basis-kicker,
.sp-v2 .sp-compare .sp-compare-source-trace-kicker { margin: 0 0 var(--sp-1); color: var(--sp-brand); font-family: var(--sp-mono); font-size: var(--sp-t-micro); font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.sp-v2 .sp-compare .sp-compare-basis h2,
.sp-v2 .sp-compare .sp-compare-source-trace h2 { margin: 0; color: var(--sp-text); font-size: var(--sp-t-meta); font-weight: 650; line-height: 1.35; }
.sp-v2 .sp-compare .sp-compare-basis-copy { color: var(--sp-text-2); font-size: var(--sp-t-meta); line-height: 1.5; }
.sp-v2 .sp-compare .sp-compare-basis-copy p { margin: 0; }
.sp-v2 .sp-compare .sp-compare-basis-copy span { display: inline-block; margin: var(--sp-2) var(--sp-3) 0 0; color: var(--sp-text-3); font-family: var(--sp-mono); font-size: var(--sp-t-micro); }
.sp-v2 .sp-compare .sp-compare-results-title { margin: 0; color: var(--sp-text); font-size: var(--sp-t-h3); font-weight: 600; letter-spacing: -.015em; }
.sp-v2 .sp-compare .sp-compare-results-note { margin: var(--sp-2) 0 var(--sp-3); color: var(--sp-text-3); font-size: var(--sp-t-meta); line-height: 1.45; }
.sp-v2 .sp-compare .sp-compare-summary-note { margin: var(--sp-3) 0 0; }
.sp-v2 .sp-compare .sp-compare-table-frame { min-width: 0; max-width: 100%; overflow: hidden; border-radius: var(--sp-r); }
.sp-v2 .sp-compare .sp-compare-table-scroll {
  max-width: 100%;
  max-height: clamp(28rem, 65vh, 42rem);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--sp-line-mid);
  background: var(--sp-surface);
}
.sp-v2 .sp-compare .sp-compare-table-scroll:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: 2px; }
.sp-v2 .sp-compare .sp-compare-table {
  width: 100%;
  min-width: 1058px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: var(--sp-surface);
  color: var(--sp-text);
  font-size: 12.5px;
  line-height: 1.3;
}
.sp-v2 .sp-compare .sp-compare-table th,
.sp-v2 .sp-compare .sp-compare-table td {
  box-sizing: border-box;
  min-height: 56px;
  padding: 8px var(--sp-3);
  border: 0;
  border-bottom: 1px solid var(--sp-line);
  background: var(--sp-surface);
  vertical-align: middle;
}
.sp-v2 .sp-compare .sp-compare-table thead th {
  position: sticky;
  z-index: 3;
  top: 0;
  height: 40px;
  min-height: 40px;
  padding-block: 4px;
  border-bottom-color: var(--sp-line-strong);
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .075em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.sp-v2 .sp-compare .sp-compare-table tbody tr:hover > *,
.sp-v2 .sp-compare .sp-compare-table tbody tr:focus-within > * { background: var(--sp-hover); }
.sp-v2 .sp-compare .sp-compare-identity-col {
  position: sticky;
  z-index: 2;
  left: 0;
  width: 256px;
  min-width: 256px;
  box-shadow: 8px 0 12px -12px var(--sp-text);
  text-align: left;
}
.sp-v2 .sp-compare .sp-compare-table thead .sp-compare-identity-col { z-index: 4; }
.sp-v2 .sp-compare .sp-compare-table [data-sort="market_cap"] { width: 140px; }
.sp-v2 .sp-compare .sp-compare-table [data-sort="pe"],
.sp-v2 .sp-compare .sp-compare-table [data-sort="pb"],
.sp-v2 .sp-compare .sp-compare-table [data-sort="roe"],
.sp-v2 .sp-compare .sp-compare-table [data-sort="roce"] { width: 80px; }
.sp-v2 .sp-compare .sp-compare-table [data-sort="ev_ebitda"] { width: 108px; }
.sp-v2 .sp-compare .sp-compare-table [data-sort="debt_to_equity"] { width: 112px; }
.sp-v2 .sp-compare .sp-compare-table [data-sort="dividend_yield"] { width: 122px; }
.sp-v2 .sp-compare .sp-compare-sort {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.sp-v2 .sp-compare .sp-compare-sort--num { width: 100%; justify-content: flex-end; }
.sp-v2 .sp-compare .sp-compare-sort:hover { color: var(--sp-text); }
.sp-v2 .sp-compare .sp-compare-sort-indicator { color: var(--sp-brand); font-size: 13px; font-weight: 700; letter-spacing: 0; line-height: 1; }
.sp-v2 .sp-compare .sp-compare-company-link { display: flex; min-width: 0; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.sp-v2 .sp-compare .sp-compare-company-link:hover .sp-compare-ticker { color: var(--sp-text); }
.sp-v2 .sp-compare .sp-compare-ticker { overflow: hidden; color: var(--sp-link); font-family: var(--sp-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .015em; text-overflow: ellipsis; white-space: nowrap; }
.sp-v2 .sp-compare .sp-compare-company-name { overflow-wrap: anywhere; color: var(--sp-text-2); font-size: 11.5px; font-weight: 450; line-height: 1.25; }
.sp-v2 .sp-compare .sp-compare-snapshot-meta { display: block; margin-top: 4px; color: var(--sp-text-3); font-family: var(--sp-mono); font-size: 9px; font-weight: 500; letter-spacing: .01em; line-height: 1.35; }
.sp-v2 .sp-compare .sp-compare-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-v2 .sp-compare .sp-compare-na { display: inline-block; position: relative; text-align: right; white-space: normal; }
.sp-v2 .sp-compare .sp-compare-na > summary {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 6px;
  border: 1px dashed var(--sp-line-mid);
  border-radius: var(--sp-r-pill);
  color: var(--sp-text-3);
  font-family: var(--sp-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  list-style: none;
}
.sp-v2 .sp-compare .sp-compare-na > summary::-webkit-details-marker { width: 0; height: 0; visibility: hidden; }
.sp-v2 .sp-compare .sp-compare-na > summary:hover,
.sp-v2 .sp-compare .sp-compare-na[open] > summary { border-color: var(--sp-brand-line); color: var(--sp-text); }
.sp-v2 .sp-compare .sp-compare-na > p {
  position: absolute;
  z-index: 5;
  right: 0;
  width: min(240px, 70vw);
  margin: 5px 0 0;
  padding: 8px 9px;
  border: 1px solid var(--sp-line-mid);
  border-radius: var(--sp-r-sm);
  background: var(--sp-raised);
  box-shadow: var(--sp-shadow);
  color: var(--sp-text-2);
  font-family: var(--sp-font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
}
.sp-v2 .sp-compare .sp-compare-table tfoot > tr > * { border-bottom: 0; border-top: 1px solid var(--sp-line-strong); background: var(--sp-raised); }
.sp-v2 .sp-compare .sp-compare-table tfoot .sp-compare-identity-col { z-index: 2; }
.sp-v2 .sp-compare .sp-compare-summary { color: var(--sp-text-2); font-family: var(--sp-mono); font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.sp-v2 .sp-compare .sp-compare-summary-na { color: var(--sp-text-3); font-weight: 500; }
.sp-v2 .sp-compare .sp-compare-methodology { margin-top: var(--sp-4); border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); color: var(--sp-text-2); }
.sp-v2 .sp-compare .sp-compare-methodology > summary { min-height: 38px; display: flex; align-items: center; cursor: pointer; color: var(--sp-text); font-family: var(--sp-mono); font-size: var(--sp-t-micro); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.sp-v2 .sp-compare .sp-compare-methodology > div { padding: 0 0 var(--sp-3); font-size: var(--sp-t-meta); line-height: 1.5; }
.sp-v2 .sp-compare .sp-compare-methodology p { margin: var(--sp-2) 0 0; }
.sp-v2 .sp-compare .sp-compare-methodology strong { color: var(--sp-text); }
.sp-v2 .sp-compare .sp-compare-source-trace { display: grid; grid-template-columns: minmax(13rem, .9fr) minmax(0, 1.6fr); gap: var(--sp-5); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-compare .sp-compare-source-trace p { margin: var(--sp-2) 0 0; color: var(--sp-text-3); font-size: var(--sp-t-meta); line-height: 1.45; }
.sp-v2 .sp-compare .sp-compare-source-trace ul { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin: 0; padding: 0; list-style: none; }
.sp-v2 .sp-compare .sp-compare-source-trace li { display: inline-flex; align-items: baseline; gap: var(--sp-2); color: var(--sp-text-3); font-size: var(--sp-t-meta); white-space: nowrap; }
.sp-v2 .sp-compare .sp-compare-source-trace strong { color: var(--sp-text); font-family: var(--sp-mono); font-size: var(--sp-t-micro); letter-spacing: .025em; }
.sp-v2 .sp-compare .sp-compare-source-trace a { color: var(--sp-link-muted); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.sp-v2 .sp-compare .sp-compare-add input:focus-visible,
.sp-v2 .sp-compare .sp-compare-sector select:focus-visible,
.sp-v2 .sp-compare .sp-compare-chip a:focus-visible,
.sp-v2 .sp-compare .sp-compare-clear:focus-visible,
.sp-v2 .sp-compare .sp-compare-secondary:focus-visible,
.sp-v2 .sp-compare .sp-compare-add .btn:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: 2px; }

@media (max-width: 620px) {
  .sp-v2 .sp-compare .sp-compare-selector { padding: var(--sp-3); }
  .sp-v2 .sp-compare .sp-compare-selector-head { align-items: flex-start; }
  .sp-v2 .sp-compare .sp-compare-clear { min-height: 44px; }
  .sp-v2 .sp-compare .sp-compare-add-row { align-items: stretch; flex-direction: column; }
  .sp-v2 .sp-compare .sp-compare-add .btn { width: 100%; }
  .sp-v2 .sp-compare .sp-compare-sector { align-items: stretch; flex-direction: column; }
  .sp-v2 .sp-compare .sp-compare-sector select { max-width: none; width: 100%; }
  .sp-v2 .sp-compare .sp-compare-secondary { min-height: 44px; }
  .sp-v2 .sp-compare .sp-compare-basis,
  .sp-v2 .sp-compare .sp-compare-source-trace { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .sp-v2 .sp-compare .sp-compare-snapshot-meta { font-size: 8.5px; }
  .sp-v2 .sp-compare .sp-compare-source-trace ul { gap: var(--sp-2) var(--sp-3); }
  .sp-v2 .sp-compare .sp-compare-identity-col { width: 190px; min-width: 190px; }
}

/* SP-UI-009 — Watchlist and stored-data digest. Scoped to these two pages. */
.sp-v2 .sp-watch .sp-watch-workspace { min-width: 0; max-width: 1540px; margin: 0 auto; color: var(--sp-text); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-watch .sp-watch-head { padding: var(--sp-5) 0 var(--sp-3); }
.sp-v2 .sp-watch .sp-watch-eyebrow { margin: 0 0 7px; color: var(--sp-brand); font: 650 12px var(--sp-mono); letter-spacing: .1em; text-transform: uppercase; }
.sp-v2 .sp-watch .sp-watch-head h1 { margin: 0; color: var(--sp-text); font: 600 clamp(28px, 3vw, 40px)/1.15 var(--sp-font); letter-spacing: -.035em; }
.sp-v2 .sp-watch .sp-watch-head > p:last-child { margin: 10px 0 0; color: var(--sp-text-2); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-watch .sp-watch-nav { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-bottom: var(--sp-5); border-bottom: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-watch .sp-watch-nav a { display: inline-flex; align-items: center; min-height: 42px; border-bottom: 2px solid transparent; color: var(--sp-text-2); font: 650 13px var(--sp-font); text-decoration: none; }
.sp-v2 .sp-watch .sp-watch-nav a:hover { color: var(--sp-text); }
.sp-v2 .sp-watch .sp-watch-nav a[aria-current="page"] { border-color: var(--sp-brand); color: var(--sp-text); }
.sp-v2 .sp-watch .sp-watch-count { margin: 0 0 var(--sp-3); color: var(--sp-text-2); font: 600 12px var(--sp-mono); }
.sp-v2 .sp-watch .sp-watch-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: var(--sp-3); }
.sp-v2 .sp-watch .sp-watch-section-head h2 { margin: 0; color: var(--sp-text); font: 600 17px var(--sp-font); }
.sp-v2 .sp-watch .sp-watch-section-head span { color: var(--sp-text-3); font-size: 12px; }
.sp-v2 .sp-watch .sp-watch-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior: contain; border: 1px solid var(--sp-line-mid); background: var(--sp-surface); }
.sp-v2 .sp-watch .sp-watch-scroll:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: -2px; }
.sp-v2 .sp-watch .sp-watch-table { width: 100%; min-width: 1120px; border-collapse: collapse; color: var(--sp-text); font-size: 12px; font-variant-numeric: tabular-nums; }
.sp-v2 .sp-watch .sp-watch-table th, .sp-v2 .sp-watch .sp-watch-table td { padding: 11px 13px; border-bottom: 1px solid var(--sp-line); vertical-align: middle; text-align: left; }
.sp-v2 .sp-watch .sp-watch-table thead th { position: sticky; top: 0; background: var(--sp-raised); color: var(--sp-text-2); font: 650 11.5px var(--sp-mono); white-space: nowrap; }
.sp-v2 .sp-watch .sp-watch-table tbody tr:last-child > * { border-bottom: 0; }
.sp-v2 .sp-watch .sp-watch-table tbody tr:hover > * { background: var(--sp-hover); }
.sp-v2 .sp-watch .sp-watch-table .sp-watch-num { text-align: right; white-space: nowrap; }
.sp-v2 .sp-watch .sp-watch-holding { min-width: 205px; font-weight: 400; }
.sp-v2 .sp-watch .sp-watch-holding a { display: block; color: var(--sp-link); font: 650 12px var(--sp-mono); text-decoration: none; }
.sp-v2 .sp-watch .sp-watch-holding span { display: block; margin-top: 3px; color: var(--sp-text-2); line-height: 1.35; }
.sp-v2 .sp-watch .sp-watch-muted { color: var(--sp-text-3); font-size: 12px; }
.sp-v2 .sp-watch .sp-watch-stale { display: block; color: var(--sp-text-3); font: 600 11.5px var(--sp-mono); text-transform: lowercase; }
.sp-v2 .sp-watch .sp-watch-trend { min-width: 78px; }
.sp-v2 .sp-watch .sp-watch-trend svg { display: block; }
.sp-v2 .sp-watch .sp-watch-filing { min-width: 145px; }
.sp-v2 .sp-watch .sp-watch-filing > span { display: block; }
.sp-v2 .sp-watch .sp-watch-newer { margin-top: 3px; color: var(--sp-warn); font-size: 11.5px; }
.sp-v2 .sp-watch .sp-watch-remove { min-height: 34px; padding: 5px 9px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); background: transparent; color: var(--sp-text-2); font: 600 12px var(--sp-font); cursor: pointer; }
.sp-v2 .sp-watch .sp-watch-remove:hover { border-color: var(--sp-line-strong); color: var(--sp-text); }
.sp-v2 .sp-watch .sp-watch-disclosure { max-width: 900px; margin: var(--sp-4) 0 0; padding: 0 0 0 var(--sp-3); border-left: 2px solid var(--sp-brand-line); color: var(--sp-text-2); font-size: 13px; line-height: 1.65; }
.sp-v2 .sp-watch .sp-watch-empty { padding: var(--sp-5); border: 1px solid var(--sp-line-mid); background: var(--sp-surface); }
.sp-v2 .sp-watch .sp-watch-empty h2 { margin: 0; color: var(--sp-text); font: 600 18px var(--sp-font); }
.sp-v2 .sp-watch .sp-watch-empty p { margin: var(--sp-2) 0 0; color: var(--sp-text-2); }
.sp-v2 .sp-watch .sp-watch-empty-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-4); }
.sp-v2 .sp-watch .sp-watch-empty a, .sp-v2 .sp-watch .sp-watch-holding a:hover { color: var(--sp-text); }

.sp-v2 .sp-watch .sp-watch-basis { max-width: 900px; margin: 0 0 var(--sp-4); color: var(--sp-text-2); font-size: 13px; }
.sp-v2 .sp-watch .sp-watch-windows { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 var(--sp-3); }
.sp-v2 .sp-watch .sp-watch-windows a, .sp-v2 .sp-watch .sp-watch-windows span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 11px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); color: var(--sp-text-2); font: 600 12px var(--sp-font); text-decoration: none; }
.sp-v2 .sp-watch .sp-watch-windows a:hover { border-color: var(--sp-brand-line); color: var(--sp-text); }
.sp-v2 .sp-watch .sp-watch-windows .sp-watch-window-active { border-color: var(--sp-brand-line); background: var(--sp-brand-tint); color: var(--sp-text); }
.sp-v2 .sp-watch .sp-watch-window-context { margin: 0 0 var(--sp-5); color: var(--sp-text-2); font: 600 12px/1.6 var(--sp-mono); }
.sp-v2 .sp-watch .sp-watch-window-context strong { color: var(--sp-text); }
.sp-v2 .sp-watch .sp-watch-event-section { margin: 0 0 var(--sp-5); }
.sp-v2 .sp-watch .sp-watch-event-heading { margin: 0 0 var(--sp-2); color: var(--sp-text); font: 600 17px var(--sp-font); }
.sp-v2 .sp-watch .sp-watch-event-note { max-width: 900px; margin: 0 0 var(--sp-3); color: var(--sp-text-2); font-size: 12px; line-height: 1.6; }
.sp-v2 .sp-watch .sp-watch-event-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--sp-line-mid); background: var(--sp-surface); }
.sp-v2 .sp-watch .sp-watch-event-table { width: 100%; min-width: 720px; border-collapse: collapse; color: var(--sp-text); font-size: 12px; font-variant-numeric: tabular-nums; }
.sp-v2 .sp-watch .sp-watch-event-table th { padding: 10px 12px; border-bottom: 1px solid var(--sp-line); background: var(--sp-raised); color: var(--sp-text-2); font: 650 11.5px var(--sp-mono); text-align: left; }
.sp-v2 .sp-watch .sp-watch-event-table td { padding: 10px 12px; border-bottom: 1px solid var(--sp-line); color: var(--sp-text); }
.sp-v2 .sp-watch .sp-watch-event-table .sp-watch-event-num { text-align: right; white-space: nowrap; }
.sp-v2 .sp-watch .sp-watch-event-table tr:hover td { background: var(--sp-hover); }
.sp-v2 .sp-watch .sp-watch-event-table a { color: var(--sp-link); }
.sp-v2 .sp-watch .sp-watch-event-muted { color: var(--sp-text-2); }
.sp-v2 .sp-watch .sp-watch-event-table .sp-watch-up, .sp-v2 .sp-watch .sp-watch-event-table .sp-watch-down { color: var(--sp-text); }
.sp-v2 .sp-watch .sp-watch-notable { padding: 2px 5px; border: 1px solid var(--sp-line-mid); color: var(--sp-text-2); background: var(--sp-raised); font-size: 11.5px; }
.sp-v2 .sp-watch .sp-watch-unavailable { margin: var(--sp-4) 0; color: var(--sp-text-2); font-size: 13px; }
.sp-v2 .sp-watch a:focus-visible, .sp-v2 .sp-watch button:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: 2px; }
@media (max-width: 620px) {
  .sp-v2 .sp-watch .sp-watch-head { padding-top: var(--sp-3); }
  .sp-v2 .sp-watch .sp-watch-nav { margin-bottom: var(--sp-4); }
  .sp-v2 .sp-watch .sp-watch-empty { padding: var(--sp-4); }
  .sp-v2 .sp-watch .sp-watch-windows { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; padding-bottom: 5px; }
  .sp-v2 .sp-watch .sp-watch-windows a, .sp-v2 .sp-watch .sp-watch-windows span { flex: 0 0 auto; }
}
/* SP-UI-010: Market Insights family. All rules are scoped to the four V2 pages. */
.sp-v2 .sp-mi { min-width: 0; color: var(--sp-text); }
.sp-v2 .sp-mi .sp-mi-workspace { max-width: 1680px; min-width: 0; margin-inline: auto; padding-bottom: 64px; }
.sp-v2 .sp-mi .sp-mi-head { padding: 8px 0 24px; border-bottom: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-mi .sp-mi-kicker { margin: 0 0 8px; color: var(--sp-brand); font: 650 11.5px/1.4 var(--sp-mono); letter-spacing: .09em; text-transform: uppercase; }
.sp-v2 .sp-mi .sp-mi-head h1 { margin: 0; color: var(--sp-text); font: 600 clamp(29px, 3vw, 43px)/1.12 var(--sp-font); letter-spacing: -.035em; text-transform: none; }
.sp-v2 .sp-mi .sp-mi-head > p:last-child { max-width: 86ch; margin: 10px 0 0; color: var(--sp-text-2); font: 400 13.5px/1.65 var(--sp-font); }
.sp-v2 .sp-mi .sp-mi-nav { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0 0 22px; border-bottom: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-mi .sp-mi-nav a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; color: var(--sp-text-2); font: 650 12px/1.4 var(--sp-font); text-decoration: none; }
.sp-v2 .sp-mi .sp-mi-nav a:hover { color: var(--sp-text); }
.sp-v2 .sp-mi .sp-mi-nav a[aria-current="page"] { border-color: var(--sp-brand); color: var(--sp-text); }
.sp-v2 .sp-mi .sp-mi-controls { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; margin-bottom: 12px; padding: 13px 0; border-bottom: 1px solid var(--sp-line); }
.sp-v2 .sp-mi .sp-mi-choice { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sp-v2 .sp-mi .sp-mi-choice > span:first-child { margin-right: 6px; color: var(--sp-text-3); font: 650 11.5px/1.4 var(--sp-font); text-transform: uppercase; letter-spacing: .05em; }
.sp-v2 .sp-mi .sp-mi-choice a, .sp-v2 .sp-mi .sp-mi-selected { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 10px; border: 1px solid var(--sp-line-mid); border-radius: 3px; color: var(--sp-text-2); background: var(--sp-surface); font: 600 12px/1.3 var(--sp-font); text-decoration: none; white-space: nowrap; }
.sp-v2 .sp-mi .sp-mi-choice a:hover { border-color: var(--sp-brand); color: var(--sp-text); }
.sp-v2 .sp-mi .sp-mi-selected { border-color: var(--sp-brand-line); background: var(--sp-brand-tint); color: var(--sp-text); }
.sp-v2 .sp-mi .sp-mi-note, .sp-v2 .sp-mi .sp-mi-method { max-width: 105ch; margin: 10px 0 16px; color: var(--sp-text-2); font: 400 13px/1.65 var(--sp-font); }
.sp-v2 .sp-mi .sp-mi-method { padding: 13px 0 0; border-top: 1px solid var(--sp-line); }
.sp-v2 .sp-mi .sp-mi-section { min-width: 0; margin: 28px 0 0; padding: 20px 0 5px; border-top: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-mi .sp-mi-section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.sp-v2 .sp-mi .sp-mi-section-head h2 { margin: 0; color: var(--sp-text); font: 600 clamp(19px, 2vw, 25px)/1.2 var(--sp-font); letter-spacing: -.025em; text-transform: none; }
.sp-v2 .sp-mi .sp-mi-section-head h2 span { color: var(--sp-text-3); font: 500 13px var(--sp-mono); }
.sp-v2 .sp-mi .sp-mi-section-head > p { margin: 0; color: var(--sp-text-3); font: 500 12px/1.5 var(--sp-mono); }
.sp-v2 .sp-mi .sp-mi-section-head > a { color: var(--sp-link); font: 650 12px/1.5 var(--sp-font); text-decoration: none; }
.sp-v2 .sp-mi .sp-mi-empty { margin: 14px 0; padding: 18px 20px; border: 1px solid var(--sp-line); color: var(--sp-text-2); background: var(--sp-surface); font: 400 13px/1.6 var(--sp-font); }
.sp-v2 .sp-mi .sp-mi-evidence { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--sp-line-mid); background: var(--sp-surface); }
.sp-v2 .sp-mi .sp-mi-evidence > div { min-width: 0; padding: 13px 16px; border-right: 1px solid var(--sp-line); }
.sp-v2 .sp-mi .sp-mi-evidence > div:last-child { border-right: 0; }
.sp-v2 .sp-mi .sp-mi-evidence span { display: block; color: var(--sp-text-3); font: 600 11.5px/1.4 var(--sp-font); }
.sp-v2 .sp-mi .sp-mi-evidence strong { display: block; margin-top: 5px; color: var(--sp-text); font: 600 23px/1.2 var(--sp-mono); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-mi .sp-mi-chart { min-width: 0; max-width: 100%; margin-top: 18px; overflow: hidden; }
.sp-v2 .sp-mi .sp-mi-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sp-v2 .sp-mi .sp-mi-pair details { min-width: 0; border: 1px solid var(--sp-line-mid); background: var(--sp-surface); }
.sp-v2 .sp-mi .sp-mi-pair summary { padding: 12px 16px; color: var(--sp-text); font: 650 12px/1.5 var(--sp-font); cursor: pointer; }
.sp-v2 .sp-mi .sp-mi-heatmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 16px 0 20px; }
.sp-v2 .sp-mi .sp-mi-heat { display: grid; align-content: space-between; min-width: 0; min-height: 102px; padding: 12px 14px; border: 1px solid var(--sp-line-mid); background: var(--sp-mi-heat, var(--sp-surface)); }
.sp-v2 .sp-mi .sp-mi-heat span { color: var(--sp-text); font: 650 12px/1.35 var(--sp-font); overflow-wrap: anywhere; }
.sp-v2 .sp-mi .sp-mi-heat strong { color: var(--sp-text); font: 650 21px/1.25 var(--sp-mono); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-mi .sp-mi-heat small { color: var(--sp-text-2); font: 500 11.5px/1.4 var(--sp-font); }
.sp-v2 .sp-mi .sp-mi-heat-na { border-style: dashed; }
.sp-v2 .sp-mi .sp-mi-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--sp-line-mid); background: var(--sp-surface); }
.sp-v2 .sp-mi .sp-mi-table { width: 100%; min-width: 700px; border-collapse: collapse; color: var(--sp-text); font: 400 12px/1.45 var(--sp-font); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-mi .sp-mi-ipo-table { min-width: 1120px; }
.sp-v2 .sp-mi .sp-mi-sast-table { min-width: 1280px; }
.sp-v2 .sp-mi .sp-mi-sector-table { min-width: 900px; }
.sp-v2 .sp-mi .sp-mi-table caption { padding: 8px 12px; color: var(--sp-text-3); text-align: left; font: 500 11.5px/1.4 var(--sp-font); }
.sp-v2 .sp-mi .sp-mi-table thead th { padding: 10px 12px; border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line-mid); color: var(--sp-text-2); background: var(--sp-raised); text-align: left; font: 650 11.5px/1.35 var(--sp-font); white-space: nowrap; }
.sp-v2 .sp-mi .sp-mi-table tbody td, .sp-v2 .sp-mi .sp-mi-table tbody th { padding: 10px 12px; border-bottom: 1px solid var(--sp-line); text-align: left; font: 400 12px/1.45 var(--sp-font); vertical-align: top; }
.sp-v2 .sp-mi .sp-mi-table tbody th { font-weight: 600; }
.sp-v2 .sp-mi .sp-mi-table tbody tr:last-child > * { border-bottom: 0; }
.sp-v2 .sp-mi .sp-mi-table tbody tr:hover > * { background: var(--sp-raised); }
.sp-v2 .sp-mi .sp-mi-table a { color: var(--sp-link); }
.sp-v2 .sp-mi .sp-mi-table .sp-mi-num { text-align: right; white-space: nowrap; }
.sp-v2 .sp-mi .sp-mi-table .sp-mi-active-col { background: var(--sp-brand-tint); }
.sp-v2 .sp-mi .sp-mi-table small { display: block; color: var(--sp-text-3); font-size: 11.5px; }
.sp-v2 .sp-mi .sp-mi-mono { font-family: var(--sp-mono) !important; }
.sp-v2 .sp-mi .sp-mi-nowrap { white-space: nowrap; }
.sp-v2 .sp-mi .sp-mi-detail summary { color: var(--sp-link-muted); cursor: pointer; }
.sp-v2 .sp-mi .sp-mi-detail > .sp-mi-table-scroll { margin-top: 10px; }
.sp-v2 .sp-mi .sp-mi-detail .sp-mi-table { min-width: 480px; }
.sp-v2 .sp-mi .sp-mi-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; padding: 16px 0; border-bottom: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-mi .sp-mi-filter > div { flex: 0 1 300px; min-width: 190px; }
.sp-v2 .sp-mi .sp-mi-filter label { display: block; margin-bottom: 6px; color: var(--sp-text-2); font: 650 11.5px/1.4 var(--sp-font); }
.sp-v2 .sp-mi .sp-mi-filter input { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--sp-line-mid); border-radius: 3px; background: var(--sp-surface); color: var(--sp-text); font: 400 13px var(--sp-font); }
.sp-v2 .sp-mi .sp-mi-filter button { min-height: 36px; padding: 7px 15px; border: 1px solid var(--sp-brand); border-radius: 3px; background: var(--sp-brand); color: var(--sp-on-brand); font: 650 12px var(--sp-font); cursor: pointer; }
.sp-v2 .sp-mi .sp-mi-filter a { padding: 8px 4px; color: var(--sp-link-muted); font: 600 12px var(--sp-font); }
.sp-v2 .sp-mi .sp-mi-filter p { flex-basis: 100%; margin: 0; color: var(--sp-text-3); font: 400 12px/1.5 var(--sp-font); }
.sp-v2 .sp-mi a:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: 2px; }
.sp-v2 .sp-mi button:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: 2px; }
.sp-v2 .sp-mi input:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: 2px; }
.sp-v2 .sp-mi summary:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: 2px; }
.sp-v2 .sp-mi [tabindex="0"]:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: 2px; }
@media (max-width: 900px) { .sp-v2 .sp-mi .sp-mi-evidence { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sp-v2 .sp-mi .sp-mi-evidence > div { border-bottom: 1px solid var(--sp-line); } }
@media (max-width: 600px) { .sp-v2 .sp-mi .sp-mi-head { padding-top: 0; } .sp-v2 .sp-mi .sp-mi-nav { gap: 0 17px; } .sp-v2 .sp-mi .sp-mi-nav a { min-height: 38px; } .sp-v2 .sp-mi .sp-mi-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-v2 .sp-mi .sp-mi-pair { grid-template-columns: minmax(0, 1fr); } .sp-v2 .sp-mi .sp-mi-heatmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-v2 .sp-mi .sp-mi-heat { min-height: 110px; } .sp-v2 .sp-mi .sp-mi-filter > div { flex-basis: 100%; } }

/* SP-UI-010R1: Breadth instruments. The sibling Market Insights pages do not match this scope. */
.sp-v2 .sp-mi-breadth .sp-mi-window-note { margin-bottom: 18px; }
.sp-v2 .sp-mi-breadth .sp-mi-instruments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.sp-v2 .sp-mi-breadth .sp-mi-instrument { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 16px 20px; border: 1px solid var(--sp-line-mid); border-radius: 3px; background: var(--sp-surface); }
.sp-v2 .sp-mi-breadth .sp-mi-instrument .sp-mi-section-head { align-items: start; min-height: 50px; margin-bottom: 10px; }
.sp-v2 .sp-mi-breadth .sp-mi-instrument .sp-mi-section-head h2 { font-size: clamp(19px, 1.55vw, 23px); }
.sp-v2 .sp-mi-breadth .sp-mi-instrument .sp-mi-section-head > p { padding-top: 4px; white-space: nowrap; }
.sp-v2 .sp-mi-breadth .sp-mi-metric-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; padding: 8px 0 9px; border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); }
.sp-v2 .sp-mi-breadth .sp-mi-metric-rail > div { min-width: 0; padding: 0 10px; border-right: 1px solid var(--sp-line); }
.sp-v2 .sp-mi-breadth .sp-mi-metric-rail > div:first-child { padding-left: 0; }
.sp-v2 .sp-mi-breadth .sp-mi-metric-rail > div:last-child { padding-right: 0; border-right: 0; }
.sp-v2 .sp-mi-breadth .sp-mi-metric-rail span { display: block; color: var(--sp-text-2); font: 650 11.5px/1.35 var(--sp-font); white-space: nowrap; }
.sp-v2 .sp-mi-breadth .sp-mi-metric-rail strong { display: block; margin-top: 4px; color: var(--sp-text); font: 650 18px/1.2 var(--sp-mono); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-mi-breadth .sp-mi-metric-rail-hl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-v2 .sp-mi-breadth .sp-mi-metric-rail-hl strong { font-size: 22px; }
.sp-v2 .sp-mi-breadth .sp-mi-coverage { min-height: 25px; margin: 7px 0 2px; color: var(--sp-text-3); font: 500 11.5px/1.45 var(--sp-font); }
.sp-v2 .sp-mi-breadth .sp-mi-chart { margin: 3px 0 0; overflow: visible; }
.sp-v2 .sp-mi-breadth .sp-mi-chart-wrap { height: 205px; margin: 0; border: 1px solid var(--sp-line); background: var(--sp-raised); }
.sp-v2 .sp-mi-breadth .sp-mi-chart-canvas { border: 0; border-radius: 0; padding: 10px 7px; background: transparent; }
.sp-v2 .sp-mi-breadth .sp-mi-extremes { display: flex; flex-direction: column; justify-content: center; gap: 18px; min-height: 205px; padding: 17px 22px; border: 1px solid var(--sp-line); background: var(--sp-raised); }
.sp-v2 .sp-mi-breadth .sp-mi-plot-label { margin: 0 0 3px; color: var(--sp-text-2); font: 600 11.5px/1.45 var(--sp-font); }
.sp-v2 .sp-mi-breadth .sp-mi-extreme-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 35px; align-items: center; gap: 11px; }
.sp-v2 .sp-mi-breadth .sp-mi-extreme-row > span { color: var(--sp-text-2); font: 600 12px/1.35 var(--sp-font); white-space: nowrap; }
.sp-v2 .sp-mi-breadth .sp-mi-extreme-row > strong { color: var(--sp-text); text-align: right; font: 650 15px/1.2 var(--sp-mono); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-mi-breadth .sp-mi-extreme-track { display: flex; min-width: 0; height: 23px; overflow: hidden; background: var(--sp-line-mid); }
.sp-v2 .sp-mi-breadth .sp-mi-extreme-bar { display: block; min-width: 0; }
.sp-v2 .sp-mi-breadth .sp-mi-extreme-high { background: var(--sp-brand); }
.sp-v2 .sp-mi-breadth .sp-mi-extreme-low { background: var(--sp-neg); }
.sp-v2 .sp-mi-breadth .sp-mi-extreme-remainder { display: block; min-width: 0; }
.sp-v2 .sp-mi-breadth .sp-mi-plot-foot { margin: 0; color: var(--sp-text-3); font: 400 11.5px/1.5 var(--sp-font); }
.sp-v2 .sp-mi-breadth .sp-mi-support { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.sp-v2 .sp-mi-breadth .sp-mi-support p { margin: 0; color: var(--sp-text-2); font: 400 12.5px/1.58 var(--sp-font); }
.sp-v2 .sp-mi-breadth .sp-mi-highlow-lists { margin-top: 12px; }
.sp-v2 .sp-mi-breadth .sp-mi-highlow-lists summary { font-size: 11.5px; }
.sp-v2 .sp-mi-breadth .sp-mi-heat-section { margin-top: 22px; }
@media (max-width: 1150px) { .sp-v2 .sp-mi-breadth .sp-mi-instruments, .sp-v2 .sp-mi-breadth .sp-mi-support { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .sp-v2 .sp-mi-breadth .sp-mi-instrument { padding: 16px 14px; }
  .sp-v2 .sp-mi-breadth .sp-mi-instrument .sp-mi-section-head > p { white-space: normal; }
  .sp-v2 .sp-mi-breadth .sp-mi-metric-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .sp-v2 .sp-mi-breadth .sp-mi-metric-rail > div:nth-child(2) { border-right: 0; }
  .sp-v2 .sp-mi-breadth .sp-mi-metric-rail > div:nth-child(3) { padding-left: 0; }
  .sp-v2 .sp-mi-breadth .sp-mi-chart-wrap { height: 235px; }
  .sp-v2 .sp-mi-breadth .sp-mi-extremes { min-height: 215px; padding: 16px 12px; }
  .sp-v2 .sp-mi-breadth .sp-mi-extreme-row { grid-template-columns: 68px minmax(0, 1fr) 30px; gap: 7px; }
}
/* SP-UI-011 — Funds research database and scheme dossier. All rules stay
   inside the Funds main class so frozen V2 families retain their appearance. */
.sp-v2 .sp-funds {
  --fund-accent: var(--sp-brand);
  --fund-accent-soft: var(--sp-brand-tint);
}
.sp-v2 .sp-fund-workspace { width: 100%; max-width: 1680px; min-width: 0; margin: 0 auto; }
.sp-v2 .sp-fund-head { margin: 0 0 var(--sp-5); }
.sp-v2 .sp-fund-kicker { margin: 0 0 var(--sp-2); color: var(--fund-accent); font: 600 12px/1.4 var(--sp-mono); letter-spacing: .08em; text-transform: uppercase; }
.sp-v2 .sp-fund-head h1 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.15; letter-spacing: -.035em; }
.sp-v2 .sp-fund-head .sub { margin: var(--sp-2) 0 0; max-width: 90ch; color: var(--sp-text-2); font-size: 14px; line-height: 1.6; }
.sp-v2 .sp-fund-variants { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: var(--sp-5); margin: 0 0 var(--sp-5); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r); background: var(--sp-surface); }
.sp-v2 .sp-fund-variants h2 { margin: 0 0 var(--sp-2); font-size: 16px; line-height: 1.35; }
.sp-v2 .sp-fund-variants p { margin: 0; color: var(--sp-text-2); font-size: 12px; line-height: 1.55; }
.sp-v2 .sp-fund-variants ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.sp-v2 .sp-fund-variants a { display: flex; min-height: 88px; flex-direction: column; justify-content: center; gap: 3px; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); color: var(--sp-text); background: var(--sp-raised); text-decoration: none; }
.sp-v2 .sp-fund-variants a:hover { border-color: var(--fund-accent); background: var(--sp-hover); }
.sp-v2 .sp-fund-variants a > span { color: var(--fund-accent); font: 600 11px/1.3 var(--sp-mono); letter-spacing: .04em; text-transform: uppercase; }
.sp-v2 .sp-fund-variants a > strong { font-size: 13px; line-height: 1.4; }
.sp-v2 .sp-fund-variants a > small { color: var(--sp-text-3); font-size: 11px; line-height: 1.35; }
.sp-v2 .sp-fund-family-nav { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: 0 0 var(--sp-5); border-bottom: 1px solid var(--sp-line-mid); }
.sp-v2 .sp-fund-family-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-4); margin-bottom: -1px; border: 1px solid transparent; border-bottom: 2px solid transparent; color: var(--sp-text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.sp-v2 .sp-fund-family-nav a:hover { color: var(--sp-text); background: var(--sp-hover); }
.sp-v2 .sp-fund-family-nav a[aria-current="page"] { color: var(--fund-accent); border-bottom-color: var(--fund-accent); background: var(--fund-accent-soft); }
.sp-v2 .sp-fund-filters { margin: 0 0 var(--sp-4); padding: var(--sp-5); background: var(--sp-surface); border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r); box-shadow: none; }
.sp-v2 .sp-fund-filters::before { content: none; }
.sp-v2 .sp-fund-filters .fields { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(145px, 1fr)) auto auto; gap: var(--sp-3); align-items: end; }
.sp-v2 .sp-fund-filters .field { min-width: 0; }
.sp-v2 .sp-fund-filters .field label { margin-bottom: 6px; color: var(--sp-text-2); font: 500 12px/1.35 var(--sp-font); letter-spacing: 0; text-transform: none; }
.sp-v2 .sp-fund-filters .field input,
.sp-v2 .sp-fund-filters .field select { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-raised); color: var(--sp-text); font: 12px var(--sp-font); }
.sp-v2 .sp-fund-filters .field input:focus,
.sp-v2 .sp-fund-filters .field select:focus { border-color: var(--fund-accent); }
.sp-v2 .sp-fund-filters .btn { min-height: 38px; height: 38px; padding: 0 var(--sp-4); border: 1px solid var(--fund-accent); background: var(--fund-accent); color: #061522; border-radius: var(--sp-r-sm); font: 600 12px var(--sp-font); }
.sp-v2 .sp-fund-filters .clear-link { display: inline-flex; align-items: center; min-height: 38px; color: var(--sp-text-2); font: 600 12px var(--sp-font); text-decoration: none; }
.sp-v2 .sp-fund-result-bar { display: flex; align-items: baseline; gap: var(--sp-3); margin: 0 0 var(--sp-3); color: var(--sp-text-2); font-size: 12px; line-height: 1.55; }
.sp-v2 .sp-fund-result-bar strong { color: var(--sp-text); font: 600 20px var(--sp-mono); font-variant-numeric: tabular-nums; }
.sp-v2 .sp-fund-table-panel,
.sp-v2 .sp-fund-coverage,
.sp-v2 .sp-fund-notes { min-width: 0; margin: 0 0 var(--sp-5); border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r); background: var(--sp-surface); overflow: hidden; }
.sp-v2 .sp-fund-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--sp-line); }
.sp-v2 .sp-fund-panel-head h2,
.sp-v2 .sp-fund-notes h2 { margin: 0; font-size: 15px; line-height: 1.3; }
.sp-v2 .sp-fund-panel-head span { color: var(--sp-text-3); font: 12px var(--sp-mono); }
.sp-v2 .sp-fund-scroll { max-width: 100%; overflow: auto; border: 0; border-radius: 0; background: transparent; scrollbar-width: thin; }
.sp-v2 .sp-fund-table { min-width: 940px; table-layout: auto; }
.sp-v2 .sp-fund-workspace table.ledger { border: 0; background: transparent; }
.sp-v2 .sp-fund-workspace table.ledger thead th { padding: 11px 13px; border-bottom: 1px solid var(--sp-line-mid); background: var(--sp-raised); color: var(--sp-text-2); font: 600 11.5px/1.35 var(--sp-font); letter-spacing: .025em; text-transform: none; }
.sp-v2 .sp-fund-workspace table.ledger tbody td,
.sp-v2 .sp-fund-workspace table.ledger tbody th { padding: 11px 13px; border-bottom: 1px solid var(--sp-line); color: var(--sp-text); font: 12px/1.5 var(--sp-font); text-align: left; vertical-align: top; background: transparent; }
.sp-v2 .sp-fund-workspace table.ledger tbody th { font-weight: 600; }
.sp-v2 .sp-fund-workspace table.ledger tbody tr:hover > * { background: var(--sp-hover); }
.sp-v2 .sp-fund-workspace table.ledger .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-v2 .sp-fund-workspace table.ledger .mono { display: block; margin-top: 3px; color: var(--sp-text-3); font: 11.5px var(--sp-mono); }
.sp-v2 .sp-fund-workspace table.ledger a { color: var(--sp-text); font-weight: 600; text-decoration: none; }
.sp-v2 .sp-fund-workspace table.ledger a:hover { color: var(--fund-accent); text-decoration: underline; }
.sp-v2 .sp-fund-workspace table.ledger .sub { color: var(--sp-text-3); font-size: 12px; line-height: 1.5; }
.sp-v2 .sp-fund-workspace .na { color: var(--sp-text-3); }
.sp-v2 .sp-fund-pagination { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: var(--sp-3); margin: 0 0 var(--sp-6); color: var(--sp-text-2); font: 12px var(--sp-mono); }
.sp-v2 .sp-fund-pagination a { min-height: 34px; padding: 7px 12px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); color: var(--sp-text); background: var(--sp-surface); text-decoration: none; }
.sp-v2 .sp-fund-pagination a:hover { border-color: var(--fund-accent); color: var(--fund-accent); }
.sp-v2 .sp-fund-crawl-directory { margin: 0 0 var(--sp-4); padding: 12px 14px; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); }
.sp-v2 .sp-fund-crawl-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sp-v2 .sp-fund-crawl-head h2 { margin: 0; font-size: 14px; }
.sp-v2 .sp-fund-crawl-head .sp-fund-kicker { margin-bottom: 2px; }
.sp-v2 .sp-fund-crawl-head > p { max-width: 72ch; margin: 0; color: var(--sp-text-2); font-size: 11.5px; line-height: 1.45; }
.sp-v2 .sp-fund-page-groups,
.sp-v2 .sp-fund-local-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-v2 .sp-fund-page-groups { padding-bottom: 9px; margin-bottom: 9px; border-bottom: 1px solid var(--sp-line); }
.sp-v2 .sp-fund-page-groups a,
.sp-v2 .sp-fund-local-pages a { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 9px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); color: var(--sp-text-2); background: var(--sp-surface); font: 600 11.5px var(--sp-font); text-decoration: none; }
.sp-v2 .sp-fund-local-pages a { min-width: 32px; font-family: var(--sp-mono); }
.sp-v2 .sp-fund-page-groups a:hover,
.sp-v2 .sp-fund-local-pages a:hover { color: var(--fund-accent); border-color: var(--fund-accent); }
.sp-v2 .sp-fund-page-groups a[aria-current="location"],
.sp-v2 .sp-fund-local-pages a[aria-current="page"] { color: var(--sp-on-brand); border-color: var(--fund-accent); background: var(--fund-accent); }
.sp-v2 .sp-fund-historical { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.4fr); gap: 16px; margin: 0 0 var(--sp-5); padding: 13px 14px; border: 1px solid var(--sp-line); border-left: 2px solid var(--sp-brand-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); }
.sp-v2 .sp-fund-historical h2 { margin: 0 0 5px; font-size: 14px; }
.sp-v2 .sp-fund-historical p { margin: 0; color: var(--sp-text-2); font-size: 11.5px; line-height: 1.5; }
.sp-v2 .sp-fund-historical ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; margin: 0; padding: 0; list-style: none; }
.sp-v2 .sp-fund-historical li { min-width: 0; }
.sp-v2 .sp-fund-historical a { display: block; padding: 5px 7px; color: var(--sp-text); border-radius: var(--sp-r-sm); font-size: 11.5px; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.sp-v2 .sp-fund-historical a:hover { color: var(--fund-accent); background: var(--sp-hover); }
.sp-v2 .sp-fund-historical .mono { display: inline; margin: 0 0 0 4px; font-size: 10.5px; }
.sp-v2 .sp-fund-empty { padding: var(--sp-8) var(--sp-5); margin-bottom: var(--sp-6); border: 1px solid var(--sp-line-mid); background: var(--sp-surface); text-align: center; }
.sp-v2 .sp-fund-empty h2 { font-size: 17px; }
.sp-v2 .sp-fund-empty p { color: var(--sp-text-2); font-size: 13px; }
.sp-v2 .sp-fund-notes { padding: var(--sp-5); }
.sp-v2 .sp-fund-notes h2 { margin-bottom: var(--sp-3); }
.sp-v2 .sp-fund-coverage { padding-bottom: var(--sp-4); }
.sp-v2 .sp-fund-coverage > .sub { max-width: 100ch; padding: 0 var(--sp-5); color: var(--sp-text-2); font-size: 13px; line-height: 1.6; }
.sp-v2 .sp-fund-coverage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--sp-line); }
.sp-v2 .sp-fund-coverage-grid > div { display: grid; gap: 5px; padding: var(--sp-4) var(--sp-5); border-right: 1px solid var(--sp-line); }
.sp-v2 .sp-fund-coverage-grid > div:last-child { border-right: 0; }
.sp-v2 .sp-fund-coverage-grid span { color: var(--sp-text-2); font-size: 12px; }
.sp-v2 .sp-fund-coverage-grid strong { color: var(--sp-text); font: 600 23px var(--sp-mono); }
.sp-v2 .sp-fund-intro-notes { margin: 0 0 var(--sp-5); }
.sp-v2 .sp-fund-workspace .factor-caveats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--sp-3); margin: var(--sp-3) 0; }
.sp-v2 .sp-fund-workspace .factor-caveat { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); color: var(--sp-text-2); font-size: 13px; line-height: 1.62; }
.sp-v2 .sp-fund-workspace .factor-alert { border: 1px solid var(--sp-line-mid); border-left: 3px solid var(--fund-accent); border-radius: var(--sp-r-sm); background: var(--fund-accent-soft); color: var(--sp-text); font-size: 13px; line-height: 1.6; }
.sp-v2 .sp-fund-workspace .factor-alert-head { color: var(--sp-text); font: 600 13px var(--sp-font); text-transform: none; letter-spacing: 0; }
.sp-v2 .sp-fund-detail-head .sp-fund-family-nav { margin: var(--sp-2) 0 var(--sp-5); }
.sp-v2 .sp-fund-detail-head .sub { overflow-wrap: anywhere; }
.sp-v2 .sp-fund-identity-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.sp-v2 .sp-fund-identity-tags span { padding: 4px 9px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); color: var(--sp-text-2); background: var(--sp-raised); font-size: 12px; }
.sp-v2 .sp-fund-back { margin: var(--sp-3) 0 0; font-size: 12px; }
.sp-v2 .sp-fund-fact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 var(--sp-5); border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r); background: var(--sp-surface); }
.sp-v2 .sp-fund-fact-strip > div { min-width: 0; padding: var(--sp-4) var(--sp-5); border-right: 1px solid var(--sp-line); }
.sp-v2 .sp-fund-fact-strip > div:last-child { border-right: 0; }
.sp-v2 .sp-fund-fact-strip dt { color: var(--sp-text-3); font-size: 12px; }
.sp-v2 .sp-fund-fact-strip dd { margin: 5px 0 0; color: var(--sp-text); font-size: 16px; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sp-v2 .sp-fund-fact-strip dd.mono { font-family: var(--sp-mono); }
.sp-v2 .sp-fund-primary-notes { margin-bottom: var(--sp-5); }
.sp-v2 .sp-fund-section-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 3px; overflow-x: auto; margin: 0 0 var(--sp-5); padding: 5px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r); background: var(--sp-surface); scrollbar-width: thin; }
.sp-v2 .sp-fund-section-nav a { flex: 0 0 auto; padding: 9px 11px; color: var(--sp-text-2); border-radius: var(--sp-r-sm); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sp-v2 .sp-fund-section-nav a:hover,
.sp-v2 .sp-fund-section-nav a:focus-visible { color: var(--fund-accent); background: var(--fund-accent-soft); }
.sp-v2 .sp-fund-module { min-width: 0; scroll-margin-top: 70px; }
.sp-v2 .sp-fund-detail-overview { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); gap: var(--sp-4); align-items: start; }
.sp-v2 .sp-fund-detail .metric-card { min-width: 0; margin: 0 0 var(--sp-4); padding: var(--sp-5); border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r); background: var(--sp-surface); box-shadow: none; }
.sp-v2 .sp-fund-detail .metric-card:hover { border-color: var(--sp-line-mid); box-shadow: none; }
.sp-v2 .sp-fund-detail .metric-card h2 { margin: 0 0 var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--sp-line); font-size: 16px; }
.sp-v2 .sp-fund-detail .metric-card h3 { margin: var(--sp-5) 0 var(--sp-2); font-size: 14px; }
.sp-v2 .sp-fund-detail .metric-card .sub { color: var(--sp-text-2); font-size: 13px; line-height: 1.62; max-width: 96ch; }
.sp-v2 .sp-fund-detail .metric-card .table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: transparent; scrollbar-width: thin; }
.sp-v2 .sp-fund-detail .metric-card table.ledger { min-width: 540px; }
.sp-v2 .sp-fund-detail #fund-scheme table.ledger { min-width: 0; }
.sp-v2 .sp-fund-detail .metric-card table.ledger tbody th { width: 35%; }
.sp-v2 .sp-fund-detail .metric-card table.ledger tbody td { overflow-wrap: anywhere; }
.sp-v2 .sp-fund-detail .metric-card .history-chart-wrap { height: clamp(300px, 31vw, 440px); margin: var(--sp-5) 0; }
.sp-v2 .sp-fund-detail .metric-card .history-chart { border: 1px solid var(--sp-line-mid); background: var(--sp-raised); }
.sp-v2 .sp-fund-detail .sp-fund-return-state { color: var(--fund-accent); font-weight: 600; }
.sp-v2 .sp-fund-detail .empty-note { max-width: 90ch; padding: var(--sp-4); border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); color: var(--sp-text-2); font-size: 13px; line-height: 1.6; }
@media (max-width: 1240px) {
  .sp-v2 .sp-fund-filters .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-v2 .sp-fund-detail-overview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .sp-v2 .sp-fund-filters .fields { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-fund-fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-v2 .sp-fund-fact-strip > div:nth-child(2) { border-right: 0; }
  .sp-v2 .sp-fund-fact-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--sp-line); }
  .sp-v2 .sp-fund-coverage-grid { grid-template-columns: 1fr; }
  .sp-v2 .sp-fund-coverage-grid > div { border-right: 0; border-bottom: 1px solid var(--sp-line); }
  .sp-v2 .sp-fund-coverage-grid > div:last-child { border-bottom: 0; }
  .sp-v2 .sp-fund-panel-head { align-items: start; flex-direction: column; }
}
@media (max-width: 480px) {
  .sp-v2 .sp-fund-filters .fields { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-fund-fact-strip { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-fund-fact-strip > div { border-right: 0; border-bottom: 1px solid var(--sp-line); }
  .sp-v2 .sp-fund-fact-strip > div:last-child { border-bottom: 0; }
  .sp-v2 .sp-fund-result-bar { align-items: start; }
  .sp-v2 .sp-fund-detail .metric-card { padding: var(--sp-4); }
}

/* SP-UI-011R1: the Funds pages share the established V2 ink, surface and
   accent tokens. Density and hierarchy follow the research-workspace mockup. */
.sp-v2 .sp-fund-head { margin-bottom: 12px; padding: 3px 0 0; }
.sp-v2 .sp-fund-kicker { margin-bottom: 5px; font-size: 11.5px; letter-spacing: .07em; }
.sp-v2 .sp-fund-head h1 { font-size: clamp(28px, 2.4vw, 35px); letter-spacing: -.025em; }
.sp-v2 .sp-fund-head .sub { margin-top: 6px; font-size: 13px; line-height: 1.45; }
.sp-v2 .sp-fund-family-nav { gap: 2px; margin-bottom: 14px; }
.sp-v2 .sp-fund-family-nav a { min-height: 34px; padding: 0 13px; font-size: 12.5px; }
.sp-v2 .sp-fund-family-nav a[aria-current="page"] { color: var(--sp-text); border-bottom-color: var(--sp-brand); background: var(--sp-brand-tint); }
.sp-v2 .sp-fund-filters { padding: 12px 15px; margin-bottom: 12px; border-color: var(--sp-line); background: var(--sp-raised); }
.sp-v2 .sp-fund-filters .fields { gap: 8px 11px; }
.sp-v2 .sp-fund-filters .field label { margin-bottom: 4px; font-size: 11.5px; }
.sp-v2 .sp-fund-filters .field input,
.sp-v2 .sp-fund-filters .field select { height: 34px; font-size: 12px; background: var(--sp-surface); }
.sp-v2 .sp-fund-filters .btn { height: 34px; min-height: 34px; color: var(--sp-on-brand); background: var(--sp-brand); border-color: var(--sp-brand); }
.sp-v2 .sp-fund-filters .clear-link { min-height: 34px; }
.sp-v2 .sp-fund-result-bar { align-items: center; gap: 10px; margin-bottom: 10px; }
.sp-v2 .sp-fund-result-bar strong { font-size: 22px; line-height: 1; }
.sp-v2 .sp-fund-table-panel { border-color: var(--sp-line); border-radius: var(--sp-r-sm); }
.sp-v2 .sp-fund-panel-head { padding: 10px 14px; background: var(--sp-raised); }
.sp-v2 .sp-fund-panel-head h2 { font-size: 13px; }
.sp-v2 .sp-fund-panel-head span { font-size: 11.5px; }
.sp-v2 .sp-fund-workspace table.ledger thead th { padding: 8px 11px; font-size: 11.5px; background: var(--sp-raised); color: var(--sp-text-2); }
.sp-v2 .sp-fund-workspace table.ledger tbody td,
.sp-v2 .sp-fund-workspace table.ledger tbody th { padding: 8px 11px; font-size: 12px; line-height: 1.45; }
.sp-v2 .sp-fund-workspace table.ledger tbody th { font-weight: 600; }
.sp-v2 .sp-fund-workspace table.ledger .mono { margin-top: 1px; font-size: 11px; }
.sp-v2 .sp-fund-workspace table.ledger .sub { font-size: 11.5px; }
.sp-v2 .sp-fund-workspace table.ledger tbody tr:hover > * { background: var(--sp-brand-tint); }
.sp-v2 .sp-fund-pagination { margin-top: 10px; margin-bottom: 18px; }
.sp-v2 .sp-fund-coverage { margin-bottom: 12px; padding-bottom: 0; border-color: var(--sp-line); background: transparent; }
.sp-v2 .sp-fund-coverage .sp-fund-panel-head { background: transparent; }
.sp-v2 .sp-fund-coverage-grid { gap: 8px; padding: 10px 12px; border-bottom: 0; }
.sp-v2 .sp-fund-coverage-grid > div { padding: 9px 12px; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); }
.sp-v2 .sp-fund-coverage-grid strong { font-size: 22px; line-height: 1.1; }
.sp-v2 .sp-fund-coverage > .sub { margin: 0; padding: 0 13px 9px; font-size: 12px; line-height: 1.4; }
.sp-v2 .sp-fund-coverage-status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--sp-line); }
.sp-v2 .sp-fund-coverage-status > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 11px; border-right: 1px solid var(--sp-line); }
.sp-v2 .sp-fund-coverage-status > div:last-child { border-right: 0; }
.sp-v2 .sp-fund-coverage-status dt { color: var(--sp-text-2); font-size: 11px; line-height: 1.35; }
.sp-v2 .sp-fund-coverage-status dd { margin: 0; color: var(--sp-text); font: 600 12px var(--sp-mono); }
.sp-v2 .sp-fund-intro-notes.factor-caveats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 17px; margin: 0 0 12px; border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); }
.sp-v2 .sp-fund-intro-notes .factor-caveat { min-width: 0; padding: 8px 10px; border: 0; border-left: 2px solid var(--sp-brand-line); border-radius: 0; background: transparent; font-size: 11.5px; line-height: 1.45; }
.sp-v2 .sp-fund-intro-notes .factor-caveat p { margin: 0; }
.sp-v2 .sp-fund-notes { border-color: var(--sp-line); background: transparent; }
.sp-v2 .sp-fund-notes .factor-caveat { border: 0; border-left: 2px solid var(--sp-brand-line); background: transparent; }
.sp-v2 .sp-fund-detail-head { margin-bottom: 12px; }
.sp-v2 .sp-fund-detail-head .sp-fund-family-nav { margin: 7px 0 12px; }
.sp-v2 .sp-fund-detail-head h1 { font-size: clamp(28px, 2.65vw, 39px); }
.sp-v2 .sp-fund-identity-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.sp-v2 .sp-fund-identity-tags { margin-top: 8px; }
.sp-v2 .sp-fund-identity-tags span { padding: 3px 8px; color: var(--sp-text-2); background: var(--sp-brand-tint); border-color: var(--sp-brand-line); }
.sp-v2 .sp-fund-back { margin-top: 8px; }
.sp-v2 .sp-fund-fact-strip { margin-bottom: 12px; border-color: var(--sp-line); background: var(--sp-raised); }
.sp-v2 .sp-fund-fact-strip > div { padding: 9px 14px; }
.sp-v2 .sp-fund-fact-strip dt { font-size: 11.5px; }
.sp-v2 .sp-fund-fact-strip dd { margin-top: 2px; font-size: 15px; }
.sp-v2 .sp-fund-section-nav { position: relative; top: auto; z-index: auto; gap: 3px; margin-bottom: 12px; padding: 3px; border-color: var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); }
.sp-v2 .sp-fund-section-nav a { padding: 7px 10px; font-size: 11.5px; }
.sp-v2 .sp-fund-section-nav a[aria-current="location"] { color: var(--sp-on-brand); background: var(--sp-brand); }
.sp-v2 .sp-fund-method-band { margin: 0 0 12px; padding: 9px 12px 10px; border-top: 1px solid var(--sp-brand-line); border-bottom: 1px solid var(--sp-line); background: var(--sp-raised); }
.sp-v2 .sp-fund-method-band h2 { margin: 0 0 7px; color: var(--sp-text); font-size: 12px; line-height: 1.25; }
.sp-v2 .sp-fund-method-copy { columns: 3 240px; column-gap: 16px; }
.sp-v2 .sp-fund-method-copy p { break-inside: avoid; margin: 0 0 7px; padding-left: 8px; border-left: 2px solid var(--sp-brand-line); color: var(--sp-text-2); font-size: 11.5px; line-height: 1.42; }
.sp-v2 .sp-fund-dossier-grid { display: grid; grid-template-columns: minmax(235px, 1.05fr) minmax(0, 1.75fr) minmax(245px, 1.15fr); gap: 11px; align-items: start; }
.sp-v2 .sp-fund-detail .metric-card { padding: 14px; margin-bottom: 12px; border-color: var(--sp-line); border-radius: var(--sp-r-sm); }
.sp-v2 .sp-fund-detail .metric-card h2 { margin-bottom: 8px; padding-bottom: 8px; font-size: 14px; }
.sp-v2 .sp-fund-detail .metric-card h3 { margin: 11px 0 6px; font-size: 12.5px; }
.sp-v2 .sp-fund-detail .metric-card .sub { font-size: 11.5px; line-height: 1.45; }
.sp-v2 .sp-fund-detail .metric-card table.ledger { min-width: 520px; }
.sp-v2 .sp-fund-detail .metric-card table.sp-fund-spec-table { min-width: 0; }
.sp-v2 .sp-fund-detail .metric-card .history-chart-wrap { height: clamp(255px, 25vw, 350px); margin: 11px 0; }
.sp-v2 .sp-fund-detail .sp-fund-nav-module .metric-card { border-top: 2px solid var(--sp-brand-line); }
.sp-v2 .sp-fund-lower-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; align-items: start; }
.sp-v2 .sp-fund-detail .empty-note { background: var(--sp-raised); border-color: var(--sp-line); }
.sp-v2 .sp-fund-etf-results { display: grid; grid-template-columns: minmax(215px, .27fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.sp-v2 .sp-fund-etf-results .sp-fund-intro-notes.factor-caveats { display: block; margin: 0; padding: 11px 12px; border: 1px solid var(--sp-line); background: var(--sp-raised); }
.sp-v2 .sp-fund-etf-results .sp-fund-intro-notes h2 { margin: 0 0 8px; font-size: 12.5px; line-height: 1.3; }
.sp-v2 .sp-fund-etf-results .sp-fund-intro-notes .factor-caveat { padding: 7px 0 7px 8px; margin: 0 0 3px; font-size: 11.5px; }
.sp-v2 .sp-fund-etf-results .sp-fund-table-panel { margin: 0 0 12px; }
.sp-v2 .sp-fund-etf-results .sp-fund-table { min-width: 1180px; }
.sp-v2 .sp-fund-etf-results .sp-fund-table thead th:nth-child(2),
.sp-v2 .sp-fund-etf-results .sp-fund-table tbody th[scope="row"] { min-width: 190px; }
.sp-v2 .sp-fund-workbench { display: grid; grid-template-columns: minmax(215px, .26fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.sp-v2 .sp-fund-workbench .sp-fund-method-band { margin: 0; }
.sp-v2 .sp-fund-workbench .sp-fund-method-copy { columns: 1; }
.sp-v2 .sp-fund-dossier-grid { grid-template-columns: minmax(205px, .72fr) minmax(0, 1.7fr); }
.sp-v2 .sp-fund-analysis-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
@media (max-width: 1240px) {
  .sp-v2 .sp-fund-lower-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1600px) {
  .sp-v2 .sp-fund-analysis-pair { grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr); gap: 11px; }
}
@media (max-width: 900px) {
  .sp-v2 .sp-fund-variants { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-fund-workbench,
  .sp-v2 .sp-fund-etf-results { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-fund-dossier-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .sp-v2 .sp-fund-coverage-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-v2 .sp-fund-intro-notes.factor-caveats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .sp-v2 .sp-fund-variants { padding: var(--sp-4); }
  .sp-v2 .sp-fund-variants ul { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-fund-dossier-grid { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-fund-workbench .sp-fund-method-copy,
  .sp-v2 .sp-fund-etf-results .sp-fund-method-cards { display: flex; gap: 9px; max-width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .sp-v2 .sp-fund-workbench .sp-fund-method-copy p,
  .sp-v2 .sp-fund-etf-results .sp-fund-method-cards .factor-caveat { flex: 0 0 min(65vw, 270px); margin-bottom: 0; scroll-snap-align: start; }
  .sp-v2 .sp-fund-etf-results .sp-fund-method-cards .factor-caveat { padding: 0 8px; }
  .sp-v2 .sp-fund-fact-strip > div { padding: 9px 12px; }
  .sp-v2 .sp-fund-coverage-status { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-fund-coverage-status > div { border-right: 0; border-bottom: 1px solid var(--sp-line); }
  .sp-v2 .sp-fund-coverage-status > div:last-child { border-bottom: 0; }
}

/* SP-UI-012 — Calculators and Learning share the established V2 tokens. */
.sp-v2 .sp-tools { min-width: 0; max-width: 1540px; margin: 0 auto; }
.sp-v2 .sp-tools-head { margin: 0 0 14px; }
.sp-v2 .sp-tools-kicker { display: block; margin: 0 0 5px; color: var(--sp-brand); font: 600 11px var(--sp-mono); letter-spacing: .08em; text-transform: uppercase; }
.sp-v2 .sp-tools-head h1 { margin: 0 0 5px; color: var(--sp-text); font-size: clamp(28px, 2.5vw, 37px); line-height: 1.12; letter-spacing: -.025em; }
.sp-v2 .sp-tools-head > p:last-child { margin: 0; color: var(--sp-text-2); font-size: 13px; line-height: 1.5; }
.sp-v2 .sp-tool-nav { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 14px; padding: 3px; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); }
.sp-v2 .sp-tool-nav a { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border-radius: var(--sp-r-sm); color: var(--sp-text-2); font-size: 12px; font-weight: 600; text-decoration: none; }
.sp-v2 .sp-tool-nav a:hover, .sp-v2 .sp-tool-nav a:focus-visible { color: var(--sp-text); background: var(--sp-brand-tint); }
.sp-v2 .sp-calc-card, .sp-v2 .sp-learn-group, .sp-v2 .sp-learn-card { scroll-margin-top: 78px; }
.sp-v2 .sp-calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; align-items: start; }
.sp-v2 .sp-calc-card { min-width: 0; margin: 0; padding: 17px; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-surface); box-shadow: none; }
.sp-v2 .sp-calc-card:hover { border-color: var(--sp-line-mid); box-shadow: none; }
.sp-v2 .sp-calc-card h2 { margin: 0 0 5px; color: var(--sp-text); font-size: 17px; line-height: 1.25; }
.sp-v2 .sp-calc-card-index { display: block; margin-bottom: 6px; color: var(--sp-brand); font: 600 11px var(--sp-mono); text-transform: uppercase; letter-spacing: .05em; }
.sp-v2 .sp-calc-description { margin: 0; color: var(--sp-text-2); font-size: 12.5px; line-height: 1.5; }
.sp-v2 .sp-calc-card .sp-calc-formula { margin: 9px 0 13px; padding: 8px 10px; border-left: 2px solid var(--sp-brand-line); background: var(--sp-raised); }
.sp-v2 .sp-calc-card .sp-calc-formula code { color: var(--sp-text-2); font: 12px/1.5 var(--sp-mono); overflow-wrap: anywhere; }
.sp-v2 .sp-calc-card form { min-width: 0; }
.sp-v2 .sp-calc-field { min-width: 0; margin-bottom: 11px; gap: 4px; }
.sp-v2 .sp-calc-field label, .sp-v2 .sp-calc-picker label, .sp-v2 .sp-calc-row-list-label { color: var(--sp-text-2); font: 600 11.5px/1.4 var(--sp-font); text-transform: none; letter-spacing: 0; }
.sp-v2 .sp-calc-field input, .sp-v2 .sp-calc-picker input, .sp-v2 .sp-calc-row input { width: 100%; min-width: 0; height: 36px; padding: 7px 9px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-raised); color: var(--sp-text); font: 12.5px var(--sp-mono); }
.sp-v2 .sp-calc-field input:focus, .sp-v2 .sp-calc-picker input:focus, .sp-v2 .sp-calc-row input:focus { outline: 2px solid var(--sp-brand); outline-offset: 1px; }
.sp-v2 .sp-calc-field input::placeholder, .sp-v2 .sp-calc-picker input::placeholder, .sp-v2 .sp-calc-row input::placeholder { color: var(--sp-text-3); }
.sp-v2 .sp-calc-cite { color: var(--sp-text-3); font: 11px/1.4 var(--sp-font); overflow-wrap: anywhere; }
.sp-v2 .sp-calc-actions { display: flex; align-items: center; gap: 9px; margin: 5px 0 0; }
.sp-v2 .sp-calc-actions .btn { min-height: 35px; padding: 7px 17px; border-color: var(--sp-brand); background: var(--sp-brand); color: var(--sp-on-brand); font-size: 12px; font-weight: 700; }
.sp-v2 .sp-calc-actions .btn:hover { background: var(--sp-brand-hi); }
.sp-v2 .sp-calc-reset { display: inline-flex; align-items: center; min-height: 35px; padding: 6px 10px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); color: var(--sp-text-2); font-size: 12px; text-decoration: none; }
.sp-v2 .sp-calc-reset:hover { background: var(--sp-hover); }
.sp-v2 .sp-calc-note { margin: 9px 0 0; color: var(--sp-text-3); font-size: 11.5px; font-style: normal; line-height: 1.45; }
.sp-v2 .sp-calc-card-featured { display: flex; flex-wrap: wrap; gap: 0 22px; margin-bottom: 11px; padding: 20px; border-top: 2px solid var(--sp-brand-line); background: var(--sp-surface); }
.sp-v2 .sp-calc-card-featured .sp-calc-card-heading, .sp-v2 .sp-calc-card-featured .sp-calc-formula { flex: 0 0 100%; }
.sp-v2 .sp-calc-primary-inputs { flex: 1 1 55%; min-width: 0; }
.sp-v2 .sp-calc-card-featured form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 11px; }
.sp-v2 .sp-calc-card-featured .sp-calc-actions { width: 100%; }
.sp-v2 .sp-calc-card-featured .sp-calc-result, .sp-v2 .sp-calc-card-featured .sp-calc-result-empty { flex: 1 1 280px; min-width: 0; margin: 0; }
.sp-v2 .sp-calc-result { min-width: 0; margin-top: 13px; padding: 12px; border: 1px solid var(--sp-brand-line); border-radius: var(--sp-r-sm); background: var(--sp-brand-tint); }
.sp-v2 .sp-calc-result-table { width: 100%; table-layout: fixed; }
.sp-v2 .sp-calc-result-table td { padding: 8px 5px; border-bottom: 1px solid var(--sp-line-mid); overflow-wrap: anywhere; }
.sp-v2 .sp-calc-result-table td:first-child { width: 53%; }
.sp-v2 .sp-calc-result-label { color: var(--sp-text-2); font-size: 12px; }
.sp-v2 .sp-calc-result-value { color: var(--sp-text); font: 600 14px var(--sp-mono); text-align: right; font-variant-numeric: tabular-nums; }
.sp-v2 .sp-calc-result-table tr:first-child .sp-calc-result-value { color: var(--sp-brand); font-size: 18px; }
.sp-v2 .sp-calc-result-formula { margin: 10px 0 0; color: var(--sp-text-3); }
.sp-v2 .sp-calc-result-formula code { color: var(--sp-text-3); font: 11px/1.45 var(--sp-mono); overflow-wrap: anywhere; }
.sp-v2 .sp-calc-result-eyebrow { color: var(--sp-brand); font: 600 11px var(--sp-mono); text-transform: uppercase; }
.sp-v2 .sp-calc-result-empty p { margin: 14px 0 0; color: var(--sp-text-2); font-size: 12.5px; line-height: 1.55; }
.sp-v2 .sp-calc-error { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--sp-neg); border-radius: var(--sp-r-sm); background: var(--sp-raised); color: var(--sp-neg); font-size: 12px; }
.sp-v2 .sp-calc-picker { margin: 0 0 12px; padding: 10px; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); }
.sp-v2 .sp-calc-picker label { display: block; margin-bottom: 5px; }
.sp-v2 .sp-calc-picker-row { display: flex; flex-wrap: wrap; gap: 7px; }
.sp-v2 .sp-calc-picker input[type="text"] { flex: 1 1 170px; width: auto; background: var(--sp-surface); }
.sp-v2 .sp-calc-picker .btn-ghost, .sp-v2 .sp-calc-add-row, .sp-v2 .sp-calc-row-remove { border-color: var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-surface); color: var(--sp-text-2); font-size: 11.5px; }
.sp-v2 .sp-calc-picker .btn-ghost:hover, .sp-v2 .sp-calc-add-row:hover, .sp-v2 .sp-calc-row-remove:hover { color: var(--sp-text); border-color: var(--sp-brand-line); }
.sp-v2 .sp-calc-row { min-width: 0; }
.sp-v2 .sp-calc-row input[type="date"] { flex: 0 1 145px; }
.sp-v2 .sp-calc-row input[type="number"] { flex: 1 1 110px; }
.sp-v2 .sp-calc-row-remove { flex: 0 0 35px; min-height: 35px; }
.sp-v2 .sp-calc-cross-link { margin: 0 0 11px; padding: 8px 10px; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); color: var(--sp-text-2); font-size: 11.5px; line-height: 1.45; }
.sp-v2 .sp-calc-method-note { flex: 0 0 100%; padding: 13px 16px; border: 1px solid var(--sp-line); border-left: 2px solid var(--sp-brand-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); }
.sp-v2 .sp-calc-method-note strong { color: var(--sp-text); font-size: 12.5px; }
.sp-v2 .sp-calc-method-note p { margin: 4px 0 0; color: var(--sp-text-2); font-size: 12px; line-height: 1.5; }

.sp-v2 .sp-learn-search-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 13px; margin-bottom: 10px; padding: 11px 13px; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); }
.sp-v2 .sp-learn-search-panel label { width: 100%; color: var(--sp-text-2); font-size: 11.5px; font-weight: 600; }
.sp-v2 .sp-learn-search-panel input { flex: 1 1 250px; min-width: 0; height: 37px; padding: 7px 11px; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-surface); color: var(--sp-text); font-size: 12.5px; }
.sp-v2 .sp-learn-search-panel input::placeholder { color: var(--sp-text-3); }
.sp-v2 .sp-learn-search-panel p { margin: 0; color: var(--sp-text-3); font: 11.5px var(--sp-mono); }
.sp-v2 .sp-learn-category-nav { margin-bottom: 10px; }
.sp-v2 .sp-learning .sp-learn-index { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 13px; padding: 0; border: 0; background: transparent; }
.sp-v2 .sp-learning .sp-learn-index a { padding: 4px 8px; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-surface); color: var(--sp-text-2); font-size: 11.5px; line-height: 1.3; text-decoration: none; }
.sp-v2 .sp-learning .sp-learn-index a:hover { border-color: var(--sp-brand-line); color: var(--sp-text); }
.sp-v2 .sp-learning .sp-statement-note { margin: 0 0 10px; padding: 9px 11px; border: 1px solid var(--sp-line); border-left: 2px solid var(--sp-brand-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); color: var(--sp-text-2); font-size: 12px; line-height: 1.5; }
.sp-v2 .sp-learn-group { margin: 0 0 12px; padding: 12px; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); }
.sp-v2 .sp-learn-group-head { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--sp-line); }
.sp-v2 .sp-learn-group-head h2 { margin: 0; color: var(--sp-text); font-size: 16px; }
.sp-v2 .sp-learn-group-head > span { color: var(--sp-text-3); font: 11px var(--sp-mono); white-space: nowrap; }
.sp-v2 .sp-learn-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.sp-v2 .sp-learn-card { min-width: 0; margin: 0; padding: 15px; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-surface); }
.sp-v2 .sp-learn-card h3 { margin: 0 0 7px; color: var(--sp-text); font-size: 15px; line-height: 1.3; }
.sp-v2 .sp-learn-card p { margin: 0 0 10px; color: var(--sp-text-2); font-size: 12.5px; line-height: 1.55; }
.sp-v2 .sp-learn-card .sp-learn-short { color: var(--sp-text); font-weight: 600; }
.sp-v2 .sp-learn-card .sp-learn-formula { margin: 12px 0; padding: 9px 11px; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); }
.sp-v2 .sp-learn-formula span { display: block; margin-bottom: 4px; color: var(--sp-brand); font: 600 10.5px var(--sp-mono); text-transform: uppercase; }
.sp-v2 .sp-learn-formula p { margin: 0; color: var(--sp-text); font: 12px/1.55 var(--sp-mono); overflow-wrap: anywhere; }
.sp-v2 .sp-learn-card .sp-learn-inapp { padding-top: 9px; border-top: 1px solid var(--sp-line); }
.sp-v2 .sp-learn-inapp-tag { margin-right: 5px; color: var(--sp-brand); background: transparent; }
.sp-v2 .sp-learn-video-src { display: block; margin-top: 4px; color: var(--sp-text-3); font-size: 11.5px; line-height: 1.45; }
.sp-v2 .sp-learn-card .sp-learn-my-notes { margin: 10px 0 0; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); }
.sp-v2 .sp-learn-my-notes > summary { color: var(--sp-text-2); font-size: 12px; }
.sp-v2 .sp-learn-my-notes .sp-learn-body, .sp-v2 .sp-learn-my-notes .sp-note-text { color: var(--sp-text-2); }
.sp-v2 .sp-learn-my-notes textarea { width: 100%; border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-surface); color: var(--sp-text); }
.sp-v2 .sp-learn-my-notes-login { margin: 10px 0 0; font-size: 11.5px; }
.sp-v2 #learn-empty { padding: 20px; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); color: var(--sp-text-2); text-align: center; }
.sp-v2 .sp-calc-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 11px; margin: 0 0 14px; padding: 0; list-style: none; }
.sp-v2 .sp-calc-hub h2 a { display: inline-flex; align-items: center; min-height: 34px; color: var(--sp-text); text-decoration: none; }
.sp-v2 .sp-calc-hub h2 a:hover, .sp-v2 .sp-calc-hub h2 a:focus-visible { color: var(--sp-brand); text-decoration: underline; }
.sp-v2 .sp-calc-page { max-width: 960px; }
.sp-v2 .sp-calc-page .sp-calc-card, .sp-v2 .sp-calc-page .sp-tool-nav { margin-bottom: 11px; }
.sp-v2 .sp-calc-section h3 { margin: 13px 0 4px; color: var(--sp-text); font-size: 13.5px; line-height: 1.35; }
.sp-v2 .sp-calc-page .sp-tools-kicker a { color: inherit; }
@media (max-width: 900px) { .sp-v2 .sp-calc-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .sp-v2 .sp-calc-card-featured { display: block; } .sp-v2 .sp-calc-card-featured .sp-calc-result, .sp-v2 .sp-calc-card-featured .sp-calc-result-empty { margin-top: 12px; } .sp-v2 .sp-learn-group-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 450px) { .sp-v2 .sp-calc-card-featured form { grid-template-columns: minmax(0, 1fr); } .sp-v2 .sp-tool-nav { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: thin; } .sp-v2 .sp-tool-nav a { flex: 0 0 auto; } .sp-v2 .sp-calc-card, .sp-v2 .sp-learn-card { padding: 13px; } }

/* SP-UI-016 — final shell completion: company satellite, shared and account pages. */
.sp-v2 .sp-company-satellite,
.sp-v2 .sp-shared,
.sp-v2 .sp-auth { min-width: 0; max-width: 1540px; margin: 0 auto; }
.sp-v2 .sp-company-context { margin: 0 0 10px; padding: 15px 17px; border: 1px solid var(--sp-line); border-top: 2px solid var(--sp-brand-line); border-radius: var(--sp-r-sm); background: var(--sp-surface); }
.sp-v2 .sp-company-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 13px; color: var(--sp-text-3); font: 11px var(--sp-mono); }
.sp-v2 .sp-company-crumb a { color: var(--sp-text-2); text-decoration: none; }
.sp-v2 .sp-company-crumb a:hover { color: var(--sp-brand); }
.sp-v2 .sp-company-context-row { display: flex; align-items: center; gap: 13px; min-width: 0; }
.sp-v2 .sp-company-context-mark { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 42px; border: 1px solid var(--sp-brand-line); border-radius: var(--sp-r-sm); background: var(--sp-brand-tint); color: var(--sp-brand); font: 700 14px var(--sp-mono); }
.sp-v2 .sp-company-context-ticker { display: block; margin-bottom: 2px; color: var(--sp-brand); font: 600 11px var(--sp-mono); letter-spacing: .08em; }
.sp-v2 .sp-company-context h1 { margin: 0; color: var(--sp-text); font-size: clamp(24px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -.025em; }
.sp-v2 .sp-company-context p { margin: 4px 0 0; color: var(--sp-text-2); font-size: 12.5px; }
.sp-v2 .sp-company-route-nav { display: flex; gap: 2px; max-width: 100%; margin: 0 0 13px; padding: 3px; overflow-x: auto; border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); background: var(--sp-raised); scrollbar-width: thin; }
.sp-v2 .sp-company-route-nav a { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 34px; padding: 6px 11px; border-radius: var(--sp-r-sm); color: var(--sp-text-2); font-size: 11.5px; font-weight: 600; text-decoration: none; }
.sp-v2 .sp-company-route-nav a:hover { color: var(--sp-text); background: var(--sp-hover); }
.sp-v2 .sp-company-route-nav a[aria-current="page"] { color: var(--sp-on-brand); background: var(--sp-brand); }
.sp-v2 .sp-company-satellite .provenance,
.sp-v2 .sp-company-satellite .trace-headline,
.sp-v2 .sp-company-satellite .trend-card { border-color: var(--sp-line); box-shadow: none; }
.sp-v2 .sp-company-satellite .table-scroll { border: 1px solid var(--sp-line); border-radius: var(--sp-r-sm); }
.sp-v2 .sp-company-satellite table.ledger { margin: 0; }
.sp-v2 .sp-company-satellite table.ledger thead th { background: var(--sp-raised); color: var(--sp-text-2); }
.sp-v2 .sp-company-satellite table.ledger tbody tr:hover > * { background: var(--sp-brand-tint); }
.sp-v2 .sp-company-satellite .statement-note { color: var(--sp-text-2); font-size: 12px; line-height: 1.55; }

.sp-v2 .sp-shared .shared-banner { margin-bottom: 13px; border-color: var(--sp-brand-line); border-radius: var(--sp-r-sm); background: var(--sp-brand-tint); color: var(--sp-text-2); }
.sp-v2 .sp-shared .shared-tag { color: var(--sp-brand); }
.sp-v2 .sp-shared .page-head { margin-bottom: 13px; }
.sp-v2 .sp-shared .page-head h1 { color: var(--sp-text); font-size: clamp(27px, 2.4vw, 36px); }
.sp-v2 .sp-shared .portfolio-summary { border-color: var(--sp-line); background: var(--sp-raised); }
.sp-v2 .sp-shared .summary-tile { border-color: var(--sp-line); }

.sp-v2 .sp-auth { max-width: 650px; padding-top: clamp(8px, 3vh, 36px); }
.sp-v2 .sp-auth .page-head { margin: 0 0 12px; }
.sp-v2 .sp-auth .page-head h1 { margin: 0 0 5px; color: var(--sp-text); font-size: clamp(28px, 3.2vw, 39px); letter-spacing: -.025em; }
.sp-v2 .sp-auth .page-head .sub { color: var(--sp-text-2); }
.sp-v2 .sp-auth-kicker { display: block; margin-bottom: 5px; color: var(--sp-brand); font: 600 11px var(--sp-mono); letter-spacing: .08em; text-transform: uppercase; }
.sp-v2 .sp-auth .auth-card { max-width: none; margin: 0; padding: clamp(17px, 3vw, 24px); border: 1px solid var(--sp-line); border-top: 2px solid var(--sp-brand-line); border-radius: var(--sp-r-sm); background: var(--sp-surface); box-shadow: none; }
.sp-v2 .sp-auth .auth-card label { color: var(--sp-text-2); }
.sp-v2 .sp-auth .auth-card input { min-height: 39px; border-color: var(--sp-line-mid); border-radius: var(--sp-r-sm); background: var(--sp-raised); color: var(--sp-text); }
.sp-v2 .sp-auth .auth-card input:focus { outline: 2px solid var(--sp-brand); outline-offset: 1px; }
.sp-v2 .sp-auth .auth-card .btn { min-height: 39px; border-color: var(--sp-brand); background: var(--sp-brand); color: var(--sp-on-brand); }
.sp-v2 .sp-auth .errorlist { color: var(--sp-neg); font-size: 12px; }
@media (max-width: 600px) {
  .sp-v2 .sp-company-context { padding: 13px; }
  .sp-v2 .sp-company-context-row { align-items: flex-start; }
  .sp-v2 .sp-company-context-mark { flex-basis: 42px; width: 42px; height: 38px; }
  .sp-v2 .sp-auth { padding-top: 0; }
}

@media (max-width: 767px) {
  .sp-v2 .sp-fund-crawl-head { align-items: start; flex-direction: column; }
  .sp-v2 .sp-fund-historical { grid-template-columns: minmax(0, 1fr); }
  .sp-v2 .sp-fund-historical ul { grid-template-columns: minmax(0, 1fr); }
}
.sp-v2 .sp-nav-research{border:1px solid color-mix(in srgb,var(--sp-link) 42%,transparent);background:color-mix(in srgb,var(--sp-link) 8%,transparent)}
.sp-v2 .sp-nav-research .sp-nav-text small{display:block;margin-top:2px;font:600 8px/1.2 var(--sp-mono);letter-spacing:.13em;color:var(--sp-link)}


/* Preset discovery responsive layout. Kept page-scoped so other V2 grids are untouched. */
@media (max-width: 1280px) {
  .sp-v2 .sp-screener .sp-sc-preset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .sp-v2 .sp-screener .sp-sc-presets-head {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--sp-3);
  }

  .sp-v2 .sp-screener .sp-sc-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .sp-v2 .sp-screener .sp-sc-presets {
    margin-top: var(--sp-5);
  }

  .sp-v2 .sp-screener .sp-sc-presets-head h2 {
    font-size: 21px;
  }

  .sp-v2 .sp-screener .sp-sc-preset-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sp-v2 .sp-screener .sp-sc-preset-card {
    min-height: 0;
  }
}
/* Keep cached analytics controls at the end of the page without overriding hidden state. */
.sp-v2 #md-analytics-preferences {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 2rem auto 1rem;
  text-align: center;
}

/* Page-size law: peer comparison pagination (20 peers per page). */
.sp-v2 .sp-peer-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  color: var(--sp-text-3);
  font-size: var(--sp-t-micro);
}
.sp-v2 .sp-peer-pages p { flex: 1 1 100%; margin: 0; }

/* Page-size law: watchlist pagination (20 companies per page). */
.sp-v2 .sp-watch-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  color: var(--sp-text-3);
  font-size: var(--sp-t-micro);
}

/* ==========================================================================
   W3 (mobile web) -- company page on phones. Everything below is inside a
   max-width: 768px query, so the desktop layout is untouched.

   html.sp-co-fold is set by a one-line script in the page head on phone
   widths. Under it every research section except Price starts collapsed
   (CSS only, so there is no layout jump when company-mobile.js arrives and
   adds the Show/Hide buttons and the data-fold state). The section body is
   hidden with display:none, never removed: the text stays in the HTML. If
   company-mobile.js never loads, the head script drops the class again and
   the full page returns.
   ========================================================================== */
.sp-v2 .sp-co .sp-co-fold-btn { display:none; }
@media (max-width: 768px) {
  html.sp-co-fold .sp-v2 .sp-co .sp-co-ws:not(.sp-co-notes) > .sp-co-ws-head {
    position: relative;
    min-height: 62px;
    padding-right: 92px;
    cursor: pointer;
  }
  html.sp-co-fold .sp-v2 .sp-co .sp-co-ws:not(.sp-co-notes) > .sp-co-ws-head > .sp-co-fold-btn {
    position: absolute;
    top: 50%;
    right: 0;
    translate: 0 -50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 80px;
    min-height: 44px;
    padding: 0 12px;
    color: var(--sp-text-2);
    font: 500 13px/1 var(--sp-font);
    background: transparent;
    border: 1px solid var(--sp-line-strong);
    border-radius: var(--sp-r);
    cursor: pointer;
  }
  html.sp-co-fold .sp-v2 .sp-co .sp-co-fold-btn:focus-visible {
    outline: 2px solid var(--sp-brand);
    outline-offset: 2px;
  }
  html.sp-co-fold .sp-v2 .sp-co .sp-co-fold-chev {
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    rotate: 45deg;
    transition: rotate var(--sp-fast, 120ms);
  }
  html.sp-co-fold .sp-v2 .sp-co .sp-co-fold-btn[aria-expanded="true"] .sp-co-fold-chev {
    margin-top: 3px;
    rotate: -135deg;
  }
  /* Collapsed: heading row only. Not yet touched by the script (no data-fold) counts as collapsed,
     except Price, which is the open section. */
  html.sp-co-fold .sp-v2 .sp-co :is(.sp-co-ws:not(.price-history-section):not([data-fold]), .sp-co-ws[data-fold="closed"]):not(.sp-co-notes) {
    margin-bottom: var(--sp-3);
  }
  html.sp-co-fold .sp-v2 .sp-co :is(.sp-co-ws:not(.price-history-section):not([data-fold]), .sp-co-ws[data-fold="closed"]):not(.sp-co-notes) > .sp-co-ws-head {
    margin-bottom: 0;
  }
  html.sp-co-fold .sp-v2 .sp-co :is(.sp-co-ws:not(.price-history-section):not([data-fold]), .sp-co-ws[data-fold="closed"]):not(.sp-co-notes) > :not(.sp-co-ws-head) {
    display:none !important;
  }

  /* Right-edge fade while a wide table has more to scroll to (set by company-mobile.js). */
  .sp-v2 [data-scroll-more="right"] {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 30px), rgba(0, 0, 0, 0.18));
    mask-image: linear-gradient(to right, #000 calc(100% - 30px), rgba(0, 0, 0, 0.18));
  }
}

/* ==========================================================================
   COMPACT PAGER (PR 3, mobile fixes) -- shared by the preset results pager
   and the companies directory. The visible strip is first / window / last
   with ellipses; every page link stays in the collapsed "All pages" list.
   No ordering properties: source order is the reading order.
   ========================================================================== */
.sp-v2 .sp-pager { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.sp-v2 .sp-pager--narrow { display:none; }
.sp-v2 .sp-pager a { justify-content: center; min-width: 34px; padding-inline: 8px; }
.sp-v2 .sp-pager a[aria-current="page"],
.sp-v2 .sp-pager-all .sp-pager-all-list a[aria-current="page"] {
  border-color: var(--sp-brand);
  background: color-mix(in srgb, var(--sp-brand) 16%, var(--sp-surface));
  color: var(--sp-text);
  font-weight: 700;
}
.sp-v2 .sp-pager-gap { padding-inline: 4px; color: var(--sp-text-3); }

.sp-v2 .sp-pager-all { flex: 1 1 100%; width: 100%; }
.sp-v2 .sp-pager-all > summary {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--sp-3);
  color: var(--sp-text-2); font-size: 11px; cursor: pointer;
}
.sp-v2 .sp-pager-all > summary:focus-visible { outline: 2px solid var(--sp-brand); outline-offset: 2px; }
.sp-v2 .sp-pager-all-list { display: flex; flex-wrap: wrap; gap: 4px; padding-top: var(--sp-2); }
.sp-v2 .sp-pager-all .sp-pager-all-list a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 36px; padding: 0 8px;
  border: 1px solid var(--sp-line-mid); border-radius: var(--sp-r-sm);
  background: var(--sp-surface); color: var(--sp-text-2);
  font-size: 11px; text-decoration: none;
}

@media (max-width: 600px) {
  .sp-v2 .sp-pager--wide { display:none; }
  .sp-v2 .sp-pager--narrow { display: inline-flex; }
  .sp-v2 .sp-sc-pagination > div,
  .sp-v2 .sp-companies-page-controls { flex-wrap: wrap; justify-content: space-between; }
  .sp-v2 .sp-sc-pagination .sp-sc-page-current,
  .sp-v2 .sp-companies-page-controls .sp-companies-page-current { flex: 1 1 100%; }
  .sp-v2 .sp-screener .sp-sc-pagination .sp-pager,
  .sp-v2 .sp-companies .sp-companies-pagination .sp-pager { flex: 1 1 100%; justify-content: center; }
  .sp-v2 .sp-screener .sp-sc-pagination .sp-pager a,
  .sp-v2 .sp-companies .sp-companies-pagination .sp-pager a { min-width: 44px; min-height: 44px; }
  .sp-v2 .sp-screener .sp-sc-pagination > div > a[rel],
  .sp-v2 .sp-screener .sp-sc-pagination > div > .sp-sc-page-disabled,
  .sp-v2 .sp-companies .sp-companies-page-controls > a[rel],
  .sp-v2 .sp-companies .sp-companies-page-controls > .sp-companies-page-disabled { min-height: 44px; min-width: 88px; justify-content: center; }
  .sp-v2 .sp-pager-all > summary { min-height: 44px; }
  .sp-v2 .sp-pager-all .sp-pager-all-list a { min-width: 44px; min-height: 44px; }
}

/* --- shared horizontal-scroll cue for wide-table wrappers ------------------
   A soft edge fade that shows on the side that still has hidden columns, and
   vanishes at each end or when the table fits. Pure CSS: a scroll-driven
   animation moves two registered variables (0 -> 1) as the wrapper scrolls on
   its inline axis. With no overflow the timeline is inactive, so nothing is
   drawn and no layout, width, spacing or number changes.
   Not applied to: the ETF research table (.sp-etf-scroll) or the Beneish
   M-Score wrapper, which has its own treatment. */
@property --sp-cue-l { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --sp-cue-r { syntax: "<number>"; inherits: false; initial-value: 0; }
@keyframes sp-cue-scroll {
  0%   { --sp-cue-l: 0; --sp-cue-r: 1; }
  4%   { --sp-cue-l: 1; --sp-cue-r: 1; }
  96%  { --sp-cue-l: 1; --sp-cue-r: 1; }
  100% { --sp-cue-l: 1; --sp-cue-r: 0; }
}
@supports (animation-timeline: scroll()) {
  .sp-v2 .sp-co-table-scroll,
  .sp-v2 .sp-sc-table-scroll,
  .sp-v2 .sp-sc-criteria-scroll,
  .sp-v2 .sp-fund-scroll:not(.sp-etf-scroll),
  .sp-v2 .sp-mi-table-scroll {
    --sp-cue-size: 28px;
    animation: sp-cue-scroll linear both;
    animation-timeline: scroll(self inline);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 calc(var(--sp-cue-l) * var(--sp-cue-size)), #000 calc(100% - var(--sp-cue-r) * var(--sp-cue-size)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 calc(var(--sp-cue-l) * var(--sp-cue-size)), #000 calc(100% - var(--sp-cue-r) * var(--sp-cue-size)), transparent 100%);
  }
  /* Keep the keyboard focus ring inside the masked box. */
  .sp-v2 .sp-co-table-scroll:focus-visible,
  .sp-v2 .sp-sc-table-scroll:focus-visible,
  .sp-v2 .sp-sc-criteria-scroll:focus-visible,
  .sp-v2 .sp-fund-scroll:not(.sp-etf-scroll):focus-visible,
  .sp-v2 .sp-mi-table-scroll:focus-visible { outline-offset: -2px; }
  /* Beneish M-Score wrapper: unchanged. */
  .sp-v2 .sp-co-forensics .sp-co-table-scroll {
    animation: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
/* Browsers without scroll-driven animations (older Safari, Firefox): the
   classic local/scroll background cue. Cells that paint their own background
   hide part of it, so it is a lighter cue there. */
@supports not (animation-timeline: scroll()) {
  .sp-v2 .sp-co-table-scroll:not(.sp-co-forensics *),
  .sp-v2 .sp-sc-table-scroll,
  .sp-v2 .sp-sc-criteria-scroll,
  .sp-v2 .sp-fund-scroll:not(.sp-etf-scroll),
  .sp-v2 .sp-mi-table-scroll {
    background-image:
      linear-gradient(to right, var(--sp-surface) 30%, transparent),
      linear-gradient(to left, var(--sp-surface) 30%, transparent),
      linear-gradient(to right, color-mix(in srgb, var(--sp-brand) 40%, transparent), transparent),
      linear-gradient(to left, color-mix(in srgb, var(--sp-brand) 40%, transparent), transparent);
    background-position: 0 0, 100% 0, 0 0, 100% 0;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-repeat: no-repeat;
    background-attachment: local, local, scroll, scroll;
  }
}
