/* Sentinel v2 - insight.css
   The Insights pages (v2/insight.js): home, composer, the results on paper (the memo, the grid and documents as the review workspace
   draws them - v2/insight-review.css styles the workspace itself) and the library.
   Calm and monochrome: ink on paper, hairlines, generous room. A state is a small ink glyph, never a coloured badge - on the memo, the
   workspace's own tile (its pale tint, its shape, its word), never a solid block; the one accent is the brand on the primary button. No ring round any control, even on keyboard focus: the fill deepens instead. Every colour is a
   token (v2/tokens.css), so light, dark and parchment all hold. Motion always on: rows rise in, the progress moves. */

.app, .dx { --ins-ease: cubic-bezier(.22, 1, .36, 1); }

/* ---------------------------------------------------------------- the page */
.dx .v2p.ins { max-width: 1160px; }
.dx .v2p.ins-compose { max-width: 840px; padding-bottom: 0; }
.dx .v2p.ins :focus-visible { outline: none; }
.dx .v2p.ins .btn:focus-visible { outline: none; background: var(--surface-hover-2); border-color: var(--line-3); }
.dx .v2p.ins .btn-primary:focus-visible { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.dx .v2p.ins .btn-ghost:focus-visible { background: var(--surface-hover-2); border-color: transparent; }
.dx .v2p.ins .btn .v2i { margin-left: 2px; color: var(--ink-3); }
.dx .ins-head { align-items: flex-end; margin-bottom: 24px; }
.dx .ins-sub { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 2px; margin-top: 8px; max-width: none; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.dx .ins-sub > span { min-width: 0; }
.dx .ins-sub-pb { white-space: nowrap; }
.dx .ins-dot { padding: 0 7px; color: var(--ink-4); }
.dx .ins-muted { color: var(--ink-3); }
.dx .ins-quiet { margin: 8px 0; color: var(--ink-3); font-size: 14px; }
.dx .ins-hint { margin: 12px 0 0; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.dx .ins-eyebrow { display: block; margin: 20px 0 8px; font: 600 11px/16px var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.dx .ins-eyebrow:first-child { margin-top: 0; }
.dx .ins-h3 { margin: 0 0 10px; font: 600 11px/16px var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.dx .ins-v { font: 500 11.5px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); letter-spacing: 0; }
.dx .ins-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.dx .ins-g { display: inline-grid; place-items: center; flex: none; width: 1.15em; font: 600 14px/1 var(--font-ui); color: var(--ink-2); }
.dx .ins-g[data-st="misses"], .dx .ins-g[data-st="needs_eye"], .dx .ins-g[data-st="question"] { color: var(--ink-1); }
.dx .ins-g[data-st="meets"], .dx .ins-g[data-st="present"] { color: var(--ink-3); font-weight: 500; }
.dx .ins-g[data-st="not_applicable"], .dx .ins-g[data-st="not_read"] { color: var(--ink-4); font-weight: 500; }
.dx .ins-val { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink-1) 45%, transparent); }

/* small controls: a text action, an icon button, a "show all" */
.dx .ins-link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 6px; margin: 0 -2px; border: 0; border-radius: 6px; background: none;
  color: var(--ink-2); font: 500 13px/1.2 var(--font-ui); white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background-color 120ms var(--ins-ease), color 120ms var(--ins-ease);
}
.dx .ins-link:hover { color: var(--ink-1); background: var(--surface-hover); }
.dx .ins-link:focus-visible { background: var(--surface-hover-2); color: var(--ink-1); }
.dx .ins-link .v2i { color: var(--ink-3); }
.dx .ins-ib {
  flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: transparent;
  color: var(--ink-3); cursor: pointer; transition: background-color 120ms var(--ins-ease), color 120ms var(--ins-ease);
}
.dx .ins-ib:hover { background: var(--surface-hover); color: var(--ink-1); }
.dx .ins-ib:focus-visible { background: var(--surface-hover-2); color: var(--ink-1); }
.dx .ins-ib:disabled { opacity: .35; cursor: default; background: transparent; }
.dx .ins-more {
  display: inline-flex; align-items: center; min-height: 32px; margin: 6px 0 0 28px; padding: 0 8px; border: 0; border-radius: 6px; background: none;
  color: var(--ink-2); font: 500 13px/1 var(--font-ui); cursor: pointer;
}
.dx .ins-more:hover { background: var(--surface-hover); color: var(--ink-1); }
.dx .ins-more:focus-visible { background: var(--surface-hover-2); color: var(--ink-1); }
.ins-rot-up, .ins-rot-down { display: inline-grid; transition: transform 160ms var(--ins-ease); }
.ins-rot-up { transform: rotate(-90deg); }
.ins-rot-down { transform: rotate(90deg); }
.dx .ins-tag {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 24px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink-2); font: 500 12.5px/1 var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dx .ins-tag > span { overflow: hidden; text-overflow: ellipsis; }
.dx .ins-tag .v2i { flex: none; color: var(--ink-3); }

/* waiting, failing, empty */
.dx .ins-skel { display: grid; gap: 12px; padding: 4px 0; }
.dx .ins-skel i { display: block; height: 52px; border-radius: 10px; 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 .ins-skel i:nth-child(2n) { width: 84%; }
@keyframes insShim { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes insRise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes insFade { from { opacity: 0; } to { opacity: 1; } }
.dx .ins-err { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink-2); font-size: 13.5px; }
.dx .ins-err b { color: var(--ink-1); font-weight: 600; }
.dx .ins-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 24px 56px; border: 1px dashed var(--line-2); border-radius: 14px; text-align: center; }
.dx .ins-empty-t { font: 600 19px/26px var(--font-doc); color: var(--ink-1); }
.dx .ins-empty-b { margin: 0; max-width: 52ch; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.dx .ins-empty-a { display: flex; gap: 8px; margin-top: 10px; }

/* sections */
.dx .ins-sec { margin: 48px 0 0; }
.dx .ins-sec-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; padding: 0 0 10px; border-bottom: 1px solid var(--line-1); }
.dx .ins-sec-h h2 { margin: 0; font: 600 18px/26px var(--font-doc); color: var(--ink-1); }
.dx .ins-sec-m { font-size: 13px; color: var(--ink-3); }

/* ---------------------------------------------------------------- the Review · Prepare and Memo · Grid · Documents switches */
.dx .ins-kinds, .dx .ins-views {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: max-content; padding: 3px; border: 1px solid var(--line-1);
  border-radius: 999px; background: var(--surface-sunken); isolation: isolate;
}
.dx .ins-kinds { margin-top: 14px; }
.dx .ins-kind, .dx .ins-view {
  display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 16px; border: 0; border-radius: 999px; background: none;
  color: var(--ink-3); font: 500 13px/1 var(--font-ui); white-space: nowrap; text-decoration: none; cursor: pointer; transition: color 160ms var(--ins-ease);
}
.dx .ins-kind:hover, .dx .ins-view:hover, .dx .ins-kind.is-on, .dx .ins-view.is-on { color: var(--ink-1); }
.dx .ins-kinds:not(.sfx-goo) .ins-kind.is-on, .dx .ins-views:not(.sfx-goo) .ins-view.is-on { background: var(--surface-raised); box-shadow: var(--e1), 0 0 0 1px var(--line-1); }
.dx .ins-kind:focus-visible, .dx .ins-view:focus-visible { background: var(--surface-hover-2); color: var(--ink-1); }

/* ---------------------------------------------------------------- HOME */
.dx .ins-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-1); border-radius: 12px; background: var(--surface-card); overflow: hidden; }
.dx .ins-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 0 20px 0 0;
  border-top: 1px solid var(--line-1); animation: insRise 280ms var(--ins-ease) both; animation-delay: calc(var(--i, 0) * 24ms);
  transition: background-color 120ms var(--ins-ease);
}
.dx .ins-row:first-child { border-top: 0; }
.dx .ins-row:hover, .dx .ins-row:focus-within { background: color-mix(in srgb, var(--surface-card) 100%, var(--ink-1) 3%); }
.dx .ins-row.has-ck { grid-template-columns: 38px minmax(0, 1fr) auto; column-gap: 0; }
.dx .ins-row.has-ck .ins-row-side { margin-left: 24px; }
.dx .ins-row-main { display: grid; gap: 5px; min-width: 0; padding: 20px 0 20px 22px; color: inherit; text-decoration: none; }
.dx .ins-row.has-ck .ins-row-main { padding-left: 14px; }
.dx .ins-row-main:focus-visible { background: var(--surface-hover); border-radius: 8px; }
.dx .ins-row-t { font: 600 17px/24px var(--font-doc); color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx .ins-row-s { display: flex; flex-wrap: wrap; align-items: baseline; min-width: 0; font-size: 13.5px; line-height: 20px; color: var(--ink-2); }
.dx .ins-row-s > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dx .ins-row-c { display: flex; flex-wrap: wrap; align-items: baseline; font-size: 13px; line-height: 18px; color: var(--ink-3); }
/* what moved since the run: one quieter line under the counts, never a badge */
.dx .ins-row-m { display: flex; flex-wrap: wrap; align-items: baseline; font-size: 12.5px; line-height: 18px; color: var(--ink-3); margin-top: 2px; }
.dx .ins-row-side { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.dx .ins-row-w { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.dx .ins-row-x { opacity: 0; transition: opacity 140ms var(--ins-ease), background-color 120ms var(--ins-ease); }
.dx .ins-row:hover .ins-row-x, .dx .ins-row:focus-within .ins-row-x { opacity: 1; }
/* choosing insights to compare: a quiet box, seen on hover or once one is chosen (on a touch screen, always) */
.dx .ins-ck {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 18px; padding: 0; border: 1.5px solid var(--line-3); border-radius: 5px;
  background: var(--surface-card); color: var(--surface-card); cursor: pointer; transition: background-color 120ms var(--ins-ease), border-color 120ms var(--ins-ease);
}
.dx .ins-ck:hover { border-color: var(--ink-3); }
.dx .ins-ck-gap { display: block; width: 20px; margin-left: 18px; }
.dx .ins-ck.is-on { background: var(--ink-1); border-color: var(--ink-1); }
.dx .ins-ck:focus-visible { border-color: var(--ink-1); }
.dx .ins-row.is-picked { background: color-mix(in srgb, var(--surface-card) 100%, var(--ink-1) 4%); }
.dx .ins-selbar {
  position: sticky; top: 8px; z-index: 6; display: flex; align-items: center; gap: 12px; width: max-content; max-width: 100%; margin: 0 0 12px; padding: 6px 8px 6px 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-raised); box-shadow: var(--e2); font-size: 13px; color: var(--ink-2);
  animation: insRise 200ms var(--ins-ease) both;
}
@media (hover: none) { .dx .ins-row-x { opacity: 1; } }

/* a run's progress: words and a thin ink line */
.dx .ins-prog { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.dx .ins-prog-bar { position: relative; display: block; width: 160px; height: 3px; border-radius: 2px; background: var(--line-1); overflow: hidden; }
.dx .ins-prog-bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink-2); border-radius: 2px; transition: width 600ms var(--ins-ease); }
.dx .ins-prog-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface-card) 70%, transparent), transparent); animation: insSweep 1.8s linear infinite; }
@keyframes insSweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.dx .ins-progw { margin: 0 0 16px; }

