/* Sentinel v2 - insight-review.css
   The review workspace (v2/insight-review.js) and its evidence pane (v2/insight-pane.js): the header with the lens and the progress, the
   views and filters, the counts that are filters, the queue of regions and rows, the selection bar, the pane and its foot.
   THE SYSTEM (the plan's design system, ui2/foundation.css): an 8-point grid - 8 inside a control, 16 between related items, 24 between
   groups and as card padding, 32 between panes, 40 the page's gutter (16 on a phone); rows people act on 64-68 px; buttons 36 (small 30),
   the three decisions 46. Source Serif to read (titles, rules, clauses), Inter to operate, Plex Mono for clause numbers and keys. Three
   depths: flat, raised (a hairline and --e2), floating (--e3).
   THE SOFT PALETTE (tokens only, never a colour of its own): a state is its pale -soft tint with its -glyph shape and its word - never a
   solid saturated block; a pressed count is a slightly deeper tint with ink text. The brand marks the current line and the selection
   only. No ring, outline or halo round any button, even on keyboard focus: the fill changes instead. Motion always on. */

.dx .v2p.ins.irv { max-width: none; padding-bottom: 32px; }
.dx .irv :focus-visible { outline: none; }
.dx .irv .btn:focus-visible { outline: none; background: var(--surface-hover-2); }
.dx .irv .btn .v2i { color: var(--ink-3); }
.dx .irv-sep { padding: 0 8px; color: var(--ink-4); }
.dx .irv-v { margin-left: 8px; font: 500 11.5px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.dx .irv-quiet { margin: 4px 0; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.dx .irv-load { margin-top: 32px; }

/* ---------------------------------------------------------------- the header: name, lens, actions, progress */
.dx .irv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 32px; }
.dx .irv-head-l { min-width: 0; }
.dx .irv-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 0; font: 600 11.5px/16px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.dx .irv-deal { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.dx .irv-swatch { display: block; width: 10px; height: 10px; border-radius: 3px; background: var(--deal-teal); }
.dx .irv-h1 { margin: 10px 0 0; font: 600 30px/38px var(--font-doc); letter-spacing: -.01em; color: var(--ink-1); overflow-wrap: anywhere; }
.dx .irv-lens { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.dx .irv-lp {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; max-width: 360px; padding: 0 12px; border: 0; border-radius: 9px;
  background: var(--surface-card); box-shadow: var(--e1); color: var(--ink-1); font: 400 13px/1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: background .15s;
}
.dx .irv-lp:hover, .dx .irv-lp:focus-visible, .dx .irv-lp[aria-expanded="true"] { background: var(--surface-hover); }
.dx .irv-lp-k { color: var(--ink-3); }
.dx .irv-lp-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.dx .irv-lp.is-none .irv-lp-v { font-weight: 500; color: var(--ins-partly); }
.dx .irv-lp .v2i { color: var(--ink-4); flex: none; }
.dx .irv-head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.dx .irv-acts { display: flex; align-items: center; gap: 8px; }
.dx .irv-ib {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background .15s, color .15s;
}
.dx .irv-ib:hover, .dx .irv-ib:focus-visible, .dx .irv-ib[aria-expanded="true"] { background: var(--surface-hover); color: var(--ink-1); }
.dx .irv-ib.is-sunk { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-sunken); }
.dx .irv-ib.is-sunk:hover, .dx .irv-ib.is-sunk:focus-visible { background: var(--surface-hover-2); }
.dx .irv-ib:disabled { opacity: .4; cursor: default; }
.dx .irv-up { transform: rotate(180deg); }
.dx .irv-prog { width: 264px; }
.dx .irv-prog-l { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-3); white-space: nowrap; }
.dx .irv-prog-n { font: 600 20px/28px var(--font-ui); font-variant-numeric: tabular-nums; color: var(--ink-1); }
.dx .irv-prog-r { margin-left: auto; font-size: 12.5px; }
.dx .irv-prog-m { margin: 8px 0 0; font-size: 12.5px; line-height: 18px; color: var(--ink-3); }
.dx .irv-pbar { position: relative; display: block; height: 6px; margin-top: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.dx .irv-pbar i { display: block; height: 100%; border-radius: 999px; background: var(--ins-meets-glyph); transition: width .5s var(--ins-ease, ease); }
.dx .irv-pbar.is-moving i { background: linear-gradient(90deg, var(--ins-info-glyph), color-mix(in srgb, var(--ins-info-glyph) 45%, var(--surface-card)), var(--ins-info-glyph)); background-size: 200% 100%; animation: irvMove 1.6s linear infinite; }
@keyframes irvMove { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- the views (tabs) and the filters */
.dx .irv-bar { display: flex; align-items: flex-end; gap: 24px; margin-top: 24px; border-bottom: 1px solid var(--line-2); }
.dx .irv-tabs { display: flex; align-items: flex-end; gap: 28px; }
.dx .irv-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-bottom: -1px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--ink-3); font: 400 14px/1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: color .15s, border-color .15s;
}
.dx .irv-tab:hover, .dx .irv-tab:focus-visible { color: var(--ink-1); }
.dx .irv-tab.is-on { color: var(--ink-1); font-weight: 600; border-bottom-color: var(--ink-1); }
.dx .irv-tab .v2i { color: currentColor; }
.dx .irv-tab-n { font-size: 12px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dx .irv-flt { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-bottom: 8px; min-width: 0; }
.dx .irv-fb {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; max-width: 220px; padding: 0 10px 0 12px; border: 0; border-radius: 9px;
  background: var(--surface-card); box-shadow: var(--e1); color: var(--ink-1); font: 500 13px/1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: background .15s;
}
.dx .irv-fb:hover, .dx .irv-fb:focus-visible, .dx .irv-fb[aria-expanded="true"] { background: var(--surface-hover); }
.dx .irv-fb.is-on { background: var(--surface-sunken); box-shadow: none; }
.dx .irv-fb-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.dx .irv-fb .v2i { flex: none; color: var(--ink-4); }
.dx .irv-find { display: flex; align-items: center; gap: 8px; width: 260px; height: 36px; box-sizing: border-box; padding: 0 12px; border-radius: 10px; background: var(--surface-card); box-shadow: var(--e1); color: var(--ink-4); }
.dx .irv-find:focus-within { background: var(--surface-hover); }
.dx .irv-find input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink-1); font: 400 13px/1 var(--font-ui); }
.dx .irv-find input:focus { outline: none; }
.dx .irv-find input::placeholder { color: var(--ink-3); }

