/* ============================================================
   Sentinel Docs — contract lifecycle.
   One ink, hairlines instead of boxes, colour only where it means
   something (late = red, soon = amber). Serif is reserved for
   contract text. Pages respond to their container, not the window.
============================================================ */
.app .dx.dx {
  /* design system v2: the Docs names are aliases of the generated tokens (v2/tokens.css), so the Docs pages paint in
     the same system as the app - one brand, the same inks, lines, severities and elevation in every theme */
  --ink: var(--text-primary);
  --ink-2: var(--text-secondary);
  --ink-3: var(--text-muted);
  --ink-4: var(--text-faint);
  --line: var(--border-hairline);
  --line-2: var(--border-subtle);
  --canvas: var(--bg-doc);
  --panel: var(--bg-pane);
  --hover: var(--bg-soft);
  --hover-2: var(--bg-soft2);
  --red: var(--severity-critical);
  --amber: var(--warn, #a14a07);
  --green: var(--severity-success);
  --blue: var(--brand-blue);
  --serif: var(--font-doc);
  --shadow: var(--e3, 0 1px 2px rgba(16, 20, 26, .04), 0 12px 32px -8px rgba(16, 20, 26, .12));
  --ease: cubic-bezier(.2, .7, .2, 1);

  display: grid;
  grid-template-columns: var(--library-w) minmax(0, 1fr);       /* the side nav as wide as the app's library */
  grid-template-rows: 100vh;
  height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.app .dx.dx :where(a) { color: inherit; text-decoration: none; }
.dx.dx .ic { flex: none; display: block; }
.dx.dx .num { font-variant-numeric: tabular-nums; }
.dx.dx .muted { color: var(--ink-3); }
.dx.dx .small { font-size: 12.5px; }
.dx.dx .red { color: var(--red); }
.dx.dx .amber { color: var(--amber); }
.dx.dx .serif { font-family: var(--serif); }
.dx.dx .nowrap { white-space: nowrap; }
.dx.dx b { font-weight: 500; }
.dx.dx kbd {
  font: 500 11px/1 var(--font-ui); color: var(--ink-3);
  padding: 3px 5px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--canvas);
}
.dx.dx mark { background: color-mix(in srgb, var(--amber) 22%, transparent); color: inherit; border-radius: 2px; }
.dx.dx ::selection { background: color-mix(in srgb, var(--blue) 20%, transparent); color: var(--ink); }
/* the dark theme's highlight is opaque here too (styles.css, the Midnight block): light ink on a 20 % wash vanished on a light
   button or tag (the owner, 2026-10-13) */
.app[data-theme="midnight"] .dx.dx ::selection { background: #4a56a6; color: #ffffff; }
.app[data-theme="eclipse"] .dx.dx ::selection { background: #4a56a6; color: #ffffff; }

/* ---------------- buttons ---------------- */
/* the app's buttons (styles.css .btn): its height, its type, its navy primary */
.dx.dx .btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 6px;
  border: 1px solid var(--border-subtle); background: var(--bg-pane); color: var(--ink);
  font: 550 12.5px var(--font-ui); letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
  transition: background .12s, border-color .12s, opacity .12s;
}
.dx.dx .btn:hover { background: var(--bg-soft); }
.dx.dx .btn:disabled { opacity: .45; cursor: default; }
.dx.dx .btn .ic { color: var(--ink-3); }
.dx.dx .btn-primary { background: var(--brand-navy); border-color: var(--brand-navy); color: var(--text-inverse); }
.dx.dx .btn-primary .ic { color: inherit; }
.dx.dx .btn-primary:hover { background: var(--brand-navy-hover); border-color: var(--brand-navy-hover); }
.dx.dx .btn-sm { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.dx.dx .btn-ghost { border-color: transparent; background: transparent; color: var(--ink-3); }
.dx.dx .btn-ghost:hover { color: var(--ink); background: var(--hover); }
.dx.dx .icon-btn {
  width: 30px; height: 30px; border-radius: 6px; border: 0; background: transparent;
  color: var(--ink-3); display: inline-grid; place-items: center; cursor: pointer;
}
.dx.dx .icon-btn:hover { background: var(--hover); color: var(--ink); }
.dx.dx .lnk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-3); }
.dx.dx .lnk:hover { color: var(--ink); }
.dx.dx .plain:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* ============================================================
   Sidebar
============================================================ */
/* the side nav, as the app's library (styles.css .library, .lib-head; explorer.css .xp-search, .xp-row) */
.dx .dx-side {
  background: var(--bg-pane); border-right: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; padding: 0 0 14px;
  overflow-y: auto; min-height: 0; scrollbar-width: thin;
}
.dx .sd-brand {
  display: flex; align-items: center; gap: 8px; flex: none; height: var(--modebar-h); padding: 0 16px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
}
.dx .sd-brand b { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.dx .sd-tag { font-size: 10.5px; font-weight: 500; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 6px; line-height: 17px; cursor: help; }
.dx .sd-search {
  display: flex; align-items: center; gap: 8px; width: auto; height: 30px; margin: 0 12px; padding: 0 8px 0 10px; flex: none;
  border-radius: 8px; border: 1px solid transparent; background: var(--bg-sunken);
  color: var(--ink-3); font: 12.5px var(--font-ui); cursor: pointer; transition: border-color .12s, background .12s;
}
.dx .sd-search:hover { border-color: var(--border-subtle); color: var(--ink-2); }
.dx .sd-search kbd { margin-left: auto; }
.dx .sd-group { margin-top: 18px; padding: 0 12px; display: flex; flex-direction: column; gap: 1px; }
.dx .sd-label { font-size: 12px; font-weight: 500; color: var(--ink-3); padding: 0 10px 6px; }
.dx .sd-item {
  position: relative; display: flex; align-items: center; gap: 10px; height: 31px; padding: 0 10px; border-radius: 7px;
  color: var(--ink-2); font-size: 13px; transition: background .1s;
}
.dx .sd-item .ic { color: var(--ink-3); }
.dx .sd-item:hover { background: var(--bg-soft); }
.dx .sd-item.is-on { background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--ink); font-weight: 600; }
.dx .sd-item.is-on::before {             /* the page open, marked as the library marks the open document */
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--accent);
}
.dx .sd-item.is-on .ic { color: var(--ink); }
.dx .sd-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx .sd-n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 400; }
.dx .sd-n.is-alert { color: var(--red); font-weight: 500; }
.dx .sd-foot { margin-top: auto; padding: 16px 22px 0; display: flex; gap: 9px; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.dx .sd-live { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-top: 6px; }
/* the legal links under the side nav (WS11-T02): quiet, one click to each published page */
.dx .sd-legal { padding: 10px 10px 0; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11px; line-height: 1.5; }
.dx .sd-legal a { color: var(--ink-3); text-decoration: none; }
.dx .sd-legal a:hover, .dx .sd-legal a:focus-visible { color: var(--ink); text-decoration: underline; }

/* ============================================================
   Main, top bar
============================================================ */
/* the page and its bar, as the app's (styles.css .main, .mode-bar): its page colour, its height, its "PAGE / name" heading */
.dx .dx-main { display: grid; grid-template-rows: var(--modebar-h) minmax(0, 1fr); background: var(--bg-app); min-width: 0; min-height: 0; }
.dx .dx-top { display: flex; align-items: center; gap: 6px; padding: 0 16px 0 22px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-app); min-width: 0; }
.dx .dx-top .btn { margin-left: 6px; }
.dx .tb-menu { display: none !important; margin-left: -8px; }
.dx .tb-sp { flex: 1; }
.dx .crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); min-width: 0; white-space: nowrap; overflow: hidden; }
.dx .crumbs a:hover { color: var(--ink); }
.dx .cr-sep { color: var(--ink-4); }
.dx .cr-now { color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: -.005em; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dx .dx-scroll { overflow-y: auto; overflow-x: hidden; min-height: 0; container: main / inline-size; scrollbar-gutter: stable; }

/* ============================================================
   Page scaffolding
============================================================ */
.dx .pg { max-width: 1000px; margin: 0 auto; padding: 36px 40px 96px; }
.dx .pg-wide { max-width: 1200px; }
.dx #dxPage.is-enter .pg { animation: dx-in .28s var(--ease) both; }
@keyframes dx-in { from { opacity: 0; transform: translateY(4px); } }

.dx .ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.dx .ph-t { min-width: 0; }
.dx .ph h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.022em; }
.dx .ph-sub { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); max-width: 62ch; }
.dx .ph-act { display: flex; gap: 8px; flex: none; }
.dx.dx .eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.dx .ph-home { margin-bottom: 40px; }
.dx .ph-home h1 { font-size: 30px; }
.dx .ph-ent .ent { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dx .ph-c { margin-bottom: 28px; align-items: flex-end; }
.dx .c-cp { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.dx .c-cp:hover { color: var(--ink); }
.dx .c-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }

.dx .sec { margin-top: 56px; }
.dx .sec-first { margin-top: 0; }
.dx .sec-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; min-height: 28px; }
.dx .sec-h h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.dx .sec-meta { font-size: 13px; color: var(--ink-3); }
.dx .sec-note { margin: -6px 0 16px; font-size: 13px; color: var(--ink-3); }
.dx .lede { margin: 0 0 28px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 66ch; }
.dx .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.dx .narrow { max-width: 680px; }
.dx .empty { padding: 56px 0; text-align: center; color: var(--ink-3); }

