@font-face { font-family: "AC Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/_ac/v1/f/plex-sans-italic-400-700-latin-ext.bf44b77cc7.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "AC Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/_ac/v1/f/plex-sans-italic-400-700-latin.4363757d26.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "AC Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/_ac/v1/f/plex-sans-normal-400-700-latin-ext.d160e20920.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "AC Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/_ac/v1/f/plex-sans-normal-400-700-latin.e2291e842c.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "AC Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/_ac/v1/f/plex-mono-normal-400-latin-ext.7ba7a2b0f6.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "AC Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/_ac/v1/f/plex-mono-normal-400-latin.7ced534207.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "AC Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/_ac/v1/f/plex-mono-normal-500-latin-ext.18f641271b.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "AC Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/_ac/v1/f/plex-mono-normal-500-latin.6e61834433.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "AC Serif"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/_ac/v1/f/source-serif-4-normal-400-700-latin-ext.155f6e7010.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "AC Serif"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/_ac/v1/f/source-serif-4-normal-400-700-latin.f2ea9c12d2.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* AssetCensus design tokens, v0.2
   Binding: UX-005 indigo #4f46e5 on white/slate; UX-014 evidence grammar;
   UX-020 cool slate interface, warm paper ivory for documents, reports and the
   evidence pane; amber and red reserved for stale and conflicting states only.
   Typefaces: Pairing A "Ledger" (IBM Plex Sans + Source Serif 4 + IBM Plex Mono),
   self-hosted from fonts.css. Pairing B lives in fonts.provisional.css.

   Structure (UX-023, dark theme later): three layers.
     1. Primitives  (--slate-*, --indigo-*, --ivory-* ...). Never used by components.
     2. Semantic    (--bg-*, --fg-*, --border-*, --ev-*, --rail-* ...). Components use only these.
     3. Component   (local --_x variables inside components.css).
   A future [data-theme="dark"] block only re-maps layer 2.
   All sizes in rem assume a 16px root. */

:root {
  /* ---------- Typeface aliases (provisional) ---------- */
  --font-sans: "AC Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "AC Serif", ui-serif, "Iowan Old Style", "Palatino Linotype", serif;
  --font-mono: "AC Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* Epistemic registers map to families. Documented = sans, Calculated = mono, Interpretation = serif. */
  --font-documented: var(--font-sans);
  --font-calculated: var(--font-mono);
  --font-interpretation: var(--font-sans); /* v0.2: statement type is encoded by the underline, not the family */
  --font-display: var(--font-serif);       /* headlines, entity names, exported reports */
  --font-report: var(--font-serif);

  /* ---------- Type scale mechanics ----------
     Base 14px for dense research UI, ratio ~1.2 (minor third), rounded to whole px.
     12px is the floor. Display sizes (>= 24px) are for entity names only. */
  --text-2xs: 0.75rem;    /* 12  floor: chips, captions, table meta */
  --text-xs: 0.8125rem;   /* 13  dense table cells, secondary */
  --text-sm: 0.875rem;    /* 14  base UI and body */
  --text-md: 1rem;        /* 16  long-form reading, interpretation body */
  --text-lg: 1.125rem;    /* 18  section titles */
  --text-xl: 1.375rem;    /* 22  pane titles */
  --text-2xl: 1.75rem;    /* 28  entity name, mobile */
  --text-3xl: 2.125rem;   /* 34  entity name, desktop */

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.015em;
  --tracking-normal: 0;
  --tracking-caps: 0.06em; /* for small uppercase labels only */

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Numerals. Apply --num-data to any element that holds numbers that align.
     Plex Sans digits are tabular-width by default; Source Serif 4 needs tnum.
     No slashed zero: the self-hosted Plex build has no zero feature, and IDs use Plex Mono,
     whose zero is already distinct from O. */
  --num-data: tabular-nums lining-nums;
  --num-prose: proportional-nums lining-nums;

  /* ---------- Colour: neutrals (slate) ---------- */
  --slate-0: #ffffff;
  --slate-25: #fbfcfd;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-150: #e9eef4;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;  /* non-text only (3:1 on white for UI parts is NOT met; decorative) */
  --slate-500: #64748b;  /* icons, borders, non-text only (4.46:1 on tinted surfaces) */
  --slate-550: #5a6779;  /* smallest allowed text colour: 5.75:1 on white, >= 5.1:1 on every tinted surface */
  --slate-600: #475569;  /* 7.6:1 */
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* ---------- Colour: accent (indigo, binding UX-005) ---------- */
  --indigo-25: #f7f7fe;
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;  /* accent, 6.3:1 on white */
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --indigo-900: #312e81;

  /* ---------- Colour: state hues (used with glyph + label, never alone) ---------- */
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-600: #d97706;
  --amber-800: #92400e;   /* 7.1:1 on amber-50 */

  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-300: #fda4af;
  --rose-600: #e11d48;
  --rose-700: #be123c;    /* 6.0:1 on rose-50 */


  --red-50: #fef2f2;
  --red-200: #fecaca;
  --red-600: #dc2626;     /* rail: 4.8:1 on white */
  --red-700: #b91c1c;     /* text: 5.9:1 on red-50 */

  /* ---------- Colour: paper ivory (UX-020, documents, reports, evidence pane) ---------- */
  --ivory-0: #fdfcf9;
  --ivory-50: #faf8f2;
  --ivory-100: #f5f1e6;
  --ivory-200: #ebe4d3;
  --ivory-300: #d9cfb8;
  --ivory-600: #6a6253;   /* 5.4:1 on ivory-100, meta text on paper */
  --ivory-900: #29251d;   /* 13.6:1 on ivory-100, body text on paper */


  /* ---------- Semantic roles ---------- */
  --bg-canvas: var(--slate-50);
  --bg-surface: var(--slate-0);
  --bg-subtle: var(--slate-50);
  --bg-muted: var(--slate-100);
  --bg-inset: var(--slate-150);
  --bg-accent: var(--indigo-600);
  --bg-accent-subtle: var(--indigo-50);
  --bg-selected: var(--indigo-50);

  --fg-default: var(--slate-900);
  --fg-strong: var(--slate-900);
  --fg-muted: var(--slate-600);
  --fg-subtle: var(--slate-550);
  --fg-on-accent: #ffffff;
  --fg-accent: var(--indigo-600);
  --fg-accent-strong: var(--indigo-700);

  --border-hairline: var(--slate-200);
  --border-default: var(--slate-300);
  --border-strong: var(--slate-500); /* 3:1+ for input borders (WCAG 1.4.11) */
  --border-accent: var(--indigo-600);

  /* Source chip (UX-004) */
  --chip-bg: var(--slate-100);
  --chip-bg-hover: var(--slate-200);
  --chip-fg: var(--slate-600);
  --chip-border: var(--slate-200);
  --chip-bg-active: var(--indigo-50);
  --chip-fg-active: var(--indigo-700);
  --chip-border-active: var(--indigo-300);

  /* Epistemic registers (UX-006) */
  --doc-fg: var(--slate-900);
  --calc-bg: var(--slate-50);
  --calc-border: var(--slate-300);
  --calc-fg: var(--slate-800);
  --interp-bg: var(--indigo-25);
  --interp-border: var(--indigo-300);
  --interp-label: var(--indigo-700);

  /* Data states (typed absence). Each also has a glyph and label in components.css */
  --state-missing-fg: var(--slate-600);
  --state-missing-bg: var(--slate-100);
  --state-na-fg: var(--slate-600);
  --state-na-bg: var(--slate-0);
  --state-notcollected-fg: var(--slate-600);
  --state-notcollected-bg: var(--slate-0);
  --state-restricted-fg: var(--slate-700);
  --state-restricted-bg: var(--slate-50);
  --state-restricted-border: var(--slate-400);   /* dashed; the lock glyph and the word carry the meaning */
  --state-stale-fg: var(--amber-800);
  --state-stale-bg: var(--amber-50);
  --state-stale-border: var(--amber-300);
  --state-conflict-fg: var(--red-700);
  --state-conflict-bg: var(--red-50);
  --state-conflict-border: var(--red-200);
  --state-verified-fg: var(--slate-900);
  --state-verified-bg: var(--slate-0);
  --state-verified-border: var(--slate-400);   /* UX-020: no extra hues; the check glyph and the word carry the meaning */

  /* Review status */
  --review-unreviewed-fg: var(--slate-600);
  --review-inreview-fg: var(--indigo-700);   /* amber is reserved for stale */
  --review-reviewed-fg: var(--slate-900);
  --review-contested-fg: var(--red-700);

  /* Paper (UX-020): documents, reports, the evidence pane */
  --paper-bg: var(--ivory-50);
  --paper-bg-raised: var(--ivory-0);
  --paper-bg-inset: var(--ivory-100);
  --paper-border: var(--ivory-200);
  --paper-border-strong: var(--ivory-300);
  --paper-fg: var(--ivory-900);
  --paper-fg-muted: var(--ivory-600);
  --paper-mark: #f6e7a8;   /* excerpt highlight on paper */
  --paper-mark-edge: #c9a227;

  /* Evidence grammar (UX-014). Each type differs in pattern AND thickness, never colour alone.
     fact = solid slate 1px; calculation = dotted slate 2px dots; interpretation = dashed indigo 1.5px + label. */
  --ev-fact-line: var(--slate-500);
  --ev-fact-weight: 1px;
  --ev-calc-line: var(--slate-600);
  --ev-calc-dot: 2px;
  --ev-calc-pitch: 4px;
  --ev-interp-line: var(--indigo-600);
  --ev-interp-weight: 2px;
  --ev-interp-dash: 6px;
  --ev-interp-pitch: 9px;
  --ev-derived-line: var(--slate-500);  /* derived from a held record: two 1px hairlines, 2px apart */
  --ev-derived-gap: 2px;
  --ev-offset: 3px;          /* gap between baseline area and line */
  --ev-hover-bg: var(--indigo-25);
  --ev-active-bg: var(--indigo-50);
  --ev-active-line: var(--indigo-700);

  /* Row rails (UX-014): always paired with a text badge */
  --rail-w: 3px;
  --rail-stale: var(--amber-600);     /* 3.2:1 on white, non-text */
  --rail-conflict: var(--red-600);
  --rail-none: transparent;

  /* Focus */
  --focus-ring-color: var(--indigo-600);
  --focus-ring: 0 0 0 2px var(--slate-0), 0 0 0 4px var(--focus-ring-color);

  /* ---------- Spacing (4px base) ---------- */
  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 0.125rem; /* 2 */
  --space-1: 0.25rem;    /* 4 */
  --space-1-5: 0.375rem; /* 6 */
  --space-2: 0.5rem;     /* 8 */
  --space-3: 0.75rem;    /* 12 */
  --space-4: 1rem;       /* 16 */
  --space-5: 1.25rem;    /* 20 */
  --space-6: 1.5rem;     /* 24 */
  --space-8: 2rem;       /* 32 */
  --space-10: 2.5rem;    /* 40 */
  --space-12: 3rem;      /* 48 */
  --space-16: 4rem;      /* 64 */
  --space-20: 5rem;      /* 80 */

  /* Density: row heights for tables and lists */
  --row-compact: 2rem;    /* 32 */
  --row-default: 2.5rem;  /* 40 */
  --row-comfortable: 3rem;/* 48 */

  /* Control sizes. Minimum target 24px (WCAG 2.5.8); touch controls 44px. */
  --control-xs: 1.5rem;   /* 24, source chip */
  --control-sm: 2rem;     /* 32 */
  --control-md: 2.25rem;  /* 36 */
  --control-lg: 2.75rem;  /* 44 */

  /* ---------- Grid & layout ----------
     Breakpoints (use in media queries; custom properties cannot be used there):
       sm 480px, md 768px, lg 1024px, xl 1280px, 2xl 1440px  */
  --grid-columns: 12;
  --grid-gutter: var(--space-6);
  --grid-margin: var(--space-8);
  --container-max: 80rem;      /* 1280 */
  --container-wide: 90rem;     /* 1440 */
  --measure-prose: 68ch;
  --pane-evidence: 30rem;      /* 480 side pane */
  --rail-nav: 15rem;           /* 240 left rail */
  --header-h: 3.5rem;          /* 56 */

  /* ---------- Radii ---------- */
  --radius-0: 0;
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 999px;

  /* ---------- Elevation ----------
     Light UI: elevation is mostly border; shadows are soft and cool. */
  --elev-0: none;
  --elev-1: 0 1px 0 rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.04);
  --elev-2: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --elev-3: 0 2px 4px rgba(15, 23, 42, 0.05), 0 12px 32px -6px rgba(15, 23, 42, 0.12);
  --elev-pane: -1px 0 0 var(--slate-200), -16px 0 40px -12px rgba(15, 23, 42, 0.14);

  /* ---------- Motion ---------- */
  --dur-instant: 80ms;
  --dur-fast: 140ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0, 0, 0, 1);
  --ease-exit: cubic-bezier(0.3, 0, 1, 1);
  /* Signature motion (UX-022): the evidence line draws in once (logo, chain highlights). */
  --dur-draw: 900ms;
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);

  /* ---------- Layers ---------- */
  --z-base: 0;
  --z-sticky: 10;
  --z-header: 20;
  --z-pane: 40;
  --z-scrim: 39;
  --z-toast: 60;
}

@media (max-width: 767px) {
  :root {
    --grid-gutter: var(--space-4);
    --grid-margin: var(--space-4);
    --header-h: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-instant: 0ms;
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
    --dur-draw: 0ms;
  }
}

/* Dark theme (UX-023): not shipped. Only semantic tokens will be re-mapped here.
[data-theme="dark"] { --bg-canvas: ...; --fg-default: ...; --paper-bg: ...; }
*/

/* AssetCensus component library, v0.2 (UX-014 evidence grammar, UX-020 paper ivory)
   Depends on tokens.css. Prefix: ac-. No hover-only content anywhere:
   every disclosure is a button that works with pointer, touch, keyboard and screen readers. */

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--fg-default);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--fg-accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--fg-accent-strong); }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
::selection { background: var(--indigo-100); }

.ac-num, .ac-facts td, .ac-fin td, .ac-rel td, .ac-id { font-variant-numeric: var(--num-data); }
.ac-mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: -0.01em; }
.ac-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ac-skip { position: absolute; left: var(--space-4); top: -100px; z-index: var(--z-toast); background: var(--slate-900); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); }
.ac-skip:focus { top: var(--space-2); }
.ac-eyebrow { font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-subtle); }
.ac-date { white-space: nowrap; font-variant-numeric: var(--num-data); }
.ac-muted { color: var(--fg-muted); }
.ac-subtle { color: var(--fg-subtle); }
.ac-divider { height: 1px; background: var(--border-hairline); border: 0; margin: var(--space-6) 0; }

/* ========== Layout ========== */
.ac-container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--grid-margin); }
.ac-container--wide { max-width: var(--container-wide); }
.ac-grid { display: grid; grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr)); gap: var(--grid-gutter); }
.ac-stack > * + * { margin-top: var(--space-4); }
.ac-stack--lg > * + * { margin-top: var(--space-8); }
.ac-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.ac-spread { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
body.ac-pane-open .ac-shell-main { margin-right: var(--pane-evidence); transition: margin var(--dur-base) var(--ease-standard); }
@media (min-width: 1024px) { body.ac-pane-open .ac-header { padding-right: var(--pane-evidence); transition: padding var(--dur-base) var(--ease-standard); } }
@media (max-width: 1023px) { body.ac-pane-open .ac-shell-main { margin-right: 0; } }

/* ========== Header & navigation ========== */
.ac-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border-hairline);
}
.ac-header__inner { height: 100%; display: flex; align-items: center; gap: var(--space-6); }
.ac-wordmark-ph { /* placeholder until brand brief; no logo yet */
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: var(--weight-semibold); font-size: var(--text-md); letter-spacing: var(--tracking-tight);
  color: var(--fg-strong); text-decoration: none; white-space: nowrap;
}
.ac-wordmark-ph::before { content: ""; width: 18px; height: 18px; border-radius: var(--radius-sm); border: 1.5px dashed var(--slate-400); }
.ac-nav { display: flex; gap: var(--space-1); }
.ac-nav a {
  display: inline-flex; align-items: center; height: var(--control-sm); padding: 0 var(--space-3);
  border-radius: var(--radius-md); color: var(--fg-muted); text-decoration: none; font-weight: var(--weight-medium);
}
.ac-nav a:hover { background: var(--bg-muted); color: var(--fg-strong); }
.ac-nav a[aria-current="page"] { color: var(--fg-strong); background: var(--bg-muted); }
.ac-header__end { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.ac-lang { display: inline-flex; border: 1px solid var(--border-hairline); border-radius: var(--radius-md); overflow: hidden; }
.ac-lang a { padding: 0 var(--space-2); height: 28px; display: inline-flex; align-items: center; min-width: 32px; justify-content: center; font-size: var(--text-2xs); font-weight: var(--weight-semibold); color: var(--fg-muted); text-decoration: none; letter-spacing: var(--tracking-caps); }
.ac-lang a + a { border-left: 1px solid var(--border-hairline); }
.ac-lang a[aria-current="true"] { background: var(--slate-900); color: #fff; }
.ac-btn.ac-menu-btn { display: none; }
@media (max-width: 1023px) {
  .ac-nav { display: none; }
  .ac-btn.ac-menu-btn { display: inline-flex; }
}
/* 1024-1365px: the full nav, search, evidence toggle and language switch must fit without horizontal scroll. */
@media (min-width: 1024px) and (max-width: 1365px) {
  .ac-header__inner { gap: var(--space-4); }
  .ac-nav a { padding: 0 var(--space-2); }
}
@media (max-width: 767px) {
  .ac-header .ac-lang { display: none; } /* language switch moves into the menu on phones */
  .ac-header__inner { gap: var(--space-3); }
}

/* Breadcrumb */
.ac-crumbs { display: flex; flex-wrap: wrap; gap: var(--space-1); font-size: var(--text-xs); color: var(--fg-subtle); }
.ac-crumbs li + li::before { content: "/"; margin-right: var(--space-1); color: var(--slate-300); }
.ac-crumbs { align-items: center; }
.ac-crumbs a { display: inline-flex; align-items: center; min-height: 24px; color: var(--fg-muted); text-decoration: none; }
.ac-crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 24px; }
.ac-crumbs a:hover { text-decoration: underline; }

/* ========== Buttons ========== */
.ac-btn {
  --_h: var(--control-md);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--_h); min-width: var(--_h); padding: 0 var(--space-4);
  border-radius: var(--radius-md); border: 1px solid transparent;
  font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: 1; white-space: nowrap;
  cursor: pointer; text-decoration: none; user-select: none;
  transition: background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.ac-btn svg { width: 16px; height: 16px; flex: none; }
.ac-btn--sm { --_h: var(--control-sm); padding: 0 var(--space-3); font-size: var(--text-xs); }
.ac-btn--lg { --_h: var(--control-lg); padding: 0 var(--space-5); }
.ac-btn--primary { background: var(--bg-accent); color: var(--fg-on-accent); }
.ac-btn--primary:hover { background: var(--indigo-700); color: #fff; }
.ac-btn--primary:active { background: var(--indigo-800); }
.ac-btn--secondary { background: var(--bg-surface); color: var(--fg-strong); border-color: var(--border-default); box-shadow: var(--elev-1); }
.ac-btn--secondary:hover { background: var(--slate-50); border-color: var(--slate-400); color: var(--fg-strong); }
.ac-btn--secondary:active { background: var(--slate-100); }
.ac-btn--ghost { background: transparent; color: var(--fg-muted); }
.ac-btn--ghost:hover { background: var(--bg-muted); color: var(--fg-strong); }
.ac-btn--danger { background: var(--bg-surface); color: var(--slate-900); border-color: var(--slate-500); } /* red is reserved for conflicts (UX-020) */
.ac-btn--danger:hover { background: var(--slate-100); }
.ac-btn:disabled, .ac-btn[aria-disabled="true"] { opacity: 1; cursor: not-allowed; background: var(--slate-100); color: var(--slate-500); border-color: var(--slate-200); box-shadow: none; }
.ac-btn[aria-busy="true"] { position: relative; color: transparent !important; pointer-events: none; }
.ac-btn[aria-busy="true"]::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-color: rgba(255,255,255,.9) rgba(255,255,255,.9) rgba(255,255,255,.3) rgba(255,255,255,.3); animation: ac-spin 700ms linear infinite; }
.ac-btn--secondary[aria-busy="true"]::after { border-color: var(--slate-600) var(--slate-600) var(--slate-300) var(--slate-300); }
.ac-btn:focus-visible { box-shadow: var(--focus-ring); } /* after the variants: secondary's elevation shadow must not hide the ring */
.ac-iconbtn { --_h: var(--control-md); width: var(--_h); padding: 0; }
.ac-iconbtn.ac-btn--sm { width: var(--control-sm); }
@keyframes ac-spin { to { transform: rotate(360deg); } }

/* ========== Search ========== */
.ac-search { position: relative; display: flex; align-items: stretch; width: 100%; max-width: 40rem;
  background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--elev-1); transition: box-shadow var(--dur-fast), border-color var(--dur-fast); }
