/* coool.im's design tokens (the studio's third look: U1 Reel Editorial, U5 UI v2, and this one, from
   docs/mockups/coool). The one place a colour is written.
   The look is Cloudflare's console: the neutrals, the state colours and the blue of links come from
   the tokens of their open design system (Kumo, read 16 Nov 2026); orange is the one action colour.
   Two departures, both for contrast (the test in lib.rs holds every pair to WCAG AA):
   a primary button's label is near-black on the orange, not white (white is 2.6:1), and muted
   text is a step darker than Kumo's so it passes on the sunk ground.
   Each state has a text shade (AA on its tint, on the page and on cards), a fill (dots, bars,
   rings), a tint and a line. Names are unchanged from UI v2 (`--rl-` + the mockups' names), so
   every page and component follows without edits.
   `.rl-theme-light` re-declares the light tokens on an element (the guide card inside a customer's
   product follows the product's light theme whatever the page's).
   The U1 names at the end of the first block are aliases, kept until every page is ported. */
:root, .rl-theme-light {
  /* Brand */
  --rl-ink: #151414; --rl-cream: #fffbf5; --rl-cobalt: #2b7fff; --rl-teal: #009966; --rl-amber: #e5a50a; --rl-red: #fb2c36;

  /* Type: one family, as the console has; mono for ids, versions and timings. */
  --rl-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rl-font-display: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rl-font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --rl-t-12: 12px; --rl-t-13: 13px; --rl-t-14: 14px; --rl-t-15: 15px; --rl-t-16: 16px; --rl-t-18: 18px;
  --rl-t-20: 20px; --rl-t-24: 24px; --rl-t-30: 28px; --rl-t-40: 36px;

  /* Space (4 px grid), radius */
  --rl-s-1: 4px; --rl-s-2: 8px; --rl-s-3: 12px; --rl-s-4: 16px; --rl-s-5: 20px; --rl-s-6: 24px; --rl-s-8: 32px; --rl-s-10: 40px; --rl-s-12: 48px; --rl-s-16: 64px;
  --rl-r-1: 4px; --rl-r-2: 6px; --rl-r-3: 8px; --rl-r-4: 12px; --rl-r-5: 14px; --rl-r-pill: 999px;

  /* Motion: three durations by distance, one arrive and one leave curve; none under reduced motion. */
  --rl-d-fast: 120ms; --rl-d-base: 200ms; --rl-d-slow: 320ms;
  --rl-ease-out: cubic-bezier(.2, .8, .2, 1); --rl-ease-in: cubic-bezier(.4, 0, 1, 1);

  /* Layers */
  --rl-z-sticky: 10; --rl-z-drawer: 40; --rl-z-pop: 50; --rl-z-toast: 100;

  /* Surfaces */
  --rl-bg: #fbfbfb; --rl-surface: #ffffff; --rl-surface-2: #f8f8f8; --rl-sunk: #f5f5f5;
  --rl-hover: rgba(10, 10, 10, .04); --rl-active: rgba(10, 10, 10, .065);
  --rl-line: #e9e9e9; --rl-line-2: #d4d4d4; --rl-overlay: rgba(10, 10, 10, .45);

  /* Text */
  --rl-text: #0a0a0a; --rl-body: #262626; --rl-muted: #666666; --rl-faint: #6f6f6f;

  /* Action: orange fills the one primary button; links and selection are the console's blue. */
  --rl-accent: #f6821f; --rl-accent-2: #f0640a; --rl-accent-hover: #ff8f33; --rl-accent-text: #193cb8; --rl-accent-tint: #eef3ff; --rl-accent-line: #c7d5fb;
  --rl-on-accent: #1a0d00; --rl-focus-ring: #193cb8;
  /* Text on a fill we did not choose (a customer's brand colour): light on a dark one, dark on a light one. */
  --rl-on-fill-dark: #ffffff; --rl-on-fill-light: #0a0a0a;

  /* Trust states. ok = verified, certified (green); warn = screens changed (amber); bad = broke (red);
     draft = drafted, not built, and the environment's own states (neutral); run = in progress (blue). */
  --rl-ok: #006045;    --rl-ok-fill: #009966;    --rl-ok-tint: #e3f7ec;    --rl-ok-line: #a8e0c2;
  --rl-warn: #7d5200;  --rl-warn-fill: #e5a50a;  --rl-warn-tint: #fdf3d6;  --rl-warn-line: #f0d58a;
  --rl-bad: #c10007;   --rl-bad-fill: #fb2c36;   --rl-bad-tint: #ffecec;   --rl-bad-line: #f7c1c1;
  --rl-draft: #666666; --rl-draft-fill: #b5b5b5; --rl-draft-tint: #f0f0f0; --rl-draft-line: #dcdcdc;
  --rl-run: #193cb8;   --rl-run-fill: #2b7fff;   --rl-run-tint: #eaf1ff;   --rl-run-line: #c7d5fb;
  --rl-on-seal: #ffffff;

  /* The ring readers see on a screen; the stage a capture sits on is always the warm black. */
  --rl-ring: #f6821f; --rl-ring-glow: rgba(246, 130, 31, .3);
  --rl-stage: #151414; --rl-on-stage: #f0e3de; --rl-scrim: rgba(21, 20, 20, .72); --rl-halo: rgba(255, 255, 255, .9);

  /* Code, always on the warm black */
  --rl-code-bg: #151414; --rl-code-line: #2c2a28; --rl-code-text: #f0e3de; --rl-code-muted: #a89e99;
  --rl-code-key: #ff9a47; --rl-code-str: #8fe6c0; --rl-code-num: #9dc4ff; --rl-code-comment: #8f8581;
  --rl-mark: color-mix(in srgb, var(--rl-amber) 34%, transparent);

  /* Elevation: hairlines do the work; shadows are barely there. */
  --rl-sh-1: 0 1px 2px rgba(0, 0, 0, .05);
  --rl-sh-2: 0 0 0 1px rgba(0, 0, 0, .03), 0 10px 30px -12px rgba(0, 0, 0, .18);
  --rl-sh-3: 0 0 0 1px rgba(0, 0, 0, .05), 0 28px 70px -22px rgba(0, 0, 0, .3);
  --rl-sh-inset: inset 0 1px 0 rgba(255, 255, 255, .3);

  /* U1's names, as aliases. */
  --rl-display: var(--rl-font-display); --rl-sans: var(--rl-font-sans); --rl-mono: var(--rl-font-mono);
  --rl-t-xs: var(--rl-t-12); --rl-t-sm: var(--rl-t-13); --rl-t-base: var(--rl-t-14); --rl-t-md: var(--rl-t-15); --rl-t-lg: var(--rl-t-18);
  --rl-t-xl: var(--rl-t-20); --rl-t-2xl: var(--rl-t-24); --rl-t-3xl: var(--rl-t-30); --rl-t-4xl: var(--rl-t-40);
  --rl-s1: var(--rl-s-1); --rl-s2: var(--rl-s-2); --rl-s3: var(--rl-s-3); --rl-s4: var(--rl-s-4); --rl-s5: var(--rl-s-5); --rl-s6: var(--rl-s-6);
  --rl-s8: var(--rl-s-8); --rl-s10: var(--rl-s-10); --rl-s12: var(--rl-s-12);
  --rl-r1: var(--rl-r-2); --rl-r2: var(--rl-r-3); --rl-r3: var(--rl-r-4); --rl-r4: var(--rl-r-5); --rl-pill: var(--rl-r-pill);
  --rl-fast: var(--rl-d-fast); --rl-slow: var(--rl-d-slow); --rl-ease: var(--rl-ease-out);
  --rl-line-strong: var(--rl-line-2);
  --rl-action: var(--rl-accent-text); --rl-action-fill: var(--rl-accent); --rl-on-action: var(--rl-on-accent); --rl-action-tint: var(--rl-accent-tint);
  --rl-verified: var(--rl-ok); --rl-verified-fill: var(--rl-ok-fill); --rl-verified-tint: var(--rl-ok-tint);
  --rl-changed: var(--rl-warn); --rl-changed-fill: var(--rl-warn-fill); --rl-changed-tint: var(--rl-warn-tint);
  --rl-broken: var(--rl-bad); --rl-broken-fill: var(--rl-bad-fill); --rl-broken-tint: var(--rl-bad-tint);
  --rl-focus: var(--rl-focus-ring);
  --rl-code-keyword: var(--rl-code-key); --rl-code-string: var(--rl-code-str); --rl-code-number: var(--rl-code-num);
  --rl-shadow-1: var(--rl-sh-1); --rl-shadow-2: var(--rl-sh-2); --rl-shadow-3: var(--rl-sh-3);
  color-scheme: light;
}

/* Dark: the console's own dark, neutral near-black. Designed with light, not inverted from it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rl-bg: #030303; --rl-surface: #0f0f0f; --rl-surface-2: #141414; --rl-sunk: #0b0b0b;
    --rl-hover: rgba(255, 255, 255, .055); --rl-active: rgba(255, 255, 255, .095);
    --rl-line: #262626; --rl-line-2: #3a3a3a; --rl-overlay: rgba(0, 0, 0, .62);
    --rl-text: #fafafa; --rl-body: #e5e5e5; --rl-muted: #a1a1a1; --rl-faint: #8f8f8f;
    --rl-accent: #f6821f; --rl-accent-2: #e8650a; --rl-accent-hover: #ff8f33; --rl-accent-text: #6cb0ff; --rl-accent-tint: rgba(80, 162, 255, .13); --rl-accent-line: rgba(80, 162, 255, .36); --rl-on-accent: #1a0d00; --rl-focus-ring: #8cc0ff;
    --rl-ok: #a4f4cf; --rl-ok-fill: #00d492; --rl-ok-tint: rgba(0, 212, 146, .12); --rl-ok-line: rgba(0, 212, 146, .32);
    --rl-warn: #f7cf5f; --rl-warn-fill: #e5a50a; --rl-warn-tint: rgba(229, 165, 10, .13); --rl-warn-line: rgba(229, 165, 10, .34);
    --rl-bad: #ff7b7e; --rl-bad-fill: #fb2c36; --rl-bad-tint: rgba(251, 44, 54, .13); --rl-bad-line: rgba(251, 44, 54, .36);
    --rl-draft: #a1a1a1; --rl-draft-fill: #5c5c5c; --rl-draft-tint: rgba(255, 255, 255, .06); --rl-draft-line: #3a3a3a;
    --rl-run: #6cb0ff; --rl-run-fill: #2b7fff; --rl-run-tint: rgba(80, 162, 255, .13); --rl-run-line: rgba(80, 162, 255, .36);
    --rl-on-seal: #04130d; --rl-ring: #f6821f; --rl-ring-glow: rgba(246, 130, 31, .34);
    --rl-sh-1: 0 1px 2px rgba(0, 0, 0, .5);
    --rl-sh-2: 0 0 0 1px rgba(255, 255, 255, .06), 0 12px 32px -12px rgba(0, 0, 0, .8);
    --rl-sh-3: 0 0 0 1px rgba(255, 255, 255, .08), 0 28px 70px -20px rgba(0, 0, 0, .9);
    --rl-sh-inset: inset 0 1px 0 rgba(255, 255, 255, .04);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --rl-bg: #030303; --rl-surface: #0f0f0f; --rl-surface-2: #141414; --rl-sunk: #0b0b0b;
  --rl-hover: rgba(255, 255, 255, .055); --rl-active: rgba(255, 255, 255, .095);
  --rl-line: #262626; --rl-line-2: #3a3a3a; --rl-overlay: rgba(0, 0, 0, .62);
  --rl-text: #fafafa; --rl-body: #e5e5e5; --rl-muted: #a1a1a1; --rl-faint: #8f8f8f;
  --rl-accent: #f6821f; --rl-accent-2: #e8650a; --rl-accent-hover: #ff8f33; --rl-accent-text: #6cb0ff; --rl-accent-tint: rgba(80, 162, 255, .13); --rl-accent-line: rgba(80, 162, 255, .36); --rl-on-accent: #1a0d00; --rl-focus-ring: #8cc0ff;
  --rl-ok: #a4f4cf; --rl-ok-fill: #00d492; --rl-ok-tint: rgba(0, 212, 146, .12); --rl-ok-line: rgba(0, 212, 146, .32);
  --rl-warn: #f7cf5f; --rl-warn-fill: #e5a50a; --rl-warn-tint: rgba(229, 165, 10, .13); --rl-warn-line: rgba(229, 165, 10, .34);
  --rl-bad: #ff7b7e; --rl-bad-fill: #fb2c36; --rl-bad-tint: rgba(251, 44, 54, .13); --rl-bad-line: rgba(251, 44, 54, .36);
  --rl-draft: #a1a1a1; --rl-draft-fill: #5c5c5c; --rl-draft-tint: rgba(255, 255, 255, .06); --rl-draft-line: #3a3a3a;
  --rl-run: #6cb0ff; --rl-run-fill: #2b7fff; --rl-run-tint: rgba(80, 162, 255, .13); --rl-run-line: rgba(80, 162, 255, .36);
  --rl-on-seal: #04130d; --rl-ring: #f6821f; --rl-ring-glow: rgba(246, 130, 31, .34);
  --rl-sh-1: 0 1px 2px rgba(0, 0, 0, .5);
  --rl-sh-2: 0 0 0 1px rgba(255, 255, 255, .06), 0 12px 32px -12px rgba(0, 0, 0, .8);
  --rl-sh-3: 0 0 0 1px rgba(255, 255, 255, .08), 0 28px 70px -20px rgba(0, 0, 0, .9);
  --rl-sh-inset: inset 0 1px 0 rgba(255, 255, 255, .04);
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) { :root, .rl-theme-light { --rl-d-fast: 1ms; --rl-d-base: 1ms; --rl-d-slow: 1ms; } }

/* Reel's components: UI v2 (docs/mockups/ui-v2, U5) and the U1 components still in use. Only tokens,
   never a colour.
   Classes are `rl-` + the mockups' names (assets/reel-v2.css): `.btn-primary` is `.rl-btn-primary`,
   `.st-ok` is `.rl-st-ok`, `.card-h` is `.rl-card-h`. Four mockup names meant something else here
   first, so they differ: `.tabs`/`.tab` are `.rl-tabbar`/`.rl-tab` (`.rl-tabs` is a segmented
   control), `.chip` is `.rl-source` (`.rl-chip` cites a step), `.shot .badge` is `.rl-shot-tag`,
   and `.scrim` is `.rl-overlay`. U1's own modifiers (`.rl-btn--primary`) keep working. */

/* ───────────── Base ───────────── */
.rl, .rl-page { font: var(--rl-t-14)/1.5 var(--rl-font-sans); color: var(--rl-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.rl-page { margin: 0; background: var(--rl-bg); min-height: 100vh; }
.rl *, .rl-page *, .rl *::before, .rl-page *::before, .rl *::after, .rl-page *::after { box-sizing: border-box; }
/* Hidden means hidden, whatever a component's own display (U9: a hidden button, a hidden
   segmented control waiting for its script). */
.rl [hidden], .rl-page [hidden] { display: none !important; }
/* In :where(), so a button, tab or card that is a link keeps its own colour. */
:where(.rl-page, .rl) a { color: var(--rl-accent-text); text-decoration: none; text-underline-offset: 2px; }
:where(.rl-page, .rl) a:hover { text-decoration: underline; }
/* A link inside running text is underlined, so it doesn't rely on colour alone (WCAG 1.4.1). */
.rl-page :is(p, li, dd, td, label) a:not(.rl-btn):not(.st-link-btn), .rl :is(p, li, dd) a:not(.rl-btn), .rl-callout a, .rl-sec-h .rl-meta a {
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
/* In :where(), so a pill or a chip keeps its own shape when focused. */
:where(.rl-page, .rl) :focus-visible { outline: 2px solid var(--rl-focus-ring); outline-offset: 2px; border-radius: var(--rl-r-2); }
.rl-page code, .rl code, .rl-mono { font-family: var(--rl-font-mono); font-size: .9em; font-variant-ligatures: none; letter-spacing: 0; }
/* The studio's type: Inter throughout, the display face only for the mark and editorial pages.
   Sizes come from where a heading sits (`.rl-ph h1`, `.rl-sec-h h2`, `.rl-card-h h2`). */
:where(.rl-app) :is(h1, h2, h3, h4, h5) { margin: 0; color: var(--rl-text); font-family: var(--rl-font-sans); font-weight: 600; line-height: 1.25; letter-spacing: -.012em; text-wrap: balance; }

/* Utilities */
.rl-sr, .rl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rl-skip { position: absolute; left: 8px; top: 8px; z-index: var(--rl-z-toast); background: var(--rl-surface); color: var(--rl-text); padding: 8px 12px; border-radius: var(--rl-r-3); transform: translateY(-200%); }
.rl-skip:focus { transform: none; box-shadow: var(--rl-sh-3); }
.rl-i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.rl-i-sm { width: 14px; height: 14px; } .rl-i-lg { width: 20px; height: 20px; }
.rl-row { display: flex; align-items: center; gap: var(--rl-s-2); } .rl-row-wrap { flex-wrap: wrap; }
.rl-spacer { flex: 1; } .rl-stack { display: grid; gap: var(--rl-s-4); }
.rl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--rl-draft-fill)); flex: none; display: inline-block; }
.rl-hr { height: 1px; background: var(--rl-line); border: 0; margin: 0; }
.rl-num { font-variant-numeric: tabular-nums; }
.rl-muted { color: var(--rl-muted); } .rl-faint { color: var(--rl-faint); } .rl-text { color: var(--rl-text); }
.rl-t-12 { font-size: var(--rl-t-12); } .rl-t-13 { font-size: var(--rl-t-13); } .rl-t-14 { font-size: var(--rl-t-14); }
.rl-w-500 { font-weight: 500; } .rl-w-600 { font-weight: 600; }

/* Editorial type (the help centre, the guide, empty pages) */
.rl-display { font-family: var(--rl-font-display); font-weight: 400; letter-spacing: -.02em; font-variation-settings: "opsz" 96; color: var(--rl-text); }
.rl-h1 { font: 400 var(--rl-t-30)/1.12 var(--rl-font-display); letter-spacing: -.02em; font-variation-settings: "opsz" 96; color: var(--rl-text); margin: 0; }
.rl-h2 { font: 600 var(--rl-t-18)/1.3 var(--rl-font-sans); letter-spacing: -.01em; color: var(--rl-text); margin: 0; }
.rl-h3 { font: 600 var(--rl-t-15)/1.35 var(--rl-font-sans); color: var(--rl-text); margin: 0; }
.rl-lede { font-size: var(--rl-t-18); line-height: 1.55; color: var(--rl-muted); margin: 0; }
.rl-kicker { font: 600 var(--rl-t-12)/1.2 var(--rl-font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--rl-muted); }

/* ───────────── The studio shell ───────────── */
.rl-app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; background: var(--rl-bg); }
.rl-side { position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 12px 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--rl-bg); }
.rl-side-top { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.rl-ws { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--rl-r-3); color: inherit; text-decoration: none !important; }
.rl-close-btn { display: none !important; }
.rl-ws:hover { background: var(--rl-hover); }
.rl-mark { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--rl-text); color: var(--rl-bg); font: italic 600 16px/1 var(--rl-font-display); }
.rl-ws-n { min-width: 0; }
.rl-ws-name { display: block; font-weight: 600; color: var(--rl-text); font-size: 14px; line-height: 1.2; }
.rl-ws-sub { display: block; font-size: 12px; color: var(--rl-muted); line-height: 1.2; }
/* One column that may shrink: a long environment name ellipsizes instead of widening the sidebar. */
.rl-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.rl-nav > a { min-width: 0; }
.rl-nav > a > span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-nav-h { font-size: 12px; font-weight: 500; color: var(--rl-faint); padding: 14px 10px 4px; display: flex; align-items: center; justify-content: space-between; }
/* The Environments heading links to the list; it stays a heading, not a nav row. */
.rl-nav .rl-nav-ha, .rl-nav .rl-nav-ha[aria-current] { display: inline; height: auto; padding: 0; background: none; font: inherit; color: var(--rl-faint); text-decoration: none !important; border-radius: var(--rl-r-1); }
.rl-nav .rl-nav-ha:hover, .rl-nav .rl-nav-ha[aria-current] { color: var(--rl-text); }
.rl-nav a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: var(--rl-r-2); color: var(--rl-body); font-size: 13.5px; font-weight: 500;
  text-decoration: none !important; transition: background var(--rl-d-fast) var(--rl-ease-out), color var(--rl-d-fast); }
