:root {
  --navy: #07111f;
  --navy-deep: #050b16;
  --blue: #38bdf8;
  --purple: #a855f7;
  --pink: #fb7185;
  --green: #6ee7b7;
  --red: #fb7185;
  --text: rgba(255, 255, 255, .94);
  --muted: rgba(255, 255, 255, .68);
  --border: rgba(255, 255, 255, .13);
  --glass: rgba(255, 255, 255, .075);
  --glass-strong: rgba(255, 255, 255, .11);
  --gradient: linear-gradient(135deg, #38bdf8, #6366f1 42%, #a855f7 72%, #fb7185);
  --radius-xl: 30px;
  --radius-lg: 22px;
}

/* Exam Lab Classroom Live: one-screen score and private answer sheet. */
.exam-lab-live-layout[hidden],
.exam-lab-private-feedback[hidden] { display: none !important; }

.exam-lab-live-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(430px, 1.45fr) minmax(360px, 1fr);
  gap: clamp(10px, 1vw, 16px);
  padding: clamp(10px, 1.2vw, 18px);
  overflow: hidden;
}

body.exam-lab-live-student .app-shell {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

body.exam-lab-live-student .exam-lab-live-layout > .panel {
  min-height: 0;
  overflow: hidden;
}

.exam-lab-session-panel,
.exam-lab-score-panel,
.exam-lab-answer-panel {
  display: flex;
  flex-direction: column;
}

.exam-lab-live-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 16px;
}

.exam-lab-live-brand img { width: 54px; height: 54px; object-fit: contain; }
.exam-lab-live-brand strong { display: flex; flex-direction: column; font-size: 1.5rem; line-height: .92; }
.exam-lab-live-brand strong span { color: #f8fafc; }
.exam-lab-live-brand strong em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  background-clip: text;
  -webkit-background-clip: text;
}

.exam-lab-live-intro,
.exam-lab-audio-note { color: var(--muted); line-height: 1.45; }

.exam-lab-session-facts { display: grid; gap: 8px; margin-top: 12px; }
.exam-lab-session-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
}
.exam-lab-session-facts span { color: var(--muted); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.exam-lab-session-facts strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.exam-lab-play-state {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(56,189,248,.3);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(56,189,248,.13), rgba(168,85,247,.12));
  color: #e0f2fe;
  font-weight: 850;
  line-height: 1.4;
}