.ac-search:focus-within { border-color: var(--border-accent); box-shadow: 0 0 0 3px var(--indigo-100); }
.ac-search__scope { border: 0; background: transparent; padding: 0 var(--space-8) 0 var(--space-3); font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--fg-muted); border-right: 1px solid var(--border-hairline); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23475569' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.ac-search__scope:focus-visible { box-shadow: inset 0 0 0 2px var(--focus-ring-color); }
.ac-search__icon { width: 16px; height: 16px; color: var(--fg-subtle); margin: auto 0 auto var(--space-3); flex: none; }
.ac-search__input { flex: 1; min-width: 0; height: var(--control-lg); border: 0; background: transparent; padding: 0 var(--space-3); font-size: var(--text-sm); }
.ac-search__input::placeholder { color: var(--fg-subtle); }
.ac-search__input:focus { outline: none; }
.ac-search--compact .ac-search__input { height: var(--control-md); }
.ac-search--compact { border-color: var(--border-default); box-shadow: none; }
.ac-kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; margin: auto var(--space-2) auto 0; border: 1px solid var(--border-default); border-bottom-width: 2px; border-radius: var(--radius-xs); font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); background: var(--slate-50); white-space: nowrap; }
.ac-search__results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: var(--z-pane); background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); box-shadow: var(--elev-3); padding: var(--space-1); max-height: 22rem; overflow: auto; }
.ac-search__group { padding: var(--space-2) var(--space-3) var(--space-1); }
.ac-option { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); cursor: pointer; }
.ac-option[aria-selected="true"], .ac-option:hover { background: var(--bg-selected); }
.ac-option__type { width: 24px; height: 24px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--slate-100); color: var(--slate-600); font-size: 11px; font-weight: var(--weight-semibold); }
.ac-option__name { font-weight: var(--weight-medium); color: var(--fg-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-option__name mark { background: transparent; color: var(--fg-accent-strong); font-weight: var(--weight-semibold); }
.ac-option__meta { font-size: var(--text-2xs); color: var(--fg-subtle); white-space: nowrap; }

/* ========== Tabs ========== */
.ac-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--border-hairline); overflow-x: auto; scrollbar-width: none; }
.ac-tabs::-webkit-scrollbar { display: none; }
.ac-tab { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-lg); padding: 0 var(--space-3); border: 0; background: none; cursor: pointer; color: var(--fg-muted); font-weight: var(--weight-medium); white-space: nowrap; }
.ac-tab:hover { color: var(--fg-strong); }
.ac-tab[aria-selected="true"] { color: var(--fg-strong); }
.ac-tab[aria-selected="true"]::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: -1px; height: 2px; background: var(--bg-accent); border-radius: 2px 2px 0 0; }
.ac-tab:focus-visible { box-shadow: inset 0 0 0 2px var(--focus-ring-color); border-radius: var(--radius-md); }
.ac-count { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--slate-100); color: var(--fg-muted); font-size: 11px; font-weight: var(--weight-semibold); font-variant-numeric: var(--num-data); }
.ac-tab[aria-selected="true"] .ac-count { background: var(--indigo-50); color: var(--indigo-700); }
.ac-tabpanel[hidden] { display: none; }

/* Segmented control (view switches) */
.ac-seg { display: inline-flex; padding: 2px; background: var(--slate-100); border-radius: var(--radius-md); gap: 2px; }
.ac-seg button { height: 28px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--fg-muted); font-size: var(--text-xs); font-weight: var(--weight-medium); cursor: pointer; }
.ac-seg button[aria-pressed="true"] { background: var(--bg-surface); color: var(--fg-strong); box-shadow: var(--elev-1); }

/* ========== Source chip (UX-004) ==========
   A real <button>. Visual height 20px inside a 24px target (WCAG 2.5.8). */
.ac-src {
  position: relative;
  display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 6px; margin: 0;
  border: 1px solid var(--chip-border); border-radius: var(--radius-xs);
  background: var(--chip-bg); color: var(--chip-fg);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: 0;
  font-variant-numeric: var(--num-data);
  white-space: nowrap; cursor: pointer; vertical-align: middle;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.ac-src::before { content: ""; position: absolute; inset: -3px -2px; } /* extends hit area to >= 24px */
.ac-src:hover { background: var(--chip-bg-hover); color: var(--slate-700); }
.ac-src[aria-expanded="true"] { background: var(--chip-bg-active); color: var(--chip-fg-active); border-color: var(--chip-border-active); }
.ac-src__sep { opacity: 0.55; }
/* A chip that directly follows its value keeps a visible gap, so the two targets never touch. */
.ac-v + .ac-src, .ac-state + .ac-src, .ac-itag + .ac-src { margin-inline-start: 6px; }
.ac-src__glyph { width: 10px; height: 10px; flex: none; }
.ac-src--restricted { color: var(--state-restricted-fg); background: var(--state-restricted-bg); border-color: var(--state-restricted-border); border-style: dashed; }
.ac-src--none { color: var(--fg-muted); background: transparent; border-style: dashed; }
.ac-orig-na { flex-basis: 100%; font-size: var(--text-2xs); line-height: 1.5; color: var(--paper-fg-muted, var(--fg-muted)); padding: var(--space-2) var(--space-3); border: 1px dashed var(--paper-border-strong, var(--border-default)); border-radius: var(--radius-md); }
.ac-orig-na strong { color: var(--paper-fg, var(--fg-strong)); font-weight: var(--weight-semibold); }
.ac-src--unavailable { background: transparent; border-style: dashed; border-color: var(--slate-300); }
.ac-src--derived { background: var(--bg-surface); border-color: var(--calc-border); }
.ac-src-group { display: inline-flex; gap: 4px; flex-wrap: wrap; vertical-align: middle; }

/* A value with its chips. Wraps cleanly on narrow screens. */
.ac-val { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.ac-val__text { color: var(--doc-fg); overflow-wrap: anywhere; }
.ac-val__orig { font-size: var(--text-2xs); color: var(--fg-subtle); }

/* ========== Data states: typed absence and quality ==========
   Each state = glyph + label + accessible description. Never colour alone, never zero. */
.ac-state {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 8px 0 6px;
  border-radius: var(--radius-xs); border: 1px solid transparent;
  font-size: var(--text-2xs); font-weight: var(--weight-medium); line-height: 1; white-space: nowrap;
}
.ac-state::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: var(--_glyph) center / contain no-repeat; mask: var(--_glyph) center / contain no-repeat; }
button.ac-state { cursor: pointer; font-family: inherit; }
/* Missing: the source was checked and holds no value. Glyph: slashed circle. */
.ac-state--missing { color: var(--state-missing-fg); background: var(--state-missing-bg); border-color: var(--slate-200);
  --_glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4'%3E%3Ccircle cx='6' cy='6' r='4.6'/%3E%3Cpath d='M2.8 9.2l6.4-6.4'/%3E%3C/svg%3E"); }
/* Not applicable: does not apply to this entity type. Glyph: en dash in square. */
.ac-state--na { color: var(--state-na-fg); background: var(--state-na-bg); border-color: var(--slate-300);
  --_glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4'%3E%3Crect x='1.5' y='1.5' width='9' height='9' rx='1.5'/%3E%3Cpath d='M4 6h4'/%3E%3C/svg%3E"); }
/* Not reported: the source exists and lawfully omits the item (e.g. revenue under s. 276 HGB). Glyph: page with an empty line. */
.ac-state--notreported { color: var(--state-missing-fg); background: var(--state-na-bg); border-color: var(--slate-300);
  --_glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.3'%3E%3Cpath d='M2.5 1.2h4.8l2.2 2.2v7.4h-7z'/%3E%3Cpath d='M4.3 6.2h3.4' stroke-dasharray='1 1.2'/%3E%3Cpath d='M4.3 8.4h3.4' stroke-dasharray='1 1.2'/%3E%3C/svg%3E"); }
/* Not collected: AssetCensus has not ingested this source/dimension. Glyph: dotted circle. */
.ac-state--notcollected { color: var(--state-notcollected-fg); background: var(--state-notcollected-bg); border-color: var(--slate-300); border-style: dashed;
  --_glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.5' stroke-dasharray='1.6 1.8'%3E%3Ccircle cx='6' cy='6' r='4.6'/%3E%3C/svg%3E"); }
/* Restricted: exists, access limited (e.g. legitimate-interest register). Glyph: lock. */
.ac-state--restricted { color: var(--state-restricted-fg); background: var(--state-restricted-bg); border-color: var(--state-restricted-border); border-style: dashed;
  --_glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4'%3E%3Crect x='2' y='5.2' width='8' height='5.6' rx='1'/%3E%3Cpath d='M4 5.2V3.8a2 2 0 014 0v1.4'/%3E%3C/svg%3E"); }
/* Stale: value present but older than the freshness policy. Glyph: clock. */
.ac-state--stale { color: var(--state-stale-fg); background: var(--state-stale-bg); border-color: var(--state-stale-border);
  --_glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4'%3E%3Ccircle cx='6' cy='6' r='4.6'/%3E%3Cpath d='M6 3.4V6l1.8 1.2'/%3E%3C/svg%3E"); }
/* Conflicting: sources disagree. Glyph: diverging arrows. */
.ac-state--conflict { color: var(--state-conflict-fg); background: var(--state-conflict-bg); border-color: var(--state-conflict-border);
  --_glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M6 11V6.5M6 6.5L2.5 2.5M6 6.5l3.5-4M2.5 2.5v2.2M2.5 2.5h2.2M9.5 2.5v2.2M9.5 2.5H7.3'/%3E%3C/svg%3E"); }
/* Verified: checked against an original at a stated time. Glyph: check. */
.ac-state--verified { color: var(--state-verified-fg); background: var(--state-verified-bg); border-color: var(--state-verified-border);
  --_glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M2.5 6.3l2.3 2.2 4.7-5'/%3E%3C/svg%3E"); }
/* Unknown denominator / unknown: question mark. */
.ac-state--unknown { color: var(--slate-600); background: var(--bg-surface); border-color: var(--slate-300);
  --_glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4'%3E%3Ccircle cx='6' cy='6' r='4.6'/%3E%3Cpath d='M4.6 4.7a1.5 1.5 0 112.1 1.4c-.5.2-.7.5-.7 1v.3'/%3E%3Ccircle cx='6' cy='8.8' r='.3' fill='black'/%3E%3C/svg%3E"); }
.ac-state--lg { height: 26px; font-size: var(--text-xs); padding: 0 10px 0 8px; }

/* Stale / conflicting values keep the value visible with a marker line */
.ac-val--stale .ac-val__text { text-decoration: underline wavy var(--amber-600) 1px; text-underline-offset: 4px; }
.ac-val--conflict .ac-val__text { text-decoration: underline double var(--red-600) 1px; text-underline-offset: 4px; }
.ac-conflict-list { display: grid; gap: 4px; margin-top: 4px; }
.ac-conflict-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--text-xs); }

/* ========== Section / card ========== */
.ac-section { background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); }
.ac-section__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border-hairline); flex-wrap: wrap; }
.ac-section__title { font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); color: var(--fg-strong); }
.ac-section__meta { font-size: var(--text-2xs); color: var(--fg-subtle); margin-top: 2px; }
.ac-section__body { padding: var(--space-4) var(--space-5); }
.ac-section__body--flush { padding: 0; }
.ac-section__foot { padding: var(--space-3) var(--space-5); border-top: 1px solid var(--border-hairline); font-size: var(--text-2xs); color: var(--fg-subtle); }
@media (max-width: 767px) {
  .ac-section__head, .ac-section__body:not(.ac-section__body--flush), .ac-section__foot { padding-inline: var(--space-4); }
}

/* Banner (freshness, notices) */
.ac-banner { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border-hairline); background: var(--bg-surface); font-size: var(--text-xs); line-height: var(--leading-normal); }
.ac-banner--stale { background: var(--amber-50); border-color: var(--amber-300); color: var(--amber-800); }
.ac-banner--conflict { background: var(--red-50); border-color: var(--red-200); color: var(--red-700); }
.ac-banner--info { background: var(--slate-50); color: var(--fg-muted); }
.ac-banner--sample { background: var(--slate-900); color: #e2e8f0; border-color: var(--slate-900); }
.ac-banner strong { font-weight: var(--weight-semibold); }

/* ========== Entity header ========== */
.ac-entity__name { font-family: var(--font-sans); font-size: var(--text-3xl); line-height: var(--leading-tight); letter-spacing: -0.022em; font-weight: var(--weight-semibold); color: var(--fg-strong); overflow-wrap: anywhere; }
@media (max-width: 767px) { .ac-entity__name { font-size: var(--text-2xl); } }
.ac-entity__ids { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-3); font-size: var(--text-xs); color: var(--fg-muted); }
.ac-entity__ids dt { color: var(--fg-subtle); }
.ac-entity__ids div { display: flex; gap: var(--space-2); align-items: center; }
.ac-id { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-strong); letter-spacing: -0.01em; }
.ac-status { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--radius-pill); font-size: var(--text-2xs); font-weight: var(--weight-semibold); background: var(--slate-0); color: var(--slate-900); border: 1px solid var(--slate-400); }
.ac-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ac-status--inactive { background: var(--slate-100); color: var(--slate-600); border-color: var(--slate-300); }
.ac-status--warn { background: var(--amber-50); color: var(--amber-800); border-color: var(--amber-300); }

/* ========== Key-value list ========== */
.ac-kv { display: grid; grid-template-columns: minmax(8rem, 40%) 1fr; gap: 0; }
.ac-kv > div { display: contents; }
.ac-kv dt, .ac-kv dd { padding: var(--space-2) 0; border-bottom: 1px solid var(--slate-100); }
.ac-kv dt { color: var(--fg-muted); padding-right: var(--space-4); }
.ac-kv dd { color: var(--fg-strong); min-width: 0; }
.ac-kv > div:last-child dt, .ac-kv > div:last-child dd { border-bottom: 0; }

/* ========== Fact table ========== */
.ac-facts { font-size: var(--text-sm); }
.ac-facts caption { text-align: left; padding: 0 0 var(--space-2); font-size: var(--text-2xs); color: var(--fg-subtle); }
.ac-facts th, .ac-facts td { text-align: left; vertical-align: top; padding: 9px var(--space-3); border-bottom: 1px solid var(--slate-100); }
.ac-facts thead th { font-size: var(--text-2xs); font-weight: var(--weight-semibold); color: var(--fg-subtle); letter-spacing: var(--tracking-caps); text-transform: uppercase; border-bottom-color: var(--border-hairline); padding-top: 0; }
.ac-facts tbody th { font-weight: var(--weight-regular); color: var(--fg-muted); width: 34%; }
.ac-facts td.ac-facts__asof { color: var(--fg-subtle); font-size: var(--text-2xs); white-space: nowrap; width: 1%; padding-top: 12px; }
.ac-facts tr:last-child th, .ac-facts tr:last-child td { border-bottom: 0; }
.ac-facts tr.is-selected th, .ac-facts tr.is-selected td { background: var(--bg-selected); }
.ac-facts tr.is-selected th:first-child { box-shadow: inset 2px 0 0 var(--border-accent); }
.ac-facts th:first-child, .ac-facts td:first-child { padding-left: 0; }
.ac-section__body--flush .ac-facts th:first-child { padding-left: var(--space-5); }
.ac-section__body--flush .ac-facts td:last-child { padding-right: var(--space-5); }
@media (max-width: 767px) {
  .ac-facts--stack thead { display: none; }
  .ac-facts--stack tr { display: grid; grid-template-columns: 1fr auto; padding: var(--space-3) 0; border-bottom: 1px solid var(--slate-100); }
  .ac-facts--stack th, .ac-facts--stack td { border: 0; padding: 0; width: auto !important; }
  .ac-facts--stack tbody th { grid-column: 1; font-size: var(--text-xs); }
  .ac-facts--stack td.ac-facts__asof { grid-column: 2; grid-row: 1; padding-top: 0; text-align: right; }
  .ac-facts--stack td.ac-facts__value { grid-column: 1 / -1; margin-top: 4px; }
  .ac-section__body--flush .ac-facts--stack tr { padding-inline: var(--space-4); }
  .ac-section__body--flush .ac-facts--stack th:first-child { padding-left: 0; }
  .ac-section__body--flush .ac-facts--stack td:last-child { padding-right: 0; }
}

/* ========== Epistemic registers (UX-006) ========== */
.ac-register { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.ac-register::before { content: ""; width: 18px; height: 2px; flex: none; background-repeat: repeat-x; background-position: 0 50%; }
.ac-register--documented { color: var(--slate-700); }
.ac-register--documented::before { height: 1px; background: var(--ev-fact-line); }
.ac-register--calculated { color: var(--slate-700); }
.ac-register--calculated::before { background-image: radial-gradient(circle at 1px 1px, var(--ev-calc-line) 0.95px, transparent 1.2px); background-size: var(--ev-calc-pitch) 2px; }
.ac-register--derived { color: var(--slate-700); }
.ac-register--derived::before { height: 4px; background: linear-gradient(var(--ev-derived-line), var(--ev-derived-line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--ev-derived-line), var(--ev-derived-line)) 0 100% / 100% 1px no-repeat; }
.ac-register--interpretation { color: var(--interp-label); }
.ac-register--interpretation::before { background-image: linear-gradient(90deg, var(--ev-interp-line) 0 var(--ev-interp-dash), transparent var(--ev-interp-dash)); background-size: var(--ev-interp-pitch) 2px; }

/* Calculation block */
.ac-calc { border: 1px solid var(--calc-border); border-radius: var(--radius-md); background: var(--calc-bg); background-image: linear-gradient(var(--calc-bg), var(--calc-bg)); }
.ac-calc__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--calc-border); flex-wrap: wrap; }
.ac-calc__title { font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--fg-strong); }
.ac-calc__formula { font-family: var(--font-calculated); font-size: 12.5px; line-height: 1.7; color: var(--calc-fg); padding: var(--space-3); overflow-x: auto; white-space: pre-wrap; word-break: break-word; font-variant-numeric: var(--num-data); }
.ac-calc__formula b { font-weight: 600; color: var(--fg-strong); }
.ac-calc__inputs { padding: 0 var(--space-3) var(--space-3); display: grid; gap: 4px; font-size: var(--text-xs); }
.ac-calc__inputs li { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.ac-calc__inputs .ac-mono { color: var(--fg-strong); }
.ac-calc__result { display: flex; align-items: baseline; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-top: 1px solid var(--calc-border); background: var(--bg-surface); border-radius: 0 0 var(--radius-md) var(--radius-md); flex-wrap: wrap; }
.ac-calc__result strong { font-family: var(--font-calculated); font-size: var(--text-md); font-variant-numeric: var(--num-data); }
.ac-calc--blocked .ac-calc__result { background: var(--slate-50); }

/* Interpretation card */
.ac-interp { position: relative; border: 1px dashed var(--interp-border); border-radius: var(--radius-lg); background: var(--interp-bg); }
.ac-interp__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4) 0; flex-wrap: wrap; }
.ac-interp__body { padding: var(--space-3) var(--space-4) var(--space-4); }
.ac-interp__claim { font-family: var(--font-interpretation); font-size: 1.1875rem; line-height: 1.45; color: var(--slate-900); letter-spacing: -0.005em; font-variant-numeric: var(--num-prose); font-weight: 450; }
.ac-interp__claim .ac-num { font-variant-numeric: var(--num-data); }
.ac-interp__note { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--fg-muted); line-height: var(--leading-normal); }
.ac-interp__basis { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: var(--space-2); padding: var(--space-3) var(--space-4); border-top: 1px dashed var(--interp-border); }
.ac-basis { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-3); background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); text-decoration: none; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.ac-basis:hover { border-color: var(--indigo-300); }
.ac-basis__n { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--fg-strong); font-variant-numeric: var(--num-data); line-height: 1.2; }
.ac-basis__label { font-size: var(--text-2xs); color: var(--fg-muted); }
.ac-interp__foot { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding: var(--space-2) var(--space-4) var(--space-3); font-size: var(--text-2xs); color: var(--fg-subtle); }
.ac-interp details { border-top: 1px dashed var(--interp-border); }
.ac-interp summary { cursor: pointer; padding: var(--space-2) var(--space-4); font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--fg-muted); list-style: none; display: flex; align-items: center; gap: var(--space-2); min-height: 36px; }
.ac-interp summary::-webkit-details-marker { display: none; }
.ac-interp summary::before { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--dur-fast); }
.ac-interp details[open] summary::before { transform: rotate(45deg); }
.ac-interp details > div { padding: 0 var(--space-4) var(--space-3); font-size: var(--text-xs); color: var(--fg-muted); }
.ac-interp details li { padding-left: var(--space-4); position: relative; margin-top: 4px; }
.ac-interp details li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 1px; background: var(--slate-400); }

