.gr-question-hidden { display: none !important; }
.gr-exam-active { position: relative; padding-right: 270px; min-height: 430px; }
.gr-exam-panel { position: absolute; right: 0; top: 0; width: 245px; background: white; padding: 18px; border: 1px solid #ded5f5; border-radius: 14px; box-sizing: border-box; }
.gr-exam-panel h2 { font-size: 19px; margin: 0 0 12px; }
.gr-exam-panel p { font-size: 14px; }
.gr-exam-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; max-height: 340px; overflow-y: auto; padding: 4px; }
.gr-exam-grid button { padding: 0; height: 36px; background: #eee9fa; color: #282340; border: 1px solid #cfc4e9; border-radius: 6px; cursor: pointer; }
.gr-exam-grid .gr-answered { background: #d0f1df; color: #155d36; }
.gr-exam-grid [aria-current=step] { outline: 3px solid #5945b5; outline-offset: 1px; }
.gr-exam-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; }
.gr-exam-controls button { background: #5844b5; color: white; padding: 10px 18px; border: 0; border-radius: 8px; cursor: pointer; }
.gr-exam-controls button:disabled { opacity: .45; cursor: default; }
.gr-exam-panel[hidden], .gr-exam-controls[hidden] { display: none !important; }
@media(max-width: 760px) {
 .gr-exam-active { padding-right: 0; }
 .gr-exam-panel { position: static; width: 100%; margin-top: 20px; }
 .gr-exam-grid { grid-template-columns: repeat(6,1fr); max-height: 170px; }
 .gr-exam-controls { flex-wrap: wrap; font-size: 14px; }
}
/* Shared presentation: applies without copying CSS into each new test. */
.qsm-embed-body { background: #f4f1ff; }
.qsm-embed-wrapper { max-width: 1100px; margin: 24px auto; padding: 20px; }
.gr-exam-active .qsm-question-wrapper { background: #fff; padding: 14px 20px; margin-bottom: 12px; border: 1px solid #e3ddf5; border-radius: 12px; }
.gr-exam-active .qsm-question-wrapper .mlw_qmn_question { margin-bottom: 12px; }
@media (max-width: 600px) {
 .qsm-embed-wrapper { margin: 10px auto; padding: 12px; }
 .gr-exam-active .qsm-question-wrapper { padding: 12px; }
}