.exam-lab-heading-row { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.exam-lab-heading-row > div { display: flex; align-items: center; gap: 10px; }
.exam-lab-heading-row h2 { margin: 0; }
.exam-lab-score-toolbar { display: flex; align-items: center; gap: 6px; }
.exam-lab-score-toolbar button {
  min-width: 34px;
  min-height: 32px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 900;
}
.exam-lab-score-toolbar span { min-width: 44px; text-align: center; color: var(--muted); font-size: .75rem; font-weight: 850; }

.exam-lab-waiting-card {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  border: 1px dashed rgba(56,189,248,.25);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}
.exam-lab-waiting-card strong { color: #f8fafc; font-size: 1.12rem; }
.exam-lab-waiting-card p { margin: 0; }

.exam-lab-score-scroll {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 10px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: #fff;
  scrollbar-color: rgba(56,189,248,.6) rgba(2,6,23,.12);
}
.exam-lab-score-scroll:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
.exam-lab-score-canvas { position: relative; width: 100%; min-width: 100%; margin: 0 auto; }
.exam-lab-score-canvas img { display: block; width: 100%; height: auto; }
.exam-lab-score-masks { position: absolute; inset: 0; pointer-events: none; }
.exam-lab-score-mask { position: absolute; display: block; background: #fff; }
.exam-lab-score-mask-blank-stave svg { display: block; width: 100%; height: 100%; }
.exam-lab-score-mask-blank-stave line { stroke: #111; stroke-width: 1.4; }

.exam-lab-answer-progress {
  display: grid;
  place-items: center;
  min-width: 54px;
  min-height: 36px;
  border: 1px solid rgba(56,189,248,.3);
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(56,189,248,.1);
}

.exam-lab-live-form { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.exam-lab-live-questions {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 9px;
  padding: 2px 6px 10px 0;
  overflow-y: auto;
}
.exam-lab-live-question {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 17px;
  background: rgba(255,255,255,.045);
}
.exam-lab-question-head { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: start; gap: 9px; }
.exam-lab-question-head > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #7c3aed);
  font-size: .76rem;
  font-weight: 950;
}
.exam-lab-question-head label,
.exam-lab-question-head strong { color: #f8fafc; font-size: .88rem; line-height: 1.35; }
.exam-lab-question-head em { color: #c4b5fd; font-style: normal; font-size: .78rem; font-weight: 850; }
.exam-lab-live-question > input,
.exam-lab-live-question textarea {
  width: calc(100% - 37px);
  margin: 9px 0 0 37px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 9px 11px;
  background: rgba(2,6,23,.48);
  color: #fff;
  font: inherit;
  resize: vertical;
}
.exam-lab-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin: 9px 0 0 37px; }
.exam-lab-choice-grid label { position: relative; }
.exam-lab-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.exam-lab-choice-grid span {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  background: rgba(2,6,23,.42);
  color: #e2e8f0;
  font-size: .78rem;
  font-weight: 760;
  text-align: center;
  cursor: pointer;
}
.exam-lab-choice-grid input:checked + span { border-color: #38bdf8; background: linear-gradient(135deg, rgba(56,189,248,.24), rgba(168,85,247,.22)); color: #fff; }
.exam-lab-choice-grid input:focus-visible + span { outline: 3px solid #38bdf8; outline-offset: 2px; }
.exam-lab-rhythm-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin: 9px 0 0 37px; }
.exam-lab-rhythm-choice-grid label { position: relative; min-width: 0; }
.exam-lab-rhythm-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.exam-lab-rhythm-choice-grid > label > span {
  min-height: 88px;
  display: grid;
  grid-template-columns: 25px minmax(0,1fr);
  align-items: center;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  background: rgba(2,6,23,.42);
  color: #e2e8f0;
  cursor: pointer;
}
.exam-lab-rhythm-choice-grid > label > span > strong {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139,92,246,.46), rgba(56,189,248,.34));
  font-size: .75rem;
}
.exam-lab-rhythm-choice-grid input:checked + span { border-color: #38bdf8; background: linear-gradient(135deg, rgba(56,189,248,.24), rgba(168,85,247,.22)); color: #fff; }
.exam-lab-rhythm-choice-grid input:focus-visible + span { outline: 3px solid #38bdf8; outline-offset: 2px; }
.exam-lab-rhythm-notation { width: 100%; min-width: 0; height: 70px; overflow: visible; }
.exam-lab-rhythm-staff path { fill: none; stroke: rgba(226,232,240,.72); stroke-width: 1; }
.exam-lab-rhythm-staff .exam-lab-rhythm-barline { stroke-width: 1.5; }
.exam-lab-rhythm-notes { fill: #f8fbff; stroke: #f8fbff; stroke-width: 1.7; stroke-linecap: square; }
.exam-lab-rhythm-notes .exam-lab-rhythm-beam,
.exam-lab-rhythm-notes .exam-lab-rhythm-dot { stroke: none; }

.exam-lab-submit-dock {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.exam-lab-submit-dock p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.exam-lab-submit-dock button { min-width: 145px; }

.exam-lab-private-feedback {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2,6,23,.78);
  backdrop-filter: blur(16px);
}
.exam-lab-private-feedback-card {
  position: relative;
  width: min(820px, calc(100vw - 32px));
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 30px;
  background: radial-gradient(circle at 86% 8%, rgba(56,189,248,.18), transparent 34%), linear-gradient(150deg, #0f1c37, #050b16);
  box-shadow: 0 36px 110px rgba(0,0,0,.58);
}
.exam-lab-private-feedback-card > button:first-child { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; font-size: 1.4rem; }
.exam-lab-feedback-hero { display: flex; align-items: baseline; gap: 12px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, rgba(56,189,248,.17), rgba(168,85,247,.15)); }
.exam-lab-feedback-hero span { color: var(--muted); }
.exam-lab-feedback-hero strong { font-size: 2rem; }
.exam-lab-feedback-hero small { margin-left: auto; color: #c4b5fd; font-weight: 900; }
.exam-lab-source-reveal { color: #cbd5e1; font-size: .86rem; }
.exam-lab-feedback-list { display: grid; gap: 8px; margin: 14px 0; }
.exam-lab-feedback-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; }
.exam-lab-feedback-row.is-secure { border-color: rgba(52,211,153,.32); }
.exam-lab-feedback-row.is-focus { border-color: rgba(251,191,36,.28); }
.exam-lab-feedback-row div span { display: block; color: var(--muted); font-size: .78rem; }
.exam-lab-feedback-row em { font-style: normal; font-weight: 900; }
.exam-lab-feedback-row p,
.exam-lab-feedback-row > small { grid-column: 1 / -1; margin: 0; color: #cbd5e1; font-size: .78rem; }
.exam-lab-feedback-routes { margin: 14px 0; }
.exam-lab-feedback-route { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; margin-top: 7px; padding: 11px; border-radius: 13px; background: rgba(255,255,255,.045); }
.exam-lab-feedback-route span { color: var(--muted); font-size: .76rem; }
.exam-lab-feedback-route a,
.exam-lab-feedback-route em { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #7dd3fc; font-size: .75rem; font-style: normal; font-weight: 850; }
.exam-lab-private-feedback-card > .primary-button:last-child { width: 100%; }

@media (max-width: 1100px) {
  body.exam-lab-live-student .app-shell { height: auto; min-height: 100vh; overflow: visible; }
  .exam-lab-live-layout { grid-template-columns: minmax(200px,.55fr) minmax(0,1.45fr); overflow: visible; }
  .exam-lab-answer-panel { grid-column: 1 / -1; min-height: 680px !important; }
}

@media (max-width: 720px) {
  .exam-lab-live-layout { grid-template-columns: 1fr; }
  .exam-lab-answer-panel { grid-column: auto; }
  .exam-lab-session-panel { min-height: 420px !important; }
  .exam-lab-score-panel { min-height: 70vh !important; }
  .exam-lab-choice-grid { grid-template-columns: 1fr; }
  .exam-lab-rhythm-choice-grid { grid-template-columns: 1fr; }
  .exam-lab-submit-dock { grid-template-columns: 1fr; }
  .exam-lab-submit-dock button { width: 100%; }
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(56, 189, 248, .22), transparent 32%),
    radial-gradient(circle at 85% 16%, rgba(168, 85, 247, .18), transparent 31%),
    radial-gradient(circle at 70% 88%, rgba(251, 113, 133, .14), transparent 34%),
    linear-gradient(135deg, #050b16, #07111f 52%, #101f3d);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.student-shell {
  width: min(1040px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 48px;
  display: grid;
  align-content: center;
  gap: 20px;
}

.student-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 10%, rgba(56, 189, 248, .18), transparent 38%),
    radial-gradient(circle at 8% 95%, rgba(251, 113, 133, .12), transparent 38%),
    rgba(255, 255, 255, .07);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
  padding: clamp(22px, 4vw, 40px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: 44px;
  height: 34px;
}

.wave span {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: var(--gradient);
}

.wave span:nth-child(1) { height: 12px; }
.wave span:nth-child(2) { height: 22px; }
.wave span:nth-child(3) { height: 30px; }
.wave span:nth-child(4) { height: 18px; }
.wave span:nth-child(5) { height: 28px; }
.wave span:nth-child(6) { height: 16px; }
.wave span:nth-child(7) { height: 24px; }

.wordmark {
  font-weight: 950;
  letter-spacing: -.04em;
  font-size: 1.35rem;
}
.wordmark em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: .92;
  letter-spacing: -.07em;
}

.student-muted { color: var(--muted); line-height: 1.55; }

.join-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.join-form label,
.answer-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.join-form input,
.answer-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(2, 8, 23, .54);
  color: var(--text);
  padding: 16px 18px;
  outline: none;
}

.primary-button,
.secondary-button,
.choice-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 950;
}

.primary-button {
  color: #04101f;
  background: var(--gradient);
  box-shadow: 0 18px 44px rgba(56, 189, 248, .16);
}

.secondary-button,
.choice-button {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.choice-button.is-selected {
  border-color: rgba(56, 189, 248, .75);
  background: rgba(56, 189, 248, .16);
}

.mixed-mi-stave-card {
  margin: 8px 0 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(232,244,255,0.86));
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
  color: #162033;
}

.mixed-mi-stave-stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 666 / 210;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

.mixed-mi-score-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

.mixed-mi-crotchet-note {
  position: absolute;
  z-index: 4;
  height: 56.25%;
  width: auto;
  transform: translate(-48%, -79.55%);
  transform-origin: 48% 79.55%;
  user-select: none;
  pointer-events: none;
}

.mixed-mi-note-ledger {
  position: absolute;
  z-index: 3;
  display: block;
  border-radius: 999px;
  background: rgba(20, 30, 48, 0.92);
  pointer-events: none;
}

.mixed-mi-accidental {
  position: absolute;
  z-index: 5;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 800;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.mixed-mi-note-hint {
  margin: 8px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: .9rem;
  font-weight: 800;
}

.status-message {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 750;
}
.status-message.is-good { color: var(--green); }
.status-message.is-bad { color: var(--red); }

.student-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.room-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .13);
  color: var(--muted);
  font-weight: 900;
}

.question-card {
  display: grid;
  gap: 18px;
}

.audio-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

audio {
  width: 100%;
  max-width: 560px;
}

.feedback-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(3, 9, 21, .42);
  border: 1px solid rgba(255, 255, 255, .11);
  color: var(--muted);
  line-height: 1.5;
}

.feedback-panel strong { color: var(--text); }

.hidden { display: none !important; }

@media (max-width: 760px) {
  .choice-grid { grid-template-columns: 1fr; }
  .student-topbar { align-items: flex-start; flex-direction: column; }
}

body.mixed-classroom-student {
  min-height: 100svh;
  overflow-x: hidden;
}

/* Match the Progress Mode left settings hero exactly: centred lockup,
   112px module tile and the same vertical rhythm. The Live Sessions brand is
   static here; only the centre question presentation changes by sub-app. */
body.mixed-classroom-student .setup-panel .mixed-panel-hero.ii-panel-hero {
  margin-bottom: 40px;
  padding: 0 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
body.mixed-classroom-student .mixed-panel-hero .ii-hero-lockup {
  display: grid;
  justify-items: center;
  gap: 18px;
}
body.mixed-classroom-student .mixed-panel-hero .ii-hero-icon {
  width: 112px;
  height: 112px;
  padding: 17px;
  border-radius: 31px;
  background: linear-gradient(135deg, #3fa6ff 0%, #2563eb 55%, #102a68 100%);
}
body.mixed-classroom-student .mixed-panel-hero .ii-hero-icon img {
  width: 82px;
  height: 82px;
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255,255,255,.16));
}
body.mixed-classroom-student .mixed-panel-hero .ii-title-lockup {
  display: grid;
  justify-items: center;
  gap: 7px;
}
body.mixed-classroom-student .mixed-panel-hero .ii-title-wave { display: none; }
body.mixed-classroom-student .mixed-panel-hero .ii-title-text {
  display: grid;
  justify-items: center;
  line-height: .96;
  font-size: 2rem;
}
body.mixed-classroom-student .mixed-panel-hero .mixed-title-main { color: rgba(255,255,255,.96); }
body.mixed-classroom-student .mixed-panel-hero .mixed-title-gradient {
  background: linear-gradient(90deg, #3fa6ff, #a66bff, #ff5dba);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.mixed-classroom-student .mixed-panel-hero .mixed-panel-intro {
  max-width: 25ch;
  margin: 8px auto 0;
}

.mixed-classroom-app-shell {
  width: min(1440px, calc(100% - 28px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 18px 0 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.brand,
.topbar-actions,
.topbar-module-chip,
.topbar-link {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 0;
}

.brand-wave,
.mixed-title-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.brand-wave {
  width: 44px;
  height: 34px;
}

.brand-wave span,
.mixed-title-wave span,
.panel-heading-wave span,
.listening-visual span {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: var(--gradient);
}

.brand-wave span:nth-child(1) { height: 12px; }
.brand-wave span:nth-child(2) { height: 22px; }
.brand-wave span:nth-child(3) { height: 30px; }
.brand-wave span:nth-child(4) { height: 18px; }
.brand-wave span:nth-child(5) { height: 28px; }
.brand-wave span:nth-child(6) { height: 16px; }
.brand-wave span:nth-child(7) { height: 24px; }

.refined-logo .wordmark {
  display: inline-flex;
  gap: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
}

.wordmark-echo {
  color: var(--text);
}

.wordmark-aural {
  background: linear-gradient(90deg, #3FA6FF 0%, #5BC8FF 48%, #27E1C1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Chart apps: accent second word. Uncharted (mixed, exam-lab, melodic-intervals): white. */
.topbar-module-wordmark span:last-child,
.mixed-title-gradient,
.console-title-gradient,
.mixed-answer-title span:last-child {
  background: none;
  color: var(--module-accent, rgba(255, 255, 255, .96));
  -webkit-text-fill-color: var(--module-accent, rgba(255, 255, 255, .96));
}

body[data-module="instrument-identifier"] {
  --module-accent: #3FA6FF;
}

body[data-module="melody-master"] {
  --module-accent: #FF5DBA;
}

body[data-module="texture-trainer"] {
  --module-accent: #27E1C1;
}

body[data-module="meter-master"] {
  --module-accent: #FFAA2B;
}

body[data-module="harmony-explorer"] {
  --module-accent: #A66BFF;
}

.topbar-actions {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-module-chip,
.topbar-link {
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-weight: 900;
}

.topbar-module-icon,
.mixed-hero-icon,
.mixed-console-icon,
.mixed-answer-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 68% 22%, rgba(56,189,248,.24), transparent 38%),
    radial-gradient(circle at 22% 88%, rgba(168,85,247,.2), transparent 42%),
    linear-gradient(145deg, rgba(7,17,31,.98), rgba(13,30,60,.94));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 12px 24px rgba(7,17,31,.16);
}

.topbar-module-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.topbar-module-icon img,
.mixed-hero-icon img,
.mixed-console-icon img,
.mixed-answer-icon img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(56,189,248,.18));
}

.topbar-module-wordmark,
.mixed-title-text,
.console-title-text,
.mixed-answer-title {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-weight: 950;
  letter-spacing: -.045em;
}

.three-panel-layout {
  display: grid;
  grid-template-columns: minmax(230px, .78fr) minmax(420px, 1.48fr) minmax(240px, .82fr);
  gap: 16px;
  align-items: stretch;
}

.panel {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 108px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 10%, rgba(56,189,248,.13), transparent 34%),
    radial-gradient(circle at 12% 96%, rgba(251,113,133,.10), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.088), rgba(255,255,255,.045));
  box-shadow: 0 24px 62px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
  padding: clamp(16px, 2vw, 22px);
}

.quiz-panel {
  min-width: 0;
}

.panel-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-section-heading-centre {
  justify-content: center;
}

.panel-heading-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.panel-heading-wave span:nth-child(1) { height: 10px; }
.panel-heading-wave span:nth-child(2) { height: 18px; }
.panel-heading-wave span:nth-child(3) { height: 13px; }

.panel-section-heading h2 {
  margin: 0;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.mixed-panel-hero {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 16px;
  background: rgba(3,9,21,.28);
  margin-bottom: 16px;
}

.mixed-hero-lockup,
.mixed-console-lockup,
.mixed-answer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mixed-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 21px;
  flex: 0 0 auto;
}

.mixed-title-lockup {
  display: grid;
  gap: 7px;
}

.mixed-title-wave span:nth-child(1) { height: 12px; }
.mixed-title-wave span:nth-child(2) { height: 20px; }
.mixed-title-wave span:nth-child(3) { height: 28px; }
.mixed-title-wave span:nth-child(4) { height: 16px; }
.mixed-title-wave span:nth-child(5) { height: 24px; }

.mixed-title-text {
  display: grid;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: .9;
}

.mixed-panel-intro,
.mixed-answer-hint {
  color: var(--muted);
  line-height: 1.45;
  margin: 12px 0 0;
}

.mixed-classroom-info-stack {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.mixed-classroom-info-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(3,9,21,.30);
}

.mixed-classroom-info-tile span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.mixed-classroom-info-tile strong {
  color: var(--text);
  text-align: right;
  font-weight: 950;
}

.mixed-audio-button {
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 28px rgba(0,0,0,.14);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.mixed-audio-button:hover,
.mixed-audio-button:focus-visible {
  border-color: rgba(91, 200, 255, .72);
  background: rgba(63, 166, 255, .12);
  outline: none;
  transform: translateY(-1px);
}

.quiz-header,
.statsRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-header {
  margin-bottom: 10px;
}

.quiz-header p,
.statsRow p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.progressOuter {
  overflow: hidden;
  flex: 1;
  height: 10px;
  min-width: 120px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
}

#progressInner {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
  transition: width .25s ease;
}

.statsRow {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(3,9,21,.24);
  border: 1px solid rgba(255,255,255,.09);
}

.listening-console {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.13);
  background:
    radial-gradient(circle at 50% 18%, rgba(56,189,248,.15), transparent 26%),
    radial-gradient(circle at 80% 82%, rgba(168,85,247,.13), transparent 32%),
    rgba(2,8,23,.38);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  text-align: center;
}

/* Live Session iframe host — sized the same way Progress Mode sizes its
   own #appFrame (modules/progress-mode/style.css's .pm-frame-wrap/.pm-frame),
   just with an explicit height instead of inheriting one from a grid
   ancestor, since student-shell.html's .quiz-panel isn't that grid. */
.live-app-panel {
  min-height: 520px;
  height: 72vh;
  max-height: 900px;
}

.live-app-frame-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  max-height: inherit;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(2,8,23,.38);
  overflow: hidden;
}

.live-app-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: rgba(2,8,23,.38);
}

.live-app-frame-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font: 600 15px/1.4 inherit;
  color: rgba(255,255,255,.82);
  background: rgba(2,8,23,.72);
  pointer-events: none;
}

.live-app-frame-loading.hidden {
  display: none;
}

/* Melody Master dictation uses the PM score/notes artwork, which deliberately
   grows beyond the normal centre tile while it is expanded.  The iframe tells
   its host about that state through EAProgressModeSetMmScoreExpanded; make the
   Live Session host provide the same full-viewport boundary PM provides. */
.live-app-panel.mm-score-expanded {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100vw;
  height: 100vh;
  min-height: 0;
  max-height: none;
  padding: 14px;
  box-sizing: border-box;
  background: rgba(2, 8, 23, .94);
}

/* The ordinary classroom panels intentionally clip their contents and use
   backdrop-filter. Those styles create a containing block/stacking context
   that would clip a fixed MM score, so remove them for the same duration PM
   removes its panel containment. */
body.mm-score-expanded {
  overflow: hidden;
}

body.mm-score-expanded .three-panel-layout,
body.mm-score-expanded .panel,
body.mm-score-expanded .quiz-panel {
  overflow: visible !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
  filter: none !important;
  contain: none !important;
  isolation: auto !important;
}

body.mm-score-expanded .quiz-panel {
  z-index: 120 !important;
}

.live-app-panel.mm-score-expanded .live-app-frame-wrap,
.live-app-panel.mm-score-expanded .live-app-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
}

.live-app-panel.mm-score-expanded .live-app-frame-wrap {
  border-radius: 0;
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}

.live-app-panel.mm-score-expanded .live-app-frame {
  background: transparent;
}

/* In Live Sessions the teacher owns playback and question navigation; the
   embedded PM app provides the answer controls only. */
#manualPlayButton { display: none !important; }

.console-orbit {
  position: absolute;
  width: min(72%, 420px);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,.16);
  box-shadow: 0 0 0 42px rgba(56,189,248,.026), 0 0 90px rgba(56,189,248,.08);
  pointer-events: none;
}