/* Review status */
.ac-review { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-2xs); font-weight: var(--weight-medium); white-space: nowrap; }
.ac-review::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.ac-review--unreviewed { color: var(--review-unreviewed-fg); }
.ac-review--inreview { color: var(--slate-700); } /* amber is reserved for stale (UX-020); glyph carries the state */
.ac-review--inreview::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.ac-review--reviewed { color: var(--review-reviewed-fg); }
.ac-review--reviewed::before { background: currentColor; }
.ac-review--contested { color: var(--review-contested-fg); }
.ac-review--contested::before { border-radius: 1px; transform: rotate(45deg); width: 7px; height: 7px; background: currentColor; }

/* ========== Change timeline ========== */
.ac-timeline { position: relative; }
.ac-timeline__toolbar { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; margin-bottom: var(--space-3); }
.ac-event { position: relative; display: grid; grid-template-columns: 8rem 20px 1fr; gap: 0 var(--space-3); padding-bottom: var(--space-4); }
.ac-event__date { text-align: right; font-size: var(--text-xs); color: var(--fg-strong); font-variant-numeric: var(--num-data); padding-top: 1px; }
.ac-event__date small { display: block; font-size: 11px; color: var(--fg-subtle); margin-top: 2px; white-space: nowrap; }
.ac-event__rail { position: relative; display: flex; justify-content: center; }
.ac-event__rail::after { content: ""; position: absolute; top: 18px; bottom: calc(-1 * var(--space-4) + 2px); width: 1px; background: var(--border-default); }
.ac-event:last-child .ac-event__rail::after { display: none; }
.ac-event__dot { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 4px; border-radius: 50%; background: var(--slate-900); box-shadow: 0 0 0 3px var(--bg-surface); }
.ac-event--first .ac-event__dot { background: var(--bg-surface); border: 2px solid var(--slate-700); }
.ac-event--backfill .ac-event__dot { background: var(--bg-surface); border: 2px dotted var(--slate-500); }
.ac-event--correction .ac-event__dot { border-radius: 2px; transform: rotate(45deg) scale(0.9); background: var(--slate-0); border: 2px solid var(--slate-900); }
.ac-event--reobs .ac-event__dot { width: 7px; height: 7px; margin-top: 6px; background: var(--slate-300); }
.ac-event--interp .ac-event__dot { background: var(--bg-surface); border: 2px dashed var(--indigo-600); }
.ac-event__body { min-width: 0; }
.ac-event__title { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-weight: var(--weight-medium); color: var(--fg-strong); }
.ac-event__class { font-size: 11px; font-weight: var(--weight-medium); color: var(--fg-subtle); }
.ac-event--correction .ac-event__class { color: var(--slate-900); }
.ac-event__desc { margin-top: 2px; font-size: var(--text-xs); color: var(--fg-muted); }
.ac-diff { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--space-2); margin-top: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--slate-50); border: 1px solid var(--slate-100); border-radius: var(--radius-md); font-size: var(--text-xs); align-items: center; }
.ac-diff dt { font-size: 11px; color: var(--fg-subtle); font-weight: var(--weight-medium); }
.ac-diff dd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-variant-numeric: var(--num-data); min-width: 0; }
@media (max-width: 479px) {
  .ac-diff { grid-template-columns: 1fr; gap: 0; }
  .ac-diff dd + dt { margin-top: 6px; }
}
.ac-diff del { color: var(--fg-muted); text-decoration: line-through; text-decoration-color: var(--slate-400); }
.ac-diff ins { text-decoration: none; color: var(--fg-strong); font-weight: var(--weight-medium); }
.ac-event--reobs { padding-bottom: var(--space-2); }
.ac-event--reobs .ac-event__title { font-weight: var(--weight-regular); color: var(--fg-muted); font-size: var(--text-xs); }
.ac-timeline[data-hide-reobs="true"] .ac-event--reobs { display: none; }
@media (max-width: 767px) {
  .ac-event { grid-template-columns: 16px 1fr; }
  .ac-event__date { grid-column: 2; grid-row: 1; text-align: left; display: flex; gap: var(--space-2); align-items: baseline; flex-wrap: wrap; }
  .ac-event__date small { margin: 0; }
  .ac-event__rail { grid-column: 1; grid-row: 1 / span 2; }
  .ac-event__body { grid-column: 2; margin-top: 2px; }
}

/* ========== Relationship table ========== */
.ac-table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ac-table-wrap:focus-visible { box-shadow: inset 0 0 0 2px var(--focus-ring-color); }
.ac-rel, .ac-fin { font-size: var(--text-xs); }
.ac-rel th, .ac-rel td, .ac-fin th, .ac-fin td { padding: 10px var(--space-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--slate-100); }
.ac-rel thead th, .ac-fin thead th { font-size: 11px; font-weight: var(--weight-semibold); color: var(--fg-subtle); letter-spacing: var(--tracking-caps); text-transform: uppercase; border-bottom: 1px solid var(--border-hairline); white-space: nowrap; background: var(--bg-surface); position: sticky; top: 0; }
.ac-rel tbody th { font-weight: var(--weight-medium); color: var(--fg-strong); font-size: var(--text-sm); min-width: 12rem; }
.ac-rel tbody th small, .ac-fin tbody th small { display: block; font-weight: var(--weight-regular); font-size: 11px; color: var(--fg-subtle); margin-top: 2px; }
.ac-rel tr:hover td, .ac-rel tr:hover th { background: var(--slate-25); }
.ac-rel th:first-child, .ac-rel td:first-child, .ac-fin th:first-child { padding-left: var(--space-5); }
.ac-rel th:last-child, .ac-rel td:last-child, .ac-fin th:last-child, .ac-fin td:last-child { padding-right: var(--space-5); }
.ac-rel tr.is-indirect th { padding-left: calc(var(--space-5) + 18px); position: relative; }
.ac-rel tr.is-indirect th::before { content: ""; position: absolute; left: calc(var(--space-5) + 4px); top: 0; height: 22px; width: 9px; border-left: 1px solid var(--slate-300); border-bottom: 1px solid var(--slate-300); border-bottom-left-radius: 3px; }

.ac-reltype { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--radius-xs); font-size: 11px; font-weight: var(--weight-semibold); white-space: nowrap; border: 1px solid; }
.ac-reltype::before { content: ""; width: 7px; height: 7px; flex: none; }
.ac-reltype--ownership { color: var(--slate-800); border-color: var(--slate-300); background: var(--bg-surface); }
.ac-reltype--ownership::before { background: var(--slate-800); border-radius: 50%; }
.ac-reltype--voting { color: var(--slate-800); border-color: var(--slate-300); background: var(--bg-surface); }
.ac-reltype--voting::before { border: 1.5px solid var(--slate-800); border-radius: 50%; }
.ac-reltype--control { color: var(--indigo-800); border-color: var(--indigo-200); background: var(--indigo-25); }
.ac-reltype--control::before { background: var(--indigo-700); transform: rotate(45deg); }
.ac-reltype--officer { color: var(--slate-700); border-color: var(--slate-200); background: var(--slate-50); }
.ac-reltype--officer::before { border: 1.5px solid var(--slate-600); }
.ac-reltype--consolidation { color: var(--slate-700); border-color: var(--slate-200); background: var(--slate-50); }
.ac-reltype--consolidation::before { background: linear-gradient(var(--slate-600), var(--slate-600)) center/100% 1.5px no-repeat, linear-gradient(var(--slate-600), var(--slate-600)) center/1.5px 100% no-repeat; }
.ac-reltype--address { color: var(--slate-600); border-color: var(--slate-300); border-style: dashed; background: var(--bg-surface); }
.ac-reltype--address::before { border: 1.5px dotted var(--slate-600); border-radius: 50%; }
.ac-reltype--ubo { color: #fff; border-color: var(--slate-900); background: var(--slate-900); }
.ac-reltype--ubo::before { background: #fff; border-radius: 50%; }

.ac-identity { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: var(--weight-medium); white-space: nowrap; }
.ac-identity::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ac-identity--resolved { color: var(--slate-900); }
.ac-identity--resolved::before { background: currentColor; }
.ac-identity--possible { color: var(--indigo-700); } /* a possible match is an interpretation; amber stays reserved for stale */
.ac-identity--possible::before { border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.ac-identity--unresolved { color: var(--slate-600); }
.ac-identity--unresolved::before { border: 1.5px dashed currentColor; }

.ac-share { font-variant-numeric: var(--num-data); white-space: nowrap; color: var(--fg-strong); font-weight: var(--weight-medium); }
.ac-share small { color: var(--fg-subtle); font-weight: var(--weight-regular); }
.ac-sharebar { display: block; width: 64px; height: 4px; margin-top: 6px; background: var(--slate-150); border-radius: 2px; overflow: hidden; }
.ac-sharebar > span { display: block; height: 100%; background: var(--slate-700); }
.ac-sharebar--range > span { background: repeating-linear-gradient(90deg, var(--slate-700) 0 3px, transparent 3px 5px); }

/* ========== Financial comparison ========== */
.ac-fin thead th:not(:first-child), .ac-fin td { text-align: right; }
.ac-fin tbody th { font-weight: var(--weight-regular); color: var(--fg-muted); min-width: 10rem; }
.ac-fin td { color: var(--fg-strong); white-space: nowrap; }
.ac-fin td .ac-src { margin-left: 4px; }
.ac-fin tr.ac-fin__calc th, .ac-fin tr.ac-fin__calc td { background: var(--calc-bg); font-family: var(--font-calculated); font-size: 12px; }
.ac-fin tr.ac-fin__calc th { font-family: var(--font-sans); }
.ac-fin tr.ac-fin__group th { padding-top: var(--space-4); font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-subtle); border-bottom-color: var(--border-hairline); }
.ac-fin .is-neg { color: inherit; } /* negatives carry a true minus sign, no colour (red = conflict only) */
.ac-fin caption { caption-side: top; text-align: left; padding: var(--space-3) var(--space-5); font-size: var(--text-2xs); color: var(--fg-subtle); border-bottom: 1px solid var(--border-hairline); }

.ac-fin tbody th, .ac-fin thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg-surface); }
.ac-fin thead th:first-child { z-index: 2; }
.ac-fin tr.ac-fin__calc th { background: var(--calc-bg); }
.ac-fin tr.ac-fin__group th { position: static; }
.ac-rel td.ac-rel__period { white-space: nowrap; }

/* Relationship table stacks into statement cards on mobile */
@media (max-width: 767px) {
  .ac-rel--stack thead { display: none; }
  .ac-rel--stack, .ac-rel--stack tbody { display: block; }
  .ac-rel--stack tr { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-3); padding: var(--space-4); border-bottom: 1px solid var(--slate-100); }
  .ac-rel--stack tr:hover td, .ac-rel--stack tr:hover th { background: transparent; }
  .ac-rel--stack th, .ac-rel--stack td { display: block; padding: 0 !important; border: 0; min-width: 0; }
  .ac-rel--stack tbody th { grid-column: 1 / -1; min-width: 0; }
  .ac-rel--stack td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 2px; }
  .ac-rel--stack tr.is-indirect { margin-left: var(--space-4); border-left: 1px solid var(--slate-300); }
  .ac-rel--stack tr.is-indirect th::before { display: none; }
}

/* Sparkline (decorative; data is always in the table) */
.ac-spark { width: 72px; height: 22px; color: var(--slate-700); }

/* ========== Coverage panel ========== */
.ac-coverage { display: grid; gap: 0; }
.ac-cov-row { display: grid; grid-template-columns: minmax(9rem, 1.2fr) minmax(7rem, 1fr) 7.5rem; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--slate-100); }
.ac-cov-row:last-child { border-bottom: 0; }
.ac-cov-row__dim { font-weight: var(--weight-medium); color: var(--fg-strong); }
.ac-cov-row__dim small { display: block; font-weight: var(--weight-regular); font-size: 11px; color: var(--fg-subtle); margin-top: 1px; }
.ac-cov-row__meta { font-size: 11px; color: var(--fg-subtle); text-align: right; white-space: nowrap; justify-self: end; }
.ac-periods { display: flex; gap: 2px; }
.ac-periods span { flex: 1; height: 14px; min-width: 8px; border-radius: 2px; background: var(--slate-700); }
.ac-periods span[data-s="missing"] { background: var(--slate-100); box-shadow: inset 0 0 0 1px var(--slate-300); }
.ac-periods span[data-s="notcollected"] { background: transparent; box-shadow: inset 0 0 0 1px var(--slate-400); background-image: repeating-linear-gradient(135deg, var(--slate-300) 0 1px, transparent 1px 4px); }
.ac-periods span[data-s="stale"] { background: var(--amber-300); }
.ac-periods span[data-s="restricted"] { background: repeating-linear-gradient(135deg, var(--slate-400) 0 2px, var(--slate-100) 2px 5px); }
.ac-periods span[data-s="conflict"] { background: var(--red-600); }
.ac-periods span[data-s="na"] { background: transparent; box-shadow: inset 0 0 0 1px var(--slate-200); }
.ac-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 11px; color: var(--fg-muted); }
.ac-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ac-legend i { display: inline-block; width: 12px; height: 10px; border-radius: 2px; }
@media (max-width: 479px) {
  .ac-cov-row { grid-template-columns: 1fr auto; }
  .ac-cov-row .ac-periods { grid-column: 1 / -1; grid-row: 2; }
}

/* Rounded, dated public count */
.ac-count-public { font-variant-numeric: var(--num-data); }
.ac-count-public small { color: var(--fg-subtle); font-size: 11px; margin-left: 4px; }