.rl-nav a .rl-i { color: var(--rl-muted); }
.rl-nav a:hover { background: var(--rl-hover); color: var(--rl-text); }
.rl-nav a[aria-current] { background: var(--rl-active); color: var(--rl-text); }
.rl-nav a[aria-current] .rl-i { color: var(--rl-text); }
.rl-count { margin-left: auto; font: 500 11.5px/18px var(--rl-font-mono); min-width: 20px; height: 18px; padding: 0 5px; text-align: center; border-radius: var(--rl-r-pill); background: var(--rl-sunk); color: var(--rl-muted); border: 1px solid var(--rl-line); }
.rl-count.warn { background: var(--rl-warn-tint); color: var(--rl-warn); border-color: var(--rl-warn-line); }
.rl-count.bad { background: var(--rl-bad-tint); color: var(--rl-bad); border-color: var(--rl-bad-line); }
/* An environment in the sidebar: its state, its name, its version. */
.rl-prod { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 30px; padding: 4px 10px; border-radius: var(--rl-r-2); font-size: 13px; color: var(--rl-body); text-decoration: none !important; }
.rl-prod:hover { background: var(--rl-hover); }
.rl-prod .rl-prod-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-prod .rl-ver { margin-left: auto; font: 11.5px var(--rl-font-mono); color: var(--rl-faint); white-space: nowrap; }
.rl-prod .rl-ver.warn { color: var(--rl-warn); } .rl-prod .rl-ver.bad { color: var(--rl-bad); }
.rl-side-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 12px; }
.rl-gs-card { display: block; text-decoration: none !important; border: 1px solid var(--rl-line); background: var(--rl-surface); border-radius: var(--rl-r-4); padding: 12px; box-shadow: var(--rl-sh-1); color: inherit; }
.rl-gs-card:hover { border-color: var(--rl-line-2); }
.rl-gs-card .rl-t { font-size: 13px; font-weight: 600; color: var(--rl-text); display: flex; justify-content: space-between; gap: 8px; }
.rl-gs-card p { font-size: 12.5px; color: var(--rl-muted); margin-top: 2px; }
.rl-gs-card .rl-bar { margin-top: 8px; }
.rl-me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--rl-r-3); }
.rl-me-n { min-width: 0; line-height: 1.25; }
.rl-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--rl-font-sans); color: var(--rl-on-accent); background: var(--c, var(--rl-accent)); flex: none; }
.rl-av-sm { width: 20px; height: 20px; font-size: 9.5px; }

.rl-main { min-width: 0; margin: 8px 8px 8px 0; background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); box-shadow: var(--rl-sh-1);
  display: flex; flex-direction: column; min-height: calc(100dvh - 16px); }
.rl-top { position: sticky; top: 0; z-index: var(--rl-z-sticky); min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--rl-line);
  background: color-mix(in srgb, var(--rl-surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-radius: var(--rl-r-4) var(--rl-r-4) 0 0; }
.rl-crumbs { min-width: 0; font-size: 13.5px; color: var(--rl-muted); }
.rl-crumbs ol { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; min-width: 0; }
.rl-crumbs li { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.rl-crumbs li + li::before { content: "/"; color: var(--rl-line-2); }
/* Crumbs are navigation, not running text: no underline (nothing around them to tell apart from). */
.rl-crumbs a { display: inline-flex; align-items: center; gap: 2px; color: var(--rl-muted); padding: 3px 4px; margin: 0 -4px; border-radius: var(--rl-r-2); text-decoration: none !important; }
.rl-crumbs a:hover { color: var(--rl-text); text-decoration: none; }
.rl-crumbs .rl-up-i { display: none; }
.rl-crumbs .rl-cur { overflow: hidden; }
.rl-crumbs .rl-cur span { color: var(--rl-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.rl-menu-btn { display: none !important; }
.rl-content { padding: 24px 32px 48px; width: 100%; max-width: 1360px; margin: 0 auto; flex: 1; }
.rl-overlay { display: none; }
.rl-theme[hidden] { display: none; }
.rl-theme button { width: 30px; justify-content: center; padding: 0; }
/* The drawer stops the page behind it scrolling. */
html.rl-locked, html.rl-locked body { overflow: hidden; }

/* A page with no studio around it: sign-in, "not allowed". */
.rl-bare-m { max-width: 420px; margin: 12vh auto 0; padding: 0 16px 48px; }
.rl-bare-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.rl-bare-card h1 { font: 600 var(--rl-t-20)/1.3 var(--rl-font-sans); color: var(--rl-text); margin: 0 0 6px; letter-spacing: -.01em; }
.rl-bare-card p { margin: 0; color: var(--rl-muted); }
.rl-bare-card form { display: grid; gap: 12px; margin-top: 16px; }

/* Page and section heads */
.rl-ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rl-ph h1 { font-size: var(--rl-t-24); letter-spacing: -.02em; margin: 0; }
.rl-ph .rl-sub { margin-top: 4px; color: var(--rl-muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rl-ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rl-sec-h { display: flex; align-items: center; gap: 10px; margin: 32px 0 12px; flex-wrap: wrap; }
.rl-sec-h h2 { font-size: 15px; letter-spacing: -.01em; margin: 0; }
.rl-sec-h .rl-meta { color: var(--rl-muted); font-size: 13px; }

/* ───────────── Controls ───────────── */
.rl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--rl-r-3); border: 1px solid var(--rl-line-2);
  background: var(--rl-surface); color: var(--rl-text); font: 500 13px/1 var(--rl-font-sans); cursor: pointer; white-space: nowrap; text-decoration: none !important; box-shadow: var(--rl-sh-1);
  transition: background var(--rl-d-fast) var(--rl-ease-out), border-color var(--rl-d-fast), box-shadow var(--rl-d-fast), transform var(--rl-d-fast); }
.rl-btn:hover { background: var(--rl-sunk); }
.rl-btn:active { transform: translateY(.5px); }
.rl-btn .rl-i { color: var(--rl-muted); }
.rl-btn svg:not(.rl-i) { width: 16px; height: 16px; fill: currentColor; flex: none; }
.rl-btn-primary, .rl-btn--primary { background: var(--rl-accent); border-color: transparent; color: var(--rl-on-accent) !important;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--rl-accent) 30%, transparent), inset 0 1px 0 color-mix(in srgb, var(--rl-on-accent) 16%, transparent); }
.rl-btn-primary:hover, .rl-btn--primary:hover { background: var(--rl-accent-hover); }
.rl-btn-primary .rl-i, .rl-btn--primary .rl-i { color: currentColor; }
.rl-btn-ok { background: var(--rl-ok-fill); border-color: transparent; color: var(--rl-on-seal); }
.rl-btn-ghost, .rl-btn--quiet { border-color: transparent; background: transparent; box-shadow: none; color: var(--rl-body); }
.rl-btn-ghost:hover, .rl-btn--quiet:hover { background: var(--rl-hover); }
.rl-btn--danger { color: var(--rl-bad) !important; }
.rl-btn-sm, .rl-btn--sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: var(--rl-r-2); }
.rl-btn-lg, .rl-btn--lg { height: 40px; padding: 0 16px; font-size: 14px; }
.rl-btn-icon { width: 32px; padding: 0; } .rl-btn-sm.rl-btn-icon { width: 28px; }
.rl-btn[disabled], .rl-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.rl-kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid var(--rl-line-2); border-bottom-width: 2px; border-radius: 4px;
  font: 500 11px/1 var(--rl-font-sans); color: var(--rl-muted); background: var(--rl-surface); }
.rl-kbds { display: inline-flex; gap: 3px; }

/* Segmented controls: `.rl-seg` with buttons; U1's `.rl-tabs` looks the same. */
.rl-seg, .rl-tabs { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; gap: 2px; background: var(--rl-sunk); border: 1px solid var(--rl-line); border-radius: var(--rl-r-3); }
.rl-seg button, .rl-tabs > * { flex: none; height: 26px; padding: 0 10px; border: 0; border-radius: var(--rl-r-2); background: transparent; color: var(--rl-muted); font: 500 12.5px/1 var(--rl-font-sans);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; transition: background var(--rl-d-fast), color var(--rl-d-fast); }
.rl-seg button:hover, .rl-tabs > *:hover { color: var(--rl-text); }
.rl-seg button[aria-pressed="true"], .rl-seg button[aria-selected="true"], .rl-tabs > [aria-selected="true"], .rl-tabs > [aria-current] {
  background: var(--rl-surface); color: var(--rl-text); box-shadow: var(--rl-sh-1), 0 0 0 1px var(--rl-line); }

/* Tabs that switch a page's sections */
.rl-tabbar { display: flex; gap: 2px; border-bottom: 1px solid var(--rl-line); overflow-x: auto; scrollbar-width: none; }
.rl-tabbar::-webkit-scrollbar { display: none; }
.rl-tab { position: relative; height: 40px; padding: 0 12px; border: 0; background: none; color: var(--rl-muted); font-size: 13.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none !important; }
.rl-tab:hover { color: var(--rl-text); }
.rl-tab[aria-selected="true"], .rl-tab[aria-current] { color: var(--rl-text); }
.rl-tab[aria-selected="true"]::after, .rl-tab[aria-current]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--rl-text); }
.rl-tab .rl-n { font: 500 11.5px/1 var(--rl-font-mono); color: var(--rl-faint); }
/* Links as tabs keep a tab's colour, not a link's (`.rl-page a` would win otherwise). */
.rl-tabs > a, a.rl-tab { color: var(--rl-muted); }
.rl-tabs > a:hover, a.rl-tab:hover, .rl-tabs > a[aria-current], a.rl-tab[aria-current], a.rl-tab[aria-selected="true"] { color: var(--rl-text); }

/* Fields */
.rl-field { display: grid; gap: 6px; font-size: 12.5px; color: var(--rl-muted); }
.rl-field > label, .rl-label { font-size: 12.5px; font-weight: 500; color: var(--rl-text); }
.rl-input, .rl-field input:not([type=checkbox]):not([type=radio]), .rl-field select, .rl-field textarea { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--rl-line-2); border-radius: var(--rl-r-3);
  background: var(--rl-surface); color: var(--rl-text); font: 14px var(--rl-font-sans); box-shadow: var(--rl-sh-1); }
textarea.rl-input, .rl-field textarea { height: auto; padding: 8px 10px; line-height: 1.5; resize: vertical; }
.rl-input:focus, .rl-field :is(input, select, textarea):focus { outline: none; border-color: var(--rl-accent-text); box-shadow: 0 0 0 3px var(--rl-accent-tint); }
.rl-help-t { font-size: 12.5px; color: var(--rl-muted); }

/* ───────────── Trust states ───────────── */
.rl-st { --st: var(--rl-draft); --st-tint: var(--rl-draft-tint); --st-line: var(--rl-draft-line);
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px; border-radius: var(--rl-r-pill);
  font: 500 12px/1 var(--rl-font-sans); white-space: nowrap; color: var(--st); background: var(--st-tint); border: 1px solid var(--st-line); }
.rl-st .rl-i { width: 13px; height: 13px; stroke-width: 2.1; }
.rl-st-ok { --st: var(--rl-ok); --st-tint: var(--rl-ok-tint); --st-line: var(--rl-ok-line); }
.rl-st-warn { --st: var(--rl-warn); --st-tint: var(--rl-warn-tint); --st-line: var(--rl-warn-line); }
.rl-st-bad { --st: var(--rl-bad); --st-tint: var(--rl-bad-tint); --st-line: var(--rl-bad-line); }
.rl-st-run { --st: var(--rl-run); --st-tint: var(--rl-run-tint); --st-line: var(--rl-run-line); }
.rl-st-env { --st: var(--rl-draft); --st-tint: var(--rl-draft-tint); --st-line: var(--rl-line-2); }
.rl-st-plain { background: transparent; border-color: transparent; padding: 0; height: auto; }
.rl-st-sm { height: 20px; font-size: 11.5px; padding: 0 7px 0 5px; }
.rl-st-lg { height: 26px; font-size: 13px; padding: 0 10px 0 8px; } .rl-st-lg .rl-i { width: 15px; height: 15px; }

/* U1's state pills */
.rl-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--rl-r-pill); border: 1px solid var(--rl-draft-line);
  font: 500 var(--rl-t-12)/1 var(--rl-font-sans); background: var(--rl-draft-tint); color: var(--rl-draft); white-space: nowrap; }
.rl-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rl-draft-fill); flex: none; }
.rl-pill.is-verified { background: var(--rl-ok-tint); color: var(--rl-ok); border-color: var(--rl-ok-line); } .rl-pill.is-verified::before { background: var(--rl-ok-fill); }
.rl-pill.is-changed { background: var(--rl-warn-tint); color: var(--rl-warn); border-color: var(--rl-warn-line); } .rl-pill.is-changed::before { background: var(--rl-warn-fill); }
.rl-pill.is-broken { background: var(--rl-bad-tint); color: var(--rl-bad); border-color: var(--rl-bad-line); } .rl-pill.is-broken::before { background: var(--rl-bad-fill); }
.rl-pill.is-action { background: var(--rl-run-tint); color: var(--rl-run); border-color: var(--rl-run-line); } .rl-pill.is-action::before { background: var(--rl-run-fill); }
.rl-pill.is-plain::before { display: none; }

/* The ladder: four pips, Drafted → Verified → Certified → Monitored. */
.rl-ladder { display: inline-flex; gap: 2px; align-items: center; }
.rl-ladder i { width: 12px; height: 4px; border-radius: 2px; background: var(--rl-line-2); }
.rl-ladder[data-l="1"] i:nth-child(-n+1), .rl-ladder[data-l="2"] i:nth-child(-n+2), .rl-ladder[data-l="3"] i:nth-child(-n+3), .rl-ladder[data-l="4"] i:nth-child(-n+4) { background: var(--rl-ok-fill); }
.rl-ladder[data-l="1"] i:nth-child(1) { background: var(--rl-draft-fill); }
.rl-ladder.warn i:nth-child(4) { background: var(--rl-warn-fill); } .rl-ladder.bad i:nth-child(4) { background: var(--rl-bad-fill); }

/* Health strip: the last N checks, oldest left. p passed, c changed, f failed, n not run. */
.rl-health { display: inline-flex; gap: 2px; align-items: flex-end; justify-content: flex-end; height: 16px; max-width: 100%; overflow: hidden; flex-shrink: 1; min-width: 0; }
.rl-health i { flex: none; width: 4px; height: 100%; border-radius: 1.5px; background: var(--rl-ok-fill); opacity: .9; }
.rl-health i.c { background: var(--rl-warn-fill); opacity: 1; }
.rl-health i.f { background: var(--rl-bad-fill); opacity: 1; }
.rl-health i.n { background: var(--rl-line-2); height: 40%; }
.rl-health.lg { height: 26px; gap: 3px; } .rl-health.lg i { width: 6px; border-radius: 2px; }

/* The seal: what readers see. */
.rl-seal { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 8px; border-radius: var(--rl-r-pill); background: var(--rl-ok-tint); border: 1px solid var(--rl-ok-line); color: var(--rl-ok); font-size: 13px; font-weight: 500; cursor: pointer; }
.rl-seal .rl-i { width: 18px; height: 18px; color: var(--rl-ok-fill); }
.rl-seal b { font-weight: 600; } .rl-seal .rl-sep { opacity: .5; }
.rl-seal .rl-i.rl-i-sm { width: 14px; height: 14px; color: currentColor; }
.rl-seal.warn { background: var(--rl-warn-tint); border-color: var(--rl-warn-line); color: var(--rl-warn); } .rl-seal.warn .rl-i { color: var(--rl-warn-fill); }
.rl-seal.bad { background: var(--rl-bad-tint); border-color: var(--rl-bad-line); color: var(--rl-bad); }

/* Source chips: where a flow was seen. */
.rl-source { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: var(--rl-r-2); border: 1px solid var(--rl-line); background: var(--rl-surface); color: var(--rl-body); font-size: 12px; font-weight: 500; white-space: nowrap; }
.rl-source .rl-i { width: 12px; height: 12px; color: var(--rl-muted); }
.rl-source.on { background: var(--rl-accent-tint); border-color: var(--rl-accent-line); color: var(--rl-accent-text); } .rl-source.on .rl-i { color: var(--rl-accent-text); }
.rl-cost { font: 500 12px/1 var(--rl-font-mono); color: var(--rl-muted); display: inline-flex; align-items: center; gap: 4px; }

/* ───────────── Containers ───────────── */
.rl-card { background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); box-shadow: var(--rl-sh-1), var(--rl-sh-inset); }
.rl-card-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rl-line); min-height: 48px; flex-wrap: wrap; }
.rl-card-h :is(h2, h3) { font-size: 14px; margin: 0; }
.rl-card-h .rl-meta { font-size: 12.5px; color: var(--rl-muted); }
.rl-card-b, .rl-card--pad { padding: 16px; }
.rl-card-f { padding: 10px 16px; border-top: 1px solid var(--rl-line); display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--rl-muted); }
.rl-card--link { display: block; color: inherit !important; text-decoration: none !important; transition: border-color var(--rl-d-fast) var(--rl-ease-out), box-shadow var(--rl-d-fast) var(--rl-ease-out); }
.rl-card--link:hover { border-color: var(--rl-line-2); box-shadow: var(--rl-sh-2); }
.rl-panel { background: var(--rl-surface-2); border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); }
.rl-grid { display: grid; gap: var(--rl-s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.rl-callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--rl-r-3); border: 1px solid var(--rl-line); background: var(--rl-surface-2); font-size: 13px; color: var(--rl-body); }
.rl-callout > .rl-i { margin-top: 2px; color: var(--rl-muted); }
.rl-callout.ok { background: var(--rl-ok-tint); border-color: var(--rl-ok-line); } .rl-callout.ok > .rl-i { color: var(--rl-ok); }
.rl-callout.warn { background: var(--rl-warn-tint); border-color: var(--rl-warn-line); } .rl-callout.warn > .rl-i { color: var(--rl-warn); }
.rl-callout.bad { background: var(--rl-bad-tint); border-color: var(--rl-bad-line); } .rl-callout.bad > .rl-i { color: var(--rl-bad); }
.rl-callout.run { background: var(--rl-run-tint); border-color: var(--rl-run-line); } .rl-callout.run > .rl-i { color: var(--rl-run); }

/* U1's banners */
.rl-banner { display: flex; gap: var(--rl-s-3); align-items: flex-start; padding: var(--rl-s-3) var(--rl-s-4); border-radius: var(--rl-r-3); background: var(--rl-surface-2); color: var(--rl-text); border: 1px solid var(--rl-line); }
.rl-banner.is-verified { background: var(--rl-ok-tint); border-color: var(--rl-ok-line); }
.rl-banner.is-changed { background: var(--rl-warn-tint); border-color: var(--rl-warn-line); }
.rl-banner.is-broken { background: var(--rl-bad-tint); border-color: var(--rl-bad-line); }

/* KPI tiles */
.rl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rl-kpi { position: relative; padding: 14px 16px 12px; border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); background: var(--rl-surface); box-shadow: var(--rl-sh-1), var(--rl-sh-inset);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; overflow: hidden; }
.rl-kpi > * { min-width: 0; }
.rl-kpi .rl-k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--rl-muted); font-weight: 500; }
.rl-kpi .rl-v { font-size: 26px; font-weight: 600; color: var(--rl-text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; display: flex; align-items: baseline; gap: 8px; }
.rl-kpi .rl-v small { font-size: 13px; font-weight: 500; color: var(--rl-muted); letter-spacing: 0; }
.rl-kpi .rl-f { font-size: 12.5px; color: var(--rl-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rl-delta { font: 500 11.5px/1 var(--rl-font-mono); padding: 3px 5px; border-radius: 4px; background: var(--rl-ok-tint); color: var(--rl-ok); }
.rl-delta.warn { background: var(--rl-warn-tint); color: var(--rl-warn); }
.rl-spark { width: 76px; height: 26px; color: var(--rl-ok-fill); margin-left: auto; flex: none; align-self: center; }
.rl-spark path.area { fill: currentColor; opacity: .12; stroke: none; }
.rl-spark path.line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }

/* Tables */
.rl-tbl-wrap { position: relative; overflow-x: auto; border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); background: var(--rl-surface); }
.rl-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.rl-tbl th { text-align: left; font-weight: 500; color: var(--rl-muted); font-size: 12px; padding: 0 12px; height: 34px; border-bottom: 1px solid var(--rl-line); white-space: nowrap; background: var(--rl-surface-2); }
.rl-tbl td { padding: 0 12px; height: 44px; border-bottom: 1px solid var(--rl-line); vertical-align: middle; }
.rl-tbl tr:last-child td { border-bottom: 0; }
.rl-tbl tbody tr:hover td { background: var(--rl-hover); }
.rl-tbl .rl-t { color: var(--rl-text); font-weight: 500; }
.rl-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); overflow: hidden; }
.rl-table th { text-align: left; font: 500 var(--rl-t-12)/1.3 var(--rl-font-sans); color: var(--rl-muted); padding: 10px 14px; border-bottom: 1px solid var(--rl-line); background: var(--rl-surface-2); }
.rl-table td { padding: 12px 14px; border-bottom: 1px solid var(--rl-line); vertical-align: top; }
.rl-table tr:last-child td { border-bottom: 0; }