.console-ready-brand,
.console-heading,
.console-question-kicker,
.mixed-answer-area,
.console-actions,
.feedback-panel {
  position: relative;
  z-index: 2;
}

.mixed-console-icon {
  width: 72px;
  height: 72px;
  border-radius: 21px;
}

.console-title-text {
  display: grid;
  text-align: left;
  font-size: clamp(1.45rem, 3vw, 2.12rem);
  line-height: .9;
}

.listening-visual {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 54px;
}

.listening-visual span:nth-child(1) { height: 18px; }
.listening-visual span:nth-child(2) { height: 32px; }
.listening-visual span:nth-child(3) { height: 48px; }
.listening-visual span:nth-child(4) { height: 30px; }
.listening-visual span:nth-child(5) { height: 54px; }
.listening-visual span:nth-child(6) { height: 25px; }
.listening-visual span:nth-child(7) { height: 40px; }

.console-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  line-height: .95;
  letter-spacing: -.065em;
}

.console-heading p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-weight: 820;
}

.mixed-answer-area {
  width: min(100%, 720px);
}

.mixed-answer-area.is-ii-question {
  width: min(100%, 820px);
}

.mixed-answer-area .choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 14px 0 0;
}

.mixed-answer-area.is-ii-question .answer-grid {
  width: 100%;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.mixed-answer-area.is-ii-question .answer-option {
  min-height: clamp(98px, 12.1vh, 126px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .94);
  background:
    radial-gradient(circle at 84% 16%, rgba(56, 189, 248, .12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .070), rgba(255, 255, 255, .042));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .17);
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.mixed-answer-area.is-ii-question .answer-option:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, .44);
  background:
    radial-gradient(circle at 84% 16%, rgba(56, 189, 248, .19), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .090), rgba(255, 255, 255, .054));
  box-shadow: 0 20px 44px rgba(56, 189, 248, .11);
}

