/* CCAIR Behavioral Lab: participant app styles, shared by every study (with ../assets/study.css).
   Layout choices are documented in static/lab/README.md ("Participant UI"). */
.alert-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.alert-head h2 { margin: 0; }
.sev { font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.summary { font-size: 1.06em; margin: 8px 0 16px; }
/* Neutral container, identical in every AI condition. Stimulus: fixed colors and font, untouched by the lab's brand. */
.ai-box { font-family: var(--stim-font); border: 1px solid var(--stim-line); background: #f3f4f6; color: #1c2330; border-radius: 10px; padding: 14px 16px; margin: 16px 0; }
.ai-box .verdict { font-weight: 700; font-size: 1.06em; }
.ai-box .label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #6a5c66; }   /* the pre-rebrand light value, fixed so the stimulus does not change */
.ai-box p { margin: 6px 0 0; }
.evidence { border: 1px solid var(--stim-line); border-radius: 10px; margin: 16px 0; overflow: hidden; }
.tabs { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.tabs button { flex: 1 1 130px; min-height: 48px; background: var(--card); color: var(--text); border: 0; border-radius: 0; padding: 12px 8px; font-size: 15px; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-text); font-weight: 600; }
.panel-body { padding: 16px; min-height: 104px; }
.panel-body p { margin: 0; }
.panel-body .placeholder { color: var(--muted); }
.step { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 12px; }
.locked { opacity: .75; }
fieldset.q-group, div.q-group { min-width: 0; margin: 28px 0 8px; padding: 0; border: 0; border-left: 4px solid transparent; }
.q-group legend.q, .q-group label.q { display: block; padding: 0; margin: 0 0 10px; font-weight: 600; }
fieldset.q-group.missing, div.q-group.missing { border-left-color: var(--warn); padding-left: 12px; }
.checks { display: grid; gap: 8px; }
.option > span { flex: 1; }
.option.agree { margin-top: 16px; }
/* Labeled rating scales: one row on wide screens, stacked on phones. */
.likert { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.likert .scale-pt { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 4px; min-height: 64px; }
.likert .pt-num { font-weight: 600; flex: 0; }
.likert .pt-lab { font-size: 12.5px; line-height: 1.25; color: var(--muted); flex: 0; }
.likert:not(.labeled) .scale-pt { min-height: 48px; }
@media (max-width: 640px) {
  .likert { grid-template-columns: 1fr; }
  .likert .scale-pt { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 48px; padding: 10px 12px; }
  .likert .pt-num { min-width: 1.6em; }
  .likert .pt-lab { flex: 1 1 auto; font-size: 15px; color: var(--text); }
  .likert .pt-num { flex: 0 0 auto; }
}
/* Confidence: click-anywhere line, no handle until the participant chooses. */
.vas { padding: 18px 14px 8px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; touch-action: none; user-select: none; }
.vas-track { position: relative; height: 10px; border-radius: 5px; background: var(--status-bg); border: 1px solid var(--line-strong); }
.vas-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 5px; background: transparent; }
.vas.set .vas-fill { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.vas-thumb { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--accent); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--accent); }
.vas-ends { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 13px; color: var(--muted); }
.vas-val { font-size: 20px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: center; }
.vas[aria-disabled="true"] { cursor: default; }
.help { margin: 6px 0 0; }
.soft { background: var(--status-bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 16px; }
.soft p { margin: 0; }
/* Session progress across weeks. */
.tracker { display: flex; gap: 8px; list-style: none; padding: 0; margin: 4px 0 16px; }
.tracker li { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); transition: background-color 200ms var(--ease); }
.tracker li.done { background: var(--accent); border-color: var(--accent); }
.tracker li.now { border-color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.banner { background: var(--warn-bg); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: 12px; padding: 8px 12px; font-size: 14px; margin-bottom: 12px; }
input[type=text], input[type=email] { width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--card); color: var(--text); }
input.code { letter-spacing: 1px; text-transform: uppercase; }
label.field { display: block; font-size: 15px; font-weight: 600; margin: 4px 0 6px; }
.error { color: var(--error); font-size: 15px; margin-top: 10px; }
.q-error { color: var(--error); font-size: 15px; font-weight: 600; margin: 8px 0 0; }
.q-error.note { color: var(--warn); }
select { font: inherit; min-height: 50px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: var(--card); color: var(--text); }
.actions.split { justify-content: space-between; gap: 8px; flex-wrap: wrap; }
/* Vignettes: an item as plain text or as an email, optionally with an image. */
.vg-item { font-family: var(--stim-font); border: 1px solid var(--stim-line); background: #fff; color: #1c2330; border-radius: 10px; margin: 8px 0 16px; overflow: hidden; }
.vg-item .vg-body { padding: 16px; }
.vg-item .vg-body p { margin: 0 0 10px; }
.vg-item .vg-body p:last-child { margin-bottom: 0; }
.vg-item img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.vg-link { color: #1a56c4; text-decoration: underline; cursor: pointer; }
.statusbar.show { display: block; }

input[type=text].num { max-width: 200px; }
/* Survey logic and layout: hidden questions, group headings (an imported matrix is one question per row under one heading), descriptive text. */
.q-group[hidden], .q-groupwrap[hidden] { display: none; }
.q-groupwrap { margin: 28px 0 8px; }
.q-grouphead { font-weight: 600; margin: 0 0 4px; }
.q-groupwrap > .q-group { margin-top: 18px; }
.q-info { border-left-color: transparent; }
.q-info p { margin: 0 0 10px; }
input[type=text].line { max-width: 100%; }


/* ---------- multimodal studies (static/lab/engine/types/multimodal.js) ---------- */
.preview-ribbon { position: sticky; top: 0; z-index: 20; margin: -24px -16px 18px; padding: 10px 16px; text-align: center; font-size: .875rem;
  background: color-mix(in srgb, var(--steel) 92%, transparent); color: var(--steel-text); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); }
.mm-item p { margin: 0 0 12px; }
.mm-k-text { font-size: 1.0625rem; font-family: var(--stim-font); }   /* a text stimulus keeps its piloted font */
.mm-figure { font-family: var(--stim-font); margin: 8px 0 16px; border: 1px solid var(--stim-line); border-radius: 10px; overflow: hidden; background: #fff; }
.mm-figure img { display: block; width: 100%; height: auto; }
/* The player is neutral (the clip is the stimulus); only its controls use the lab's colors. */
.mm-media { margin: 8px 0 16px; padding: 16px; border: 1px solid var(--stim-line); border-radius: 14px; background: var(--card); }
.mm-media video { display: block; width: 100%; border-radius: 10px; background: #000; margin-bottom: 14px; }
.mm-controls { display: flex; align-items: center; gap: 14px; }
.mm-play { min-width: 112px; }
.mm-play::before { content: ""; width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.mm-play.playing::before { width: 10px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.mm-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--status-bg); border: 1px solid var(--line); overflow: hidden; }
.mm-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width 240ms linear; }
.mm-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .875rem; min-width: 7ch; text-align: right; }
.mm-left { margin: 8px 0 0; min-height: 1.2em; }
.mm-transcript { margin-top: 12px; font-size: .9375rem; }
.mm-transcript summary { cursor: pointer; color: var(--link); font-weight: 600; }
.mm-gate { display: flex; gap: 8px; align-items: center; }
.mm-gate::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
fieldset.mm-answers { border: 0; padding: 0; margin: 0; min-width: 0; transition: opacity 200ms var(--ease); }
fieldset.mm-answers[disabled] { opacity: .45; }
.mm-check { display: flex; gap: 14px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.mm-meter { flex: 1; min-width: 160px; height: 10px; border-radius: 99px; background: var(--status-bg); overflow: hidden; border: 1px solid var(--line); }
.mm-meter span { display: block; height: 100%; width: 0; background: var(--accent-2); transition: width 80ms linear; }
.mm-voice audio { width: 100%; margin-top: 10px; }
button.rec { background: var(--error); border-color: var(--error); color: var(--error-text); }
button.rec::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: mm-pulse 1.2s ease-in-out infinite; }
@keyframes mm-pulse { 50% { opacity: .35; } }

/* Mouse-tracked decision: answers in the top corners, Start at the bottom centre (MouseTracker layout). */
.mt-area { position: relative; height: clamp(280px, 46vh, 420px); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg); margin-top: 6px; touch-action: none; }
.mt-opt { position: absolute; top: 14px; width: min(30%, 220px); min-height: 64px; border-radius: 16px; background: var(--card); color: var(--text); border-color: var(--line-strong); box-shadow: var(--shadow); }
.mt-area[data-n="2"] .mt-opt:nth-of-type(1) { left: 14px; } .mt-area[data-n="2"] .mt-opt:nth-of-type(2) { right: 14px; }
.mt-area[data-n="3"] .mt-opt:nth-of-type(1) { left: 14px; } .mt-area[data-n="3"] .mt-opt:nth-of-type(2) { left: 50%; transform: translateX(-50%); } .mt-area[data-n="3"] .mt-opt:nth-of-type(3) { right: 14px; }
.mt-area[data-n="4"] .mt-opt { width: min(22%, 180px); } .mt-area[data-n="4"] .mt-opt:nth-of-type(1) { left: 14px; } .mt-area[data-n="4"] .mt-opt:nth-of-type(2) { left: 27%; } .mt-area[data-n="4"] .mt-opt:nth-of-type(3) { right: 27%; } .mt-area[data-n="4"] .mt-opt:nth-of-type(4) { right: 14px; }
.mt-area[data-n="3"] .mt-opt:nth-of-type(2):active:not([disabled]) { transform: translateX(-50%) scale(.97); }
.mt-opt[disabled] { opacity: .55; }
.mt-area.live .mt-opt { opacity: 1; border-color: var(--accent); }
.mt-area.live .mt-opt:hover { background: var(--accent-soft); }
/* The answer given: filled with the accent (5:1 or more against the unchosen cards in both schemes, WCAG 1.4.11), a
   ring in the text colour, and a check mark, so it does not rely on colour alone. It outranks the hover and disabled
   styles (the answer is final, so every option is disabled once chosen). No animation, so reduced motion is unaffected. */
.mt-area .mt-opt.chosen, .mt-area .mt-opt[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border: 2px solid var(--accent); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--text); opacity: 1 !important; font-weight: 700; }
.mt-area .mt-opt.chosen::before { content: "\2713\00a0" / ""; }
.mt-area.done .mt-opt:not(.chosen) { box-shadow: none; }
@media (forced-colors: active) {
  .mt-area .mt-opt.chosen { forced-color-adjust: none; background: Highlight; color: HighlightText; border: 3px solid CanvasText; box-shadow: none; }
}
.mt-start { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); min-width: 132px; }
.mt-start:active:not([disabled]) { transform: translateX(-50%) scale(.97); }
.mt-hint { position: absolute; left: 0; right: 0; bottom: 78px; text-align: center; margin: 0; }
.mt-area.done { border-style: solid; border-color: var(--line); }