/* Queue rows ("Needs you") */
.rl-q { display: grid; }
.rl-q-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--rl-line); }
.rl-q-row:last-child { border-bottom: 0; }
.rl-q-ic { width: 32px; height: 32px; border-radius: var(--rl-r-3); display: grid; place-items: center; background: var(--st-tint, var(--rl-sunk)); color: var(--st, var(--rl-muted)); border: 1px solid var(--st-line, var(--rl-line)); }
.rl-q-ic.ok { --st: var(--rl-ok); --st-tint: var(--rl-ok-tint); --st-line: var(--rl-ok-line); }
.rl-q-ic.warn { --st: var(--rl-warn); --st-tint: var(--rl-warn-tint); --st-line: var(--rl-warn-line); }
.rl-q-ic.bad { --st: var(--rl-bad); --st-tint: var(--rl-bad-tint); --st-line: var(--rl-bad-line); }
.rl-q-ic.run { --st: var(--rl-run); --st-tint: var(--rl-run-tint); --st-line: var(--rl-run-line); }
.rl-q-ic.env { --st: var(--rl-draft); --st-tint: var(--rl-draft-tint); --st-line: var(--rl-line-2); }
.rl-q-t { font-size: 13.5px; font-weight: 500; color: var(--rl-text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rl-q-why { font-size: 13px; color: var(--rl-muted); margin-top: 2px; }

/* Activity feed */
.rl-feed { display: grid; }
.rl-feed-i { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 8px 0; position: relative; font-size: 13px; }
.rl-feed-i::before { content: ""; position: absolute; left: 9.5px; top: 30px; bottom: -6px; width: 1px; background: var(--rl-line); }
.rl-feed-i:last-child::before { display: none; }
.rl-feed-i .rl-fi { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--rl-sunk); color: var(--rl-muted); border: 1px solid var(--rl-line); margin-top: 1px; }
.rl-feed-i .rl-fi .rl-i { width: 11px; height: 11px; stroke-width: 2.2; }
.rl-feed-i .rl-fi.ok { color: var(--rl-ok); background: var(--rl-ok-tint); border-color: var(--rl-ok-line); }
.rl-feed-i .rl-fi.warn { color: var(--rl-warn); background: var(--rl-warn-tint); border-color: var(--rl-warn-line); }
.rl-feed-i .rl-fi.run { color: var(--rl-run); background: var(--rl-run-tint); border-color: var(--rl-run-line); }
.rl-feed-i .rl-fi.bad { color: var(--rl-bad); background: var(--rl-bad-tint); border-color: var(--rl-bad-line); }
.rl-feed-i .rl-when { color: var(--rl-faint); font-size: 12px; font-family: var(--rl-font-mono); }

/* Empty state */
.rl-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 28px 20px; border: 1px dashed var(--rl-line-2); border-radius: var(--rl-r-4); background: var(--rl-surface-2); color: var(--rl-muted); }
.rl-empty .rl-ill { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--rl-surface); border: 1px solid var(--rl-line); box-shadow: var(--rl-sh-2); color: var(--rl-muted); margin-bottom: 4px; }
.rl-empty :is(h2, h3, .rl-h2) { font-size: 14px; color: var(--rl-text); margin: 0; }
.rl-empty p { font-size: 13px; color: var(--rl-muted); max-width: 42ch; margin: 0; }

/* Progress, live, loading */
.rl-skel { border-radius: 4px; background: linear-gradient(90deg, var(--rl-sunk) 0%, var(--rl-line) 50%, var(--rl-sunk) 100%); background-size: 200% 100%; animation: rl-shimmer 1.4s linear infinite; height: 10px; }
@keyframes rl-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.rl-bar { height: 6px; border-radius: 99px; background: var(--rl-sunk); overflow: hidden; border: 1px solid var(--rl-line); }
.rl-bar > i { display: block; height: 100%; width: var(--v, 50%); background: var(--rl-ok-fill); border-radius: 99px; transition: width var(--rl-d-slow) var(--rl-ease-out); }
.rl-bar.run > i { background: var(--rl-run-fill); }
.rl-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--rl-run-fill); flex: none; }
.rl-live::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--rl-run-fill); opacity: 0; animation: rl-pulse 1.8s var(--rl-ease-out) infinite; }
.rl-live.ok { background: var(--rl-ok-fill); } .rl-live.ok::after { border-color: var(--rl-ok-fill); }
@keyframes rl-pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.rl-spin { animation: rl-spin 1s linear infinite; }
@keyframes rl-spin { to { transform: rotate(360deg); } }
.rl-pop { position: absolute; z-index: var(--rl-z-pop); background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); box-shadow: var(--rl-sh-3); padding: 14px; width: 340px; max-width: calc(100vw - 32px); font-size: 13px; }

/* Code */
.rl-code { background: var(--rl-code-bg); color: var(--rl-code-text); font: 12.5px/1.65 var(--rl-font-mono); padding: 14px 16px; border-radius: var(--rl-r-4); overflow-x: auto; border: 1px solid var(--rl-code-line); white-space: pre; }
.rl-code .k { color: var(--rl-code-key); } .rl-code .s { color: var(--rl-code-str); } .rl-code .n { color: var(--rl-code-num); } .rl-code .c { color: var(--rl-code-muted); }

/* ───────────── Captured screens ───────────── */
.rl-shot { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden; background: var(--rl-stage); isolation: isolate; }
.rl-shot > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.rl-frame { border: 1px solid var(--rl-line); border-radius: var(--rl-r-3); overflow: hidden; background: var(--rl-surface); box-shadow: var(--rl-sh-1); }
.rl-tap { position: absolute; z-index: 4; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: color-mix(in srgb, var(--rl-ring) 30%, transparent);
  border: 2px solid var(--rl-halo); box-shadow: 0 0 0 1px color-mix(in srgb, var(--rl-ring) 70%, transparent); pointer-events: none; }
.rl-shot-tag { position: absolute; z-index: 5; left: 8px; top: 8px; font: 500 11px/1 var(--rl-font-sans); color: var(--rl-on-stage); background: var(--rl-scrim); padding: 5px 7px; border-radius: 5px; }

/* The step card: the captured screen, the ring where to act, the sentence (U1). */
.rl-step { display: grid; gap: var(--rl-s-3); }
.rl-step-shot { position: relative; margin: 0; border-radius: var(--rl-r-3); overflow: hidden; background: var(--rl-stage); border: 1px solid var(--rl-line); }
.rl-step-shot img { display: block; width: 100%; height: auto; }
.rl-step-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--rl-text); color: var(--rl-bg); font: 600 var(--rl-t-12)/1 var(--rl-font-sans); flex: none; }
.rl-step-text { display: flex; gap: var(--rl-s-3); align-items: flex-start; color: var(--rl-text); font-weight: 500; font-size: var(--rl-t-15); }
/* The ring readers see: a halo keeps it visible on any screenshot. */
.rl-ring { position: absolute; border: 2.5px solid var(--rl-ring); border-radius: 8px; box-shadow: 0 0 0 2px var(--rl-halo), 0 0 0 7px var(--rl-ring-glow); pointer-events: none;
  animation: rl-ring 1.8s var(--rl-ease-out) infinite; }
.rl-ring.still { animation: none; }
.rl-ring.warn { border-color: var(--rl-warn-fill); box-shadow: 0 0 0 2px var(--rl-halo), 0 0 0 7px color-mix(in srgb, var(--rl-warn-fill) 30%, transparent); }
@keyframes rl-ring { 50% { box-shadow: 0 0 0 2px var(--rl-halo), 0 0 0 12px transparent; } }
.rl-step.is-changed .rl-step-shot { outline: 2px dashed var(--rl-warn-fill); outline-offset: -2px; }
.rl-step.is-changed .rl-step-shot img { filter: saturate(.55); outline: 0; }

/* The citation chip: which step a claim stands on. */
.rl-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px 0 5px; margin: 0 2px; vertical-align: 1px; border-radius: var(--rl-r-pill); border: 1px solid var(--rl-ok-line);
  background: var(--rl-ok-tint); color: var(--rl-ok); font: 500 11px/1 var(--rl-font-sans); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.rl-chip::before { content: "✓"; font-weight: 700; }
.rl-chip:hover { border-color: var(--rl-ok-fill); }

/* The verified badge, with what was checked in its popover (a <details>). */
.rl-badge { position: relative; display: inline-block; }
.rl-badge > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: var(--rl-r-pill);
  background: var(--rl-ok-tint); color: var(--rl-ok); font: 500 var(--rl-t-13)/1.2 var(--rl-font-sans); cursor: pointer; border: 1px solid var(--rl-ok-line); }
.rl-badge > summary::-webkit-details-marker { display: none; }
.rl-badge > summary::before { content: "✓"; width: 16px; height: 16px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--rl-ok-fill); color: var(--rl-on-seal); font: 700 10px/1 var(--rl-font-sans); }
.rl-badge.is-changed > summary { background: var(--rl-warn-tint); color: var(--rl-warn); border-color: var(--rl-warn-line); }
.rl-badge.is-changed > summary::before { content: "!"; background: var(--rl-warn-fill); color: var(--rl-ink); }
.rl-badge.is-broken > summary { background: var(--rl-bad-tint); color: var(--rl-bad); border-color: var(--rl-bad-line); }
.rl-badge.is-broken > summary::before { content: "!"; background: var(--rl-bad-fill); color: var(--rl-on-accent); }
.rl-badge.is-draft > summary { background: var(--rl-draft-tint); color: var(--rl-draft); border-color: var(--rl-draft-line); }
.rl-badge.is-draft > summary::before { content: "–"; background: var(--rl-draft-fill); color: var(--rl-ink); }
/* With the proof mark in it, the mark says the state: no second sign. */
.rl-badge > summary:has(> .rl-ooo)::before { content: none; display: none; }
.rl-badge-pop { position: absolute; z-index: var(--rl-z-pop); top: calc(100% + 8px); left: 0; width: min(360px, 86vw); padding: var(--rl-s-4); background: var(--rl-surface);
  border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); box-shadow: var(--rl-sh-3); color: var(--rl-body); font-size: var(--rl-t-13); }
.rl-badge-pop dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: var(--rl-s-3) 0 0; }
.rl-badge-pop dt { color: var(--rl-muted); } .rl-badge-pop dd { margin: 0; color: var(--rl-text); }
/* U9: what "verified" means on this page, a line each. */
.rl-badge > summary::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }
.rl-badge[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.rl-badge-pop { border-color: var(--rl-ok-line); }
.rl-badge-pop > strong { display: block; color: var(--rl-text); font-size: var(--rl-t-14); }
.rl-badge-chks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.rl-badge-chks li { position: relative; padding-left: 24px; line-height: 1.5; color: var(--rl-body); }
.rl-badge-chks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--rl-ok-fill); color: var(--rl-on-seal); font: 700 10px/1 var(--rl-font-sans); }
.rl-badge-chks li.bad::before { content: "!"; background: var(--rl-bad-fill); color: var(--rl-on-accent); }
.rl-badge-chks li.not::before { content: "–"; background: var(--rl-draft-fill); color: var(--rl-ink); }
.rl-badge-chks li.warn::before { content: "!"; background: var(--rl-warn-fill); color: var(--rl-ink); }
.rl-badge-chks b { color: var(--rl-text); font-weight: 600; }

/* Before / after: two captures, a slider between them. */
.rl-ba { position: relative; border-radius: var(--rl-r-3); overflow: hidden; background: var(--rl-stage); border: 1px solid var(--rl-line); --rl-ba: 50%; user-select: none; }
.rl-ba img { display: block; width: 100%; height: auto; }
.rl-ba .rl-ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--rl-ba)); }
.rl-ba .rl-ba-after img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.rl-ba .rl-ba-line { position: absolute; top: 0; bottom: 0; left: var(--rl-ba); width: 2px; margin-left: -1px; background: var(--rl-halo); box-shadow: 0 0 0 1px var(--rl-scrim); pointer-events: none; }
.rl-ba .rl-ba-line::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--rl-surface); color: var(--rl-text); box-shadow: var(--rl-sh-2); font-size: 14px; }
.rl-ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.rl-ba-tag { position: absolute; top: 8px; padding: 3px 8px; border-radius: var(--rl-r-pill); background: var(--rl-scrim); color: var(--rl-on-stage); font: 500 11px/1.2 var(--rl-font-sans); pointer-events: none; }
.rl-ba-tag.is-before { left: 8px; } .rl-ba-tag.is-after { right: 8px; }

/* The voice state: idle, listening, thinking, speaking. */
.rl-voice { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border-radius: var(--rl-r-pill); border: 1px solid var(--rl-line-2);
  background: var(--rl-surface); color: var(--rl-text); font: 500 var(--rl-t-13)/1 var(--rl-font-sans); cursor: pointer; }
.rl-voice .rl-bars { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.rl-voice .rl-bars i { width: 3px; height: 30%; border-radius: 2px; background: currentColor; transition: height var(--rl-d-fast) linear; }
.rl-voice[data-state=listening] { background: var(--rl-bad-fill); border-color: var(--rl-bad-fill); color: var(--rl-on-accent); }
.rl-voice[data-state=thinking] .rl-bars i { animation: rl-think 1s var(--rl-ease-out) infinite; }
.rl-voice[data-state=thinking] .rl-bars i:nth-child(2) { animation-delay: .12s; } .rl-voice[data-state=thinking] .rl-bars i:nth-child(3) { animation-delay: .24s; }
.rl-voice[data-state=speaking] { background: var(--rl-run-tint); border-color: var(--rl-run-fill); color: var(--rl-run); }
.rl-voice[data-state=speaking] .rl-bars i { animation: rl-speak .9s ease-in-out infinite; }
.rl-voice[data-state=speaking] .rl-bars i:nth-child(2) { animation-delay: .2s; } .rl-voice[data-state=speaking] .rl-bars i:nth-child(3) { animation-delay: .4s; }
@keyframes rl-think { 50% { height: 90%; opacity: .5; } }
@keyframes rl-speak { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* The verified guide: a certified flow as a block, wherever it's shown (U2). */
.rl-guide { margin: var(--rl-s-6) 0 var(--rl-s-8); }
.rl-guide > .rv-mark { display: flex; align-items: center; margin: 0 0 var(--rl-s-4); background: none; padding: 0; }
.rl-guide > .rv-facts { margin: calc(var(--rl-s-4) * -0.5) 0 var(--rl-s-4); font-size: 13px; color: var(--rl-muted); }
.rl-guide .rl-banner { margin: 0 0 var(--rl-s-4); font-size: var(--rl-t-15); line-height: 1.55; }
.rl-guide-player { margin: 0 0 var(--rl-s-8); container-type: inline-size; }
.rl-guide-player reel-player { display: block; min-height: min(calc(62.5cqw + 150px), calc(100svh - 60px)); }
.rl-guide .rl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rl-s-8); }
.rl-guide .rl-steps > li { margin: 0; padding: 0; scroll-margin-top: 84px; }
.rl-guide .rl-steps > li::marker { content: none; }
.rl-guide .rl-step-text { margin: 0 0 var(--rl-s-3); line-height: 1.45; }
.rl-guide .rl-step-shot img { border: 0; border-radius: 0; margin: 0; }
.rl-guide .rl-step-note { margin: var(--rl-s-2) 0 0; font-size: var(--rl-t-13); color: var(--rl-warn); }
.rl-guide .rl-step:target .rl-step-shot { box-shadow: 0 0 0 3px var(--rl-focus-ring); }
.rl-guide .rv-kicker { font: 600 var(--rl-t-12)/1.2 var(--rl-font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--rl-muted); }
.rl-guide-end { margin: var(--rl-s-8) 0 0; }
.rl-guide-end figcaption { margin: 0 0 var(--rl-s-2); }
.rl-guide .rv-before { margin: 0 0 var(--rl-s-6); padding: var(--rl-s-3) var(--rl-s-4); border-radius: var(--rl-r-3); background: var(--rl-sunk); }
.rl-guide .rv-before ul { margin: 4px 0 0; padding-left: 18px; }
.rl-guide .rv-foot { margin-top: var(--rl-s-8); padding-top: var(--rl-s-4); border-top: 1px solid var(--rl-line); font-size: var(--rl-t-13); color: var(--rl-muted); }
.rl-guide .rl-badge-pop p { margin: 6px 0 0; line-height: 1.5; }

/* ───────────── Responsive ───────────── */
@media (max-width: 1180px) {
  .rl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rl-app { grid-template-columns: minmax(0, 1fr); }
  /* Closed, the drawer is hidden, so Tab never lands in it (visibility waits for the slide out). */
  .rl-side { position: fixed; left: 0; top: 0; bottom: 0; width: 284px; max-width: 86vw; z-index: var(--rl-z-drawer); transform: translateX(-100%); visibility: hidden;
    transition: transform var(--rl-d-base) var(--rl-ease-in), visibility 0s linear var(--rl-d-base); box-shadow: var(--rl-sh-3); }
  .rl-app.nav-open .rl-side { transform: none; visibility: visible; transition: transform var(--rl-d-base) var(--rl-ease-out), visibility 0s; }
  .rl-app.nav-open .rl-overlay { display: block; position: fixed; inset: 0; background: var(--rl-overlay); z-index: calc(var(--rl-z-drawer) - 1); }
  .rl-main { margin: 0; border-radius: 0; border: 0; min-height: 100dvh; }
  .rl-top { border-radius: 0; padding: 0 12px; }
  .rl-menu-btn, .rl-close-btn { display: inline-flex !important; }
  .rl-content { padding: 16px 16px 40px; }
}
@media (max-width: 560px) {
  .rl-app { font-size: 15px; }
  .rl-kpis { gap: 8px; }
  .rl-kpi { padding: 12px; } .rl-kpi .rl-v { font-size: 22px; }
  .rl-spark { width: 56px; }
  .rl-ph h1 { font-size: 21px; }
  .rl-input, .rl-field input:not([type=checkbox]):not([type=radio]), .rl-field select { font-size: 16px; height: 44px; }
  .rl-q-row { grid-template-columns: 32px minmax(0, 1fr); }
  .rl-q-row > :last-child { grid-column: 2; justify-self: start; }
  .rl-hide-sm { display: none !important; }
  /* The breadcrumb keeps the way back: the page above this one, with a chevron. */
  .rl-crumbs li:not(.rl-up):not(.rl-cur) { display: none; }
  .rl-crumbs li.rl-up::before, .rl-crumbs li.rl-up + li::before { content: none; }
  .rl-crumbs .rl-up-i { display: block; }
  .rl-crumbs li.rl-up:has(+ .rl-cur) ~ .rl-cur { display: none; }
}
@media (pointer: coarse) {
  .rl-btn { min-height: 40px; } .rl-btn-icon { min-width: 40px; }
  .rl-nav a { height: 40px; }
  .rl-seg button, .rl-tabs > * { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .rl-ring, .rl-voice .rl-bars i, .rl-live::after, .rl-skel, .rl-spin { animation: none !important; }
  .rl-side { transition: none !important; }
}

/* ───────────── coool.im: the console's look and the reworked shell (docs/mockups/coool) ─────────────
   Written after the rules above so it wins without touching them; folded in as pages are ported. */
.rl-display { font-weight: 600; letter-spacing: -.025em; font-variation-settings: normal; }
.rl-h1 { font: 600 var(--rl-t-30)/1.15 var(--rl-font-display); letter-spacing: -.025em; font-variation-settings: normal; }
.rl-lede { font-size: var(--rl-t-15); line-height: 1.55; max-width: 62ch; }

/* The page sits on the canvas, as in the console: no inset panel. */
.rl-app { grid-template-columns: 264px minmax(0, 1fr); }
.rl-main { margin: 0; background: var(--rl-bg); border: 0; border-left: 1px solid var(--rl-line); border-radius: 0; box-shadow: none; min-height: 100dvh; }
.rl-top { min-height: 56px; padding: 0 20px 0 28px; background: color-mix(in srgb, var(--rl-bg) 90%, transparent); border-radius: 0; }
.rl-content { padding: 32px 40px 72px; max-width: 1240px; }
.rl-card { box-shadow: var(--rl-sh-1); }

/* One orange button; its label is dark so it passes contrast on the bright fill. */
.rl-btn { border-radius: var(--rl-r-3); }
.rl-btn-primary, .rl-btn--primary { background: linear-gradient(180deg, var(--rl-accent) 0%, var(--rl-accent-2) 100%); border-color: var(--rl-accent-2); font-weight: 600;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--rl-surface) 32%, transparent), var(--rl-sh-1); }
.rl-btn-primary:hover, .rl-btn--primary:hover { background: linear-gradient(180deg, var(--rl-accent-hover) 0%, var(--rl-accent) 100%); }
.rl-seg button[aria-pressed="true"], .rl-seg button[aria-selected="true"], .rl-tabs > [aria-selected="true"], .rl-tabs > [aria-current] { box-shadow: 0 0 0 1px var(--rl-line-2), var(--rl-sh-1); }