/* ========== Evidence side pane ========== */
.ac-pane {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-pane);
  width: var(--pane-evidence); max-width: 100vw;
  display: flex; flex-direction: column;
  background: var(--paper-bg); color: var(--paper-fg); box-shadow: var(--elev-pane);
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-enter), visibility 0s linear var(--dur-slow);
}
.ac-pane[data-open="true"] { transform: none; visibility: visible; transition: transform var(--dur-slow) var(--ease-enter), visibility 0s; }
.ac-pane__head { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) var(--space-4) var(--space-3) var(--space-5); border-bottom: 1px solid var(--paper-border); }
.ac-pane__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; line-height: var(--leading-snug); color: var(--paper-fg); letter-spacing: -0.005em; }
.ac-pane__title:focus { outline: none; }
.ac-pane__title:focus-visible { box-shadow: var(--focus-ring); }
.ac-pane__sub { font-size: var(--text-2xs); color: var(--paper-fg-muted); margin-top: 2px; }
.ac-pane__close { margin-left: auto; flex: none; }
.ac-pane__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-4) var(--space-5) var(--space-6); }
.ac-pane__body > * + * { margin-top: var(--space-5); }
.ac-pane__foot { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-5); border-top: 1px solid var(--paper-border); background: var(--paper-bg-inset); flex-wrap: wrap; }
.ac-pane__label { font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--paper-fg-muted); margin-bottom: var(--space-2); }
.ac-scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: rgba(15, 23, 42, 0.32); opacity: 0; visibility: hidden; transition: opacity var(--dur-base); }
.ac-scrim[data-open="true"] { opacity: 1; visibility: visible; }
@media (min-width: 1024px) { .ac-scrim { display: none; } }
@media (max-width: 1023px) {
  .ac-pane { top: auto; left: 0; width: 100%; height: min(88vh, 100%); border-radius: var(--radius-xl) var(--radius-xl) 0 0; transform: translateY(100%); box-shadow: var(--elev-3); }
  .ac-pane__head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--slate-300); }
  .ac-pane__head { position: relative; padding-top: var(--space-5); }
}

/* Version list */
.ac-versions { display: grid; gap: 2px; }
.ac-version { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-2); align-items: center; padding: 6px var(--space-2); border-radius: var(--radius-md); border: 1px solid transparent; background: none; text-align: left; cursor: pointer; font-size: var(--text-xs); color: var(--fg-muted); width: 100%; min-height: 32px; }
button.ac-version { min-height: 32px; font-family: inherit; }
span.ac-version { cursor: default; }
button.ac-version:hover { background: var(--slate-50); }
span.ac-version[aria-current="true"] { color: var(--fg-strong); }
span.ac-version[aria-current="true"] .ac-version__dot { background: var(--slate-700); border-color: var(--slate-700); }
.ac-version[aria-pressed="true"] { background: var(--bg-selected); border-color: var(--indigo-200); color: var(--fg-strong); }
.ac-version__dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--slate-500); }
.ac-version[aria-pressed="true"] .ac-version__dot { background: var(--indigo-600); border-color: var(--indigo-600); }
.ac-version__date { font-variant-numeric: var(--num-data); white-space: nowrap; }

/* Document facsimile (original page preview) */
.ac-doc { position: relative; border: 1px solid var(--paper-border-strong); border-radius: var(--radius-sm); background: var(--paper-bg-raised); box-shadow: var(--elev-2); padding: 22px 22px 26px; font-family: var(--font-serif); font-size: 11.5px; line-height: 1.55; color: #1f2937; }
.ac-doc__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); font-family: var(--font-sans); font-size: 11px; color: var(--fg-subtle); margin-bottom: var(--space-2); }
.ac-doc h4 { font-family: var(--font-serif); font-size: 13px; font-weight: 600; text-align: center; margin-bottom: 10px; letter-spacing: 0.01em; }
.ac-doc p + p { margin-top: 6px; }
.ac-doc .ac-doc__line { display: block; height: 6px; border-radius: 1px; background: #e5e7eb; margin: 7px 0; }
.ac-doc mark { background: var(--paper-mark); color: inherit; padding: 1px 2px; box-shadow: inset 0 -2px 0 var(--paper-mark-edge); border-radius: 1px; }
.ac-doc__stamp { position: absolute; right: 14px; bottom: 10px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-subtle); }
.ac-doc__pages { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-2); font-size: 11px; color: var(--fg-subtle); }

/* Original vs normalised */
.ac-orignorm { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-hairline); border-radius: var(--radius-md); overflow: hidden; }
.ac-orignorm > div { padding: var(--space-2) var(--space-3); min-width: 0; }
.ac-orignorm > div + div { border-left: 1px solid var(--border-hairline); background: var(--slate-25); }
.ac-orignorm dt { font-size: 11px; color: var(--paper-fg-muted); }
.ac-orignorm dd { font-family: var(--font-mono); font-size: 12px; color: var(--fg-strong); margin-top: 2px; overflow-wrap: anywhere; }

.ac-hash { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); overflow-wrap: anywhere; }

/* ========== Empty, loading, error ========== */
.ac-empty { display: grid; justify-items: start; gap: var(--space-2); padding: var(--space-6) var(--space-5); border: 1px dashed var(--border-default); border-radius: var(--radius-lg); background: var(--bg-surface); }
.ac-empty__title { font-weight: var(--weight-semibold); color: var(--fg-strong); }
.ac-empty__text { color: var(--fg-muted); font-size: var(--text-xs); max-width: 52ch; }
.ac-empty__actions { display: flex; gap: var(--space-2); margin-top: var(--space-2); flex-wrap: wrap; }

.ac-skeleton { position: relative; overflow: hidden; background: var(--slate-100); border-radius: var(--radius-sm); }
.ac-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: ac-shimmer 1.4s var(--ease-standard) infinite; }
@media (prefers-reduced-motion: reduce) { .ac-skeleton::after { animation: none; } }
@keyframes ac-shimmer { to { transform: translateX(100%); } }
.ac-skel-row { display: grid; grid-template-columns: 34% 1fr 4rem; gap: var(--space-3); padding: 12px 0; border-bottom: 1px solid var(--slate-100); }
.ac-skel-row .ac-skeleton { height: 12px; }

.ac-error { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); padding: var(--space-4) var(--space-5); border: 1px solid var(--slate-300); border-radius: var(--radius-lg); background: var(--bg-surface); color: var(--slate-900); }
.ac-error__icon { width: 20px; height: 20px; }
.ac-error__title { font-weight: var(--weight-semibold); }
.ac-error__text { color: var(--slate-700); font-size: var(--text-xs); margin-top: 2px; }
.ac-error__actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; align-items: center; }

/* Toast / live region */
.ac-toast { position: fixed; left: 50%; bottom: var(--space-6); transform: translateX(-50%); z-index: var(--z-toast); background: var(--slate-900); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-xs); box-shadow: var(--elev-3); }
.ac-toast[hidden] { display: none; }

/* Tag */
.ac-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-xs); background: var(--slate-100); color: var(--fg-muted); font-size: 11px; font-weight: var(--weight-medium); white-space: nowrap; }
.ac-tag--outline { background: transparent; border: 1px solid var(--border-default); }

/* Print: evidence-friendly */
@media print {
  .ac-header, .ac-pane, .ac-scrim, .ac-btn { display: none !important; }
  body { background: #fff; }
  .ac-section { border-color: #ccc; }
}

/* Static rendition of the pane for documentation and print */
.ac-pane--static { position: relative; inset: auto; transform: none; visibility: visible; width: 100%; max-width: var(--pane-evidence); height: auto; border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); box-shadow: var(--elev-2); transition: none; z-index: auto; }
.ac-pane--static .ac-pane__head::before { display: none; }
.ac-pane--static .ac-pane__head { padding-top: var(--space-4); }


/* ========== Brand ========== */
/* The hidden attribute always wins over component display rules (banners, grids, flex rows). */
[hidden] { display: none !important; }

.ac-logo { display: inline-flex; align-items: center; color: var(--fg-strong); text-decoration: none; flex: none; }
.ac-logo svg { height: 28px; width: auto; }
.ac-logo:hover { color: var(--fg-strong); }
/* Signature draw-in (UX-022): runs once on load; zero under reduced motion via --dur-draw */
.ac-draw .ev-solid line { stroke-dasharray: 40; stroke-dashoffset: 40; animation: ac-draw-line var(--dur-draw) var(--ease-draw) forwards; }
.ac-draw .ev-dots circle { opacity: 0; animation: ac-draw-dot calc(var(--dur-draw) * 0.25) var(--ease-standard) forwards; }
.ac-draw .ev-dots circle:nth-child(1) { animation-delay: calc(var(--dur-draw) * 0.300); }
.ac-draw .ev-dots circle:nth-child(2) { animation-delay: calc(var(--dur-draw) * 0.345); }
.ac-draw .ev-dots circle:nth-child(3) { animation-delay: calc(var(--dur-draw) * 0.390); }
.ac-draw .ev-dots circle:nth-child(4) { animation-delay: calc(var(--dur-draw) * 0.435); }
.ac-draw .ev-dots circle:nth-child(5) { animation-delay: calc(var(--dur-draw) * 0.480); }
.ac-draw .ev-dots circle:nth-child(6) { animation-delay: calc(var(--dur-draw) * 0.525); }
.ac-draw .ev-dots circle:nth-child(7) { animation-delay: calc(var(--dur-draw) * 0.570); }
.ac-draw .ev-dots circle:nth-child(8) { animation-delay: calc(var(--dur-draw) * 0.615); }
.ac-draw .ev-dash line { opacity: 0; animation: ac-draw-dot calc(var(--dur-draw) * 0.25) var(--ease-standard) forwards; }
.ac-draw .ev-dash line:nth-child(1) { animation-delay: calc(var(--dur-draw) * 0.72); }
.ac-draw .ev-dash line:nth-child(2) { animation-delay: calc(var(--dur-draw) * 0.80); }
.ac-draw .ev-dash line:nth-child(3) { animation-delay: calc(var(--dur-draw) * 0.88); }
/* Interim logo B (UX-028): the solid rule is normalised with pathLength="1", so one dash length covers any rule length. */
.ac-draw .ev-solid line[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ac-logo--b svg { height: 30px; }
/* UX-037 working logo: Graduated sphere with full stop. The lockup viewBox carries 7px of air above and below. */
.ac-logo--gs svg { height: 36px; margin-block: -4px; }
@keyframes ac-draw-line { to { stroke-dashoffset: 0; } }
@keyframes ac-draw-dot { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ac-draw .ev-solid line, .ac-draw .ev-solid line[pathLength] { stroke-dashoffset: 0; animation: none; }
  .ac-draw .ev-dots circle, .ac-draw .ev-dash line { opacity: 1; animation: none; }
}

/* Display type (UX-018): serif for headlines and report voice */
.ac-display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.012em; line-height: 1.12; color: var(--fg-strong); font-variant-numeric: lining-nums; }
.ac-display--xl { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); letter-spacing: -0.02em; line-height: 1.04; }
.ac-display--lg { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.ac-display--md { font-size: var(--text-2xl); }

/* ========== Evidence grammar (UX-014) ==========
   Every value is a <button class="ac-v ac-v--fact|calc|interp" data-evidence="ID" aria-expanded="false">.
   The underline pattern AND weight encode statement type; colour is a third, redundant cue.
   Interpretations also carry a visible "Interpretation" label with review status. */
.ac-v {
  /* Target size: inline padding lifts the box to >= 24px (WCAG 2.5.8) without changing line layout.
     Plex content area is about 1.3em, so padding = (24px - 1.3em) / 2 per side. */
  --_pad: max(1px, calc(12px - 0.65em));
  --_pb: max(2px, calc(12px - 0.65em));
  display: inline; margin: 0 -3px; padding: var(--_pad) 3px var(--_pb); border: 0; border-radius: 2px;
  font: inherit; color: var(--fg-strong); text-align: inherit; letter-spacing: inherit; cursor: pointer;
  background-color: transparent; background-repeat: repeat-x; background-position: 3px calc(100% - var(--_pb) + 2px);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  font-variant-numeric: var(--num-data);
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.ac-v--fact { background-image: linear-gradient(var(--ev-fact-line), var(--ev-fact-line)); background-size: calc(100% - 6px) var(--ev-fact-weight); }
.ac-v--calc { background-image: radial-gradient(circle at 1px 1px, var(--ev-calc-line) 0.95px, transparent 1.2px); background-size: var(--ev-calc-pitch) var(--ev-calc-dot); }
.ac-v--interp { background-image: linear-gradient(90deg, var(--ev-interp-line) 0 var(--ev-interp-dash), transparent var(--ev-interp-dash)); background-size: var(--ev-interp-pitch) var(--ev-interp-weight); }
/* Derived (proposal): two hairlines. Not a registered fact, not a calculation: a value AssetCensus derived from a held record. */
.ac-v--derived { background-image: linear-gradient(var(--ev-derived-line), var(--ev-derived-line)), linear-gradient(var(--ev-derived-line), var(--ev-derived-line)); background-size: calc(100% - 6px) 1px, calc(100% - 6px) 1px; background-position: 3px calc(100% - var(--_pb) + 2px), 3px calc(100% - var(--_pb) + 2px - 1px - var(--ev-derived-gap)); background-repeat: repeat-x; }
.ac-v:hover { background-color: var(--ev-hover-bg); }
.ac-v[aria-expanded="true"] { background-color: var(--ev-active-bg); box-shadow: inset 0 0 0 1px var(--indigo-200); }
.ac-v:focus-visible { box-shadow: var(--focus-ring); }
.ac-v--muted { color: var(--fg-muted); }
.ac-v .ac-v__unit { color: var(--fg-muted); font-weight: var(--weight-regular); }
/* Hit area >= 24px for short values without disturbing line layout */
.ac-v--target { position: relative; }
.ac-v--target::after { content: ""; position: absolute; inset: -5px -4px; }

/* Interpretation label (UX-006): text label + review status, beside the value */
.ac-itag { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px; margin-left: 6px; vertical-align: 1px;
  border: 1px dashed var(--interp-border); border-radius: var(--radius-xs); background: var(--interp-bg);
  font-size: 11px; font-weight: var(--weight-semibold); color: var(--interp-label); line-height: 1; white-space: nowrap; }
.ac-itag .ac-review { font-weight: var(--weight-medium); }
.ac-itag .ac-review::before { width: 7px; height: 7px; }

/* Legend: one line per page */
.ac-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-4); font-size: var(--text-2xs); color: var(--fg-muted); }
.ac-legend__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ac-legend__item::before { content: ""; width: 20px; height: 2px; background-repeat: repeat-x; background-position: 0 50%; }
.ac-legend__item--fact::before { height: 1px; background: var(--ev-fact-line); }
.ac-legend__item--calc::before { background-image: radial-gradient(circle at 1px 1px, var(--ev-calc-line) 0.95px, transparent 1.2px); background-size: var(--ev-calc-pitch) 2px; }
.ac-legend__item--derived::before { height: 4px; background: linear-gradient(var(--ev-derived-line), var(--ev-derived-line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--ev-derived-line), var(--ev-derived-line)) 0 100% / 100% 1px no-repeat; }
.ac-legend__item--interp::before { background-image: linear-gradient(90deg, var(--ev-interp-line) 0 var(--ev-interp-dash), transparent var(--ev-interp-dash)); background-size: var(--ev-interp-pitch) 2px; }
.ac-legend__item--stale::before, .ac-legend__item--conflict::before { width: 3px; height: 14px; border-radius: 1px; }
.ac-legend__item--stale::before { background: var(--rail-stale); }
.ac-legend__item--conflict::before { background: var(--rail-conflict); }
.ac-legend__hint { color: var(--fg-subtle); }
.ac-legend kbd, .ac-evtoggle .ac-kbd, .sg-p .ac-kbd { margin: 0; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid var(--border-default); border-bottom-width: 2px; border-radius: 3px; background: var(--bg-surface); font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-muted); line-height: 1; }

/* Evidence rows: label, value, badges; slim left rail for stale and conflicting */
.ac-erows { display: grid; }
.ac-erow { position: relative; display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr); gap: 2px var(--space-5); align-items: baseline;
  padding: 9px var(--space-4) 9px calc(var(--space-4) + var(--rail-w)); border-bottom: 1px solid var(--slate-100); }
.ac-erow:last-child { border-bottom: 0; }
.ac-erow::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: var(--rail-w); border-radius: 0 2px 2px 0; background: var(--rail-none); }
.ac-erow--stale::before { background: var(--rail-stale); }
.ac-erow--conflict::before { background: var(--rail-conflict); }
.ac-erow.is-selected { background: var(--bg-selected); }
.ac-erow > dt { font-size: var(--text-xs); color: var(--fg-muted); }
.ac-erow > dd { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--space-2); color: var(--fg-strong); }
.ac-erow__sub { flex-basis: 100%; font-size: var(--text-2xs); color: var(--fg-subtle); }
.ac-erow .ac-state { align-self: center; }
.ac-erows--compact .ac-erow { padding-top: 7px; padding-bottom: 7px; }
@media (max-width: 599px) {
  .ac-erow { grid-template-columns: minmax(0, 1fr); padding-left: calc(var(--space-4) + var(--rail-w)); }
  .ac-erow > dt { font-size: var(--text-2xs); }
}
/* Table rows can carry the same rail */
tr.ac-rail--stale > :first-child, tr.ac-rail--conflict > :first-child { box-shadow: inset var(--rail-w) 0 0 var(--_rail); }
tr.ac-rail--stale { --_rail: var(--rail-stale); }
tr.ac-rail--conflict { --_rail: var(--rail-conflict); }
td.ac-rail--stale, td.ac-rail--conflict { box-shadow: inset var(--rail-w) 0 0 var(--_rail); }
td.ac-rail--stale { --_rail: var(--rail-stale); }
td.ac-rail--conflict { --_rail: var(--rail-conflict); }

/* Evidence mode (key E or toggle): every source chip appears inline */
.ac-evtoggle { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-sm); padding: 0 var(--space-2) 0 var(--space-3);
  border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-surface); color: var(--fg-muted);
  font-size: var(--text-xs); font-weight: var(--weight-medium); cursor: pointer; white-space: nowrap; }
.ac-evtoggle:hover { border-color: var(--slate-400); color: var(--fg-strong); }
.ac-evtoggle__sw { position: relative; width: 26px; height: 16px; border-radius: 8px; background: var(--slate-300); transition: background var(--dur-fast); flex: none; }
.ac-evtoggle__sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.25); transition: transform var(--dur-fast) var(--ease-standard); }
.ac-evtoggle[aria-pressed="true"] { border-color: var(--indigo-300); background: var(--indigo-50); color: var(--indigo-800); }
.ac-evtoggle[aria-pressed="true"] .ac-evtoggle__sw { background: var(--indigo-600); }
.ac-evtoggle[aria-pressed="true"] .ac-evtoggle__sw::after { transform: translateX(10px); }
.ac-evtoggle .ac-kbd { margin-left: 2px; }
.ac-ev-inline { display: none !important; }
body.ac-evidence-mode .ac-ev-inline { display: inline-flex !important; }
.ac-evmode-note { display: none; }
body.ac-evidence-mode .ac-evmode-note { display: flex; }
.ac-evmode-bar { align-items: center; gap: var(--space-3); flex-wrap: wrap; padding: 6px var(--space-4); background: var(--indigo-50); border-bottom: 1px solid var(--indigo-200); color: var(--indigo-800); font-size: var(--text-2xs); }
@media print { .ac-ev-inline { display: inline-flex !important; } }

