/* Sentinel v2 - insight-views.css
   The review workspace's other views and its Export panel (the build spec, stage 6): the Table (v2/insight-table.js) and its card, the
   Documents (v2/insight-docs.js), the Requests (v2/insight-requests.js) and the Export panel (v2/insight-export.js). Loaded after
   insight-review.css, whose tiles, tags, pills, segments, select boxes and empty states these views reuse.
   THE SYSTEM (the plan's design system, ui2/foundation.css): an 8-point grid; rows people act on 56-68 px; buttons 36 (small 30); card
   padding 20-24; Source Serif to read (a document's name, a request, a clause), Inter to operate, Plex Mono for clause numbers and keys.
   Three depths: flat, raised (a hairline and --e2), floating (--e3 / --e4: the card, the panel).
   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; a cell
   still to decide wears a faint warm wash; the brand marks the current cell, the selection and the panel's one primary only. No ring,
   outline or halo round any button, even on keyboard focus: the fill changes instead. Motion always on. */

/* ================================================================ THE TABLE */
.dx .itb { --itb-c0: 260px; position: relative; border: 1px solid var(--line-1); border-radius: var(--radius-lg, 14px); background: var(--surface-card); box-shadow: var(--e2); overflow: clip; }
/* the scroll keeps a cell it brings into view clear of the sticky header (100), totals (56) and document column */
.dx .itb-scroll { max-height: calc(100dvh - var(--modebar-h, 52px) - 48px); overflow: auto; overscroll-behavior: contain; scroll-padding: 100px 0 56px var(--itb-c0); }
.dx .itb-scroll:focus { outline: none; }
/* the table as wide as its columns say (the first, then one per rule) - `max-content` measured the first column's header words and gave
   it the room the rules should have had (430 px of a 220 px column) - and never narrower than the card */