/* The sidebar: the workspace at the top, a few groups, parts that open in place. */
.rl-side { padding: 12px; gap: 0; }
.rl-side-top { margin-bottom: 8px; }
.rl-ws { gap: 10px; padding: 8px; min-height: 44px; }
.rl-ws-name { font-size: 14.5px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-mark { width: auto; height: auto; border-radius: 0; background: none; display: inline-flex; align-items: center; gap: 2.5px; padding: 0 2px; }
.rl-mark i { width: 8px; height: 8px; border-radius: 50%; border: 1.6px dashed var(--rl-muted); }
.rl-mark i:nth-child(2) { border-style: solid; border-color: var(--rl-text); }
.rl-mark i:nth-child(3) { border: 0; background: var(--rl-accent); }
.rl-nav-h { font-size: 13px; font-weight: 400; color: var(--rl-muted); padding: 18px 10px 6px; }
.rl-nav a { height: 34px; gap: 12px; font-size: 14px; border-radius: var(--rl-r-3); }
.rl-nav a .rl-chev { margin-left: auto; color: var(--rl-muted); }
.rl-nav a .rl-count + .rl-chev { margin-left: 8px; }
.rl-nav-sub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin: 2px 0 6px 18px; padding-left: 12px; border-left: 1px solid var(--rl-line); }
.rl-nav .rl-nav-sub a { height: 32px; font-size: 13.5px; font-weight: 400; }
.rl-nav .rl-nav-sub a[aria-current] { font-weight: 500; }
.rl-count { font-family: var(--rl-font-sans); font-variant-numeric: tabular-nums; }
.rl-side-foot { gap: 10px; padding-top: 16px; }
.rl-start { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 11px 12px; border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); background: var(--rl-surface); box-shadow: var(--rl-sh-1); text-decoration: none !important; color: inherit; }
.rl-start:hover { border-color: var(--rl-line-2); }
.rl-start b { font-size: 13.5px; font-weight: 600; color: var(--rl-text); }
.rl-start span { font-size: 12.5px; color: var(--rl-muted); line-height: 1.35; }
.rl-side-end { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; }
.rl-side-end .rl-nav { flex: 1; }
.rl-collapse { flex: none; } .rl-collapse .rl-i { transition: transform var(--rl-d-fast) var(--rl-ease-out); }
/* The sidebar collapsed to its icons (wide screens only; narrow ones use the drawer). Names stay
   for screen readers, and show as tooltips. */
@media (min-width: 901px) {
  html[data-side="min"] .rl-app { grid-template-columns: 60px minmax(0, 1fr); }
  html[data-side="min"] .rl-side { padding: 12px 8px; overflow-x: hidden; }
  html[data-side="min"] .rl-nav-h, html[data-side="min"] .rl-nav-sub, html[data-side="min"] .rl-count, html[data-side="min"] .rl-chev,
  html[data-side="min"] .rl-search kbd, html[data-side="min"] .rl-start, html[data-side="min"] .rl-wm, html[data-side="min"] .rl-dot-end { display: none !important; }
  html[data-side="min"] .rl-ws-n, html[data-side="min"] .rl-nav a > span, html[data-side="min"] .rl-search > span, html[data-side="min"] .rl-rec-t > span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html[data-side="min"] .rl-nav a, html[data-side="min"] .rl-search, html[data-side="min"] .rl-rec-t, html[data-side="min"] .rl-ws { justify-content: center; padding: 0; gap: 0; }
  html[data-side="min"] .rl-side-end { flex-direction: column; }
  html[data-side="min"] .rl-collapse .rl-i { transform: rotate(180deg); }
}
@media (max-width: 900px) { .rl-collapse { display: none !important; } }
/* The wordmark: c, the three marks of proof (drafted, verified, certified), l. */
.rl-wm { display: inline-flex; align-items: center; gap: .09em; font: 600 17px/1 var(--rl-font-sans); letter-spacing: -.045em; color: var(--rl-muted); text-decoration: none !important; }
.rl-wm i { width: .56em; height: .56em; border-radius: 50%; margin-top: .14em; flex: none; border: .1em solid currentColor; }
.rl-wm i:nth-of-type(1) { border-style: dashed; opacity: .6; }
.rl-wm i:nth-of-type(3) { border: 0; background: var(--rl-accent); }
.rl-wm:hover { color: var(--rl-text); }
.rl-bare-brand .rl-wm { font-size: 24px; color: var(--rl-text); }
.rl-top-me { display: inline-flex; margin-left: 6px; border-radius: 50%; text-decoration: none !important; }
.rl-top-me .rl-av { background: var(--rl-text); color: var(--rl-bg); }
@media (max-width: 900px) { .rl-main { border-left: 0; } .rl-content { padding: 22px 16px 56px; } .rl-top { padding: 0 12px; } }
.rl-nav-sub a { min-width: 0; } .rl-nav-sub a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-top-me[aria-current] .rl-av { box-shadow: 0 0 0 2px var(--rl-bg), 0 0 0 4px var(--rl-text); }
.rl-start[aria-current] { border-color: var(--rl-text); }

/* The mockup's shell (docs/mockups/coool/assets/coool.css): quick search, Recents, the
   environments folding under Manage, the start card's meter, Ask AI and the theme in the top bar. */
.rl-search { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 6px; padding: 0 10px; height: 36px; border-radius: var(--rl-r-3); border: 1px solid var(--rl-line); background: var(--rl-surface); color: var(--rl-muted); font: 400 14px var(--rl-font-sans); cursor: pointer; text-align: left; }
.rl-search:hover { border-color: var(--rl-line-2); color: var(--rl-body); }
.rl-search kbd { margin-left: auto; font: 500 11px var(--rl-font-sans); color: var(--rl-faint); }
.rl-nav .rl-rec-t { display: flex; align-items: center; gap: 12px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: var(--rl-r-3); background: none; color: var(--rl-body); font: 500 14px var(--rl-font-sans); cursor: pointer; text-align: left; }
.rl-nav .rl-rec-t .rl-i { color: var(--rl-muted); }
.rl-nav .rl-rec-t:hover { background: var(--rl-hover); color: var(--rl-text); }
.rl-nav .rl-rec-t .rl-chev { margin-left: auto; transition: transform var(--rl-d-fast, .12s); }
.rl-nav .rl-rec-t.is-open .rl-chev { transform: rotate(90deg); }
.rl-recents .rl-nav-sub a { height: auto; min-height: 32px; padding: 5px 10px; align-items: flex-start; }
.rl-recents .rl-nav-sub a > span { display: grid; min-width: 0; }
.rl-recents .rl-nav-sub b { font-weight: 500; color: var(--rl-text); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-recents .rl-nav-sub small { font-size: 12px; color: var(--rl-muted); line-height: 1.3; }
.rl-nav .rl-dot-end { margin-left: auto; }
.rl-nav .rl-dot-end ~ .rl-chev { margin-left: 8px; }
.rl-nav .rl-nav-sub .rl-prod { height: auto; min-height: 30px; font-weight: 400; }
.rl-nav .rl-nav-sub .rl-prod-add { color: var(--rl-muted); gap: 8px; }
.rl-start { position: relative; }
.rl-start .rl-bar { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--rl-line); overflow: hidden; }
.rl-start .rl-bar i { display: block; height: 100%; background: var(--rl-accent); border-radius: 2px; }
.rl-count.warn, .rl-count.bad { background: var(--rl-accent); color: var(--rl-on-accent); border-color: transparent; font-weight: 600; }
.rl-top-ask { gap: 6px; }
.rl-top-ask .rl-i { width: 15px; height: 15px; }
.rl-theme[hidden] { display: none; }
.rl-theme .rl-i { display: none; }
:root:not([data-theme]) .rl-theme .rl-i-mon, :root[data-theme="light"] .rl-theme .rl-i-sun, :root[data-theme="dark"] .rl-theme .rl-i-moon { display: block; }
.rl-cmd { width: min(620px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 96px)); margin: 12vh auto auto; padding: 0; border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); background: var(--rl-surface); color: var(--rl-body); box-shadow: var(--rl-sh-3); overflow: hidden; }
.rl-cmd[open] { display: flex; flex-direction: column; }
.rl-cmd::backdrop { background: var(--rl-scrim); }
.rl-cmd-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px; border-bottom: 1px solid var(--rl-line); color: var(--rl-muted); }
.rl-cmd-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--rl-text); font: 400 15px var(--rl-font-sans); }
.rl-cmd-in kbd { font: 500 11px var(--rl-font-sans); color: var(--rl-faint); border: 1px solid var(--rl-line); border-radius: 4px; padding: 1px 5px; }
.rl-cmd ul { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.rl-cmd li a { display: flex; align-items: baseline; gap: 10px; padding: 9px 10px; border-radius: var(--rl-r-2); color: var(--rl-text); text-decoration: none !important; }
.rl-cmd li a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-cmd li a small { margin-left: auto; flex: none; color: var(--rl-muted); font-size: 12px; }
.rl-cmd li[aria-selected="true"] a { background: var(--rl-active); }
.rl-cmd .rl-cmd-none { padding: 18px 10px; color: var(--rl-muted); }
.rl-cmd-foot { margin: 0; padding: 8px 14px; border-top: 1px solid var(--rl-line); font-size: 12px; color: var(--rl-faint); }

/* The proof mark: drafted, verified, certified, watched; screens changed; broke. */
.rl-ooo { display: inline-flex; align-items: center; gap: 3px; flex: none; vertical-align: -1px; }
.rl-ooo i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px dashed var(--rl-draft-fill, var(--rl-faint)); box-sizing: border-box; }
.rl-ooo[data-at="1"] i:nth-child(1), .rl-ooo[data-at="2"] i:nth-child(-n+2), .rl-ooo[data-at="3"] i { border-style: solid; border-color: var(--rl-ok-fill); }
.rl-ooo[data-at="2"] i:nth-child(-n+2), .rl-ooo[data-at="3"] i { background: var(--rl-ok-fill); }
.rl-ooo[data-at="warn"] i { border-style: solid; border-color: var(--rl-warn-fill); background: var(--rl-warn-fill); }
.rl-ooo[data-at="warn"] i:last-child { background: transparent; }
.rl-ooo[data-at="bad"] i { border-style: solid; border-color: var(--rl-bad-fill); }
.rl-ooo[data-at="bad"] i:first-child { background: var(--rl-bad-fill); }
.rl-ooo.lg { gap: 4px; } .rl-ooo.lg i { width: 13px; height: 13px; border-width: 2px; }

/* Reel UI v2 — screen-level patterns, on the tokens and components (U7 on). From the mockups'
   patterns.css, with the same naming rule as components.css: mockup `.x` is `.rl-x`. Where a name
   was taken, it differs: the step log is `.rl-slog` (`.rl-steps` is U1's step list), a step in it
   is `.rl-sl`, and the proof pane is `.rl-pp`. */

/* ───────────── The flow page (U7) ───────────── */
.rl-fh { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; margin-bottom: 16px; }
.rl-fh h1 { font-size: 26px; letter-spacing: -.022em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.rl-goal { color: var(--rl-body); font-size: 14.5px; margin: 6px 0 0; max-width: 70ch; }
.rl-meta-row { display: flex; gap: 6px 16px; flex-wrap: wrap; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--rl-muted); }
.rl-meta-row > li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.rl-meta-row .rl-i { width: 14px; height: 14px; flex: none; }
/* U9: the flow's area, and the form that moves it. */
.rl-area { position: relative; } .rl-area[open] { width: 100%; }
.rl-area > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; border-radius: var(--rl-r-2); padding: 2px 4px; margin: -2px -4px; }
.rl-area > summary::-webkit-details-marker { display: none; }
.rl-area > summary:hover { background: var(--rl-hover); color: var(--rl-text); }
.rl-area-ed { display: inline-flex; color: var(--rl-faint); }
/* Open, the form takes the header's row, so it fits a phone wherever the area sits. */
.rl-meta-row > li:has(> .rl-area[open]) { flex-basis: 100%; }
.rl-area:not([open]) > .rl-area-f { display: none; }
.rl-area-f { margin-top: 8px; width: min(420px, 100%); display: grid; gap: 6px; padding: 12px; background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); box-shadow: var(--rl-sh-2); }
.rl-area-f .rl-row { display: flex; gap: 6px; } .rl-area-f .rl-input { flex: 1; min-width: 0; }
.rl-area-f .rl-hint { margin: 0; font-size: 12px; color: var(--rl-muted); }
.rl-fh .rl-ph-actions { justify-content: flex-end; }
.rl-fh .rl-ph-actions form { margin: 0; }
.rl-fh + .rl-tabbar { margin-bottom: 20px; }
.rl-callout + .rl-fh, .rl-callout + .rl-ph { margin-top: 16px; }
.rl-callout + .rl-proof { margin-top: 12px; }
/* Cards and steps that are links read as text, not as links. */
a.rl-sl, a.rl-film-i, a.rl-out, .rl-twin a.rl-frame { color: var(--rl-text); }

/* The proof ladder: how the flow earned trust, with dates. */
.rl-proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); background: var(--rl-surface-2); overflow: hidden; }
.rl-pstep { position: relative; padding: 14px 16px; display: grid; gap: 4px; align-content: start; border-right: 1px solid var(--rl-line); min-width: 0; }
.rl-pstep:last-child { border-right: 0; }
.rl-pt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--rl-text); }
.rl-pn { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 600 11px/1 var(--rl-font-mono);
  background: var(--rl-sunk); color: var(--rl-muted); border: 1px solid var(--rl-line-2); }
.rl-pn .rl-i { width: 13px; height: 13px; stroke-width: 2.4; }
.rl-pstep.is-done .rl-pn { background: var(--rl-ok-tint); color: var(--rl-ok); border-color: var(--rl-ok-line); }
.rl-pstep.is-warn .rl-pn { background: var(--rl-warn-tint); color: var(--rl-warn); border-color: var(--rl-warn-line); }
.rl-pstep.is-bad .rl-pn { background: var(--rl-bad-tint); color: var(--rl-bad); border-color: var(--rl-bad-line); }
.rl-pd { font-size: 12.5px; color: var(--rl-muted); overflow-wrap: anywhere; }
.rl-pd b { color: var(--rl-body); font-weight: 500; }
.rl-pstep::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; background: var(--rl-surface-2); border-top: 1px solid var(--rl-line); border-right: 1px solid var(--rl-line); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.rl-pstep:last-child::after { display: none; }

