/* Participant app: phone-first; on wide screens a readable centred column with larger targets, never a stretched phone UI. */
.participant { min-height: 100dvh; padding: 0 1rem calc(2rem + env(safe-area-inset-bottom)); }
.brand-bar { display: flex; justify-content: space-between; align-items: center; max-width: 44rem; margin: 0 auto; padding: 1rem 0; color: var(--brand-primary); font-weight: 800; }
.brand-bar .session { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.brand-bar .session-name { color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-bar .code { font-family: ui-monospace, Consolas, monospace; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.1rem 0.5rem; color: var(--ink); }
.participant .card { max-width: 44rem; margin: 0 auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.2rem; }
.participant h1 { font-size: clamp(1.35rem, 4.5vw, 1.9rem); }
.participant .stem { font-size: clamp(1.25rem, 4vw, 1.7rem); }
.options { display: grid; gap: 0.7rem; margin: 1.2rem 0 0.8rem; }
.option { display: grid; grid-template-columns: 1fr; gap: 0.8rem; align-items: start; text-align: left; padding: 0.9rem 1rem; min-height: 56px; border: 2px solid var(--line); border-radius: 12px; background: #fff; transition: border-color 150ms, background 150ms; }
.option:hover:not(:disabled) { border-color: color-mix(in srgb, var(--brand-primary) 50%, white); }
.option.is-selected { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 8%, white); }
.option-body { display: grid; gap: 0.2rem; }
/* Phone (owner, 2026-10-19): question boxed like the answers; labels in small caps in the level's colour (teal to purple). */
.question-box { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 1rem 1.1rem; }
.question-box .stem { margin: 0; }
.option { --level: #009fb7; }
.option.level-2 { --level: #2e8fb0; } .option.level-3 { --level: #5c7fa8; } .option.level-4 { --level: #7a6a9c; } .option.level-5 { --level: #8c569f; }
.option-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--level); }
.option-body span { color: var(--ink-soft); font-size: 0.95rem; }
.status { color: var(--ink-soft); font-size: 0.92rem; }
.keys-hint { display: none; }
.recorded { padding: 0.8rem 1rem; border-radius: 10px; background: #f3f6f9; }
.personal { margin: 1rem 0 1.25rem; display: grid; gap: 0.9rem; }
.personal .headline { font-size: 1.1rem; font-weight: 600; }
.participant .bar, .participant .score { grid-template-columns: minmax(6rem, 10rem) 1fr 2.4rem; }
.participant .score { grid-template-columns: minmax(6rem, 10rem) 1fr minmax(2.4rem, auto); }

@media (min-width: 48rem) {
  .participant { padding-top: 2rem; }
  .participant .card { padding: 2.2rem 2.4rem; }
  .option { padding: 1.1rem 1.2rem; }
  .keys-hint { display: inline; }
}

/* Mirror of the main screen: the Presentation View stage at device width. */
.mirror { max-width: 44rem; margin: 0 auto 1rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.participant .mirror .stage { width: 100%; }
.participant .mirror .slide { animation: none; }

/* Explicit submit (owner request): choose, then Submit. */
.submit-row { display: grid; gap: 0.5rem; margin-top: 0.4rem; }
.submit-row .submit { min-height: 52px; font-size: 1.05rem; }
@media (min-width: 48rem) { .submit-row { grid-template-columns: auto 1fr; align-items: center; } .submit-row .submit { min-width: 12rem; } }

/* After submitting: the chosen answer pops out above the faded alternatives. */
.option { position: relative; transition: border-color 150ms, background 150ms, transform 200ms ease, box-shadow 200ms ease, opacity 200ms; }
.options.is-locked .option:disabled { opacity: 0.4; }
.options.is-locked .option.is-submitted {
  opacity: 1; transform: scale(1.03); z-index: 1;
  border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 10%, white);
  box-shadow: 0 10px 28px rgb(16 24 40 / 0.18);
}
.your-answer { position: absolute; top: -0.7rem; right: 0.9rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--ok); color: #fff; font-size: 0.78rem; font-weight: 700; }
.submit-row .submit.is-done:disabled { opacity: 1; background: var(--ok); border-color: var(--ok); cursor: default; }
@media (prefers-reduced-motion: reduce) { .options.is-locked .option.is-submitted { transform: none; } }
/* Reopened question (A36): Change answer unlocks the options; Keep my answer leaves them as submitted. */
.submit-row .change-answer { min-height: 44px; justify-self: start; }
.submit-row .keep-answer { justify-self: start; }

/* Device slide mirror (DECK-1): the slide picture, full width and centred; question slides use the answer card instead. */
.slide-mirror { max-width: 44rem; margin: 0 auto; display: grid; gap: 0.75rem; }
.slide-frame { margin: 0; position: relative; aspect-ratio: 16 / 9; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; }
.slide-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.slide-image.is-new { animation: slide-fade 150ms ease-out; }
@keyframes slide-fade { from { opacity: 0.2; } to { opacity: 1; } }
.slide-frame.is-loading::after {
  content: ''; position: absolute; right: 0.75rem; bottom: 0.75rem; width: 1.25rem; height: 1.25rem;
  border: 3px solid var(--line); border-top-color: var(--brand-primary); border-radius: 50%; opacity: 0;
  animation: slide-spin 0.8s linear infinite, slide-reveal 0s linear 1s forwards;
}
@keyframes slide-spin { to { transform: rotate(360deg); } }
@keyframes slide-reveal { to { opacity: 1; } }
.slide-mirror.is-zoomed .slide-frame { position: fixed; inset: 0; z-index: 50; border-radius: 0; aspect-ratio: auto; overflow: auto; touch-action: pinch-zoom; cursor: zoom-out; background: #000; }
.slide-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: 0.6rem; }
@media (min-width: 900px) {
  .slide-mirror { max-width: min(96vw, 1100px); }
  .slide-frame { max-height: calc(100vh - 6rem); } /* no page scroll on short landscape screens (spec §4) */
}

/* Lens results on the phone (owner, 2026-10-22): the projector's spider chart, full card width. */
.results-card .spider-chart { display: block; width: 100%; height: auto; }

/* Profile form (REG-3, A37): required then optional sections; two columns on wide screens, errors under each field.
   Colours follow the Snapshot-Assessment design: teal components, purple only for errors (owner, 2026-10-28). */
.participant .screen-email, .participant .screen-register { --form-teal: #009fb7; --form-error: #8c569f; }
.participant .screen-register { max-width: 57.5rem; }
.participant:has(.screen-register) .brand-bar { max-width: 57.5rem; }
.participant :is(.screen-email, .screen-register) .eyebrow,
.participant :is(.screen-email, .screen-register) .required,
.participant :is(.screen-email, .screen-register) button.link { color: var(--form-teal); }
.participant .required { font-weight: 700; }
.participant :is(.screen-email, .screen-register) button.primary { background: var(--form-teal); border-color: var(--form-teal); }
.participant :is(.screen-email, .screen-register) input[type="checkbox"] { accent-color: var(--form-teal); width: 1.1rem; height: 1.1rem; }
/* Required and still empty: a light teal border and tint, as in the design. */
.participant :is(.screen-email, .screen-register) .field :is(input, select):required:invalid:not([aria-invalid="true"], :focus) {
  border-color: color-mix(in srgb, var(--form-teal) 40%, white); background: color-mix(in srgb, var(--form-teal) 3%, white);
}
/* Focus: a teal ring drawn inside the border, so a field never looks bigger when focused. */
.participant :is(.screen-email, .screen-register) :focus-visible { outline-color: var(--form-teal); }
.participant :is(.screen-email, .screen-register) .field :is(input, select):focus:not([aria-invalid="true"]) {
  outline: none; border-color: var(--form-teal); box-shadow: inset 0 0 0 1px var(--form-teal);
}
.participant .field-error { margin: 0; min-height: 0; color: var(--form-error, #8c569f); font-size: 0.85rem; font-weight: 400; }
.participant .field-error:empty { display: none; }
.participant .field [aria-invalid="true"] { border-color: var(--form-error, #8c569f); background: #fff; }
.participant .field [aria-invalid="true"]:focus { outline: none; border-color: var(--form-error, #8c569f); box-shadow: inset 0 0 0 1px var(--form-error, #8c569f); }
.profile-form .form-section { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 1rem; margin-top: 0.6rem; }
.profile-form .form-section h2 { font-size: 1.05rem; margin: 0; }
.profile-form .form-section .hint { margin: 0; }
.profile-form .field-grid { display: grid; gap: 1rem; align-items: start; } /* a neighbour's error never stretches a field */
.profile-form .field select { appearance: auto; width: 100%; }
@media (min-width: 48rem) {
  .profile-form .field-grid { grid-template-columns: 1fr 1fr; column-gap: 1.6rem; }
  .profile-form .span-all { grid-column: 1 / -1; }
}