.dx .itb-t { width: max(100%, calc(var(--itb-c0) + var(--itb-cols, 0) * var(--itb-cw))); border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.dx .itb { --itb-cw: 176px; }
.dx .itb-col0 { width: var(--itb-c0); }
.dx .itb-colr { width: var(--itb-cw); }
.dx .itb :focus-visible { outline: none; }

/* the header: a column a rule, written across - R-tag, short name, the spread of its lines */
.dx .itb-t thead th { position: sticky; top: 0; z-index: 3; height: 100px; padding: 0; vertical-align: top; text-align: left; font-weight: 400; background: var(--surface-pane); border-bottom: 1px solid var(--line-2); }
.dx .itb-t thead th.itb-h0 { left: 0; z-index: 5; box-shadow: inset -1px 0 0 var(--line-2); }
.dx .itb-h0w { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100px; box-sizing: border-box; padding: 12px 12px 10px 20px; }
.dx .itb-eb { font: 600 11.5px/16px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.dx .itb-grp { height: 30px; margin-left: -10px; gap: 6px; }
.dx .itb-grp-k { font-weight: 400; color: var(--ink-3); }
.dx .itb-sorted { font-size: 12.5px; line-height: 18px; color: var(--ink-3); white-space: nowrap; }
.dx .itb-sorted .irv-sep { padding: 0 6px; }
.dx .itb-hw { display: flex; flex-direction: column; height: 100px; box-sizing: border-box; padding: 12px 8px 12px 12px; }
.dx .itb-t thead th.is-sorted { background: color-mix(in srgb, var(--surface-sunken) 70%, var(--surface-pane)); }
.dx .itb-ht { display: flex; align-items: center; gap: 6px; height: 24px; }
.dx .itb-ht .irv-rtag { height: 22px; }
.dx .itb-arrow { display: inline-grid; place-items: center; color: var(--ink-1); }
.dx .itb-arrow.is-up .v2i { transform: rotate(180deg); }
.dx .irv-ib.itb-hopen { width: 26px; height: 26px; margin-left: auto; border-radius: 7px; color: var(--ink-3); opacity: 0; transition: opacity .15s, background .15s; }
.dx .itb-t thead th:hover .itb-hopen, .dx .itb-hopen:focus-visible { opacity: 1; }
@media (hover: none) { .dx .irv-ib.itb-hopen { opacity: 1; } }
.dx .itb-hb { display: block; width: 100%; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--ink-1); font: 500 12.5px/17px var(--font-ui); text-align: left; cursor: pointer; }
.dx .itb-hn { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dx .itb-hv { color: var(--ink-3); white-space: nowrap; }
.dx .itb-hb:hover .itb-hn, .dx .itb-hb:focus-visible .itb-hn { color: var(--ink-1); text-decoration: underline dotted var(--ink-4); text-underline-offset: 3px; }
.dx .itb-bar, .dx .idc-bar { display: flex; gap: 2px; height: 6px; border-radius: 999px; overflow: hidden; background: var(--line-1); }
.dx .itb-bar { margin: auto 8px 0 0; flex: none; }
.dx .itb-bar i, .dx .idc-bar i { display: block; height: 100%; min-width: 3px; }
.dx :is(.itb-bar, .idc-bar) .is-short { background: var(--ins-short-glyph); }
.dx :is(.itb-bar, .idc-bar) .is-partly { background: var(--ins-partly-glyph); }
.dx :is(.itb-bar, .idc-bar) .is-eye { background: var(--ins-eye-glyph); }
.dx :is(.itb-bar, .idc-bar) .is-absent { background: var(--ins-absent-glyph); }
.dx :is(.itb-bar, .idc-bar) .is-meets { background: var(--ins-meets-glyph); }
.dx :is(.itb-bar, .idc-bar) .is-na { background: var(--ins-na-glyph); }

/* the bands (common region): the rows gathered, their count; a long band folds behind "Show n more" */
.dx .itb-band th { height: 36px; padding: 0; text-align: left; font-weight: 400; background: var(--surface-pane); border-bottom: 1px solid var(--line-1); }
.dx .itb-bandb, .dx .itb-moreb {
  position: sticky; left: 0; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 20px; border: 0; background: none;
  color: var(--ink-3); font: 400 13px/1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: color .15s;
}
.dx .itb-bandb b { font-weight: 600; color: var(--ink-1); }
.dx .itb-bandb:hover, .dx .itb-bandb:focus-visible { color: var(--ink-1); }
.dx .itb-bandb .v2i, .dx .itb-moreb .v2i { color: var(--ink-3); }
.dx .itb-more td { padding: 0; border-bottom: 1px solid var(--line-1); background: var(--surface-card); }
.dx .itb-moreb { height: 40px; color: var(--ink-1); font-weight: 500; }
.dx .itb-moreb:hover, .dx .itb-moreb:focus-visible { background: var(--surface-hover); }
.dx .itb-more-m { font-weight: 400; color: var(--ink-3); }

/* the rows: the document fixed at the left while the rules scroll */
.dx .itb-r > th, .dx .itb-r > td { height: 56px; padding: 0; vertical-align: middle; border-bottom: 1px solid var(--line-1); }
.dx .itb-r { animation: irvRise .32s var(--ins-ease, ease) both; }
.dx .itb-r > th.itb-d {
  position: sticky; left: 0; z-index: 2; padding: 0 12px 0 20px; text-align: left; font-weight: 400; background: var(--surface-card);
  box-shadow: inset -1px 0 0 var(--line-2), 8px 0 12px -10px color-mix(in srgb, var(--ink-1) 22%, transparent);
}
.dx .itb-db { display: flex; align-items: baseline; gap: 6px; max-width: 100%; padding: 0; border: 0; background: none; color: var(--ink-1); font: 500 14px/20px var(--font-ui); text-align: left; cursor: pointer; }
.dx .itb-db:hover .itb-nm, .dx .itb-db:focus-visible .itb-nm { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.dx .itb-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx .itb-db .irv-flag { flex: none; margin-left: 2px; }
.dx .itb-sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; line-height: 18px; color: var(--ink-3); }
.dx .itb-sub .irv-sep { padding: 0 5px; }

/* the cells: the reading's tile, a few words, the clause - or the decision and who made it */
.dx .itb-c { background: var(--surface-card); transition: background .15s, box-shadow .15s; }
.dx .itb-c.is-wait { background: color-mix(in srgb, var(--ins-partly-glyph) 7%, var(--surface-card)); }
.dx .itb-c.is-cur { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.dx .itb-cb {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); grid-template-rows: 18px 22px; column-gap: 8px; row-gap: 2px; align-content: center;
  width: 100%; height: 55px; padding: 0 6px 0 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s;
}
.dx .itb-cb:hover { background: var(--surface-hover); }
.dx .itb-cb:focus-visible { background: var(--surface-hover-2); }
.dx .itb-c.is-cur .itb-cb:hover, .dx .itb-c.is-cur .itb-cb:focus-visible { background: transparent; }
.dx .itb-cb .irv-tile { width: 18px; height: 18px; border-radius: 5px; font-size: 10.5px; }
.dx .itb-w { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 18px; color: var(--ink-1); }
.dx .itb-w2 { grid-column: 2; display: flex; align-items: center; gap: 4px; min-width: 0; height: 22px; }
.dx .itb-cl { font: 500 12px/20px var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.dx .itb-c.is-cur .itb-cl { color: var(--brand-ink); }
.dx .irv-dp.itb-dp { height: 20px; padding: 0 7px; font-size: 12px; }
.dx .irv-av.itb-av { width: 20px; height: 20px; font-size: 9.5px; }
.dx .itb-c.is-done .itb-w { color: var(--ink-2); }
.dx .itb-nil { display: block; width: 16px; height: 2px; margin-left: 12px; border-radius: 2px; background: var(--line-2); }

/* the totals: at the foot of each column, what its tiles count */
.dx .itb-t tfoot th, .dx .itb-t tfoot td { position: sticky; bottom: 0; z-index: 3; height: 56px; padding: 0 6px 0 12px; vertical-align: middle; text-align: left; font-weight: 400; background: var(--surface-pane); box-shadow: inset 0 1px 0 var(--line-2); }
.dx .itb-t tfoot th.itb-t0 { left: 0; z-index: 4; padding: 0 12px 0 20px; box-shadow: inset -1px 0 0 var(--line-2), inset 0 1px 0 var(--line-2); }
.dx .itb-t0 .itb-eb, .dx .itb-t0m { display: block; }
.dx .itb-t0m { font-size: 12.5px; line-height: 18px; color: var(--ink-3); white-space: nowrap; }
.dx .itb-ti { display: inline-flex; align-items: center; gap: 5px; margin: 2px 10px 2px 0; font: 600 12.5px/1 var(--font-ui); color: var(--ink-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dx .itb-ti .irv-tile { width: 16px; height: 16px; border-radius: 4px; font-size: 9.5px; }
.dx .itb-empty-w { padding: 8px 0; }

/* the card: a cell's clause, found against the rule, the reach, the three decisions - beside the cell, never over the grid's work */
.dx .itb-hov {
  position: fixed; z-index: 70; width: 460px; max-width: calc(100vw - 16px); box-sizing: border-box; padding: 18px 22px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg, 14px); background: var(--surface-card); box-shadow: var(--e3);
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .16s var(--ins-ease, ease), transform .16s var(--ins-ease, ease);
}
.dx .itb-hov.is-above { transform: translateY(-4px); }
.dx .itb-hov.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dx .itb-hov :focus-visible { outline: none; }
.dx .itb-caret { position: absolute; top: -7px; width: 12px; height: 12px; background: var(--surface-card); border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); transform: rotate(45deg); }
.dx .itb-hov.is-above .itb-caret { top: auto; bottom: -7px; transform: rotate(225deg); }
.dx .itb-hh { display: flex; align-items: center; gap: 10px; min-height: 24px; }
.dx .itb-hdn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.dx .itb-hh .irv-cl { flex: none; }
.dx .itb-hs { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; margin: 12px 0 0; font: 400 14.5px/23px var(--font-doc); color: var(--ink-2); }
.dx .itb-hs.is-none { display: block; font-family: var(--font-ui); font-size: 13px; color: var(--ink-3); }
.dx .itb-hs mark { padding: 1px 0; background: var(--ins-mark); color: var(--ink-1); box-shadow: -3px 0 0 var(--ins-mark), 3px 0 0 var(--ins-mark); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.dx .itb-hs-load { margin-top: 12px; padding: 10px 12px; }
.dx .itb-found { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 14px 0 0; font-size: 13px; line-height: 22px; color: var(--ink-2); }
.dx .itb-found .irv-tile { width: 18px; height: 18px; border-radius: 5px; font-size: 10.5px; }
.dx .itb-found .irv-sep { padding: 0 2px; }
.dx .itb-found b { font-weight: 600; color: var(--ink-1); }
.dx .itb-found b.is-short { color: var(--ins-short); }
.dx .itb-found b.is-partly { color: var(--ins-partly); }
.dx .itb-found b.is-eye { color: var(--ins-eye); }
.dx .itb-found b.is-absent { color: var(--ins-absent); }
.dx .itb-found b.is-meets { color: var(--ins-meets); }
.dx .itb-rl { color: var(--ins-meets); font-weight: 500; }
.dx .itb-mini { position: relative; height: 6px; margin: 12px 4px 0; border-radius: 999px; background: var(--line-1); }
.dx .itb-mini-ok { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, var(--ins-meets-glyph) 34%, var(--ins-meets-soft)); }
.dx .itb-mini-mk { position: absolute; top: -5px; width: 2px; height: 16px; margin-left: -1px; border-radius: 2px; background: var(--ins-meets-glyph); }
.dx .itb-mini-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ins-na-glyph); box-shadow: 0 0 0 2px var(--surface-card); }
.dx .itb-mini-dot.is-short { background: var(--ins-short-glyph); }
.dx .itb-mini-dot.is-partly { background: var(--ins-partly-glyph); }
.dx .itb-mini-dot.is-meets { background: var(--ins-meets-glyph); }
.dx .itb-reach { margin-top: 14px; }
.dx .itb-hdec { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-1); }
.dx .itb-hdb {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 8px; border: 0; border-radius: 9px; background: var(--surface-sunken); color: var(--ink-1);
  font: 500 13px/1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: background .15s;
}
.dx .itb-hdb .irv-tile { width: 20px; height: 20px; background: var(--surface-card); }
.dx .itb-hdb:hover, .dx .itb-hdb:focus-visible { background: var(--surface-hover-2); }
.dx .itb-hdb.is-fine.is-on { background: color-mix(in srgb, var(--ins-meets-glyph) 26%, var(--surface-card)); }
.dx .itb-hdb.is-problem.is-on { background: color-mix(in srgb, var(--ins-short-glyph) 26%, var(--surface-card)); }
.dx .itb-hdb.is-na.is-on { background: color-mix(in srgb, var(--ins-na-glyph) 30%, var(--surface-card)); }
.dx .itb-hov kbd, .dx .irq kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 5px;
  background: var(--surface-card); color: var(--ink-3); font: 500 11px/1 var(--font-mono);
}
.dx .itb-hf kbd, .dx .irq kbd { background: var(--surface-sunken); }
.dx .itb-hf { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; }
.dx .itb-hopenp { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; margin-left: -8px; border: 0; border-radius: 7px; background: none; color: var(--ink-1); font: 500 13px/1 var(--font-ui); white-space: nowrap; cursor: pointer; }
.dx .itb-hopenp:hover, .dx .itb-hopenp:focus-visible { background: var(--surface-hover); }
.dx .itb-hopenp .v2i { color: var(--ink-3); }

