/* ArgentNorth demo. Uses the landing page's tokens (:root in index.html). */
html.dx-lock, html.dx-lock body { overflow: hidden; }
#an-demo {
  --dx-desk: #ECEEF1; --dx-hl: rgba(234,179,8,.2); --dx-hl-line: #B88A00; --dx-ink: #0E1726;
  --dx-sans: "Inter", "Noto Sans Devanagari", system-ui, sans-serif;
  --dx-head: "Inter Tight", "Inter", "Noto Sans Devanagari", system-ui, sans-serif;
  --dx-serif: "Source Serif 4", "Noto Sans Devanagari", Georgia, serif;
  --dx-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Noto Sans Devanagari", monospace;
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font-family: var(--dx-sans); font-size: 14px; line-height: 1.5;
}
#an-demo[lang="hi"], #an-demo[lang="mr"] { line-height: 1.62; }
#an-demo[hidden], #an-demo [hidden] { display: none !important; }
#an-demo *, #an-demo *::before, #an-demo *::after { box-sizing: border-box; }
:where(#an-demo) button { font: inherit; color: inherit; }
:where(#an-demo) :is(p, dl, dd, figure, ul, ol, h1, h2, h3) { margin: 0; padding: 0; }
:where(#an-demo) :is(h1, h2, h3) { font-family: var(--dx-head); letter-spacing: -0.015em; }
#an-demo :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
#an-demo [tabindex="-1"]:focus { outline: none; }
#an-demo [lang="mr"], #an-demo [lang="hi"] { font-family: var(--dx-sans); }
.dx-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.dx-k { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
#an-demo[lang="hi"] .dx-k, #an-demo[lang="mr"] .dx-k, #an-demo[lang="hi"] .tsr-l, #an-demo[lang="mr"] .tsr-l { letter-spacing: 0; text-transform: none; font-size: 12px; }
.dx-loading { display: grid; place-items: center; height: 100%; color: var(--ink2); }
.dx-faint { color: var(--ink3); font-size: 12px; }
.dx-note { margin-top: 8px !important; font-size: 12px; color: var(--ink3); }
.dx-tok { display: inline-block; padding: 0 5px; border-radius: 3px; background: #1E2532; color: #E2E8F0; font-family: "Inter", sans-serif; font-size: .74em; font-weight: 700; letter-spacing: .04em; line-height: 1.6; vertical-align: .08em; white-space: nowrap; }

.dx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line2); background: #fff; color: var(--ink); font-weight: 600; font-size: 13.5px; line-height: 1.1; cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease, transform .1s ease; }
.dx-btn:hover { background: #F2F4F7; }
.dx-btn:active { transform: translateY(1px); }
.dx-btn-dark { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.dx-btn-dark:hover { background: var(--accent-strong); }
.dx-btn-quiet { background: transparent; border-color: transparent; color: var(--ink2) !important; }
.dx-btn-quiet:hover { background: #EAEDF1; }
.dx-btn-sm { padding: 7px 11px; font-size: 12.5px; border-radius: 8px; }
.dx-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent) !important; font-weight: 600; text-align: left; text-decoration: underline; text-decoration-color: #B6C4D3; text-underline-offset: 3px; }
.dx-link:hover { text-decoration-color: var(--accent); }
.dx-x, .dx-ib { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border: 0; border-radius: 8px; background: transparent; color: var(--ink2); cursor: pointer; }
.dx-x:hover, .dx-ib:hover:not([disabled]) { background: #EEF1F5; }
.dx-ib[disabled] { opacity: .3; cursor: default; }

/* Status: activity states (sc) and finding states (fc). A word first, colour second. */
.dx-sc, .dx-fc { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 1px 8px; border-radius: 999px; border: 1px solid; font-size: 11px; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.dx-sc::before, .dx-fc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dx-sc-queued { color: var(--ink3); border-color: var(--line); background: #fff; }
.dx-sc-queued::before { background: transparent; border: 1.5px solid currentColor; width: 7px; height: 7px; }
.dx-sc-running { color: var(--accent); border-color: #C7D3E0; background: var(--accent-soft); }
.dx-sc-running::before { animation: dx-blink 1s ease-in-out infinite; }
.dx-sc-done, .dx-fc-verified, .dx-fc-supported { color: var(--ok); border-color: rgba(21,122,61,.22); background: rgba(21,122,61,.06); }
.dx-sc-attention, .dx-fc-differ { color: var(--warn); border-color: rgba(181,71,8,.25); background: rgba(181,71,8,.06); }
.dx-sc-awaiting { color: #6941C6; border-color: rgba(105,65,198,.25); background: rgba(105,65,198,.06); }
.dx-sc-notperformed, .dx-fc-open { color: #475467; border-color: #D0D5DD; border-style: dashed; background: #fff; }
.dx-sc-notperformed::before, .dx-fc-open::before { background: transparent; border: 1.5px solid currentColor; width: 7px; height: 7px; }
@keyframes dx-blink { 50% { opacity: .25; } }
@keyframes dx-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.dx-owner { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 600; line-height: 1.75; white-space: nowrap; }
.dx-evs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dx-ev { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid #CDD6E0; background: #fff; color: var(--accent) !important; font-size: 12px; font-weight: 600; cursor: pointer; line-height: 1.5; }
.dx-ev::before { content: ""; width: 9px; height: 11px; border: 1.3px solid currentColor; border-radius: 1.5px; opacity: .7; }
.dx-ev.is-rec::before { border-radius: 50%; width: 9px; height: 9px; }
.dx-ev:hover { border-color: var(--accent); background: #F7F9FB; }
.dx-c-verified, .dx-c-supported { background: var(--ok); }
.dx-c-differ { background: var(--warn); }
.dx-c-open { border: 1.5px dashed #667085; }

/* ---------- Top bar ---------- */
.dx-top { flex: none; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 14px 0 20px; background: #fff; border-bottom: 1px solid var(--line); }
.dx-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.dx-brand img { display: block; width: 22px; height: 20px; object-fit: contain; }
.dx-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); padding: 3px 7px; border-radius: 5px; background: #F2F4F7; }
.dx-case { display: flex; align-items: center; gap: 10px; min-width: 0; margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
.dx-case-ref { font-family: var(--dx-mono); font-size: 12px; color: var(--ink3); }
.dx-case-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-case-st { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dx-case-st i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dx-blink 1s ease-in-out infinite; }
.dx-case-st.is-ready { background: rgba(21,122,61,.08); color: var(--ok); }
.dx-top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dx-langs { display: inline-flex; padding: 2px; border-radius: 9px; background: #F2F4F7; }
.dx-langs button { padding: 5px 10px; border: 0; border-radius: 7px; background: none; font-size: 12.5px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.dx-langs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.1); }
.dx-top .dx-btn[aria-expanded="true"] { background: var(--accent-soft); border-color: #C7D3E0; }

.dx-stage { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
#an-demo[data-stage="run"] .dx-stage { overflow: hidden; }

/* ---------- Intake ---------- */
.dx-intake { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100%; }
.dx-side { padding: 28px 18px; border-right: 1px solid var(--line); background: #FBFCFD; }
.dx-recent { list-style: none; margin-top: 10px !important; }
.dx-recent button { width: 100%; display: grid; gap: 1px; padding: 10px; border: 1px solid transparent; border-radius: 10px; background: none; text-align: left; cursor: pointer; }
.dx-recent button:hover { background: #fff; border-color: var(--line); }
.dx-recent-ref { font-family: var(--dx-mono); font-size: 11.5px; color: var(--ink3); }
.dx-recent-t { font-weight: 600; font-size: 13.5px; }
.dx-recent-s { font-size: 12px; color: var(--ok); }
.dx-recent-empty { margin-top: 10px !important; font-size: 12.5px; color: var(--ink3); }
.dx-in { width: min(720px, 100% - 48px); margin: 0 auto; padding: 11vh 0 48px; }
.dx-in h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
#an-demo[lang="hi"] .dx-in h1, #an-demo[lang="mr"] .dx-in h1 { letter-spacing: 0; line-height: 1.3; }
.dx-in-sub { margin-top: 12px !important; font-size: 1.04rem; color: var(--ink2); max-width: 58ch; }
.dx-form { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.dx-field { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line2); background: #fff; color: var(--ink3); box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 18px 40px -30px rgba(16,24,40,.35); transition: border-color .15s ease, box-shadow .15s ease; }
.dx-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dx-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.dx-parsed { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 0; }
.dx-parsed:empty { display: none; }
.dx-pc { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; animation: dx-in .2s ease both; }
.dx-pc i { font-style: normal; font-weight: 500; font-size: 11px; color: var(--ink3); padding: 1px 7px; border-radius: 999px; background: #F2F4F7; }
.dx-hint { width: 100%; font-size: 12.5px; color: var(--warn); }

.dx-drop { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed #C3CDD8; background: rgba(255,255,255,.6); color: var(--accent); transition: border-color .15s ease, background .15s ease; }
.dx-drop.is-over { border-color: var(--accent); background: #F3F6FA; }
.dx-drop-t { flex: 1; display: flex; flex-direction: column; color: var(--ink); }
.dx-drop-t b { font-weight: 600; }
.dx-drop-t span { font-size: 12.5px; color: var(--ink3); }
.dx-files { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); animation: dx-in .25s ease both; }
.dx-files-thumbs { display: flex; }
.dx-files-thumbs img { width: 26px; height: 34px; object-fit: cover; object-position: top; border: 1.5px solid #fff; border-radius: 2px; box-shadow: 0 1px 3px rgba(16,24,40,.25); margin-left: -8px; background: #fff; }
.dx-files-thumbs img:first-child { margin-left: 0; }
.dx-files-names { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--dx-mono); font-size: 11.5px; color: var(--ink2); }
.dx-files-t { flex: 1; font-weight: 600; font-size: 13px; }
.dx-notice:empty { display: none; }
.dx-notice p { padding: 10px 14px; border-radius: 10px; font-size: 13px; background: #FFFAF3; border: 1px solid #F0D7BE; color: var(--ink); animation: dx-in .2s ease both; }
.dx-notice .dx-link { margin-left: 4px; }
.dx-go-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.dx-go { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.dx-sample { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; border: 0; background: none; cursor: pointer; text-align: right; }
.dx-sample b { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: #B6C4D3; text-underline-offset: 3px; }
.dx-sample span { font-size: 12px; color: var(--ink3); }

/* ---------- The investigation ---------- */
.dx-run { display: grid; grid-template-columns: minmax(380px, 460px) minmax(0, 1fr); height: 100%; }
.dx-stream { min-height: 0; display: flex; flex-direction: column; background: #0E1726; color: #E6EBF2; }
.dx-stream-top { flex: none; display: flex; align-items: baseline; justify-content: space-between; padding: 20px 22px 12px; }
.dx-stream-top h1 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8B9AB0; font-family: var(--dx-sans); }
#an-demo[lang="hi"] .dx-stream-top h1, #an-demo[lang="mr"] .dx-stream-top h1 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.dx-clock { font-family: var(--dx-mono); font-size: 12.5px; color: #8B9AB0; font-variant-numeric: tabular-nums; }
.dx-stream-body { flex: 1; min-height: 0; overflow: auto; padding: 0 14px 20px; scrollbar-color: #2A3648 transparent; }
.dx-stg-list { list-style: none; }
.dx-stg { border-radius: 12px; margin-bottom: 4px; transition: background .25s ease; }
.dx-stg.is-running { background: rgba(255,255,255,.04); }
.dx-stg-h { width: 100%; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 10px 10px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer; }
.dx-stg-h:disabled { cursor: default; }
.dx-stg-h:hover:not(:disabled) { background: rgba(255,255,255,.04); }
.dx-stg-n { font-family: var(--dx-mono); font-size: 11.5px; color: #66758C; }
.dx-stg-t { font-weight: 600; font-size: 14px; color: #F3F6FA; }
.dx-stg.is-queued .dx-stg-t { color: #66758C; font-weight: 500; }
.dx-stream .dx-sc { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.dx-stream .dx-sc-queued { color: #66758C; }
.dx-stream .dx-sc-running { color: #9CC3FF; }
.dx-stream .dx-sc-done { color: #6FCF97; }
.dx-stream .dx-sc-attention { color: #F2B36B; }
.dx-stream .dx-sc-awaiting { color: #C3A6FF; }
.dx-stream .dx-sc-notperformed { color: #A8B3C4; border-style: dashed; }
.dx-lines { list-style: none; padding: 0 10px 10px 44px !important; }
.dx-ln { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: start; padding: 4px 0; font-size: 13px; color: #B8C3D3; animation: dx-in .3s ease both; }
.dx-ln-i { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; display: grid; place-items: center; color: #0E1726; }
.dx-ln.is-a.is-running .dx-ln-i { border: 1.5px solid #9CC3FF; border-right-color: transparent; animation: dx-spin .8s linear infinite; }
.dx-ln.is-a.is-done .dx-ln-i { background: #6FCF97; }
.dx-ln.is-r .dx-ln-i::before { content: ""; width: 5px; height: 1.5px; background: #66758C; }
.dx-ln.is-mono .dx-ln-t { font-family: var(--dx-mono); font-size: 12.5px; color: #E6EBF2; }
.dx-ln-src { margin-left: 8px; padding: 0 6px; border-radius: 4px; background: rgba(255,255,255,.06); font-family: var(--dx-mono); font-size: 10.5px; color: #8B9AB0; white-space: nowrap; }
.dx-ln .dx-sc { font-size: 10.5px; }
.dx-oc { margin: -2px 10px 10px 44px !important; font-size: 13px; color: #DDE4EE; }
.dx-stg.is-running .dx-oc { display: none; }
@keyframes dx-spin { to { transform: rotate(360deg); } }

.dx-stream-foot { flex: none; display: flex; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.06); }
.dx-skip { color: #9CC3FF !important; text-decoration-color: rgba(156,195,255,.4); font-size: 12.5px; }

/* The developing workspace */
.dx-board { min-height: 0; overflow: auto; background: var(--bg); overscroll-behavior: contain; }
.dx-board-in { max-width: 820px; margin: 0 auto; padding: 22px 28px 48px; display: grid; gap: 14px; }
.dx-sec { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.dx-sec > .dx-k { margin-bottom: 10px !important; }
.dx-wait { font-size: 13px; color: var(--ink3); }
.dx-wait::before { content: ""; display: inline-block; width: 40px; height: 6px; margin-right: 10px; border-radius: 3px; background: linear-gradient(90deg, #EEF1F5, #E1E6EC, #EEF1F5); background-size: 200% 100%; animation: dx-shimmer 1.6s linear infinite; vertical-align: middle; }
@keyframes dx-shimmer { to { background-position: -200% 0; } }
.is-new { animation: dx-in .45s ease both; }
.dx-prop { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 14px; }
.dx-prop dt { font-size: 12px; color: var(--ink3); }
.dx-prop dd { margin-top: 3px !important; font-weight: 600; }
.dx-upd { display: inline-block; padding: 1px 4px 1px 0; border-radius: 5px; animation: dx-flash 1.6s ease 1; }
@keyframes dx-flash { 0% { background: rgba(21,122,61,.18); } 100% { background: transparent; } }
.dx-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.dx-doc { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.dx-doc:hover { border-color: #B6C4D3; box-shadow: 0 8px 20px -16px rgba(16,24,40,.4); }
.dx-doc img { width: 34px; height: 45px; object-fit: cover; object-position: top; border: 1px solid var(--line2); border-radius: 2px; flex: none; }
.dx-doc > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.dx-doc b { font-size: 13px; font-weight: 600; }
.dx-doc i { font-style: normal; font-size: 11.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-doc.is-out { opacity: .6; border-style: dashed; }
.dx-doc-i { width: 34px; height: 45px; display: grid; place-items: center; flex: none; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.dx-flist { list-style: none; }
.dx-f { border-top: 1px solid var(--line); }
.dx-f:first-child { border-top: 0; }
.dx-f-h { width: 100%; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; padding: 11px 2px; border: 0; background: none; text-align: left; cursor: pointer; }
.dx-f-dot { width: 9px; height: 9px; border-radius: 50%; }
.dx-f-t { font-weight: 600; font-size: 14px; line-height: 1.4; }
.dx-f-h:hover .dx-f-t { color: var(--accent); }
.dx-f-b { padding: 2px 2px 16px 22px; animation: dx-in .25s ease both; }
.dx-5q { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 13.5px; }
.dx-5q dt { color: var(--ink3); font-size: 12.5px; font-weight: 500; padding-top: 1px; }
.dx-5q dd { color: var(--ink2); }
.dx-5q .dx-5q-f { color: var(--ink); font-weight: 500; }
.dx-srcs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.dx-src-b { width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 7px 8px; border: 0; border-radius: 8px; background: none; text-align: left; }
button.dx-src-b { cursor: pointer; }
button.dx-src-b:hover { background: #F7F9FB; }
.dx-src-n { font-weight: 600; font-size: 13px; }
.dx-src-w { grid-row: 2; font-size: 12px; color: var(--ink3); }
.dx-src-b .dx-sc { grid-row: 1 / 3; grid-column: 2; }
.dx-srcs li.is-queued .dx-src-n { color: var(--ink3); }
.dx-cmp { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; }
.dx-cmp th, .dx-cmp td { text-align: left; vertical-align: top; padding: 5px 6px 5px 0; border-top: 1px solid var(--line); }
.dx-cmp thead th { border-top: 0; font-size: 11px; font-weight: 600; color: var(--ink3); }
.dx-cmp tbody th { font-weight: 500; color: var(--ink3); width: 24%; }
.dx-cell { display: block; width: 100%; margin: -2px 0; padding: 2px 4px; border: 0; border-radius: 4px; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.dx-cell:hover { background: #F2F4F7; }
.dx-cmp-r { font-size: 11px; font-weight: 600; white-space: nowrap; }
.dx-cmp .is-same .dx-cmp-r { color: var(--ok); }
.dx-cmp .is-diff .dx-cmp-r { color: var(--risk); }
.dx-cmp .is-ren .dx-cmp-r { color: var(--warn); }

/* ---------- Source viewer ---------- */
.dx-sheet { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; }
.dx-sheet-bg { position: absolute; inset: 0; background: rgba(14,23,38,.45); }
.dx-sheet-in { position: relative; width: min(1000px, 100% - 32px); height: min(880px, 100% - 32px); display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 30px 80px -20px rgba(16,24,40,.55); animation: dx-in .2s ease both; }
.dx-sheet-h { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px 0 8px; border-bottom: 1px solid var(--line); }
.dx-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.dx-tabs button { flex: none; padding: 14px 12px 12px; border: 0; border-bottom: 2px solid transparent; background: none; font-weight: 600; font-size: 13px; color: var(--ink3); cursor: pointer; white-space: nowrap; }
.dx-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.dx-tabs button.is-out { color: #A6AEBB; }
.dx-vbar { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 10px 6px 18px; border-bottom: 1px solid var(--line); }
.dx-vbar-t { font-weight: 600; }
.dx-vbar-t span { font-weight: 400; font-size: 12.5px; color: var(--ink3); margin-left: 6px; }
.dx-tools { display: flex; align-items: center; gap: 2px; }
.dx-pn { min-width: 56px; text-align: center; font-size: 12.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.dx-sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.dx-canvas { flex: 1; min-height: 0; overflow: auto; padding: 20px; background: var(--dx-desk); }
.dx-paper { position: relative; width: 560px; margin: 0 auto; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.12), 0 22px 44px -26px rgba(16,24,40,.45); }
.dx-paper img { display: block; width: 100%; height: auto; user-select: none; }
.dx-mark { position: absolute; padding: 0; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.dx-mark:hover { background: rgba(10,37,64,.06); box-shadow: inset 0 0 0 1px rgba(10,37,64,.35); }
.dx-mark.is-on { background: var(--dx-hl); box-shadow: inset 0 0 0 2px var(--dx-hl-line); }
.dx-mark.is-pulse { animation: dx-pulse 1.1s ease-out 1; }
@keyframes dx-pulse { 0% { box-shadow: inset 0 0 0 2px var(--dx-hl-line), 0 0 0 0 rgba(184,138,0,.5); } 100% { box-shadow: inset 0 0 0 2px var(--dx-hl-line), 0 0 0 16px rgba(184,138,0,0); } }
.dx-cap { flex: none; padding: 11px 18px 13px; border-top: 1px solid var(--line); }
.dx-cap-l { font-size: 12px; font-weight: 600; color: #7A5B00; }
.dx-cap-mr { margin-top: 3px !important; font-size: 14.5px; line-height: 1.7; }
.dx-cap-tr { margin-top: 2px !important; font-size: 12.5px; color: var(--ink2); }
.dx-cap-e { font-size: 12.5px; color: var(--ink3); }
.dx-rec { max-width: 740px; margin: 0 auto; padding: 26px 28px; background: #fff; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(16,24,40,.4); }
.dx-rec-h { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dx-rec-h h3 { margin-top: 4px !important; font-size: 1.25rem; font-weight: 600; }
.dx-rec-h p:last-child { margin-top: 4px !important; font-size: 12.5px; color: var(--ink2); }
.dx-rec-t { width: 100%; border-collapse: collapse; }
.dx-rec-t th, .dx-rec-t td { text-align: left; vertical-align: top; padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); }
.dx-rec-t th { width: 34%; font-size: 12.5px; font-weight: 500; color: var(--ink2); }
.dx-rec-n { display: block; font-size: 12px; color: var(--ink3); margin-top: 2px; }
.dx-rec-t tr.is-hl > * { background: #FFFBEB; }
.dx-rec-t tr.is-hl th { box-shadow: inset 3px 0 0 var(--dx-hl-line); padding-left: 12px; }

/* The 30-year search: three facts, who held it and when, then the documents themselves. */
.dx-facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px !important; }
.dx-facts li { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #FAFBFC; }
.dx-facts-i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.dx-facts li.is-ok .dx-facts-i { background: #E7F4EC; color: var(--ok); }
.dx-facts li.is-warn .dx-facts-i { background: #FDEFE3; color: var(--warn); }
.dx-facts b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.dx-facts b + span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--ink2); }

.dx-st { --lab: 200px; --row: 46px; margin: 24px 0 0; font-family: var(--dx-sans); }
.dx-st figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.dx-st-cov { font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dx-st-plot { position: relative; }
.dx-st-grid { position: absolute; top: 0; bottom: 24px; left: var(--lab); right: 12px; pointer-events: none; }
.dx-st-grid i { position: absolute; top: 0; bottom: 0; border-left: 1px dashed #E4E7EC; }
.dx-st ol { list-style: none; position: relative; }
.dx-st-r { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; width: 100%; height: var(--row); padding: 0; border: 0; border-radius: 8px; background: none; text-align: left; }
button.dx-st-r { cursor: pointer; transition: background .15s ease; }
button.dx-st-r:hover { background: #F5F7FA; }
.dx-st-r.is-hl, button.dx-st-r.is-hl:hover { background: #FFFBEB; box-shadow: inset 3px 0 0 var(--dx-hl-line); }
.dx-st-who { display: grid; gap: 1px; min-width: 0; padding: 0 12px; line-height: 1.3; }
.dx-st-name, .dx-st-p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-st-name { font-size: 13px; }
.dx-st-p { font-size: 11.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.dx-st-r.is-charge .dx-st-who { position: relative; padding-left: 30px; }
.dx-st-r.is-charge .dx-st-who::before { content: ""; position: absolute; left: 14px; top: 1px; width: 9px; height: 11px; border-left: 1.5px solid #98A2B3; border-bottom: 1.5px solid #98A2B3; border-bottom-left-radius: 4px; }
.dx-st-r.is-charge .dx-st-name b { color: var(--warn); font-weight: 600; }
.dx-st-tr { position: relative; height: 100%; margin-right: 12px; }
.dx-st-bar { position: absolute; top: 50%; height: 14px; margin-top: -7px; border-radius: 4px; background: #B4C2D3; transform-origin: left center; }
.dx-st-bar::before { content: ""; position: absolute; left: -1px; bottom: 50%; height: calc(var(--up, 0) * var(--row) - 7px); border-left: 1.5px solid #8DA0B7; }
.dx-st-bar.is-before { background: linear-gradient(90deg, rgba(180, 194, 211, 0), #B4C2D3 60px); border-radius: 0 4px 4px 0; }
.dx-st-bar.is-before::before { display: none; }
.dx-st-r.is-now .dx-st-bar { background: var(--accent); border-radius: 4px 0 0 4px; }
.dx-st-r.is-now .dx-st-bar::after { content: ""; position: absolute; right: -7px; top: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 7px solid var(--accent); }
.dx-st-bar.is-charge { height: 8px; margin-top: -4px; background: var(--warn); }
.dx-st-bar.is-charge::before { height: calc(var(--row) - 7px); border-left: 1.5px dotted var(--warn); }
.dx-st-cap { position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px #fff; }
.dx-st-note { position: absolute; top: 50%; transform: translateY(-50%); font-size: 11.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.dx-st-note.is-charge { left: calc(var(--r) + 14px); color: var(--warn); font-variant-numeric: tabular-nums; }
.dx-st-note .is-ok { color: var(--ok); }
.dx-st-ax { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); height: 24px; }
.dx-st-axs { position: relative; margin-right: 12px; font-size: 11px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.dx-st-axs span { position: absolute; top: 6px; transform: translateX(-50%); }
.dx-st-axs span:first-child { transform: none; }
.dx-st-axs span:last-child { transform: translateX(-100%); }
.dx-st.is-grow .dx-st-bar { animation: dx-st-grow .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 100ms); }
.dx-st.is-grow .dx-st-note { animation: dx-st-fade .35s ease both; animation-delay: 1s; }
@keyframes dx-st-grow { from { transform: scaleX(0); } }
@keyframes dx-st-fade { from { opacity: 0; } }

.dx-dl-k { margin-top: 26px !important; }
.dx-dl { list-style: none; margin-top: 6px !important; }
.dx-dl li { position: relative; display: grid; grid-template-columns: 126px 12px minmax(0, 1fr); gap: 0 12px; padding: 10px 8px; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.dx-dl li::before { content: ""; position: absolute; left: 151px; top: 0; bottom: 0; border-left: 1.5px solid var(--line); }
.dx-dl li:first-child::before { top: 20px; }
.dx-dl li:last-child::before { bottom: calc(100% - 20px); }
.dx-dl time { color: var(--ink2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dx-dl li > i { position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: #fff; border: 2.5px solid var(--accent); }
.dx-dl li.is-mortgage > i { border-color: var(--warn); }
.dx-dl li.is-release > i { border-color: var(--ok); }
.dx-dl b { font-weight: 600; }
.dx-dl li.is-mortgage b { color: var(--warn); }
.dx-dl li.is-release b { color: var(--ok); }
.dx-dl-p { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; margin-top: 3px; }
.dx-dl-a { display: inline-flex; color: var(--ink3); }
.dx-dl-n { display: block; margin-top: 3px; font-size: 12px; color: var(--ink3); }
.dx-dl li.is-hl { background: #FFFBEB; box-shadow: inset 3px 0 0 var(--dx-hl-line); }

/* ---------- Ask ---------- */
.dx-ask { position: absolute; top: 58px; right: 0; bottom: 0; z-index: 15; width: min(400px, 100%); display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--line); box-shadow: -24px 0 48px -30px rgba(16,24,40,.4); animation: dx-in .2s ease both; }
.dx-ask-h { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 12px 10px 18px; }
.dx-ask-h p { display: flex; flex-direction: column; }
.dx-ask-h b { font-family: var(--dx-head); font-size: 16px; }
.dx-ask-h span { font-size: 12.5px; color: var(--ink3); }
.dx-ask-note { flex: none; padding: 0 18px 10px; font-size: 12px; color: var(--ink3); border-bottom: 1px solid var(--line); }
.dx-log { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; }
.dx-msg { font-size: 13.5px; animation: dx-in .25s ease both; }
.dx-msg p + p, .dx-msg p + ul { margin-top: 8px !important; }
.dx-msg ul { padding-left: 18px !important; margin-top: 6px !important; }
.dx-msg li { margin-bottom: 4px; }
.dx-msg.is-q { align-self: flex-end; max-width: 85%; padding: 8px 12px; border-radius: 12px 12px 3px 12px; background: var(--accent); color: #fff; }
.dx-msg.is-a { padding: 12px 14px; border-radius: 12px; background: #F7F8FA; border: 1px solid var(--line); }
.dx-msg-ev { margin-top: 10px; }
.dx-msg-go { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 10px !important; font-size: 12.5px; }
.dx-sugg { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 10px 18px; border-top: 1px solid var(--line); scrollbar-width: thin; }
.dx-sg { flex: none; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; font-size: 12.5px; cursor: pointer; white-space: nowrap; color: var(--ink) !important; }
.dx-sg:hover { border-color: var(--accent); }
.dx-askf { flex: none; display: flex; gap: 8px; padding: 4px 18px 16px; }
.dx-askf input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line2); font: inherit; font-size: 13.5px; color: var(--ink); }
.dx-askf input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- The report ---------- */
.tsr-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 20px; background: rgba(236,238,241,.92); backdrop-filter: blur(6px); }
.tsr-bar > span { display: inline-flex; gap: 8px; }
.tsr-desk { padding: 6px 20px 72px; background: var(--dx-desk); min-height: calc(100% - 52px); }
.tsr { max-width: 880px; margin: 0 auto; padding: 60px 72px 52px; background: #fff; color: #161B26; font-family: var(--dx-serif); font-size: 15px; line-height: 1.6; box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 36px 70px -40px rgba(16,24,40,.45); animation: dx-rise .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes dx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
#an-demo[lang="hi"] .tsr, #an-demo[lang="mr"] .tsr { line-height: 1.75; }
.tsr :is(h1, h2, h3) { font-family: var(--dx-serif); letter-spacing: -0.01em; }
.tsr-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #DADDE2; font-family: var(--dx-sans); }
.tsr-ref { font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.tsr-kick { margin-top: 36px !important; font-family: var(--dx-sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
#an-demo[lang="hi"] .tsr-kick, #an-demo[lang="mr"] .tsr-kick { letter-spacing: 0; text-transform: none; font-size: 13px; }
.tsr-head h1 { margin-top: 6px !important; font-size: 2.6rem; font-weight: 600; line-height: 1.08; }
.tsr-sub { margin-top: 6px !important; font-family: var(--dx-sans); font-size: 13px; color: var(--ink3); }
.tsr-addr { display: grid; grid-template-columns: 1fr 1.7fr; gap: 32px; margin-top: 30px; }
.tsr-l { font-family: var(--dx-sans); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px !important; }
.tsr-sum { margin-top: 34px; padding-top: 20px; border-top: 1.5px solid #161B26; display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px 28px; }
.tsr-sum-v { font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.tsr-sum-r p:last-child:not(.tsr-sum-v) { font-family: var(--dx-sans); font-size: 12.5px; color: var(--ink2); }
.tsr-sum-g { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; font-size: 13.5px; }
.tsr-sum-g > div { padding: 14px 16px; border-radius: 10px; border: 1px solid #E4E7EC; border-top-width: 3px; }
.tsr-sum-g .is-est { border-top-color: var(--ok); }
.tsr-sum-g .is-open { border-top-color: var(--warn); }
.tsr-sum-g .is-next { border-top-color: var(--accent); }
.tsr-sum-g ul, .tsr-sum-g ol { padding-left: 16px !important; }
.tsr-sum-g li { margin-bottom: 7px; }

.tsr-part { margin-top: 42px; }
.tsr-part > h2 { display: flex; align-items: baseline; gap: 14px; padding-bottom: 10px; margin-bottom: 6px !important; border-bottom: 1px solid #DADDE2; font-size: 1.26rem; font-weight: 600; break-after: avoid; }
.tsr-n { font-family: var(--dx-sans); font-size: 12px; font-weight: 700; color: var(--ink3); min-width: 16px; }
.tsr-kv, .tsr-t { width: 100%; border-collapse: collapse; }
.tsr-kv th, .tsr-kv td, .tsr-t th, .tsr-t td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid #EEF0F3; }
.tsr-kv th { width: 30%; font-family: var(--dx-sans); font-size: 12.5px; font-weight: 500; color: var(--ink2); }
.tsr-t { font-size: 14px; }
.tsr-t thead th { font-family: var(--dx-sans); font-size: 11px; font-weight: 600; color: var(--ink3); border-bottom: 1px solid #DADDE2; }
.tsr-t tr.is-out td { color: var(--ink3); }
.tsr-no { font-family: var(--dx-sans); font-weight: 700; font-size: 13px; color: var(--ink2); width: 28px; }
.tsr-doc { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: #D0D5DD; text-underline-offset: 3px; }
.tsr-doc:hover { text-decoration-color: var(--accent); }
.tsr-native, .tsr-faint { display: block; font-family: var(--dx-sans); font-size: 12px; color: var(--ink3); }
.tsr-flow { list-style: none; margin-top: 14px !important; }
.tsr-flow li { position: relative; display: grid; grid-template-columns: 120px 16px 1fr; gap: 14px; padding-bottom: 14px; break-inside: avoid; }
.tsr-flow li::before { content: ""; position: absolute; left: 141px; top: 10px; bottom: -6px; width: 1.5px; background: #D5DAE1; }
.tsr-flow li.is-last::before { display: none; }
.tsr-flow-d { text-align: right; font-family: var(--dx-sans); font-size: 12.5px; font-weight: 600; color: var(--ink2); padding-top: 2px; }
.tsr-flow-dot { position: relative; z-index: 1; width: 13px; height: 13px; margin: 5px 0 0 1px; border-radius: 50%; border: 2px solid var(--accent); background: #fff; }
.tsr-flow li.is-mortgage .tsr-flow-dot { border-color: var(--warn); }
.tsr-flow li.is-release .tsr-flow-dot { border-color: var(--ok); }
.tsr-flow li.is-extra .tsr-flow-dot { border-color: #98A2B3; }
.tsr-flow li.is-last .tsr-flow-dot { background: var(--ok); border-color: var(--ok); }
.tsr-f { padding: 18px 0; border-bottom: 1px solid #EEF0F3; break-inside: avoid; }
.tsr-f-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.tsr-f-h h3 { flex: 1; font-size: 1.04rem; font-weight: 600; }
.tsr-f-n { font-family: var(--dx-sans); font-size: 12px; font-weight: 700; color: var(--ink3); }
.tsr .dx-5q { font-size: 14px; grid-template-columns: 170px 1fr; }
.tsr .dx-5q dt { font-family: var(--dx-sans); }
.tsr .dx-cmp { font-family: var(--dx-sans); }
.tsr-cond { list-style: none; counter-reset: c; margin-top: 6px !important; }
.tsr-cond li { counter-increment: c; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 11px 0; border-bottom: 1px solid #EEF0F3; }
.tsr-cond li::before { content: counter(c); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #161B26; font-family: var(--dx-sans); font-size: 11.5px; font-weight: 700; }
.tsr-cond .dx-owner, .tsr .dx-owner { font-family: var(--dx-sans); }
.tsr-list { padding-left: 22px !important; margin-top: 8px !important; }
.tsr-list li { margin-bottom: 6px; }
.tsr-after { margin-top: 16px !important; }
.tsr-concl { margin-top: 14px; padding: 18px 22px; border-left: 3px solid #161B26; background: #F8F9FA; }
.tsr-concl p + p { margin-top: 10px !important; }
.tsr-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; font-size: 13.5px; }
.tsr-line { height: 34px; border-bottom: 1px solid #161B26; }
.tsr-foot { margin-top: 40px; padding-top: 14px; border-top: 1px solid #DADDE2; font-family: var(--dx-sans); font-size: 11.5px; color: var(--ink3); }
.tsr-mks { display: inline-flex; flex-wrap: wrap; gap: 3px; margin-left: 6px; vertical-align: .12em; }
.tsr-mk { padding: 0 6px; border: 0; border-radius: 4px; background: #EEF2F6; color: var(--accent) !important; font-family: var(--dx-sans); font-size: 10.5px; font-weight: 700; line-height: 1.75; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tsr-mk:hover { background: var(--accent); color: #fff !important; }
.tsr .dx-sc, .tsr .dx-fc { font-family: var(--dx-sans); }
.tsr .dx-st { margin: 16px 0 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .dx-case-t { display: none; }
  .dx-run { grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); }
  .dx-prop { grid-template-columns: 1fr 1fr; }
  .dx-srcs { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  #an-demo[data-stage="run"] .dx-stage { overflow: auto; }
  .dx-intake { grid-template-columns: minmax(0, 1fr); }
  .dx-side { order: 2; border-right: 0; border-top: 1px solid var(--line); }
  .dx-in { padding-top: 40px; }
  .dx-run { display: flex; flex-direction: column; height: auto; }
  .dx-stream { max-height: 62vh; }
  .dx-board { overflow: visible; }
  .dx-board-in { padding: 16px 14px 40px; }
  .dx-5q, .tsr .dx-5q { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dx-5q dd { margin-bottom: 8px !important; }
  .tsr { padding: 36px 28px; }
  .tsr-sum { grid-template-columns: minmax(0, 1fr); }
  .tsr-sum-g { grid-template-columns: minmax(0, 1fr); }
  .dx-st-note.is-charge { left: auto; right: calc(100% - var(--l) + 10px); }
}
@media (max-width: 600px) {
  .dx-top { padding: 0 8px 0 12px; gap: 6px; }
  .dx-tag, .dx-brand span, .dx-case-ref, .dx-top .dx-btn span { display: none; }
  .dx-case { margin-left: 0; padding-left: 8px; }
  .dx-langs button { padding: 5px 7px; font-size: 12px; }
  .dx-in { width: calc(100% - 28px); }
  .dx-drop { flex-wrap: wrap; }
  .dx-go-row { flex-direction: column; align-items: stretch; }
  .dx-go { width: 100%; }
  .dx-sample { align-items: flex-start; text-align: left; }
  .dx-prop { grid-template-columns: minmax(0, 1fr); }
  .dx-docs { grid-template-columns: minmax(0, 1fr); }
  .tsr-bar { padding: 8px 10px; }
  .tsr-bar .dx-btn span { display: none; }
  .tsr-desk { padding: 4px 6px 40px; }
  .tsr { padding: 24px 16px; font-size: 14.5px; }
  .tsr-head h1 { font-size: 1.9rem; }
  .tsr-addr, .tsr-sign { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tsr-kv th, .tsr-kv td { display: block; width: auto; padding: 0; border: 0; }
  .tsr-kv th { padding-top: 10px; }
  .tsr-kv td { padding-bottom: 10px; border-bottom: 1px solid #EEF0F3; }
  .tsr-t { display: block; overflow-x: auto; }
  .tsr-flow li { grid-template-columns: 16px 1fr; gap: 10px; }
  .tsr-flow-d { grid-column: 2; text-align: left; padding: 0; }
  .tsr-flow-dot { grid-column: 1; grid-row: 1 / 3; }
  .tsr-flow li > div { grid-column: 2; }
  .tsr-flow li::before { left: 7px; }
  .tsr-cond li { grid-template-columns: 30px 1fr; }
  .tsr-cond .dx-owner { grid-column: 2; justify-self: start; }
  .dx-rec { padding: 20px 16px; }
  .dx-facts { grid-template-columns: minmax(0, 1fr); }
  .dx-st-r { grid-template-columns: minmax(0, 1fr); height: auto; padding: 6px 0 0; gap: 2px; }
  .dx-st-who { padding: 0 10px; }
  .dx-st-r.is-charge .dx-st-who { padding-left: 28px; }
  .dx-st-tr { height: 16px; margin: 0 14px 0 10px; }
  .dx-st-bar { height: 10px; margin-top: -5px; }
  .dx-st-r.is-now .dx-st-bar::after { right: -5px; border-width: 5px 0 5px 5px; }
  .dx-st-bar::before, .dx-st-grid, .dx-st-ax > span:first-child { display: none; }
  .dx-st-ax { grid-template-columns: minmax(0, 1fr); }
  .dx-st-axs { margin: 0 14px 0 10px; }
  .dx-dl li { grid-template-columns: 12px minmax(0, 1fr); gap: 0 12px; }
  .dx-dl li::before { left: 13px; }
  .dx-dl time { grid-column: 2; font-size: 12px; }
  .dx-dl li > i { grid-column: 1; grid-row: 1 / 3; }
  .dx-dl li > div { grid-column: 2; }
  .dx-sheet-in { width: 100%; height: 100%; border-radius: 0; }
  .dx-ask { top: 58px; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #an-demo *, #an-demo *::before, #an-demo *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print: the question asked first ---------- */
.dx-pq { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; }
.dx-pq-in { position: relative; width: min(520px, 100%); padding: 18px 22px 18px; border-radius: 16px; background: #fff; box-shadow: 0 30px 80px -20px rgba(16,24,40,.55); animation: dx-in .2s ease both; }
.dx-pq-top { display: flex; align-items: center; justify-content: space-between; margin: 0 -10px 8px 0; }
.dx-pq-top .dx-k { display: inline-flex; align-items: center; gap: 7px; }
.dx-pq-in h2 { font-size: 1.28rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.dx-pq-body { margin-top: 8px !important; font-size: 13.5px; color: var(--ink2); }
.dx-pq-list { list-style: none; margin-top: 16px !important; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dx-pq-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.dx-pq-list li + li { border-top: 1px solid var(--line); }
.dx-pq-list svg { flex: none; margin-top: 2px; color: var(--accent); }
.dx-pq-list b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dx-pq-list li > span > span { display: block; font-size: 12.5px; color: var(--ink2); }
.dx-pq-list li.is-none svg, .dx-pq-list li.is-none span { color: var(--ink3); }
.dx-pq-note { margin-top: 10px !important; font-size: 12px; color: var(--ink3); }
.dx-pq-acts { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; }
.dx-pq-acts > span { display: inline-flex; gap: 8px; }
.dx-pq-acts .dx-btn[disabled] { cursor: progress; opacity: .85; }
.dx-spin { width: 13px; height: 13px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: dx-spin .8s linear infinite; }
@media (max-width: 600px) {
  .dx-pq-acts, .dx-pq-acts > span { flex-direction: column-reverse; align-items: stretch; }
}
/* The annexures exist only on paper. */
#an-demo .ax { display: none; }

/* ---------- Print: the report, and the annexures when asked for ---------- */
@media print {
  html.dx-lock, html.dx-lock body { overflow: visible !important; background: #fff !important; }
  body > *:not(#an-demo) { display: none !important; }
  #an-demo { position: static; display: block; background: #fff; }
  #an-demo .dx-top, #an-demo .tsr-bar, #an-demo .dx-sheet, #an-demo .dx-ask, #an-demo .dx-pq { display: none !important; }
  #an-demo .dx-stage { overflow: visible !important; }
  #an-demo .tsr-desk { padding: 0; background: #fff; }
  #an-demo .tsr { max-width: none; padding: 0; box-shadow: none; animation: none; font-size: 11.5px; }
  #an-demo .tsr-head h1 { font-size: 26px; }
  #an-demo .tsr-part { margin-top: 24px; }
  #an-demo .tsr-mk { background: none; padding: 0 1px; color: #475467 !important; }
  #an-demo .tsr-mk::before { content: "["; }
  #an-demo .tsr-mk::after { content: "]"; }
  #an-demo .tsr-f, #an-demo .tsr-flow li, #an-demo .tsr-cond li, #an-demo .tsr-kv tr, #an-demo .tsr-t tr { break-inside: avoid; }
  #an-demo .dx-tok, #an-demo .tsr-cond li::before, #an-demo .dx-st-bar, #an-demo .dx-st-cap, #an-demo .dx-st-r.is-hl, #an-demo .tsr-concl, #an-demo .dx-sc, #an-demo .dx-fc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 16mm 14mm; }

  /* Annexures: one sheet per page, each image as large as its sheet allows. */
  #an-demo .ax { display: block; margin: 0; }
  #an-demo .ax-sheet { break-before: page; break-inside: avoid; }
  #an-demo .ax-run { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px !important; padding-bottom: 6px; border-bottom: 1px solid #DADDE2; font-family: var(--dx-sans); font-size: 10px; color: var(--ink3); }
  #an-demo .ax-run .dx-brand { gap: 6px; font-size: 12px; }
  #an-demo .ax-run .dx-brand img { width: 16px; height: 14px; }
  #an-demo .ax-ix .tsr-kick { margin-top: 22px !important; }
  #an-demo .ax-ix h1 { margin-top: 4px !important; font-size: 26px; font-weight: 600; line-height: 1.1; }
  #an-demo .ax-intro { margin-top: 12px !important; max-width: 150mm; font-family: var(--dx-sans); font-size: 11.5px; color: var(--ink2); }
  #an-demo .ax-gsub { margin: 4px 0 4px !important; font-family: var(--dx-sans); font-size: 11px; color: var(--ink2); }
  #an-demo .ax-h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; break-after: avoid; }
  #an-demo .ax-no { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #161B26; font-family: var(--dx-sans); font-size: 12px; font-weight: 700; }
  #an-demo .ax-h .tsr-l { margin-bottom: 1px !important; }
  #an-demo .ax-h h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
  #an-demo .ax-native { font-family: var(--dx-sans); font-size: 11px; font-weight: 400; color: var(--ink3); }
  #an-demo .ax-meta { font-family: var(--dx-sans); font-size: 10.5px; line-height: 1.45; color: var(--ink2); }
  #an-demo .ax-rcpt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 4px 0 10px !important; padding: 5px 0; border-top: 1px solid #DADDE2; border-bottom: 1px solid #DADDE2; font-family: var(--dx-sans); font-size: 10.5px; line-height: 1.45; }
  #an-demo .ax-rcpt div { display: grid; grid-template-columns: 24mm minmax(0, 1fr); gap: 8px; padding: 3px 0; }
  #an-demo .ax-rcpt dt { font-weight: 600; color: var(--ink3); }
  #an-demo .ax-host { display: block; font-size: 9.5px; color: var(--ink3); }
  #an-demo .ax-fig { position: relative; width: min(100%, calc(var(--mh) * var(--ar))); margin: 0 auto !important; border: 1px solid #DADDE2; }
  #an-demo .ax-fig img { display: block; width: 100%; height: auto; }
  #an-demo .ax-box { position: absolute; border: 1.5px solid #B88A00; border-radius: 2px; background: rgba(234,179,8,.10); }
  #an-demo .ax-box b { position: absolute; right: 100%; top: -1.5px; margin-right: 2px; padding: 0 4px; border-radius: 2px; background: #B88A00; color: #fff; font: 700 9.5px/14px var(--dx-sans); }
  #an-demo .ax-marks { margin-top: 8px; font-family: var(--dx-sans); font-size: 10.5px; line-height: 1.4; }
  #an-demo .ax-marks .tsr-l { margin-bottom: 3px !important; }
  #an-demo .ax-marks ol { list-style: none; columns: 2; column-gap: 18px; }
  #an-demo .ax-marks li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 0 6px; padding: 2px 0; break-inside: avoid; }
  #an-demo .ax-marks li b { color: #B88A00; }
  #an-demo .ax-tags { grid-column: 2; font-size: 9.5px; color: var(--ink3); }
  #an-demo .ax-served { margin-top: 6px !important; text-align: center; font-family: var(--dx-sans); font-size: 10px; color: var(--ink3); }
  #an-demo .ax-box, #an-demo .ax-box b { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}


