/* ---------- tokens: v2 values for v1's own variables, so v1 components follow ---------- */
html[data-ui="v2"] {
  --paper: oklch(96.8% .005 70); --paper-deep: oklch(95.4% .006 70);
  --bg: oklch(96.8% .005 70); --bg-elev: oklch(99.4% .003 70); --bg-row: oklch(99.4% .003 70);
  --bg-rowhover: oklch(95.4% .006 70); --bg-rowsel: oklch(94.5% .02 245); --bg-input: oklch(99.4% .003 70);
  --ink: oklch(21% .012 260); --ink-2: oklch(42% .014 260); --muted: oklch(51% .012 260); --muted-soft: oklch(65% .01 260);
  --line: oklch(90.5% .008 70); --line-soft: oklch(93% .006 70); --line-strong: oklch(85% .01 70);
  --accent: oklch(21% .012 260); --accent-deep: oklch(15% .012 260); --accent-soft: oklch(94% .006 70);
  --c-compliant: oklch(52% .075 245); --c-partial: oklch(76% .12 62); --c-gap: oklch(58% .2 33); --c-conflict: oklch(58% .16 355);
  --c-missing: oklch(48% .19 30); --c-unverif: oklch(70% .012 260);
  --ff-sans: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --ff-display: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --ff-title: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --ff-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ff-num: 'IBM Plex Mono', ui-monospace, monospace;
  --shadow-rest: 0 1px 2px oklch(25% .02 60 / .05), 0 4px 14px oklch(25% .02 60 / .05);
  --shadow: 0 1px 2px oklch(25% .02 60 / .05), 0 4px 14px oklch(25% .02 60 / .05);
  --shadow-lg: 0 10px 30px oklch(25% .02 60 / .1);
  /* Legacy names kept for v1 rules: --shadow-amber is an ink shadow here and --accent
     (above) is ink, not amber. Renaming would touch every v1 rule that reads them. */
  --shadow-amber: 0 6px 18px oklch(20% .02 260 / .18);
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --sidebar-w: 272px;
  /* v2-only */
  --v2-surface: oklch(99.4% .003 70); --v2-sunk: oklch(95.4% .006 70);
  --v2-btn: oklch(21% .012 260); --v2-btn-ink: oklch(98.5% .004 70);
  --v2-gap-ink: oklch(48% .18 33); --v2-gap-soft: oklch(94.5% .035 40); --v2-gap-wash: oklch(62% .2 33 / .13);
  --v2-par-ink: oklch(52% .12 55); --v2-par-soft: oklch(95.5% .04 70); --v2-par-wash: oklch(80% .13 62 / .3);
  --v2-cov-ink: oklch(44% .07 245); --v2-cov-soft: oklch(94.5% .02 245); --v2-cov-wash: oklch(60% .1 245 / .2);
  --v2-conf-ink: oklch(47% .15 355); --v2-conf-soft: oklch(94.5% .03 355);
  --v2-oos-ink: oklch(50% .012 260); --v2-oos-soft: oklch(94.5% .005 260);
  /* not applicable to this organisation: a calm blue-grey, apart from out of scope */
  --v2-na-ink: oklch(45% .05 215); --v2-na-soft: oklch(95% .016 215); --c-na: oklch(52% .055 215);
  --v2-ease: cubic-bezier(.23, 1, .32, 1);
  /* finding severity: red, orange, yellow, so the three never read as one */
  --v2-crit: oklch(52% .2 27); --v2-crit-ink: oklch(99% .004 70);
  --v2-maj: oklch(66% .17 48); --v2-maj-ink: oklch(45% .14 45); --v2-maj-soft: oklch(94.5% .045 55);
  --v2-min: oklch(80% .13 92); --v2-min-ink: oklch(46% .09 90); --v2-min-soft: oklch(95.5% .05 95);
  /* Depth: raised cards and pressed-in rows (light). Stacked soft layers so
     the shadow falls off smoothly instead of ending in a hard edge. */
  --v2-raise: inset 0 1px 0 oklch(100% 0 0), inset 0 -4px 8px oklch(35% .03 60 / .05),
    0 1px 1px oklch(35% .03 60 / .06), 0 2px 4px oklch(35% .03 60 / .06), 0 6px 12px oklch(35% .03 60 / .07),
    0 14px 28px oklch(35% .03 60 / .08), 0 30px 60px -10px oklch(35% .03 60 / .14);
  --v2-raise-hi: inset 0 1px 0 oklch(100% 0 0), inset 0 -4px 8px oklch(35% .03 60 / .05),
    0 1px 1px oklch(35% .03 60 / .07), 0 3px 6px oklch(35% .03 60 / .07), 0 10px 18px oklch(35% .03 60 / .08),
    0 22px 40px oklch(35% .03 60 / .1), 0 44px 80px -12px oklch(35% .03 60 / .18);
  --v2-press: inset 0 2px 3px oklch(35% .03 60 / .1), inset 0 6px 14px oklch(35% .03 60 / .07),
    inset 0 -1px 0 oklch(100% 0 0 / .9), 0 1px 0 oklch(100% 0 0 / .8);
  --v2-sheen: radial-gradient(130% 95% at 50% 0%, oklch(100% 0 0 / .85), oklch(100% 0 0 / 0) 62%), linear-gradient(180deg, oklch(100% 0 0 / .4) 0%, oklch(100% 0 0 / 0) 40%, oklch(35% .03 60 / .035) 100%);
  /* Puffy: edges shade softly inward, like a cushion. */
  --v2-puff: inset 0 0 26px oklch(35% .03 60 / .05), inset 0 -10px 20px -10px oklch(35% .03 60 / .06);
  /* List rows (findings, decisions): the same lift in three cheap layers.
     The seven-layer puff + raise on every row cost 100ms+ frames scrolling
     a long list (Azhar 2026-11-08); cards keep the full stack. */
  --v2-row-sh: inset 0 1px 0 oklch(100% 0 0), 0 1px 2px oklch(35% .03 60 / .08), 0 10px 24px -12px oklch(35% .03 60 / .2);
  --v2-row-sh-hi: inset 0 1px 0 oklch(100% 0 0), 0 2px 4px oklch(35% .03 60 / .09), 0 16px 32px -14px oklch(35% .03 60 / .26);
}
html[data-ui="v2"][data-theme="dark"], html[data-ui="v2"] .reader:not(.audit-panel) {
  color-scheme: dark;
  --paper: oklch(14.5% .006 255); --paper-deep: oklch(17.5% .007 255);
  --bg: oklch(14.5% .006 255); --bg-elev: oklch(19% .008 255); --bg-row: oklch(19% .008 255);
  --bg-rowhover: oklch(22.5% .009 255); --bg-rowsel: oklch(26% .03 245); --bg-input: oklch(19% .008 255);
  --ink: oklch(95% .005 70); --ink-2: oklch(77% .008 70); --muted: oklch(71% .01 255); --muted-soft: oklch(64% .01 255);
  --line: oklch(27% .01 255); --line-soft: oklch(24% .009 255); --line-strong: oklch(34% .012 255);
  --accent: oklch(94% .006 70); --accent-deep: oklch(98% .004 70); --accent-soft: oklch(22.5% .009 255);
  --c-compliant: oklch(68% .07 240); --c-partial: oklch(82% .1 64); --c-gap: oklch(66% .19 33); --c-conflict: oklch(70% .14 355); --c-missing: oklch(60% .2 28); --c-unverif: oklch(45% .01 255);
  --shadow-rest: 0 1px 2px oklch(0% 0 0 / .35); --shadow: 0 1px 2px oklch(0% 0 0 / .35); --shadow-lg: 0 10px 30px oklch(0% 0 0 / .45);
  --v2-surface: oklch(19% .008 255); --v2-sunk: oklch(22.5% .009 255);
  --v2-btn: oklch(94% .006 70); --v2-btn-ink: oklch(17% .008 255);
  --v2-gap-ink: oklch(78% .13 38); --v2-gap-soft: oklch(29% .07 33); --v2-gap-wash: oklch(62% .2 33 / .28);
  --v2-par-ink: oklch(86% .09 68); --v2-par-soft: oklch(30% .045 64); --v2-par-wash: oklch(82% .1 64 / .2);
  --v2-cov-ink: oklch(80% .06 240); --v2-cov-soft: oklch(28% .03 240); --v2-cov-wash: oklch(62% .08 240 / .22);
  --v2-conf-ink: oklch(81% .1 355); --v2-conf-soft: oklch(29% .06 355);
  --v2-oos-ink: oklch(72% .01 255); --v2-oos-soft: oklch(25% .008 255);
  --v2-na-ink: oklch(80% .045 215); --v2-na-soft: oklch(27% .022 215); --c-na: oklch(66% .05 215);
  /* 55%, not 62%: white pill text on it reaches 5.2:1 (WCAG AA for 11.5px). */
  --v2-crit: oklch(55% .2 27); --v2-crit-ink: oklch(99% .004 70);
  --v2-maj: oklch(72% .16 50); --v2-maj-ink: oklch(84% .11 55); --v2-maj-soft: oklch(31% .07 48);
  --v2-min: oklch(84% .12 95); --v2-min-ink: oklch(89% .09 95); --v2-min-soft: oklch(31% .045 95);
  /* Depth: raised cards and pressed-in rows (dark). Stacked soft layers so
     the shadow falls off smoothly instead of ending in a hard edge. */
  --v2-raise: inset 0 1px 0 oklch(100% 0 0 / .13), inset 0 0 0 1px oklch(100% 0 0 / .02), inset 0 -4px 10px oklch(0% 0 0 / .24),
    0 1px 1px oklch(0% 0 0 / .30), 0 2px 4px oklch(0% 0 0 / .24), 0 6px 12px oklch(0% 0 0 / .22),
    0 14px 28px oklch(0% 0 0 / .22), 0 32px 64px -10px oklch(0% 0 0 / .34);
  --v2-raise-hi: inset 0 1px 0 oklch(100% 0 0 / .16), inset 0 0 0 1px oklch(100% 0 0 / .03), inset 0 -4px 10px oklch(0% 0 0 / .24),
    0 1px 1px oklch(0% 0 0 / .30), 0 3px 6px oklch(0% 0 0 / .26), 0 10px 18px oklch(0% 0 0 / .24),
    0 22px 40px oklch(0% 0 0 / .26), 0 46px 84px -12px oklch(0% 0 0 / .41);
  --v2-press: inset 0 2px 3px oklch(0% 0 0 / .41), inset 0 7px 16px oklch(0% 0 0 / .32),
    inset 0 -1px 0 oklch(100% 0 0 / .07), 0 1px 0 oklch(100% 0 0 / .05);
  --v2-sheen: radial-gradient(130% 95% at 50% 0%, oklch(100% 0 0 / .075), oklch(100% 0 0 / 0) 62%), linear-gradient(180deg, oklch(100% 0 0 / .045) 0%, oklch(100% 0 0 / 0) 38%, oklch(0% 0 0 / .12) 100%);
  /* Puffy: edges shade softly inward, like a cushion. */
  --v2-puff: inset 0 0 30px oklch(0% 0 0 / .22), inset 0 -12px 24px -12px oklch(0% 0 0 / .26);
  --v2-row-sh: inset 0 1px 0 oklch(100% 0 0 / .1), 0 1px 2px oklch(0% 0 0 / .3), 0 10px 24px -12px oklch(0% 0 0 / .45);
  --v2-row-sh-hi: inset 0 1px 0 oklch(100% 0 0 / .14), 0 2px 4px oklch(0% 0 0 / .32), 0 16px 32px -14px oklch(0% 0 0 / .55);
}
html[data-ui="v2"] body { background: var(--bg); color: var(--ink); font-family: var(--ff-sans); font-size: 14.5px; }
/* No animation behind a backdrop-filter: every drifting tint reads --v2-drift-play,
   which holds it still while a frosted bar (scrolled) or a blurred overlay is on
   screen, and always under reduced motion. */
html[data-ui="v2"]:has(.v2-scrolled, .app.v2-rail-open, .sov-bg.on, .rd-bg.on) { --v2-drift-play: paused; }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] { --v2-drift-play: paused; } }


/* ---------- light theme: colour and depth (dark already has it) ----------
   The light pages read as flat white. Give them the prototype's atmosphere:
   a warm/cool wash behind the page, and on every page header a stronger tint
   plus the faint 28px grid, fading out across the card. */
html[data-ui="v2"]:not([data-theme="dark"]) body {
  background-color: var(--bg) !important;
  /* colour lives in the content area, away from the side panel */
  background-image:
    radial-gradient(45% 40% at 78% 6%, oklch(88% .06 62 / .45), transparent 70%),
    radial-gradient(45% 45% at 100% 60%, oklch(86% .045 240 / .4), transparent 70%),
    radial-gradient(40% 40% at 55% 100%, oklch(90% .04 160 / .3), transparent 70%) !important;
  background-attachment: fixed !important;
}
html[data-ui="v2"]:not([data-theme="dark"]) :is(.page-hero, .exec-hero, .view > .vh) { --pt: oklch(72% .11 238 / .42); --pt2: oklch(82% .13 62 / .45); }
html[data-ui="v2"] :is(.page-hero, .exec-hero, .view > .vh)::after {
  content: ""; display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(90% 120% at 100% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(90% 120% at 100% 0%, #000 0%, transparent 70%);
}
/* let the wash show: page containers stop painting their own flat paper, and
   the sticky bars become frosted glass over it (blur kept at 10px) */
html[data-ui="v2"]:not([data-theme="dark"]) :is(.main, .cm-body, .app) { background: transparent !important; }
/* top bar: clear at the top of the page (no band, no edge); frosted only once
   content scrolls under it. Sticky section bands are always frosted. */
html[data-ui="v2"]:not([data-theme="dark"]) :is(.topbar, .cm-top, .m-top) { background: transparent !important; box-shadow: none; transition: background-color 200ms ease, box-shadow 200ms ease; }
html[data-ui="v2"]:not([data-theme="dark"]) :is(.topbar, .cm-top, .m-top).v2-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
html[data-ui="v2"]:not([data-theme="dark"]) .reglib-group-h { background: color-mix(in srgb, var(--bg) 82%, transparent) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }

/* The classic navy is text on many buttons ("Open workspace", "Start a DHF
   assessment") and the fill under paper-coloured text. In v2 it follows ink, so
   every navy/paper pair stays readable in both themes (no blue text on dark). */
html[data-ui="v2"] { --navy: var(--ink); --navy-deep: var(--ink); }

/* The document/clause reader is a dark surface in BOTH themes, so it carries the
   dark palette (above) whatever the page theme is. The classic reader styles
   paint its text in --paper and its accents in --accent, so inside it those two
   are light text and a warm highlight, never the page background. */
html[data-ui="v2"] .reader:not(.audit-panel) {
  --paper: oklch(96% .004 70); --navy: oklch(95% .005 70); --navy-deep: oklch(95% .005 70);
  --accent: oklch(82% .1 72); --accent-deep: oklch(88% .08 72);
  color: var(--ink);
}
html[data-ui="v2"] .reader:not(.audit-panel) .kw { color: oklch(98% .004 70); font-weight: 700; }
html[data-ui="v2"] .reader:not(.audit-panel) .rd-n { color: oklch(72% .01 255); } html[data-ui="v2"] .reader:not(.audit-panel) .rd-para.rd-hit .rd-n { color: var(--accent); }
/* kinetic numbers: steady width while counting, small rise on entry */
html[data-ui="v2"] :is(.ers-val, #execScoreVal, .v2-stat-num, .ph-stat .val, .ab-tile .val, .ps-tile .val, .exec-hero .v, .hero-stat .s .val, .of-v) { font-variant-numeric: tabular-nums; }
/* slot-machine reels for headline numbers (built by v2.js, removed when done).
   --lh is the number's own line height, so the reel window matches its line box. */
html[data-ui="v2"] .v2-odo { display: inline-flex; vertical-align: top; height: var(--lh, 1.1em); line-height: var(--lh, 1.1em); }
html[data-ui="v2"] .v2-odo-cell { display: inline-block; height: var(--lh, 1.1em); overflow: hidden; }
html[data-ui="v2"] .v2-odo-strip { display: flex; flex-direction: column; transform: translateY(calc(var(--to) * -1 * var(--lh, 1.1em)));
  animation-name: v2-reel; animation-timing-function: cubic-bezier(.62, 0, .3, 1.02); animation-fill-mode: backwards; will-change: transform; }
html[data-ui="v2"] .v2-odo-strip > span { display: block; height: var(--lh, 1.1em); line-height: var(--lh, 1.1em); text-align: center; }
html[data-ui="v2"] .v2-odo-ch { display: inline-block; height: var(--lh, 1.1em); line-height: var(--lh, 1.1em); }
@keyframes v2-reel { 0% { transform: translateY(0); filter: blur(2.5px); } 70% { filter: blur(1px); } 100% { filter: blur(0); } }

/* classic navy logo tiles (activity drawer, admin dialogs, logo tile): ink tile
   with the VERA mark, which follows the theme; plain icon tiles go ink too */
html[data-ui="v2"] :is(.nd-icon, .nc-icon, .logo-tile) { background: var(--v2-btn) !important; box-shadow: none !important; display: grid; place-items: center; }
html[data-ui="v2"] :is(.nd-icon, .nc-icon, .logo-tile) img { display: none !important; }
html[data-ui="v2"] :is(.nd-icon, .nc-icon, .logo-tile)::before { content: ""; width: 58%; height: 58%; background: var(--v2-btn-ink);
  -webkit-mask: url(./vera-mark-mask.png) no-repeat center / contain; mask: url(./vera-mark-mask.png) no-repeat center / contain; }
html[data-ui="v2"] :is(.fru-status .fru-av, .cs-user .avatar) { background: var(--v2-btn) !important; color: var(--v2-btn-ink) !important; box-shadow: none !important; }
html[data-ui="v2"] :is(.nd-title, .nc-title) { font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

/* The card's call to action: an uppercase label with an arrow that nudges on
   hover, sitting at the right of the card's foot. One component for the admin
   console's company cards (Open) and the library cards (Review findings). */
html[data-ui="v2"] .v2-open { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-display); font-stretch: 112%;
  text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 650; line-height: 1.2; color: var(--ink); white-space: nowrap; cursor: pointer; }
html[data-ui="v2"] .v2-open svg { flex: none; transition: transform 200ms ease; }
html[data-ui="v2"] :is(.cx-co, .reglib-card):hover .v2-open svg, html[data-ui="v2"] .v2-open:focus-visible svg { transform: translateX(3px); }
html[data-ui="v2"] .v2-open.is-quiet { color: var(--muted); cursor: default; }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] .v2-open svg { transition: none; } }

/* VERA v2 design layer. Generated from v2.src.css: every selector is prefixed
   with html[data-ui="v2"] so version 1 is untouched when the switch is off. */

/* uppercase display labels */
html[data-ui="v2"] .v2-cap { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* ---------- side panel: icon rail that opens on hover over the page ----------
   It floats over the content rather than pushing it: pushing reflowed every
   card on each hover and wrapped pills and tiles mid-word. */
html[data-ui="v2"] { --rail: 64px; --rail-open: 248px; --ease-io: cubic-bezier(.77, 0, .175, 1); }
html[data-ui="v2"] .app { grid-template-columns: calc(var(--rail) + 24px) minmax(0, 1fr); }
html[data-ui="v2"] body.sb-collapsed { --sidebar-w: var(--rail); }
html[data-ui="v2"] .sb-toggle { display: none !important; }
html[data-ui="v2"] .sidebar, html[data-ui="v2"] body.sb-collapsed .sidebar {
  position: fixed; left: 12px; top: 12px; z-index: 40; display: flex; flex-direction: column;
  width: var(--rail); min-width: 0; height: calc(100dvh - 24px); opacity: 1; pointer-events: auto;
  padding: 16px 10px 10px;
  background: var(--v2-surface) !important; background-image: none !important; color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  transition: width 240ms var(--ease-io), box-shadow 240ms ease;
}
html[data-ui="v2"] .sidebar.v2-open { width: var(--rail-open); box-shadow: var(--shadow), 0 24px 60px -18px oklch(0% 0 0 / .35); transition: width 340ms var(--ease-io) 100ms, box-shadow 340ms ease 100ms; }
html[data-ui="v2"] .sidebar .aurora { display: none; }
html[data-ui="v2"] .app > .main { grid-column: 2; }
html[data-ui="v2"] body.is-offline .app { grid-template-columns: minmax(0, 1fr); } html[data-ui="v2"] body.is-offline .app > .main { grid-column: 1; }

/* brand: VERA mark (closed) / lockup (open) + workspace card */
html[data-ui="v2"] .sidebar .brand { padding: 2px 0 6px; gap: 10px; align-items: stretch; }
html[data-ui="v2"] .sidebar .brand-logo { justify-content: flex-start; padding: 0 6px; height: 28px; }
html[data-ui="v2"] .sidebar .brand-logo .wk-cobrand { display: none; }
html[data-ui="v2"] .sidebar .brand-logo .vera-mark {
  font-size: 0; color: transparent; display: block; height: 24px; width: 30px; background: var(--ink);
  -webkit-mask: url(./vera-mark-mask.png) no-repeat left center / contain; mask: url(./vera-mark-mask.png) no-repeat left center / contain;
  transition: width 240ms var(--ease-io);
}
html[data-ui="v2"] .sidebar.v2-open .brand-logo .vera-mark {
  width: 144px; -webkit-mask-image: url(./vera-lockup-mask-tm.png); mask-image: url(./vera-lockup-mask-tm.png);
  transition: width 340ms var(--ease-io) 100ms;
}
html[data-ui="v2"] .sidebar .brand-tag {
  flex-direction: row; align-items: center; gap: 10px; padding: 3px; margin-top: 4px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--v2-sunk); text-align: left; min-height: 42px;
}
html[data-ui="v2"] .sidebar .brand-tag::before {
  content: attr(data-initials); position: static; transform: none; flex: none;
  width: 34px; height: 34px; border-radius: 10px; opacity: 1; display: grid; place-items: center;
  background: var(--v2-btn); color: var(--v2-btn-ink);
  font-family: var(--ff-display); font-stretch: 118%; font-weight: 700; font-size: 12.5px; letter-spacing: .04em;
}
html[data-ui="v2"] .sidebar .brand-tag #brandText { font-family: var(--ff-sans); font-size: 12.5px; font-weight: 600; line-height: 1.25; text-transform: none; letter-spacing: .04em; color: var(--ink); white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
html[data-ui="v2"] .sidebar .brand-tag .brand-tag-sub { font-family: var(--ff-sans); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; text-transform: none; color: var(--muted); }
/* client name on top, product label underneath, both inside the tile */
html[data-ui="v2"] .sidebar .brand-tag { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; row-gap: 1px; align-content: center; min-width: 0; overflow: hidden; }
html[data-ui="v2"] .sidebar .brand-tag::before { grid-row: 1 / span 2; }
html[data-ui="v2"] .sidebar .brand-tag > span { display: block; min-width: 0; grid-column: 2; }

/* nav rows: 42px, 36px icon chip, labels only when open */
/* the whole rail scrolls as one column when it is taller than the window */
html[data-ui="v2"] .sidebar .nav { gap: 2px; flex: none; overflow: visible; }
html[data-ui="v2"] .sidebar { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
html[data-ui="v2"] .sidebar::-webkit-scrollbar { display: none; }
html[data-ui="v2"] .sidebar.v2-open { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
html[data-ui="v2"] .sidebar > * { flex-shrink: 0; }
html[data-ui="v2"] .sidebar .nav-sec { gap: 0; }
html[data-ui="v2"] .sidebar .nav-sec-body { gap: 2px; max-height: none !important; opacity: 1 !important; }
html[data-ui="v2"] .sidebar .nav-sec-h, html[data-ui="v2"] .sidebar .nav-label {
  height: 14px; padding: 0 8px; margin: 0; overflow: hidden; position: relative; pointer-events: none;
  color: var(--muted); font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .18em; font-size: 10px; font-weight: 600;
}
html[data-ui="v2"] .sidebar .nav-sec-h .nav-chev { display: none; }
html[data-ui="v2"] .sidebar .nav-sec-h::after { content: ""; position: absolute; left: 12px; top: 7px; width: 24px; height: 1px; background: var(--line); }
html[data-ui="v2"] .sidebar .nav-item {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 5px;
  color: var(--ink-2); border: 1px solid transparent !important; border-radius: 10px;
  font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 10px; font-weight: 600;   /* a point smaller (Azhar 2026-11-06) */
  white-space: nowrap; background: transparent; box-shadow: none;
}
html[data-ui="v2"] .sidebar .nav-item::before { display: none !important; }
html[data-ui="v2"] .sidebar .nav-item .ic { flex: none; width: 30px; height: 30px; border-radius: 9px; opacity: 1; color: var(--ink-2); transform: none !important; transition: background-color 160ms ease, color 160ms ease; }
html[data-ui="v2"] .sidebar .nav-item .ic svg { width: 16px; height: 16px; stroke-width: 1.5; }
html[data-ui="v2"] .sidebar .nav-item:hover { background: var(--v2-sunk); color: var(--ink); }
html[data-ui="v2"] .sidebar .nav-item:hover .ic { color: var(--ink); }
html[data-ui="v2"] .sidebar .nav-item:active { transform: scale(.97); }
html[data-ui="v2"] .sidebar .nav-item.active { background: var(--v2-sunk); border-color: var(--line) !important; color: var(--ink); box-shadow: none; }
html[data-ui="v2"] .sidebar .nav-item.active .ic { background: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] .sidebar .nav-item .ct, html[data-ui="v2"] .sidebar .nav-item.nav-core:not(.active) .ct, html[data-ui="v2"] .sidebar .nav-item.active .ct {
  margin-left: auto; color: var(--ink-2); background: var(--v2-surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; font-family: var(--ff-mono); font-size: 11px;
}
html[data-ui="v2"] .sidebar .nav-item .ct:empty { display: none; }

/* closed rail: everything but the icons fades out and takes no width */
html[data-ui="v2"] .sidebar :is(.nav-item > span:not(.ic), .brand-tag > span, .nav-sec-h > span, .nav-label) {
  opacity: 0; transform: translateX(-6px); transition: opacity 120ms ease-out, transform 120ms ease-out;
}
html[data-ui="v2"] .sidebar.v2-open :is(.nav-item > span:not(.ic), .brand-tag > span, .nav-sec-h > span, .nav-label) {
  opacity: 1; transform: none; transition: opacity 200ms var(--v2-ease) 260ms, transform 260ms var(--v2-ease) 260ms;
}
html[data-ui="v2"] .sidebar.v2-open :is(.nav-sec-h, .nav-label) { height: 28px; padding: 12px 8px 0; }
html[data-ui="v2"] .sidebar.v2-open .nav-sec-h::after { opacity: 0; }
html[data-ui="v2"] .sidebar .brand-tag { padding: 3px; }

/* regulators + run details: only in the open panel */
html[data-ui="v2"] .sidebar .nav-label, html[data-ui="v2"] .sidebar #jurNav, html[data-ui="v2"] .sidebar .sidebar-foot { display: none; }
html[data-ui="v2"] .sidebar.v2-open .nav-label { display: block; }
html[data-ui="v2"] .sidebar.v2-open #jurNav { display: grid; padding: 4px 0 8px; }
html[data-ui="v2"] .sidebar.v2-open .sidebar-foot { display: block; }
html[data-ui="v2"] #jurNav .nav-item { height: 28px; justify-content: center; border: 1px solid var(--line) !important; border-radius: 999px; font-family: var(--ff-mono); text-transform: none; letter-spacing: .02em; font-size: 11px; color: var(--ink-2); }
html[data-ui="v2"] #jurNav .nav-item.active { background: var(--v2-btn); color: var(--v2-btn-ink); border-color: var(--v2-btn) !important; }
html[data-ui="v2"] #jurNav .nav-item.active .jur-ct { color: var(--v2-btn-ink); }
html[data-ui="v2"] .sidebar-foot { border-top: 1px solid var(--line); color: var(--muted); }
html[data-ui="v2"] .sidebar-foot .k { color: var(--muted); } html[data-ui="v2"] .sidebar-foot .v { color: var(--ink); }
html[data-ui="v2"] .sidebar-foot .sb-foot-brand { color: var(--muted); }

/* theme toggle (added by v2.js) */
html[data-ui="v2"] .v2-theme { flex: none; margin-top: auto; display: grid; grid-template-columns: 1fr; background: var(--v2-sunk); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
html[data-ui="v2"] .v2-theme button { border: 0; background: none; border-radius: var(--r-sm); padding: 9px 0; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 600; }
html[data-ui="v2"] .v2-theme button svg { width: 18px; height: 18px; flex: none; }
html[data-ui="v2"] .v2-theme button.on { background: var(--v2-surface); color: var(--ink); box-shadow: var(--shadow); }
html[data-ui="v2"] .v2-theme button:not(.on) { display: none; }
html[data-ui="v2"] .v2-theme button span { width: 0; overflow: hidden; }
/* Collapsed, the hidden label takes no gap, so the icon sits dead centre. */
html[data-ui="v2"] .sidebar:not(.v2-open) .v2-theme button { gap: 0; }
html[data-ui="v2"] .sidebar.v2-open .v2-theme { grid-template-columns: 1fr 1fr; }
html[data-ui="v2"] .sidebar.v2-open .v2-theme button { display: flex; }
html[data-ui="v2"] .sidebar.v2-open .v2-theme button span { width: auto; }
html[data-ui="v2"] .sidebar-spacer { display: none; }

@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] .app, html[data-ui="v2"] .sidebar, html[data-ui="v2"] .sidebar * { transition: none !important; } }
/* The rail stays on screen down to the phone gate (768px), so its column does too:
   collapsing it at 960px let the fixed rail cover the page (Azhar 2026-11-18). */

/* ---------- topbar ---------- */
html[data-ui="v2"] .topbar { background: var(--bg); border-bottom: 0; }
html[data-ui="v2"] .topbar .crumbs .root { color: var(--muted); font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .08em; }
/* A long client name gives way, never the page you are on. */
html[data-ui="v2"] .topbar .crumbs .root { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="v2"] .topbar .crumbs .here { color: var(--ink); font-family: var(--ff-display); font-stretch: 115%; letter-spacing: .08em; font-weight: 700; font-size: 16.5px; }
html[data-ui="v2"] .topbar-search { background: var(--v2-surface); border: 1px solid var(--line-strong); border-radius: 11px; }
html[data-ui="v2"] .topbar-search input { font-family: var(--ff-sans); }
html[data-ui="v2"] .tour-btn, html[data-ui="v2"] .notif-bell, html[data-ui="v2"] .sb-toggle { background: var(--v2-surface); border: 1px solid var(--line-strong); color: var(--ink-2); transition: transform 160ms var(--v2-ease), background-color 160ms ease; }
html[data-ui="v2"] .tour-btn:active, html[data-ui="v2"] .notif-bell:active, html[data-ui="v2"] .sb-toggle:active { transform: scale(.97); }

/* ---------- page heroes: light header, uppercase title, no dark banner ---------- */
html[data-ui="v2"] .page-hero { background: transparent !important; color: var(--ink); box-shadow: none; border: 0; padding: 4px 0 8px; min-height: 0; }
html[data-ui="v2"] .page-hero .ph-bg, html[data-ui="v2"] .page-hero .aurora, html[data-ui="v2"] .page-hero .ph-globe { display: none !important; }
html[data-ui="v2"] .page-hero .ph-body { padding: 0; }
html[data-ui="v2"] .page-hero .ph-eyebrow { color: var(--muted); font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .14em; font-size: 11.5px; }
html[data-ui="v2"] .page-hero .ph-eyebrow::before { display: none; }
html[data-ui="v2"] .page-hero .ph-title { color: var(--ink); font-family: var(--ff-display); font-stretch: 115%; text-transform: uppercase; letter-spacing: .06em; font-size: 24px; font-weight: 700; line-height: 1.2; }
html[data-ui="v2"] .page-hero .ph-title [data-hl] { color: inherit; }
html[data-ui="v2"] .page-hero .ph-sub { color: var(--muted); font-size: 14.5px; max-width: 70ch; }
html[data-ui="v2"] .page-hero .ph-stat .lbl { color: var(--muted); font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .12em; }
html[data-ui="v2"] .page-hero .ph-stat .val { color: var(--ink); font-family: var(--ff-display); font-stretch: 118%; font-weight: 650; }

/* ---------- pressables ---------- */
html[data-ui="v2"] button { transition: transform 160ms var(--v2-ease), background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
html[data-ui="v2"] button:active:not(:disabled) { transform: scale(.97); }

/* ---------- design switch (lives in the side panel footer in both versions) ---------- */
.ui-switch { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 7px 10px; border-radius: 10px; border: 1px solid oklch(100% 0 0 / .14); background: transparent; color: inherit; font: inherit; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; opacity: .8; }
.ui-switch:hover { opacity: 1; }
html[data-ui="v2"] .ui-switch { border-color: var(--line); color: var(--ink-2); font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; font-size: 11px; }
html[data-ui="v2"] .ui-switch:hover { background: var(--v2-sunk); }

/* ---------- surfaces: no dark banners; light cards with a soft drifting tint ---------- */
@keyframes v2-drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-5%,3%,0) scale(1.06); } 100% { transform: translate3d(4%,-2%,0) scale(.98); } }
html[data-ui="v2"] .exec-hero {
  background: var(--v2-surface) !important; background-image: none !important; color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); isolation: isolate;
}
html[data-ui="v2"] .exec-hero::before {
  content: ""; position: absolute; inset: -60% -30%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side at 70% 35%, var(--v2-hero-tint, oklch(80% .1 70 / .30)), transparent), radial-gradient(closest-side at 30% 70%, color-mix(in oklch, var(--v2-hero-tint, oklch(80% .1 70 / .3)) 50%, transparent), transparent);
  background-size: 70% 80%, 60% 70%; background-repeat: no-repeat; background-position: 72% 28%, 28% 74%;
  animation: v2-drift 22s cubic-bezier(.45,0,.55,1) infinite alternate; animation-play-state: var(--v2-drift-play, running);
}
html[data-ui="v2"] .exec-hero .aurora, html[data-ui="v2"] .exec-hero .v5-fx, html[data-ui="v2"] .exec-hero .ph-globe, html[data-ui="v2"] .exec-hero .exec-hero-bg, html[data-ui="v2"] .page-hero .v5-fx { display: none !important; }
html[data-ui="v2"] .exec-hero .exec-hero-body { padding: 24px 28px; }
html[data-ui="v2"] .exec-eyebrow { color: var(--muted) !important; font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .14em; font-size: 11.5px; font-weight: 600; }
html[data-ui="v2"] .exec-h1 { color: var(--ink) !important; font-family: var(--ff-display); font-stretch: 115%; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
html[data-ui="v2"] .exec-h1 [data-hl], html[data-ui="v2"] .exec-h1 span { color: inherit; -webkit-text-fill-color: currentColor; background: none; }
html[data-ui="v2"] .exec-subhead { color: var(--ink-2) !important; font-family: var(--ff-sans); }
html[data-ui="v2"] .exec-hero .ers-score .ers-lbl, html[data-ui="v2"] .exec-hero .ers-meta .k { color: var(--muted); font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .12em; font-weight: 600; }
html[data-ui="v2"] .exec-hero .ers-score .ers-val { color: var(--ink); font-family: var(--ff-display); font-stretch: 118%; font-weight: 650; }
html[data-ui="v2"] .exec-hero .ers-score .ers-unit { color: var(--muted); }
html[data-ui="v2"] .exec-hero .ers-meta .v { color: var(--ink); font-family: var(--ff-mono); }
html[data-ui="v2"] .exec-hero .ehj-lbl { color: var(--muted); }
html[data-ui="v2"] .exec-hero .exec-hero-jur { position: relative; z-index: 1; }

/* cards */
html[data-ui="v2"] .bento-card, html[data-ui="v2"] .persop-card, html[data-ui="v2"] .metric { background: var(--v2-surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
html[data-ui="v2"] .bento-card::before, html[data-ui="v2"] .bento-card::after { border-top-color: transparent; }
html[data-ui="v2"] .bento-card:hover { border-color: var(--line-strong); box-shadow: 0 8px 26px oklch(25% .02 60 / .08); transform: translateY(-2px); }
/* Hover keeps the card's own surface (the classic tinted-card hover painted a gold glow). */
html[data-ui="v2"] .bento-card[class*="tint-"], html[data-ui="v2"] .bento-card[class*="tint-"]:hover { background: var(--v2-surface); }
html[data-ui="v2"] .bento-card { transition: border-color 260ms var(--v2-ease), box-shadow 260ms var(--v2-ease), transform 300ms var(--v2-ease); }
/* Cards rise in through the v2 reveal (st-wait / st-in); the classic fade would double it. */
html[data-ui="v2"] .bento-card.reveal { opacity: 1; transform: none; }
html[data-ui="v2"] .bento-card .bento-h, html[data-ui="v2"] .bento-h { font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .07em; font-size: 12.5px; font-weight: 650; color: var(--ink); border-bottom-color: var(--line); }
html[data-ui="v2"] .bento-card .bento-h .bh-icon, html[data-ui="v2"] .bh-icon { width: 28px; height: 28px; border-radius: 9px; background: var(--v2-sunk); color: var(--ink-2); }
html[data-ui="v2"] .bento-card .bento-h .bh-icon svg { width: 15px; height: 15px; }
/* A card title given its icon by _headIcon lays out like the bento titles. */
html[data-ui="v2"] [data-hi] { display: flex; align-items: center; gap: 12px; }
html[data-ui="v2"] [data-hi] > .bh-icon { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--v2-sunk); color: var(--ink-2); }
html[data-ui="v2"] [data-hi] > .bh-icon svg { width: 15px; height: 15px; }
html[data-ui="v2"] .pf-sec-h[data-hi] { justify-content: flex-start; } html[data-ui="v2"] .pf-sec-h[data-hi] > :last-child { margin-left: auto; }
html[data-ui="v2"] .bento-card .bh-btn, html[data-ui="v2"] .ph-btn, html[data-ui="v2"] .sa-btn { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; border-radius: 999px; }
html[data-ui="v2"] .bento-card .bh-btn:hover { border-color: var(--ink-2); background: var(--v2-sunk); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] .exec-hero::before { animation: none; } }

/* ---------- Audit Report: finding rows ---------- */
html[data-ui="v2"] .auditlist { gap: 8px; }
html[data-ui="v2"] .audit-row.v2-row, html[data-ui="v2"] .audit-row.v2-row.open {
  padding: 0; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--v2-surface) !important; background-image: none !important;
  color: var(--ink); box-shadow: var(--shadow); transform: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms var(--v2-ease);
}
html[data-ui="v2"] .audit-row.v2-row::before, html[data-ui="v2"] .audit-row.v2-row::after { display: none !important; }
html[data-ui="v2"] .audit-row.v2-row:not(.open):hover { border-color: var(--line-strong); box-shadow: 0 6px 20px oklch(25% .02 60 / .08); transform: translateY(-1px); }
html[data-ui="v2"] .v2-row .audit-head {
  display: grid; grid-template-columns: auto 42px minmax(0, 1fr) auto 34px; align-items: center; gap: 14px;
  padding: 14px 16px 14px 14px; cursor: pointer; border-radius: 15px; position: relative; overflow: hidden; isolation: isolate;
}
html[data-ui="v2"] .v2-row .a-check-head { display: grid; place-items: center; }
html[data-ui="v2"] .v2-row .a-check-box { width: 16px; height: 16px; accent-color: var(--v2-btn); margin: 0; }
html[data-ui="v2"] .v2-sic { width: 42px; height: 42px; border-radius: var(--r); display: grid; place-items: center; background: var(--sb); color: var(--sc); }
html[data-ui="v2"] .v2-sic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html[data-ui="v2"] .v2-ttl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html[data-ui="v2"] .v2-ttl b { font-weight: 600; font-size: 15.5px; line-height: 1.35; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="v2"] .v2-crumb { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: -2px; }
html[data-ui="v2"] .v2-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted); }
html[data-ui="v2"] .v2-cite { flex: none; font-family: var(--ff-mono); font-weight: 600; font-size: 12.5px; color: var(--sc); background: var(--sb); border-radius: 6px; padding: 1px 7px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
html[data-ui="v2"] .v2-amd { font-size: 11px; opacity: .8; border-left: 1px solid currentColor; padding-left: 6px; }
html[data-ui="v2"] .v2-std { flex: none; display: inline-flex; align-items: center; gap: 5px; font-family: var(--ff-mono); font-size: 12.5px; }
html[data-ui="v2"] .v2-std .rflag-badge svg { width: 16px; height: 11px; border-radius: 2px; }
html[data-ui="v2"] .v2-sep { flex: none; width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
html[data-ui="v2"] .v2-req { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="v2"] .v2-chips { display: flex; align-items: center; gap: 8px; }
html[data-ui="v2"] .v2-chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); white-space: nowrap; background: var(--v2-surface); }
html[data-ui="v2"] .v2-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; color: var(--muted); }
html[data-ui="v2"] .v2-own { padding-left: 4px; }
html[data-ui="v2"] .v2-av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-display); font-stretch: 115%; font-size: 10.5px; font-weight: 700; background: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] .v2-pr { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 650; border-color: transparent; }
html[data-ui="v2"] .v2-pr i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
html[data-ui="v2"] .v2-pr.pr-high { color: var(--v2-gap-ink); background: var(--v2-gap-soft); }
html[data-ui="v2"] .v2-pr.pr-medium { color: var(--v2-par-ink); background: var(--v2-par-soft); }
html[data-ui="v2"] .v2-pr.pr-low { color: var(--v2-cov-ink); background: var(--v2-cov-soft); }
html[data-ui="v2"] .v2-row .a-review-badge { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 650; }
html[data-ui="v2"] .v2-cbtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--v2-surface); display: grid; place-items: center; color: var(--muted); cursor: pointer; padding: 0; transition: transform 250ms var(--v2-ease), background-color 160ms ease, color 160ms ease; }
html[data-ui="v2"] .v2-cbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
html[data-ui="v2"] .v2-row:hover .v2-cbtn { background: var(--v2-sunk); color: var(--ink); }
html[data-ui="v2"] .v2-row.open .v2-cbtn { transform: rotate(180deg); background: var(--v2-btn); border-color: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] .v2-row.open { border-color: color-mix(in oklch, var(--sc) 22%, var(--line)); }
html[data-ui="v2"] .v2-row.open .audit-head { border-bottom: 1px solid color-mix(in oklch, var(--sc) 18%, var(--line)); border-radius: 15px 15px 0 0; }
html[data-ui="v2"] .v2-row.open .v2-req { display: none; } html[data-ui="v2"] .v2-row.open .v2-sep { display: none; }
html[data-ui="v2"] .v2-row.open .audit-head::before {
  content: ""; position: absolute; inset: -60% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side at 70% 40%, color-mix(in oklch, var(--sc) 24%, transparent), transparent), radial-gradient(closest-side at 30% 60%, color-mix(in oklch, var(--sc) 12%, transparent), transparent);
  background-size: 70% 90%, 60% 80%; background-repeat: no-repeat; background-position: 70% 30%, 30% 70%;
  animation: v2-drift 26s cubic-bezier(.45,0,.55,1) infinite alternate; animation-play-state: var(--v2-drift-play, running);
}
html[data-ui="v2"] .audit-row.v2-row.open .audit-body-inner { margin: 0; padding: 16px; background: none !important; border-top: 0; border-radius: 0 0 16px 16px; }
html[data-ui="v2"] .audit-row.v2-row .audit-body-inner { margin: 0; }