/* ---------------------------------------------------------------- the states: a tile each (a pale tint, a shape, never a solid block) */
.dx .irv-tile, .irv-pop .irv-tile {
  display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; box-sizing: border-box; border-radius: 6px; font: 700 12px/1 var(--font-ui);
}
.dx .irv-tile.is-short { background: var(--ins-short-soft); color: var(--ins-short-glyph); }
.dx .irv-tile.is-partly { background: linear-gradient(135deg, color-mix(in srgb, var(--ins-partly-glyph) 60%, var(--surface-card)) 50%, var(--ins-partly-soft) 50%); }
.dx .irv-tile.is-eye { background: var(--ins-eye-soft); color: var(--ins-eye-glyph); }
.dx .irv-tile.is-absent { border: 1.5px dashed var(--ins-absent-glyph); background: var(--ins-absent-soft); }
.dx .irv-tile.is-meets { background: var(--ins-meets-soft); color: var(--ins-meets-glyph); }
.dx .irv-tile.is-na { background: var(--ins-na-soft); color: var(--ins-na-glyph); }
.dx .irv-tile.is-info { background: var(--ins-info-soft); color: var(--ins-info-glyph); }
.dx .irv-tile .v2i { width: 12px; height: 12px; }

/* ---------------------------------------------------------------- counts that are filters */
.dx .irv-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.dx .irv-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 8px; border: 1px solid transparent; border-radius: 999px; background: var(--surface-card);
  color: var(--ink-2); font: 400 13px/1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s;
}
.dx .irv-chip .irv-tile { width: 18px; height: 18px; border-radius: 5px; font-size: 10.5px; }
.dx .irv-chip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dx .irv-chip:disabled { cursor: default; opacity: .55; }
.dx .irv-chip.is-short { background: var(--ins-short-soft); color: var(--ins-short); }
.dx .irv-chip.is-partly { background: var(--ins-partly-soft); color: var(--ins-partly); }
.dx .irv-chip.is-absent { background: var(--ins-absent-soft); color: var(--ins-absent); }
.dx .irv-chip.is-eye { background: var(--ins-eye-soft); color: var(--ins-eye); }
.dx .irv-chip.is-meets { background: var(--ins-meets-soft); color: var(--ins-meets); }
.dx .irv-chip.is-na { background: var(--ins-na-soft); color: var(--ins-na); }
.dx .irv-chip.is-changed { background: var(--ins-info-soft); color: var(--ins-info); }
.dx .irv-chip.is-na .irv-tile { background: var(--surface-card); }
/* pressed: a slightly deeper tint and ink text - never a solid block, never a ring */
.dx .irv-chip.is-short:hover:not(:disabled), .dx .irv-chip.is-short.is-on { background: color-mix(in srgb, var(--ins-short-glyph) 24%, var(--surface-card)); }
.dx .irv-chip.is-partly:hover:not(:disabled), .dx .irv-chip.is-partly.is-on { background: color-mix(in srgb, var(--ins-partly-glyph) 24%, var(--surface-card)); }
.dx .irv-chip.is-absent:hover:not(:disabled), .dx .irv-chip.is-absent.is-on { background: color-mix(in srgb, var(--ins-absent-glyph) 24%, var(--surface-card)); }
.dx .irv-chip.is-eye:hover:not(:disabled), .dx .irv-chip.is-eye.is-on { background: color-mix(in srgb, var(--ins-eye-glyph) 24%, var(--surface-card)); }
.dx .irv-chip.is-meets:hover:not(:disabled), .dx .irv-chip.is-meets.is-on { background: color-mix(in srgb, var(--ins-meets-glyph) 24%, var(--surface-card)); }
.dx .irv-chip.is-na:hover:not(:disabled), .dx .irv-chip.is-na.is-on { background: color-mix(in srgb, var(--ins-na-glyph) 24%, var(--surface-card)); }
.dx .irv-chip.is-changed:hover:not(:disabled), .dx .irv-chip.is-changed.is-on { background: color-mix(in srgb, var(--ins-info-glyph) 24%, var(--surface-card)); }
.dx .irv-chip.is-on { color: var(--ink-1); }
.dx .irv-chip:focus-visible { filter: brightness(.97); }
.dx .irv-hint { margin-left: auto; font-size: 12.5px; line-height: 18px; color: var(--ink-3); }