/* the first visit: one calm invitation, then the documents seen from their passports */
.dx .ins-invite {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border: 1px solid var(--line-1); border-radius: 14px;
  background: var(--surface-card); animation: insRise 320ms var(--ins-ease) both;
}
.dx .ins-invite-m { display: grid; gap: 4px; min-width: 0; }
.dx .ins-invite-t { font: 600 19px/26px var(--font-doc); color: var(--ink-1); }
.dx .ins-invite-b { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.dx .ins-ov-c { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0 0 24px; font-size: 14px; color: var(--ink-2); }
.dx .ins-ov-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
.dx .ins-ov-blk { margin-top: 36px; }
.dx .ins-tally { list-style: none; margin: 0; padding: 0; }
.dx .ins-tally li { display: flex; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-1); font-size: 14px; animation: insFade 260ms var(--ins-ease) both; }
.dx .ins-tally li:last-child { border-bottom: 0; }
.dx .ins-tl-l { flex: 1 1 auto; min-width: 0; color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx .ins-tl-n { flex: none; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.dx .ins-ovl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-1); }
.dx .ins-ovl li { border-bottom: 1px solid var(--line-1); }
.dx .ins-ovd {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 16px; width: 100%; min-height: 44px; padding: 10px 6px; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color 120ms var(--ins-ease);
}
.dx .ins-ovd:hover { background: var(--surface-hover); }
.dx .ins-ovd:focus-visible { background: var(--surface-hover-2); }
.dx .ins-ovd-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ink-1); }
.dx .ins-ovd-t, .dx .ins-ovd-d { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.dx .ins-cards { min-height: 8px; }

/* ---------------------------------------------------------------- THE COMPOSER */
.dx .ins-compose .ins-head { margin-bottom: 8px; }
.dx .ins-compose .v2p-head-t { width: 100%; }
.dx .ins-name-w { margin-top: 2px; }
.dx .ins-name {
  width: 100%; box-sizing: border-box; height: 48px; margin: 0 -10px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent;
  color: var(--ink-1); font: 600 28px/36px var(--font-doc); letter-spacing: -.01em; transition: border-color 120ms var(--ins-ease), background-color 120ms var(--ins-ease);
}
.dx .ins-name::placeholder { color: var(--ink-3); opacity: 1; }
.dx .ins-name:hover { background: var(--surface-hover); }
.dx.dx .ins-name:focus { outline: none; box-shadow: none; border-color: var(--line-2); background: var(--surface-card); }
.dx .ins-steps { display: grid; gap: 8px; }
.dx .ins-step { padding: 32px 0 36px; border-top: 1px solid var(--line-1); animation: insRise 300ms var(--ins-ease) both; }
.dx .ins-step:first-child { border-top: 0; }
.dx .ins-step:nth-child(2) { animation-delay: 50ms; }
.dx .ins-step:nth-child(3) { animation-delay: 100ms; }
.dx .ins-step-h { margin: 0 0 16px; font: 600 18px/26px var(--font-doc); color: var(--ink-1); }
.dx .ins-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dx .ins-chip {
  height: 36px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-card); color: var(--ink-1);
  font: 500 13.5px/1 var(--font-ui); cursor: pointer; transition: background-color 140ms var(--ins-ease), border-color 140ms var(--ins-ease), color 140ms var(--ins-ease);
}
.dx .ins-chip:hover { border-color: var(--line-3); background: var(--surface-hover); }
.dx .ins-chip:focus-visible { background: var(--surface-hover-2); border-color: var(--line-3); }
.dx .ins-chip.is-on { background: var(--ink-1); border-color: var(--ink-1); color: var(--surface-card); }
.dx .ins-chip.is-on:focus-visible { background: color-mix(in srgb, var(--ink-1) 84%, var(--surface-card)); }
.dx .ins-input {
  height: 38px; box-sizing: border-box; min-width: 0; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-card);
  color: var(--ink-1); font: 14px/1 var(--font-ui);
}
.dx .ins-input:hover { border-color: var(--line-3); }
.dx.dx .ins-input:focus { outline: none; box-shadow: none; border-color: var(--ink-2); }
.dx .ins-describe { display: flex; gap: 8px; margin-top: 16px; }
.dx .ins-describe .ins-input { flex: 1 1 auto; }
.dx .ins-describe .btn { height: 38px; }
.dx .ins-scard {
  margin-top: 12px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-card); animation: insRise 260ms var(--ins-ease) both;
}
.dx .ins-scard-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.dx .ins-scard-w { font: 500 15px/22px var(--font-doc); color: var(--ink-1); }
.dx .ins-check { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--ink-2); }
.dx .ins-look { margin-left: 4px; padding: 1px 7px; border: 1px solid var(--line-3); border-radius: 999px; font-size: 11.5px; color: var(--ink-1); }
.dx .ins-scard-b { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.dx .ins-scard-a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dx .ins-chosen { display: inline-flex; align-items: baseline; gap: 4px; font-size: 13px; color: var(--ink-1); }
.dx .ins-peek {
  display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 6px; margin: 0 -6px; border: 0; border-radius: 6px; background: none;
  color: var(--ink-1); font: 500 13.5px/1 var(--font-ui); cursor: pointer;
}
.dx .ins-peek:hover { background: var(--surface-hover); }
.dx .ins-peek:focus-visible { background: var(--surface-hover-2); }
.dx .ins-peek .v2i { color: var(--ink-3); transition: transform 160ms var(--ins-ease); }
.dx .ins-peek[aria-expanded="true"] .v2i { transform: rotate(180deg); }
.dx .ins-peek-l {
  list-style: none; margin: 10px 0 0; padding: 6px 0; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line-1);
  border-radius: 10px; background: var(--surface-card); font-size: 13px; animation: insRise 200ms var(--ins-ease) both;
}
.dx .ins-peek-l li { padding: 5px 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx .ins-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.dx .ins-picked .ins-tag { max-width: 280px; }
.dx .ins-tag.is-more { color: var(--ink-3); }
.dx .ins-scope { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 13.5px; color: var(--ink-2); }
.dx .ins-scope-t { display: inline-flex; align-items: center; flex-wrap: wrap; }
.dx .ins-sws { display: inline-flex; flex-wrap: wrap; gap: 4px 20px; }
.dx .ins-sw { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 0 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; color: var(--ink-1); font: 13px/18px var(--font-ui); white-space: nowrap; }
.dx .ins-sw:hover, .dx .ins-sw:focus-within { background: var(--surface-hover); }
.dx.dx .ins-sw input {
  flex: none; position: relative; width: 28px; height: 16px; margin: 0; border: 0; border-radius: 999px; background: var(--line-3); appearance: none; -webkit-appearance: none;
  cursor: pointer; transition: background-color 160ms var(--ins-ease);
}
.dx.dx .ins-sw input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-card); box-shadow: 0 1px 2px rgba(0, 0, 0, .22); transition: transform 180ms var(--ins-ease); }
.dx.dx .ins-sw input:checked { background: var(--ink-1); }
.dx.dx .ins-sw input:checked::after { transform: translateX(12px); }
.dx.dx .ins-sw input:focus-visible { outline: none; box-shadow: none; }
/* the playbooks: selectable rows */
.dx .ins-pbs { display: grid; gap: 6px; }
.dx .ins-pb {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px; border: 1px solid var(--line-1);
  border-radius: 10px; background: var(--surface-card); color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: border-color 140ms var(--ins-ease), background-color 140ms var(--ins-ease);
}
.dx .ins-pb:hover { border-color: var(--line-3); }
.dx .ins-pb:focus-visible { background: var(--surface-hover); border-color: var(--line-3); }
.dx .ins-pb.is-on { border-color: var(--ink-2); background: color-mix(in srgb, var(--surface-card) 100%, var(--ink-1) 3%); }
.dx .ins-box { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid var(--line-3); border-radius: 5px; color: var(--surface-card); transition: background-color 140ms var(--ins-ease); }
.dx .ins-pb.is-on .ins-box { background: var(--ink-1); border-color: var(--ink-1); }
.dx .ins-pb-m { display: grid; gap: 2px; min-width: 0; }
.dx .ins-pb-m b { font-weight: 600; font-size: 14.5px; line-height: 20px; color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx .ins-pb-a { font-size: 13px; line-height: 18px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx .ins-pb-n { display: grid; justify-items: end; gap: 2px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.dx .ins-pb-mix { font-size: 12px; color: var(--ink-3); }
.dx .ins-own { margin-top: 8px; }
.dx .ins-own-l { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-1); border-radius: 10px; background: var(--surface-card); }
.dx .ins-own-l li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-top: 1px solid var(--line-1); animation: insRise 240ms var(--ins-ease) both; }
.dx .ins-own-l li:first-child { border-top: 0; }
.dx .ins-own-t { flex: 1 1 auto; min-width: 0; font: 14.5px/22px var(--font-doc); color: var(--ink-1); }
.dx .ins-add {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; margin-top: 14px; padding: 0 14px 0 10px; border: 1px dashed var(--line-3); border-radius: 10px;
  background: none; color: var(--ink-1); font: 500 13.5px/1 var(--font-ui); cursor: pointer; transition: background-color 120ms var(--ins-ease);
}
.dx .ins-add:hover { background: var(--surface-hover); }
.dx .ins-add:focus-visible { background: var(--surface-hover-2); }
.dx .ins-add .v2i { color: var(--ink-3); }
.dx .ins-agent { margin-top: 14px; min-height: 8px; }
/* read as */
.dx .ins-seg { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-sunken); }
.dx .ins-seg button {
  height: 32px; padding: 0 14px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font: 500 13.5px/1 var(--font-ui); white-space: nowrap; cursor: pointer;
  transition: background-color 140ms var(--ins-ease), color 140ms var(--ins-ease);
}
.dx .ins-seg button:hover { color: var(--ink-1); }
.dx .ins-seg button.is-on { background: var(--surface-raised); color: var(--ink-1); box-shadow: var(--e1); }
.dx .ins-seg button:focus-visible { background: var(--surface-hover-2); color: var(--ink-1); }
.dx .ins-field { margin-top: 12px; }
.dx .ins-field .ins-input { width: min(420px, 100%); }
.dx .ins-fold-btn { margin-top: 16px; }
.dx .ins-more-f { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 10px; animation: insRise 200ms var(--ins-ease) both; }
.dx .ins-lf { display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.dx .ins-lf .ins-input { width: 200px; }
/* the run line, held at the foot of the page */
.dx .ins-runline {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  margin: 8px -16px 0; padding: 14px 16px 18px; border-top: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg-app, var(--surface-app)) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dx .ins-rl-t { display: inline-flex; align-items: baseline; flex-wrap: wrap; font-size: 14px; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.dx .ins-rl-a { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.dx .ins-rl-a .btn { height: 36px; padding: 0 16px; }
.dx .ins-rl-a .btn-primary { min-width: 88px; }

/* ---------------------------------------------------------------- RESULTS */
.dx .ins-changed {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 4px; margin: 0 0 20px; padding: 10px 10px 10px 16px; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 13.5px; color: var(--ink-2); animation: insRise 240ms var(--ins-ease) both;
}
.dx .ins-changed-t { margin-right: 12px; font-weight: 600; color: var(--ink-1); }
.dx .ins-changed .btn { margin-left: auto; }
.dx .ins-cols { display: grid; grid-template-columns: minmax(0, 760px) 220px; justify-content: space-between; gap: 56px; align-items: start; }
.dx .ins-main { min-width: 0; }
.dx .ins-toc { position: sticky; top: 16px; display: grid; gap: 2px; max-height: calc(100vh - 140px); overflow-y: auto; padding-left: 16px; border-left: 1px solid var(--line-1); }
.dx .ins-toc-i {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 30px; padding: 4px 8px; margin-left: -8px; border: 0; border-radius: 6px; background: none;
  color: var(--ink-2); font: 13px/18px var(--font-ui); text-align: left; cursor: pointer;
}
.dx .ins-toc-i > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx .ins-toc-i:hover { background: var(--surface-hover); color: var(--ink-1); }
.dx .ins-toc-i:focus-visible { background: var(--surface-hover-2); color: var(--ink-1); }
.dx .ins-toc-n { flex: none; font-variant-numeric: tabular-nums; color: var(--ink-3); }
/* THE MEMO (the review on paper: ?print=1, and the Export panel's first page) - in the workspace's words and tiles (v2/insight-review.css
   draws the tiles, the decision pills, the R-tags and the clause chips; the memo lays them out). Under the name: the lens and the
   progress, said as counts; then the states counted, a section a rule with its lines, the missing documents, the requests. */
.dx .ins-ml { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; }
.dx .ins-ml-i { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.dx .ins-ml dt { font-size: 13px; line-height: 20px; color: var(--ink-3); white-space: nowrap; }
.dx .ins-ml dd { min-width: 0; margin: 0; font: 600 14px/20px var(--font-ui); color: var(--ink-1); overflow-wrap: anywhere; }
.dx .ins-ml-i.is-none dd { font-weight: 500; color: var(--ins-partly); }
.dx .ins-mp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 16px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dx .ins-mp-n { font: 600 24px/32px var(--font-ui); color: var(--ink-1); }
.dx .ins-mp .ins-dot, .dx .ins-mr-m .ins-dot, .dx .ins-mrow-dm .ins-dot, .dx .ins-mreq-m .ins-dot { padding: 0 6px; }
/* the states: a tile, its word, its count - a quiet pill each (the tile carries the state's tint, the pill none) */
.dx .ins-mst { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0 0 24px; border-bottom: 1px solid var(--line-1); }
.dx .ins-mst-i { display: inline-flex; align-items: center; gap: 8px; height: 32px; box-sizing: border-box; padding: 0 12px 0 6px; border-radius: 999px; background: var(--surface-sunken); color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.dx .ins-mst-i b { font-weight: 600; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.dx .ins-mst-i .irv-tile { width: 20px; height: 20px; border-radius: 5px; font-size: 11px; }
.dx .ins-mst-i.is-sm { height: 28px; padding: 0 10px 0 4px; background: var(--surface-card); font-size: 12.5px; }
.dx .ins-mst-i.is-sm .irv-tile { width: 18px; height: 18px; font-size: 10px; }
/* a rule's section: one region - its warm header (R-tag, topic, how many decided, the question, who has it, its sign-off, its other lines
   counted) over its lines */
.dx .ins-mr { margin: 0 0 24px; border: 1px solid var(--line-1); border-radius: 12px; background: var(--surface-card); }
.dx .ins-mr-h { padding: 16px 20px; border-radius: 11px 11px 0 0; background: var(--surface-pane); }
.dx .ins-mr-r1 { display: flex; align-items: center; gap: 8px; margin: 0; }
.dx .ins-mr-topic { min-width: 0; font: 600 11px/16px var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.dx .ins-mr-n { margin-left: auto; font-size: 13px; line-height: 20px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dx .ins-mr-q { margin: 8px 0 0; font: 500 16px/24px var(--font-doc); color: var(--ink-1); overflow-wrap: anywhere; }
.dx .ins-mr-m { display: flex; flex-wrap: wrap; align-items: center; margin: 8px 0 0; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.dx .ins-mr-so { display: inline-flex; align-items: center; gap: 6px; }
.dx .ins-mr-so .irv-tile { width: 18px; height: 18px; border-radius: 5px; font-size: 10px; }
.dx .ins-mr-son { color: var(--ink-3); font-style: italic; }
.dx .ins-mr-o { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
/* a line: its state's tile, the document and version, the reading, the decision's who · when · reach and the note; the clause; the
   decision (a pale pill) or "To decide" */
.dx .ins-mrows { list-style: none; margin: 0; padding: 0; }
.dx .ins-mrow {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto minmax(112px, auto); align-items: start; gap: 4px 16px; padding: 14px 20px; border-top: 1px solid var(--line-1);
  animation: insFade 240ms var(--ins-ease) both;
}
.dx .ins-ms > .ins-mrows > .ins-mrow:first-child { border-top: 0; }
.dx .ins-mrow.is-plain { grid-template-columns: 22px minmax(0, 1fr); padding: 12px 8px; }
.dx .ins-mrow-m { min-width: 0; }
.dx .ins-mrow-n { display: flex; align-items: baseline; flex-wrap: wrap; margin: 0; font-size: 14px; line-height: 20px; }
.dx .ins-mrow-d { min-width: 0; font-weight: 600; color: var(--ink-1); overflow-wrap: anywhere; }
.dx .ins-mrow-r { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-2); overflow-wrap: anywhere; }
.dx .ins-mrow-q { margin: 0; font: 15px/22px var(--font-doc); color: var(--ink-1); }
.dx .ins-mrow-dm { display: flex; flex-wrap: wrap; align-items: baseline; margin: 6px 0 0; font-size: 12.5px; line-height: 18px; color: var(--ink-3); }
.dx .ins-mrow-note { margin: 4px 0 0; font: italic 14px/20px var(--font-doc); color: var(--ink-2); overflow-wrap: anywhere; }
.dx .ins-mrow-dc { display: flex; justify-content: flex-end; }
.dx .ins-mrow-todo { font-size: 12.5px; line-height: 26px; color: var(--ink-3); white-space: nowrap; }
.dx .ins-mrow.is-below .ins-mrow-d, .dx .ins-mrow.is-below .ins-mrow-r { color: var(--ink-3); }
/* the requests for the other side: one numbered list, in serif - each with its status, owner and date due, and the lines it rests on */
.dx .ins-mreq { margin: 0; padding: 0 0 0 28px; }
.dx .ins-mreq li { padding: 12px 0 12px 4px; border-bottom: 1px solid var(--line-1); animation: insFade 240ms var(--ins-ease) both; }
.dx .ins-mreq li::marker { color: var(--ink-3); font: 500 13px var(--font-ui); font-variant-numeric: tabular-nums; }
.dx .ins-mreq-t { margin: 0; font: 15px/24px var(--font-doc); color: var(--ink-1); overflow-wrap: anywhere; }
.dx .ins-mreq-m { display: flex; flex-wrap: wrap; align-items: baseline; margin: 2px 0 0; font-size: 12.5px; line-height: 18px; color: var(--ink-3); }
.dx .ins-ms { margin: 0 0 56px; scroll-margin-top: 16px; }
.dx .ins-ms-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; padding: 0 0 10px; border-bottom: 1px solid var(--line-2); }
.dx .ins-ms-h h2 { margin: 0; font: 600 20px/28px var(--font-doc); letter-spacing: -.005em; color: var(--ink-1); }
.dx .ins-ms-m { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dx .ins-ms-h .ins-link { margin-left: auto; }
.dx .ins-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-1); }
.dx .ins-li { border-bottom: 1px solid var(--line-1); animation: insFade 240ms var(--ins-ease) both; }
.dx .ins-line {
  display: grid; grid-template-columns: 20px minmax(0, 300px) minmax(0, 1fr) auto; align-items: baseline; gap: 4px 14px; width: 100%; min-height: 44px;
  box-sizing: border-box; padding: 11px 8px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background-color 120ms var(--ins-ease);
}
.dx .ins-line:hover { background: var(--surface-hover); }
.dx .ins-line:focus-visible { background: var(--surface-hover-2); }
.dx .ins-line.is-on { background: color-mix(in srgb, var(--surface-card) 100%, var(--ink-1) 7%); box-shadow: inset 2px 0 0 var(--ink-1); }
.dx .ins-line-d { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.dx .ins-line-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 14px; color: var(--ink-1); }
.dx .ins-line-t { min-width: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); overflow-wrap: anywhere; }
.dx .ins-line-r { min-width: 0; font: 14.5px/21px var(--font-doc); color: var(--ink-1); overflow-wrap: anywhere; }
.dx .ins-mine { justify-self: end; padding: 1px 7px; border: 1px solid var(--line-3); border-radius: 999px; font: 500 11px/16px var(--font-ui); color: var(--ink-1); white-space: nowrap; }
.dx .ins-li.is-compact .ins-line { grid-template-columns: 20px minmax(0, 1fr) auto; min-height: 40px; padding: 8px; }
.dx .ins-li.is-below .ins-line-n, .dx .ins-li.is-below .ins-line-t { color: var(--ink-3); }
/* a document's own lines: the rule's words first, the reading under them */
.dx .ins-lines.is-doc .ins-line { grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: "g r m" "g t m"; }
.dx .ins-lines.is-doc .ins-line > .ins-g { grid-area: g; }
.dx .ins-lines.is-doc .ins-line-d { display: none; }
.dx .ins-lines.is-doc .ins-line-r { grid-area: r; }
.dx .ins-lines.is-doc .ins-line-t { grid-area: t; font-size: 13.5px; }
.dx .ins-lines.is-doc .ins-mine { grid-area: m; }
/* the grid: documents down, clause rules across; a cell is a glyph, a miss a faint ink wash */
.dx .ins-grid-w { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line-1); border-radius: 12px; background: var(--surface-card); }
.dx .ins-grid { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 13px; }
.dx .ins-grid th, .dx .ins-grid td { padding: 0; border-bottom: 1px solid var(--line-1); }
.dx .ins-grid tbody tr:last-child > * { border-bottom: 0; }
.dx .ins-gd-h, .dx .ins-gd { position: sticky; left: 0; z-index: 2; background: var(--surface-card); border-right: 1px solid var(--line-1); }
.dx .ins-gd-h { z-index: 3; vertical-align: bottom; padding: 0 16px 12px; text-align: left; font: 600 11px/16px var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.dx .ins-gd { display: table-cell; min-width: 220px; max-width: 280px; padding: 0 16px; text-align: left; font-weight: 500; white-space: nowrap; }
.dx .ins-gd-n { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; color: var(--ink-1); }
.dx .ins-gd .ins-v { margin-left: 6px; vertical-align: middle; }
.dx .ins-gd.is-below .ins-gd-n { color: var(--ink-3); }
.dx .ins-gr-h { height: 176px; width: 44px; min-width: 44px; padding: 10px 0; vertical-align: bottom; border-left: 1px solid var(--line-1); }
.dx .ins-gr-t {
  display: block; max-height: 160px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg);
  font: 500 12px/16px var(--font-ui); color: var(--ink-2); text-align: left;
}
.dx .ins-grid td { border-left: 1px solid var(--line-1); text-align: center; }
.dx .ins-cell {
  position: relative; display: grid; place-items: center; width: 44px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer;
  transition: background-color 120ms var(--ins-ease);
}
.dx .ins-cell[data-st="misses"] { background: color-mix(in srgb, var(--ink-1) 7%, transparent); }
.dx .ins-cell[data-st="partly"], .dx .ins-cell[data-st="needs_eye"] { background: color-mix(in srgb, var(--ink-1) 3.5%, transparent); }
.dx .ins-cell:hover { background: var(--surface-hover-2); }
.dx .ins-cell:focus-visible { background: var(--surface-hover-2); box-shadow: inset 0 0 0 1px var(--ink-2); }
.dx .ins-cell.is-on { background: color-mix(in srgb, var(--ink-1) 12%, transparent); }
.dx .ins-cell-mine { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); }
.dx .ins-cell-mine.is-key { position: static; display: inline-block; margin: 0 2px; }
.dx .ins-grid tbody tr:hover > * { background-color: color-mix(in srgb, var(--surface-card) 100%, var(--ink-1) 2%); }
.dx .ins-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 2px 0; font-size: 12.5px; color: var(--ink-3); }
.dx .ins-lg { display: inline-flex; align-items: center; gap: 6px; }
/* the documents, one card each */
.dx .ins-doc { margin: 0 0 20px; padding: 20px 22px; border: 1px solid var(--line-1); border-radius: 12px; background: var(--surface-card); scroll-margin-top: 16px; animation: insRise 280ms var(--ins-ease) both; }
.dx .ins-doc-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.dx .ins-doc-t { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; flex: 1 1 auto; margin: 0; font: 600 17px/24px var(--font-doc); color: var(--ink-1); overflow-wrap: anywhere; }
.dx .ins-doc-a { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.dx .ins-flag { padding: 1px 8px; border: 1px solid var(--line-3); border-radius: 999px; font: 500 11.5px/16px var(--font-ui); color: var(--ink-1); white-space: nowrap; }
.dx .ins-doc-f { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 2px; margin: 8px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.dx .ins-df-p { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx .ins-doc-c { display: flex; flex-wrap: wrap; align-items: baseline; margin: 6px 0 14px; font-size: 13px; color: var(--ink-3); }
.dx .ins-doc .ins-quiet { margin: 12px 0 0; }

/* the menus (Export, Versions, Assign): the shell's menu, no ring on the item that has the keyboard */
.ins-menu { min-width: 220px; max-width: min(420px, calc(100vw - 16px)); max-height: min(60vh, 420px); overflow-y: auto; }
.ins-menu .ins-mi { display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left; }
.ins-menu .ins-mi:focus-visible { box-shadow: none; outline: none; }
.ins-menu .ins-mi-m { margin-left: auto; padding-left: 12px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ins-menu .ins-v { font: 500 11.5px/1 var(--font-mono); color: var(--ink-3); }
.ins-menu .ins-g { margin-right: 2px; }

/* ---------------------------------------------------------------- COMPARE */
.dx .ins-cmp { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13.5px; }
.dx .ins-cmp th, .dx .ins-cmp td { padding: 12px 16px; border-bottom: 1px solid var(--line-1); text-align: left; vertical-align: top; }
.dx .ins-cmp tbody tr:last-child > * { border-bottom: 0; }
.dx .ins-cmp thead th { vertical-align: bottom; }
.dx .ins-cmp-r { position: sticky; left: 0; z-index: 1; min-width: 280px; width: 42%; background: var(--surface-card); font: 400 14.5px/21px var(--font-doc); color: var(--ink-1); border-right: 1px solid var(--line-1); }
.dx .ins-cmp thead .ins-cmp-r { font: 600 11px/16px var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.dx .ins-cmp-h { min-width: 160px; }
.dx .ins-cmp-h a { display: block; font: 600 14.5px/20px var(--font-doc); color: var(--ink-1); text-decoration: none; overflow-wrap: anywhere; }
.dx .ins-cmp-h a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dx .ins-cmp-h a:focus-visible { background: var(--surface-hover-2); border-radius: 4px; }
.dx .ins-cmp-c { display: flex; flex-wrap: wrap; margin-top: 4px; font: 400 12.5px/18px var(--font-ui); color: var(--ink-3); }
.dx .ins-cc { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.dx .ins-cc.is-none { color: var(--ink-4); }
.dx .ins-cc-p { white-space: nowrap; }
.dx .ins-cc-p.is-misses { color: var(--ink-1); font-weight: 600; }
.dx .ins-cc-p.is-eye { color: var(--ink-1); }
.dx .ins-cc-p.is-meets { color: var(--ink-3); }

/* ---------------------------------------------------------------- THE LIBRARY */
.dx .ins-lib { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.dx .ins-lib-list { position: sticky; top: 16px; display: grid; gap: 2px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 2px; }
.dx .ins-li-pb {
  display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; color: inherit; text-decoration: none; transition: background-color 120ms var(--ins-ease);
}
.dx .ins-li-pb b { font-weight: 500; font-size: 14px; line-height: 20px; color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dx .ins-li-m { display: flex; align-items: baseline; font-size: 12.5px; color: var(--ink-3); }
.dx .ins-li-pb:hover { background: var(--surface-hover); }
.dx .ins-li-pb:focus-visible { background: var(--surface-hover-2); }
.dx .ins-li-pb.is-on { background: color-mix(in srgb, var(--surface-card) 100%, var(--ink-1) 6%); box-shadow: inset 2px 0 0 var(--ink-1); }
.dx .ins-lib-d { min-width: 0; }
.dx .ins-lib-back { display: none; }
.dx .ins-lib-h { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line-1); animation: insFade 220ms var(--ins-ease) both; }
.dx .ins-lib-ht { min-width: 0; flex: 1 1 360px; }
.dx .ins-lib-ht .ins-eyebrow { margin: 0 0 4px; }
.dx .ins-lib-t { display: flex; align-items: center; gap: 6px; margin: 0; font: 600 22px/30px var(--font-doc); color: var(--ink-1); overflow-wrap: anywhere; }
.dx .ins-rename { width: 100%; height: 40px; box-sizing: border-box; padding: 0 10px; margin-left: -10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-card); color: var(--ink-1); font: 600 22px/30px var(--font-doc); }
.dx.dx .ins-rename:focus { outline: none; box-shadow: none; border-color: var(--ink-2); }
.dx .ins-lib-a { margin: 6px 0 0; max-width: 72ch; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.dx .ins-lib-m { display: flex; flex-wrap: wrap; align-items: baseline; margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.dx .ins-lib-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dx .ins-contra { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.dx .ins-contra-l { margin: 6px 0 0; padding-left: 24px; color: var(--ink-2); font-size: 13px; line-height: 20px; }
/* team playbooks: a small lock on one only its owners change; open proposals for its owners, one quiet row each */
.dx .ins-lock { flex: none; display: inline-block; margin-right: 5px; vertical-align: -1px; color: var(--ink-3); }
.dx .ins-locked { display: inline-flex; align-items: baseline; }
.dx .ins-props { margin: 18px 0 0; }
.dx .ins-props-l { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-card); }
.dx .ins-props-l li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 12px 12px 12px 16px; border-top: 1px solid var(--line-1); animation: insRise 240ms var(--ins-ease) both; }
.dx .ins-props-l li:first-child { border-top: 0; }
.dx .ins-pp-m { display: grid; gap: 3px; min-width: 0; flex: 1 1 320px; }
.dx .ins-pp-w { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; font-size: 12.5px; color: var(--ink-3); }
.dx .ins-pp-w > span:first-child { color: var(--ink-1); font-weight: 600; }
.dx .ins-pp-t { display: flex; flex-wrap: wrap; align-items: baseline; font: 14.5px/22px var(--font-doc); color: var(--ink-1); }
.dx .ins-pp-a { display: inline-flex; align-items: center; gap: 8px; }
.dx .ins-lib-agent { margin: 20px 0 0; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-card); animation: insRise 240ms var(--ins-ease) both; }
.dx .ins-lib-agent-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dx .ins-lib-agent-h b { font: 600 15px/22px var(--font-doc); color: var(--ink-1); }
.dx .ins-verbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 0; padding: 10px 12px 10px 16px; border: 1px dashed var(--line-3); border-radius: 10px; font-size: 13.5px; color: var(--ink-1); }
.dx .ins-verbar-a { display: inline-flex; align-items: center; gap: 8px; }
.dx .ins-topic { margin: 32px 0 0; }
.dx .ins-topic-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font: 600 11px/16px var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.dx .ins-topic-n { font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--ink-4); }
.dx .ins-rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-1); }
.dx .ins-r { border-bottom: 1px solid var(--line-1); animation: insFade 240ms var(--ins-ease) both; }
.dx .ins-r-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 12px 4px; }
.dx .ins-lv { font-size: 12px; line-height: 1; color: var(--ink-3); cursor: default; text-align: center; }
.dx .ins-lv[data-lv="measured"] { color: var(--ink-1); }
.dx .ins-r-c { min-width: 0; }
.dx .ins-r-t { margin: 0; font: 15px/23px var(--font-doc); color: var(--ink-1); overflow-wrap: anywhere; }
.dx .ins-r-meas { display: flex; flex-wrap: wrap; align-items: baseline; margin: 3px 0 0; font-size: 12px; line-height: 16px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dx .ins-val.is-edit {
  display: inline; padding: 0 2px; margin: 0 -1px; border: 0; border-radius: 3px; background: none; color: inherit; font: inherit; cursor: text;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink-1) 55%, transparent);
  transition: background-color 120ms var(--ins-ease);
}
.dx .ins-val.is-edit:hover { background: var(--surface-hover-2); text-decoration-color: var(--ink-1); }
.dx .ins-val.is-edit:focus-visible { background: var(--surface-hover-2); }
.dx .ins-val-in {
  height: 26px; box-sizing: border-box; padding: 0 6px; margin: 0 2px; border: 1px solid var(--ink-2); border-radius: 5px; background: var(--surface-card);
  color: var(--ink-1); font: inherit; font-size: 14.5px; vertical-align: baseline;
}
.dx.dx .ins-val-in:focus { outline: none; box-shadow: none; }
.dx .ins-ved { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 4px 12px 36px; animation: insRise 180ms var(--ins-ease) both; }
.dx .ins-ved-q { font-size: 13px; color: var(--ink-2); }
.dx .ins-r-m { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.dx .ins-tally-l { display: inline-flex; align-items: baseline; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dx .ins-used { padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11.5px; line-height: 16px; color: var(--ink-2); }
.dx .ins-r-more { padding: 0 4px 16px 36px; animation: insRise 200ms var(--ins-ease) both; }
.dx .ins-rd { display: grid; gap: 10px; margin: 0; }
.dx .ins-rd-r { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; }
.dx .ins-rd dt { font-size: 12.5px; line-height: 20px; color: var(--ink-3); }
.dx .ins-rd dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; font-size: 13.5px; line-height: 20px; color: var(--ink-1); min-width: 0; }
.dx .ins-checks { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.dx .ins-ck-a { display: block; color: var(--ink-1); }
.dx .ins-ck-o { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.dx .ins-opt { display: inline-flex; align-items: baseline; gap: 3px; }
.dx .ins-opt.is-meets, .dx .ins-opt.is-partly { color: var(--ink-1); }
.dx .ins-opt .ins-g { font-size: 12px; }
.dx .ins-fig { display: inline-flex; flex-wrap: wrap; align-items: baseline; }
.dx .ins-tiers { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.dx .ins-select {
  height: 32px; padding: 0 30px 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background-color: var(--surface-card); color: var(--ink-1); font: 13px/1 var(--font-ui);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a909a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.dx .ins-select:hover { border-color: var(--line-3); }
.dx.dx .ins-select:focus { outline: none; box-shadow: none; border-color: var(--ink-2); }
.dx .ins-ex { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dx .ins-ex li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.dx .ins-ex-v { font-weight: 600; }
.dx .ins-rd-a { margin-top: 10px; }

/* ---------------------------------------------------------------- narrow: the page's own width, not the window's */
@container main (max-width: 1200px) {
  .dx .ins-cols { grid-template-columns: minmax(0, 1fr); }
  .dx .ins-toc { display: none; }
}
@container main (max-width: 900px) {
  .dx .ins-lib { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .dx .ins-lib-list { position: static; max-height: none; }
  .dx .ins-lib[data-has-pid] .ins-lib-list { display: none; }
  .dx .ins-lib[data-has-pid] .ins-lib-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 12px; color: var(--ink-3); font: 500 13px/1 var(--font-ui); text-decoration: none; }
  .dx .ins-ov-cols { grid-template-columns: minmax(0, 1fr); }
  .dx .ins-line { grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: "g d m" "g t t"; }
  .dx .ins-line > .ins-g { grid-area: g; }
  .dx .ins-line-d { grid-area: d; }
  .dx .ins-line-t { grid-area: t; }
  .dx .ins-line-r { grid-area: t; }
  .dx .ins-line .ins-mine { grid-area: m; }
  .dx .ins-li.is-compact .ins-line { grid-template-areas: "g d m"; }
  .dx .ins-rd-r { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@container main (max-width: 720px) {
  .dx .v2p.ins-compose { padding-bottom: 0; }
  .dx .ins-name { height: 40px; font-size: 22px; line-height: 30px; }
  .dx .ins-row { grid-template-columns: minmax(0, 1fr); padding: 0 16px 14px 0; }
  .dx .ins-row.has-ck { grid-template-columns: 38px minmax(0, 1fr); }
  .dx .ins-row-main { padding: 16px 0 6px 16px; }
  .dx .ins-row-side { grid-column: 1 / -1; justify-content: flex-start; padding-left: 16px; flex-wrap: wrap; }
  .dx .ins-row.has-ck .ins-row-side { padding-left: 54px; margin-left: 0; }
  .dx .ins-row-t { white-space: normal; }
  .dx .ins-prog-bar { width: 96px; }
  .dx .ins-invite { flex-direction: column; align-items: flex-start; padding: 20px; }
  .dx .ins-chip { height: 40px; }
  .dx .ins-seg { display: grid; grid-auto-flow: row; width: 100%; box-sizing: border-box; }
  .dx .ins-seg button { height: 40px; }
  .dx .ins-describe { flex-direction: column; }
  .dx .ins-describe .btn { height: 40px; }
  .dx .ins-pb { grid-template-columns: 22px minmax(0, 1fr); }
  .dx .ins-pb-n { grid-column: 2; justify-items: start; }
  .dx .ins-pb-m b, .dx .ins-pb-a { white-space: normal; }
  .dx .ins-scope { flex-direction: column; align-items: flex-start; }
  .dx .ins-sw { min-height: 40px; }
  .dx .ins-runline { margin: 8px -16px 0; }
  .dx .ins-rl-a { width: 100%; margin-left: 0; justify-content: flex-end; flex-wrap: wrap; }
  .dx .ins-rl-a .btn { height: 44px; }
  .dx .ins-head { align-items: stretch; }
  .dx .ins-views, .dx .ins-kinds { width: 100%; box-sizing: border-box; }
  .dx .ins-view, .dx .ins-kind { height: 36px; }
  .dx .ins-mr-h, .dx .ins-mrow { padding: 12px 16px; }
  .dx .ins-mrow { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .dx .ins-mrow-dc { grid-column: 2 / -1; justify-content: flex-start; }
  .dx .ins-line { min-height: 48px; }
  .dx .ins-doc { padding: 16px; }
  .dx .ins-doc-a { margin-left: 0; width: 100%; }
  .dx .ins-r-row { grid-template-columns: 20px minmax(0, 1fr); }
  .dx .ins-r-m { grid-column: 2; flex-wrap: wrap; white-space: normal; }
  .dx .ins-r-more, .dx .ins-ved { padding-left: 4px; }
  .dx .ins-ib { width: 40px; height: 40px; }
  .dx .ins-lib-acts .btn { height: 40px; }
  .dx .ins-cmp-r { min-width: 200px; }
  .dx .ins-gd { min-width: 140px; }
  .dx .ins-gd-n { max-width: 140px; }
  .dx .ins-selbar { width: 100%; box-sizing: border-box; border-radius: 12px; }
}

/* ---------------------------------------------------------------- PAPER: the memo alone (?print=1, and the reader's own Ctrl+P) */
html[data-ins-print] *:has([data-insight-results]) {
  display: block !important; position: static !important; height: auto !important; min-height: 0 !important; max-height: none !important;
  overflow: visible !important; transform: none !important; grid-template-columns: none !important;
}
html[data-ins-print] *:has([data-insight-results]) > :not(:has([data-insight-results])):not([data-insight-results]) { display: none !important; }
html[data-ins-print] [data-insight-results] .ins-noprint { display: none !important; }
html[data-ins-print] .dx .v2p.ins { max-width: 760px; padding: 24px 0 40px; margin: 0; }
@media print {
  *:has([data-insight-results]) {
    display: block !important; position: static !important; height: auto !important; min-height: 0 !important; max-height: none !important;
    overflow: visible !important; transform: none !important; background: var(--surface-card) !important;
  }
  *:has([data-insight-results]) > :not(:has([data-insight-results])):not([data-insight-results]) { display: none !important; }
  .dx .v2p.ins { max-width: none; padding: 0; margin: 0; }
  [data-insight-results] .ins-noprint, [data-insight-results] .v2p-head-a, .ins-menu { display: none !important; }
  [data-insight-results] * { animation: none !important; transition: none !important; }
  .dx .ins-cols { display: block; }
  .dx .ins-ms { margin-bottom: 28px; break-inside: auto; }
  .dx .ins-ms-h { break-after: avoid; }
  .dx .ins-mst { margin-bottom: 28px; break-inside: avoid; }
  /* a rule may run on to the next page (held whole, a long one left half a page empty); its header stays with its first line */
  .dx .ins-mr { break-inside: auto; margin-bottom: 18px; }
  .dx .ins-mr-h { break-inside: avoid; break-after: avoid; }
  .dx .ins-mrow, .dx .ins-mreq li, .dx .ins-li { break-inside: avoid; }
  .dx .ins-mrow { padding: 10px 16px; }
  .dx .ins-line { padding: 6px 4px; min-height: 0; }
  /* the states' tints print: a tile, a pill, the region's warm header */
  .dx .ins-g, .dx .irv-tile, .dx .irv-dp, .dx .irv-rtag, .dx .irv-cl, .dx .irv-flag, .dx .ins-mst-i, .dx .ins-mr-h { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