/* ========== Evidence pane content (paper) ========== */
.ac-evtype { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.ac-evtype .ac-register { font-size: 11px; }
.ac-evmeta { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 6px var(--space-3); font-size: var(--text-xs); }
.ac-evmeta dt { color: var(--paper-fg-muted); }
.ac-evmeta dd { color: var(--paper-fg); min-width: 0; overflow-wrap: anywhere; font-variant-numeric: var(--num-data); }
.ac-evmeta .ac-mono { font-size: 11.5px; }
.ac-excerpt { position: relative; padding: var(--space-4) var(--space-4) var(--space-3); background: var(--paper-bg-raised); border: 1px solid var(--paper-border-strong); border-radius: var(--radius-sm); box-shadow: 0 1px 0 var(--paper-border), 0 8px 20px -14px rgba(41,37,29,.35);
  font-family: var(--font-report); font-size: 13px; line-height: 1.6; color: var(--paper-fg); }
.ac-excerpt__src { display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; font-family: var(--font-sans); font-size: 11px; color: var(--paper-fg-muted); margin-bottom: var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px solid var(--paper-border); }
.ac-excerpt mark { background: var(--paper-mark); color: inherit; padding: 0 2px; box-shadow: inset 0 -2px 0 var(--paper-mark-edge); }
.ac-excerpt__ellipsis { color: var(--paper-fg-muted); }
.ac-excerpt__lang { margin-top: var(--space-2); font-family: var(--font-sans); font-size: 11px; color: var(--paper-fg-muted); }
.ac-evlist { display: grid; gap: var(--space-2); font-size: var(--text-xs); }
.ac-evlist > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-3); align-items: baseline; padding: var(--space-2) var(--space-3); background: var(--paper-bg-raised); border: 1px solid var(--paper-border); border-radius: var(--radius-sm); }
.ac-evlist__k { color: var(--paper-fg-muted); font-size: 11px; grid-column: 1 / -1; }
.ac-evlist--plain > li { display: block; background: none; border: 0; padding: 0 0 0 var(--space-4); position: relative; line-height: var(--leading-normal); }
.ac-evlist--plain > li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 7px; height: 1px; background: var(--paper-fg-muted); }
.ac-formula { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; padding: var(--space-3); background: var(--paper-bg-raised); border: 1px solid var(--paper-border-strong); border-radius: var(--radius-sm); white-space: pre; overflow-x: auto; font-variant-numeric: var(--num-data); color: var(--paper-fg); }
.ac-formula b { font-weight: 600; }
.ac-pane__back { display: none; }
.ac-pane[data-has-back="true"] .ac-pane__back { display: inline-flex; }
.ac-pane .ac-btn--secondary { background: var(--paper-bg-raised); border-color: var(--paper-border-strong); }
.ac-pane .ac-src { background: var(--paper-bg-inset); border-color: var(--paper-border); color: var(--paper-fg-muted); }

/* ========== Evidence chain (ownership path drawn in the evidence-line language) ==========
   Desktop: nodes and edges on a 5-column grid; the target company spans two rows so a second
   holder can attach from below. Brackets under the chain carry the calculation (dotted) and the
   interpretation (dashed). Below 720px everything stacks vertically in DOM order. */
.ac-chain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(6.5rem, 0.75fr) minmax(0, 1fr) minmax(6.5rem, 0.75fr) minmax(0, 1fr); align-items: center; gap: var(--space-3) 0; margin: 0; padding: 0; list-style: none; }
.ac-chain__node { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 10px 12px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-md); box-shadow: var(--elev-1); min-width: 0; }
.ac-chain__node--target { border-color: var(--slate-900); box-shadow: 0 0 0 1px var(--slate-900), var(--elev-2); }
.ac-chain__glyph { grid-row: span 2; width: 12px; height: 12px; flex: none; }
.ac-chain__node--person .ac-chain__glyph { border-radius: 50%; border: 2.5px solid var(--indigo-600); }
.ac-chain__node--company .ac-chain__glyph { background: var(--slate-900); border-radius: 2px; }
.ac-chain__node--holding .ac-chain__glyph { border-radius: 50%; background: var(--slate-900); }
.ac-chain__name { font-weight: var(--weight-semibold); color: var(--fg-strong); line-height: 1.3; overflow-wrap: anywhere; }
.ac-chain__meta { font-size: 11px; color: var(--fg-subtle); font-variant-numeric: var(--num-data); line-height: 1.35; }
.ac-chain__edge { display: grid; grid-template-rows: auto 2px auto; justify-items: center; align-items: center; gap: 5px; padding: 0 2px; min-width: 0; text-align: center; font-size: var(--text-xs); }
.ac-chain__line { position: relative; width: 100%; height: 2px; background-repeat: repeat-x; transform-origin: left center; }
.ac-chain__line::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--_c, var(--slate-500)); border-right: 0; }
.ac-chain__line--fact { background: var(--ev-fact-line); --_c: var(--ev-fact-line); }
.ac-chain__line--calc { background-image: radial-gradient(circle at 1px 1px, var(--ev-calc-line) 0.95px, transparent 1.2px); background-size: var(--ev-calc-pitch) 2px; --_c: var(--ev-calc-line); }
.ac-chain__line--interp { background-image: linear-gradient(90deg, var(--ev-interp-line) 0 var(--ev-interp-dash), transparent var(--ev-interp-dash)); background-size: var(--ev-interp-pitch) 2px; --_c: var(--ev-interp-line); }
.ac-chain__cap { font-size: 11px; color: var(--fg-subtle); line-height: 1.3; }
.ac-chain__edge .ac-v { font-weight: var(--weight-semibold); }
.ac-chain__bracket { grid-column: 1 / -1; position: relative; display: flex; justify-content: center; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin: 0 11%; padding-top: var(--space-4); font-size: var(--text-xs); color: var(--fg-muted); text-align: center; }
.ac-chain__bracket::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border: 0 solid var(--slate-400); border-width: 0 1px; background-repeat: repeat-x; background-position: 0 100%; transform-origin: left center; }
.ac-chain__bracket--calc::before { background-image: radial-gradient(circle at 1px 1px, var(--ev-calc-line) 0.95px, transparent 1.2px); background-size: var(--ev-calc-pitch) 2px; border-color: var(--ev-calc-line); }
.ac-chain__bracket--interp::before { background-image: linear-gradient(90deg, var(--ev-interp-line) 0 var(--ev-interp-dash), transparent var(--ev-interp-dash)); background-size: var(--ev-interp-pitch) 2px; border-color: var(--ev-interp-line); }
.ac-chain__bracket .ac-v { font-weight: var(--weight-semibold); }
/* placement (desktop) */
.ac-chain [data-at="a"] { grid-column: 1; grid-row: 1; }
.ac-chain [data-at="ab"] { grid-column: 2; grid-row: 1; }
.ac-chain [data-at="b"] { grid-column: 3; grid-row: 1; }
.ac-chain [data-at="bt"] { grid-column: 4; grid-row: 1; }
.ac-chain [data-at="t"] { grid-column: 5; grid-row: 1 / span 2; align-self: stretch; align-content: center; }
.ac-chain [data-at="ct"] { grid-column: 4; grid-row: 2; }
.ac-chain [data-at="c"] { grid-column: 3; grid-row: 2; }
.ac-chain [data-at="x1"] { grid-row: 3; }
.ac-chain [data-at="x2"] { grid-row: 4; }
.ac-chain__arrow-up { display: none; }
/* Draw-in once (UX-022) */
.ac-chain--draw .ac-chain__line, .ac-chain--draw .ac-chain__bracket::before { animation: ac-grow var(--dur-draw) var(--ease-draw) both; }
.ac-chain--draw [data-at="bt"] .ac-chain__line { animation-delay: calc(var(--dur-draw) * 0.45); }
.ac-chain--draw [data-at="ct"] .ac-chain__line { animation-delay: calc(var(--dur-draw) * 0.6); }
.ac-chain--draw [data-at="x1"]::before { animation-delay: calc(var(--dur-draw) * 0.9); }
.ac-chain--draw [data-at="x2"]::before { animation-delay: calc(var(--dur-draw) * 1.2); }
@keyframes ac-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .ac-chain--draw .ac-chain__line, .ac-chain--draw .ac-chain__bracket::before { animation: none; } }
@media (max-width: 719px) {
  .ac-chain { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ac-chain > * { grid-column: 1 !important; grid-row: auto !important; }
  .ac-chain [data-at="t"] { align-self: auto; }
  .ac-chain__edge { grid-template-rows: none; grid-template-columns: 2px minmax(0, 1fr); justify-items: start; text-align: left; gap: 0 var(--space-4); padding: 0 0 0 17px; min-height: 52px; }
  .ac-chain__edge > :first-child { grid-column: 2; grid-row: 1; align-self: end; }
  .ac-chain__edge .ac-chain__cap { grid-column: 2; grid-row: 2; align-self: start; }
  .ac-chain__line { grid-column: 1; grid-row: 1 / span 2; width: 2px; height: 100%; min-height: 52px; transform-origin: center top; }
  .ac-chain__line--calc { background-image: radial-gradient(circle at 1px 1px, var(--ev-calc-line) 0.95px, transparent 1.2px); background-size: 2px var(--ev-calc-pitch); background-repeat: repeat-y; }
  .ac-chain__line--interp { background-image: linear-gradient(180deg, var(--ev-interp-line) 0 var(--ev-interp-dash), transparent var(--ev-interp-dash)); background-size: 2px var(--ev-interp-pitch); background-repeat: repeat-y; }
  .ac-chain__line::after { right: auto; left: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top: 7px solid var(--_c, var(--slate-500)); border-bottom: 0; }
  .ac-chain__edge--up .ac-chain__line::after { bottom: auto; top: -1px; border-top: 0; border-bottom: 7px solid var(--_c, var(--slate-500)); }
  .ac-chain__bracket { margin: var(--space-4) 0 0; justify-content: flex-start; text-align: left; }
  .ac-chain__bracket + .ac-chain__bracket { margin-top: var(--space-3); }
  @keyframes ac-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  .ac-chain--draw .ac-chain__bracket::before { animation: none; }
}

/* Ownership chain in Evidence mode: one labelled source chip per link */
.ac-chain__sources { flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px dashed var(--border-hairline); font-size: var(--text-2xs); color: var(--fg-muted); }
.ac-chain__src { display: inline-flex; align-items: center; gap: var(--space-2); }
.ac-error__actions a { display: inline-flex; align-items: center; min-height: 24px; }

/* Paper surfaces re-map the neutral text roles so meta text is always paper-safe (UX-020) */
.ac-pane, .ac-paper, .ac-excerpt { --fg-subtle: var(--paper-fg-muted); --fg-muted: var(--paper-fg-muted); }

/* ========== Mobile menu (disclosure below 1024px): navigation, search and language paths ========== */
.ac-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-surface); border-bottom: 1px solid var(--border-hairline); box-shadow: var(--shadow-md, 0 8px 24px rgba(15,23,42,.08)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.ac-menu[hidden] { display: none; }
.ac-menu__inner { display: grid; gap: var(--space-5); padding-block: var(--space-4) var(--space-6); }
.ac-menu__label { font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-subtle); margin: 0 0 var(--space-2); }
.ac-menu__nav { display: grid; }
.ac-menu__nav a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-2); margin: 0 calc(var(--space-2) * -1); border-radius: var(--radius-md); color: var(--fg-strong); text-decoration: none; font-weight: var(--weight-medium); }
.ac-menu__nav a:hover { background: var(--bg-muted); }
.ac-menu__nav a[aria-current="page"] { background: var(--bg-muted); }
.ac-menu__langs { display: grid; gap: var(--space-1); }
.ac-menu__langs a { display: grid; grid-template-columns: 2.5rem 1fr; align-items: center; min-height: 44px; color: var(--fg-strong); text-decoration: none; }
.ac-menu__langs a b { font-size: var(--text-2xs); font-weight: var(--weight-semibold); }
.ac-menu__langs a span { display: flex; flex-direction: column; }
.ac-menu__langs a small { font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle); word-break: break-all; }
.ac-menu__langs a[aria-current="true"] b::after { content: " \2713"; }
@media (min-width: 1024px) { .ac-menu { display: none !important; } }

/* Pane value and claim (moved from the concept builds into the system) */
.ac-pane__value { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.25; font-weight: 600; color: var(--paper-fg); font-variant-numeric: tabular-nums lining-nums; overflow-wrap: anywhere; }
.ac-pane__claim { font-family: var(--font-report); font-size: 1rem; line-height: 1.55; color: var(--paper-fg); }
.ac-json { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; }

/* UX-025 changed vs checked, compact row form. Stale is derived from the checked date. */
/* Regulatory action row: action button plus its legal basis and due date (UX-024). Due dates are indigo text, never amber/red. */
.ac-nw { white-space: nowrap; }
.ac-cc { display: inline-flex; flex-wrap: wrap; gap: 0 var(--space-3); font-size: 11px; line-height: 1.5; color: var(--fg-subtle); font-variant-numeric: var(--num-data); }
.ac-cc > span { white-space: nowrap; }
.ac-cc--stale .ac-cc__chk { color: var(--state-stale-fg); font-weight: var(--weight-semibold); }
.ac-fin tr.ac-fin__dates th, .ac-fin tr.ac-fin__dates td { padding-block: var(--space-1) var(--space-2); font-weight: var(--weight-regular); font-size: 11px; color: var(--fg-subtle); vertical-align: top; }
.ac-fin tr.ac-fin__dates .ac-cc { flex-direction: column; align-items: flex-end; }

/* ------------------------------------------------------------------ v0.3 additions (UX-024, UX-026)
   Forms, steps, deadline, paper sheets, admin shell and audit chain. Built from existing tokens only. */

/* Form fields */
.ac-field { display: grid; gap: 6px; }
.ac-field > label, .ac-field__label { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--fg-strong); }
.ac-field__help { font-size: var(--text-2xs); color: var(--fg-subtle); }
.ac-input, .ac-select, .ac-textarea { width: 100%; min-height: var(--control-md); padding: 0 var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-surface); color: var(--fg-strong); font: inherit; font-size: var(--text-sm); }
.ac-textarea { min-height: 6.5rem; padding: var(--space-2) var(--space-3); line-height: 1.5; resize: vertical; }
.ac-input:focus-visible, .ac-select:focus-visible, .ac-textarea:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 1px; border-color: var(--indigo-600); }
.ac-input[readonly] { background: var(--slate-50); color: var(--fg-muted); font-family: var(--font-mono); font-size: var(--text-xs); }
.ac-copyfield { display: flex; gap: var(--space-2); }
.ac-copyfield .ac-input { flex: 1; min-width: 0; }
.ac-check { display: flex; align-items: flex-start; gap: var(--space-3); min-height: 24px; font-size: var(--text-sm); color: var(--fg-default); cursor: pointer; }
.ac-check input { width: 24px; height: 24px; margin: -2px 0 0; accent-color: var(--indigo-600); flex: none; }
.ac-check small { display: block; color: var(--fg-subtle); font-size: var(--text-2xs); margin-top: 2px; }
.ac-switch { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 24px; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-size: var(--text-sm); color: var(--fg-strong); text-align: left; }
.ac-switch__sw { position: relative; width: 34px; height: 20px; border-radius: var(--radius-pill); background: var(--slate-300); flex: none; transition: background var(--dur-fast, 120ms); }
.ac-switch__sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--elev-1); transition: transform var(--dur-fast, 120ms); }
.ac-switch[aria-checked="true"] .ac-switch__sw { background: var(--indigo-600); }
.ac-switch[aria-checked="true"] .ac-switch__sw::after { transform: translateX(14px); }

/* Neutral status label for settings and trust claims (never amber/red: those stay reserved) */
.ac-flag { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-hairline); background: var(--bg-surface); font-size: var(--text-2xs); font-weight: var(--weight-semibold); color: var(--fg-muted); white-space: nowrap; }
.ac-flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.ac-flag--on { color: var(--indigo-700); border-color: var(--indigo-200); background: var(--indigo-50); }
.ac-flag--on::before { background: currentColor; }
.ac-flag--planned::before { border-style: dotted; }

/* Steps */
.ac-steps { display: flex; gap: var(--space-2); counter-reset: acstep; flex-wrap: wrap; }
.ac-steps li { counter-increment: acstep; display: flex; align-items: center; gap: var(--space-2); min-height: 32px; padding: 0 var(--space-3) 0 6px; border-radius: var(--radius-pill); background: var(--slate-100); color: var(--fg-muted); font-size: var(--text-xs); font-weight: var(--weight-medium); }
.ac-steps li::before { content: counter(acstep); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-surface); border: 1px solid var(--border-default); font-size: 11px; font-weight: var(--weight-semibold); font-variant-numeric: var(--num-data); }
.ac-steps li[data-done]::before { content: "\2713"; background: var(--slate-900); border-color: var(--slate-900); color: #fff; }
.ac-steps li[aria-current="step"] { background: var(--indigo-50); color: var(--indigo-700); box-shadow: inset 0 0 0 1px var(--indigo-200); }
.ac-steps li[aria-current="step"]::before { background: var(--indigo-600); border-color: var(--indigo-600); color: #fff; }
.ac-steps a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.ac-steps a:hover { text-decoration: underline; }

/* Deadline: a counted duty. Indigo, never amber/red (those mean stale/conflicting data only). */
.ac-deadline { display: grid; gap: var(--space-2); }
.ac-deadline__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.ac-deadline__left { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; letter-spacing: var(--tracking-tight); color: var(--fg-strong); font-variant-numeric: var(--num-data); }
.ac-deadline__track { display: grid; grid-template-columns: repeat(var(--_n, 14), 1fr); gap: 3px; }
.ac-deadline__track span { height: 8px; border-radius: 2px; background: var(--slate-100); box-shadow: inset 0 0 0 1px var(--slate-200); }
.ac-deadline__track span[data-past] { background: var(--indigo-600); box-shadow: none; }
.ac-deadline__track span[data-today] { background: var(--indigo-300, #a5b4fc); box-shadow: inset 0 0 0 1.5px var(--indigo-700); }
.ac-deadline__meta { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-2xs); color: var(--fg-subtle); font-variant-numeric: var(--num-data); flex-wrap: wrap; }

/* Paper sheets: export and report previews. Ivory like the pane and documents. */
.ac-sheet { --fg-subtle: var(--paper-fg-muted); --fg-muted: var(--paper-fg-muted); background: var(--paper-bg-raised); color: var(--paper-fg); border: 1px solid var(--paper-border-strong); border-radius: var(--radius-sm); box-shadow: var(--elev-2); padding: clamp(1.25rem, 4vw, 3rem); }
.ac-sheet + .ac-sheet { margin-top: var(--space-6); }
.ac-sheet__run { display: flex; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-3); margin-bottom: var(--space-6); border-bottom: 1px solid var(--paper-border); font-size: 11px; color: var(--paper-fg-muted); flex-wrap: wrap; }
.ac-sheet__foot { display: flex; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); margin-top: var(--space-8); border-top: 1px solid var(--paper-border); font-size: 11px; color: var(--paper-fg-muted); font-variant-numeric: var(--num-data); flex-wrap: wrap; }
.ac-sheet h2, .ac-sheet h3 { color: var(--paper-fg); }
.ac-sheet .ac-kv dt, .ac-sheet .ac-kv dd { border-color: var(--paper-border); }
.ac-sheet .ac-kv dt { color: var(--paper-fg-muted); }
.ac-sheet .ac-kv dd { color: var(--paper-fg); }
.ac-sheet table { width: 100%; border-collapse: collapse; font-size: var(--text-xs); }
.ac-sheet th, .ac-sheet td { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3) var(--space-2) 0; border-bottom: 1px solid var(--paper-border); }
.ac-sheet thead th { font-size: 11px; font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--paper-fg-muted); }
.ac-typeglyph { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; font-weight: var(--weight-semibold); }
.ac-typeglyph::before { content: ""; width: 16px; border-top: 2px solid var(--ev-fact-line, currentColor); }
.ac-typeglyph--calc::before { border-top-style: dotted; }
.ac-typeglyph--interp::before { border-top-style: dashed; border-top-color: var(--indigo-600); }
.ac-typeglyph--absent::before { width: 8px; height: 8px; border: 1.5px dashed currentColor; border-radius: 50%; }