/* ---------- Audit Report: the opened finding as tiles ---------- */
html[data-ui="v2"] .v2-detail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
html[data-ui="v2"] .v2-tile { background: var(--v2-surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; color: var(--ink); min-width: 0; position: relative; overflow: hidden; isolation: isolate; }
@keyframes v2-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes v2-rise-card { from { opacity: 0; transform: translateY(16px) scale(.985); } }
/* entrance cascade (driven by v2.js as each part scrolls into view) */
/* Page blocks enter on the scroll reveal only; the classic page-open rise
   (pageRise on every .view child) played off-screen and doubled the reveal. */
html[data-ui="v2"] .view:not([hidden]) > *:not(.st-in) { animation: none; will-change: auto; }
html[data-ui="v2"] .st-wait { opacity: 0; }
html[data-ui="v2"] .st-in { animation: v2-rise 520ms var(--v2-ease) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
html[data-ui="v2"] :is(.v2-tile, .ap-sec, .sov-sec, .page-hero, .exec-hero, .bento-card, .ps-tile, .persop-card, .reglib-card, .dec-card, .rc-card, .team-card, .pf-card, .dec-feed, #auditList).st-in { animation-name: v2-rise-card; animation-duration: 560ms; }
html[data-ui="v2"] .v2-tile > * { position: relative; z-index: 1; }
html[data-ui="v2"] .v2-tile h4 { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; font-weight: 650; color: var(--ink-2); }
html[data-ui="v2"] .v2-ti { width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--v2-sunk); color: var(--ink-2); flex: none; }
html[data-ui="v2"] .v2-ti svg, html[data-ui="v2"] .v2-fi svg, html[data-ui="v2"] .v2-ic svg, html[data-ui="v2"] .v2-gi svg, html[data-ui="v2"] .v2-go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html[data-ui="v2"] .v2-n { font-family: var(--ff-mono); font-weight: 500; letter-spacing: 0; }
html[data-ui="v2"] .t-req { grid-column: span 7; } html[data-ui="v2"] .t-sum { grid-column: span 5; } html[data-ui="v2"] .t-half { grid-column: span 6; }
/* Tiles stretch to their row (no hole under a short one); _v2Balance picks
   each pair's column split and measures with .v2-measure on. */
html[data-ui="v2"] .v2-detail.v2-measure > .v2-tile { align-self: start; } html[data-ui="v2"] .t-slim { grid-column: span 4; } html[data-ui="v2"] .t-wide8 { grid-column: span 8; } html[data-ui="v2"] .t-quote { grid-column: span 7; } html[data-ui="v2"] .t-fix { grid-column: span 5; } html[data-ui="v2"] .t-wide { grid-column: span 12; }
html[data-ui="v2"] .a-req { --acc: oklch(50% .12 255); --acc-bg: oklch(94% .03 255); } html[data-ui="v2"] .a-sum { --acc: oklch(50% .09 195); --acc-bg: oklch(94.5% .03 195); }
html[data-ui="v2"] .a-quote { --acc: oklch(50% .09 75); --acc-bg: oklch(95% .035 80); } html[data-ui="v2"] .a-map { --acc: oklch(48% .1 160); --acc-bg: oklch(94.5% .035 160); }
html[data-ui="v2"] .a-guide { --acc: oklch(50% .12 255); --acc-bg: oklch(94% .03 255); } html[data-ui="v2"] .a-enf { --acc: var(--v2-gap-ink); --acc-bg: var(--v2-gap-soft); }
html[data-ui="v2"][data-theme="dark"] :is(.a-req, .a-guide) { --acc: oklch(78% .1 255); --acc-bg: oklch(30% .05 255); }
html[data-ui="v2"][data-theme="dark"] .a-sum { --acc: oklch(80% .08 195); --acc-bg: oklch(30% .04 195); }
html[data-ui="v2"][data-theme="dark"] .a-quote { --acc: oklch(82% .08 80); --acc-bg: oklch(31% .04 80); }
html[data-ui="v2"][data-theme="dark"] .a-map { --acc: oklch(80% .09 160); --acc-bg: oklch(30% .045 160); }
html[data-ui="v2"] .v2-tile[class*=" a-"] h4 { color: var(--acc); } html[data-ui="v2"] .v2-tile[class*=" a-"] .v2-ti, html[data-ui="v2"] .a-sum .v2-fi, html[data-ui="v2"] .a-guide .v2-gi { background: var(--acc-bg); color: var(--acc); }
html[data-ui="v2"] .v2-rq-t { font-size: 17px; font-weight: 600; line-height: 1.35; margin: -2px 0 4px; }
html[data-ui="v2"] .v2-rq-c { font-family: var(--ff-mono); font-size: 12.5px; color: var(--muted); margin-bottom: 10px; } html[data-ui="v2"] .v2-rq-c span { cursor: pointer; }
html[data-ui="v2"] .v2-lead { margin: 0; font-size: 14.5px; line-height: 1.6; max-width: 72ch; }
html[data-ui="v2"] .v2-obl { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
html[data-ui="v2"] .v2-obl li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 14.5px; line-height: 1.6; }
html[data-ui="v2"] .v2-lt { font-family: var(--ff-mono); font-size: 12.5px; height: 24px; border-radius: var(--r-sm); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
html[data-ui="v2"] .v2-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
html[data-ui="v2"] .v2-fact { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
html[data-ui="v2"] .v2-fi { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--v2-sunk); color: var(--ink-2); }
html[data-ui="v2"] .v2-k { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 600; color: var(--muted); margin: 2px 0 3px; }
html[data-ui="v2"] .v2-v { font-size: 14.5px; font-weight: 500; }
html[data-ui="v2"] .v2-why { font-weight: 400; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
html[data-ui="v2"] .v2-meter { display: flex; align-items: center; gap: 10px; } html[data-ui="v2"] .v2-track { flex: 1; max-width: 110px; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; } html[data-ui="v2"] .v2-track i { display: block; height: 100%; background: var(--ink-2); }
html[data-ui="v2"] .v2-mono { font-family: var(--ff-mono); font-size: 12.5px; }
html[data-ui="v2"] .v2-pts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
html[data-ui="v2"] .v2-pts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 14.5px; line-height: 1.6; }
html[data-ui="v2"] .v2-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--v2-surface); }
html[data-ui="v2"] .v2-ic svg { width: 12px; height: 12px; stroke-width: 2.3; }
html[data-ui="v2"] .v2-ic.ok { color: var(--v2-cov-ink); } html[data-ui="v2"] .v2-ic.no { color: var(--v2-gap-ink); } html[data-ui="v2"] .v2-ic.nt { color: var(--muted); }
html[data-ui="v2"] .v2-empty { margin: 0; font-size: 14.5px; color: var(--muted); }
/* found / missing: one hue fading to the surface, drifting slowly */
html[data-ui="v2"] .v2-tile.tone-cool { --tw: oklch(72% .085 238 / .30); --tw2: oklch(72% .085 238 / .14); --hc: oklch(48% .075 240); }
html[data-ui="v2"] .v2-tile.tone-gap { --tw: oklch(68% .15 30 / .24); --tw2: oklch(68% .15 30 / .11); --hc: oklch(52% .16 30); }
html[data-ui="v2"] .v2-tile.tone-par { --tw: oklch(85% .105 74 / .42); --tw2: oklch(85% .105 74 / .20); --hc: oklch(55% .11 62); }
html[data-ui="v2"] .v2-tile.tone-oos { --tw: oklch(75% .01 260 / .25); --tw2: oklch(75% .01 260 / .12); --hc: var(--ink-2); }
html[data-ui="v2"][data-theme="dark"] .v2-tile.tone-cool { --tw: oklch(62% .09 238 / .30); --tw2: oklch(62% .09 238 / .14); --hc: oklch(80% .07 238); }
html[data-ui="v2"][data-theme="dark"] .v2-tile.tone-gap { --tw: oklch(60% .15 28 / .30); --tw2: oklch(60% .15 28 / .14); --hc: oklch(78% .12 32); }
html[data-ui="v2"][data-theme="dark"] .v2-tile.tone-par { --tw: oklch(78% .1 72 / .24); --tw2: oklch(78% .1 72 / .12); --hc: oklch(84% .09 72); }
html[data-ui="v2"] .v2-tile:is(.tone-cool, .tone-gap, .tone-par, .tone-oos) h4, html[data-ui="v2"] .v2-tile:is(.tone-cool, .tone-gap, .tone-par, .tone-oos) .v2-ti { color: var(--hc); }
html[data-ui="v2"] .v2-tile:is(.tone-cool, .tone-gap, .tone-par, .tone-oos)::before {
  content: ""; position: absolute; inset: -60% -40%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side at 68% 38%, var(--tw), transparent), radial-gradient(closest-side at 32% 64%, var(--tw2), transparent);
  background-size: 70% 80%, 70% 80%; background-repeat: no-repeat; background-position: 62% 30%, 30% 72%;
  animation: v2-drift 22s cubic-bezier(.45,0,.55,1) infinite alternate; animation-play-state: var(--v2-drift-play, running);
}
html[data-ui="v2"] .v2-tile.tone-act { background: var(--v2-btn); border-color: var(--v2-btn); color: var(--v2-btn-ink); }
/* fix tile grid: crisp across the bottom half, dissolving into a blur toward the top */
html[data-ui="v2"] .v2-tile.tone-act::before, html[data-ui="v2"] .v2-tile.tone-act::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--v2-btn-ink) 8%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--v2-btn-ink) 8%, transparent) 1px, transparent 1px);
  background-size: 24px 24px; background-position: 0 100%; }
html[data-ui="v2"] .v2-tile.tone-act::before { -webkit-mask-image: linear-gradient(to top, #000 0%, #000 42%, transparent 62%); mask-image: linear-gradient(to top, #000 0%, #000 42%, transparent 62%); }
html[data-ui="v2"] .v2-tile.tone-act::after { filter: blur(3px); -webkit-mask-image: linear-gradient(to top, transparent 38%, #000 58%, transparent 100%); mask-image: linear-gradient(to top, transparent 38%, #000 58%, transparent 100%); }
html[data-ui="v2"] .v2-tile.tone-act h4 { color: color-mix(in oklch, var(--v2-btn-ink) 70%, transparent); }
html[data-ui="v2"] .v2-tile.tone-act .v2-ti { background: color-mix(in oklch, var(--v2-btn-ink) 14%, transparent); color: var(--v2-btn-ink); }
html[data-ui="v2"] .v2-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 11px; }
html[data-ui="v2"] .v2-steps li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 14.5px; line-height: 1.6; }
html[data-ui="v2"] .v2-steps li::before { content: counter(s); font-family: var(--ff-mono); font-size: 12.5px; width: 24px; height: 24px; border-radius: 50%; background: var(--v2-btn-ink); color: var(--v2-btn); display: grid; place-items: center; }
html[data-ui="v2"] .v2-quotes { display: flex; flex-direction: column; gap: 10px; }
html[data-ui="v2"] .v2-q { background: color-mix(in oklch, var(--v2-sunk) 60%, var(--v2-surface)); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
html[data-ui="v2"] .v2-q-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
html[data-ui="v2"] .v2-q blockquote { margin: 0; font-size: 14.5px; line-height: 1.65; font-style: italic; color: var(--ink); }
html[data-ui="v2"] .v2-xmaps { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-ui="v2"] .v2-xm { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; font-size: 13px; background: var(--v2-surface); cursor: pointer; transition: transform 160ms var(--v2-ease), box-shadow 160ms ease; }
html[data-ui="v2"] .v2-xm:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
html[data-ui="v2"] .v2-mk { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 650; padding: 4px 9px; background: var(--v2-sunk); color: var(--ink-2); display: flex; align-items: center; gap: 7px; border-right: 1px solid var(--line); }
html[data-ui="v2"] .v2-mk .rflag-badge svg { width: 20px; height: 13px; border-radius: 2px; }
html[data-ui="v2"] .v2-xm .v2-mono { padding: 4px 9px; display: flex; align-items: center; color: var(--ink); }
html[data-ui="v2"] .v2-glinks, html[data-ui="v2"] .v2-wls { display: flex; flex-direction: column; gap: 10px; }
html[data-ui="v2"] .v2-wls { margin-top: 12px; }
html[data-ui="v2"] .v2-gcard { display: grid; grid-template-columns: 36px 1fr 18px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--v2-surface); text-decoration: none; color: var(--ink); transition: border-color 160ms ease, transform 160ms var(--v2-ease), box-shadow 160ms ease; }
html[data-ui="v2"] a.v2-gcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
html[data-ui="v2"] .v2-gi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--v2-sunk); color: var(--ink-2); }
html[data-ui="v2"] .v2-gt { min-width: 0; } html[data-ui="v2"] .v2-gt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 14.5px; line-height: 1.45; }
html[data-ui="v2"] .v2-gt small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
html[data-ui="v2"] .v2-go { color: var(--muted); transition: transform 160ms var(--v2-ease); } html[data-ui="v2"] a.v2-gcard:hover .v2-go { transform: translate(2px, -2px); color: var(--ink); }
html[data-ui="v2"] .v2-ef { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
html[data-ui="v2"] .v2-ef > div { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
html[data-ui="v2"] .v2-ef b { font-size: 18px; } html[data-ui="v2"] .v2-ef span { font-size: 12.5px; color: var(--muted); }
html[data-ui="v2"] .v2-rev { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
html[data-ui="v2"] .v2-ti-dark { background: var(--v2-btn); color: var(--v2-btn-ink); width: 30px; height: 30px; border-radius: 9px; }
html[data-ui="v2"] .v2-rev-t { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 650; }
html[data-ui="v2"] .v2-rv-none { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px dashed var(--line-strong); border-radius: 999px; color: var(--muted); font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 650; }
html[data-ui="v2"] .v2-rev-sp { flex: 1; }
html[data-ui="v2"] .v2-rev-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--v2-btn); background: var(--v2-btn); color: var(--v2-btn-ink); font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11.5px; font-weight: 650; cursor: pointer; }
html[data-ui="v2"] .v2-rev-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transform: rotate(-90deg); transition: transform 200ms var(--v2-ease); }
@media (hover: hover) and (pointer: fine) { html[data-ui="v2"] .v2-rev-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px oklch(20% .02 260 / .22); } html[data-ui="v2"] .v2-rev-btn:hover svg { transform: rotate(-90deg) translateY(2px); } }
@media (max-width: 1180px) { html[data-ui="v2"] .v2-detail > * { grid-column: span 12 !important; } html[data-ui="v2"] .v2-chips .v2-own, html[data-ui="v2"] .v2-chips .v2-qn { display: none; } }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] .v2-tile, html[data-ui="v2"] .v2-tile::before, html[data-ui="v2"] .v2-row.open .audit-head::before { animation: none !important; } }

/* ---------- citation chips: quiet document references, still clickable ---------- */
html[data-ui="v2"] .cite-chip { border: 1px solid var(--line-strong); border-radius: 6px; background: var(--v2-surface); font-family: var(--ff-mono); font-size: 12.5px; vertical-align: 1px; transition: border-color 160ms ease, background-color 160ms ease; }
html[data-ui="v2"] .cite-chip .cc-prefix { background: var(--v2-sunk); color: var(--ink-2); font-size: 11px; padding: 1px 6px; border-right: 1px solid var(--line); }
html[data-ui="v2"] .cite-chip .cc-id { color: var(--ink); font-weight: 600; padding: 1px 6px; }
html[data-ui="v2"] .cite-chip .cc-para { background: transparent; color: var(--muted); border-left: 1px solid var(--line); }
html[data-ui="v2"] .cite-chip.cite-chip--client { background: var(--v2-surface); border-color: var(--line-strong); }
html[data-ui="v2"] :is(.cite-chip--open, .rd-open-reg):hover .cite-chip, html[data-ui="v2"] .cite-chip--open:hover, html[data-ui="v2"] .cite-chip--openreg:hover { border-color: var(--ink-2); background: var(--v2-sunk); }

