/* Card M-16 A (2026-11-15): every type size, line height, spacing, radius and control height below is a token of
   web/qeeg-analysis/_shared/ui_standard.css (linked first on every page that uses this file); this file keeps layout only.
   Whole file M-12 (2026-10-19): the QEEG + NF order forms (/qeeg-analysis/order/v2/, /neurofeedback-analysis/order/v2/) in the clinical-portal
   register — docs/FORM_CONTRACT.json "design" is the source: colours only through the :root tokens below (no other colour anywhere in this file,
   tools/form_gate.py checks it), Inter 400/500/600, body 14px · label 12px/600 · hint 12px · h1 20px/600 · footer 11px, inputs 36px with a 1px
   border and 4px radius, ONE button class (.btn, 38px, accent fill, white text), secondary actions as text links (.lnk), segments (joined
   buttons), concern chips (34px, 5 columns, disabled at 3), file slots (dashed → solid + badge + Replace), a 220px step rail beside a 760px
   main column; at ≤ 720px the rail becomes one row on top and every grid one column (no horizontal scroll at 390px — the gate measures it).
   This page no longer loads order3.css. consent.js renders .agree / .minorbox / .lgbox / .alert / .langtog (lang.js) — styled here too.
   M-15 (contract v4): the size tokens --h-in (Step 1 inputs 32px) · --w-dob (160px) · --w-sex · --w-hand (200px); Step 1 = one row (.row1)
   of four content-width cells, one column at ≤ 720px; the folded clinician fields under a text link.
   M-16 (contract v5): --w-sex 150px (Female / Male / Other on one line); the four cells stay on one row: client label 112px + 160 + 150 + 200
   + 3 × 12px gap = 658px ≤ 664px. The minor block (.minor) = one note + the "Relationship to the client" segment.
   Whole file M-17 (2026-10-20, contract v6): Review & pay opens with the report e-mail, large, with its Edit link (.rvmail — the Delivery step
   has no confirm-email field any more); the folded "Optional" (#optDet: research use, newsletter, Walkthrough interest) sits under the tables.
   Card RDT50029-20261107-1300 (contract v11): sizes up (body 16 / label 14 500 / h1 24 / inputs and buttons 44 / main 960) — see the block at the end. */
:root {   /* card M-16 A: the names this file has always used, now pointing at web/qeeg-analysis/_shared/ui_standard.css (the one source) */
  --ink: var(--u-ink); --muted: var(--u-muted); --hint: var(--u-muted); --line: var(--u-line); --border: var(--u-border);
  --accent: var(--u-accent); --accent-bg: var(--u-accent-soft); --bg: var(--u-paper); --warn: var(--u-error); --off-bg: var(--u-page);
  --font: var(--u-font);
  --h-in: var(--u-ctl); --w-dob: 250px; --w-sex: 210px; --w-hand: 220px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--u-fs-body)/var(--u-lh) var(--u-font); overflow-x: hidden; }
a { color: var(--accent); }
h1 { font: 600 var(--u-fs-h1)/var(--u-lh-head) var(--u-font); margin: 0 0 var(--u-s2); color: var(--ink); }
h2 { font: 600 var(--u-fs-h3)/var(--u-lh-head) var(--u-font); margin: 0 0 var(--u-s1); }
small { font-size: var(--u-fs-small); color: var(--hint); font-weight: 400; }

/* top bar */
header.top { border-bottom: 1px solid var(--line); background: var(--bg); }
header.top .wrap { max-width: 1228px; margin: 0 auto; padding: 0 var(--u-s5); height: 60px; display: flex; align-items: center; gap: var(--u-s4); }
.brand { font-weight: 600; font-size: var(--u-fs-body); color: var(--ink); text-decoration: none; white-space: nowrap; }
.barinfo { margin-left: auto; color: var(--muted); font-size: var(--u-fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.barinfo b { color: var(--ink); font-weight: 600; }
.langtog { display: inline-flex; border: 1px solid var(--border); border-radius: var(--u-radius); overflow: hidden; flex: none; }
.langtog button { border: 0; background: var(--bg); color: var(--muted); font: 500 var(--u-fs-small) var(--u-font); padding: var(--u-s1) var(--u-s3); cursor: pointer; }
.langtog button[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent); font-weight: 600; }

/* shell: rail + main */
.shell { max-width: 1228px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 960px); justify-content: center; }
.rail { list-style: none; margin: 0; padding: var(--u-s6) 0 var(--u-s6) var(--u-s5); border-right: 1px solid var(--line); counter-reset: st; }
.rail li { display: flex; align-items: center; gap: var(--u-s3); padding: var(--u-s2) 0; color: var(--hint); font-size: var(--u-fs-small); counter-increment: st; }
.rail li::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: var(--u-fs-small); font-weight: 600; color: var(--hint); background: var(--bg); flex: none; }
.rail li.done { color: var(--muted); cursor: pointer; }
.rail li.done::before { background: var(--accent-bg); border-color: var(--accent-bg); color: var(--accent); }
.rail li.on { color: var(--ink); font-weight: 600; }
.rail li.on::before { background: var(--accent); border-color: var(--accent); color: var(--bg); }
main { min-width: 0; grid-column: 2; }            /* stays in the main column when the rail is hidden (Received view) */
.sec { padding: var(--u-s6) var(--u-s7); }
.sub { color: var(--muted); margin: 0 0 var(--u-s5); max-width: 760px; }
.blk { margin: 0 0 var(--u-s4); }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--u-s4) var(--u-s4); margin: 0 0 var(--u-s4); }
.g2 > div { min-width: 0; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--u-s2); }

/* labels, inputs, hints */
.l { display: block; font: 500 var(--u-fs-small)/var(--u-lh-head) var(--u-font); color: var(--ink); margin: 0 0 var(--u-s2); }
.hint { font-size: var(--u-fs-small); color: var(--hint); margin: var(--u-s1) 0 0; }
input[type=text], input[type=email], input[type=date], input[type=month], select, textarea {
  width: 100%; height: var(--u-ctl); border: 1px solid var(--border); border-radius: var(--u-radius); background: var(--bg); color: var(--ink);
  font: 400 var(--u-fs-body) var(--u-font); padding: 0 var(--u-s3); outline: none; }
