/*
 * Disclosr UI — the 2026 redesign (clean SaaS, firm-led).
 *
 * Loaded after tailwind.css on pages with <body class="dx">. Two parts:
 *  1. dx-* components used by the redesigned markup.
 *  2. A bridge that restyles the legacy Tailwind classes still used inside
 *     page scripts (markup built in JS), so everything matches without
 *     touching any script.
 * Style only: nothing here changes behaviour.
 */

:root {
  --dx-ground: #F7F8FB;
  --dx-surface: #FFFFFF;
  --dx-subtle: #F9FAFD;
  --dx-ink: #0B1220;
  --dx-ink-2: #3B4456;
  --dx-ink-3: #475467;
  --dx-muted: #5B6475;
  --dx-line: #E3E7EF;
  --dx-line-2: #CDD4E1;
  --dx-hair: #EEF1F6;
  --dx-accent: #1E3A8A;
  --dx-accent-hover: #172554;
  --dx-accent-ink: #172554;
  --dx-accent-soft: #E8EDFB;
  --dx-accent-line: #C7D2F3;
  /* Links in text: brighter than the navy accent so they stand out from body text */
  --dx-link: #1D4ED8;
  --dx-link-hover: #1E3A8A;
  --dx-navy: #0F1B3D;
  --dx-navy-2: #16254F;
  --dx-navy-ink: #A5B4D4;
  --dx-ok: #067647;
  --dx-ok-soft: #E6F4EC;
  --dx-warn: #8A5100;
  --dx-warn-soft: #FEF3DC;
  --dx-warn-line: #F0C27A;
  --dx-bad: #B42318;
  --dx-bad-soft: #FEE4E2;
  --dx-font: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', 'Helvetica Neue', Arial, sans-serif;
}

/* Tailwind's utilities sit in a cascade layer, so any rule here that sets
   display would beat .hidden. Scripts show and hide elements with .hidden:
   it must always win. */
body.dx .hidden:not([class*=":flex"]):not([class*=":block"]):not([class*=":grid"]):not([class*=":inline"]) { display: none !important; }

/* ---- Base ---------------------------------------------------------------- */
body.dx {
  background: var(--dx-ground) !important;
  color: var(--dx-ink);
  font-family: var(--dx-font) !important;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  /* Plus Jakarta Sans joins "fi" and "fl" into one cramped shape ("file", "confirm"): keep the letters apart */
  font-variant-ligatures: no-common-ligatures;
}
/* Form controls and buttons don't inherit it by default */
body.dx button, body.dx input, body.dx select, body.dx textarea { font-variant-ligatures: no-common-ligatures; }
body.dx * { font-family: inherit; }
body.dx code, body.dx .font-mono, body.dx .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; }
body.dx h1, body.dx h2, body.dx h3 { letter-spacing: -.015em; text-wrap: balance; }

body.dx :focus-visible { outline: 2px solid var(--dx-accent); outline-offset: 2px; }

/* Element defaults live in Tailwind's base layer, so any utility class on
   the element (text-white on a button-link, border-red-500 on a field in
   error) still wins over them. */
@layer base {
  body.dx a { color: var(--dx-accent); }
  body.dx a:hover { color: var(--dx-accent-hover); }
  body.dx input[type="text"], body.dx input[type="number"], body.dx input[type="email"], body.dx input[type="tel"], body.dx input[type="date"], body.dx select, body.dx textarea {
    border-radius: 12px; border-color: var(--dx-line-2);
  }
}

/* ---- Layout -------------------------------------------------------------- */
.dx-shell { max-width: 600px; margin: 0 auto; padding: 16px 16px 28px; display: flex; flex-direction: column; gap: 12px; }
.dx-shell-wide { max-width: 1080px; }
.dx-stack { display: flex; flex-direction: column; gap: 12px; }
.dx-row { display: flex; align-items: center; gap: 12px; }
.dx-grow { flex: 1; min-width: 0; }

/* Firm header: the firm leads, Disclosr is a small credit */
.dx-brand { display: flex; align-items: center; gap: 10px; padding: 4px 4px 2px; }

.dx-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.dx-brand-text b { font-weight: 600; color: var(--dx-ink); }
.dx-brand-text span { font-size: 12px; color: var(--dx-muted); }
.dx-powered { text-align: center; font-size: 12px; color: var(--dx-muted); }
.dx-powered b { color: var(--dx-ink-2); font-weight: 700; }

/* Step header: back button + progress segments */
.dx-steps { display: flex; align-items: center; gap: 12px; }
.dx-back { width: 40px; height: 40px; border-radius: 12px; background: var(--dx-surface); color: var(--dx-ink) !important; display: flex; align-items: center; justify-content: center; flex: none; text-decoration: none; }
.dx-progress { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.dx-progress-label { display: flex; justify-content: space-between; font-size: 12px; }
.dx-progress-label b { font-weight: 600; }
.dx-progress-label span { color: var(--dx-muted); }
.dx-bar { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 4px; }
.dx-bar i { height: 5px; border-radius: 3px; background: var(--dx-line-2); }
.dx-bar i.on { background: var(--dx-accent); }

/* ---- Surfaces ------------------------------------------------------------ */
.dx-card { background: var(--dx-surface); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.dx-card-tight { padding: 14px 16px; border-radius: 16px; gap: 10px; }
.dx-card-list { padding: 4px 20px; gap: 0; }
.dx-subtle { background: var(--dx-subtle); border: 1px solid var(--dx-line); border-radius: 12px; padding: 10px 12px; }
.dx-intro { padding: 2px 4px 0; display: flex; flex-direction: column; gap: 4px; }

.dx-h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--dx-ink); }
.dx-h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--dx-ink); }
.dx-label { font-size: 12px; font-weight: 600; color: var(--dx-muted); letter-spacing: .02em; }
.dx-lead { margin: 0; color: var(--dx-ink-3); line-height: 1.5; }
.dx-muted { color: var(--dx-muted); }
.dx-small { font-size: 13px; }

/* Numbered or icon list rows */
.dx-li { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--dx-hair); }
.dx-li:last-child { border-bottom: 0; }
.dx-li-text { display: flex; flex-direction: column; min-width: 0; }
.dx-li-text b { font-weight: 600; }
.dx-li-text span { font-size: 13px; color: var(--dx-muted); }

.dx-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--dx-accent-soft); color: var(--dx-accent); }
.dx-icon.ok { background: var(--dx-ok-soft); color: var(--dx-ok); }
.dx-icon.warn { background: var(--dx-warn-soft); color: var(--dx-warn); }
.dx-kv { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--dx-hair); }
.dx-kv:first-child { border-top: 0; }
.dx-kv > span { flex: 1; color: var(--dx-ink-3); }
.dx-kv > b { font-weight: 600; text-align: right; }