/* ---------- side panels ---------- */
/* side panels blur the page behind them like the pop-ups and the open rail (Azhar, 2026-11-05) */
html[data-ui="v2"] .sov-bg, html[data-ui="v2"] .rd-bg { background: oklch(18% .012 260 / .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html[data-ui="v2"] .sov, html[data-ui="v2"] .reader { transition: transform 380ms cubic-bezier(.32,.72,0,1); border-radius: 20px 0 0 20px; overflow: hidden; }
html[data-ui="v2"] .sov-close { border-radius: 50%; transition: transform 160ms var(--v2-ease), background-color 160ms ease; }
html[data-ui="v2"] .sov-close:active { transform: scale(.94); }
/* document reader: a deliberate dark document viewer in v2 */
html[data-ui="v2"] .reader:not(.audit-panel), html[data-ui="v2"] .reader:not(.audit-panel) .rd-body, html[data-ui="v2"] .reader:not(.audit-panel) .rd-head { background: oklch(17% .008 255) !important; background-image: none !important; }
html[data-ui="v2"] .reader:not(.audit-panel) .rd-title { font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; letter-spacing: .01em; color: oklch(96% .004 70); }
html[data-ui="v2"] .reader:not(.audit-panel) .rd-head .eb { font-family: var(--ff-display); font-stretch: 112%; color: oklch(80% .08 72); letter-spacing: .12em; font-weight: 600; }
html[data-ui="v2"] .reader:not(.audit-panel) :is(.rd2-p, .rd2-step .txt, .rd-t) { font-family: var(--ff-sans); }

/* signing panel: the human review card */
html[data-ui="v2"] .audit-panel { background: var(--v2-surface) !important; color: var(--ink); width: min(820px, 96vw); }
html[data-ui="v2"] .audit-panel .rd-head { background: var(--v2-surface) !important; background-image: none !important; color: var(--ink); border-bottom: 1px solid var(--line); padding: 22px 26px 18px; }
html[data-ui="v2"] .audit-panel .rd-head .eb { color: var(--muted); font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; letter-spacing: .14em; display: flex; align-items: center; gap: 10px; }
html[data-ui="v2"] .audit-panel .rd-head .eb::before { content: ""; width: 30px; height: 30px; border-radius: 9px; background: var(--v2-btn); -webkit-mask: none; flex: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f4ef' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M3 15c3-1 4.5-5 6-5s0 5 2 5 3-3 4-3 1 2 3 2'/%3E%3Cpath d='M3 19h18'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 16px; }
/* Dark theme: the tile turns light, so the glyph turns dark (it was white on white). */
html[data-ui="v2"][data-theme="dark"] .audit-panel .rd-head .eb::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171a1f' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M3 15c3-1 4.5-5 6-5s0 5 2 5 3-3 4-3 1 2 3 2'/%3E%3Cpath d='M3 19h18'/%3E%3C/svg%3E"); }
html[data-ui="v2"] .audit-panel .rd-title { color: var(--ink); font-family: var(--ff-display); font-stretch: 112%; font-weight: 700; letter-spacing: .02em; font-size: 20px; }
html[data-ui="v2"] .audit-panel .rd-sub { color: var(--muted); font-family: var(--ff-mono); }
html[data-ui="v2"] .audit-panel .sov-close { background: var(--v2-sunk); border: 1px solid var(--line); color: var(--ink-2); }
html[data-ui="v2"] .audit-panel .audit-panel-body { background: var(--bg) !important; padding: 18px 22px 40px; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-sec { background: var(--v2-surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 12px; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-sec[hidden] { display: none; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-h { color: var(--ink-2); font-family: var(--ff-display); font-stretch: 112%; font-size: 11.5px; font-weight: 650; letter-spacing: .07em; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-req { color: var(--v2-gap-ink); background: var(--v2-gap-soft); font-family: var(--ff-display); font-stretch: 112%; border-radius: 999px; padding: 2px 8px; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-verdict .chip { background: var(--v2-sunk); border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 650; padding: 4px 10px; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-rationale { color: var(--ink-2); font-family: var(--ff-sans); font-size: 14.5px; line-height: 1.6; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-decisions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec { --t: var(--ink-2); --tb: var(--v2-sunk); background: var(--v2-surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; gap: 4px; color: var(--ink); box-shadow: none; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec.ok { --t: var(--v2-cov-ink); --tb: var(--v2-cov-soft); } html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec.warn { --t: var(--v2-gap-ink); --tb: var(--v2-gap-soft); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec.mute { --t: var(--v2-oos-ink); --tb: var(--v2-oos-soft); } html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec.flag { --t: var(--v2-par-ink); --tb: var(--v2-par-soft); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec:hover { border-color: var(--t); background: var(--v2-surface); transform: translateY(-1px); box-shadow: var(--shadow); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec.on { border-color: var(--t); background: var(--tb); box-shadow: 0 0 0 3px color-mix(in oklch, var(--t) 14%, transparent); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec-lbl { color: var(--ink); font-family: var(--ff-display); font-stretch: 112%; font-size: 12px; letter-spacing: .07em; flex-direction: column; align-items: flex-start; gap: 10px; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec.on .ap-dec-lbl { color: var(--t); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec-orb { width: 32px; height: 32px; border-radius: 10px; background: var(--tb) !important; box-shadow: none !important; position: relative; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec-orb::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 2px solid var(--t); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec.on .ap-dec-orb { background: var(--t) !important; } html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec.on .ap-dec-orb::after { border-color: var(--v2-surface); background: var(--v2-surface); inset: 11px; }
/* Each decision draws its own icon in its colour; the shared ring stays only as a fallback. */
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec-orb .ap-dec-ic { display: block; position: absolute; inset: 7px; width: 18px; height: 18px; color: var(--t); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec-orb:has(.ap-dec-ic)::after { display: none; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec.on .ap-dec-orb .ap-dec-ic { color: var(--v2-surface); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-dec-desc { color: var(--muted); font-size: 13px; line-height: 1.45; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-field { color: var(--muted); font-family: var(--ff-display); font-stretch: 112%; font-size: 11px; font-weight: 600; letter-spacing: .07em; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) :is(.ap-field select, .ap-input, .ap-textarea) { color: var(--ink); background: var(--v2-surface); border: 1px solid var(--line-strong); border-radius: 10px; font-family: var(--ff-sans); font-size: 14.5px; padding: 9px 12px; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-field select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8f99' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) :is(.ap-field select, .ap-input, .ap-textarea):focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ink-2) 12%, transparent); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-input[readonly] { background: var(--v2-sunk); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-tag { color: var(--ink-2); background: var(--v2-surface); border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--ff-display); font-stretch: 112%; font-size: 11px; font-weight: 650; padding: 5px 12px; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-tag:hover { border-color: var(--ink-2); color: var(--ink); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-tag.on, html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-tag.on:hover { background: var(--v2-btn); border-color: var(--v2-btn); color: var(--v2-btn-ink); filter: none; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-polish { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--ink-2); background: var(--v2-surface); border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--ff-display); font-stretch: 112%; font-size: 11px; padding: 3px 11px; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-polish[hidden] { display: none; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-h.v2-hrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-h.v2-hrow .ap-polish:first-of-type { margin-left: auto; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-h.v2-hrow .ap-polish + .ap-polish { margin-left: 0; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-polish:hover { background: var(--v2-btn); border-color: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-signoff { border-top: 0; padding: 18px 18px 16px; background: var(--v2-sunk); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-sign { color: var(--ink-2); font-style: normal; font-size: 13.5px; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-sign input { accent-color: var(--v2-btn); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-btn { font-family: var(--ff-display); font-stretch: 112%; font-size: 11.5px; letter-spacing: .07em; border-radius: 10px; padding: 11px 18px; transition: transform 160ms var(--v2-ease), box-shadow 160ms ease, background-color 160ms ease; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-save { background: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-save:hover { filter: none; transform: translateY(-2px); box-shadow: 0 8px 22px oklch(20% .02 260 / .28); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-save:active { transform: scale(.97); box-shadow: none; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-clear { background: var(--v2-surface); border-color: var(--line-strong); color: var(--ink-2); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-msg { color: var(--muted); font-style: italic; font-family: var(--ff-sans); font-size: 12.5px; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-msg.err { color: var(--v2-gap-ink); font-style: normal; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-session-note { font-family: var(--ff-sans); color: var(--v2-cov-ink); background: var(--v2-cov-soft); border-color: transparent; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-approval.is-pending { background: var(--v2-par-soft); border-color: transparent; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-approval.is-approved { background: var(--v2-cov-soft); border-color: transparent; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) :is(.ap-appr-note, .ap-appr-done) { color: var(--ink-2); } html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) :is(.ap-appr-note b, .ap-appr-done b) { color: var(--ink); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-appr-sub { color: var(--muted); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-approve { background: var(--v2-cov-ink); color: var(--v2-surface); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .cite-chip .cc-id { color: var(--ink); }
html[data-ui="v2"] .a-review-badge { font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .07em; border-radius: 999px; }
html[data-ui="v2"] .a-review-badge.ok { color: var(--v2-cov-ink); background: var(--v2-cov-soft); }
html[data-ui="v2"] .a-review-badge.warn, html[data-ui="v2"] .a-review-badge.flag { color: var(--v2-par-ink); background: var(--v2-par-soft); }
@media (max-width: 900px) { html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-decisions { grid-template-columns: 1fr 1fr; } }

/* ---------- shared controls: labels, filter pills, selects, toolbars ---------- */
html[data-ui="v2"] :is(.lbl, .h-lbl, .k, .arb-actlbl, .arb-count, .arb-progress, .ps-tile .lbl, .ab-tile .lbl, .section-head, .meter-mini, .metric .lbl) {
  font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .08em; font-weight: 600;
}
html[data-ui="v2"] .filterbar { border-bottom: 0; padding: 4px 0 14px; gap: 12px; }
html[data-ui="v2"] .seg { gap: 3px; padding: 3px; background: var(--v2-sunk); border: 1px solid var(--line); border-radius: var(--r); }
html[data-ui="v2"] .seg-btn { height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .07em; font-weight: 650; font-size: 11.5px; color: var(--ink-2); }
html[data-ui="v2"] .seg-btn:hover { background: color-mix(in oklch, var(--v2-surface) 60%, transparent); color: var(--ink); border: 0; }
html[data-ui="v2"] .seg-btn.active, html[data-ui="v2"] .seg-btn[data-status].active { background: var(--v2-surface) !important; color: var(--ink) !important; border: 0 !important; box-shadow: var(--shadow); }
html[data-ui="v2"] .seg-btn.active .sd { background: revert-layer !important; }
html[data-ui="v2"] .seg-btn[data-status="compliant"].active .sd { background: var(--c-compliant) !important; } html[data-ui="v2"] .seg-btn[data-status="partial"].active .sd { background: var(--c-partial) !important; }
html[data-ui="v2"] .seg-btn[data-status="gap"].active .sd { background: var(--c-gap) !important; } html[data-ui="v2"] .seg-btn[data-status="missing"].active .sd { background: var(--c-missing) !important; }
html[data-ui="v2"] .seg-btn[data-status="unverified"].active .sd { background: var(--c-unverif) !important; }
html[data-ui="v2"] .seg-ct { font-family: var(--ff-mono); }
html[data-ui="v2"] :is(select, .audit-filter-sel, .arb-select) { font-family: var(--ff-sans); text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); background-color: var(--v2-surface); border: 1px solid var(--line-strong); border-radius: 10px; }
html[data-ui="v2"] :is(.audit-filter-sel, .arb-select) { appearance: none; -webkit-appearance: none; padding: 8px 34px 8px 12px; cursor: pointer; max-width: 240px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8f99' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
html[data-ui="v2"] :is(input[type=search], input[type=text], input[type=email], textarea):focus { outline: none; }

/* status count cards above the findings */
html[data-ui="v2"] .audit-banner { gap: 12px; border: 0; margin: 4px 0 18px; }
html[data-ui="v2"] .audit-banner .ab-tile { --c: var(--ink-2); position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line) !important; border-radius: var(--r-lg); background: var(--v2-surface); padding: 16px 18px; box-shadow: var(--shadow); transition: transform 180ms var(--v2-ease), border-color 180ms ease; }
html[data-ui="v2"] .audit-banner .ab-tile[data-status="compliant"] { --c: var(--c-compliant); } html[data-ui="v2"] .audit-banner .ab-tile[data-status="partial"] { --c: var(--c-partial); }
html[data-ui="v2"] .audit-banner .ab-tile[data-status="gap"], html[data-ui="v2"] .audit-banner .ab-tile[data-status="missing"] { --c: var(--c-gap); }
html[data-ui="v2"] .audit-banner .ab-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 100% at 100% 0%, color-mix(in oklch, var(--c) 16%, transparent), transparent 62%); }
html[data-ui="v2"] .audit-banner .ab-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
html[data-ui="v2"] .audit-banner .ab-tile:hover:not(.is-active-filter) { box-shadow: 0 6px 20px oklch(25% .02 60 / .08); }
html[data-ui="v2"] .audit-banner .ab-tile.is-active-filter { border-color: color-mix(in oklch, var(--c) 55%, var(--line)) !important; background: var(--v2-surface); box-shadow: 0 0 0 3px color-mix(in oklch, var(--c) 14%, transparent); }
html[data-ui="v2"] .audit-banner .ab-tile .lbl { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); }
html[data-ui="v2"] .audit-banner .ab-tile .lbl::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
html[data-ui="v2"] .audit-banner .ab-tile .val { font-family: var(--ff-display); font-stretch: 118%; font-weight: 650; font-size: 32px; line-height: 1.1; color: var(--ink) !important; }
html[data-ui="v2"] .audit-banner .ab-tile .sub { font-family: var(--ff-sans); font-size: 13px; color: var(--muted); }

/* bulk review bar */
html[data-ui="v2"] .audit-reviewbar { background: var(--v2-surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px 18px; margin: 4px 0 16px; }
html[data-ui="v2"] .arb-selall { font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; letter-spacing: .07em; font-size: 11.5px; }
html[data-ui="v2"] .arb-selall input, html[data-ui="v2"] .arb-actions input { accent-color: var(--v2-btn); }
html[data-ui="v2"] .arb-actions { border-top-color: var(--line); }
html[data-ui="v2"] .arb-btn { font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; letter-spacing: .07em; font-size: 11px; border-radius: 999px; padding: 7px 14px; border: 1px solid var(--line-strong); background: var(--v2-surface); color: var(--ink-2); transition: transform 160ms var(--v2-ease), background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
html[data-ui="v2"] .arb-btn:hover { border-color: var(--ink-2); color: var(--ink); background: var(--v2-sunk); }
html[data-ui="v2"] .arb-btn.export, html[data-ui="v2"] .arb-btn.export:hover { background: var(--v2-btn); border-color: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] .arb-btn.export:hover { transform: translateY(-1px); box-shadow: 0 6px 16px oklch(20% .02 260 / .2); }
html[data-ui="v2"] .oos-explainer, html[data-ui="v2"] .cjr-notice { background: var(--v2-surface); border: 1px solid var(--line); border-radius: 14px; }

/* ---------- By SOP / By Role cards: light, open in place ---------- */
html[data-ui="v2"] .filterbar > span[style] { font-family: var(--ff-sans) !important; letter-spacing: 0 !important; font-size: 14px !important; color: var(--muted) !important; }
html[data-ui="v2"] .filterbar input[type=search], html[data-ui="v2"] .main input[type=search]:not(#searchInput) { padding: 8px 12px !important; border: 1px solid var(--line-strong) !important; border-radius: 10px !important; background: var(--v2-surface) !important; font-family: var(--ff-sans) !important; font-size: 14px !important; color: var(--ink) !important; min-width: 240px; }
html[data-ui="v2"] .persop-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border: 0; margin: 4px 0 22px; }
html[data-ui="v2"] .persop-summary .ps-tile { border: 1px solid var(--line) !important; border-radius: var(--r-lg); background: var(--v2-surface); padding: 16px 18px; box-shadow: var(--shadow); }
html[data-ui="v2"] .persop-summary .ps-tile .lbl { font-size: 11.5px; color: var(--ink-2); }
html[data-ui="v2"] .persop-summary .ps-tile:nth-child(1) .lbl::before { background: var(--ink-2); } html[data-ui="v2"] .persop-summary .ps-tile:nth-child(2) .lbl::before { background: var(--c-gap); }
html[data-ui="v2"] .persop-summary .ps-tile:nth-child(3) .lbl::before { background: var(--c-partial); } html[data-ui="v2"] .persop-summary .ps-tile:nth-child(4) .lbl::before { background: var(--c-compliant); }
html[data-ui="v2"] .persop-summary .ps-tile .val { font-family: var(--ff-display); font-stretch: 118%; font-weight: 650; font-size: 32px; color: var(--ink) !important; }
html[data-ui="v2"] .persop-summary .ps-tile .sub { font-family: var(--ff-sans); font-size: 13px; letter-spacing: 0; }
html[data-ui="v2"] .reglib-group-h { background: var(--bg); border: 0; box-shadow: 0 1px 0 var(--line), 0 10px 14px -12px oklch(25% .02 60 / .18); padding: 10px 2px; font-family: var(--ff-display); font-stretch: 115%; letter-spacing: .08em; font-weight: 700; font-size: 13.5px; color: var(--ink); }
html[data-ui="v2"] .reglib-group-n { font-family: var(--ff-mono); font-weight: 600; background: var(--v2-sunk); border-radius: 999px; padding: 1px 9px; color: var(--ink-2); }
html[data-ui="v2"] .persop-card, html[data-ui="v2"] .persop-card[data-risk], html[data-ui="v2"] .persop-card:not(.open):hover { background: var(--v2-surface) !important; background-image: none !important; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
html[data-ui="v2"] .persop-card:not(.open):hover { border-color: var(--line-strong); box-shadow: 0 6px 20px oklch(25% .02 60 / .08); transform: translateY(-1px); }
html[data-ui="v2"] .persop-card.open { background: var(--v2-surface) !important; background-image: none !important; color: var(--ink); border-color: var(--line-strong); box-shadow: 0 10px 30px oklch(25% .02 60 / .08); }
html[data-ui="v2"] .persop-card.open::before, html[data-ui="v2"] .persop-card.open::after { display: none; }
html[data-ui="v2"] .persop-head .ps-eyebrow, html[data-ui="v2"] .persop-card.open .ps-eyebrow { color: var(--muted); font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .08em; font-weight: 600; font-size: 11px; }
html[data-ui="v2"] .persop-head .ps-tag, html[data-ui="v2"] .persop-card.open .ps-tag { background: var(--v2-btn); color: var(--v2-btn-ink); font-family: var(--ff-display); font-stretch: 112%; border-radius: 999px; padding: 2px 8px; }
html[data-ui="v2"] .persop-card.open .ps-cite, html[data-ui="v2"] .persop-head .ps-cite { color: var(--ink); }
html[data-ui="v2"] .persop-card.open .ps-title { color: var(--ink-2); } html[data-ui="v2"] .persop-card.open .ps-cat { color: var(--muted); }
html[data-ui="v2"] .ps-pill, html[data-ui="v2"] .persop-card.open .ps-pill { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; font-size: 11px; border-radius: 999px; background: var(--v2-surface); border: 1px solid var(--line); padding: 3px 10px; }
html[data-ui="v2"] :is(.ps-pill, .persop-card.open .ps-pill).strength { color: var(--v2-cov-ink); background: var(--v2-cov-soft); border-color: transparent; }
html[data-ui="v2"] :is(.ps-pill, .persop-card.open .ps-pill).high { color: var(--v2-gap-ink); background: var(--v2-gap-soft); border-color: transparent; }
html[data-ui="v2"] :is(.ps-pill, .persop-card.open .ps-pill).medium { color: var(--v2-par-ink); background: var(--v2-par-soft); border-color: transparent; }
html[data-ui="v2"] :is(.ps-pill, .persop-card.open .ps-pill).low { color: var(--v2-oos-ink); background: var(--v2-oos-soft); border-color: transparent; }
html[data-ui="v2"] .persop-card.open .ps-chev { background: var(--v2-btn); border-color: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] .persop-card.open .persop-body-inner { border-top-color: var(--line); background: none; }
html[data-ui="v2"] .persop-card .ps-sec, html[data-ui="v2"] .persop-card.open .ps-sec { background: var(--v2-surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 6px; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
html[data-ui="v2"] .persop-card.open .ps-sec h5, html[data-ui="v2"] .ps-sec h5 { color: var(--ink-2); border-bottom-color: var(--line); font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .07em; font-weight: 650; font-size: 11.5px; }
html[data-ui="v2"] .persop-card.open .ps-sec h5 .h5-num { color: var(--muted); font-family: var(--ff-mono); }
html[data-ui="v2"] .persop-card.open .ps-finding { border-bottom-color: var(--line); }
html[data-ui="v2"] .persop-card.open .ps-finding .ps-reg { color: var(--muted); }
html[data-ui="v2"] .persop-card.open .ps-finding .ps-cite-in { color: var(--ink); }
html[data-ui="v2"] .persop-card.open .ps-finding .ps-snip { color: var(--ink-2); font-family: var(--ff-sans); }
html[data-ui="v2"] .ps-finding .ps-stat, html[data-ui="v2"] .persop-card.open .ps-finding .ps-stat { border: 0; border-radius: 999px; padding: 2px 9px; font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; font-size: 11px; letter-spacing: .07em; color: var(--v2-oos-ink); background: var(--v2-oos-soft); }
html[data-ui="v2"] :is(.ps-finding .ps-stat, .persop-card.open .ps-finding .ps-stat)[data-s="compliant"] { color: var(--v2-cov-ink); background: var(--v2-cov-soft); }
html[data-ui="v2"] :is(.ps-finding .ps-stat, .persop-card.open .ps-finding .ps-stat)[data-s="partial"] { color: var(--v2-par-ink); background: var(--v2-par-soft); }
html[data-ui="v2"] :is(.ps-finding .ps-stat, .persop-card.open .ps-finding .ps-stat):is([data-s="gap"], [data-s="missing"]) { color: var(--v2-gap-ink); background: var(--v2-gap-soft); }
html[data-ui="v2"] .persop-card.open .ps-finding[data-cite]:hover { background: var(--v2-sunk); }
html[data-ui="v2"] .ps-review, html[data-ui="v2"] .persop-card.open .ps-review { border: 1px solid var(--line-strong); color: var(--ink-2); border-radius: 999px; font-family: var(--ff-display); font-stretch: 112%; }
html[data-ui="v2"] .ps-review:hover, html[data-ui="v2"] .persop-card.open .ps-review:hover { background: var(--v2-btn); border-color: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] .ps-more-btn, html[data-ui="v2"] .persop-card.open .ps-more-btn { background: var(--v2-sunk); border: 1px solid var(--line); color: var(--ink-2); border-radius: 10px; font-family: var(--ff-display); font-stretch: 112%; }
html[data-ui="v2"] .ps-more-btn:hover, html[data-ui="v2"] .persop-card.open .ps-more-btn:hover { background: var(--v2-surface); border-color: var(--line-strong); color: var(--ink); }
/* "Show details" bar -> quiet pill button */
html[data-ui="v2"] .persop-card .a-expand, html[data-ui="v2"] .persop-card.open .a-expand { background: var(--v2-sunk) !important; border: 1px solid var(--line) !important; color: var(--ink-2) !important; border-radius: var(--r); font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; letter-spacing: .07em; }
html[data-ui="v2"] .persop-card .a-expand:hover { background: var(--v2-surface) !important; border-color: var(--line-strong) !important; color: var(--ink) !important; }
html[data-ui="v2"] .persop-card.open .a-expand { background: var(--v2-surface) !important; border-color: var(--line-strong) !important; color: var(--ink) !important; }

/* ---------- primary buttons: one dark ink button everywhere, no amber gradients ---------- */
html[data-ui="v2"] :is(.rc-open-btn, .ph-btn, .btn--primary, .rc-dhf-btn.primary) {
  color: var(--v2-btn-ink) !important; background: var(--v2-btn) !important; background-image: none !important; border: 1px solid var(--v2-btn) !important;
  font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; letter-spacing: .07em; border-radius: 10px; box-shadow: none;
  transition: transform 160ms var(--v2-ease), box-shadow 160ms ease !important;
}
@media (hover: hover) and (pointer: fine) { html[data-ui="v2"] :is(.rc-open-btn, .ph-btn, .btn--primary):hover { transform: translateY(-1px); box-shadow: 0 6px 18px oklch(20% .02 260 / .22) !important; filter: none; } }
html[data-ui="v2"] :is(.rc-open-btn, .ph-btn, .btn--primary):active { transform: scale(.97); box-shadow: none !important; }
html[data-ui="v2"] :is(.sa-btn, .btn, .rc-dhf-btn):not(.btn--primary):not(.primary) { font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; letter-spacing: .07em; border-radius: 10px; }
/* Ask VERA launcher */
html[data-ui="v2"] .av-launch { background: var(--v2-btn) !important; color: var(--v2-btn-ink) !important; font-family: var(--ff-display) !important; font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em !important; font-size: 12px !important;
  box-shadow: 0 12px 32px oklch(20% .02 260 / .26), 0 3px 8px oklch(20% .02 260 / .14), inset 0 1px 0 color-mix(in oklch, var(--v2-btn-ink) 14%, transparent), inset 0 -6px 14px oklch(0% 0 0 / .12) !important; }
html[data-ui="v2"] .av-launch:hover { box-shadow: 0 18px 40px oklch(20% .02 260 / .32), 0 0 0 5px color-mix(in oklch, var(--accent) 16%, transparent), 0 0 28px -4px color-mix(in oklch, var(--accent) 50%, transparent), inset 0 1px 0 color-mix(in oklch, var(--v2-btn-ink) 14%, transparent) !important; }
html[data-ui="v2"] .av-launch::before { padding: 2px; background: conic-gradient(from var(--av-a), color-mix(in oklch, var(--v2-btn-ink) 14%, transparent) 0deg, color-mix(in oklch, var(--v2-btn-ink) 14%, transparent) 200deg, var(--accent) 275deg, color-mix(in oklch, var(--accent) 35%, var(--v2-btn-ink)) 320deg, color-mix(in oklch, var(--v2-btn-ink) 14%, transparent) 360deg); }
html[data-ui="v2"] .av-launch svg { color: var(--v2-btn-ink) !important; }
html[data-ui="v2"] .av-drawer .nd-head, html[data-ui="v2"] .av-send { background: var(--v2-btn); color: var(--v2-btn-ink); box-shadow: 0 10px 24px -14px oklch(20% .02 260 / .45), inset 0 1px 0 color-mix(in oklch, var(--v2-btn-ink) 14%, transparent), inset 0 -6px 14px oklch(0% 0 0 / .12); }
html[data-ui="v2"] .av-drawer .nd-title { color: var(--v2-btn-ink); }
html[data-ui="v2"] .av-drawer .nd-sub { color: color-mix(in oklch, var(--v2-btn-ink) 68%, transparent); }
html[data-ui="v2"] .av-drawer .av-new { border-color: color-mix(in oklch, var(--v2-btn-ink) 24%, transparent); color: var(--v2-btn-ink); }
html[data-ui="v2"] .av-drawer .av-new:hover { border-color: color-mix(in oklch, var(--v2-btn-ink) 55%, transparent); color: var(--v2-btn-ink); }
html[data-ui="v2"] .av-drawer .av-x { color: color-mix(in oklch, var(--v2-btn-ink) 75%, transparent); }
html[data-ui="v2"] .av-drawer .av-x:hover { color: var(--v2-btn-ink); background: color-mix(in oklch, var(--v2-btn-ink) 10%, transparent); }

/* ---------- pills, chips and filter toggles across the app: one family ---------- */
html[data-ui="v2"] :is(.qms-rfilter, .sa-filter, .dc-group-pill, .team-pill, .rc-pill, .ri-chip, .dp-chip, .sa-chip, .fru-std-chip, .di-chip, .reglib-jfilters button, .dr-filters button) {
  font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; font-size: 11.5px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--v2-surface); color: var(--ink-2);
  transition: transform 160ms var(--v2-ease), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
html[data-ui="v2"] :is(.qms-rfilter, .sa-filter, .reglib-jfilters button, .dr-filters button):hover { border-color: var(--ink-2); color: var(--ink); }
html[data-ui="v2"] :is(.qms-rfilter, .sa-filter, .reglib-jfilters button, .dr-filters button):is(.on, .active, [aria-pressed="true"]) { background: var(--v2-btn); border-color: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] :is(.reglib-tag, .reg-pill) { font-family: var(--ff-mono); border-radius: 6px; background: var(--v2-sunk); border: 1px solid var(--line); color: var(--ink-2); }
html[data-ui="v2"] :is(.a-topic-pill, .a-role-pill) { font-family: var(--ff-display); font-stretch: 112%; border-radius: 999px; }
/* document and library cards */
html[data-ui="v2"] :is(.reglib-card, .sop-card, .dhf-card, .team-card, .rc-card, .dc-card) { background: var(--v2-surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: transform 180ms var(--v2-ease), border-color 180ms ease, box-shadow 180ms ease; }
html[data-ui="v2"] :is(.reglib-card, .dhf-card, .rc-card, .dc-card):hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 8px 24px oklch(25% .02 60 / .08); }
html[data-ui="v2"] :is(.reglib-search, .qms-search, .reglib-searchbar) { background: var(--v2-surface); border: 1px solid var(--line-strong); border-radius: var(--r); }
html[data-ui="v2"] .empty { font-family: var(--ff-sans); }
html[data-ui="v2"] .empty h3 { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .06em; }

/* design switch inside the open panel */
html[data-ui="v2"] .sidebar .ui-switch { display: none; }
html[data-ui="v2"] .sidebar.v2-open .ui-switch { display: block; text-align: center; }

/* ---------- Audit Report overview (from the approved prototype) ---------- */
html[data-ui="v2"] [data-view="full"] .audit-banner { display: none; }
html[data-ui="v2"] .v2-ov { margin: 4px 0 26px; }
html[data-ui="v2"] #v2ExecOverview { margin: 18px 0 22px; }
html[data-ui="v2"] .v2-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
html[data-ui="v2"] .v2-stat { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 20px 22px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--v2-surface); box-shadow: var(--shadow); cursor: pointer; color: var(--ink);
  opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--v2-ease), transform 500ms var(--v2-ease), border-color 200ms ease; transition-delay: var(--d, 0ms); }
html[data-ui="v2"] .v2-ov.in .v2-stat { opacity: 1; transform: none; }
html[data-ui="v2"] .v2-ov.in .v2-stat:hover { transform: translateY(-3px); transition-delay: 0ms; }
html[data-ui="v2"] .v2-stat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(130% 100% at 100% 0%, color-mix(in oklch, var(--c) 22%, transparent), transparent 62%); }
html[data-ui="v2"] .v2-stat.sel { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in oklch, var(--c) 14%, transparent); }
html[data-ui="v2"] .v2-stat-lab { display: flex; align-items: center; gap: 9px; font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; font-size: 12.5px; color: var(--ink-2); }
html[data-ui="v2"] .v2-stat-lab i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
html[data-ui="v2"] .v2-stat-num { font-family: var(--ff-display); font-stretch: 118%; font-weight: 650; font-size: 46px; line-height: 1; margin: 16px 0 8px; font-variant-numeric: tabular-nums; }
html[data-ui="v2"] .v2-stat-of { font-size: 13.5px; color: var(--muted); line-height: 1.5; } html[data-ui="v2"] .v2-stat-of b { display: block; font-weight: 500; color: var(--ink-2); }
html[data-ui="v2"] .v2-stat-pill { align-self: flex-start; display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: 999px; font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; font-size: 11.5px;
  color: color-mix(in oklch, var(--c) 70%, var(--ink)); background: color-mix(in oklch, var(--c) 14%, transparent); border: 1px solid color-mix(in oklch, var(--c) 32%, transparent); }
html[data-ui="v2"] .v2-stat-why { margin: 10px 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
html[data-ui="v2"] .v2-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; height: 78px; margin-top: auto; padding-top: 20px; box-sizing: content-box; }
html[data-ui="v2"] .v2-bars > span { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
html[data-ui="v2"] .v2-bars i { display: block; border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, var(--c), color-mix(in oklch, var(--c) 50%, transparent)); min-height: 3px; transform: scaleY(0); transform-origin: bottom; transition: transform 900ms var(--v2-ease); transition-delay: calc(var(--d, 0ms) + var(--k) * 70ms + 150ms); }
html[data-ui="v2"] .v2-ov.in .v2-bars i { transform: scaleY(1); }
html[data-ui="v2"] .v2-bars em { font-style: normal; font-family: var(--ff-mono); font-size: 12px; color: var(--ink-2); text-align: center; }
html[data-ui="v2"] .v2-row2 { display: grid; grid-template-columns: minmax(320px, 4fr) 7fr; gap: 16px; margin-top: 16px; }
html[data-ui="v2"] .v2-row3 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
/* QMS dashboard: owner/area panels stack beside the Coverage gauge. */
html[data-ui="v2"] .v2-row2 > .v2-row3 { grid-template-columns: 1fr; margin-top: 0; align-content: start; }
/* Dashboard: a column of Coverage + owner/area panels beside Cross-Jurisdiction Readiness. */
html[data-ui="v2"] .v2-row2 > .v2-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
html[data-ui="v2"] .v2-col > .v2-row3 { grid-template-columns: 1fr; margin-top: 0; }
html[data-ui="v2"] :is(#v2ExecSide, #v2ExecLeft) > .bento-card { grid-column: auto !important; margin: 0 !important; min-width: 0; }
html[data-ui="v2"] #v2ExecSide:empty { display: none; }
html[data-ui="v2"] :is(#v2ExecOverview, #v2Overview) .v2-row2 { align-items: start; }
/* Dashboard middle row: Decision history beside the enforcement headline. */
html[data-ui="v2"] .v2-exec-mid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: stretch; }
html[data-ui="v2"] .v2-exec-mid > * { grid-column: auto !important; margin: 0 !important; min-width: 0; }
html[data-ui="v2"] .v2-exec-mid:empty { display: none; }
/* One fixed height for the row; each card fills it and scrolls its own list,
   so neither leaves empty space under short content. */
html[data-ui="v2"] .v2-exec-mid { height: 620px; }
html[data-ui="v2"] .v2-exec-mid > * { display: flex; flex-direction: column; min-height: 0; height: 100%; box-sizing: border-box; }
html[data-ui="v2"] .v2-exec-mid .dec-feed-list { flex: 1 1 0; min-height: 0; max-height: none; margin: 16px 22px 22px 28px; padding: 0 6px 0 0; align-content: start; }
html[data-ui="v2"] .v2-exec-mid .ef-exec-list { padding: 0 6px 2px 0; }
html[data-ui="v2"] .v2-exec-mid #execEnforcementHead { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
html[data-ui="v2"] .v2-exec-mid .ef-exec-sample { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
html[data-ui="v2"] .v2-exec-mid .ef-exec-list { flex: 1 1 0; min-height: 0; max-height: none; }
/* Coverage row matches the row above: two equal columns. */
html[data-ui="v2"] #v2ExecOverview .v2-row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
/* Both columns end level: Cross-Jurisdiction fills its column, footnote at the foot. */
html[data-ui="v2"] #v2ExecOverview .v2-row2 { align-items: stretch; }
html[data-ui="v2"] #v2ExecSide > .cjr-card { flex: 1 1 auto; display: flex; flex-direction: column; }
html[data-ui="v2"] #v2ExecSide > .cjr-card #execCrossJur { flex: 1 1 auto; display: flex; flex-direction: column; }
/* Only the footnote sits at the foot; the market tiles stay right under the lead. */
html[data-ui="v2"] #v2ExecSide > .cjr-card #execCrossJur > .cjr-foot-note { margin-top: auto; }
/* Breathing room inside Cross-Jurisdiction (the column is taller than its content). */
html[data-ui="v2"] #v2ExecSide .cjr-lead { margin-bottom: 20px; line-height: 1.6; }
html[data-ui="v2"] #v2ExecSide .cjr-band-h { margin: 6px 0 14px; }
html[data-ui="v2"] #v2ExecSide .cjr-grid + .cjr-band-h { margin-top: 24px; }
html[data-ui="v2"] #v2ExecSide .cjr-grid { gap: 14px; }
html[data-ui="v2"] #v2ExecSide .cjr-tile { padding: 16px 16px 14px; }
html[data-ui="v2"] #v2ExecSide .cjr-tile .cjr-bar { margin: 10px 0 12px; }
html[data-ui="v2"] #v2ExecSide .cjr-foot-note { padding-top: 22px; }
@media (max-width: 1180px) { html[data-ui="v2"] .v2-exec-mid { height: auto; } html[data-ui="v2"] .v2-exec-mid > * { height: auto; } html[data-ui="v2"] .v2-exec-mid .dec-feed-list { max-height: 520px; flex: none; } html[data-ui="v2"] #v2ExecOverview .v2-row2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1180px) { html[data-ui="v2"] .v2-exec-mid { grid-template-columns: minmax(0, 1fr); } }
html[data-ui="v2"] .v2-card, html[data-ui="v2"] .v2-fold { background: var(--v2-surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
html[data-ui="v2"] .v2-card-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
html[data-ui="v2"] .v2-card-h h3, html[data-ui="v2"] .v2-fold-t { margin: 0; font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; font-size: 13px; color: var(--ink); }
html[data-ui="v2"] .v2-card-h span { font-size: 13px; color: var(--muted); }
html[data-ui="v2"] .v2-gauge { padding: 4px 22px 22px; display: flex; flex-direction: column; align-items: center; }
html[data-ui="v2"] .v2-gauge svg { width: 100%; max-width: 300px; }
html[data-ui="v2"] .v2-arc { transition: stroke-dasharray 1.3s var(--v2-ease); }
html[data-ui="v2"] .v2-g-big { font-family: var(--ff-display); font-stretch: 118%; font-size: 42px; font-weight: 650; fill: var(--ink); }
html[data-ui="v2"] .v2-g-lbl { font-family: var(--ff-display); font-stretch: 112%; font-size: 11px; letter-spacing: .12em; font-weight: 600; fill: var(--muted); }
html[data-ui="v2"] .v2-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
html[data-ui="v2"] .v2-legend span { display: flex; align-items: center; gap: 7px; } html[data-ui="v2"] .v2-legend i, html[data-ui="v2"] .v2-nums i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
html[data-ui="v2"] .v2-legend b { font-family: var(--ff-mono); font-weight: 500; color: var(--ink); }
html[data-ui="v2"] .v2-gnote { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
html[data-ui="v2"] .v2-rows { padding: 10px 10px 12px; display: flex; flex-direction: column; }
html[data-ui="v2"] .v2-brow { display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 18px; padding: 12px; border-radius: var(--r); border: 0; background: none; text-align: left; color: var(--ink); font: inherit; }
html[data-ui="v2"] .v2-hrow { grid-template-columns: 190px 1fr 36px; cursor: pointer; transition: background-color 150ms ease; }
html[data-ui="v2"] .v2-hrow:hover, html[data-ui="v2"] .v2-hrow.sel { background: var(--v2-sunk); }
html[data-ui="v2"] .v2-bn { font-weight: 600; font-size: 14.5px; } html[data-ui="v2"] .v2-bn small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
html[data-ui="v2"] .v2-seg { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; }
html[data-ui="v2"] .v2-seg i, html[data-ui="v2"] .v2-hb i { display: block; height: 100%; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--v2-ease); transition-delay: calc(var(--k, 0) * 60ms + 200ms); }
html[data-ui="v2"] .v2-ov.in .v2-seg i, html[data-ui="v2"] .v2-fold.open .v2-hb i { transform: scaleX(1); }
html[data-ui="v2"] .v2-nums { display: flex; gap: 14px; font-family: var(--ff-mono); font-size: 13px; color: var(--ink-2); } html[data-ui="v2"] .v2-nums span { display: flex; align-items: center; gap: 6px; min-width: 40px; }
html[data-ui="v2"] .v2-hb { display: flex; height: 10px; gap: 2px; } html[data-ui="v2"] .v2-hb i { border-radius: 3px; }
html[data-ui="v2"] .v2-tot { font-family: var(--ff-mono); font-size: 13px; text-align: right; color: var(--ink-2); }
html[data-ui="v2"] .v2-fold-h { width: 100%; display: flex; align-items: center; gap: 12px; padding: 18px 22px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); }
html[data-ui="v2"] .v2-fold-s { margin-left: auto; font-size: 13.5px; color: var(--ink-2); } html[data-ui="v2"] .v2-fold-s b { font-weight: 600; color: var(--ink); }
html[data-ui="v2"] .v2-fold-t + .v2-fold-c { margin-left: auto; }
/* Decisions: the two filter groups wrap as a row with room between them. */
html[data-ui="v2"] .sec-head:has(> #decFilter) { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
html[data-ui="v2"] .v2-fold-c svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; transition: transform 250ms var(--v2-ease); display: block; }
html[data-ui="v2"] .v2-fold.open .v2-fold-c svg { transform: rotate(180deg); }
html[data-ui="v2"] .v2-fold-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 400ms var(--v2-ease); } html[data-ui="v2"] .v2-fold.open .v2-fold-b { grid-template-rows: 1fr; }
html[data-ui="v2"] .v2-fold-b > div { overflow: hidden; } html[data-ui="v2"] .v2-fold .v2-rows { border-top: 1px solid var(--line); }
/* Regulatory timeline as a fold (2026-11-06): compact dated rows, collapsed by default. */
html[data-ui="v2"] .rd-fold .rdf-list { border-top: 1px solid var(--line); display: grid; }
html[data-ui="v2"] .rdf-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: baseline; padding: 11px 22px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); transition: background 160ms var(--v2-ease); }
html[data-ui="v2"] .rdf-row:first-child { border-top: 0; }
html[data-ui="v2"] .rdf-row:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
html[data-ui="v2"] .rdf-date { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
html[data-ui="v2"] .rdf-main { display: grid; gap: 2px; min-width: 0; }
html[data-ui="v2"] .rdf-t { font-size: 13px; line-height: 1.35; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
html[data-ui="v2"] .rdf-t b { font-weight: 650; }
html[data-ui="v2"] .rdf-note { font-size: 12px; line-height: 1.4; color: var(--ink-2); }
html[data-ui="v2"] .rdf-when { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
html[data-ui="v2"] .rdf-row.is-near .rdf-when { color: var(--c-partial); }
html[data-ui="v2"] .rdf-row.is-past { opacity: .72; }
html[data-ui="v2"] .rdf-more { display: block; width: 100%; padding: 10px 22px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink-2); font-size: 12.5px; text-align: left; cursor: pointer; }
html[data-ui="v2"] .rdf-more:hover { color: var(--ink); }
@media (max-width: 640px) { html[data-ui="v2"] .rdf-row { grid-template-columns: 1fr; gap: 4px; } }
@media (max-width: 720px) { html[data-ui="v2"] .v2-stats { grid-template-columns: 1fr; } }
@media (max-width: 1180px) { html[data-ui="v2"] .v2-row2, html[data-ui="v2"] .v2-row3 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] .v2-stat, html[data-ui="v2"] .v2-bars i, html[data-ui="v2"] .v2-seg i, html[data-ui="v2"] .v2-hb i, html[data-ui="v2"] .v2-arc { transition: none !important; opacity: 1; transform: none; } }

/* By SOP / By Role: the filter line repeated the page subtitle; keep only the search */
html[data-ui="v2"] :is([data-view="persop"], [data-view="perrole"]) .filterbar > span[style] { display: none; }
html[data-ui="v2"] :is([data-view="persop"], [data-view="perrole"]) .filterbar { justify-content: flex-end; margin: -6px 0 14px; padding: 0; pointer-events: none; }
html[data-ui="v2"] :is([data-view="persop"], [data-view="perrole"]) .filterbar input { pointer-events: auto; margin-left: 0 !important; }

html[data-ui="v2"] .v2-bars i { height: calc(var(--h, .05) * (100% - 36px)); flex: none; }

/* =====================================================================
   COLOUR PASS: the same language as the approved Audit Report everywhere.
   Status colour on summary tiles, a soft drifting wash on headers and
   key cards, and coloured icon chips on every card heading.
   ===================================================================== */
/* page headers: a light card with the page's own drifting tint */
html[data-ui="v2"] .page-hero { --pt: oklch(72% .085 238 / .42); --pt2: oklch(80% .1 70 / .35);
  background: var(--v2-surface) !important; border: 1px solid var(--line) !important; border-radius: 18px !important; box-shadow: var(--shadow) !important;
  padding: 24px 28px !important; margin-bottom: 18px; position: relative; overflow: hidden; isolation: isolate; }
html[data-ui="v2"] .page-hero::before { content: ""; position: absolute; inset: -60% -30%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side at 72% 30%, var(--pt), transparent), radial-gradient(closest-side at 26% 76%, var(--pt2), transparent);
  background-size: 70% 85%, 60% 75%; background-repeat: no-repeat; background-position: 76% 24%, 24% 76%;
  animation: v2-drift 22s cubic-bezier(.45,0,.55,1) infinite alternate; animation-play-state: var(--v2-drift-play, running); }
html[data-ui="v2"] .page-hero > * { position: relative; z-index: 1; }
html[data-ui="v2"] [data-view="full"] .page-hero { --pt: oklch(68% .15 30 / .29); --pt2: oklch(85% .105 74 / .42); }
html[data-ui="v2"] [data-view="decisions"] .page-hero { --pt: oklch(62% .09 160 / .35); --pt2: oklch(72% .085 238 / .32); }
html[data-ui="v2"] [data-view="persop"] .page-hero { --pt: oklch(85% .105 74 / .46); --pt2: oklch(72% .085 238 / .29); }
html[data-ui="v2"] [data-view="perrole"] .page-hero { --pt: oklch(70% .09 195 / .38); --pt2: oklch(85% .105 74 / .35); }
html[data-ui="v2"] :is([data-view="qmslib"], [data-view="reglib"]) .page-hero { --pt: oklch(66% .12 255 / .35); --pt2: oklch(70% .09 195 / .29); }
html[data-ui="v2"] [data-view="governance"] .page-hero { --pt: oklch(62% .1 160 / .35); --pt2: oklch(66% .12 255 / .29); }
html[data-ui="v2"] :is([data-view="runs"], [data-view="dhf"], [data-view="team"]) .page-hero { --pt: oklch(66% .12 255 / .32); --pt2: oklch(85% .105 74 / .38); }
html[data-ui="v2"] .page-hero .ph-stat .val { font-size: 40px !important; }

/* summary tiles on every page: status-coloured, like the Audit Report cards */
html[data-ui="v2"] .persop-summary .ps-tile, html[data-ui="v2"] .ps-tile { --c: var(--ink-2); position: relative; overflow: hidden; isolation: isolate; }
html[data-ui="v2"] .persop-summary .ps-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(130% 100% at 100% 0%, color-mix(in oklch, var(--c) 20%, transparent), transparent 62%); }
html[data-ui="v2"] .persop-summary .ps-tile:nth-child(1) { --c: oklch(55% .1 255); } html[data-ui="v2"] .persop-summary .ps-tile:nth-child(2) { --c: var(--c-gap); }
html[data-ui="v2"] .persop-summary .ps-tile:nth-child(3) { --c: var(--c-partial); } html[data-ui="v2"] .persop-summary .ps-tile:nth-child(4) { --c: var(--c-compliant); }
html[data-ui="v2"] .persop-summary .ps-tile .lbl::before { width: 9px !important; height: 9px !important; border-radius: 3px !important; background: var(--c) !important; }
html[data-ui="v2"] .persop-summary .ps-tile .val { font-size: 42px !important; }

/* SOP / role cards: tinted by their worst open severity */
html[data-ui="v2"] .persop-card { --rc: oklch(72% .085 238); position: relative; overflow: hidden; isolation: isolate; }
html[data-ui="v2"] .persop-card.v2-rk-medium { --rc: var(--c-partial); } html[data-ui="v2"] .persop-card.v2-rk-high { --rc: var(--c-gap); }
html[data-ui="v2"] .persop-card::before { content: "" !important; display: block !important; position: absolute; inset: 0; z-index: -1; pointer-events: none; width: auto; height: auto; filter: none; border-radius: 0;
  background: radial-gradient(70% 140% at 100% 0%, color-mix(in oklch, var(--rc) 18%, transparent), transparent 60%) !important; }
html[data-ui="v2"] .persop-card.open::before { display: block !important; }
html[data-ui="v2"] .persop-head .ps-tag { background: color-mix(in srgb, var(--rc) 18%, var(--v2-surface)) !important; color: var(--ink) !important; }

/* Overview (executive) cards: coloured icon chips and a soft wash per card */
html[data-ui="v2"] .bento-card { position: relative; overflow: hidden; isolation: isolate; }
html[data-ui="v2"] .bento-card { --bc: oklch(66% .12 255); }
html[data-ui="v2"] .bento-card:nth-of-type(3n+1) { --bc: oklch(68% .15 30); } html[data-ui="v2"] .bento-card:nth-of-type(3n+2) { --bc: oklch(66% .12 255); } html[data-ui="v2"] .bento-card:nth-of-type(3n) { --bc: oklch(62% .1 160); }
html[data-ui="v2"] .bento-card::before { content: "" !important; position: absolute; inset: 0; z-index: -1; pointer-events: none; border: 0 !important; background: radial-gradient(80% 90% at 100% 0%, color-mix(in oklch, var(--bc) 14%, transparent), transparent 62%) !important; }
html[data-ui="v2"] .bento-card .bento-h .bh-icon { background: color-mix(in srgb, var(--bc) 16%, var(--v2-surface)) !important; color: color-mix(in srgb, var(--bc) 80%, var(--ink)) !important; }
html[data-ui="v2"] .bento-card .bento-h { color: color-mix(in srgb, var(--bc) 55%, var(--ink)); }

/* decision cards: status tint */
html[data-ui="v2"] [data-view="decisions"] :is(.dc-card, .rc-card, .bento-card) { --bc: var(--c-unverif); }
html[data-ui="v2"] [data-view="decisions"] :is(.dc-card, .rc-card, .bento-card).v2-bc-partial { --bc: var(--c-partial); }
html[data-ui="v2"] [data-view="decisions"] :is(.dc-card, .rc-card, .bento-card).v2-bc-compliant { --bc: var(--c-compliant); }
html[data-ui="v2"] [data-view="decisions"] :is(.dc-card, .rc-card, .bento-card).v2-bc-gap { --bc: var(--c-gap); }

/* library cards: coloured type chip + hover wash */
html[data-ui="v2"] .reglib-card { position: relative; overflow: hidden; isolation: isolate; }
html[data-ui="v2"] .reglib-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 200ms ease; background: radial-gradient(90% 120% at 100% 0%, oklch(66% .12 255 / .14), transparent 65%); }
html[data-ui="v2"] .reglib-card:hover::before { opacity: 1; }
/* The card's action sits in a foot pinned to the bottom, so it lines up across
   a row whatever the title length (same foot as the console's company cards). */
html[data-ui="v2"] .reglib-card-foot { display: flex; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
/* Documents library: every open finding has a signed-off decision (Kieu #113). */
html[data-ui="v2"] .reglib-card.is-decided { border-color: color-mix(in oklch, var(--c-compliant) 55%, var(--line)); box-shadow: inset 3px 0 0 var(--c-compliant), var(--shadow); }
html[data-ui="v2"] .reglib-group-h::before { background: oklch(66% .12 255) !important; border-radius: 3px; }

/* group headers on every list page: a coloured marker */
html[data-ui="v2"] .reglib-group-h { display: flex; align-items: center; gap: 10px; }
html[data-ui="v2"] .persop-group:nth-of-type(1) .reglib-group-h::before { background: var(--c-gap) !important; }
html[data-ui="v2"] .persop-group:nth-of-type(2) .reglib-group-h::before { background: oklch(66% .12 255) !important; }
html[data-ui="v2"] .persop-group:nth-of-type(3) .reglib-group-h::before { background: var(--c-partial) !important; }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] .page-hero::before { animation: none; } }

/* Overview: the owner / area breakdowns live once, in the overview at the top */
html[data-ui="v2"] .exec-bento .bento-card.v2-dup { display: none; }

/* Overview footer banner: light card, visible dark action button */
html[data-ui="v2"] .exec-cta { background: var(--v2-surface) !important; background-image: none !important; color: var(--ink) !important; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; isolation: isolate; position: relative; }
html[data-ui="v2"] .exec-cta .aurora, html[data-ui="v2"] .exec-cta .cta-img { display: none !important; }
html[data-ui="v2"] .exec-cta::before { content: ""; position: absolute; inset: -60% -30%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side at 75% 35%, oklch(68% .15 30 / .16), transparent), radial-gradient(closest-side at 25% 70%, oklch(85% .105 74 / .26), transparent);
  background-size: 70% 85%, 60% 75%; background-repeat: no-repeat; background-position: 78% 26%, 22% 74%; animation: v2-drift 22s cubic-bezier(.45,0,.55,1) infinite alternate; animation-play-state: var(--v2-drift-play, running); }
html[data-ui="v2"] .exec-cta .cta-body { grid-column: 1 / -1; }
html[data-ui="v2"] .exec-cta .cta-eyebrow { color: var(--muted) !important; font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .14em; font-weight: 600; }
html[data-ui="v2"] .exec-cta .cta-h { color: var(--ink) !important; font-family: var(--ff-display); font-stretch: 115%; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
html[data-ui="v2"] .exec-cta .cta-sub { color: var(--ink-2) !important; }
html[data-ui="v2"] .exec-cta .cta-btn { color: var(--v2-btn-ink) !important; background: var(--v2-btn) !important; border: 1px solid var(--v2-btn) !important; border-radius: var(--r); font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .07em; font-weight: 650; box-shadow: none; transition: transform 160ms var(--v2-ease), box-shadow 160ms ease; }
@media (hover: hover) and (pointer: fine) { html[data-ui="v2"] .exec-cta .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px oklch(20% .02 260 / .26); } }
html[data-ui="v2"] .exec-cta .cta-btn:active { transform: scale(.97); }
/* any other button still reading the old amber accent as its fill */
html[data-ui="v2"] [style*="--accent"] { --accent: var(--v2-btn); }

/* elements filled with the accent (dark ink in v2): keep their text light */
html[data-ui="v2"] #jurNav .nav-item.active,
html[data-ui="v2"] .a-audit-btn:hover,
html[data-ui="v2"] .ap-dec.warn .ap-dec-orb,
html[data-ui="v2"] .ap-save,
html[data-ui="v2"] .ap-tag.on,
html[data-ui="v2"] .arb-btn.export:hover,
html[data-ui="v2"] .audit-row.open .a-audit-btn,
html[data-ui="v2"] .audit-row.open .audit-body .a-sec > h5::before,
html[data-ui="v2"] .audit-row.open .cite-chip.cite-chip--reg .cc-prefix,
html[data-ui="v2"] .bento-bars .bar-row.amber .bar i,
html[data-ui="v2"] .bento-card .bh-btn:hover,
html[data-ui="v2"] .brand-tag::before,
html[data-ui="v2"] .btn--primary:hover,
html[data-ui="v2"] .di-nav-b .dot.part,
html[data-ui="v2"] .dr-stages li.active .dot,
html[data-ui="v2"] .exec-cta .cta-btn,
html[data-ui="v2"] .fru-dots i,
html[data-ui="v2"] .fx-badge,
html[data-ui="v2"] .metric .pct-bar > i,
html[data-ui="v2"] .persop-card.open .ps-review:hover,
html[data-ui="v2"] .persop-card.open .ps-tag,
html[data-ui="v2"] .persop-head:hover .ps-chev,
html[data-ui="v2"] .persop-summary .ps-tile:nth-child(3) .lbl::before,
html[data-ui="v2"] .ps-review:hover,
html[data-ui="v2"] .pwm-confirm,
html[data-ui="v2"] .rd-totop,
html[data-ui="v2"] .reglib-group-h::before,
html[data-ui="v2"] .sa-row--need .sa-dot,
html[data-ui="v2"] .sa-status .warn .dot,
html[data-ui="v2"] .sov-body .cite-chip.cite-chip--reg .cc-prefix,
html[data-ui="v2"] .sov-head .cite .cite-chip .cc-prefix,
html[data-ui="v2"] .sov-head .cite .cite-chip.cite-chip--reg .cc-prefix,
html[data-ui="v2"] .sov-sec h4::before,
html[data-ui="v2"] .tour-next:hover,
html[data-ui="v2"] .v5-fx .v5-dot.amber,
html[data-ui="v2"] .vl-step.active::before,
html[data-ui="v2"] .vl-step.done::before { color: var(--v2-btn-ink) !important; }
html[data-ui="v2"] #jurNav .nav-item.active *,
html[data-ui="v2"] .a-audit-btn:hover *,
html[data-ui="v2"] .ap-dec.warn .ap-dec-orb *,
html[data-ui="v2"] .ap-save *,
html[data-ui="v2"] .ap-tag.on *,
html[data-ui="v2"] .arb-btn.export:hover *,
html[data-ui="v2"] .audit-row.open .a-audit-btn *,
html[data-ui="v2"] .audit-row.open .audit-body .a-sec > h5::before *,
html[data-ui="v2"] .audit-row.open .cite-chip.cite-chip--reg .cc-prefix *,
html[data-ui="v2"] .bento-bars .bar-row.amber .bar i *,
html[data-ui="v2"] .bento-card .bh-btn:hover *,
html[data-ui="v2"] .brand-tag::before *,
html[data-ui="v2"] .btn--primary:hover *,
html[data-ui="v2"] .di-nav-b .dot.part *,
html[data-ui="v2"] .dr-stages li.active .dot *,
html[data-ui="v2"] .exec-cta .cta-btn *,
html[data-ui="v2"] .fru-dots i *,
html[data-ui="v2"] .fx-badge *,
html[data-ui="v2"] .metric .pct-bar > i *,
html[data-ui="v2"] .persop-card.open .ps-review:hover *,
html[data-ui="v2"] .persop-card.open .ps-tag *,
html[data-ui="v2"] .persop-head:hover .ps-chev *,
html[data-ui="v2"] .persop-summary .ps-tile:nth-child(3) .lbl::before *,
html[data-ui="v2"] .ps-review:hover *,
html[data-ui="v2"] .pwm-confirm *,
html[data-ui="v2"] .rd-totop *,
html[data-ui="v2"] .reglib-group-h::before *,
html[data-ui="v2"] .sa-row--need .sa-dot *,
html[data-ui="v2"] .sa-status .warn .dot *,
html[data-ui="v2"] .sov-body .cite-chip.cite-chip--reg .cc-prefix *,
html[data-ui="v2"] .sov-head .cite .cite-chip .cc-prefix *,
html[data-ui="v2"] .sov-head .cite .cite-chip.cite-chip--reg .cc-prefix *,
html[data-ui="v2"] .sov-sec h4::before *,
html[data-ui="v2"] .tour-next:hover *,
html[data-ui="v2"] .v5-fx .v5-dot.amber *,
html[data-ui="v2"] .vl-step.active::before *,
html[data-ui="v2"] .vl-step.done::before * { color: inherit; }


/* icon chips added by v2.js */
html[data-ui="v2"] .v2-hico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; flex: none; vertical-align: middle; margin-right: 10px; background: var(--hb); color: var(--hc); }
html[data-ui="v2"] .v2-hico svg { width: 15px; height: 15px; }
html[data-ui="v2"] .v2-t-blue { --hb: oklch(94% .03 255); --hc: oklch(50% .12 255); } html[data-ui="v2"] .v2-t-green { --hb: oklch(94.5% .035 160); --hc: oklch(46% .1 160); }
html[data-ui="v2"] .v2-t-red { --hb: var(--v2-gap-soft); --hc: var(--v2-gap-ink); } html[data-ui="v2"] .v2-t-amber { --hb: var(--v2-par-soft); --hc: var(--v2-par-ink); }
html[data-ui="v2"] .v2-t-teal { --hb: oklch(94.5% .03 195); --hc: oklch(48% .09 195); }
html[data-ui="v2"][data-theme="dark"] .v2-t-blue { --hb: oklch(30% .05 255); --hc: oklch(80% .09 255); } html[data-ui="v2"][data-theme="dark"] .v2-t-green { --hb: oklch(30% .045 160); --hc: oklch(80% .09 160); }
html[data-ui="v2"][data-theme="dark"] .v2-t-teal { --hb: oklch(30% .04 195); --hc: oklch(80% .08 195); }
html[data-ui="v2"] :is(.ap-h, .ps-sec > h5, .sov-sec > h4, .oos-h) { display: flex; align-items: center; }
html[data-ui="v2"] .page-hero .ph-eyebrow { display: flex; align-items: center; }
html[data-ui="v2"] .page-hero .ph-eyebrow .v2-hico { width: 30px; height: 30px; }
html[data-ui="v2"] .v2-bico { display: inline-grid; place-items: center; margin-right: 8px; vertical-align: -3px; transition: transform 200ms var(--v2-ease); }
html[data-ui="v2"] .v2-bico svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { html[data-ui="v2"] :is(#apSave, .ap-save, .pwm-confirm):hover .v2-bico { transform: translateX(2px) rotate(-6deg); } }

/* ---------- finding slide-over (By SOP / By Role / Decisions): light, tiled ---------- */
html[data-ui="v2"] .sov { background: var(--bg) !important; color: var(--ink); width: min(820px, 96vw); }
html[data-ui="v2"] .sov-head { background: var(--v2-surface) !important; background-image: none !important; color: var(--ink) !important; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
html[data-ui="v2"] .sov-head::before { content: ""; position: absolute; inset: -80% -20%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side at 75% 35%, oklch(72% .085 238 / .22), transparent), radial-gradient(closest-side at 25% 75%, oklch(85% .105 74 / .22), transparent); background-size: 70% 90%, 60% 80%; background-repeat: no-repeat; animation: v2-drift 22s cubic-bezier(.45,0,.55,1) infinite alternate; animation-play-state: var(--v2-drift-play, running); }
html[data-ui="v2"] .sov-head .eb, html[data-ui="v2"] .sov-head .meta { color: var(--muted) !important; font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .1em; }
html[data-ui="v2"] .sov-head .cite .cite-chip { background: var(--v2-surface); border-color: var(--line-strong); font-size: 18px; }
html[data-ui="v2"] .sov-head .cite .cite-chip .cc-prefix, html[data-ui="v2"] .sov-head .cite .cite-chip.cite-chip--reg .cc-prefix { background: var(--v2-sunk) !important; color: var(--ink-2) !important; }
html[data-ui="v2"] .sov-head .cite .cite-chip .cc-id { color: var(--ink) !important; }
html[data-ui="v2"] .sov-head .chip { background: var(--v2-sunk); border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .07em; }
html[data-ui="v2"] .sov-head .chip-status { background: var(--v2-cov-soft); color: var(--v2-cov-ink); border-color: transparent; }
html[data-ui="v2"] .sov-head .chip-status.v2-s-partial { background: var(--v2-par-soft); color: var(--v2-par-ink); }
html[data-ui="v2"] .sov-head .chip-status.v2-s-gap { background: var(--v2-gap-soft); color: var(--v2-gap-ink); }
html[data-ui="v2"] .sov-head .chip-status.v2-s-unverified { background: var(--v2-oos-soft); color: var(--v2-oos-ink); }
html[data-ui="v2"] .sov .sov-close { background: var(--v2-sunk) !important; border: 1px solid var(--line) !important; color: var(--ink-2) !important; }
html[data-ui="v2"] .sov-body { background: var(--bg) !important; color: var(--ink) !important; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
html[data-ui="v2"] .sov-sec, html[data-ui="v2"] .sov-sec.reg-sec, html[data-ui="v2"] .sov-sec.impact-section, html[data-ui="v2"] .sov-sec.actions-sec { --acc: oklch(50% .12 255); --acc-bg: oklch(94% .03 255); background: var(--v2-surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; box-shadow: none !important; backdrop-filter: none !important; color: var(--ink) !important; margin: 0 !important; }
html[data-ui="v2"] .sov-sec:nth-child(2) { animation-delay: 45ms; } html[data-ui="v2"] .sov-sec:nth-child(3) { animation-delay: 90ms; } html[data-ui="v2"] .sov-sec:nth-child(n+4) { animation-delay: 135ms; }
html[data-ui="v2"] .sov-sec.impact-section { --acc: var(--v2-gap-ink); --acc-bg: var(--v2-gap-soft); }
html[data-ui="v2"] .sov-sec.actions-sec { --acc: var(--v2-btn-ink); --acc-bg: color-mix(in oklch, var(--v2-btn-ink) 14%, transparent); background: var(--v2-btn) !important; border-color: var(--v2-btn) !important; color: var(--v2-btn-ink) !important; }
html[data-ui="v2"] .sov-sec h4, html[data-ui="v2"] .sov-sec.reg-sec h4, html[data-ui="v2"] .sov-sec.impact-section h4, html[data-ui="v2"] .sov-sec.actions-sec h4 { background: none !important; border-bottom: 0 !important; color: var(--acc) !important; font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .07em; font-weight: 650; font-size: 12px; }
html[data-ui="v2"] .sov-sec h4::before { display: none !important; }
html[data-ui="v2"] .sov-sec h4 svg.h5-ic, html[data-ui="v2"] .sov-sec h4 svg { width: 28px !important; height: 28px !important; flex: none; padding: 6px; border-radius: 9px; background: var(--acc-bg); color: var(--acc); box-sizing: border-box; }
html[data-ui="v2"] .sov-sec > *:not(h4) { color: inherit !important; }
html[data-ui="v2"] .sov-body :is(.rationale, .reg-text, .impact, p, li) { color: inherit !important; font-family: var(--ff-sans); }
html[data-ui="v2"] .sov-body .impact { font-style: normal; color: var(--ink-2) !important; }
html[data-ui="v2"] .sov-body .ev, html[data-ui="v2"] .sov-body .q { background: color-mix(in oklch, var(--v2-sunk) 60%, var(--v2-surface)) !important; border: 1px solid var(--line) !important; border-radius: var(--r) !important; color: var(--ink) !important; }
html[data-ui="v2"] .sov-body .ev .q, html[data-ui="v2"] .sov-body .ev em { font-style: italic; }
html[data-ui="v2"] .sov-body .cite-chip { background: var(--v2-surface) !important; border-color: var(--line-strong) !important; }
html[data-ui="v2"] .sov-body .cite-chip .cc-prefix, html[data-ui="v2"] .sov-body .cite-chip.cite-chip--reg .cc-prefix, html[data-ui="v2"] .sov-body .cite-chip.cite-chip--ref .cc-prefix { background: var(--v2-sunk) !important; color: var(--ink-2) !important; }
html[data-ui="v2"] .sov-body .cite-chip .cc-id, html[data-ui="v2"] .sov-body .cite-chip.cite-chip--reg .cc-id, html[data-ui="v2"] .sov-body .cite-chip.cite-chip--ref .cc-id { color: var(--ink) !important; }
html[data-ui="v2"] .sov-body .cite-chip .cc-para { background: transparent !important; color: var(--muted) !important; }
html[data-ui="v2"] .sov-body .chip-c { background: var(--v2-surface) !important; border: 1px solid var(--line-strong) !important; color: var(--ink) !important; border-radius: 9px; font-family: var(--ff-mono); }
html[data-ui="v2"] .sov-body .guide-item { background: var(--v2-surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r); color: var(--ink) !important; }
html[data-ui="v2"] .sov-body .kw { color: inherit; font-weight: 700; }

html[data-ui="v2"] .sov-body > * { flex-shrink: 0; }
html[data-ui="v2"] .sov-sec h4 { display: flex; align-items: center; gap: 10px; }
/* the action list in the slide-over reads as the dark "how to fix" tile */
html[data-ui="v2"] .sov-sec.v2-act-sec { --acc: var(--v2-btn-ink); --acc-bg: color-mix(in srgb, var(--v2-btn-ink) 14%, transparent); background: var(--v2-btn) !important; border-color: var(--v2-btn) !important; color: var(--v2-btn-ink) !important; }
html[data-ui="v2"] .sov-sec.v2-act-sec * { color: var(--v2-btn-ink) !important; opacity: 1 !important; }

/* Audit Report: no review card; only Export stays, on the filter row */
html[data-ui="v2"] #auditReviewBar { display: none !important; }
html[data-ui="v2"] .v2-row .a-check-head { display: none; }
html[data-ui="v2"] .v2-row .audit-head { grid-template-columns: 42px minmax(0, 1fr) auto 34px; }
html[data-ui="v2"] .filterbar .v2-fb-right { margin-left: auto; order: 10; }
html[data-ui="v2"] .filterbar .v2-fb-right > :not(.fx-menu):not(.dx-rvstrip) { display: none; }
html[data-ui="v2"] [data-view="full"] .filterbar .meter-mini { order: 9; flex: 1 1 auto; margin-left: 0; text-align: left; font-family: var(--ff-sans); letter-spacing: 0; font-size: 13.5px; }

/* inline human review inside a finding */
html[data-ui="v2"] .v2-rev { flex-wrap: wrap; }
html[data-ui="v2"] .v2-rev-dock { flex-basis: 100%; display: none; }
html[data-ui="v2"] .v2-rev.docked .v2-rev-dock { display: block; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); animation: v2-rise 260ms var(--v2-ease) backwards; }
html[data-ui="v2"] .v2-rev-btn svg { transform: none !important; transition: transform 250ms var(--v2-ease); }
html[data-ui="v2"] .v2-rev.docked .v2-rev-btn svg { transform: rotate(180deg) !important; }
html[data-ui="v2"] .v2-rev-dock .audit-panel-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; padding: 0; background: none; overflow: visible; max-height: none; }
html[data-ui="v2"] .v2-rev-dock .v2-rev-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
html[data-ui="v2"] .v2-rev-dock .ap-sec { margin: 0 !important; }
@media (max-width: 1180px) { html[data-ui="v2"] .v2-rev-dock .audit-panel-body { grid-template-columns: minmax(0, 1fr); } }

/* status-card bars: number / fixed track / label, so the label can never be pushed out */
/* each column: number sits directly on its bar (flexible top row aligned to the
   bottom), bar height scales against a fixed 48px track; the standard is named
   in the column tooltip, not under the bar (they truncated to "FDA 21..."). */
html[data-ui="v2"] .v2-bars { height: auto; align-items: stretch; padding-top: 16px; }
html[data-ui="v2"] .v2-bars > span { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 4px; height: 68px; justify-content: stretch; align-items: end; }
html[data-ui="v2"] .v2-bars > span > i { height: calc(var(--h, .05) * 48px) !important; }
html[data-ui="v2"] .v2-bars > span > em { line-height: 1.2; }

/* no layout jump on load: a page holds everything under its hero until its
   overview has rendered, so content appears once, in its final position.
   v2.js releases the hold after a few seconds whatever happens. */
html[data-ui="v2"]:not(.v2-hold-off) section.view:is([data-view="full"], [data-view="executive"]):not(.v2-ov-ready) > :not(.page-hero, .exec-hero, .v2-ov) { visibility: hidden; }
/* a deep link to another page never paints the default Overview first */
html[data-ui="v2"][data-boot-view] section.view[data-view="executive"] { display: none !important; }
html[data-ui="v2"] .chip[data-s="partial"], html[data-ui="v2"] .chip-status[data-s="partial"], html[data-ui="v2"] .chip.v2-s-partial { color: var(--v2-par-ink) !important; }
html[data-ui="v2"] .chip[data-s="compliant"], html[data-ui="v2"] .chip-status[data-s="compliant"] { color: var(--v2-cov-ink) !important; }
html[data-ui="v2"] .chip:is([data-s="gap"], [data-s="missing"]) { color: var(--v2-gap-ink) !important; }
html[data-ui="v2"] .cite-chip .cc-id { color: var(--ink) !important; }
html[data-ui="v2"] .cite-chip .cc-para { color: var(--muted) !important; background: transparent !important; }
html[data-ui="v2"] .cite-chip .cc-prefix { background: var(--v2-sunk) !important; }
html[data-ui="v2"] .cite-chip .cc-prefix { color: var(--ink-2) !important; }
html[data-ui="v2"] .cite-chip, html[data-ui="v2"] :is(.audit-row.open, .sov-body, .persop-card, .audit-panel, .v2-rev-dock) .cite-chip, html[data-ui="v2"] .cite-chip:is(.cite-chip--ref, .cite-chip--sec, .cite-chip--client, .cite-chip--reg, .cite-chip--open) { --cl-fill: var(--v2-surface); background: var(--v2-surface) !important; border-color: var(--line-strong) !important; }

/* performance: collapsed findings that are off screen skip layout and paint
   entirely (the browser keeps their last measured height for the scrollbar) */
html[data-ui="v2"] .v2-row:not(.open) { content-visibility: auto; contain-intrinsic-size: auto 92px; }
/* An open finding is never the browser's scroll anchor. Its folds change its height
   while the rows around it are lazily sized, and the browser re-anchored the scroll
   on every toggle: opening Evidence moved the page 714px (Azhar 2026-11-18: "jump
   weirdly"). Rows above still anchor normally as they render. */
html[data-ui="v2"] .v2-row.open { overflow-anchor: none; }

/* close buttons on every panel (slide-over, reader, review): one style, always
   readable. Resting: dark icon on a soft chip. Hover: light icon on ink. */
html[data-ui="v2"] .sov-close, html[data-ui="v2"] :is(.sov, .reader, .audit-panel) .sov-close { background: var(--v2-sunk) !important; border: 1px solid var(--line-strong) !important; color: var(--ink) !important; }
html[data-ui="v2"] .sov-close:hover, html[data-ui="v2"] :is(.sov, .reader, .audit-panel) .sov-close:hover { background: var(--v2-btn) !important; border-color: var(--v2-btn) !important; color: var(--v2-btn-ink) !important; transform: rotate(90deg); }
html[data-ui="v2"] .sov-close svg { stroke: currentColor; }

/* slide-over sections take the same colours as the finding tiles */
html[data-ui="v2"] .sov-sec.v2-sec-regulation { --acc: oklch(50% .12 255); --acc-bg: oklch(94% .03 255); }
html[data-ui="v2"] .sov-sec.v2-sec-rationale { --acc: oklch(50% .09 195); --acc-bg: oklch(94.5% .03 195); }
html[data-ui="v2"] .sov-sec.v2-sec-evidence, html[data-ui="v2"] .sov-sec.v2-sec-sop { --acc: oklch(50% .09 75); --acc-bg: oklch(95% .035 80); }
html[data-ui="v2"] .sov-sec.v2-sec-cross { --acc: oklch(48% .1 160); --acc-bg: oklch(94.5% .035 160); }
html[data-ui="v2"] .sov-sec:is(.v2-sec-enforcement, .v2-sec-impact) { --acc: var(--v2-gap-ink); --acc-bg: var(--v2-gap-soft); }
html[data-ui="v2"][data-theme="dark"] .sov-sec.v2-sec-regulation { --acc: oklch(78% .1 255); --acc-bg: oklch(30% .05 255); }
html[data-ui="v2"][data-theme="dark"] .sov-sec.v2-sec-rationale { --acc: oklch(80% .08 195); --acc-bg: oklch(30% .04 195); }
html[data-ui="v2"][data-theme="dark"] .sov-sec:is(.v2-sec-evidence, .v2-sec-sop) { --acc: oklch(82% .08 80); --acc-bg: oklch(31% .04 80); }
html[data-ui="v2"][data-theme="dark"] .sov-sec.v2-sec-cross { --acc: oklch(80% .09 160); --acc-bg: oklch(30% .045 160); }
html[data-ui="v2"] .sov-conf { color: var(--ink-2) !important; }
html[data-ui="v2"] .sov-conf .bar { background: var(--v2-sunk) !important; border: 1px solid var(--line); }
html[data-ui="v2"] .sov-conf .bar i { background: var(--ink-2) !important; }
html[data-ui="v2"] .v2-tail { margin-top: 12px; font-size: 14px; color: var(--muted); }

html[data-ui="v2"] .exec-hero > *:not(.ph-globe):not(.aurora):not(.v5-fx) { position: relative; z-index: 1; }
/* open rail: VERA lockup centred, client card set
   lower with room to breathe, product label in the uppercase display face */
html[data-ui="v2"] .sidebar.v2-open .brand-logo { justify-content: center; padding: 0; }
html[data-ui="v2"] .sidebar.v2-open .brand { gap: 16px; padding-bottom: 10px; }
html[data-ui="v2"] .sidebar .brand-tag { margin-top: 6px; }
html[data-ui="v2"] .sidebar .brand-tag .brand-tag-sub { font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
/* By standard rows filter the findings; the active one shows as a chip */
html[data-ui="v2"] .v2-brow[data-ovstd] { cursor: pointer; border-radius: var(--r); transition: background-color 160ms ease, box-shadow 160ms ease; }
html[data-ui="v2"] .v2-brow[data-ovstd]:hover { background: var(--v2-sunk); }
html[data-ui="v2"] .v2-brow[data-ovstd]:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
html[data-ui="v2"] .v2-brow.sel { background: var(--v2-sunk); box-shadow: inset 0 0 0 1px var(--line-strong); }
html[data-ui="v2"] .v2-fb-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--v2-btn); background: var(--v2-btn); color: var(--v2-btn-ink);
  font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: transform 160ms var(--v2-ease); }
html[data-ui="v2"] .v2-fb-chip span { font-size: 14.5px; line-height: 1; opacity: .8; }
html[data-ui="v2"] .v2-fb-chip:active { transform: scale(.97); }

/* classic white backgrounds that broke dark mode (white-on-white text) */
html[data-ui="v2"] .info-tip-pop { background: var(--v2-surface) !important; color: var(--ink) !important; border: 1px solid var(--line-strong) !important; box-shadow: var(--shadow-lg) !important; }
html[data-ui="v2"] .info-tip-pop :is(b, strong) { color: var(--ink) !important; }
html[data-ui="v2"] .tour-pop { background: var(--v2-surface); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
html[data-ui="v2"] .tour-pop .tour-step { color: var(--muted); font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; }
html[data-ui="v2"] .tour-pop h4 { color: var(--ink); font-family: var(--ff-display); font-stretch: 112%; }
html[data-ui="v2"] .tour-pop p { color: var(--ink-2); }
html[data-ui="v2"] .tour-pop button { background: var(--v2-surface); border-color: var(--line-strong); color: var(--ink-2); font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; }
html[data-ui="v2"] .tour-pop .tour-next, html[data-ui="v2"] .tour-pop .tour-next:hover { background: var(--v2-btn); border-color: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] .audit-row.v2-row.open .a-expand { background: var(--v2-btn) !important; border-color: var(--v2-btn) !important; color: var(--v2-btn-ink) !important; }
html[data-ui="v2"] .audit-row.open .a-role-pill { background: var(--v2-surface) !important; }
html[data-ui="v2"] .di-opt .mark::after { background: var(--v2-btn-ink); }
html[data-ui="v2"] .di-opt.on .mark { background: var(--v2-btn); border-color: var(--v2-btn); }

/* citation chips in finding text: room between lines so chips on consecutive
   lines never butt into each other or the text, and a hair of side margin */
html[data-ui="v2"] .v2-detail :is(.v2-pts li, .v2-steps li, .v2-why, .v2-lead, .v2-fact .v2-v) { line-height: 1.8; }
html[data-ui="v2"] .v2-detail .cite-chip { margin: 0 2px; vertical-align: 0; }
/* the How to fix card is inverted, so its chips use the card's own palette */
html[data-ui="v2"] .v2-tile.tone-act .cite-chip, html[data-ui="v2"] .v2-tile.tone-act .cite-chip:is(.cite-chip--ref, .cite-chip--sec, .cite-chip--client, .cite-chip--reg, .cite-chip--open) {
  background: color-mix(in srgb, var(--v2-btn-ink) 7%, var(--v2-btn)) !important; border-color: color-mix(in srgb, var(--v2-btn-ink) 22%, transparent) !important; }
html[data-ui="v2"] .v2-tile.tone-act .cite-chip .cc-prefix { background: color-mix(in srgb, var(--v2-btn-ink) 12%, transparent) !important; color: color-mix(in srgb, var(--v2-btn-ink) 75%, transparent) !important; }
html[data-ui="v2"] .v2-tile.tone-act .cite-chip .cc-id { color: var(--v2-btn-ink) !important; }
html[data-ui="v2"] .v2-tile.tone-act .cite-chip .cc-para { color: color-mix(in srgb, var(--v2-btn-ink) 65%, transparent) !important; }
html[data-ui="v2"] .v2-legend span { font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* Decisions: the "Carried into your next product" card sits clear of the filters */
html[data-ui="v2"] #decLearned .learned-card { margin-top: 18px; }
/* no rotating border beam anywhere in the new design (cards on hover, upload drop zone) */
html[data-ui="v2"] .bento-card::after, html[data-ui="v2"] .bento-card:hover::after, html[data-ui="v2"] .fru-drop::after { animation: none !important; opacity: 0 !important; background: none !important; }

/* DHF screens (intake, standards, phases, upload, results, register): labels,
   headings, status chips and figures in the display face like every other v2
   page; codes and IDs (document numbers, question ids, clause refs) stay mono. */
html[data-ui="v2"] :is(.dc-card-lbl, .dc-foot, .dc-group-count, .dp-sec-h, .dp-status, .di-edit-btn, .di-baseline .lbl, .di-why b, .di-obr-k,
  .sa-fmt, .sa-state, .sa-why-h, .sa-evc-card .k, .sa-done, .dp-pick span, .dp-exit b, .du-sum b, .dr-verdict, .dr-crit, .dr-res, .dr-more .k,
  .di-run-t, .di-details label, .di-attr .k, .di-close-stats .l, .di-close-next b, .di-pg-where, .di-left-h, .di-saved, .di-nav-b .n) {
  font-family: var(--ff-display) !important; font-stretch: 112%; font-weight: 600; letter-spacing: .08em; }
html[data-ui="v2"] :is(.dc-card-val, .sa-evc-card .n, .dp-n) { font-family: var(--ff-display) !important; font-stretch: 118%; font-weight: 650; font-variant-numeric: tabular-nums; }
/* run-card DHF actions: v2 secondary buttons, not classic mono */
html[data-ui="v2"] .rc-dhf-btn { font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; letter-spacing: .08em; font-size: 11.5px; color: var(--ink); background: var(--v2-surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 10px 16px; transition: transform 160ms var(--v2-ease), background-color 160ms ease, border-color 160ms ease; }
html[data-ui="v2"] .rc-dhf-btn:hover:not([disabled]) { background: var(--v2-sunk); border-color: var(--ink-2); transform: translateY(-1px); }
html[data-ui="v2"] .rc-dhf-btn:active:not([disabled]) { transform: scale(.97); }
html[data-ui="v2"] .rc-dhf-btn .rc-dhf-ic { color: var(--ink-2); }

/* dialog header lockup (Start a DHF assessment, New validation, Report a bug,
   invite, re-assess): the masked VERA lockup used in the side panels, in ink,
   instead of the classic navy tile + Orbitron word */
html[data-ui="v2"] .qad-logo .mk { display: none; }
html[data-ui="v2"] .qad-logo .wd { font-size: 0; color: transparent; display: block; width: 99px; height: 17px; background: var(--ink);
  -webkit-mask: url(./vera-lockup-mask-tm.png) no-repeat left center / contain; mask: url(./vera-lockup-mask-tm.png) no-repeat left center / contain; }
html[data-ui="v2"] .qad-icon { background: var(--v2-btn); box-shadow: none; color: var(--v2-btn-ink); }
html[data-ui="v2"] .qad-title { font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; letter-spacing: .1em; }
/* dialog fields and buttons in the v2 type system */
html[data-ui="v2"] .bugf-field > span { font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; letter-spacing: .1em; color: var(--ink-2); }
html[data-ui="v2"] .pwm-btn { font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; letter-spacing: .1em; border-radius: var(--r); transition: transform 160ms var(--v2-ease), background-color 160ms ease; }
html[data-ui="v2"] .pwm-btn:active:not([disabled]) { transform: scale(.97); }

/* DHF intake: current section in the ink button colours (was white on ink-white);
   the QMS-baseline pill on surface tokens (was white-on-white in light) */
html[data-ui="v2"] .di-nav-b[aria-current="true"] { background: var(--v2-btn) !important; color: var(--v2-btn-ink) !important; }
html[data-ui="v2"] .di-nav-b[aria-current="true"] :is(.n, .t, .c) { color: var(--v2-btn-ink) !important; opacity: 1; }
html[data-ui="v2"] .di-nav-b[aria-current="true"] .n, html[data-ui="v2"] .di-nav-b[aria-current="true"] .c { opacity: .75; }
html[data-ui="v2"] .di-nav-b:hover:not([aria-current="true"]) { background: var(--v2-sunk); }
html[data-ui="v2"] .di-baseline { background: var(--v2-sunk) !important; border: 1px solid var(--line-strong) !important; color: var(--ink) !important; }
html[data-ui="v2"] .di-baseline .lbl { color: var(--muted) !important; }
html[data-ui="v2"] .di-baseline .val, html[data-ui="v2"] .di-baseline .di-regions { color: var(--ink) !important; }
html[data-ui="v2"] :is(.di-qid, .di-left-h, .page-hero .ph-sep) { color: var(--muted) !important; }

/* DHF standards: buttons on v2 tokens (Disagree was near-black on dark) */
html[data-ui="v2"] .sa-btn { background: var(--v2-surface); border: 1px solid var(--line-strong); color: var(--ink); font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; letter-spacing: .08em; border-radius: var(--r); transition: transform 160ms var(--v2-ease), background-color 160ms ease, border-color 160ms ease; }
html[data-ui="v2"] .sa-btn:hover { border-color: var(--ink-2); background: var(--v2-sunk); box-shadow: none; }
html[data-ui="v2"] .sa-btn:active { transform: scale(.97); }
html[data-ui="v2"] .sa-btn.go, html[data-ui="v2"] .sa-btn.go:hover { background: var(--v2-btn); border-color: var(--v2-btn); color: var(--v2-btn-ink); filter: none; }
html[data-ui="v2"] .sa-btn.quiet, html[data-ui="v2"] .sa-btn.quiet:hover { background: none; border-color: transparent; color: var(--muted); }
html[data-ui="v2"] .sa-btn.quiet:hover { color: var(--ink); }
html[data-ui="v2"] .dr-actions .dr-note { color: var(--muted); }
/* classic amber "tint-run" wash off v2 cards (v2 tints come from ::before) */
html[data-ui="v2"] .bento-card.tint-run { background-image: none !important; }
html[data-ui="v2"] .dp-n { color: var(--muted); }
/* run + DHF cards: title and client line in the display face */
html[data-ui="v2"] .runs-card .rc-title { font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; letter-spacing: .06em; }
html[data-ui="v2"] .runs-card .dhf-client { font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
/* narrower windows: the search gives way so the page title never truncates */
@media (max-width: 1360px) { html[data-ui="v2"] .topbar-search { flex-basis: 200px; min-width: 160px; } }
@media (max-width: 1180px) { html[data-ui="v2"] .topbar-search { flex-basis: 150px; } }

/* ======================================================================
   UI polish, 2026-10-23 (Azhar): sentence case, styled dropdowns, filled
   colour-coded pills, and the DHF assessment report on the overview cards.
   ====================================================================== */

/* Dropdowns: no browser arrow anywhere; one chevron, one shape. */
html[data-ui="v2"] select:not([multiple]):not([size]) { appearance: none; -webkit-appearance: none; padding-right: 34px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8f99' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 11px center !important; background-size: 14px !important; }
html[data-ui="v2"] select { border-radius: 10px; border: 1px solid var(--line-strong); background-color: var(--v2-surface); color: var(--ink); font-family: var(--ff-sans); font-size: 14px; min-height: 36px; padding-left: 12px; }
html[data-ui="v2"] select:hover { border-color: var(--ink-2); }
html[data-ui="v2"] select:focus-visible { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ink-2) 14%, transparent); }

/* Pills: filled tint + matching ink, no outline-only chips. Result and verdict
   follow the status colours; severity follows its own red/orange/yellow. */
html[data-ui="v2"] :is(.dr-verdict, .dr-res, .dx-sev, .dx-pri) { border: 1px solid transparent !important; font-family: var(--ff-display) !important; font-stretch: 112%; font-weight: 650;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; line-height: 1.3; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
html[data-ui="v2"] :is(.dr-verdict, .dr-res)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
html[data-ui="v2"] :is(.dr-res.r-gap, .dr-verdict.v-remediation-required, .dr-verdict.v-failed, .dr-verdict.v-not-ready-for-closure) { background: var(--v2-gap-soft); color: var(--v2-gap-ink); border-color: color-mix(in oklch, var(--c-gap) 28%, transparent) !important; }
html[data-ui="v2"] :is(.dr-res.r-partial, .dr-verdict.v-attention-required) { background: var(--v2-par-soft); color: var(--v2-par-ink); border-color: color-mix(in oklch, var(--c-partial) 35%, transparent) !important; }
html[data-ui="v2"] :is(.dr-res.r-compliant, .dr-verdict.v-adequate) { background: var(--v2-cov-soft); color: var(--v2-cov-ink); border-color: color-mix(in oklch, var(--c-compliant) 30%, transparent) !important; }
html[data-ui="v2"] :is(.dr-res.r-na, .dr-res.r-not-assessed) { background: var(--v2-oos-soft); color: var(--v2-oos-ink); }
html[data-ui="v2"] .dx-sev.s-critical { background: var(--v2-crit); color: var(--v2-crit-ink); }
html[data-ui="v2"] .dx-sev.s-major { background: var(--v2-maj-soft); color: var(--v2-maj-ink); border-color: color-mix(in oklch, var(--v2-maj) 40%, transparent) !important; }
html[data-ui="v2"] .dx-sev.s-minor { background: var(--v2-min-soft); color: var(--v2-min-ink); border-color: color-mix(in oklch, var(--v2-min) 45%, transparent) !important; }
html[data-ui="v2"] .dx-pri.p-p1 { background: var(--v2-crit); color: var(--v2-crit-ink); }
html[data-ui="v2"] .dx-pri.p-p2 { background: var(--v2-maj-soft); color: var(--v2-maj-ink); }
html[data-ui="v2"] .dx-pri.p-p3 { background: var(--v2-min-soft); color: var(--v2-min-ink); }
html[data-ui="v2"] .ph-stat .val .dr-verdict { font-size: 13.5px; padding: 6px 14px; }
html[data-ui="v2"] .dx-st.st-open { color: var(--muted); }

html[data-ui="v2"] .dr-headline p { font-size: 15.5px; color: var(--ink); }
html[data-ui="v2"] .dx-body > .bento-card, html[data-ui="v2"] .dx-body .dx-grid2 > .bento-card { border-radius: 18px; }

/* DHF overview: the QMS overview cards, plus what the DHF needs */
html[data-ui="v2"] .dx-ov { margin: 0; }
html[data-ui="v2"] .dx-ov.dx-still * { transition: none !important; }
html[data-ui="v2"] .v2-bar-lbls { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 8px; }
html[data-ui="v2"] .v2-bar-lbls span { font-family: var(--ff-mono); font-size: 11.5px; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ui="v2"] .dx-stat[data-sev="Critical"] .v2-stat-lab i { background: var(--v2-crit); }
html[data-ui="v2"] .dx-deliv { width: 100%; margin-top: 14px; display: grid; gap: 10px; }
html[data-ui="v2"] .dx-deliv-h { font-size: 13.5px; color: var(--ink-2); } html[data-ui="v2"] .dx-deliv-h b { color: var(--ink); font-weight: 600; }
html[data-ui="v2"] .dx-deliv .v2-seg, html[data-ui="v2"] .dx-ov .v2-seg { display: flex; }
html[data-ui="v2"] .dx-deliv .v2-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; }
html[data-ui="v2"] .dx-brow .v2-bn { display: block; }
html[data-ui="v2"] .dx-brow .v2-bn .dx-light { margin-right: 8px; }
html[data-ui="v2"] .dx-brow .v2-seg .dx-clear { background: color-mix(in oklch, var(--c-compliant) 45%, transparent); }
html[data-ui="v2"] .dx-sumrow { margin-top: 16px; }
html[data-ui="v2"] .dx-sum .dx-prose { padding: 12px 22px 22px; }
html[data-ui="v2"] .dx-sum .dx-prose p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
html[data-ui="v2"] .dx-more-l { border: 0; background: none; color: var(--ink-2); font: 500 13px var(--ff-sans); cursor: pointer; padding: 4px 0; }
html[data-ui="v2"] .dx-more-l:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
html[data-ui="v2"] .dx-fcards { display: grid; gap: 8px; padding: 14px 22px 22px; }
html[data-ui="v2"] .dx-fcard { position: relative; display: grid; gap: 6px; width: 100%; text-align: left; padding: 12px 14px 12px 18px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--v2-surface); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; transition: border-color 160ms ease, transform 160ms var(--v2-ease); }
/* No coloured rail: the card carries its severity as a soft wash and its pill */
html[data-ui="v2"] .dx-fcard { padding: 12px 14px; border-color: color-mix(in oklch, var(--c) 26%, var(--line));
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklch, var(--c) 13%, transparent), transparent 62%), var(--v2-surface); }
html[data-ui="v2"] .dx-fcard:hover { border-color: var(--line-strong); transform: translateY(-1px); }
html[data-ui="v2"] .dx-fcard-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
html[data-ui="v2"] .dx-fid { font-family: var(--ff-mono); font-size: 12.5px; font-weight: 600; color: var(--ink); }
html[data-ui="v2"] .dx-fart { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
html[data-ui="v2"] .dx-fcard-h svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; transform: rotate(-90deg); flex: none; }
html[data-ui="v2"] .dx-fcard-t { font-size: 14px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[data-ui="v2"] .dx-ov .v2-fold { margin-top: 16px; }
html[data-ui="v2"] .dx-fold-in { padding: 4px 22px 20px; border-top: 1px solid var(--line); }
html[data-ui="v2"] .dx-fold-in .dx-list { margin-top: 14px; }
@media (max-width: 1100px) { html[data-ui="v2"] .dx-ov .v2-stats, html[data-ui="v2"] .dx-ov .v2-row2 { grid-template-columns: minmax(0, 1fr); } }

/* DHF tables and filters on v2 surfaces */
html[data-ui="v2"] .dx-f input { border-radius: 10px; min-height: 36px; padding: 0 12px; }
html[data-ui="v2"] .dx-art { border-radius: 14px; }
html[data-ui="v2"] .dx-art-h:hover { background: var(--v2-sunk); border-radius: 14px; }
html[data-ui="v2"] .dx-drawer h3 { display: flex; align-items: center; gap: 10px; }
html[data-ui="v2"] .dx-stack { display: grid; gap: 16px; align-content: start; }
html[data-ui="v2"] .dx-ov .v2-rows { padding: 6px 10px 10px; }
html[data-ui="v2"] .dx-brow:hover { background: var(--v2-sunk); }
html[data-ui="v2"] .dx-brow .v2-bn { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 0; font-size: 14px; }
html[data-ui="v2"] .dx-brow .dx-bname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ui="v2"] .dx-brow .v2-bn small { grid-column: 2; font-size: 12.5px; }
html[data-ui="v2"] .dx-bseg { height: 8px; } html[data-ui="v2"] .dx-bseg i { border-radius: 3px; }
html[data-ui="v2"] .dx-none { font-size: 13px; color: var(--muted); }
html[data-ui="v2"] .dx-fcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { html[data-ui="v2"] .dx-fcards { grid-template-columns: minmax(0, 1fr); } }

/* DHF register: findings as the audit report's rows, opening in place */
html[data-ui="v2"] .dx-regwrap { display: grid; gap: 4px; }
html[data-ui="v2"] .dx-reg-h { display: flex; align-items: center; gap: 12px; margin: 2px 0 10px; }
html[data-ui="v2"] .dx-reg-h h3 { margin: 0; font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; font-size: 15.5px; color: var(--ink); }
html[data-ui="v2"] .dx-frows { display: flex; flex-direction: column; gap: 10px; }
html[data-ui="v2"] .dx-frow .audit-head { grid-template-columns: 42px minmax(0, 1fr) auto 34px; }
html[data-ui="v2"] .dx-frow.open .audit-body { height: auto; overflow: visible; }
html[data-ui="v2"] .dx-frow.open .audit-body-inner { opacity: 1; transform: none; }
html[data-ui="v2"] .dx-frow .v2-std { font-family: var(--ff-sans); font-size: 13px; color: var(--ink-2); }
html[data-ui="v2"] .dx-stchip { height: 24px; font-size: 11px; font-weight: 650; color: var(--muted); }
html[data-ui="v2"] .dx-stchip.st-in-progress { color: var(--v2-par-ink); background: var(--v2-par-soft); border-color: transparent; }
html[data-ui="v2"] .dx-stchip.st-resolved { color: var(--v2-cov-ink); background: var(--v2-cov-soft); border-color: transparent; }
html[data-ui="v2"] .dx-stchip.st-accepted-risk { color: var(--v2-oos-ink); background: var(--v2-oos-soft); border-color: transparent; }
html[data-ui="v2"] .dx-frow .v2-chips .dx-sev, html[data-ui="v2"] .dx-frow .v2-chips .dr-res { height: 24px; }
html[data-ui="v2"] .dx-doc { height: 26px; font-size: 12.5px; margin: 0 6px 6px 0; }
html[data-ui="v2"] .dx-frow .dx-track { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
html[data-ui="v2"] .dx-frow .dx-hist { margin-top: 12px; }
@media (max-width: 900px) { html[data-ui="v2"] .dx-frow .audit-head { grid-template-columns: 42px minmax(0, 1fr) 34px; } html[data-ui="v2"] .dx-frow .v2-chips { display: none; } }
/* DHF report filter bar: the audit report's .filterbar (seg + count + Export) */
html[data-ui="v2"] .dx-fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 18px; }
html[data-ui="v2"] .dx-count { font-size: 13.5px; color: var(--muted); } html[data-ui="v2"] .dx-count b { color: var(--ink-2); font-weight: 600; }
html[data-ui="v2"] .dx-fbar .fx-menu { margin-left: auto; }
html[data-ui="v2"] .dx-lim { margin-top: 16px; } html[data-ui="v2"] .dx-lim h5 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
html[data-ui="v2"] .dx-lim-g { margin-top: 12px; } html[data-ui="v2"] .dx-lim-w { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); }
html[data-ui="v2"] .dx-fold-in { padding-bottom: 22px; }

/* DHF overview, round 3: structured summary, bucket list, limitations, documents */
html[data-ui="v2"] .dx-ov .v2-row2 { align-items: stretch; }
/* By DHF bucket: the list flows with the page (Azhar 2026-11-08). It used to
   scroll inside a card held to the left column's height with overscroll
   contained, and swallowed 64 of 70 wheel ticks over the overview. */
html[data-ui="v2"] .dx-bcard { display: flex; flex-direction: column; }
html[data-ui="v2"] .dx-bcard .v2-rows { padding: 4px 10px 8px; }
html[data-ui="v2"] .dx-bhead { display: grid; grid-template-columns: minmax(0, 1.25fr) 1fr auto 64px; gap: 16px; padding: 14px 22px 8px; border-bottom: 1px solid var(--line);
  font-family: var(--ff-display); font-stretch: 112%; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[data-ui="v2"] .dx-bhead span:last-child { text-align: right; }
html[data-ui="v2"] .dx-brow { grid-template-columns: minmax(0, 1.25fr) 1fr auto 64px; gap: 16px; padding: 10px 12px; cursor: pointer; border-radius: var(--r); transition: background-color 150ms ease; }
html[data-ui="v2"] .dx-brow:hover, html[data-ui="v2"] .dx-brow:focus-visible { background: var(--v2-sunk); outline: none; }
html[data-ui="v2"] .dx-brow:focus-visible { box-shadow: 0 0 0 2px var(--ink-2) inset; }
html[data-ui="v2"] .dx-brow .v2-bn { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; font-size: 14.5px; }
html[data-ui="v2"] .dx-bk-code { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--v2-sunk); border: 1px solid var(--line);
  font-family: var(--ff-mono); font-size: 12px; font-weight: 600; color: var(--ink-2); }
html[data-ui="v2"] .dx-brow .v2-bn small { grid-column: 2; font-size: 12.5px; }
html[data-ui="v2"] .dx-bseg { height: 8px; background: var(--v2-sunk); border-radius: 6px; }
html[data-ui="v2"] .dx-bsev { display: flex; gap: 4px; justify-content: flex-end; min-width: 120px; }
html[data-ui="v2"] .dx-bsev .dx-sev { padding: 2px 8px; font-size: 11px; min-width: 26px; justify-content: center; }
html[data-ui="v2"] .dx-btot { text-align: right; display: grid; line-height: 1.1; } html[data-ui="v2"] .dx-btot b { font-family: var(--ff-display); font-stretch: 118%; font-size: 20px; font-weight: 650; color: var(--ink); }
html[data-ui="v2"] .dx-btot small { font-size: 12px; color: var(--muted); }
html[data-ui="v2"] .dx-bclean { display: flex; gap: 12px; align-items: flex-start; padding: 14px 22px 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
html[data-ui="v2"] .dx-bclean b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 8px; }
html[data-ui="v2"] .dx-bclean-l { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-ui="v2"] .dx-mini { border: 1px solid var(--line); background: var(--v2-surface); color: var(--ink-2); border-radius: 999px; padding: 4px 10px; font: 500 12px var(--ff-sans); cursor: pointer; }
html[data-ui="v2"] .dx-mini:hover { border-color: var(--ink-2); color: var(--ink); } html[data-ui="v2"] .dx-mini em { font-style: normal; color: var(--muted); }
/* Executive summary: three key points, then VERA's prose on demand */
html[data-ui="v2"] .dx-keypts { padding: 16px 22px 6px; gap: 14px; }
html[data-ui="v2"] .dx-keypts li { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); } html[data-ui="v2"] .dx-keypts b { color: var(--ink); font-weight: 600; }
html[data-ui="v2"] .dx-keypts .v2-ic { background: var(--v2-sunk); }
html[data-ui="v2"] .dx-prose-d { margin: 10px 22px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--v2-sunk); }
html[data-ui="v2"] .dx-prose-d summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
html[data-ui="v2"] .dx-prose-d summary::-webkit-details-marker { display: none; }
html[data-ui="v2"] .dx-prose-d summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 200ms var(--v2-ease); }
html[data-ui="v2"] .dx-prose-d[open] summary svg { transform: rotate(180deg); }
html[data-ui="v2"] .dx-prose-d .dx-prose { padding: 0 14px 14px; max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
html[data-ui="v2"] .dx-prose-d .dx-prose p { font-size: 14px; line-height: 1.7; color: var(--ink-2); max-width: none; }
/* Folds: icon tile in the header like the page heroes */
html[data-ui="v2"] .dx-fold2 .v2-fold-h { gap: 14px; } html[data-ui="v2"] .dx-fold2 .v2-fold-h .v2-hico { width: 30px; height: 30px; flex: none; }
html[data-ui="v2"] .dx-fold-in { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
/* Limitations: one card per reason */
html[data-ui="v2"] .dx-lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
html[data-ui="v2"] .dx-lcard { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--v2-surface); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
html[data-ui="v2"] .dx-lcard:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
html[data-ui="v2"] .dx-lcard-h { display: flex; align-items: center; gap: 12px; } html[data-ui="v2"] .dx-lcard-h .v2-hico { width: 30px; height: 30px; flex: none; }
html[data-ui="v2"] .dx-lcard-h b { font-size: 15px; font-weight: 600; color: var(--ink); }
html[data-ui="v2"] .dx-lcard-n { margin-left: auto; font-family: var(--ff-display); font-stretch: 118%; font-size: 20px; font-weight: 650; color: var(--ink); }
html[data-ui="v2"] .dx-lcard-p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
html[data-ui="v2"] .dx-lcard-a { margin: 2px 0 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink); padding: 9px 12px; border-radius: 10px; background: var(--v2-sunk); }
html[data-ui="v2"] .dx-lcard-a svg { width: 14px; height: 14px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.7; }
html[data-ui="v2"] .dx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-ui="v2"] .dx-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--v2-sunk); font-family: var(--ff-mono); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
html[data-ui="v2"] .dx-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
html[data-ui="v2"] .dx-why li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: start; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
html[data-ui="v2"] .dx-why .dx-chip { justify-self: start; }
html[data-ui="v2"] .dx-more-d summary { cursor: pointer; font-size: 13px; color: var(--ink-2); margin: 4px 0 8px; }
/* Documents not in the plan */
  font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 650; line-height: 1.3; }
@media (max-width: 1100px) { html[data-ui="v2"] .dx-lgrid, html[data-ui="v2"] .dx-upgrid { grid-template-columns: minmax(0, 1fr); } html[data-ui="v2"] .dx-why li { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] .dx-prose-d summary svg { transition: none; } }
html[data-ui="v2"] :is(.dx-ov, .dx-lcard, .dx-upcard) .v2-hico svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; width: 15px; height: 15px; }
html[data-ui="v2"] .dx-chip-t { font-family: var(--ff-sans); font-size: 12.5px; border-radius: 999px; white-space: normal; height: auto; min-height: 26px; padding: 3px 11px; }
html[data-ui="v2"] .dx-lcard-s { margin: 0; font-size: 12.5px; color: var(--muted); }
html[data-ui="v2"] .dx-why li { grid-template-columns: 210px 1fr; }
html[data-ui="v2"] .dx-why .dx-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="v2"] .dx-limsec { margin-top: 16px; }
html[data-ui="v2"] .dx-limsec .v2-card-h h3 { display: flex; align-items: center; } html[data-ui="v2"] .dx-limsec .v2-card-h { padding-bottom: 16px; }
html[data-ui="v2"] .dx-limsec .v2-card-h h3 .v2-hico { width: 30px; height: 30px; margin-right: 12px; }
html[data-ui="v2"] .dx-limsec .v2-hico svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; width: 15px; height: 15px; }
html[data-ui="v2"] .dx-lcard-h b { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 12.5px; font-weight: 650; }
/* DHF: link actions are real buttons (the audit report's .arb-btn), uppercase */
html[data-ui="v2"] .dx-go { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
html[data-ui="v2"] .dx-go svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; transform: rotate(-90deg); }
html[data-ui="v2"] .dx-go:focus-visible, html[data-ui="v2"] .dx-actchip:focus-visible, html[data-ui="v2"] .dx-mini:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
html[data-ui="v2"] .dx-kp-t { display: block; } html[data-ui="v2"] .dx-kp-a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
html[data-ui="v2"] .dx-gorow { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-ui="v2"] .dx-lcard-a { flex-wrap: wrap; align-items: center; } html[data-ui="v2"] .dx-lcard-a > span { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* register: active filters as removable chips */
html[data-ui="v2"] .dx-actf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -6px 0 14px; }
html[data-ui="v2"] .dx-actchip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--v2-sunk);
  color: var(--ink); font: 500 12.5px var(--ff-sans); cursor: pointer; }
html[data-ui="v2"] .dx-actchip span { font-size: 15.5px; color: var(--muted); line-height: 1; } html[data-ui="v2"] .dx-actchip:hover span { color: var(--ink); }
html[data-ui="v2"] .dx-clearall { border: 0; background: none; color: var(--ink-2); font: 500 12.5px var(--ff-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
html[data-ui="v2"] .dx-empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); margin: 0; }
html[data-ui="v2"] .dx-morewrap { display: flex; justify-content: center; margin: 16px 0 0; }
html[data-ui="v2"] #dxFiltersPop { min-width: 280px; }
/* DHF bucket page */
html[data-ui="v2"] .dx-bhero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 20px 22px; margin-bottom: 16px; }
html[data-ui="v2"] .dx-bhero-l { display: flex; gap: 16px; align-items: center; min-width: 0; }
html[data-ui="v2"] .dx-bk-lg { width: 52px; height: 52px; border-radius: 14px; font-size: 14.5px; grid-row: auto; }
html[data-ui="v2"] .dx-bhero-e { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 650; color: var(--muted); }
html[data-ui="v2"] .dx-bhero h3 { margin: 2px 0 8px; font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .04em; font-size: 20px; font-weight: 650; color: var(--ink); }
html[data-ui="v2"] .dx-bhero-m { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13.5px; color: var(--ink-2); } html[data-ui="v2"] .dx-bhero-m b { color: var(--ink); }
html[data-ui="v2"] .dx-bhero-r { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
html[data-ui="v2"] .dx-bhero-a { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
html[data-ui="v2"] .dx-bsel { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 650; color: var(--muted); }
html[data-ui="v2"] .dx-bsel select { min-width: 280px; text-transform: none; letter-spacing: 0; }
html[data-ui="v2"] .dx-arow .v2-chips .dr-verdict { height: 26px; }
/* DHF Buckets tab: status cards that filter, then bucket rows that open in place */
html[data-ui="v2"] .dx-bstats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-ui="v2"] .dx-bst .v2-stat-num { font-size: 40px; margin: 14px 0 6px; }
html[data-ui="v2"] .dx-bcodes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 16px; min-height: 22px; }
html[data-ui="v2"] .dx-bcodes span { font-family: var(--ff-mono); font-size: 11.5px; font-weight: 600; color: var(--ink-2); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--v2-sunk); }
html[data-ui="v2"] .dx-bbar { margin: 18px 0 12px; padding: 0; min-height: 0; } html[data-ui="v2"] .dx-bbar .dx-clearall { margin-left: auto; }
html[data-ui="v2"] .dx-bkrow .v2-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; }
html[data-ui="v2"] .dx-bscore { font-size: 13px; color: var(--muted); } html[data-ui="v2"] .dx-bscore b { color: var(--ink-2); font-weight: 600; font-family: var(--ff-mono); }
/* A row's one figure (score, documents, findings, breaks) as a chip beside
   its title, an icon in place of the word (_drTChip). */
html[data-ui="v2"] .dx-tline { display: flex; align-items: center; gap: 10px; min-width: 0; }
html[data-ui="v2"] .dx-tline > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ui="v2"] .dx-tchip { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 24px; padding: 0 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink-2); font-family: var(--ff-mono); font-size: 12.5px; font-weight: 600; cursor: default; }
html[data-ui="v2"] .dx-tchip svg { width: 13px; height: 13px; }
html[data-ui="v2"] .dx-brow .dx-tline { grid-column: 2; }
html[data-ui="v2"] .dx-miss { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
html[data-ui="v2"] .dx-miss::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-gap); }
html[data-ui="v2"] .dx-bkrow .v2-chips .dx-sev, html[data-ui="v2"] .dx-bkrow .v2-chips .dr-verdict { height: 26px; }
html[data-ui="v2"] .dx-bkseg { height: 10px; margin: 4px 0 12px; background: var(--v2-sunk); } html[data-ui="v2"] .dx-bkseg i { transform: none; transition: none; }
html[data-ui="v2"] .dx-bkmiss { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
html[data-ui="v2"] .dx-bkmiss > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); margin-right: 4px; }
html[data-ui="v2"] .dx-bkmiss > span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-gap); }
html[data-ui="v2"] .dx-bklegend { justify-content: flex-start; margin: 0 0 12px; }
html[data-ui="v2"] .dx-bksev { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
html[data-ui="v2"] .dx-bksev li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--v2-sunk); font-size: 13.5px; color: var(--ink-2); }
html[data-ui="v2"] .dx-bksev :is(.dx-sev, .v2-pr) { justify-content: center; } html[data-ui="v2"] .dx-bksev b { font-family: var(--ff-mono); font-size: 14.5px; color: var(--ink); }
html[data-ui="v2"] .dx-bkarts { display: grid; gap: 6px; }
html[data-ui="v2"] .dx-bkart { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto 92px 15px; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--v2-sunk); color: var(--ink); font: 500 13.5px var(--ff-sans); cursor: pointer; transition: border-color 150ms ease; }
html[data-ui="v2"] .dx-bkart:hover { border-color: var(--line-strong); } html[data-ui="v2"] .dx-bkart:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
html[data-ui="v2"] .dx-bkart .dx-dot { width: 8px; height: 8px; background: var(--sc); }
html[data-ui="v2"] .dx-bkart-n { display: flex; align-items: center; gap: 10px; min-width: 0; } html[data-ui="v2"] .dx-bkart-n > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ui="v2"] .dx-bkart .dr-verdict { justify-self: end; }
html[data-ui="v2"] .dx-bkart .dr-verdict { height: 24px; }
html[data-ui="v2"] .dx-bkart-f { font-family: var(--ff-mono); font-size: 12.5px; color: var(--muted); text-align: right; }
html[data-ui="v2"] .dx-bkart svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; transform: rotate(-90deg); }
html[data-ui="v2"] .dx-absent { flex: none; height: 22px; font-size: 12px; color: var(--v2-gap-ink); background: var(--v2-gap-soft); border-color: transparent; }
@media (max-width: 1100px) { html[data-ui="v2"] .dx-bstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { html[data-ui="v2"] .dx-bstats { grid-template-columns: minmax(0, 1fr); } html[data-ui="v2"] .dx-bkart { grid-template-columns: 8px minmax(0, 1fr) 15px; } html[data-ui="v2"] .dx-bkart :is(.dr-verdict, .dx-bkart-f) { display: none; } }
/* DHF Traceability tab: stat cards, then chain links and consistency kinds as rows */
html[data-ui="v2"] .dx-tstat { cursor: default; } html[data-ui="v2"] .v2-ov.in .dx-tstat:hover { transform: none; }
html[data-ui="v2"] .dx-tstat .v2-stat-num { font-size: 40px; margin: 14px 0 6px; }
html[data-ui="v2"] .dx-th { margin: 28px 0 12px; } html[data-ui="v2"] .dx-th .dx-count { margin-left: auto; }
html[data-ui="v2"] .dx-th h3 { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; font-size: 13px; }
html[data-ui="v2"] .dx-arr { color: var(--muted); font-weight: 400; margin: 0 2px; }
html[data-ui="v2"] .dx-trow .v2-std b { color: var(--ink); font-weight: 600; font-family: var(--ff-mono); }
html[data-ui="v2"] .dx-trow .audit-head:not([data-tk]) { cursor: default; }
html[data-ui="v2"] .dx-trow .v2-chips .dr-res { height: 26px; }
html[data-ui="v2"] .dx-tcards { padding: 4px 0 2px; }
html[data-ui="v2"] .dx-tnote { margin: 12px 4px 0; font-size: 13px; color: var(--muted); }
html[data-ui="v2"] .dx-tclean { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--v2-surface); font-size: 13.5px; color: var(--ink-2); }
html[data-ui="v2"] .dx-tclean b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 8px; }
html[data-ui="v2"] .dx-tclean .dx-mini { cursor: default; }
/* DHF findings: QMS-style pills (ID, standard with flag, typed documents, clauses) */
html[data-ui="v2"] .dx-rmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
html[data-ui="v2"] .dx-idpill { cursor: default; }
html[data-ui="v2"] .dx-rart { font-size: 13px; color: var(--ink-2); }
html[data-ui="v2"] .dx-docpill { display: inline-flex; align-items: stretch; overflow: hidden; max-width: 100%; vertical-align: middle; cursor: pointer; }
html[data-ui="v2"] .dx-docpill:hover { border-color: var(--ink-2); background: var(--v2-sunk); }
html[data-ui="v2"] .dx-docpill:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
html[data-ui="v2"] .dx-docpill > span { display: flex; align-items: center; white-space: nowrap; }
html[data-ui="v2"] .dx-docpill .cc-para { font-family: var(--ff-sans); font-size: 12.5px; padding: 1px 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 20px; max-width: 340px; }
html[data-ui="v2"] .dx-rmeta .dx-docpill .cc-para { display: none; }
html[data-ui="v2"] .dx-more-n { font-family: var(--ff-mono); font-size: 12.5px; color: var(--muted); }
html[data-ui="v2"] .dx-docrow { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-ui="v2"] .dx-stdpill { padding: 2px 9px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--v2-surface); color: var(--ink); }
html[data-ui="v2"] .dx-reqby { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
html[data-ui="v2"] .dx-clpills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
html[data-ui="v2"] .dx-clpill, html[data-ui="v2"] .dx-stdpill { cursor: pointer; } html[data-ui="v2"] :is(.dx-clpill, .dx-stdpill):hover { border-color: var(--ink-2); background: var(--v2-sunk); }
/* Review: the As scored / After review toggle (QMS and DHF) and the DHF review form */
html[data-ui="v2"] .rv-btn[aria-pressed="true"] { background: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] .dx-rv-hint { margin: 8px 2px 0; font-size: 12.5px; color: var(--muted); }
/* Counts as uppercase pills, not running sentences */
html[data-ui="v2"] .dx-cnts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
html[data-ui="v2"] .dx-cnt { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--v2-surface); font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
html[data-ui="v2"] .dx-cnt b { font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: 0; color: var(--ink); font-weight: 600; }
html[data-ui="v2"] .dx-cnt.t-warn { border-color: color-mix(in oklch, var(--v2-maj) 35%, var(--line)); background: color-mix(in oklch, var(--v2-maj) 10%, var(--v2-surface)); }
html[data-ui="v2"] .dx-cnt.t-ok { border-color: color-mix(in oklch, var(--c-compliant) 35%, var(--line)); background: color-mix(in oklch, var(--c-compliant) 10%, var(--v2-surface)); }
html[data-ui="v2"] .dx-cnt-note { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 650; color: var(--muted); margin-left: 4px; }
html[data-ui="v2"] .rv-strip .rv-prog { display: inline-flex; }
/* Every pill reads in uppercase, as across the v2 report */
html[data-ui="v2"] :is(.v2-chip, .dx-mini, .rv-btn, .ap-tag, .dx-chip-t, .v2-rv-none, .dx-absent, .dx-stdpill, .dx-docpill .cc-para) {
  font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: 11.5px; }
/* Colour below the charts: limitation and document cards take their tone */
html[data-ui="v2"] .dx-lcard[class*="v2-t-"], html[data-ui="v2"] .dx-upcard[class*="v2-t-"] { border-color: color-mix(in oklch, var(--hc) 24%, var(--line));
  background: radial-gradient(130% 120% at 100% 0%, color-mix(in oklch, var(--hc) 12%, transparent), transparent 60%), var(--v2-surface); }
/* The same rails on other pages: the note keeps its tint, the group its tone, no rail */
html[data-ui="v2"] .oos-explainer { border-left: 1px solid var(--line); border-radius: var(--r); }
html[data-ui="v2"] .dc-group-head { border-left: 0; }
html[data-ui="v2"] .di-resolved { border-left-width: 1px; }
/* The visible filter bar every DHF tab shares */
html[data-ui="v2"] .dx-vfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--v2-surface); }
html[data-ui="v2"] .dx-fsel select, html[data-ui="v2"] .dx-fsel input { min-width: 0; width: 200px; }
html[data-ui="v2"] .dx-qsel input { width: 240px; }
html[data-ui="v2"] .dx-vfilters .dx-fcount { margin-left: auto; }
html[data-ui="v2"] .dx-prow .v2-std b { color: var(--ink); font-family: var(--ff-mono); }
html[data-ui="v2"] .dx-prow .v2-chips .dx-sev { height: 26px; }
html[data-ui="v2"] .dx-fcard-h .a-review-badge { height: 22px; display: inline-flex; align-items: center; padding: 0 8px; font-size: 10.5px; text-transform: uppercase; }
@media (max-width: 900px) { html[data-ui="v2"] .dx-fsel select, html[data-ui="v2"] .dx-fsel input, html[data-ui="v2"] .dx-qsel input { width: 100%; } html[data-ui="v2"] .dx-fsel { flex: 1 1 100%; } }
/* VERA's written summary: a highlighted list above the key points */
html[data-ui="v2"] .dx-written { margin: 14px 22px 4px; padding: 14px 16px 12px; border-radius: 14px; border: 1px solid color-mix(in oklch, var(--hc) 26%, var(--line));
  background: radial-gradient(130% 120% at 100% 0%, color-mix(in oklch, var(--hc) 12%, transparent), transparent 62%), var(--v2-surface); }