/* ---------------------------------------------------------------- the split: the work and the pane, never one over the other */
.dx .irv-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 20px; }
.dx .irv-split.has-pane { grid-template-columns: minmax(0, 1fr) 520px; }
.dx .irv-work { min-width: 0; }
.dx .irv-legacy { padding: 16px 20px; border: 1px solid var(--line-1); border-radius: var(--radius-lg, 14px); background: var(--surface-card); box-shadow: var(--e2); }
.dx .ins-cell.is-out { display: block; width: 22px; height: 22px; margin: 0 auto; border-radius: 6px; background: var(--surface-sunken); opacity: .5; }

/* ---------------------------------------------------------------- the queue */
.dx .irv-q { position: relative; border: 1px solid var(--line-1); border-radius: var(--radius-lg, 14px); background: var(--surface-card); box-shadow: var(--e2); overflow: clip; }
.dx .irv-qh { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line-1); }
.dx .irv-qh-sp { flex: 1; }
.dx .irv-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 11px; background: var(--surface-sunken); }
.dx .irv-seg-b {
  display: inline-flex; align-items: center; gap: 10px; height: 28px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3);
  font: 400 12.5px/1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s;
}
.dx .irv-seg-b b { font-weight: 500; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dx .irv-seg-b:hover, .dx .irv-seg-b:focus-visible { color: var(--ink-1); }
.dx .irv-seg-b.is-on { background: var(--surface-card); color: var(--ink-1); font-weight: 600; box-shadow: var(--e1); }
.dx .irv-qb {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2);
  font: 500 13px/1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s;
}
.dx .irv-qb:hover, .dx .irv-qb:focus-visible, .dx .irv-qb[aria-expanded="true"], .dx .irv-qb.is-on { background: var(--surface-hover); color: var(--ink-1); }
.dx .irv-qb .v2i { flex: none; color: var(--ink-3); }
.dx .irv-qb.is-quiet { color: var(--ink-2); font-weight: 400; }
.dx .irv-qb-n { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* the select box: a filled square (no border), the brand once it is chosen */
.dx .irv-cb {
  position: relative; display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: var(--on-brand); cursor: pointer;
}
.dx .irv-cb::before { content: ""; position: absolute; inset: 4px; border-radius: 5px; background: var(--line-2); transition: background .15s; }
.dx .irv-cb:hover::before, .dx .irv-cb:focus-visible::before { background: var(--line-3); }
.dx .irv-cb.is-on::before { background: var(--brand); }
.dx .irv-cb.is-some::before { background: var(--brand-soft-2); }
.dx .irv-cb .v2i, .dx .irv-cb i { position: relative; }
.dx .irv-cb i { display: block; width: 8px; height: 2px; border-radius: 2px; background: var(--brand); }
.dx .irv-list { position: relative; }
.dx .irv-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 24px; text-align: center; }
.dx .irv-empty b { font: 600 15px/22px var(--font-ui); color: var(--ink-1); }