/* Admin shell (UX-026) */
.ac-admin { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-10); padding-block: var(--space-8) var(--space-16); }
.ac-admin__nav { position: sticky; top: calc(var(--header-h, 56px) + var(--space-6)); align-self: start; display: grid; gap: var(--space-1); }
.ac-admin__nav a { display: flex; align-items: center; min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-md); color: var(--fg-muted); text-decoration: none; font-size: var(--text-sm); font-weight: var(--weight-medium); }
.ac-admin__nav a:hover { background: var(--slate-100); color: var(--fg-strong); }
.ac-admin__nav a[aria-current="page"] { background: var(--indigo-50); color: var(--indigo-700); }
.ac-admin__org { padding: 0 var(--space-3) var(--space-3); margin-bottom: var(--space-2); border-bottom: 1px solid var(--border-hairline); }
.ac-admin__org strong { display: block; font-size: var(--text-sm); color: var(--fg-strong); }
.ac-admin__org span { font-size: var(--text-2xs); color: var(--fg-subtle); }
@media (max-width: 899px) {
  .ac-admin { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-6) var(--space-12); }
  .ac-admin__nav, .ac-admin__nav[data-scroll-x] { position: relative; top: auto; display: flex; overflow-x: auto; gap: var(--space-1); border-bottom: 1px solid var(--border-hairline); padding-bottom: var(--space-2); }
  .ac-admin__nav a { white-space: nowrap; flex: none; }
  .ac-admin__org { display: none; }
}

/* Audit chain: each entry carries the hash of the previous one (tamper-evident). */
.ac-chainhash { font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle); white-space: nowrap; }
.ac-chainhash b { color: var(--fg-muted); font-weight: 500; }

@media print {
  .ac-sheet { box-shadow: none; border: 0; padding: 0; border-radius: 0; }
  .ac-sheet + .ac-sheet { margin-top: 0; break-before: page; }
}

/* Compact header below 768 px: short Evidence label, no key hint, language switch moves into the menu. */
.ac-evtoggle__short { display: none; }
@media (max-width: 767px) {
  .ac-header .ac-lang { display: none; }
  .ac-evtoggle .ac-kbd, .ac-evtoggle__long { display: none; }
  .ac-evtoggle__short { display: inline; }
  .ac-header .ac-logo svg { height: 24px; }
  .ac-header .ac-logo--b svg { height: 26px; }
  .ac-header .ac-logo--gs svg { height: 30px; }
}
@media (max-width: 374px) { .ac-header .ac-logo--gs svg { height: 26px; } }

/* Horizontal scroll regions contain their own visually hidden text, so it never widens the page. */
[data-scroll-x], .ac-table-wrap { position: relative; }

/* ==========================================================================
   v0.4 additions (UX-028 to UX-033): cross-border sample, network, modules
   ========================================================================== */

/* Jurisdiction code. Two letters in a ruled box, never a flag (no emoji, no national symbols). */
.ac-jur { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 18px; padding: 0 4px; border: 1px solid var(--slate-300); border-radius: var(--radius-xs); background: var(--bg-surface); font-family: var(--font-mono); font-size: 10.5px; font-weight: var(--weight-semibold); letter-spacing: 0.04em; color: var(--slate-700); line-height: 1; flex: none; font-variant-numeric: normal; }
.ac-jur--lg { min-width: 32px; height: 22px; font-size: 12px; }

/* Cross-border ownership path: a vertical ladder, top owner first, target last.
   The rule between two nodes carries the statement type (solid, dotted, dashed). */
.ac-xchain { position: relative; margin: 0; padding: 0; list-style: none; display: grid; }
.ac-xchain__node { position: relative; z-index: 1; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 2px var(--space-3); align-items: center; padding: 10px 14px 10px 10px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-md); box-shadow: var(--elev-1); min-width: 0; }
.ac-xchain__node .ac-jur { grid-row: span 2; justify-self: center; }
.ac-xchain__name { font-weight: var(--weight-semibold); color: var(--fg-strong); line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.ac-xchain__meta { grid-column: 2; font-size: 11.5px; color: var(--fg-subtle); line-height: 1.4; font-variant-numeric: var(--num-data); min-width: 0; overflow-wrap: anywhere; }
.ac-xchain__reg { grid-column: 3; grid-row: 1 / span 2; font-size: 11px; color: var(--fg-subtle); text-align: right; line-height: 1.35; max-width: 11rem; }
.ac-xchain__node--target { border-color: var(--slate-900); box-shadow: 0 0 0 1px var(--slate-900), var(--elev-2); }
.ac-xchain__node--person { border-style: dashed; border-color: var(--indigo-300); background: var(--indigo-25); box-shadow: none; }
.ac-xchain__node--person .ac-jur { border-color: var(--indigo-300); color: var(--indigo-700); }
.ac-xchain__node--gap { background: var(--bg-subtle); box-shadow: none; }
.ac-xchain__edge { position: relative; display: flex; align-items: center; gap: var(--space-2) var(--space-3); flex-wrap: wrap; min-height: 44px; padding: 6px 0 6px calc(2rem + 22px); font-size: var(--text-xs); color: var(--fg-muted); }
.ac-xchain__edge::before { content: ""; position: absolute; left: calc(10px + 1rem - 1px); top: 0; bottom: 0; width: 2px; background-repeat: repeat-y; }
.ac-xchain__edge--fact::before { width: 1.5px; background: var(--ev-fact-line); }
.ac-xchain__edge--calc::before { background-image: radial-gradient(circle at 1px 1px, var(--ev-calc-line) 0.95px, transparent 1.2px); background-size: 2px var(--ev-calc-pitch); }
.ac-xchain__edge--interp::before { background-image: linear-gradient(180deg, var(--ev-interp-line) 0 var(--ev-interp-dash), transparent var(--ev-interp-dash)); background-size: 2px var(--ev-interp-pitch); }
.ac-xchain__edge::after { content: ""; position: absolute; left: calc(10px + 1rem - 5px); bottom: -1px; border: 5px solid transparent; border-top: 6px solid var(--_c, var(--slate-700)); border-bottom: 0; }
.ac-xchain__edge--interp { --_c: var(--ev-interp-line); color: var(--indigo-700); }
.ac-xchain__edge--calc { --_c: var(--ev-calc-line); }
.ac-xchain__edge .ac-v { font-weight: var(--weight-semibold); }
.ac-xchain__cap { color: var(--fg-subtle); }
.ac-xchain__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); margin-top: var(--space-4); padding-top: var(--space-3); font-size: var(--text-xs); color: var(--fg-muted); border-top: 2px solid transparent; background-repeat: repeat-x; background-position: 0 0; }
.ac-xchain__sum--calc { background-image: radial-gradient(circle at 1px 1px, var(--ev-calc-line) 0.95px, transparent 1.2px); background-size: var(--ev-calc-pitch) 2px; }
.ac-xchain__sum .ac-v { font-weight: var(--weight-semibold); }
.ac-xchain--draw .ac-xchain__edge::before { animation: ac-grow-y var(--dur-draw) var(--ease-draw) both; transform-origin: center top; }
.ac-xchain--draw .ac-xchain__edge:nth-of-type(2)::before { animation-delay: calc(var(--dur-draw) * 0.2); }
.ac-xchain--draw .ac-xchain__edge:nth-of-type(3)::before { animation-delay: calc(var(--dur-draw) * 0.4); }
.ac-xchain--draw .ac-xchain__edge:nth-of-type(4)::before { animation-delay: calc(var(--dur-draw) * 0.6); }
@keyframes ac-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .ac-xchain--draw .ac-xchain__edge::before { animation: none; transform: none; } }
@media (max-width: 559px) {
  .ac-xchain__node { grid-template-columns: 2rem minmax(0, 1fr); }
  .ac-xchain__reg { grid-column: 2; grid-row: auto; text-align: left; max-width: none; }
}

/* Network graph. Nodes and edge labels are HTML value buttons placed over an SVG edge layer.
   x runs 0 to 1000 across the stage width, y is in pixels of a fixed-height stage, so node boxes
   never scale and strokes stay crisp (non-scaling-stroke). Below 760px of container width the
   graph gives way to the typed relationship list, which is always the accessible equivalent. */
.ac-net { container: net / inline-size; position: relative; }
.ac-net__stage { position: relative; width: 100%; }
.ac-net__edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ac-net__edges line, .ac-net__edges path { fill: none; stroke-linecap: round; }
.ac-net__e--fact { stroke: var(--slate-700); stroke-width: 1.6; }
.ac-net__e--calc { stroke: var(--slate-500); stroke-width: 2.2; stroke-dasharray: 0.1 6; }
.ac-net__e--interp { stroke: var(--indigo-600); stroke-width: 2; stroke-dasharray: 8 6; stroke-linecap: butt; }
.ac-net__e--gap { stroke: var(--slate-300); stroke-width: 1.4; stroke-dasharray: 2 4; stroke-linecap: butt; }
.ac-net__edges marker path { fill: var(--slate-700); stroke: none; }
.ac-net__n { position: absolute; transform: translate(-50%, -50%); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1px 8px; align-items: center; width: max-content; max-width: 15rem; padding: 7px 10px 7px 8px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-md); box-shadow: var(--elev-1); text-align: left; font: inherit; color: var(--fg-default); cursor: pointer; }
.ac-net__n .ac-jur { grid-row: span 2; }
.ac-net__n b { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--fg-strong); line-height: 1.25; }
.ac-net__n small { font-size: 11px; color: var(--fg-subtle); line-height: 1.3; font-variant-numeric: var(--num-data); }
.ac-net__n:hover { border-color: var(--slate-400); background: var(--ev-hover-bg); }
.ac-net__n:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ac-net__n[aria-expanded="true"] { border-color: var(--indigo-600); box-shadow: 0 0 0 1px var(--indigo-600), var(--elev-2); }
.ac-net__n--target { border-color: var(--slate-900); box-shadow: 0 0 0 1px var(--slate-900), var(--elev-2); }
.ac-net__n--person { border-radius: var(--radius-pill); padding-inline: 8px 14px; border-color: var(--indigo-300); background: var(--indigo-25); }
.ac-net__n--person.ac-net__n--interp { border-style: dashed; }
.ac-net__n--id { border-style: dotted; border-width: 1.5px; border-color: var(--slate-500); background: var(--bg-subtle); box-shadow: none; }
.ac-net__n--gap { border-style: dashed; border-color: var(--slate-300); background: var(--bg-subtle); box-shadow: none; color: var(--fg-muted); }
.ac-net__l { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 4px; padding: 0 2px; background: var(--_lbg, var(--bg-surface)); border-radius: var(--radius-xs); font-size: 11px; line-height: 1.2; color: var(--fg-muted); white-space: nowrap; }
.ac-net__l .ac-v, .ac-net__l .ac-state { font-size: 11px; }
.ac-net__l .ac-state { height: 20px; }
.ac-net__legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-3); font-size: var(--text-2xs); color: var(--fg-muted); }
.ac-net__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ac-net__legend i { display: inline-block; width: 22px; height: 0; border-top: 1.6px solid var(--slate-700); }
.ac-net__legend i.c { border-top: 2px dotted var(--slate-500); }
.ac-net__legend i.p { border-top: 2px dashed var(--indigo-600); }
.ac-net__legend i.g { border-top: 1.5px dashed var(--slate-300); }
.ac-net__list { display: none; }
@container net (max-width: 759px) {
  .ac-net__stage, .ac-net__legend { display: none; }
  .ac-net__list { display: block; }
}
.ac-net--draw .ac-net__edges line, .ac-net--draw .ac-net__edges path { animation: ac-fade-in var(--dur-draw) var(--ease-draw) both; }
@keyframes ac-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ac-net--draw .ac-net__edges line, .ac-net--draw .ac-net__edges path { animation: none; } }

/* Typed relationship list (graph fallback and the R3 relationship table on small screens). */
.ac-rlist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-hairline); }
.ac-rlist li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; padding: var(--space-3) 0; border-bottom: 1px solid var(--border-hairline); font-size: var(--text-xs); }
.ac-rlist__pair { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--fg-strong); font-weight: var(--weight-medium); }
.ac-rlist__rel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--fg-muted); }

/* Relationship type marker used in tables: a short rule in the statement's line style. */
.ac-rtype { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-2xs); color: var(--fg-muted); white-space: nowrap; }
.ac-rtype::before { content: ""; width: 18px; height: 2px; flex: none; background-repeat: repeat-x; }
.ac-rtype--fact::before { height: 1.5px; background: var(--ev-fact-line); }
.ac-rtype--calc::before { background-image: radial-gradient(circle at 1px 1px, var(--ev-calc-line) 0.95px, transparent 1.2px); background-size: var(--ev-calc-pitch) 2px; }
.ac-rtype--interp { color: var(--indigo-700); }
.ac-rtype--interp::before { background-image: linear-gradient(90deg, var(--ev-interp-line) 0 var(--ev-interp-dash), transparent var(--ev-interp-dash)); background-size: var(--ev-interp-pitch) 2px; }
.ac-rtype--gap::before { height: 0; border-top: 1.5px dashed var(--slate-300); }

/* Withheld (proposed seventh absence state): AssetCensus holds the data but does not publish it yet
   (validation or privacy review pending). Glyph: a closed folder with a bar. Needs an owner decision. */
.ac-state--withheld { color: var(--slate-700); background: var(--slate-50); border-color: var(--slate-300); border-style: dashed;
  --_glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4'%3E%3Crect x='1.5' y='2.5' width='9' height='7' rx='1'/%3E%3Cpath d='M1.5 6h9'/%3E%3C/svg%3E"); }

/* Typed data module: a slot for a data family (sanctions, risk, real estate, digital footprint).
   The header always carries a state, so an empty module reads as checked, not collected or withheld. */
.ac-module { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-5); background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); min-width: 0; }
.ac-module--empty { background: var(--bg-subtle); }
.ac-module__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); }
.ac-module__title { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--fg-strong); }
.ac-module__body { font-size: var(--text-xs); line-height: 1.6; color: var(--fg-default); }
.ac-module__body p + p { margin-top: var(--space-2); }
.ac-module__foot { font-size: var(--text-2xs); color: var(--fg-subtle); }
.ac-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--space-4); }

/* Gated content (plan) placeholder: shows where a paid module sits without implying data. */
.ac-gate { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-3) var(--space-4); border: 1px dashed var(--slate-300); border-radius: var(--radius-md); font-size: var(--text-xs); color: var(--fg-muted); background: var(--bg-subtle); }

/* Admin nav: keep sticky on desktop; [data-scroll-x] above sets position: relative for scroll hints. */
@media (min-width: 900px) { .ac-admin__nav[data-scroll-x] { position: sticky; } }

/* Prototype note: shown when a sample-only action is submitted */
.ac-proto-note { display: flex; gap: var(--space-2); align-items: baseline; margin: var(--space-2) 0 0; padding: var(--space-2) var(--space-3); font-size: var(--text-sm); line-height: 1.5; color: var(--fg-default); background: var(--slate-50); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); }
.ac-proto-note b { flex: none; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-muted); }

/* Deep-link targets clear the sticky header; tab panels also clear a sticky tab strip */
[id] { scroll-margin-top: calc(var(--header-h, 56px) + var(--space-4)); }
[role="tabpanel"] { scroll-margin-top: calc(var(--header-h, 56px) + 64px); }

/* AssetCensus design system v1: release layer for the Worker templates (rx-*).
   Built on tokens.css and components.css. Light only (UX-005). No new colours. */

body { background: var(--bg-canvas); }
main { display: block; }
.rx-evbar { display: flex; flex-wrap: wrap; gap: 4px var(--space-3); align-items: baseline; padding-block: var(--space-2); font-size: var(--text-xs); }
.rx-hsearch { width: min(22rem, 30vw); }
.ac-logo__img { display: block; height: 34px; width: auto; }
.rx-staging { background: var(--amber-50); color: var(--amber-900, var(--amber-800)); border-bottom: 1px solid var(--amber-300); font-size: var(--text-xs); padding: var(--space-2) 0; }
.rx-staging b { margin-right: var(--space-2); }

/* -------------------------------------------------------------- mast */
.rx-mast { padding: var(--space-5) 0 var(--space-4); background: var(--bg-surface); border-bottom: 1px solid var(--border-hairline); }
.rx-mast .ac-crumbs { margin-bottom: var(--space-3); }
.rx-titlerow { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-3) var(--space-6); }
.rx-title { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; font-size: clamp(1.625rem, 1.3rem + 0.9vw, 2.125rem); overflow-wrap: anywhere; }
.rx-title .ac-jur { flex: none; }
.rx-title--page { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.rx-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: var(--space-2) 0 var(--space-3); color: var(--fg-muted); font-size: var(--text-sm); }
.rx-sub > span + span::before { content: "\00B7"; margin-right: 8px; color: var(--fg-subtle); }
.rx-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.rx-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.rx-intro { max-width: var(--measure-prose, 68ch); margin-top: var(--space-2); color: var(--fg-default); font-size: var(--text-md); line-height: 1.6; }
.rx-mast .ac-legend { margin-top: var(--space-3); }