html[data-ui="v2"] .dx-written-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
html[data-ui="v2"] .dx-written-h .v2-hico { width: 28px; height: 28px; }
html[data-ui="v2"] .dx-written-h b { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 12px; font-weight: 650; color: var(--ink); }
html[data-ui="v2"] .dx-written-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
html[data-ui="v2"] .dx-written-l li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
html[data-ui="v2"] .dx-written-l li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--hc); }
html[data-ui="v2"] .dx-written-l b { color: var(--ink); font-weight: 600; }
html[data-ui="v2"] .dx-written-l :is(.dx-sev, .dr-verdict) { height: 22px; padding: 0 8px; font-size: 11px; vertical-align: 1px; display: inline-flex; align-items: center; }
/* The executive summary, second on the overview and full width */
html[data-ui="v2"] .dx-sumwide { margin-top: 16px; }
html[data-ui="v2"] .dx-sumgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; padding: 14px 22px 20px; }
html[data-ui="v2"] .dx-sumgrid .dx-written { margin: 0; }
html[data-ui="v2"] .dx-sumgrid .dx-keypts { padding: 6px 0 0; }
@media (max-width: 1100px) { html[data-ui="v2"] .dx-sumgrid { grid-template-columns: minmax(0, 1fr); } }
/* Score and highest-risk findings stacked on the left; the bucket list takes
   their height on the right and scrolls inside it */