/* Notes */
.dx-note { display: flex; gap: 10px; align-items: flex-start; background: var(--dx-accent-soft); color: var(--dx-accent-ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.dx-note.warn { background: var(--dx-warn-soft); color: var(--dx-warn); }
.dx-note.ok { background: var(--dx-ok-soft); color: var(--dx-ok); }
.dx-note svg { flex: none; margin-top: 1px; }

/* ---- Controls ------------------------------------------------------------ */
.dx-btn { height: 52px; padding: 0 20px; border-radius: 14px; background: var(--dx-accent); color: #fff !important; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border: 0; cursor: pointer; width: 100%; transition: background .15s; }
.dx-btn:hover { background: var(--dx-accent-hover); }
.dx-btn:disabled, .dx-btn[disabled] { opacity: .55; cursor: not-allowed; }
.dx-btn-quiet { background: var(--dx-surface); color: var(--dx-ink) !important; border: 1px solid var(--dx-line-2); }
.dx-btn-quiet:hover { background: var(--dx-subtle); }

.dx-actions { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.dx-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--dx-accent-soft); color: var(--dx-accent-ink); }
.dx-chip.ok { background: var(--dx-ok-soft); color: var(--dx-ok); }
.dx-chip.warn { background: var(--dx-warn-soft); color: var(--dx-warn); }
.dx-chip.bad { background: var(--dx-bad-soft); color: var(--dx-bad); }
.dx-chip.grey { background: var(--dx-hair); color: var(--dx-ink-3); }

/* ---- Bridge: legacy classes inside dx pages ------------------------------ */
/* Primary actions (teal/cyan gradients and solids) become cobalt */
body.dx .from-teal-400, body.dx .from-teal-500, body.dx .from-teal-600, body.dx .from-cyan-500, body.dx .from-cyan-600, body.dx .from-emerald-500, body.dx .bg-teal-500, body.dx .bg-teal-600, body.dx .bg-teal-700, body.dx .bg-cyan-600, body.dx .bg-brand-teal {
  background-image: none !important;
  background-color: var(--dx-accent) !important;
  box-shadow: none !important;
}
body.dx .from-teal-500:hover:not(:disabled), body.dx .bg-teal-600:hover:not(:disabled), body.dx .hover\:bg-teal-700:hover:not(:disabled) { background-color: var(--dx-accent-hover) !important; }
/* Soft tints */
body.dx .from-teal-50, body.dx .from-teal-100, body.dx .from-cyan-50, body.dx .from-cyan-100, body.dx .bg-teal-50, body.dx .bg-teal-100, body.dx .bg-cyan-50, body.dx .bg-cyan-100 {
  background-image: none !important; background-color: var(--dx-accent-soft) !important;
}
body.dx .text-teal-500, body.dx .text-teal-600, body.dx .text-teal-700, body.dx .text-teal-800, body.dx .text-teal-900, body.dx .text-cyan-600, body.dx .text-cyan-700, body.dx .text-brand-teal { color: var(--dx-accent-ink) !important; }
body.dx .border-teal-100, body.dx .border-teal-200, body.dx .border-teal-300, body.dx .border-cyan-200 { border-color: var(--dx-accent-line) !important; }
body.dx .border-teal-500, body.dx .border-teal-600, body.dx .border-brand-teal { border-color: var(--dx-accent) !important; }
body.dx .focus\:ring-teal-500:focus, body.dx .focus\:border-teal-500:focus { --tw-ring-color: var(--dx-accent) !important; border-color: var(--dx-accent) !important; }
body.dx .ring-teal-500, body.dx .ring-teal-200 { --tw-ring-color: var(--dx-accent-line) !important; }
body.dx .accent-teal-600, body.dx input[type="checkbox"], body.dx input[type="radio"] { accent-color: var(--dx-accent); }
/* Page grounds and heavy shadows */
body.dx .bg-gradient-to-br.from-slate-50, body.dx .bg-slate-50.min-h-screen, body.dx .bg-gray-50.min-h-screen { background: var(--dx-ground) !important; }
body.dx .shadow-lg, body.dx .shadow-xl, body.dx .shadow-2xl, body.dx .shadow-md { box-shadow: 0 1px 2px rgba(16, 24, 40, .06) !important; }
/* Cards: white, softer corners, no hard borders */
body.dx .bg-white.rounded-2xl, body.dx .bg-white.rounded-xl { border-radius: 20px; }
body.dx .bg-white.rounded-2xl.border, body.dx .bg-white.rounded-xl.border { border-color: transparent !important; }
body.dx .rounded-lg { border-radius: 12px; }
/* Fields */

body.dx input:focus, body.dx select:focus, body.dx textarea:focus { border-color: var(--dx-accent) !important; box-shadow: 0 0 0 3px var(--dx-accent-soft) !important; outline: none; }
body.dx .font-bold { font-weight: 600; }
body.dx .text-gray-900, body.dx .text-slate-900 { color: var(--dx-ink); }
body.dx .text-gray-500, body.dx .text-slate-500 { color: var(--dx-muted); }

@media (min-width: 720px) {
  .dx-shell { padding-top: 32px; gap: 14px; }
  .dx-h1 { font-size: 28px; }
}

/* ---- Applicant bank page (bank + questions + QR) ---------------------------- */

body.dx .applicable-option, body.dx .yes-no-option, body.dx .checkbox-option { border-radius: 12px !important; border-width: 1px !important; border-color: var(--dx-line-2) !important; }
body.dx .applicable-option:has(input:checked), body.dx .yes-no-option:has(input:checked), body.dx .checkbox-option:has(input:checked) { border-color: var(--dx-accent) !important; background: var(--dx-accent-soft) !important; box-shadow: inset 0 0 0 .5px var(--dx-accent); }
body.dx .questionnaire-entry { border-radius: 14px !important; border-color: var(--dx-line) !important; box-shadow: none !important; }
body.dx .step-dot { border-radius: 9px !important; }
body.dx .bg-indigo-500, body.dx .bg-indigo-600 { background-color: var(--dx-accent) !important; }
body.dx .ring-indigo-300, body.dx .ring-teal-500 { --tw-ring-color: var(--dx-accent-line) !important; }
body.dx .text-indigo-600, body.dx .text-indigo-700 { color: var(--dx-accent-ink) !important; }
body.dx .bg-indigo-100 { background-color: var(--dx-accent-soft) !important; }
body.dx #stepProgressBar { background: var(--dx-accent) !important; }
body.dx .border-teal-400, body.dx .hover\:border-teal-400:hover, body.dx .border-blue-500 { border-color: var(--dx-accent) !important; }
body.dx .text-blue-600, body.dx .text-blue-700 { color: var(--dx-accent-ink); }
body.dx .bg-blue-50 { background-color: var(--dx-accent-soft); }
body.dx .bg-blue-600, body.dx .bg-blue-700 { background-color: var(--dx-accent); }
body.dx #bankSelectorModal > div, body.dx #qrModal > div { border-radius: 24px 24px 0 0; }
@media (min-width: 640px) { body.dx #bankSelectorModal > div, body.dx #qrModal > div { border-radius: 24px; } }
body.dx #qrModal .bg-emerald-600, body.dx #qrModal .bg-emerald-600:hover { background-color: var(--dx-accent) !important; }
body.dx #qrModal .bg-emerald-50 { background-color: var(--dx-accent-soft) !important; border-color: var(--dx-accent-line) !important; }
body.dx #qrModal .text-emerald-700 { color: var(--dx-accent-ink) !important; }
body.dx #qrModal .border-emerald-600 { border-color: var(--dx-line) !important; box-shadow: none !important; }
body.dx #qrModal #progressSteps { background: var(--dx-subtle); border-radius: 14px; padding: 12px 10px 6px; }
body.dx #qrModal button { border-radius: 14px !important; min-height: 46px; }

/* Legacy blocks inside the new shell: the shell's gap does the spacing */
body.dx .dx-shell > [class*="mb-"] { margin-bottom: 0 !important; }

/* The brand header sits above the shell on legacy pages */
body.dx > .dx-brand { max-width: 600px; margin: 0 auto; padding: 16px 20px 0; }
body.dx > .dx-brand.dx-wide { max-width: 760px; }
@media (min-width: 720px) { body.dx > .dx-brand { padding-top: 32px; } }

/* Coloured section headers (gradient bars with white text) become calm card
   headers, as in the designs. Also fixes headers whose gradient classes were
   never compiled (white text on white). Buttons and links are left alone. */
body.dx div.bg-gradient-to-r.px-6:not(button):not(a), body.dx div.bg-gradient-to-br.px-6:not(button):not(a) {
  background: var(--dx-surface) !important; border-bottom: 1px solid var(--dx-hair);
}
body.dx div.bg-gradient-to-r.px-6 .text-white, body.dx div.bg-gradient-to-br.px-6 .text-white, body.dx div.bg-gradient-to-r.px-6.text-white, body.dx div.bg-gradient-to-br.px-6.text-white { color: var(--dx-ink) !important; }
body.dx div.bg-gradient-to-r.px-6 [class*="text-white/"], body.dx div.bg-gradient-to-br.px-6 [class*="text-white/"] { color: var(--dx-muted) !important; }
body.dx div.bg-gradient-to-r.px-6 .bg-white\/20 { background: var(--dx-accent-soft) !important; color: var(--dx-accent) !important; }
/* Shell children never grow past the shell (carousels, wide tables) */
body.dx .dx-shell > * { min-width: 0; max-width: 100%; }
/* Swipe carousels: each slide is exactly one view wide (was sized to its
   widest content, so slides ran off the screen on phones) */
body.dx .slide-container > .slide { width: 100%; max-width: 100%; }
body.dx .slide .flex.items-center.justify-between { flex-wrap: wrap; gap: 8px; }

/* ---- Rent referencing / proof of funds pages ----------------------------- */
/* Emerald was their primary action colour: buttons become cobalt; green stays
   for success ticks and "found" states (text, small icons, soft fills). */
body.dx a.bg-emerald-600, body.dx button.bg-emerald-600, body.dx a.bg-emerald-500, body.dx button.bg-emerald-500, body.dx a.bg-slate-900, body.dx button.bg-slate-900 {
  background-color: var(--dx-accent) !important; border-color: var(--dx-accent) !important; box-shadow: none !important; border-radius: 14px !important;
}
body.dx a.bg-emerald-600:hover, body.dx button.bg-emerald-600:hover:not(:disabled), body.dx a.bg-slate-900:hover, body.dx button.bg-slate-900:hover:not(:disabled) { background-color: var(--dx-accent-hover) !important; }
body.dx .border-emerald-600 { border-color: var(--dx-accent) !important; }
body.dx .text-emerald-600, body.dx .text-emerald-700, body.dx .text-green-600 { color: var(--dx-ok) !important; }
body.dx .bg-emerald-50, body.dx .bg-green-50 { background-color: var(--dx-ok-soft) !important; }
body.dx .border-emerald-200, body.dx .border-green-200 { border-color: #BFE3CF !important; }
/* Dark icon tiles become soft cobalt */
body.dx div.bg-slate-900.rounded-xl, body.dx div.bg-slate-900.rounded-lg, body.dx div.bg-slate-900.rounded-2xl { background: var(--dx-accent-soft) !important; }
body.dx div.bg-slate-900.rounded-xl > svg, body.dx div.bg-slate-900.rounded-lg > svg, body.dx div.bg-slate-900.rounded-2xl > svg, body.dx div.bg-slate-900 > svg { color: var(--dx-accent) !important; }
/* Centred hero headers read as the design's left-aligned intros */
body.dx .dx-shell > .text-center.mb-8, body.dx .dx-shell > .text-center.mb-10 { text-align: left; }
body.dx .dx-shell > .text-center.mb-8 > .inline-flex:first-child, body.dx .dx-shell > .text-center.mb-10 > .inline-flex:first-child { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px; background: var(--dx-accent-soft) !important; border: 0 !important; box-shadow: none !important; }
body.dx .dx-shell > .text-center.mb-8 > .inline-flex:first-child svg { width: 22px; height: 22px; color: var(--dx-accent) !important; }
body.dx .dx-shell > .text-center h1 { font-size: 26px !important; line-height: 1.2; font-weight: 600 !important; letter-spacing: -.02em; }
body.dx .dx-shell > .text-center p { font-size: 15px !important; }
/* Full-screen status pages (processing, phone hand-off, bank error) */
body.dx.flex { background: var(--dx-ground) !important; }
body.dx.flex > div { background: var(--dx-surface) !important; border: 0 !important; box-shadow: 0 1px 2px rgba(16,24,40,.06) !important; border-radius: 24px !important; backdrop-filter: none !important; }
body.dx.flex [class*="text-white"], body.dx.flex .text-cyan-100 { color: var(--dx-ink-2) !important; }
body.dx.flex h1.text-white { color: var(--dx-ink) !important; }

/* Rent referencing steps: amber was the theme colour, not a warning */

/* Header and step indicator */

body.dx .bg-emerald-500.h-2, body.dx .bg-emerald-600.h-2, body.dx .bg-emerald-500.h-1\.5 { background-color: var(--dx-accent) !important; }

/* Submitted / done heroes: a white card with a green tick (R4 / J11) */
body.dx div.bg-gradient-to-br.from-emerald-600 { background: var(--dx-surface) !important; color: var(--dx-ink) !important; box-shadow: none !important; text-align: left; border-radius: 20px !important; }
body.dx div.bg-gradient-to-br.from-emerald-600 .text-white, body.dx div.bg-gradient-to-br.from-emerald-600 h1, body.dx div.bg-gradient-to-br.from-emerald-600 h2 { color: var(--dx-ink) !important; }
body.dx div.bg-gradient-to-br.from-emerald-600 [class*="text-white/"], body.dx div.bg-gradient-to-br.from-emerald-600 p { color: var(--dx-ink-3) !important; }
body.dx div.bg-gradient-to-br.from-emerald-600 [class*="bg-white/"] { background: var(--dx-ok-soft) !important; color: var(--dx-ok) !important; }
body.dx div.bg-gradient-to-br.from-emerald-600 [class*="bg-white/"] svg { color: var(--dx-ok) !important; }
body.dx div.bg-gradient-to-br.from-emerald-600 > div[class*="absolute"] { display: none; }
body.dx div.bg-gradient-to-br.from-emerald-600 .mx-auto, body.dx div.bg-gradient-to-br.from-emerald-600 .justify-center { margin-left: 0; justify-content: flex-start; }
body.dx div.bg-gradient-to-br.from-emerald-500 { background: var(--dx-ok-soft) !important; box-shadow: none !important; }
body.dx div.bg-gradient-to-br.from-emerald-500 svg { color: var(--dx-ok) !important; }

/* ---- Firm pages ------------------------------------------------------------ */
body.dx-firm { font-size: 14px; }

.dx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.dx-stat { background: var(--dx-surface); border: 1px solid #E4E7EC; border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.dx-stat span { font-size: 13px; color: var(--dx-muted); }
.dx-stat b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.dx-firm .bg-white.rounded-xl.border, body.dx-firm .bg-white.rounded-2xl.border { border-color: #E4E7EC !important; border-radius: 14px; box-shadow: none !important; }
body.dx-firm .bg-gray-50.border-b, body.dx-firm thead, body.dx-firm thead tr { background: var(--dx-surface) !important; }
body.dx-firm th { font-weight: 500 !important; color: var(--dx-muted) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 12px !important; }
/* Status filters as pills; the active one (set by the page script) is solid */
body.dx-firm button[id^="filter-"] { border-radius: 999px !important; height: 34px; padding: 0 14px !important; background: var(--dx-surface) !important; color: var(--dx-ink-2) !important; border: 1px solid var(--dx-line-2); }
body.dx-firm button[id^="filter-"].bg-teal-100 { background: var(--dx-ink) !important; color: #fff !important; border-color: var(--dx-ink); }

body.dx-firm .step-dot.bg-gray-300 { background: var(--dx-line-2) !important; }
body.dx-firm h1.text-xl, body.dx-firm h1.text-2xl { font-weight: 600 !important; letter-spacing: -.015em; }

/* Search icons inside inputs (their top-2.5 class was never compiled, so
   they sat under the field) */
body.dx .relative > input + svg.absolute { top: 50%; transform: translateY(-50%); }

/* Case review status banner (F3): a white card with a green marker instead
   of a full green gradient. Buttons inside keep working as before. */
body.dx-firm div.bg-gradient-to-r.from-green-500 { background: var(--dx-surface) !important; color: var(--dx-ink) !important; box-shadow: none !important; border: 1px solid #E4E7EC; border-left: 4px solid var(--dx-ok); border-radius: 14px !important; }
body.dx-firm div.bg-gradient-to-r.from-green-500 h2, body.dx-firm div.bg-gradient-to-r.from-green-500 h1 { color: var(--dx-ink) !important; }
body.dx-firm div.bg-gradient-to-r.from-green-500 [class*="text-white"], body.dx-firm div.bg-gradient-to-r.from-green-500 p { color: var(--dx-ink-3) !important; }
body.dx-firm div.bg-gradient-to-r.from-green-500 [class*="bg-white/"] { background: var(--dx-ok-soft) !important; color: var(--dx-ok) !important; }
body.dx-firm div.bg-gradient-to-r.from-green-500 a[class*="bg-white/"], body.dx-firm div.bg-gradient-to-r.from-green-500 button[class*="bg-white/"] { background: var(--dx-surface) !important; color: var(--dx-ink) !important; border: 1px solid var(--dx-line-2); }
body.dx-firm div.bg-gradient-to-r.from-green-500 a.bg-white, body.dx-firm div.bg-gradient-to-r.from-green-500 button.bg-white { background: var(--dx-accent) !important; color: #fff !important; }
body.dx-firm div.bg-gradient-to-r.from-green-500 a.bg-white svg, body.dx-firm div.bg-gradient-to-r.from-green-500 a.bg-white * { color: #fff !important; }

/* ---- Client journey: bank screen, then one question at a time ------------ */

.dx-own-answer { width: 100%; min-height: 120px; border-radius: 12px; border: 1px solid var(--dx-line-2); padding: 10px 12px; font: inherit; box-sizing: border-box; resize: vertical; }
/* Form-led journey: the plan, banks to connect, account per line, entries */
.dx-plan-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--dx-line); }
.dx-plan-row:first-child { border-top: 0; padding-top: 0; }
.dx-plan-row .dx-chip { flex: none; }
.dx-banklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dx-banklist li { display: flex; align-items: flex-start; gap: 10px; }

fieldset.dx-field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.dx-field[hidden] { display: none !important; }
label.dx-field { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 520px) { .dx-plan-row { flex-wrap: wrap; } .dx-plan-row select { max-width: none !important; width: 100%; } }

#questionnaireSection { opacity: 1 !important; pointer-events: auto !important; }
.dx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.dx-dashed { border-style: dashed !important; border-color: #98A2B3 !important; }

.dx-q { background: var(--dx-surface); border-radius: 20px; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }

.dx-tick input { position: absolute; opacity: 0; pointer-events: none; }

.dx-tick:has(input:focus-visible) { outline: 2px solid var(--dx-accent); outline-offset: 2px; }
.dx-tick { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; line-height: 1.45; border-radius: 12px; border: 1px solid var(--dx-line-2); color: var(--dx-ink-2); cursor: pointer; }
.dx-tick::before { content: ""; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--dx-line-2); background: var(--dx-surface); flex: none; }
.dx-tick:has(input:checked) { border: 1.5px solid var(--dx-accent) !important; background: var(--dx-accent-soft) !important; color: var(--dx-accent-ink); font-weight: 600; }
.dx-tick:has(input:checked)::before { background: var(--dx-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; border-color: var(--dx-accent); }

.questionnaire-entry + .questionnaire-entry { border-top: 1px solid var(--dx-hair); padding-top: 14px; }
.dx-field { display: flex; flex-direction: column; gap: 6px; }
.dx-field-label { font-size: 13px; font-weight: 600; color: var(--dx-ink-2); }
.dx-field-hint { font-size: 12px; color: var(--dx-muted); }
.dx-input, body.dx .questionnaire-entry input[type="text"], body.dx .questionnaire-entry input[type="number"], body.dx .questionnaire-entry select { height: 46px; border-radius: 12px !important; border: 1px solid var(--dx-line-2); background: var(--dx-subtle); padding: 0 14px; font: inherit; color: var(--dx-ink); width: 100%; box-sizing: border-box; }
.dx-money { display: flex; align-items: center; gap: 6px; height: 46px; border-radius: 12px; border: 1px solid var(--dx-line-2); background: var(--dx-subtle); padding: 0 14px; }
.dx-money span { color: var(--dx-muted); }
.dx-money input { border: 0 !important; outline: none; background: transparent !important; font: inherit; color: var(--dx-ink); width: 100%; height: 100%; padding: 0 !important; box-shadow: none !important; }
.dx-money:focus-within { border-color: var(--dx-accent); box-shadow: 0 0 0 3px var(--dx-accent-soft); }
/* One box: the £ box shows the focus, never the input inside it */
body.dx .dx-money input, body.dx .dx-money input:focus, body.dx .dx-money input:hover { border: 0 !important; box-shadow: none !important; background: transparent !important; outline: none !important; border-radius: 0 !important; height: 100% !important; padding: 0 !important; }

.dx-more > summary { font-size: 13px; color: var(--dx-accent); cursor: pointer; font-weight: 600; }
.dx-more[open] > summary { margin-bottom: 8px; }
.dx-addlink { align-self: flex-start; background: none; border: 0; padding: 4px 2px; color: var(--dx-accent); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }

/* Added entries (built by the page script) follow the same look */
body.dx .questionnaire-entry.border { border: 0 !important; background: transparent !important; padding: 14px 0 0 !important; }
body.dx .questionnaire-entry label.block { font-size: 13px; font-weight: 600; color: var(--dx-ink-2); }
#questionnaireSlider .questionnaire-slide { padding: 0 !important; }
#questionnaireSlider .questionnaire-slide > .dx-q { height: 100%; box-sizing: border-box; }

/* Payments we matched (J08): one list, no carousel */

body.dx #continueBtn.dx-btn { display: flex !important; }

/* Explain (J09) */

.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-list:empty { display: none; }
body.dx .doc-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--dx-subtle) !important; border: 1px solid var(--dx-line) !important; font-size: 14px; color: var(--dx-ink); }
body.dx .doc-item > svg { color: var(--dx-accent); flex: none; }
body.dx .doc-remove { width: 32px; height: 32px; border: 0; background: transparent; color: var(--dx-muted); font-size: 18px; cursor: pointer; }
body.dx .doc-add { margin-top: 8px; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 12px; border: 1px dashed #98A2B3 !important; color: var(--dx-ink-2); cursor: pointer; }
.doc-list:empty + .doc-add { margin-top: 0; }
body.dx .doc-error { margin: 6px 0 0; font-size: 12px; color: var(--dx-bad); }

/* Summary (J10) and submit (J13) */

body.dx #spinner > div { border-radius: 20px; }

/* ---- Case review (F3) ------------------------------------------------------ */
.dx-review { max-width: 1240px; margin: 0 auto; padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 18px; }
.dx-review-head { display: flex; flex-direction: column; gap: 8px; }
.dx-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--dx-muted); }
.dx-crumbs a { text-decoration: none; }
.dx-review-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.dx-review-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--dx-ink-3); }
.dx-review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.dx-review-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dx-review-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; }
/* UX15: the answer in one line under the title; Timing folded until wanted */
.dx-verdict { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--dx-ink); }
.dx-fold > summary { cursor: pointer; list-style: none; }
.dx-fold > summary::-webkit-details-marker { display: none; }
.dx-fold > summary::after { content: 'Show'; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--dx-accent); }
.dx-fold[open] > summary::after { content: 'Hide'; }
.dx-fold[open] > summary { margin-bottom: 8px; }
@media (max-width: 1000px) { .dx-review-grid { grid-template-columns: minmax(0, 1fr); } .dx-review-aside { position: static; order: -1; } }
.dx-panel { background: var(--dx-surface); border: 1px solid #E4E7EC; border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dx-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dx-panel-head span { font-size: 13px; color: var(--dx-muted); }
.dx-table-wrap { overflow-x: auto; border: 1px solid var(--dx-line); border-radius: 12px; }
.dx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dx-table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--dx-muted); padding: 10px 14px; border-bottom: 1px solid var(--dx-line); background: var(--dx-surface); }
.dx-table td { padding: 11px 14px; border-top: 1px solid var(--dx-hair); vertical-align: top; }
.dx-table tr:first-child td { border-top: 0; }
.dx-decide { display: flex; flex-direction: column; gap: 12px; }
.dx-decide .flex.items-center.mb-6 { margin-bottom: 0 !important; }
.dx-decide .bg-emerald-100 { display: none; }
.dx-decide .mb-6 { margin-bottom: 0 !important; }
.dx-decide textarea { width: 100%; border-radius: 12px; border: 1px solid var(--dx-line-2); padding: 10px 12px; font: inherit; box-sizing: border-box; }
.dx-decide-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dx-decide-actions .dx-btn { height: 46px; }
.dx-reject { color: var(--dx-bad) !important; }
.dx-ask { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--dx-ink-2); line-height: 1.45; }
.dx-review .tab-button.active { color: var(--dx-accent) !important; border-color: var(--dx-accent) !important; }
.dx-review .rounded-t-2xl { border-radius: 14px 14px 0 0 !important; }
.dx-review .rounded-b-2xl { border-radius: 0 0 14px 14px !important; }
@media print { .dx-review-aside { display: none; } .dx-review-grid { grid-template-columns: 1fr; } }

