/* ==========================================================================
   Forma Consulting - Free Ops Analysis (page-specific)
   Loads AFTER styles.css and only adds; never redefines the system.
   dx- = diagnostic namespace.
   ========================================================================== */

/* ---------- Hero grid ---------- */
.diag-hero { padding-bottom: clamp(64px, 7vw, 104px); }
.diag-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.diag-hero .page-sub { margin-bottom: 0; }

.diag-protocol { display: flex; flex-direction: column; border-left: 1px solid var(--hairline-dark); }
.diag-protocol li { display: flex; gap: 16px; padding: 14px 0 14px 22px; }
.diag-protocol li + li { border-top: 1px solid rgba(244, 241, 236, 0.07); }
.proto-num {
  flex: none; font-size: 0.72rem; font-weight: 600; line-height: 2.1;
  color: rgba(244, 241, 236, 0.62); letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.diag-protocol b { display: block; font-size: 0.95rem; font-weight: 700; color: var(--offwhite); }
.diag-protocol p { font-size: 0.8438rem; color: var(--paper-dim); line-height: 1.5; }
/* Round 8: the three steps land one after another once the hero has settled,
   reading as the sequence they describe. Complete without JS; the
   reduced-motion block below renders them complete too. */
html.js .diag-protocol li { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js.is-live .diag-protocol li { opacity: 1; transform: none; }
html.js.is-live .diag-protocol li:nth-child(1) { transition-delay: 1.25s; }
html.js.is-live .diag-protocol li:nth-child(2) { transition-delay: 1.45s; }
html.js.is-live .diag-protocol li:nth-child(3) { transition-delay: 1.65s; }

/* ---------- The instrument ---------- */
.instrument {
  background: var(--navy-deep);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(4, 12, 22, 0.25), 0 40px 84px -32px rgba(4, 12, 22, 0.55);
}
.inst-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--hairline-dark);
}
.inst-id {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper-dim);
}
.inst-state {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--offwhite);
}
.inst-state i { width: 12px; height: 2px; border-radius: 2px; background: var(--gold); flex: none; }
.inst-note { margin-top: 16px; }

.dx-body { padding: clamp(22px, 3vw, 36px) clamp(18px, 3vw, 34px) clamp(24px, 3vw, 36px); }

.dx-noscript { max-width: 62ch; }
.dx-noscript p { margin-bottom: 16px; color: var(--paper-ink); }
.dx-noscript b { color: var(--white); }

/* ---------- Intake ---------- */
.dx-intake {
  display: grid; grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 48px); align-items: start;
}

.dx-rail ol { display: flex; flex-direction: column; }
.dx-rail li button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: none; border: 0; cursor: default; text-align: left;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(244, 241, 236, 0.55);
  padding: 9px 2px;
  transition: color 0.2s;
}
.dx-rail li button i {
  flex: none; width: 12px; height: 2px; border-radius: 2px;
  background: rgba(244, 241, 236, 0.3);
  transition: background 0.3s;
}
.dx-rail li.done button { color: var(--paper-ink); cursor: pointer; }
.dx-rail li.done button:hover { color: var(--white); }
.dx-rail li.done button i { background: var(--gold); }
.dx-rail li.current button { color: var(--white); }
.dx-rail li.current button i { background: rgba(201, 169, 110, 0.65); }

.dx-rail-agent {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--hairline-dark);
}
.agent-avatar {
  flex: none; width: 42px; height: 42px;
  display: grid; place-items: center;
  background: rgba(244, 241, 236, 0.05);
  border: 1px solid var(--hairline-dark);
}
.agent-avatar .mascot { width: 24px; height: 25px; }
.dx-rail-agent p { font-size: 0.8125rem; line-height: 1.5; color: var(--paper-ink); }

.dx-qnum {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 8px;
}
.dx-qtitle {
  font-family: var(--font-display); font-weight: 800; color: var(--white);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 22px; max-width: 26ch;
}
.dx-qtitle:focus { outline: none; }