html[data-ui="v2"] .dx-risk .dx-fcards-1 { padding: 14px 22px 22px; gap: 10px; }
html[data-ui="v2"] .dx-gcov { margin-top: 14px; justify-content: center; }
html[data-ui="v2"] .dx-stats2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-ui="v2"] .dx-btot b { font-size: 22px; }
/* The view toggle sits in the tab bar, before Export */
html[data-ui="v2"] .dx-rvstrip { margin-left: auto; display: inline-flex; align-items: center; align-self: center; }
html[data-ui="v2"] .dx-rvstrip .rv-toggle { margin: 0; height: 40px; align-items: center; }
html[data-ui="v2"] .dx-fbar { align-items: center; }
html[data-ui="v2"] .dx-fbar .dx-rvstrip + .fx-menu { margin-left: 0; }
/* QMS: the toggle sits right, compact, never in a full-width box (as on DHF). */
html[data-ui="v2"] .rv-strip { justify-content: flex-end; padding: 0; border: 0; background: none; }
html[data-ui="v2"] .arb-right .dx-rvstrip { margin-left: 0; margin-right: 4px; }
/* Critical leads the overview's severity row */
html[data-ui="v2"] .dx-sevstats { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
html[data-ui="v2"] .dx-sevstats .dx-stat[data-sev="Critical"] .v2-stat-num { font-size: 58px; }
@media (max-width: 1100px) { html[data-ui="v2"] .dx-ov .dx-sevstats { grid-template-columns: minmax(0, 1fr); } }
html[data-ui="v2"] .dx-rv-lab { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 650; color: var(--muted); }
html[data-ui="v2"] .dx-idhl { font-family: var(--ff-mono); font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--v2-sunk); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; }
html[data-ui="v2"] .v2-fold-s .dx-cnt { margin-left: auto; }
html[data-ui="v2"] .dx-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
html[data-ui="v2"] .dx-dimlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
html[data-ui="v2"] .dx-dimlist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--v2-sunk); font-size: 14px; color: var(--ink); }
html[data-ui="v2"] .dx-fcards-1 { grid-template-columns: minmax(0, 1fr) !important; padding: 0; }
html[data-ui="v2"] .dx-cl { margin: 0 0 10px; } html[data-ui="v2"] .dx-cl summary b { color: var(--ink); }
html[data-ui="v2"] .dx-cltbl { padding: 0 14px 14px; max-height: 420px; overflow: auto; scrollbar-width: thin; }
html[data-ui="v2"] .dx-cltbl .dx-tbl th { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
html[data-ui="v2"] .dx-sd { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 7px; vertical-align: 1px; }

/* ---------- Readable body text (2026-10-26) ----------
   Reading text across the QMS and DHF reports a point and a half larger,
   with a little more leading and room between points. Labels, pills, IDs and
   numbers keep their sizes. */
html[data-ui="v2"] :is(.v2-pts li, .v2-lead, .v2-steps li, .v2-obl li, .v2-why, .v2-v, .v2-empty, .v2-q blockquote) { font-size: 16px; line-height: 1.65; }
html[data-ui="v2"] .v2-pts { gap: 12px; } html[data-ui="v2"] .v2-steps { gap: 12px; }
html[data-ui="v2"] :is(.dx-keypts li, .dx-written-l li) { font-size: 16px; line-height: 1.65; }
html[data-ui="v2"] .dx-written-l { gap: 10px; }
html[data-ui="v2"] :is(.v2-stat-of, .dx-lcard-p, .dx-fcard-t, .dx-dimlist li, .dx-bksev li, .dx-bkart, .dx-tclean, .dx-bclean) { font-size: 15px; line-height: 1.6; }
html[data-ui="v2"] :is(.v2-meta, .v2-q-h, .v2-bn small, .dx-brow .v2-bn small, .dx-note, .dx-tnote, .dx-lcard-a, .dx-rart, .dx-bscore, .dx-rv-hint, .v2-legend) { font-size: 14px; }
html[data-ui="v2"] .v2-std:not(.dx-stdpill) { font-size: 13.5px; }
html[data-ui="v2"] .v2-ttl b { font-size: 16.5px; }
html[data-ui="v2"] :is(.dx-upcard b, .dx-lcard-h b) { font-size: 15.5px; }
html[data-ui="v2"] :is(.ap-rationale, .ap-appr-note, .ap-sign span) { font-size: 15px; line-height: 1.6; }

/* Entrance: the bento cards rise in once when a tab opens (not on a filter
   change). Cards only, never rows or lists; off for reduced motion. */
/* DHF cards rise in as they scroll into view on arriving at a tab: v2.js
   reveal GROUPS (.st-wait / .st-in), same motion as the QMS pages. */
html[data-ui="v2"] :is(.v2-stat, .v2-card, .v2-fold, .dx-vfilters).st-in { animation-name: v2-rise-card; animation-duration: 560ms; }

/* Traceability: the trace chain as a timeline */
html[data-ui="v2"] .dx-tlcard { margin-top: 18px; }
html[data-ui="v2"] .dx-tl-wrap { overflow-x: auto; padding: 18px 22px 6px; }
html[data-ui="v2"] .dx-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(120px, 1fr)); min-width: 840px; }
html[data-ui="v2"] .dx-tl-n { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 6px; --tc: var(--c-unverif); }
html[data-ui="v2"] .dx-tl-n.s-gap { --tc: var(--v2-crit); } html[data-ui="v2"] .dx-tl-n.s-ok { --tc: var(--c-compliant); }
html[data-ui="v2"] .dx-tl-n::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 2px; background: var(--line-strong); z-index: 0; }
html[data-ui="v2"] .dx-tl-n:first-child::before { display: none; }
html[data-ui="v2"] .dx-tl-dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-mono); font-size: 13.5px; font-weight: 600;
  color: var(--ink); background: color-mix(in oklch, var(--tc) 18%, var(--v2-surface)); border: 2px solid var(--tc); box-shadow: 0 0 0 5px var(--v2-surface); }
