/* MWONGOZO WA MTIHANI — mtindo wa kitaaluma (purple, red, gold) */

:root {
    --purple: #3d1f5c;
    --purple-light: #5c2d8a;
    --red: #a31f2d;
    --red-hover: #c4283a;
    --gold: #c9a227;
    --gold-dark: #8a6d1a;
    --silver: #e8e4ef;
    --text: #1a1520;
    --muted: #5c5566;
    --card: #ffffff;
    --border: #c5c0d0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f3f0f8 0%, #e4dfe8 100%);
    min-height: 100vh;
}

body.modal-open {
    overflow: hidden;
}

.site-header {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 55%, #4a2580 100%);
    color: #fff;
    padding: 1.4rem 1rem 1.8rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.page-exam .site-header {
    position: relative;
    padding-bottom: 2rem;
}

.page-exam .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 28px;
    pointer-events: none;
    background: radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.06) 100%);
    clip-path: ellipse(85% 100% at 50% 0%);
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    text-align: center;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.logo-emblem {
    width: min(160px, 42vw);
    height: auto;
    max-height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.site-title {
    margin: 0.35rem 0;
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.course-line,
.session-line {
    margin: 0.2rem 0;
    font-size: 0.95rem;
}

.exam-line {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    color: #f0e8ff;
}

.q-type-badge {
    margin: 0 0 0.65rem;
}

.q-type-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.page-exam .q-type-pill {
    background: #ede8f4;
    border-color: #c5c0d0;
    color: #3d1f5c;
}

.options-multi .opt input {
    accent-color: var(--purple);
}

.motto {
    margin: 0.75rem 0 0;
    font-style: italic;
    color: var(--gold);
    font-size: 0.95rem;
}

.motto .ref {
    font-style: normal;
    opacity: 0.9;
    font-size: 0.85rem;
}

.toolbar {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.toolbar-bottom {
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    padding-bottom: 2rem;
}

.timer-box {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.timer-box.warn {
    border-color: var(--red);
    color: var(--red);
    animation: pulse 1s ease infinite;
}

.timer-box.proctor-warn {
    border-color: #c9a227;
    color: #5c4a10;
    background: #fffbeb;
}

.exam-protected {
    -webkit-user-select: none;
    user-select: none;
}

.exam-protected input,
.exam-protected textarea {
    -webkit-user-select: auto;
    user-select: auto;
}

@keyframes pulse {
    50% {
        opacity: 0.85;
    }
}

#timerDisplay {
    font-variant-numeric: tabular-nums;
    margin-left: 0.35rem;
}

.exam-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.25rem 2.5rem;
}

/* Make desktop exam page fluid/wide instead of boxed */
.page-exam .header-inner,
.page-exam .toolbar,
.page-exam .exam-main {
    width: min(1680px, calc(100vw - 2rem));
    max-width: none;
}

.exam-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
}

.exam-content {
    min-width: 0;
}

.question-nav {
    position: sticky;
    top: 0.8rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem;
    box-shadow: 0 10px 24px rgba(61, 31, 92, 0.08);
}

.question-nav-title {
    margin: 0 0 0.2rem;
    color: var(--purple);
    font-size: 0.95rem;
}

.question-nav-meta {
    margin: 0 0 0.6rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.question-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
}

.question-nav-btn {
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #f8f6fb;
    color: var(--purple);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.25rem;
    cursor: pointer;
}

.question-nav-btn.is-answered {
    background: #e8f5e9;
    border-color: #86cfa1;
    color: #1b5e20;
}

.question-nav-btn.is-flagged {
    background: #fff3e0;
    border-color: #e0a854;
    color: #8a5200;
}

.empty-msg {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

/* Hali ya mtihani haupo / umefungwa — kadi ya kitaaluma */
.exam-main--status-solo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(48vh, 400px);
    padding-top: 1.75rem;
    padding-bottom: 3rem;
}

.exam-status-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 2rem 1.75rem 1.75rem;
    background: var(--card);
    border-radius: 18px;
    border: 1px solid rgba(197, 192, 208, 0.85);
    box-shadow:
        0 4px 6px rgba(61, 31, 92, 0.04),
        0 18px 40px rgba(61, 31, 92, 0.12);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: examStatusEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.exam-status-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple) 0%, var(--gold) 50%, var(--purple-light) 100%);
    opacity: 0.95;
}

.exam-status-card--closed::before {
    background: linear-gradient(90deg, var(--purple-light), var(--gold));
}