/* ---- Firm app shell with sidebar (F1) -------------------------------------- */
.dx-app { display: flex; min-height: 100vh; }
/* The menu rail: navy, icons with short labels underneath */
.dx-side { flex: 0 0 88px; background: var(--dx-navy); padding: 16px 0; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 14px; position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; }
/* The side bar is the height of the window and stays put, so Sign out at its foot is always on screen */
.dx-side .dx-side-firm { width: 72px; text-align: center; font-size: 11px; font-weight: 700; color: #FFFFFF; line-height: 1.25; padding: 4px 0 10px; border-bottom: 1px solid rgba(165,180,212,.2); overflow-wrap: anywhere; }
.dx-side-nav { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dx-side-nav a, .dx-side-nav button, .dx-side-foot .dx-signout { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 2px 6px; border-radius: 10px; color: var(--dx-navy-ink) !important; text-decoration: none; background: none; border: 0; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; box-sizing: border-box; }
.dx-side-nav a:hover, .dx-side-nav button:hover, .dx-side-foot .dx-signout:hover { background: var(--dx-navy-2); color: #FFFFFF !important; }
.dx-side-nav a.active { background: var(--dx-accent); color: #FFFFFF !important; }
.dx-side-nav svg, .dx-side-foot .dx-signout svg { width: 20px; height: 20px; }
.dx-side-nav a:focus-visible, .dx-side-foot a:focus-visible { outline: 3px solid #93A9E8 !important; outline-offset: 1px; }
.dx-side-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }

.dx-side-foot .dx-powered { width: 72px; font-size: 10px; color: var(--dx-navy-ink); text-align: center; }
.dx-side-foot .dx-powered b { color: #FFFFFF; }
.dx-side-foot .relative > button { width: 100%; }
.dx-side-foot .relative > button .text-white { color: var(--dx-ink) !important; }
.dx-side-foot #userDropdown { bottom: 100%; top: auto; left: 0; right: auto; margin-bottom: 8px; }
.dx-app-main { flex: 1; min-width: 0; }
.dx-app-content { max-width: 1180px; margin: 0 auto; padding: 28px 32px 40px; }
.dx-page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
@media (max-width: 860px) {
  .dx-app { flex-direction: column; }
  .dx-side { position: static; height: auto; min-height: 0; align-self: stretch; overflow: visible; flex: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; }
  .dx-side .dx-side-firm { width: auto; border: 0; padding: 0 6px; text-align: left; }
  .dx-side-nav { flex-direction: row; flex-wrap: wrap; order: 3; width: 100%; }
  .dx-side-nav a, .dx-side-nav button { width: auto; flex-direction: row; padding: 8px 10px; font-size: 13px; }
  .dx-side-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .dx-side-foot .dx-powered { display: none; }
  .dx-side-foot .dx-signout { width: auto; flex-direction: row; font-size: 13px; padding: 8px 10px; }
  .dx-side-foot #userDropdown { top: 100%; bottom: auto; right: 0; left: auto; margin-top: 8px; }
  .dx-app-content { padding: 20px 16px 32px; }
}

/* ---- New case (F2) ---------------------------------------------------------- */
.dx-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

@media (max-width: 760px) { .dx-grid3 { grid-template-columns: minmax(0, 1fr); } }
.dx-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .dx-paths { grid-template-columns: minmax(0, 1fr); } }
.dx-path { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--dx-line-2); cursor: pointer; }
.dx-path input { margin-top: 3px; accent-color: var(--dx-accent); }
.dx-path > span { display: flex; flex-direction: column; gap: 2px; }
.dx-path > span > span { font-size: 13px; color: var(--dx-ink-2); line-height: 1.4; }
.dx-path:has(input:checked) { border: 1.5px solid var(--dx-accent); background: var(--dx-accent-soft); }

.dx-check input { accent-color: var(--dx-accent); width: 16px; height: 16px; }

/* Only when the firm enters the answers: the boxes are the answers */

.dx-own { display: flex; flex-direction: column; gap: 8px; }

.dx-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--dx-ink-2); cursor: pointer; }
/* The relationship box is only needed for "Other" (the buttons fill it) */

/* Account checks: the new-check modal and list in the same style */
body.dx-firm #newRequestModal > div { border-radius: 20px !important; }
body.dx-firm #newRequestModal .bg-gradient-to-br.from-teal-50 { display: none; }
body.dx-firm #newRequestModal input, body.dx-firm #newRequestModal select { border-radius: 12px !important; }
body.dx-firm #newRequestModal button[type="submit"] { background: var(--dx-accent) !important; box-shadow: none !important; border-radius: 12px; }
body.dx-firm .dx-app .tab-button.active { background-color: var(--dx-ink) !important; color: #fff !important; border-radius: 999px; }
body.dx-firm .dx-app .tab-button { border-radius: 999px; }
body.dx-firm .smooth-hover:hover { transform: none; box-shadow: none; }
body.dx-firm .text-orange-700, body.dx-firm .text-orange-600 { color: var(--dx-warn) !important; }
/* Check-type badges in the same calm style as Cases */
body.dx-firm div.bg-gradient-to-r.from-orange-100, body.dx-firm div.bg-gradient-to-r.from-purple-100, body.dx-firm div.bg-gradient-to-r.from-blue-100, body.dx-firm div.bg-gradient-to-r.from-teal-100 { background: var(--dx-subtle) !important; border: 1px solid var(--dx-line) !important; border-radius: 10px !important; }
body.dx-firm .text-orange-900, body.dx-firm .text-purple-900, body.dx-firm .text-blue-900 { color: var(--dx-ink) !important; letter-spacing: .02em; }
body.dx-firm .text-purple-700, body.dx-firm .text-purple-600, body.dx-firm .text-blue-600, body.dx-firm .text-blue-700 { color: var(--dx-accent-ink) !important; }

/* Request documents (case review) */

.dx-linkbtn { align-self: flex-start; background: none; border: 0; padding: 2px 0; color: var(--dx-accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

.dr-item { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--dx-hair); }
.dr-item:first-child { border-top: 0; }
.dr-item .dx-check { width: 100%; }
.dr-item .dr-title { flex: 1; }
.dr-item textarea, #drMessage { height: auto; padding: 8px 12px; resize: vertical; font-size: 13px; }
.dx-testbank { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; border: 1px dashed var(--dx-warn-line); background: var(--dx-warn-soft); color: var(--dx-warn); font-size: 13px; }
/* Case review: Documents tab */

/* Checking (R3) */
.dx-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dx-checklist li { display: flex; align-items: center; gap: 12px; color: var(--dx-muted); }
.dx-checklist .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--dx-line-2); flex: none; box-sizing: border-box; }
.dx-checklist li.done { color: var(--dx-ink); }
.dx-checklist li.done .dot { border: 0; background: var(--dx-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.dx-checklist li.active { color: var(--dx-ink); font-weight: 600; }
.dx-checklist li.active .dot { border-color: var(--dx-accent); border-top-color: transparent; animation: dxspin 0.9s linear infinite; }
@keyframes dxspin { to { transform: rotate(360deg); } }
/* Phone hand-off (Q2) */
.dx-handoff { display: flex; align-items: center; gap: 12px; }
.dx-handoff-dots { display: flex; gap: 5px; }
.dx-handoff-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--dx-accent); opacity: .25; animation: dxpulse 1.2s infinite; }
.dx-handoff-dots i:nth-child(2) { animation-delay: .2s; }
.dx-handoff-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dxpulse { 50% { opacity: 1; } }

/* Desktop QR hand-off (Q1): instructions and buttons left, the code right.
   Pure layout: the pop-up's elements and their ids are unchanged. */
body.dx #qrModal > div > div:first-child { background: var(--dx-surface) !important; color: var(--dx-ink) !important; text-align: left; padding: 22px 22px 6px !important; }
body.dx #qrModal > div > div:first-child h2 { color: var(--dx-ink) !important; font-size: 21px; font-weight: 600; }
body.dx #qrModal > div > div:first-child p { color: var(--dx-ink-3) !important; font-size: 14px; max-width: none; line-height: 1.5; }
body.dx #qrModal > div > div:first-child .inline-flex { background: var(--dx-accent-soft) !important; color: var(--dx-accent) !important; box-shadow: none !important; }
@media (min-width: 760px) {
  body.dx #qrModal > div { max-width: 760px !important; display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "head qr" "steps qr" "actions qr"; align-items: start; }
  body.dx #qrModal > div > div:first-child { grid-area: head; }
  body.dx #qrModal > div > div:nth-child(2) { display: contents; }
  body.dx #qrModal #progressSteps { grid-area: steps; margin: 8px 22px 0; }
  body.dx #qrModal div:has(> #qrCodeContainer) { grid-area: qr; grid-row: 1 / span 3; align-self: stretch; margin: 0 !important; padding: 28px 24px; background: var(--dx-subtle); border-left: 1px solid var(--dx-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
  body.dx #qrModal #qrStatusMessage, body.dx #qrModal #qrExpiryTimer { grid-area: qr; align-self: end; margin: 0 0 22px !important; justify-self: center; position: relative; z-index: 1; }
  body.dx #qrModal #qrStatusMessage { margin-bottom: 64px !important; }
  body.dx #qrModal div:has(> button[onclick="regenerateQR()"]) { grid-area: actions; margin: 16px 22px 22px; display: flex; flex-wrap: wrap; gap: 8px; }
  body.dx #qrModal div:has(> button[onclick="regenerateQR()"]) > * { margin: 0 !important; width: auto !important; flex: 1 1 auto; }
  body.dx #qrModal div:has(> #qrCodeContainer) { padding-bottom: 110px; }
}
/* ID photos (J14) */

/* Case review: the form line by line */

.dx-chip.accent { background: var(--dx-accent-soft); color: var(--dx-accent-ink); }

.q-bank-none { align-self: center; }
/* Firm enters the answers: name and "client says no" on top, the boxes two by two */

.dx-grid2-money { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
@media (max-width: 560px) { .dx-grid2-money { grid-template-columns: minmax(0, 1fr); } }
/* Documents: one line per document, opened for files and actions */
.dx-doclist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dx-doclist > li { border-top: 1px solid var(--dx-hair); }
.dx-doclist > li:first-child { border-top: 0; }
.dx-doclist summary { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; list-style: none; font-size: 14px; }
.dx-doclist summary::-webkit-details-marker { display: none; }
.dx-doclist summary::after { content: '›'; color: var(--dx-muted); font-size: 18px; line-height: 1; transition: transform .15s; }
.dx-doclist details[open] summary::after { transform: rotate(90deg); }
.dx-doclist b { font-weight: 600; }
/* Help */
.dx-help { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }

.dx-help-terms { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 16px; font-size: 14px; line-height: 1.5; }
.dx-help-terms dt { font-weight: 600; color: var(--dx-ink); }
.dx-help-terms dd { margin: 0; color: var(--dx-ink-2); }

@media (max-width: 640px) { .dx-help-terms { grid-template-columns: minmax(0, 1fr); } .dx-help-terms dd { margin-bottom: 6px; } }
/* Rent applications */
.dx-person-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 0.9fr) auto; gap: 8px; align-items: center; }
.dx-person-row .dx-input, .dx-person-row .dx-money { height: 40px; }
.dx-person-row .p-remove { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--dx-line-2); background: var(--dx-surface); color: var(--dx-ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.dx-person-row > [hidden] { display: none !important; }
@media (max-width: 760px) { .dx-person-row { grid-template-columns: minmax(0, 1fr); } }
.dx-partner-io { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dx-partner-io pre { margin: 6px 0 0; padding: 12px; border-radius: 10px; background: var(--dx-subtle); border: 1px solid var(--dx-line); font-size: 12px; line-height: 1.5; overflow-x: auto; white-space: pre; }
@media (max-width: 760px) { .dx-partner-io { grid-template-columns: minmax(0, 1fr); } }
.dx-applist a { color: inherit; text-decoration: none; }
.dx-applist a:hover b { color: var(--dx-accent); }
/* Rent: participant steps and Right to Rent routes */

.dx-route summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; position: relative; padding-right: 44px; min-height: 44px; }
.dx-route summary::-webkit-details-marker { display: none; }
.dx-route summary span { font-size: 14px; color: var(--dx-muted); }
.dx-route[open] { border-color: var(--dx-accent); }
/* Each choice shows it can be tapped: a chevron in a circle that turns when it opens (UX review) */
.dx-route { transition: border-color .15s, box-shadow .15s; }
.dx-route:not([open]):hover { border-color: var(--dx-accent-line); box-shadow: 0 2px 10px rgba(30, 58, 138, .08); }
.dx-route summary::before { content: ''; position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--dx-accent-soft); }
.dx-route summary::after { content: ''; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid var(--dx-accent); border-bottom: 2px solid var(--dx-accent); transform: rotate(-45deg); transition: transform .15s; }
.dx-route[open] summary::after { transform: rotate(45deg); margin-top: -7px; }
.dx-route summary:active::before { background: var(--dx-accent-line); }
.dx-tick small { font-weight: 400; }
.dx-paytable td:nth-child(-n+2), .dx-paytable th:nth-child(-n+2) { white-space: nowrap; }
.dx-paytable td:nth-child(4) { font-size: 12px; }
/* Rent application: people cards like the case review */
.dx-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.dx-person { background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.dx-checkchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dx-checkchips .dx-chip { height: 24px; font-size: 12px; }
.dx-row-strong td { background: var(--dx-subtle); }
.dx-decide textarea { min-height: 96px; }
/* Tabs on a person's review page */
.dx-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--dx-line); margin: 4px 0 16px; overflow-x: auto; }
.dx-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: inherit; font-size: 14px; color: var(--dx-ink-3); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.dx-tabs button[aria-selected="true"] { color: var(--dx-accent); border-bottom-color: var(--dx-accent); font-weight: 600; }
.dx-tabs .dx-tabdot { width: 8px; height: 8px; border-radius: 50%; background: var(--dx-warn); }
.dx-tabpanel[hidden] { display: none !important; }
.dx-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dx-todo li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--dx-hair); }
.dx-todo li:first-child { border-top: 0; }
/* Share code: compare with the ID check */
.dx-compare { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: 12px; padding: 12px; }
.dx-compare-photo { display: block; width: 120px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--dx-subtle); }
.dx-compare-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-compare-none { display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; box-sizing: border-box; }
@media (max-width: 480px) { .dx-compare { grid-template-columns: 1fr; } }
/* Photo pop-up */
.dx-lightbox { position: fixed; inset: 0; margin: auto; height: fit-content; border: 0; border-radius: 16px; padding: 16px; background: var(--dx-surface); max-width: min(92vw, 720px); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.dx-lightbox::backdrop { background: rgba(15, 18, 30, .6); }
.dx-lightbox figure { margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.dx-lightbox img { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; border-radius: 10px; }
.dx-lightbox figcaption { font-size: 13px; color: var(--dx-muted); text-align: center; }
.dx-lightbox[open] { display: flex; flex-direction: column; align-items: center; }
.dx-compare-photo.dx-zoom { cursor: zoom-in; }
.dx-pct { font-size: 18px; font-variant-numeric: tabular-nums; }
/* Partner APIs summary */
.dx-partner-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.dx-partner-card { background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; color: inherit !important; text-decoration: none !important; }
.dx-partner-card:hover { border-color: var(--dx-accent); }
/* Tenant's steps: view what was sent */
.dx-mini { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; }
.dx-mini dt { color: var(--dx-muted); }
.dx-mini dd { margin: 0; overflow-wrap: anywhere; }
.dx-bar i.done { background: var(--dx-ok); }

/* Identity at a glance */
.dx-idcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.dx-idcard { background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dx-idcard-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dx-muted); }
.dx-idcard-name { font-size: 16px; overflow-wrap: anywhere; }
.dx-idcard-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.dx-idcard-photo { flex: none; width: 64px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--dx-subtle); cursor: zoom-in; }
.dx-idcard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-namecompare td { vertical-align: middle; }
/* Save and continue later */
.dx-save-later { display: flex; flex-direction: column; gap: 10px; }
.dx-save-later > .dx-linkbtn { align-self: center; color: var(--dx-ink-2); }
/* The tenant's digital ID check result */
.dx-idv-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dx-idv-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.dx-idv-ticks li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.dx-idv-ticks small { color: var(--dx-muted); font-size: 12px; }
.dx-tickmark { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--dx-ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.dx-idv-ticks li.no .dx-tickmark { background: var(--dx-bad); }
/* Bank picker with logos */
.dx-bankpick { position: relative; display: flex; flex-direction: column; gap: 8px; }
.dx-bankpick-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 14px; border: 1px solid var(--dx-line-2); border-radius: 12px; background: var(--dx-surface); font: inherit; font-size: 15px; color: inherit; cursor: pointer; text-align: left; }
.dx-bankpick-btn:focus-visible { outline: 2px solid var(--dx-accent); outline-offset: 1px; }
.dx-bankpick-current { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.dx-bankpick-current img, .dx-bankpick-list img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; flex: none; }
.dx-bankpick-pop { position: absolute; z-index: 30; top: 52px; left: 0; right: 0; background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 18, 30, .14); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.dx-bankpick-pop[hidden] { display: none; }
.dx-bankpick-search { height: 40px; }
.dx-bankpick-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.dx-bankpick-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.dx-bankpick-list li:hover, .dx-bankpick-list li:focus { background: var(--dx-subtle); outline: none; }
.dx-bankpick-list li[hidden] { display: none; }
.dx-bankpick-initial { width: 28px; height: 28px; border-radius: 6px; background: var(--dx-subtle); color: var(--dx-ink-3); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
/* What a bank connection is used for */
.dx-privacy { background: var(--dx-subtle); border: 1px solid var(--dx-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.dx-privacy ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; list-style: disc; }
.dx-privacy li { display: list-item; }
/* The tenant's own payments, as found */
.dx-found { border-top: 1px solid var(--dx-hair); padding: 8px 0 10px; }
.dx-found summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--dx-accent); }
.dx-found[open] summary { margin-bottom: 8px; }
.dx-found-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.dx-found-table th { text-align: left; font-weight: 600; color: var(--dx-muted); font-size: 12px; padding: 4px 6px 4px 0; border-bottom: 1px solid var(--dx-line); }
.dx-found-table td { padding: 6px 6px 6px 0; border-bottom: 1px solid var(--dx-hair); vertical-align: top; overflow-wrap: anywhere; }
.dx-found-ok { color: var(--dx-ok); } .dx-found-warn { color: var(--dx-warn); } .dx-found-none { color: var(--dx-muted); }
/* The tenant's "All sent" page */
.dx-next { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; list-style: decimal; }
.dx-next li { display: list-item; }
/* How this works, for the tenant */
.dx-fyi summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.dx-fyi summary::-webkit-details-marker { display: none; }
.dx-fyi summary b::after { content: ' ›'; color: var(--dx-muted); }
.dx-fyi[open] summary b::after { content: ' ⌄'; }
.dx-fyi summary span { font-size: 13px; color: var(--dx-muted); }
.dx-fyi-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; list-style: decimal; }
.dx-fyi-steps li { display: list-item; font-size: 14px; }
.dx-fyi-steps li b { display: block; }
.dx-fyi-steps li span { color: var(--dx-muted); font-size: 13px; }

