/* Step strip on top of the camera test pages (/tests/*): back to the portal, which step this is, the next one. */
.oneiros-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 24px; background: #050a18;
  border-bottom: 2px solid #fc3d21; font: 500 15px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; }
.oneiros-steps a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 4px; color: #e9effd; text-decoration: none; }
.oneiros-steps a:focus-visible { outline: 3px solid #7cb2ff; outline-offset: 2px; }
.oneiros-steps .back { border: 1px solid #2b3a63; }
.oneiros-steps .back:hover { border-color: #7cb2ff; }
.oneiros-steps .where { color: #b3c0de; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.oneiros-steps .where b { color: #e9effd; }
.oneiros-steps .next { margin-left: auto; background: #fc3d21; color: #0a1020; font-weight: 700; }
.oneiros-steps .next:hover { background: #ff5b40; }
@media (max-width: 600px) { .oneiros-steps { padding: 8px 12px; } .oneiros-steps .next { margin-left: 0; } }

/* ONEIROS: on this site the person ID, session ID and backend are filled in automatically (this browser's ID,
   this site as the backend), so their setup fields are not shown. The values still go with every message. */
.setup label:has(> #person), .setup label:has(> #session), .setup #advanced { display: none; }
/* Results: the measurement names are spelled out in full, so let them wrap inside the panel. */
#compare th, #compare td { white-space: normal; overflow-wrap: anywhere; }
#compare thead th, #compare td { white-space: nowrap; }
#compare tbody tr:last-child td { white-space: normal; }
.head-right button.link, #helpBtn { white-space: nowrap; }
/* Heart-rate and blink pages have no log panel: at medium widths let the results use the full row. */
@media (min-width: 761px) and (max-width: 1200px) { main:not(:has(.log)) { grid-template-areas: "setup stage" "results results"; } }
@media (max-width: 760px) {
  header { flex-wrap: wrap; }
  header .head-right { flex-wrap: wrap; min-width: 0; max-width: 100%; }
  header #status { white-space: normal; max-width: 100%; }
}
/* Phones: the setup panel's mode switch (a fieldset) and long select options must not widen the page. */
main > * { min-width: 0; }
.setup fieldset { min-width: 0; }
.setup select, .setup input { max-width: 100%; min-width: 0; }
#trialTable thead th { white-space: normal; vertical-align: bottom; }
#trialTable td .chip { white-space: normal; }
#trialTable { display: block; max-width: 100%; overflow-x: auto; }   /* five columns in a 300px panel: scroll inside it, never the page */