.dx-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dx-opt {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  text-align: left; cursor: pointer;
  background: rgba(244, 241, 236, 0.04);
  border: 1px solid var(--hairline-dark);
  padding: 14px 42px 13px 16px;
  font-family: var(--font-body); color: var(--white);
  transition: border-color 0.18s, background 0.18s, transform 0.18s var(--ease);
}
.dx-opt:hover { border-color: rgba(201, 169, 110, 0.6); transform: translateY(-1px); }
.dx-opt b { font-size: 0.9375rem; font-weight: 700; line-height: 1.35; }
.dx-opt small { font-size: 0.78rem; color: var(--paper-ink); line-height: 1.4; }
.dx-opt::after {
  content: ""; position: absolute; top: 21px; right: 16px;
  width: 12px; height: 2px; border-radius: 2px;
  background: rgba(244, 241, 236, 0.3);
  transition: background 0.18s;
}
.dx-opt[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--navy); }
.dx-opt[aria-pressed="true"] small { color: var(--ink-soft); }
.dx-opt[aria-pressed="true"]::after { background: var(--gold); }

.dx-qnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; min-height: 46px; }
.dx-back {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  color: var(--paper-ink); padding: 8px 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: left bottom;
  transition: color 0.18s, background-size 0.35s var(--ease);
}
.dx-back:hover { color: var(--white); background-size: 100% 1px; }
.dx-next { margin-left: auto; padding: 13px 24px; font-size: 0.9rem; box-shadow: none; }
.dx-next[disabled] { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ---------- Scan ---------- */
.dx-scan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.agent-row { display: flex; align-items: center; gap: 12px; min-height: 46px; }
.agent-status { font-size: 0.875rem; color: var(--paper-ink); font-weight: 500; }
.agent-status.working { color: var(--teal); }

.dx-log { display: flex; flex-direction: column; gap: 4px; min-height: 122px; }
.dx-log li {
  font-size: 0.75rem; color: rgba(244, 241, 236, 0.75);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: dx-line 0.35s var(--ease);
}
.dx-log li b { color: var(--teal); font-weight: 600; }
.dx-log li .gold { color: var(--gold); font-weight: 600; }
@keyframes dx-line {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Leak map ---------- */
.dx-map { margin-top: clamp(20px, 3vw, 30px); border-top: 1px solid var(--hairline-dark); padding-top: clamp(18px, 2.5vw, 26px); }
.dx-map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dx-mapsvg { display: block; width: 100%; min-width: 560px; height: auto; font-family: var(--font-body); }
.dx-map figcaption {
  margin-top: 10px; font-size: 0.78rem; color: var(--paper-dim);
  display: flex; align-items: center; gap: 10px;
}
.dx-map figcaption::before { content: ""; width: 18px; height: 1px; background: var(--teal); flex: none; }

.dx-link {
  stroke: rgba(244, 241, 236, 0.28); stroke-width: 1.5; stroke-dasharray: 48;
  stroke-dashoffset: 48;
}
.drawn .dx-link { animation: dx-draw 0.5s var(--ease) forwards; }
.drawn .dx-link-2 { animation-delay: 0.18s; }
.drawn .dx-link-3 { animation-delay: 0.36s; }
@keyframes dx-draw { to { stroke-dashoffset: 0; } }

.dx-node { opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.drawn .dx-node { opacity: 1; transform: translateY(0); }
.drawn #dxNodeRespond { transition-delay: 0.14s; }
.drawn #dxNodeFollow { transition-delay: 0.28s; }
.drawn #dxNodeReport { transition-delay: 0.42s; }

.dx-node > rect { fill: rgba(244, 241, 236, 0.03); stroke: var(--hairline-dark); stroke-width: 1.5; transition: stroke 0.3s, fill 0.3s; }
.dx-node-name { fill: var(--white); font-size: 15px; font-weight: 700; text-anchor: middle; }
.dx-node-status {
  fill: rgba(244, 241, 236, 0.65); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; text-anchor: middle; text-transform: uppercase;
}
.dx-drip { fill: var(--gold); opacity: 0; }

.dx-node.is-leak > rect { stroke: var(--gold); fill: rgba(201, 169, 110, 0.08); }
.dx-node.is-leak .dx-node-status { fill: var(--gold); }
.dx-node.is-leak .dx-drip { animation: dx-drip 1.5s ease-in infinite; }
.dx-node.is-leak .dx-drip-2 { animation-delay: 0.75s; }
@keyframes dx-drip {
  0% { opacity: 0; transform: translateY(0); }
  18% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(24px); }
}
.dx-node.is-drag > rect { stroke-dasharray: 5 4; stroke: rgba(201, 169, 110, 0.55); }
.dx-node.is-drag .dx-node-status { fill: rgba(201, 169, 110, 0.8); }
.dx-node.is-ok > rect { stroke: rgba(71, 168, 154, 0.6); }
.dx-node.is-ok .dx-node-status { fill: var(--teal); }

.dx-beam { fill: var(--teal); opacity: 0; }
.scanning .dx-beam { animation: dx-beam 2.1s linear 1; }
@keyframes dx-beam {
  0% { opacity: 0; transform: translateX(0); }
  8% { opacity: 0.85; }
  92% { opacity: 0.85; }
  100% { opacity: 0; transform: translateX(690px); }
}

/* ---------- Report ---------- */
.dx-report { margin-top: clamp(22px, 3vw, 32px); border-top: 1px solid var(--hairline-dark); padding-top: clamp(22px, 3vw, 32px); }

html.motion-ok .dx-report > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.motion-ok .dx-report.shown > * { opacity: 1; transform: translateY(0); }
html.motion-ok .dx-report.shown > *:nth-child(2) { transition-delay: 0.12s; }
html.motion-ok .dx-report.shown > *:nth-child(3) { transition-delay: 0.24s; }
html.motion-ok .dx-report.shown > *:nth-child(4) { transition-delay: 0.36s; }
html.motion-ok .dx-report.shown > *:nth-child(5) { transition-delay: 0.48s; }

.dx-report-head {
  display: grid; grid-template-columns: 168px minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 48px); align-items: center;
  margin-bottom: clamp(24px, 3vw, 34px);
}
.dx-gauge { position: relative; width: 168px; text-align: center; }
.dx-gauge-svg { width: 128px; height: 128px; margin: 0 auto; display: block; transform: rotate(-90deg); }
.dx-gauge-track { fill: none; stroke: rgba(244, 241, 236, 0.1); stroke-width: 8; }
.dx-gauge-fill {
  fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 314.16; stroke-dashoffset: 314.16;
  transition: stroke-dashoffset 1.3s var(--ease);
}
.dx-gauge-num {
  position: absolute; top: 64px; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: baseline; gap: 3px;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.dx-gauge-num b { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--white); }
.dx-gauge-num span { font-size: 0.78rem; color: rgba(244, 241, 236, 0.7); }
.dx-gauge-label {
  margin-top: 10px; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244, 241, 236, 0.7);
}
.dx-gauge-band { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--gold); margin-top: 2px; }