textarea { height: auto; min-height: 88px; padding: var(--u-s2) var(--u-s3); resize: vertical; line-height: var(--u-lh); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }
input[readonly] { background: var(--off-bg); color: var(--muted); }
input[type=checkbox] { width: var(--u-check); height: var(--u-check); margin: var(--u-s1) 0 0; accent-color: var(--accent); flex: none; }

/* the one button + text links */
.btn { height: var(--u-ctl); padding: 0 var(--u-s5); border: 0; border-radius: var(--u-radius); background: var(--accent); color: var(--bg); font: 600 var(--u-fs-body) var(--u-font);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: default; }
/* card RDT50029-20261106-1440: Place order while busy = disabled + a spinner */
.btn.busy::after { content: ''; width: 12px; height: 12px; margin-left: var(--u-s2); border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: o2spin .8s linear infinite; }
@keyframes o2spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.busy::after { animation-duration: 2.4s; } }
.lnk { background: none; border: 0; padding: 0; color: var(--accent); font: 500 var(--u-fs-small) var(--u-font); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--u-s3); border-top: 1px solid var(--line); padding-top: var(--u-s4); margin-top: var(--u-s5); }
.nav .lnk { text-decoration: none; }

/* segments */
.seg { display: flex; width: 100%; }
.seg button { flex: 1 1 0; min-width: 0; min-height: var(--u-ctl); border: 1px solid var(--border); background: var(--bg); color: var(--ink); font: 400 var(--u-fs-small)/var(--u-lh-head) var(--u-font);
  padding: var(--u-s1) var(--u-s2); cursor: pointer; margin-left: -1px; white-space: normal; }
.seg button:first-child { margin-left: 0; border-radius: var(--u-radius) 0 0 var(--u-radius); }
.seg button:last-child { border-radius: 0 var(--u-radius) var(--u-radius) 0; }
.seg button.on { background: var(--accent-bg); color: var(--accent); font-weight: 600; border-color: var(--accent); position: relative; z-index: 1; }
.seg button span { display: block; font-size: var(--u-fs-small); color: var(--hint); font-weight: 400; }

/* Step 1 (M-15 / M-16): one row of four content-width cells, inputs 32px (112 + 190 + 150 + 170 + 3 × 12 = 658px ≤ 664px).
   T-20261029-184011-1 item 3: at 1366 px the 160px date of birth cut its own placeholders (YYYY → "YYY", MM, DD) — 190px for the three
   selects, handedness 170px (Right · Left · Both still on one line). */
.row1 { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--u-s4) var(--u-s3); margin: 0 0 var(--u-s4); }
.row1 > div { flex: none; min-width: 0; }
.row1 input, .row1 select { height: var(--h-in); font-size: var(--u-fs-body); }
.row1 #clientLabel { width: 140px; padding: 0 var(--u-s2); }
.row1 .dob { display: flex; gap: var(--u-s1); width: var(--w-dob); }
.row1 .dob select { padding: 0 0 0 var(--u-s2); min-width: 0; }
.row1 .dob select[data-part="year"] { flex: 1.35 1 0; }
.row1 .dob select[data-part="month"], .row1 .dob select[data-part="day"] { flex: 1 1 0; }
.row1 .seg button { min-height: var(--h-in); height: var(--h-in); padding: 0 var(--u-s1); font-size: var(--u-fs-small); white-space: nowrap; }
.row1 .sex { width: var(--w-sex); }
.row1 .sex button { padding: 0 var(--u-s1); font-size: var(--u-fs-small); }
.row1 .hand { width: var(--w-hand); }
.row1 .badge { margin: var(--u-s1) 0 0; }
.clinlnk { display: block; margin: 0 0 var(--u-s3); }

/* concern chips */
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--u-s2); }
.chips button { height: var(--u-ctl); border: 1px solid var(--border); border-radius: var(--u-radius); background: var(--bg); color: var(--ink); font: 400 var(--u-fs-small)/var(--u-lh-head) var(--u-font);
  padding: 0 var(--u-s1); cursor: pointer; white-space: normal; overflow: hidden; }
