/* ---------- 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 layer for the shell pages (sign-in, home / admin console, onboarding).
   Scoped to html[data-ui="v2"]; version 1 renders untouched. */
html[data-ui="v2"] body { background: var(--bg) !important; color: var(--ink); font-family: var(--ff-sans); }
html[data-ui="v2"] [data-hl] { color: inherit; font-family: inherit; font-style: normal; font-weight: inherit; font-size: inherit; }
html[data-ui="v2"] .aurora, html[data-ui="v2"] .v5-fx, html[data-ui="v2"] .hero-globe, html[data-ui="v2"] .vh-globe, html[data-ui="v2"] .ph-globe, html[data-ui="v2"] .hg-flags { display: none !important; }

/* buttons */
html[data-ui="v2"] .btn { font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; letter-spacing: .07em; font-size: 11.5px; border-radius: 10px; border-color: var(--line-strong); background: var(--v2-surface); color: var(--ink); transition: transform 160ms var(--v2-ease), box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease; }
html[data-ui="v2"] .btn:hover { border-color: var(--ink-2); transform: translateY(-1px); box-shadow: 0 6px 16px oklch(25% .02 60 / .1); }
html[data-ui="v2"] .btn:active { transform: scale(.97); box-shadow: none; }
html[data-ui="v2"] .btn--primary, html[data-ui="v2"] .btn--primary:hover { background: var(--v2-btn); color: var(--v2-btn-ink); border-color: var(--v2-btn); }
html[data-ui="v2"] .btn--primary:hover { box-shadow: 0 6px 18px oklch(20% .02 260 / .25); }

/* hero bands -> light card with a slow 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"] .page-hero, html[data-ui="v2"] .view > .vh { 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"] .page-hero::before, html[data-ui="v2"] .view > .vh::before { content: ""; position: absolute; inset: -60% -30%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side at 70% 35%, var(--pt2, oklch(80% .1 70 / .28)), transparent), radial-gradient(closest-side at 30% 70%, var(--pt, oklch(72% .085 238 / .18)), 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"] .page-hero .ph-eyebrow, html[data-ui="v2"] .vh-eyebrow { color: var(--muted) !important; font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; letter-spacing: .14em; }
html[data-ui="v2"] .page-hero .ph-title, html[data-ui="v2"] .view > .vh h1 { color: var(--ink) !important; font-family: var(--ff-display); font-stretch: 115%; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
html[data-ui="v2"] .page-hero .ph-sub, html[data-ui="v2"] .view > .vh p { color: var(--ink-2) !important; font-weight: 400; }
html[data-ui="v2"] .page-hero .hero-cobrand .vera-mark, html[data-ui="v2"] .page-hero .hero-mark, html[data-ui="v2"] .page-hero .hero-cobrand, html[data-ui="v2"] .view > .vh .vh-cobrand { display: none; }
html[data-ui="v2"] .hero-stat .s .lbl { color: var(--muted); font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; letter-spacing: .1em; }
html[data-ui="v2"] .hero-stat .s .val { color: var(--ink); font-family: var(--ff-display); font-stretch: 118%; font-weight: 650; }

/* admin console side panel: light floating panel */
html[data-ui="v2"] .side { background: var(--v2-surface) !important; background-image: none !important; color: var(--ink); margin: 12px 0 12px 12px; height: calc(100vh - 24px); top: 12px; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
html[data-ui="v2"] .side .vera-mark { font-size: 0; color: transparent; display: block; width: 144px; height: 24px; background: var(--ink);
  -webkit-mask: url(./vera-lockup-mask-tm.png) no-repeat center / contain; mask: url(./vera-lockup-mask-tm.png) no-repeat center / contain; }
html[data-ui="v2"] .side .sb-brand img, html[data-ui="v2"] .side .wk-cobrand { display: none; }
html[data-ui="v2"] .side .sb-tag, html[data-ui="v2"] .side .sb-sec { color: var(--muted); font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; letter-spacing: .16em; }
html[data-ui="v2"] .cs-item { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 6px; border-radius: 12px; border: 1px solid transparent; color: var(--ink-2); font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; letter-spacing: .07em; font-size: 12px; }
html[data-ui="v2"] .cs-item svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; opacity: 1; color: var(--ink-2); flex: none; transform: none !important; }
html[data-ui="v2"] .cs-item:hover { background: var(--v2-sunk); color: var(--ink); }
html[data-ui="v2"] .cs-item:hover svg { color: var(--ink); }
html[data-ui="v2"] .cs-item:active { transform: scale(.97); }
html[data-ui="v2"] .cs-item.active { background: var(--v2-sunk); border-color: var(--line); color: var(--ink); }
html[data-ui="v2"] .cs-item.active svg { background: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] .cs-item .ct { margin-left: auto; color: var(--ink-2); font-family: var(--ff-mono); }
html[data-ui="v2"] .side .cs-user { border-top-color: var(--line); }
html[data-ui="v2"] .cs-user .avatar { background: var(--v2-btn); color: var(--v2-btn-ink); }
html[data-ui="v2"] .cs-user .who .nm { color: var(--ink); } html[data-ui="v2"] .cs-user .who .rl { color: var(--muted); font-family: var(--ff-display); font-stretch: 112%; }
html[data-ui="v2"] .cs-user .so { color: var(--ink-2); font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-size: 11px; }
html[data-ui="v2"] .cs-user .so:hover, html[data-ui="v2"] .cs-user .cs-user-chip:hover { background: var(--v2-sunk); color: var(--ink); }