.mixed-answer-area.is-ii-question .answer-option:disabled {
  opacity: .70;
}

.mixed-answer-area.is-ii-question .answer-option.is-selected {
  border-color: rgba(56, 189, 248, .76);
  background:
    radial-gradient(circle at 30% 18%, rgba(56, 189, 248, .20), transparent 45%),
    rgba(255, 255, 255, .105);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .10), 0 18px 42px rgba(56, 189, 248, .08);
}

.mixed-answer-area.is-ii-question .answer-option.is-submitted:not(.correct):not(.wrong) {
  opacity: .56;
}

.mixed-answer-area.is-ii-question .answer-option.correct {
  border-color: rgba(110, 231, 183, .62);
  background:
    radial-gradient(circle at 84% 16%, rgba(110, 231, 183, .22), transparent 38%),
    rgba(110, 231, 183, .085);
}

.mixed-answer-area.is-ii-question .answer-option.wrong {
  border-color: rgba(251, 113, 133, .62);
  background:
    radial-gradient(circle at 84% 16%, rgba(251, 113, 133, .22), transparent 38%),
    rgba(251, 113, 133, .08);
}

.mixed-answer-area.is-ii-question .option-icon,
.mixed-answer-area.is-ii-question .instrument-icon-shell {
  display: grid;
  place-items: center;
}

