/* Bank study: keep navigation and reading tools close to the question. */
html{scrollbar-gutter:stable}
.app:has(.quiz-top) .quiz-top{display:flex;align-items:center;gap:12px;padding:0 0 8px;border-bottom:1px solid var(--line);font-family:system-ui,sans-serif}
.app:has(.quiz-top) .quiz-top>button{flex:0 0 34px;width:34px;height:34px;font-size:21px}
.app:has(.quiz-top) .quiz-top .timer{flex:0 0 auto;font-size:13px}
.app:has(.quiz-top) .quiz-jump{flex:1;max-width:600px;margin:0 auto;gap:6px;font-family:system-ui,sans-serif}
.app:has(.quiz-top) .quiz-jump button,.app:has(.quiz-top) .quiz-jump select{padding:6px 9px;border-radius:8px;font-size:12px}
.app:has(.quiz-top) .quiz-jump label{white-space:nowrap}
.app:has(.quiz-top)>.progress{height:4px;margin:8px 0 12px}
.app:has(.quiz-top)>.question{margin:0 0 7px;padding:17px 20px;line-height:1.48;border-radius:14px}
.app:has(.quiz-top) .question::selection,.app:has(.quiz-top) .question *::selection{background:var(--study-highlight-color,#fff2a9)}
.app:has(.quiz-top) .quiz-compact-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 10px;min-height:33px;font-family:system-ui,sans-serif}
.app:has(.quiz-top) .quiz-compact-tools .study-quick-tools,.app:has(.quiz-top) .quiz-compact-tools .question-highlight-tools,.app:has(.quiz-top) .quiz-compact-tools .study-zoom-controls{display:flex;align-items:center;gap:6px;margin:0}
.app:has(.quiz-top) .quiz-compact-tools .question-highlight-tools{order:1}
.app:has(.quiz-top) .quiz-compact-tools .study-quick-tools{order:2;justify-content:flex-start}
.app:has(.quiz-top) .quiz-compact-tools .study-zoom-controls{order:3;margin-left:auto}
.app:has(.quiz-top) .quiz-compact-tools .report-question{order:4;margin:0 0 0 6px}
.app:has(.quiz-top) .quiz-compact-tools .question-highlight-tools span{display:none}
.app:has(.quiz-top) .quiz-compact-tools:has(.study-highlight-toggle.active) #highlightQuestionText{display:none}
.app:has(.quiz-top) .quiz-compact-tools #clearQuestionHighlights{display:none}
.app:has(.quiz-top) .quiz-compact-tools button{min-height:30px;padding:5px 8px;border-radius:8px;font-size:11px;line-height:1.15;box-shadow:none}
.app:has(.quiz-top) .quiz-compact-tools .study-zoom-controls>span{font-size:11px}
.app:has(.quiz-top) .quiz-compact-tools .study-zoom-controls output{min-width:34px;font-size:11px}
.app:has(.quiz-top) .quiz-compact-tools .study-zoom-controls button{min-width:29px;font-size:15px}
.app:has(.quiz-top)>.options{gap:7px 10px}
.app:has(.quiz-top) .option{min-height:48px;padding:10px 12px;border-radius:12px;align-items:center}
.app:has(.quiz-top) .option>b{width:25px;height:25px;flex-basis:25px}
.app:has(.quiz-top) .option-shell{grid-template-columns:minmax(0,1fr) 64px;gap:5px}
.app:has(.quiz-top) .option-side-tools{display:flex;align-items:center;gap:4px}
.app:has(.quiz-top) .strike-option,.app:has(.quiz-top) .highlight-option{width:30px;min-height:30px;border-radius:8px;font-size:17px}
.app:has(.quiz-top) .highlight-option{font-size:13px}
.app:has(.quiz-top) .bottom-action{margin-top:11px}
.app:has(.quiz-top) .bottom-action button{min-height:42px;padding:9px 16px;border-radius:11px}
.app:has(.quiz-top)>.explanation{margin-top:12px;padding:16px 18px}
@media(min-width:900px) and (min-height:621px){
  .app:has(.quiz-top){padding-top:15px;padding-bottom:24px}
  .app:has(.quiz-top)>.question{margin:0 0 7px;padding:17px 20px;line-height:1.48;border-radius:14px}
  .app:has(.quiz-top)>.options{gap:7px 10px}
  .app:has(.quiz-top) .bottom-action{position:static;margin-top:12px}
  .app:has(.quiz-top) .bottom-action .block{width:min(260px,100%);box-shadow:none}
}
@media(max-width:680px){
  .app:has(.quiz-top) .quiz-top{gap:5px}
  .app:has(.quiz-top) .quiz-top .timer{font-size:11px}
  .app:has(.quiz-top) .quiz-jump{gap:3px}
  .app:has(.quiz-top) .quiz-jump button{padding:5px;font-size:0}
  .app:has(.quiz-top) #quizPrevious::after{content:'←';font-size:18px}
  .app:has(.quiz-top) #quizNext::after{content:'→';font-size:18px}
  .app:has(.quiz-top) .quiz-jump label{font-size:11px}
  .app:has(.quiz-top) .quiz-compact-tools .study-zoom-controls{margin-left:0}
  .app:has(.quiz-top) .quiz-compact-tools .study-zoom-controls>span{display:none}
  .app:has(.quiz-top) .option-shell{grid-template-columns:minmax(0,1fr) 31px}
  .app:has(.quiz-top) .option-side-tools{display:grid;gap:3px}
  .app:has(.quiz-top) .strike-option,.app:has(.quiz-top) .highlight-option{min-height:24px;width:30px}
}
.bank-remaining-note{margin:8px 1px 10px;color:var(--muted);font:600 11px/1.4 system-ui,sans-serif}
.verify-banner{flex-wrap:wrap}
.verify-banner #refreshVerify{background:#e7f7f5;color:#087669;border:1px solid #a9dcd4}
.explanation-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px 12px;margin-bottom:8px}
.explanation .quiz-accuracy{display:inline-flex;align-items:center;margin:0 0 0 auto;padding:3px 8px;border-radius:999px;background:var(--teal-soft,#e8f6f3);color:var(--muted,#55716d);font:600 11px/1.35 system-ui,sans-serif;text-align:left;white-space:nowrap}
.app:has(.quiz-top) .option.wrong,.app:has(.quiz-top) .option.selected.wrong{border-color:#d04d41;background:#fff0ee;box-shadow:0 0 0 2px #d04d411a}
.app:has(.quiz-top) .option.correct,.app:has(.quiz-top) .option.selected.correct{border-color:#229b70;background:#eaf9f2;box-shadow:0 0 0 2px #229b701a}
.app .option.accuracy-option{position:relative;padding-right:60px}
.app:has(.quiz-top) .option{border-width:1px}
.high-contrast .app:has(.quiz-top) .option{border-width:2px}
.option-distribution{position:absolute;right:10px;top:50%;transform:translateY(-50%);box-sizing:border-box;width:42px;padding:3px 4px;border-radius:6px;background:#ffffffa6;color:#536475;font:600 11px/1.35 system-ui,sans-serif;font-variant-numeric:tabular-nums;text-align:center;white-space:nowrap;pointer-events:none}
.option-distribution[hidden]{display:none}
.explanation .quiz-accuracy{min-width:115px;box-sizing:border-box;justify-content:center;font-variant-numeric:tabular-nums}