/* main column */
html[data-ui="v2"] .main { background: var(--bg); }
html[data-ui="v2"] .cm-top { background: color-mix(in oklch, var(--bg) 88%, transparent); border-bottom: 0; }
html[data-ui="v2"] .cm-top .root { font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; color: var(--muted); }
html[data-ui="v2"] .cm-top .here { font-family: var(--ff-display); font-stretch: 115%; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 15.5px; }
html[data-ui="v2"] .section-head h2 { color: var(--ink); font-family: var(--ff-display); font-stretch: 115%; font-weight: 700; letter-spacing: .08em; font-size: 13.5px; }
html[data-ui="v2"] .section-head .count { font-family: var(--ff-mono); }
html[data-ui="v2"] :is(.client-row, .tile, .ctrl, .note-card, .tbl) { background: var(--v2-surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
html[data-ui="v2"] .client-row { transition: transform 180ms var(--v2-ease), border-color 180ms ease, box-shadow 180ms ease; }
html[data-ui="v2"] .client-row:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 8px 24px oklch(25% .02 60 / .08); }
html[data-ui="v2"] .monogram { background: var(--v2-btn) !important; color: var(--v2-btn-ink) !important; font-family: var(--ff-display); font-stretch: 118%; }
html[data-ui="v2"] :is(.badge, .act-btn) { font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .07em; border-radius: 999px; }
html[data-ui="v2"] .empty { border-radius: 16px; border-color: var(--line-strong); background: var(--v2-surface); }

/* modals (new client etc.) */
html[data-ui="v2"] .nc-modal { background: var(--v2-surface); border-radius: 20px; border: 1px solid var(--line); }
html[data-ui="v2"] .nc-title { font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
html[data-ui="v2"] .nc-sub { font-family: var(--ff-sans); }
html[data-ui="v2"] .nc-icon { background: var(--v2-btn) !important; color: var(--v2-btn-ink) !important; }
html[data-ui="v2"] :is(.nc-field input, .nc-field select, .nc-field textarea, input[type=text], input[type=email], input[type=password], select, textarea) { font-family: var(--ff-sans); border-radius: 10px; border-color: var(--line-strong); background-color: var(--v2-surface); color: var(--ink); }
html[data-ui="v2"] :is(label, .nc-field > span, .nc-label) { font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .07em; }

@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] .page-hero::before, html[data-ui="v2"] .view > .vh::before { animation: none; } }
html[data-ui="v2"] .side .cs-user { flex-wrap: wrap; }
html[data-ui="v2"] .side .ui-switch { flex-basis: 100%; justify-content: center; }
html[data-ui="v2"] .ui-switch { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; font-family: var(--ff-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; font-size: 11px; }
html[data-ui="v2"] .ui-switch:hover { background: var(--v2-sunk); color: var(--ink); }
.ui-switch { display: flex; align-items: center; justify-content: center; 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; }

/* ---------- onboarding wizard ---------- */
html[data-ui="v2"] .hero-banner { 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); position: relative; overflow: hidden; isolation: isolate; }
html[data-ui="v2"] .hero-banner::before { content: ""; position: absolute; inset: -60% -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side at 70% 35%, oklch(80% .1 70 / .28), transparent), radial-gradient(closest-side at 30% 70%, oklch(72% .085 238 / .18), 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"] .hero-banner::after { display: none; }
html[data-ui="v2"] .hero-banner * { color: inherit; }
html[data-ui="v2"] .hero-banner :is(h1, h2) { font-family: var(--ff-display); font-stretch: 115%; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: var(--ink) !important; }
html[data-ui="v2"] .hero-banner p { color: var(--ink-2) !important; }
html[data-ui="v2"] .hero-banner [class*="eb"], html[data-ui="v2"] .hero-banner .k { color: var(--muted) !important; font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .14em; }
html[data-ui="v2"] .h-t { font-family: var(--ff-display); font-stretch: 115%; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
html[data-ui="v2"] :is(.h-k, .tlb, .sum-h, .sum-k, .sec-h, .class-rlbl, .sum-sub) { font-family: var(--ff-display) !important; font-stretch: 112%; letter-spacing: .08em; font-weight: 600; }
html[data-ui="v2"] .wstep .tnode, html[data-ui="v2"] .tnode { font-family: var(--ff-mono); border-color: var(--line-strong); }
html[data-ui="v2"] .wstep.on .tnode, html[data-ui="v2"] .wstep.active .tnode, html[data-ui="v2"] .wstep.cur .tnode { background: var(--v2-btn); border-color: var(--v2-btn); color: var(--v2-btn-ink); box-shadow: 0 0 0 4px color-mix(in oklch, var(--ink) 10%, transparent); }
html[data-ui="v2"] :is(.bento, .sum-card, .rev-card, .jcard, .field-card) { background: var(--v2-surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
/* The dashboard's puffy bento (v2.src.css): sheen, inner puff and stacked raise. */
html[data-ui="v2"] :is(.bento, .sum-card, .rev-card, .field-card, .hero-banner) { border-radius: 24px; background-image: var(--v2-sheen); box-shadow: var(--v2-puff), var(--v2-raise); }
html[data-ui="v2"] .jcard { background-image: var(--v2-sheen); box-shadow: var(--v2-puff), var(--v2-raise); }
html[data-ui="v2"] .jcard:hover { box-shadow: var(--v2-puff), var(--v2-raise-hi); }
html[data-ui="v2"] .jcard { transition: transform 160ms var(--v2-ease), border-color 160ms ease; }
html[data-ui="v2"] .jcard:hover { transform: translateY(-1px); border-color: var(--line-strong); }
html[data-ui="v2"] :is(.jcard.on, .jcard.sel, .jcard[aria-pressed="true"]) { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ink) 10%, transparent); }
/* A ticked attribute toggle or chip reads like a ticked card: the light-theme cream fill
   left the grey line under a toggle's title unreadable in dark mode (Azhar 2026-11-14). */
html[data-ui="v2"] :is(.tog.on, .chip-t.on) { border-color: var(--ink); background: var(--v2-surface); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ink) 10%, transparent); }
html[data-ui="v2"] .inp, html[data-ui="v2"] .sel { font-family: var(--ff-sans); border-radius: 10px; border-color: var(--line-strong); background-color: var(--v2-surface); }
html[data-ui="v2"] .inp:focus, html[data-ui="v2"] .sel:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ink-2) 12%, transparent); outline: none; }
html[data-ui="v2"] :is(.chip-t, .tog, .seg button, .pill-list > *) { font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .07em; border-radius: 999px; }
/* Onboarding's category and product-code chips: a step smaller than the 2026-11-03 type bump made them. */
html[data-ui="v2"] .chip-t { font-size: 11px; letter-spacing: .05em; padding: 7px 13px; gap: 8px; }
html[data-ui="v2"] .chip-t .tick { width: 16px; height: 16px; }
html[data-ui="v2"] .m-top { background: color-mix(in oklch, var(--bg) 88%, transparent); border-bottom: 0; }
html[data-ui="v2"] .s-head .h-s { font-family: var(--ff-sans); letter-spacing: 0; }

