/* Quiz attempt viewport: status and actions remain visible while only the current question scrolls. */
.quiz-attempt-shell{display:flex;flex-direction:column;height:clamp(540px,calc(100dvh - 118px),980px);max-height:calc(100dvh - 24px);overflow:hidden}
.quiz-attempt-shell>.quiz-student-preview-banner,.quiz-attempt-shell>.quiz-display-controls{flex:0 0 auto}
.quiz-attempt-shell .quiz-attempt-content{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;padding:11px 14px 13px;overflow:hidden}
.quiz-attempt-shell[data-quiz-presentation="continuous"] .quiz-attempt-content{overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-bottom:16px}
.quiz-attempt-shell .quiz-head{flex:0 0 auto;margin:0 0 5px}
.quiz-attempt-shell .quiz-head-hint{max-height:2.8em;margin:.3rem 0 0;overflow:auto;font-size:12px;line-height:1.4;scrollbar-width:thin}
.quiz-attempt-shell .quiz-attempt-counter{position:relative;top:auto;z-index:4;flex:0 0 auto;margin:5px 0 9px;padding:8px 12px 10px;box-shadow:0 7px 18px color-mix(in srgb,var(--accent) 9%,transparent)}
.quiz-attempt-shell .quiz-attempt-position>i{width:36px;height:36px;font-size:19px}
.quiz-attempt-shell .quiz-attempt-position strong,.quiz-attempt-shell .quiz-attempt-metrics strong{font-size:16px}
.quiz-attempt-shell .quiz-attempt-progress{height:5px}
.quiz-attempt-shell[data-quiz-presentation="one_at_time"] .online-quiz-form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
.quiz-attempt-shell[data-quiz-presentation="one_at_time"] .online-question{flex:1 1 auto;min-height:0;margin:0 0 8px;padding:14px 16px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.quiz-attempt-shell[data-quiz-presentation="one_at_time"] .online-question[hidden]{display:none}
.quiz-attempt-shell[data-quiz-presentation="one_at_time"] .q-stem{margin-bottom:.7rem}
.quiz-attempt-shell[data-quiz-presentation="one_at_time"] .online-options{gap:7px}
.quiz-attempt-shell[data-quiz-presentation="one_at_time"] .online-option{min-height:48px;padding:7px 11px}
.quiz-attempt-shell[data-quiz-presentation="one_at_time"] .online-option .online-option-key{flex-basis:34px;height:34px}
.quiz-attempt-shell[data-quiz-presentation="one_at_time"] .quiz-listen-prompt{min-height:56px;padding:7px 12px 7px 7px}
.quiz-attempt-shell[data-quiz-presentation="one_at_time"] .quiz-question-preview{padding:9px 12px;line-height:1.4}
.quiz-attempt-action-dock{position:sticky;bottom:0;z-index:6;display:grid;grid-template-columns:minmax(150px,1fr) auto;flex:0 0 auto;gap:8px 14px;margin:0;padding:8px 10px;border-color:var(--accent-border);border-radius:12px;background:color-mix(in srgb,var(--surface-1) 96%,var(--accent-bg));box-shadow:0 -10px 26px color-mix(in srgb,var(--text-primary) 9%,transparent);backdrop-filter:blur(14px)}
.quiz-attempt-action-dock .online-pager-actions{justify-content:flex-end}
.quiz-attempt-action-dock .online-pager-actions button{min-height:40px}
.quiz-attempt-action-dock .quiz-dock-submit:disabled{display:inline-flex!important;border-color:var(--border);background:var(--surface-2);color:var(--text-muted);opacity:.72;cursor:not-allowed}
.quiz-attempt-action-dock .quiz-dock-submit.is-ready{box-shadow:0 6px 16px color-mix(in srgb,var(--accent) 18%,transparent)}
.quiz-attempt-action-dock .quiz-dock-message{grid-column:1/-1;min-height:0;font-size:11px;line-height:1.3}
.quiz-attempt-action-dock .quiz-dock-message:empty{display:none}
.quiz-student-preview-modal.is-fullscreen .quiz-student-preview-body{box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;padding:12px 18px 18px}
.quiz-student-preview-modal.is-fullscreen .quiz-attempt-shell{flex:1 1 auto;width:100%;height:100%;max-height:none}
@media(max-height:820px){
  .quiz-attempt-shell{height:calc(100dvh - 84px);min-height:430px}
  .quiz-attempt-shell .quiz-head-hint{max-height:1.45em;white-space:nowrap;text-overflow:ellipsis}
  .quiz-attempt-shell .quiz-head{margin-bottom:2px}
  .quiz-attempt-shell .quiz-attempt-counter{margin:3px 0 7px}
}
@media(max-width:700px){
  .quiz-attempt-shell{height:calc(100dvh - 76px);min-height:430px;max-height:none}
  .quiz-attempt-shell .quiz-attempt-content{padding:8px}
  .quiz-attempt-shell .quiz-attempt-counter{grid-template-columns:1fr;padding:7px 9px 9px}
  .quiz-attempt-shell .quiz-attempt-position>i{display:none}
  .quiz-attempt-shell .quiz-attempt-metrics span{padding-inline:8px}
  .quiz-attempt-shell .quiz-attempt-metrics .quiz-attempt-time{min-width:92px}
  .quiz-attempt-action-dock{grid-template-columns:1fr;padding:7px 8px}
  .quiz-attempt-action-dock .online-question-progress{display:none}
  .quiz-attempt-action-dock .online-pager-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .quiz-attempt-action-dock .online-pager-actions button{min-width:0;width:100%;padding-inline:8px}
  .quiz-attempt-shell[data-quiz-presentation="one_at_time"] .online-question{padding:11px}
}