/* a region: one rule (or one document), a warm header (common region), its rows */
.dx .irv-reg { animation: irvRise .32s var(--ins-ease, ease) both; }
@keyframes irvRise { from { opacity: 0; transform: translateY(4px); } }
.dx .irv-rh { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 24px; padding: 16px 20px 16px 58px; border-bottom: 1px solid var(--line-1); background: var(--surface-pane); }
.dx .irv-rh-l { min-width: 0; }
.dx .irv-rh-r1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 32px; }
.dx .irv-rtag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--surface-sunken); color: var(--ink-2); font: 500 12px/1 var(--font-mono); white-space: nowrap; }
.dx .irv-rh-topic { font: 600 11.5px/16px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
/* the rule's numbers stand at the header's right: its spread and count over the person and Sign off */
.dx .irv-rh-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 4px; }
.dx .irv-rh-sp, .dx .irv-rh-who { display: flex; align-items: center; gap: 12px; }
.dx .irv-rh-n { font-size: 13px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dx .irv-rh-q { max-width: 680px; margin: 8px 0 0; font: 600 16px/24px var(--font-doc); color: var(--ink-1); }
.dx .irv-rh-q .ins-val { color: var(--brand-ink); border-bottom: 1.5px dotted var(--brand); }
.dx .irv-rh.is-doc .irv-rh-q { display: flex; align-items: baseline; }
.dx .irv-dist { display: flex; gap: 2px; width: 112px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--line-1); }
.dx .irv-dist i { display: block; height: 100%; min-width: 3px; }
.dx .irv-dist .is-short { background: var(--ins-short-glyph); }
.dx .irv-dist .is-partly { background: var(--ins-partly-glyph); }
.dx .irv-dist .is-eye { background: var(--ins-eye-glyph); }
.dx .irv-dist .is-absent { background: var(--ins-absent-glyph); }
.dx .irv-dist .is-meets { background: var(--ins-meets-glyph); }
.dx .irv-dist .is-na { background: var(--ins-na-glyph); }
.dx .irv-who { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 2px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 400 13px/1 var(--font-ui); white-space: nowrap; cursor: pointer; }
.dx .irv-who:hover, .dx .irv-who:focus-visible { background: var(--surface-hover); }
.dx .irv-av { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-sunken); color: var(--ink-2); font: 600 11px/1 var(--font-ui); letter-spacing: .02em; }
.dx .irv-av.is-sm { width: 24px; height: 24px; font-size: 10px; }
.dx .irv-signed { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--ins-meets-soft); color: var(--ins-meets); font: 500 12.5px/1 var(--font-ui); white-space: nowrap; cursor: pointer; }
.dx .irv-signed:hover, .dx .irv-signed:focus-visible { background: color-mix(in srgb, var(--ins-meets-glyph) 24%, var(--surface-card)); }

/* a row: a line people act on (68 px) - its box, its state, its document, the reading, the clause, the decision */
.dx .irv-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 120px; align-items: center; gap: 14px; min-height: 68px; padding: 6px 20px; border-bottom: 1px solid var(--line-1); transition: background .15s; }
.dx .irv-row:hover { background: var(--surface-hover); }
/* the keyboard on a row: its fill deepens (never a ring) */
.dx .irv-row:not(.is-cur):has(.irv-row-main:focus-visible) { background: var(--surface-hover-2); }
.dx .irv-row.is-sel { background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface-card)); }
.dx .irv-row.is-cur { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.dx .irv-row-main {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 18px; min-width: 0; min-height: 56px; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.dx .irv-row-m { display: flex; flex-direction: column; min-width: 0; }
.dx .irv-row-n { display: flex; align-items: baseline; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-1); white-space: nowrap; }
.dx .irv-row-dn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dx .irv-row-r { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.dx .irv-row.is-done .irv-row-n, .dx .irv-row.is-done .irv-row-r { color: var(--ink-3); }
.dx .irv-row.is-done .irv-row-main .irv-tile { opacity: .45; }
.dx .irv-flag { margin-left: 8px; padding: 2px 6px; border-radius: 5px; background: var(--ins-info-soft); color: var(--ins-info); font: 500 11px/14px var(--font-ui); }
.dx .irv-cl { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--surface-sunken); color: var(--ink-2); font: 500 12px/1 var(--font-mono); white-space: nowrap; }
.dx .irv-row.is-cur .irv-cl { background: var(--surface-card); }
.dx .irv-dchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dx .irv-dchip { display: inline-flex; align-items: center; max-width: 180px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--surface-sunken); color: var(--ink-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx .irv-dc { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-4); white-space: nowrap; }
.dx .irv-dc.is-now { color: var(--brand-ink); font-weight: 500; }
.dx .irv-dc.is-all { height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-1); font: 500 13px/1 var(--font-ui); cursor: pointer; }
.dx .irv-dc.is-all:hover, .dx .irv-dc.is-all:focus-visible { background: var(--surface-hover-2); }
.dx .irv-dp { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--font-ui); white-space: nowrap; }
.dx .irv-dp.is-problem { background: var(--ins-short-soft); color: var(--ins-short); }
.dx .irv-dp.is-fine { background: var(--ins-meets-soft); color: var(--ins-meets); }
.dx .irv-dp.is-na, .dx .irv-dp.is-note { background: var(--ins-na-soft); color: var(--ins-na); }
.dx .irv-more {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; width: 100%; min-height: 48px; padding: 12px 20px 12px 78px; border: 0; border-bottom: 1px solid var(--line-1);
  background: none; color: var(--ink-1); font: 500 13px/20px var(--font-ui); text-align: left; cursor: pointer;
}
.dx .irv-more:hover, .dx .irv-more:focus-visible { background: var(--surface-hover); }
.dx .irv-more .v2i { color: var(--ink-3); }
.dx .irv-more-m { font-weight: 400; color: var(--ink-3); }
.dx .irv-more-m .irv-sep { padding: 0 6px 0 0; }
.dx .irv-more.is-tucked { color: var(--ink-3); font-weight: 400; }
.dx .irv-peek { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 4px 24px 18px 78px; border-bottom: 1px solid var(--line-1); background: var(--surface-pane); animation: irvRise .2s var(--ins-ease, ease) both; }
.dx .irv-peek-no { font: 500 12px/24px var(--font-mono); color: var(--ink-3); }
.dx .irv-peek-t { margin: 0; font: 400 14px/24px var(--font-doc); color: var(--ink-2); }