/* ---------- sign-in + set-password: the app's surfaces, type and buttons ---------- */
html[data-ui="v2"] body:is(.pg-login, .pg-setpw) { background-color: var(--bg) !important;
  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%) !important; }
html[data-ui="v2"] :is(.pg-login, .pg-setpw) .card { background: var(--v2-surface); border: 1px solid var(--line); border-radius: 26px; background-image: var(--v2-sheen); box-shadow: var(--v2-puff), var(--v2-raise); backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--ink); }
/* VERA lockup from the app (masked so it follows the theme) */
html[data-ui="v2"] :is(.pg-login, .pg-setpw) .mark { font-size: 0; color: transparent; display: block; width: 180px; height: 30px; background: var(--ink);
  -webkit-mask: url(./vera-lockup-mask-tm.png) no-repeat center / contain; mask: url(./vera-lockup-mask-tm.png) no-repeat center / contain; }
html[data-ui="v2"] .pg-login .brand-lockup .wk-mark { display: none; }
html[data-ui="v2"] :is(.pg-login, .pg-setpw) .desc { font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; font-size: 11px; letter-spacing: .3em; color: var(--muted); }
html[data-ui="v2"] .pg-login .field label, html[data-ui="v2"] .pg-setpw label { font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; font-size: 11px; letter-spacing: .1em; color: var(--ink-2); }
html[data-ui="v2"] .pg-login .field input, html[data-ui="v2"] .pg-setpw input { background: var(--v2-surface); border: 1px solid var(--line-strong); color: var(--ink); font-family: var(--ff-sans); border-radius: 11px; }
html[data-ui="v2"] .pg-login .field input::placeholder, html[data-ui="v2"] .pg-setpw input::placeholder { color: var(--muted-soft); }
html[data-ui="v2"] .pg-login .field input:focus, html[data-ui="v2"] .pg-setpw input:focus { border-color: var(--ink-2); background: var(--v2-surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink-2) 14%, transparent); }
html[data-ui="v2"] .pg-login .toggle { font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
html[data-ui="v2"] .pg-login .toggle:hover { color: var(--ink); background: var(--v2-sunk); }
html[data-ui="v2"] .pg-login button.submit, html[data-ui="v2"] .pg-setpw button { background: var(--v2-btn); color: var(--v2-btn-ink); border: 1px solid var(--v2-btn); border-radius: 12px; font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; letter-spacing: .1em; filter: none;
  transition: transform 160ms var(--v2-ease), box-shadow 200ms ease; }
html[data-ui="v2"] .pg-login button.submit:hover, html[data-ui="v2"] .pg-setpw button:hover:not(:disabled) { transform: translateY(-1px); filter: none; box-shadow: 0 10px 24px -10px oklch(20% .02 260 / .45); }
html[data-ui="v2"] .pg-login button.submit:active, html[data-ui="v2"] .pg-setpw button:active { transform: scale(.98); }
html[data-ui="v2"] .pg-login .err { color: var(--v2-gap-ink); background: var(--v2-gap-soft); border-color: transparent; }
html[data-ui="v2"] .pg-login :is(.oauth-btn, .btn-email) { background: var(--v2-surface); border: 1px solid var(--line-strong); color: var(--ink); font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; letter-spacing: .08em; }
html[data-ui="v2"] .pg-login :is(.oauth-btn, .btn-email):hover { background: var(--v2-sunk); border-color: var(--ink-2); }
html[data-ui="v2"] .pg-login .oauth-div { color: var(--muted); font-family: var(--ff-display); font-stretch: 112%; letter-spacing: .14em; }
html[data-ui="v2"] .pg-login .oauth-div::before, html[data-ui="v2"] .pg-login .oauth-div::after { background: var(--line); }
html[data-ui="v2"] .pg-login .info-card { background: var(--v2-sunk); border-color: var(--line); }
html[data-ui="v2"] .pg-login .info-card .ic-ico { background: var(--v2-surface); color: var(--ink-2); border: 1px solid var(--line); }
html[data-ui="v2"] .pg-login .info-card .ic-tx { color: var(--ink-2); }
html[data-ui="v2"] .pg-login .link { color: var(--ink-2); text-decoration-color: var(--line-strong); }
html[data-ui="v2"] .pg-login .link:hover { color: var(--ink); text-decoration-color: var(--ink); }
html[data-ui="v2"] .pg-login :is(.acct, .help, .mfa-caption) { color: var(--muted); }
html[data-ui="v2"] .pg-login .hint { background: var(--v2-sunk); color: var(--ink-2); }
html[data-ui="v2"] .pg-login .hint-pop { background: var(--v2-surface); border-color: var(--line); color: var(--ink-2); box-shadow: var(--shadow-lg); }
html[data-ui="v2"] .pg-login .hint-pop::after { border-top-color: var(--v2-surface); }
html[data-ui="v2"] .pg-login .hint-pop :is(strong, b) { color: var(--ink); }
html[data-ui="v2"] .pg-login .socials a { color: var(--muted); background: var(--v2-surface); border-color: var(--line); }
html[data-ui="v2"] .pg-login .socials a:hover { color: var(--ink); border-color: var(--line-strong); }
html[data-ui="v2"] .pg-login :is(.stage-foot .legal, .credit) { color: var(--muted); }
html[data-ui="v2"] .pg-login .stage-foot .legal a { color: var(--ink-2); text-decoration-color: var(--line-strong); }
html[data-ui="v2"] .pg-login .stage-foot .legal a:hover { color: var(--ink); }
html[data-ui="v2"] .pg-setpw h1 { font-family: var(--ff-display); font-stretch: 112%; color: var(--ink); }
html[data-ui="v2"] .pg-setpw :is(.sub, .foot) { color: var(--muted); }
html[data-ui="v2"] .pg-setpw .msg { min-height: 0; margin-top: 0; }
html[data-ui="v2"] .pg-setpw .msg:not(:empty) { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 11px 14px; text-align: left; line-height: 1.5;
  border: 1px solid var(--line); border-radius: 12px; background: var(--v2-sunk); color: var(--ink-2); font-size: 13.5px; }
html[data-ui="v2"] .pg-setpw .msg:not(:empty)::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; background: currentColor; opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-ui="v2"] .pg-setpw .msg.err { color: var(--v2-gap-ink); border-color: color-mix(in oklch, var(--v2-gap-ink) 30%, transparent); background: color-mix(in oklch, var(--v2-gap-ink) 9%, transparent); }
html[data-ui="v2"] .pg-setpw .msg.ok { color: var(--v2-cov-ink); border-color: color-mix(in oklch, var(--v2-cov-ink) 30%, transparent); background: color-mix(in oklch, var(--v2-cov-ink) 9%, transparent); }

