
/* Shared eight-exam library and exam-mode presentation. */
.mode-switch{display:flex;gap:6px;align-items:center;margin:0 0 20px;border-bottom:1px solid var(--line);padding-bottom:14px}.mode-switch a{padding:9px 15px;border-radius:9px;text-decoration:none;color:var(--muted);font-size:14px;font-weight:600}.mode-switch a[aria-current=page]{background:var(--teal-light);color:var(--teal)}.mode-switch a span{font-weight:400;font-size:11px;margin-left:7px}.exam-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.exam-tab{padding:14px 16px;box-shadow:none}.exam-tab[aria-pressed=true]{padding:13px 15px}.exam-tab-locked{background:#f9fbfb;color:#6b7e87}.exam-tab-locked .tab-bar{display:none}.locked-label{font-size:11px!important;color:#6b7e87!important;display:inline-block!important;margin-top:8px!important}.trial-banner{border:1px solid #c5ded9;border-radius:10px;padding:10px 14px;font-size:13px;background:#edf8f5;margin:0 0 18px;color:#2f605e}.trial-banner button{border:0;padding:0;margin-left:6px;background:none;color:var(--teal);font-size:13px;text-decoration:underline;font-weight:600}.header-signin{display:inline-flex;align-items:center;min-height:40px;border:1px solid #ffffff30;border-radius:10px;padding:8px 14px;font-size:13px;color:#e6f4f3;text-decoration:none}.header-signin:hover{background:#ffffff14}
.purchase-dialog{width:min(570px,calc(100% - 28px));max-height:90vh;overflow:auto;border:1px solid #d2e1e1;border-radius:20px;padding:31px;color:var(--ink);box-shadow:0 24px 100px #102f4250}.purchase-dialog::backdrop,#submit-dialog::backdrop{background:#102f428f}.purchase-close{position:absolute;right:13px;top:10px;border:0;background:transparent;font-size:25px;line-height:1;padding:8px;font-weight:400;color:var(--muted)}.purchase-eyebrow{font-size:11px;font-weight:700;letter-spacing:1.4px;color:var(--teal);margin:0 0 12px}.purchase-dialog h2{font-size:25px;line-height:1.25;letter-spacing:-.5px;margin:0 25px 12px 0}.purchase-dialog>p{font-size:14px;line-height:1.65;margin:10px 0}.purchase-dialog .purchase-price{font-size:20px;font-weight:700;color:var(--teal);margin:17px 0}.purchase-arabic{border-top:1px solid var(--line);padding-top:15px;margin-top:15px;font-size:14px;line-height:1.8}.purchase-arabic h3{font-size:18px;margin:0 0 8px}.purchase-arabic p{margin:6px 0}.purchase-arabic-price{font-weight:700;color:var(--teal)}.purchase-contact{display:block;padding:13px;border-radius:10px;background:var(--teal);color:white;text-align:center;text-decoration:none;font-weight:600;font-size:14px;margin-top:19px}.purchase-contact:hover{background:#005951}.purchase-note{font-size:12px!important;color:var(--muted);line-height:1.6}.purchase-actions{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:19px;flex-wrap:wrap}.purchase-actions a{font-size:13px}.purchase-actions button{font-size:12px;padding:8px 11px}
#timed-main{padding-top:24px;padding-bottom:15px}.section-heading{margin:26px 0 24px}.section-heading h2{font-size:28px;line-height:1.25;margin:9px 0}.section-heading>p:not(.eyebrow){color:var(--muted);font-size:14px;margin:0}.timed-paper-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.timed-paper{padding:23px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:14px;min-width:0}.timed-paper:hover{border-color:var(--teal)}.timed-paper[aria-pressed=true]{border:2px solid var(--teal);padding:22px;background:#f4fbf8}.timed-paper strong{display:block;font-size:21px;margin:8px 0}.timed-paper span{display:block;font-size:13px;font-weight:400;color:var(--muted)}.timed-paper .paper-label{font-size:10px;color:var(--teal);font-weight:700;letter-spacing:1.4px}.timed-paper .paper-action{font-size:13px;color:var(--teal);font-weight:600;margin-top:18px}.timed-intro{margin-top:21px;padding:26px}.timed-intro h2{font-size:25px;margin:7px 0 18px}.intro-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:640px;border-bottom:1px solid var(--line);padding-bottom:19px}.intro-facts strong{display:block;font-size:21px}.intro-facts span{font-size:12px;color:var(--muted)}.exam-instructions{padding-left:21px;font-size:14px;color:var(--muted);line-height:1.7;margin:18px 0}.exam-instructions li{padding:3px 0}.muted{color:var(--muted);font-size:13px}.attempt-history{margin:32px 0}.attempt-history h2{font-size:20px;margin-bottom:5px}.history-row{display:flex;justify-content:space-between;align-items:center;gap:16px;background:white;border:1px solid var(--line);border-radius:10px;padding:14px 17px;margin-top:10px}.history-row strong{display:block;font-size:14px}.history-row span{color:var(--muted);font-size:12px}.history-row button{font-size:12px}.timer-banner{position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid #d5e3e4;box-shadow:0 3px 12px #17344808}.timer-banner>.shell{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:10px;padding-bottom:10px;font-size:13px}.timer-banner strong{font-variant-numeric:tabular-nums;color:var(--teal);font-size:20px}.timer-label{font-size:12px;color:var(--muted);margin:0}.timer-display{display:block;font-size:31px;font-variant-numeric:tabular-nums;font-weight:600;letter-spacing:1px;color:var(--teal);margin-bottom:18px}.timer-low{color:#a3293d!important}.q-cell.selected{background:#e3eff9;border-color:#87abc6;color:#1b536e}.grid-key .selected-key:before{background:#87abc6}.back-to-papers{font-size:12px;text-align:center;margin:4px 0}.exam-disclaimer{font-size:12px;color:var(--muted);margin:30px 0 10px}.timed-report{padding:27px;margin-bottom:25px}.timed-report h2{font-size:27px;margin:4px 0 10px}.report-score{font-size:42px;color:var(--teal);line-height:1.2;font-weight:700;margin:14px 0 9px}.report-meta{color:var(--muted);font-size:14px}.report-overview{display:flex;gap:22px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:20px}.report-overview span{font-size:13px;color:var(--muted)}.report-overview strong{color:var(--ink)}.report-priorities{padding:16px 18px;background:#f0f7f5;border-radius:10px;margin:20px 0}.report-priorities h3{font-size:17px;margin:0 0 9px}.report-priorities ul{font-size:14px;padding-left:19px;margin:0;color:#3d6263}.report-priorities li{margin:7px 0}.report-table-wrap{overflow:auto}.report-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.report-table th,.report-table td{padding:11px 9px;border-bottom:1px solid var(--line)}.report-table th{font-weight:600;color:var(--muted)}.report-table td:first-child{font-weight:500}.revision-list{padding-left:20px;font-size:14px}.revision-list li{margin:13px 0}.revision-list button{font-size:13px;padding:5px 10px;margin-right:8px}.revision-list p{font-size:12px;color:var(--muted);margin:5px 0}.report-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.report-actions a{display:inline-block;font-size:13px;text-decoration:none;padding:9px 14px;border:1px solid var(--line);border-radius:9px}.loading-card{padding:28px;color:var(--muted)}#submit-dialog{width:min(520px,calc(100% - 28px));border:1px solid var(--line);border-radius:17px;padding:27px;color:var(--ink)}#submit-dialog h2{margin-top:0}.submit-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:23px}.submit-actions button{font-size:13px}
@media(max-width:740px){.mode-switch{margin-bottom:17px}.mode-switch a{font-size:13px;padding:8px 12px}.mode-switch a span{font-size:10px;margin-left:4px}.exam-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.exam-tab,.exam-tab[aria-pressed=true]{padding:10px 8px}.exam-tab strong{font-size:14px}.exam-tab span{font-size:10px}.locked-label{font-size:10px!important}.section-heading h2{font-size:25px}.timed-intro,.timed-report{padding:20px}.timed-paper{padding:19px}.timed-paper[aria-pressed=true]{padding:18px}.timed-paper strong{font-size:18px}.intro-facts strong{font-size:18px}.intro-facts{gap:10px}.intro-facts span{font-size:11px}.report-score{font-size:35px}.purchase-dialog{padding:25px 21px}.purchase-dialog h2{font-size:23px}.purchase-contact{font-size:12px}.history-row{padding:12px;gap:10px}.history-row strong{font-size:13px}.report-table{font-size:12px}}
@media(max-width:420px){.timed-paper-grid{grid-template-columns:1fr}.timed-paper strong{font-size:19px}.timed-paper span{font-size:12px}.intro-facts strong{font-size:16px}.report-table th,.report-table td{padding:9px 6px}.submit-actions{flex-direction:column-reverse}.submit-actions button{width:100%}.trial-banner{font-size:12px}.mode-switch a span{display:none}}
@media print{.timer-banner,.mode-switch,.report-actions,.purchase-dialog,#timed-workspace{display:none}.timed-report{border:0;box-shadow:none}}

.report-outcome{display:inline-block;border-radius:8px;padding:9px 13px;font-size:15px;font-weight:700;margin:7px 0}.report-outcome.is-pass{color:#005c50;background:#e3f5eb}.report-outcome.is-fail{color:#96364a;background:#fbeef1}.report-threshold{font-size:13px;color:var(--muted);margin:4px 0 13px}

/* Clear, color-coded study modes and compact exam selection. */
.mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:540px;border:0;padding:0;margin-bottom:24px}
.mode-switch .mode-option{--mode-color:#006f68;--mode-soft:#eaf7f3;--mode-border:#b4d8cf;display:flex;align-items:center;gap:12px;padding:14px 16px;min-height:72px;border:1px solid var(--mode-border);border-radius:14px;background:var(--mode-soft);color:var(--mode-color);box-shadow:0 3px 12px #17344805;transition:background .15s,box-shadow .15s}
.mode-switch .mode-option--timed{--mode-color:#315baf;--mode-soft:#eef3ff;--mode-border:#cad6f2}
.mode-switch .mode-option>svg{width:25px;height:25px;flex-shrink:0}
.mode-switch .mode-option .mode-copy{display:block;margin:0;font-weight:inherit;min-width:0}
.mode-switch .mode-option strong{display:block;font-size:15px;line-height:1.35}
.mode-switch .mode-option small{display:block;font-size:11px;font-weight:400;line-height:1.4;margin-top:3px}
.mode-switch .mode-option .mode-indicator{display:block;width:15px;height:15px;border:1.5px solid currentColor;border-radius:50%;margin:0 0 0 auto;flex-shrink:0;opacity:.5}
.mode-switch .mode-option[aria-current=page]{background:var(--mode-color);border-color:var(--mode-color);color:white;box-shadow:0 5px 16px #17344817}
.mode-switch .mode-option[aria-current=page] .mode-indicator{opacity:1;background:currentColor;box-shadow:inset 0 0 0 3px var(--mode-color)}
.mode-switch .mode-option:hover{box-shadow:0 5px 16px #17344820}
.exam-tabs{gap:10px;margin-bottom:20px}
.exam-tab,.exam-tab[aria-pressed=true]{min-width:0;min-height:108px;padding:12px 13px;border:1px solid #dce6e9;border-radius:12px;background:#fff;box-shadow:0 2px 8px #17344804;transition:background .15s,border-color .15s,box-shadow .15s}
.exam-tab:hover:not(:disabled){border-color:#9dc6bd;background:#f8fcfb;box-shadow:0 4px 12px #1734480a}
.exam-tab[aria-pressed=true]{border-color:#9ac7bc;background:#edf8f4;box-shadow:inset 0 3px 0 var(--teal),0 3px 10px #006f6808}
.exam-tab .tab-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0}
.exam-tab .tab-heading strong{font-size:16px;font-weight:650;color:var(--ink);line-height:1.3}
.exam-tab .tab-icon{display:grid;place-items:center;width:20px;height:20px;flex-shrink:0;margin:0;border-radius:7px;background:#f0f4f6;color:#617b88;font-size:10px}
.exam-tab[aria-pressed=true] .tab-icon{color:white;background:var(--teal)}
.exam-tab .tab-meta{font-size:11px;margin-top:4px;color:#617786}
.exam-tab .tab-progress{font-size:11px;margin-top:8px;color:#356d65}
.exam-tab .tab-bar{height:3px;margin-top:6px;background:#d5e8e1}
.exam-tab .tab-fill{margin:0;background:var(--teal)}
.exam-tab.exam-tab-locked{background:linear-gradient(150deg,#fff,#f8fafc)}
.exam-tab-locked .tab-heading strong{color:#4d6576}
.exam-tab-locked .locked-label{display:inline-flex!important;align-items:center;margin-top:9px!important;font-size:10px!important;font-weight:500;color:#526c80!important;background:#eef3f8;border-radius:5px;padding:2px 6px}
@media(min-width:1100px){.exam-tabs{grid-template-columns:repeat(8,minmax(0,1fr))}}
/* A little more room for progress and question navigation. */
@media(min-width:981px){.workspace{grid-template-columns:minmax(0,1fr) 350px}.navigator{padding:21px}.navigator .question-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.navigator .q-cell{min-height:36px}.navigator .stat{padding:10px 5px}}
@media(min-width:741px) and (max-width:980px){.workspace{grid-template-columns:minmax(0,1fr) 280px}.navigator .q-cell{min-height:34px}}
.timed-paper{border-radius:16px;border-color:#d8e1f0;box-shadow:0 4px 18px #17344806;background:linear-gradient(135deg,#fff,#f5f8ff)}
.timed-paper:hover{border-color:#7297d3;background:#f4f7ff}
.timed-paper[aria-pressed=true]{border-color:#315baf;background:#eef3ff}
.timed-paper .paper-label,.timed-paper .paper-action{color:#315baf}
@media(max-width:740px){.mode-switch{gap:10px;margin-bottom:18px;max-width:none}.mode-switch .mode-option{padding:12px;min-height:68px;gap:10px}.mode-switch .mode-option strong{font-size:14px}.mode-switch .mode-option>svg{width:22px;height:22px}.exam-tabs{display:flex;overflow-x:auto;gap:10px;padding:2px 2px 10px;scroll-snap-type:x proximity;scroll-padding:2px;scrollbar-width:thin;scrollbar-color:#b5ceca transparent;margin-bottom:14px}.exam-tab,.exam-tab[aria-pressed=true]{flex:0 0 132px;min-height:108px;padding:12px;scroll-snap-align:start}.exam-tab .tab-heading strong{font-size:16px}.exam-tab .tab-meta{font-size:11px}.exam-tab .tab-progress{font-size:11px}.exam-tab-locked .locked-label{font-size:10px!important}}
@media(max-width:420px){.mode-switch .mode-option{gap:8px;padding:11px 10px}.mode-switch .mode-option .mode-copy{display:block}.mode-switch .mode-option .mode-indicator{display:none}.mode-switch .mode-option small{font-size:10px}.mode-switch .mode-option strong{font-size:13px}.exam-tab,.exam-tab[aria-pressed=true]{flex-basis:128px}}
@media(prefers-reduced-motion:reduce){.mode-switch .mode-option,.exam-tab{transition:none}}
