/* Shared exam flow UI. All motion is driven by measured microphone input. */
.exam-audio-source{display:none!important}
.lesson-header button.exam-return,.unit-header button.exam-return,.bank-header button.exam-return,.mock-header button.exam-return{display:grid;place-items:center;box-sizing:border-box;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:12px;background:transparent;color:var(--brand-ink,#3e2946);cursor:pointer;line-height:1}
.lesson-header button.exam-return>.icon,.unit-header button.exam-return>.icon,.bank-header button.exam-return>.icon,.mock-header button.exam-return>.icon{display:block;width:24px;height:24px;max-width:24px;max-height:24px;margin:0;color:inherit;fill:none;stroke-width:2.2}
.lesson-header button.exam-return:hover,.unit-header button.exam-return:hover,.bank-header button.exam-return:hover,.mock-header button.exam-return:hover{color:var(--brand-purple,#862cb5);background:var(--brand-purple-soft,#f3e8fb)}
.lesson-header button.exam-return:focus-visible,.unit-header button.exam-return:focus-visible,.bank-header button.exam-return:focus-visible,.mock-header button.exam-return:focus-visible{outline:3px solid var(--brand-purple,#862cb5);outline-offset:2px}
.lesson-header button.exam-return:active,.unit-header button.exam-return:active,.bank-header button.exam-return:active,.mock-header button.exam-return:active{color:var(--brand-purple-depth,#67228e);background:var(--brand-purple-ring,#e3c9f2)}
.bank-header,.mock-header{position:sticky;top:0;z-index:6}
.bank-subbar,.mock-subbar{top:76px}
.exam-audio-flow{display:grid;justify-items:center;gap:20px;padding:28px;border:1px solid var(--brand-line,#e8e1eb);border-radius:var(--brand-radius,18px);background:var(--brand-surface,#fff);text-align:center}
.exam-audio-flow__status{font-size:15px;line-height:1.7;color:var(--brand-ink,#3e2946)}
.exam-audio-flow__detail{font-size:13px;line-height:1.7;color:var(--brand-muted,#6f6575);margin:0}
.exam-audio-flow__actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.exam-audio-flow__actions>button{min-width:132px;min-height:44px}
.exam-audio-flow__time{font-variant-numeric:tabular-nums;font-size:20px;font-weight:650;color:var(--brand-purple,#862cb5)}
.exam-microphone{position:relative;display:grid;place-items:center;width:100px;height:100px;border:2px solid var(--brand-purple-ring,#e3c9f2);border-radius:50%;background:var(--brand-purple-soft,#f3e8fb);color:var(--brand-purple,#862cb5);box-shadow:0 0 0 calc(var(--exam-mic-level,0)*14px) color-mix(in srgb,var(--brand-purple,#862cb5) 14%,transparent);transition:box-shadow 75ms linear}
.exam-microphone>svg{width:42px;height:42px;stroke:currentColor;fill:none;stroke-width:1.8;flex:none}
.exam-microphone[data-microphone-state="muted"],.exam-microphone[data-microphone-state="unsupported"],.exam-microphone[data-microphone-state="blocked"],.exam-microphone[data-microphone-state="ended"]{border-color:var(--brand-line-strong,#cdbbd7);background:var(--brand-neutral-soft,#f3f0f4);color:var(--brand-muted,#6f6575)}
.exam-microphone[data-microphone-state="closed"],.exam-microphone[data-microphone-state="stopped"],.exam-microphone[data-microphone-state="idle"]{box-shadow:none}
.exam-microphone-meter{display:block;width:180px;height:8px;overflow:hidden;border-radius:8px;background:var(--brand-line,#e8e1eb)}
.exam-microphone-meter::before{content:"";display:block;width:calc(var(--exam-mic-level,0)*100%);height:100%;border-radius:inherit;background:var(--brand-purple,#862cb5);transition:width 75ms linear}
.exam-microphone-label{font-size:13px;line-height:1.6;color:var(--brand-muted,#6f6575);min-height:21px}
@media(max-width:600px){.exam-audio-flow{padding:24px 18px;gap:18px}.exam-microphone{width:88px;height:88px}.exam-audio-flow__actions{width:100%}.exam-audio-flow__actions>button{flex:1;min-width:120px}}
@media(prefers-reduced-motion:reduce){.exam-microphone{box-shadow:none;transition:none}.exam-microphone-meter::before{transition:none}}
@media(max-width:600px){
 .bank-header,.mock-header{padding-bottom:18px;min-height:76px}
 .bank-header .bank-save,.mock-header .mock-save{display:block;position:absolute;right:14px;bottom:2px;max-width:150px;font-size:10px;line-height:14px;text-align:right}
}