.dx-report-title {
  font-family: var(--font-display); font-weight: 800; color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 10px;
}
.dx-report-title:focus { outline: none; }
.dx-subline { color: var(--paper-ink); max-width: 56ch; margin-bottom: 14px; font-size: 0.975rem; }
.dx-why { display: flex; flex-direction: column; gap: 5px; }
.dx-why li { font-size: 0.8125rem; color: rgba(244, 241, 236, 0.6); font-variant-numeric: tabular-nums; }
.dx-why li::before { content: "+ "; color: var(--gold); font-weight: 700; }

/* Findings: white sheets on the dark instrument */
.dx-findings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dx-find {
  background: var(--white); color: var(--navy);
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(4, 12, 22, 0.2), 0 14px 36px rgba(4, 12, 22, 0.32);
  display: flex; flex-direction: column; gap: 9px;
}
.dx-find header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dx-sev {
  display: inline-block;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.dx-find.is-leak .dx-sev { color: var(--gold-press); }
.dx-find.is-drag .dx-sev { color: var(--gold-press); }
.dx-find.is-ok .dx-sev { color: var(--teal); }
.dx-find-node { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.dx-find h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1.25; }
.dx-find p { font-size: 0.8438rem; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.dx-find footer {
  display: flex; align-items: center; gap: 9px;
  padding-top: 10px; border-top: 1px solid var(--hairline-light);
  font-size: 0.8125rem; color: var(--ink-soft);
}
.dx-find footer .mascot-sm { width: 19px; height: 20px; flex: none; }
.dx-find footer b { color: var(--navy); font-weight: 700; }

.dx-backbone {
  position: relative; margin-top: 16px; font-size: 0.875rem; color: var(--paper-ink);
  padding-left: 20px;
}
.dx-backbone::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 12px; height: 2px; border-radius: 2px; background: var(--teal);
}
.dx-backbone b { color: var(--white); }

.dx-hours {
  margin-top: 20px; padding: 18px 20px;
  border: 1px solid var(--hairline-dark); background: rgba(244, 241, 236, 0.025);
}
.dx-hours-num { font-size: 1.05rem; color: var(--white); margin-bottom: 6px; }
.dx-hours-num b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold); }
.dx-honest { font-size: 0.8125rem; color: rgba(244, 241, 236, 0.72); max-width: 74ch; line-height: 1.6; }