.mixed-answer-area.is-ii-question .option-icon .instrument-icon-shell {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.mixed-answer-area.is-ii-question .instrument-icon-shell {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .13);
  color: white;
  background:
    radial-gradient(circle at 70% 18%, rgba(56, 189, 248, .17), transparent 42%),
    rgba(5, 13, 28, .52);
}

.mixed-answer-area.is-ii-question .instrument-icon-img {
  display: block;
  width: 88%;
  height: 88%;
  visibility: visible;
  opacity: 1;
  object-fit: contain;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 5px rgba(255, 255, 255, .12))
    drop-shadow(0 0 11px rgba(56, 189, 248, .12));
}

.mixed-answer-area.is-ii-question .icon-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
}

.mixed-answer-area.is-ii-question .option-label {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.02rem, 1.2vw, 1.26rem);
  font-weight: 880;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.mixed-answer-area.is-interval-question .choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.split-interval-answer {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 12px;
  margin-top: 12px;
}

.split-interval-column {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: rgba(3,9,21,.24);
}

.split-interval-column p,
.split-interval-status {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.split-choice-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 8px;
}

.split-choice-list-numbers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split-choice-button {
  min-height: 40px;
  padding: 7px 9px;
  border-radius: 14px;
  font-size: clamp(.72rem, .9vw, .9rem);
  line-height: 1.05;
}