/* -------------------------------------------------------------- finding band (C3) */
.rx-band { background: var(--paper-bg); border-bottom: 1px solid var(--paper-border); }
.rx-bandgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: var(--space-10); padding-block: var(--space-6); align-items: start; }
.rx-bandgrid--one { grid-template-columns: minmax(0, 1fr); }
.rx-kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--space-3); margin-bottom: var(--space-2); }
.rx-kicker .ac-eyebrow { color: var(--paper-fg-muted); }
.rx-since { font-size: var(--text-2xs); color: var(--paper-fg-muted); }
.rx-claim { font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.32; font-weight: 600; color: var(--paper-fg); max-width: 40ch; text-wrap: pretty; }
.rx-claim .ac-v { font: inherit; line-height: inherit; text-align: left; white-space: normal; }
.rx-claim .ac-itag { font-family: var(--font-sans); font-size: var(--text-2xs); font-weight: var(--weight-medium); vertical-align: 0.25em; margin-left: 6px; white-space: nowrap; }
.rx-lede { margin-top: var(--space-3); max-width: 64ch; font-size: var(--text-sm); line-height: 1.65; color: var(--paper-fg); }
.rx-note { margin-top: var(--space-2); font-size: var(--text-2xs); color: var(--paper-fg-muted); }
.rx-bfacts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: var(--space-2) var(--space-8); margin-top: var(--space-4); }
.rx-bfacts dt { font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--paper-fg-muted); }
.rx-bfacts dd { margin-top: 2px; font-size: var(--text-xs); color: var(--paper-fg); }
.rx-jumps { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-4); font-size: var(--text-sm); }
.rx-jumps a { color: var(--fg-accent); text-decoration: none; font-weight: var(--weight-medium); }
.rx-jumps a:hover { text-decoration: underline; }

/* Network figure in the band */
.rx-netfig { margin: 0; padding: var(--space-4) var(--space-5) var(--space-4); background: var(--bg-surface); border: 1px solid var(--paper-border-strong); border-radius: var(--radius-lg); min-width: 0; }
.rx-figcap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px var(--space-4); margin-bottom: var(--space-3); font-size: var(--text-2xs); color: var(--fg-subtle); }
.rx-figcap .ac-eyebrow { color: var(--fg-strong); }
.rx-netmore { margin-top: var(--space-3); font-size: var(--text-xs); }
.rx-netmore a { color: var(--fg-accent); font-weight: var(--weight-medium); text-decoration: none; }
.rx-netmore a:hover { text-decoration: underline; }
.ac-net__n { max-width: 12.5rem; text-decoration: none; color: inherit; }
a.ac-net__n:hover { border-color: var(--slate-400); background: var(--ev-hover-bg); }
.ac-net__n b { overflow-wrap: anywhere; }
.ac-net__n--more { border-style: dashed; background: var(--bg-subtle); box-shadow: none; }
.ac-net__listhead { font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-subtle); margin-bottom: var(--space-2); }
.rx-hold { display: grid; gap: var(--space-2); padding: var(--space-5); border: 1px dashed var(--border-default); border-radius: var(--radius-md); background: var(--bg-subtle); font-size: var(--text-xs); color: var(--fg-muted); }
.rx-hold b { color: var(--fg-strong); font-size: var(--text-sm); }

/* -------------------------------------------------------------- records grid and sections */
.rx-body { padding-top: var(--space-6); padding-bottom: var(--space-16, 4rem); container: rxbody / inline-size; }
/* Record cards follow the width actually available to the content (container queries), not the viewport, so an open
   evidence pane, which narrows the content, also reduces the column count. Three columns need about 1080px of content
   width, two need about 760px; below that the cards stack. */
.rx-records { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.rx-records--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rx-records > * { min-width: 0; }
@container rxbody (max-width: 1080px) { .rx-records { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .rx-records > .rx-wide { grid-column: 1 / -1; } }
@container rxbody (max-width: 760px) { .rx-records, .rx-records--2, .rx-records--1 { grid-template-columns: minmax(0, 1fr); } }
/* Safety net: a card narrower than 340px stacks each label above its value instead of squeezing the label column. */
.rx-card { container: rxcard / inline-size; }
@container rxcard (max-width: 340px) {
  .rx-card .ac-facts, .rx-card .ac-facts tbody, .rx-card .ac-facts tr, .rx-card .ac-facts th, .rx-card .ac-facts td { display: block; width: auto !important; }
  .rx-card .ac-facts tbody th { border-bottom: 0; padding-bottom: 2px; font-size: var(--text-xs); }
  .rx-card .ac-section__body--flush .ac-facts td { padding-left: var(--space-5); padding-right: var(--space-5); padding-top: 0; }
}
.rx-card .ac-section__body--flush .ac-facts th { width: 40%; }
.rx-card .ac-facts td { overflow-wrap: anywhere; }
/* Labels wrap only between words: a label column never breaks inside a word (G6-R1). */
.rx-card .ac-facts th { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.rx-card .ac-facts td .ac-v { white-space: normal; text-align: left; }
.rx-card .ac-section__title { font-size: var(--text-sm); }
.rx-sub2 { display: block; margin-top: 2px; font-size: var(--text-2xs); color: var(--fg-subtle); }

.rx-jump { position: sticky; top: var(--header-h); z-index: var(--z-sticky); margin: var(--space-10) 0 var(--space-2); background: var(--bg-canvas); }
.rx-jump .ac-tabs { gap: 0; }
.rx-jump a.ac-tab { text-decoration: none; }
.rx-secs { display: grid; gap: var(--space-10); padding-top: var(--space-4); }
.rx-sec { min-width: 0; scroll-margin-top: calc(var(--header-h) + 64px); }
.rx-sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px var(--space-4); margin-bottom: var(--space-3); padding-bottom: var(--space-2); border-bottom: 1px solid var(--border-strong, var(--slate-900)); }
.rx-h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--fg-strong); letter-spacing: -0.01em; }
.rx-meta { font-size: var(--text-2xs); color: var(--fg-subtle); }
.rx-p { max-width: 72ch; font-size: var(--text-sm); line-height: 1.65; color: var(--fg-default); }
.rx-p + .rx-p { margin-top: var(--space-2); }
.rx-muted { color: var(--fg-muted); font-size: var(--text-xs); }

/* Data tables */
.rx-table { width: 100%; font-size: var(--text-sm); background: var(--bg-surface); font-variant-numeric: var(--num-data); }
.rx-table th, .rx-table td { text-align: left; vertical-align: top; padding: 9px var(--space-3); border-bottom: 1px solid var(--slate-100); overflow-wrap: anywhere; }
.rx-table thead th { position: sticky; top: 0; font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-subtle); border-bottom: 1px solid var(--border-default); white-space: nowrap; background: var(--bg-surface); }
.rx-table tbody th { font-weight: var(--weight-regular); color: var(--fg-muted); }
.rx-table th:first-child, .rx-table td:first-child { padding-left: var(--space-4); }
.rx-table th:last-child, .rx-table td:last-child { padding-right: var(--space-4); }
.rx-table td.rx-num, .rx-table th.rx-num { text-align: right; white-space: nowrap; }
.rx-table .ac-v { white-space: normal; text-align: left; }
.rx-table a { color: var(--fg-strong); text-decoration: underline; text-decoration-color: var(--slate-300); text-underline-offset: 3px; }
.rx-table a:hover { text-decoration-color: currentColor; }
.rx-tbox { border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-surface); }
.rx-tbox .ac-table-wrap { border-radius: inherit; }
.rx-mono { font-family: var(--font-mono); font-size: 0.92em; }
.rx-lap { display: inline-flex; margin-left: 6px; vertical-align: 1px; }

/* Lists of entities (subsidiaries, siblings) */
.rx-elist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 0 var(--space-6); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-hairline); }
.rx-elist li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 2px var(--space-2); align-items: start; padding: var(--space-2) 0; border-bottom: 1px solid var(--border-hairline); font-size: var(--text-sm); min-width: 0; }
.rx-elist li .ac-jur { margin-top: 1px; }
.rx-elist a { color: var(--fg-strong); text-decoration: none; overflow-wrap: anywhere; }
.rx-elist a:hover { text-decoration: underline; }
.rx-elist small { grid-column: 2; font-size: var(--text-2xs); color: var(--fg-subtle); }
.rx-more { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--fg-muted); }
.rx-more a { color: var(--fg-accent); }

/* Typed notes (calculation checks, exceptions) */
.rx-notes { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-hairline); }
.rx-notes li { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-hairline); font-size: var(--text-sm); }
.rx-notes .ac-rtype { padding-top: 3px; white-space: normal; align-items: baseline; }
.rx-isins { display: flex; flex-wrap: wrap; gap: 6px; }
.rx-isins .ac-v { font-family: var(--font-mono); font-size: var(--text-xs); }
.rx-tl { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-hairline); }
.rx-tl li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--border-hairline); font-size: var(--text-sm); }
.rx-tl time { color: var(--fg-muted); font-variant-numeric: var(--num-data); }
.rx-srcs { display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.rx-srcs dt { font-weight: var(--weight-semibold); color: var(--fg-strong); }
.rx-srcs dd { color: var(--fg-muted); font-size: var(--text-xs); margin-bottom: var(--space-2); overflow-wrap: anywhere; }

/* Paper document card (original documents) */
.rx-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: var(--space-4); }
.rx-doc { display: grid; gap: var(--space-2); padding: var(--space-4); background: var(--paper-bg); border: 1px solid var(--paper-border); border-radius: var(--radius-md); color: var(--paper-fg); font-size: var(--text-xs); min-width: 0; }
.rx-doc b { font-size: var(--text-sm); }
.rx-doc .ac-hash { overflow-wrap: anywhere; }

/* -------------------------------------------------------------- pager */
.rx-pager { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--space-5); }
.rx-pager a, .rx-pager b, .rx-pager span { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm); font-size: var(--text-sm); font-variant-numeric: var(--num-data); }
.rx-pager a { border: 1px solid var(--border-default); color: var(--fg-strong); text-decoration: none; background: var(--bg-surface); }
.rx-pager a:hover { border-color: var(--slate-400); }
.rx-pager b { background: var(--slate-900); color: #fff; }
.rx-pager span { color: var(--fg-subtle); }

/* -------------------------------------------------------------- prose (info pages) */
.rx-prose { max-width: 72ch; font-size: var(--text-md); line-height: 1.7; color: var(--fg-default); }
.rx-prose h2 { margin: var(--space-8) 0 var(--space-2); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--fg-strong); }
.rx-prose h3 { margin: var(--space-5) 0 var(--space-1); font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--fg-strong); }
.rx-prose p, .rx-prose ul, .rx-prose ol { margin-top: var(--space-3); }
.rx-prose ul, .rx-prose ol { padding-left: 1.25rem; }
.rx-prose li + li { margin-top: var(--space-1); }
.rx-prose a { color: var(--fg-accent); }
.rx-prose code { font-family: var(--font-mono); font-size: 0.9em; }
.rx-prose table { margin-top: var(--space-3); font-size: var(--text-sm); }
.rx-prose th, .rx-prose td { text-align: left; padding: 6px var(--space-3) 6px 0; border-bottom: 1px solid var(--slate-100); vertical-align: top; }
.rx-prose .card, .rx-prose section { margin-top: var(--space-6); }

/* -------------------------------------------------------------- footer */
.rx-foot { margin-top: var(--space-12); padding: var(--space-8) 0 var(--space-10); background: var(--bg-surface); border-top: 1px solid var(--border-hairline); font-size: var(--text-xs); color: var(--fg-muted); }
.rx-footgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-6) var(--space-10); }
.rx-foot p { max-width: 70ch; line-height: 1.6; }
.rx-foot p + p { margin-top: var(--space-2); }
.rx-footlinks { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-content: start; justify-content: flex-end; }
.rx-footlinks a { color: var(--fg-strong); text-decoration: none; }
.rx-footlinks a:hover { text-decoration: underline; }
.rx-footmark { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }

/* -------------------------------------------------------------- predictive search dropdown */
.ac-search { position: relative; }
.rx-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: var(--z-toast); min-width: min(34rem, 92vw); max-height: min(70vh, 34rem); overflow-y: auto; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--elev-pane); padding: var(--space-2) 0; }
.rx-hsearch .rx-suggest { left: auto; right: 0; }
.rx-sg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--space-1) var(--space-3) var(--space-2); border-bottom: 1px solid var(--border-hairline); }
.rx-sg-chip { height: 26px; padding: 0 10px; border: 1px solid var(--border-default); border-radius: var(--radius-pill); background: var(--bg-surface); font-size: var(--text-2xs); color: var(--fg-muted); cursor: pointer; }
.rx-sg-chip[aria-pressed="true"] { background: var(--slate-900); border-color: var(--slate-900); color: #fff; }
.rx-sg-group { padding: var(--space-2) var(--space-4) 2px; font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-subtle); }
.rx-sg-opt { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 1px var(--space-3); align-items: center; padding: 7px var(--space-4); cursor: pointer; color: var(--fg-default); text-decoration: none; }
.rx-sg-opt[aria-selected="true"] { background: var(--bg-selected); box-shadow: inset 2px 0 0 var(--border-accent); }
.rx-sg-opt b { font-weight: var(--weight-regular); color: var(--fg-strong); font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-sg-opt b mark { background: none; color: inherit; font-weight: var(--weight-semibold); }
.rx-sg-opt small { grid-column: 2; font-size: var(--text-2xs); color: var(--fg-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-sg-opt .rx-sg-type { grid-row: span 2; grid-column: 3; font-size: 11px; color: var(--fg-subtle); }
.rx-sg-opt .ac-jur { grid-row: span 2; }
.rx-sg-foot { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-4) var(--space-1); border-top: 1px solid var(--border-hairline); margin-top: var(--space-1); font-size: 11px; color: var(--fg-subtle); }
.rx-sg-empty { padding: var(--space-3) var(--space-4); font-size: var(--text-xs); color: var(--fg-muted); }

/* -------------------------------------------------------------- pane-open and responsive */
body.ac-pane-open .rx-bandgrid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) { .rx-bandgrid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } .rx-hsearch { width: 16rem; } }
@media (max-width: 1023px) { .rx-hsearch { display: none; } }
@media (max-width: 900px) { .rx-bfacts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .rx-footgrid { grid-template-columns: minmax(0, 1fr); } .rx-footlinks { justify-content: flex-start; } }
@media (max-width: 640px) {
  .rx-notes li, .rx-tl li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rx-bfacts { grid-template-columns: minmax(0, 1fr); }
  .rx-netfig { padding: var(--space-3) var(--space-4); }
  .rx-table th:first-child, .rx-table td:first-child { padding-left: var(--space-3); }
  .rx-table th:last-child, .rx-table td:last-child { padding-right: var(--space-3); }
  .rx-suggest { min-width: 0; }
  .rx-hsearch .rx-suggest { position: fixed; left: var(--space-3); right: var(--space-3); top: calc(var(--header-h) + 52px); }
}

/* Network in the finding band: the server layout is two columns wide, so the drawn view holds from 440px. */
@container net (min-width: 440px) {
  .rx-net .ac-net__stage { display: block; }
  .rx-net .ac-net__legend { display: flex; }
  .rx-net .ac-net__list { display: none; }
}
.rx-net .ac-net__n { max-width: min(14rem, 44%); }
.ac-net__edges polyline { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.ac-net--draw .ac-net__edges polyline { animation: ac-fade-in var(--dur-draw) var(--ease-draw) both; }
@media (prefers-reduced-motion: reduce) { .ac-net--draw .ac-net__edges polyline { animation: none; } }

/* Header between 768 and 1199 px: short Evidence label and a narrower search, so EN/DE/FR stay inside the bar. */
@media (min-width: 768px) and (max-width: 1199px) {
  .ac-header .ac-evtoggle .ac-kbd, .ac-header .ac-evtoggle__long { display: none; }
  .ac-header .ac-evtoggle__short { display: inline; }
  .ac-header .rx-hsearch { max-width: 15rem; }
  .ac-header__inner { gap: var(--space-4); }
}

/* Phones: no middle dots in the masthead meta line (a wrapped line must not start with a dot);
   items sit on their own rows instead. Basis spans the row, Changed and Checked share one. */
@media (max-width: 767px) {
  .rx-sub { gap: 6px 14px; }
  .rx-sub > span + span::before { content: none; }
  .rx-bfacts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rx-bfacts > div:first-child { grid-column: 1 / -1; }
}

/* Sources: label and value side by side from tablet up. Gap card: dashed, quiet. */
@media (min-width: 768px) {
  .rx-sec > .rx-srcs { grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr); column-gap: var(--space-6); }
  .rx-sec > .rx-srcs dd { margin-bottom: 0; font-size: var(--text-sm); }
}
.rx-card--gap { border-style: dashed; background: var(--bg-subtle); box-shadow: none; }
.rx-doc .rx-srcs { gap: 2px; }
.rx-doc .rx-srcs dt { font-size: var(--text-2xs); }