/* admin console side panel: same item sizes as the app rail */
html[data-ui="v2"] .cs-item { height: 36px; gap: 10px; padding: 0 5px; border-radius: 10px; font-size: 11px; }
html[data-ui="v2"] .cs-item svg { width: 30px; height: 30px; padding: 7px; border-radius: 9px; }

/* settings + console labels: the app's display face, not the classic mono */
html[data-ui="v2"] .view > .vh .vh-eyebrow { font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; letter-spacing: .14em; font-size: 11.5px; color: var(--muted); }
html[data-ui="v2"] :is(.of-l, .ctrl-group-label, .org-line) { font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; letter-spacing: .12em; }
html[data-ui="v2"] .org-mono { background: var(--v2-btn) !important; color: var(--v2-btn-ink) !important; font-family: var(--ff-display); font-stretch: 118%; font-weight: 700; box-shadow: none; }
html[data-ui="v2"] .org-name { font-family: var(--ff-display); font-stretch: 112%; font-weight: 650; }
html[data-ui="v2"] .org-card:hover { border-color: var(--line-strong); box-shadow: 0 8px 24px oklch(25% .02 60 / .08); }
html[data-ui="v2"] .of-v { font-family: var(--ff-display); font-stretch: 118%; font-weight: 650; }
html[data-ui="v2"] .org-editbtn { background: var(--v2-surface); }

