/* Student-only theme. Admin and API docs keep their existing presentation. */
.student-ui {
  --bg: #faf9f6; --bg-soft: #f4f3ee; --surface-3: #eeede7;
  --text: #242622; --text-2: #454a46; --muted: #626761; --label: #5e645e;
  --line: #dedfd7; --line-soft: #eaeae4; --accent: #3157de;
  --accent-hover: #2444bd; --accent-ink: #2848be; --accent-soft: #edf1ff;
  --radius: 12px; --radius-sm: 9px; --shadow: none; --shadow-sm: none;
  font-size: 16px; line-height: 1.6; background: var(--bg);
}
.student-ui .shell { max-width: 1080px; padding: 28px 32px 32px; }
.student-ui .topbar { padding-bottom: 36px; }
.student-ui .brand-mark { box-shadow: none; border-radius: 10px; }
.student-ui .brand-sub { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.student-ui .brand-name { letter-spacing: -.04em; font-size: 19px; }
.student-ui h1 { font-size: clamp(30px, 4.7vw, 52px); line-height: 1.08; letter-spacing: -.045em; font-weight: 750; margin: 0 0 20px; }
.student-ui h2 { letter-spacing: -.025em; line-height: 1.25; }
.student-ui .lead { color: var(--text-2); font-size: 17px; max-width: 52ch; }
.student-ui .eyebrow, .student-ui .mode-eyebrow { font-size: 13px; font-weight: 650; text-transform: none; letter-spacing: 0; color: var(--accent-ink); margin: 0 0 14px; }
.student-ui .welcome-hero { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: 20px; margin: 8px 0 32px; }
.student-ui .welcome-copy { padding: 12px 0; }
.student-ui .mentor-welcome { display: block; width: 100%; max-width: 340px; height: auto; justify-self: end; mix-blend-mode: multiply; }
.student-ui .practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.student-ui .practice-option { padding: 28px; border-radius: 14px; display: flex; flex-direction: column; background: #eef2fc; border: 1px solid #d9e1f5; }
.student-ui .legend-option { background: #f0f3eb; border-color: #dbe2d2; }
.student-ui .option-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #4a5572; font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.student-ui .legend-option .option-meta { color: #485b43; }
.student-ui .practice-option h2 { font-size: clamp(27px, 3.1vw, 35px); line-height: 1.12; margin: 0 0 16px; }
.student-ui .practice-option p { margin: 0 0 16px; color: var(--text-2); }
.student-ui .practice-option .option-outcome { font-size: 14px; margin-bottom: 24px; }
.student-ui .practice-option .btn { margin-top: auto; justify-content: space-between; }
.student-ui .practice-note { font-size: 13px; color: var(--muted); margin: 22px 0; }
.student-ui .btn { border-radius: 8px; min-height: 48px; padding: 11px 18px; font-size: 15px; box-shadow: none; white-space: normal; text-align: center; }
.student-ui .btn-primary { background: var(--accent); border-color: var(--accent); }
.student-ui .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.student-ui .btn-ghost { background: transparent; border-color: var(--line); color: var(--text-2); }
.student-ui .btn-ghost:hover { background: var(--bg-soft); }
.student-ui .card { box-shadow: none; padding: 28px; border: 1px solid var(--line); margin-bottom: 20px; }
.student-ui .card-inline { background: var(--bg-soft); border: 0; border-radius: 8px; }
.student-ui .mode-switch { width: fit-content; max-width: 100%; padding: 0; border: none; background: transparent; margin-bottom: 28px; gap: 8px; }
.student-ui .mode-switch a { flex: 0 0 auto; justify-content: center; border-radius: 7px; padding: 9px 13px; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.student-ui .mode-switch a[aria-current='page'] { color: var(--accent-ink); background: var(--accent-soft); box-shadow: none; }
.student-ui .hero { padding: 0 0 24px; }
.student-ui .hero h1 { font-size: clamp(30px, 4vw, 40px); }
.student-ui .setup-form { max-width: 780px; }
.student-ui .form-section { border: 0; margin: 0; padding: 0; min-width: 0; }
.student-ui .form-section + .form-section { border-top: 1px solid var(--line-soft); padding-top: 24px; }
.student-ui .form-section legend { font-size: 19px; font-weight: 650; letter-spacing: -.025em; padding: 0 0 16px; }
.student-ui .identity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.student-ui .field label { font-size: 14px; font-weight: 600; }
.student-ui input, .student-ui select, .student-ui textarea { border-radius: 8px; font-size: 16px; border-color: #cdd2c9; color: var(--text); }
.student-ui input::placeholder, .student-ui textarea::placeholder { color: #73786f; }
.student-ui .hint { font-size: 13px; color: var(--muted); }
.student-ui .file-field { background: var(--bg-soft); padding: 20px; border-radius: 9px; border: 1px dashed #aeb8a4; }
.student-ui input[type='file'] { background: transparent; padding: 8px 0; border: 0; max-width: 100%; }
.student-ui input[type='file']::file-selector-button { border: 1px solid #bbc4b2; border-radius: 7px; padding: 10px 12px; background: #fff; color: var(--text); cursor: pointer; margin-right: 10px; }
.student-ui .file-name { font-size: 14px; margin: 4px 0; overflow-wrap: anywhere; }
.student-ui .mentor-state { display: flex; align-items: center; gap: 24px; margin: 20px 0; }
.student-ui .mentor-state img { width: 144px; height: 144px; object-fit: contain; mix-blend-mode: multiply; flex: 0 0 auto; }
.student-ui .mentor-state h2 { margin: 0 0 10px; font-size: 23px; }
.student-ui .mentor-state p { color: var(--muted); margin: 0; }
.student-ui .question-card, .student-ui #mock-session { max-width: 860px; padding: 32px; }
.student-ui .question-text, .student-ui #mock-question { font-size: clamp(23px, 3vw, 30px); font-weight: 600; line-height: 1.4; letter-spacing: -.02em; margin: 22px 0 28px; }
.student-ui .badge, .student-ui .state-pill { text-transform: none; letter-spacing: 0; font-size: 13px; background: var(--bg-soft); border: 0; color: var(--text-2); }
.student-ui .state-pill[data-state='recording'] { background: #fdecee; color: #a82e35; }
.student-ui .stage-row { margin: 16px 0; }
.student-ui .progress-track { height: 4px; background: var(--line-soft); }
.student-ui .mic-check { background: var(--bg-soft); border: 0; }
.student-ui #mock-finish { margin-top: 24px; }
.student-ui #mock-progress:empty { display: none; }
.student-ui .report-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.student-ui .report-intro h1 { font-size: 38px; margin-bottom: 12px; }
.student-ui .report-intro img { width: 144px; height: 144px; object-fit: contain; mix-blend-mode: multiply; }
.student-ui #mock-report { background: transparent; border: 0; padding: 0; }
.student-ui #mock-report-content > .card-inline { background: #fff; padding: 24px; border-top: 1px solid var(--line); border-radius: 0; margin: 24px 0; }
.student-ui #mock-report-content p { white-space: pre-line; overflow-wrap: anywhere; }
.student-ui #mock-report-content h4 { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.student-ui .qa-block-label, .student-ui .kv-label { text-transform: none; letter-spacing: 0; }
.student-ui .qa { border-radius: 8px; box-shadow: none; }
.student-ui .qa-head { background: var(--bg-soft); }
.student-ui .tag { border-radius: 6px; }
.student-ui .footer { text-align: left; color: var(--muted); border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; }
.student-ui audio { max-width: 100%; }
.student-ui .banner { overflow-wrap: anywhere; }
.student-ui :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) {
  .student-ui .shell { padding: 20px 18px 24px; }
  .student-ui .topbar { padding-bottom: 24px; }
  .student-ui .welcome-hero { grid-template-columns: 1fr; gap: 0; margin-top: 0; position: relative; }
  .student-ui .welcome-copy { padding: 0; }
  .student-ui .welcome-hero h1 { font-size: 36px; margin-top: 34px; }
  .student-ui .mentor-welcome { width: 76px; position: absolute; top: -6px; right: 0; }
  .student-ui .practice-grid, .student-ui .identity-fields { grid-template-columns: 1fr; gap: 18px; }
  .student-ui .practice-option { padding: 24px; }
  .student-ui .practice-option h2 { font-size: 29px; }
  .student-ui .card, .student-ui .question-card, .student-ui #mock-session { padding: 20px; }
  .student-ui .mode-switch { display: flex; width: 100%; }
  .student-ui .mode-switch a { flex: 1; padding: 8px; font-size: 13px; }
  .student-ui .mentor-state { gap: 12px; align-items: flex-start; }
  .student-ui .mentor-state img { width: 80px; height: 80px; }
  .student-ui .mentor-state h2 { font-size: 20px; }
  .student-ui .report-intro img { width: 88px; height: 88px; }
  .student-ui .report-intro h1 { font-size: 30px; }
  .student-ui .setup-form > .btn { width: 100%; }
  .student-ui .file-field { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .student-ui *, .student-ui *::before, .student-ui *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.student-ui .coaching-card .qa-text { white-space: pre-wrap; overflow-wrap: anywhere; }