/* ---------------------------------------------------------------- Home (H2 layout, H3 headline, UX-042) */
.rh-hero { background: radial-gradient(1200px 420px at 50% -10%, var(--indigo-50), transparent 70%), var(--bg-canvas); padding-block: clamp(48px, 9vw, 112px) var(--space-12); }
.rh-hero__in { text-align: center; display: grid; justify-items: center; gap: var(--space-4); }
.rh-tag { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-muted); }
.rh-title { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.75rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 24ch; text-wrap: balance; color: var(--fg-strong); }
.rh-sub { font-family: var(--font-display); font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); color: var(--fg-muted); }
.rh-search { width: 100%; max-width: 42rem; margin-top: var(--space-4); box-shadow: var(--shadow-lg, 0 10px 30px rgba(15, 23, 42, .08)); }
.rh-search .ac-search__input { height: 56px; font-size: var(--text-base); }
.rh-search .ac-btn { margin: 6px; }
.rh-try { font-size: var(--text-xs); color: var(--fg-muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.rh-try a { color: var(--fg-strong); text-decoration: underline; text-decoration-color: var(--border-default); text-underline-offset: 3px; }
.rh-livewrap { margin-top: clamp(40px, 6vw, 64px); }
.rh-live { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); display: grid; gap: var(--space-5); }
.rh-live__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-3) var(--space-6); }
.rh-live__k { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: var(--text-2xs); color: var(--fg-muted); }
.rh-live__t { font-family: var(--font-display); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 600; color: var(--fg-strong); margin-top: 6px; overflow-wrap: anywhere; }
.rh-arrow { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-accent); white-space: nowrap; }
.rh-claim { max-width: 40rem; }
.rh-claim .ac-jur { vertical-align: 0.3em; margin-right: 4px; }
.rh-live__sub { font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-muted); padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); }
.rh-glist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--space-2) var(--space-6); }
.rh-glist li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-2); align-items: baseline; font-size: var(--text-sm); padding: 6px 0; }
.rh-glist a { color: var(--fg-strong); font-weight: var(--weight-medium); overflow-wrap: anywhere; }
.rh-glist .rh-n { grid-column: 2; font-size: var(--text-2xs); color: var(--fg-muted); }
.rh-live__foot { padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.rh-three { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--border-subtle); }
.rh-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-10); }
.rh-cols p { color: var(--fg-muted); font-size: var(--text-sm); line-height: 1.6; }
.rh-num { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--fg-accent) !important; margin-bottom: var(--space-2); }
.rh-h3 { font-family: var(--font-display); font-size: var(--text-lg, 1.25rem); font-weight: 600; color: var(--fg-strong); margin-bottom: var(--space-2); }
.rh-h2 { font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); font-weight: 600; color: var(--fg-strong); margin-bottom: var(--space-3); }
.rh-grammar { background: var(--bg-subtle); padding-block: var(--space-10); border-block: 1px solid var(--border-subtle); }
.rh-glines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); margin-top: var(--space-4); }
.rh-glines p { font-size: var(--text-sm); color: var(--fg-muted); }
.rh-gk { font-weight: var(--weight-semibold); color: var(--fg-strong) !important; margin: var(--space-3) 0 var(--space-1); }
.rh-gl { display: block; height: 0; width: 96px; border-top: 2px solid var(--fg-strong); }
.rh-gl--calc { border-top-style: dotted; border-top-width: 3px; }
.rh-gl--interp { border-top-style: dashed; border-top-color: var(--indigo-600, #4f46e5); }
.rh-abs { padding-block: clamp(48px, 7vw, 88px); }
.rh-abs__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.rh-p { color: var(--fg-muted); font-size: var(--text-sm); line-height: 1.6; max-width: 56ch; }
.rh-abslist { display: grid; border-top: 1px solid var(--border-subtle); }
.rh-abslist li { display: grid; grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr); gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle); font-size: var(--text-sm); }
.rh-abslist b { color: var(--fg-strong); }
.rh-abslist span { color: var(--fg-muted); }
.rh-counts { margin-top: var(--space-8); padding: var(--space-5); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-surface); display: grid; gap: var(--space-3); }
.rh-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.rh-kpis dt { font-size: var(--text-2xs); color: var(--fg-muted); overflow-wrap: anywhere; hyphens: auto; }
.rh-kpis dd { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; color: var(--fg-strong); font-variant-numeric: tabular-nums; }
.rh-lists { padding-block: var(--space-10) clamp(48px, 7vw, 88px); border-top: 1px solid var(--border-subtle); }
.rh-lists__in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-10); }
.rh-lists .rx-table td .ac-jur { margin-right: 6px; }
@media (max-width: 900px) {
  .rh-cols, .rh-glines { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .rh-abs__in, .rh-lists__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
}
@media (max-width: 560px) {
  .rh-kpis { grid-template-columns: minmax(0, 1fr); }
  .rh-abslist li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rh-search .ac-btn { display: none; }
}
.rx-nw { white-space: nowrap; }
.rh-lists .rx-table th:not(:first-child), .rh-lists .rx-table td:not(:first-child) { width: 1%; white-space: nowrap; }
@media (max-width: 560px) {
  .rh-lists .rx-table th, .rh-lists .rx-table td { padding-inline: 10px; }
  .rh-lists .rx-table td:first-child { overflow-wrap: anywhere; hyphens: auto; }
}

/* ---------------------------------------------------------------- Group, list, search, info, 404 pages */
.rx-pkick { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: var(--space-2); }
.rx-pkick .rx-since { font-size: var(--text-2xs); color: var(--fg-muted); }
.rx-lede--mast { display: block; max-width: 72ch; font-size: var(--text-sm); color: var(--fg-muted); }
.rx-mast--page .rx-sub { margin-top: var(--space-2); }
.rx-table td.rx-num .ac-v { text-align: right; }
.rx-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--border-hairline); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-6); }
.rx-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rx-kpi { background: var(--bg-surface); padding: var(--space-4); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; min-width: 0; }
.rx-kpi dt { font-size: var(--text-2xs); color: var(--fg-muted); line-height: 1.35; }
.rx-kpi dd { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); font-weight: 600; color: var(--fg-strong); font-variant-numeric: tabular-nums; }
.rx-barsfig { padding-bottom: var(--space-5); }
.rx-bars { display: grid; gap: 6px; margin-top: var(--space-3); }
.rx-bars li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 4.5rem; gap: var(--space-3); align-items: center; font-size: var(--text-sm); }
.rx-bars__l { display: flex; gap: 6px; align-items: center; min-width: 0; }
.rx-bars__l > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-bars__t { height: 8px; background: var(--slate-100); border-radius: 999px; overflow: hidden; }
.rx-bars__t i { display: block; height: 100%; background: var(--indigo-600, #4f46e5); border-radius: inherit; transform-origin: left; animation: rx-bar-in 700ms var(--ease-out, ease-out) both; }
@keyframes rx-bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .rx-bars__t i { animation: none; } }
.rx-bars__n { text-align: right; font-variant-numeric: tabular-nums; }
.rx-tree { display: grid; font-size: var(--text-sm); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); background: var(--bg-surface); padding: var(--space-3) var(--space-4); max-height: 36rem; overflow: auto; }
.rx-tree li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 5px 0 5px calc(var(--d, 0) * 20px); border-left: 0; position: relative; }
.rx-tree li + li { border-top: 1px solid var(--slate-100); }
.rx-tree li > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.rx-tree a { color: var(--fg-strong); text-decoration: underline; text-decoration-color: var(--slate-300); text-underline-offset: 3px; }
.rx-tree__me a { font-weight: var(--weight-semibold); }
.rx-ul { display: grid; gap: 6px; font-size: var(--text-sm); padding-left: 1.1em; list-style: disc; }
.rx-ul a { color: var(--fg-accent); }
.rx-groupp .rx-records { margin-top: var(--space-8); }
.pager { display: flex; flex-wrap: wrap; gap: 4px; margin: var(--space-4) 0; font-size: var(--text-sm); }
.pager a, .pager b, .pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--radius-md); }
.pager a { border: 1px solid var(--border-default); color: var(--fg-strong); background: var(--bg-surface); }
.pager a:hover { border-color: var(--indigo-600, #4f46e5); color: var(--fg-accent); }
.pager b { background: var(--fg-strong); color: #fff; font-weight: var(--weight-semibold); }
.pager span { color: var(--fg-muted); }
.rx-sformwrap { max-width: 44rem; margin-bottom: var(--space-8); }
.rx-ssearch .ac-search__input { height: 48px; }
.rx-ssearch .ac-btn { margin: 4px; }
.rx-searchp .rx-sec + .rx-sec { margin-top: var(--space-10); }
.rx-nf { padding-block: clamp(56px, 10vw, 120px); }
.rx-nf .ac-container { display: grid; gap: var(--space-3); max-width: 44rem; }
.rx-nf .rx-sformwrap { margin: var(--space-3) 0 0; }
.rx-infogrid { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--space-10); align-items: start; }
.rx-infonav { position: sticky; top: 88px; display: grid; gap: var(--space-2); }
.rx-infonav ul { display: grid; gap: 2px; }
.rx-infonav a { display: block; padding: 6px 10px; border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--fg-muted); }
.rx-infonav a:hover { background: var(--slate-100); color: var(--fg-strong); }
.rx-infonav a[aria-current] { background: var(--indigo-50); color: var(--fg-accent); font-weight: var(--weight-semibold); }
.rx-prose { max-width: 46rem; display: grid; gap: var(--space-8); }
.rx-prose .card { display: grid; gap: var(--space-3); }
.rx-prose h2 { font-family: var(--font-display); font-size: var(--text-lg, 1.25rem); font-weight: 600; color: var(--fg-strong); }
.rx-prose p { font-size: var(--text-base); line-height: 1.65; color: var(--fg-default, #334155); }
.rx-prose p.sub { color: var(--fg-muted); font-size: var(--text-sm); }
.rx-prose a { color: var(--fg-accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rx-prose table.list { width: 100%; font-size: var(--text-sm); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--bg-surface); }
.rx-prose table.list th { text-align: left; font-size: var(--text-2xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-subtle); background: var(--bg-subtle); }
.rx-prose table.list th, .rx-prose table.list td { padding: 9px 12px; border-bottom: 1px solid var(--slate-100); vertical-align: top; overflow-wrap: anywhere; }
.rx-prose table.list tr:last-child td { border-bottom: 0; }

@media (max-width: 900px) {
  .rx-infogrid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .rx-infonav { position: static; }
  .rx-infonav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .rx-infonav a { border: 1px solid var(--border-default); }
}
@media (max-width: 560px) {
  .rx-kpis, .rx-kpis--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-bars li { grid-template-columns: minmax(0, 8rem) minmax(0, 1fr) 3.5rem; gap: var(--space-2); }
  .rx-prose table.list { display: block; overflow-x: auto; }
}
.rx-kpis { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.rx-tbox--list .rx-mono, .rx-tbox--list .ac-v.rx-mono { white-space: nowrap; }
.rx-prose .card > * { margin: 0; }
.rx-prose .card { gap: var(--space-3); }
.rx-nflegend { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--border-hairline); }
.rx-kpis { gap: 0; background: var(--bg-surface); }
.rx-kpi { box-shadow: 0 0 0 0.5px var(--border-hairline); }
/* G6-R2: list tables reflow by the width of their own box, not the viewport, so an open evidence drawer counts.
   Table mode never breaks inside a word: a column is at least as wide as its longest word. Below a threshold that
   grows with the column count (480 / 560 / 720 / 900 px for 2 / 3 / 4 / 5+ columns), each row becomes a stacked card
   of label/value pairs. */
.rx-tbox--list { container: rxlist / inline-size; }
.rx-tbox--list .rx-table th, .rx-tbox--list .rx-table td { overflow-wrap: normal; word-break: normal; hyphens: manual; }
@container rxlist (max-width: 480px) {
  .rx-tbox--list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rx-tbox--list table, .rx-tbox--list tbody { display: block; }
  .rx-tbox--list tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px var(--space-4); border-bottom: 1px solid var(--slate-100); }
  .rx-tbox--list tr:last-child { border-bottom: 0; }
  .rx-tbox--list td { display: block; border: 0; padding: 0 !important; font-size: var(--text-xs); color: var(--fg-muted); text-align: left !important; overflow-wrap: normal; }
  .rx-tbox--list td:first-child { flex-basis: 100%; font-size: var(--text-sm); color: var(--fg-strong); overflow-wrap: break-word; }
  .rx-tbox--list td[data-label]::before { content: attr(data-label) ": "; color: var(--fg-subtle); }
  .rx-tbox--list td:empty { display: none; }
}
@container rxlist (max-width: 560px) {
  .rx-tbox--list:has(thead th:nth-child(3)) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rx-tbox--list:has(thead th:nth-child(3)) table, .rx-tbox--list:has(thead th:nth-child(3)) tbody { display: block; }
  .rx-tbox--list:has(thead th:nth-child(3)) tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px var(--space-4); border-bottom: 1px solid var(--slate-100); }
  .rx-tbox--list:has(thead th:nth-child(3)) tr:last-child { border-bottom: 0; }
  .rx-tbox--list:has(thead th:nth-child(3)) td { display: block; border: 0; padding: 0 !important; font-size: var(--text-xs); color: var(--fg-muted); text-align: left !important; overflow-wrap: normal; }
  .rx-tbox--list:has(thead th:nth-child(3)) td:first-child { flex-basis: 100%; font-size: var(--text-sm); color: var(--fg-strong); overflow-wrap: break-word; }
  .rx-tbox--list:has(thead th:nth-child(3)) td[data-label]::before { content: attr(data-label) ": "; color: var(--fg-subtle); }
  .rx-tbox--list:has(thead th:nth-child(3)) td:empty { display: none; }
}
@container rxlist (max-width: 720px) {
  .rx-tbox--list:has(thead th:nth-child(4)) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rx-tbox--list:has(thead th:nth-child(4)) table, .rx-tbox--list:has(thead th:nth-child(4)) tbody { display: block; }
  .rx-tbox--list:has(thead th:nth-child(4)) tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px var(--space-4); border-bottom: 1px solid var(--slate-100); }
  .rx-tbox--list:has(thead th:nth-child(4)) tr:last-child { border-bottom: 0; }
  .rx-tbox--list:has(thead th:nth-child(4)) td { display: block; border: 0; padding: 0 !important; font-size: var(--text-xs); color: var(--fg-muted); text-align: left !important; overflow-wrap: normal; }
  .rx-tbox--list:has(thead th:nth-child(4)) td:first-child { flex-basis: 100%; font-size: var(--text-sm); color: var(--fg-strong); overflow-wrap: break-word; }
  .rx-tbox--list:has(thead th:nth-child(4)) td[data-label]::before { content: attr(data-label) ": "; color: var(--fg-subtle); }
  .rx-tbox--list:has(thead th:nth-child(4)) td:empty { display: none; }
}
@container rxlist (max-width: 900px) {
  .rx-tbox--list:has(thead th:nth-child(5)) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rx-tbox--list:has(thead th:nth-child(5)) table, .rx-tbox--list:has(thead th:nth-child(5)) tbody { display: block; }
  .rx-tbox--list:has(thead th:nth-child(5)) tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px var(--space-4); border-bottom: 1px solid var(--slate-100); }
  .rx-tbox--list:has(thead th:nth-child(5)) tr:last-child { border-bottom: 0; }
  .rx-tbox--list:has(thead th:nth-child(5)) td { display: block; border: 0; padding: 0 !important; font-size: var(--text-xs); color: var(--fg-muted); text-align: left !important; overflow-wrap: normal; }
  .rx-tbox--list:has(thead th:nth-child(5)) td:first-child { flex-basis: 100%; font-size: var(--text-sm); color: var(--fg-strong); overflow-wrap: break-word; }
  .rx-tbox--list:has(thead th:nth-child(5)) td[data-label]::before { content: attr(data-label) ": "; color: var(--fg-subtle); }
  .rx-tbox--list:has(thead th:nth-child(5)) td:empty { display: none; }
}
.rx-tbox--list td:first-child a { overflow-wrap: break-word; }
.rx-records--1 { grid-template-columns: minmax(0, 44rem); }
body.ac-pane-open .rx-records--1, .rx-records--1 { grid-template-columns: minmax(0, 44rem); }
.rx-net--stack .ac-net__n:not(.ac-net__n--target) { grid-template-columns: minmax(0, 1fr); max-width: 44%; text-align: center; justify-items: center; }
.rx-net--stack .ac-net__n b { overflow-wrap: anywhere; }
.rx-dl { display: inline-block; margin-right: var(--space-2); white-space: nowrap; }
.rx-tl > li > span.rx-muted { white-space: nowrap; }
.rx-doc dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px var(--space-3); margin: 0; }
.rx-doc dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rx-doc dt { color: var(--paper-muted, var(--fg-subtle)); }
.rx-doc__k { margin: 0; font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .06em; }
.rx-doc__t { margin: 0; font-size: var(--text-sm); }
.rx-doclist { min-width: 0; overflow-wrap: anywhere; }
.rx-tl--range li { grid-template-columns: 14rem minmax(0, 1fr); }
@media (max-width: 900px) { .rx-tl--range li { grid-template-columns: minmax(0, 1fr); } }
.rx-doclist > p { margin: 0 0 var(--space-4); max-width: 68ch; color: var(--fg-muted); font-size: var(--text-sm); }
.rx-doclist ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.rx-doclist li { padding: var(--space-3); background: var(--paper-bg); border: 1px solid var(--paper-border); border-radius: var(--radius-md); color: var(--paper-fg); font-size: var(--text-xs); font-variant-numeric: var(--num-data); }
.rx-doclist li a { display: block; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--indigo-700); text-decoration: none; }
.rx-doclist li a:hover { text-decoration: underline; }
.ac-status--neutral { background: var(--indigo-25, var(--slate-50)); color: var(--indigo-700); border-color: var(--indigo-300); }
.ac-status--neutral::before { border-radius: 1px; }
.rx-find--solo { max-width: 52rem; }
.rx-hash { overflow-wrap: anywhere; }
.rx-prose--tight { gap: var(--space-3); }
.rx-person .rx-claim { max-width: 52ch; }
.rx-person .rx-secs { margin-top: var(--space-8); }

.rx-suggest { text-align: left; }
.ac-search .ac-search__input:focus, .ac-search .ac-search__input:focus-visible { outline: none; box-shadow: none; border: 0; }

/* Desktop evidence pane docks: the header shares the narrowed width, so the header search hides
   and, below 1366px, the nav folds into the menu button. Nothing in the header sits under the pane. */
@media (min-width: 1024px) {
  body.ac-pane-open .rx-hsearch { display: none; }
  body.ac-pane-open .ac-menu { right: var(--pane-evidence); }
}
@media (min-width: 1024px) and (max-width: 1365px) {
  body.ac-pane-open .ac-nav { display: none; }
  body.ac-pane-open .ac-btn.ac-menu-btn { display: inline-flex; }
  body.ac-pane-open .ac-menu:not([hidden]) { display: block !important; }
}

/* Evidence pane: the entity and identifier the value belongs to (release review B5). */
.ac-pane__subject { margin: 0 0 var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--paper-fg); overflow-wrap: anywhere; }
.ac-pane__subject:empty { display: none; }
.ac-nw-note { color: var(--paper-fg-muted); }

/* Evidence mode: the bar count column grows to hold its inline source chip (B3, release v1). */
body.ac-evidence-mode .rx-bars li { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto; }
body.ac-evidence-mode .rx-bars__n { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; }
@media (max-width: 47.99rem) {
  body.ac-evidence-mode .rx-bars li { grid-template-columns: minmax(0, 7rem) minmax(2rem, 1fr) auto; }
  body.ac-evidence-mode .rx-bars__n { flex-direction: column; align-items: flex-end; }
}
/* Formulas in the evidence pane wrap instead of scrolling sideways. */
.ac-pane .ac-formula { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Register page: LEI record card below the record grid, register documents table. */
.rx-records + .rx-lei { margin-top: var(--space-5); }
.rx-regdocs { margin-bottom: var(--space-6); }
.rx-regdocs .rx-h3 { margin: 0 0 var(--space-3); }
.rx-regdocs .rx-more { margin-top: var(--space-2); }
.rx-lei .ac-facts { width: 100%; }
/* LEI card labels wrap between words only. Automatic table layout keeps the label column at least as wide as its
   longest word (values may break anywhere). A card narrower than 560px stacks labels above values (G6-R1). */
.rx-lei .ac-facts th { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.rx-lei .ac-section__body--flush .ac-facts th { width: 28%; }
@container rxcard (max-width: 560px) {
  .rx-lei .ac-facts tr { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--slate-100); padding: var(--space-2) var(--space-5); }
  .rx-lei .ac-facts th, .rx-lei .ac-facts td { display: block; width: auto !important; border: 0; padding: 2px 0 !important; }
  .rx-lei .ac-facts tbody th { font-size: var(--text-xs); }
  .rx-lei .ac-facts tr:last-child { border-bottom: 0; }
}
.rx-card .ac-itag { height: auto; min-height: 20px; flex-wrap: wrap; max-width: 100%; margin-left: 0; }
