/* Visitor study pages (consent, study, thank you); loaded after app.css. */

[hidden] { display: none !important; }

.study-page {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 2rem 1rem;
}

.study-card {
  width: min(42rem, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.study-card h1 { font-size: 1.4rem; margin: 0; }

.consent-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
  max-height: 50vh;
  overflow-y: auto;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.consent-form { display: flex; flex-direction: column; gap: 0.75rem; }
.check { display: flex; align-items: flex-start; gap: 0.5rem; line-height: 1.4; }
.check input { margin-top: 0.2rem; padding: 0; }

.study-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.code-line { font-size: 1.1rem; margin: 0; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3rem; letter-spacing: 0.05em; user-select: all; }

.study-layout { max-width: 1200px; margin: 0 auto; }
.study-step {
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.study-step h2 { font-size: 1.1rem; margin: 0; }
.study-step p { margin: 0; }

.prompt-box { align-items: center; text-align: center; }
.prompt-step { font-size: 0.9rem; color: var(--muted); }
.prompt-text { font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 700; overflow-wrap: anywhere; }
.prompt-count { font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); }

/* Until free use the camera takes the whole width. */
.study-layout .stage-split.single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