.chips button.on { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chips button:disabled { background: var(--off-bg); color: var(--hint); border-color: var(--line); cursor: default; }
.cnt { color: var(--hint); font-weight: 400; }

/* file slots */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--u-s4) var(--u-s4); margin: 0 0 var(--u-s3); }
.slot { border: 1px dashed var(--border); border-radius: var(--u-radius); padding: var(--u-s4); min-height: 104px; display: flex; flex-direction: column; justify-content: center; gap: var(--u-s1); }
.slot.over { border-color: var(--accent); background: var(--accent-bg); }
.slot.has { border-style: solid; }
.slot.bad { border-color: var(--warn); }
.slot .fname { font-weight: 500; overflow-wrap: anywhere; }
.slot .acts { display: flex; gap: var(--u-s3); flex-wrap: wrap; }
.badge { display: inline-block; font: 600 var(--u-fs-small)/var(--u-lh-head) var(--u-font); color: var(--accent); background: var(--accent-bg); border-radius: var(--u-radius); padding: var(--u-s1) var(--u-s1); margin-right: var(--u-s1); }
.badge.bad { color: var(--warn); background: var(--off-bg); }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.warn { color: var(--warn); font-size: var(--u-fs-small); margin: 0 0 var(--u-s4); }
.det { color: var(--muted); font-size: var(--u-fs-small); margin: 0 0 var(--u-s2); }
.devs { display: flex; flex-wrap: wrap; gap: var(--u-s1); }
.devs button { height: var(--u-ctl); border: 1px solid var(--border); border-radius: var(--u-radius); background: var(--bg); color: var(--ink); font: 400 var(--u-fs-small) var(--u-font); padding: 0 var(--u-s2); cursor: pointer; }
.devs button.on { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); font-weight: 600; }
details { border-top: 1px solid var(--line); padding-top: var(--u-s3); margin-top: var(--u-s2); }
details > summary { cursor: pointer; font: 600 var(--u-fs-small) var(--u-font); color: var(--ink); list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+ "; color: var(--accent); }
details[open] > summary::before { content: "− "; }
details[open] > summary { margin-bottom: var(--u-s3); }

/* checks, consent (page + consent.js) */
.chk { display: flex; gap: var(--u-s2); align-items: flex-start; padding: var(--u-s2) 0; color: var(--ink); cursor: pointer; }
.chk + .chk { border-top: 1px solid var(--line); }
.agree { display: flex; gap: var(--u-s2); align-items: flex-start; padding: var(--u-s2) 0; font-size: var(--u-fs-small); color: var(--ink); }
.agree label { cursor: pointer; }
.sw { display: flex; gap: var(--u-s2); align-items: flex-start; padding: var(--u-s2) 0; cursor: pointer; }
.sw input { appearance: none; -webkit-appearance: none; width: 30px; height: 18px; border-radius: var(--u-radius); background: var(--border); position: relative; cursor: pointer; flex: none; margin: 1px 0 0; }
.sw input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); transition: left .12s; }
.sw input:checked { background: var(--accent); }
.sw input:checked::after { left: 14px; }
.sub2 { margin: var(--u-s1) 0 var(--u-s2) var(--u-s6); }
.legal { display: none; }
.minorbox { border: 1px solid var(--line); border-radius: var(--u-radius); padding: var(--u-s2) var(--u-s3); margin: var(--u-s2) 0; }
.minorbox .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--u-s3); }
.minorbox label { font: 500 var(--u-fs-small) var(--u-font); display: block; margin: var(--u-s1) 0 var(--u-s1); }
.minorbox label.agree { display: flex; font: 400 var(--u-fs-small)/var(--u-lh) var(--u-font); margin: 0; }
.minorbox .doc, .agree .doc { flex: 1 1 auto; }
.sig { margin-top: var(--u-s4); }
.sigline { margin: var(--u-s1) 0 0; }
.lgbox { border: 1px solid var(--line); border-radius: var(--u-radius); padding: var(--u-s2); max-height: 260px; overflow: auto; font-size: var(--u-fs-small); margin-top: var(--u-s2); }
.grp { border-top: 1px solid var(--line); margin-top: var(--u-s4); padding-top: var(--u-s3); }
.grp > .l { color: var(--muted); }
.minor .hint { margin: 0 0 var(--u-s2); }
.minor .seg { max-width: 400px; }
.minor .seg button { min-height: var(--u-ctl); }

/* messages, progress */
.alert { font-size: var(--u-fs-small); padding: var(--u-s2) var(--u-s3); border-radius: var(--u-radius); border: 1px solid var(--line); margin: var(--u-s3) 0 0; }
.alert.err { color: var(--warn); border-color: var(--warn); }
.alert.info { color: var(--muted); }
.prog { height: 3px; background: var(--line); border-radius: var(--u-radius); overflow: hidden; margin: var(--u-s3) 0 0; }
.prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* review */
.rvmail { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--u-s1) var(--u-s3); border: 1px solid var(--line); border-radius: var(--u-radius); background: var(--off-bg); padding: var(--u-s3) var(--u-s3); margin: 0 0 var(--u-s4); }
.rvmail span { font: 500 var(--u-fs-small) var(--u-font); color: var(--muted); flex: 1 1 100%; }
.rvmail b { font: 600 var(--u-fs-h2)/var(--u-lh-head) var(--u-font); color: var(--ink); overflow-wrap: anywhere; }
.rv { border: 1px solid var(--line); border-radius: var(--u-radius); margin: 0 0 var(--u-s4); }
.rv h2 { display: flex; justify-content: space-between; align-items: center; font-size: var(--u-fs-small); padding: var(--u-s2) var(--u-s3); margin: 0; border-bottom: 1px solid var(--line); background: var(--off-bg); }
.rv table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rv td { padding: var(--u-s2) var(--u-s3); vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.rv tr:first-child td { border-top: 0; }
.rv td:first-child { width: 38%; color: var(--muted); font-size: var(--u-fs-small); }
.price { border: 1px solid var(--line); border-radius: var(--u-radius); margin: 0 0 var(--u-s4); }
.price div { display: flex; justify-content: space-between; padding: var(--u-s2) var(--u-s3); border-top: 1px solid var(--line); }
.price div:first-child { border-top: 0; }
.price .tot { font-weight: 600; }
.price s { color: var(--hint); margin-right: var(--u-s1); }
.pack { display: flex; gap: var(--u-s3); align-items: center; }
.pack input { max-width: 240px; }
#optDet .chk { padding: var(--u-s1) 0; }

/* plans (NF) */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-s3); }
.plans button { text-align: left; border: 1px solid var(--border); border-radius: var(--u-radius); background: var(--bg); color: var(--ink); font: 600 var(--u-fs-body) var(--u-font); padding: var(--u-s3); cursor: pointer; min-height: 84px; }
.plans button span { display: block; font-weight: 400; font-size: var(--u-fs-small); color: var(--muted); margin-top: var(--u-s1); }
.plans button.on { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }

/* received + footer */
.done { padding: var(--u-s7); }
.done h2 { font-size: var(--u-fs-h1); font-weight: 600; }
.foot { max-width: 1228px; margin: 0 auto; padding: var(--u-s4) var(--u-s5) var(--u-s6); border-top: 1px solid var(--line); font-size: var(--u-fs-small); color: var(--hint); }