/* ---------- Lead capture (end of report, before the primary CTA) ---------- */
.dx-capture {
  margin-top: 20px; padding: clamp(18px, 2.4vw, 24px) clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--hairline-dark); background: rgba(244, 241, 236, 0.025);
}
.dx-capture-copy { margin-bottom: 16px; }
.dx-capture-kicker {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 6px;
}
.dx-capture-title {
  font-family: var(--font-display); font-weight: 800; color: var(--white);
  font-size: 1.2rem; margin-bottom: 6px;
}
.dx-capture-sub { font-size: 0.8438rem; color: var(--paper-ink); max-width: 56ch; }

.dx-capture-form { display: grid; gap: 14px; }
.dx-capture-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dx-field { display: grid; gap: 6px; }
.dx-field label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(244, 241, 236, 0.55);
}
.dx-field-opt { font-weight: 500; text-transform: none; letter-spacing: 0; color: rgba(244, 241, 236, 0.4); }
.dx-field input {
  width: 100%; font-family: var(--font-body); font-size: 0.9rem; color: var(--white);
  background: rgba(244, 241, 236, 0.04); border: 1px solid var(--hairline-dark); border-radius: 0;
  padding: 11px 13px; transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.dx-field input::placeholder { color: rgba(244, 241, 236, 0.35); }
.dx-field input:hover { border-color: rgba(201, 169, 110, 0.45); }
.dx-field input:focus-visible {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal);
}

.dx-capture-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.dx-capture-actions .btn-gold[disabled] { opacity: 0.6; cursor: default; transform: none !important; }
.dx-capture-sent {
  display: none; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; color: var(--teal);
}
.dx-capture-sent.shown { display: inline-flex; }

