/* Sentinel v2 - findings.css
   Findings page (Detect): rows, split view, clause peek, keyboard triage, results hero.
   Owned by the 'findings' area of the v2 redesign; tokens come from v2/tokens.css.

   The page's own aliases (--vf-*) read the v2 tokens when the tokens area has landed (--sev-*, --party-*, --brand,
   --ink-*) and fall back to the spec's values, declared on .app (and its dark themes) - where the theme's own custom
   properties resolve - never only on :root. Severity is glyph + word first, colour second; party colours never mean
   severity; orange and red never paint a button. Motion: nothing loops on this page; selection, triage and the peek
   use productive timings (<= 180 ms) and the row -> pane title morph is a view transition. */

.app {
  --vf-crit: var(--sev-critical, #9f1239);
  --vf-high: var(--sev-high, #c2410c);
  --vf-med: var(--sev-medium, #a16207);
  --vf-low: var(--sev-low, #5c6571);
  --vf-pa: var(--party-a, #0f766e);
  --vf-pb: var(--party-b, #6d28d9);
  --vf-brand: var(--brand, #1a2fe6);
  --vf-brand-hover: var(--brand-hover, #1424b8);
  --vf-on-brand: var(--on-brand, #ffffff);
  --vf-ink: var(--ink-1, var(--text-primary));
  --vf-ink2: var(--ink-2, var(--text-secondary));
  --vf-ink3: var(--ink-3, #5f6874);
  --vf-line: var(--line-1, var(--border-hairline));
  --vf-line2: var(--line-2, var(--border-subtle));
  --vf-surface: var(--surface-1, var(--bg-pane));
  --vf-raise: var(--surface-2, var(--bg-doc));
  --vf-sunk: var(--bg-sunken);
  --vf-hover: var(--bg-soft, rgba(0, 0, 0, .035));
  --vf-sel: color-mix(in srgb, var(--vf-brand) 7%, var(--vf-surface));
  --vf-focus: var(--focus, var(--vf-brand));
  --vf-serif: var(--font-serif, "Source Serif 4", "Source Serif Pro", Cambria, Georgia, serif);
  --vf-ease: cubic-bezier(.22, 1, .36, 1);
  --vf-shadow-3: 0 18px 44px -14px color-mix(in srgb, var(--vf-ink) 34%, transparent), 0 0 0 1px var(--vf-line2);
}
.app[data-theme="midnight"],
.app[data-theme="eclipse"] {
  --vf-crit: var(--sev-critical, #ff5c7a);
  --vf-high: var(--sev-high, #ff9f43);
  --vf-med: var(--sev-medium, #e0b64a);
  --vf-low: var(--sev-low, #9aa1ad);
  --vf-pa: var(--party-a, #3fd1bb);
  --vf-pb: var(--party-b, #c4a1ff);
  --vf-brand: var(--brand, #8ea0ff);
  --vf-brand-hover: var(--brand-hover, #a9b6ff);
  --vf-on-brand: var(--on-brand, #07080b);
  --vf-ink3: var(--ink-3, #9aa1ad);
  --vf-hover: rgba(255, 255, 255, .045);
  --vf-sel: color-mix(in srgb, var(--vf-brand) 11%, var(--vf-surface));
  --vf-shadow-3: 0 18px 44px -14px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .10);
}

/* ---- the page ------------------------------------------------------------------------------------------------------ */
.app[data-mode="detect"] .stage-page.vf-page { max-width: 1480px; padding-top: 20px; }

/* ---- the compact head (the results hero folded into one row) -------------------------------------------------------- */
.vf-head.detect-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 28px;
  align-items: end;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--vf-line);
}
.vf-head.is-folded { padding-bottom: 10px; }
.vf-head-main { min-width: 0; }
.vf-head .vf-title {
  font-family: var(--vf-serif);
  font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -.012em;
  color: var(--vf-ink); margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vf-head .vf-sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
  margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--vf-ink3);
}
.vf-head .vf-sub .dc-dot, .vf-head .detect-cov .dc-dot { margin: 0 7px; color: var(--vf-ink3); opacity: .7; }
.vf-head .vf-total { color: var(--vf-ink2); font-weight: 550; }
.vf-head .detect-cov { display: flex; flex-wrap: wrap; align-items: center; margin-top: 2px; font-size: 12px; color: var(--vf-ink3); }
.vf-head .detect-cov:empty { display: none; }
.vf-head .detect-cov .dc-status { color: var(--vf-ink2); }
.vf-head .cov-link { font: inherit; color: var(--vf-brand); background: none; border: 0; padding: 0; cursor: pointer; }
.vf-head .cov-link:hover { text-decoration: underline; }
.vf-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 0; }
.vf-head-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.vf-head .analytics-badges { gap: 6px; }
.vf-head .analytics-badge { padding: 4px 10px; min-height: 30px; }

/* the stacked severity distribution: one bar, one segment per band, each segment a filter */
.vf-dist {
  display: flex; gap: 2px; width: min(320px, 100%); height: 8px;
  border-radius: 999px; overflow: hidden; background: var(--vf-line);
}
.vf-dist-seg {
  min-width: 10px; height: 100%; border: 0; padding: 0; margin: 0; cursor: pointer;
  background: var(--vf-low); opacity: .9;
  transition: opacity 120ms var(--vf-ease), transform 120ms var(--vf-ease);
}
.vf-dist-seg.is-critical { background: var(--vf-crit); }
.vf-dist-seg.is-high { background: var(--vf-high); }
.vf-dist-seg.is-medium { background: var(--vf-med); }
.vf-dist-seg.is-low { background: var(--vf-low); }
.vf-dist:has(.is-on) .vf-dist-seg:not(.is-on) { opacity: .28; }
.vf-dist-seg:hover { opacity: 1; }
.vf-dist-seg:focus-visible { outline: 2px solid var(--vf-focus); outline-offset: 2px; }

/* next steps: one brand primary, a secondary, the overflow */
.vf-next { display: inline-flex; align-items: center; gap: 8px; }
.btn.vf-btn-primary {
  background: var(--vf-brand); border-color: var(--vf-brand); color: var(--vf-on-brand); font-weight: 600;
}
.btn.vf-btn-primary:hover:not(:disabled) { background: var(--vf-brand-hover); border-color: var(--vf-brand-hover); }
.btn.vf-btn-primary:active:not(:disabled) { transform: translateY(1px); }

.vf-more { position: relative; display: inline-block; }
.vf-more > summary { list-style: none; cursor: pointer; min-width: 30px; padding: 0 8px; font-size: 16px; letter-spacing: .08em; }
.vf-more > summary::-webkit-details-marker { display: none; }
.vf-more[open] > summary { background: var(--vf-hover); color: var(--vf-ink); }
.vf-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 220px; padding: 6px;
  display: flex; flex-direction: column; gap: 1px;
  background: var(--vf-raise); border-radius: 10px; box-shadow: var(--vf-shadow-3);
  animation: vfMenuIn 120ms var(--vf-ease) both;
}
.vf-actions .vf-menu { top: auto; bottom: calc(100% + 6px); }
.vf-menu button {
  display: block; width: 100%; text-align: left; font: 500 13px/18px var(--font-ui);
  color: var(--vf-ink); background: none; border: 0; border-radius: 6px; padding: 7px 10px; cursor: pointer;
}
.vf-menu button:hover:not(:disabled), .vf-menu button:focus-visible { background: var(--vf-hover); outline: none; }
.vf-menu button:disabled { color: var(--vf-ink3); cursor: default; opacity: .7; }
@keyframes vfMenuIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- the one filter bar ------------------------------------------------------------------------------------------- */
.detect-toolbar.vf-filters {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  padding: 0 0 12px; margin: 0 0 6px;
}
.vf-filters .sev-chips.vf-seg { flex-wrap: nowrap; }
.vf-seg { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 8px; background: var(--vf-sunk); border: 1px solid var(--vf-line); }
/* a group's name stands before its pill, plain text in the ink of a caption (SNT-144): nothing about it says "press me" */
.vf-segw { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.vf-seg-k { font: 500 12px/16px var(--font-ui); color: var(--vf-ink3); white-space: nowrap; cursor: default; user-select: none; }
.vf-seg-b, .vf-filters .sev-chip.vf-seg-b {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 6px;
  font: 550 12.5px/1 var(--font-ui); color: var(--vf-ink2);
  background: transparent; border: 0; box-shadow: none; cursor: pointer; white-space: nowrap;
  transition: background 90ms var(--vf-ease), color 90ms var(--vf-ease);
}
.vf-seg-b:hover:not(:disabled) { color: var(--vf-ink); background: var(--vf-hover); }
.vf-seg-b.is-on, .vf-filters .sev-chip.is-active {
  background: var(--vf-surface); color: var(--vf-ink);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--vf-ink) 14%, transparent), 0 0 0 1px var(--vf-line2);
  border: 0;
}
.vf-filters .sev-chip.is-active .sc-num, .vf-filters .sev-chip.is-active .sc-label { color: var(--vf-ink); }
.vf-filters .sev-chip .sc-label { color: inherit; }
.vf-filters .sev-chip .sc-num, .vf-seg-b .vf-n {
  font: 600 11px/1 var(--font-mono); color: var(--vf-ink3); font-variant-numeric: tabular-nums;
}
.vf-seg-b:focus-visible { outline: 2px solid var(--vf-focus); outline-offset: 1px; }
.vf-seg-b:disabled { opacity: .5; cursor: default; }
.vf-glyph { font-size: 11px; line-height: 1; }
.vf-glyph.g-crit { color: var(--vf-crit); }
.vf-glyph.g-high { color: var(--vf-high); }
.vf-glyph.g-med { color: var(--vf-med); }
.vf-glyph.g-low { color: var(--vf-low); }

.vf-search.search { width: 260px; height: 34px; margin-left: auto; padding-right: 30px; border-radius: 8px; border-color: var(--vf-line2); background: var(--vf-surface); }
.vf-search.search:focus-within { border-color: var(--vf-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vf-brand) 16%, transparent); }
.vf-search input { font-size: 13px; color: var(--vf-ink); }
.vf-search input::-webkit-search-cancel-button { display: none; }
.vf-search-x {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent;
  color: var(--vf-ink3); font-size: 12px; cursor: pointer;
}
.vf-search-x:hover { background: var(--vf-hover); color: var(--vf-ink); }
.vf-search-x[hidden] { display: none; }

.vf-filters .detect-triage { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vf-filters .detect-triage:empty { display: none; }
.vf-filters .dt-count { font: 550 12px/1 var(--font-ui); color: var(--vf-ink2); background: none; border: 0; cursor: pointer; padding: 4px 2px; }
.vf-filters .dt-count:hover { color: var(--vf-ink); text-decoration: underline; }
.vf-view { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--vf-sunk); border: 1px solid var(--vf-line); }
.vf-view[hidden] { display: none; }
.vf-view-b { height: 26px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--vf-ink3); font: 550 12px/1 var(--font-ui); cursor: pointer; }
.vf-view-b.is-on { background: var(--vf-surface); color: var(--vf-ink); box-shadow: 0 0 0 1px var(--vf-line2); }
.vf-view-b:focus-visible { outline: 2px solid var(--vf-focus); outline-offset: 1px; }

/* search highlights (CSS Custom Highlight API: no DOM rewrite) */
::highlight(vf-search) { background-color: color-mix(in srgb, var(--vf-brand) 22%, transparent); color: inherit; }

/* ---- the body: inline list, or split list + sticky pane ------------------------------------------------------------- */
.vf-body.is-split {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  gap: 0 22px;
  align-items: start;
}
.vf-body.is-split > .vf-prevband,
.vf-body.is-split > .detect-skeleton,
.vf-body.is-split > .vf-empty { grid-column: 1 / -1; }
.vf-body.is-split > .vf-list { grid-column: 1; min-width: 0; }
.vf-pane {
  grid-column: 2; position: sticky; top: 12px;
  max-height: calc(var(--vf-pane-h, 100vh) - 24px);
  overflow: auto; overscroll-behavior: contain;
  background: var(--vf-surface); border: 1px solid var(--vf-line2); border-radius: 14px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--vf-ink) 6%, transparent);
  scrollbar-gutter: stable;
}
.vf-pane-empty { display: grid; place-items: center; gap: 8px; padding: 72px 28px; text-align: center; color: var(--vf-ink3); }
.vf-pane-empty .de-title { font: 600 15px/22px var(--font-ui); color: var(--vf-ink2); }
.vf-pane-empty .de-sub { font-size: 12.5px; line-height: 18px; max-width: 34ch; }

/* ---- rows: 64-72 px, rail + glyph + word, serif title, one-line summary ---------------------------------------------- */
.issues-grid.vf-list { display: flex; flex-direction: column; gap: 4px; outline: none; }
.issues-grid .issue-card.vf-row {
  position: relative;
  display: grid; grid-template-columns: 3px minmax(0, 1fr); gap: 12px; align-items: stretch;
  min-height: 64px; margin: 0; padding: 6px 12px 6px 10px;
  border: 1px solid transparent; border-radius: 10px;
  background: transparent; box-shadow: none; cursor: pointer;
  transition: background 120ms var(--vf-ease), border-color 120ms var(--vf-ease);
}
.issues-grid .issue-card.vf-row:hover { background: var(--vf-hover); border-color: transparent; box-shadow: none; }
.issues-grid .issue-card.vf-row:active { background: color-mix(in srgb, var(--vf-hover) 100%, var(--vf-line)); }
.issues-grid .issue-card.vf-row.is-selected {
  background: var(--vf-sel); border-color: color-mix(in srgb, var(--vf-brand) 34%, var(--vf-line2));
  border-radius: 10px; box-shadow: none;
}
/* never the page accent (orange means risk only): the midnight block in styles.css outlined an open card in it */
.app .issues-grid .issue-card.vf-row.is-selected { border-color: color-mix(in srgb, var(--vf-brand) 40%, var(--vf-line2)); }
.vf-body.is-inline .issues-grid .issue-card.vf-row.is-selected { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.issues-grid .issue-card.vf-row:focus { outline: none; }
.issues-grid .issue-card.vf-row:focus-visible { outline: 2px solid var(--vf-focus); outline-offset: 1px; }
/* the severity rail runs the row's full height (the old `.dot` class pinned it to a 7 px speck) */
.vf-row .ic-dot { width: 3px; height: auto; border-radius: 2px; align-self: stretch; flex: none; background: var(--vf-low); }
.vf-row .ic-dot.d-crit { background: var(--vf-crit); }
.vf-row .ic-dot.d-high { background: var(--vf-high); }
.vf-row .ic-dot.d-med { background: var(--vf-med); }
.vf-row .ic-dot.d-low { background: var(--vf-low); }
.vf-row .ic-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vf-row-top { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 18px; max-height: 20px; }
.vf-sev { display: inline-flex; align-items: center; gap: 5px; font: 650 11px/14px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--vf-low); }
.vf-sev.is-critical { color: var(--vf-crit); }
.vf-sev.is-high { color: var(--vf-high); }
.vf-sev.is-medium { color: var(--vf-med); }
.vf-sev.is-low { color: var(--vf-low); }
.vf-sev .vf-glyph { font-size: 11px; }
.vf-conf {
  font: 550 11px/13px var(--font-ui); color: var(--vf-ink2); white-space: nowrap;
  padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--vf-med) 12%, transparent);
}
.vf-conf.is-sure { background: var(--vf-sunk); color: var(--vf-ink3); }
.vf-row .ic-change { font-size: 10.5px; padding: 2px 6px; }
.vf-row-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex-shrink: 1; overflow: hidden; }
/* chips that do not fit wrap onto a hidden second line: a whole chip disappears, never half of "§7.3" */
.vf-row .ic-refs { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin: 0; min-width: 0; max-height: 18px; overflow: hidden; }
.vf-chip.ic-ref, .vf-chip.dd-chip, .vf-chip.dd-ev-link {
  font: 500 11.5px/1 var(--font-mono); line-height: 12px; color: var(--vf-ink2);
  background: var(--vf-sunk); border: 1px solid var(--vf-line); border-radius: 5px;
  padding: 2px 5px; cursor: pointer; white-space: nowrap;
  transition: border-color 90ms var(--vf-ease), color 90ms var(--vf-ease);
}
.vf-chip:hover, .vf-chip:focus-visible { border-color: var(--vf-brand); color: var(--vf-brand); outline: none; }
.vf-chip-more { font: 500 11px/1 var(--font-mono); color: var(--vf-ink3); }
.vf-party { display: inline-flex; align-items: center; gap: 3px; font: 550 11px/13px var(--font-ui); white-space: nowrap; padding: 2px 7px; border-radius: 999px; color: var(--vf-ink2); background: var(--vf-sunk); }
.vf-party .vfp-k { color: var(--vf-ink3); font-weight: 500; }
.vf-party.is-a { color: var(--vf-pa); background: color-mix(in srgb, var(--vf-pa) 11%, transparent); }
.vf-party.is-b { color: var(--vf-pb); background: color-mix(in srgb, var(--vf-pb) 11%, transparent); }
.vf-party.is-a .vfp-k, .vf-party.is-b .vfp-k { color: inherit; opacity: .8; }
.vf-row .ic-triage { font-size: 11px; }
/* where the point stands with the other side, and who handles it: quiet chips, the status's own colour as a short edge
   (the tracker's colours), never a severity fill */
.vf-row .ic-neg, .vf-row .ic-who {
  font: 550 11px/13px var(--font-ui); white-space: nowrap; padding: 2px 7px; border-radius: 999px;
  color: var(--vf-ink2); background: var(--vf-sunk);
}
.vf-row .ic-neg { box-shadow: inset 3px 0 0 var(--nc, var(--vf-line2)); padding-left: 9px; }
.vf-row .ic-who { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
:is(.ic-neg, .dd-track-sel).is-to_raise { --nc: var(--vf-ink3); }
:is(.ic-neg, .dd-track-sel).is-raised { --nc: var(--vf-brand); }
:is(.ic-neg, .dd-track-sel).is-agreed { --nc: var(--severity-success, #15803d); }
:is(.ic-neg, .dd-track-sel).is-rejected { --nc: var(--vf-crit); }
:is(.ic-neg, .dd-track-sel).is-waived { --nc: var(--vf-low); }
.vf-row .ic-title {
  font-family: var(--vf-serif); font-size: 16px; line-height: 21px; font-weight: 600; letter-spacing: -.005em;
  color: var(--vf-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vf-row .ic-summary {
  margin: 0; font-size: 13px; line-height: 17px; color: var(--vf-ink3); max-width: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.issues-grid .issue-card.vf-row.is-taccepted { opacity: 1; background: transparent; }
.issues-grid .issue-card.vf-row.is-taccepted .ic-title { color: var(--vf-ink2); }
.issues-grid .issue-card.vf-row.is-tdismissed { opacity: .66; }
.issues-grid .issue-card.vf-row.is-tdismissed:hover { opacity: .9; }
.issues-grid .issue-card.vf-row.is-resolved { cursor: default; opacity: .72; border: 1px dashed var(--vf-line2); background: transparent; }
.vf-row.is-resolved .ic-title { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--vf-ink3); }

/* group heads */
.vf-list .conf-head {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 0 4px; padding: 0 4px;
  font: 600 11px/16px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--vf-ink3);
}
.vf-list .conf-head:first-child { margin-top: 0; }
.vf-list .conf-head.is-accepted, .vf-list .conf-head.is-archive, .vf-list .conf-head.is-res { margin-top: 20px; color: var(--vf-ink3); }
.vf-list .conf-head .ch-n { font-family: var(--font-mono); color: var(--vf-ink3); }

/* ---- the inline detail: no repeated title, the decision bar on top --------------------------------------------------- */
.vf-body.is-inline .issue-detail-li { margin: -4px 0 10px; }
.vf-body.is-inline .issue-detail-li .detect-detail.vf-detail {
  border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0;
  border-color: color-mix(in srgb, var(--vf-brand) 34%, var(--vf-line2));
  padding-top: 12px;
}
.vf-detail .vf-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 0 0 12px; border-bottom: 1px solid var(--vf-line);
}
.vf-detail .vf-actions .btn { height: 32px; }
.vf-detail .vf-actions .btn.is-done { color: var(--vf-ink2); }
.vf-detail .vf-actions.is-locked { padding: 2px 0 10px; }
.vf-impact {
  margin: 12px 0 0; font-family: var(--vf-serif); font-size: 16px; line-height: 25px; color: var(--vf-ink);
  max-width: 72ch;
}
.vf-detail.is-inline .dd-grid { margin-top: 4px; }

/* ---- the pane: header, impact, meta, the card, a sticky decision bar ------------------------------------------------- */
.vf-detail.is-pane { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.vf-dhead.dd-head { display: block; padding: 20px 22px 14px; border-bottom: 1px solid var(--vf-line); margin: 0; }
.vf-dhead .dd-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.vf-ptitle.dd-title {
  font-family: var(--vf-serif); font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -.01em;
  color: var(--vf-ink); margin: 0;
}
.vf-dhead .vf-impact { margin-top: 10px; }
.vf-pmeta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 18px; margin-top: 6px; }
.vf-pmeta .dd-meta-stack { margin-top: 8px; padding-top: 8px; }
.vf-pmeta .dd-meta-v { font-size: 13px; }
.vf-pmain.dd-main { padding: 2px 22px 12px; }
.vf-detail.is-pane .vf-actions {
  position: sticky; bottom: 0; z-index: 2;
  padding: 12px 22px; border-top: 1px solid var(--vf-line); border-bottom: 0;
  background: color-mix(in srgb, var(--vf-surface) 94%, transparent);
  backdrop-filter: blur(6px);
}
::view-transition-group(vf-title) { animation-duration: 280ms; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(vf-pane) { animation: 90ms cubic-bezier(.4, 0, 1, 1) both vfVtOut; }
::view-transition-new(vf-pane) { animation: 200ms var(--vf-ease) 60ms both vfVtIn; }
@keyframes vfVtOut { to { opacity: 0; } }
@keyframes vfVtIn { from { opacity: 0; } }

/* the citation chips and the quoted language in the detail */
.vf-detail .dd-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.vf-detail .dd-ev-ref { color: var(--vf-ink2); }
.vf-detail .dd-line.is-cited { background: color-mix(in srgb, var(--vf-brand) 9%, transparent); box-shadow: inset 2px 0 0 var(--vf-brand); }
.vf-detail .dd-line.is-cited .dd-line-n { color: var(--vf-brand); }
.vf-detail .dd-section h5 { color: var(--vf-ink3); }
/* the finding's note (a dismissal's why) and its negotiation: one field each, saved when it changes */
.vf-detail .dd-note-input { display: block; width: 100%; height: auto; min-height: 58px; padding: 8px 11px; line-height: 20px; resize: vertical; }
.vf-detail .dd-track-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.vf-detail .dd-fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; color: var(--vf-ink3); }
.vf-detail .dd-fld .dd-comment-input, .vf-detail .dd-fld select { width: 100%; min-width: 0; height: 32px; font: inherit; font-size: 13px; color: var(--vf-ink); }
.vf-detail .dd-fld select {
  padding: 0 8px; background: var(--surface-card, var(--vf-raise)); border: 1px solid var(--line-control, var(--vf-line2)); border-radius: 8px;
}
.vf-detail .dd-fld select:focus { outline: none; border-color: var(--vf-focus); box-shadow: 0 0 0 3px var(--brand-soft-2, transparent); }
.vf-detail .dd-track-sel { box-shadow: inset 3px 0 0 var(--nc, var(--vf-line2)); }
.vf-detail .dd-fld :disabled { opacity: .6; cursor: not-allowed; }
.vf-detail .dd-prose { font-size: 14.5px; line-height: 23px; color: var(--vf-ink); }

/* ---- the clause peek ---------------------------------------------------------------------------------------------- */
.vf-peek {
  position: fixed; z-index: 80; left: 0; top: 0;
  width: min(420px, calc(100vw - 24px)); max-height: min(60vh, 460px);
  display: flex; flex-direction: column;
  background: var(--bg-doc); color: var(--vf-ink); border-radius: 12px; box-shadow: var(--vf-shadow-3);
  padding: 0 0 0 4px; overflow: hidden; outline: none;
  --vf-peek-c: var(--vf-med);
}
.vf-peek.is-critical { --vf-peek-c: var(--vf-crit); }
.vf-peek.is-high { --vf-peek-c: var(--vf-high); }
.vf-peek.is-low { --vf-peek-c: var(--vf-low); }
.vf-peek::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px;
  background: var(--vf-peek-c); transform-origin: top; animation: vfDraw 260ms var(--vf-ease) both;
}
@keyframes vfDraw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.vf-peek-h { display: flex; align-items: center; gap: 10px; padding: 12px 10px 8px 16px; border-bottom: 1px solid var(--vf-line); }
.vf-peek-ref { font: 600 12.5px/1 var(--font-mono); color: var(--vf-ink); }
.vf-peek-doc { flex: 1; min-width: 0; font-size: 12px; color: var(--vf-ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-peek-x { width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--vf-ink3); cursor: pointer; }
.vf-peek-x:hover { background: var(--vf-hover); color: var(--vf-ink); }
.vf-peek-b { overflow: auto; padding: 10px 16px 6px; font-family: var(--vf-serif); font-size: 15px; line-height: 24px; }
.vf-peek-lines { display: flex; flex-direction: column; gap: 2px; }
.vf-peek .dd-line { display: flex; gap: 8px; align-items: baseline; padding: 3px 6px; margin-left: calc(var(--d, 0) * 16px); border-radius: 5px; }
.vf-peek .dd-line-n { flex: none; min-width: 2.4em; font: 500 11.5px/1 var(--font-mono); color: var(--vf-ink3); }
.vf-peek .dd-line.is-cited { background: color-mix(in srgb, var(--vf-peek-c) 12%, transparent); box-shadow: inset 2px 0 0 var(--vf-peek-c); }
.vf-peek .dd-line.is-cited .dd-line-n { color: var(--vf-peek-c); font-weight: 600; }
.vf-peek-f { padding: 8px 16px 12px; border-top: 1px solid var(--vf-line); }
.vf-peek-open { font: 600 13px/1 var(--font-ui); color: var(--vf-brand); background: none; border: 0; padding: 6px 0; cursor: pointer; }
.vf-peek-open:hover { text-decoration: underline; }
.vf-peek-open:focus-visible, .vf-peek-x:focus-visible { outline: 2px solid var(--vf-focus); outline-offset: 2px; border-radius: 4px; }

/* ---- a re-run: the previous run's list, dimmed, under its band; the run beside it ------------------------------------ */
.vf-prevband {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 12px;
  border-radius: 10px; background: var(--vf-sunk); border: 1px solid var(--vf-line);
  font-size: 13px; color: var(--vf-ink2);
}
.vf-prevband b { color: var(--vf-ink); font-weight: 600; }
.vf-pb-sub { color: var(--vf-ink3); }
.vf-pb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--vf-brand); flex: none; }
.vf-list.is-prev { opacity: .55; filter: saturate(.7); }
.vf-list.is-prev .issue-card { cursor: default; }
.vf-body.has-prev { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 22px; align-items: start; }
@media (min-width: 1280px) {
  .vf-body.has-prev { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
  .vf-body.has-prev > .vf-prevband { grid-column: 1 / -1; }
  .vf-body.has-prev > .vf-list { grid-column: 1; grid-row: 2; }
  .vf-body.has-prev > .vf-runhost,
  .vf-body.has-prev > .detect-runtime { grid-column: 2; grid-row: 2; }
}
.vf-runhost { position: sticky; top: 12px; min-height: 280px; }
/* the page's own scanner, when the run area's view is not there: beside the dimmed list, not over it - as tall as its side
   column needs (a fixed 420px cut the foot's Stop in half, the live check of 2026-10-15) */
.vf-body.has-prev > .detect-runtime { position: sticky; top: 12px; inset: auto; height: auto; min-height: 420px; z-index: 1; border: 1px solid var(--vf-line2); background: var(--vf-surface); backdrop-filter: none; }
@media (max-width: 1279px) {
  .vf-body.has-prev > .detect-runtime, .vf-body.has-prev > .vf-runhost { position: relative; top: auto; grid-row: 1; margin-bottom: 10px; height: auto; min-height: 300px; }
  .vf-body.has-prev > .vf-prevband { grid-row: 2; }
}

/* ---- the empty state ---------------------------------------------------------------------------------------------- */
.vf-empty.detect-empty .btn { margin-top: 6px; }

/* ---- narrow screens ----------------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .vf-head.detect-hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .vf-head-side { align-items: stretch; }
  .vf-head-row { justify-content: flex-start; }
  .vf-dist { width: 100%; }
  .vf-head .vf-title { font-size: 22px; line-height: 30px; white-space: normal; }
  .vf-search.search { width: 100%; margin-left: 0; order: -1; }
  .detect-toolbar.vf-filters { gap: 8px; }
  .vf-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .vf-seg::-webkit-scrollbar { display: none; }
  .vf-seg-k { display: none; }
  .vf-segw { max-width: 100%; }
  .vf-row-meta .ic-refs { display: none; }
  .vf-detail.is-inline .dd-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (pointer: coarse) {
  .vf-seg-b, .vf-filters .sev-chip.vf-seg-b { height: 40px; }
  .vf-search.search { height: 44px; }
  .vf-detail .vf-actions .btn, .vf-next .btn { height: 40px; }
  .issues-grid .issue-card.vf-row { min-height: 72px; }
}

/* ---- print: the list, readable, without the pane chrome ---------------------------------------------------------- */
@media print {
  .vf-filters, .vf-next, .vf-pane, .vf-peek { display: none !important; }
  .vf-body.is-split { display: block; }
  .vf-row .ic-title, .vf-row .ic-summary { white-space: normal; }
}

/* CHOOSING A FINDING NEVER BLANKS THE PANE (the owner, 2026-10-15: one card then another "flickers ... like a reload"): the pane's
   detail is drawn anew on every choice, and the detail's own entrance (styles.css detailIn, from opacity 0) blanked it for
   a few frames each time. In the pane it shows at once; findings.js morphSelect settles it in from .8 (never from nothing). The
   inline detail, which opens under its row, keeps its entrance. */
.vf-detail.is-pane { animation: none; }