/* ≤ 720px (phones): rail on top as one row, one column everywhere */
@media (max-width: 720px) {
  header.top .wrap { padding: 0 var(--u-s4); gap: var(--u-s2); height: auto; min-height: var(--u-ctl); flex-wrap: wrap; padding-top: var(--u-s2); padding-bottom: var(--u-s2); }
  .barinfo { order: 3; flex-basis: 100%; margin-left: 0; font-size: var(--u-fs-small); }
  .langtog { margin-left: auto; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  main { grid-column: 1; }
  .rail { display: flex; gap: var(--u-s1); padding: var(--u-s3) var(--u-s4); border-right: 0; border-bottom: 1px solid var(--line); overflow: hidden; }
  .rail li { flex: 1 1 0; min-width: 0; flex-direction: column; gap: var(--u-s1); padding: 0; font-size: var(--u-fs-small); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rail li span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .sec { padding: var(--u-s5) var(--u-s4); }
  .done { padding: var(--u-s6) var(--u-s4); }
  .g2, .slots, .minorbox .row { grid-template-columns: minmax(0, 1fr); }
  .row1 { flex-direction: column; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .seg button { font-size: var(--u-fs-small); padding: var(--u-s1) var(--u-s1); }
  .nav .btn { white-space: normal; text-align: center; line-height: var(--u-lh-head); }
  .sub2 { margin-left: 0; }
  .foot { padding: var(--u-s4); }
}

/* T-20261029-184011-1 (journey fix bundle 1) — o9.js sign-in line + client chips (item 2), the folded "Add details (optional)" (item 7),
   the plan note in body size (item 5), the QEEG drop box + EC / EO chips (item 19) */
.o9si { margin: -2px 0 var(--u-s4); font-size: var(--u-fs-small); color: var(--muted); }
.o9box { border: 1px solid var(--line); border-radius: var(--u-radius); background: var(--off-bg); padding: var(--u-s3) var(--u-s3); margin: 0 0 var(--u-s4); }
.o9box .alert { margin-top: var(--u-s2); }
.o9row { display: flex; align-items: center; gap: var(--u-s2); flex-wrap: wrap; }
.o9row input { flex: 1 1 260px; max-width: 400px; }
.o9as { margin: 0 0 var(--u-s2); color: var(--muted); font-size: var(--u-fs-small); }
.o9chips { display: flex; flex-wrap: wrap; gap: var(--u-s1); }
.o9chips button { min-height: var(--u-ctl); border: 1px solid var(--border); border-radius: var(--u-radius); background: var(--bg); color: var(--ink); font: 500 var(--u-fs-small)/var(--u-lh-head) var(--u-font); padding: var(--u-s1) var(--u-s2); cursor: pointer; text-align: left; }
.o9chips button span { display: block; font-size: var(--u-fs-small); font-weight: 400; color: var(--hint); }
.o9chips button.on { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
.o9more { margin: var(--u-s1) 0 var(--u-s4); }
.lead16 { font-size: var(--u-fs-body); line-height: var(--u-lh); color: var(--ink); margin: var(--u-s4) 0 0; max-width: 620px; }
.drop { border: 1px dashed var(--border); border-radius: var(--u-radius); padding: var(--u-s5) var(--u-s4); text-align: center; margin: 0 0 var(--u-s3); background: var(--bg); }
.drop.over { border-color: var(--accent); background: var(--accent-bg); }
.drop.has { padding: var(--u-s3) var(--u-s4); }
.drop .dh { font-weight: 600; margin: 0 0 var(--u-s1); }
.drop .got { margin: 0 0 var(--u-s1); overflow-wrap: anywhere; }
.slots[hidden], .drop .dh[hidden], .drop label[hidden] { display: none; }
.eceo { display: inline-flex; border: 1px solid var(--border); border-radius: var(--u-radius); overflow: hidden; vertical-align: middle; }
.eceo button { border: 0; background: var(--bg); color: var(--muted); font: 600 var(--u-fs-small)/var(--u-lh-head) var(--u-font); padding: var(--u-s1) var(--u-s2); cursor: pointer; }
.eceo button + button { border-left: 1px solid var(--border); }
.eceo button.on { background: var(--accent-bg); color: var(--accent); }
@media (max-width: 720px) {
  .o9row input { max-width: none; }
  .drop { padding: var(--u-s4) var(--u-s3); }
}
.o9find { width: 100%; max-width: 400px; margin: 0 0 var(--u-s2); }

/* T-20261029-203011-1 (JOURNEY FIX 1 live stage 2) — the chip box at its own height while the account loads (item 3), a known client's age
   in place of the date of birth (item 1), the "already has a plan" box on top of Plan (item 4) */
.o9wait { color: var(--hint); }
.o9wait .o9chips button { cursor: default; color: var(--hint); }
.dobk { display: flex; align-items: center; height: var(--h-in); width: var(--w-dob); font-size: var(--u-fs-body); color: var(--ink); }
.o9have { border: 1px solid var(--accent); border-radius: var(--u-radius); background: var(--accent-bg); padding: var(--u-s4); margin: 0 0 var(--u-s4); }
.o9have p { margin: 0 0 var(--u-s3); font-size: var(--u-fs-body); line-height: var(--u-lh); color: var(--ink); }
.o9have .btn { display: inline-flex; align-items: center; text-decoration: none; }
.o9new { display: block; margin: var(--u-s3) 0 0; font-size: var(--u-fs-small); color: var(--muted); }
/* T-20261029-223011-1 item 3: the same box under the chips in About, the moment a client with sessions left is picked */
.o9box .o9have { margin: var(--u-s3) 0 0; padding: var(--u-s3) var(--u-s3); }
@media (max-width: 720px) {
  .dobk { width: auto; }
}

/* card RDT50029-20261107-1300 (readability + layout shift, 1288 px walk 11-07) — F1: content 960px beside the 220px rail, body 16px, label
   14px/500, h1 24px, every input and button 44px (the sizes above; colours, words and order untouched). F2: nothing that appears on a step
   may move its Continue / Place order button — the "Child & Teen edition" badge keeps its line from the start (invisible until a minor's
   date of birth), and each step's error box (#o2m1-#o2m5, .msgbelow) sits right under the button row instead of above it (any length,
   any width). tools/order_shift_check.py measures the button's y before / after (0). */
#minorBadge[hidden] { display: inline-block !important; visibility: hidden; }
.msgbelow .alert { margin: var(--u-s3) 0 0; }

/* card RDT50029-20261108-1100 (the signed-in door) — "Your clients" first (o9.js: #o9yc above the form shell, the shell hidden while it
   shows), one card per client (label · age · last order · status · Order QEEG / Order NF analysis / View reports), [+ New client] on top;
   About locked for a client from the list (#o2lock one line + Edit; the row, the clinician link and box hidden). Tokens only. */
.shell[hidden], .o9yc[hidden], .barlink[hidden], .o9lock[hidden] { display: none !important; }
.barlink { flex: none; font-size: var(--u-fs-small); font-weight: 500; color: var(--accent); white-space: nowrap; }
.o9yc { max-width: 960px; margin: 0 auto; padding: var(--u-s6) var(--u-s5) var(--u-s7); }
/* card 4 (11-08): service tabs above the board title (o9.js tabsHtml) — current = solid accent, the other = outline link. Tokens only. */
.o9tabs { display: flex; flex-wrap: wrap; gap: var(--u-s2); margin: 0 0 var(--u-s4); }
.o9tab { display: inline-flex; align-items: center; min-height: var(--u-ctl); padding: 0 var(--u-s4); border: 1px solid var(--border); border-radius: 999px;
  font-size: var(--u-fs-small); font-weight: 500; color: var(--accent); background: var(--bg); text-decoration: none; white-space: nowrap; }
a.o9tab:hover, a.o9tab:focus-visible { border-color: var(--accent); background: var(--accent-bg); }
.o9tab.on { border-color: var(--accent); background: var(--accent); color: var(--bg); font-weight: 600; }
.o9ych { display: flex; align-items: center; gap: var(--u-s4); flex-wrap: wrap; margin: 0 0 var(--u-s1); }
.o9ych h1 { margin: 0; flex: 1 1 auto; }
.o9tt { white-space: nowrap; cursor: pointer; }
.o9cards { list-style: none; margin: var(--u-s4) 0 0; padding: 0; display: grid; gap: var(--u-s3); }
.o9card { border: 1px solid var(--line); border-radius: var(--u-radius); background: var(--bg); padding: var(--u-s3) var(--u-s4); }
.o9ch { display: flex; align-items: center; gap: var(--u-s2); flex-wrap: wrap; }
.o9code { font-size: var(--u-fs-body); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.o9age { color: var(--muted); font-size: var(--u-fs-small); }
.o9pill { margin-left: auto; border: 1px solid var(--border); border-radius: 999px; padding: 2px var(--u-s2); font-size: var(--u-fs-small); font-weight: 500; color: var(--muted); background: var(--off-bg); white-space: nowrap; }
.o9pill.ready { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.o9pill.hold { border-color: var(--warn); color: var(--warn); background: var(--bg); }
.o9pill.working { color: var(--ink); }
.o9last { margin: var(--u-s1) 0 var(--u-s2); color: var(--muted); font-size: var(--u-fs-small); }
.o9acts { display: flex; align-items: center; gap: var(--u-s2); flex-wrap: wrap; }
.btn.o9alt { background: var(--bg); color: var(--accent); border: 1px solid var(--accent); }
.o9first { border: 1px solid var(--line); border-radius: var(--u-radius); background: var(--off-bg); padding: var(--u-s4); margin: var(--u-s4) 0 0; }
.o9first p { color: var(--muted); margin: 0 0 var(--u-s3); }
.o9lock { border: 1px solid var(--line); border-radius: var(--u-radius); background: var(--off-bg); padding: var(--u-s3) var(--u-s3); margin: 0 0 var(--u-s4); }
.o9lockl { margin: 0; font-size: var(--u-fs-body); overflow-wrap: anywhere; }
.o9lock .hint { margin: var(--u-s1) 0 0; }
.sec.locked #o2row1, .sec.locked #clinTog, .sec.locked #o2clinBox { display: none !important; }
@media (max-width: 720px) {
  .o9yc { padding: var(--u-s4) var(--u-s4) var(--u-s6); }
  .o9pill { margin-left: 0; }
  .o9acts .btn { flex: 1 1 100%; }
}

/* card 1100 fix 2 — board (table) list: one row per client → click → that client's order board. Tokens only. */
.o9find { width: 100%; max-width: 360px; margin: var(--u-s4) 0 var(--u-s3); padding: var(--u-s2) var(--u-s3); font-size: var(--u-fs-body); border: 1px solid var(--border); border-radius: var(--u-radius); background: var(--bg); color: var(--ink); }
.o9tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--u-radius); }
.o9tb { width: 100%; border-collapse: collapse; font-size: var(--u-fs-small); }
.o9tb th { text-align: left; font-weight: 600; color: var(--muted); background: var(--off-bg); padding: var(--u-s2) var(--u-s3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.o9tb td { padding: var(--u-s2) var(--u-s3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.o9tb tr:last-child td { border-bottom: 0; }
.o9tb .o9pill { margin-left: 0; }
.o9row { cursor: pointer; }
/* 1210 (card 1130 revert 39f4171 cause): the old flex rule .o9row (sign-in line) also hit the table row <tr class="o9row"> → tr = flex box,
   cells off their headers at 1280 and split into 2-3 lines at 390. A table row stays a table row. */
.o9tb tr.o9row { display: table-row; }
/* 1252: client details · files · 390 no-wrap (labels never split letter by letter; narrow screens scroll the table sideways, first column stays) */
.o9tb th, .o9tb td { white-space: nowrap; }
.o9tb tr > :first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; }
.o9tb thead tr > :first-child { background: var(--off-bg); }
.o9kv th { width: 180px; color: var(--muted); font-weight: 600; background: var(--off-bg); }
.o9h3 { font-size: var(--u-fs-body); margin: var(--u-s5) 0 var(--u-s2); }
.o9dl { font-weight: 700; }
.o9row:hover td, .o9row:focus td { background: var(--accent-bg); }
.o9row:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.o9pg { display: flex; align-items: center; justify-content: center; gap: var(--u-s4); margin: var(--u-s3) 0 0; color: var(--muted); font-size: var(--u-fs-small); }
.o9pg .lnk[disabled] { opacity: .4; cursor: default; }
/* 1253: numbered pages + count line, one clean block */
.o9pg { gap: var(--u-s1); margin: var(--u-s4) 0 var(--u-s1); }
.o9pn { min-width: 36px; height: var(--u-ctl); padding: 0 var(--u-s2); border: 1px solid var(--line); border-radius: var(--u-radius); background: var(--bg); color: var(--ink); font: inherit; font-size: var(--u-fs-small); cursor: pointer; }
.o9pn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 700; }
.o9pn[disabled] { opacity: .35; cursor: default; }
.o9cnt { margin: 0 0 var(--u-s2); color: var(--muted); font-size: var(--u-fs-small); }
.o9dh { margin: var(--u-s1) 0 var(--u-s3); }
.o9dh h2 { margin: 0; }
.o9sp { flex: 1 1 auto; }
@media (max-width: 720px) { .o9dh .btn { flex: 1 1 100%; } }
/* ── 1254 board card (QEEG + NF order v2, Dr. Kwon 11-08 "프로페셔널한 게시판 폼") ── */
.o9bcard { border: 1px solid var(--line); border-radius: var(--u-radius); padding: 0; background: var(--bg); box-shadow: 0 1px 2px var(--line); overflow: hidden; margin-top: var(--u-s3); }
.o9bar { display: flex; align-items: center; justify-content: space-between; gap: var(--u-s3); flex-wrap: wrap; padding: var(--u-s3) var(--u-s4); border-bottom: 1px solid var(--line); background: var(--bg); }
.o9srch { flex: 1 1 280px; max-width: 420px; position: relative; }
.o9bcard .o9find { margin: 0; width: 100%; max-width: none; height: var(--u-ctl); padding: 0 var(--u-s3) 0 var(--u-s6); font-size: var(--u-fs-small); border: 1px solid var(--border); border-radius: var(--u-radius);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 12px 50%; }
.o9bcard .o9cnt { margin: 0; color: var(--hint); font-size: var(--u-fs-small); white-space: nowrap; }
.o9bcard .o9tw { border: 0; border-radius: 0; }
.o9board { font-size: var(--u-fs-small); }
.o9board thead th { background: var(--off-bg); color: var(--hint); font-size: var(--u-fs-small); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: var(--u-s3) var(--u-s4); border-bottom: 1px solid var(--line); }
.o9board td { padding: var(--u-s3) var(--u-s4); border-bottom: 1px solid var(--line); color: var(--ink); }
.o9board tbody tr:last-child td { border-bottom: 0; }
.o9board .num { text-align: right; font-variant-numeric: tabular-nums; }
.o9board .o9code { font-weight: 700; color: var(--ink); }
.o9board tr.o9row:hover td, .o9board tr.o9row:focus td { background: var(--accent-bg); }
.o9board tr.o9row:focus { outline: none; }
.o9board tr.o9row:focus td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.o9bcard .o9pg { margin: 0; padding: var(--u-s3) var(--u-s4); border-top: 1px solid var(--line); background: var(--off-bg); justify-content: center; gap: var(--u-s1); flex-wrap: wrap; }
.o9bcard .o9pn { min-width: 34px; height: 34px; border-radius: var(--u-radius); font-size: var(--u-fs-small); }
.o9bcard .o9pn:not(.on):not([disabled]):hover { border-color: var(--accent); color: var(--accent); }
/* card 1950 B: the client's Order table — "1–10 of N" above the pages, in the card footer */
.o9bcard .o9ocnt { margin: 0; padding: var(--u-s2) var(--u-s4) 0; border-top: 1px solid var(--line); background: var(--off-bg); color: var(--muted); font-size: var(--u-fs-small); text-align: center; }
.o9bcard .o9ocnt + .o9pg { border-top: 0; }
.o9gap { color: var(--hint); padding: 0 2px; }
.o9empty { margin: 0; padding: var(--u-s5) var(--u-s4); color: var(--muted); text-align: center; }
@media (max-width: 640px) { .o9bar { padding: var(--u-s3); } .o9board td, .o9board thead th { padding: var(--u-s3) var(--u-s3); } .o9bcard .o9cnt { width: 100%; } }
/* card 6 (2026-11-09, Dr. Kwon customer-board walk): "← Home" beside the brand · the loading skeleton (the board card's frame, grey bars,
   a soft pulse — still with prefers-reduced-motion) · the label in small grey beside the name · "No … orders yet" · a screen-reader-only
   loading line. Tokens only. */
.barhome { flex: none; font-size: var(--u-fs-small); font-weight: 500; color: var(--accent); text-decoration: none; white-space: nowrap; }
.barhome:hover, .barhome:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.o9lab { margin-left: var(--u-s1); color: var(--hint); font-size: var(--u-fs-small); font-weight: 400; white-space: nowrap; }
.o9dh .o9lab { font-size: var(--u-fs-small); margin-left: 0; }
.o9sk { display: inline-block; height: 12px; width: 60%; max-width: 100%; border-radius: var(--u-radius); background: var(--line); vertical-align: middle; animation: o9pulse 1.4s ease-in-out infinite; }
.o9sks { width: 32px; } .o9skm { width: 72px; } .o9skl { width: 120px; } .o9skn { width: 120px; }
.o9skh { width: 220px; height: 26px; margin: var(--u-s1) 0; } .o9ska { width: 260px; max-width: 70%; height: 14px; }
.o9skf { flex: 1 1 280px; max-width: 420px; height: var(--u-ctl); border-radius: var(--u-radius); }
.o9skc thead .o9sk { height: 10px; }
.o9skc td { padding-top: var(--u-s4); padding-bottom: var(--u-s4); }
@keyframes o9pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .o9sk { animation: none; } }
.o9vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.o9none { text-align: center; padding: var(--u-s2) var(--u-s4) var(--u-s5); }
.o9none .o9empty { padding: var(--u-s5) var(--u-s4) var(--u-s3); font-size: var(--u-fs-body); color: var(--ink); }
.o9nonea { margin: 0; }
@media (max-width: 720px) { .barhome { font-size: var(--u-fs-small); } .o9skh { width: 160px; } }
/* card 6b: the account at the top right of the header (o9.js headHtml) — "Sign in" in the sales-page look (700 15px, accent, no underline) or
   "<email> · Sign out" (the e-mail cut with an ellipsis); right-aligned when the order summary (.barinfo) is hidden on the board.
   ≤ 720px: on the second header row with EN|KO, the e-mail shrinks first (no horizontal scroll at 390px). */
.o9acct { display: flex; align-items: baseline; gap: var(--u-s1); min-width: 0; flex: 0 1 auto; max-width: 380px; font-size: var(--u-fs-small); }
.o9acct:empty { display: none; }
.barinfo[hidden] ~ .o9acct { margin-left: auto; }
.o9acct .acctlink { flex: none; background: none; border: 0; padding: 0; font: 700 var(--u-fs-small) var(--u-font); color: var(--accent); text-decoration: none; white-space: nowrap; cursor: pointer; }
.o9acct .acctlink:hover, .o9acct .acctlink:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.o9acct .o9em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.o9acct .o9dot { flex: none; color: var(--hint); }
@media (max-width: 720px) {
  .o9acct { order: 2; flex: 1 1 160px; max-width: none; justify-content: flex-end; font-size: var(--u-fs-small); margin-left: 0; }
  .barinfo[hidden] ~ .o9acct { margin-left: 0; }
  .o9acct .acctlink { font-size: var(--u-fs-small); }
  .langtog { order: 2; }
}

/* Card RDT50029-20261109-1835 no.7 (Dr. Kwon 11-09) — Recording step: two slots side by side, Eyes Closed (EC) left · Eyes Open (EO) right.
   Each = title + one line + dashed drop box with "Choose file"; added = ✓ + file name + Remove (solid accent border); a wrong file = one
   --warn line under that slot. ≤ 640px (and the existing ≤ 720px rule) stacks them. Tokens only. */
.slotsh { font-weight: 600; font-size: var(--u-fs-body); margin: var(--u-s2) 0 var(--u-s3); color: var(--ink); }
.slots.two { gap: var(--u-s4) var(--u-s5); margin: 0 0 var(--u-s3); align-items: start; }
.slots.two .sl { min-width: 0; }
.slots.two .l { display: block; font-size: var(--u-fs-body); font-weight: 600; margin: 0 0 2px; }
.slots.two .sl > .hint { margin: 0 0 var(--u-s2); }
.slots.two .slot { border-width: 2px; min-height: 150px; align-items: center; text-align: center; background: var(--bg); }
.slots.two .slot.over { border-color: var(--accent); background: var(--accent-bg); }
.slots.two .slot.has { border-style: solid; border-color: var(--accent); background: var(--accent-bg); align-items: stretch; text-align: left; }
.slots.two .slot.bad { border-style: solid; border-color: var(--warn); background: var(--bg); align-items: stretch; text-align: left; }
.slots.two .dz { display: flex; flex-direction: column; align-items: center; gap: var(--u-s3); color: var(--muted); }
.slots.two .pick { display: inline-flex; align-items: center; min-height: var(--u-ctl); padding: 0 var(--u-s4); border: 1px solid var(--accent); border-radius: var(--u-radius); background: var(--bg); color: var(--accent); font: 600 var(--u-fs-small)/var(--u-lh-head) var(--u-font); cursor: pointer; }
.slots.two .pick:hover { background: var(--accent-bg); }
.slots.two .got2 { display: flex; align-items: center; gap: var(--u-s2); flex-wrap: wrap; }
.slots.two .got2 .ok { color: var(--accent); font-weight: 700; font-size: var(--u-fs-h2); line-height: var(--u-lh-head); }
.slots.two .got2 .fname { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; font-weight: 500; color: var(--ink); }
.slerr { color: var(--warn); font-size: var(--u-fs-small); font-weight: 500; margin: var(--u-s1) 0 0; }
@media (max-width: 640px) {
  .slots.two { grid-template-columns: minmax(0, 1fr); }
  .slots.two .slot { min-height: 120px; }
}

/* card Qeeg-20261113-0835: Step 1 name boxes (two 3-letter boxes + the rule line), the duplicate question, the unfinished-order box (form);
   the hold box and an opened recording's files (Your clients → a person, o9.js) */
.nm3row { display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); gap: var(--u-s2) var(--u-s4); margin: 0 0 var(--u-s3); }
.nm3row[hidden] { display: none !important; }
.nm3row input { width: 100%; max-width: 120px; text-transform: none; }
.nm3row .nm3h { grid-column: 1 / -1; margin: 0; }
.sec.locked #o2nm3, .sec.locked #o2dup { display: none !important; }
.o13dup, .o13res, .o9hold { border: 1px solid var(--line); border-radius: var(--u-radius); background: var(--off-bg); padding: var(--u-s3) var(--u-s3); margin: var(--u-s3) 0; }
.o13dup[hidden], .o13res[hidden] { display: none !important; }
.o13dup p, .o13res p, .o9hold p { margin: 0 0 var(--u-s2); overflow-wrap: anywhere; }
.o13dup p:last-child, .o13res p:last-child, .o9hold p:last-child { margin: 0; }
.o9holdh { font-weight: 600; }
.o9recs .o9row { cursor: pointer; }
.o9recf > td { background: var(--off-bg); padding: var(--u-s2) var(--u-s4); white-space: normal; position: static; }   /* the opened row wraps — it never widens the table */
.o9recs td, .o9recs thead th { padding-left: var(--u-s3); padding-right: var(--u-s3); }
.o9recf .o9tb { margin: 0; }
.o9trn { margin-top: var(--u-s3); }
@media (max-width: 600px) { .nm3row { grid-template-columns: 1fr 1fr; } }

/* card NF-20261113: the NF person page — plan slots (done ✓ + date / Not yet, report slots marked) and the Unassigned fold */
.o9slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: var(--u-s2); margin: var(--u-s2) 0 var(--u-s4); }
.o9slot { display: flex; flex-direction: column; gap: var(--u-s1); min-height: 76px; padding: var(--u-s2) var(--u-s2); border: 1px solid var(--line); border-radius: var(--u-radius); background: var(--bg); text-align: left; font: inherit; font-size: var(--u-fs-small); color: var(--ink); }
.o9slot.empty { border-style: dashed; color: var(--hint); }
.o9slot.done { cursor: pointer; }
.o9slot.done:hover, .o9slot.done:focus { background: var(--accent-bg); outline: none; box-shadow: inset 3px 0 0 var(--accent); }
.o9slot .o9sk_n { font-weight: 700; font-size: var(--u-fs-small); color: var(--muted); }
.o9slot .o9srep { align-self: flex-start; font-size: var(--u-fs-small); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: var(--u-radius); padding: 0 var(--u-s1); }
.o9slot .o9sd { font-weight: 600; }
.o9una { margin-top: var(--u-s4); }
.o9una .o9recf td { white-space: normal; }
@media (max-width: 600px) { .o9slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } .o9slot { min-height: 64px; font-size: var(--u-fs-small); } }

/* card Qeeg-20261113-1150: owner status words (o9.js ownPill) · report links as buttons side by side, 44 px to press, wrapping on a narrow screen */
.o9pill.rev { border-color: var(--warn); color: var(--ink); background: var(--accent-bg); font-weight: 600; }
.o9pill.sent { border-color: var(--accent); color: var(--accent); background: var(--bg); }
.o9rbs { display: flex; flex-wrap: wrap; gap: var(--u-s2) var(--u-s3); align-items: center; }
.o9rg { display: inline-flex; gap: var(--u-s1); flex-wrap: nowrap; }
.o9rb { min-height: var(--u-ctl); padding: var(--u-s2) var(--u-s3); border: 1px solid var(--accent); border-radius: var(--u-radius); background: var(--bg); color: var(--accent); font: inherit; font-size: var(--u-fs-small); font-weight: 600; line-height: var(--u-lh-head); cursor: pointer; white-space: nowrap; }
.o9rb:hover, .o9rb:focus-visible { background: var(--accent-bg); outline: 2px solid var(--accent); outline-offset: 1px; }
.o9recs td.o9repc { min-width: 230px; }
@media (max-width: 600px) {
  .o9recs td.o9repc { min-width: 0; }
  .o9rg { flex-wrap: wrap; }
  .o9rb { padding: var(--u-s2) var(--u-s3); font-size: var(--u-fs-small); }
}
/* card Qeeg-20261113-1150: at phone width a recording is a small card (no sideways scroll) — the REPORT buttons take the full width under it */
@media (max-width: 600px) {
  .o9recs thead { display: none; }
  .o9recs tr.o9row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--u-s1) var(--u-s3); padding: var(--u-s2) var(--u-s3); border-bottom: 1px solid var(--line); }
  .o9recs tr.o9row td { display: block; padding: 0; border: 0; }
  .o9recs tr.o9row td.o9repc { grid-column: 1 / -1; padding-top: var(--u-s1); }
  .o9recs tr.o9recf, .o9recs tr.o9recf td { display: block; }
}
/* card Qeeg-20261113-1150: room for the EN / KO pairs on a desktop card — "(order date)" under the date, a long status word may wrap */
.o9recs td .o9lab { display: block; }
.o9recs td .o9pill { white-space: normal; display: inline-block; max-width: 170px; line-height: var(--u-lh-head); }
/* Card M-14 (W-12 · W-19): "and / or" between the eyes-closed and eyes-open boxes (a column of its own; on a phone a line between them) and the
   consent sentence above the consent boxes */