/* The replay: toolbar, filmstrip, timing ruler, then the step log, the stage and the proof. */
.rl-replay [hidden] { display: none !important; }
.rl-replay { border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); background: var(--rl-surface); overflow: hidden; box-shadow: var(--rl-sh-1); }
.rl-replay-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--rl-line); flex-wrap: wrap; background: var(--rl-surface-2); }
.rl-replay-bar .rl-tabs > a { text-decoration: none; }
.rl-replay-bar .rl-tabs .rl-i { width: 13px; height: 13px; }
.rl-replay-note { padding: 10px 12px; border-bottom: 1px solid var(--rl-line); }
.rl-replay-note .rl-callout { margin: 0; }
.rl-film { display: flex; gap: 8px; padding: 12px; overflow-x: auto; border-bottom: 1px solid var(--rl-line); scroll-snap-type: x proximity; }
.rl-film-i { flex: 0 0 156px; display: block; padding: 0; border: 1px solid var(--rl-line); border-radius: var(--rl-r-3); background: var(--rl-surface); color: inherit; text-decoration: none !important; overflow: hidden; scroll-snap-align: start; transition: border-color var(--rl-d-fast), box-shadow var(--rl-d-fast); }
.rl-film-i:hover { border-color: var(--rl-line-2); }
.rl-film-i[aria-current] { border-color: var(--rl-accent); box-shadow: 0 0 0 1px var(--rl-accent); }
.rl-film-i .rl-shot { border-bottom: 1px solid var(--rl-line); }
.rl-film-i.is-bad { border-color: var(--rl-bad-line); }
.rl-fc { display: flex; justify-content: space-between; gap: 6px; padding: 6px 8px; font-size: 11.5px; color: var(--rl-muted); }
.rl-fc b { color: var(--rl-text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rl-fc > span { white-space: nowrap; flex: none; }
.rl-fc .ok { color: var(--rl-ok); } .rl-fc .bad { color: var(--rl-bad); } .rl-fc .warn { color: var(--rl-warn); }
.rl-shot-none { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center; font-size: 11.5px; color: var(--rl-on-stage); }
.rl-ruler { position: relative; height: 34px; margin: 0 12px; border-bottom: 1px solid var(--rl-line); }
.rl-ruler-ticks { position: absolute; inset: 0 0 auto 0; height: 14px; display: flex; justify-content: space-between; font: 10.5px var(--rl-font-mono); color: var(--rl-faint); }
.rl-ruler-seg { position: absolute; bottom: 6px; height: 10px; min-width: 2px; border-radius: 3px; background: var(--rl-ok-tint); border: 1px solid var(--rl-ok-line); }
.rl-ruler-seg.nav { background: var(--rl-sunk); border-color: var(--rl-line-2); }
.rl-ruler-seg.bad { background: var(--rl-bad-tint); border-color: var(--rl-bad-line); }
.rl-ruler-seg.on { background: var(--rl-accent-tint); border-color: var(--rl-accent-text); }
.rl-ruler-seg.bad.on { background: var(--rl-bad-tint); border-color: var(--rl-accent); box-shadow: 0 0 0 1px var(--rl-accent); }
.rl-stage-area { background: var(--rl-sunk); min-width: 0; }
.rl-replay-body { display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; min-height: 520px; }

/* The step log: one link per step, so each has an address; ← and → move through it. */
/* The log scrolls in its own box beside the stage, with a shadow where there's more. */
.rl-slog { border-right: 1px solid var(--rl-line); overflow-y: auto; min-width: 0; max-height: max(520px, calc(100vh - 140px)); overscroll-behavior: contain;
  background: linear-gradient(var(--rl-surface) 30%, transparent) top / 100% 28px no-repeat local, linear-gradient(transparent, var(--rl-surface) 70%) bottom / 100% 28px no-repeat local,
  radial-gradient(farthest-side at 50% 0, var(--rl-line-2), transparent) top / 100% 10px no-repeat scroll, radial-gradient(farthest-side at 50% 100%, var(--rl-line-2), transparent) bottom / 100% 10px no-repeat scroll, var(--rl-surface); }
.rl-slog ol { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.rl-slog li { display: block; min-width: 0; }
.rl-slog-h { margin: 8px 10px 2px; font: 600 11px/1.3 var(--rl-font-sans); text-transform: uppercase; letter-spacing: .05em; color: var(--rl-muted); }
.rl-sl { width: 100%; border-radius: var(--rl-r-3); padding: 8px 10px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: start; color: inherit; text-decoration: none !important; transition: background var(--rl-d-fast); }
.rl-sl:hover { background: var(--rl-hover); }
.rl-sl[aria-current] { background: var(--rl-accent-tint); box-shadow: inset 0 0 0 1px var(--rl-accent-line); }
.rl-sn { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font: 600 11px/1 var(--rl-font-mono); background: var(--rl-sunk); color: var(--rl-muted); border: 1px solid var(--rl-line); margin-top: 1px; }
.rl-sn .rl-i { width: 12px; height: 12px; stroke-width: 2.4; }
.rl-sl[aria-current] .rl-sn { background: var(--rl-accent); color: var(--rl-on-accent); border-color: transparent; }
.rl-s1, .rl-s2 { display: block; min-width: 0; }
.rl-s1 { font-size: 13px; color: var(--rl-text); line-height: 1.4; overflow-wrap: anywhere; }
.rl-s2 { font: 11.5px/1.4 var(--rl-font-mono); color: var(--rl-muted); margin-top: 3px; overflow-wrap: anywhere; }
.rl-s3 { font: 11.5px var(--rl-font-mono); color: var(--rl-muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; margin-top: 1px; }
.rl-s3 .rl-i { width: 13px; height: 13px; stroke-width: 2.4; color: var(--rl-ok-fill); }
.rl-s3.bad .rl-i { color: var(--rl-bad-fill); } .rl-s3.warn .rl-i { color: var(--rl-warn-fill); } .rl-s3.skip .rl-i { color: var(--rl-draft-fill); }

/* The stage: the screen Reel's browser saw, with the ring and the click point. */
.rl-stage-wrap { padding: 16px; background: var(--rl-sunk); display: grid; gap: 12px; align-content: start; min-width: 0; }
.rl-stage-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rl-stage-cap { font-size: 13px; color: var(--rl-text); font-weight: 500; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.rl-stage-top .rl-st { flex: none; }
.rl-pause-i { display: none; }
[data-play].is-on .rl-play-i { display: none; } [data-play].is-on .rl-pause-i { display: inline; }
.rl-live.warn { background: var(--rl-warn-fill); } .rl-live.warn::after { border-color: var(--rl-warn-fill); }
.rl-live.bad { background: var(--rl-bad-fill); } .rl-live.bad::after { border-color: var(--rl-bad-fill); }
.rl-live.off { background: var(--rl-draft-fill); } .rl-live.off::after { display: none; }
.rl-goal code.rl-var { font: 12.5px var(--rl-font-mono); color: var(--rl-text); background: var(--rl-sunk); border: 1px solid var(--rl-line); padding: 0 4px; border-radius: 4px; }
.rl-stage { display: grid; gap: 12px; }
.rl-stage .rl-shot { border-radius: var(--rl-r-3); border: 1px solid var(--rl-line-2); box-shadow: var(--rl-sh-2); }
.rl-stage .rl-shot > img { object-fit: contain; object-position: top center; }
/* With script, Before / After say which moment shows; without it, both show, each tagged. */
.rl-js .rl-stage .rl-shot-tag { display: none; }
.rl-stage-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 12.5px; color: var(--rl-muted); min-width: 0; }
.rl-stage-foot .rl-mono { overflow-wrap: anywhere; min-width: 0; }

/* The proof pane: what Reel checked on this step, both replays, the evidence. */
.rl-pp { border-left: 1px solid var(--rl-line); display: grid; align-content: start; min-width: 0; }
.rl-pp-sec { padding: 14px 16px; border-bottom: 1px solid var(--rl-line); display: grid; gap: 8px; align-content: start; min-width: 0; }
.rl-pp-sec h3 { font-size: 12px; font-weight: 600; color: var(--rl-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.rl-pp-sec p { margin: 0; font-size: 12.5px; color: var(--rl-muted); }
.rl-chks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rl-chk { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; font-size: 12.5px; color: var(--rl-body); align-items: start; }
.rl-chk > .rl-i { width: 15px; height: 15px; color: var(--rl-ok-fill); stroke-width: 2.3; margin-top: 1px; }
.rl-chk.warn > .rl-i { color: var(--rl-warn-fill); } .rl-chk.bad > .rl-i { color: var(--rl-bad-fill); }
.rl-chk.not { color: var(--rl-muted); } .rl-chk.not > .rl-i { color: var(--rl-draft-fill); }
.rl-chk > span { min-width: 0; overflow-wrap: anywhere; }
.rl-chk code, .rl-kv code { font: 11.5px var(--rl-font-mono); color: var(--rl-text); background: var(--rl-sunk); border: 1px solid var(--rl-line); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.rl-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 12.5px; }
.rl-kv dt { color: var(--rl-muted); }
.rl-kv dd { margin: 0; color: var(--rl-text); text-align: right; font-family: var(--rl-font-mono); font-size: 12px; overflow-wrap: anywhere; min-width: 0; }
.rl-twin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rl-twin .rl-frame { position: relative; display: block; color: inherit; text-decoration: none !important; }
.rl-lab { display: flex; justify-content: space-between; gap: 6px; padding: 6px 8px; font-size: 11.5px; color: var(--rl-muted); border-top: 1px solid var(--rl-line); }
.rl-lab b { color: var(--rl-ok); font-weight: 600; } .rl-lab b.bad { color: var(--rl-bad); }

/* One capture, five outputs, as previews. */
.rl-outs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.rl-out { display: grid; grid-template-rows: auto 1fr; height: 100%; border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); overflow: hidden; background: var(--rl-surface); box-shadow: var(--rl-sh-1); color: inherit; text-decoration: none !important; transition: box-shadow var(--rl-d-fast), transform var(--rl-d-fast), border-color var(--rl-d-fast); }
a.rl-out:hover { box-shadow: var(--rl-sh-2); transform: translateY(-1px); border-color: var(--rl-line-2); }
.rl-out-p { position: relative; aspect-ratio: 16 / 9; background: var(--rl-sunk); border-bottom: 1px solid var(--rl-line); overflow: hidden; display: grid; place-items: center; }
.rl-out-p > .rl-shot { position: absolute; inset: 0; aspect-ratio: auto; }
.rl-out-b { padding: 10px 12px; display: grid; gap: 4px; align-content: start; }
.rl-out-b h3 { font-size: 13.5px; display: flex; align-items: center; gap: 6px; margin: 0; }
.rl-out-b h3 .rl-i { width: 14px; height: 14px; }
.rl-out-b p { font-size: 12.5px; color: var(--rl-muted); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.rl-playbtn { position: relative; z-index: 6; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--rl-scrim); color: var(--rl-on-stage); box-shadow: var(--rl-sh-2); }
.rl-playbtn .rl-i { width: 18px; height: 18px; margin-left: 2px; }
.rl-mini-doc { position: absolute; inset: 10px 14px; background: var(--rl-surface); border-radius: 6px; padding: 10px 12px; display: grid; gap: 6px; align-content: start; box-shadow: var(--rl-sh-1); overflow: hidden; }
.rl-mini-doc b { font: 500 13px/1.25 var(--rl-font-display); color: var(--rl-text); }
.rl-mini-doc .l { height: 5px; border-radius: 3px; background: var(--rl-line); }
.rl-mini-doc .rl-frame { margin-top: 4px; box-shadow: none; }
.rl-mini-mcp { position: absolute; inset: 0; margin: 0; background: var(--rl-code-bg); color: var(--rl-code-text); font: 10.5px/1.6 var(--rl-font-mono); padding: 10px 12px; white-space: pre; overflow: hidden; }
.rl-mini-mcp .k { color: var(--rl-code-key); } .rl-mini-mcp .s { color: var(--rl-code-str); } .rl-mini-mcp .n { color: var(--rl-code-num); } .rl-mini-mcp .c { color: var(--rl-code-muted); }
.rl-outs-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 10px 0 0; font-size: 13px; }
.rl-outs-more form { margin: 0; }
.rl-outs-more > a { display: inline-flex; align-items: center; min-height: 32px; }

/* Checks: the table of checks, with the one shown above marked. */
.rl-tbl tr[aria-current] td { background: var(--rl-accent-tint); }
.rl-tbl td.rl-num, .rl-tbl td .rl-mono { white-space: nowrap; }
.rl-tbl .rl-btn { white-space: nowrap; }

/* The spec, in its own tab. */
.rl-spec { display: grid; gap: 12px; }
.rl-spec .rl-code { max-height: none; }
.rl-flow-foot { margin: 28px 0 0; font-size: 13px; color: var(--rl-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rl-flow-foot a.is-bad { color: var(--rl-bad); }

/* ───────────── The inbox: compare and accept (U8) ───────────── */
.rl-ib-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 6px 0 0; font-size: 12.5px; color: var(--rl-muted); }
.rl-ib-keys > span { display: inline-flex; align-items: center; gap: 4px; }
.rl-release { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); background: var(--rl-surface); box-shadow: var(--rl-sh-1); }
.rl-release + .rl-release { margin-top: 8px; }
.rl-release > .rl-i { color: var(--rl-muted); } .rl-release.warn > .rl-i { color: var(--rl-warn); } .rl-release.bad > .rl-i { color: var(--rl-bad); } .rl-release.ok > .rl-i { color: var(--rl-ok); }
.rl-release-t { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--rl-text); overflow-wrap: anywhere; }
.rl-release-t span { font-weight: 500; color: var(--rl-muted); }
.rl-release p { margin: 2px 0 0; font-size: 13px; color: var(--rl-muted); overflow-wrap: anywhere; }
.rl-ib-sec { margin-top: 28px; scroll-margin-top: 64px; }
.rl-ib-sec > .rl-sec-h { margin-top: 0; }
.rl-ib-sec > .rl-sec-h .rl-n { font: 500 13px var(--rl-font-mono); color: var(--rl-muted); }
.rl-ib-card { border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); background: var(--rl-surface); box-shadow: var(--rl-sh-1); scroll-margin-top: 72px; min-width: 0; }
.rl-ib-card + .rl-ib-card { margin-top: 12px; }
.rl-ib-card:focus { outline: none; }
.rl-ib-card.is-current, .rl-ib-card:focus-visible, .rl-ib-card:target { box-shadow: 0 0 0 2px var(--rl-focus-ring), var(--rl-sh-1); }
.rl-ib-top { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; }
.rl-ib-t { margin: 0; font-size: 15px; font-weight: 600; color: var(--rl-text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
a.rl-ib-tl { color: var(--rl-text); }
.rl-ib-meta { margin: 3px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--rl-muted); display: flex; gap: 4px 12px; flex-wrap: wrap; }
.rl-ib-meta li { min-width: 0; overflow-wrap: anywhere; }
.rl-ib-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rl-ib-act form { margin: 0; }
.rl-meanwhile { margin: 0 16px 14px; padding: 9px 12px; border-radius: var(--rl-r-3); background: var(--rl-sunk); border: 1px solid var(--rl-line); font-size: 13px; color: var(--rl-body); display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
.rl-meanwhile > .rl-i { margin-top: 2px; color: var(--rl-muted); }
.rl-meanwhile p { margin: 0; }
.rl-meanwhile a { text-decoration: underline; text-underline-offset: 2px; }
.rl-ib-list { margin: 0 16px 14px; padding-left: 18px; font-size: 13px; color: var(--rl-body); }
.rl-ib-step { border-top: 1px solid var(--rl-line); padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.rl-ib-step[hidden] { display: none; }
.rl-ib-pick { margin: 12px 16px 0; }
.rl-ib-step-h { margin: 0; display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; font-weight: 500; color: var(--rl-text); }
.rl-ib-step-h .rl-sn { width: 22px; height: 22px; flex: none; }
.rl-ib-step-h h4 { margin: 0; font: inherit; min-width: 0; overflow-wrap: anywhere; }
.rl-ph-actions a.rl-st { text-decoration: none !important; }
.rl-dismiss label.rl-dismiss-note { display: block; font-weight: 500; color: var(--rl-text); min-height: 0; }
.rl-dismiss label.rl-dismiss-note span { font-weight: 400; color: var(--rl-muted); }
.rl-ib-why { display: block; margin: -4px 0 0; font-size: 12.5px; color: var(--rl-muted); overflow-wrap: anywhere; }
.rl-ib-why code { font: 11.5px var(--rl-font-mono); color: var(--rl-text); }
.rl-ib-step-h .rl-ib-in { font-size: 12.5px; font-weight: 400; }

/* Compare a step's screens. Without script, side by side; with it, a divider to drag, their
   difference, or a strobe that flips between them. */
.rl-cmp { position: relative; max-width: 820px; min-width: 0; }
.rl-cmp-layers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rl-cmp-layers .rl-shot { border-radius: var(--rl-r-3); border: 1px solid var(--rl-line-2); }
/* Each screen carries its own label, so side by side, stacked or overlaid, it says which it is. */
.rl-cmp-lab { position: absolute; z-index: 6; top: 8px; font: 500 11px/1 var(--rl-font-sans); color: var(--rl-on-stage); background: var(--rl-scrim); padding: 5px 7px; border-radius: 5px; pointer-events: none; }
.rl-cmp-lab.l { left: 8px; } .rl-cmp-lab.r { right: 8px; }
.rl-cmp-range, .rl-cmp-line, .rl-cmp-flip { display: none; }
.rl-cmp.is-live { border-radius: var(--rl-r-3); overflow: hidden; border: 1px solid var(--rl-line-2); box-shadow: var(--rl-sh-1); --pos: 50%; }
.rl-cmp.is-live .rl-cmp-layers { display: block; position: relative; isolation: isolate; }
.rl-cmp.is-live .rl-cmp-layers .rl-shot { border: 0; border-radius: 0; }
.rl-cmp.is-live [data-cmp-side="old"] { position: absolute; inset: 0; z-index: 2; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.rl-cmp.is-live.slide .rl-cmp-range { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 7; margin: 0; }
.rl-cmp.is-live.slide .rl-cmp-line { display: block; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--rl-accent); z-index: 6; pointer-events: none; }
.rl-cmp.is-live.slide .rl-cmp-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--rl-surface); border: 2px solid var(--rl-accent); box-shadow: var(--rl-sh-2); }
.rl-cmp.is-live.slide .rl-cmp-range:focus-visible + .rl-cmp-line { box-shadow: 0 0 0 3px var(--rl-focus-ring); }
.rl-cmp.is-live.diff .rl-cmp-layers { filter: invert(1); }
.rl-cmp.is-live.diff [data-cmp-side="old"] { clip-path: none; mix-blend-mode: difference; }
.rl-cmp-lab.d { display: none; }
.rl-cmp.is-live.diff .rl-cmp-lab.d { display: block; left: 8px; }
.rl-cmp.is-live.diff .rl-cmp-lab.l, .rl-cmp.is-live.diff .rl-cmp-lab.r, .rl-cmp.is-live.diff .rl-ring { display: none; }
.rl-cmp.is-live.slide [data-cmp-side="new"] .rl-ring { z-index: 1; }
.rl-cmp.is-live.strobe [data-cmp-side="old"] { clip-path: none; }
.rl-cmp.is-live.strobe.show-new [data-cmp-side="old"] { visibility: hidden; }
.rl-cmp.is-live.strobe .rl-cmp-flip { display: inline-flex; position: absolute; z-index: 7; left: 8px; top: 8px; }
.rl-cmp-modes[hidden] { display: none; }
.rl-tick { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 0; font-size: 13.5px; font-weight: 500; color: var(--rl-text); cursor: pointer; justify-self: start; }
.rl-tick input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--rl-ok-fill); }
.rl-accept-row { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--rl-line); background: var(--rl-surface-2); flex-wrap: wrap; }
.rl-accept-row p { margin: 0; font-size: 12.5px; color: var(--rl-muted); flex: 1 1 260px; min-width: 0; }
.rl-accept-row [data-accept-note] { font-size: 13px; color: var(--rl-muted); }
.rl-ib-flash { margin: 0 0 16px; }
.rl-ib-flash:focus { outline: none; }
.rl-ib-flash:focus-visible .rl-callout { box-shadow: 0 0 0 2px var(--rl-focus-ring); }
.rl-ib-was { display: flex; gap: 6px; align-items: baseline; color: var(--rl-body); }
.rl-ib-was .rl-i { flex: none; color: var(--rl-muted); position: relative; top: 2px; }
.rl-ib-keys .rl-btn { height: 24px; min-height: 0; font-size: 12px; }
.rl-ib-snoozed > summary h2 { display: inline; font-size: 15px; margin: 0; }
.rl-ib-foot { display: flex; gap: 4px 6px; align-items: center; padding: 6px 10px; border-top: 1px solid var(--rl-line); flex-wrap: wrap; }
.rl-ib-foot form { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.rl-ib-foot > a:not(.rl-btn) { font-size: 13px; padding: 0 6px; display: inline-flex; align-items: center; min-height: 32px; }
.rl-ib-foot .rl-spacer { flex: 1; }
.rl-ib-owner > summary, .rl-dismiss > summary { list-style: none; cursor: pointer; }
.rl-ib-owner > summary::-webkit-details-marker, .rl-dismiss > summary::-webkit-details-marker { display: none; }
.rl-ib-owner[open] > form { padding: 6px 0; }
.rl-ib-owner input[type=text], .rl-dismiss textarea { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--rl-line-2); border-radius: var(--rl-r-2); background: var(--rl-surface); color: var(--rl-text); min-width: 0; }
.rl-ib-owner input[type=text] { width: 180px; max-width: 100%; height: 32px; }
.rl-dismiss { border-top: 1px solid var(--rl-line); padding: 0 16px; }
.rl-dismiss > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13px; color: var(--rl-muted); }
.rl-dismiss[open] > summary { color: var(--rl-text); }
.rl-dismiss form { display: grid; gap: 10px; padding: 0 0 14px; max-width: 620px; }
.rl-dismiss fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 4px; }
.rl-dismiss legend { font-size: 13px; font-weight: 600; color: var(--rl-text); margin-bottom: 4px; }
.rl-dismiss label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--rl-body); min-height: 28px; }
.rl-dismiss input[type=radio] { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--rl-accent); flex: none; }
.rl-dismiss textarea { width: 100%; min-height: 60px; resize: vertical; box-sizing: border-box; }
.rl-dismiss .rl-hint { font-size: 12.5px; color: var(--rl-muted); margin: 0; }
.rl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 820px; }
.rl-pair figure { margin: 0; min-width: 0; }
.rl-pair .rl-shot { border-radius: var(--rl-r-3); border: 1px solid var(--rl-line-2); }
.rl-pair figcaption { font-size: 12px; color: var(--rl-muted); margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rl-pair figcaption .bad { color: var(--rl-bad); display: inline-flex; align-items: center; gap: 4px; }
.rl-miss { position: absolute; z-index: 5; border: 2px dashed var(--rl-bad-fill); border-radius: 8px; background: color-mix(in srgb, var(--rl-bad-fill) 8%, transparent); pointer-events: none; }
.rl-ib-done { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rl-ib-done .rl-callout { margin: 0; }
.rl-ib-dis { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 16px; }
.rl-ib-dis + .rl-ib-dis { border-top: 1px solid var(--rl-line); }
.rl-ib-dis p { margin: 2px 0 0; font-size: 13px; color: var(--rl-muted); overflow-wrap: anywhere; }
.rl-ib-dis form { margin: 0; }
.rl-ib-snoozed > summary { cursor: pointer; font-weight: 600; color: var(--rl-text); padding: 6px 0; }

/* ───────────── Responsive ───────────── */
@media (max-width: 1560px) {
  .rl-replay-body { grid-template-columns: 280px minmax(0, 1fr); }
  .rl-pp { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rl-line); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rl-pp > .rl-pp-sec { border-right: 1px solid var(--rl-line); border-bottom: 0; }
  .rl-pp > .rl-pp-sec:last-child { border-right: 0; }
}
@media (max-width: 1400px) {
  .rl-outs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rl-fh { grid-template-columns: minmax(0, 1fr); }
  .rl-fh .rl-ph-actions { justify-content: flex-start; }
  .rl-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rl-pstep:nth-child(2) { border-right: 0; }
  .rl-pstep:nth-child(-n+2) { border-bottom: 1px solid var(--rl-line); }
  .rl-pstep::after { display: none; }
  .rl-replay-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .rl-slog { border-right: 0; border-bottom: 1px solid var(--rl-line); max-height: min(60vh, 480px); }
  .rl-pp { grid-template-columns: minmax(0, 1fr); }
  .rl-pp > .rl-pp-sec { border-right: 0; border-bottom: 1px solid var(--rl-line); }
  .rl-outs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .rl-ib-top { grid-template-columns: 32px minmax(0, 1fr); }
  .rl-ib-act { grid-column: 1 / -1; justify-content: flex-start; }
  .rl-pair { grid-template-columns: minmax(0, 1fr); }
  .rl-cmp-layers { grid-template-columns: minmax(0, 1fr); }
  .rl-release { grid-template-columns: 20px minmax(0, 1fr); }
  .rl-release > :last-child { grid-column: 2; justify-self: start; }
  .rl-ib-dis { grid-template-columns: minmax(0, 1fr); }
  .rl-fh h1 { font-size: 22px; }
  .rl-proof { grid-template-columns: minmax(0, 1fr); }
  .rl-pstep { border-right: 0; border-bottom: 1px solid var(--rl-line); }
  .rl-pstep:last-child { border-bottom: 0; }
  .rl-film-i { flex-basis: 128px; }
  .rl-stage-wrap { padding: 12px; }
  .rl-outs { grid-template-columns: minmax(0, 1fr); }
  .rl-twin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* The checks table, one card per row: when and the result, then why, then where and how long. */
  .rl-tbl-stack thead { display: none; }
  .rl-tbl-stack, .rl-tbl-stack tbody, .rl-tbl-stack tr, .rl-tbl-stack td { display: block; }
  .rl-tbl-stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--rl-line); }
  .rl-tbl-stack tr:last-child { border-bottom: 0; }
  .rl-tbl-stack td { height: auto; padding: 0; border: 0; min-width: 0; white-space: normal; }
  .rl-tbl-stack td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .rl-tbl-stack td:nth-child(5) { grid-column: 2; grid-row: 1; justify-self: end; }
  .rl-tbl-stack td:nth-child(2) { grid-column: 1 / -1; }
  .rl-tbl-stack td:nth-child(3), .rl-tbl-stack td:nth-child(4) { grid-column: 1 / -1; color: var(--rl-muted); font-size: 12.5px; }
  .rl-tbl-stack td[data-label]::before { content: attr(data-label) " "; color: var(--rl-muted); font-family: var(--rl-font-sans); }
  .rl-tbl-stack td:nth-child(6) { grid-column: 1 / -1; }
  .rl-tbl-stack td:nth-child(6) .rl-btn { margin-left: -10px; }
  .rl-tbl-stack tbody tr:hover td { background: none; }
  .rl-tbl-stack tr[aria-current] { background: var(--rl-accent-tint); }
  .rl-tbl-stack tr[aria-current] td { background: none; }
}
@media (pointer: coarse) {
  .rl-sl { min-height: 44px; }
  .rl-ph-actions a.rl-st, .rl-ib-step-h .rl-ib-in, .rl-ib-foot > a:not(.rl-btn) { display: inline-flex; align-items: center; min-height: 40px; }
  .rl-tick { min-height: 44px; }
  .rl-ib-foot .rl-btn { min-height: 40px; }
}
@media (pointer: coarse) and (hover: none) {
  .rl-ib-keys { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .rl-film-i, .rl-sl, .rl-out { transition: none !important; }
  a.rl-out:hover { transform: none; }
}

/* ───────────── U9: home ───────────── */
.rl-home-flash { margin-bottom: 16px; }
.rl-home-setup { margin-bottom: 16px; }
.rl-home-live { display: inline-flex; align-items: center; gap: 6px; }
.rl-home-live .rl-live.is-done { background: var(--rl-ok-fill); } .rl-home-live .rl-live.is-done::after { display: none; }
.rl-home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; margin-top: 16px; align-items: start; }
.rl-home-side { display: grid; gap: 16px; min-width: 0; }
.rl-home-q { list-style: none; margin: 0; padding: 0; }
.rl-home-q .rl-q-t { margin: 0; }
.rl-home-q .rl-q-why { margin: 2px 0 0; }
.rl-home-q .rl-q-why q { color: var(--rl-text); }
.rl-q-act form { margin: 0; }
.rl-home-rel { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--rl-line); background: var(--rl-surface-2); font-size: 13px; color: var(--rl-muted); }
.rl-home-rel b { color: var(--rl-text); font-weight: 600; }
.rl-home-rel > .rl-i { color: var(--rl-muted); }
.rl-home-rel.warn { background: var(--rl-warn-tint); } .rl-home-rel.warn > .rl-i { color: var(--rl-warn); }
.rl-home-rel.bad { background: var(--rl-bad-tint); } .rl-home-rel.bad > .rl-i { color: var(--rl-bad); }
.rl-home-rel.ok > .rl-i { color: var(--rl-ok); }
.rl-empty-plain { border: 0; background: none; padding: 24px 12px; }
.rl-empty-plain .rl-row { justify-content: center; margin-top: 6px; }
.rl-ill-ok { color: var(--rl-ok) !important; }
.rl-home-feed { padding-top: 6px; padding-bottom: 6px; }
.rl-home-feed .rl-feed { list-style: none; margin: 0; padding: 0; }
.rl-home-feed .rl-feed-i a { color: inherit; }
.rl-home-use { display: grid; gap: 14px; }
.rl-home-use p { margin: 4px 0 0; }
.rl-spend-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--rl-muted); padding: 3px 0; }
.rl-spend-row b { font: 500 12.5px var(--rl-font-mono); color: var(--rl-text); white-space: nowrap; }
.rl-spend-row b.rl-faint { color: var(--rl-faint); font-family: var(--rl-font-sans); font-weight: 400; }
.rl-stackbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--rl-sunk); gap: 2px; margin: 4px 0; }
.rl-stackbar i { display: block; height: 100%; }
.rl-stackbar .s-ok { background: var(--rl-ok-fill); } .rl-stackbar .s-bad { background: var(--rl-bad-fill); } .rl-stackbar .s-run { background: var(--rl-run-fill); }
.rl-stackbar .s-warn { background: var(--rl-warn-fill); } .rl-stackbar .s-draft { background: var(--rl-draft-fill); } .rl-stackbar .s-none { background: var(--rl-line-2); }
.rl-stackbar .s-ver { background: color-mix(in srgb, var(--rl-ok-fill) 45%, var(--rl-surface)); }
.rl-down { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--rl-r-4); border: 1px solid var(--rl-bad-line); background: var(--rl-bad-tint); }
.rl-down .rl-q-ic { --st: var(--rl-bad); --st-tint: var(--rl-surface); --st-line: var(--rl-bad-line); }
.rl-down-b { display: grid; gap: 6px; min-width: 0; }
.rl-down .rl-q-t, .rl-down .rl-q-why { margin: 0; }
.rl-down form { margin: 0; }
/* The flow map */
.rl-home-map-h { scroll-margin-top: 72px; }
.rl-map-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.rl-fchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--rl-r-pill); border: 1px solid var(--rl-line); background: var(--rl-surface); font: 500 12.5px/1 var(--rl-font-sans); color: var(--rl-body); cursor: pointer; }
.rl-fchip:hover { border-color: var(--rl-line-2); }
.rl-fchip[aria-pressed="true"] { background: var(--rl-text); color: var(--rl-surface); border-color: var(--rl-text); }
.rl-fchip[aria-pressed="true"] .rl-i { color: inherit; }
.rl-fchip .rl-n { font: 500 11.5px var(--rl-font-mono); opacity: .75; }
.rl-legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12px; color: var(--rl-muted); align-items: center; }
.rl-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.rl-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; align-items: start; }
.rl-area-c { background: var(--rl-surface-2); border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); padding: 10px; display: grid; gap: 8px; min-width: 0; }
.rl-area-h { display: grid; gap: 6px; padding: 2px 4px 4px; }
.rl-area-h h3 { font-size: 13px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; overflow-wrap: anywhere; }
.rl-area-h h3 > span[aria-hidden] { font: 500 11.5px var(--rl-font-mono); color: var(--rl-faint); flex: none; }
.rl-area-h .rl-stackbar { margin: 0; }
.rl-tile { display: grid; gap: 7px; padding: 10px 11px; border-radius: var(--rl-r-3); background: var(--rl-surface); border: 1px solid var(--rl-line); color: inherit; text-decoration: none; box-shadow: var(--rl-sh-1); min-width: 0;
  transition: border-color var(--rl-d-fast) var(--rl-ease-out), box-shadow var(--rl-d-fast) var(--rl-ease-out), transform var(--rl-d-fast) var(--rl-ease-out); }