/* ---------------- stats ---------------- */
.dx .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dx .stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 8px; }
.dx .stat { display: flex; flex-direction: column; padding: 20px 24px 20px 0; min-width: 0; }
.dx .stat + .stat { border-left: 1px solid var(--line); padding-left: 24px; }
.dx .stat-l { font-size: 13px; color: var(--ink-3); transition: color .12s; }
.dx a.stat:hover .stat-l { color: var(--ink); }
.dx .stat-v { margin: 6px 0 2px; font-size: 30px; line-height: 1.15; font-weight: 500; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.dx .stat-s { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- list rows ---------------- */
.dx .list { margin: 0 -12px; }
.dx .row { position: relative; display: flex; align-items: center; gap: 20px; padding: 14px 12px; border-radius: 8px; min-width: 0; }
.dx .row + .row::before { content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 1px; background: var(--line); }
.dx .row[data-go] { cursor: pointer; transition: background .1s; }
.dx .row[data-go]:hover { background: var(--hover); }
.dx .row[data-go]:hover::before, .dx .row[data-go]:hover + .row::before { opacity: 0; }
.dx .row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dx .row-main b { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx .row-main > span { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx .row-end { display: flex; align-items: center; gap: 14px; flex: none; font-size: 13px; }
.dx .row-end.col { flex-direction: column; align-items: flex-end; gap: 1px; }
.dx .row-end small { font-size: 12px; color: var(--ink-3); }
.dx .row-act .btn { opacity: 0; transition: opacity .12s; }
.dx .row-act:hover .btn, .dx .row-act:focus-within .btn { opacity: 1; }
.dx .when { flex: 0 0 72px; display: flex; flex-direction: column; line-height: 1.3; }
.dx .when b { font-size: 14px; font-variant-numeric: tabular-nums; }
.dx .when span { font-size: 12px; color: var(--ink-3); }
.dx .when.red b, .dx .when.red span { color: var(--red); }
.dx .when.amber b, .dx .when.amber span { color: var(--amber); }
.dx .holder { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.dx .w-d { width: 28px; text-align: right; }
.dx .w-days { min-width: 88px; text-align: right; }
.dx .w-val { min-width: 56px; text-align: right; }
.dx .grp { font-size: 13px; font-weight: 600; padding: 28px 12px 6px; }
.dx .grp span { color: var(--ink-3); font-weight: 400; }
.dx .list-dl .grp:first-child { padding-top: 4px; }
.dx .list-dl .grp + .row::before { display: none; }
.dx .row-dl .when { flex-basis: 44px; }
.dx .row-dl .when b { font-size: 18px; font-weight: 500; }
.dx .row-dl.is-minor .row-main b { color: var(--ink-2); font-weight: 400; }
.dx .row-hist s { color: var(--ink-3); }
.dx .row-tree.lvl-1 { padding-left: 40px; }
.dx .row-tree.lvl-1::after { content: ""; position: absolute; left: 22px; top: 0; height: 50%; width: 10px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-bottom-left-radius: 6px; }

/* ---------------- bars, segmented, fields ---------------- */
.dx .bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.dx .bar-sp { flex: 1; }
.dx .seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--hover); border-radius: 9px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.dx .seg button {
  height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  font: 500 13px var(--font-ui); color: var(--ink-3); white-space: nowrap; transition: color .12s, background .12s;
}
.dx .seg button:hover { color: var(--ink); }
/* a strip wider than its place (a phone): the edge with more behind it fades, so the rest is seen to be there (DX-09) */
.dx .seg.ovf-r, .dx .tabs.ovf-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.dx .seg.ovf-l, .dx .tabs.ovf-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); }
.dx .seg.ovf-l.ovf-r, .dx .tabs.ovf-l.ovf-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.dx .seg button.is-on { background: var(--canvas); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 .5px var(--line-2); }
.dx .seg button span { margin-left: 6px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.dx .seg button.is-on span { color: var(--ink-3); }
.dx .sec-h .seg button { height: 26px; font-size: 12.5px; }
.dx .field, .dx .select {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--canvas); color: var(--ink-3);
}
.dx .field:focus-within, .dx .select:focus-within { border-color: var(--ink-4); }
.dx .field input { width: 200px; border: 0; outline: 0; background: transparent; font: 13.5px var(--font-ui); color: var(--ink); }
.dx .field input::placeholder { color: var(--ink-3); }
.dx .select { position: relative; padding-left: 7px; }
.dx .select select { appearance: none; border: 0; outline: 0; background: transparent; font: 500 13.5px var(--font-ui); color: var(--ink); padding-right: 4px; cursor: pointer; }
.dx .select select option { background: var(--canvas); color: var(--ink); }

/* ---------------- tables ---------------- */
.dx .tbl-w { margin: 0 -12px; overflow-x: auto; }
.dx .tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.dx .tbl th {
  text-align: left; font-weight: 500; font-size: 12.5px; color: var(--ink-3);
  height: 40px; padding: 0 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.dx .tbl td { padding: 12px; height: 60px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.dx .tbl tbody tr:last-child td { border-bottom: 0; }
.dx .tbl tr[data-go] { cursor: pointer; }
.dx .tbl tbody tr { transition: background .1s; }
.dx .tbl tbody tr:hover td { background: var(--hover); }
.dx .tbl tbody tr:hover td:first-child { border-radius: 8px 0 0 8px; }
.dx .tbl tbody tr:hover td:last-child { border-radius: 0 8px 8px 0; }
.dx .tbl .r { text-align: right; }
.dx .tbl .clip { max-width: 440px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx .tbl b { color: var(--ink); }
.dx .cell-main { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.dx .cell-main > div { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.dx .cell-main b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 380px; }
.dx .cell-main span { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx .sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; }
.dx .tr-empty td { text-align: center; color: var(--ink-3); height: 96px; }
.dx .cb { width: 44px; }
.dx .check {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--canvas);
  color: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; transition: all .12s;
}
.dx .check:hover { border-color: var(--ink-3); }
.dx .check.is-on { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.dx tr.is-done .obl-t { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.dx .obl-t { font-weight: 400; }

/* ---------------- tokens ---------------- */
.dx .av, .dx .mono {
  width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center;
  font: 600 calc(var(--s) * .38)/1 var(--font-ui); letter-spacing: .01em;
}
.dx .av { border-radius: 50%; background: var(--hover-2); color: var(--ink-2); }
.dx .av-sys { color: var(--ink-2); }
.dx .mono { border-radius: calc(var(--s) * .26); background: var(--canvas); border: 1px solid var(--line-2); color: var(--ink-2); font-size: calc(var(--s) * .34); }
.dx .st { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; --c: var(--ink-4); }
.dx .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.dx .st-active { --c: var(--green); }
.dx .st-review, .dx .st-negotiation { --c: var(--amber); }
.dx .st-signing { --c: var(--blue); }
.dx .st-ending { --c: var(--red); color: var(--red); }
.dx .sev { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.dx .sev::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: currentColor; }
.dx .sev-critical { color: var(--red); }
.dx .sev-high { color: var(--severity-high); }
.dx .sev-medium { color: var(--amber); }
.dx .sev-low { color: var(--ink-3); }
.dx .ref {
  display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--canvas);
  font: 500 12px var(--font-mono); color: var(--ink-2); white-space: nowrap; transition: border-color .12s, color .12s;
}
.dx a.ref:hover { border-color: var(--ink-3); color: var(--ink); }
.dx .ref-plain { color: var(--ink-3); }
.dx .src { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--hover); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; max-width: 100%; }
.dx .src span { overflow: hidden; text-overflow: ellipsis; }
.dx .src .ic { color: var(--ink-3); }
.dx .tag { font-size: 11.5px; font-weight: 500; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 6px; line-height: 18px; }
.dx .mention { color: var(--ink); background: var(--hover); border-radius: 4px; padding: 0 3px; font-weight: 500; }
.dx .chain { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.dx .chain .is-done { color: var(--ink-3); }
.dx .chain .is-now { color: var(--ink); font-weight: 500; }
.dx .chain .is-next { color: var(--ink-4); }
.dx .chain-sep { color: var(--ink-4); }

/* ---------------- tabs ---------------- */
.dx .tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 36px; overflow-x: auto; scrollbar-width: none; }
.dx .tabs a {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; margin-bottom: -1px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap;
  border-bottom: 1.5px solid transparent; transition: color .12s;
}
.dx .tabs a:hover { color: var(--ink-2); }
.dx .tabs a.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.dx .tabs a span { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.dx .tabs a .t-alert { color: var(--red); }

/* ============================================================
   Contract + counterparty
============================================================ */
.dx .two { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.dx .aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.dx .box { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.dx .box-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.dx .box-h h3 { margin: 0; font-size: 13.5px; font-weight: 600; }
.dx .box .box-note { margin: 2px 0 16px; }
.dx .box p { margin: 6px 0 0; }
.dx .ctx { margin: 0; }
.dx .ctx dt { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }
.dx .ctx dt:first-child { margin-top: 0; }
.dx .ctx dd { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; }
.dx .ctx ul { margin: 0; padding-left: 16px; }
.dx .ctx li + li { margin-top: 3px; }
.dx .facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 13px; }
.dx .facts dt { color: var(--ink-3); }
.dx .facts dd { margin: 0; text-align: right; color: var(--ink-2); }
.dx .facts-lg { padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); gap: 14px 16px; }
.dx .facts-lg dd { font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.dx .aside > .sd-label { padding: 8px 0 0; }
.dx .aside .feed { gap: 16px; }
.dx .route { list-style: none; margin: 10px 0 0; padding: 0; }
.dx .route li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.dx .route li:last-child { padding-bottom: 0; }
.dx .route li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 16px; bottom: 2px; width: 1px; background: var(--line-2); }
.dx .route-dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--ink-4); box-sizing: border-box; }
.dx .route li.is-now .route-dot { background: var(--canvas); border: 2px solid var(--ink); }
.dx .route li.is-next .route-dot { background: var(--canvas); border: 1px dashed var(--ink-4); }
.dx .route b { display: block; font-size: 13.5px; }
.dx .route li.is-next b { color: var(--ink-3); font-weight: 400; }
.dx .route span { font-size: 12.5px; color: var(--ink-3); }
.dx .rel a { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
.dx .rel a:first-child { border-top: 0; padding-top: 6px; }
.dx .rel a span { display: block; font-size: 12px; color: var(--ink-3); }
.dx .rel a b { font-size: 13.5px; }
.dx .rel a:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

.dx .callout { padding: 20px 22px; border-radius: 12px; background: var(--hover); }
.dx .callout.is-urgent { background: color-mix(in srgb, var(--red) 4%, var(--hover)); }
.dx .callout-l { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.dx .callout p { margin: 0; font-size: 16px; line-height: 1.55; }
.dx .callout p b { font-weight: 600; }
.dx .callout-act { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 13.5px; font-weight: 500; }
.dx .callout + .sec { margin-top: 44px; }

.dx .kv { margin: 0; border-top: 1px solid var(--line); }
.dx .kv-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dx .kv-row dt { font-size: 13.5px; color: var(--ink-3); }
.dx .kv-row dd { margin: 0; font-size: 13.5px; }
.dx .changed { margin-left: 10px; font-size: 12px; color: var(--amber); cursor: help; white-space: nowrap; }
.dx .quote { margin: 0; padding: 20px 24px; border-radius: 10px; background: var(--hover); font: 15px/1.7 var(--serif); color: var(--ink-2); }
.dx .quote b { color: var(--ink); font-weight: 600; }

.dx .findings { border-top: 1px solid var(--line); }
.dx .finding { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.dx .finding-sev { padding-top: 2px; }
.dx .finding h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.dx .finding p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; }
.dx .trace { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dx .trace-l { font-size: 12px; color: var(--ink-3); }
.dx .trace .ref + .trace-l { margin-left: 10px; }
.dx .find-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.dx .find-head .lede { margin: 0; }

.dx .conflict { padding: 26px 0; border-bottom: 1px solid var(--line); }
.dx .lede + .conflict { border-top: 1px solid var(--line); }
.dx .conflict-h { display: flex; align-items: baseline; gap: 16px; }
.dx .conflict-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.dx .conflict-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.dx .cq { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; transition: border-color .12s; }
.dx .cq:hover { border-color: var(--ink-4); }
.dx .cq-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.dx .cq .serif { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.dx .conflict > p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 72ch; }

/* ---------------- document paper ---------------- */
.dx .paper {
  background: var(--canvas); border: 1px solid var(--line); border-radius: 6px; padding: 56px 64px 48px;
  box-shadow: 0 1px 2px rgba(16, 20, 26, .03), 0 18px 40px -20px rgba(16, 20, 26, .14);
  font-family: var(--serif); color: var(--ink); min-width: 0;
}
.dx .paper-read { max-width: 760px; margin: 0 auto; }
.dx .paper-t { margin: 0 0 32px; text-align: center; font: 600 22px/1.3 var(--serif); letter-spacing: -.01em; }
.dx .paper-p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.dx .paper-p b { color: var(--ink); font-weight: 600; }
.dx .paper-cl { scroll-margin-top: 96px; border-radius: 6px; transition: background .3s; }
.dx .paper-cl h3 { margin: 30px 0 8px; font: 600 14px/1.4 var(--font-ui); letter-spacing: -.005em; display: flex; align-items: baseline; gap: 10px; }
.dx .paper-cl p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.dx .cl-ref { font: 500 12px var(--font-mono); color: var(--ink-3); }
.dx .paper-cl.is-sel { background: var(--hover); margin: 16px -24px 0; padding: 2px 24px 18px; }
.dx .paper-cl.is-sel h3 { margin-top: 14px; }
.dx .paper-cl.is-flash { animation: dx-flash 2.4s ease-out; margin: 0 -24px; padding: 2px 24px 14px; }
@keyframes dx-flash { 0%, 35% { background: color-mix(in srgb, var(--amber) 14%, transparent); } 100% { background: transparent; } }
.dx .paper-cl p.is-amended { box-shadow: -14px 0 0 -12px var(--blue); }
.dx .note-m { margin-top: 10px; font: 12.5px/1.5 var(--font-ui); color: var(--ink-3); }
.dx .note-m summary { display: inline; margin-left: 6px; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.dx .note-m .orig { margin: 8px 0 0; font: 14.5px/1.7 var(--serif); color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.dx .note-m.is-pending { color: var(--amber); }
.dx .orig-new { margin: 8px 0 0; padding-left: 14px; border-left: 2px solid color-mix(in srgb, var(--amber) 50%, transparent); font: 14.5px/1.7 var(--serif); color: var(--ink-2); }
.dx .paper-end { margin: 44px 0 0; text-align: center; font: 12.5px var(--font-ui); color: var(--ink-3); }
.dx .pos-tag { font: 500 11.5px var(--font-ui); color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); border-radius: 4px; padding: 0 6px; }
.dx mark.var { background: color-mix(in srgb, var(--blue) 11%, transparent); border-radius: 3px; padding: 0 2px; box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--blue) 45%, transparent); color: var(--ink); cursor: help; }

/* ---------------- templates ---------------- */
.dx .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.dx .tile { display: flex; flex-direction: column; gap: 3px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .12s, box-shadow .15s; }
.dx .tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.dx .tile b { font-size: 14px; margin-top: 16px; }
.dx .tile .muted { font-size: 12.5px; }
.dx .tile-page { width: 34px; height: 44px; border: 1px solid var(--line-2); border-radius: 3px; padding: 9px 7px; display: flex; flex-direction: column; gap: 4px; background: var(--canvas); }
.dx .tile-page i { height: 2px; border-radius: 1px; background: var(--line-2); }
.dx .tile-page i:nth-child(2) { width: 75%; }
.dx .tile-page i:nth-child(4) { width: 50%; }
.dx .tpl { display: grid; grid-template-columns: 196px minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.dx .tpl-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 1px; }
.dx .tpl-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; color: var(--ink-2); }
.dx .tpl-nav a:hover { background: var(--hover); }
.dx .tpl-nav a.is-on { background: var(--hover-2); color: var(--ink); font-weight: 500; }
.dx .tpl-nav a .num { color: var(--ink-4); width: 12px; font-size: 12px; }
.dx .tpl-flag { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.dx .tpl .paper { padding: 48px 52px 40px; }
.dx .ladder { position: sticky; top: 24px; }
.dx .ladder .sd-label { padding: 0; }
.dx .ladder h3 { margin: 6px 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.dx .ladder > p { margin: 0; }
.dx .lad { list-style: none; margin: 24px 0 0; padding: 0; }
.dx .lad li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.dx .lad li:last-child { padding-bottom: 0; }
.dx .lad li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 17px; bottom: 0; width: 1px; background: var(--line-2); }
.dx .lad-dot { flex: none; width: 11px; height: 11px; margin-top: 4px; border-radius: 50%; border: 1.5px solid var(--ink-4); background: var(--canvas); box-sizing: border-box; }
.dx .lad li.is-on .lad-dot { background: var(--ink); border-color: var(--ink); }
.dx .lad li.is-walk .lad-dot { border-color: var(--red); }
.dx .lad b { font-size: 13.5px; font-weight: 600; }
.dx .lad li.is-walk b { color: var(--red); }
.dx .lad p { margin: 3px 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.dx .lad .btn { margin-left: -10px; }

/* ---------------- deadlines strip ---------------- */
.dx .yr { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.dx .yr-m { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0 12px; }
.dx .yr-m + .yr-m { border-left: 1px solid var(--line); }
.dx .yr-dots { height: 34px; display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; }
.dx .yr-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); cursor: default; }
.dx .yr-dots i.red { background: var(--red); }
.dx .yr-dots i.amber { background: var(--amber); }
.dx .yr-m span { font-size: 12px; color: var(--ink-3); }
.dx .yr-m:first-child span { color: var(--ink); font-weight: 500; }

/* ---------------- payments chart ---------------- */
.dx .chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; height: 200px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.dx .ch-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-bottom: 10px; }
.dx .ch-bar { position: relative; flex: 1; }
.dx .ch-bar i { position: absolute; left: 20%; right: 20%; bottom: 0; border-radius: 3px 3px 0 0; }
.dx .ch-plan { border: 1px dashed var(--ink-4); border-bottom: 0; }
.dx .ch-paid { background: var(--ink); }
.dx .ch-over { background: var(--red); }
.dx .ch-col span { font-size: 12px; color: var(--ink-3); text-align: center; }
.dx .ch-col.is-now span { color: var(--ink); font-weight: 500; }
.dx .legend { display: flex; gap: 20px; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.dx .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.dx .lg-paid { background: var(--ink); }
.dx .lg-plan { border: 1px dashed var(--ink-3); }
.dx .lg-over { background: var(--red); }

/* ---------------- language check ---------------- */
.dx .lang-h, .dx .lang-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.dx .lang-h { padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.dx .lang-row { padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.dx .lang-row .ref { justify-self: start; }
.dx .lang-row p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.dx .lang-row p[dir="rtl"] { text-align: right; font-size: 16px; }
.dx .lang-row.has-issue p { color: var(--ink); }
.dx .lang-issue { grid-column: 2 / -1; display: flex; align-items: baseline; gap: 14px; padding: 10px 14px; border-radius: 8px; background: var(--hover); font-size: 13.5px; color: var(--ink-2); }

/* ---------------- signing ---------------- */
.dx .sgn { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.dx .sgn-signed { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.dx .sgn-viewed { border-color: var(--amber); }
.dx .log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dx .log li { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.dx .log time { color: var(--ink-3); font-size: 12.5px; padding-top: 1px; }
.dx .log span { display: block; font-size: 12.5px; color: var(--ink-3); }
.dx .checks { list-style: none; margin: 14px 0 0; padding: 0; }
.dx .checks li { display: flex; gap: 9px; align-items: center; padding: 5px 0; font-size: 13px; color: var(--ink-2); }
.dx .checks .ic { color: var(--green); }

/* ---------------- stress run ---------------- */
.dx .run { display: flex; flex-direction: column; gap: 9px; padding: 18px 20px; margin-bottom: 32px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; color: var(--ink-4); animation: dx-in .2s var(--ease) both; }
.dx .run > div { display: flex; align-items: center; gap: 12px; transition: color .2s; }
.dx .run .is-done { color: var(--ink-2); }
.dx .run .is-now { color: var(--ink); font-weight: 500; }
.dx .run-i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.dx .run .is-done .run-i { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.dx .run .is-now .run-i { border-color: var(--ink); border-top-color: transparent; animation: dx-spin .7s linear infinite; }
@keyframes dx-spin { to { transform: rotate(360deg); } }

/* ---------------- feed ---------------- */
.dx .feed { display: flex; flex-direction: column; gap: 24px; }
.dx .fd { display: flex; gap: 14px; }
.dx .fd-b { min-width: 0; }
.dx .fd-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; }
.dx .fd-h .muted { font-size: 12.5px; }
.dx .fd p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.dx .composer { display: flex; gap: 14px; margin-bottom: 8px; }
.dx .composer-box { flex: 1; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px 10px 14px; transition: border-color .12s; }
.dx .composer-box:focus-within { border-color: var(--ink-4); }
.dx .composer textarea { width: 100%; border: 0; outline: 0; resize: vertical; background: transparent; font: 14px/1.55 var(--font-ui); color: var(--ink); }
.dx .composer textarea::placeholder { color: var(--ink-3); }
.dx .composer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }

/* ============================================================
   Overlays
============================================================ */
.dx .dx-layer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.dx .dx-layer.is-on { pointer-events: auto; }   /* a layer on its way out (clm.js closeLayer) is already out of reach */
.dx .pal-wrap { position: fixed; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(15, 18, 22, .3); animation: dx-fade .15s both; }
@keyframes dx-fade { from { opacity: 0; } }
.dx .pal {
  width: 100%; max-width: 660px; max-height: 72vh; display: flex; flex-direction: column;
  background: var(--canvas); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
  animation: dx-pop .18s var(--ease) both;
}
@keyframes dx-pop { from { opacity: 0; transform: translateY(-6px) scale(.99); } }
.dx .pal-in { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--ink-3); flex: none; }
.dx .pal-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 16px var(--font-ui); color: var(--ink); }
.dx .pal-in input::placeholder { color: var(--ink-3); }
.dx .pal-body { overflow-y: auto; padding: 8px; }
.dx .pal-sec { font-size: 12px; font-weight: 500; color: var(--ink-3); padding: 12px 12px 6px; }
.dx .pal-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; text-align: left; font: 14px var(--font-ui); color: var(--ink); cursor: pointer; }
.dx .pal-row:hover, .dx .pal-row.is-hi { background: var(--hover); }
.dx .pal-row .ic { color: var(--ink-3); }
.dx .pal-hint { margin-left: auto; }
.dx .pal-src { align-items: flex-start; }
.dx .pal-src > div { min-width: 0; }
.dx .pal-src b { font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dx .pal-src p { margin: 4px 0 2px; font-size: 14px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dx .match { flex: none; width: 62px; margin-top: 1px; text-align: center; font-size: 11.5px; font-weight: 500; line-height: 20px; border-radius: 5px; background: var(--hover-2); color: var(--ink-2); }
.dx .match-meaning { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.dx .match-related { color: var(--ink-3); }
.dx .pal-answer { display: flex; gap: 12px; margin: 4px 4px 8px; padding: 14px 16px; border-radius: 10px; background: var(--hover); }
.dx .pal-answer p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.dx .pal-answer b { font-weight: 600; }
.dx .pal-ai { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--canvas); display: grid; place-items: center; }
.dx .pal-foot { margin-top: 8px; padding: 12px 12px 6px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.dx .pal-empty { padding: 28px 12px; color: var(--ink-3); }

.dx .menu-wrap { position: fixed; inset: 0; }
.dx .menu { position: fixed; width: 320px; max-width: calc(100vw - 24px); padding: 6px; background: var(--canvas); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); animation: dx-pop .15s var(--ease) both; }
.dx .menu a, .dx .menu button { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.dx .menu a:hover, .dx .menu button:hover { background: var(--hover); }
.dx .menu .ic { color: var(--ink-3); margin-top: 2px; }
.dx .menu b { display: block; font-size: 13.5px; }
.dx .menu span { display: block; font-size: 12.5px; color: var(--ink-3); }

.dx .dx-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.dx .toast { padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--canvas); font-size: 13.5px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease); max-width: calc(100vw - 32px); }
.dx .toast.is-in { opacity: 1; transform: none; }
.dx .dx-tip { position: fixed; z-index: 130; max-width: 280px; padding: 5px 9px; border-radius: 6px; background: var(--ink); color: var(--canvas); font-size: 12px; line-height: 1.45; pointer-events: none; opacity: 0; transition: opacity .1s; }
.dx .dx-tip.is-on { opacity: 1; }
.dx .dx-scrim { display: none; }

/* ============================================================
   Responsive — the window decides the sidebar, the container
   decides everything inside the page.
============================================================ */
@media (max-width: 1100px) {
  .app .dx.dx { grid-template-columns: minmax(0, 1fr); }
  .dx .dx-side {
    position: fixed; z-index: 90; top: 0; bottom: 0; left: var(--rail-w); width: 264px;
    transform: translateX(calc(-100% - var(--rail-w))); visibility: hidden;
    transition: transform var(--ml-dur-lg, .25s) var(--ml-ease-out, var(--ease)), visibility 0s linear var(--ml-dur-lg, .25s); box-shadow: var(--shadow);
  }
  .app .dx.dx.side-open .dx-side { transform: none; visibility: visible; transition: transform var(--ml-dur-lg, .25s) var(--ml-ease-out, var(--ease)); }
  /* the scrim fades in and out with the menu's slide, both ways (DX-06) - it used to snap on and off */
  .dx .dx-scrim { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(15, 18, 22, .2);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--ml-dur-lg, .25s) var(--ml-ease-out, ease), visibility 0s linear var(--ml-dur-lg, .25s); }
  .app .dx.dx.side-open .dx-scrim { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--ml-dur-lg, .25s) var(--ml-ease-out, ease); }
  .dx .tb-menu { display: inline-grid !important; }
  .dx .dx-top { padding-left: 16px; }
}

@container main (max-width: 1080px) {
  .dx .tpl { grid-template-columns: minmax(0, 1fr) 280px; }
  .dx .tpl-nav { display: none; }
}
@container main (max-width: 980px) {
  .dx .two { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .dx .aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
  .dx .aside > .sd-label, .dx .aside > .feed, .dx .aside > .lnk, .dx .aside > .facts-lg { grid-column: 1 / -1; }
}
@container main (max-width: 900px) {
  .dx .opt { display: none; }
  .dx .cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@container main (max-width: 780px) {
  .dx .pg { padding: 32px 24px 88px; }
  .dx .ph { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  /* a contract analysed in Sentinel has three buttons (What if, Open in Draft, Open report): they wrap, never push the page sideways */
  .dx .ph-act { flex-wrap: wrap; }
  .dx .banner-live { flex-wrap: wrap; }
  .dx .banner-live > div { flex: 1 1 220px; }
  .dx .ph-home h1 { font-size: 26px; }
  .dx .stats, .dx .stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dx .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .dx .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dx .opt2 { display: none; }
  .dx .tpl { grid-template-columns: minmax(0, 1fr); }
  .dx .ladder { position: static; }
  .dx .kv-row { grid-template-columns: 150px minmax(0, 1fr) auto; }
  .dx .paper { padding: 36px 28px 32px; }
  .dx .row-act .btn { display: none; }
  .dx .conflict-pair { grid-template-columns: minmax(0, 1fr); }
  .dx .lang-h { display: none; }
  .dx .lang-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dx .lang-issue { grid-column: auto; }
  .dx .find-head { flex-direction: column; }
  .dx .field input { width: 140px; }
  .dx .yr-m span { font-size: 11px; }
  .dx .chart { gap: 6px; }
}
@container main (max-width: 520px) {
  .dx .pg { padding: 24px 16px 72px; }
  .dx .finding { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dx .kv-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dx .kv-row dt { grid-column: 1 / -1; }
  .dx .row-end .ref { display: none; }
  .dx .cell-main { min-width: 180px; }
  /* a deadline is read, not scanned: on a phone its "who must do what" wrapped to ten letters and an ellipsis */
  .dx .row-dl { display: grid; grid-template-columns: 40px 8px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; align-items: start; }
  .dx .row-dl .row-main b, .dx .row-dl .row-main > span { white-space: normal; overflow: visible; }
  .dx .row-dl .row-end { grid-column: 3; font-size: 12px; }
}