/* The softphone: an experimental stimulus (Vishing Study 2 and the call templates). Its colors are fixed and it keeps the
   system font and shadow it was piloted with, so the GSU rebrand of the lab chrome does not change it. Do not restyle. */
.phone { --shadow-lift: 0 2px 4px rgba(59, 42, 74, .08), 0 16px 40px rgba(59, 42, 74, .12); font-family: var(--stim-font); max-width: 380px; margin: 4px auto 20px; padding: 26px 22px 22px; border-radius: 34px; background: linear-gradient(180deg, #3b2a4a, #2a1f35); color: #fff7ef; box-shadow: var(--shadow-lift); text-align: center; }
.phone-top { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone .avatar { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2.1rem; font-weight: 700; background: #f6c9a8; color: #3b2a4a; }
.phone .caller strong { display: block; font-size: 1.4rem; letter-spacing: -.01em; }
.phone .caller span { display: block; opacity: .82; font-variant-numeric: tabular-nums; }
.phone-status { margin: 10px 0 18px; opacity: .9; font-variant-numeric: tabular-nums; }
.phone.ringing .avatar { animation: ph-ring 1.6s ease-in-out infinite; }
@keyframes ph-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(246, 201, 168, .55); } 50% { box-shadow: 0 0 0 18px rgba(246, 201, 168, 0); } }
.phone-btns { display: flex; justify-content: center; gap: 28px; margin-top: 8px; }
.phone-btns.small { gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.phone button.answer, .phone button.decline { min-width: 120px; border-radius: 999px; }
.phone button.answer { background: #3f9a63; border-color: #3f9a63; color: #fff; }
.phone button.answer:hover:not([disabled]) { background: #348553; border-color: #348553; }
.phone button.decline { background: #d4473a; border-color: #d4473a; color: #fff; }
.phone button.decline:hover:not([disabled]) { background: #b93a2f; border-color: #b93a2f; }
.phone button.secondary { background: rgba(255, 247, 239, .12); color: #fff7ef; border-color: rgba(255, 247, 239, .35); }
.phone button.secondary:hover:not([disabled]) { background: rgba(255, 247, 239, .22); color: #fff7ef; border-color: rgba(255, 247, 239, .6); }
.phone .check { display: inline-flex; gap: 6px; align-items: center; font-size: .875rem; }
.phone :focus-visible { outline-color: #f6c9a8; }
.rec-note { font-size: .8125rem; opacity: .9; display: flex; justify-content: center; align-items: center; gap: 6px; margin: -8px 0 12px; }
.rec-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff7a6b; animation: mm-pulse 1.6s ease-in-out infinite; }
.phone-talk { display: grid; gap: 10px; margin-top: 6px; }
.phone button.talk { min-height: 64px; font-size: 1.0625rem; background: #f6c9a8; color: #3b2a4a; border-color: #f6c9a8; }
.phone button.talk:hover:not([disabled]) { background: #f9d8c0; border-color: #f9d8c0; }
.phone button.talk.rec { background: #ff7a6b; border-color: #ff7a6b; color: #2a1f35; }
.phone .interim { color: #f3e3d6; min-height: 1.3em; margin: 0; font-size: .9375rem; }
.phone .typeform { text-align: left; font-size: .875rem; }
.phone .typeform label { display: block; margin-bottom: 6px; opacity: .85; }
.phone .typeform .row { display: flex; gap: 8px; }
.phone .typeform input { flex: 1; min-height: 46px; background: rgba(255, 247, 239, .1); color: #fff7ef; border-color: rgba(255, 247, 239, .35); }
.phone .typeform input::placeholder { color: rgba(255, 247, 239, .6); }
.captions { text-align: left; max-height: 180px; overflow-y: auto; background: rgba(0, 0, 0, .22); border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; font-size: .9375rem; }
.captions p { margin: 0 0 6px; } .captions p.you { color: #f6c9a8; }
.phone.ended { padding-bottom: 18px; }
.phone .directory { list-style: none; padding: 0; margin: 10px 0 0; text-align: left; display: grid; gap: 8px; }
.phone .directory li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(255, 247, 239, .08); border-radius: 14px; padding: 10px 12px; }
.phone .directory .muted { color: #f3e3d6; }
.phone h3 { margin: 18px 0 4px; color: #fff7ef; }
.phone #ph-dialstate { color: #f3e3d6; margin-top: 10px; }
@media (max-width: 480px) { .mt-opt { width: 44%; } .mt-area[data-n="3"] .mt-opt, .mt-area[data-n="4"] .mt-opt { position: static; transform: none !important; width: 100%; margin: 8px 0 0; } .mt-area[data-n="3"], .mt-area[data-n="4"] { height: auto; padding: 8px 14px 80px; } }
@media (prefers-reduced-motion: reduce) { .phone.ringing .avatar { animation: none; box-shadow: 0 0 0 6px rgba(246, 201, 168, .4); } }

/* ---------- Persona card, My info, authenticator, directory search, training clips, live trials ---------- */
.mm-persona { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card, var(--bg)); padding: 16px 18px; margin: 12px 0; }
.mm-persona h3 { margin: 0 0 6px; }
.mm-persona dl { display: grid; gap: 6px; margin: 10px 0 0; }
.mm-persona dl > div { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.mm-persona dt { color: var(--muted); font-size: .9375rem; }
.mm-persona dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mm-myinfo { position: fixed; right: 16px; bottom: 16px; z-index: 20; border-radius: 999px; box-shadow: var(--shadow-lift); }
.mm-dialog { max-width: min(560px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); padding: 18px; }
.mm-dialog::backdrop { background: rgba(0, 15, 45, .45); }
.mm-auth { text-align: left; background: rgba(255, 247, 239, .1); border-radius: 14px; padding: 10px 14px; margin: 0 0 14px; }
.mm-auth h3 { font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 4px; opacity: .85; }
.mm-auth ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mm-auth li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mm-auth strong { font-size: 1.35rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.mm-auth p { margin: 0; }
.phone .muted, .phone .mm-auth .muted { color: #e8d6c8; opacity: .9; }
.mm-down { margin: 6px 0; padding: 8px 10px; border-radius: 6px; background: rgba(255, 196, 120, .14); border: 1px solid rgba(255, 196, 120, .45); }
.phone input[type="search"], .phone input[type="text"], .phone input[inputmode="tel"] { background: rgba(255, 247, 239, .1); color: #fff7ef; border: 1px solid rgba(255, 247, 239, .35); border-radius: 10px; padding: 6px 10px; }
.phone input::placeholder { color: #d8c4b6; }
.phone .directory li { background: rgba(255, 247, 239, .07); border-radius: 12px; padding: 8px 10px; margin: 6px 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; list-style: none; }
.phone .directory { padding: 0; }
.phone #mm-dstate { color: #fff7ef; }
#ph-dirbox-live, #ph-dirbox { text-align: left; margin-top: 14px; }
input[type="search"]#mm-dsearch { width: 100%; margin: 6px 0 8px; }
.mm-dialpad { gap: 8px; align-items: center; margin: 10px 0 4px; flex-wrap: wrap; }
.mm-dialpad input { width: 10em; }
.mm-clip { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.mm-clip figcaption { font-weight: 600; margin-bottom: 6px; }
.mm-clip audio { width: 100%; }
.mm-pdial { border: 1px dashed var(--line-strong, var(--line)); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.mm-pdial .directory { max-height: 260px; overflow: auto; list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.mm-pdial .directory li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.mm-pdial input[type="search"] { width: 100%; padding: 6px 10px; border: 1px solid var(--line-strong, var(--line)); border-radius: 8px; background: transparent; color: inherit; }
.mm-slider { margin: 14px 0; }
.mm-slider input[type="range"] { width: 100%; }
.mm-slider .row { display: flex; justify-content: space-between; font-size: .8125rem; }
.mm-debrief { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 10px 0; }
.mm-debrief summary { cursor: pointer; font-weight: 600; }
.debrief { margin-top: 18px; }
/* Hand-off to a recruitment panel: the code to copy and the link back (engine/participant.js handoff()). */
.handoff-code { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.handoff-code code { font-size: 1.4em; letter-spacing: 2px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 10px; user-select: all; }
button.small { min-height: 48px; padding: 8px 16px; font-size: .95em; }
button.linklike { background: none; border: 0; color: var(--link, var(--text)); text-decoration: underline; min-height: 48px; padding: 0 4px; font: inherit; }
button.linklike:hover:not([disabled]) { background: none; color: var(--text); }
.stop-note { margin-top: 24px; }
/* Full screen left during a session (engine/participant.js fsExited): a bar with the way back. */
.fs-back { position: sticky; top: 0; z-index: 20; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 16px; background: var(--warn-bg, #fff4d6); color: var(--text); border-bottom: 1px solid var(--line-strong); }
meter#micm { width: 100%; height: 24px; }
/* The data-quality honeypot (engine/participant.js honeypotHtml): off screen, hidden from screen readers, out of the tab order. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Ranking (engine/participant.js rankHtml): one row per option with Up and Down buttons. */
.rank-list { list-style: none; padding: 0; margin: 8px 0; counter-reset: rank; }
.rank-list li::before { counter-increment: rank; content: counter(rank) "."; font-weight: 600; min-width: 1.6em; }
.rank-label { flex: 1; }
.rank-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 10px; margin: 6px 0; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--card); }
.rank-btns { display: flex; gap: 8px; flex-shrink: 0; }
.rank.set .rank-list li { border-color: var(--accent); }
/* Matrix (matrixHtml): each statement is its own fieldset with the shared answer options. */
.matrix .mx-row { margin: 14px 0 0; padding: 0; border: 0; }
.matrix .mx-row > legend { font-weight: 500; padding: 0; margin-bottom: 6px; }
/* Reaction-time task (engine/types/reaction.js): a neutral panel, so ink colours look the same in light and dark mode. */
.rt-stage { font-family: var(--stim-font); display: flex; align-items: center; justify-content: center; min-height: 220px; margin: 8px 0 16px; border-radius: var(--radius-sm); background: #f4f4f4; color: #1d1d1f; }
.rt-fix { font-size: 48px; font-weight: 300; }
.rt-word { font-size: 56px; font-weight: 800; letter-spacing: .04em; }
.rt-arrows { font-size: 56px; letter-spacing: .1em; }
.rt-fb { font-size: 24px; font-weight: 600; }
.rt-keys { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.rt-keys .rt-key { min-height: 48px; min-width: 110px; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 6px; font: 600 .9em ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.rt-legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.rt-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin: 0 6px -2px 4px; }