.split-choice-button:disabled:not(.is-selected) {
  cursor: not-allowed;
  opacity: .34;
}

.split-interval-status {
  margin-top: 9px;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
}

.choice-button {
  min-height: 54px;
}

.choice-button.is-selected {
  color: #dff7ff;
}

.mixed-submit-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.play-button,
.mixed-submit-button {
  min-width: 190px;
}

.mixed-answer-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 16px;
  background: rgba(3,9,21,.30);
}

.mixed-answer-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  flex: 0 0 auto;
}

.mixed-answer-title {
  display: grid;
  font-size: 1.3rem;
  line-height: .94;
}

.feedback-panel.is-correct {
  border-color: rgba(110,231,183,.32);
  background: rgba(16,185,129,.10);
}

.feedback-panel.is-incorrect {
  border-color: rgba(251,113,133,.32);
  background: rgba(251,113,133,.09);
}

body[data-module="melodic-intervals"] .quiz-panel {
  padding: clamp(12px, 1.55vw, 18px);
}

body[data-module="melodic-intervals"] .quiz-header {
  margin-bottom: 6px;
}

body[data-module="melodic-intervals"] .statsRow {
  margin-bottom: 8px;
  padding: 7px 10px;
  font-size: .82rem;
}

body[data-module="melodic-intervals"] .listening-console {
  min-height: clamp(430px, calc(100svh - 255px), 500px);
  align-content: start;
  gap: clamp(5px, .78vh, 9px);
  padding: clamp(10px, 1.4vw, 16px);
}

