/* Participant portal. Calmer than the consoles: one card, one job per screen. */
body.smx-portal{background:linear-gradient(180deg,var(--hero-a),var(--hero-b) 40%,var(--canvas));min-height:100vh;margin:0}
.pt-top{display:flex;align-items:center;gap:14px;padding:16px 34px;background:var(--navy);flex-wrap:wrap}
.pt-logo{width:152px;height:auto;display:block}
.pt-role{font-weight:600;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.6);border-left:1px solid rgba(255,255,255,.25);padding-left:14px}
.stepper{margin-left:auto;display:flex;align-items:center}
.stp{display:flex;align-items:center;gap:8px;color:rgba(255,255,255,.5);font-size:12.5px;font-weight:500}
.stp .n{width:22px;height:22px;border-radius:50%;border:1.5px solid rgba(255,255,255,.35);display:grid;place-items:center;font-size:11px;font-weight:700}
.stp.done{color:rgba(255,255,255,.85)} .stp.done .n{background:var(--gold);border-color:var(--gold);color:var(--navy-700)}
.stp.on{color:#fff} .stp.on .n{background:#fff;border-color:#fff;color:var(--navy)}
.stp-line{width:26px;height:1.5px;background:rgba(255,255,255,.28);margin:0 8px}
.pt-body{padding:34px 20px 60px}
.pt-card{width:100%;max-width:620px;margin:0 auto;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:34px 36px}
.pt-card.wide{max-width:1080px}
.pt-card h2{font-size:23px;margin-bottom:8px}
.pt-card .lead{color:var(--ink-soft);font-size:14.5px;margin-bottom:22px}
.pt-big{font-family:var(--f-mono);letter-spacing:2px;font-size:19px;text-align:center}
.grpline{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--muted);margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.gpill{font-family:var(--f-mono);font-size:11.5px;color:var(--navy-600);background:color-mix(in srgb,var(--navy) 8%,#fff);border-radius:999px;padding:3px 10px}
.steps-list{list-style:none;margin:0 0 20px;padding:0}
.steps-list li{display:flex;gap:12px;padding:8px 0;font-size:14px;color:var(--ink-soft)}
.steps-list .b{width:24px;height:24px;border-radius:50%;background:color-mix(in srgb,var(--navy) 10%,#fff);color:var(--navy-600);display:grid;place-items:center;font-size:12px;font-weight:700;flex:none;font-family:var(--f-head)}
.mrow{display:flex;align-items:center;gap:12px;margin-bottom:11px}
.mrow .ml{width:104px;font-size:13px;font-weight:600;flex:none}
.mrow .mt{flex:1;height:16px;background:var(--surface-2);border-radius:5px;overflow:hidden;border:1px solid var(--border)}
.mrow .mt i{display:block;height:100%;border-radius:5px}
.mrow .mv{width:26px;text-align:right;font-family:var(--f-mono);font-size:13px;font-variant-numeric:tabular-nums;flex:none}
.badge-done{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--st-consumed);background:color-mix(in srgb,var(--st-consumed) 13%,#fff);border-radius:999px;padding:5px 13px;margin-bottom:12px}
.engine-wrap{margin-top:6px}
.engine-wrap img{max-width:100%;height:auto}

/* The engine's survey is old table-and-radio markup that expects browser
   defaults. Our console styles input/table/th/td globally, which distorted its
   layout badly enough to make the questions unusable — so those styles are
   neutralised inside this wrapper only. His own CSS still applies; only ours is
   held back. */
.engine-wrap table{width:auto;border-collapse:collapse}
.engine-wrap thead th,.engine-wrap th{padding:2px 5px;border:0;background:none;color:inherit;
  font-size:inherit;font-weight:inherit;text-transform:none;letter-spacing:normal;white-space:normal;text-align:left}
.engine-wrap tbody td,.engine-wrap td{padding:2px 5px;border:0;vertical-align:top}
.engine-wrap tbody tr:last-child td{border:0}
.engine-wrap input[type=text],.engine-wrap input[type=email],.engine-wrap input[type=password],
.engine-wrap input[type=number],.engine-wrap select,.engine-wrap textarea{
  width:auto;padding:2px 4px;border:1px solid #8c8c8c;border-radius:0;
  background:#fff;color:#000;font-size:13px;font-family:inherit;min-height:0}
.engine-wrap input[type=radio],.engine-wrap input[type=checkbox]{
  width:13px;height:13px;padding:0;margin:0 4px 0 0;border:0;background:none;accent-color:auto}
.engine-wrap textarea{min-height:0;resize:vertical}
.engine-wrap a{color:#0645ad}
.engine-wrap h1,.engine-wrap h2,.engine-wrap h3,.engine-wrap h4{
  font-family:inherit;letter-spacing:normal;text-wrap:wrap}
.pt-card.wide{max-width:1160px;padding:22px 24px}
@media (max-width:760px){ .stepper{display:none} .pt-card{padding:26px 20px} }

/* The questions on a phone.
 *
 * Each answer is one of the engine's own grid rows — two 8.33% columns holding
 * the 1st and 2nd radios, then an 83.33% column holding the answer. Every one of
 * those columns also carries 15px of padding on each side. Below roughly 480px
 * the 8.33% share is worth less than that 30px of padding, so the radio columns
 * are forced wider than their share, the three no longer fit, and the wrapping
 * row drops the answer text onto a line of its own. What the participant then
 * reads is a pair of unlabelled radios sitting above the answer it belongs to,
 * fourteen questions in a row — the one screen on the platform that has to be
 * unambiguous.
 *
 * Pinning the radio columns to a fixed width and giving the answer whatever is
 * left keeps the row in one piece at any phone width. The engine's own files are
 * untouched: this only settles the cascade inside our wrapper, and only where
 * the row would otherwise break.
 */
@media (max-width:520px){
  .pt-card.wide{padding:20px 12px}

  .engine-wrap .sm-row{flex-wrap:nowrap;align-items:center;margin-left:0;margin-right:0}
  .engine-wrap .sm-row > .sm-colxs-1{flex:0 0 34px;width:34px;padding-left:0;padding-right:0;text-align:center}
  .engine-wrap .sm-row > .sm-colxs-10{flex:1 1 auto;width:auto;padding-left:8px;padding-right:0}
  .engine-wrap .sm-row > .sm-colxs-1 p{margin:0}

  /* 13px is a mouse-sized target. These are the only controls on the page. */
  .engine-wrap input[type=radio]{width:18px;height:18px;margin:0}
}

/* announcements shown to a participant */
.pt-body .section-head{display:flex;align-items:center;gap:10px;max-width:700px;margin:0 auto 10px}
.pt-body .section-head h2{font-size:16px;margin:0}
.pt-body .card{max-width:700px;margin:0 auto 18px}
.msg{padding:11px 0;border-bottom:1px solid var(--border)}
.msg:last-child{border-bottom:0}
.msg-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
.msg-when{color:var(--muted);font-size:12px}
.msg p{margin:5px 0 0;color:var(--ink-soft);font-size:14px}
.pill-new{background:var(--gold-050);color:var(--navy-700);border:1px solid var(--gold);font-size:11.5px;padding:2px 9px;border-radius:99px;font-weight:700;margin-left:auto}

/* announcement bar in the participant portal */
.ann-bar{display:flex;align-items:center;gap:12px;max-width:700px;margin:0 auto 18px;padding:11px 14px;
  border-radius:var(--r-sm);background:var(--gold-050);border:1px solid var(--gold)}
.ann-dot{width:7px;height:7px;border-radius:50%;background:var(--gold-600);flex:none}
.ann-text{flex:1;min-width:0;font-size:13.5px}
.ann-text strong{margin-right:8px}
.ann-more{font-size:11.5px;font-weight:700;background:#fff;border:1px solid var(--gold);border-radius:99px;padding:2px 9px;flex:none}
.ann-x{flex:none;font-size:20px;line-height:1;color:var(--muted);text-decoration:none}

/* copyright and trademark notice, on every page */
.smx-legal{padding:20px 24px 26px;border-top:1px solid var(--border);background:var(--surface-2)}
.smx-legal p{max-width:820px;margin:0 auto;font-size:11.5px;line-height:1.6;color:var(--muted);text-align:center}
.smx-legal a{color:var(--navy-600);text-decoration:underline}

/* the report itself, and nothing else, on the participant's final page.
   Sized against the viewport rather than a fixed height so the whole page fits
   on screen without two scrollbars — the browser's own PDF viewer scrolls
   inside the frame, and the page around it does not scroll at all. */
.pt-report{width:100%;max-width:1080px;margin:0 auto;background:var(--surface);
  border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
.pt-report-frame{display:block;width:100%;height:calc(100vh - 260px);min-height:800px;border:0}
@media (max-width:760px){ .pt-report-frame{height:calc(100vh - 210px)} }

/* the row under the report */
.pt-report-foot{display:flex;gap:10px;justify-content:center;margin-top:18px;flex-wrap:wrap}

/* consultant messages, over the report.
   A native <dialog>, so Escape closes it and focus is trapped without any of
   that being written by hand — and unlike the engine's modal it is closable
   by every route a reader will try. */
.pt-ann{width:min(560px,calc(100vw - 32px));max-height:min(680px,calc(100vh - 80px));padding:0;
  border:1px solid var(--border);border-radius:var(--r);background:var(--surface);color:var(--ink);
  box-shadow:var(--shadow);overflow:hidden}
.pt-ann::backdrop{background:rgba(16,36,58,.42)}
.pt-ann[open]{display:flex;flex-direction:column}

.pt-ann-head{display:flex;align-items:center;gap:12px;padding:16px 18px 14px;
  border-bottom:1px solid var(--border);background:var(--surface-2)}
.pt-ann-head h2{font-size:17px;flex:1;min-width:0}
.pt-ann-x{flex:none;width:30px;height:30px;border:0;border-radius:var(--r-sm);background:none;
  color:var(--muted);font-size:24px;line-height:1;cursor:pointer}
.pt-ann-x:hover{background:var(--border);color:var(--ink)}

.pt-ann-body{padding:4px 18px;overflow-y:auto;flex:1}
.pt-ann-msg{padding:13px 0;border-bottom:1px solid var(--border)}
.pt-ann-msg:last-child{border-bottom:0}
.pt-ann-msg-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
.pt-ann-when{color:var(--muted);font-size:12px}
.pt-ann-msg p{margin:5px 0 0;color:var(--ink-soft);font-size:14px}

.pt-ann-foot{padding:14px 18px;border-top:1px solid var(--border);background:var(--surface-2);text-align:right}
