/* Scoped to students; the shared header and teacher screens keep their own styles. */
.oct-student-shell{--oct-timer-top:120px}
.oct-student-shell .student-portal-topbar{display:block;position:sticky;top:60px;z-index:30;width:calc(100% - 24px);max-width:1056px;margin:0 auto;padding:4px;transform:none;border:1px solid #dce7f1;border-top:0;border-radius:0 0 12px 12px;background:#fff;box-shadow:0 3px 12px #203c5710}
.oct-student-shell .student-topbar-identity{display:none}
.oct-student-shell .student-topbar-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px}
.oct-student-shell .student-topbar-actions .student-topbar-action{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:44px;margin:0;padding:6px 4px;border-radius:8px;background:#f1f5fa;color:#31516f;font-size:12px;font-weight:650;line-height:1.15;white-space:nowrap;text-decoration:none}
.oct-student-shell .student-topbar-action span{flex-shrink:0;font-size:16px;line-height:1}
.oct-student-shell .student-topbar-action:hover{background:#e3eefc}
.oct-student-shell .student-topbar-actions .student-topbar-action[aria-current=page]{color:#fff;background:#0d6efd}
.oct-student-shell .oct-main{max-width:1080px;padding:16px 12px 24px}
.oct-student-shell .oct-main>h1{margin:0 0 12px;font-size:clamp(21px,3vw,27px);line-height:1.3}
.oct-student-shell .oct-student-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:0 0 12px;padding:11px 14px;border:1px solid #dce7f1;border-radius:10px;box-shadow:none}
.oct-student-shell .oct-student-summary strong{font-size:15px}
.oct-student-shell .oct-student-summary span{color:#62748a;font-size:12px}
.oct-student-shell .oct-test-filters{display:grid;grid-template-columns:1.4fr 1fr;gap:10px;margin-bottom:14px}
.oct-student-shell .oct-test-filters label{min-width:0;margin:0;font-size:12px}
.oct-student-shell .oct-test-filters input,.oct-student-shell .oct-test-filters select{min-width:0;min-height:44px;margin:4px 0 0;padding:9px 10px;font-size:16px;border-radius:9px}
.oct-student-shell .oct-open-tests{gap:12px}
.oct-student-shell .assigned-test{margin:0;padding:16px;border:1px solid #dce7f1;border-radius:12px;box-shadow:0 3px 12px #203c5710}
.oct-student-shell .oct-selected-test{border-color:#0d6efd;box-shadow:0 0 0 2px #0d6efd22}
.oct-student-shell .oct-test-badges{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.oct-student-shell .assigned-test h2{margin:10px 0 6px;font-size:18px;line-height:1.4;overflow-wrap:anywhere}
.oct-student-shell .oct-test-meta{margin:0 0 12px;color:#62748a;font-size:13px}
.oct-student-shell .oct-start-form{margin:0}
.oct-student-shell .oct-start-form button{width:100%;min-height:44px;border-radius:9px}
.oct-student-shell .oct-quiz-identity{margin:0 0 9px;color:#62748a;font-size:12px}
.oct-student-shell .timerbar{top:var(--oct-timer-top);gap:6px 12px;margin:8px auto 12px;padding:10px 12px;border-radius:10px;font-size:13px}
.oct-student-shell #timer{padding:4px 9px;font-size:13px}
.oct-student-shell #save-status{font-size:12px}
.oct-student-shell #quiz-form{width:100%;max-width:850px;margin:0 auto}
.oct-student-shell #current-mcq{margin:0;padding:18px;border-radius:12px}
.oct-student-shell .question-head{margin-bottom:8px}
.oct-student-shell .question-text,.oct-student-shell .stimulus{white-space:pre-line}
.oct-student-shell .question-text{margin:10px 0 16px}
.oct-student-shell .options{display:grid;grid-template-columns:1fr;gap:9px}
.oct-student-shell .option{min-height:54px;padding:11px 12px;font-size:16px}
.oct-student-shell .oct-next-row{display:flex;justify-content:center;padding:12px 0 0}
.oct-student-shell #next-question{width:100%;max-width:320px;min-height:48px;padding:12px 20px;border-radius:10px;font-size:17px}
.oct-student-shell #next-question:disabled{opacity:.65;cursor:wait}
@media(max-width:700px){.oct-student-shell .oct-open-tests{grid-template-columns:1fr}}
@media(max-width:480px){.oct-student-shell .oct-main{padding:13px 12px 20px}.oct-student-shell .oct-main>h1{font-size:21px;margin-bottom:10px}.oct-student-shell .oct-student-summary{padding:10px 12px}.oct-student-shell .assigned-test{padding:14px}.oct-student-shell .assigned-test h2{font-size:17px}.oct-student-shell #current-mcq{padding:14px}.oct-student-shell #save-status{width:100%;line-height:1.3}.oct-student-shell #next-question{max-width:none}}
@media(max-width:380px){.oct-student-shell .student-topbar-actions .student-topbar-action{font-size:11px;gap:3px;padding:6px 2px}.oct-student-shell .student-topbar-action span{font-size:14px}}

/* Compact test heading, visible progress, and a calm reading surface. */
.oct-student-shell .oct-main:has(#quiz-form)>h1{font-size:clamp(15px,2.2vw,21px);line-height:1.45;margin-bottom:10px;overflow-wrap:anywhere}
.oct-student-shell #quiz-form .question-body{background:#eaf5ff;border:1px solid #cbe4fb;border-radius:12px;padding:14px 16px;margin:10px 0 14px;color:#173b59}
.oct-student-shell #quiz-form .question-body .question-text{margin:0;line-height:1.65}
.oct-student-shell #quiz-form .question-body[dir=rtl] .question-text{line-height:2.1}
.oct-student-shell #quiz-form .question-body .stimulus{background:#ddecfb;margin:0 0 12px;border-radius:8px}
.oct-student-shell .oct-question-progress{padding:4px 9px;border-radius:22px;background:#ffffff26;white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}
.oct-student-shell #next-question[aria-label="Submit test"]{background:#15803d;border-color:#15803d}
.oct-student-shell #next-question[aria-label="Submit test"]:hover{background:#116932}
@media(max-width:480px){.oct-student-shell #quiz-form .question-body{padding:12px;border-radius:10px}.oct-student-shell .timerbar{column-gap:8px}.oct-student-shell .oct-question-progress{font-size:12px;padding:4px 8px}}