a.rl-tile:hover { text-decoration: none; border-color: var(--rl-line-2); box-shadow: var(--rl-sh-2); transform: translateY(-1px); }
a.rl-tile, a.rl-tile:hover { color: inherit !important; text-decoration: none !important; }
.rl-tile[hidden] { display: none; }
.rl-tile-t { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; font-weight: 500; color: var(--rl-text); line-height: 1.3; overflow-wrap: anywhere; }
.rl-tile-t .rl-i { margin-top: 1px; width: 15px; height: 15px; flex: none; }
.rl-tile-m { font-size: 12px; color: var(--rl-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rl-tile-f { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.rl-tile.ghost { background: transparent; border-style: dashed; box-shadow: none; }
.rl-tile.ghost .rl-tile-t { color: var(--rl-muted); }
.rl-tile.rl-attn { border-color: var(--rl-warn-line); } .rl-tile.rl-attn.bad { border-color: var(--rl-bad-line); }
.rl-tile.ghost { padding: 8px 10px; gap: 4px; }
.rl-ghost-a { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 2px 8px; margin: -2px -6px -2px 0; border-radius: var(--rl-r-2); font-size: 12px; font-weight: 500; white-space: nowrap; flex: none; }
.rl-ghost-a:hover { background: var(--rl-hover); }
@media (pointer: coarse) { .rl-ghost-a { min-height: 40px; } }
.rl-more { border-radius: var(--rl-r-3); }
.rl-more > summary { cursor: pointer; font-size: 12px; color: var(--rl-muted); padding: 4px 6px; border-radius: var(--rl-r-2); list-style-position: inside; }
.rl-more > summary:hover { background: var(--rl-hover); color: var(--rl-text); }
.rl-more-b { display: grid; gap: 8px; margin-top: 8px; }
.rl-cov { display: inline-flex; gap: 3px; flex: none; }
.rl-cov .rl-i { width: 13px; height: 13px; color: var(--rl-line-2); }
.rl-cov .rl-i.on { color: var(--rl-muted); }
.rl-ic-ok { color: var(--rl-ok-fill); } .rl-ic-ver { color: var(--rl-ok); } .rl-ic-warn { color: var(--rl-warn-fill); } .rl-ic-bad { color: var(--rl-bad-fill); }
.rl-ic-draft { color: var(--rl-draft-fill); } .rl-ic-run { color: var(--rl-run-fill); }
.rl-home-list td { white-space: nowrap; } .rl-home-list td.rl-t { white-space: normal; min-width: 180px; }
.rl-home-list tr[hidden] { display: none; }
@media (max-width: 1180px) {
  .rl-home-cols { grid-template-columns: minmax(0, 1fr); }
  .rl-home-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
}
@media (max-width: 560px) {
  .rl-home-rel { grid-template-columns: 16px minmax(0, 1fr); }
  .rl-home-rel > a { grid-column: 2; }
  .rl-home-q .rl-q-row { grid-template-columns: 32px minmax(0, 1fr); }
  .rl-home-q .rl-q-act { grid-column: 2; }
}
@media (pointer: coarse) { .rl-fchip { min-height: 40px; } }
@media (prefers-reduced-motion: reduce) { .rl-tile { transition: none; } a.rl-tile:hover { transform: none; } }

/* ───────────── U9: review and certify ───────────── */
.rl-rv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.rl-script { border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); background: var(--rl-surface); box-shadow: var(--rl-sh-1); min-width: 0; }
.rl-script .rl-card-h h2 { font-size: 14px; margin: 0; }
.rl-script-b { padding: 18px 22px 22px; display: grid; gap: 12px; }
.rl-rv-lab { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--rl-faint); margin: 0 0 -10px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.rl-rv-lab span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.rl-ed { display: block; width: calc(100% + 14px); margin: 0 -7px; padding: 3px 6px; font: inherit; line-height: 1.5; color: var(--rl-text); background: transparent; border: 1px solid transparent; border-radius: var(--rl-r-2); resize: none; overflow: hidden;
  transition: background var(--rl-d-fast) var(--rl-ease-out), box-shadow var(--rl-d-fast) var(--rl-ease-out); }
.rl-ed:not([readonly]):hover { background: var(--rl-hover); }
.rl-ed:not([readonly]):focus { outline: none; background: var(--rl-surface); box-shadow: 0 0 0 2px var(--rl-accent-line); }
.rl-ed[readonly] { cursor: text; }
.rl-ed[readonly]:focus-visible { outline: 2px solid var(--rl-accent); outline-offset: 1px; }
.rl-ed-title { font: 500 26px/1.2 var(--rl-font-display); letter-spacing: -.01em; }
.rl-ed-goal { font-size: 15px; color: var(--rl-body); }
.rl-rv-warn { margin: 0; font-size: 13px; color: var(--rl-warn); }
.rl-rv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-rv-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 2px 8px; border-radius: var(--rl-r-2); border: 1px solid var(--rl-line); background: var(--rl-surface); color: var(--rl-body); font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.rl-rv-chip .rl-i { width: 12px; height: 12px; color: var(--rl-muted); flex: none; }
.rl-rv-pre { margin: 0; font-size: 13px; color: var(--rl-body); }
.rl-ssteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rl-sstep { display: grid; grid-template-columns: 26px minmax(0, 1fr) 120px; gap: 12px; align-items: start; padding: 10px; border-radius: var(--rl-r-3); border: 1px solid transparent; cursor: pointer; }
.rl-sstep:hover { background: var(--rl-hover); }
.rl-sstep.on { border-color: var(--rl-accent-line); background: var(--rl-accent-tint); }
.rl-sstep .rl-sn { width: 24px; height: 24px; font-size: 12px; margin-top: 3px; }
.rl-sstep.on .rl-sn { background: var(--rl-accent); color: var(--rl-on-accent); border-color: transparent; }
.rl-sstep-b { display: grid; gap: 4px; min-width: 0; }
.rl-sstep-b .rl-ed { font-size: 14px; }
.rl-sstep-b > p { margin: 0; font-size: 12.5px; color: var(--rl-muted); overflow-wrap: anywhere; }
.rl-sstep-b > .rv-write { color: var(--rl-warn); font-weight: 500; }
.rl-sstep-ring { justify-self: start; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; margin-top: 2px; border: 1px solid var(--rl-line); border-radius: var(--rl-r-2); background: var(--rl-surface); color: var(--rl-body); font: 500 12px/1 var(--rl-font-sans); cursor: pointer; }
.rl-sstep-ring:hover { border-color: var(--rl-line-2); color: var(--rl-text); }
.rl-script.is-script .rl-sstep-ring { display: none; }
@media (pointer: coarse) { .rl-sstep-ring { min-height: 40px; } }
.rl-sstep-shot { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--rl-line); }
.rl-sstep-shot .rl-ring { border-width: 2px; box-shadow: 0 0 0 1px var(--rl-halo); }
.rl-sstep-shot.none { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--rl-sunk); font-size: 11px; color: var(--rl-muted); text-align: center; padding: 4px; }
.rv-how { font-size: 12.5px; color: var(--rl-body); } .rv-how summary { cursor: pointer; color: var(--rl-muted); width: fit-content; }
.rv-how p { margin: 4px 0 0; } .rv-how ol { margin: 4px 0; padding-left: 18px; }
.rv-how code { font: 11.5px var(--rl-font-mono); overflow-wrap: anywhere; }
.rl-script.is-script .rl-sstep { grid-template-columns: 26px minmax(0, 1fr); padding: 2px 10px; cursor: text; }
.rl-script.is-script .rl-sstep-shot, .rl-script.is-script .rl-sstep-b > p, .rl-script.is-script .rv-how { display: none; }
.rl-script.is-script .rl-sstep.on { background: none; border-color: transparent; }
.rl-script.is-script .rl-sstep.on .rl-sn { background: var(--rl-sunk); color: var(--rl-muted); border-color: var(--rl-line); }
.rl-script.is-script .rl-sstep-b .rl-ed { font-size: 16px; }
.rl-rv-save { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 4px; font-size: 12.5px; }
.rl-rv-ai { padding: 10px 12px; border-radius: var(--rl-r-3); border: 1px solid var(--rl-accent-line); background: var(--rl-accent-tint); display: grid; gap: 8px; font-size: 13px; }
.rl-rv-ai p { margin: 0; }
.rl-sugg { margin-top: 6px; padding: 10px 12px; border-radius: var(--rl-r-3); border: 1px solid var(--rl-line); background: var(--rl-surface); box-shadow: var(--rl-sh-1); display: grid; gap: 8px; font-size: 13.5px; cursor: default; }
.rl-sugg p { margin: 0; }
.rl-sugg-h { font-size: 12px; color: var(--rl-muted); }
.rl-sugg-d { line-height: 1.6; color: var(--rl-text); }
.rl-sugg del { color: var(--rl-bad); text-decoration-color: var(--rl-bad-fill); background: var(--rl-bad-tint); padding: 0 2px; border-radius: 3px; }
.rl-sugg ins { color: var(--rl-ok); text-decoration: none; background: var(--rl-ok-tint); padding: 0 2px; border-radius: 3px; }
.rl-rv-side { display: grid; gap: 16px; min-width: 0; }
.rl-rv-ring .rl-card-h h2 { font-size: 14px; margin: 0; }
.rl-rv-stage { padding: 14px; background: var(--rl-sunk); border-radius: 0 0 var(--rl-r-4) var(--rl-r-4); display: grid; gap: 10px; }
.rv-ringed { position: relative; border-radius: var(--rl-r-3); overflow: hidden; background: var(--rl-stage); border: 1px solid var(--rl-line-2); box-shadow: var(--rl-sh-2); }
.rv-ringed img { display: block; width: 100%; height: auto; }
.rv-ring { position: absolute; border: 2.5px solid var(--rl-ring); border-radius: 7px; box-shadow: 0 0 0 2px var(--rl-halo), 0 0 0 6px var(--rl-ring-glow); }
.rv-ring.is-movable { cursor: move; touch-action: none; border-style: dashed; }
.rv-ring.is-movable:focus-visible { outline: 3px solid var(--rl-accent); outline-offset: 3px; }
.rv-grip { position: absolute; right: -7px; bottom: -7px; width: 12px; height: 12px; border-radius: 3px; background: var(--rl-surface); border: 2px solid var(--rl-ring); cursor: nwse-resize; display: none; }
.rv-ring.is-movable .rv-grip { display: block; }
.rv-ring-note { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; border-radius: var(--rl-r-pill); background: var(--rl-scrim); color: var(--rl-on-stage); font-size: 12px; }
.rl-rv-none { padding: 20px; text-align: center; color: var(--rl-muted); font-size: 13px; background: var(--rl-surface); border-radius: var(--rl-r-3); border: 1px dashed var(--rl-line-2); display: grid; gap: 10px; }
.rl-rv-none img { width: 100%; border-radius: 6px; display: block; }
.rl-rv-none p { margin: 0; }
.rl-rv-hint { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; font-size: 12.5px; color: var(--rl-muted); align-items: center; }
.rl-rv-hint .rl-row { gap: 6px; }
.rl-rv-proof .rl-pp-sec:last-child { border-bottom: 0; }
.rl-rv-proof .rl-pp-sec p a { color: var(--rl-accent-text); }
.rl-rv-state { margin-top: 16px; }
.rl-rv-state h2 { font-size: 14px; margin: 0 0 6px; }
.rl-rv-state p { margin: 0 0 10px; color: var(--rl-body); }
.rl-rv-state form { margin: 0; }
/* The certify bar: two lines and the button, kept in view at the bottom while the page scrolls. */
.rl-certify { position: sticky; bottom: 12px; z-index: 30; margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: var(--rl-r-5);
  background: color-mix(in srgb, var(--rl-surface) 94%, transparent); border: 1px solid var(--rl-line-2); box-shadow: var(--rl-sh-3); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); }
