@font-face{font-family:"Noto Nastaliq Urdu";src:url("fonts/noto-nastaliq-urdu-400.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
/* Every component is scoped: the shared Qwiz header, sidebar and topbar retain their styles. */
.oct-shell{--oct-blue:#0d6efd;--oct-navy:#17365b;--oct-purple:#7c3aed;--oct-border:#dce5ef;--oct-muted:#596779;--oct-green:#137748;--oct-red:#b42318;--oct-timer-top:64px;color:#263548;font:16px/1.6 "Segoe UI",Arial,sans-serif;min-height:calc(100vh - 60px);background:#f4f7fb;padding:0 0 1px}
.oct-shell *{box-sizing:border-box}.oct-shell [hidden]{display:none!important}.oct-shell a{color:var(--oct-blue)}
.oct-shell .oct-main{max-width:1200px;margin:0 auto;padding:26px 22px 30px;overflow-wrap:anywhere}
.oct-shell h1{font-size:clamp(23px,3vw,30px);line-height:1.25;color:var(--oct-navy);margin:0 0 14px;font-weight:750}
.oct-shell h2{font-size:21px;line-height:1.4;color:var(--oct-navy);margin:0 0 14px}
.oct-shell h3{font-size:17px;color:var(--oct-navy);margin:0 0 12px}.oct-shell p{margin:8px 0 14px}.oct-shell .muted{color:var(--oct-muted);font-size:14px}
.oct-shell .oct-module-nav{max-width:1156px;margin:auto;display:flex;gap:8px;flex-wrap:wrap;padding:16px 0 0}
.oct-shell .oct-module-nav a{padding:9px 15px;border:1px solid var(--oct-border);background:white;border-radius:9px;text-decoration:none;font-size:14px;font-weight:650;min-height:42px}
.oct-shell .oct-module-nav a[aria-current=page]{background:var(--oct-purple);border-color:var(--oct-purple);color:white}
.oct-shell .card{background:white;border:1px solid var(--oct-border);border-radius:14px;padding:24px;margin:20px 0;box-shadow:0 5px 20px #16325307;min-width:0}
.oct-shell .narrow{max-width:650px;margin:28px auto}.oct-shell .grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.oct-shell .test-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.oct-shell .test-grid .card{margin:0}
.oct-shell label{display:block;font-weight:600;margin:8px 0}.oct-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.oct-shell select{display:block;width:100%;padding:11px 12px;border:1px solid #bfcbdc;border-radius:8px;margin:6px 0 14px;background:white;color:#263548;font-size:16px;min-height:46px}
.oct-shell input[type=checkbox],.oct-shell input[type=radio]{accent-color:var(--oct-blue);width:18px;height:18px;flex-shrink:0;vertical-align:middle}.oct-shell fieldset{border:1px solid var(--oct-border);border-radius:10px;margin:18px 0;padding:12px 16px}.oct-shell legend{font-weight:700;padding:0 8px;width:auto;font-size:16px}.oct-shell .checks{display:flex;gap:10px 24px;flex-wrap:wrap}.oct-shell .checks label{font-weight:400}.oct-shell .checks input{margin-inline-end:6px}
.oct-shell button,.oct-shell .button{display:inline-block;border:0;border-radius:8px;padding:11px 17px;background:var(--oct-blue);color:white;font:700 15px/1.4 "Segoe UI",Arial,sans-serif;cursor:pointer;text-decoration:none;text-align:center;min-height:44px;transition:background .15s,box-shadow .15s;max-width:100%}
.oct-shell button:hover,.oct-shell .button:hover{filter:brightness(.94);box-shadow:0 3px 9px #17365b18}.oct-shell button:disabled{opacity:.6;cursor:default}.oct-shell .secondary{background:#edf2fa;color:var(--oct-navy)}.oct-shell .purple{background:var(--oct-purple);color:white}.oct-shell .small{padding:8px 11px;font-size:13px;margin:4px 0}.oct-shell .actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.oct-shell .actions form{margin:0}.oct-shell .actions h2{flex:1;margin:0}.oct-shell .alert{background:#fff5dd;border:1px solid #edd79f;border-radius:10px;padding:16px;margin:16px 0}.oct-shell .error{background:#fff0ed;border-color:#fac3b9;color:var(--oct-red)}.oct-shell .success{background:#e9f8ef;border-color:#a8d9b9;color:var(--oct-green)}
.oct-shell .table-wrap{overflow:auto;max-width:100%;border:1px solid var(--oct-border);border-radius:9px;overscroll-behavior-x:contain;scrollbar-width:thin}.oct-shell table{width:100%;border-collapse:collapse;font-size:14px}.oct-shell th,.oct-shell td{padding:12px;border:1px solid var(--oct-border);text-align:left;vertical-align:middle}.oct-shell th{background:#eff4fa;color:var(--oct-navy);font-weight:700;white-space:nowrap}.oct-shell tbody tr:nth-child(even){background:#fafcfe}.oct-shell tbody tr:hover{background:#f0f6ff}.oct-shell .numeric{text-align:center;white-space:nowrap}.oct-shell .table-wrap table{border-style:hidden}.oct-shell td small{display:block;color:var(--oct-muted);font-size:12px}.oct-shell .highest-scorer{background:#e9f8ef!important}.oct-shell .top-score-label{color:#137748;background:#d9f3e4;border-radius:20px;padding:3px 8px;font-size:11px;display:inline-block;margin-left:6px}
.oct-shell .question{padding:18px 0;border-bottom:1px solid var(--oct-border)}.oct-shell .question.card{padding:22px}.oct-shell .question-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:12px}.oct-shell .badge{display:inline-block;font-size:12px;background:#edf2fa;border-radius:30px;padding:4px 10px;color:var(--oct-navy);white-space:nowrap}.oct-shell .question-text{font-weight:650;font-size:19px;white-space:normal;overflow-wrap:anywhere;margin:12px 0 20px}.oct-shell .question-body[dir=rtl],.oct-shell .options[dir=rtl],.oct-shell ol[dir=rtl]{font-family:"Noto Nastaliq Urdu",serif;font-size:20px;line-height:2.1}.oct-shell .stimulus{background:#eef3fb;border-inline-start:4px solid var(--oct-blue);padding:16px;margin:16px 0}.oct-shell .diagram{max-width:100%;max-height:380px;object-fit:contain}.oct-shell figure{margin:14px 0}.oct-shell figcaption{font-size:13px;color:var(--oct-muted)}.oct-shell ol{padding-inline-start:26px}.oct-shell li{margin:7px 0}.oct-shell .correct{color:var(--oct-green);font-weight:700}.oct-shell .wrong,.oct-shell .warning{color:var(--oct-red)}.oct-shell .explanation{background:#f0f7ff;border-inline-start:4px solid #3498db;border-radius:8px;padding:13px 16px;margin-top:16px}.oct-shell .explanation p{margin:8px 0}.oct-shell .options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.oct-shell .option{display:flex;align-items:center;gap:12px;background:white;border:2px solid #e1e7ee;border-radius:10px;padding:12px 14px;font-weight:400;cursor:pointer;margin:0;font-size:17px;min-height:58px}.oct-shell .option:has(input:checked){background:#e3f2fd;border-color:#3498db;box-shadow:0 0 0 3px #3498db16}.oct-shell .option-letter{display:flex;align-items:center;justify-content:center;width:30px;height:30px;flex-shrink:0;background:#3498db;border-radius:50%;color:white;font-weight:700}.oct-shell .option-text{overflow-wrap:anywhere}.oct-shell .timerbar{position:sticky;top:var(--oct-timer-top);z-index:25;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:linear-gradient(to right,#3498db,#2c3e50);color:white;border-radius:12px;padding:14px 20px;box-shadow:0 4px 18px #0002}.oct-shell .timerbar .warning{color:#fff1a6}.oct-shell .timerbar #save-status{font-size:13px}.oct-shell #timer{padding:5px 12px;border-radius:22px;background:#ffffff26;white-space:nowrap;font-variant-numeric:tabular-nums}.oct-shell .score{font-size:42px;font-weight:750;color:var(--oct-green);margin:8px 0}.oct-shell .result-summary{text-align:center}.oct-shell .oct-footer{text-align:center;color:var(--oct-muted);padding:24px;font-size:13px}.oct-shell :focus-visible{outline:3px solid #72a5f0;outline-offset:3px}.oct-shell .question-navigation{text-align:center}.oct-shell .question-navigation .actions{justify-content:center}
.oct-student-shell{background:linear-gradient(135deg,#f0f8ff,#e1f0fa)}.oct-student-shell .oct-main{max-width:1100px}.oct-student-shell .card{border:none;border-radius:15px;box-shadow:0 5px 15px #00000012}.oct-student-shell .options{grid-template-columns:1fr}.oct-student-shell #quiz-form{max-width:850px;margin:auto}.oct-student-shell .timerbar{max-width:850px;margin:16px auto}.oct-student-shell .question-text{line-height:1.55}.oct-student-shell .question-body[dir=rtl] .question-text{line-height:2.1}
.oct-shell .student-portal-topbar{max-width:1056px;margin:0 auto;position:sticky;top:64px;z-index:30;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#ffffffee;backdrop-filter:blur(10px);border:1px solid #d6e4f1;border-radius:13px;padding:10px 14px;box-shadow:0 4px 18px #1c4b7120;transform:translateY(8px)}.oct-shell .student-topbar-identity{display:flex;align-items:center;gap:9px;min-width:0;flex-wrap:wrap}.oct-shell .identity-avatar{width:34px;height:34px;background:#e3f2fd;color:#1674b8;display:grid;place-items:center;font-weight:700;border-radius:50%}.oct-shell .student-topbar-id{font-size:12px;background:#edf2fa;color:#45647d;padding:3px 8px;border-radius:20px;white-space:nowrap}.oct-shell .student-topbar-actions{display:flex;gap:6px}.oct-shell .student-topbar-action{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 10px;border-radius:8px;color:#355975;background:#f0f5fa;text-decoration:none;font-size:13px;font-weight:650;min-height:44px;white-space:nowrap}.oct-shell .student-topbar-action[aria-current=page]{background:#0d6efd;color:white}.oct-shell .student-topbar-action span{font-size:19px}
.oct-shell .card-heading{background:linear-gradient(to right,#3498db,#2c3e50);color:white;margin:-24px -24px 20px;padding:15px 24px;border-radius:14px 14px 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.oct-shell .card-heading h2{color:white;margin:0;font-size:19px}.oct-shell .card-heading a{color:white}.oct-shell .summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.oct-shell .summary-stat{background:#f3f7fc;padding:14px;border-radius:10px;text-align:center}.oct-shell .summary-stat strong{font-size:25px;display:block;color:var(--oct-navy)}.oct-shell .summary-stat span{font-size:13px;color:var(--oct-muted)}.oct-shell .answer-review{padding:0;list-style:none}.oct-shell .answer-review li{padding:11px 14px;border:1px solid #e1e7ee;border-radius:8px;background:#fafcfe}.oct-shell .answer-review li.correct{background:#e9f8ef;border-color:#a8d9b9}.oct-shell .answer-review li.wrong{background:#fff0ed;border-color:#fac3b9}.oct-shell .report-title{color:var(--oct-blue)}.oct-shell .report-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.oct-shell .report-toolbar label{flex:1 1 230px;margin:0}.oct-shell .report-toolbar input{margin:0!important}.oct-shell .report-controls{display:flex;gap:8px;flex-wrap:wrap}.oct-shell details{border:1px solid var(--oct-border);border-radius:9px;padding:9px 12px;margin:12px 0}.oct-shell summary{cursor:pointer;font-weight:650}.oct-shell .column-options{display:flex;flex-wrap:wrap;gap:8px 20px;margin:10px 0;max-height:240px;overflow:auto}.oct-shell .column-options label{font-size:13px;font-weight:400}.oct-shell .table-sort{color:inherit;background:transparent;padding:0;min-height:0;box-shadow:none;text-align:inherit;white-space:nowrap;font-size:14px}.oct-shell .report-table th:first-child,.oct-shell .report-table td:first-child{position:sticky;left:0;z-index:2;background:white;min-width:180px}.oct-shell .report-table th:first-child{background:#eff4fa;z-index:3}.oct-shell .report-table .absent{color:#c23131;font-weight:700}.oct-shell .present{color:#137748;font-weight:700}.oct-shell .report-selected{box-shadow:inset 3px 0 0 #7c3aed}.oct-shell .progress-track{height:7px;background:#e0eaf3;border-radius:10px;overflow:hidden;margin-top:14px}.oct-shell .progress-fill{height:100%;background:#3498db;width:0;transition:width .2s}.oct-shell .question-palette{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin-top:16px}.oct-shell .question-palette button{min-height:38px;width:38px;padding:5px;background:#edf2fa;color:#36506b;font-size:13px}.oct-shell .question-palette .answered{background:#dff3e9;color:#137748}.oct-shell .question-palette button[aria-current=true]{outline:2px solid #3498db;outline-offset:1px}.oct-shell .chart-wrap{border:1px solid var(--oct-border);border-radius:10px;padding:14px;min-width:0}.oct-shell .trend-chart{width:100%;height:auto;display:block}.oct-shell .results-history td{font-variant-numeric:tabular-nums}.oct-shell .empty{padding:26px;text-align:center;color:var(--oct-muted)}
@media(max-width:900px){.oct-shell .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.oct-shell .oct-module-nav{padding:14px 18px 0}.oct-shell .student-portal-topbar{margin:0 18px;gap:8px;flex-wrap:wrap}.oct-shell .student-topbar-identity{flex:1}.oct-shell .options{grid-template-columns:1fr}}
@media(max-width:600px){.oct-shell .oct-main{padding:22px 12px}.oct-shell .grid,.oct-shell .test-grid{grid-template-columns:1fr}.oct-shell .card{padding:17px;margin:16px 0}.oct-shell .card-heading{margin:-17px -17px 16px;padding:14px 17px}.oct-shell h2{font-size:19px}.oct-shell .question.card{padding:17px}.oct-shell .student-portal-topbar{margin:0 12px;padding:9px 10px;align-items:stretch;flex-direction:column}.oct-shell .student-topbar-identity{justify-content:center;gap:6px;font-size:14px}.oct-shell .student-topbar-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.oct-shell .student-topbar-action{flex-direction:column;gap:1px;min-height:49px;padding:4px 2px;font-size:11px}.oct-shell .student-topbar-action span{font-size:18px}.oct-shell .timerbar{padding:11px 12px;gap:6px;font-size:13px}.oct-shell .timerbar #save-status{width:100%;font-size:12px}.oct-shell .question-text{font-size:18px}.oct-shell .option{padding:11px;font-size:16px}.oct-shell .question-navigation .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.oct-shell .question-navigation button{font-size:13px;padding:11px 7px}.oct-shell .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.oct-shell .oct-module-nav{gap:6px;padding:12px 12px 0}.oct-shell .oct-module-nav a{font-size:12px;padding:8px 10px}.oct-shell .report-toolbar{align-items:stretch}.oct-shell .report-controls{gap:6px}.oct-shell .report-controls button{font-size:12px;padding:9px}.oct-shell .results-history{border:0;border-radius:0;overflow:visible}.oct-shell .results-history table,.oct-shell .results-history tbody{display:block}.oct-shell .results-history thead{display:none}.oct-shell .results-history tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--oct-border);border-radius:10px;margin:12px 0;padding:12px;gap:8px;background:white}.oct-shell .results-history td{border:0;padding:0;display:block;font-size:14px}.oct-shell .results-history td:before{content:attr(data-label);display:block;color:var(--oct-muted);font-size:10px;text-transform:uppercase;font-weight:700}.oct-shell .results-history .result-rank{display:none}.oct-shell .results-history .result-date{grid-column:1/-1;font-size:12px}.oct-shell .results-history .result-quiz{grid-column:1/3;font-weight:700}.oct-shell .results-history .result-type{align-self:center}.oct-shell .results-history .result-action{grid-column:1/-1}.oct-shell .results-history .result-action:before{display:none}.oct-shell .report-table th:first-child,.oct-shell .report-table td:first-child{min-width:150px}.oct-shell th,.oct-shell td{padding:9px}.oct-shell .report-table{font-size:13px}}
@media(prefers-reduced-motion:reduce){.oct-shell *{transition:none!important;scroll-behavior:auto!important}}
@media print{@page{size:landscape;margin:10mm}body{padding:0!important;background:white!important}body>header,.sidebar,.overlay,.qwiz-top-bar-wrap,.oct-module-nav,.student-portal-topbar,.oct-footer,.no-print{display:none!important}.oct-shell{background:white;min-height:0;color:black}.oct-shell .oct-main{max-width:none;padding:0}.oct-shell .card{padding:0;box-shadow:none;border:0}.oct-shell .table-wrap{overflow:visible;border:0}.oct-shell table{font-size:10px}.oct-shell th,.oct-shell td{padding:5px;white-space:normal!important}.oct-shell th{background:#eee!important;color:black!important}.oct-shell thead{display:table-header-group}.oct-shell tr{break-inside:avoid}.oct-shell .report-table th:first-child,.oct-shell .report-table td:first-child{position:static;min-width:0}.oct-shell .row-choice{display:none}.oct-shell .report-table td:first-child label{display:none}.oct-shell .card-heading{background:white;color:black;margin:0;padding:0}.oct-shell .card-heading h2{color:black}.oct-shell .results-history tr{display:table-row}.oct-shell .results-history td{display:table-cell}.oct-shell .results-history td:before{display:none}.oct-shell .results-history thead{display:table-header-group}.oct-shell .results-history table{display:table}.oct-shell .results-history tbody{display:table-row-group}a{color:black!important;text-decoration:none!important}}
.oct-shell .row-choice{display:inline-block;margin:0 8px 0 0;vertical-align:middle}.oct-shell .question-navigation .progress-track{margin-bottom:16px}.oct-shell .assigned-test h2{margin-top:12px}.oct-shell .question-body[dir=rtl] .explanation{line-height:2.1}
