:root {
  --bg-0: #030714;
  --bg-1: #081426;
  --panel: rgba(12, 24, 45, 0.82);
  --panel-strong: rgba(9, 20, 39, 0.94);
  --panel-border: rgba(148, 163, 184, 0.21);
  --blue: #38bdf8;
  --blue-strong: #60a5fa;
  --royal-blue: #4a90e2;
  --purple: #8b5cf6;
  --violet: #a855f7;
  --purple-soft: #c084fc;
  --ea-gradient: linear-gradient(135deg, #38bdf8 0%, #4a90e2 34%, #8b5cf6 72%, #a855f7 100%);
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --text: #eef6ff;
  --muted: #a9b7ca;
  --soft: rgba(226, 232, 240, 0.76);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --radius: 28px;
  --radius-sm: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  height: 100%;
  min-height: 100svh;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at 18% 5%, rgba(56, 189, 248, .20), transparent 30%),
    radial-gradient(circle at 82% 2%, rgba(168, 85, 247, .14), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(139, 92, 246, .16), transparent 40%),
    linear-gradient(145deg, var(--bg-0), var(--bg-1) 52%, #050b19);
  overflow: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell {
  width: min(1740px, calc(100vw - 34px));
  height: 100svh;
  margin: 0 auto;
  padding: 12px 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 15px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 22px;
  background: rgba(6,15,29,.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0,0,0,.32);
}
.brand, .topbar-link, .topbar-module-chip { color: inherit; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-wave, .panel-heading-wave { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.brand-wave { width: 62px; height: 50px; flex: 0 0 auto; }
.brand-wave span, .panel-heading-wave span {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: var(--blue);
  transform-origin: 50% 50%;
  animation: echoWaveRollRefined 1.45s ease-in-out infinite;
  box-shadow: 0 0 9px rgba(56,189,248,.28), 0 0 18px rgba(168,85,247,.14);
}
.brand-wave span:nth-child(1) { height: 12px; background: linear-gradient(180deg, #38bdf8, #4a90e2); animation-delay: 0s; }
.brand-wave span:nth-child(2) { height: 24px; background: linear-gradient(180deg, #38bdf8, #4a90e2); animation-delay: .09s; }
.brand-wave span:nth-child(3) { height: 36px; background: linear-gradient(180deg, #60a5fa, #4a90e2 48%, #8b5cf6); animation-delay: .18s; }
.brand-wave span:nth-child(4) { height: 46px; background: linear-gradient(180deg, #7dd3fc, #4a90e2 38%, #8b5cf6 76%, #a855f7); animation-delay: .27s; }
.brand-wave span:nth-child(5) { height: 34px; background: linear-gradient(180deg, #a78bfa, #8b5cf6 52%, #c084fc); animation-delay: .36s; }
.brand-wave span:nth-child(6) { height: 24px; background: linear-gradient(180deg, #c084fc, #a855f7); animation-delay: .45s; }
.brand-wave span:nth-child(7) { height: 13px; background: linear-gradient(180deg, #a855f7, #8b5cf6); animation-delay: .54s; }
.wordmark, .mini-wordmark { letter-spacing: -.04em; font-weight: 900; }
.wordmark { font-size: 1.42rem; }
.wordmark-echo, .mini-wordmark-echo { color: #f8fbff; }
.wordmark-aural, .mini-wordmark-aural {
  background: linear-gradient(90deg, #3FA6FF 0%, #5BC8FF 48%, #27E1C1 100%);
  background-size: 170% 170%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
  animation: echoTextGlow 6.4s ease-in-out infinite;
}
/* Exam Lab is not on the brand chart — keep module labels white on blue tile. */
.topbar-module-chip .mini-wordmark-aural,
.topbar-el-gradient,
.console-title-gradient {
  background: none;
  color: rgba(255, 255, 255, .96);
  -webkit-text-fill-color: rgba(255, 255, 255, .96);
  animation: none;
}
.topbar-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.topbar-link, .topbar-module-chip, .topbar-question-chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px;
  border: 1px solid rgba(148,163,184,.2); background: rgba(15,23,42,.56); color: var(--soft);
}
.topbar-link { padding: 0 14px; font-size: .86rem; font-weight: 760; transition: .18s ease; }
.topbar-link:hover, .topbar-module-chip:hover { transform: translateY(-1px); border-color: rgba(56,189,248,.58); background: rgba(30,41,59,.74); }
.topbar-module-chip { gap: 8px; padding: 4px 12px 4px 7px; }
.topbar-module-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 14px; background: linear-gradient(145deg, rgba(56,189,248,.17), rgba(139,92,246,.18)); border: 1px solid rgba(96,165,250,.34); }
.topbar-module-icon img { width: 22px; height: 22px; }
.topbar-el-mark { display: inline-flex; font-weight: 950; font-size: 1rem; letter-spacing: -.08em; }
.topbar-el-mark strong { color: var(--purple-soft); }
.topbar-question-chip { padding: 0 12px; color: #7dd3fc; font-size: .76rem; font-weight: 900; letter-spacing: .12em; }
.extract-selector-wrap { display: inline-flex; }
select.topbar-question-chip {
  appearance: auto;
  min-width: 94px;
  padding-right: 8px;
  outline: none;
  cursor: pointer;
}
select.topbar-question-chip:focus-visible { border-color: rgba(56,189,248,.72); box-shadow: 0 0 0 3px rgba(56,189,248,.12); }
.back-label { color: var(--muted); margin-right: 4px; }

.exam-layout { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(340px, .78fr); gap: 16px; align-items: stretch; }
.panel { position: relative; overflow: hidden; border: 1px solid var(--panel-border); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.072), transparent 28%), var(--panel); backdrop-filter: blur(26px); box-shadow: var(--shadow); }
.panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at 50% 0%, rgba(56,189,248,.17), transparent 48%); }
.panel > * { position: relative; z-index: 1; }
.score-panel { min-width: 0; min-height: 0; height: 100%; padding: 12px 19px 19px; display: flex; flex-direction: column; }
.answer-panel { min-width: 0; min-height: 0; height: 100%; padding: 12px 17px 0; display: flex; flex-direction: column; background: linear-gradient(145deg, rgba(255,255,255,.065), transparent 30%), rgba(9,20,39,.9); }
.panel-heading-row, .answer-panel-top { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-section-heading { display: flex; align-items: center; gap: 10px; }
.panel-section-heading h1, .panel-section-heading h2 { margin: 0; color: #f8fbff; font-size: clamp(1.1rem, 1.5vw, 1.48rem); letter-spacing: -.025em; }
.panel-heading-wave span { width: 4px; }
.panel-heading-wave span:nth-child(1) { height: 12px; }
.panel-heading-wave span:nth-child(2) { height: 22px; animation-delay: .12s; background: var(--blue-strong); }
.panel-heading-wave span:nth-child(3) { height: 15px; animation-delay: .24s; background: var(--purple); }
.eyebrow { margin: 0; color: #7dd3fc; font-weight: 900; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; }
.question-meta { display: flex; gap: 8px; }
.question-meta span { padding: 8px 11px; border: 1px solid rgba(148,163,184,.18); border-radius: 999px; background: rgba(15,23,42,.58); color: var(--muted); font-size: .75rem; font-weight: 850; }
.question-meta span:first-child { color: #7dd3fc; }

.audio-console { margin: 15px 0 14px; padding: 12px; display: grid; grid-template-columns: auto auto minmax(140px,1fr); align-items: center; gap: 12px; border: 1px solid rgba(148,163,184,.18); border-radius: 20px; background: rgba(4,12,25,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.play-control { min-width: 200px; display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 10px; border: 1px solid rgba(96,165,250,.42); border-radius: 16px; color: white; background: linear-gradient(135deg, rgba(139,92,246,.30), rgba(56,189,248,.22)); box-shadow: 0 12px 30px rgba(56,189,248,.12); text-align: left; }
.play-control:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(168,85,247,.62); }
.play-icon { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--blue)); box-shadow: 0 0 22px rgba(56,189,248,.36); position: relative; flex: 0 0 auto; }
.play-icon::after { content: ""; position: absolute; left: 15px; top: 11px; border-left: 13px solid white; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.play-control.is-playing .play-icon::after { left: 12px; top: 11px; width: 4px; height: 16px; border: 0; background: white; box-shadow: 9px 0 0 white; }
.play-copy { display: grid; gap: 2px; }
.play-copy strong { font-size: .94rem; }
.play-copy small { color: var(--muted); font-size: .72rem; }
.play-limit { min-width: 116px; }
.play-limit-label { display: block; color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 850; margin-bottom: 5px; }
.play-pips { display: flex; gap: 5px; margin-bottom: 4px; }
.play-pips i { width: 19px; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--blue)); box-shadow: 0 0 8px rgba(56,189,248,.25); }
.play-pips i.used { background: rgba(148,163,184,.18); box-shadow: none; }
.play-limit strong { font-size: .73rem; color: var(--soft); }
.audio-progress-wrap { min-width: 130px; }
.audio-progress { height: 7px; border-radius: 999px; background: rgba(148,163,184,.15); overflow: hidden; }
.audio-progress span { display: block; width: 0%; height: 100%; background: linear-gradient(90deg, var(--purple), var(--blue)); box-shadow: 0 0 12px rgba(56,189,248,.45); }
.time-row { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font-size: .69rem; font-variant-numeric: tabular-nums; }
.score-stage { position: relative; flex: 1; min-height: 0; border: 1px solid rgba(96,165,250,.28); border-radius: 22px; background: #fdfdfc; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 16px 42px rgba(0,0,0,.24); }
.score-toolbar { position: absolute; right: 10px; top: 10px; z-index: 5; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 12px; background: rgba(7,17,31,.86); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.score-toolbar button, .score-toolbar span { min-width: 31px; height: 29px; border: 0; border-radius: 8px; display: grid; place-items: center; color: white; background: rgba(255,255,255,.08); font-size: .76rem; font-weight: 850; }
.score-toolbar button:hover { background: rgba(56,189,248,.23); }
.score-toolbar button:last-child { padding: 0 9px; }
.score-scroll { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; padding: 22px 12px 12px; }
.score-canvas { position: relative; width: 100%; transform-origin: top left; transition: width .18s ease; }
.score-canvas img { display: block; width: 100%; height: auto; user-select: none; }
.score-masks { position: absolute; inset: 0; pointer-events: none; }
.score-mask { position: absolute; display: block; background: #fff; }
.score-mask-blank-stave svg { display: block; width: 100%; height: 100%; }
.score-mask-blank-stave line { stroke: #111; stroke-width: 1.4; }
.score-instruction { margin: 10px 4px 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.aural-only-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 58px);
  border: 1px solid rgba(96,165,250,.28);
  border-radius: 22px;
  background:
    linear-gradient(rgba(96,165,250,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 44%, rgba(56,189,248,.14), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(139,92,246,.16), transparent 53%),
    rgba(4,12,25,.82);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 16px 42px rgba(0,0,0,.24);
}
.aural-stage-glow {
  position: absolute;
  width: min(70%, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.12), rgba(139,92,246,.055) 42%, transparent 68%);
  filter: blur(4px);
  animation: auralGlowPulse 4.6s ease-in-out infinite;
}
.aural-stage-rings { position: absolute; inset: 50% auto auto 50%; width: min(60vw, 560px); aspect-ratio: 1; transform: translate(-50%,-50%); }
.aural-stage-rings i {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(125,211,252,.16);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  animation: auralRingPulse 4.2s ease-out infinite;
}
.aural-stage-rings i:nth-child(2) { animation-delay: 1.4s; }
.aural-stage-rings i:nth-child(3) { animation-delay: 2.8s; }
.aural-only-content { position: relative; z-index: 2; width: min(680px, 92%); display: grid; justify-items: center; text-align: center; }
.aural-only-content > .eyebrow { color: #c4b5fd; }
.aural-only-content h2 { margin: 20px 0 7px; color: #f8fbff; font-size: clamp(1.75rem, 3.2vw, 3.15rem); letter-spacing: -.045em; line-height: 1; }
.aural-only-content > p:not(.eyebrow) { max-width: 550px; margin: 0; color: var(--muted); font-size: clamp(.84rem, 1.05vw, 1rem); line-height: 1.55; }
.aural-passage-guide { width: min(620px, 100%); margin-top: 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.aural-passage-guide div { min-height: 64px; padding: 10px 12px; border: 1px solid rgba(96,165,250,.24); border-radius: 15px; display: grid; align-content: center; gap: 3px; text-align: left; background: linear-gradient(135deg, rgba(139,92,246,.13), rgba(56,189,248,.09)); }
.aural-passage-guide strong { color: #7dd3fc; font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.aural-passage-guide span { color: rgba(238,246,255,.88); font-size: .78rem; font-weight: 760; line-height: 1.35; }
.aural-stage-wave { height: clamp(88px, 11vw, 136px); margin-top: 25px; display: flex; align-items: center; justify-content: center; gap: clamp(6px, .8vw, 11px); }
.aural-stage-wave span {
  width: clamp(5px, .58vw, 8px);
  height: var(--wave-height, 35%);
  border-radius: 999px;
  background: linear-gradient(180deg, #7dd3fc 0%, #4a90e2 42%, #8b5cf6 76%, #c084fc 100%);
  box-shadow: 0 0 14px rgba(56,189,248,.26), 0 0 30px rgba(139,92,246,.13);
  transform-origin: center;
  animation: echoWaveRollRefined 1.45s ease-in-out infinite;
}
.aural-stage-wave span:nth-child(1), .aural-stage-wave span:nth-child(15) { --wave-height: 18%; }
.aural-stage-wave span:nth-child(2), .aural-stage-wave span:nth-child(14) { --wave-height: 30%; animation-delay: .08s; }
.aural-stage-wave span:nth-child(3), .aural-stage-wave span:nth-child(13) { --wave-height: 45%; animation-delay: .16s; }
.aural-stage-wave span:nth-child(4), .aural-stage-wave span:nth-child(12) { --wave-height: 68%; animation-delay: .24s; }
.aural-stage-wave span:nth-child(5), .aural-stage-wave span:nth-child(11) { --wave-height: 82%; animation-delay: .32s; }
.aural-stage-wave span:nth-child(6), .aural-stage-wave span:nth-child(10) { --wave-height: 58%; animation-delay: .40s; }
.aural-stage-wave span:nth-child(7), .aural-stage-wave span:nth-child(9) { --wave-height: 76%; animation-delay: .48s; }
.aural-stage-wave span:nth-child(8) { --wave-height: 100%; animation-delay: .56s; }
.aural-listening-steps { margin-top: clamp(24px, 4vh, 46px); display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--soft); }
.aural-listening-steps span { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 850; letter-spacing: .035em; }
.aural-listening-steps strong { color: #7dd3fc; font-size: .62rem; letter-spacing: .12em; }
.aural-listening-steps i { width: clamp(26px, 4vw, 64px); height: 1px; background: linear-gradient(90deg, rgba(56,189,248,.14), rgba(168,85,247,.52), rgba(56,189,248,.14)); }

.completion-ring { width: 42px; height: 42px; position: relative; flex: 0 0 auto; }
.completion-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.completion-ring circle { fill: none; stroke-width: 4; stroke: rgba(148,163,184,.18); }
.completion-ring circle:last-child { stroke: url(#none); stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset .25s ease; }
.completion-ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: .69rem; color: var(--soft); }
#answerForm { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.question-list { min-height: 0; overflow-y: auto; padding: 3px 3px 110px 0; scrollbar-color: rgba(96,165,250,.45) transparent; }
.question-card { margin-bottom: 10px; padding: 13px; border: 1px solid rgba(148,163,184,.17); border-radius: 17px; background: rgba(5,13,27,.58); transition: border-color .18s ease, background .18s ease; }
.question-card:focus-within { border-color: rgba(96,165,250,.55); background: rgba(10,25,47,.72); }
.question-card.is-correct { border-color: rgba(52,211,153,.54); background: rgba(6,78,59,.17); }
.question-card.is-incorrect { border-color: rgba(251,113,133,.50); background: rgba(127,29,29,.14); }
.question-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; }
.question-number { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, rgba(139,92,246,.34), rgba(56,189,248,.24)); color: white; font-weight: 900; font-size: .78rem; }
.question-copy { flex: 1; }
.question-copy label, .question-copy .question-label { display: block; color: #f6f9ff; font-weight: 780; font-size: .88rem; line-height: 1.32; }
.question-reference { display: inline-block; margin-top: 4px; color: #7dd3fc; font-size: .65rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.question-marks { color: var(--muted); font-size: .69rem; white-space: nowrap; }
.text-answer, .extended-answer { width: 100%; border: 1px solid rgba(148,163,184,.22); border-radius: 12px; color: white; background: rgba(15,23,42,.68); outline: none; transition: .18s ease; }
.text-answer { min-height: 41px; padding: 9px 11px; }
.extended-answer { min-height: 90px; padding: 10px 11px; resize: vertical; line-height: 1.45; }
.text-answer:focus, .extended-answer:focus { border-color: rgba(96,165,250,.72); box-shadow: 0 0 0 3px rgba(56,189,248,.10); }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.choice-option { position: relative; }
.choice-option input { position: absolute; opacity: 0; }
.choice-option span { min-height: 38px; display: grid; place-items: center; padding: 7px; border: 1px solid rgba(148,163,184,.2); border-radius: 11px; background: rgba(15,23,42,.56); color: var(--soft); font-size: .78rem; font-weight: 760; cursor: pointer; }
.choice-option input:checked + span { border-color: rgba(96,165,250,.75); color: white; background: linear-gradient(135deg, rgba(139,92,246,.32), rgba(56,189,248,.22)); box-shadow: 0 0 0 2px rgba(56,189,248,.08); }
.question-card[data-question-id="EXL002-Q04"] .choice-option span { text-align: center; }
.question-card[data-question-id="EXL004-Q04"] .choice-option span { text-align: center; }
.rhythm-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rhythm-choice-option { position: relative; min-width: 0; }
.rhythm-choice-option input { position: absolute; opacity: 0; }
.rhythm-choice-option > span { min-height: 94px; display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 5px; padding: 7px 8px; border: 1px solid rgba(148,163,184,.2); border-radius: 12px; color: var(--soft); background: rgba(15,23,42,.56); cursor: pointer; }
.rhythm-choice-option > span > strong { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(135deg, rgba(139,92,246,.46), rgba(56,189,248,.34)); font-size: .76rem; }
.rhythm-choice-option input:checked + span { border-color: rgba(96,165,250,.75); background: linear-gradient(135deg, rgba(139,92,246,.27), rgba(56,189,248,.19)); box-shadow: 0 0 0 2px rgba(56,189,248,.08); }
.rhythm-notation { width: 100%; min-width: 0; height: 74px; overflow: visible; }
.rhythm-staff path { fill: none; stroke: rgba(226,232,240,.72); stroke-width: 1; }
.rhythm-staff .rhythm-barline { stroke-width: 1.5; }
.rhythm-notes { fill: #f8fbff; stroke: #f8fbff; stroke-width: 1.7; stroke-linecap: square; }
.rhythm-notes .rhythm-beam, .rhythm-notes .rhythm-dot { stroke: none; }
.question-feedback { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(148,163,184,.13); color: var(--muted); font-size: .73rem; line-height: 1.45; }
.question-feedback strong { color: var(--text); }
.route-link { display: inline-flex; margin-top: 7px; padding: 6px 9px; border-radius: 999px; color: #7dd3fc; border: 1px solid rgba(56,189,248,.28); background: rgba(56,189,248,.08); font-size: .68rem; font-weight: 850; }
.route-link.planned { color: var(--muted); border-color: rgba(148,163,184,.17); pointer-events: none; }
.mark-point-feedback { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; }
.mark-point-feedback li::marker { color: var(--muted); }
.mark-point-feedback .is-credited, .mark-point-feedback .is-credited::marker { color: #86efac; }
.mark-point-feedback .is-uncredited, .mark-point-feedback .is-uncredited::marker { color: #fda4af; }
.answer-coach-feedback { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(148,163,184,.13); }
.answer-coach-feedback > span { color: #7dd3fc; font-size: .65rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.answer-coach-feedback p { margin: 8px 0 0; }
.answer-coach-issues { display: grid; gap: 4px; margin-top: 8px; color: #fda4af; }
.submit-dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 13px 17px 16px; border-top: 1px solid rgba(148,163,184,.16); background: linear-gradient(180deg, rgba(9,20,39,.78), rgba(9,20,39,.98) 24%); backdrop-filter: blur(18px); }
.submit-dock p { margin: 0 0 9px; color: var(--muted); font-size: .72rem; }
.primary-button, .secondary-button { width: 100%; min-height: 46px; border-radius: 14px; font-weight: 900; border: 1px solid transparent; }
.primary-button { color: white; background: var(--ea-gradient); box-shadow: 0 12px 30px rgba(56,189,248,.16); }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.04); }
.secondary-button { margin-top: 8px; color: var(--soft); background: rgba(15,23,42,.7); border-color: rgba(148,163,184,.2); }
.exl-round-feedback-panel[hidden] { display: none !important; }
body.exl-round-feedback-open { overflow: hidden; }
.exl-round-feedback-panel {
  position: fixed;
  inset: 0;
  z-index: 560;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 24%, rgba(56,189,248,.12), transparent 34%),
    radial-gradient(circle at 62% 82%, rgba(168,85,247,.13), transparent 32%),
    rgba(2,7,19,.68);
  backdrop-filter: blur(7px);
}
.exl-round-feedback-card {
  position: relative;
  width: min(760px, calc(100vw - 44px));
  max-height: min(88vh, 820px);
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid rgba(56,189,248,.22);
  border-radius: 30px;
  display: grid;
  gap: 12px;
  overflow: auto;
  color: rgba(248,250,252,.96);
  background:
    radial-gradient(circle at 88% 12%, rgba(52,211,153,.16), transparent 34%),
    radial-gradient(circle at 10% 18%, rgba(56,189,248,.18), transparent 38%),
    linear-gradient(145deg, rgba(15,23,42,.96), rgba(2,6,23,.92));
  box-shadow:
    0 34px 110px rgba(0,0,0,.58),
    0 0 0 1px rgba(56,189,248,.20),
    0 0 56px rgba(56,189,248,.16);
  animation: exlRoundFeedbackZoomIn .38s cubic-bezier(.22,1,.36,1) both;
}
.exl-round-feedback-card > .eyebrow {
  margin: 0;
  justify-self: center;
  color: rgba(186,230,253,.88);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .22em;
  text-align: center;
}
.exl-round-feedback-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: rgba(248,250,252,.96);
  background: rgba(2,6,23,.42);
  box-shadow: 0 18px 40px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.05) inset;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.exl-round-feedback-close:hover, .exl-round-feedback-close:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.44);
  background: radial-gradient(circle at 72% 18%, rgba(56,189,248,.26), transparent 34%), rgba(255,255,255,.11);
}
.exl-round-feedback-hero {
  width: 100%;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(56,189,248,.24);
  border-radius: 24px;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  background: radial-gradient(circle at 50% 8%, rgba(56,189,248,.18), transparent 42%), linear-gradient(135deg, rgba(14,116,144,.18), rgba(15,23,42,.50));
}
.exl-round-feedback-hero span, .exl-feedback-metric span, .exl-compiled-feedback span, .exl-feedback-row span {
  color: rgba(186,230,253,.86);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.exl-round-feedback-hero strong { color: white; font-size: clamp(2.1rem,5vw,4.2rem); font-weight: 940; line-height: .95; letter-spacing: -.06em; }
.exl-round-feedback-hero small { color: rgba(226,232,240,.82); font-size: .82rem; font-weight: 820; }
.exl-feedback-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.exl-feedback-metric, .exl-compiled-feedback {
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  display: grid;
  gap: 3px;
  align-content: center;
  background: rgba(255,255,255,.045);
}
.exl-feedback-metric.is-secure { border-color: rgba(74,222,128,.30); }
.exl-feedback-metric.is-focus { border-color: rgba(56,189,248,.22); }
.exl-feedback-metric strong { color: white; font-size: clamp(1.1rem,1.7vw,1.45rem); font-weight: 930; }
.exl-compiled-feedback strong { color: rgba(255,255,255,.90); font-size: clamp(.94rem,1.1vw,1.08rem); line-height: 1.32; }
.exl-feedback-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.exl-feedback-row {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  display: grid;
  grid-template-columns: minmax(94px,.8fr) auto;
  gap: 4px 12px;
  align-items: center;
  background: rgba(255,255,255,.045);
}
.exl-feedback-row.is-correct { border-color: rgba(74,222,128,.24); }
.exl-feedback-row strong { justify-self: end; color: white; font-size: .98rem; font-weight: 920; }
.exl-feedback-row small { grid-column: 1 / -1; color: rgba(226,232,240,.78); font-size: .78rem; font-weight: 740; line-height: 1.32; }
.exl-round-feedback-button { width: auto; justify-self: center; min-width: min(240px,100%); }

@keyframes echoWaveRollRefined {
  0% { transform: scaleY(.76); opacity: .72; }
  32% { transform: scaleY(1.12); opacity: 1; }
  64% { transform: scaleY(.88); opacity: .88; }
  100% { transform: scaleY(.76); opacity: .72; }
}
@keyframes auralGlowPulse {
  0%,100% { opacity: .68; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes auralRingPulse {
  0% { width: 12%; height: 12%; opacity: 0; }
  18% { opacity: .7; }
  100% { width: 100%; height: 100%; opacity: 0; }
}
@keyframes echoTextGlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes exlRoundFeedbackZoomIn {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media (min-width: 901px) and (max-width: 1180px) {
  .audio-console { grid-template-columns: minmax(0, 1fr) auto; }
  .play-control { min-width: 0; }
  .audio-progress-wrap { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 900px) {
  body { height: auto; overflow-y: auto; }
  .app-shell { height: auto; min-height: 100svh; display: block; }
  .topbar { margin-bottom: 12px; }
  .exam-layout { grid-template-columns: 1fr; }
  .score-panel, .answer-panel { min-height: auto; }
  .score-stage { min-height: 560px; }
  .answer-panel { min-height: 760px; }
}
@media (max-width: 820px) {
  .app-shell { width: min(100% - 18px, 1740px); padding-top: 9px; }
  .topbar { align-items: flex-start; }
  .topbar-actions { gap: 6px; }
  .topbar-link:not(.topbar-home-link), .topbar-question-chip { display: none; }
  .audio-console { grid-template-columns: 1fr 1fr; }
  .audio-progress-wrap { grid-column: 1 / -1; grid-row: auto; order: 4; }
  .score-stage { min-height: 430px; }
}
@media (max-width: 560px) {
  .brand-wave { display: none; }
  .wordmark { font-size: 1.18rem; }
  .topbar-home-link .back-label { display: none; }
  .score-panel, .answer-panel { padding: 14px; border-radius: 22px; }
  .audio-console { grid-template-columns: 1fr; }
  .play-control { width: 100%; }
  .choice-grid { grid-template-columns: 1fr; }
  .rhythm-choice-grid { grid-template-columns: 1fr; }
  .score-stage { min-height: 360px; }
  .aural-only-stage { min-height: 360px; padding: 26px 14px; }
  .aural-passage-guide { grid-template-columns: 1fr; }
  .aural-listening-steps { gap: 7px; }
  .aural-listening-steps i { width: 18px; }
  .exl-round-feedback-panel { padding: 12px; }
  .exl-round-feedback-card { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .exl-feedback-metrics, .exl-feedback-row { grid-template-columns: 1fr; }
  .exl-feedback-row strong { justify-self: start; }
  .exl-feedback-row small { grid-column: 1; }
}