.rl-certify-b { min-width: 0; }
.rl-attest { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; color: var(--rl-text); cursor: pointer; }
.rl-attest input { width: 20px; height: 20px; margin: 0; accent-color: var(--rl-accent); }
.rl-then { margin: 2px 0 0 30px; font-size: 12.5px; color: var(--rl-muted); }
.rl-then b { color: var(--rl-body); font-weight: 500; }
.rl-then-dirty { color: var(--rl-warn); }
.rl-certify .rl-row { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 1180px) { .rl-rv { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .rl-certify { grid-template-columns: minmax(0, 1fr); } .rl-certify .rl-row { justify-content: stretch; } .rl-certify .rl-row .rl-btn { flex: 1; justify-content: center; } }
@media (max-width: 560px) {
  /* On a phone the bar sits at the end of the page, not over a fifth of it. */
  .rl-certify { position: static; }
  .rl-script-b { padding: 14px; }
  .rl-sstep { grid-template-columns: 26px minmax(0, 1fr); }
  .rl-sstep-shot { grid-column: 2; max-width: 180px; }
  .rl-ed-title { font-size: 22px; }
}

/* Home: the last 30 days in one quiet line, and three needs before "Show all". */
.rl-home-glance { margin: 12px 0 0; color: var(--rl-muted); font-size: 13px; line-height: 1.6; }
.rl-home-glance b { color: var(--rl-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.rl-home-glance a { color: inherit; text-decoration: none; }
.rl-home-glance a:hover { color: var(--rl-accent-text); text-decoration: underline; }
.rl-home-more { margin: 4px 12px 12px; }

/* Home, to the mockup (docs/mockups/coool/home.html). */
.rl-home-head h1 { font-size: 28px; letter-spacing: -.025em; }
.rl-home-head .rl-sub { font-size: 15px; max-width: 62ch; }
.rl-menu { position: relative; }
.rl-menu > summary { list-style: none; cursor: pointer; }
.rl-menu > summary::-webkit-details-marker { display: none; }
.rl-menu-p { position: absolute; right: 0; top: calc(100% + 6px); z-index: var(--rl-z-pop, 30); width: 340px; padding: 6px; background: var(--rl-surface); border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); box-shadow: var(--rl-sh-3); display: grid; gap: 2px; }
.rl-menu-p a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: var(--rl-r-2); color: var(--rl-text); text-decoration: none !important; }
.rl-menu-p a:hover, .rl-menu-p a:focus-visible { background: var(--rl-active); }
.rl-menu-p a .rl-i { margin-top: 2px; color: var(--rl-muted); flex: none; }
.rl-menu-p form { margin: 0; } .rl-menu-p form button { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 10px; border: 0; border-radius: var(--rl-r-2); background: none; color: var(--rl-text); font: inherit; text-align: left; cursor: pointer; }
.rl-menu-p form button:hover, .rl-menu-p form button:focus-visible { background: var(--rl-active); } .rl-menu-p form button .rl-i { margin-top: 2px; color: var(--rl-muted); flex: none; }
.rl-menu-p b { display: block; font-weight: 600; font-size: 14px; }
.rl-menu-p small { display: block; color: var(--rl-muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.rl-rel-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 4px; padding: 24px 28px; border-radius: var(--rl-r-4); color: color-mix(in srgb, var(--rl-on-stage) 82%, transparent); background: var(--rl-stage) url("/assets/art.webp") right center / cover no-repeat; }
.rl-rel-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--rl-stage) 38%, color-mix(in srgb, var(--rl-stage) 55%, transparent) 62%, transparent 100%); pointer-events: none; }
.rl-rel-banner > * { position: relative; }
.rl-rel-banner h2 { margin: 0; font: 600 20px/1.25 var(--rl-font-sans); letter-spacing: -.02em; color: var(--rl-on-stage); }
.rl-rel-banner p { margin: 4px 0 0; font-size: 14px; }
.rl-tally { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 16px; font-size: 13px; }
.rl-tally span { display: inline-flex; align-items: center; gap: 8px; }
.rl-tally b { color: var(--rl-on-stage); font: 600 18px var(--rl-font-sans); font-variant-numeric: tabular-nums; }
.rl-tally b.warn { color: var(--rl-warn-fill); } .rl-tally b.bad { color: var(--rl-bad-fill); }
.rl-home-glance { margin: 16px 0 0; font-size: 13px; color: var(--rl-muted); }
.rl-home-glance a { color: var(--rl-body); }
.rl-home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 8px; }
.rl-home-cols.rl-home-one { grid-template-columns: minmax(0, 1fr); }
.rl-home-needs .rl-sec-h, .rl-home-live .rl-sec-h { margin: 32px 0 12px; }
.rl-need { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.rl-need-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--rl-line); }
.rl-need-row:first-child { border-top: 0; }
.rl-need-shot { width: 88px; flex: none; border-radius: 6px; border: 1px solid var(--rl-line); overflow: hidden; background: var(--rl-sunk); }
.rl-need-shot .rl-shot { margin: 0; border: 0; border-radius: 0; }
.rl-need-chip { width: 88px; height: 55px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--rl-sunk); color: var(--rl-muted); }
.rl-need-chip.env, .rl-need-chip.warn { background: var(--rl-warn-tint); color: var(--rl-warn); }
.rl-need-chip.bad { background: var(--rl-bad-tint); color: var(--rl-bad); }
.rl-need-chip.ok { background: var(--rl-ok-tint); color: var(--rl-ok); }
.rl-need-m { min-width: 0; flex: 1; }
.rl-need-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rl-need-t h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--rl-text); }
.rl-need-m p { margin: 3px 0 0; font-size: 13px; color: var(--rl-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rl-need-act { flex: none; margin-left: auto; }
.rl-home-more-l { margin: 10px 2px 0; font-size: 13px; }
.rl-live-card { display: grid; gap: 12px; }
.rl-live-topic { display: flex; align-items: center; gap: 10px; aspect-ratio: 16 / 9; padding: 14px; border-radius: var(--rl-r-3); background: var(--rl-stage); color: var(--rl-on-stage); font-size: 13px; }
.rl-live-card p { margin: 3px 0 0; font-size: 13px; }
.rl-live-on { display: inline-flex; align-items: center; gap: 8px; }
/* With the topic's screen: the picture fills it, the topic sits on it. */
.rl-live-topic.has-shot { position: relative; padding: 0; overflow: hidden; border: 1px solid var(--rl-line); }
.rl-live-topic.has-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.rl-live-topic.has-shot .rl-live-on { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: var(--rl-r-pill); background: var(--rl-stage); color: var(--rl-on-stage); }
@media (max-width: 900px) {
  .rl-home-cols { grid-template-columns: minmax(0, 1fr); }
  .rl-rel-banner { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .rl-need-row { flex-wrap: wrap; }
  .rl-need-act { margin-left: 102px; }
}

/* Guides, to the mockup (docs/mockups/coool/guides.html). */
.rl-g-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 24px; }
.rl-g-filters .rl-n { color: var(--rl-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.rl-g-search { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; max-width: 300px; height: 32px; padding: 0 10px; border: 1px solid var(--rl-line-2); border-radius: var(--rl-r-3); background: var(--rl-surface); color: var(--rl-faint); }
.rl-g-search[hidden] { display: none; }
.rl-g-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 400 13.5px var(--rl-font-sans); color: var(--rl-text); }
.rl-g-search:focus-within { border-color: var(--rl-accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rl-accent-text) 18%, transparent); }
.rl-g-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.rl-g-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; align-content: start; }
.rl-g-area { overflow: hidden; padding: 0; }
.rl-g-area-h { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--rl-line); }
.rl-g-area-h h3 { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--rl-text); }
.rl-g-area-h .rl-faint { font-size: 12px; }
.rl-g-chip { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--rl-line); background: var(--rl-sunk); color: var(--rl-muted); }
.rl-g-status { margin-left: auto; font-size: 12.5px; color: var(--rl-muted); text-align: right; }
.rl-g-status .warn { color: var(--rl-warn); font-weight: 600; } .rl-g-status .bad { color: var(--rl-bad); font-weight: 600; }
.rl-g-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 20px; min-height: 54px; border-top: 1px solid var(--rl-line); color: inherit; text-decoration: none !important; }
.rl-g-rows > :first-child { border-top: 0; }
.rl-g-row:hover { background: var(--rl-sunk); }
.rl-g-row.warn, .rl-g-row.warn:hover { background: color-mix(in srgb, var(--rl-warn-tint) 62%, var(--rl-surface)); }
.rl-g-row.bad, .rl-g-row.bad:hover { background: color-mix(in srgb, var(--rl-bad-tint) 62%, var(--rl-surface)); }
.rl-g-row[hidden], .rl-g-gap[hidden] { display: none; }
.rl-g-name { min-width: 0; }
.rl-g-title { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--rl-text); }
.rl-g-row.draft .rl-g-title { font-weight: 500; color: var(--rl-body); }
.rl-g-sub { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 12px; color: var(--rl-muted); margin-top: 1px; }
.rl-g-sub .warn { color: var(--rl-warn); font-weight: 600; } .rl-g-sub .bad { color: var(--rl-bad); font-weight: 600; }
.rl-g-h { width: 134px; flex: none; }
.rl-g-h .rl-health { height: 16px; }
.rl-g-places { display: inline-flex; gap: 5px; color: var(--rl-muted); }
.rl-g-places .rl-i { width: 14px; height: 14px; }
.rl-g-places .off { opacity: .2; }
.rl-g-gap { display: flex; align-items: center; gap: 12px; margin: 8px 16px 12px; padding: 10px 12px; border: 1px dashed var(--rl-line-2); border-radius: var(--rl-r-3); }
.rl-g-gap .rl-g-name { flex: 1; }
.rl-g-gap .rl-g-title { font-weight: 500; color: var(--rl-body); }
.rl-g-all { display: block; width: 100%; padding: 11px 20px; border: 0; border-top: 1px solid var(--rl-line); background: none; text-align: left; font: 500 13px var(--rl-font-sans); color: var(--rl-accent-text); cursor: pointer; }
.rl-g-all:hover { background: var(--rl-sunk); }
.rl-g-all[hidden] { display: none; }
.rl-g-list { padding: 0; overflow-x: auto; }
.rl-g-list .rl-tbl { min-width: 720px; }
.rl-g-list tr[hidden] { display: none; }
.rl-g-none { margin-top: 4px; }
.rl-g-none[hidden] { display: none; }
.rl-g-legend { margin-top: 16px; font-size: 12.5px; color: var(--rl-muted); }
.rl-g-legend summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; padding: 4px 6px; margin-left: -6px; border-radius: var(--rl-r-2); }
.rl-g-legend summary::-webkit-details-marker { display: none; }
.rl-g-legend summary:hover { background: var(--rl-hover); color: var(--rl-text); }
.rl-g-legend > div { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; align-items: center; }
.rl-g-legend > div > span { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 900px) {
  .rl-g-map { grid-template-columns: minmax(0, 1fr); }
  .rl-g-search { max-width: none; flex-basis: 100%; }
  .rl-g-row { grid-template-columns: 34px minmax(0, 1fr); row-gap: 6px; }
  .rl-g-row .rl-g-h, .rl-g-row .rl-g-places { grid-column: 2; }
  .rl-g-gap { flex-wrap: wrap; }
}

/* Inbox, to the mockup (docs/mockups/coool/inbox.html): one strip for the release, one queue
   with the first item open and the rest as one-line rows. */
.rl-ib-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 14px 0; margin: 4px 0 8px; border-top: 1px solid var(--rl-line); border-bottom: 1px solid var(--rl-line); font-size: 13.5px; color: var(--rl-muted); }
.rl-ib-strip b { color: var(--rl-text); font-weight: 600; }
.rl-ib-tally { display: inline-flex; flex-wrap: wrap; gap: 18px; }
.rl-ib-tally > span { display: inline-flex; align-items: center; gap: 7px; }
.rl-ib-decided { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.rl-ib-decided .rl-bar { display: block; width: 120px; height: 4px; border-radius: 2px; background: var(--rl-line); overflow: hidden; }
.rl-ib-decided .rl-bar i { display: block; height: 100%; background: var(--rl-ok-fill); }
.rl-ib-queue { padding: 0; overflow: hidden; }
.rl-ib-queue > .rl-ib-card { border: 0; border-top: 1px solid var(--rl-line); border-radius: 0; margin: 0; box-shadow: none; }
.rl-ib-queue > .rl-ib-card:first-child { border-top: 0; }
.rl-ib-sum { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.rl-ib-sum::-webkit-details-marker { display: none; }
.rl-ib-sum:hover { background: var(--rl-sunk); }
.rl-ib-lead { flex: none; display: inline-flex; width: 34px; justify-content: center; }
.rl-ib-sum-m { min-width: 0; flex: 1; display: grid; }
.rl-ib-sum .rl-ib-t { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--rl-text); }
.rl-ib-sub { font-size: 13px; color: var(--rl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-ib-card[open] .rl-ib-sub { white-space: normal; }
.rl-ib-chev { flex: none; color: var(--rl-muted); transform: rotate(-90deg); transition: transform var(--rl-d-fast, .12s); }
.rl-ib-card[open] .rl-ib-chev { transform: none; }
.rl-ib-card > .rl-ib-top { display: flex; align-items: flex-start; gap: 12px; padding: 0 18px 0 64px; }
.rl-ib-card > .rl-ib-top .rl-ib-meta { flex: 1; min-width: 0; }
.rl-ib-card > .rl-ib-top .rl-ib-act { flex: none; margin-left: auto; }
.rl-ib-card > :not(summary):not(.rl-ib-top) { margin-left: 64px; margin-right: 18px; }
.rl-ib-card[open] { padding-bottom: 16px; }
@media (max-width: 900px) {
  .rl-ib-decided { margin-left: 0; }
  .rl-ib-card > .rl-ib-top { flex-wrap: wrap; padding-left: 18px; }
  .rl-ib-card > :not(summary):not(.rl-ib-top) { margin-left: 18px; }
}

/* Videos, to the mockup (docs/mockups/coool/videos.html): a library of pictures. */
.rl-v-tabs { margin: 4px 0 18px; }
.rl-v-filter { display: flex; justify-content: flex-end; margin: -6px 0 16px; }
.rl-v-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 20px; }
.rl-v-tile { display: grid; gap: 6px; align-content: start; min-width: 0; }
.rl-v-tile[hidden] { display: none; }
.rl-v-shot { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--rl-r-3); overflow: hidden; border: 1px solid var(--rl-line); background: var(--rl-sunk); }
.rl-v-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-v-none { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, var(--rl-sunk) 0 10px, var(--rl-surface) 10px 20px); }
.rl-v-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--rl-stage) 82%, transparent); color: var(--rl-on-stage); }
.rl-v-play .rl-i { width: 16px; height: 16px; margin-left: 2px; }
.rl-v-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--rl-stage) 82%, transparent); color: var(--rl-on-stage); font: 500 11px var(--rl-font-mono, monospace); font-variant-numeric: tabular-nums; }
a.rl-v-shot:hover { border-color: var(--rl-line-2); }
.rl-v-t { font-weight: 600; font-size: 14px; color: var(--rl-text); line-height: 1.35; text-decoration: none !important; }
a.rl-v-t:hover { color: var(--rl-accent-text); }
.rl-v-s { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--rl-muted); line-height: 1.35; }
.rl-v-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-dlg { width: min(520px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); background: var(--rl-surface); color: var(--rl-body); box-shadow: var(--rl-sh-3); }
.rl-dlg::backdrop { background: var(--rl-scrim); }

/* A guide's proof line, under its title (docs/mockups/coool/guide.html). */
.rl-proofline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 2px; font-size: 14px; color: var(--rl-muted); }
.rl-proofline b { color: var(--rl-text); font-weight: 600; }

/* Releases, to the mockup (docs/mockups/coool/releases.html): where each version runs, then each release. */
.rl-rl-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; padding: 0; overflow: hidden; margin: 4px 0 24px; }
.rl-rl-stop { padding: 16px 20px; border-left: 1px solid var(--rl-line); }
.rl-rl-stop:first-child { border-left: 0; }
.rl-rl-stop-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rl-rl-stop-h b { color: var(--rl-text); font-weight: 600; }
.rl-rl-ver { margin-top: 8px; font: 600 20px var(--rl-font-sans); color: var(--rl-text); letter-spacing: -.01em; }
.rl-rl-stop p { margin: 4px 0 0; font-size: 12.5px; color: var(--rl-muted); }
.rl-rl-list { padding: 0; }
.rl-rl-bar { display: flex; width: 160px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--rl-line); }
.rl-rl-bar i { display: block; height: 100%; } .rl-rl-bar .ok { background: var(--rl-ok-fill); } .rl-rl-bar .warn { background: var(--rl-warn-fill); } .rl-rl-bar .bad { background: var(--rl-bad-fill); }
.rl-rl-key { display: block; margin-top: 4px; font-size: 12px; color: var(--rl-muted); }
.rl-rl-key .warn { color: var(--rl-warn); } .rl-rl-key .bad { color: var(--rl-bad); }
.rl-strong { font-weight: 600; color: var(--rl-text); }

@media (max-width: 900px) {
  .rl-menu-p { left: 0; right: auto; width: min(340px, calc(100vw - 32px)); }
  .rl-ph-actions .rl-menu:last-child .rl-menu-p { left: auto; right: 0; }
}

/* Review, to the mockup (docs/mockups/coool/review.html): read ticks, version notes, what you approve. */
.rv-vnote { margin: 4px 0 0; font-size: 12px; color: var(--rl-muted); }
.rv-tick { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 4px 10px 4px 6px; border: 1px solid var(--rl-line-2); border-radius: var(--rl-r-pill, 999px); background: var(--rl-surface); color: var(--rl-body); font: 500 12.5px var(--rl-font-sans); cursor: pointer; }
.rv-tick .rl-i { width: 14px; height: 14px; padding: 1px; border-radius: 50%; border: 1.5px solid var(--rl-line-2); color: transparent; }
.rv-tick[aria-pressed="true"] { border-color: color-mix(in srgb, var(--rl-ok-fill) 50%, transparent); background: var(--rl-ok-tint); color: var(--rl-ok); }
.rv-tick[aria-pressed="true"] .rl-i { border-color: var(--rl-ok-fill); background: var(--rl-ok-fill); color: var(--rl-on-fill-dark); }
.rv-approve { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--rl-muted); }
.rv-approve b { width: 100%; color: var(--rl-text); font-size: 13.5px; }
.rv-rung { display: inline-flex; align-items: center; gap: 7px; }
.rv-count { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--rl-body); }
.rv-count[hidden] { display: none; }
.rv-count .rl-bar { display: block; height: 5px; border-radius: 3px; background: var(--rl-line); overflow: hidden; }
.rv-count .rl-bar i { display: block; height: 100%; background: var(--rl-ok-fill); transition: width var(--rl-d-fast, .12s); }

/* Publish, to the mockup (docs/mockups/coool/publish.html). */
.rl-pb-list { padding: 0; overflow: hidden; }
.rl-pb-row { position: relative; border-top: 1px solid var(--rl-line); }
.rl-pb-row > .rl-pb-act { position: absolute; top: 14px; right: 48px; }
.rl-pb-row summary { padding-right: 190px !important; }
.rl-pb-row:first-child { border-top: 0; }
.rl-pb-row summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.rl-pb-row summary::-webkit-details-marker { display: none; }
.rl-pb-row summary:hover { background: var(--rl-sunk); }
.rl-pb-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--rl-line); background: var(--rl-sunk); color: var(--rl-muted); }
.rl-pb-m { flex: 1; min-width: 0; display: grid; }
.rl-pb-m b { color: var(--rl-text); font-weight: 600; font-size: 14.5px; }
.rl-pb-m span { font-size: 13px; color: var(--rl-muted); }
.rl-pb-act { flex: none; }
.rl-pb-chev { flex: none; color: var(--rl-muted); transform: rotate(-90deg); }
.rl-pb-row details[open] .rl-pb-chev { transform: none; }
.rl-pb-d { padding: 0 18px 16px 68px; font-size: 13.5px; color: var(--rl-body); }
.rl-pb-chev { order: 9; }
.rl-pb-d ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.rl-pb-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; max-width: 720px; }
.rl-pb-form .rl-check, .rl-pb-form .rl-row { grid-column: 1 / -1; }
.rl-pb-checks { list-style: none; margin: 0; padding: 6px 0; }
.rl-pb-checks li { display: flex; gap: 10px; padding: 10px 18px; align-items: flex-start; }
.rl-pb-checks li .rl-i { margin-top: 2px; flex: none; }
.rl-pb-checks li.ok .rl-i { color: var(--rl-ok); } .rl-pb-checks li.warn .rl-i { color: var(--rl-warn); }
.rl-pb-checks b { display: block; color: var(--rl-text); font-weight: 600; font-size: 14px; }
.rl-pb-checks small { display: block; color: var(--rl-muted); font-size: 12.5px; }
@media (max-width: 900px) { .rl-pb-form { grid-template-columns: minmax(0, 1fr); } .rl-pb-d { padding-left: 18px; } .rl-pb-row summary { flex-wrap: wrap; padding-right: 18px !important; } .rl-pb-row > .rl-pb-act { position: static; display: block; padding: 0 18px 12px 68px; } }

/* Settings rows (docs/mockups/coool/settings.html): a label with its line, and the control. */
.rl-set-form { display: grid; gap: 0; max-width: 860px; padding: 0 20px 18px; }
.rl-set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rl-line); }
.rl-set-row b { display: block; color: var(--rl-text); font-weight: 600; font-size: 14px; }
.rl-set-row small { display: block; color: var(--rl-muted); font-size: 12.5px; margin-top: 2px; }
.rl-set-form > .rl-row { padding-top: 16px; }
.rl-br-prev { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--rl-line); border-radius: var(--rl-r-3); background: var(--rl-surface); }
.rl-br-mark { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--rl-sunk) center / contain no-repeat; font-weight: 700; color: var(--rl-text); }
.rl-br-btn { padding: 4px 10px; border-radius: var(--rl-r-2); background: var(--rl-accent); color: var(--rl-on-fill-dark); font-size: 12.5px; font-weight: 600; }
.rl-dev-new { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 12px; }
.rl-dev-new .rl-field { flex: 1 1 220px; }
.rl-dev-made { flex-basis: 100%; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.rl-dev-made code, .rl-dev-addr { padding: 3px 8px; border-radius: var(--rl-r-2); background: var(--rl-sunk); border: 1px solid var(--rl-line); font: 12.5px var(--rl-font-mono, monospace); word-break: break-all; }
.rl-audit-f { margin: 0 0 14px; }
.rl-audit-f .rl-tab { height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--rl-r-2); color: var(--rl-muted); text-decoration: none; font-size: 12.5px; }
.rl-audit-f .rl-tab[aria-current] { background: var(--rl-surface); color: var(--rl-text); box-shadow: var(--rl-sh-1); }
@media (max-width: 900px) { .rl-set-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* Ask AI: every place readers ask, and what wasn't answered there. */
.rl-ask-where { margin: 4px 0 16px; font-size: 13.5px; color: var(--rl-muted); }
.rl-ask-where b { color: var(--rl-text); font-variant-numeric: tabular-nums; }
.rl-ask-else { padding: 0; margin-bottom: 20px; overflow: hidden; }
.rl-ask-else .rl-card-h { padding: 14px 18px; }
.rl-ask-else ul { list-style: none; margin: 0; padding: 0; }
.rl-ask-else li { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--rl-line); }
.rl-ask-q { flex: 1; min-width: 0; color: var(--rl-text); }
.rl-ask-m { flex: none; font-size: 12.5px; color: var(--rl-muted); }
@media (max-width: 900px) { .rl-ask-else li { flex-wrap: wrap; } }

/* Insights: four numbers, then the tabs (docs/mockups/coool/insights.html). */
.rl-in-kpis { margin: 4px 0 20px; }
.rl-in-tabs { margin-bottom: 18px; }

/* One environment (docs/mockups/coool/product.html). */
.rl-env-sec .rl-set-form { padding: 0 20px; }
.rl-env-sec .rl-set-row:last-child { border-bottom: 0; }
.rl-env-edit { margin-top: 18px; font-size: 13px; }

/* Inbox (docs/mockups/coool/inbox.html): every step of a broken guide's check, who holds a
   signed-out login, and the changed screens side by side. */
.rl-ib-all { margin: 4px 16px 14px; }
.rl-ib-all summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--rl-text); }
.rl-ib-all ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.rl-ib-all li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 6px 8px; border-radius: var(--rl-r-2); }
.rl-ib-all li.is-bad { background: var(--rl-bad-tint); }
.rl-ib-all li.is-none { color: var(--rl-faint); }
.rl-ib-n { font-variant-numeric: tabular-nums; color: var(--rl-muted); }
.rl-ib-t { display: grid; gap: 1px; min-width: 0; } .rl-ib-t b { font-weight: 500; } .rl-ib-t small { color: var(--rl-muted); font-size: 12px; }
.rl-ib-all li.is-ok .rl-ib-t small { color: var(--rl-ok); } .rl-ib-all li.is-bad .rl-ib-t small { color: var(--rl-bad); }
.rl-ib-took { font-size: 12px; color: var(--rl-faint); font-variant-numeric: tabular-nums; }
.rl-ib-holds { margin: 0 16px 10px; font-size: 13px; color: var(--rl-muted); }
.rl-cmp.is-live.side { border: 0; box-shadow: none; overflow: visible; }
.rl-cmp.is-live.side .rl-cmp-layers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rl-cmp.is-live.side [data-cmp-side="old"] { position: relative; inset: auto; clip-path: none; }
.rl-cmp.is-live.side .rl-cmp-layers .rl-shot { border: 1px solid var(--rl-line-2); border-radius: var(--rl-r-3); }
@media (max-width: 560px) { .rl-cmp.is-live.side .rl-cmp-layers { grid-template-columns: 1fr; } }

/* A page waiting on something else (empty-states.html): what it needs, the one thing to do, and
   the faint outline of what will be here. */