/* ================================================================ THE DOCUMENTS: a card a document */
.dx .idc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.dx .idc-card {
  display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px 22px 14px; border: 1px solid var(--line-1); border-radius: var(--radius-lg, 14px);
  background: var(--surface-card); box-shadow: var(--e2); animation: irvRise .32s var(--ins-ease, ease) both;
}
.dx .idc-card.is-gone { opacity: .7; }
.dx .idc-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; margin: -6px -8px 0; padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.dx .idc-head:hover, .dx .idc-head:focus-visible { background: var(--surface-hover); }
.dx .idc-eb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 11.5px/16px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.dx .idc-eb .irv-flag { margin-left: 0; letter-spacing: 0; text-transform: none; }
.dx .idc-tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; min-width: 0; }
.dx .idc-t { min-width: 0; font: 600 17px/24px var(--font-doc); color: var(--ink-1); overflow-wrap: anywhere; }
.dx .idc-par { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.dx .idc-facts { font-size: 13px; line-height: 20px; color: var(--ink-3); }
.dx .idc-facts .irv-sep, .dx .idc-mcs .irv-sep { padding: 0 6px; }
.dx .idc-state { display: flex; flex-direction: column; gap: 10px; }
.dx .idc-bar { height: 8px; }
.dx .idc-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.dx .idc-ct { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--font-ui); color: var(--ink-1); font-variant-numeric: tabular-nums; }
.dx .idc-ct .irv-tile { width: 18px; height: 18px; border-radius: 5px; font-size: 10.5px; }
.dx .idc-todo { font: 600 13px/20px var(--font-ui); color: var(--ink-1); }
.dx .idc-todo.is-none { font-weight: 400; color: var(--ink-3); }
.dx .idc-miss { display: flex; flex-direction: column; gap: 8px; }
.dx .idc-l { font: 600 11.5px/16px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.dx .idc-mcs { display: flex; flex-wrap: wrap; gap: 6px; }
.dx .idc-mc {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 28px; padding: 0 10px 0 4px; border: 0; border-radius: 8px; background: var(--ins-absent-soft);
  color: var(--ink-2); font: 400 12.5px/1 var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: background .15s;
}
.dx .idc-mc .irv-rtag { height: 20px; padding: 0 6px; background: var(--surface-card); }
.dx .idc-mc:hover, .dx .idc-mc:focus-visible { background: color-mix(in srgb, var(--ins-absent-glyph) 24%, var(--surface-card)); }
.dx .idc-mc.is-more { padding: 0 10px; background: var(--surface-sunken); cursor: default; }
.dx .idc-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-1); }
.dx .idc-deep { margin-left: auto; font-size: 13px; }