html[data-ui="v2"] .dx-tl-n.s-gap .dx-tl-dot { background: var(--tc); color: var(--v2-crit-ink); }
html[data-ui="v2"] .dx-tl-n b { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 650; color: var(--ink); margin-top: 4px; }
html[data-ui="v2"] .dx-tl-n small { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
html[data-ui="v2"] .dx-tl-n.s-gap small { color: var(--ink-2); font-weight: 500; }
html[data-ui="v2"] .dx-tl-key { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 10px 22px 18px; font-size: 13.5px; color: var(--muted); }
html[data-ui="v2"] .dx-tl-key span { display: inline-flex; align-items: center; gap: 7px; }
html[data-ui="v2"] .dx-tl-key i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--tc); background: color-mix(in oklch, var(--tc) 18%, transparent); }
html[data-ui="v2"] .dx-tl-key .s-gap { --tc: var(--v2-crit); } html[data-ui="v2"] .dx-tl-key .s-ok { --tc: var(--c-compliant); } html[data-ui="v2"] .dx-tl-key .s-na { --tc: var(--c-unverif); }

/* Long lists scroll inside their tile instead of stretching it: document
   pills, and every list in an opened finding (found, missing, fix, clauses) */
/* Where a list still scrolls in its tile (outside an opened finding, which
   lays every list out in full), the wheel passes on to the page at its ends. */
html[data-ui="v2"] .dx-scroll { max-height: min(560px, 70vh); overflow-y: auto; padding-right: 6px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
html[data-ui="v2"] .dx-docscroll { max-height: 236px; overflow-y: auto; padding-right: 6px; align-content: flex-start;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

/* Severity charts: each bar (and its bucket code) is a button to exactly those findings */
html[data-ui="v2"] .dx-barbtn { appearance: none; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; border-radius: var(--r-sm); min-width: 0; }
html[data-ui="v2"] .v2-bars > .dx-barbtn { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 4px; height: 68px; justify-content: stretch; align-items: end; }
html[data-ui="v2"] .v2-bars > .dx-barbtn > i { display: block; height: calc(var(--h, .05) * 48px) !important; }
html[data-ui="v2"] .v2-bars > .dx-barbtn > em { line-height: 1.2; font-style: normal; font-family: var(--ff-mono); font-size: 12px; color: var(--ink-2); text-align: center; }
html[data-ui="v2"] .dx-barlbl { font-family: var(--ff-mono); font-size: 11.5px; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ui="v2"] .dx-barbtn:disabled { cursor: default; }
@media (hover: hover) { html[data-ui="v2"] .dx-barbtn:not(:disabled):hover > i { filter: brightness(1.15); } html[data-ui="v2"] .dx-barbtn:not(:disabled):hover > em, html[data-ui="v2"] .dx-barlbl:not(:disabled):hover { color: var(--ink); } }
html[data-ui="v2"] .dx-barbtn:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }

/* Remediation and Register: filters fold behind Advanced filters */
html[data-ui="v2"] .dx-foldbar { align-items: center; }
html[data-ui="v2"] .dx-advbtn { display: inline-flex; align-items: center; gap: 8px; }
html[data-ui="v2"] .dx-advbtn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 200ms var(--v2-ease); }
html[data-ui="v2"] .dx-advbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
html[data-ui="v2"] .dx-advbtn .fx-badge { position: static; margin-left: 2px; }
html[data-ui="v2"] .dx-advrow { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px 16px; padding-top: 12px; border-top: 1px solid var(--line); }
html[data-ui="v2"] .dx-advrow[hidden] { display: none; }

/* ---------- Breathing room in every bento card (2026-10-26) ---------- */
html[data-ui="v2"] .v2-card-h { padding: 24px 28px 0; }
html[data-ui="v2"] .v2-stat { padding: 24px 26px 22px; }
html[data-ui="v2"] :is(.v2-stats, .v2-row2, .v2-row3, .dx-stack) { gap: 20px; }
html[data-ui="v2"] :is(.v2-row2, .v2-row3, .dx-sumwide) { margin-top: 20px; }
html[data-ui="v2"] .v2-gauge { padding: 10px 28px 28px; }
html[data-ui="v2"] .dx-sumgrid { padding: 20px 28px 28px; gap: 24px; }
html[data-ui="v2"] .dx-written { padding: 18px 20px 16px; }
html[data-ui="v2"] .dx-keypts { gap: 18px; }
html[data-ui="v2"] .dx-fcards, html[data-ui="v2"] .dx-risk .dx-fcards-1 { padding: 18px 28px 28px; gap: 12px; }
html[data-ui="v2"] .dx-fcard { padding: 14px 16px; }
html[data-ui="v2"] .dx-bhead { padding: 16px 28px 10px; }
html[data-ui="v2"] .v2-rows, html[data-ui="v2"] .dx-bcard .v2-rows { padding: 8px 16px 14px; }
html[data-ui="v2"] .dx-bclean { padding: 16px 28px 20px; }
html[data-ui="v2"] .v2-tile { padding: 22px 24px; }
html[data-ui="v2"] .v2-detail { gap: 18px; }
html[data-ui="v2"] :is(.v2-fold-h) { padding: 22px 28px; }
html[data-ui="v2"] .dx-fold-in { padding: 6px 28px 26px; }
html[data-ui="v2"] .dx-tl-wrap { padding: 22px 28px 8px; } html[data-ui="v2"] .dx-tl-key { padding: 12px 28px 22px; }
html[data-ui="v2"] .dx-vfilters { padding: 14px 18px; }
html[data-ui="v2"] .dx-regwrap > .dx-fbar:first-child { margin-bottom: 0; } html[data-ui="v2"] .dx-regwrap .dx-vfilters { margin-top: 12px; }
/* Selected text stays readable in both themes (Kieu #111: it was white on white). */
html[data-ui="v2"] ::selection { background-color: oklch(68% .1 245 / .4); color: currentColor; }

/* ---------- Depth: cards are raised (embossed), their rows pressed in ---------- */
html[data-ui="v2"] :is(.bento-card, .v2-card, .v2-fold, .v2-stat, .dec-feed) { box-shadow: var(--v2-raise); background-image: var(--v2-sheen); }
html[data-ui="v2"] :is(.bento-card, .v2-card, .v2-fold, .dec-feed) { transition: box-shadow 420ms var(--v2-ease), transform 460ms var(--v2-ease), border-color 320ms var(--v2-ease); }
html[data-ui="v2"] :is(.bento-card, .v2-card, .dec-feed):hover { transform: translateY(-3px); }
html[data-ui="v2"] :is(.dec-feed-row, .ef-ri, .cjr-tile) { transition: box-shadow 320ms var(--v2-ease), border-color 260ms var(--v2-ease), transform 320ms var(--v2-ease); }
html[data-ui="v2"] :is(.bento-card, .v2-card, .dec-feed):hover { box-shadow: var(--v2-raise-hi); }
html[data-ui="v2"] .v2-ov.in .v2-stat:hover { box-shadow: var(--v2-raise-hi); }
html[data-ui="v2"] :is(.dec-feed-row, .ef-ri, .cjr-tile, .dec-feed-empty-ic) { box-shadow: var(--v2-press); }
html[data-ui="v2"] :is(.dec-feed-row, .ef-ri, .cjr-tile):hover { box-shadow: var(--v2-press), 0 0 0 1px var(--line-strong); }

/* ---------- Depth, interactive: tilt toward the cursor, a light that follows it ---------- */
@property --v2-spot { syntax: '<number>'; inherits: false; initial-value: 0; }
html[data-ui="v2"] :is(.bento-card, .v2-card, .v2-stat, .dec-feed) {
  --v2-lift: 0px;
  /* The hover light takes the card's own tint, never white. */
  --v2-glow: oklch(70% .05 228);
  background-image: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklch, var(--v2-glow) calc(var(--v2-spot) * 16%), transparent), transparent 62%), var(--v2-sheen);
  transition: box-shadow 420ms var(--v2-ease), transform 520ms var(--v2-ease), border-color 320ms var(--v2-ease), --v2-spot 420ms var(--v2-ease);
}
html[data-ui="v2"]:not([data-theme="dark"]) :is(.bento-card, .v2-card, .v2-stat, .dec-feed) {
  background-image: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklch, var(--v2-glow) calc(var(--v2-spot) * 14%), transparent), transparent 62%), var(--v2-sheen);
}
html[data-ui="v2"] .bento-card { --v2-glow: var(--bc); }
html[data-ui="v2"] .v2-stat { --v2-glow: var(--c); }
/* Hover in the card's colour: tinted border, a coloured bloom beneath, the title brightens. */
html[data-ui="v2"] :is(.bento-card, .v2-card, .v2-stat, .dec-feed).v2-lit {
  box-shadow: var(--v2-puff), var(--v2-raise-hi), 0 26px 60px -26px color-mix(in oklch, var(--v2-glow) 60%, transparent) !important;
}
html[data-ui="v2"] :is(.bento-card, .v2-card, .dec-feed) :is(.bento-h > span:not(.bh-icon), .v2-card-h h3) { transition: color 320ms var(--v2-ease); }
html[data-ui="v2"] :is(.bento-card, .v2-card, .dec-feed).v2-lit :is(.bento-h > span:not(.bh-icon):first-of-type, .v2-card-h h3) { color: color-mix(in oklch, var(--v2-glow) 75%, var(--ink)); }
html[data-ui="v2"][data-theme="dark"] :is(.bento-card, .v2-card, .v2-stat, .dec-feed).v2-lit {
  box-shadow: var(--v2-puff), var(--v2-raise-hi), 0 26px 60px -26px color-mix(in oklch, var(--v2-glow) 45%, transparent) !important;
}
html[data-ui="v2"] .v2-stat.v2-lit .v2-stat-lab { color: color-mix(in oklch, var(--v2-glow) 70%, var(--ink)); }
/* The transform exists only while lit, so an idle card is never a containing
   block for fixed-position tooltips inside it. */
html[data-ui="v2"] :is(.bento-card, .v2-card, .v2-stat, .dec-feed).v2-lit { --v2-spot: 1; --v2-lift: -3px; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--v2-lift)); transition: box-shadow 420ms var(--v2-ease), transform 140ms linear, border-color 320ms var(--v2-ease), --v2-spot 420ms var(--v2-ease); }
html[data-ui="v2"] .v2-ov.in .v2-stat.v2-lit { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--v2-lift)); }
/* Tactile rows: rise toward flush on hover, press deeper on click. */
html[data-ui="v2"] :is(.dec-feed-row, .ef-ri, .cjr-tile):hover { transform: translateY(-1px); box-shadow: inset 0 1px 2px oklch(0% 0 0 / .25), 0 6px 14px -8px oklch(0% 0 0 / .5), 0 0 0 1px var(--line-strong); }
html[data-ui="v2"] :is(.dec-feed-row, .ef-ri, .cjr-tile):active { transform: translateY(1px); box-shadow: var(--v2-press), inset 0 3px 10px oklch(0% 0 0 / .35); transition-duration: 90ms; }
html[data-ui="v2"]:not([data-theme="dark"]) :is(.dec-feed-row, .ef-ri, .cjr-tile):hover { box-shadow: inset 0 1px 1px oklch(35% .03 60 / .06), 0 8px 16px -10px oklch(35% .03 60 / .3), 0 0 0 1px var(--line-strong); }
/* Embossed details: pill buttons get a bevel, headline numbers a letterpress shadow. */
html[data-ui="v2"] :is(.arb-btn, .bh-btn) { box-shadow: inset 0 1px 0 oklch(100% 0 0 / .08), inset 0 -1px 0 oklch(0% 0 0 / .3), 0 1px 2px oklch(0% 0 0 / .35), 0 4px 10px -4px oklch(0% 0 0 / .4); transition: box-shadow 260ms var(--v2-ease), transform 260ms var(--v2-ease), border-color 200ms ease, background 200ms ease; }
html[data-ui="v2"] :is(.arb-btn, .bh-btn):hover { transform: translateY(-1px); }
html[data-ui="v2"] :is(.arb-btn, .bh-btn):active { transform: translateY(0); box-shadow: inset 0 2px 5px oklch(0% 0 0 / .4); }
html[data-ui="v2"]:not([data-theme="dark"]) :is(.arb-btn, .bh-btn) { box-shadow: inset 0 1px 0 oklch(100% 0 0), inset 0 -1px 0 oklch(35% .03 60 / .08), 0 1px 2px oklch(35% .03 60 / .1), 0 4px 10px -4px oklch(35% .03 60 / .2); }
html[data-ui="v2"] :is(.v2-stat-num, .v2-g-big) { text-shadow: 0 1px 0 oklch(100% 0 0 / .06), 0 2px 6px oklch(0% 0 0 / .45); }
html[data-ui="v2"]:not([data-theme="dark"]) :is(.v2-stat-num, .v2-g-big) { text-shadow: 0 1px 0 oklch(100% 0 0), 0 2px 5px oklch(35% .03 60 / .14); }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] :is(.bento-card, .v2-card, .v2-stat, .dec-feed) { transform: none !important; } }

/* ---------- Puffy: rounder, cushioned cards and rows ---------- */
html[data-ui="v2"] :is(.bento-card, .v2-card, .v2-fold, .v2-stat, .dec-feed) { border-radius: 24px; box-shadow: var(--v2-puff), var(--v2-raise); }
/* The dashboard's header banner and closing call-to-action share the depth. */
html[data-ui="v2"] :is(.exec-hero, .exec-cta) { border-radius: 24px !important; box-shadow: var(--v2-puff), var(--v2-raise) !important; }
html[data-ui="v2"] :is(.bento-card, .v2-card, .dec-feed):hover, html[data-ui="v2"] .v2-ov.in .v2-stat:hover { box-shadow: var(--v2-puff), var(--v2-raise-hi); }
html[data-ui="v2"] :is(.dec-feed-row, .ef-ri, .cjr-tile) { border-radius: var(--r-lg); }

/* ---------- Fluid: tinted blobs drift behind a hovered card's content ---------- */
html[data-ui="v2"] :is(.v2-card, .dec-feed) { position: relative; overflow: hidden; isolation: isolate; }
html[data-ui="v2"] :is(.bento-card, .v2-card, .v2-stat, .dec-feed)::after {
  content: "" !important; position: absolute !important; inset: -30% !important; z-index: -1 !important; pointer-events: none;
  background:
    radial-gradient(38% 42% at 28% 36%, color-mix(in srgb, var(--v2-glow) 30%, transparent), transparent 70%),
    radial-gradient(34% 40% at 72% 62%, color-mix(in srgb, var(--v2-glow) 22%, transparent), transparent 70%),
    radial-gradient(26% 30% at 52% 82%, color-mix(in srgb, var(--v2-glow) 16%, transparent), transparent 70%) !important;
  filter: blur(12px); opacity: 0 !important; border: 0 !important;
  transition: opacity 600ms var(--v2-ease) !important;
  animation: v2-fluid 11s ease-in-out infinite alternate !important; animation-play-state: paused !important;
}
html[data-ui="v2"] :is(.bento-card, .v2-card, .v2-stat, .dec-feed).v2-lit::after { opacity: .8 !important; animation-play-state: running !important; }
html[data-ui="v2"]:not([data-theme="dark"]) :is(.bento-card, .v2-card, .v2-stat, .dec-feed).v2-lit::after { opacity: .75 !important; }
/* Dark theme: Decision history is a tall card, so a full-strength wash lights the whole list. Keep it dim. */
html[data-ui="v2"][data-theme="dark"] .dec-feed.v2-lit::after { opacity: .35 !important; }
html[data-ui="v2"][data-theme="dark"] .dec-feed.v2-lit { --v2-spot: .35; }
@keyframes v2-fluid {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%  { transform: translate(6%, -4%) rotate(40deg) scale(1.08); }
  66%  { transform: translate(-5%, 5%) rotate(-25deg) scale(.95); }
  100% { transform: translate(3%, 3%) rotate(70deg) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] :is(.bento-card, .v2-card, .v2-stat, .dec-feed)::after { animation: none !important; } }

/* ---------- Audit report: the same raised, puffy cards, cursor light, tilt and drifting blobs ---------- */
html[data-ui="v2"] .page-hero.page-hero { border-radius: 24px; box-shadow: var(--v2-puff), var(--v2-raise) !important; }
html[data-ui="v2"] .auditlist { gap: 12px; }
html[data-ui="v2"] .audit-row.v2-row, html[data-ui="v2"] .audit-row.v2-row.open { border-radius: 20px; box-shadow: var(--v2-puff), var(--v2-raise); position: relative; isolation: isolate; }
html[data-ui="v2"] .audit-row.v2-row:not(.open) { overflow: clip; --v2-glow: var(--sc, oklch(70% .05 228)); --v2-lift: 0px; transition: box-shadow 420ms var(--v2-ease), transform 520ms var(--v2-ease), border-color 320ms var(--v2-ease); }
html[data-ui="v2"] .audit-row.v2-row:not(.open):hover { border-color: var(--line); box-shadow: var(--v2-puff), var(--v2-raise-hi); transform: none; }
html[data-ui="v2"] .audit-row.v2-row.v2-lit:not(.open) {
  transform: translateY(-1px);
  transition: box-shadow 420ms var(--v2-ease), transform 140ms linear, border-color 320ms var(--v2-ease);
  box-shadow: var(--v2-puff), var(--v2-raise-hi), 0 22px 50px -26px color-mix(in oklch, var(--v2-glow) 45%, transparent);
}
/* Hover is colour only: a cursor light (::before) and a still wash (::after) in
   the row's status colour. Finding rows are for reading, so they don't move. */
html[data-ui="v2"] .audit-row.v2-row:not(.open)::before, html[data-ui="v2"] .audit-row.v2-row:not(.open)::after {
  display: block !important; content: ""; position: absolute; pointer-events: none; z-index: -1; opacity: 0; transition: opacity 600ms var(--v2-ease);
}
html[data-ui="v2"] .audit-row.v2-row:not(.open)::before { inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklch, var(--v2-glow) 14%, transparent), transparent 62%); }
html[data-ui="v2"] .audit-row.v2-row:not(.open)::after {
  inset: -30%; filter: blur(12px);
  background:
    radial-gradient(38% 42% at 28% 36%, color-mix(in srgb, var(--v2-glow) 30%, transparent), transparent 70%),
    radial-gradient(34% 40% at 72% 62%, color-mix(in srgb, var(--v2-glow) 22%, transparent), transparent 70%),
    radial-gradient(26% 30% at 52% 82%, color-mix(in srgb, var(--v2-glow) 16%, transparent), transparent 70%);
}
html[data-ui="v2"] .audit-row.v2-row.v2-lit:not(.open)::before { opacity: 1; }
html[data-ui="v2"] .audit-row.v2-row.v2-lit:not(.open)::after { opacity: .8; }
html[data-ui="v2"]:not([data-theme="dark"]) .audit-row.v2-row.v2-lit:not(.open)::after { opacity: .75; }
html[data-ui="v2"] .audit-row.v2-row.open::before, html[data-ui="v2"] .audit-row.v2-row.open::after { display: none !important; }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] .audit-row.v2-row { transform: none !important; } html[data-ui="v2"] .audit-row.v2-row::after { animation: none !important; } }

/* Searchable picker: styles live in v2/picker.js (shared by every page). */

/* Pickers inside the report's Filters panel take the panel's width. */
html[data-ui="v2"] .fx-field .pk, html[data-ui="v2"] .fx-field .pk-btn { width: 100%; max-width: none; }
html[data-ui="v2"] .arb-right .pk-btn { min-width: 170px; height: 36px; }
html[data-ui="v2"] .sec-head .pk-btn { min-width: 200px; max-width: 320px; }

/* An opened finding's tiles share the puffy card depth. */
html[data-ui="v2"] .v2-detail .v2-tile { border-radius: 20px; box-shadow: var(--v2-puff), var(--v2-raise); }
html[data-ui="v2"] #auditFiltersPop { min-width: 320px; padding: 14px; overflow: visible; }
html[data-ui="v2"] #auditFiltersPop .fx-field { display: grid; gap: 6px; }

/* Record lists (Decision Register cards, QMS Validations run cards) hover in
   colour only, like the finding rows: no drifting wash, no tilt. The motion
   stays on the Dashboard's cards. */
html[data-ui="v2"] :is(.dec-card, .runs-card)::after { animation: none !important; }
html[data-ui="v2"] :is(.dec-card, .runs-card).v2-lit { transform: translateY(-2px) !important; }
/* A card taller than the screen never tilts (Saffiyah F-36, 2026-11-13): leaning
   a 3,000px card by 2 degrees in perspective swung its edges by tens of pixels,
   so the Carried Into Your Next Run list floated and flickered under the pointer.
   The light still follows the pointer; the card stays put. */
html[data-ui="v2"] :is(.learned-card, .v2-tall).v2-lit { transform: none !important; }

/* ---------- Use-case switcher (Kieu rows 1 and 49) ----------
   Closed rail: one chip naming the current use case. Open rail: QMS | DHF. */
html[data-ui="v2"] .sidebar .mod-switch { position: relative; display: flex; gap: 3px; margin: 8px 0 6px; padding: 3px; height: 38px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--v2-sunk); }
html[data-ui="v2"] .sidebar .mod-cur { position: absolute; inset: 3px; display: grid; place-items: center; border-radius: 9px; background: var(--v2-btn); color: var(--v2-btn-ink);
  font-family: var(--ff-display); font-stretch: 112%; font-weight: 700; font-size: 11px; letter-spacing: .08em; transition: opacity 120ms ease-out; }
html[data-ui="v2"] .sidebar .mod-btn { flex: 1; min-width: 0; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; opacity: 0;
  font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 650; transition: opacity 120ms ease-out, background-color 160ms ease, color 160ms ease; }
html[data-ui="v2"] .sidebar.v2-open .mod-cur { opacity: 0; pointer-events: none; }
html[data-ui="v2"] .sidebar.v2-open .mod-btn { opacity: 1; transition: opacity 200ms var(--v2-ease) 260ms, background-color 160ms ease, color 160ms ease; }
html[data-ui="v2"] .sidebar .mod-btn:hover { color: var(--ink); }
html[data-ui="v2"] .sidebar .mod-btn[aria-pressed="true"] { background: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] .sidebar .mod-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; opacity: 1; }
/* Keyboard focus only: a mouse click leaves focus on the button, and hiding the
   chip then left an empty box once the rail closed. */
html[data-ui="v2"] .sidebar .mod-switch:has(.mod-btn:focus-visible) .mod-cur { opacity: 0; }
html[data-ui="v2"] .sidebar .mod-switch:has(.mod-btn:focus-visible) .mod-btn { opacity: 1; }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] .sidebar :is(.mod-cur, .mod-btn) { transition: none; } }
html[data-ui="v2"] .sidebar [data-mod][hidden] { display: none !important; }

/* ---------- Standards & Regulations: cards again (Azhar 2026-11-05 preferred them to the
   Kieu #123 rows); the filter that says it filters the whole page (Kieu #118) stays. ---------- */
html[data-ui="v2"] .reglib-jactive { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; font-size: 13.5px; color: var(--ink-2); }
html[data-ui="v2"] .reglib-jactive b { color: var(--ink); }
html[data-ui="v2"] .reglib-jclear { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 4px 11px; font: 600 11px var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; cursor: pointer; }
html[data-ui="v2"] .reglib-jclear:hover { background: var(--v2-sunk); }
html[data-ui="v2"] #regLibBody .reglib-card-go { display: none; }
}

/* Profile banner: one short caption under the company name, not a paragraph. */
html[data-ui="v2"] [data-view="profile"] #profileHeroSub { margin-top: 2px; max-width: none; font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .09em; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--muted); }

/* ---------- Start-a-validation picker: themed pills and round check marks ---------- */
html[data-ui="v2"] .fru-region { background: var(--v2-surface); color: var(--ink-2); border-color: var(--line-strong); }
html[data-ui="v2"] .fru-region.is-on { background: var(--v2-sunk); color: var(--ink); border-color: var(--ink-2); }
html[data-ui="v2"] .fru-parts-g { background: var(--v2-surface); }
html[data-ui="v2"] .fru-part { color: var(--ink-2); }
html[data-ui="v2"] :is(.fru-region, .fru-part) input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease; }
html[data-ui="v2"] :is(.fru-region, .fru-part) input[type="checkbox"]::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--v2-btn-ink); border-bottom: 2px solid var(--v2-btn-ink); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 140ms ease; }
html[data-ui="v2"] :is(.fru-region, .fru-part) input[type="checkbox"]:checked { background: var(--v2-btn); border-color: var(--v2-btn); }
html[data-ui="v2"] :is(.fru-region, .fru-part) input[type="checkbox"]:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
html[data-ui="v2"] :is(.fru-region, .fru-part) input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html[data-ui="v2"] .fru-region.is-locked input[type="checkbox"] { cursor: default; opacity: .7; }

/* ---------- Rail: only the current page is a solid tile. The use-case switch is
   outlined, and the Regulators chips read in both themes. ---------- */
html[data-ui="v2"] .sidebar .mod-cur { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
html[data-ui="v2"] .sidebar .mod-btn[aria-pressed="true"] { background: var(--v2-surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
html[data-ui="v2"] .sidebar.v2-open .nav-label { color: var(--ink-2); font-size: 11px; }
/* Company tile: outlined like the use-case switch, so only the current page is solid. */
html[data-ui="v2"] .sidebar .brand-tag::before { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Start-a-validation picker type: labels, group titles and pills in the
   dashboard's display style, like the profile's market chips and card titles. */
html[data-ui="v2"] :is(.fru-scope-h, .fru-scope-sep) { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; font-weight: 600; color: var(--muted); }
html[data-ui="v2"] .fru-region { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 12px; font-weight: 600; }
html[data-ui="v2"] .fru-region.is-on { font-weight: 650; }
html[data-ui="v2"] .fru-parts-t { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; font-weight: 650; color: var(--ink); }
html[data-ui="v2"] .fru-parts-n { font-family: var(--ff-mono); }
html[data-ui="v2"] .fru-parts-tools button { font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .08em; font-size: 11.5px; font-weight: 650; color: var(--ink-2); }
html[data-ui="v2"] .fru-parts-tools button:hover { color: var(--ink); }

/* Upload / assessment flow titles in the dashboard's title style (no serif). */
html[data-ui="v2"] :is(.first-run h2, .first-run.has-upload h2) { font-family: var(--ff-display); font-stretch: 118%; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; }
html[data-ui="v2"] :is(.fru-drop-h, .first-run.has-upload .fru-drop-h) { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; font-size: 14.5px; }
html[data-ui="v2"] .first-run .fr-eyebrow { font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .16em; font-weight: 600; color: var(--muted); }
html[data-ui="v2"] :is(.first-run .fr-lead, .first-run.has-upload .fr-lead, .first-run.has-upload .fru-drop-p) { font-family: var(--ff-sans); }
html[data-ui="v2"] .first-run .hl, html[data-ui="v2"] .first-run b.vera { font-family: inherit; font-weight: 600; color: var(--ink); }
html[data-ui="v2"] .fru-std-h { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; font-weight: 650; }

/* Select all / Select none: two small, separate controls. */
html[data-ui="v2"] .fru-parts-tools { gap: 0; padding: 0 12px 8px; align-items: center; }
html[data-ui="v2"] .fru-parts-tools button { font-size: 11px; letter-spacing: .1em; padding: 3px 0; }
html[data-ui="v2"] .fru-parts-tools button + button { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line-strong); }

/* Score-against info icon: a drawn icon, no glyph in a ring. */
html[data-ui="v2"] .fru-scope-h .info-i { width: auto; height: auto; border: 0; font-size: 0; opacity: .7; margin-left: 6px; color: var(--ink-2); vertical-align: -3px; }
html[data-ui="v2"] .fru-scope-h .info-i:hover { opacity: 1; color: var(--ink); }
/* Tooltips: larger, calmer text. */
html[data-ui="v2"] .info-tip-pop { width: 320px; padding: 14px 16px !important; font-family: var(--ff-sans) !important; font-size: 14px !important; line-height: 1.6 !important; letter-spacing: 0 !important; text-transform: none !important; border-radius: 14px !important; }
/* Market and standard pills respond to hover. */
html[data-ui="v2"] .fru-region { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease; }
html[data-ui="v2"] .fru-region:not(.is-locked):hover { background: var(--v2-sunk); border-color: var(--ink-2); color: var(--ink); transform: translateY(-1px); }
html[data-ui="v2"] .fru-region:not(.is-locked):hover input[type="checkbox"]:not(:checked) { border-color: var(--ink-2); }
/* Page footer: room to breathe. */
html[data-ui="v2"] .app-footer, html[data-ui="v2"] body.is-first-run .app-footer { padding: 40px 24px 48px; margin-top: 32px; }

/* Info icons and tooltip chips keep the normal pointer, not the "?" help cursor. */
html[data-ui="v2"] :is(.info-i, [data-tip]) { cursor: default !important; }

/* Start-a-validation: each section is its own raised, puffy card (the dashboard's
   bento treatment); the wrapper itself steps back. */
html[data-ui="v2"] .first-run .fru-card { background: transparent; border: 0; box-shadow: none; padding: 0; display: grid; gap: 14px; }
/* Entrance (Azhar 2026-11-17: the page appeared all at once). The badge pops on its
   own; the heading, the intro and each panel rise after it in turn. Opacity and
   transform only; no panel here sits behind a backdrop blur. */
@keyframes fr-rise { from { opacity: 0; transform: translateY(14px); } }
html[data-ui="v2"] .first-run > :is(.fr-eyebrow, h2, .fr-lead), html[data-ui="v2"] .first-run .fru-card > * { animation: fr-rise 560ms var(--v2-ease) both; }
html[data-ui="v2"] .first-run > .fr-eyebrow { animation-delay: 80ms; }
html[data-ui="v2"] .first-run > h2 { animation-delay: 140ms; }
html[data-ui="v2"] .first-run > .fr-lead { animation-delay: 200ms; }
html[data-ui="v2"] .first-run .fru-card > :nth-child(1) { animation-delay: 280ms; }
html[data-ui="v2"] .first-run .fru-card > :nth-child(2) { animation-delay: 340ms; }
html[data-ui="v2"] .first-run .fru-card > :nth-child(3) { animation-delay: 400ms; }
html[data-ui="v2"] .first-run .fru-card > :nth-child(4) { animation-delay: 460ms; }
html[data-ui="v2"] .first-run .fru-card > :nth-child(5) { animation-delay: 520ms; }
html[data-ui="v2"] .first-run .fru-card > :nth-child(n+6) { animation-delay: 580ms; }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] .first-run > :is(.fr-eyebrow, h2, .fr-lead), html[data-ui="v2"] .first-run .fru-card > * { animation: none; } }
html[data-ui="v2"] .first-run .fru-card > :is(.fru-drop, .fru-summary:not([hidden]), .fru-std, .fru-scope, .fru-again:not([hidden])) {
  margin: 0; background: var(--v2-surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--v2-puff), var(--v2-raise);
  transition: box-shadow 260ms var(--v2-ease), border-color 260ms var(--v2-ease); }
html[data-ui="v2"] .first-run .fru-card > .fru-drop { border-style: dashed; border-color: var(--line-strong); }
html[data-ui="v2"] .first-run .fru-card > :is(.fru-drop, .fru-std, .fru-scope, .fru-again):hover { box-shadow: var(--v2-puff), var(--v2-raise-hi); }
html[data-ui="v2"] .first-run .fru-card > :is(.fru-std, .fru-scope, .fru-again, .fru-summary) { padding: 20px 22px; }
html[data-ui="v2"] .first-run .fru-card > .fru-cta-row { padding: 6px 4px 0; }

/* Bento treatment on the remaining flat panels (Team table, Standards rows). */
html[data-ui="v2"] :is(.team-tablewrap) { border-radius: 24px; box-shadow: var(--v2-puff), var(--v2-raise); background: var(--v2-surface); }

/* Start-a-validation cards: the dashboard's corner wash per card, plus the
   drifting hue and cursor light on hover (v2.js adds .v2-lit). */
html[data-ui="v2"] .first-run .fru-card > :is(.fru-std, .fru-scope, .fru-again, .fru-summary) { position: relative; overflow: hidden; isolation: isolate; }
html[data-ui="v2"] .first-run .fru-card > .fru-std { --bc: oklch(68% .15 30); }
html[data-ui="v2"] .first-run .fru-card > .fru-scope { --bc: oklch(66% .12 255); }
html[data-ui="v2"] .first-run .fru-card > :is(.fru-again, .fru-summary) { --bc: oklch(62% .1 160); }
html[data-ui="v2"] .first-run .fru-card > :is(.fru-std, .fru-scope, .fru-again, .fru-summary)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(80% 90% at 100% 0%, color-mix(in oklch, var(--bc) 14%, transparent), transparent 62%); }
html[data-ui="v2"] .first-run .fru-card > :is(.fru-std, .fru-scope, .fru-again)::after {
  content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 42% at 28% 36%, color-mix(in srgb, var(--bc) 22%, transparent), transparent 70%),
    radial-gradient(34% 40% at 72% 62%, color-mix(in srgb, var(--bc) 16%, transparent), transparent 70%);
  filter: blur(12px); opacity: 0; transition: opacity 600ms var(--v2-ease);
  animation: v2-fluid 11s ease-in-out infinite alternate; animation-play-state: paused; }
