/* Interrogami (public/js/oral.js): the whole screen, Chrono's orb in the
   middle and almost nothing else -- a clock, the mic, a way to stop. */
html.oral-open, html.oral-open body { overflow: hidden; }

.oral {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; flex-direction: column;
  background:
    radial-gradient(60rem 40rem at 50% 40%, color-mix(in srgb, var(--zeno-accent, #C8962E) 9%, transparent), transparent 70%),
    var(--bg);
  color: var(--text);
  opacity: 0; transform: scale(0.985);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.oral.is-in { opacity: 1; transform: none; }

.oral-top { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem 0; }
.oral-where { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.oral-where b { font-size: 0.75rem; font-weight: 650; color: var(--text-muted); }
.oral-where span { font-size: 0.875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oral-clock {
  flex: none; padding: 0.3125rem 0.75rem; border-radius: 62.4375rem;
  font-size: 0.875rem; font-weight: 650; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.oral-clock.is-over { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.oral-x {
  flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); cursor: pointer;
}
.oral-x:hover { background: color-mix(in srgb, var(--text) 12%, transparent); }

.oral-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.oral-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; padding: 1rem 1.25rem; text-align: center; }

/* ── The orb ─────────────────────────────────────────────────────────── */
.oral-orb { --amp: 0; position: relative; flex: none; width: 11rem; height: 11rem; display: grid; place-items: center; }
.oral-orb > span { position: absolute; border-radius: 50%; }
.oral-orb-core {
  width: 6.5rem; height: 6.5rem;
  background: radial-gradient(circle at 35% 30%, #FFF9E6 0%, #FDE68A 38%, var(--zeno-accent, #C8962E) 62%, #8B6914 88%);
  box-shadow: inset 0 -0.25rem 0.75rem rgba(139,105,20,0.35), 0 0.5rem 2rem rgba(200,150,46,0.35);
  transform: scale(calc(1 + var(--amp) * 0.24));
  animation: oralMorph 7s ease-in-out infinite;
}
.oral-orb-glow {
  width: 11rem; height: 11rem;
  background: radial-gradient(circle, rgba(253,230,138,0.55), rgba(253,230,138,0) 65%);
  opacity: calc(0.3 + var(--amp) * 0.7);
  transform: scale(calc(0.85 + var(--amp) * 0.4));
}
.oral-orb-ring { width: 8.5rem; height: 8.5rem; border: 1.5px solid rgba(200,150,46,0.3); opacity: 0; transition: opacity 0.3s ease; }
.oral-orb.is-idle .oral-orb-core { animation: oralMorph 7s ease-in-out infinite, orbBreathe 2.6s ease-in-out infinite; }
/* The student is talking: a ring that listens. */
.oral-orb.is-hearing .oral-orb-ring { opacity: 1; transform: scale(calc(1 + var(--amp) * 0.35)); }
.oral-orb.is-thinking .oral-orb-ring {
  opacity: 1; border-color: transparent; border-top-color: var(--zeno-accent, #C8962E); border-right-color: rgba(200,150,46,0.35);
  animation: orbSpin 1.1s linear infinite;
}
.oral-orb.is-thinking .oral-orb-core { transform: scale(0.92); }
@keyframes oralMorph {
  0%, 100% { border-radius: 42% 58% 48% 52% / 52% 46% 54% 48%; }
  50% { border-radius: 55% 45% 52% 48% / 45% 55% 46% 54%; }
}

/* ── Start ───────────────────────────────────────────────────────────── */
.oral-setup {
  width: 100%; max-width: 24rem; margin: auto; padding: 1rem 1rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
}
.oral-setup .oral-orb { width: 9rem; height: 9rem; margin-bottom: -0.75rem; }
.oral-h { margin: 0; font-size: 1.625rem; font-weight: 750; letter-spacing: -0.3px; line-height: 1.2; }
.oral-mins {
  display: inline-flex; padding: 0.1875rem; border-radius: 62.4375rem;
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.oral-min {
  padding: 0.4375rem 1rem; border: 0; border-radius: 62.4375rem; background: none; cursor: pointer;
  font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums;
  transition: background 0.15s ease, color 0.15s ease;
}
.oral-min.is-on { color: var(--text); background: var(--surface); box-shadow: 0 1px 0.25rem rgba(0,0,0,0.08); }
.oral-refs { justify-content: center; }
.oral-go { margin-top: 0.25rem; }
.oral-ai, .or-ai { margin: 0; font-size: 0.6875rem; line-height: 1.45; color: var(--text-dim); text-align: center; }
.or-ai { width: 100%; margin-bottom: 0.625rem; }
.oral-hint { margin: -0.375rem 0 0; font-size: 0.8125rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.oral-last { font-size: 0.8125rem; }

/* The test's references, added right here: an oral or a lesson out loud is
   on them. Without enough, the start waits and says what is missing. */
.oral-need { margin: 0; max-width: 21rem; font-size: 0.9375rem; line-height: 1.5; color: var(--text-muted); }
.oral-add { width: 100%; display: flex; flex-direction: column; gap: 0.5rem; }
.oral-add-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.oral-add-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.375rem; min-height: 4.25rem; padding: 0.625rem 0.5rem;
  border: 1px solid var(--border); border-radius: 0.875rem; background: var(--surface); cursor: pointer;
  font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--text); transition: background .15s ease, border-color .15s ease;
}
.oral-add-btn svg { color: var(--accent); }
.oral-add-btn:hover, .oral-add-btn.is-on { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.oral-add-btn.is-busy, .oral-add-btn:disabled { opacity: 0.6; cursor: default; }
.oral-add-form { display: flex; gap: 0.5rem; }
.oral-add-form.is-note { flex-direction: column; align-items: flex-end; }
.oral-add-form input, .oral-add-form textarea { flex: 1; width: 100%; min-width: 0; box-sizing: border-box; text-align: left; }
.oral-add-form textarea { resize: vertical; }
.oral-ref-add { flex: none; padding: 0 0.625rem; color: var(--text-muted); }
.oral-refs .pt-ref-chip > span { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oral-alert { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 1rem; background: color-mix(in srgb, var(--bg, #000) 45%, transparent); }
.oral-alert-card { width: 100%; max-width: 22rem; padding: 1.25rem; border-radius: 1.125rem; background: var(--surface); box-shadow: 0 1.25rem 3rem rgba(16,24,40,.22); text-align: left; }
.oral-alert-card h3 { margin: 0 0 0.375rem; font-size: 1.0625rem; font-weight: 700; color: var(--text); }
.oral-alert-card p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--text-muted); }
.oral-alert-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.125rem; }
.oral-note { margin: 0; max-width: 22rem; font-size: 0.9375rem; line-height: 1.5; color: var(--text-muted); }

/* ── Live ────────────────────────────────────────────────────────────── */
.oral-round {
  display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.oral-round:hover:not(:disabled) { background: color-mix(in srgb, var(--text) 13%, transparent); }
.oral-round:active:not(:disabled) { transform: scale(0.94); }
.oral-round:disabled { opacity: 0.4; cursor: default; }
.oral-round.is-off { color: #fff; background: var(--text-muted); }
.oral-round.is-end { color: #fff; background: var(--red); }
.oral-round.is-end:hover:not(:disabled) { background: color-mix(in srgb, var(--red) 88%, #000); }

/* ── Stop? ───────────────────────────────────────────────────────────── */
.oral-confirm {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 1rem;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(0.5rem); backdrop-filter: blur(0.5rem);
}
.oral-confirm-card {
  width: 100%; max-width: 20rem; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem;
  border-radius: 1.25rem; background: var(--surface); box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.18), 0 0 0 1px var(--border);
  text-align: center;
}
.oral-confirm-card h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; font-weight: 700; }

/* ── The result ────────────────────────────────────────────────────────
   Every report on this test in a row to tap through; the mark and the
   teacher's sentence; then cards to swipe (the judgement, what to go
   over, Chrono's notes, the transcript), each scrolling on its own, with
   tabs above that follow them. Fills the screen, never longer. */
.oral-result {
  width: 100%; max-width: 48rem; flex: 1; margin: 0 auto; padding: 0.5rem 1.25rem 0;
  display: flex; flex-direction: column; gap: 1rem; min-height: 0;
}
.orx-reports {
  flex: none; display: flex; gap: 0.5rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 -1.25rem; padding: 0.25rem 1.25rem;
}
.orx-reports::-webkit-scrollbar { display: none; }
.orx-report {
  flex: none; scroll-snap-align: center; display: flex; align-items: center; gap: 0.625rem;
  padding: 0.375rem 0.875rem 0.375rem 0.375rem; border: 0; border-radius: 62.4375rem; cursor: pointer; font: inherit; text-align: left;
  color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--border);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.orx-report:hover { background: var(--surface2); }
.orx-report.is-on { box-shadow: 0 0 0 2px var(--accent); }
.orx-report-text { display: flex; flex-direction: column; line-height: 1.2; }
.orx-report b { font-size: 0.8125rem; font-weight: 650; white-space: nowrap; }
.orx-report small { font-size: 0.75rem; color: var(--text-muted); }
.orx-report-ico { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; color: var(--zeno-accent, #C8962E); background: color-mix(in srgb, var(--zeno-accent, #C8962E) 12%, transparent); }
.orx-report-ico svg { width: 1rem; height: 1rem; }

.orx-hero { flex: none; display: flex; align-items: center; gap: 1.25rem; }
.orx-hero-text { min-width: 0; display: flex; flex-direction: column; gap: 0.375rem; }
.orx-kicker { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.02em; color: var(--text-muted); }
.orx-verdict { margin: 0; font-size: 1.375rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; text-wrap: pretty; }
.oral-mark { --p: 0; position: relative; flex: none; display: grid; place-items: center; width: 6.5rem; height: 6.5rem; }
.oral-mark-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), color-mix(in srgb, var(--text) 9%, transparent) 0);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%);
}
.oral-mark.is-high { --c: var(--green); }
.oral-mark.is-mid { --c: var(--amber); }
.oral-mark.is-low { --c: var(--red); }
.oral-mark b { font-size: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.oral-mark.is-mini { width: 2.25rem; height: 2.25rem; }
.oral-mark.is-mini b { font-size: 0.6875rem; font-weight: 750; letter-spacing: 0; }
.oral-mark.is-mini .oral-mark-ring { -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%); mask: radial-gradient(circle, transparent 66%, #000 67%); }

.orx-tabs {
  flex: none; display: flex; gap: 0.25rem; padding: 0.25rem; border-radius: 0.875rem; overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.orx-tabs::-webkit-scrollbar { display: none; }
.orx-tab {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  padding: 0.5rem 0.875rem; border: 0; border-radius: 0.625rem; cursor: pointer; font: inherit; font-size: 0.8125rem; font-weight: 600; white-space: nowrap;
  color: var(--text-muted); background: none; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.orx-tab span { min-width: 1.125rem; padding: 0 0.3125rem; border-radius: 62.4375rem; font-size: 0.6875rem; line-height: 1.125rem; background: color-mix(in srgb, var(--text) 8%, transparent); }
.orx-tab.is-on { color: var(--text); background: var(--surface); box-shadow: 0 1px 0.25rem rgba(0,0,0,0.08); }

.orx-track {
  flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; gap: 1rem; margin: 0 -1.25rem; padding: 0 1.25rem; scroll-padding: 0 1.25rem;
}
.orx-track::-webkit-scrollbar { display: none; }
.orx-panel {
  flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always;
  border-radius: 1.25rem; background: var(--surface); box-shadow: 0 0 0 1px var(--border); overflow: hidden; display: flex;
}
.orx-panel-in { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.25rem; }
.orx-panel-note { margin: 0 0 0.875rem; font-size: 0.75rem; font-weight: 600; color: var(--accent-dim); }

.orx-crit { display: flex; flex-direction: column; gap: 1.25rem; }
.orx-crit-head { display: flex; align-items: center; gap: 0.75rem; }
.orx-crit-head b { flex: 1; font-size: 0.9375rem; font-weight: 650; }
.orx-crit-head em { font-style: normal; font-size: 0.8125rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.orx-meter { width: 6rem; height: 0.375rem; border-radius: 62.4375rem; background: color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; }
.orx-meter i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--accent); }
.orx-crit-row p { margin: 0.375rem 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--text-muted); }

.orx-review { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.orx-review li { display: flex; gap: 0.75rem; }
.orx-review li + li { padding-top: 1rem; border-top: 1px solid var(--border); }
.orx-n {
  flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  font-size: 0.75rem; font-weight: 750; color: var(--accent-dim); background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.orx-review li > div { min-width: 0; }
.orx-q { margin: 0.0625rem 0 0; font-size: 0.9375rem; font-weight: 650; line-height: 1.45; }
.orx-a { margin: 0.375rem 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--text-muted); }

.orx-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.625rem; }
.orx-note {
  padding: 0.75rem 0.875rem; border-radius: 0.875rem; font-size: 0.9375rem; line-height: 1.5;
  background: color-mix(in srgb, var(--zeno-accent, #C8962E) 8%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zeno-accent, #C8962E) 20%, transparent);
}
.orx-note.is-figure { grid-column: 1 / -1; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.orx-note .oral-item { padding: 0; border: 0; background: none; }

.oral-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.oral-line { display: flex; }
.oral-line p { margin: 0; max-width: 85%; padding: 0.5rem 0.75rem; border-radius: 1rem; font-size: 0.875rem; line-height: 1.45; }
.oral-line.is-prof p { border-bottom-left-radius: 0.25rem; background: color-mix(in srgb, var(--zeno-accent, #C8962E) 13%, transparent); }
.oral-line.is-me { justify-content: flex-end; }
.oral-line.is-me p { border-bottom-right-radius: 0.25rem; color: #fff; background: var(--accent); }

.orx-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.25rem 0 1.25rem; }
.orx-ai { margin: 0; font-size: 0.75rem; color: var(--text-dim); }
.orx-foot .dz-btn { min-width: 8rem; }
@media (max-width: 480px) {
  .orx-hero { gap: 1rem; }
  .orx-hero .oral-mark:not(.is-mini) { width: 5rem; height: 5rem; }
  .orx-hero .oral-mark:not(.is-mini) b { font-size: 1.375rem; }
  .orx-verdict { font-size: 1.125rem; }
  .orx-foot { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ── Live ────────────────────────────────────────────────────────────
   The orb fills the stage; the board, when opened, slides in over it and
   the orb steps aside to a corner, still moving with the voice. */
.oral-live { position: relative; flex: 1; min-height: 0; }
.oral-voice {
  position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: top 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), left 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.oral.is-board .oral-voice { top: 2.75rem; left: calc(100% - 3.25rem); transform: translate(-50%, -50%) scale(0.42); }

.oral-board {
  position: absolute; inset: 0.75rem 1rem 0; border-radius: 1.25rem; overflow: hidden;
  background: var(--surface); box-shadow: 0 0 0 1px var(--border), 0 0.5rem 2rem rgba(0,0,0,0.06);
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
  opacity: 0; transform: translateY(1rem) scale(0.985); pointer-events: none; visibility: hidden;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.4s;
}
.oral.is-board .oral-board { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s; }
.oral-board canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.oral-board-items {
  position: absolute; top: 0.75rem; left: 0.75rem; max-width: min(24rem, 60%); max-height: calc(100% - 1.5rem); overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none;
}
.oral-board-items .oral-item {
  padding: 0.5rem 0.75rem; border-radius: 0.75rem; font-size: 1.0625rem; line-height: 1.45; pointer-events: auto;
  color: var(--text); background: color-mix(in srgb, var(--zeno-accent, #C8962E) 10%, var(--surface));
  border-left: 0.1875rem solid var(--zeno-accent, #C8962E);
}
.oral-board-items .oral-item.is-figure { padding: 0; border: 0; background: none; }
.oral-item.is-figure svg { display: block; width: 100%; height: auto; max-height: 16rem; }

/* Notes: they come, stay a few seconds, and go. */
.oral-toasts {
  position: absolute; left: 50%; bottom: 1rem; z-index: 3; transform: translateX(-50%);
  width: min(28rem, calc(100% - 2rem)); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; pointer-events: none;
}
.oral-toast {
  display: flex; align-items: center; gap: 0.625rem; max-width: 100%;
  padding: 0.625rem 1rem 0.625rem 0.875rem; border-radius: 1rem;
  font-size: 1rem; font-weight: 550; line-height: 1.4; color: var(--text);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(1rem) saturate(1.4); backdrop-filter: blur(1rem) saturate(1.4);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent), 0 0.75rem 2rem rgba(0,0,0,0.12);
  opacity: 0; transform: translateY(0.5rem) scale(0.97);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.oral-toast.is-in { opacity: 1; transform: none; }
.oral-toast.is-out { opacity: 0; transform: translateY(-0.375rem) scale(0.98); transition-duration: 0.4s; }
.oral-toast-dot { flex: none; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--zeno-accent, #C8962E); box-shadow: 0 0 0.5rem rgba(200,150,46,0.6); }
.oral.is-board .oral-toasts { bottom: 0.75rem; }

.oral-dock { flex: none; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem 1.5rem; }
.oral-dock-row { display: flex; justify-content: center; gap: 1rem; }
.oral-board-btn { position: relative; }
.oral-board-btn.is-on { color: #fff; background: var(--accent); }
.oral-dot { position: absolute; top: 0.5rem; right: 0.5rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--zeno-accent, #C8962E); box-shadow: 0 0 0 2px var(--bg); }
.oral-dot[hidden] { display: none; }
.oral-suggest { opacity: 0; transform: translateY(0.375rem); transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.oral-suggest.is-in { opacity: 1; transform: none; }
.oral-suggest-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem 0.5rem 0.75rem; border: 0; border-radius: 62.4375rem; cursor: pointer;
  font: inherit; font-size: 0.875rem; font-weight: 650; color: var(--accent-dim);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
  animation: oralNudge 1.1s ease-in-out 3;
}
.oral-suggest-btn svg { width: 1.125rem; height: 1.125rem; }
@keyframes oralNudge { 0%, 100% { transform: none; } 50% { transform: translateY(-2px); } }

.oral-tools { display: none; align-items: center; gap: 0.25rem; padding: 0.25rem; border-radius: 62.4375rem; background: color-mix(in srgb, var(--text) 6%, transparent); }
.oral.is-board .oral-tools { display: flex; animation: oralIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.oral-tool {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--text-muted); background: none; transition: background 0.15s ease, color 0.15s ease;
}
.oral-tool:hover { color: var(--text); }
.oral-tool.is-on { color: var(--text); background: var(--surface); box-shadow: 0 1px 0.25rem rgba(0,0,0,0.1); }
.oral-swatch {
  width: 1.75rem; height: 1.75rem; margin: 0 0.125rem; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--sw); box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 1px var(--border);
}
.oral-swatch.is-on { box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 2px var(--accent); }
.is-new { animation: oralIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes oralIn { from { opacity: 0; transform: translateY(0.375rem); } to { opacity: 1; transform: none; } }
.or-hero-orb .oral-orb { width: 6.5rem; height: 6.5rem; }
.or-hero-orb .oral-orb-core { width: 3.75rem; height: 3.75rem; }
.or-hero-orb .oral-orb-glow { width: 6.5rem; height: 6.5rem; }

/* ── The presentation (a lesson out loud) ─────────────────────────────
   The slide takes the stage, the notes stay beside it, the orb speaks
   from the corner. The board, when Chrono or the student opens it, slides
   in over all of it as in the other kinds. */
.oral.is-deck .oral-voice { top: 2.75rem; left: calc(100% - 3.25rem); transform: translate(-50%, -50%) scale(0.42); }
.oral:not(.is-deck) .oral-present { display: none; }
.oral-present {
  position: absolute; inset: 0.75rem 1rem 0; display: flex; gap: 1rem; justify-content: center; min-height: 0;
  transition: opacity 0.3s ease;
}
.oral.is-board .oral-present { opacity: 0; pointer-events: none; }
.oral-slide {
  flex: 1 1 auto; max-width: 52rem; min-width: 0; overflow-y: auto; padding: 1.75rem 2rem;
  border-radius: 1.25rem; background: var(--surface); box-shadow: 0 0 0 1px var(--border), 0 0.5rem 2rem rgba(0,0,0,0.06);
  opacity: 0; transform: translateY(0.5rem); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.oral-slide.is-in { opacity: 1; transform: none; }
.oral-slide-head { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }
.oral-slide-head b { font-weight: 650; font-variant-numeric: tabular-nums; }
.oral-slide-title { margin: 0.5rem 0 1rem; font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; color: var(--text); }
.oral-slide .md-body { font-size: 1.0625rem; line-height: 1.6; }
.oral-slide-points, .oral-slide-qs { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.625rem; font-size: 1.1875rem; line-height: 1.45; }
.oral-slide-points li::marker { color: var(--accent); }
.oral-slide-ex { margin: 1rem 0 0; padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--surface2); font-size: 1rem; }
.oral-slide-pic { margin-top: 1.25rem; }
.oral-slide-pic img { max-height: 18rem; width: auto; max-width: 100%; }
.oral-slide-wait { display: flex; gap: 0.375rem; justify-content: center; padding: 3rem 0; }
.oral-slide-wait span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--text-dim); animation: oralDot 1.2s ease-in-out infinite; }
.oral-slide-wait span:nth-child(2) { animation-delay: 0.15s; }
.oral-slide-wait span:nth-child(3) { animation-delay: 0.3s; }
@keyframes oralDot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.oral-notes { flex: 0 0 15rem; overflow-y: auto; padding: 1rem 1.125rem; border-radius: 1.25rem; background: color-mix(in srgb, var(--zeno-accent, #C8962E) 7%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--zeno-accent, #C8962E) 22%, transparent); }
.oral-notes[hidden] { display: none; }
.oral-notes h3 { margin: 0 0 0.625rem; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }
.oral-notes ol { margin: 0; padding-left: 1.125rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9375rem; line-height: 1.45; }
.oral-notes li::marker { color: var(--zeno-accent, #C8962E); font-weight: 650; }

@media (max-width: 760px) {
  .oral-present { flex-direction: column; inset: 0.5rem 0.5rem 0; gap: 0.5rem; }
  .oral-slide { padding: 1.25rem 1.25rem; }
  .oral-slide-title { font-size: 1.375rem; }
  .oral-slide-points, .oral-slide-qs { font-size: 1.0625rem; }
  .oral-notes { flex: 0 0 auto; max-height: 30%; }
  .oral.is-deck .oral-voice { left: calc(100% - 2.25rem); }
}

@media (max-width: 480px) {
  .oral-board { inset: 0.5rem 0.5rem 0; }
  .oral-board-items { max-width: 75%; }
  .oral-tool { width: 2.25rem; height: 2.25rem; }
  .oral.is-board .oral-voice { left: calc(100% - 2.5rem); }
  .oral-orb { width: 9rem; height: 9rem; }
  .oral-orb-core { width: 5.25rem; height: 5.25rem; }
  .oral-orb-glow { width: 9rem; height: 9rem; }
  .oral-orb-ring { width: 7rem; height: 7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .oral { transition: none; }
  .oral-orb-core, .oral-orb.is-idle .oral-orb-core { animation: none; }
}

/* Study Help: offered under the mock test. */
.rvx-offer + .rvx-offer.is-oral { margin-top: 0.75rem; }
.rvx-offer.is-oral .rvx-offer-ico { color: var(--zeno-accent, #C8962E); background: color-mix(in srgb, var(--zeno-accent, #C8962E) 14%, transparent); }
/* Learn and Practice: the same, out loud. */
.rvx-live {
  display: inline-flex; align-items: center; gap: 0.5rem; align-self: center; margin: 0.25rem auto 0.75rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem; border: 0; border-radius: 62.4375rem; cursor: pointer;
  font: inherit; font-size: 0.875rem; font-weight: 650; color: var(--text);
  background: color-mix(in srgb, var(--zeno-accent, #C8962E) 12%, var(--surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--zeno-accent, #C8962E) 30%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rvx-live svg { color: var(--zeno-accent, #C8962E); }
.rvx-live { max-width: 100%; } .rvx-live span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvx-live svg { flex-shrink: 0; }
.rvx-live:hover { box-shadow: 0 0 0 1px var(--zeno-accent, #C8962E); }
.rvx-live:active { transform: scale(0.97); }
.rvx-offer .rvx-live { margin: 0.5rem auto 0; }
.tutor-body > .rvx-live { display: flex; width: max-content; max-width: 100%; }
/* The references to start from, as one sliding row. */
.oral-setup .cc { width: 100%; }
.cc > .oral-refs { justify-content: flex-start; }
/* The orb keeps its corner free of the slide. */
.oral.is-deck .oral-present { right: 6rem; }
@media (max-width: 760px) {
  .oral.is-deck .oral-present { right: 0.5rem; top: 2.75rem; }
  .oral.is-deck .oral-voice { top: 1.375rem; left: 50%; }
}
.oral-present { align-items: flex-start; }
.oral-slide, .oral-notes { max-height: 100%; }
.oral-slide .md-body ul, .oral-slide .md-body ol { padding-left: 1.25rem; }
.oral-slide-scheme { margin-top: 1.25rem; }

/* Paused: everything holds still and can be read and copied. */
.oral.is-paused .oral-orb { opacity: 0.45; filter: saturate(0.6); transition: opacity 0.3s ease, filter 0.3s ease; }
.oral-pause-btn.is-on { color: #fff; background: var(--accent); }
/* Chrono suggesting a pause to think: the button glows softly, a ring
   breathing out from it, until it is used. */
.oral-pause-btn.is-hint { position: relative; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); animation: oralHintIn 0.4s var(--ease, ease); }
.oral-pause-btn.is-hint::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  animation: oralHintRing 1.8s ease-out infinite;
}
@keyframes oralHintRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 100% { box-shadow: 0 0 0 0.875rem transparent; } }
@keyframes oralHintIn { from { transform: scale(0.92); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .oral-pause-btn.is-hint, .oral-pause-btn.is-hint::after { animation: none; } }
.oral-paused { position: absolute; top: 0.25rem; left: 50%; z-index: 4; transform: translateX(-50%); pointer-events: none; }
.oral-paused[hidden] { display: none; }
.oral-paused span {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.875rem; border-radius: 62.4375rem;
  font-size: 0.8125rem; font-weight: 650; color: var(--text);
  background: color-mix(in srgb, var(--surface) 85%, transparent); -webkit-backdrop-filter: blur(1rem); backdrop-filter: blur(1rem);
  box-shadow: 0 0 0 1px var(--border), 0 0.5rem 1.5rem rgba(0,0,0,0.08); animation: oralIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.oral-paused span::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--amber); }
.oral.is-paused .oral-clock { opacity: 0.5; }
.orx-track { margin: 0; padding: 0; scroll-padding: 0; }
.orx-foot .dz-btn { flex: none; width: auto; padding-left: 2.5rem; padding-right: 2.5rem; }
@media (max-width: 480px) { .orx-foot .dz-btn { width: 100%; } }

/* The side of the presentation: pictures Chrono found, then its notes. */
.oral-side { flex: 0 0 19rem; min-width: 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 0.75rem; }
.oral-side:not(:has(> section:not([hidden]))) { display: none; }
.oral-side .oral-notes { flex: none; max-height: none; }
.oral-pics { flex: none; padding: 0.875rem; border-radius: 1.25rem; background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.oral-pics[hidden] { display: none; }
.oral-pics h3 { margin: 0 0 0.625rem; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }
.oral-pics-list { display: flex; flex-direction: column; gap: 0.75rem; }
.oral-pic .pic-figure { margin: 0; }
.oral-pic .pic-figure img { width: 100%; max-height: 13rem; object-fit: contain; border-radius: 0.75rem; background: var(--surface2); }
.oral-pic .pic-none, .oral-pic:empty { display: none; }

/* What Chrono is talking about, marked as it speaks. */
mark.oral-hl { color: inherit; border-radius: 0.25rem; padding: 0 0.125rem; background: color-mix(in srgb, var(--zeno-accent, #C8962E) 16%, transparent); transition: background 0.4s ease, box-shadow 0.4s ease; }
mark.oral-hl.is-now { background: color-mix(in srgb, var(--zeno-accent, #C8962E) 38%, transparent); box-shadow: 0 0 0 0.125rem color-mix(in srgb, var(--zeno-accent, #C8962E) 25%, transparent); }

/* A quick question, tapped. */
.oral-quiz { margin-top: 1.5rem; padding: 1rem 1.125rem; border-radius: 1rem; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.oral-quiz-q { margin: 0 0 0.75rem; font-size: 1.0625rem; font-weight: 650; line-height: 1.4; }
.oral-quiz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.5rem; }
.oral-quiz-opt {
  display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 0.75rem; border: 0; border-radius: 0.75rem; cursor: pointer; text-align: left;
  font: inherit; font-size: 0.9375rem; line-height: 1.35; color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--border);
  transition: box-shadow 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.oral-quiz-opt:hover:not(:disabled) { box-shadow: 0 0 0 1px var(--accent); }
.oral-quiz-opt:active:not(:disabled) { transform: scale(0.98); }
.oral-quiz-opt span { flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-size: 0.75rem; font-weight: 750; background: color-mix(in srgb, var(--text) 7%, transparent); }
.oral-quiz-opt:disabled { cursor: default; }
.oral-quiz-opt.is-right { box-shadow: 0 0 0 2px var(--green); background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.oral-quiz-opt.is-right span { color: #fff; background: var(--green); }
.oral-quiz-opt.is-wrong { box-shadow: 0 0 0 2px var(--red); background: color-mix(in srgb, var(--red) 8%, var(--surface)); }
.oral-quiz-opt.is-wrong span { color: #fff; background: var(--red); }
.oral-quiz.is-done .oral-quiz-opt:not(.is-right):not(.is-wrong) { opacity: 0.55; }

.oral-present { overflow: hidden; }
.oral-slide { scrollbar-width: thin; }
@media (max-width: 760px) {
  .oral-side { flex: 0 0 auto; max-height: 42%; width: 100%; gap: 0.5rem; }
  .oral-pics { padding: 0.625rem; }
  .oral-pics-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .oral-pics-list::-webkit-scrollbar { display: none; }
  .oral-pic { flex: 0 0 72%; scroll-snap-align: start; }
  .oral-pic .pic-figure img { max-height: 8.5rem; }
  .oral-slide { flex: 1 1 auto; min-height: 0; width: 100%; }
}
.oral-slide .md-body p { margin: 0 0 0.75rem; }

/* The stopwatch: a button -- tapped, everything holds and it says how it is going. */
.oral-clock { display: inline-flex; align-items: center; gap: 0.4375rem; border: 0; cursor: pointer; font-family: inherit; color: var(--text); transition: background 0.15s ease; }
.oral-clock:hover { background: color-mix(in srgb, var(--text) 12%, transparent); }
.oral-clock i { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--red); animation: oralRec 1.6s ease-in-out infinite; }
.oral.is-paused .oral-clock i { animation: none; background: var(--amber); }
@keyframes oralRec { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.oral-watch { gap: 0.625rem; }
.oral-watch-label { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber); }
.oral-watch-time { font-size: 2.75rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.oral-watch-credits { margin-bottom: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.orx-report-ico { flex: none; }
.orx-report-ico svg { display: block; flex: none; }
.oral-confirm { z-index: 10; }

/* ── The live presentation, refined ──────────────────────────────────
   The slide comes in, then its lines one after another; the words being
   talked about light up with a sweep; the pictures sit under the notes,
   large, an animation first. */
.oral-side { flex-basis: 24rem; }
.oral-pics { padding: 0; background: none; box-shadow: none; }
.oral-pics-list { gap: 0.75rem; }
.oral-pic { position: relative; margin: 0; border-radius: 1.125rem; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--border), 0 0.5rem 1.5rem rgba(0,0,0,0.06);
  opacity: 0; transform: translateY(0.75rem) scale(0.98); transition: opacity 0.5s ease calc(var(--k, 0) * 0.12s), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--k, 0) * 0.12s); }
.oral-pic.is-loaded { opacity: 1; transform: none; }
.oral-pic-img { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--surface2); overflow: hidden; }
.oral-pic-img img { display: block; width: 100%; height: 14rem; object-fit: cover; }
.oral-pic.is-gif .oral-pic-img img { object-fit: contain; background: #fff; }
.oral-pic figcaption { position: absolute; left: 0.5rem; bottom: 0.5rem; max-width: calc(100% - 1rem); padding: 0.1875rem 0.5rem; border-radius: 62.4375rem; font-size: 0.6875rem; font-weight: 600;
  background: rgba(0,0,0,0.55); -webkit-backdrop-filter: blur(0.5rem); backdrop-filter: blur(0.5rem); }
.oral-pic figcaption, .oral-pic figcaption a { color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oral-zoom { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 2rem; cursor: zoom-out; background: rgba(0,0,0,0.78); animation: oralIn 0.25s ease; }
.oral-zoom img { max-width: 100%; max-height: 100%; border-radius: 0.75rem; box-shadow: 0 1rem 3rem rgba(0,0,0,0.4); }

/* The slide's lines, one after another. */
.oral-slide.is-in .oral-slide-title { animation: oralLine 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.oral-slide.is-in .md-body > *, .oral-slide.is-in .oral-slide-points > li, .oral-slide.is-in .oral-slide-scheme { animation: oralLine 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.oral-slide.is-in .md-body > :nth-child(1) { animation-delay: 0.12s; }
.oral-slide.is-in .md-body > :nth-child(2) { animation-delay: 0.3s; }
.oral-slide.is-in .md-body > :nth-child(3) { animation-delay: 0.48s; }
.oral-slide.is-in .md-body > :nth-child(4) { animation-delay: 0.66s; }
.oral-slide.is-in .md-body > :nth-child(n+5) { animation-delay: 0.8s; }
.oral-slide.is-in .oral-slide-points > li:nth-child(2) { animation-delay: 0.15s; }
.oral-slide.is-in .oral-slide-points > li:nth-child(3) { animation-delay: 0.3s; }
.oral-slide.is-in .oral-slide-points > li:nth-child(n+4) { animation-delay: 0.45s; }
.oral-slide.is-in .oral-slide-scheme { animation-delay: 0.6s; }
@keyframes oralLine { from { opacity: 0; transform: translateY(0.625rem); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.oral-slide-title { font-size: 2rem; }
.oral-slide .md-body { font-size: 1.125rem; line-height: 1.65; }
.oral-slide .md-body strong, .oral-slide .md-body b { color: var(--text); font-weight: 700; }

/* Highlights sweep in. */
mark.oral-hl { background: linear-gradient(90deg, color-mix(in srgb, var(--zeno-accent, #C8962E) 30%, transparent), color-mix(in srgb, var(--zeno-accent, #C8962E) 30%, transparent)) no-repeat 0 0 / 0% 100%;
  box-shadow: none; animation: oralSweep 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
mark.oral-hl:not(.is-now) { background-size: 100% 100%; animation: none; background-image: linear-gradient(90deg, color-mix(in srgb, var(--zeno-accent, #C8962E) 14%, transparent), color-mix(in srgb, var(--zeno-accent, #C8962E) 14%, transparent)); }
@keyframes oralSweep { to { background-size: 100% 100%; } }

/* Schemes on a slide: big, across, built step by step. */
.oral-slide .md-scheme { margin-top: 1.25rem; padding: 1.25rem; border-radius: 1.125rem; }
.oral-slide .md-flow ol { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 0.5rem 2.25rem; }
.oral-slide .md-flow li { flex: 1 1 10rem; flex-direction: column; gap: 0.5rem; padding: 0.875rem; border-radius: 0.875rem; }
.oral-slide .md-flow li + li::before { left: -1.875rem; top: 50%; width: 1.5rem; height: 2px; }
.oral-slide .md-flow li + li::after { left: -0.625rem; top: calc(50% - 5px); border: 5px solid transparent; border-left-color: color-mix(in srgb, var(--accent) 60%, transparent); border-right: 0; }
.oral-slide .md-flow-body { font-size: 0.9375rem; }
.oral-slide .md-scheme li { animation: oralLine 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.oral-slide .md-scheme li:nth-child(2) { animation-delay: 0.85s; }
.oral-slide .md-scheme li:nth-child(3) { animation-delay: 1.1s; }
.oral-slide .md-scheme li:nth-child(4) { animation-delay: 1.35s; }
.oral-slide .md-scheme li:nth-child(n+5) { animation-delay: 1.6s; }
.oral-slide .md-scheme li:nth-child(1) { animation-delay: 0.6s; }
.oral-slide .md-tree-node { font-size: 0.9375rem; padding: 0.375rem 0.75rem; }
@media (max-width: 760px) {
  .oral-slide-title { font-size: 1.375rem; }
  .oral-slide .md-body { font-size: 1rem; }
  .oral-slide .md-flow ol { flex-direction: column; gap: 1.125rem; }
  .oral-slide .md-flow li + li::before { left: 1.3125rem; top: -1.125rem; width: 2px; height: 1.125rem; }
  .oral-slide .md-flow li + li::after { left: calc(1.3125rem - 4px); top: -0.4375rem; border: 5px solid transparent; border-top-color: color-mix(in srgb, var(--accent) 60%, transparent); border-bottom: 0; }
  .oral-pic-img img { height: 10rem; }
}
@media (prefers-reduced-motion: reduce) {
  .oral-pic-img img, .oral-slide.is-in *, mark.oral-hl { animation: none !important; }
}

/* The result, refined: a page that reads top to bottom -- the mark in a
   card tinted by how it went, the tabs, the card in view only as tall as
   it is, the button always at hand. */
.oral-result { flex: none; height: auto; max-width: 44rem; padding-top: 0.75rem; gap: 1.125rem; }
.orx-hero { padding: 1.25rem 1.375rem; border-radius: 1.5rem; gap: 1.5rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--accent)) 12%, var(--surface)), var(--surface) 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c, var(--accent)) 18%, var(--border)), 0 0.75rem 2rem rgba(0,0,0,0.05); }
.orx-hero.is-high { --c: var(--green); }
.orx-hero.is-mid { --c: var(--amber); }
.orx-hero.is-low { --c: var(--red); }
.orx-hero .oral-mark:not(.is-mini) { width: 7rem; height: 7rem; }
.orx-hero .oral-mark:not(.is-mini) b { font-size: 2rem; }
.orx-hero .oral-mark-ring { animation: orxRing 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes orxRing { from { transform: rotate(-90deg) scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
.orx-verdict { font-size: 1.5rem; }
.orx-track { flex: none; align-items: flex-start; transition: height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.orx-panel { overflow: visible; box-shadow: 0 0 0 1px var(--border), 0 0.5rem 1.5rem rgba(0,0,0,0.04); }
.orx-panel-in { overflow: visible; padding: 1.375rem 1.5rem; }
.orx-crit-row { padding-bottom: 1.125rem; }
.orx-crit-row + .orx-crit-row { padding-top: 1.125rem; border-top: 1px solid var(--border); }
.orx-crit { gap: 0; }
.orx-meter { width: 7rem; height: 0.4375rem; }
.orx-meter i { animation: orxFill 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both; }
@keyframes orxFill { from { width: 0; } }
.orx-foot { position: sticky; bottom: 0; margin: 0 -1.25rem; padding: 1rem 1.25rem 1.25rem; background: linear-gradient(to bottom, transparent, var(--bg) 40%); }
@media (max-width: 480px) {
  .orx-hero { padding: 1rem; gap: 1rem; }
  .orx-hero .oral-mark:not(.is-mini) { width: 5.25rem; height: 5.25rem; }
  .orx-hero .oral-mark:not(.is-mini) b { font-size: 1.5rem; }
  .orx-verdict { font-size: 1.1875rem; }
  .orx-panel-in { padding: 1.125rem; }
}
@media (max-width: 760px) {
  .oral.is-deck.is-board .oral-voice { top: 2.75rem; left: calc(100% - 2.5rem); }
}

/* Full screen, the whole picture fitted inside the screen -- never cut. */
.oral-zoom { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 1.5rem; cursor: zoom-out;
  background: rgba(8,10,14,0.86); -webkit-backdrop-filter: blur(0.75rem); backdrop-filter: blur(0.75rem); animation: oralIn 0.25s ease; transition: opacity 0.25s ease; }
.oral-zoom.is-out { opacity: 0; }
.oral-zoom figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; max-width: 100%; max-height: 100%; }
.oral-zoom img { display: block; width: auto; height: auto; max-width: min(100%, calc(100vw - 3rem)); max-height: calc(100dvh - 6rem); object-fit: contain; border-radius: 0.75rem; box-shadow: 0 1rem 3rem rgba(0,0,0,0.45); background: #fff; }
.oral-zoom figcaption { max-width: 40rem; text-align: center; font-size: 0.9375rem; line-height: 1.4; color: rgba(255,255,255,0.88); }
.oral-zoom-x { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(255,255,255,0.14); }

/* The line to the server picking up again: said, never a report. */
.oral-line-msg { position: absolute; top: 4.5rem; left: 50%; z-index: 25; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 62.4375rem; font-size: 0.875rem; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(1rem); backdrop-filter: blur(1rem);
  box-shadow: 0 0 0 1px var(--border), 0 0.5rem 1.5rem rgba(0,0,0,0.1); animation: oralIn 0.3s ease; }
/* The phone's sound stopped: one tap starts it again. */
.oral-audio-msg { border: 0; font-family: inherit; cursor: pointer; color: #fff; background: var(--accent); box-shadow: 0 0.5rem 1.5rem color-mix(in srgb, var(--accent) 35%, transparent); }
.oral-line-spin { width: 0.875rem; height: 0.875rem; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--text) 20%, transparent); border-top-color: var(--accent); animation: oralSpin 0.8s linear infinite; }
@keyframes oralSpin { to { transform: rotate(360deg); } }
.oral.is-reconnecting .oral-orb { opacity: 0.5; }
.oral-clock.is-low { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.oral-out-p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--text-muted); }

/* ── The presentation on a phone ─────────────────────────────────────
   One clear column: the slide fills the screen and scrolls on its own;
   pictures and notes are one short strip under it, swiped sideways; the
   orb sits small in the top bar, by the clock; the controls are compact. */
@media (max-width: 760px) {
  .oral-top { padding: calc(0.625rem + env(safe-area-inset-top)) 0.875rem 0; gap: 0.5rem; }
  .oral-top .oral-x { width: 2.25rem; height: 2.25rem; }
  .oral.is-deck .oral-where { max-width: calc(100% - 9.5rem); }
  .oral.is-deck .oral-voice, .oral.is-deck.is-board .oral-voice { top: -1.6rem; left: calc(100% - 8.25rem); transform: translate(-50%, -50%) scale(0.2); }
  .oral.is-deck .oral-present { top: 0.5rem; right: 0.625rem; left: 0.625rem; bottom: 0; gap: 0.5rem; }
  .oral-slide { flex: 1 1 auto; padding: 1.125rem 1.125rem 1.375rem; border-radius: 1.125rem; }
  .oral-slide-title { font-size: 1.3125rem; margin: 0.25rem 0 0.75rem; }
  .oral-slide .md-body { font-size: 0.9875rem; line-height: 1.6; }
  .oral-slide .md-scheme { padding: 0.875rem; }
  .oral-side { flex: 0 0 auto; max-height: none; height: 7.25rem; flex-direction: row; gap: 0.5rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; }
  .oral-side::-webkit-scrollbar { display: none; }
  .oral-side > section { flex: 0 0 auto; height: 100%; scroll-snap-align: start; }
  .oral-side .oral-pics { order: -1; }
  .oral-pics-list { flex-direction: row; gap: 0.5rem; height: 100%; overflow: visible; }
  .oral-pic { flex: 0 0 9.5rem; height: 100%; border-radius: 0.875rem; }
  .oral-pic-img, .oral-pic-img img { height: 100%; }
  .oral-pic figcaption { display: none; }
  .oral-side .oral-notes { width: 15rem; padding: 0.625rem 0.75rem; overflow-y: auto; border-radius: 0.875rem; }
  .oral-notes h3 { margin-bottom: 0.375rem; }
  .oral-notes ol { font-size: 0.875rem; gap: 0.375rem; }
  .oral-dock { padding: 0.5rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); gap: 0.5rem; }
  .oral-dock-row { gap: 0.75rem; }
  .oral-round { width: 3.25rem; height: 3.25rem; }
  .oral-round svg { width: 1.125rem; height: 1.125rem; }
  .oral-tools { transform: scale(0.92); }
  .oral-quiz { margin-top: 1.125rem; padding: 0.875rem; }
  .oral-quiz-q { font-size: 1rem; }
  .oral-quiz-opts { grid-template-columns: 1fr; }
  .oral-line-msg { top: 3.75rem; }
}
@media (max-width: 760px) {
  .oral-slide .md-flow li { flex: none; flex-direction: row; align-items: center; gap: 0.625rem; padding: 0.625rem 0.75rem; }
  .oral.is-deck .oral-voice { opacity: 0; pointer-events: none; }
  .oral.is-deck .oral-toasts { display: none; }
}
/* Chrono speaking, shown on the clock's dot when the orb has stepped away. */
.oral.is-speaking .oral-clock i { background: var(--zeno-accent, #C8962E); box-shadow: 0 0 0.5rem var(--zeno-accent, #C8962E); animation: oralRec 0.9s ease-in-out infinite; }
.oral.is-deck .oral-toasts { display: none; }

/* Chrono's corrections on the student's own lines. */
.oral-marks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.oral-mark-under { position: absolute; height: 1.6em; transform: translateY(-50%); border-radius: 0.375rem;
  box-shadow: inset 0 -0.1875rem 0 #DC2626; background: rgba(220,38,38,0.07); animation: oralIn 0.3s ease; }
.oral-mark-fix { position: absolute; transform: translateY(-50%); max-width: 36%; padding: 0.125rem 0.5rem; border-radius: 0.5rem;
  font-family: 'Caveat', 'Comic Sans MS', 'Segoe Print', cursive; font-size: 1.375rem; line-height: 1.25; color: #DC2626;
  background: rgba(255,255,255,0.85); animation: oralIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.oral-mark-fix .katex { font-size: 0.85em; color: #DC2626; }
.oral-mark-tick { position: absolute; transform: translateY(-50%); font-size: 1.75rem; font-weight: 700; color: #16A34A; animation: oralIn 0.3s ease; }
.oral-mark-fix { font-size: 1.5rem; font-weight: 600; }
.oral-mark-fix .katex { font-size: 1.15em; }

/* ── The board on the phone: its code ──────────────────────────────── */
.oral-phone { max-width: 22rem; gap: 0.75rem; }
.oral-phone h3 { margin: 0; }
.oral-phone-lede { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); }
.oral-phone-qr { align-self: center; display: grid; place-items: center; width: 12rem; height: 12rem; padding: 0.5rem; border-radius: 1rem; background: #fff; box-shadow: 0 0 0 1px var(--border); }
.oral-phone-qr svg { width: 100%; height: 100%; display: block; }
.oral-phone-status { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