.exam-status-card--expired::before {
    background: linear-gradient(90deg, #6d5a7a, #b8956a);
}

.exam-status-card--notfound::before {
    background: linear-gradient(90deg, #5c5566, var(--purple-light));
}

.exam-status-card--unprepared::before {
    background: linear-gradient(90deg, var(--purple), var(--red-hover));
}

@keyframes examStatusEnter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.exam-status-icon {
    width: 4.25rem;
    height: 4.25rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #f3effa 0%, #e8e2f2 100%);
    color: var(--purple-light);
    border: 1px solid rgba(197, 192, 208, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.exam-status-card--expired .exam-status-icon {
    color: #7a5c20;
    background: linear-gradient(145deg, #fff9ec 0%, #f5ead4 100%);
}

.exam-status-card--notfound .exam-status-icon {
    color: #4a4452;
}

.exam-status-card--unprepared .exam-status-icon {
    color: var(--red);
    background: linear-gradient(145deg, #fff5f5 0%, #fce4e6 100%);
}

.exam-status-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.2rem, 3.5vw, 1.45rem);
    font-weight: 800;
    color: var(--purple);
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.exam-status-text {
    margin: 0 0 1.35rem;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--muted);
}

.exam-status-text strong {
    color: var(--text);
    font-weight: 700;
}

.exam-status-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.btn-outline {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    background: transparent;
    color: var(--purple-light);
    border: 2px solid var(--purple-light);
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
    background: rgba(92, 45, 138, 0.08);
    color: var(--purple);
}

.block-section {
    margin-bottom: 2rem;
}

.section-title {
    margin: 0 0 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--silver);
    border-left: 5px solid var(--purple);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--purple);
}

.question-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.15rem 1.25rem 1.3rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 8px 22px rgba(61, 31, 92, 0.08);
}

.q-head {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.q-num {
    color: var(--purple-light);
}

.btn-flag-toggle {
    border: 1px solid var(--border);
    background: #f8f6fb;
    color: var(--purple);
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 0.2rem 0.65rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-flag-toggle[aria-pressed="true"] {
    background: #fff3e0;
    border-color: #d89b3f;
    color: #8a5200;
}

.question-card.is-flagged {
    border-color: #d89b3f;
    box-shadow: 0 0 0 2px rgba(216, 155, 63, 0.12);
}

.q-body {
    margin: 0 0 0.75rem;
    line-height: 1.62;
    font-size: 1rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.opt {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
}

.opt:hover {
    background: #f7f5fb;
    border-color: var(--border);
}

.opt input {
    margin-top: 0.2rem;
    accent-color: var(--purple);
}

.opt-letter {
    font-weight: 700;
    min-width: 1.5rem;
    color: var(--purple);
}

.opt-text {
    flex: 1;
    line-height: 1.55;
}

.btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover {
    background: var(--red-hover);
}

.btn-secondary {
    background: var(--silver);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-gold {
    background: linear-gradient(180deg, #e4c24a 0%, var(--gold) 100%);
    color: #1a1520;
    border: 1px solid var(--gold-dark);
}

.btn-gold:hover {
    filter: brightness(1.05);
}

.btn-secondary:hover {
    background: #ded8e8;
}

.link {
    color: var(--purple-light);
    font-weight: 600;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 21, 32, 0.55);
    z-index: 1000;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal[hidden] {
    display: none !important;
}

.modal-card {
    background: var(--card);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    max-width: 420px;
    width: 100%;
    border: 3px solid var(--gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.modal-card-wide {
    max-width: 480px;
}

.review-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0.5rem 0 0.75rem;
}

.review-stat {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.45rem 0.5rem;
    text-align: center;
    background: #faf9fc;
    font-size: 0.82rem;
}

.review-stat strong {
    display: block;
    font-size: 1rem;
    color: var(--purple);
}

.review-list-wrap {
    max-height: 38vh;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.review-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.review-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #eee8f5;
    font-size: 0.86rem;
}

.review-list li:last-child {
    border-bottom: none;
}

.review-badge {
    font-size: 0.73rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.15rem 0.48rem;
}

.review-badge.answered {
    background: #e8f5e9;
    color: #1b5e20;
}

.review-badge.unanswered {
    background: #fdecea;
    color: #8c1d18;
}

.review-badge.flagged {
    background: #fff3e0;
    color: #8a5200;
}

.modal-card-pdf {
    max-width: min(920px, calc(100vw - 2rem));
    width: 100%;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.modal-hint-tight {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
}

.pdf-frame-wrap {
    flex: 1;
    min-height: 50vh;
    max-height: min(72vh, 640px);
    background: #ece8f0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.pdf-preview {
    width: 100%;
    height: 100%;
    min-height: 50vh;
    border: 0;
    display: block;
    background: #fff;
}

.modal h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: var(--purple);
}

.modal-hint {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.field {
    display: block;
    margin-bottom: 0.9rem;
}

.field span {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.field input {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 1rem;
}

.req {
    color: var(--red);
}

.modal-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.res-body {
    margin: 0.75rem 0;
    font-size: 1.05rem;
}

.res-score {
    margin: 0;
}

.res-note {
    color: var(--muted);
    font-size: 0.95rem;
}

.overlay-timeup {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(26, 21, 32, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.overlay-timeup[hidden] {
    display: none !important;
}

.overlay-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 360px;
    text-align: center;
    border: 3px solid var(--gold);
}

.overlay-card h2 {
    margin: 0 0 0.5rem;
    color: var(--red);
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem 2.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-logo {
    opacity: 0.95;
}

.page-matokeo .site-header {
    padding-bottom: 2rem;
}

.lookup-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    margin-top: 1rem;
    box-shadow: 0 2px 12px rgba(61, 31, 92, 0.08);
}

.lookup-msg {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff8f8;
    border-radius: 8px;
}

.lookup-msg.lookup-msg--success {
    background: #eef6f0;
    border: 1px solid #b8dcc4;
    color: var(--purple);
}

.matokeo-hub {
    margin-top: 1.5rem;
    padding: 1.35rem 1.25rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(61, 31, 92, 0.09);
}

.matokeo-hub-title {
    margin: 0 0 0.5rem;
    font-size: 1.12rem;
    color: var(--purple);
    text-align: center;
}

.matokeo-hub-lead {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.55;
    text-align: center;
}

.matokeo-hub-field {
    margin-bottom: 1rem;
}

.matokeo-hub-select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    font-family: inherit;
    background: #faf9fc;
}

.matokeo-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.matokeo-hub-grid .btn {
    width: 100%;
    text-align: center;
}

.matokeo-hub-hint {
    margin: 1rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 520px) {
    .matokeo-hub-grid {
        grid-template-columns: 1fr;
    }
}

.result-panel {
    margin-top: 1.25rem;
    background: var(--card);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 1.25rem;
}

.result-panel h2 {
    margin: 0 0 0.75rem;
    color: var(--purple);
    font-size: 1.15rem;
}

.result-panel .muted {
    color: var(--muted);
    font-size: 0.92rem;
}

.exam-main[aria-hidden="true"] {
    pointer-events: none;
    opacity: 0.55;
    filter: grayscale(0.15);
}

.gate-card {
    max-width: 520px;
    margin: 1.5rem auto 2rem;
    padding: 1.5rem 1.35rem;
    background: var(--card);
    border: 2px solid var(--gold);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(61, 31, 92, 0.08);
}

.gate-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    color: var(--purple);
}

.gate-lead {
    margin: 0 0 1.1rem;
    line-height: 1.55;
    color: var(--muted);
    font-size: 0.98rem;
}

.gate-sub {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--purple);
}

.gate-small {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.45;
}

.gate-hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.35rem 0;
}

.gate-form textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    font-family: inherit;
}

.gate-msg {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.92rem;
}

.gate-blocked .gate-title {
    color: var(--red);
}

.page-asante .site-header {
    padding-bottom: 1.5rem;
}

.muted-tight {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0.35rem;
}

.asante-main {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1rem 2.5rem;
}

.asante-card {
    background: var(--card);
    border: 2px solid var(--gold);
    border-radius: 14px;
    padding: 1.5rem 1.35rem 1.75rem;
    box-shadow: 0 8px 32px rgba(61, 31, 92, 0.1);
}

.asante-head {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    color: var(--purple);
}

.asante-lead {
    margin: 0 0 1.25rem;
    color: var(--muted);
    line-height: 1.55;
    font-size: 1rem;
}

.asante-score-pill {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(61, 31, 92, 0.06), rgba(212, 175, 55, 0.12));
    border-radius: 10px;
    border: 1px solid var(--border);
}

.asante-score-label {
    font-weight: 600;
    color: var(--purple);
    font-size: 0.95rem;
}

.asante-score-val {
    font-size: 1.65rem;
    color: var(--purple);
    letter-spacing: 0.02em;
}

.asante-score-max {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--muted);
}

.asante-score-pct {
    font-weight: 700;
    color: var(--gold-dark);
    font-size: 1.05rem;
}

.asante-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.asante-tile {
    background: #faf9fc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1rem 1.15rem;
}

.asante-tile-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--purple);
}

.asante-tile-desc {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.45;
}

.asante-tile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.asante-tile-actions .btn {
    width: 100%;
    justify-content: center;
}

.asante-footnote {
    margin: 1.35rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
}

.asante-nav {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
}

.asante-nav .link {
    margin: 0 0.25rem;
}

@media print {
    .toolbar,
    .site-footer,
    .modal-backdrop,
    .modal,
    .overlay-timeup {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .site-header {
        padding: 1.25rem 1rem 1.5rem;
    }

    .page-exam .site-header {
        padding-bottom: 1.65rem;
    }

    .toolbar {
        padding: 0.75rem 1rem;
    }

    .exam-main {
        padding: 0 1rem 2rem;
    }

    .exam-status-actions {
        flex-direction: column;
    }

    .exam-status-actions .btn,
    .exam-status-actions .btn-outline {
        width: 100%;
        max-width: 280px;
    }

    .page-exam .header-inner,
    .page-exam .toolbar,
    .page-exam .exam-main {
        width: 100%;
        max-width: none;
    }

    .exam-layout {
        grid-template-columns: 1fr;
    }

    .question-nav {
        position: sticky;
        top: 0.55rem;
        z-index: 20;
    }
}