body[data-module="melodic-intervals"] .mixed-console-icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
}

body[data-module="melodic-intervals"] .console-title-text {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

body[data-module="melodic-intervals"] .listening-visual {
  min-height: 22px;
  gap: 4px;
}

body[data-module="melodic-intervals"] .listening-visual span:nth-child(1) { height: 8px; }
body[data-module="melodic-intervals"] .listening-visual span:nth-child(2) { height: 15px; }
body[data-module="melodic-intervals"] .listening-visual span:nth-child(3) { height: 22px; }
body[data-module="melodic-intervals"] .listening-visual span:nth-child(4) { height: 14px; }
body[data-module="melodic-intervals"] .listening-visual span:nth-child(5) { height: 25px; }
body[data-module="melodic-intervals"] .listening-visual span:nth-child(6) { height: 12px; }
body[data-module="melodic-intervals"] .listening-visual span:nth-child(7) { height: 18px; }

body[data-module="melodic-intervals"] .console-heading h1 {
  margin-bottom: 4px;
  font-size: clamp(1.32rem, 2.5vw, 2rem);
}

body[data-module="melodic-intervals"] .console-heading p {
  max-width: 52ch;
  font-size: .82rem;
  line-height: 1.18;
}

body[data-module="melodic-intervals"] .mixed-answer-area {
  width: min(100%, 620px);
}

body[data-module="melodic-intervals"] .mixed-mi-stave-card {
  width: min(100%, 480px);
  margin: 0 auto 6px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
}

body[data-module="melodic-intervals"] .mixed-mi-stave-stage {
  border-radius: 12px;
}

body[data-module="melodic-intervals"] .mixed-mi-note-hint {
  margin-top: 2px;
  font-size: .66rem;
  line-height: 1.12;
}

body[data-module="melodic-intervals"] .choice-grid {
  gap: 7px;
  margin-top: 8px;
}

body[data-module="melodic-intervals"] .choice-button {
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 14px;
  font-size: .82rem;
  line-height: 1.05;
}

body[data-module="melodic-intervals"] .split-interval-answer {
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 8px;
  margin-top: 6px;
}

body[data-module="melodic-intervals"] .split-interval-column {
  padding: 7px;
  border-radius: 14px;
}

body[data-module="melodic-intervals"] .split-interval-column p,
body[data-module="melodic-intervals"] .split-interval-status {
  font-size: .66rem;
}

body[data-module="melodic-intervals"] .split-choice-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 5px;
}