/* ================================================================ THE REQUESTS: a tracked list worded for the other side */
.dx .irq { 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 .irq-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line-1); }
.dx .irq-sp { flex: 1; }
.dx .irq-nsel { font: 600 13px/1 var(--font-ui); color: var(--ink-1); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dx .irq-send { margin-left: 4px; }
.dx .irq-add { display: grid; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-1); background: var(--surface-pane); animation: irvRise .2s var(--ins-ease, ease) both; }
.dx .irq-add-a { display: flex; justify-content: flex-end; gap: 8px; }
.dx .irq-list { margin: 0; padding: 0; list-style: none; }
.dx .irq-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: start; gap: 14px; min-height: 68px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line-1); transition: background .15s; animation: irvRise .32s var(--ins-ease, ease) both; }
.dx .irq-row:hover { background: var(--surface-hover); }
.dx .irq-row.is-sel { background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface-card)); }
.dx .irq-row.is-out .irq-main { opacity: .7; }
.dx .irq-row > .irv-cb { margin-top: 2px; }
.dx .irq-no { display: block; width: 24px; }
.dx .irq-main { min-width: 0; }
.dx .irq-src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; min-height: 24px; font: 600 11.5px/16px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dx .irq-src .irv-rtag { height: 22px; letter-spacing: 0; }
.dx .irq-n { min-width: 16px; font: 500 12px/1 var(--font-mono); letter-spacing: 0; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dx .irq-edited { padding: 2px 6px; border-radius: 5px; background: var(--ins-info-soft); color: var(--ins-info); font-weight: 500; letter-spacing: 0; text-transform: none; }
.dx .irq-t {
  display: block; width: calc(100% + 16px); margin: 4px 0 0 -8px; padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--ink-1);
  font: 400 15px/24px var(--font-doc); text-align: left; overflow-wrap: anywhere; cursor: text; transition: background .15s;
}
.dx .irq-t:hover, .dx .irq-t:focus-visible { background: var(--surface-hover-2); }
.dx .irq-ed-w { display: block; margin-top: 6px; }
.dx .irq-in { display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--surface-sunken); color: var(--ink-1); font: 400 15px/24px var(--font-doc); resize: vertical; }
.dx .irq-in:focus { outline: none; background: var(--surface-hover-2); }
.dx .irq-in::placeholder { color: var(--ink-3); font-family: var(--font-ui); font-size: 14px; }
.dx .irq-ed-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; line-height: 20px; color: var(--ink-3); }
.dx .irq-ed-h .irv-sep { padding: 0 4px; }
.dx .irq-on { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12.5px; line-height: 20px; color: var(--ink-3); }
.dx .irq-on-l { margin-right: 2px; }
.dx .irq-ln { max-width: 260px; height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--surface-sunken); color: var(--ink-2); font: 500 12px/1 var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: background .15s; }
.dx .irq-ln:hover, .dx .irq-ln:focus-visible { background: var(--surface-hover-2); color: var(--ink-1); }
.dx .irq-ln.is-more { display: inline-flex; align-items: center; cursor: default; }
.dx .irq-room { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: var(--ink-2); }
.dx .irq-room .v2i { color: var(--ink-3); }
.dx .irq-room-n { font: 500 12px/1 var(--font-mono); color: var(--ink-3); }
.dx .irq-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; max-width: 420px; }
.dx .irq-st { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 12px; border: 0; border-radius: 999px; font: 600 12px/1 var(--font-ui); white-space: nowrap; cursor: pointer; transition: background .15s; }
.dx .irq-st .v2i { opacity: .7; }
.irq-st.is-draft { background: var(--ins-na-soft); color: var(--ins-na); }
.irq-st.is-sent { background: var(--ins-info-soft); color: var(--ins-info); }
.irq-st.is-answered { background: var(--ins-meets-soft); color: var(--ins-meets); }
.dx .irq-st.is-draft:hover, .dx .irq-st.is-draft:focus-visible, .dx .irq-st.is-draft[aria-expanded="true"] { background: color-mix(in srgb, var(--ins-na-glyph) 24%, var(--surface-card)); }
.dx .irq-st.is-sent:hover, .dx .irq-st.is-sent:focus-visible, .dx .irq-st.is-sent[aria-expanded="true"] { background: color-mix(in srgb, var(--ins-info-glyph) 24%, var(--surface-card)); }
.dx .irq-st.is-answered:hover, .dx .irq-st.is-answered:focus-visible, .dx .irq-st.is-answered[aria-expanded="true"] { background: color-mix(in srgb, var(--ins-meets-glyph) 24%, var(--surface-card)); }
.ins-menu .irq-st.is-menu { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--font-ui); }
.dx .irq-who { height: 30px; }
.dx .irq-due { 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: 400 13px/1 var(--font-ui); white-space: nowrap; cursor: pointer; }
.dx .irq-due.is-set { background: var(--surface-sunken); color: var(--ink-1); font-weight: 500; }
.dx .irq-due.is-set:hover, .dx .irq-due.is-set:focus-visible { background: var(--surface-hover-2); }
.dx .irq-due .v2i { color: var(--ink-3); }
.dx .irq-due.is-open { padding: 0; cursor: default; }
.dx .irq-date { height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--surface-sunken); color: var(--ink-1); font: 400 13px/1 var(--font-ui); }
.dx .irq-date:focus { outline: none; background: var(--surface-hover-2); }
.dx .irv-ib.irq-more { width: 30px; height: 30px; border-radius: 8px; }
.dx .irq-gone { padding-left: 20px; }
.dx .irq-empty-m { max-width: 420px; font-size: 13px; line-height: 20px; color: var(--ink-3); }
/* with the pane open beside the list, a request's status, owner and date go under its words (the words keep their room) */
.dx .irv-split.has-pane .irq-row { grid-template-columns: 24px minmax(0, 1fr); }
.dx .irv-split.has-pane .irq-side { grid-column: 2; justify-content: flex-start; max-width: none; }
/* the bare fields over components.css's framed field (.dx.dx :is(input…, textarea)): the sunken well is the field, never ringed */
.dx.dx.dx .irq-in, .dx.dx.dx .irq-in:focus, .dx.dx.dx .irq-date, .dx.dx.dx .irq-date:focus, .dx.dx.dx .iex-in, .dx.dx.dx .iex-in:focus { border: 0; box-shadow: none; outline: none; }
.dx.dx.dx .irq-in, .dx.dx.dx .irq-date, .dx.dx.dx .iex-in { background: var(--surface-sunken); }
.dx.dx.dx .irq-in:focus, .dx.dx.dx .irq-date:focus, .dx.dx.dx .iex-in:focus { background: var(--surface-hover-2); }