.rl-blank { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px; border: 1px solid var(--rl-line); border-radius: var(--rl-r-4); background: var(--rl-surface); }
.rl-blank h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; color: var(--rl-text); }
.rl-blank p { margin: 0; color: var(--rl-muted); max-width: 52ch; }
.rl-needs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.rl-needs li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--rl-text); }
.rl-needs li .rl-i { color: var(--rl-muted); flex: none; }
.rl-needs li.is-met .rl-i { color: var(--rl-ok); }
.rl-needs li a { margin-left: auto; font-size: 13px; }
.rl-blank-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.rl-blank-acts:empty { display: none; }
.rl-blank-ghost { display: grid; gap: 10px; padding: 16px; border: 1px dashed var(--rl-line-2); border-radius: var(--rl-r-3); background: var(--rl-surface-2); opacity: .75; }
.rl-blank-cap { font-size: 12px; color: var(--rl-muted); }
.rl-blank-ghost i { display: block; height: 8px; border-radius: 4px; background: var(--rl-line); margin-top: 8px; }
.rl-ghost-pic { display: block; aspect-ratio: 16 / 10; border-radius: 6px; border: 1px solid var(--rl-line); background: var(--rl-surface); }
.rl-ghost-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rl-ghost-row { display: flex; align-items: center; gap: 10px; }
.rl-ghost-thumb { width: 48px; height: 32px; flex: none; border-radius: 5px; border: 1px solid var(--rl-line); background: var(--rl-surface); }
.rl-ghost-lines { flex: 1; } .rl-ghost-lines i:first-child { margin-top: 0; }
.rl-ghost-chain { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; }
.rl-ghost-join { height: 2px; background: var(--rl-line-2); }
@media (max-width: 760px) { .rl-blank { grid-template-columns: minmax(0, 1fr); padding: 20px; } }

/* A notice on a sign-in, join or reset page: what happened, said once. */
.rl-note { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--rl-line); border-radius: var(--rl-r-3); background: var(--rl-surface-2); color: var(--rl-text); font-size: 13.5px; }

/* ka docs renderer styles — design tokens + everything render.js emits (prose,
   code, callouts, steps, tabs, cards, expandables, fields, figures, GitBook
   blocks). Shared by the reader (/docs) and the editor (/edit): what you edit is
   what gets published. Served at /docs-assets/render.css. */
:root {
  /* Reel (U1): the reader's tokens are Reel Editorial's (reel-ui's tokens.css, linked before this
     file). A tenant's theme (/docs-assets/theme.css) still sets its own --r-* over these. */
  --r-accent: var(--rl-action-fill);
  --r-bg: var(--rl-bg); --r-bg-soft: var(--rl-surface); --r-bg-sunk: var(--rl-sunk);
  --r-text: var(--rl-text); --r-body: var(--rl-body); --r-muted: var(--rl-muted); --r-faint: var(--rl-faint);
  --r-line: var(--rl-line); --r-line-strong: var(--rl-line-strong);
  --r-code-bg: var(--rl-code-bg); --r-code-text: var(--rl-code-text); --r-code-line: var(--rl-code-line); --r-code-muted: var(--rl-code-muted);
  --r-icode-bg: var(--rl-sunk); --r-icode-text: var(--rl-text);
  --r-shadow: var(--rl-shadow-2);
  --r-accent-soft: color-mix(in srgb, var(--r-accent) 10%, transparent);
  --r-accent-line: color-mix(in srgb, var(--r-accent) 38%, transparent);
  /* Links and accent-coloured words: the studio's link colour. A tenant that sets its own accent
     gets a readable shade of it (theme.rs), and a label colour chosen for it. */
  --r-accent-text: var(--rl-action);
  --r-on-accent: var(--rl-on-action);
  --r-sans: var(--rl-sans);
  --r-mono: var(--rl-mono);
  --r-display: var(--rl-display);
}

.i { flex: none; display: block; }
kbd { font: 500 11px/1 var(--r-mono); padding: 4px 6px; border: 1px solid var(--r-line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--r-bg); color: var(--r-muted); }

/* ---------- prose ---------- */
.prose { margin-top: 30px; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { position: relative; color: var(--r-text); letter-spacing: -.015em; line-height: 1.3; scroll-margin-top: 84px; border-radius: 6px; transition: background .6s; }
.prose h1 { font-size: 28px; margin: 52px 0 16px; }
.prose h2 { font-size: 23px; margin: 50px 0 14px; }
.prose h3 { font-size: 18.5px; margin: 36px 0 10px; }
.prose h4, .prose h5, .prose h6 { font-size: 16px; margin: 28px 0 8px; }
.prose h1.flash, .prose h2.flash, .prose h3.flash, .prose h4.flash { background: var(--r-accent-soft); }
.anchor { position: absolute; left: -26px; top: 0; padding: 0 6px; opacity: 0; color: var(--r-faint) !important; text-decoration: none !important; font-weight: 400 !important; }
.prose :is(h1,h2,h3,h4):hover .anchor { opacity: 1; }
.prose p { margin: 0 0 18px; }
.prose a { color: var(--r-text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--r-accent-line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--r-accent); }
.prose strong { color: var(--r-text); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 6px 0; padding-left: 2px; }
.prose li > ul, .prose li > ol { margin: 6px 0 0; }
.prose li::marker { color: var(--r-faint); }
.prose li.task { list-style: none; margin-left: -22px; }
.prose li.task input { margin: 0 8px 0 0; accent-color: var(--r-accent); }
.prose :not(pre) > code { font: 500 .86em var(--r-mono); background: var(--r-icode-bg); color: var(--r-icode-text); padding: .16em .42em; border-radius: 6px; border: 1px solid var(--r-line); overflow-wrap: anywhere; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose p > img:only-child { display: block; margin: 8px 0; border: 1px solid var(--r-line); }
.prose blockquote { margin: 0 0 18px; padding: 2px 0 2px 18px; border-left: 3px solid var(--r-line-strong); color: var(--r-muted); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--r-line); margin: 38px 0; }
.table-wrap { margin: 0 0 22px; overflow-x: auto; border: 1px solid var(--r-line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.prose th { text-align: left; font-weight: 600; color: var(--r-text); background: var(--r-bg-soft); }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--r-line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }

/* code — dark in both themes */
.code { margin: 0 0 22px; border-radius: 14px; background: var(--r-code-bg); border: 1px solid var(--r-code-line); overflow: hidden; }
.code-head { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--r-code-line); font: 500 12.5px var(--r-mono); color: var(--r-code-muted); }
.code-lang { margin-left: auto; opacity: .7; }
.code-body { position: relative; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.7 var(--r-mono); color: var(--r-code-text); tab-size: 2; }
.code pre code { font: inherit; background: none; border: 0; padding: 0; color: inherit; }
.copy { position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--r-code-line); background: var(--r-code-bg); color: var(--r-code-muted); cursor: pointer; opacity: 0; transition: opacity .15s, color .15s; }
.code:hover .copy, .copy:focus-visible { opacity: 1; }
.copy:hover { color: var(--r-code-text); }
.copy.done { color: var(--rl-code-string); opacity: 1; }
.tk-c { color: var(--rl-code-comment); font-style: italic; } .tk-s { color: var(--rl-code-string); } .tk-n { color: var(--rl-code-number); } .tk-k { color: var(--rl-code-keyword); }

/* MDX components */
.callout { --c: var(--rl-action-fill); display: flex; gap: 12px; margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 24%, transparent); background: color-mix(in srgb, var(--c) 7%, transparent); font-size: 15px; line-height: 1.65; }
.callout .ci { color: var(--c); margin-top: 3px; }
.callout > div { min-width: 0; flex: 1; }
.callout > div > :last-child { margin-bottom: 0; }
.callout.tip, .callout.check { --c: var(--rl-verified-fill); } .callout.warning { --c: var(--rl-changed-fill); } .callout.danger { --c: var(--rl-broken-fill); } .callout.info { --c: var(--rl-action-fill); }
.steps { margin: 6px 0 24px; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding-bottom: 8px; counter-increment: step; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 13.5px; top: 36px; bottom: 6px; width: 1px; background: var(--r-line-strong); }
.step-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--r-bg-sunk); border: 1px solid var(--r-line-strong); color: var(--r-text); font-size: 13px; font-weight: 600; }
.step-num::before { content: counter(step); }
.step-title { margin: 1px 0 8px; font-weight: 600; color: var(--r-text); }
.tabs { margin: 0 0 22px; border: 1px solid var(--r-line); border-radius: 14px; overflow: hidden; }
.tab-bar { display: flex; gap: 2px; padding: 0 10px; background: var(--r-bg-soft); border-bottom: 1px solid var(--r-line); overflow-x: auto; scrollbar-width: none; }
.tab-bar button { padding: 11px 10px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--r-muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.tab-bar button:hover { color: var(--r-text); }
.tab-bar button.on { color: var(--r-text); border-bottom-color: var(--r-accent); }
.tab-panel { padding: 18px 18px 0; }
.tab-panel > :last-child { margin-bottom: 18px; }
.tabs.codegroup { background: var(--r-code-bg); border-color: var(--r-code-line); }
.codegroup .tab-bar { background: transparent; border-color: var(--r-code-line); }
.codegroup .tab-bar button { color: var(--r-code-muted); font-family: var(--r-mono); font-size: 12.5px; }
.codegroup .tab-bar button.on { color: var(--r-code-text); }
.codegroup .tab-panel { padding: 0; }
.codegroup .tab-panel > .code { margin: 0; border: 0; border-radius: 0; }
.codegroup .code-head { display: none; }
.cards { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; }
.card { display: block; margin: 0 0 12px; padding: 18px 18px 16px; border: 1px solid var(--r-line); border-radius: 14px; color: var(--r-body) !important; font-weight: 400 !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cards > .card { margin: 0; }
a.card:hover { border-color: var(--r-accent-line); box-shadow: var(--r-shadow); }
.card-title { margin-bottom: 4px; font-size: 15.5px; font-weight: 600; color: var(--r-text); }
.card-body { font-size: 14.5px; line-height: 1.6; color: var(--r-muted); }
.card-body > :last-child { margin-bottom: 0; }
details.acc { margin: 0 0 12px; border: 1px solid var(--r-line); border-radius: 12px; overflow: hidden; }
details.acc summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; font-weight: 600; color: var(--r-text); list-style: none; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--r-muted); border-bottom: 2px solid var(--r-muted); transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
details.acc[open] summary::before { transform: rotate(45deg); }
details.acc > div { padding: 2px 16px 2px 36px; }
.field { padding: 16px 0; border-bottom: 1px solid var(--r-line); }
.field-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.prose code.field-name { font: 600 14px var(--r-mono); color: var(--r-accent-text); background: none; border: 0; padding: 0; }
.pill { font: 500 12px var(--r-mono); padding: 2px 8px; border-radius: 6px; background: var(--r-bg-sunk); color: var(--r-muted); }
.pill.req { color: var(--rl-broken); background: var(--rl-broken-tint); }
.field-body > :last-child { margin-bottom: 0; }
figure.fig { margin: 0 0 22px; }
figure.fig img { display: block; margin: 0 auto; border: 1px solid var(--r-line); }
figure.fig figcaption { padding-top: 8px; font-size: 13.5px; color: var(--r-muted); text-align: center; }
figure.fig figcaption p { margin: 0; }
.card-cover { display: block; width: calc(100% + 36px); margin: -18px -18px 14px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 13px 13px 0 0; border: 0 !important; }
.linkcard { display: flex !important; align-items: center; gap: 12px; }
.linkcard .card-title { margin: 0; }
.lc-ico { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--r-bg-sunk); color: var(--r-muted); }
.lc-url { display: block; font-size: 12.5px; color: var(--r-muted); overflow-wrap: anywhere; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 0 0 22px; align-items: start; }
.col > :last-child { margin-bottom: 0; }
.prompt { margin: 0 0 22px; border: 1px solid var(--r-line); border-radius: 14px; padding: 12px 14px 0; background: var(--r-bg-soft); }
.prompt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; color: var(--r-text); }
.updates { margin: 0 0 22px; }
.update { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--r-line); }
.update-date { font-size: 13px; font-weight: 600; color: var(--r-muted); }
.update-body > :first-child { margin-top: 0; }
.cond { margin: 0 0 22px; padding: 12px 16px 2px; border: 1px dashed var(--r-line-strong); border-radius: 12px; }
.cond-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--r-faint); }
.btn-link { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; margin: 2px 4px 2px 0; border: 1px solid var(--r-line-strong); border-radius: 9px; color: var(--r-text) !important; font-weight: 600 !important; font-size: 14px; text-decoration: none !important; }
.btn-link.primary { background: var(--r-accent); border-color: var(--r-accent); color: var(--r-on-accent) !important; }
.prose mark { background: var(--rl-mark); color: inherit; border-radius: 3px; padding: 0 2px; }
.prose td h1, .prose td h2, .prose td h3, .prose td h4 { margin: 0 0 4px; font-size: 15px; }
.prose td > :last-child, .prose td p:last-child { margin-bottom: 0; }
figure.frame { margin: 0 0 22px; padding: 8px; border: 1px solid var(--r-line); border-radius: 16px; background: var(--r-bg-soft); }
figure.frame img { display: block; margin: 0 auto; }
figure.frame figcaption { padding: 8px 4px 2px; font-size: 13.5px; color: var(--r-muted); text-align: center; }

/* Reel (U2): the verified help center: the home's guide cards, the guide page, and Ask on every
   page. Served with render.css, on Reel Editorial's tokens. */

/* Home */
.vh-hero { padding: 40px 0 36px; text-align: center; }
.vh-title { margin: 6px 0 12px; font: 400 clamp(34px, 5vw, 50px)/1.06 var(--rl-display); letter-spacing: -.025em; font-variation-settings: "opsz" 120; color: var(--r-text); }
.vh-lede { margin: 0 auto 26px; max-width: 600px; font-size: 17px; line-height: 1.6; color: var(--r-muted); }
.vh-lede strong { color: var(--r-text); font-weight: 600; }
.vh-coll { margin: 40px 0 0; }
.vh-coll-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.vh-coll-head h2 { margin: 0; font: 600 var(--rl-t-lg)/1.3 var(--rl-sans); color: var(--r-text); letter-spacing: -.01em; }
.vh-coll-head span { font-size: var(--rl-t-sm); color: var(--r-muted); }
.vh-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.vh-card { display: flex; flex-direction: column; overflow: hidden; background: var(--rl-surface); border: 1px solid var(--r-line); border-radius: var(--rl-r3);
  color: inherit; text-decoration: none; box-shadow: var(--rl-shadow-1);
  transition: border-color var(--rl-fast) var(--rl-ease), box-shadow var(--rl-fast) var(--rl-ease), transform var(--rl-fast) var(--rl-ease); }
.vh-card:hover { border-color: var(--r-line-strong); box-shadow: var(--rl-shadow-2); transform: translateY(-2px); }
.vh-card:focus-visible { outline: 2px solid var(--rl-action-fill); outline-offset: 2px; }
.vh-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rl-stage); border-bottom: 1px solid var(--r-line); }
.vh-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform var(--rl-slow) var(--rl-ease); }
.vh-card:hover .vh-thumb img { transform: scale(1.025); }
.vh-card-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.vh-card-body .rl-pill { justify-self: start; }
.vh-card-title { font: 600 var(--rl-t-md)/1.35 var(--rl-sans); color: var(--r-text); }
.vh-card-goal { font-size: var(--rl-t-sm); line-height: 1.5; color: var(--r-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vh-card-meta { font: 500 var(--rl-t-xs)/1.4 var(--rl-mono); color: var(--r-faint); letter-spacing: -.01em; }
.vh-other { margin-top: 44px; }

/* Guide page */
.doc.is-guide .lede { font-size: 17px; }
.vh-helpful { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--r-muted); font-size: 13px; }
.vh-helpful button { height: 28px; padding: 0 12px; border: 1px solid var(--r-line-strong); border-radius: var(--rl-pill); background: var(--rl-surface); color: var(--r-text); font: 500 13px var(--rl-sans); cursor: pointer; }
.vh-helpful button:hover { background: var(--rl-sunk); }
.vh-helpful form { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
.vh-helpful textarea { flex: 1; min-height: 60px; padding: 8px 10px; border: 1px solid var(--r-line-strong); border-radius: var(--rl-r2); background: var(--rl-surface); color: var(--r-text); font: 14px/1.5 var(--rl-sans); resize: vertical; }

/* Ask on every page: a bar that stays at the bottom of the reading column. */
.vh-ask { position: sticky; bottom: 16px; z-index: 25; max-width: 760px; margin: 40px auto 0; }
.doc.is-home ~ .vh-ask { display: none; }
.vh-bar { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border: 1px solid var(--r-line-strong); border-radius: 16px;
  background: color-mix(in srgb, var(--rl-surface) 92%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--rl-shadow-2); transition: border-color var(--rl-fast) var(--rl-ease), box-shadow var(--rl-fast) var(--rl-ease); }
.vh-bar:focus-within { border-color: var(--rl-action-fill); box-shadow: 0 0 0 4px var(--rl-focus), var(--rl-shadow-2); }
.vh-bar .vh-spark { color: var(--rl-action); display: grid; }
.vh-bar input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: none; color: var(--r-text); font: 15px var(--rl-sans); }
.vh-bar kbd { flex: none; }
.vh-go { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 11px; background: var(--rl-action-fill); color: var(--rl-on-action); cursor: pointer; }
.vh-go:disabled { opacity: .5; cursor: default; }
.vh-sheet { margin: 0 0 10px; max-height: min(52vh, 520px); overflow: auto; padding: 16px 18px; background: var(--rl-surface); border: 1px solid var(--r-line); border-radius: var(--rl-r3);
  box-shadow: var(--rl-shadow-3); animation: vh-up var(--rl-slow) var(--rl-ease); }
@keyframes vh-up { from { opacity: 0; transform: translateY(8px); } }
.vh-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.vh-sheet-head span { font: 600 var(--rl-t-xs)/1 var(--rl-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--r-muted); }
.vh-sheet-head button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--r-muted); cursor: pointer; font-size: 18px; }
.vh-sheet-head button:hover { background: var(--rl-sunk); color: var(--r-text); }
.vh-turn + .vh-turn { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--r-line); }
.vh-q { margin: 0 0 8px; font-size: 13px; color: var(--r-muted); }
.vh-a { margin: 0; font-size: 15px; line-height: 1.65; color: var(--r-text); }
.vh-a.is-thinking { color: var(--r-muted); }
.vh-claim { animation: vh-in var(--rl-slow) var(--rl-ease); }
@keyframes vh-in { from { opacity: 0; } }
.vh-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.vh-note { margin: 10px 0 0; font-size: 13px; color: var(--r-muted); }
.vh-a.is-gap { color: var(--r-body); }
.vh-peek { position: fixed; z-index: 70; width: min(380px, 80vw); padding: 8px; background: var(--rl-surface); border: 1px solid var(--r-line); border-radius: var(--rl-r3); box-shadow: var(--rl-shadow-3); pointer-events: none; }
.vh-peek .rl-step-shot { margin: 0; }
.vh-peek p { margin: 6px 2px 0; font-size: 12.5px; color: var(--r-body); }
.vh-sel { position: absolute; z-index: 60; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: var(--rl-pill);
  background: var(--rl-ink); color: var(--rl-cream); font: 500 13px var(--rl-sans); box-shadow: var(--rl-shadow-2); cursor: pointer; }
.rl-guide .rl-step.is-cited .rl-step-shot { box-shadow: 0 0 0 3px var(--rl-verified-fill); transition: box-shadow var(--rl-slow) var(--rl-ease); }

@media (max-width: 760px) {
  .vh-hero { padding: 16px 0 24px; }
  .vh-bar kbd { display: none; }
  .vh-ask { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .vh-sheet, .vh-claim { animation: none; }
  .vh-card:hover, .vh-card:hover .vh-thumb img { transform: none; }
}

/* helpcenter-home.html: three questions it can answer, what's new, still stuck. */
.vh-asked { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 0; }
.vh-asked button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--r-line); background: none; color: var(--r-body); cursor: pointer; }
.vh-asked button:hover { border-color: var(--r-line-strong); color: var(--r-text); }
.vh-new, .vh-stuck { margin: 0 0 28px; }
.vh-pop ul { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.vh-new h2, .vh-stuck h2 { margin: 0 0 10px; font-size: 16px; color: var(--r-text); }
.vh-new ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vh-new li a, .vh-new li { display: grid; gap: 2px; text-decoration: none; }
.vh-new li b { color: var(--r-text); font-weight: 600; } .vh-new li span { color: var(--r-muted); font-size: 13.5px; }
.vh-stuck p { margin: 0; color: var(--r-muted); }
/* helpcenter.html: a guide's Steps and Video, one at a time. */
.vh-tabs { display: inline-flex; gap: 4px; margin: 4px 0 16px; padding: 3px; border: 1px solid var(--r-line); border-radius: 10px; }
.vh-tabs button { font: inherit; font-size: 13.5px; font-weight: 500; padding: 6px 14px; border-radius: 7px; border: 0; background: none; color: var(--r-muted); cursor: pointer; }
.vh-tabs button[aria-selected="true"] { background: var(--r-line); color: var(--r-text); }
.rl-guide-player[hidden], .rl-steps[hidden] { display: none; }