.dx-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hairline-dark);
}
.dx-again {
  background: none; border: 0; cursor: pointer; padding: 0 0 3px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.97rem; color: var(--paper-ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: left bottom;
  transition: color 0.2s, background-size 0.35s var(--ease);
}
.dx-again:hover { color: var(--white); background-size: 100% 1px; }

/* ---------- Sketch vs real ---------- */
.deeper { background: var(--offwhite); padding: clamp(72px, 8.5vw, 124px) 0 clamp(104px, 12vw, 180px); }
/* The sketch hugs its content and sits smaller than the real thing, on
   purpose: the sketch IS smaller than the real thing. */
.cmp { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.cmp-col { padding: clamp(30px, 3.6vw, 48px); }
.cmp-col h3 {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 20px;
}
.cmp-sketch { color: var(--ink-soft); padding-left: 0; padding-right: 0; }
.cmp-sketch h3 {
  color: var(--ink-soft);
  padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.cmp-sketch li {
  position: relative;
  padding: 12px 0 12px 24px; border-top: 1px solid var(--hairline-light); font-size: 0.95rem;
}
.cmp-sketch li:first-of-type { border-top: 0; }
.cmp-sketch li::before {
  content: ""; position: absolute; left: 2px; top: 1.35em;
  width: 12px; height: 2px; border-radius: 2px;
  background: rgba(14, 42, 71, 0.3);
}
/* The real analysis speaks the summon's language: a navy call sheet cut with
   the button's corner, the gold rule arriving top-left at the decision */
.cmp-real {
  position: relative; isolation: isolate;
  background: transparent; box-shadow: none;
}
.cmp-real::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-color: var(--navy);
  background-image:
    radial-gradient(90% 130% at 85% -20%, rgba(20, 51, 82, 0.9) 0%, rgba(20, 51, 82, 0) 55%),
    linear-gradient(rgba(244, 241, 236, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 236, 0.03) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  filter: drop-shadow(0 40px 80px rgba(4, 12, 22, 0.4));
}
.cmp-real h3 { color: var(--offwhite); }
.cmp-real li {
  position: relative;
  padding: 12px 0 12px 26px; border-top: 1px solid var(--hairline-dark);
  font-size: 0.975rem; color: var(--offwhite);
}
.cmp-real li:first-of-type { border-top: 0; }
.cmp-real li::before {
  content: ""; position: absolute; left: 2px; top: 1.35em;
  width: 12px; height: 2px; border-radius: 2px; background: var(--gold);
}
.cmp-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hairline-dark);
}
.cmp-note { font-size: 0.8438rem; color: var(--paper-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .diag-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .diag-protocol { max-width: 520px; }
  .dx-findings { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .dx-intake { grid-template-columns: 1fr; gap: 20px; }
  .dx-rail ol { flex-direction: row; flex-wrap: wrap; gap: 2px 16px; }
  .dx-rail li button { width: auto; padding: 6px 0; font-size: 0.7rem; }
  .dx-rail-agent { margin-top: 14px; padding-top: 14px; }
  .dx-scan { grid-template-columns: 1fr; }
  .dx-log { min-height: 0; }
  .cmp { grid-template-columns: 1fr; }
  .dx-report-head { grid-template-columns: 1fr; gap: 20px; }
  .dx-gauge { text-align: left; width: auto; display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; column-gap: 18px; }
  .dx-gauge-svg { grid-row: 1 / span 3; margin: 0; }
  .dx-gauge-num { position: static; transform: none; grid-column: 2; }
  .dx-gauge-label, .dx-gauge-band { grid-column: 2; margin-top: 2px; }
}

@media (max-width: 480px) {
  .dx-opts { grid-template-columns: 1fr; }
  .dx-qnav { flex-direction: column-reverse; align-items: stretch; }
  .dx-next { margin-left: 0; }
  .dx-back { align-self: flex-start; }
  .dx-cta .btn-gold { width: 100%; }
  .dx-capture-row { grid-template-columns: 1fr; }
  .dx-capture-actions .btn-gold { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dx-link { stroke-dashoffset: 0 !important; animation: none !important; }
  .dx-node { opacity: 1 !important; transform: none !important; }
  .dx-node.is-leak .dx-drip { animation: none !important; opacity: 0.85; transform: translateY(10px); }
  .dx-beam { animation: none !important; opacity: 0 !important; }
  .dx-gauge-fill { transition: none !important; }
  html.motion-ok .dx-report > * { opacity: 1; transform: none; }
  .dx-log li { animation: none !important; }
  html.js .diag-protocol li { opacity: 1; transform: none; }
}
