
@font-face { font-family: 'DM Sans Variable'; font-style: normal; font-display: swap; font-weight: 100 1000; src: url(/fonts/dm-sans-latin-wght-normal.woff2) format('woff2-variations'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/dm-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/dm-mono-latin-500-normal.woff2) format('woff2'); }
  :root {
    --bg: #f7f8fa;          /* bg-surface */
    --panel: #ffffff;       /* bg-surface-raised */
    --panel-2: #f0f2f6;     /* bg-row-hover */
    --line: #e4e6eb;        /* border-border */
    --text: #1a1d27;        /* text-fg */
    /* Secondary text stays readable on every surface, including row hover. */
    --muted: #646a77;
    --faint: #646a77;
    --accent: #2e5bff;      /* bg-accent */
    --accent-hover: #1f4ae6;
    --accent-subtle: rgba(46,91,255,.12);
    --accent-fg: #ffffff;   /* text-accent-fg: text on an accent fill */
    /* Text on an accent-subtle or status tint (pills, selected tabs, chips).
       The fill colour itself measured 4.13-4.36:1 on its own tint. */
    --accent-ink: #1f4ae6;
    --ok-ink: #18704c;
    --ok: #1f845a;          /* status-ok */
    --warn: #b25e09;        /* status-warn */
    --bad: #c9372c;         /* status-bad */
    --you: #5b3fd1;         /* a decision only a human can make */
    --r-sm: 4px; --r-md: 6px; --r-lg: 8px;
    --mono: 'DM Mono', ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    --sans: 'DM Sans Variable', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: light;
  }
  .dark {
    --bg: #1a1d21;
    --panel: #222529;
    --panel-2: #26292e;
    --line: #34373d;
    --text: #e8eaed;
    --muted: #9aa0aa;
    --faint: #9399a5;
    /* The platform's dark accent (web/src/design-system/tailwind.css): no blue
       carries both white text and link text on #26292e at AA, so dark mode
       uses the readable light step and puts dark ink on a fill. #5b7cff with
       white measured 3.64:1; links on the panel 4.23:1. */
    --accent: #7089ff;
    --accent-hover: #8aa0ff;
    --accent-subtle: rgba(112,137,255,.16);
    --accent-fg: #111318;
    --accent-ink: #9aaeff;
    --ok-ink: #3dba83;
    --ok: #3dba83;
    --warn: #e2a03f;
    --bad: #f2655a;
    --you: #a28df2;
    color-scheme: dark;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  /* A classic scrollbar takes its width only on a page that scrolls, so the
     centred shell moved sideways between a short page and a long one (#12169).
     Reserving the gutter on every page keeps it still. */
  html { scrollbar-gutter: stable; }
  body { background: var(--bg); color: var(--text);
         font: 13px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }
  .pushgate-mark { display: block; overflow: visible; flex: none; }
  .dark .pushgate-mark .pg-gate-top { fill: #e8eaed; }
  .dark .pushgate-mark .pg-gate-side { fill: #cfd3da; }
  .dark .pushgate-mark .pg-gate-dark { fill: #aeb4c0; }

  .app { min-height: 100vh; }
  /* One measure lines up the nav, the page title, and the content on a single
     left edge — the same trick the marketing pages use, so app and site share
     one spine. */
  .in { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

  /* ---- top nav ----
     Three flat destinations don't earn a vertical rail; a horizontal bar is
     the convention at that count, and it matches the landing/pricing chrome so
     crossing from the site into the app reads as one product, not two. */
  .topnav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
            background: color-mix(in srgb, var(--bg) 82%, transparent);
            border-bottom: 1px solid var(--line); }
  .topnav .in { height: 52px; display: flex; align-items: center; gap: 6px; }
  .topnav .brand { display: flex; align-items: center; --pushgate-mark: 22px; gap: calc(var(--pushgate-mark) * 0.0799 + 3px); margin-right: 10px; }
  .topnav .brand:hover { text-decoration: none; }
  .topnav .brand .pushgate-mark { width: var(--pushgate-mark); height: var(--pushgate-mark); }
  .topnav .brand b { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
  .topnav nav { display: flex; align-items: center; gap: 2px; }
  .topnav nav a { padding: 5px 11px; border-radius: var(--r-md); color: var(--muted);
                  font-size: 13px; line-height: 1; }
  .topnav nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
  .topnav nav a.here { background: var(--panel-2); color: var(--text); font-weight: 500; }
  .topnav .grow { flex: 1; }
  .topnav .docs { color: var(--faint); font-size: 12.5px; padding: 0 4px; }
  .topnav .docs:hover { color: var(--text); text-decoration: none; }
  .topnav .ghmark { display: inline-flex; align-items: center; padding: 0 6px; }
  #themeb { background: none; border: 0; color: var(--faint); cursor: pointer;
            font: 12.5px var(--sans); padding: 4px 6px; }
  #themeb:hover { color: var(--text); }
  .topnav .sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
  /* The session is the one part of the row that gives way: the workspace
     name shortens to an ellipsis, and Sign out keeps its size and its line. */
  .topnav .session { display: flex; align-items: center; gap: 7px; min-width: 0; }
  .topnav .session .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
  .topnav .session .tenant { font-size: 12.5px; color: var(--text); max-width: 160px; min-width: 0;
                             overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topnav .session form { display: contents; }
  .topnav .session button { background: none; border: 0; color: var(--faint); flex: none; white-space: nowrap;
                            font: 12px var(--sans); cursor: pointer; padding: 2px; }
  .topnav .session button:hover { color: var(--text); }
  .topnav .signin { background: var(--accent); color: var(--accent-fg, #fff); border-radius: var(--r-md);
                    padding: 6px 14px; font-weight: 600; font-size: 12.5px; }
  .topnav .signin:hover { text-decoration: none; background: var(--accent-hover); }
  /* Below 1024px one row cannot hold the nav beside the links and the account
     (it needs about 990px with a full-length workspace name), so the nav
     takes a second row and nothing is hidden. The page never widens: at the
     narrowest widths only that second row scrolls sideways. */
  @media (max-width: 1023px) {
    .topnav .in { height: auto; min-height: 52px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .topnav nav { order: 1; flex: 0 0 100%; min-width: 0; overflow-x: auto; padding: 2px 0; }
    .topnav nav a { flex: none; white-space: nowrap; }
  }
  /* ---- the phone menu ----
     The links, the theme and the session are one element, .topmenu. Above
     640px it has no box of its own and they sit in the header row. At 640px
     and below it is a sheet under the header that the Menu control opens, so
     a phone reaches the same controls a desktop shows, not a second copy.
     Every rule that hides them needs .pg-js, which the menu's own script
     sets once it has mounted: without the script the header is as it was. */
  .topmenu { display: contents; }
  .topnav .menub, .topmenu-head { display: none; }
  .topmenu-scrim { position: fixed; inset: 0; z-index: 19; background: rgba(15,17,23,.28); }
  .topmenu-scrim[hidden] { display: none; }
  @media (max-width: 640px) {
    .topnav .brand { margin-right: 0; }
    .topnav nav a { padding: 5px 5px; }
    .topnav .sep { display: none; }
    :root:not(.pg-js) .topnav .docs, :root:not(.pg-js) .topnav .session .tenant { display: none; }
    .pg-js .topnav .menub { display: inline-flex; }
    .pg-js .topmenu { display: none; }
    .pg-js .topmenu.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
                           max-height: calc(100vh - 110px); overflow-y: auto; padding: 4px 16px 12px;
                           background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
    .pg-js .topmenu.open .topmenu-head { display: flex; align-items: center; min-height: 52px; }
    .topmenu-head h2 { flex: 1; font-size: 14px; font-weight: 600; }
    .pg-js .topmenu.open :is(.docs, #themeb, .session button, .pg-sheet-close) { min-height: 44px; }
    .pg-js .topmenu.open :is(.docs, #themeb, .session button) { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0 4px;
                           border-top: 1px solid var(--line); color: var(--text); font-size: 14px; text-align: left; }
    .pg-js .topmenu.open .ghmark::after { content: 'Source on GitHub'; }
    .pg-js .topmenu.open #themeb::before { content: 'Theme:'; color: var(--muted); }
    .pg-js .topmenu.open .session { display: block; }
    .pg-js .topmenu.open .session .dot { display: none; }
    .pg-js .topmenu.open .session .tenant { display: block; max-width: none; white-space: normal; overflow-wrap: anywhere;
                           padding: 12px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
  }

  /* ---- page ---- */
  .pagehead { padding: 22px 0 0; }
  .pagehead .in { display: flex; align-items: baseline; gap: 12px; }
  .pagehead h1 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
  .pagehead .sub { color: var(--muted); font-size: 12.5px; }
  .content { padding: 18px 0 80px; }
  .content.in { padding-left: 28px; padding-right: 28px; }

  /* ---- shared atoms ---- */
  .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
  .dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); }
  .dot.warn { background: var(--warn); } .dot.faint { background: var(--faint); }
  .dot.you { background: var(--you); }
  .mono { font: 12px var(--mono); }
  .pill { display: inline-flex; align-items: center; gap: 5px;
          border: 1px solid var(--line); border-radius: 999px;
          padding: 1px 9px; font-size: 11.5px; color: var(--muted); }
  .empty { border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 40px;
           text-align: center; color: var(--muted); font-size: 13px; }
  /* An empty state that is really a FIRST RUN carries the action, not a
     sentence pointing at another page. */
  .empty h2 { font-size: 16px; font-weight: 600; color: var(--text);
              letter-spacing: -0.01em; margin-bottom: 8px; }
  .empty p { max-width: 48ch; margin: 0 auto; line-height: 1.6; }
  .empty .cta, .empty .ghost { display: inline-block; margin-top: 18px;
              border-radius: var(--r-md); padding: 9px 18px;
              font-weight: 600; font-size: 13px; }
  .empty .cta { background: var(--accent); color: var(--accent-fg, #fff); }
  .empty .cta:hover { background: var(--accent-hover); text-decoration: none; }
  .empty .ghost { border: 1px solid var(--line); color: var(--text); }
  .empty .ghost:hover { border-color: var(--accent); text-decoration: none; }
  .empty .micro { margin-top: 12px; font-size: 12px; color: var(--faint); }
  .empty.first { padding: 52px 40px; background: var(--panel); border-style: solid; }

  /* ---- shared controls ----
     One button, one field, one sheet Close and one focus ring for every page.
     A page puts the class on the native element and writes no size, border or
     focus CSS of its own. Nothing here sets a fixed height: min-height keeps
     the row even, and a long label still grows its box. */
  .pg-btn, .pg-sheet-close { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
            min-height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-md);
            background: var(--panel); color: var(--text); font: 500 13px/1.2 var(--sans);
            white-space: nowrap; cursor: pointer; text-decoration: none; }
  .pg-btn:hover, .pg-sheet-close:hover { border-color: var(--accent); text-decoration: none; }
  .pg-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
  .pg-btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
  .pg-btn.danger { color: var(--bad); }
  .pg-btn.danger:hover { border-color: var(--bad); }
  .pg-btn.quiet { background: none; border-color: transparent; color: var(--muted); }
  .pg-btn.quiet:hover { background: var(--panel-2); border-color: transparent; color: var(--text); }
  .pg-btn:disabled, .pg-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
  .pg-input { display: block; width: 100%; min-width: 0; min-height: 30px; padding: 5px 10px;
              border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel);
              color: var(--text); font: 13px/1.4 var(--sans); }
  textarea.pg-input { min-height: 72px; resize: vertical; field-sizing: content; }
  .pg-input::placeholder { color: var(--faint); opacity: 1; }
  .pg-input:disabled { opacity: .55; }
  /* A field's label is text beside the control, never its placeholder. */
  .pg-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12.5px; color: var(--muted); }
  .pg-field > span { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
  /* Close is the control on every sheet and drawer. Esc is a hint for people
     with a keyboard, so it shows only where there is a hovering, fine pointer. */
  .pg-kbd-hint { display: none; }
  @media (hover: hover) and (pointer: fine) {
    .pg-kbd-hint { display: inline-block; }
  }
  /* A link inside running text or a row is marked by more than its colour
     (#11926 QA-08): underlined at rest, heavier on hover. */
  a.pg-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
  a.pg-link:hover { text-decoration-thickness: 2px; }
  :is(.pg-btn, .pg-input, .pg-sheet-close, .pg-link, .pg-focus):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  @media (pointer: coarse) {
    .pg-btn, .pg-input, .pg-sheet-close { min-height: 44px; }
  }

  /* Declared here, not borrowed. The same class exists in policylibrary.js, but
     that stylesheet is not loaded on this page, so relying on it would render
     the one label whose whole job is to be read as unstyled text. */
  .pg-sample-band { margin: 0 0 14px; padding: 8px 12px; border: 1px solid var(--line);
                    border-radius: var(--r-md); background: var(--accent-subtle); font-size: 12.5px; }
  .filters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; align-items: center; }
  .filters button { background: none; border: 1px solid transparent; color: var(--muted);
                    font: 12.5px var(--sans); padding: 4px 11px; border-radius: 6px;
                    cursor: pointer; white-space: nowrap; }
  .filters button:hover { color: var(--text); }
  .filters button.on { background: var(--panel-2); border-color: var(--line);
                       color: var(--text); }
  .filters .count { color: var(--faint); margin-left: 4px; }
  .filters .spacer { flex: 1; }
  .filters .repooverview { font-size: 12.5px; padding: 4px 8px; white-space: nowrap; }
  .agentscope { font-size: 13px; color: var(--muted); margin: 0 0 10px; }

  .plist { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .prow { border-bottom: 1px solid var(--line); }
  .prow:last-child { border-bottom: 0; }
  /* Two lines by default (the Linear shape): line 1 is WHAT was pushed —
     subject, branch, sha, then the state and the time on a right rail; line 2
     is WHO and HOW — the signer chips the gate verified, the reported agent
     context with its caveat, then the repo and the check count. The row is a
     grid of dot | body so the rail can never overlap the title. */
  .prow > .line { display: grid; grid-template-columns: 8px minmax(0, 1fr);
                  column-gap: 12px; align-items: start;
                  padding: 11px 14px 12px; cursor: pointer;
                  font-variant-numeric: tabular-nums; }
  .prow > .line > .dot { margin-top: 6px; }
  .prow .l1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .prow .push-toggle { display: flex; flex: 1 1 auto; min-width: 45%;
                       border: 0; background: none; padding: 0; font: inherit;
                       text-align: left; cursor: pointer; }
  .prow .push-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
  .prow .l1 .subject { flex: 1 1 auto; min-width: 45%; font-weight: 500; color: var(--text);
                       white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .prow .l1 .subject.dnone { color: var(--faint); font-weight: 400; }
  .prow .l1 .subject.merge, .detail .dsubject.merge { color: var(--faint); font-weight: 400; }
  .prow .l1 .ref { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
  .prow .l1 .commit { flex: none; font-size: 11.5px; }
  .prow .rail { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
  .prow .l2 { display: flex; align-items: center; gap: 8px; margin-top: 5px; margin-left: -3px;
              min-width: 0; overflow: hidden; }
  .prow .l2 .lsep { width: 1px; height: 12px; background: var(--line); flex: none; align-self: center; margin: 0 2px; }
  .prow .l2 .why { flex: 0 1 auto; min-width: 0; font-size: 11.5px; color: var(--faint); }
  /* The status phrase arrives after the page draws: its line box is held to
     the separator's height so its arrival never moves the rows below. */
  .prow .l2 .rowstatus { flex: none; font-size: 11.5px; line-height: 12px; white-space: nowrap; color: var(--muted); }
  .prow .l2 .vxbadge { flex: none; font-size: 11px; line-height: 16px; white-space: nowrap; color: var(--bad); padding: 0 6px;
    border: 1px solid color-mix(in srgb, var(--bad) 40%, var(--line)); border-radius: 999px; }
  .prow .l2 .vxbadge[hidden] { display: none; }
  .prow .l2 .why.bad { color: var(--bad); }
  .prow .l2 .why.warn { color: var(--warn); }
  /* The next step (pushrowmodel.js): after the reason, never instead of it. */
  .prow .l2 .next.none { display: none; }
  .prow .l2 .next { flex: 0 1 auto; min-width: 0; font-size: 11.5px; color: var(--muted);
                    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .prow .l2 .why a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
  .prow .l2 .why a:hover { color: var(--text); border-bottom-color: var(--accent); }
  .prow .l2 .mref { display: none; }
  .prow .l2 .who { font: 11.5px var(--mono); }
  /* Chips: one compact control per verified fact. Avatar + text; hover fill;
     click opens the identity card. No badge — the avatar shape and the name
     colour say which kind, the card says it in words. */
  /* Each chip is its own target: at least 24px tall, never overlapping its
     neighbour (WCAG 2.5.8; #11926 QA-05). The glyph inside stays 18px. */
  .prow .chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; min-width: 24px; padding: 0 7px 0 3px;
                border-radius: 6px; border: 0; background: transparent; font: 500 12px var(--sans);
                color: var(--muted); cursor: pointer; white-space: nowrap; max-width: 100%; flex: none; }
  .prow .chip:hover, .prow .chip[aria-expanded="true"] { background: var(--accent-subtle); color: var(--text); }
  .prow .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .prow .chip .av { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center;
                    box-shadow: 0 0 0 1px var(--line) inset; }
  .prow .chip .av svg, .prow .chip .av img { width: 18px; height: 18px; display: block; }
  .prow .chip .av.hm { background: var(--human-subtle); color: var(--human-ink); font: 600 9px/18px var(--sans); box-shadow: none; }
  .prow .chip .t { overflow: hidden; text-overflow: ellipsis; }
  .prow .chip.is-agent .t { color: var(--agent-ink); font-family: var(--mono); }
  .prow .chip.is-human .t { color: var(--human-ink); }
  .prow .chip.is-owner { padding-left: 6px; }
  .prow .chip.is-owner .t i { font-style: normal; font-weight: 400; color: var(--faint); margin-right: 4px; }
  :root { --agent-ink: #4b3fb0; --agent-subtle: rgba(75,63,176,.10); --human-ink: #1f845a; --human-subtle: rgba(31,132,90,.10); }
  .dark { --agent-ink: #a99cff; --agent-subtle: rgba(169,156,255,.14); --human-ink: #3dba83; --human-subtle: rgba(61,186,131,.14); }
  /* The identity card: one element on the body, filled from the chip's data,
     anchored under the chip (or a bottom sheet when the list is narrow — the
     script sets .sheet at the same 520px the container rules below use).
     Esc or click-away closes. */
  .plist { position: relative; container-type: inline-size; overflow: visible; }
  .plist .prow:first-child > .line { border-radius: 10px 10px 0 0; }
  .plist .prow:last-child > .line { border-radius: 0 0 10px 10px; }
  .idcard { position: absolute; z-index: 10; width: 380px; background: var(--panel); border: 1px solid var(--line);
            border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14), 0 1px 2px rgba(0,0,0,.08); padding: 12px; display: none; }
  .idcard[data-open] { display: block; }
  .idcard .head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
  .idcard:focus { outline: none; }
  .idcard .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .idcard .idclose { font: 500 12px var(--sans); color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
                     border-radius: 6px; min-height: 32px; padding: 0 12px; cursor: pointer; }
  .idcard .idclose:hover { border-color: var(--faint); }
  .idcard .idclose:focus-visible, .idcard .acts button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .idcard.sheet .idclose { min-height: 44px; padding: 0 16px; }
  .idcard .head .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
  .idcard .head .av svg, .idcard .head .av img { width: 40px; height: 40px; display: block; }
  .idcard .head .av.hm { background: var(--human-subtle); color: var(--human-ink); font: 600 16px var(--sans); }
  .idcard .head .nm { font: 500 13px var(--mono); }
  .idcard .head .nm.agent { color: var(--agent-ink); }
  .idcard .head .nm.human { color: var(--human-ink); }
  .idcard .head .sub { font-size: 11.5px; color: var(--muted); }
  .idcard dl { display: grid; grid-template-columns: 96px 1fr; gap: 5px 10px; margin: 12px 0 0; padding-top: 10px;
               border-top: 1px solid var(--line); font-size: 12px; }
  .idcard dt { color: var(--faint); font: 11px var(--mono); padding-top: 1px; }
  .idcard dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
  .idcard dd code { font: 11px var(--mono); color: var(--muted); }
  .idcard dd.uri { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .idcard dd .em { color: var(--faint); font: 11px var(--mono); margin-left: 6px; }
  .idcard dd .rep { border-bottom: 1px dashed var(--faint); }
  .idcard dd .unres { color: var(--faint); }
  .idcard .acts { display: flex; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
  .idcard .acts button { font: 500 11.5px var(--sans); color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
                         border-radius: 5px; padding: 4px 8px; cursor: pointer; }
  .idcard .acts button:hover { border-color: var(--faint); }
  .idscrim { position: fixed; inset: 0; background: rgba(0,0,0,.28); display: none; z-index: 9; }
  .idscrim.sheet[data-open] { display: block; }
  .idcard.sheet { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; border-radius: 12px 12px 0 0;
                  box-shadow: 0 -8px 24px rgba(0,0,0,.18); padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 78vh; overflow: auto; }
  .idcard.sheet dd.uri, .idcard.sheet dt.uri { display: none; }
  /* Narrow (a phone, or a narrow panel): exactly two lines. Title and time;
     then the signer with the owner stacked behind the sigil, and the branch.
     Model, repo, sha and check count are left off — the expansion and the
     card carry them. A refused row keeps its word, in red. The card becomes
     a bottom sheet. */
  @container (max-width: 520px) {
    .prow > .line { grid-template-columns: 8px minmax(0, 1fr); }
    .prow .l1 { align-items: center; gap: 10px; }
    .prow .l1 .subject { min-width: 0; }
    .prow .push-toggle { min-width: 0; }
    .prow .l1 .ref, .prow .l1 .commit { display: none; }
    .prow .rail .pill { font-size: 0; padding: 0; border: 0; }
    .prow .rail .pill .dot { display: none; }
    .prow[data-verdict="refused"] .rail .pill { font-size: 11.5px; color: var(--bad); }
    .prow .l2 { margin-top: 6px; }
    .prow .l2 .agent, .prow .l2 .lsep, .prow .l2 .why, .prow .l2 .next, .prow .l2 .rowstatus { display: none; }
    /* The one exception to two lines: a push GitHub does not have. Its reason
       and next step are what a reader came for, so they get lines of their
       own, in the outcome's colour, rather than hiding behind a tap. */
    .prow:not([data-tone="ok"]) .l2 { flex-wrap: wrap; row-gap: 4px; }
    .prow:not([data-tone="ok"]) .l2 .why { display: block; flex: 1 0 100%; order: 9; white-space: normal; overflow-wrap: anywhere; }
    .prow:not([data-tone="ok"]) .l2 .next:not(.none) { display: block; flex: 1 0 100%; order: 10; white-space: normal; overflow-wrap: anywhere; }
    /* The branch gives way before the signer's name does (flex-shrink 99 to the chip's 1). */
    .prow .l2 .mref { display: inline; flex: 0 99 auto; min-width: 0; margin-left: auto; font: 11.5px var(--mono); color: var(--faint);
                      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* The owner collapses to its avatar and sits beside the agent chip, not
       under it. Pulling it 14px under the agent to stack the two avatars left
       it a 20px-wide target that the agent chip covered. */
    .prow .chip { height: 26px; }
    .prow .chip.is-owner { order: -1; padding: 0; width: 26px; justify-content: center; margin-right: -4px; }
    .prow .chip.is-owner .t { display: none; }
    /* A long agent name gives way (its text already ellipsizes) so the owner
       stays on the agent's line instead of wrapping above it. */
    .prow .chip.is-agent { padding-left: 3px; flex: 0 1 auto; min-width: 24px; max-width: calc(100% - 30px); }
  }
  .prow > .line:hover { background: var(--panel); }
  .prow .dot { flex: none; }
  .prow .repo { font-weight: 500; color: var(--text); white-space: nowrap; }
  .prow .ref { color: var(--muted); font: 12px var(--mono); white-space: nowrap; }
  .prow .commit { color: var(--faint); font: 12px var(--mono); white-space: nowrap; }
  .prow .why { color: var(--muted); font-size: 12.5px; overflow: hidden;
               text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 40px; }
  .prow .who { color: var(--faint); font-size: 12px; white-space: nowrap; }
  /* The agent marker is deliberately the QUIETEST thing on the line. Every
     other token here is something the gate established; this one is something a
     process said about itself, so it gets no dot, no pill, no colour — a dashed
     underline, which in this stylesheet is the only mark that means "hover me,
     there is a caveat". A pill would have made it look like the delivery state
     next to it, which IS established. */
  .prow .agent { flex: none; color: var(--faint); font-size: 11.5px;
                 white-space: nowrap; cursor: help;
                 border-bottom: 1px dashed var(--line);
                 display: inline-flex; align-items: center; gap: 4px; }
  /* The vendor mark inherits the marker's own faint colour — monochrome by
     construction, so it can never pick up a brand or verification tint. */
  .prow .agent svg { width: 11px; height: 11px; fill: currentColor;
                     display: block; }
  .prow .pill { flex: none; }
  /* The stage pill is the one pill that links out (to the PR). Same text
     colour as the pill's ledger word so an upgraded pill reads as the same
     token, with the underline reserved for hover. */
  .prow .pill a.pillstage { color: inherit; text-decoration: none; }
  .prow .pill a.pillstage:hover { text-decoration: underline; }
  .prow .when { color: var(--faint); font-size: 12px; width: 62px;
                text-align: right; flex: none;
                /* The text is rewritten every second; tabular figures stop the
                   column jittering as digit widths change. */
                font-variant-numeric: tabular-nums; }

  /* A push that ARRIVED while you were watching. One pass, then it settles into
     the list — a permanent marker would just become another colour to ignore. */
  @keyframes prow-arrived {
    from { background: var(--accent-wash, rgba(96, 130, 255, 0.16)); }
    to   { background: transparent; }
  }
  /* Duration interpolated from the same constant the unmark timer uses, so the
     paint and the class removal cannot drift apart. */
  .prow.arrived { animation: prow-arrived 2400ms ease-out 1; }
  .prow.arrived .when { color: var(--text); }
  /* Respect the reader: motion sensitivity gets the same information as a
     static tint rather than losing the signal entirely. */
  @media (prefers-reduced-motion: reduce) {
    .prow.arrived { animation: none; background: var(--accent-wash, rgba(96, 130, 255, 0.12)); }
  }

  .prow .detail { display: none; border-top: 1px solid var(--line);
                  background: var(--panel); padding: 12px 14px 14px 34px; }
  .prow.open .detail { display: block; }
  .listpager { display: flex; gap: 16px; justify-content: center; margin: 16px 0 4px; font-size: 13px; }
  /* Every long-token container in the detail, not one block: a commit, a
     digest, a policy id or a SPIFFE id in prose wraps anywhere; a pre keeps
     its lines and scrolls inside itself. Nothing here may widen the page
     (#11926 QA-14, the mechanism of QA-03 on this route). */
  .prow .detail { min-width: 0; overflow-wrap: anywhere; }
  .prow .detail code { overflow-wrap: anywhere; }
  .prow .detail pre { overflow-x: auto; max-width: 100%; }
  .prow .detail pre code { overflow-wrap: normal; }
  .detail .dcommit { margin: 2px 0 12px; }
  .detail .dsubject { color: var(--text); font-size: 13.5px; font-weight: 550; line-height: 1.4;
    overflow-wrap: anywhere; }
  .detail .dsubject .dnone { color: var(--faint); font-weight: 400; font-style: italic; }
  .detail .dbyline { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: baseline;
    gap: 6px; color: var(--muted); font-size: 12.5px; }
  .detail .dbyline .dsep { color: var(--faint); }
  .detail .dbyline .declared { color: var(--faint); font-size: 11px; margin-left: 3px; }
  .detail .dbyline .dsha, .detail .dbyline .dref { font: 12px var(--mono); }
  .detail .dbyline a { color: var(--muted); text-decoration: none;
    border-bottom: 1px solid var(--line); }
  .detail .dbyline a:hover { color: var(--text); border-bottom-color: var(--accent); }
  .detail .dcompare { font-size: 12px; }
  .detail .dpr { display: inline-flex; align-items: baseline; gap: 6px; }
  .detail .dprlink { font-size: 12.5px; overflow-wrap: anywhere; }
  .branchstatus .bstitle { color: var(--faint); }
  .detail .drefusal { margin: 0 0 10px; padding: 7px 10px; border-left: 2px solid var(--bad, #e5534b);
    color: var(--text); font-size: 12.5px; background: var(--panel-2); border-radius: 0 4px 4px 0;
    overflow-wrap: anywhere; }
  .detail .ddelivery { margin: 0 0 10px; color: var(--faint); font-size: 12px; }
  .detail .ddelivery.bad { color: var(--muted); }
  .detail .decision { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
                      padding: 9px 0; border-top: 1px solid var(--line); margin-top: 10px; }
  .detail .decision strong { color: var(--text); font-size: 12.5px; }
  .detail .decision .counts, .detail .decision .stage { color: var(--muted); font-size: 12px; }
  .detail .decision .stage { margin-left: auto; }
  .detail .undelivered { margin: 0 0 10px; color: var(--text); font-size: 12.5px; overflow-wrap: anywhere; }
  .detail .undelivered .next { color: var(--muted); }
  .detail .pcard { margin: 0 0 10px; font-size: 12.5px; color: var(--text); }
  .detail .pcard p { margin: 0 0 6px; overflow-wrap: anywhere; }
  .detail .pcard .pc-head { font-weight: 600; }
  .detail .pcard .pc-ok { color: var(--ok-ink); } .detail .pcard .pc-warn { color: var(--warn); }
  .detail .pcard .pc-bad { color: var(--bad); } .detail .pcard .pc-faint { color: var(--faint); }
  .detail .pcard .pc-cmd { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; }
  .detail .pcard .pc-cmd code { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px var(--mono); flex: 1; }
  /* The experimental vulnerability block (vulncard.js). */
  .detail .pcard .vx { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); margin: 4px 0 10px; overflow: hidden; }
  .detail .pcard .vx-hit { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
  .detail .pcard .vx-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px 6px; }
  .detail .pcard .vx-t { font-weight: 600; font-size: 13px; }
  .detail .pcard .vx-bad { color: var(--bad); } .detail .pcard .vx-warn { color: var(--warn); } .detail .pcard .vx-ok { color: var(--ok-ink); }
  .detail .pcard .vx-exp { font: 500 10.5px/16px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--you);
    border: 1px solid color-mix(in srgb, var(--you) 45%, var(--line)); border-radius: 4px; padding: 0 5px; }
  .detail .pcard .vx-adv { color: var(--faint); font-size: 12px; margin-left: auto; }
  .detail .pcard .vx-sub { color: var(--muted); padding: 0 12px 10px; margin: 0; }
  .detail .pcard .vx-fd { border-top: 1px solid var(--line); padding: 9px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .detail .pcard .vx-pkg { font: 500 12.5px var(--mono); overflow-wrap: anywhere; }
  .detail .pcard .vx-eco { font: 11px var(--sans); color: var(--faint); margin-left: 6px; }
  .detail .pcard .vx-ids { font: 11.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
  .detail .pcard .vx-fix { grid-column: 2; grid-row: 1; text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
  .detail .pcard .vx-fix b { color: var(--ok-ink); font: 500 12px var(--mono); }
  .detail .pcard .vx-conf { grid-column: 2; grid-row: 2; text-align: right; font-size: 11.5px; color: var(--faint); white-space: nowrap; }
  .detail .pcard .vx-ev { grid-column: 1 / -1; color: var(--muted); }
  .detail .pcard .vx-fold { border-top: 1px solid var(--line); }
  .detail .pcard .vx-fold > summary { cursor: pointer; padding: 9px 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
  .detail .pcard .vx-fold > summary b { color: var(--text); font-weight: 550; }
  .detail .pcard .vx-fold .vx-fd { background: var(--panel-2); }
  .detail .pcard .vx-page > summary { cursor: pointer; padding: 8px 12px; display: flex; gap: 10px; color: var(--accent, var(--text)); border-top: 1px solid var(--line); list-style: none; }
  .detail .pcard .vx-page > summary::-webkit-details-marker { display: none; }
  .detail .pcard .vx-page > summary .vx-left { color: var(--muted); }
  .detail .pcard .vx-page[open] > summary { display: none; }
  .detail .pcard .vx-foot { border-top: 1px solid var(--line); padding: 8px 12px; color: var(--faint); font: 11px var(--mono); }
  .detail .pcard .vx-sbom { margin: 0 12px 10px; color: var(--muted); font-size: 12px; }
  .detail .pcard .vx-sbom-k { font: 500 10.5px/16px var(--sans); letter-spacing: .04em; text-transform: uppercase; margin-right: 6px; }
  .detail .pcard .vx-sbom-main { font-weight: 600; }
  .detail .pcard .vx-sbom-more { display: inline; }
  .detail .pcard .vx-sbom-more > summary { display: inline; cursor: pointer; }
  .detail .pcard .vx-agent { border-top: 1px solid var(--line); }
  .detail .pcard .vx-agent > summary { cursor: pointer; padding: 8px 12px; font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
  .detail .pcard .vx-agent > summary button { margin-left: auto; }
  .detail .pcard .vx-json { margin: 0; padding: 10px 12px; background: var(--panel-2); border-top: 1px solid var(--line); font: 11.5px/1.5 var(--mono);
    white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
  /* v4: one row per dependency (a <details>), per-advisory panels, the summary
     strip. Severity is an ordinal one-hue ramp, stepped per theme; result
     colours are the status tokens and always sit beside their word. */
  .detail .pcard .vx { --vx-s1: #6da7ec; --vx-s2: #3987e5; --vx-s3: #1c5cab; --vx-s4: #0d366b; }
  .dark .detail .pcard .vx { --vx-s1: #256abf; --vx-s2: #3987e5; --vx-s3: #6da7ec; --vx-s4: #b7d3f6; }
  .detail .pcard .vx-s-critical { fill: var(--vx-s4); background: var(--vx-s4); }
  .detail .pcard .vx-s-high { fill: var(--vx-s3); background: var(--vx-s3); }
  .detail .pcard .vx-s-medium { fill: var(--vx-s2); background: var(--vx-s2); }
  .detail .pcard .vx-s-low { fill: var(--vx-s1); background: var(--vx-s1); }
  .detail .pcard .vx-s-unscored { fill: var(--faint); background: var(--faint); }
  .detail .pcard .vx-r-a { fill: var(--bad); background: var(--bad); } .detail .pcard .vx-r-p { fill: var(--warn); background: var(--warn); }
  .detail .pcard .vx-r-u { fill: var(--faint); background: var(--faint); } .detail .pcard .vx-r-n { fill: var(--ok); background: var(--ok); }
  .detail .pcard .vx-l-a { color: var(--bad); } .detail .pcard .vx-l-p { color: var(--warn); }
  .detail .pcard .vx-l-u { color: var(--faint); } .detail .pcard .vx-l-n { color: var(--ok-ink); }
  .detail .pcard .vx-strip { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 32px; padding: 2px 12px 12px; }
  .detail .pcard .vx-strip figure { margin: 0; min-width: 0; flex: 0 1 300px; }
  .detail .pcard .vx-strip figure + figure { flex: 0 0 auto; }
  .detail .pcard .vx-strip figcaption { font: 500 10.5px/16px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
  .detail .pcard .vx-bar { display: block; max-width: 100%; height: auto; }
  .detail .pcard .vx-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
  .detail .pcard .vx-key b { color: var(--text); font-weight: 550; margin-left: 2px; }
  .detail .pcard .vx-sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
  .detail .pcard .vx-hist { display: block; max-width: 100%; height: auto; overflow: visible; }
  .detail .pcard .vx-hist .vx-tx { font: 10.5px var(--sans); fill: var(--muted); }
  .detail .pcard .vx-hist .vx-num { fill: var(--text); font-weight: 550; }
  .detail .pcard .vx-axis { stroke: var(--line); stroke-width: 1; }
  .detail .pcard .vx-dep > summary { cursor: pointer; list-style: none; }
  .detail .pcard .vx-dep > summary::-webkit-details-marker { display: none; }
  .detail .pcard .vx-dep > summary:hover, .detail .pcard .vx-dep[open] > summary { background: var(--panel-2); }
  .detail .pcard .vx-dep > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .detail .pcard .vx-dep .vx-pkg::before { content: "▸"; display: inline-block; width: 14px; color: var(--faint); transition: transform .12s; }
  .detail .pcard .vx-dep[open] > summary .vx-pkg::before { transform: rotate(90deg); }
  .detail .pcard .vx-dep .vx-res { grid-column: 2; grid-row: 1; text-align: right; font-size: 12px; font-weight: 550; white-space: nowrap; }
  .detail .pcard .vx-dep .vx-fix { grid-row: 2; }
  .detail .pcard .vx-sev { display: flex; align-items: center; gap: 8px; padding-left: 14px; font-size: 11.5px; color: var(--muted); }
  .detail .pcard .vx-sev .vx-bar { flex: none; }
  .detail .pcard .vx-cve { margin: 0 12px 10px 26px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
  .detail .pcard .vx-dep[open] > summary + .vx-cve { margin-top: 8px; }
  .detail .pcard .vx-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 550 13px/18px var(--sans); }
  .detail .pcard .vx-ch a { color: var(--text); }
  .detail .pcard .vx-ch a:hover { text-decoration: underline; }
  .detail .pcard .vx-ch .vx-res { margin-left: auto; font-size: 12px; font-weight: 500; }
  .detail .pcard .vx-chip { display: inline-flex; align-items: center; font: 500 11px/16px var(--sans); padding: 0 6px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--muted); }
  .detail .pcard .vx-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 14px; margin-top: 8px; font-size: 12.5px; line-height: 18px; }
  .detail .pcard .vx-k { color: var(--faint); }
  .detail .pcard .vx-v { min-width: 0; overflow-wrap: anywhere; }
  .detail .pcard .vx-v b { color: var(--ok-ink); font: 500 12px var(--mono); }
  .detail .pcard .vx-cve .vx-conf { color: var(--faint); font-size: 11.5px; margin-left: 6px; white-space: normal; }
  .detail .pcard .vx-cpage > summary { margin-left: 14px; border-top: 0; }
  /* Stage is identity: three categorical hues (validated all-pairs in both themes; labels always beside them). */
  .detail .pcard .vx { --vx-g1: #eb6834; --vx-g2: #1baf7a; --vx-g3: #6250d6; }
  .dark .detail .pcard .vx { --vx-g1: #d95926; --vx-g2: #199e70; --vx-g3: #9085e9; }
  .detail .pcard .vx-g-p { fill: var(--vx-g1); background: var(--vx-g1); }
  .detail .pcard .vx-g-b { fill: var(--vx-g2); background: var(--vx-g2); }
  .detail .pcard .vx-g-u { fill: var(--vx-g3); background: var(--vx-g3); }
  .detail .pcard .vx-strip .vx-cap2 { margin-top: 12px; }
  .detail .pcard .vx-glab { border-top: 1px solid var(--line); padding: 9px 12px 3px; font: 500 10.5px/16px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
  .detail .pcard .vx-stg { display: inline-flex; align-items: center; color: var(--muted); }
  .detail .pcard .vx-likely { margin-left: 4px; font-style: italic; color: var(--faint); }
  .detail .pcard .vx-chip.vx-kev { color: var(--bad); border-color: currentColor; }
  .detail .pcard .vx-sum { margin: 4px 0 0; font-size: 12.5px; line-height: 18px; color: var(--muted); max-width: 68ch; overflow-wrap: anywhere; }
  .detail .pcard .vx-track { display: block; max-width: 100%; height: auto; margin-top: 4px; overflow: visible; }
  .detail .pcard .vx-track .vx-tx { font: 11px var(--mono); fill: var(--muted); }
  .detail .pcard .vx-track .vx-fixtx { fill: var(--ok-ink); }
  .detail .pcard .vx-tl { stroke: var(--line); stroke-width: 2; }
  .detail .pcard .vx-tl-none { stroke-dasharray: 3 4; }
  .detail .pcard .vx-tick { fill: var(--faint); }
  .detail .pcard .vx-fixdot { fill: var(--panel); stroke: var(--ok); stroke-width: 2; }
  .detail .pcard .vx-meter, .detail .pcard .vx-ffbar { display: inline-block; vertical-align: 1px; margin-right: 8px; }
  .detail .pcard .vx-ffbar { margin: 0 0 0 8px; }
  .detail .pcard .vx-mbg { fill: var(--line); }
  .detail .pcard .vx-ffl { display: block; margin-top: 4px; color: var(--text); }
  @media (max-width: 560px) {
    .detail .pcard .vx-adv { margin-left: 0; flex-basis: 100%; }
    .detail .pcard .vx-grid { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .detail .pcard .vx-v + .vx-k { margin-top: 6px; }
    .detail .pcard .vx-cve { margin-left: 12px; }
    .detail .pcard .vx-fd { grid-template-columns: auto minmax(0, 1fr); }
    .detail .pcard .vx-pkg, .detail .pcard .vx-ids { grid-column: 1 / -1; }
    .detail .pcard .vx-fix { grid-column: 1; grid-row: auto; text-align: left; }
    .detail .pcard .vx-conf { grid-row: auto; }
  }
  .detail .detailtabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
  .detail .detailtabs button { background: none; border: none; border-bottom: 2px solid transparent;
                               color: var(--faint); font: 12px var(--sans); padding: 10px 2px 8px;
                               cursor: pointer; }
  .detail .detailtabs button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--text); }
  .detail .detailpanel { padding-top: 15px; }
  .detail .detailpanel[hidden] { display: none; }
  .detail .checkgroup { margin: 0 0 16px; }
  .detail .checkgroup h4 { color: var(--text); font-size: 12px; font-weight: 600; margin: 0 0 5px; }
  /* Passed checks wait behind "Show details" (#16764); failures stay open. */
  .detail details.checkgroup.passed > summary { display: flex; align-items: baseline; gap: 8px; cursor: pointer; list-style: none; padding: 2px 0 5px; }
  .detail details.checkgroup.passed > summary::-webkit-details-marker { display: none; }
  .detail details.checkgroup.passed > summary h4 { margin: 0; color: var(--muted); font-weight: 500; }
  .detail details.checkgroup.passed > summary .more { color: var(--accent); font-size: 12px; }
  .detail details.checkgroup.passed[open] > summary .more { display: none; }
  .detail .checkgroup .note { color: var(--faint); font-size: 11.5px; margin: 8px 0 0; }
  .detail .checks { margin: 0; }
  .detail .check { border-top: 1px solid var(--line); }
  .detail .check:last-child { border-bottom: 1px solid var(--line); }
  .detail .check summary { display: flex; align-items: center; gap: 10px; padding: 9px 2px;
                           list-style: none; cursor: pointer; }
  .detail .check summary::-webkit-details-marker { display: none; }
  .detail .check summary::after { content: '⌄'; color: var(--faint); margin-left: 4px; }
  .detail .check[open] summary::after { transform: rotate(180deg); }
  .detail .check .cname { font: 12px var(--mono); color: var(--text); flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .detail .check .cstate { color: var(--faint); font-size: 11.5px; white-space: nowrap; }
  .detail .check .cdetail { display: block; color: var(--muted); font-size: 12.5px;
                            padding: 0 22px 12px; overflow-wrap: anywhere; }
  .detail .check .dot { width: 7px; height: 7px; }
  .detail .policy-verdict { display: flex; flex-wrap: wrap; gap: 5px 14px; align-items: baseline; }
  .detail .policy-note { margin: 3px 0 8px; color: var(--faint); font-size: 11.5px; }
  .detail .policy-verdict strong { color: var(--text); font-weight: 550; }
  .detail .policy-verdict time { color: var(--faint); font: 11px var(--mono); }
  .detail .policy-verdict .trust { color: var(--faint); font-size: 11px; font-weight: 600; margin-right: 4px; }
  .detail .policy-verdict a, .detail .policy-input a { color: var(--accent); text-decoration: none; }
  .detail .policy-inputs { margin: 9px 0 0; border-top: 1px solid var(--line); }
  .detail .policy-input { display: flex; gap: 10px; align-items: baseline; padding: 7px 1px;
                           border-bottom: 1px solid var(--line); font-size: 11.5px; }
  .detail .failed-steps { margin: 0 0 8px; border-top: 1px solid var(--line); }
  .detail .failed-step { display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 7px 0;
                         border-bottom: 1px solid var(--line); font-size: 11.5px; }
  .detail .failed-step-name { color: var(--text); font: 11.5px var(--mono); min-width: 105px; }
  .detail .failed-step code { color: var(--muted); flex-basis: 100%; overflow-wrap: anywhere; }
  .detail .policy-step { color: var(--text); font: 11.5px var(--mono); flex: 1; }
  .detail .observed-commit { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: baseline; padding: 7px 1px;
                             border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
  .detail .observed-commit code { color: var(--text); font: 11.5px var(--mono); }
  .detail .observed-commit .incomplete { color: var(--warn); font-weight: 550; }
  .detail .scope-release { padding: 7px 1px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
  .detail .scope-head { color: var(--text); font-weight: 550; }
  .detail .scope-release code { color: var(--text); font: 11.5px var(--mono); }
  .detail .scope-line { margin: 3px 0 0; }
  .detail .scope-line.incomplete { color: var(--warn); font-weight: 550; }
  .detail .scope-line.required { color: var(--text); }
  .detail .policy-proof, .detail .policy-empty { color: var(--faint); font-size: 11px; }
  .detail .check .policy-record { margin-top: 9px; }
  .detail .check .policy-record summary { display: block; padding: 0; color: var(--faint); font-size: 11px; }
  .detail .check .policy-record summary::after { content: none; }
  .detail .check .policy-record .meta { margin: 7px 0 0; }
  .detail .timeline { border-left: 1px solid var(--line); margin: 0 0 12px 5px; padding-left: 17px; }
  .detail .event { position: relative; padding: 0 0 16px; }
  .detail .event:last-child { padding-bottom: 0; }
  .detail .event::before { content: ''; position: absolute; width: 7px; height: 7px;
                           left: -21px; top: 4px; border-radius: 50%; background: var(--accent); }
  .detail .event .etime { display: block; color: var(--faint); font: 11px var(--mono); }
  .detail .event .etitle { display: block; color: var(--text); font-size: 12.5px; margin: 2px 0; }
  .detail .event .enote { color: var(--muted); font-size: 12px; }
  .detail .provenance h4 { color: var(--text); font-size: 12px; font-weight: 600; margin: 0 0 5px; }
  .detail .provfact { border-top: 1px solid var(--line); }
  .detail .provfact:last-child { border-bottom: 1px solid var(--line); }
  .detail .provfact > summary { display: flex; align-items: baseline; gap: 10px;
    list-style: none; cursor: pointer; padding: 9px 2px; font-size: 12px; }
  .detail .provfact > summary::-webkit-details-marker { display: none; }
  .detail .provfact > summary::after { content: '⌄'; color: var(--faint); margin-left: 4px; }
  .detail .provfact[open] > summary::after { transform: rotate(180deg); }
  .detail .provfact .fact-label { color: var(--text); font-weight: 550; min-width: 110px; }
  .detail .provfact .fact-value { color: var(--muted); flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .detail .provfact .fact-trust { color: var(--faint); font-size: 11px; white-space: nowrap; }
  .detail .provfact > .meta, .detail .provfact > .agentrec, .detail .provfact > .pushctx {
    margin: 0 0 12px 120px; }
  @media (max-width: 600px) { .detail .provfact > summary { flex-wrap: wrap; }
    .detail .provfact .fact-value { flex-basis: 100%; order: 2; }
    .detail .provfact .fact-trust { margin-left: auto; }
    .detail .provfact > .meta, .detail .provfact > .agentrec, .detail .provfact > .pushctx { margin-left: 2px; } }
  @media (max-width: 600px) { .detail .decision .stage { margin-left: 0; flex-basis: 100%; } }
  .detail .meta { display: grid; grid-template-columns: 110px 1fr; gap: 3px 14px;
                  font-size: 12.5px; margin-top: 8px; }
  .detail .meta dt { color: var(--faint); }
  .detail .meta dd { color: var(--muted); font: 12px var(--mono);
                     overflow-wrap: anywhere; }
  .detail .agentrec { padding-left: 0; }
  .detail .agentrec .anote { color: var(--faint); font-size: 12px;
                             line-height: 1.5; margin: 4px 0 0; max-width: 62ch; }
  .detail .agentrec .meta { margin-top: 7px; }
  /* An absent field is a STATEMENT, so it renders in the label colour rather
     than the value colour — it reads as prose about the record, not as a value
     the agent sent. */
  .detail .agentrec .none { color: var(--faint); font: 12.5px var(--sans); }
  .detail .agentrec .qual { color: var(--faint); font: 12px var(--sans); }

  .detail .pushctx { padding-left: 0; }
  .detail .pushctx .cnote { color: var(--faint); font-size: 12px;
                            line-height: 1.5; margin: 4px 0 0; max-width: 62ch; }
  .detail .pushctx .meta { margin-top: 7px; }
  .detail .pushctx .none { color: var(--faint); font: 12.5px var(--sans); }
  .detail .pushctx .qual { color: var(--faint); font: 12px var(--sans); }
  /* The client-asserted row inside an otherwise-measured block. Marked at the
     LABEL, because that is what a reader scanning the left column sees. */
  .detail .pushctx dt.said { color: var(--faint); font-style: italic; }
  .detail .pushctx .envelope { color: var(--faint); font-size: 11.5px;
                               margin: 7px 0 0; max-width: 62ch; line-height: 1.5; }

  /* Same weight as the agent marker — quiet, dashed, hover-explained. It sits
     in the same slot in the visual grammar: something with a caveat. */
  .prow .pctx { flex: none; color: var(--faint); font-size: 11.5px;
                white-space: nowrap; cursor: help;
                border-bottom: 1px dashed var(--line); }
  .detail .deliver { margin-top: 12px; }
  .approvenote { font-size: 11.5px; color: var(--faint); margin-left: 8px; }
  .detail .deliver button { background: var(--panel-2); border: 1px solid var(--line);
                            color: var(--text); font: 12px var(--sans);
                            padding: 5px 12px; border-radius: 6px; cursor: pointer; }
  .detail .deliver button:hover { border-color: var(--accent); }
	.pushactionstatus { font-size: 12.5px; line-height: 1.5; margin-top: 9px; color: var(--muted); }
	.pushactionstatus:empty { display: none; }
	.pushactionstatus.success { color: var(--ok); }
	.pushactionstatus.error { color: var(--bad); }
	.pushactionstatus.confirm { color: var(--text); border: 1px solid var(--line);
		border-radius: var(--r-md); background: var(--panel-2); padding: 9px 10px; }
	.pushactionstatus .actionprompt { display: block; margin-bottom: 8px; }
	.pushactionstatus .actionconfirmcontrols { display: flex; flex-wrap: wrap; gap: 7px; }
	.pushactionstatus .actionconfirmcontrols button { background: var(--panel); border: 1px solid var(--line);
		color: var(--text); font: 12px var(--sans); padding: 5px 12px; border-radius: 6px; cursor: pointer; }
	.pushactionstatus .actionconfirmcontrols button:hover { border-color: var(--accent); }
	.pushactionstatus .actionconfirmcontrols button.danger { color: var(--bad); }
	.pushactionstatus:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
  .nochecks { color: var(--faint); font-size: 12.5px; }
  /* The base line. One sentence under the checks: what the platform observed
     about the base, in the same quiet register as the agent marker, because
     it is reported and not enforced. */
  .detail .baserec { margin: 2px 0 10px; color: var(--muted); font-size: 12.5px; }
  .detail .baserec .bhead { color: var(--faint); margin-right: 6px; }
  .detail .baserec code { font: 12px var(--mono); }

  /* A branch reads as one thing: its latest push, and its history tucked under
     it. The rule down the left is what says the folded rows belong to the row
     above them rather than being the next branch along. */
  .branch { border-bottom: 1px solid var(--line); }
  .branch:last-child { border-bottom: none; }
  .branch > .prow { border-bottom: none; }
  .earlier { display: flex; align-items: center; gap: 6px; width: 100%;
             background: none; border: none; cursor: pointer;
             color: var(--faint); font: 11.5px var(--sans);
             padding: 3px 0 9px 26px; text-align: left; }
  .earlier:hover { color: var(--muted); }
  /* The fold line is the previous tip's sha and time — the two things that
     differ from the header above it — in the header's own vocabulary, one
     register quieter. It repeats nothing the header already says. */
  .earlier .fold { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .earlier code { font: 11.5px var(--mono); color: inherit; }
  .earlier .when { color: inherit; }
  .earlier .fmore { color: var(--faint); }
  .earlier .chev { display: inline-block; transition: transform .12s ease; }
  .branch.expanded .earlier .chev { transform: rotate(90deg); }
  .older { display: none; margin-left: 26px; padding-left: 12px;
           border-left: 1px solid var(--line); }
  .branch.expanded > .older { display: block; }
  .older .prow:last-child { border-bottom: none; }
  /* Inside a fold the repository is the same on every row, so it recedes and
     lets the commit range and the time — the parts that actually differ — carry
     the line. It is dimmed rather than removed: a verdict filter can hide a
     branch's latest push while showing an older one, and a row with no
     repository on it at all would then be floating under nothing. */
  .older .repo { color: var(--faint); font-weight: 400; }
  .plist.filtered .earlier { display: none; }

  /* Post-delivery branch status: one quiet line under a delivered row, in the
     page's existing vocabulary — text, the link color, nothing pill-shaped
     that could be mistaken for the gate's own verdict. */
  .prow .bsline { padding: 0 14px 8px 26px; font-size: 12px; color: var(--faint); }
  /* The underline is a.pg-link's (shell.js): a link told from the text beside it
     by colour alone fails 1.4.1 (#11926 QA-08). No rule here may switch it off. */
  .branchstatus a.bspr { color: var(--accent); }
  .branchstatus .bsdeleted { font-style: italic; }
  .branchstatus .bssource { border-bottom: 1px dashed var(--line); cursor: help; }
  /* The last value stays on screen while it is re-read (stale) or after a
     re-read failed (error). The marker is a word after the value, never colour
     alone, and never moves the value. */
  .prow .bsline[data-bs-state="stale"] .branchstatus::after { content: " · Refreshing…"; color: var(--muted); }
  .prow .bsline[data-bs-state="error"] .branchstatus::after { content: " · Refresh failed, showing the last value"; color: var(--warn); }
  /* Lifecycle fall-off is an ATTRIBUTE, not the filter's inline display, so
     the two compose: !important because the filter writes inline styles. */
  .prow[data-lifecycle-hidden], .branch[data-lifecycle-hidden] { display: none !important; }

  .needs-you { margin: 0 0 12px; }
  .needs-you > summary { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line);
    border-radius: 999px; background: var(--panel); color: var(--text); font-size: 12.5px; cursor: pointer; list-style: none; }
  .needs-you summary::-webkit-details-marker { display: none; }
  .needs-you > summary:hover { border-color: var(--accent); }
  .needs-you summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .needs-you .ny-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .needs-you > summary .count { font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 7px; border-radius: 999px;
    background: var(--accent); color: var(--accent-fg, #fff); }
  .needs-you.quiet > summary { border-color: transparent; background: none; padding-left: 0; color: var(--muted); }
  .needs-you.quiet > summary .count { background: none; color: inherit; padding: 0; }
  .needs-you .ny-flag { color: var(--muted); }
  .needs-you .ny-panel { margin-top: 8px; padding: 2px 14px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
  .needs-you ul { list-style: none; margin: 0; padding: 0; }
  .needs-you li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
  .needs-you .ny-panel > ul:first-child > li:first-child { border-top: 0; }
  .needs-you .ny-what { flex: 1 1 16em; min-width: 0; }
  .needs-you .ny-what strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
    font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
  .needs-you .ny-what small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
  .needs-you .ny-what .ny-checked { color: var(--faint); }
  @media (max-width: 640px) { .needs-you .ny-what strong { -webkit-line-clamp: 2; } .needs-you li { padding: 6px 0; } }
  .needs-you .ny-dismiss { display: contents; }
  .needs-you .ny-dismiss > summary { list-style: none; }
  .needs-you .ny-dismiss form { display: flex; flex-wrap: wrap; align-items: end; gap: 6px; flex: 1 0 100%; }
  .needs-you .ny-panel > details > summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); }
  .needs-you .ny-history h3 { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 8px 0 0; }
  .needs-you .ny-history li { color: var(--muted); }
  .needs-you .ny-history li span { flex: 1 1 14em; min-width: 0; overflow-wrap: anywhere; }
  .needs-you .ny-note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
  .needs-you .ny-dismiss .pg-field { flex: 1 1 12em; }

  html { scroll-padding-top: calc(var(--pg-nav-h, 52px) + var(--pscope-h, 0px) + 8px); }
  .pscope { position: sticky; top: var(--pg-nav-h, 52px); z-index: 15; margin: 0 0 14px; padding: 8px 0;
    border-image: linear-gradient(var(--bg) calc(100% - 1px), var(--line) 0) fill 0 // 0 100vmax; background: var(--bg); }
  .pscope-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
  .pscope-label, .pscope-note { color: var(--muted); font-size: 12.5px; }
  .pscope-note { margin-left: auto; }
  .pscope-dim { position: relative; min-width: 0; }
  .pscope-dim > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 30px; box-sizing: border-box;
    padding: 3px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); color: var(--text); font-size: 12.5px; white-space: nowrap; }
  .pscope-dim > summary::-webkit-details-marker { display: none; }
  .pscope-dim > summary::after { content: ''; width: 5px; height: 5px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin-top: -3px; }
  .pscope-dim > summary:hover, .pscope-dim[open] > summary { background: var(--panel-2); }
  .pscope :is(summary, a, button):focus-visible, .pscope-menu input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .pscope-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 2; width: min(320px, calc(100vw - 32px)); max-height: min(340px, 60vh);
    overflow: auto; box-sizing: border-box; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: 0 8px 24px rgba(16,24,40,.10); }
  .dark .pscope-menu { box-shadow: 0 12px 32px rgba(0,0,0,.45); }
  .pscope-menu input { width: 100%; box-sizing: border-box; margin-bottom: 4px; padding: 7px 9px; border: 0; border-bottom: 1px solid var(--line);
    background: transparent; color: var(--text); font: inherit; }
  .pscope-opt { display: flex; align-items: center; gap: 8px; min-height: 32px; box-sizing: border-box; padding: 5px 9px; border-radius: var(--r-sm);
    color: var(--text); overflow-wrap: anywhere; }
  .pscope-opt:hover, .pscope-opt:focus-visible { background: var(--panel-2); text-decoration: none; }
  .pscope-opt[aria-current="true"] { background: var(--accent-subtle); color: var(--accent-ink); }
  .pscope-opt .c { margin-left: auto; color: var(--muted); font: 12px var(--mono); }
  .pscope-none, .pscope-foot { margin: 0; padding: 6px 9px; color: var(--muted); font-size: 12px; }
  .pscope-chip { display: inline-flex; align-items: center; max-width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--panel); font-size: 12.5px; }
  .pscope-chip > button, .pscope-k { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; min-width: 0; min-height: 28px; padding: 0 8px; }
  .pscope-k { cursor: default; }
  .pscope-chip span { color: var(--muted); white-space: nowrap; }
  .pscope-chip b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .pscope-x { display: inline-flex; align-items: center; align-self: stretch; padding: 0 8px; color: var(--muted); border-left: 1px solid var(--line); }
  .pscope-x:hover, .pscope-reset:hover { color: var(--text); text-decoration: none; }
  .pscope-reset { color: var(--muted); font-size: 12.5px; padding: 4px 6px; }
  .pscope-label { display: inline-flex; align-items: center; gap: 4px; margin: 0; min-width: 0; }
  .pscope-label input[type="search"] { width: 9.5rem; min-height: 30px; box-sizing: border-box; padding: 3px 8px; border: 1px solid var(--line);
    border-radius: var(--r-md); background: var(--panel); color: var(--text); font: inherit; font-size: 12.5px; }
  .pscope-label button { min-height: 30px; padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel);
    color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
  .pscope-label :is(input, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .pscope-toggle { display: none; }
  @media (max-width: 760px) {
    .pg-js .pscope-toggle { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-height: 36px; font-size: 13px; }
    .pscope-toggle::after { content: ''; flex: none; margin-left: auto; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
    .pscope.open .pscope-toggle::after { transform: rotate(-135deg); }
    .pscope-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
    .pg-js .pscope:not(.open) .pscope-bar { display: none; }
    .pg-js .pscope-bar { padding-top: 6px; }
    .pscope-label, .pscope-note { display: none; }
    .pscope-dim > summary, .pscope-chip > button, .pscope-k, .pscope-reset { min-height: 38px; }
    .pscope-menu { position: fixed; left: 16px; right: 16px; width: auto; top: calc(var(--pg-nav-h, 52px) + 8px); max-height: 50vh; }
    .pscope-opt { min-height: 40px; }
  }

  .prate { --pr-grid: color-mix(in srgb, var(--text) 6%, transparent); --pr-weekend: color-mix(in srgb, var(--text) 2.2%, transparent);
    --pr-pop: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.10); margin: 0 0 16px; }
  .dark .prate { --pr-pop: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px rgba(0,0,0,.45); }
  .prate .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
  .prate-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .prate-head h2 { font-size: 13px; font-weight: 600; margin: 0; }
  .prate-toggle { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-sm); }
  .prate-toggle::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg); margin: -3px 0 0 2px; }
  .prate.folded .prate-toggle::after { transform: rotate(-45deg); margin-top: 0; }
  .prate-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .prate.folded .prate-body, .prate.folded .prate-seg { display: none; }
  .prate.folded { margin-bottom: 12px; }
  .prate-scope { color: var(--muted); }
  .prate-grow { flex: 1; }
  .prate-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); overflow: hidden; }
  .prate-seg button { all: unset; cursor: pointer; padding: 3px 10px; color: var(--muted); font-weight: 500; font-size: 12.5px; border-right: 1px solid var(--line); }
  .prate-seg button:last-child { border-right: 0; }
  .prate-seg button:hover, .prate-seg button[aria-pressed="true"] { color: var(--text); background: var(--panel-2); }
  .prate-seg button:focus-visible, .prate-kpi:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .prate-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: 10px; }
  .prate-kpis { display: flex; align-items: flex-start; padding: 12px 16px 4px; }
  .prate-kpi { all: unset; cursor: pointer; flex: 1; padding: 4px 12px 8px; border-radius: var(--r-md); min-width: 0; }
  .prate-kpi:hover { background: var(--panel-2); }
  .prate-kpi .k { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; font-size: 12px; white-space: nowrap; }
  .prate-kpi .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
  .prate-kpi .sw.line { height: 2px; width: 10px; border-radius: 1px; }
  .prate-kpi[disabled] { cursor: default; }
  .prate-kpi .v { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
  .prate-kpi .v b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .prate-kpi .v .num { font-size: 12px; color: var(--muted); }
  .prate-kpi .d { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
  .prate-kpi .d .num { color: var(--text); }
  .prate-kpi .d .bad { color: var(--bad); }
  .prate-kpi[aria-pressed="false"] .v, .prate-kpi[aria-pressed="false"] .d { opacity: .35; }
  .prate-kpi[aria-pressed="false"] .sw { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--muted); }
  .prate-plot { padding: 6px 12px 2px 4px; }
  .prate-caption { color: var(--muted); font-size: 12px; margin: 0; padding: 2px 28px 0; }
  .prate-chart { position: relative; outline: none; border-radius: var(--r-md); min-height: 120px; }
  .prate-chart:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
  .prate-chart svg { display: block; width: 100%; overflow: visible; user-select: none; }
  .prate-chart .ax { fill: var(--muted); font: 11px var(--mono); }
  .prate-chart .ax.day { fill: var(--text); font-family: var(--sans); font-weight: 500; }
  .prate-chart .layer { transition: opacity .12s; }
  .prate-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; padding: 0 24px; }
  .prate-msg button { all: unset; cursor: pointer; color: var(--accent); }
  .prate-tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--pr-pop); padding: 8px 10px; min-width: 220px; opacity: 0; transition: opacity .08s; z-index: 3; }
  .prate-tip.on { opacity: 1; }
  .prate-tip .t { color: var(--muted); font-weight: 500; margin-bottom: 5px; font-size: 12px; }
  .prate-tip .r { display: flex; align-items: center; gap: 8px; line-height: 1.7; white-space: nowrap; }
  .prate-tip .r span:not(.num) { flex: 1; }
  .prate-tip .r .num { min-width: 3ch; text-align: right; font-size: 12px; }
  .prate-tip .sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
  .prate-tip hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
  .prate-foot { display: none; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; padding: 6px 16px 12px; flex-wrap: wrap; }
  .prate-card:focus-within .prate-foot { display: flex; }
  .prate-card { padding-bottom: 6px; }
  .prate-foot kbd { font: 11px var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r-sm); padding: 0 4px; color: var(--text); background: var(--bg); }
  .prate.busy .prate-plot { opacity: .55; }
  .prate-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ledgerscope { color: var(--muted); margin: 0 0 10px; }
  @media (max-width: 760px) {
    .prate-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 6px 2px; }
    .prate-kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prate-kpi { padding: 4px 8px 6px; } .prate-kpi .k { font-size: 11.5px; white-space: normal; }
    .prate-kpi .v { flex-wrap: wrap; gap: 0 6px; } .prate-kpi .v b { font-size: 17px; }
    .prate-foot { display: none; } }
  @media (prefers-reduced-motion: reduce) { .prate-tip, .prate-chart .layer { transition: none; } }

  .ptiles { --pa1: #2a78d6; --pa2: #eb6834; --pa3: #1baf7a; --pa4: #eda100; --pa5: #e87ba4; --pa6: #008300; --pa7: #6250d6; --pa8: #e34948;
    --pao: color-mix(in srgb, var(--muted) 55%, transparent); margin: -6px 0 12px; }
  /* The tiles fold with the chart above them (folded by default on a phone),
     so the first push row stays in the first viewport. */
  .prate.folded ~ .ptiles { display: none; }
  .dark .ptiles { --pa1: #3987e5; --pa2: #d95926; --pa3: #199e70; --pa4: #c98500; --pa5: #d55181; --pa6: #008300; --pa7: #9085e9; --pa8: #e66767; }
  .ptiles .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
  .ptile-summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 2px 0; border-radius: var(--r-sm); min-width: 0; }
  .ptile-summary::-webkit-details-marker { display: none; }
  .ptile-summary::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); flex: none; }
  .ptiles[open] > .ptile-summary::before { transform: rotate(45deg); }
  .ptile-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .ptile-title { font-size: 13px; font-weight: 600; }
  .ptile-glance { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .ptiles[open] .ptile-glance { display: none; }
  .ptile-kpis { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
  .ptile-kpi { flex: 1 1 120px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 14px; min-width: 0; }
  .ptile-kpi .k { color: var(--muted); font-size: 12px; font-weight: 500; }
  .ptile-kpi .v { font-size: 20px; font-weight: 600; color: var(--text); }
  .ptile-kpi .d { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ptile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; }
  .ptile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; min-width: 0; }
  .ptile h3 { font-size: 12.5px; font-weight: 600; margin: 0 0 8px; }
  .ptile-svg { display: block; width: 100%; height: auto; }
  .ptile-base { stroke: var(--line); stroke-width: 1; }
  .ptile-ax { fill: var(--muted); font: 10.5px var(--mono); }
  .ptile-a1 { fill: var(--pa1); background: var(--pa1); } .ptile-a2 { fill: var(--pa2); background: var(--pa2); } .ptile-a3 { fill: var(--pa3); background: var(--pa3); } .ptile-a4 { fill: var(--pa4); background: var(--pa4); } .ptile-a5 { fill: var(--pa5); background: var(--pa5); } .ptile-a6 { fill: var(--pa6); background: var(--pa6); } .ptile-a7 { fill: var(--pa7); background: var(--pa7); } .ptile-a8 { fill: var(--pa8); background: var(--pa8); }
  .ptile-ao { fill: var(--pao); background: var(--pao); }
  .ptile-legend, .ptile-rank { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; }
  .ptile-legend { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ptile-legend li, .ptile-rank li { display: flex; align-items: center; gap: 6px; font-size: 12px; min-width: 0; }
  .ptile-sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
  .ptile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
  .ptile-legend .num { margin-left: auto; color: var(--muted); }
  .ptile-rank li { display: grid; grid-template-columns: minmax(0, 11em) 1fr auto; }
  .ptile-track { height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
  .ptile-fill { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
  .ptile-empty { color: var(--muted); font-size: 12px; }

  .ptiles { --pg-p: #eb6834; --pg-b: #1baf7a; --pg-u: #6250d6; --ps1: #6da7ec; --ps2: #3987e5; --ps3: #1c5cab; --ps4: #0d366b; }
  .dark .ptiles { --pg-p: #d95926; --pg-b: #199e70; --pg-u: #9085e9; --ps1: #256abf; --ps2: #3987e5; --ps3: #6da7ec; --ps4: #b7d3f6; }
  .ptile-g-binary { fill: var(--pg-p); background: var(--pg-p); } .ptile-g-toolchain { fill: var(--pg-b); background: var(--pg-b); }
  .ptile-g-unplaced { fill: var(--pg-u); background: var(--pg-u); }
  .ptile-s-critical { fill: var(--ps4); } .ptile-s-high { fill: var(--ps3); } .ptile-s-medium { fill: var(--ps2); } .ptile-s-low { fill: var(--ps1); }
  .ptile-s-unscored { fill: color-mix(in srgb, var(--muted) 45%, transparent); }
  .ptile-matters { fill: var(--pg-p); }
  .ptile-big { font-size: 15px; font-weight: 600; margin: 18px 0; }
  .ptile-foot { color: var(--muted); font-size: 11.5px; margin: 6px 0 0; }

  .pvf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; margin: -4px 0 10px; }
  .pvf :is(summary, a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .pvf-view { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; box-sizing: border-box; padding: 3px 10px;
    border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); color: var(--text); font-size: 12.5px; white-space: nowrap; }
  a.pvf-view:hover { background: var(--panel-2); text-decoration: none; }
  .pvf-view[aria-current="true"] { background: var(--accent-subtle); color: var(--accent-ink); border-color: transparent; }
  .pvf-view .c { color: var(--muted); font: 12px var(--mono); }
  .pvf-sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 2px; }
  .pvf-check { width: 1em; flex: none; color: var(--accent-ink); }
  .pvf-note { color: var(--muted); font-size: 12.5px; }
  /* On a phone the bar is one row that scrolls sideways, so the list still
     leads; a picker opens as a sheet at the foot of the screen. */
  @media (max-width: 760px) {
    .pvf { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .pvf > * { flex: none; }
    .pvf .pscope-note, .pvf .pscope-label { display: none; }
    .pvf-view, .pvf .pscope-dim > summary, .pvf .pscope-chip > .pscope-k { min-height: 38px; }
    .pvf .pscope-menu { position: fixed; left: 16px; right: 16px; width: auto; top: auto; bottom: 16px; max-height: 50vh; }
  }

  /* Policy ids, digests and SPIFFE ids are unbroken: they wrap anywhere rather
     than widen the page. A command is the exception, since a wrapped command
     cannot be read or copied reliably: it keeps its line and scrolls inside its
     own block (#11926 QA-14). */
  .stopped { border: 1px solid var(--bad); border-radius: var(--r-md); padding: 12px 14px; margin: 12px 0;
    min-width: 0; overflow-wrap: anywhere; }
  .stopped h3 { margin: 0 0 6px; font-size: 14px; }
  .stopped .missing { margin: 8px 0; padding-left: 20px; }
  .stopped .missing li { min-width: 0; margin-bottom: 8px; }
  .stopped .remedy-command { overflow-x: auto; max-width: 100%; white-space: pre; overflow-wrap: normal;
    padding: 8px; margin: 6px 0; background: var(--panel); border-radius: var(--r-sm); font-family: var(--mono); }
  .stopped .rawdiag { margin-top: 10px; }
  .stopped .rawdiag summary { cursor: pointer; color: var(--muted); }
  .stopped .rawdiag .stopdetail { font: 12px/1.5 var(--mono); margin-top: 6px; }
  .stopped .none, .stopped .approver, .stopped .stopdetail { color: var(--muted); }
  .stopped .stopactions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  /* One group per (release, commit) of a version-2 challenge (#11926 QA-13). */
  .stopped .relcount { margin: 8px 0 4px; font-weight: 500; }
  .stopped .partial { margin: 6px 0; color: var(--warn); }
  .stopped .relgroup { margin: 10px 0; padding: 8px 0 0; border-top: 1px solid var(--line); min-width: 0; }
  .stopped .relgroup h4 { margin: 0 0 2px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
  .stopped .relgroup .relmode { font-weight: 400; font-size: 12px; color: var(--bad); }
  .stopped .relgroup.warn .relmode { color: var(--warn); }
  .stopped .relwhere, .stopped .relwhy { margin: 2px 0; font-size: 12px; color: var(--muted); }
  .stopped .relgroup .steps { margin: 6px 0; padding-left: 20px; }
  .stopped .relgroup .steps li { min-width: 0; margin-bottom: 6px; }
  .stopped .relgroup .stepname { font: 12px var(--mono); }
  .stopped .relwarnings { margin-top: 12px; }
  .stopped .relwarnings > h4 { margin: 0; font-size: 13px; color: var(--muted); }
  .agentlinks { display: flex; gap: 12px; }

  .prow.cursor { box-shadow: inset 2px 0 0 var(--accent); background: var(--panel-2); }
  .prow.peek > .detail { display: block; position: fixed; top: 52px; right: 0; bottom: 0; z-index: 30;
    width: min(520px, 100vw); overflow: auto; background: var(--panel); border-left: 1px solid var(--line);
    box-shadow: -8px 0 28px rgba(0,0,0,.08); padding: 16px 20px; margin: 0; }
  .prow.peek > .detail:focus { outline: none; }

  #delivery-banner { border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--r-md); padding: 10px 14px; margin: 0 0 14px;
    background: var(--panel); color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
  #delivery-banner[hidden] { display: none; }
  #delivery-banner p { margin: 0; }
  #delivery-banner details { margin-top: 6px; }
  #delivery-banner summary { cursor: pointer; color: var(--muted); }
  #delivery-banner ul { list-style: none; margin: 6px 0 0; padding: 0; }
  #delivery-banner li { padding: 3px 0; }
  #delivery-banner small { color: var(--muted); }

  .filternote { color: var(--muted); margin: -6px 0 14px; }
  .filternote a { margin-left: 6px; text-decoration: underline; text-underline-offset: 2px; }

  .sorthead [role="row"], .agetoggle { display: inline-flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; font-size: 12.5px; line-height: 1.3; color: var(--muted); padding: 2px 6px; }
  .sorthead a, .agetoggle a { color: var(--muted); text-decoration: none; white-space: nowrap; }
  .sorthead [role="columnheader"][aria-sort="ascending"] a, .sorthead [role="columnheader"][aria-sort="descending"] a,
  .agetoggle a[aria-current="true"] { color: var(--text); font-weight: 600; }
  .fhidden { font-size: 12px; color: var(--muted); margin: 4px 0 0 22px; }

  .setup-first { text-align: left; max-width: 62ch; margin: 12px auto 0; }
  .setup-first .setup-out { margin-top: 8px; font-size: 13px; overflow-wrap: anywhere; }
  .setup-first .setup-out code { display: block; margin-top: 6px; white-space: pre-wrap; }
  .setup-plain { margin-top: 14px; }
  .setup-plain ol { margin: 10px 0 0 20px; }
  .setup-plain li { margin-bottom: 10px; }
  .setup-cmd { margin: 0 0 4px; padding: 8px 10px; border-radius: 6px; background: var(--panel-2); overflow-x: auto; font-size: 12.5px; }