/* onboarding header + banner: same type as the app (display, uppercase) */
html[data-ui="v2"] .m-top :is(a, span, .here, .cancel), html[data-ui="v2"] .m-top { font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
html[data-ui="v2"] .m-top .here { color: var(--ink); font-weight: 700; }
html[data-ui="v2"] .m-top .cancel { color: var(--muted); }
html[data-ui="v2"] .m-top .cancel:hover { color: var(--ink); }
html[data-ui="v2"] .hero-banner .hb-k { font-family: var(--ff-display); font-stretch: 112%; font-weight: 600; letter-spacing: .14em; color: var(--muted); }

/* onboarding timeline: the active step's number reads on its ink dot */
html[data-ui="v2"] .tnode.active .tdot, html[data-ui="v2"] .tnode.active .tdot .num { color: var(--v2-btn-ink) !important; }
html[data-ui="v2"] .tnode.done .tdot .num { color: var(--v2-btn-ink) !important; }

/* the VERA lockup alone at the head of the admin side panel (Azhar, 2026-10-27:
   no tagline), with room above and below it */
html[data-ui="v2"] .side .sb-brand { flex-direction: column; align-items: center; padding: 26px 8px 30px; }
/* The section label sits clear of the brand and of the list beneath it. */
html[data-ui="v2"] .side .sb-sec { padding: 8px 12px 14px; }
/* The name and role get the row: the sidebar's sign-out is its icon (the top
   bar carries the labelled Sign out), so "Local Admin" is never cut. */
html[data-ui="v2"] .cs-user .so { padding: 9px; flex: none; } html[data-ui="v2"] .cs-user .so span { display: none; }
html[data-ui="v2"] .cs-user .who .rl { white-space: nowrap; }
html[data-ui="v2"] :is(.cm-top, .m-top, .crumbs) .sep { color: var(--muted); }

/* sign-in + set-password: faint 28px grid behind everything (fading out toward
   the edges), and in dark a lighter, warmer field so the page isn't flat black */
html[data-ui="v2"] body:is(.pg-login, .pg-setpw)::before { content: ""; position: fixed; inset: 0; z-index: 0; 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: radial-gradient(75% 70% at 50% 45%, #000 35%, transparent 100%); mask-image: radial-gradient(75% 70% at 50% 45%, #000 35%, transparent 100%); }
html[data-ui="v2"] .pg-login .left, html[data-ui="v2"] .pg-setpw .card { position: relative; z-index: 1; }
html[data-ui="v2"][data-theme="dark"] body:is(.pg-login, .pg-setpw) { background-color: oklch(19% .01 255) !important;
  background-image: radial-gradient(60% 55% at 12% 6%, oklch(62% .11 62 / .30), transparent 70%), radial-gradient(55% 55% at 92% 90%, oklch(58% .09 245 / .30), transparent 70%), radial-gradient(45% 40% at 70% 20%, oklch(55% .06 200 / .16), transparent 70%) !important; }
html[data-ui="v2"][data-theme="dark"] body:is(.pg-login, .pg-setpw)::before { background-image: linear-gradient(color-mix(in srgb, var(--ink) 8%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 8%, transparent) 1px, transparent 1px); }
html[data-ui="v2"][data-theme="dark"] :is(.pg-login, .pg-setpw) .card { background-color: oklch(24% .012 255); border-color: oklch(34% .012 255); background-image: var(--v2-sheen); box-shadow: var(--v2-puff), var(--v2-raise); }
html[data-ui="v2"][data-theme="dark"] :is(.pg-login, .pg-setpw) :is(.field input, input) { background: oklch(21% .01 255); }
/* sign-in: fainter grid + slow drifting colour blurs behind it (header style) */
html[data-ui="v2"] body:is(.pg-login, .pg-setpw)::before { background-image: linear-gradient(color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px) !important; }
html[data-ui="v2"] body:is(.pg-login, .pg-setpw)::after { content: ""; position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side at 22% 28%, oklch(72% .13 62 / .30), transparent), radial-gradient(closest-side at 78% 72%, oklch(66% .1 240 / .30), transparent), radial-gradient(closest-side at 60% 18%, oklch(70% .08 190 / .16), transparent);
  background-size: 60% 60%, 60% 60%, 45% 45%; background-repeat: no-repeat; background-position: 15% 20%, 85% 80%, 62% 10%;
  filter: blur(40px); animation: v2-drift 26s cubic-bezier(.45,0,.55,1) infinite alternate; animation-play-state: var(--v2-drift-play, running); }
html[data-ui="v2"]:not([data-theme="dark"]) body:is(.pg-login, .pg-setpw)::after { opacity: .7; }
@media (prefers-reduced-motion: reduce) { html[data-ui="v2"] body:is(.pg-login, .pg-setpw)::after { animation: none; } }