html[data-ui="v2"] .first-run .fru-card > :is(.fru-std, .fru-scope, .fru-again).v2-lit::after { opacity: .8; animation-play-state: running; }
html[data-ui="v2"] .first-run .fru-drop { --bc: oklch(76% .13 70); }
html[data-ui="v2"] .first-run .fru-drop::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(70% 90% at 50% 0%, color-mix(in oklch, var(--bc) 14%, transparent), transparent 65%); }
html[data-ui="v2"] .first-run .fru-drop { position: relative; isolation: isolate; }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] .first-run .fru-card > *::after { animation: none; } }

/* Start screen: the drop zone rises in with the rest once the loader clears. */
@keyframes fru-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html[data-ui="v2"]:not(.vl-on) .first-run .fru-card > .fru-drop { animation: fru-rise 560ms var(--v2-ease) both; }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] .first-run .fru-card > .fru-drop { animation: none; } }

/* ---------- Rail: compact and centred top to bottom, sized to its icons, the
   same height open or closed so nothing moves on hover. The regulator filter
   lives in the QMS assessment's Filters menu and the version in the page footer. ---------- */
html[data-ui="v2"] .sidebar, html[data-ui="v2"] body.sb-collapsed .sidebar { top: 50%; height: auto; max-height: calc(100dvh - 24px); transform: translateY(-50%); }
html[data-ui="v2"] .sidebar .sidebar-spacer, html[data-ui="v2"] .sidebar .sb-tail { display: none !important; }

/* ---------- Brand background: the sign-in page's warm and blue washes over a
   faint grid. Full strength behind the start / assessing screens; a quiet
   version behind every dashboard page so cards stay the focus. ---------- */