.slots.two { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.andor { align-self: center; font: 600 var(--u-fs-body)/var(--u-lh-head) var(--u-font); color: var(--muted); text-align: center; padding: 0 2px; }
.consline { font-size: var(--u-fs-body); line-height: var(--u-lh); color: var(--ink); margin: 0 0 var(--u-s2); }
@media (max-width: 760px) { .slots.two { grid-template-columns: minmax(0, 1fr); } .andor { padding: 2px 0; } }
/* card M-16 C3: the "Ordering for · You are" band sits in the main column, aligned with the step's content (look = ui_standard .u-band) */
#o2band { margin: var(--u-s6) var(--u-s7) 0; }
#o2band + form .sec { padding-top: var(--u-s5); }
@media (max-width: 720px) { #o2band { margin: var(--u-s4) var(--u-s4) 0; } }
/* card M-16 A (ui_check 390): the step bar on a phone = the numbers in one line + the current step's name; the account e-mail stays in the
   menu (it was cut in the header) */
@media (max-width: 720px) {
  .rail { gap: var(--u-s2); align-items: center; }
  .rail li { flex: none; flex-direction: row; font-size: var(--u-fs-small); }
  .rail li span { display: none; }
  .rail li.on { flex: 1 1 auto; min-width: 0; }
  .rail li.on span { display: inline; overflow: hidden; text-overflow: clip; white-space: normal; }
  .o9acct .o9em { display: none; }
}
/* card M-16 D1: inside the "Who answers, and how they get it" box each group is a plain block (no box inside a box) */
.qwho .qgrp { border: 0; padding: 0; margin: 0 0 var(--u-s4); background: none; }
.qwho .qgrp:last-child { margin-bottom: 0; }
/* card M-20 C: step 6 Add to your report — the choices left, the total right (below on a phone) */
.o20add{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:var(--u-s5,20px);align-items:start}
.o20sum{border:1px solid var(--u-line);border-radius:var(--u-radius);background:var(--u-paper);padding:var(--u-s4,16px);position:sticky;top:16px}
.o20sum h2{margin:0 0 8px;font-size:var(--u-fs-h3,1.05rem)}
.o20sum table{width:100%;border-collapse:collapse}.o20sum td{padding:4px 0;vertical-align:top}.o20sum td+td{text-align:right;white-space:nowrap}
.o20sum tr.tot td{border-top:1px solid var(--u-line);font-weight:700;padding-top:8px}
@media (max-width:760px){.o20add{grid-template-columns:minmax(0,1fr)}.o20sum{position:static}}
/* card M-20 C: eight steps on a phone — smaller numbers and gaps so the current step's name fits (ui_check 390: "Questionnaires" was cut) */
@media (max-width: 720px) {
  .rail { gap: 4px; padding-left: var(--u-s3); padding-right: var(--u-s3); }
  .rail li::before { width: 24px; height: 24px; }
}