body[data-module="melodic-intervals"] .split-choice-list-numbers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-module="melodic-intervals"] .split-choice-button {
  min-height: 32px;
  padding: 5px 6px;
  border-radius: 11px;
  font-size: clamp(.62rem, .78vw, .76rem);
}

body[data-module="melodic-intervals"] .split-interval-status {
  margin-top: 5px;
}

body[data-module="melodic-intervals"] .mixed-submit-actions {
  gap: 8px;
}

body[data-module="melodic-intervals"] .play-button,
body[data-module="melodic-intervals"] .mixed-submit-button {
  min-width: 150px;
  padding: 10px 14px;
  font-size: .84rem;
}

@media (max-width: 1120px) {
  .three-panel-layout {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: auto;
  }

  .listening-console {
    min-height: 440px;
  }
}

@media (max-width: 760px) {
  .mixed-classroom-app-shell {
    width: min(100% - 18px, 720px);
    padding-top: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .quiz-header,
  .statsRow {
    align-items: stretch;
    flex-direction: column;
  }

  .console-title-text,
  .mixed-title-text {
    font-size: 1.45rem;
  }

  .mixed-console-lockup,
  .mixed-hero-lockup,
  .mixed-answer-brand {
    align-items: center;
  }

  .listening-console {
    min-height: 420px;
  }

  .mixed-answer-area.is-ii-question .answer-grid {
    grid-template-columns: 1fr;
  }

  .mixed-answer-area.is-ii-question .answer-option {
    min-height: 102px;
    grid-template-columns: 84px 1fr;
  }

  .mixed-answer-area.is-ii-question .option-icon .instrument-icon-shell {
    width: 84px;
    height: 84px;
  }
}

.topbar-module-icon img[src*=".png"],
.mixed-hero-icon img[src*=".png"],
.mixed-console-icon img[src*=".png"],
.mixed-answer-icon img[src*=".png"],
.examlab-card img[src*=".png"] {
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit;
  object-fit: contain;
  filter: none !important;
}

.topbar-module-icon,
.mixed-hero-icon,
.mixed-console-icon,
.mixed-answer-icon {
  position: relative;
  overflow: hidden;
}

.topbar-module-icon img[src*=".png"],
.mixed-hero-icon img[src*=".png"],
.mixed-console-icon img[src*=".png"],
.mixed-answer-icon img[src*=".png"] {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.exam-lab-live-brand img[src*=".png"],
.examlab-card img[src*=".png"] {
  border-radius: 15px;
  object-fit: cover;
  transform: none;
}
.mixed-generic-visual {
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  min-height: 110px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}

.mixed-generic-visual img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.mixed-key-signature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 140px;
  margin-bottom: 16px;
  border-radius: 16px;
  color: #111827;
  background: repeating-linear-gradient(to bottom, #fff 0, #fff 18px, #667085 19px, #fff 20px);
}

.mixed-key-clef {
  font-size: 5rem;
  line-height: 1;
}

.mixed-key-accidentals {
  max-width: 300px;
  font-size: 2.6rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
}
