html { font-size: 14px; }
body { background: #f7f9fc; color: #172033; }
.card { border: 1px solid #e8edf5; border-radius: 14px; box-shadow: 0 3px 14px rgba(20,40,80,.04); }
.btn-primary { background-color: #2563eb; border-color: #2563eb; }
.exam-page { max-width: 980px; }
.exam-status-bar { position: sticky; top: .5rem; z-index: 20; }
.exam-submit-bar { position: sticky; bottom: .5rem; z-index: 20; border: 1px solid #d9e2f0; }
.question-card { scroll-margin-top: 7rem; }
.answer-option { cursor: pointer; }
.answer-option:has(input:checked) { border-color: #2563eb !important; background: #f1f6ff; }
.exam-page .listening-player { gap: .75rem; border-color: #d7e2f1; background: linear-gradient(135deg, #fff 0%, #f6f9ff 100%); }
.exam-page .listening-player [hidden] { display: none !important; }
.listening-audio-engine { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.listening-player-heading { display: flex; align-items: center; gap: .8rem; }
.listening-headphone-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 14px; background: #eaf0ff; color: #315ee8; }
.listening-headphone-icon svg { width: 23px; height: 23px; }
.listening-status { margin-top: .15rem; color: #71809a; font-size: .82rem; }
.listening-play-button { display: inline-flex; min-height: 48px; width: fit-content; align-items: center; justify-content: center; gap: .55rem; padding: .65rem 1rem; border: 0; border-radius: 12px; background: #315ee8; color: #fff; font-weight: 700; box-shadow: 0 6px 16px #315ee82b; }
.listening-play-button svg { width: 20px; height: 20px; }
.listening-play-button:hover:not(:disabled) { background: #244dcc; }
.listening-play-button:disabled { cursor: wait; opacity: .6; }
.listening-progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e5eaf3; cursor: default; touch-action: none; user-select: none; }
.listening-progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #315ee8, #49cbbb); transition: width .15s linear; pointer-events: none; }
.listening-time-row { display: flex; justify-content: space-between; color: #77839a; font-variant-numeric: tabular-nums; font-size: .75rem; }
.listening-complete { color: #157347; font-size: .85rem; font-weight: 650; }
.listening-error { color: #b42332; font-size: .85rem; }
.passage-text { white-space: pre-line; line-height: 1.65; }
@media (max-width: 576px) {
    .exam-status-bar { top: 0; border-radius: 0 !important; margin-left: -.75rem; margin-right: -.75rem; }
    .exam-submit-bar { bottom: 0; margin-left: -.75rem; margin-right: -.75rem; border-radius: 0; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
    .answer-option { padding: .75rem !important; }
}