html[data-ui="v2"] .main { position: relative; isolation: isolate; }
html[data-ui="v2"] .main::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(60% 50% at 18% 6%, oklch(80% .1 62 / .07), transparent 70%),
    radial-gradient(55% 50% at 94% 92%, oklch(70% .08 245 / .07), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  -webkit-mask-image: radial-gradient(100% 60% at 50% 0%, #000 25%, transparent 80%); mask-image: radial-gradient(100% 60% at 50% 0%, #000 25%, transparent 80%); }
html[data-ui="v2"] body.is-first-run .main::before {
  background-image:
    radial-gradient(70% 60% at 12% 8%, oklch(80% .1 62 / .16), transparent 70%),
    radial-gradient(60% 55% at 92% 88%, oklch(70% .08 245 / .14), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 20%, #000 30%, transparent 85%); mask-image: radial-gradient(90% 70% at 50% 20%, #000 30%, transparent 85%); }

/* Top bar: no band over the brand background; it frosts only once the page
   scrolls under it. */
html[data-ui="v2"] .topbar { background: transparent; transition: background-color 200ms ease, box-shadow 200ms ease; }
html[data-ui="v2"] .topbar.v2-scrolled { background: color-mix(in oklch, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
/* Room between the VERA mark and the company tile. */
html[data-ui="v2"] .sidebar .brand { gap: 22px; padding: 8px 0 14px; }
html[data-ui="v2"] .sidebar.v2-open .brand { gap: 22px; padding: 8px 0 14px; }
html[data-ui="v2"] .sidebar .brand-tag { height: 42px; min-height: 0; box-sizing: border-box; }

/* ---------- VERA lockup in the top-left corner of every page; the rail keeps
   only the company tile and the pages. ---------- */
html[data-ui="v2"] .sidebar .brand-logo { display: none; }
html[data-ui="v2"] .sidebar .brand, html[data-ui="v2"] .sidebar.v2-open .brand { gap: 0; padding: 0 0 12px; }
html[data-ui="v2"] .tb-mark { position: fixed; top: 22px; left: 26px; z-index: 45; display: block; width: 112px; height: 22px; }
html[data-ui="v2"] .tb-mark span { display: block; width: 100%; height: 100%; background: var(--ink);
  -webkit-mask: url(./vera-lockup-mask-tm.png) no-repeat left center / contain; mask: url(./vera-lockup-mask-tm.png) no-repeat left center / contain; }
html[data-ui="v2"] .topbar { padding-left: 104px; }
@media (max-width: 900px) { html[data-ui="v2"] .tb-mark { position: static; width: 96px; flex: none; } html[data-ui="v2"] .topbar { padding-left: 16px; } }
/* The company name in the breadcrumb shows in full on wide screens; the search box gives way. */
/* Space gives way in order when the rail opens and pushes the page: the search
   narrows first, then the company name truncates; the right-hand buttons never
   leave the screen. */
html[data-ui="v2"] .topbar { min-width: 0; overflow: hidden; }
html[data-ui="v2"] .topbar > :is(.tour-btn, .notif-bell, .btn, a.btn, #themeBtn, .tb-actions) { flex-shrink: 0; }
/* All companies / Sign out read a size up from the round top-bar controls
   (Azhar 2026-11-08): a step smaller and less tracked, still 32px tall so the
   tap target holds and the centre line matches the icons and search. */
html[data-ui="v2"] #wsAccount .btn { height: 32px; min-height: 32px; padding: 0 11px; gap: 6px; font-size: 11px; letter-spacing: .05em; border-radius: 9px; }
html[data-ui="v2"] #wsAccount .btn svg.bi { width: 13px; height: 13px; }
html[data-ui="v2"] .topbar .crumbs { flex: 0 1 auto; min-width: 120px; }
html[data-ui="v2"] .topbar .crumbs .root { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ui="v2"] .topbar .crumbs .here { flex: none; white-space: nowrap; }
html[data-ui="v2"] .topbar .topbar-search { flex: 1 1000 300px; min-width: 0; max-width: 300px; }
/* With no search box on the page, the crumbs take the slack so the right-hand
   group stays at the right edge instead of drifting in (Azhar 2026-11-05). */
html[data-ui="v2"] .topbar:has(> .topbar-search[hidden]) .crumbs, html[data-ui="v2"] body.is-no-access .topbar .crumbs, html[data-ui="v2"] body.is-first-run .topbar .crumbs { margin-right: auto; }

/* ---------- The rail, inverted: the light palette in dark theme and the dark
   palette in light theme. Everything inside reads the swapped tokens. ---------- */
html[data-ui="v2"][data-theme="dark"] .sidebar { --bg: oklch(96.8% .005 70); --bg-elev: oklch(99.4% .003 70); --ink: oklch(21% .012 260); --ink-2: oklch(42% .014 260); --muted: oklch(51% .012 260); --muted-soft: oklch(65% .01 260); --line: oklch(90.5% .008 70); --line-soft: oklch(93% .006 70); --line-strong: oklch(85% .01 70); --shadow: 0 1px 2px oklch(25% .02 60 / .05), 0 4px 14px oklch(25% .02 60 / .05); --v2-surface: oklch(99.4% .003 70); --v2-sunk: oklch(95.4% .006 70); --v2-btn: oklch(21% .012 260); --v2-btn-ink: oklch(98.5% .004 70); --v2-raise: inset 0 1px 0 oklch(100% 0 0), inset 0 -4px 8px oklch(35% .03 60 / .05), 0 1px 1px oklch(35% .03 60 / .06), 0 2px 4px oklch(35% .03 60 / .06), 0 6px 12px oklch(35% .03 60 / .07), 0 14px 28px oklch(35% .03 60 / .08), 0 30px 60px -10px oklch(35% .03 60 / .14); --v2-raise-hi: inset 0 1px 0 oklch(100% 0 0), inset 0 -4px 8px oklch(35% .03 60 / .05), 0 1px 1px oklch(35% .03 60 / .07), 0 3px 6px oklch(35% .03 60 / .07), 0 10px 18px oklch(35% .03 60 / .08), 0 22px 40px oklch(35% .03 60 / .1), 0 44px 80px -12px oklch(35% .03 60 / .18); --v2-puff: inset 0 0 26px oklch(35% .03 60 / .05), inset 0 -10px 20px -10px oklch(35% .03 60 / .06); color: var(--ink); color-scheme: light; }
html[data-ui="v2"]:not([data-theme="dark"]) .sidebar { --bg: oklch(14.5% .006 255); --bg-elev: oklch(19% .008 255); --ink: oklch(95% .005 70); --ink-2: oklch(77% .008 70); --muted: oklch(71% .01 255); --muted-soft: oklch(64% .01 255); --line: oklch(27% .01 255); --line-soft: oklch(24% .009 255); --line-strong: oklch(34% .012 255); --shadow: 0 1px 2px oklch(0% 0 0 / .35); --v2-surface: oklch(19% .008 255); --v2-sunk: oklch(22.5% .009 255); --v2-btn: oklch(94% .006 70); --v2-btn-ink: oklch(17% .008 255); --v2-raise: inset 0 1px 0 oklch(100% 0 0 / .13), inset 0 0 0 1px oklch(100% 0 0 / .02), inset 0 -4px 10px oklch(0% 0 0 / .24), 0 1px 1px oklch(0% 0 0 / .30), 0 2px 4px oklch(0% 0 0 / .24), 0 6px 12px oklch(0% 0 0 / .22), 0 14px 28px oklch(0% 0 0 / .22), 0 32px 64px -10px oklch(0% 0 0 / .34); --v2-raise-hi: inset 0 1px 0 oklch(100% 0 0 / .16), inset 0 0 0 1px oklch(100% 0 0 / .03), inset 0 -4px 10px oklch(0% 0 0 / .24), 0 1px 1px oklch(0% 0 0 / .30), 0 3px 6px oklch(0% 0 0 / .26), 0 10px 18px oklch(0% 0 0 / .24), 0 22px 40px oklch(0% 0 0 / .26), 0 46px 84px -12px oklch(0% 0 0 / .41); --v2-puff: inset 0 0 30px oklch(0% 0 0 / .22), inset 0 -12px 24px -12px oklch(0% 0 0 / .26); color: var(--ink); color-scheme: dark; }
/* Inverted rail in dark theme: a soft grey-white, not paper white. */
html[data-ui="v2"][data-theme="dark"] .sidebar { --v2-surface: oklch(86% .006 70); --bg-elev: oklch(86% .006 70); --bg: oklch(84% .006 70); --v2-sunk: oklch(81.5% .007 70);
  --line: oklch(77% .008 70); --line-soft: oklch(80% .007 70); --line-strong: oklch(71% .01 70);
  --ink-2: oklch(36% .014 260); --muted: oklch(45% .012 260);
  --v2-raise: inset 0 1px 0 oklch(100% 0 0 / .35), inset 0 -4px 8px oklch(30% .03 60 / .08);
  --v2-puff: inset 0 0 26px oklch(30% .03 60 / .08), inset 0 -10px 20px -10px oklch(30% .03 60 / .09); }
/* The scrolled top bar's band reaches the left edge, behind the corner logo. */
/* The band continues left of the bar (behind the corner logo) as a shadow copy. */
html[data-ui="v2"] .topbar.v2-scrolled, html[data-ui="v2"]:not([data-theme="dark"]) .topbar.v2-scrolled {
  box-shadow: 0 1px 0 var(--line), -88px 1px 0 var(--line), -88px 0 0 0 color-mix(in oklch, var(--bg) 92%, transparent) !important; }
html[data-ui="v2"] .topbar { position: sticky; }
/* A rail section whose pages are all hidden (by role or use case) hides its heading too. */
html[data-ui="v2"] .sidebar .nav-sec:not(:has(.nav-item:not([hidden]))) { display: none; }
/* Section headings take the same height open or closed, so the centred rail never resizes on hover. */
html[data-ui="v2"] .sidebar .nav-sec-h, html[data-ui="v2"] .sidebar.v2-open .nav-sec-h { height: 28px; padding: 12px 8px 0; box-sizing: border-box; }
html[data-ui="v2"] .sidebar .nav-sec-h::after { top: 17px; }

/* ---------- Hover: top-bar icon buttons (theme, help, feedback, notifications)
   lift and brighten, and their icon responds; the bell swings. ---------- */
html[data-ui="v2"] :is(.topbar .tour-btn, .topbar .notif-bell) { transition: transform 200ms var(--v2-ease), background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 200ms ease; }
html[data-ui="v2"] :is(.topbar .tour-btn, .topbar .notif-bell) svg { transition: transform 260ms var(--v2-ease); transform-origin: 50% 40%; }
@media (hover: hover) {
  html[data-ui="v2"] :is(.topbar .tour-btn, .topbar .notif-bell):hover { transform: translateY(-2px); background: var(--v2-sunk); border-color: var(--ink-2); color: var(--ink); box-shadow: 0 8px 18px -10px oklch(0% 0 0 / .45); }
  html[data-ui="v2"] .topbar .tour-btn:hover svg { transform: scale(1.12) rotate(-8deg); }
  html[data-ui="v2"] .topbar .notif-bell:hover svg { animation: v2-bell 700ms var(--v2-ease); }
}
@keyframes v2-bell { 0% { transform: rotate(0); } 25% { transform: rotate(14deg); } 50% { transform: rotate(-10deg); } 75% { transform: rotate(5deg); } 100% { transform: rotate(0); } }

/* Scored by VERA / After human review: the unselected side responds to hover. */
html[data-ui="v2"] .rv-btn { transition: background-color 180ms ease, color 180ms ease, transform 180ms var(--v2-ease), box-shadow 180ms ease; }
@media (hover: hover) {
  html[data-ui="v2"] .rv-btn[aria-pressed="false"]:hover { background: var(--v2-sunk); color: var(--ink); transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-strong); }
  html[data-ui="v2"] .rv-btn[aria-pressed="true"]:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] :is(.topbar .tour-btn, .topbar .notif-bell, .rv-btn), html[data-ui="v2"] :is(.topbar .tour-btn, .topbar .notif-bell) svg { transition: none; animation: none !important; transform: none !important; } }
html[data-ui="v2"] .topbar { transition: padding-left 240ms var(--ease-io), background-color 200ms ease, box-shadow 200ms ease; }

/* Breadcrumb sits below the corner logo in the hierarchy: smaller than the lockup. */
html[data-ui="v2"] .topbar .crumbs { gap: 10px; align-items: baseline; }
html[data-ui="v2"] .topbar .crumbs .root { font-size: 11.5px; letter-spacing: .12em; }
html[data-ui="v2"] .topbar .crumbs .here { font-size: 12.5px; letter-spacing: .1em; font-weight: 650; }
html[data-ui="v2"] .topbar .crumbs .sep { font-size: 12px; }

/* One icon per button: when a button carries its own v2 icon (e.g. the signature
   on Sign decision), the generic label-matched icon steps aside. */
html[data-ui="v2"] :is(button, a) .v2-bico ~ svg.bi, html[data-ui="v2"] :is(button, a) svg.bi ~ .v2-bico ~ svg.bi { display: none; }
html[data-ui="v2"] :is(button, a):has(.v2-bico) > svg.bi { display: none; }

/* Assessment cards: the thin proportion bar read as a stray divider (its colours
   did not carry in v2, only the separators did); the coloured figures say it. */
html[data-ui="v2"] .runs-card .rc-bar { display: none; }

/* Open rail: each section heading runs into a thin stroke to the edge ("COMPANY ———"). */
html[data-ui="v2"] .sidebar.v2-open .nav-sec-h { display: flex; align-items: center; gap: 10px; }
html[data-ui="v2"] .sidebar.v2-open .nav-sec-h::after { position: static; flex: 1; width: auto; height: 1px; opacity: 1; background: var(--line-strong); margin-top: 1px; }
html[data-ui="v2"] .sidebar .nav-sec-h > span { flex: none; }

/* Signed-off decision panel: read-only, with an explicit Reopen. */
html[data-ui="v2"] .ap-locked .ap-lock-tag { margin-left: 8px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 7px; }
html[data-ui="v2"] .ap-locked-dec { font-weight: 600; color: var(--ink); margin: 2px 0 10px; }
html[data-ui="v2"] .ap-sigs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
html[data-ui="v2"] .ap-sigs li { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: var(--v2-sunk); }
html[data-ui="v2"] .ap-sig-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
html[data-ui="v2"] .ap-sig-h span { font-family: var(--ff-mono); font-size: 12px; color: var(--muted); }
html[data-ui="v2"] .ap-sig-r { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
html[data-ui="v2"] .ap-reopen-btn { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
html[data-ui="v2"] .ap-reopen-btn:hover { background: var(--v2-sunk); }
html[data-ui="v2"] .ap-reopened-note { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 10px 12px; }

/* ---------- Regulatory deadlines (Kieu #83): calendar pages ---------- */
html[data-ui="v2"] .rd-band[hidden] { display: none !important; }
html[data-ui="v2"] .rd-band { display: grid; gap: 16px; margin: 0 0 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 24px;
  background: var(--v2-surface); box-shadow: var(--v2-puff), var(--v2-raise); position: relative; overflow: hidden; isolation: isolate; }
html[data-ui="v2"] .rd-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 120% at 100% 0%, color-mix(in oklch, oklch(76% .13 70) 12%, transparent), transparent 60%); }
html[data-ui="v2"] .rd-h { display: flex; align-items: center; gap: 12px; }
html[data-ui="v2"] .rd-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: color-mix(in oklch, oklch(76% .13 70) 16%, transparent); color: color-mix(in oklch, oklch(76% .13 70) 80%, var(--ink)); }
html[data-ui="v2"] .rd-ic svg { width: 17px; height: 17px; }
html[data-ui="v2"] .rd-h-t { display: grid; gap: 2px; }
html[data-ui="v2"] .rd-h-t > span:first-child { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; font-size: 13.5px; font-weight: 700; color: var(--ink); }
html[data-ui="v2"] .rd-h-s { font-size: 13px; color: var(--muted); }
html[data-ui="v2"] .rd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
html[data-ui="v2"] .rd-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--v2-sunk);
  text-decoration: none; color: inherit; min-width: 0; transition: border-color 180ms ease, transform 220ms var(--v2-ease), box-shadow 220ms ease, background-color 180ms ease; }
html[data-ui="v2"] .rd-item:hover { border-color: var(--line-strong); transform: translateY(-2px); background: var(--v2-surface); box-shadow: 0 12px 24px -16px oklch(0% 0 0 / .5); }
/* The calendar page. Timeline classes are scoped: .rd-reg is also the
   standards reader's clause row, which these rules used to restyle. */
html[data-ui="v2"] .rd-cal { flex: none; width: 66px; display: grid; justify-items: center; border-radius: var(--r); overflow: hidden; background: var(--v2-surface);
  border: 1px solid var(--line-strong); box-shadow: 0 6px 14px -10px oklch(0% 0 0 / .55), inset 0 -3px 0 color-mix(in oklch, var(--ink) 6%, transparent); }
html[data-ui="v2"] .rd-cal-m { width: 100%; text-align: center; padding: 4px 0 3px; font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .12em; font-size: 11px; font-weight: 700;
  color: #fff; background: var(--rd-c, oklch(62% .16 255)); }
html[data-ui="v2"] .rd-cal-d { font-family: var(--ff-display); font-stretch: 118%; font-weight: 700; font-size: 28px; line-height: 1.05; padding-top: 6px; color: var(--ink); }
html[data-ui="v2"] .rd-cal-y { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); padding: 1px 0 7px; }
html[data-ui="v2"] .rd-item.is-near { --rd-c: oklch(66% .16 50); }
html[data-ui="v2"] .rd-item.is-past { --rd-c: color-mix(in oklch, var(--c-compliant) 80%, black); }
html[data-ui="v2"] .rd-text { display: grid; gap: 3px; min-width: 0; }
html[data-ui="v2"] .rd-text > .rd-reg { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[data-ui="v2"] .rd-t { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
html[data-ui="v2"] .rd-note { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
html[data-ui="v2"] .rd-when { justify-self: start; margin-top: 4px; font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 650;
  padding: 3px 9px; border-radius: 999px; color: color-mix(in oklch, var(--rd-c, oklch(62% .16 255)) 80%, var(--ink)); background: color-mix(in oklch, var(--rd-c, oklch(62% .16 255)) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--rd-c, oklch(62% .16 255)) 35%, transparent); }
html[data-ui="v2"] .rd-more { justify-self: start; border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 6px 12px; cursor: pointer;
  font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 650; }
html[data-ui="v2"] .rd-more:hover { background: var(--v2-sunk); color: var(--ink); }

/* Deadlines at the dashboard's foot: backdrop art per regulator, region flag,
   and a kinetic entrance: each calendar page flips down from its rings, the day
   settles, the countdown chip slides in. */
html[data-ui="v2"] .rd-band { margin: 26px 0 8px; }
html[data-ui="v2"] .rd-item { position: relative; overflow: hidden; isolation: isolate; }
html[data-ui="v2"] .rd-text > .rd-reg { display: inline-flex; align-items: center; gap: 6px; }
html[data-ui="v2"] .rd-text > .rd-reg .rflag-badge, html[data-ui="v2"] .rd-text > .rd-reg img { width: 14px; height: 14px; flex: none; }
html[data-ui="v2"] .rd-cal { perspective: 400px; position: relative; }
html[data-ui="v2"] .rd-cal::before, html[data-ui="v2"] .rd-cal::after { content: ""; position: absolute; top: -3px; width: 6px; height: 8px; border-radius: 3px; background: var(--line-strong); z-index: 2; }
html[data-ui="v2"] .rd-cal::before { left: 16px; } html[data-ui="v2"] .rd-cal::after { right: 16px; }
@keyframes rd-flip { 0% { transform: rotateX(-92deg); opacity: 0; } 60% { transform: rotateX(12deg); opacity: 1; } 100% { transform: rotateX(0); opacity: 1; } }
@keyframes rd-day { 0% { transform: translateY(10px) scale(.8); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes rd-chip { 0% { transform: translateX(-10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
html[data-ui="v2"] .rd-band:not(.rd-in) .rd-cal > span, html[data-ui="v2"] .rd-band:not(.rd-in) .rd-when { opacity: 0; }
html[data-ui="v2"] .rd-band.rd-in .rd-cal { transform-origin: 50% 0; animation: rd-flip 760ms cubic-bezier(.22, 1.2, .36, 1) both; animation-delay: calc(var(--i, 0) * 140ms); }
html[data-ui="v2"] .rd-band.rd-in .rd-cal-d { animation: rd-day 520ms var(--v2-ease) both; animation-delay: calc(var(--i, 0) * 140ms + 380ms); }
html[data-ui="v2"] .rd-band.rd-in .rd-when { animation: rd-chip 480ms var(--v2-ease) both; animation-delay: calc(var(--i, 0) * 140ms + 520ms); }
html[data-ui="v2"] .rd-item:hover .rd-cal { animation: rd-flip 620ms cubic-bezier(.22, 1.2, .36, 1); }
@media (prefers-reduced-motion: reduce) {
  html[data-ui="v2"] .rd-band .rd-cal, html[data-ui="v2"] .rd-band .rd-cal-d, html[data-ui="v2"] .rd-band .rd-when { animation: none !important; opacity: 1 !important; }
  html[data-ui="v2"] .rd-item::before { transition: none; }
}
html[data-ui="v2"] .rd-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Deadline cards in the dashboard's own language: card surface and depth, neutral
   calendar strip (the dashboard's ink button colour), uppercase display titles,
   neutral countdown chip with amber for anything due within a year; equal heights. */
html[data-ui="v2"] .rd-list { align-items: stretch; }
html[data-ui="v2"] .rd-item { height: 100%; box-sizing: border-box; padding: 16px; border-radius: 18px; background: var(--v2-surface); border-color: var(--line);
  box-shadow: var(--v2-puff), var(--v2-raise); --rd-c: var(--v2-btn); }
html[data-ui="v2"] .rd-item:hover { background: var(--v2-surface); box-shadow: var(--v2-puff), var(--v2-raise-hi); }
html[data-ui="v2"] .rd-item.is-near { --rd-c: var(--c-partial); }
html[data-ui="v2"] .rd-item.is-past { --rd-c: var(--c-compliant); }
html[data-ui="v2"] .rd-cal-m { background: var(--rd-c); color: var(--v2-btn-ink); }
html[data-ui="v2"] .rd-item.is-near .rd-cal-m, html[data-ui="v2"] .rd-item.is-past .rd-cal-m { color: #fff; }
html[data-ui="v2"] .rd-cal { background: var(--v2-sunk); }
html[data-ui="v2"] .rd-t { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .05em; font-size: 12.5px; font-weight: 700; line-height: 1.4; }
html[data-ui="v2"] .rd-when { color: var(--ink-2); background: var(--v2-sunk); border-color: var(--line-strong); }
html[data-ui="v2"] .rd-item.is-near .rd-when { color: color-mix(in oklch, var(--c-partial) 80%, var(--ink)); background: color-mix(in oklch, var(--c-partial) 14%, transparent); border-color: color-mix(in oklch, var(--c-partial) 40%, transparent); }
html[data-ui="v2"] .rd-item.is-past .rd-when { color: color-mix(in oklch, var(--c-compliant) 80%, var(--ink)); background: color-mix(in oklch, var(--c-compliant) 12%, transparent); border-color: color-mix(in oklch, var(--c-compliant) 35%, transparent); }
html[data-ui="v2"] .rd-text { align-content: start; height: 100%; }
html[data-ui="v2"] .rd-when { margin-top: auto; }

/* Regulatory timeline: roomier, bigger flags, a slower, larger flip. */
html[data-ui="v2"] .rd-band { gap: 20px; padding: 24px 26px 26px; }
html[data-ui="v2"] .rd-list { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
html[data-ui="v2"] .rd-item { gap: 18px; padding: 20px 20px 18px; }
html[data-ui="v2"] .rd-text { gap: 8px; }
html[data-ui="v2"] .rd-text > .rd-reg { gap: 8px; font-size: 11.5px; }
html[data-ui="v2"] .rd-text > .rd-reg .rflag-badge, html[data-ui="v2"] .rd-text > .rd-reg img { width: 20px; height: 20px; }
html[data-ui="v2"] .rd-cal { width: 72px; }
html[data-ui="v2"] .rd-cal-m { padding: 5px 0 4px; font-size: 11.5px; }
html[data-ui="v2"] .rd-cal-d { font-size: 30px; padding-top: 8px; }
html[data-ui="v2"] .rd-cal-y { padding: 2px 0 9px; }
html[data-ui="v2"] .rd-note { line-height: 1.55; }
html[data-ui="v2"] .rd-when { margin-top: 6px; padding: 4px 10px; }
@keyframes rd-flip2 { 0% { transform: rotateX(-118deg); opacity: 0; } 55% { transform: rotateX(16deg); opacity: 1; } 78% { transform: rotateX(-6deg); } 100% { transform: rotateX(0); opacity: 1; } }
html[data-ui="v2"] .rd-band.rd-in .rd-cal { animation: rd-flip2 1100ms cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i, 0) * 220ms); }
html[data-ui="v2"] .rd-band.rd-in .rd-cal-d { animation-delay: calc(var(--i, 0) * 220ms + 560ms); }
html[data-ui="v2"] .rd-band.rd-in .rd-when { animation-delay: calc(var(--i, 0) * 220ms + 760ms); }
html[data-ui="v2"] .rd-item:hover .rd-cal { animation: rd-flip2 900ms cubic-bezier(.2, .9, .3, 1); }

/* Timeline cards join the dashboard's card family (v2-card): same tilt, cursor
   light, drifting hue and coloured glow; corner wash in the market's colour.
   Calendar centred; text column stretches so pills line up at the foot. */
html[data-ui="v2"] .rd-item.v2-card { border-radius: 18px; }
html[data-ui="v2"] .rd-item[data-mkt="eu"] { --v2-glow: oklch(66% .12 255); }
html[data-ui="v2"] .rd-item[data-mkt="us"] { --v2-glow: oklch(68% .15 30); }
html[data-ui="v2"] .rd-item::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(80% 90% at 100% 0%, color-mix(in oklch, var(--v2-glow) 16%, transparent), transparent 62%); }
html[data-ui="v2"] .rd-item:hover { transform: none; }
html[data-ui="v2"] .rd-item { align-items: stretch; }
html[data-ui="v2"] .rd-cal { align-self: center; }
html[data-ui="v2"] .rd-text { display: flex; flex-direction: column; gap: 8px; height: auto; flex: 1; }
html[data-ui="v2"] .rd-when { margin-top: auto; align-self: flex-start; }
/* Flip-clock ticks: each page change snaps down; the last one lands with a bounce. */
@keyframes rd-tick { from { transform: rotateX(-70deg); } to { transform: rotateX(0); } }
@keyframes rd-land { 0% { transform: rotateX(-30deg) scale(.96); } 60% { transform: rotateX(8deg) scale(1.03); } 100% { transform: none; } }
html[data-ui="v2"] .rd-cal.rd-tick { animation: rd-tick 60ms linear both !important; transform-origin: 50% 0; }
html[data-ui="v2"] .rd-cal.rd-land { animation: rd-land 420ms cubic-bezier(.2, .9, .3, 1) both !important; transform-origin: 50% 0; }
/* No calendar animation (the flip read badly); the band enters like the other cards. */
html[data-ui="v2"] .rd-band .rd-cal, html[data-ui="v2"] .rd-band .rd-cal-d, html[data-ui="v2"] .rd-band .rd-when, html[data-ui="v2"] .rd-item:hover .rd-cal { animation: none !important; }
html[data-ui="v2"] .rd-band:not(.rd-in) .rd-cal > span, html[data-ui="v2"] .rd-band:not(.rd-in) .rd-when { opacity: 1; }

/* Timeline titles: an external-link mark (each card opens the official text). */
html[data-ui="v2"] .rd-ext { width: 12px; height: 12px; margin-left: 6px; vertical-align: -1px; color: var(--muted); transition: color 160ms ease, transform 200ms var(--v2-ease); }
html[data-ui="v2"] .rd-item:hover .rd-ext { color: var(--ink); transform: translate(1px, -1px); }

/* Cross-jurisdiction readiness: a faint grid across the bottom half, fading in from the middle. */
html[data-ui="v2"] #v2ExecSide > .cjr-card #execCrossJur::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; z-index: -1; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%); }
/* Grid only in the bottom-right corner, softened. */
html[data-ui="v2"] #v2ExecSide > .cjr-card #execCrossJur::before { height: 70%; filter: blur(.6px);
  -webkit-mask-image: radial-gradient(75% 85% at 100% 100%, #000 15%, transparent 70%); mask-image: radial-gradient(75% 85% at 100% 100%, #000 15%, transparent 70%); }

/* ---------- Conflicts (Kieu #66): a status of its own ---------- */
html[data-ui="v2"] .v2-stats:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { html[data-ui="v2"] .v2-stats:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-ui="v2"] .sd-conflict { background: var(--c-conflict); }
html[data-ui="v2"] .seg-btn[data-status="conflict"].active { background: var(--c-conflict); border-color: var(--c-conflict); color: #fff; }
html[data-ui="v2"] .cf-band { margin-top: 8px; display: grid; gap: 18px; }
html[data-ui="v2"] .cf-head { display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap; }
html[data-ui="v2"] .cf-tie { flex: 1 1 320px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
html[data-ui="v2"] .cf-head p { margin: 0; font-size: 13.5px; color: var(--muted); }
html[data-ui="v2"] .cf-empty { margin: 0; padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-lg); }
html[data-ui="v2"] .cf-go { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; }
html[data-ui="v2"] .cf-go svg { width: 12px; height: 12px; transform: rotate(-90deg); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html[data-ui="v2"] .cf-grid { display: grid; gap: 22px; }
html[data-ui="v2"] .cf-card { --v2-glow: oklch(70% .05 228); position: relative; display: grid; gap: 20px; padding: 26px 28px 24px; border-radius: 22px; }
html[data-ui="v2"] .cf-card[data-sev="critical"] { --v2-glow: var(--c-conflict); }
html[data-ui="v2"] .cf-card[data-sev="major"] { --v2-glow: var(--c-partial); }
html[data-ui="v2"] .cf-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html[data-ui="v2"] .cf-sev { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in oklch, var(--v2-glow) 45%, var(--line)); background: color-mix(in oklch, var(--v2-glow) 10%, transparent); font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 700; color: color-mix(in oklch, var(--v2-glow) 80%, var(--ink)); }
html[data-ui="v2"] .cf-sev i { width: 7px; height: 7px; border-radius: 50%; background: var(--v2-glow); }
html[data-ui="v2"] .cf-aff-n { font-family: var(--ff-mono); font-size: 12px; color: var(--muted); }
html[data-ui="v2"] .cf-title { margin: 0; font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .04em; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink); text-wrap: balance; }
html[data-ui="v2"] .cf-compare { display: grid; grid-template-columns: var(--cf-cols, minmax(0, 1fr) auto minmax(0, 1fr)); align-items: stretch; gap: 14px; }
html[data-ui="v2"] .cf-side { display: grid; align-content: start; gap: 10px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--v2-sunk); border: 1px solid var(--line); }
html[data-ui="v2"] .cf-side-doc { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
html[data-ui="v2"] .cf-side-doc b { font-family: var(--ff-mono); font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
html[data-ui="v2"] .cf-side-val { font-family: var(--ff-display); font-stretch: 108%; font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--ink); }
html[data-ui="v2"] .cf-side-q { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
html[data-ui="v2"] .cf-side-n { font-family: var(--ff-mono); font-size: 11.5px; color: var(--muted); }
html[data-ui="v2"] .cf-side-docs { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
html[data-ui="v2"] .cf-side-docs li { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
html[data-ui="v2"] .cf-vs { align-self: center; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--v2-surface); font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 700; color: var(--muted); }
html[data-ui="v2"] .cf-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
html[data-ui="v2"] .cf-blk { display: grid; align-content: start; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--v2-sunk); }
html[data-ui="v2"] .cf-blk p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
html[data-ui="v2"] .cf-blk-fix { border: 1px solid color-mix(in oklch, var(--c-compliant) 30%, var(--line)); background: color-mix(in oklch, var(--c-compliant) 7%, transparent); }
html[data-ui="v2"] .cf-lab { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 700; color: var(--muted); }
html[data-ui="v2"] .cf-blk-fix .cf-lab { color: color-mix(in oklch, var(--c-compliant) 75%, var(--ink)); }
html[data-ui="v2"] .cf-reqs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
html[data-ui="v2"] .cf-req { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--ff-mono); font-size: 12px; color: var(--ink-2); background: var(--v2-surface); }
html[data-ui="v2"] button.cf-req { cursor: pointer; transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease; }
html[data-ui="v2"] button.cf-req svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: .7; }
html[data-ui="v2"] button.cf-req:hover { color: var(--ink); border-color: var(--line-strong); background: var(--v2-sunk); }
html[data-ui="v2"] button.cf-req:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 900px) {
  html[data-ui="v2"] .cf-compare { grid-template-columns: minmax(0, 1fr) !important; }
  html[data-ui="v2"] .cf-vs { justify-self: center; }
}
html[data-ui="v2"] .v2-chip.v2-conf { color: var(--v2-conf-ink); border-color: color-mix(in oklch, var(--c-conflict) 40%, transparent); background: var(--v2-conf-soft); }
html[data-ui="v2"] .v2-chip.v2-conf i { background: var(--c-conflict); }
html[data-ui="v2"] button.v2-chip.cf-link { font: inherit; font-size: 13px; line-height: 1; cursor: pointer; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: border-color 160ms ease, background-color 160ms ease; }
html[data-ui="v2"] button.v2-chip.cf-link:hover { border-color: var(--c-conflict); background: color-mix(in oklch, var(--c-conflict) 20%, transparent); }
html[data-ui="v2"] button.v2-chip.cf-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html[data-ui="v2"] .v2-q-rest { display: contents; }
html[data-ui="v2"] .v2-q-rest[hidden] { display: none; }
html[data-ui="v2"] .v2-q-toggle { justify-self: start; align-self: start; margin-top: 2px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--v2-surface); color: var(--ink-2); font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 700; cursor: pointer; transition: border-color 160ms ease, color 160ms ease; }
html[data-ui="v2"] .v2-q-toggle:hover { border-color: var(--line-strong); color: var(--ink); }
html[data-ui="v2"] .v2-q-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html[data-ui="v2"] .a-status[data-s="conflict"] { color: var(--v2-conf-ink); background: var(--v2-conf-soft); border-color: color-mix(in oklch, var(--c-conflict) 45%, transparent); }
html[data-ui="v2"] .cf-go { display: inline-flex; align-items: center; gap: 6px; flex: none; }
html[data-ui="v2"] .cf-go svg { width: 12px; height: 12px; flex: none; transform: rotate(-90deg); }
html[data-ui="v2"] .cf-h { min-height: 0; }
html[data-ui="v2"] .seg-btn .sd.sd-conflict { background: var(--c-conflict); }

/* Regulatory timeline sits in the bento family: same card shell, header and inner-card type as Cross-Jurisdiction. */
html[data-ui="v2"] .rd-band.bento-card { --bc: oklch(74% .12 70); margin: 26px 0 8px; padding: 22px 24px 24px; border-radius: 24px; gap: 18px; }
html[data-ui="v2"] .rd-band.bento-card::before { content: none; }
html[data-ui="v2"] .rd-band .bento-h { margin: 0; }
html[data-ui="v2"] .rd-t { font-family: var(--ff-sans); font-stretch: 100%; text-transform: none; letter-spacing: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ink); }
html[data-ui="v2"] .rd-note { font-size: 13px; color: var(--muted); }

/* Conflict cards start collapsed: severity, sentence-case title and the two values; open for the detail. */
html[data-ui="v2"] .cf-card { display: block; padding: 0; }
html[data-ui="v2"] .cf-sum { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto 18px; align-items: center; gap: 18px; padding: 20px 24px; border-radius: inherit; }
html[data-ui="v2"] .cf-sum::-webkit-details-marker { display: none; }
html[data-ui="v2"] .cf-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
html[data-ui="v2"] .cf-sum-t { display: grid; gap: 4px; min-width: 0; }
html[data-ui="v2"] .cf-title { font-family: var(--ff-sans); font-stretch: 100%; text-transform: none; letter-spacing: 0; font-size: 15.5px; font-weight: 600; line-height: 1.4; text-wrap: pretty; }
html[data-ui="v2"] .cf-short { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
html[data-ui="v2"] .cf-short b { font-weight: 600; color: var(--ink-2); }
html[data-ui="v2"] .cf-vs-s { font-family: var(--ff-mono); font-size: 11.5px; color: var(--muted); }
html[data-ui="v2"] .cf-chev { display: grid; place-items: center; color: var(--muted); transition: transform 220ms var(--v2-ease); }
html[data-ui="v2"] .cf-chev svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[data-ui="v2"] .cf-card[open] .cf-chev { transform: rotate(180deg); }
html[data-ui="v2"] .cf-open { display: grid; gap: 18px; padding: 4px 24px 24px; }
html[data-ui="v2"] .cf-card[open] .cf-short { display: none; }
@media (max-width: 700px) { html[data-ui="v2"] .cf-sum { grid-template-columns: minmax(0, 1fr) 18px; } html[data-ui="v2"] .cf-sev, html[data-ui="v2"] .cf-aff-n { grid-column: 1; } }

/* Finding type + reviewer priority in the decision panel (Kieu #87, #67). Same card language as the decision buttons. */
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-ftypes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 8px; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-ftype { align-content: start; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-ftype { display: grid; gap: 3px; text-align: left; cursor: pointer; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--v2-surface); color: var(--ink); font: inherit; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
/* Labels in capitals, like the decision cards above them (Azhar 2026-11-05). */
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-ftype b { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 12px; font-weight: 700; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-ftype span { font-size: 12.5px; color: var(--muted); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-ftype { transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-ftype:hover { border-color: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-ftype:active { transform: translateY(0); box-shadow: none; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-ftype.on { border-color: var(--ink-2); background: var(--v2-sunk); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ink-2) 12%, transparent); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-prio { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-prio-l { margin-right: 4px; font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 650; color: var(--muted); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-prio-b { --p: var(--muted); display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--v2-surface); color: var(--ink-2); font: 600 12.5px var(--ff-sans); cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-prio-b i { width: 7px; height: 7px; border-radius: 50%; background: var(--p); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-prio-b[data-prio="high"] { --p: var(--c-gap); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-prio-b[data-prio="medium"] { --p: var(--c-partial); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-prio-b[data-prio="low"] { --p: var(--c-compliant); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-prio-b { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11.5px; font-weight: 700; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-prio-b:hover { border-color: var(--p); background: color-mix(in oklch, var(--p) 7%, var(--v2-surface)); transform: translateY(-1px); box-shadow: 0 0 0 3px color-mix(in oklch, var(--p) 12%, transparent); }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-prio-b:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) :is(.ap-ftype, .ap-prio-b) { transition: none; } html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) :is(.ap-ftype, .ap-prio-b):hover { transform: none; } }
html[data-ui="v2"] :is(.audit-panel, .v2-rev-dock) .ap-prio-b.on { border-color: var(--p); color: var(--ink); background: color-mix(in oklch, var(--p) 12%, var(--v2-surface)); }
html[data-ui="v2"] :is(.ap-ftype, .ap-prio-b):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html[data-ui="v2"] .dc-class { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
html[data-ui="v2"] :is(.dc-ftype, .dc-prio) { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--v2-surface); font: 600 11.5px var(--ff-sans); color: var(--ink-2); text-transform: none; letter-spacing: 0; }
html[data-ui="v2"] .dc-prio { --p: var(--muted); }
html[data-ui="v2"] .dc-prio[data-p="high"] { --p: var(--c-gap); } html[data-ui="v2"] .dc-prio[data-p="medium"] { --p: var(--c-partial); } html[data-ui="v2"] .dc-prio[data-p="low"] { --p: var(--c-compliant); }
html[data-ui="v2"] .dc-prio i { width: 7px; height: 7px; border-radius: 50%; background: var(--p); }

/* ---------- review-queue state colours (Decision log) ---------- */
html[data-ui="v2"] { --q-mine: oklch(80% .13 88); --q-none: var(--c-unverif); --q-pending: oklch(64% .11 240); --q-deferred: oklch(66% .08 185); --q-approved: oklch(66% .15 150); }
/* Decision log: the review badge carries the queue state's colour. */
html[data-ui="v2"] .dec-card[data-qs="mine"] { --q-c: var(--q-mine); }
html[data-ui="v2"] .dec-card[data-qs="none"] { --q-c: var(--q-none); }
html[data-ui="v2"] .dec-card[data-qs="pending_second"] { --q-c: var(--q-pending); }
html[data-ui="v2"] .dec-card[data-qs="deferred"] { --q-c: var(--q-deferred); }
html[data-ui="v2"] .dec-card[data-qs="approved"] { --q-c: var(--q-approved); }
/* The state badge takes its state's colour; "Needs your signature" is the gold pill beside it. */
html[data-ui="v2"] .dec-card .dc-head .a-review-badge[data-qb] { --q-c: var(--q-none); color: color-mix(in oklch, var(--q-c) 80%, var(--ink)); border-color: color-mix(in oklch, var(--q-c) 50%, transparent); background: color-mix(in oklch, var(--q-c) 14%, transparent); }
html[data-ui="v2"] .dec-card .dc-head .a-review-badge[data-qb="pending_second"] { --q-c: var(--q-pending); }
html[data-ui="v2"] .dec-card .dc-head .a-review-badge[data-qb="deferred"] { --q-c: var(--q-deferred); }
/* Dark mode (Rica 2026-11-17, Lauren #10): the 80% mix with the dim "none" grey read
   3.5:1 on the card; lean the label to the ink so every queue state clears 4.5:1. */
html[data-ui="v2"][data-theme="dark"] .dec-card .dc-head .a-review-badge[data-qb] { color: color-mix(in oklch, var(--q-c) 45%, var(--ink)); }
html[data-ui="v2"][data-theme="dark"] .info-i { opacity: .7; }
html[data-ui="v2"][data-theme="dark"] .info-i:hover { opacity: 1; }
html[data-ui="v2"][data-theme="dark"] :is(.cjr-sub, .cjr-tag) { color: var(--ink-2); }
html[data-ui="v2"] .dec-card .dc-head .a-review-badge[data-qb="approved"] { --q-c: var(--q-approved); }
html[data-ui="v2"] .dec-card .dc-head .a-review-badge.dc-mine { --q-c: var(--q-mine); color: color-mix(in oklch, var(--q-c) 85%, var(--ink)); border-color: color-mix(in oklch, var(--q-c) 55%, transparent); background: color-mix(in oklch, var(--q-c) 16%, transparent); }

/* Decision log filter bar: review state in view, everything else behind Filters. */
/* A toolbar, not a card: it holds still under the pointer. */
html[data-ui="v2"] .dec-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; margin: 0 0 20px; background: var(--v2-surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--v2-raise); }
html[data-ui="v2"] #decFiltersBadge[hidden] { display: none; }
html[data-ui="v2"] .dec-filters .seg { margin: 0; flex-wrap: wrap; }
html[data-ui="v2"] .dec-filters .fx-menu { margin-left: auto; }
html[data-ui="v2"] #decFiltersPop { width: min(440px, calc(100vw - 32px)); padding: 16px; gap: 14px; overflow: visible; }
html[data-ui="v2"] #decFiltersPop .fx-field { display: grid; gap: 6px; }
html[data-ui="v2"] #decFiltersPop .seg { flex-wrap: wrap; margin: 0; }

/* Changed procedures (Kieu #70): changed since the last assessment = blue;
   a newer revision than the one assessed = gold, it needs checking. */
html[data-ui="v2"] { --chg-new: oklch(70% .1 235); --chg-stale: oklch(80% .13 88); }
html[data-ui="v2"] .v2-chip.v2-chg { --cc: var(--chg-new); color: color-mix(in oklch, var(--cc) 80%, var(--ink)); border-color: color-mix(in oklch, var(--cc) 40%, transparent); background: color-mix(in oklch, var(--cc) 12%, transparent); }
html[data-ui="v2"] .v2-chip.v2-chg[data-chg="stale"] { --cc: var(--chg-stale); }
html[data-ui="v2"] .v2-chip.v2-chg i { background: var(--cc); }
/* Baseline view: each finding against the previous run (New / Still open / Resolved). */
html[data-ui="v2"] .v2-chip.v2-since { --cc: var(--c-partial); color: color-mix(in oklch, var(--cc) 80%, var(--ink)); border-color: color-mix(in oklch, var(--cc) 40%, transparent); background: color-mix(in oklch, var(--cc) 12%, transparent); }
html[data-ui="v2"] .v2-chip.v2-since[data-since="new"] { --cc: var(--c-gap); }
html[data-ui="v2"] .v2-chip.v2-since[data-since="resolved"] { --cc: var(--c-compliant); }
html[data-ui="v2"] .v2-chip.v2-since i { background: var(--cc); }
html[data-ui="v2"] .reglib-tag.reglib-chg { --cc: var(--chg-new); color: color-mix(in oklch, var(--cc) 80%, var(--ink)); border-color: color-mix(in oklch, var(--cc) 40%, transparent); background: color-mix(in oklch, var(--cc) 12%, transparent); }
html[data-ui="v2"] .reglib-tag.reglib-chg:is([data-chg="replaced"], [data-chg="newer"]) { --cc: var(--chg-stale); }

/* Coverage as a plain ratio (Kieu #59): the denominator reads smaller and muted. */
html[data-ui="v2"] .v2-g-of { font-size: .5em; fill: var(--muted); font-weight: 600; }
html[data-ui="v2"] .v2-g-big.v2-g-long { font-size: 34px; }
/* [hidden] must win over the chip and badge display rules (a 0 badge and an
   empty Dismissed chip were showing). */
html[data-ui="v2"] :is(.fx-badge, .seg-btn)[hidden] { display: none !important; }

/* ---------- Side panels: the dashboard's puffy bento (finding detail, review
   and sign, notifications, reader). Sections are raised cards with the sheen
   and inner puff; the reader keeps its clause list as one document. ---------- */
html[data-ui="v2"] :is(.sov, .reader, .notif-drawer) { box-shadow: var(--v2-puff), var(--v2-raise-hi); }
html[data-ui="v2"] :is(.sov-sec, .sov-sec.reg-sec, .sov-sec.impact-section, .sov-sec.actions-sec, .audit-panel .ap-sec, .notif-drawer .nd-item) {
  border: 1px solid var(--line) !important; border-radius: 20px !important;
  background-image: var(--v2-sheen) !important; box-shadow: var(--v2-puff), var(--v2-raise) !important; }
html[data-ui="v2"] .notif-drawer .nd-item { margin: 0 4px 10px; }
html[data-ui="v2"] :is(.audit-panel .ap-sec, .notif-drawer .nd-item) { transition: box-shadow 320ms var(--v2-ease), transform 320ms var(--v2-ease); }
html[data-ui="v2"] .notif-drawer .nd-item:hover { transform: translateY(-2px); box-shadow: var(--v2-puff), var(--v2-raise-hi) !important; }
/* The citation title kept the light ink of the old navy header. */
html[data-ui="v2"] .sov-head .cite, html[data-ui="v2"] .sov-head .cite .rd-open-reg { color: var(--ink) !important; }
/* The actions card is dark in both themes: the light sheen washed out its top. */
html[data-ui="v2"] .sov-sec.v2-act-sec { background-image: none !important; }

/* ---------- open rail: no overlap, no clipped labels, page blurred behind ----------
   The 42px company tile held the name on two lines plus the product label on a
   third, so they overprinted; the longest label ("Standards & Regulations") was
   cut at 248px. One line each, a wider open rail, and the page behind it blurred
   so the open menu reads as the focus (Azhar, 2026-11-05). */
html[data-ui="v2"] { --rail-open: 276px; }
html[data-ui="v2"] .sidebar .brand-tag #brandText { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }
html[data-ui="v2"] .sidebar .nav-item > span:not(.ic):not(.ct) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="v2"] .app::after {
  content: ""; position: fixed; inset: 0; z-index: 39; pointer-events: none; opacity: 0;
  background: oklch(18% .012 260 / .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity 200ms ease;
}
html[data-ui="v2"] .app.v2-rail-open::after { opacity: 1; transition: opacity 280ms ease 100ms; }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] .app::after { transition: none; } }


/* "Your QMS is being assessed" in the dark theme (Azhar 2026-11-05): the accent
   there is near-white and the track was a hard-coded light grey, so the badge,
   its ring, the bar and its fill all read as flat white. Warm amber on a
   tinted, sunk track instead, as on the light theme. */
html[data-ui="v2"][data-theme="dark"] .fr-badge { --fr-amber: oklch(80% .11 72); color: var(--fr-amber);
  background: color-mix(in oklch, var(--fr-amber) 14%, transparent); border-color: color-mix(in oklch, var(--fr-amber) 38%, transparent); }
html[data-ui="v2"][data-theme="dark"] .fr-badge--anim::before { border-color: oklch(80% .11 72); }
html[data-ui="v2"][data-theme="dark"] .vl-track { background: var(--v2-sunk); border-color: var(--line); }
html[data-ui="v2"][data-theme="dark"] .vl-fill { background: linear-gradient(90deg, oklch(66% .12 62), oklch(82% .11 76)); }
html[data-ui="v2"][data-theme="dark"] .vl-fill::after { background: linear-gradient(90deg, transparent, oklch(1 0 0 / .22), transparent); }
html[data-ui="v2"][data-theme="dark"] .vl-step.active { color: oklch(84% .09 76); }
html[data-ui="v2"][data-theme="dark"] .vl-step.active::before { background: oklch(80% .11 72); }

/* Signer and approver names carry their initials avatar (Azhar 2026-11-05). */
html[data-ui="v2"] .who-av { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
html[data-ui="v2"] .who-av .tm-av { width: 20px; height: 20px; font-size: 9px; flex: none; }
html[data-ui="v2"] .who-av b { font-weight: 650; }

/* The top search's results (Azhar 2026-11-08): one panel under the box, the
   use case it searches named at the top, each result with its citation or
   ID, its title and the passage the words were found in, the words marked.
   The mark is neutral ink, not a status colour: colour means severity. */
html[data-ui="v2"] .topbar-search { position: relative; }
html[data-ui="v2"] .topbar-search[hidden] { display: none; }
html[data-ui="v2"] .srch-pop { position: fixed; z-index: 9000; width: min(560px, calc(100vw - 32px));
  max-height: min(70vh, 620px); overflow: auto; overscroll-behavior: contain; padding: 6px;
  background: var(--v2-surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-lg); }
html[data-ui="v2"] .srch-pop[hidden] { display: none; }
html[data-ui="v2"] .srch-h { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px 6px; font-family: var(--ff-mono);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[data-ui="v2"] .srch-it { display: grid; gap: 4px; padding: 9px 10px; border-radius: 10px; cursor: pointer; color: var(--ink); }
html[data-ui="v2"] .srch-it + .srch-it { margin-top: 1px; }
html[data-ui="v2"] .srch-it:hover, html[data-ui="v2"] .srch-it.on { background: var(--bg-rowhover); }
html[data-ui="v2"] .srch-it.on { box-shadow: inset 0 0 0 1px var(--line-strong); }
html[data-ui="v2"] .srch-hd { display: flex; align-items: center; gap: 8px; min-width: 0; }
html[data-ui="v2"] .srch-cite { flex: none; font-family: var(--ff-mono); font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px;
  background: var(--v2-sunk); color: var(--ink-2); white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="v2"] .srch-it.is-exact .srch-cite { background: var(--ink); color: var(--v2-btn-ink); }
html[data-ui="v2"] .srch-tt { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html[data-ui="v2"] .srch-hd .dr-res, html[data-ui="v2"] .srch-hd .v2-chip { flex: none; height: 22px; font-size: 10px; }
html[data-ui="v2"] .srch-n { flex: none; font-family: var(--ff-mono); font-size: 11px; color: var(--muted); }
html[data-ui="v2"] .srch-snip { display: block; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html[data-ui="v2"] .srch-where { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
html[data-ui="v2"] .srch-all { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; border-top: 1px solid var(--line-soft);
  border-radius: 0 0 10px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
html[data-ui="v2"] .srch-key { font-family: var(--ff-mono); font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: var(--v2-sunk); color: var(--muted); }
html[data-ui="v2"] .srch-empty { padding: 14px 12px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
html[data-ui="v2"] .srch-empty b { display: block; color: var(--ink); margin-bottom: 2px; }
html[data-ui="v2"] mark.srch-hl { color: inherit; background: color-mix(in oklch, var(--ink) 15%, transparent); border-radius: 3px; padding: 0 1px;
  box-shadow: inset 0 -1.5px 0 color-mix(in oklch, var(--ink) 55%, transparent); }
html[data-ui="v2"] .dr-res.r-conflict { background: var(--v2-conf-soft); color: var(--v2-conf-ink); }

/* DHF Standards: a decision is a status pill plus a small secondary button,
   on the Upload standard line (Azhar 2026-11-08). */
html[data-ui="v2"] .sa-decided { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
html[data-ui="v2"] .sa-decided .sa-pill { height: 26px; padding: 0 10px; border-radius: 999px; font-size: 10.5px; }
html[data-ui="v2"] .sa-btn.sa-btn--sm { min-width: 0; height: 30px; padding: 0 12px; font-size: 10.5px; border-radius: 999px; }

/* One straight line of status pills down every findings list (Azhar
   2026-11-08): the Conflict pill (QMS report) and the severity or result pill
   (DHF register) sit in a fixed-width column at the row's end, left-aligned
   in it, whatever chips come before. The QMS report keeps the column only
   when the list has a conflict (#auditList.has-stslot, set in JS). */
html[data-ui="v2"] .v2-stslot { flex: none; display: flex; align-items: center; justify-content: flex-start; width: 112px; }
html[data-ui="v2"] #auditList:not(.has-stslot) .v2-stslot { display: none; }
html[data-ui="v2"] .v2-stslot > * { max-width: 100%; }
/* Conflicts page: the severity pill column has one width, so every title
   starts on the same line. */
@media (min-width: 701px) { html[data-ui="v2"] .cf-sum { grid-template-columns: 112px minmax(0, 1fr) auto 18px; } html[data-ui="v2"] .cf-sum .cf-sev { justify-self: start; } }

/* Long quotes in an opened finding: eight lines, then "Show full quote". */
html[data-ui="v2"] .v2-q blockquote.v2-clamp8 { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
html[data-ui="v2"] .v2-qmore { align-self: flex-start; border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink-2);
  font: 600 12.5px var(--ff-sans); text-decoration: underline; text-underline-offset: 3px; }
html[data-ui="v2"] .v2-qmore:hover { color: var(--ink); }
html[data-ui="v2"] .v2-detail .v2-clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
html[data-ui="v2"] .v2-detail li > .v2-qmore { grid-column: 2; justify-self: start; margin-top: 2px; }
html[data-ui="v2"] .v2-detail .dx-clamp-open { cursor: pointer; }
html[data-ui="v2"] .v2-detail .dx-clamp-open.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
html[data-ui="v2"] .v2-detail .dx-clamp-open:hover { color: var(--ink); }

/* Long lists scroll at frame rate (Azhar 2026-11-08): list rows and decision
   cards wear the three-layer row shadow instead of the seven-layer puff +
   raise (two 24-30px inset blurs and five outer layers up to 64px), which
   made every newly visible row an expensive paint. Measured on the DHF
   register: p95 frame 117ms -> 17ms. */
html[data-ui="v2"] .audit-row.v2-row, html[data-ui="v2"] .audit-row.v2-row.open, html[data-ui="v2"] .bento-card.dec-card { box-shadow: var(--v2-row-sh); }
html[data-ui="v2"] .audit-row.v2-row:not(.open):hover, html[data-ui="v2"] .bento-card.dec-card:hover { box-shadow: var(--v2-row-sh-hi); }
html[data-ui="v2"] .audit-row.v2-row.v2-lit:not(.open) { box-shadow: var(--v2-row-sh-hi), 0 14px 30px -18px color-mix(in oklch, var(--v2-glow) 45%, transparent); }

/* No hover lift while the page is scrolling (v2.js sets .v2-scrolling on
   .main for the length of a scroll gesture). */
html[data-ui="v2"] .v2-scrolling :is(.bento-card, .v2-card, .dec-feed, .v2-stat, .dx-fcard, .reglib-card, .dhf-card, .rc-card, .dc-card, .audit-row.v2-row, .persop-card):hover {
  transform: none !important; box-shadow: var(--v2-puff), var(--v2-raise) !important; transition: none !important; }
html[data-ui="v2"] .v2-scrolling :is(.audit-row.v2-row, .bento-card.dec-card):hover { box-shadow: var(--v2-row-sh) !important; }

/* Engine Rationale (Azhar 2026-11-10): one structured section per finding,
   one row per procedure, what is missing highlighted. */
html[data-ui="v2"] .v2-er { display: flex; flex-direction: column; gap: 18px; }
html[data-ui="v2"] .v2-er-req { font-weight: 500; }
html[data-ui="v2"] .v2-er > .v2-lead, html[data-ui="v2"] .v2-er-bottom { max-width: none; }
/* The tile is full width, so the procedures sit side by side as cards (Azhar 2026-11-17: no empty right half). */
/* One procedure per row, full width: side-by-side columns made rows of very different
   heights and narrow, misaligned Does / Missing blocks (Azhar 2026-11-18). */
html[data-ui="v2"] .v2-er-docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; container-type: inline-size; }
html[data-ui="v2"] .v2-er-row { padding: 14px 16px; border: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-radius: 12px;
  background: color-mix(in srgb, currentColor 3%, transparent); min-width: 0; }
html[data-ui="v2"] .v2-er-doc { margin-bottom: 10px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* Does and Missing side by side in a wide row, in the same columns on every row;
   stacked when the card is narrow. */
html[data-ui="v2"] .v2-er-dl { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) 76px minmax(0, 1fr); column-gap: 16px; row-gap: 10px; margin: 0; align-items: start; }
html[data-ui="v2"] .v2-er-row.is-met .v2-er-dl { grid-template-columns: 64px minmax(0, 1fr); }
@container (max-width: 760px) { html[data-ui="v2"] .v2-er-dl { grid-template-columns: 64px minmax(0, 1fr); } }
html[data-ui="v2"] .v2-er-dl dt { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 600; padding-top: .45em; opacity: .55; }
html[data-ui="v2"] .v2-er-dl dt.is-miss { color: var(--v2-gap-ink); opacity: 1; }
html[data-ui="v2"] .v2-er-dl dd { margin: 0; line-height: 1.65; }
html[data-ui="v2"] .v2-er-miss { list-style: none; margin: 0; padding: 0; counter-reset: miss; display: flex; flex-direction: column; gap: 8px; }
html[data-ui="v2"] .v2-er-miss li { counter-increment: miss; display: grid; grid-template-columns: 22px minmax(0, 1fr); }
html[data-ui="v2"] .v2-er-miss li::before { content: counter(miss); font-family: var(--ff-mono, ui-monospace, monospace); font-size: 12px; padding-top: .3em; color: var(--v2-gap-ink); }
html[data-ui="v2"] .v2-er-key { font-weight: 600; color: var(--v2-gap-ink); }
html[data-ui="v2"] .v2-er-dl dt:not(.is-miss) + dd .v2-er-key { color: inherit; }
html[data-ui="v2"] .v2-er-also { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin: 0; opacity: .85; }
/* Evidence fold: one flat entry per procedure, top to bottom: name and paragraphs,
   what it covers, what it is missing (Azhar 2026-11-18: no two columns, no nesting). */
html[data-ui="v2"] .v2-er-grp { display: flex; flex-direction: column; gap: 8px; }
html[data-ui="v2"] .v2-er-grp + .v2-er-grp { margin-top: 18px; }
html[data-ui="v2"] .v2-er .v2-k.is-met { color: var(--v2-cov-ink); }
html[data-ui="v2"] .v2-er-flat { gap: 0; border: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-radius: 12px; overflow: hidden; }
html[data-ui="v2"] .v2-er-flat > .v2-er-row.is-flat { padding: 16px 18px; border: 0; border-radius: 0; background: transparent; }
html[data-ui="v2"] .v2-er-flat > .v2-er-row.is-flat + .v2-er-row.is-flat { border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
html[data-ui="v2"] .v2-er-row.is-flat .v2-er-dl { display: block; }
html[data-ui="v2"] .v2-er-row.is-flat .v2-er-dl dt { padding-top: 0; margin: 0 0 4px; }
html[data-ui="v2"] .v2-er-row.is-flat .v2-er-dl dd + dt { margin-top: 12px; }
/* Quotes under a procedure: the procedure is named on its row, so each quote shows
   only its paragraph pill. */
html[data-ui="v2"] .v2-q-grp .v2-q-h .cite-chip .cc-prefix, html[data-ui="v2"] .v2-q-grp .v2-q-h .cite-chip .cc-id { display: none; }
html[data-ui="v2"] .v2-q-grp .v2-q-h .cite-chip .cc-para { border-left: 0; }
html[data-ui="v2"] .v2-er-chip { font-size: 13px; padding: 2px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
/* The answer leads: the conclusion sits under the requirement (Azhar 2026-11-18). */
html[data-ui="v2"] .v2-er-bottom { margin: 0; padding: 10px 14px; border-left: 3px solid var(--line-strong); border-radius: 6px; background: color-mix(in srgb, currentColor 4%, transparent); font-weight: 500; line-height: 1.6; }
/* Why a finding the writer read as met is not: a later check lowered it (Azhar 2026-11-18). */
html[data-ui="v2"] .v2-er-statwhy { margin: 8px 0 0; padding: 8px 14px; border-left: 3px solid var(--v2-gap-ink); border-radius: 6px;
  background: color-mix(in srgb, var(--v2-gap-ink) 8%, transparent); line-height: 1.55; font-weight: 500; }
/* A crowded Engine Rationale folds: procedures that meet their part past the first
   three, and the also-read list (Azhar 2026-11-17). */
/* A fold is a dropdown bar inside the card: its own rounded row with the label and
   the chevron at the right, so it reads as something to open, not a loose label
   (Azhar 2026-11-18: "don't seem to have a dropdown"). */
html[data-ui="v2"] .v2-er .v2-acc.v2-er-fold, html[data-ui="v2"] .v2-er .v2-acc.v2-er-fold:last-of-type { border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: 12px; background: color-mix(in srgb, currentColor 3%, transparent); }
html[data-ui="v2"] .v2-er .v2-acc.v2-er-fold > summary { padding: 10px 12px 10px 16px; gap: 10px; border-radius: 12px; transition: background-color .15s ease; }
html[data-ui="v2"] .v2-er-fold > summary:hover { background: color-mix(in srgb, currentColor 5%, transparent); }
html[data-ui="v2"] .v2-er .v2-er-fold > summary .v2-k { opacity: 1; }
html[data-ui="v2"] .v2-er .v2-er-fold > summary .v2-cbtn { margin-left: auto; transform: none; }
html[data-ui="v2"] .v2-er .v2-er-fold[open] > summary .v2-cbtn { transform: rotate(180deg); }
html[data-ui="v2"] .v2-er-fold .v2-acc-body { padding: 4px 16px 16px; }
html[data-ui="v2"] .v2-er-fold + .v2-er-fold { margin-top: 0; }
html[data-ui="v2"] .v2-er-doc .cite-chip--para { margin-left: 2px; }
/* One line per procedure that falls short: its name, then what is missing as short
   tags; the full text opens on a click. */
html[data-ui="v2"] .v2-er-short { display: flex; flex-direction: column; gap: 8px; }
html[data-ui="v2"] .v2-er .v2-k.is-miss { color: var(--v2-gap-ink); }
/* One panel with thin dividers: a list, not a stack of boxes. */
html[data-ui="v2"] .v2-er-short .v2-er-docs { gap: 0; border: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-radius: 12px; overflow: hidden; }
html[data-ui="v2"] .v2-er-short .v2-er-row.is-short { padding: 10px 14px; border: 0; border-radius: 0; }
html[data-ui="v2"] .v2-er-short .v2-er-row.is-short + .v2-er-row.is-short { border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
html[data-ui="v2"] .v2-er-cites { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
html[data-ui="v2"] .v2-er-det > summary { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; cursor: pointer; }
html[data-ui="v2"] .v2-er-det > summary::-webkit-details-marker { display: none; }
html[data-ui="v2"] .v2-er-det > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
html[data-ui="v2"] .v2-er-sum .v2-er-doc { margin: 0; }
html[data-ui="v2"] .v2-er-tags { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 260px; min-width: 0; }
html[data-ui="v2"] .v2-er-tag { font-size: 12.5px; line-height: 1.4; padding: 2px 9px; border-radius: 999px; background: var(--v2-gap-soft); color: var(--v2-gap-ink); }
html[data-ui="v2"] .v2-er-det > summary .v2-cbtn { flex: none; margin-left: auto; }
html[data-ui="v2"] .v2-er-det[open] > summary .v2-cbtn { transform: rotate(180deg); }
html[data-ui="v2"] .v2-er-body { padding-top: 12px; margin-top: 10px; border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
/* The requirement by part: To fix and Covered side by side, numbers in circles (Azhar 2026-11-18). */
html[data-ui="v2"] .v2-er-summary { display: flex; flex-direction: column; gap: 6px; }
/* To fix as a band on top, Covered below: no panel leaves empty space beside the other
   whatever the counts (Azhar 2026-11-18: one item to fix beside eight covered). */
html[data-ui="v2"] .v2-er-cols { display: flex; flex-direction: column; gap: 12px; }
html[data-ui="v2"] .v2-er-els.is-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 8px; counter-reset: part; }
html[data-ui="v2"] .v2-er-reqbox { display: flex; flex-direction: column; gap: 6px; }
html[data-ui="v2"] .v2-er-reqbox .v2-lead { max-width: none; margin: 0; }
html[data-ui="v2"] .v2-er-pre { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 10.5px; font-weight: 650; color: var(--muted); margin-right: 10px; vertical-align: .12em; }
html[data-ui="v2"] .v2-er-hd { display: inline-flex; align-items: center; gap: 8px; }
html[data-ui="v2"] .v2-er-hi { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: color-mix(in srgb, currentColor 12%, transparent); flex: none; }
html[data-ui="v2"] .v2-er-hi svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-ui="v2"] .v2-er { container-type: inline-size; }
html[data-ui="v2"] .v2-er-col { border: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
html[data-ui="v2"] .v2-er-col.is-miss { border-color: color-mix(in srgb, var(--v2-gap-ink) 35%, transparent); background: color-mix(in srgb, var(--v2-gap-soft) 45%, transparent); }
html[data-ui="v2"] .v2-er-col.is-miss > .v2-k { color: var(--v2-gap-ink); }
html[data-ui="v2"] .v2-er-col.is-met > .v2-k { color: var(--v2-cov-ink); }
html[data-ui="v2"] .v2-er-nak { margin-top: 6px; opacity: .7; }
html[data-ui="v2"] .v2-er-els { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: part; }
html[data-ui="v2"] .v2-er-els li { counter-increment: part; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; align-items: start; line-height: 1.5; }
html[data-ui="v2"] .v2-er-els li::before { content: counter(part); width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--ff-mono, ui-monospace, monospace); font-size: 11px; font-weight: 700; }
html[data-ui="v2"] .v2-er-els.is-miss li::before { background: var(--v2-gap-ink); color: var(--v2-surface); }
html[data-ui="v2"] .v2-er-els.is-met li::before { background: var(--v2-cov-soft); color: var(--v2-cov-ink); }
html[data-ui="v2"] .v2-er-els.is-na li::before { background: color-mix(in srgb, currentColor 10%, transparent); color: var(--muted); }
/* One numbered marker everywhere in a finding: a bordered circle, the same size and
   font in To fix, Covered, Missing and How to fix; only the colour says which
   (Azhar 2026-11-18: "maintain consistency", bordered, not filled). */
html[data-ui="v2"] :is(.v2-er-els, .v2-er-miss, .v2-steps) li::before { width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%;
  border: 1.5px solid currentColor; background: transparent; display: inline-grid; place-items: center; padding: 0;
  font-family: var(--ff-mono, ui-monospace, monospace); font-size: 11px; font-weight: 700; line-height: 1; }
html[data-ui="v2"] :is(.v2-er-els, .v2-er-miss, .v2-steps) li { grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; }
html[data-ui="v2"] :is(.v2-er-els.is-miss, .v2-er-miss) li::before { color: var(--v2-gap-ink); background: transparent; }
html[data-ui="v2"] .v2-er-els.is-met li::before { color: var(--v2-cov-ink); background: transparent; }
html[data-ui="v2"] .v2-er-els.is-na li::before { color: var(--muted); background: transparent; }
html[data-ui="v2"] .v2-steps li::before { color: inherit; background: transparent; margin-top: .2em; }
html[data-ui="v2"] :is(.v2-er-els, .v2-er-miss) li::before { margin-top: .05em; }
html[data-ui="v2"] .v2-er-els.is-miss .v2-er-el { font-weight: 600; }
html[data-ui="v2"] .v2-er-els.is-na li { color: var(--muted); font-size: 13.5px; }
/* Covered reads, a step quieter than To fix but not faded (Azhar 2026-11-18). */
html[data-ui="v2"] .v2-er-els.is-met li { color: color-mix(in srgb, currentColor 86%, transparent); font-size: 14px; }
html[data-ui="v2"] .v2-er-in { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
/* Procedures that meet their part: one line of names; what each covers is a fold away. */
html[data-ui="v2"] .v2-er-met { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
html[data-ui="v2"] .v2-er-names { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 300px; min-width: 0; }

/* Evidence tiles open on a click (Azhar 2026-11-10). */
html[data-ui="v2"] .v2-coll > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
html[data-ui="v2"] .v2-coll > summary::-webkit-details-marker { display: none; }
html[data-ui="v2"] .v2-coll > summary h4 { margin: 0; }
html[data-ui="v2"] .v2-coll[open] > .v2-coll-body { margin-top: 14px; }
html[data-ui="v2"] .v2-coll > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 6px; }

/* Evidence accordion: one row per SOP inside the evidence dropdown. */
html[data-ui="v2"] .v2-acc { border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
html[data-ui="v2"] .v2-acc:last-of-type { border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
html[data-ui="v2"] .v2-acc > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 2px; cursor: pointer; }
html[data-ui="v2"] .v2-acc > summary::-webkit-details-marker { display: none; }
html[data-ui="v2"] .v2-acc > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 6px; }
html[data-ui="v2"] .v2-acc-body { display: flex; flex-direction: column; gap: 10px; padding: 0 0 14px; }
/* Dropdowns use the finding card's round chevron button (.v2-cbtn): it turns
   and fills when open, with no Show/Hide or count text (Azhar 2026-11-10). */
html[data-ui="v2"] :is(.v2-coll, .v2-acc) > summary .v2-cbtn { flex: none; margin-left: auto; }
html[data-ui="v2"] :is(.v2-coll, .v2-acc) > summary:hover .v2-cbtn { background: var(--v2-sunk); color: var(--ink); }
html[data-ui="v2"] :is(.v2-coll, .v2-acc)[open] > summary .v2-cbtn { transform: rotate(180deg); background: var(--v2-btn); border-color: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] .v2-acc > summary .v2-cbtn { width: 30px; height: 30px; }