/* ================================================================ THE EXPORT PANEL: a side panel, its live first page beside the choices */
dialog.v2dlg.iex-dlg {
  position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(900px, 100vw); max-width: none; height: 100dvh; max-height: none; padding: 0;
  border: 0; border-radius: 16px 0 0 16px; background: var(--surface-card); color: var(--ink-1); box-shadow: var(--e4); overflow: hidden;
}
dialog.v2dlg.iex-dlg[open] { animation: iexIn .26s var(--ins-ease, ease) both; }
dialog.v2dlg.iex-dlg::backdrop { background: var(--surface-scrim); }
@keyframes iexIn { from { opacity: 0; transform: translateX(32px); } }
.iex-dlg :focus-visible { outline: none; }
.iex-f { display: flex; flex-direction: column; height: 100%; margin: 0; font-family: var(--font-ui); color: var(--ink-1); }
.iex-h { flex: none; display: flex; align-items: center; gap: 16px; padding: 20px 20px 12px 28px; }
.iex-ht { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.iex-ht .v2dlg-title { font-size: 22px; line-height: 30px; white-space: nowrap; }
.iex-doc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink-3); }
.dx .irv-ib.iex-x { margin-left: auto; }
.iex-fmtw { flex: none; padding: 0 28px 16px; }
.iex-fmt { max-width: 560px; }
.iex-fmt .vx-segb, .iex-seg .vx-segb { height: 32px; font-size: 13px; }
.iex-main { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 24px; padding: 0 28px; }
.iex-prev { display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 0; overflow: hidden; padding: 16px; border-radius: 12px; background: var(--surface-sunken); }
.iex-frame { position: relative; flex: none; overflow: hidden; border-radius: 2px; background: var(--surface-card); box-shadow: var(--e2); transition: width .22s var(--ins-ease, ease), height .22s var(--ins-ease, ease); }
.iex-live { flex: none; display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); font: 500 12.5px/16px var(--font-ui); white-space: nowrap; }
.iex-live > i { width: 6px; height: 6px; border-radius: 50%; background: var(--ins-meets-glyph); }
/* the sheet: A4 at 96 px to the inch, the PDF's 12 mm margins, in the paper's parchment tokens; drawn, never worked in */
.iex-sheet { position: absolute; top: 0; left: 0; width: 794px; height: 1123px; box-sizing: border-box; padding: 45px 45px 60px; overflow: hidden; transform-origin: 0 0; background: var(--surface-card); color: var(--ink-1); pointer-events: none; }
.dx .iex-sheet .v2p.ins { max-width: none; margin: 0; padding: 0; }
.dx .iex-sheet .ins-noprint { display: none; }
.dx .iex-sheet .ins-cols { display: block; }
.dx .iex-sheet * { animation: none; transition: none; }
.dx .iex-sheet .v2p-h1 > span + span { color: var(--ink-3); font-weight: 400; }
.iex-opts { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 4px 16px 0; }
.iex-g { padding: 4px 0 20px; }
.iex-g + .iex-g { padding-top: 16px; border-top: 1px solid var(--line-1); }
.iex-gt { margin: 0 0 8px; font: 600 11.5px/16px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.iex-gb { display: flex; flex-direction: column; gap: 2px; }
.iex-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px 0 4px; border: 0; border-radius: 9px; background: none; color: var(--ink-1); font: 400 14px/20px var(--font-ui); text-align: left; cursor: pointer; transition: background .15s; }
.iex-opt:hover, .iex-opt:focus-visible { background: var(--surface-hover); }
.dx .iex-opt .irv-cb { pointer-events: none; }
.iex-n { margin-left: auto; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.iex-note { margin: 6px 0 0 38px; font-size: 12.5px; line-height: 18px; color: var(--ink-3); }
.iex-seg { width: 220px; }
.iex-foot { flex: none; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; padding: 16px 28px 20px; border-top: 1px solid var(--line-1); }
.iex-name { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; min-width: 0; }
.iex-l { font-size: 12.5px; color: var(--ink-3); }
.iex-in { height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--surface-sunken); color: var(--ink-1); font: 400 14px/1 var(--font-ui); }
.iex-rem { width: auto; flex: none; }
.iex-acts { display: flex; gap: 8px; margin-left: auto; }
/* the grid's first rows, as a sheet */
.iex-xl { font: 400 13px/18px var(--font-ui); color: var(--ink-1); }
.iex-xt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.iex-xt th, .iex-xt td { padding: 6px 8px; border: 1px solid var(--line-2); text-align: left; vertical-align: top; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iex-xt th { height: 64px; background: var(--surface-sunken); font-weight: 600; white-space: normal; }
.iex-xt th:first-child, .iex-xt td:first-child { width: 30%; }
.iex-xt th:nth-child(2), .iex-xt td:nth-child(2) { width: 9%; }
.iex-tabs { display: flex; gap: 2px; margin-top: 16px; }
.iex-tabs span { padding: 6px 16px; border: 1px solid var(--line-2); border-top: 0; background: var(--surface-sunken); font-size: 12px; }
.iex-tabs span.is-on { background: var(--surface-card); font-weight: 600; }
/* the requests list's first page */
.iex-rq { margin: 24px 0 0; padding-left: 24px; }
.iex-rq li { margin-bottom: 14px; }
.iex-rq-t { margin: 0; font: 400 15px/24px var(--font-doc); color: var(--ink-1); }
.iex-rq-m, .iex-rq-on { margin: 2px 0 0; font-size: 12.5px; line-height: 18px; color: var(--ink-3); }

/* ================================================================ narrower windows, then a phone */
@container main (max-width: 1080px) {
  .dx .itb { --itb-c0: 220px; }
  .dx .irq-row { grid-template-columns: 24px minmax(0, 1fr); }
  .dx .irq-side { grid-column: 2; justify-content: flex-start; max-width: none; }
}
@container main (max-width: 760px) {
  .dx .itb { --itb-c0: 168px; }
  .dx .itb { --itb-cw: 160px; }
  .dx .itb-r > th.itb-d, .dx .itb-h0w, .dx .itb-t tfoot th.itb-t0 { padding-left: 16px; }
  .dx .itb-scroll { max-height: none; }
  .dx .idc-grid { grid-template-columns: minmax(0, 1fr); }
  .dx .idc-card { padding: 16px; }
  .dx .irq-h { padding: 12px 16px; }
  .dx .irq-h .irv-seg { width: 100%; overflow-x: auto; }
  .dx .irq-row { padding: 14px 16px; }
}
@media (max-width: 760px) {
  dialog.v2dlg.iex-dlg { width: 100vw; border-radius: 0; }
  .iex-h { padding: 14px 12px 8px 16px; }
  .iex-fmtw, .iex-main { padding-left: 16px; padding-right: 16px; }
  .iex-fmt { max-width: none; }
  .iex-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; overflow-y: auto; gap: 16px; }
  .iex-prev { height: 300px; }
  .iex-opts { overflow: visible; }
  .iex-foot { padding: 12px 16px 16px; }
  .dx .itb-hov { display: none; }
}
/* on paper: the panel and the card never print */
@media print { .iex-dlg, .itb-hov { display: none !important; } }

/* a phone: the Requests' status switch scrolls inside its row; the header's buttons wrap under it */
@container main (max-width: 760px) {
  .dx .irq-h { flex-wrap: wrap; row-gap: 8px; }
  .dx .irq-h > .irv-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
}