/* Firm name without a letter badge */
.dx-brand-text b { font-size: 16px; letter-spacing: -0.01em; }
/* Connected bank accounts */
.dx-bankcards { display: flex; flex-direction: column; gap: 8px; }
.dx-bankcard { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--dx-line); border-radius: 12px; background: var(--dx-surface); }
.dx-bankcard img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; flex: none; }
.dx-bankcard .mono { letter-spacing: .02em; }

/* "Need help?" box on applicant and referee pages */
.dx-help { border-top: 1px solid var(--dx-line, #e5e7eb); margin-top: 24px; padding-top: 14px; text-align: center; display: grid; gap: 4px; }
.dx-help-title { font-size: 13px; font-weight: 700; margin: 0; color: var(--dx-ink-2); }
.dx-help-text { font-size: 13px; margin: 0; color: var(--dx-muted); overflow-wrap: anywhere; }
.dx-help-text a { color: var(--dx-accent, inherit); }
.dx-side-foot .dx-help { display: none; }
/* Privacy notice and terms links on applicant and referee pages */
.dx-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 0; font-size: 12px; color: var(--dx-muted); }
.dx-legal a { color: var(--dx-ink-2); }
.dx-side-foot .dx-legal { display: none; }
/* Consent before a bank connection */
.dx-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; padding: 12px 14px; border: 1px solid var(--dx-line-2); border-radius: 12px; background: var(--dx-surface); cursor: pointer; }
.dx-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--dx-accent); }

