/* GUJTEST_CONTROLS_20261102_R2 */
/* GUJTEST_SPEED_LOADING_20261101_R1: one page scroll, reachable native controls. */
html:has(body.test-active),html:has(body.ct-exam-mode){height:auto!important;overflow-y:auto!important;scroll-behavior:auto}
body.test-active,body.ct-exam-mode{height:auto!important;min-height:100dvh;overflow-y:auto!important;overflow-x:clip;padding-bottom:16px!important;overscroll-behavior-y:auto}
body.ct-exam-mode>.gt-backbar,body.ct-exam-mode>.gt-language-menu,body.test-active>.gt-language-menu{display:none!important}
body.ct-exam-mode #ct-main,body.ct-exam-mode #ct-runner,body.ct-exam-mode .ct-exam-shell{height:auto!important;min-height:0;overflow:visible!important}
body.ct-exam-mode .ct-exam-layout,body.ct-exam-mode .ct-exam-stage,body.ct-exam-mode .ct-question-scroll{height:auto!important;max-height:none!important;min-height:0;overflow:visible!important;flex:none;overscroll-behavior:auto;touch-action:pan-y pinch-zoom}
body.ct-exam-mode .ct-exam-header{position:sticky;top:0;z-index:25;flex-wrap:wrap}
body.ct-exam-mode .ct-exam-header [data-action=submit]{display:none!important}
body.ct-exam-mode .ct-save-bar{padding-right:0;flex-wrap:wrap}
body.ct-exam-mode .ct-save-bar [data-action=save]{position:static;min-height:36px}
body.ct-exam-mode .ct-exam-actions{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1.4fr);gap:8px}
body.ct-exam-mode .ct-practice-shell .ct-exam-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
body.ct-exam-mode .ct-exam-actions button{min-width:0;min-height:46px;white-space:normal;line-height:1.4}
body.ct-exam-mode .ct-exam-actions [data-action=submit]{background:#fff3f3;color:#a72b36;border:1px solid #e4bcc0}
body.test-active #test.screen,body.test-active #test .test-layout,body.test-active #test .test-main,body.test-active #test .question-box,body.test-active #test #gt-question-scroll,body.test-active #test #questionText,body.test-active #test #options{height:auto!important;max-height:none!important;min-height:0;overflow:visible!important}
body.test-active #test .question-box,body.test-active #test #gt-question-scroll,body.test-active #test #options{display:block!important;flex:none;touch-action:pan-y pinch-zoom}
body.test-active #gt-question-scroll{scroll-margin-top:100px}body.ct-exam-mode .ct-question-box{scroll-margin-top:140px}
body.test-active #test .gt-test-navigation,body.ct-exam-mode .ct-exam-footer{box-sizing:border-box;position:static!important;inset:auto!important;width:100%;max-width:none;margin:12px 0 0!important;padding:12px!important;background:#fff;border:0;border-top:1px solid #dce5eb;border-radius:0 0 12px 12px;box-shadow:none;flex:none}
body.test-active #test .test-layout,body.ct-exam-mode .ct-exam-layout{align-items:start!important}
body.test-active #test .test-main,body.ct-exam-mode .ct-exam-stage{align-self:start!important}
body.test-active #test .question-box{padding-bottom:12px!important}
body.ct-exam-mode .ct-question-scroll{flex:none!important}

body.test-active #test .gt-test-navigation{display:grid!important;grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1.4fr);gap:8px}
body.test-active #test .gt-test-navigation .btn{min-width:0;min-height:46px;white-space:normal}
body.ct-exam-mode #ct-status:not(:empty){bottom:16px}
body.test-active #test .palette-card.open{z-index:60}
@media(min-width:901px){body.ct-exam-mode .ct-sidebar{position:sticky;top:90px;max-height:min(520px,65vh);align-self:start;overflow:auto}body.ct-exam-mode .ct-sidebar .ct-palette{flex:none;max-height:320px}}
@media(max-width:400px){body.ct-exam-mode .ct-exam-actions button,body.test-active #test .gt-test-navigation .btn{font-size:11px;padding:8px 5px}body.ct-exam-mode .ct-exam-header{gap:8px;padding:10px}.ct-exam-header .ct-exam-title{flex:1}.ct-exam-header .ct-timer{min-width:100px}}

@media(min-width:701px){body.test-active #test .palette-card{align-self:start;max-height:min(520px,65vh);overflow-y:auto}}