/* the selection bar: floating over the queue's foot */
.dx .irv-selbar {
  position: sticky; bottom: 16px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 16px 16px; padding: 10px 12px 10px 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg, 14px); background: var(--surface-card); box-shadow: var(--e3); animation: irvRise .2s var(--ins-ease, ease) both;
}
.dx .irv-selbar-n { font: 600 13px/1 var(--font-ui); color: var(--ink-1); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dx .irv-selbar-g { display: inline-flex; align-items: center; gap: 6px; }
.dx .irv-selbar-g.is-quiet { margin-left: auto; gap: 2px; }
.dx .irv-sb {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 8px; border: 0; border-radius: 10px; background: var(--surface-sunken); color: var(--ink-1);
  font: 500 13px/1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: background .15s;
}
.dx .irv-sb .irv-tile { width: 20px; height: 20px; }
.dx .irv-sb:hover, .dx .irv-sb:focus-visible { background: var(--surface-hover-2); }

/* ---------------------------------------------------------------- the evidence pane: beside the work, its foot always at its bottom */
.dx .irv-pane { position: sticky; top: 16px; min-width: 0; }
.dx .irv-pn {
  display: flex; flex-direction: column; height: var(--irv-pn-fit, calc(100dvh - var(--modebar-h, 52px) - 40px)); min-height: 360px; max-height: 1000px; border: 1px solid var(--line-1);
  border-radius: var(--radius-lg, 14px); background: var(--surface-card); box-shadow: var(--e2); overflow: clip; container: irvpane / inline-size;
}
.dx .irv-pn.is-empty { align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
.dx .irv-pn-empty-t { margin: 0; font: 400 14px/22px var(--font-ui); color: var(--ink-3); }
.dx .irv-pn kbd, .dx .irv-dec kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 6px;
  background: var(--surface-card); color: var(--ink-3); font: 500 11px/1 var(--font-mono);
}
.dx .irv-pn-h { padding: 18px 20px 14px 24px; }
.dx .irv-pn-r1 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dx .irv-pn-back { display: none; margin-left: -8px; }
.dx .irv-pn-t { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 16px/24px var(--font-ui); color: var(--ink-1); }
.dx .irv-vtag { display: inline-flex; align-items: center; flex: none; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--sev-low-soft); color: var(--sev-low); font: 600 11.5px/1 var(--font-ui); white-space: nowrap; }
.dx .irv-vtag .irv-sep { padding: 0 4px; color: inherit; opacity: .6; }
.dx .irv-vtag.is-signed { background: var(--ins-meets-soft); color: var(--ins-meets); }
.dx .irv-pn-nav { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.dx .irv-pn-pos { margin-right: 6px; font-size: 13px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dx .irv-pn-facts { display: flex; gap: 16px; margin: 6px 0 0; overflow: hidden; font-size: 13px; line-height: 20px; color: var(--ink-3); white-space: nowrap; }
.dx .irv-pn-par { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dx .irv-pn-tabs { display: flex; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--line-1); }
.dx .irv-pt {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; margin-bottom: -1px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--ink-3); font: 400 13.5px/1 var(--font-ui); cursor: pointer;
}
.dx .irv-pt:hover, .dx .irv-pt:focus-visible { color: var(--ink-1); }
.dx .irv-pt.is-on { color: var(--ink-1); font-weight: 600; border-bottom-color: var(--ink-1); }
.dx .irv-pt b { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.dx .irv-pn-b { display: flex; flex-direction: column; gap: 16px; flex: 1; min-height: 0; padding: 20px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.dx .irv-pn-eb { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 11.5px/16px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.dx .irv-pn-q { margin: -8px 0 0; font: 600 17px/26px var(--font-doc); color: var(--ink-1); }
.dx .irv-pn-q .ins-val { border-bottom: 1.5px dotted var(--ink-3); }

/* the verdict card: the reading's state on its pale tint, why, the figure against the rule */
.dx .irv-verdict { flex: none; padding: 14px 16px 12px; border-radius: var(--radius-md, 10px); background: var(--ins-na-soft); }
.dx .irv-verdict.is-short { background: var(--ins-short-soft); }
.dx .irv-verdict.is-partly { background: var(--ins-partly-soft); }
.dx .irv-verdict.is-eye { background: var(--ins-eye-soft); }
.dx .irv-verdict.is-absent { background: var(--ins-absent-soft); }
.dx .irv-verdict.is-meets { background: var(--ins-meets-soft); }
.dx .irv-verdict-r1 { display: flex; align-items: center; gap: 12px; }
.dx .irv-verdict .irv-tile { background: var(--surface-card); }
.dx .irv-verdict-w { font: 600 14px/20px var(--font-ui); color: var(--ink-1); }
.dx .irv-verdict.is-short .irv-verdict-w { color: var(--ins-short); }
.dx .irv-verdict.is-partly .irv-verdict-w { color: var(--ins-partly); }
.dx .irv-verdict.is-eye .irv-verdict-w { color: var(--ins-eye); }
.dx .irv-verdict.is-absent .irv-verdict-w { color: var(--ins-absent); }
.dx .irv-verdict.is-meets .irv-verdict-w { color: var(--ins-meets); }
.dx .irv-verdict-m { margin-left: auto; min-width: 0; font-size: 13px; line-height: 18px; color: var(--ink-2); text-align: right; }
.dx .irv-verdict-d { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--ink-4) 25%, transparent); font-size: 13px; line-height: 20px; color: var(--ink-2); }
.dx .irv-verdict-d .irv-tile { width: 18px; height: 18px; font-size: 10px; }
.dx .irv-verdict-d .irv-sep { padding: 0 2px; }
.dx .irv-scale { margin-top: 12px; }
.dx .irv-scale-ls { position: relative; height: 26px; }
.dx .irv-scale.is-stacked .irv-scale-ls { height: 46px; }
.dx .irv-sl { position: absolute; bottom: 4px; font: 600 13px/18px var(--font-ui); white-space: nowrap; }
.dx .irv-scale.is-stacked .irv-sl.is-found { bottom: 24px; }
.dx .irv-sl.is-rule { color: var(--ins-meets); }
.dx .irv-sl.is-found { color: var(--ink-1); }
.dx .irv-sl.is-found.is-short { color: var(--ins-short); }
.dx .irv-sl.is-found.is-partly { color: var(--ins-partly); }
.dx .irv-sl.is-found.is-meets { color: var(--ins-meets); }
.dx .irv-track { position: relative; height: 8px; margin: 6px 0 8px; border-radius: 999px; background: var(--surface-card); }
.dx .irv-band { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, var(--ins-meets-glyph) 34%, var(--ins-meets-soft)); }
.dx .irv-mk { position: absolute; top: -6px; width: 2px; height: 20px; margin-left: -1px; border-radius: 2px; background: var(--ins-meets-glyph); }
.dx .irv-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--ins-na-glyph); box-shadow: 0 0 0 3px var(--surface-card); }
.dx .irv-dot.is-short { background: var(--ins-short-glyph); }
.dx .irv-dot.is-partly { background: var(--ins-partly-glyph); }
.dx .irv-dot.is-meets { background: var(--ins-meets-glyph); }
.dx .irv-dot.is-eye { background: var(--ins-eye-glyph); }
.dx .irv-ticks { position: relative; height: 16px; font-size: 11.5px; line-height: 16px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dx .irv-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.dx .irv-ticks span.is-first { transform: none; }
.dx .irv-ticks span.is-last { transform: translateX(-100%); }

/* the clause in its document */
.dx .irv-cl-sec { display: flex; flex-direction: column; gap: 8px; }
.dx .irv-lab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dx .irv-lab-t { font: 600 11.5px/16px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.dx .irv-link { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; margin-right: -8px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font: 500 12.5px/1 var(--font-ui); cursor: pointer; }
.dx .irv-link:hover, .dx .irv-link:focus-visible { background: var(--surface-hover); color: var(--ink-1); }
.dx .irv-link .v2i { color: var(--ink-3); }
.dx .irv-clause { padding: 12px 16px; border: 1px solid var(--line-1); border-radius: var(--radius-md, 10px); background: var(--surface-pane); font: 400 14.5px/24px var(--font-doc); color: var(--ink-2); }
.dx .irv-cl-ln { display: grid; grid-template-columns: 52px minmax(0, 1fr); }
.dx .irv-cl-ln + .irv-cl-ln { margin-top: 6px; }
.dx .irv-cl-no { font: 500 12px/24px var(--font-mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 6px; }
.dx .irv-cl-ln.is-dim .irv-cl-tx { color: var(--ink-3); }
.dx .irv-cl-ln.is-this .irv-cl-tx { color: var(--ink-1); }
.dx .irv-cl-ln.is-lit .irv-cl-tx { background: color-mix(in srgb, var(--ins-mark) 45%, transparent); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.dx .irv-clause mark { padding: 2px 0; background: var(--ins-mark); color: var(--ink-1); box-shadow: -4px 0 0 var(--ins-mark), 4px 0 0 var(--ins-mark); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.dx .irv-def { border-bottom: 1.5px dotted var(--ink-3); cursor: help; }
.dx .irv-clause.is-loading { display: grid; gap: 10px; }
.dx .irv-clause.is-loading i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-hover) 0%, var(--surface-hover-2) 50%, var(--surface-hover) 100%); background-size: 200% 100%; animation: insShim 1.4s linear infinite; }
.dx .irv-clause.is-loading i:nth-child(2) { width: 82%; }
.dx .irv-clause.is-loading i:nth-child(3) { width: 64%; }
.dx .irv-also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--ink-3); }
.dx .irv-clchip { height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--surface-sunken); color: var(--ink-2); font: 500 12px/1 var(--font-mono); cursor: pointer; }
.dx .irv-clchip:hover, .dx .irv-clchip:focus-visible { background: var(--surface-hover-2); }
.dx .irv-reach-l { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.dx .irv-reach-l .v2i { color: var(--ink-4); margin-right: 2px; }
.dx .irv-reach-l .irv-sep { padding: 0 2px; }

/* the history of the line */
.dx .irv-hist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dx .irv-hist-i { padding: 0 0 12px; border-bottom: 1px solid var(--line-1); }
.dx .irv-hist-i.is-undone { opacity: .55; }
.dx .irv-hist-h { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 0; font-size: 13px; line-height: 26px; color: var(--ink-2); }
.dx .irv-hist-h .irv-sep { padding: 0; }
.dx .irv-hist-m, .dx .irv-hist-n { margin: 4px 0 0; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.dx .irv-hist-n { color: var(--ink-2); font-family: var(--font-doc); }

/* the whole document, inside the pane */
.dx .irv-docv { min-height: 200px; }
.dx .irv-docv .parsed-doc { font-size: 14px; }
.dx .irv-docv .irv-lit { background: color-mix(in srgb, var(--ins-mark) 70%, transparent); border-radius: 4px; transition: background .4s; }

/* the foot: the reach, the three decisions (46 px, never moving), the quieter actions, the note */
.dx .irv-pn-f { display: flex; flex-direction: column; gap: 10px; flex: none; padding: 14px 24px 16px; border-top: 1px solid var(--line-1); background: var(--surface-card); }
.dx .irv-reach { display: flex; flex-wrap: wrap; gap: 2px; width: max-content; max-width: 100%; box-sizing: border-box; padding: 3px; border-radius: 10px; background: var(--surface-sunken); }
.dx .irv-rb {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3);
  font: 400 12.5px/1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s;
}
.dx .irv-rb b { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dx .irv-rb:hover, .dx .irv-rb:focus-visible { color: var(--ink-1); }
.dx .irv-rb.is-on { background: var(--surface-card); color: var(--ink-1); font-weight: 600; box-shadow: var(--e1); }
.dx .irv-dec { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 10px; }
.dx .irv-db {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px; height: 46px; min-width: 0; padding: 0 12px; border: 0; border-radius: 11px;
  background: var(--surface-sunken); color: var(--ink-1); font: 500 14px/1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: background .15s;
}
.dx .irv-db > span:not(.irv-tile) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dx .irv-db kbd { margin-left: auto; flex: none; }
.dx .irv-db .irv-tile { background: var(--surface-card); }
.dx .irv-db:hover, .dx .irv-db:focus-visible { background: var(--surface-hover-2); }
.dx .irv-db.is-fine.is-on { background: color-mix(in srgb, var(--ins-meets-glyph) 26%, var(--surface-card)); }
.dx .irv-db.is-problem.is-on { background: color-mix(in srgb, var(--ins-short-glyph) 26%, var(--surface-card)); }
.dx .irv-db.is-na.is-on { background: color-mix(in srgb, var(--ins-na-glyph) 30%, var(--surface-card)); }
.dx .irv-db.is-on { font-weight: 600; }
.dx .irv-pn-acts { display: flex; flex-wrap: wrap; gap: 2px; margin-left: -10px; }
.dx .irv-note textarea {
  display: block; width: 100%; box-sizing: border-box; min-height: 36px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--surface-sunken); color: var(--ink-1);
  font: 400 13px/20px var(--font-ui); resize: vertical;
}
.dx .irv-note textarea:focus { outline: none; background: var(--surface-hover-2); }
.dx .irv-note textarea::placeholder { color: var(--ink-3); }

/* a narrower pane (440 px and less): the decisions keep their words whole - the keys printed on them step aside (F, P, N still work) */
@container irvpane (max-width: 480px) {
  .dx .irv-db { gap: 8px; padding: 0 10px; }
  .dx .irv-db kbd { display: none; }
  .dx .irv-pn-acts .irv-qb { padding: 0 8px; }
}

/* the Ask bar's place at the page's foot (stage 4 fills it) */
.dx .irv-foot { margin-top: 24px; }
.dx .irv-foot:empty { display: none; }

/* ---------------------------------------------------------------- the small searchable menus (Rule, Document, Person) */
.irv-pop { position: fixed; z-index: 90; display: flex; flex-direction: column; width: 360px; max-width: calc(100vw - 16px); max-height: 420px; padding: 6px; overflow: hidden; }
.irv-pop-q { flex: none; height: 36px; margin: 2px 2px 6px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--surface-sunken); color: var(--ink-1); font: 400 13px/1 var(--font-ui); }
.irv-pop-q:focus { outline: none; background: var(--surface-hover-2); }
.irv-pop-list { overflow-y: auto; }
.irv-pop .irv-pop-i { display: flex; align-items: center; gap: 10px; width: 100%; }
.irv-pop .irv-pop-i.is-on { background: var(--brand-soft); color: var(--brand-ink); }
.irv-pop .irv-pop-l { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.irv-pop .irv-rtag { display: inline-flex; align-items: center; flex: none; height: 20px; padding: 0 6px; border-radius: 5px; background: var(--surface-sunken); color: var(--ink-2); font: 500 11.5px/1 var(--font-mono); }
.irv-pop .irv-pop-n { margin-left: auto; flex: none; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.irv-pop-none { margin: 8px 12px; font-size: 13px; color: var(--ink-3); }
.ins-menu .irv-qb-n { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- narrower windows, then a phone (the queue is the page; the pane a sheet) */
@container main (max-width: 1280px) {
  .dx .irv-split.has-pane { grid-template-columns: minmax(0, 1fr) 440px; }
  .dx .irv-hint { display: none; }
}
@container main (max-width: 1080px) {
  .dx .irv-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dx .irv-head-r { flex-direction: row-reverse; align-items: flex-end; justify-content: space-between; }
  .dx .irv-bar { flex-wrap: wrap; }
  .dx .irv-flt { margin-left: 0; flex-wrap: wrap; }
  .dx .irv-split.has-pane { grid-template-columns: minmax(0, 1fr) 400px; }
  .dx .irv-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
}
@container main (max-width: 760px) {
  .dx .v2p.ins.irv { padding-left: 16px; padding-right: 16px; }
  .dx .irv-h1 { font-size: 24px; line-height: 30px; }
  .dx .irv-head-r { flex-direction: column; align-items: stretch; }
  .dx .irv-prog { width: auto; }
  .dx .irv-tabs { gap: 20px; overflow-x: auto; }
  .dx .irv-find { width: 100%; }
  .dx .irv-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .dx .irv-split.has-pane { grid-template-columns: minmax(0, 1fr); }
  .dx .irv-pane { display: none; }
  .dx .irv[data-sheet="1"] .irv-pane { display: block; position: fixed; inset: 0; z-index: 80; top: 0; }
  .dx .irv[data-sheet="1"] .irv-pn { height: 100dvh; max-height: none; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .dx .irv-pn-back { display: inline-grid; }
  .dx .irv-rh { padding-left: 20px; }
  .dx .irv-rh { grid-template-columns: minmax(0, 1fr); }
  .dx .irv-rh-stat { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 0; }
  .dx .irv-row { grid-template-columns: 24px minmax(0, 1fr); padding: 6px 16px; }
  .dx .irv-row > .irv-dc { grid-column: 2; justify-self: start; }
  .dx .irv-row-main { grid-template-columns: 22px minmax(0, 1fr); }
  .dx .irv-row-main > .irv-cl { display: none; }
  .dx .irv-more, .dx .irv-peek { padding-left: 20px; }
  .dx .irv-ib, .dx .irv-cb { width: 40px; height: 40px; }
  .dx .irv-cb::before { inset: 12px; }
  .dx .irv-dec { grid-template-columns: 1fr; }
}

/* a narrow pane (440 px and under): the decisions keep their words - their keys go to the tip and the shortcuts sheet */
@container irvpane (max-width: 500px) {
  .dx .irv-db kbd { display: none; }
  .dx .irv-db { gap: 8px; padding: 0 10px; }
  /* each decision as wide as its word, the room left shared out (auto tracks stretch): "Not applicable" and "Норма", "Проблема",
     "Неприменимо" all stay whole */
  .dx .irv-dec { grid-template-columns: auto auto auto; gap: 8px; }
  .dx .irv-rb { padding: 0 10px; }
}

/* the workspace's bare fields over components.css's framed field (.dx.dx :is(input…, textarea)): Find's own box is the field, and the
   note is a sunken well - neither is ringed by a hairline */
.dx.dx.dx .irv-find input[type="search"], .dx.dx.dx .irv-find input[type="search"]:focus {
  border: 0; background: none; box-shadow: none; border-radius: 0; padding: 0; height: 100%; outline: none;
}
.dx.dx.dx .irv-note textarea { border: 0; border-radius: 10px; background: var(--surface-sunken); box-shadow: none; }
.dx.dx.dx .irv-note textarea:focus { outline: none; box-shadow: none; background: var(--surface-hover-2); }