/* No underlines on links. Links inside running text are bold and bright blue, so they
   don't rely on colour alone (WCAG 1.4.1); the underline shows only on hover and focus. */
body.dx a { text-decoration: none; }
:where(p, li, dd, td, blockquote, .dx-small, .dx-help-text, .dx-note span, .dx-lead, .dx-legal) a:not([class*="dx-btn"]):not(.dx-linkbtn) { text-decoration: none; font-weight: 600; color: var(--dx-link); }
:where(p, li, dd, td, blockquote, .dx-small, .dx-help-text, .dx-note span, .dx-lead, .dx-legal) a:not([class*="dx-btn"]):not(.dx-linkbtn):is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; color: var(--dx-link-hover); }

/* Keyboard focus is always visible (WCAG 2.4.7, 2.4.11) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--dx-accent); outline-offset: 2px; }

/* ---- Sign in (navy split) -------------------------------------------------- */
body.dx-signin { margin: 0; background: var(--dx-surface) !important; }
.dx-signin-wrap { display: flex; flex-wrap: wrap; min-height: 100vh; }
.dx-signin-side { flex: 1 1 420px; background: var(--dx-navy); color: #FFFFFF; padding: 48px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.dx-signin-brand { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.dx-signin-brand b { font-weight: 700; color: #FFFFFF; }
.dx-signin-logo { height: 38px; width: auto; display: block; }
.dx-signin-tag { font-size: 14px; font-weight: 600; color: #C7D2F3; border-left: 1px solid rgba(199,210,243,.35); padding-left: 14px; }
.dx-signin-pitch { display: flex; flex-direction: column; gap: 18px; max-width: 420px; }
.dx-signin-pitch h2 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 700; color: #FFFFFF; }
.dx-signin-pitch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: #C7D2F3; font-size: 15px; }
.dx-signin-pitch li { display: flex; gap: 10px; align-items: center; }
.dx-signin-pitch svg { color: #93A9E8; }
.dx-signin-note { font-size: 12px; color: #93A9E8; }
.dx-signin-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; color: #C7D2F3; font-size: 15px; }
.dx-signin-steps li { display: flex; gap: 12px; align-items: center; }
.dx-signin-steps li > span[aria-hidden] { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 1px solid rgba(199,210,243,.4); color: #C7D2F3; }
.dx-signin-steps li.current { color: #FFFFFF; font-weight: 600; }
.dx-signin-steps li.current > span[aria-hidden] { background: #FFFFFF; color: var(--dx-navy); border-color: #FFFFFF; }
.dx-signin-main { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; box-sizing: border-box; }
.dx-signin-form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.dx-signin-form label.dx-field { font-size: 13px; font-weight: 600; color: var(--dx-ink-2); }
.dx-signin-form input { font: inherit; font-size: 15px; font-weight: 400; color: var(--dx-ink); border: 1px solid var(--dx-line-2); border-radius: 10px; padding: 12px 14px; background: var(--dx-surface); }
.dx-signin-form input:focus-visible { outline: 3px solid var(--dx-accent-line); outline-offset: 1px; border-color: var(--dx-accent); }
.dx-signin-form .dx-btn { height: 48px; border-radius: 10px; }
.dx-signin-form input:disabled { background: var(--dx-ground); color: var(--dx-ink-3); }
.dx-signin-form .dx-field-hint { font-weight: 400; }
.dx-alert { background: var(--dx-bad-soft); color: #7A1A12; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.dx-alert.dx-alert-ok { background: var(--dx-ok-soft); color: var(--dx-ok); }
@media (max-width: 760px) { .dx-signin-side { padding: 28px 20px; gap: 20px; } .dx-signin-pitch h2 { font-size: 22px; } }

/* ---- Applicant welcome (REFR-52) ------------------------------------------ */
.dx-ob { border: 1px solid var(--dx-accent-line); background: #F5F7FE; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dx-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--dx-ink-2); line-height: 1.45; }
.dx-ticks li { position: relative; padding-left: 24px; }
.dx-ticks li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 11px; height: 6px; border-left: 2px solid var(--dx-ok); border-bottom: 2px solid var(--dx-ok); transform: rotate(-45deg); }
.dx-intro-split { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.dx-intro-split > .dx-stack { flex: 1 1 420px; }
.dx-qr-card { flex: 0 1 360px; align-items: center; text-align: center; gap: 12px; border: 1px solid var(--dx-line); }
.dx-qr { width: 200px; height: 200px; padding: 12px; border: 1px solid var(--dx-line); border-radius: 14px; background: #FFFFFF; }
.dx-qr svg { width: 100%; height: 100%; display: block; }
.dx-or { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--dx-muted); font-size: 13px; }
.dx-or span { flex: 1; height: 1px; background: var(--dx-line); }

/* ---- The tenant's pages (REFR-71, REFR-89) ----------------------------------
   One navy header on every page (the agency, Back, a slim bar for their whole part),
   steps that fill green when done, and nothing that moves once the page is up. */
.dx-thead { background: var(--dx-navy); color: #FFFFFF; margin: -16px -16px 4px; padding: max(14px, env(safe-area-inset-top)) 16px 16px; border-radius: 0 0 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.dx-thead-top { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.dx-thead .dx-back { background: rgba(255, 255, 255, .12); color: #FFFFFF !important; }
.dx-thead .dx-back:hover { background: rgba(255, 255, 255, .2); }
body.dx .dx-thead :focus-visible { outline-color: #FFFFFF; }
.dx-thead-logo { height: 36px; width: auto; max-width: 96px; box-sizing: border-box; padding: 4px 6px; border-radius: 9px; background: #FFFFFF; object-fit: contain; flex: none; }
.dx-thead-firm { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.dx-thead-firm b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-thead-where { display: flex; gap: 4px; min-width: 0; font-size: 12px; color: var(--dx-navy-ink); white-space: nowrap; }
.dx-thead-where > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dx-thead-where > span + span { flex: none; }
.dx-thead-hero { display: flex; flex-direction: column; gap: 6px; }
.dx-thead-hero .dx-h1 { color: #FFFFFF; }
.dx-thead-hero .dx-lead { color: #C7D2F3; }
.dx-thead-kicker { align-self: flex-start; font-size: 12px; font-weight: 600; color: #C7D2F3; border: 1px solid rgba(199, 210, 243, .35); border-radius: 99px; padding: 4px 10px; }
.dx-thead-facts { display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(199, 210, 243, .2); padding-top: 10px; margin-top: 4px; font-size: 13px; }
.dx-thead-facts > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dx-thead-facts > span > span { color: var(--dx-navy-ink); font-size: 12px; }
.dx-thead-facts b { font-weight: 600; }
.dx-thead-progress { display: flex; flex-direction: column; gap: 7px; }
.dx-thead .dx-progress-label { gap: 12px; font-size: 13px; }
.dx-thead .dx-progress-label b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dx-thead .dx-progress-label span { color: #C7D2F3; flex: none; }
.dx-thead .dx-bar i { background: rgba(255, 255, 255, .2); }
.dx-thead .dx-bar i.done { background: #5FD4A0; }
.dx-thead .dx-bar i.on { background: #FFFFFF; }
/* On a phone the header runs edge to edge, past the shell's padding */
body.dx .dx-shell > .dx-thead { max-width: none; }
@media (min-width: 633px) { .dx-thead { margin: 0 0 4px; border-radius: 20px; padding: 18px 20px; } }

/* Their steps: done ones filled green with what was shared, the next one with the only main button */
.dx-journey { display: flex; flex-direction: column; }
.dx-jlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dx-jstep { background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.dx-jstep.is-done { background: var(--dx-ok-soft); border-color: #B7DEC8; }
.dx-jstep.is-done .dx-li-text span { color: #05603A; }
.dx-jstep.is-next { border: 2px solid var(--dx-accent); padding: 16px; gap: 12px; box-shadow: 0 6px 20px rgba(30, 58, 138, .08); }
.dx-jhead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dx-jhead .dx-li-text b { font-size: 15px; }
.dx-jstep:not(.is-next):not(.is-done) .dx-li-text b { color: var(--dx-ink-2); }
.dx-jlink { color: var(--dx-ink) !important; text-decoration: none; margin: -12px -14px; padding: 12px 14px; border-radius: 15px; }
.dx-jlink:hover { background: var(--dx-subtle); }
.dx-jlink svg { color: var(--dx-muted); flex: none; }
.dx-jmark { width: 28px; height: 28px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--dx-line-2); color: var(--dx-muted); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.dx-jmark.ok { background: var(--dx-ok); border: 0; color: #FFFFFF; }
.is-next .dx-jmark { background: var(--dx-accent); border: 0; color: #FFFFFF; }
.dx-jkicker { font-size: 12px !important; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dx-accent) !important; }
.is-next .dx-li-text b { font-size: 17px; }
.dx-jwhat { font-size: 14px; line-height: 1.5; color: var(--dx-ink-3); }
.dx-jwarn { color: var(--dx-warn) !important; font-weight: 600; }
.dx-jtag { align-self: flex-start; margin-top: 4px; font-size: 11px !important; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #05603A; background: #FFFFFF; border-radius: 99px; padding: 3px 8px; }
.dx-jview { flex: none; font-size: 13px; font-weight: 600; color: var(--dx-link) !important; text-decoration: none; padding: 6px 2px; cursor: pointer; }
.dx-jview:hover { text-decoration: underline; }
details.dx-jstep > summary { list-style: none; cursor: pointer; }
details.dx-jstep > summary::-webkit-details-marker { display: none; }
details.dx-jstep .dx-mini { padding-left: 40px; }
details.dx-jstep .dx-btn { height: 40px; font-size: 14px; }
.dx-jhint { margin: 0; text-align: center; }
.dx-sumcard { padding: 14px 16px; gap: 10px; border-color: #B7DEC8; }
.dx-sumcard .dx-jhead b { font-weight: 600; font-size: 15px; }
.dx-sumcard .dx-mini { padding-left: 40px; gap: 6px 14px; }
.dx-sumcard > .dx-small { padding-left: 40px; }
@media (max-width: 380px) { .dx-sumcard .dx-mini, .dx-sumcard > .dx-small, details.dx-jstep .dx-mini { padding-left: 0; } }

/* A finished step, at the top of its own page */
.dx-stepdone { display: flex; align-items: center; gap: 12px; background: var(--dx-ok-soft); border: 1px solid #B7DEC8; border-radius: 16px; padding: 14px 16px; }
.dx-stepdone .dx-h1 { font-size: 20px; }
.dx-stepdone .dx-li-text span { color: #05603A; font-size: 14px; }
.dx-stepdone .dx-jmark { width: 32px; height: 32px; }

/* Bank consent, once agreed: one line, with the wording behind "View" */
.dx-agreed { background: var(--dx-ok-soft); border: 1px solid #B7DEC8; border-radius: 12px; padding: 0 12px; }
.dx-agreed > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; font-size: 14px; color: #05603A; }
.dx-agreed > summary::-webkit-details-marker { display: none; }
.dx-agreed > summary .dx-jmark { width: 22px; height: 22px; }
.dx-agreed-view { margin-left: auto; font-size: 13px; color: var(--dx-link); }
.dx-agreed[open] .dx-agreed-view { visibility: hidden; }
.dx-agreed > div { padding: 2px 0 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--dx-ink-2); }
.dx-agreed ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; list-style: disc; }
.dx-agreed li { display: list-item; }

/* A message under a form keeps its line whether or not it has anything to say, so the button below never jumps */
.dx-msgslot { min-height: 20px; }
.dx-msgslot > p { margin: 0; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--dx-bad); }

/* Phones zoom the page when a field's text is under 16px: keep fields at 16px there */
@media (max-width: 640px) {
  body.dx input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), body.dx select, body.dx textarea { font-size: 16px !important; }
}

/* ---- Reference queue beside the open reference (REFR-53) ------------------ */
.dx-queue { flex: 0 0 300px; background: var(--dx-surface); border-right: 1px solid var(--dx-line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.dx-queue-head { padding: 18px 16px 12px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--dx-line); }
.dx-queue-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--dx-line); border-radius: 8px; padding: 8px 10px; color: var(--dx-muted); }
.dx-queue-search input { border: 0 !important; outline: 0; font: inherit; font-size: 13px; flex: 1; min-width: 0; background: transparent; padding: 0; }
.dx-queue-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.dx-queue-tabs button { font: inherit; font-size: 12px; font-weight: 600; border: 0; border-radius: 99px; padding: 5px 10px; background: #F1F3F8; color: var(--dx-ink-2); cursor: pointer; }
.dx-queue-tabs button[aria-selected="true"] { background: var(--dx-navy); color: #FFFFFF; }
.dx-queue-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.dx-queue-list a { display: flex; flex-direction: column; gap: 4px; padding: 13px 16px; border-bottom: 1px solid var(--dx-hair); text-decoration: none; color: var(--dx-ink) !important; border-left: 3px solid transparent; }
.dx-queue-list a:hover { background: var(--dx-subtle); }
.dx-queue-list a.on { background: #F1F4FD; border-left-color: var(--dx-accent); }
.dx-queue-list b { font-weight: 600; font-size: 14px; }
.dx-q-names { font-size: 13px; color: var(--dx-muted); }
.dx-q-age { font-size: 12px; color: var(--dx-muted); white-space: nowrap; }
.dx-q-overdue { font-size: 12px; font-weight: 600; color: var(--dx-warn); white-space: nowrap; }
.dx-q-line { font-size: 12px; font-weight: 600; }
.dx-q-line.warn { color: var(--dx-warn); }
.dx-q-line.ok { color: var(--dx-ok); }
.dx-q-line.muted { color: var(--dx-muted); font-weight: 500; }
.dx-q-empty { padding: 16px; font-size: 13px; color: var(--dx-muted); }
@media (max-width: 1100px) { .dx-queue { display: none; } }
.dx-copyfields { display: flex; flex-wrap: wrap; gap: 10px; }
.dx-copyfield { display: flex; align-items: center; gap: 10px; border: 1px solid var(--dx-line); border-radius: 10px; padding: 10px 12px; background: var(--dx-surface); flex: 1 1 220px; }
.dx-copyfield > span { font-size: 12px; font-weight: 600; color: var(--dx-muted); }
.dx-copyfield b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; font-weight: 600; letter-spacing: .04em; flex: 1; }
.dx-copybtn { font: inherit; font-size: 12px; font-weight: 600; color: var(--dx-accent-ink); background: var(--dx-accent-soft); border: 0; border-radius: 6px; padding: 5px 10px; cursor: pointer; }

/* How they were verified + Do the details match? (REFR-53) */
.dx-verified { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; }
.dx-verified li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--dx-line); flex-wrap: wrap; }
.dx-verified li:last-child { border-bottom: 0; }
.dx-verified .dx-li-text { min-width: 200px; }
.dx-matchtable td:first-child { font-weight: 600; }
.dx-matchtable td:last-child { text-align: right; white-space: nowrap; }

/* Partner pages: properties, pass rules, CRM, settings, team (REFR-54) */
.dx-btn.dx-btn-sm { width: auto; height: 40px; font-size: 14px; padding: 0 16px; gap: 8px; }
.dx-searchbox { display: flex; align-items: center; gap: 8px; border: 1px solid var(--dx-line); background: var(--dx-surface); border-radius: 10px; padding: 0 12px; height: 40px; color: var(--dx-muted); flex: 1 1 280px; max-width: 420px; }
.dx-searchbox input { border: 0; outline: 0; font: inherit; font-size: 14px; flex: 1; min-width: 0; background: transparent; color: var(--dx-ink); }
.dx-searchbox:focus-within { border-color: var(--dx-accent); box-shadow: 0 0 0 3px var(--dx-accent-soft); }
.dx-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.dx-filters button { font: inherit; font-size: 13px; font-weight: 600; border-radius: 99px; padding: 6px 12px; border: 1px solid var(--dx-line); background: var(--dx-surface); color: var(--dx-ink-2, var(--dx-ink)); cursor: pointer; }
.dx-filters button[aria-pressed="true"] { background: var(--dx-navy); border-color: var(--dx-navy); color: #fff; }
.dx-propcell { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.dx-propcell b { font-weight: 600; }
.dx-propcell span { font-size: 12px; color: var(--dx-muted); }
.dx-proptable td { vertical-align: middle; }
.dx-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 10px 0 0; font-size: 14px; }
.dx-dl dt { color: var(--dx-muted); }
.dx-dl dd { margin: 0; font-weight: 500; }
.dx-settings-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 24px; padding: 14px 0; border-top: 1px solid var(--dx-line); align-items: start; }
.dx-settings-row:first-of-type { border-top: 0; }
@media (max-width: 760px) { .dx-settings-row { grid-template-columns: minmax(0, 1fr); } }

.dx-result-new { color: var(--dx-ok); font-weight: 600; }
.dx-result-update { color: var(--dx-accent); font-weight: 600; }
.dx-result-error { color: var(--dx-bad); font-weight: 600; }
.dx-teamcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.dx-teamcard { border: 1px solid var(--dx-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; background: var(--dx-surface); }
.dx-teamcard span { font-size: 12px; color: var(--dx-muted); }
.dx-crm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dx-brand-logo { max-height: 36px; max-width: 160px; object-fit: contain; }
.dx-logo-preview { max-height: 48px; max-width: 220px; object-fit: contain; border: 1px solid var(--dx-line); border-radius: 8px; padding: 6px; background: #fff; }
.dx-proptable a, .dx-proptable a.dx-propcell { text-decoration: none; }
.dx-proptable a.dx-propcell:hover b { text-decoration: underline; }

/* ---- Operator console (REFR-55) ---- */
.dx-side-nav a.dx-side-badged { position: relative; }
.dx-side-badge { position: absolute; top: 4px; right: 12px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 99px; background: #F59E0B; color: #0F1B3D; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dx-stat small { font-size: 12px; color: var(--dx-muted); }
.dx-stat a { font-size: 12px; font-weight: 600; }
.dx-table .dx-tnum { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dx-leads { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.dx-leadlist { padding: 0; overflow: hidden; }
.dx-leadlist a { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-bottom: 1px solid var(--dx-line); color: var(--dx-ink); text-decoration: none; font-size: 13px; }
.dx-leadlist a:last-child { border-bottom: 0; }
.dx-leadlist a[aria-current="page"] { background: var(--dx-accent-soft); box-shadow: inset 3px 0 0 var(--dx-accent); }
.dx-leadlist a:hover { background: var(--dx-bg, #F7F8FB); }
.dx-leadlist .dx-row b { flex: 1; min-width: 0; }
.dx-kvrow { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 4px 16px; font-size: 14px; padding: 10px 0; border-top: 1px solid var(--dx-line); }
.dx-kvrow:first-child { border-top: 0; }
.dx-kvrow > span:first-child { color: var(--dx-muted); }
.dx-bars { display: flex; align-items: flex-end; gap: 18px; height: 120px; padding-top: 8px; }
.dx-bars > div { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; max-width: 80px; height: 100%; justify-content: flex-end; font-size: 12px; color: var(--dx-muted); }
.dx-bars i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: var(--dx-accent-soft); min-height: 2px; }
.dx-bars > div:last-child i { background: var(--dx-accent); }
.dx-bars b { color: var(--dx-ink); font-variant-numeric: tabular-nums; }
.dx-steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.dx-steps-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 14px; counter-increment: s; }
.dx-steps-list li::before { content: counter(s); width: 26px; height: 26px; border-radius: 99px; background: var(--dx-accent-soft); color: var(--dx-accent-ink); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .dx-leads { grid-template-columns: minmax(0, 1fr); } }
/* Checking your bank (REFR-71) */
.dx-checking { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--dx-ground) 90%, transparent); display: grid; place-items: center; padding: 16px; }
.dx-checking-card { background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: 14px; padding: 24px; width: min(420px, 100%); box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { .dx-checklist li.active .dot { animation: none; border-top-color: var(--dx-accent); } }

/* A form problem shown beside its own field (E2E review) */
.dx-field-error { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--dx-bad); }
.dx-input[aria-invalid="true"], .dx-money:has(input[aria-invalid="true"]) { border-color: var(--dx-bad); }
.dx-tick-small { font-size: 14px; }

/* The key under an applicant's steps: one label per line (UX review) */

/* Tap targets of at least 44px on applicant pages (UX review; WCAG 2.5.8 asks 24px) */

body.dx .dx-linkbtn { min-height: 44px; padding: 10px 0; }
body.dx .dx-check { min-height: 44px; }
body.dx .dx-check input[type="checkbox"], body.dx .dx-check input[type="radio"] { width: 20px; height: 20px; flex: none; }
body.dx .dx-legal a { display: inline-flex; align-items: center; min-height: 32px; }

/* On a phone the person page's tabs wrap onto a second line instead of hiding off-screen (UX review) */
@media (max-width: 600px) {
  .dx-tabs { flex-wrap: wrap; overflow-x: visible; }
  .dx-tabs button { padding: 10px 10px; }
}
.dx-table-wrap:focus-visible { outline: 3px solid var(--dx-accent); outline-offset: 2px; }

/* REFR-78: production notice while no retention policy is approved */
.dx-retention-warn { position: fixed; right: 16px; bottom: 16px; z-index: 40; max-width: 340px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--dx-warn-line); background: var(--dx-warn-soft); color: var(--dx-warn); font-size: 13px; line-height: 1.4; box-shadow: 0 4px 14px rgba(16, 24, 40, .08); }
@media print { .dx-retention-warn { display: none; } }

/* Sign out is a form post (SEC-12) */
.dx-signout-form { margin: 0; display: contents; }

/* "Continue on your phone" popup in the bank step (applicant side) */
.dx-qr-modal { background: var(--dx-surface); width: 100%; max-width: 384px; border-radius: 16px; box-shadow: 0 24px 60px rgba(16,24,40,.25); overflow: hidden; }
.dx-qr-step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; margin-bottom: 4px; font-size: 12px; font-weight: 700; background: var(--dx-hair); color: var(--dx-muted); transition: background .2s, color .2s; }
.dx-qr-step.on { background: var(--dx-accent); color: #FFFFFF; }
.dx-qr-label { font-size: 12px; font-weight: 500; color: var(--dx-ink-3); }
.dx-qr-track { flex: 1; height: 2px; margin: 0 4px; background: var(--dx-hair); }
.dx-qr-fill { height: 100%; background: var(--dx-accent); transition: width .5s; }
.dx-qr-box { display: inline-block; padding: 12px; border-radius: 12px; background: #FFFFFF; border: 2px solid var(--dx-accent); }
.dx-qr-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--dx-ink-2); text-align: center; }
.dx-qr-status.ok { color: var(--dx-ok); }
.dx-qr-status.bad { color: var(--dx-bad); }
.dx-qr-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dx-accent); animation: dx-qr-pulse 1.4s ease-in-out infinite; }
.dx-qr-dot.done { animation: none; background: currentColor; }
@keyframes dx-qr-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dx-qr-dot { animation: none; } }
.dx-qr-cancel { width: 100%; padding: 8px 12px; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--dx-ink-3); cursor: pointer; }
.dx-qr-cancel:hover { color: var(--dx-ink); }
/* The bank picker: the brand accent instead of the generic blue */
#bankSelectorModal .text-blue-600, #bankSelectorModal .group:hover .group-hover\:text-blue-600 { color: var(--dx-accent) !important; }
#bankSelectorModal .hover\:text-blue-700:hover { color: var(--dx-accent-hover) !important; }
#bankSelectorModal .hover\:border-blue-500:hover { border-color: var(--dx-accent) !important; }
#bankSelectorModal .hover\:bg-blue-50:hover, #bankSelectorModal .bg-blue-100 { background-color: var(--dx-accent-soft) !important; }
#bankSelectorModal .border-t-blue-600 { border-top-color: var(--dx-accent) !important; }
#bankSelectorModal .focus\:ring-blue-500:focus { box-shadow: 0 0 0 3px var(--dx-accent-line) !important; border-color: var(--dx-accent) !important; }

/* Console Team */
.dx-team-table td { vertical-align: middle; }
.dx-team-actions { text-align: right; white-space: nowrap; }
.dx-team-actions .dx-btn { margin-left: 6px; }
.dx-team-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.dx-team-add .dx-btn { height: 46px; }
@media (max-width: 720px) { .dx-team-add { grid-template-columns: minmax(0, 1fr); } }

/* Live pages (public/js/dx-live.js): the Outbox count in the side bar, and the "updated" notice */
.dx-side-nav a { position: relative; }
.dx-nav-badge { position: absolute; top: 3px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--dx-bad, #B42318); color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-sizing: border-box; font-variant-numeric: tabular-nums; }
.dx-live-pill { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 9000; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--dx-navy, #0F1B3D); color: #FFFFFF; font-size: 14px; box-shadow: 0 6px 24px rgba(15, 27, 61, .25); }
.dx-live-pill button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: #FFFFFF; color: var(--dx-navy, #0F1B3D); font: inherit; font-weight: 600; cursor: pointer; }

/* Credit report tab: four facts at a glance */
.dx-credit-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.dx-credit-sum > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--dx-line); background: var(--dx-surface); box-shadow: inset 4px 0 0 var(--dx-line-2); }
.dx-credit-sum > div.ok { box-shadow: inset 4px 0 0 var(--dx-ok); }
.dx-credit-sum > div.warn { box-shadow: inset 4px 0 0 var(--dx-warn); }
.dx-credit-sum > div.bad { box-shadow: inset 4px 0 0 var(--dx-bad); }
.dx-credit-sum span { font-size: 12px; color: var(--dx-ink-3); }
.dx-credit-sum b { font-size: 15px; color: var(--dx-ink); }

/* Rent guarantee offer (applicant): the navy card from the design, with the provider's logo */
.dx-go-why { border: 1px solid #F3C1BC; background: #FFF8F7; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; color: #3B4456; line-height: 1.5; }
.dx-go-why > b { color: #7A1A12; display: flex; gap: 8px; align-items: center; }
.dx-go-why svg { flex: none; }
.dx-go-card { background: #0F1B3D; color: #FFFFFF; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.dx-go-chip { align-self: flex-start; background: #FFFFFF; color: #0F1B3D; border-radius: 10px; padding: 8px 12px; display: flex; align-items: center; max-width: 100%; }
.dx-go-chip img { height: 28px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.dx-go-chip b { font-size: 15px; }
.dx-go-head { display: flex; gap: 10px; align-items: center; }
.dx-go-icon { width: 38px; height: 38px; flex: none; border-radius: 10px; background: #1E3A8A; display: flex; align-items: center; justify-content: center; color: #FFFFFF; }
.dx-go-title { font-size: 16px; line-height: 1.3; color: #FFFFFF; }
.dx-go-text { font-size: 14px; line-height: 1.5; color: #C7D2F3; }
.dx-go-text b { color: #FFFFFF; }
.dx-go-share { font-size: 12.5px; line-height: 1.5; color: #9FB0DA; }
.dx-go-yes { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 0; border-radius: 12px; background: #FFFFFF; color: #0F1B3D; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; padding: 12px 16px; }
.dx-go-yes:hover { background: #E2E8F8; color: #0F1B3D; }
.dx-go-no { border: 0; background: none; color: #E2E8F8; font: inherit; font-size: 14px; font-weight: 600; padding: 8px; cursor: pointer; }
.dx-go-no:hover { color: #FFFFFF; text-decoration: underline; }
.dx-go-yes:focus-visible, .dx-go-no:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* ---- Long text and phones (REFR-89, B10, B11, UX13) -------------------------
   A long word or address wraps inside its cell instead of widening the page;
   tables scroll inside their own box (the screen-reader-only labels inside
   them no longer stretch the page); nothing on a staff page scrolls sideways
   at 390px. */
.dx-li-text b, .dx-li-text span, .dx-table td, .dx-propcell, .dx-h1, .dx-h2, .dx-kvrow > span { overflow-wrap: anywhere; }
.dx-table-wrap { position: relative; max-width: 100%; }
.dx-kvrow .dx-chip { white-space: normal; height: auto; min-height: 26px; padding-top: 3px; padding-bottom: 3px; max-width: 100%; }
@media (max-width: 860px) {
  /* The count sits beside its label in the phone menu, never on top of it */
  .dx-nav-badge { position: static; margin-left: 6px; flex: none; }
}
@media (max-width: 600px) {
  .dx-api-code pre { padding-right: 16px !important; }
  .dx-api-code .dx-copybtn { position: static !important; margin-top: 8px; }
}

/* Sandbox only: the rent guarantee offer is labelled as a test (REFR-89) */
.dx-go-test { align-self: flex-start; margin-top: -4px; padding: 2px 8px; border-radius: 999px; background: #FEF0C7; color: #7A2E0E; font-size: 12px; font-weight: 700; letter-spacing: .02em; }

/* Accessibility from the sandbox review (REFR-89) */
.dx-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 10px 14px; border-radius: 8px; background: var(--dx-card, #fff); color: var(--dx-accent); font-weight: 600; box-shadow: 0 2px 10px rgba(16, 24, 40, .18); }
.dx-skip:focus { left: 12px; }
body.dx [tabindex="-1"]:focus { outline: none; }
/* Links inside a sentence are underlined, not told apart by colour alone */
body.dx :is(p, dd, td, .dx-panel-head > span, .dx-small, .oa-type) > a:not([class]) { text-decoration: underline; text-underline-offset: 2px; }
/* Touch targets at least 24px high */
body.dx .dx-more > summary { min-height: 24px; display: flex; align-items: center; }
body.dx summary { min-height: 24px; }
