body.promo-state-pending nav a[href*="achievements.html"],
nav a[href*="achievements.html"].promo-nav-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Exam timing and optional target/cursor presentation. Native radio inputs
   remain in the DOM; gun mode only changes their visual presentation. */
#studentExamModal .student-exam-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-left: auto;
    color: #fff;
}

#studentExamModal .student-exam-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 5px !important;
    width: auto !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 4px 7px !important;
    border: 1px solid rgba(255, 255, 255, .35) !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-size: .75rem !important;
    font-weight: 700;
    line-height: 1;
    cursor: pointer !important;
}

#studentExamModal .student-exam-toggle input {
    width: 15px !important;
    height: 15px !important;
    min-height: 15px !important;
    margin: 0 !important;
    accent-color: #f0c75e;
}

#studentExamModal .student-exam-toggle:has(input:checked) {
    border-color: #f0c75e !important;
    background: rgba(240, 199, 94, .2);
}

#studentExamModal .student-exam-timer {
    display: inline-flex;
    align-items: center;
    min-width: 108px;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 6px;
    color: #fff;
    font: 700 .75rem/1 'IBM Plex Mono', monospace;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#studentExamModal .student-exam-timer.is-warning {
    border-color: #f0c75e;
    color: #ffe9a8;
}

#studentExamModal .student-exam-timer.is-expired {
    border-color: #f7a6a0;
    color: #ffd2cf;
}

#studentExamModal.student-exam-gun-mode {
    --student-exam-target-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='11' fill='white' fill-opacity='.9' stroke='%23102a43' stroke-width='2'/%3E%3Ccircle cx='14' cy='14' r='6' fill='none' stroke='%23c79a2b' stroke-width='2'/%3E%3Ccircle cx='14' cy='14' r='2' fill='%23102a43'/%3E%3Cpath d='M14 0v5M14 23v5M0 14h5M23 14h5' stroke='%23102a43' stroke-width='2'/%3E%3C/svg%3E");
    cursor: var(--student-exam-target-cursor) 14 14, crosshair;
}

#studentExamModal.student-exam-gun-mode .student-exam-question label {
    position: relative;
    cursor: var(--student-exam-target-cursor) 14 14, crosshair !important;
}

#studentExamModal .student-exam-option-target {
    display: none;
}

#studentExamModal.student-exam-gun-mode .student-exam-question .student-exam-option-target {
    display: inline-block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 2px solid #163b64;
    border-radius: 50%;
    background: radial-gradient(circle, #163b64 0 3px, transparent 3.5px 7px, #163b64 7.5px 9px, transparent 9.5px 100%);
    box-sizing: border-box;
    transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}

#studentExamModal.student-exam-gun-mode .student-exam-question label:has(input:checked) .student-exam-option-target {
    border-color: #c79a2b;
    background: radial-gradient(circle, #c79a2b 0 4px, #fff 4.5px 7px, #c79a2b 7.5px 10px, transparent 10.5px 100%);
}

#studentExamModal.student-exam-gun-mode .student-exam-question label.student-exam-option-shot .student-exam-option-target {
    animation: student-exam-shoot .34s ease-out;
}

#studentExamModal.student-exam-gun-mode .student-exam-question label input[type="radio"] {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

#studentExamModal.student-exam-gun-mode .student-exam-question label:has(input:focus-visible) {
    outline: 3px solid rgba(199, 154, 43, .75);
    outline-offset: 2px;
}

#studentExamModal .student-exam-bullet {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 5px;
    margin: -2.5px 0 0 -8px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 999px;
    background: linear-gradient(90deg, #fff8c9, #c79a2b 70%);
    box-shadow: 0 0 5px rgba(240, 199, 94, .95), 0 0 12px rgba(199, 154, 43, .62);
    pointer-events: none;
    will-change: transform, opacity;
}

#studentExamModal .student-exam-bullet::after {
    content: "";
    position: absolute;
    top: 1px;
    right: 100%;
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 238, 157, .9));
}

@keyframes student-exam-shoot {
    0% { transform: scale(.72); filter: brightness(1); box-shadow: 0 0 0 0 rgba(199, 154, 43, .8); }
    35% { transform: scale(1.28); filter: brightness(1.35); box-shadow: 0 0 0 7px rgba(199, 154, 43, .18); }
    100% { transform: scale(1); filter: brightness(1); box-shadow: 0 0 0 0 rgba(199, 154, 43, 0); }
}

@media (prefers-reduced-motion: reduce) {
    #studentExamModal.student-exam-gun-mode .student-exam-question label.student-exam-option-shot .student-exam-option-target { animation: none; }
    #studentExamModal .student-exam-effects { display: none; }
}

@media (max-width: 760px) {
    #studentExamModal .student-exam-tools {
        flex: 1 0 100%;
        justify-content: flex-start;
        order: 3;
        margin-left: 0;
    }
    #studentExamModal .student-exam-timer { min-width: 102px; }
}

/* Desktop controls stay in the exam header. Mobile controls are mounted
   below the attempt/answer summary in the question index. */
#studentExamModal .student-exam-tools-desktop {
    flex: 0 1 auto;
}

#studentExamModal .student-exam-tools-mobile {
    display: none;
}

@media (max-width: 760px) {
    #studentExamModal .student-exam-tools-desktop { display: none; }
    #studentExamModal .student-exam-tools-mobile {
        display: flex;
        flex: 1 0 100%;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        width: 100%;
        margin-top: 2px;
        order: 999;
    }
    #studentExamModal .student-exam-tools-mobile .student-exam-timer {
        flex: 0 1 auto;
        min-width: 0;
        padding-inline: 6px;
        color: var(--navy);
        border-color: rgba(28, 43, 74, .22);
        background: #f7f9fc;
    }
    #studentExamModal .student-exam-tools-mobile .student-exam-toggle {
        flex: 0 0 auto;
        width: auto !important;
        min-height: 28px !important;
        padding: 4px 6px !important;
        border-color: rgba(28, 43, 74, .22) !important;
        background: #f7f9fc !important;
        color: var(--navy) !important;
    }
}

/* Recent responsive popup and terms-viewer updates. */
#termsScrollBox {
    min-height: 0;
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

:is(
    #authModal,
    #termsModal,
    #announcementsModal,
    #onlineEnrollmentModal,
    #passwordResetModal,
    #studentPdfModal,
    #passwordChangeModal,
    #passwordOtpModal,
    #studentExamModal,
    #studentExamResultModal,
    #studentExamHistoryModal,
    #studentExamImageModal,
    #studentIncompleteAssignmentsModal,
    #studentNewAccountNoticeModal,
    .admin-modal,
    .admin-popup
) {
    align-items: center !important;
    justify-content: center !important;
    padding: 7.5vh 7.5vw !important;
    overflow: hidden !important;
}

:is(
    #authModal .auth-popup-content,
    #termsModal > div,
    #announcementsModal .announcement-modal-content,
    #onlineEnrollmentModal > div,
    #passwordResetModal .password-reset-dialog,
    #studentPdfModal .student-pdf-dialog,
    #passwordChangeModal .student-password-dialog,
    #passwordOtpModal .student-password-dialog,
    #studentExamModal .student-exam-dialog,
    #studentExamResultModal .student-exam-result-dialog,
    #studentExamHistoryModal .student-exam-result-dialog,
    #studentExamImageModal .student-exam-image-dialog,
    #studentIncompleteAssignmentsModal .student-incomplete-assignments-dialog,
    #studentNewAccountNoticeModal .student-new-account-notice-dialog,
    .admin-modal > div,
    .admin-popup > div
) {
    width: 85vw !important;
    max-width: 85vw !important;
    height: 85vh !important;
    max-height: 85vh !important;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}
nav a[href*="achievements.html"].promo-nav-collapsed {
    display:none !important;
}
nav a[href*="achievements.html"] {
    transition: opacity .25s ease, visibility .25s ease;
}

:root {
    --paper: #F3EDDD;
    --paper-dark: #E8DFC8;
    --navy: #1C2B4A;
    --gold: #B8912B;
    --green: #2F855A;
    --red: #B83232;
    --gray: #6B7280;
    --border: #D6CDB5;
    --shadow: 0 15px 35px rgba(0, 0, 0, .08);
    --radius: 18px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background: var(--paper);
    color: #2B2B2B;
    line-height: 1.7;
}

/* Administrator portal design language */
body.admin-portal-page {
    min-height: 100vh;
    background: var(--paper);
    color: var(--navy);
}
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    width: 260px;
    overflow-y: auto;
    padding: 22px 12px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #fffdf5, #f0dfaa);
    border-right: 1px solid rgba(184,145,43,.35);
    transition: width .25s ease, padding .25s ease;
}
.admin-sidebar-brand-row { display:flex; align-items:center; gap:10px; padding:4px 0 18px; }
.admin-sidebar-brand { min-width:0; flex:1 1 auto; padding:0 12px; color:var(--navy); }
.admin-sidebar-brand strong { display:block; font-family:'Fraunces',serif; font-size:1.35rem; }
.admin-sidebar-eyebrow,.admin-eyebrow,.admin-section-eyebrow { color:var(--gold); font-family:'IBM Plex Mono',monospace; font-size:.64rem; letter-spacing:.14em; text-transform:uppercase; }
.admin-sidebar-toggle { width:38px; height:38px; flex:0 0 38px; display:flex; align-items:center; justify-content:center; margin:0 5px 0 0; padding:0; border:1px solid rgba(28,43,74,.22); border-radius:10px; background:rgba(255,255,255,.72); color:var(--navy); cursor:pointer; transition:background-color .2s ease, color .2s ease, border-color .2s ease; }
.admin-sidebar-toggle:hover { background:rgba(255,255,255,.95); border-color:var(--gold); }
.admin-sidebar-toggle-icon { display:inline-flex; align-items:center; justify-content:center; font-size:1.35rem; line-height:1; }
.admin-sidebar-nav,.admin-sidebar-footer { display:flex; flex-direction:column; gap:4px; }
.admin-sidebar-footer { margin-top:auto; padding-top:18px; border-top:1px solid rgba(28,43,74,.12); }
.admin-nav-item,.admin-nav-group,.admin-nav-submenu button { width:100%; min-height:44px; display:flex; align-items:center; gap:11px; padding:10px 12px; border:0; border-radius:9px; background:transparent; color:rgba(28,43,74,.85); text-align:left; font:600 .83rem/1.2 'Inter',sans-serif; cursor:pointer; }
.admin-nav-item > span:first-child,
.admin-nav-group > span:first-child { width:24px; min-width:24px; display:inline-flex; align-items:center; justify-content:center; font-size:1rem; line-height:1; }
.admin-nav-item:hover,.admin-nav-group:hover,.admin-nav-submenu button:hover,.admin-nav-item.active,.admin-nav-group.active { background:rgba(184,145,43,.24); color:var(--navy); }
.admin-nav-group b { margin-left:auto; }
.admin-nav-submenu { display:flex; flex-direction:column; gap:2px; max-height:0; overflow:hidden; opacity:0; padding-left:22px; border-left:2px solid rgba(184,145,43,.35); pointer-events:none; transition:max-height .24s ease, opacity .2s ease; }
.admin-nav-submenu.is-open { max-height:420px; opacity:1; pointer-events:auto; }
.admin-nav-submenu button { min-height:38px; padding:8px 10px; font-size:.76rem; }
.admin-nav-submenu button::before {
    content: attr(data-icon);
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
}
.admin-nav-submenu button.active,
.admin-nav-submenu button:hover { background: rgba(184,145,43,.24); color: var(--navy); }
.admin-nav-submenu button.active::before {
    border: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
}
.admin-main { min-height:100vh; margin-left:260px; }
.admin-content.hidden { display: none !important; }
.admin-section-description { max-width: 760px; margin-top: 10px; color: #52606d; }
.admin-empty-state-panel { margin-top: 28px; max-width: 860px; }
.admin-empty-state-panel h3 { margin-top: 0; }
.admin-empty-state-panel p { margin-top: 10px; color: #52606d; }
.admin-secondary-action { margin-top: 20px; padding: 9px 14px; border: 1px solid #94a3b8; border-radius: 7px; background: #e2e8f0; color: #64748b; font-weight: 700; cursor: not-allowed; }
.admin-account-card { max-width: 620px; margin-top: 28px; }
.admin-account-card dl { display: grid; gap: 14px; }
.admin-account-card dt { color: #64748b; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-account-card dd { margin-top: 2px; font-weight: 700; }
.admin-capability-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:18px; margin-top:24px; }
.admin-capability-card { min-height:190px; display:flex; flex-direction:column; gap:12px; }
.admin-capability-card h3 { margin:0; color:var(--navy); font-family:'Fraunces',serif; font-size:1.35rem; }
.admin-capability-card p { color:#52606d; }
.admin-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:auto; }
.admin-toolbar input,.admin-toolbar select,.admin-form-grid input,.admin-form-grid select,.admin-file-input { min-height:40px; padding:8px 10px; border:1px solid rgba(28,43,74,.22); border-radius:8px; background:#fff; color:var(--navy); font:500 .82rem/1.2 'Inter',sans-serif; }
.admin-toolbar input { flex:1 1 220px; }
.admin-toolbar input#studentSearchInput { height:40px; box-sizing:border-box; }
.student-accounts-table { overflow-x:auto; }
.student-accounts-table table { min-width:760px; box-shadow:none; }
.student-accounts-table th { text-align:left; vertical-align:middle; }
.student-accounts-table td { vertical-align:top; color:#64748b; }
.admin-student-id-link { color:#1459a6; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.admin-student-id-link:hover { color:#0f3f79; }
.admin-student-id-link:focus-visible { outline:3px solid rgba(184,145,43,.4); outline-offset:3px; border-radius:3px; }
.admin-duplicate-student-link,.admin-duplicate-student-name { color:#b42318; font-weight:700; }
.admin-duplicate-student-link { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px; }
.admin-duplicate-student-link:hover { color:#861a12; }
.admin-duplicate-student-link:focus-visible { outline:3px solid rgba(180,35,24,.28); outline-offset:3px; border-radius:3px; }
.admin-login-instructions-dialog.admin-student-details-dialog { display:flex; box-sizing:border-box; width:min(1040px, calc(100vw - 32px)); max-height:min(90vh, 900px); flex-direction:column; }
.admin-login-instructions-dialog.admin-student-details-dialog .admin-login-instructions-header { flex:0 0 auto; }
.admin-login-instructions-body.admin-student-details-body { min-height:0; max-height:none; overflow-y:auto; }
.admin-student-details-caption { margin:0 0 18px; color:#64748b; font-size:.82rem; }
.admin-student-details-card { margin:0 0 22px; }
.admin-student-details-card .student-profile-details-actions { justify-content:center; }
.admin-student-details-status-control { display:flex; width:100%; flex-direction:column; align-items:flex-end; gap:5px; color:var(--navy); font-size:.7rem; font-weight:700; text-align:right; }
.admin-student-details-status-control select { width:100%; min-height:38px; padding:8px 10px; border:1px solid rgba(28,43,74,.22); border-radius:8px; background:#fff; color:var(--navy); font:600 .78rem/1.2 'Inter',sans-serif; cursor:pointer; }
.admin-student-details-status-control select:focus-visible { outline:3px solid rgba(184,145,43,.35); outline-offset:2px; }
.admin-student-details-save { align-self:flex-end; margin-top:0; }
.admin-student-details-status-message { min-height:1.1em; color:#237447; font-size:.68rem; font-weight:700; text-align:right; }
.admin-student-details-fields { gap:18px; }
.admin-student-details-fields > .student-profile-fields-row,
.admin-student-details-fields > .admin-student-details-school { grid-column:1 / -1; }
.admin-student-details-fields input[disabled] { background:rgba(255,255,255,.86); color:var(--navy); cursor:default; opacity:1; }
@media (max-width:700px) {
    #adminStudentDetailsModal { padding:12px; }
    .admin-login-instructions-dialog.admin-student-details-dialog { width:100%; max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); }
    .admin-login-instructions-body.admin-student-details-body { padding:16px; }
    .admin-student-details-status-control { align-items:center; text-align:center; }
    .admin-student-details-save { align-self:center; }
    .admin-student-details-status-message { text-align:center; }
}
.student-table-sort { display:inline-flex; align-items:center; gap:4px; padding:0; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; text-align:left; }
.student-table-sort:hover { text-decoration:underline; }
.admin-action-status-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.admin-save-status { font-size:.78rem; font-weight:700; }
.admin-save-status.success { color:#237447; animation:admin-save-status-fade 5s ease forwards; }
.admin-save-status.error { color:#a52c2c; animation:admin-save-status-fade 5s ease forwards; }
@keyframes admin-save-status-fade { 0%,72% { opacity:1; } 100% { opacity:0; } }
.admin-primary-action:disabled,
.admin-primary-action.is-disabled {
    opacity:.48;
    cursor:not-allowed;
    background:#94a3b8;
    border-color:#94a3b8;
    color:#eef2f7;
}
.admin-primary-action:disabled:hover,
.admin-primary-action.is-disabled:hover { background:#94a3b8; }
.admin-form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; }
.admin-report-fields { grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:end; }
.admin-form-grid label { display:grid; gap:6px; color:#52606d; font-size:.76rem; font-weight:700; }
.admin-report-date-range { display:grid; gap:6px; color:#52606d; font-size:.76rem; font-weight:700; }
.admin-report-date-inputs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.admin-report-date-inputs label { display:grid; gap:6px; color:#52606d; font-size:.76rem; font-weight:700; }
#adminInlineReportType,
#adminReportFromDate,
#adminReportToDate { height:38.4px; min-height:38.4px; box-sizing:border-box; padding:6px 10px; }
#adminReportResults { margin-top:16px; overflow-x:auto; }
#adminReportResults.is-error { color:var(--red); }
.admin-inline-report { display:grid; gap:12px; }
.admin-inline-report h3 { margin:0; color:var(--navy); font:600 1.15rem/1.2 'Fraunces',serif; }
.admin-inline-report p { margin:0; color:#64748b; }
.admin-inline-report-table-wrap { overflow-x:auto; }
.admin-access-package-card { overflow: visible; }
.admin-access-package-grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.admin-form-field { display:grid; gap:6px; min-width:0; }
.admin-form-field > label { display:block; }
.admin-student-picker { position:relative; width:100%; min-width:0; }
.admin-student-picker > input { width:100%; min-width:0; height:40px; box-sizing:border-box; padding-right:46px; }
.admin-student-picker-toggle { position:absolute; z-index:1; top:1px; right:1px; width:38px; height:38px; display:flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:0 7px 7px 0; background:#fff; color:var(--navy); font-size:1rem; font-weight:700; line-height:1; cursor:pointer; }
.admin-student-picker-toggle:hover,.admin-student-picker-toggle:focus-visible { background:#f4ead0; outline:0; }
.admin-student-picker.is-open > input { border-color:var(--gold); box-shadow:0 0 0 2px rgba(184,145,43,.16); }
.admin-student-picker-menu { position:absolute; z-index:1250; top:calc(100% + 5px); left:0; width:100%; max-height:260px; overflow:auto; box-sizing:border-box; padding:4px; border:1px solid rgba(28,43,74,.24); border-radius:8px; background:#fff; box-shadow:0 14px 30px rgba(28,43,74,.2); }
.admin-student-picker-menu[hidden] { display:none; }
.admin-student-picker-option { display:grid; width:100%; gap:2px; padding:9px 10px; border:0; border-radius:5px; background:#fff; color:var(--navy); font:600 .8rem/1.3 'Inter',sans-serif; text-align:left; cursor:pointer; }
.admin-student-picker-option-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-student-picker-option-details { overflow:hidden; color:#64748b; font-size:.72rem; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.admin-student-picker-option:hover,.admin-student-picker-option:focus-visible,.admin-student-picker-option[aria-selected="true"] { background:#f4ead0; color:var(--navy); outline:0; }
.admin-student-picker-empty { padding:10px; color:#64748b; font-size:.8rem; }
.admin-subject-area-dropdown { position:relative; min-width:0; }
.admin-subject-area-trigger { width:100%; min-height:40px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border:1px solid rgba(28,43,74,.22); border-radius:8px; background:#fff; color:var(--navy); font:500 .82rem/1.2 'Inter',sans-serif; text-align:left; cursor:pointer; }
.admin-subject-area-trigger > span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-subject-area-trigger:disabled { opacity:.58; cursor:not-allowed; background:#eef2f7; }
.admin-subject-area-menu { position:absolute; z-index:1200; top:calc(100% + 5px); left:0; width:max-content; min-width:100%; max-width:min(480px,calc(100vw - 32px)); max-height:280px; overflow:auto; padding:8px; border:1px solid rgba(28,43,74,.24); border-radius:10px; background:#fff; box-shadow:0 14px 30px rgba(28,43,74,.2); }
.admin-subject-area-option { display:flex !important; grid-template-columns:auto minmax(0,1fr); align-items:flex-start; gap:8px; min-width:max-content; padding:7px 6px; color:var(--navy) !important; font-size:.78rem !important; line-height:1.3; cursor:pointer; white-space:nowrap; }
.admin-subject-area-option:hover { background:#f4f7fa; border-radius:6px; }
.admin-subject-area-option input { width:17px; height:17px; margin:0; accent-color:var(--navy); }
.admin-primary-action { align-self:flex-start; margin-top:auto; padding:10px 14px; border:1px solid var(--navy); border-radius:8px; background:var(--navy); color:#fff; font:700 .8rem/1.2 'Inter',sans-serif; cursor:pointer; }
.admin-primary-action:hover { background:#2d426d; }
.admin-data-table { margin-top:8px; padding:14px; border:1px dashed rgba(28,43,74,.2); border-radius:8px; color:#64748b; font-size:.8rem; }
.admin-lectures-main { min-height:100vh; background:var(--paper); }
.admin-back-link { display:inline-flex; align-items:center; padding:9px 14px; border:1px solid rgba(255,255,255,.55); border-radius:9px; color:#fff; font:700 .8rem/1.2 'Inter',sans-serif; text-decoration:none; background:rgba(255,255,255,.2); }
.admin-lecture-tabs { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:8px; margin-top:24px; }
.admin-lecture-tabs button { min-height:54px; padding:8px 10px; border:1px solid #d9c17b; background:#fffdf5; color:var(--navy); font:700 .76rem/1.25 'Inter',sans-serif; cursor:pointer; }
.admin-lecture-tabs button[aria-selected="true"] { border-color:var(--navy); background:var(--navy); color:#fff; box-shadow:0 3px 0 rgba(28,43,74,.18); }
.admin-lecture-mobile-select { display:none; }
.admin-lecture-editor { margin-top:22px; padding:24px; border:1px solid rgba(184,145,43,.3); border-radius:16px; background:rgba(255,255,255,.82); box-shadow:var(--shadow); }
.admin-lecture-editor-head { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:18px; }
.admin-lecture-editor-head h3 { margin:0; color:var(--navy); font:600 1.45rem/1.25 'Fraunces',serif; }
.admin-lecture-editor-head p { max-width:760px; margin-top:8px; color:#52606d; }
.admin-lecture-editor-actions { display:flex; flex-wrap:wrap; gap:8px; }
.admin-save-action { align-self:flex-start; margin-top:auto; padding:10px 14px; border:1px solid var(--gold); border-radius:8px; background:var(--gold); color:#fff; font:700 .8rem/1.2 'Inter',sans-serif; cursor:pointer; }
.admin-save-action:hover { background:#9f7b1f; }
.admin-lecture-table-wrap { margin-top:20px; overflow-x:auto; }
.admin-lecture-table { width:100%; min-width:1180px; border-collapse:collapse; overflow:visible; }
.admin-lecture-table th { padding:11px 12px; background:var(--navy); color:#fff; text-align:center; vertical-align:middle; font-size:.72rem; letter-spacing:.04em; text-transform:uppercase; }
.admin-lecture-table td { padding:12px; border-bottom:1px solid rgba(28,43,74,.1); vertical-align:middle; }
.admin-lecture-table input,.admin-lecture-table select { width:100%; min-height:38px; padding:8px 10px; border:1px solid rgba(28,43,74,.22); border-radius:7px; background:#fff; color:var(--navy); font:500 .8rem/1.2 'Inter',sans-serif; }
.admin-kinescope-picker { display:grid; gap:6px; min-width:230px; }
.admin-local-video-picker { display:grid; gap:6px; min-width:230px; }
.admin-kinescope-picker select[data-kinescope-video] { width:100%; }
.admin-kinescope-picker select { min-height:34px; padding:6px 8px; font-size:.72rem; }
.admin-local-video-picker select { min-height:34px; padding:6px 8px; font-size:.72rem; }
.admin-kinescope-picker small { display:block; color:#64748b; font-size:.68rem; line-height:1.25; overflow-wrap:anywhere; }
.admin-local-video-picker small { display:block; color:#64748b; font-size:.68rem; line-height:1.25; overflow-wrap:anywhere; }
.admin-kinescope-picker .admin-access-check { margin-top:1px; }
.admin-access-checks { display:grid; grid-template-columns:repeat(2,minmax(72px,1fr)); gap:5px 8px; min-width:150px; }
.admin-access-check { display:flex; align-items:center; gap:4px; color:var(--navy); font-size:.7rem; font-weight:600; white-space:nowrap; }
.admin-access-check input { width:14px; min-height:14px; accent-color:var(--gold); }
.admin-package-controls { display:grid; gap:6px; min-width:220px; }
.admin-package-checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px 8px; }
.admin-package-conditional { display:block; }
.admin-package-subject-dropdown { position:relative; z-index:1; flex:1 1 155px; min-width:145px; }
.admin-package-subject-dropdown.is-open { z-index:1000; }
.admin-package-subject-trigger { display:block; width:100%; min-height:32px; padding:6px 28px 6px 8px; border:1px solid rgba(28,43,74,.22); border-radius:7px; background:#fff; color:var(--navy); font:500 .7rem/1.2 'Inter',sans-serif; text-align:left; cursor:pointer; position:relative; }
.admin-package-subject-trigger::after { content:""; position:absolute; right:10px; top:50%; width:6px; height:6px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:translateY(-65%) rotate(45deg); }
.admin-package-subject-trigger[disabled] { cursor:not-allowed; opacity:.55; }
.admin-package-subject-dropdown.is-open .admin-package-subject-trigger::after { transform:translateY(-25%) rotate(225deg); }
.admin-package-subject-menu { position:fixed; top:0; left:0; z-index:1001; display:grid; box-sizing:border-box; width:max-content; min-width:0; max-width:calc(100vw - 16px); max-height:260px; overflow-x:hidden; overflow-y:auto; gap:5px; margin:0; padding:8px; border:1px solid rgba(28,43,74,.22); border-radius:7px; background:#fff; box-shadow:0 7px 16px rgba(28,43,74,.16); }
.admin-package-subject-option { display:flex; align-items:flex-start; gap:6px; color:var(--navy); font-size:.68rem; font-weight:600; line-height:1.25; cursor:pointer; }
.admin-package-subject-option input { flex:0 0 auto; width:14px; min-height:14px; margin:0; accent-color:var(--gold); }
.admin-package-subject-option span { white-space:nowrap; }
.admin-package-subject-menu[hidden] { display:none; }
.admin-package-check { display:flex; align-items:center; gap:4px; color:var(--navy); font-size:.7rem; font-weight:600; white-space:nowrap; }
.admin-package-check input { width:14px; min-height:14px; accent-color:var(--gold); }
.admin-lecture-table a { color:#1459a6; font-weight:700; text-decoration:underline; white-space:nowrap; }
.admin-danger-action { padding:8px 10px; border:1px solid var(--red); border-radius:7px; background:#fff; color:var(--red); font:700 .75rem/1 'Inter',sans-serif; cursor:pointer; }
.admin-danger-action:hover { background:#fff0f0; }
.admin-lecture-status { margin-top:12px; color:#64748b; font-size:.78rem; }
.admin-lecture-status.is-saved { color:#2f855a; font-weight:700; }
.admin-file-storage-section { margin:0 0 18px; padding:18px 20px; border:1px solid rgba(184,145,43,.34); border-radius:12px; background:linear-gradient(135deg,#fffdf6,#f8f1dc); }
.admin-file-storage-section h2 { margin:4px 0 7px; color:var(--navy); font-family:'Fraunces',serif; font-size:clamp(1.3rem,2.2vw,1.65rem); }
.admin-file-storage-section p { margin:0; color:#52606d; line-height:1.55; }
.admin-file-storage-section strong { color:var(--navy); }
.admin-file-toolbar { display:grid; grid-template-columns:minmax(0,1fr) 198px 198px; align-items:center; gap:10px; width:100%; margin-top:22px; }
.admin-file-toolbar input[type="file"] { width:100%; min-width:0; box-sizing:border-box; }
.admin-file-toolbar #uploadFileBtn,
.admin-file-toolbar #refreshFilesBtn { width:198px; min-width:198px; height:54px; align-self:stretch; box-sizing:border-box; white-space:nowrap; }
@media (max-width:560px) {
    .admin-file-toolbar { grid-template-columns:minmax(0,1fr); gap:8px; }
    .admin-file-toolbar #uploadFileBtn,
    .admin-file-toolbar #refreshFilesBtn { width:100%; min-width:0; min-height:54px; padding-left:12px; padding-right:12px; }
    .admin-package-subject-option span { white-space:normal; }
}
.admin-upload-progress { width:100%; max-width:none; box-sizing:border-box; margin-top:14px; }
.admin-upload-progress-head { display:flex; justify-content:space-between; gap:16px; margin-bottom:6px; color:#64748b; font-size:.78rem; }
.admin-upload-progress progress { display:block; width:100%; height:10px; accent-color:#b8912b; }
.admin-file-list-panel { margin-top:18px; }
.admin-file-list { display:grid; gap:8px; }
.admin-file-breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin-bottom:8px; }
.admin-file-breadcrumbs button { padding:4px 7px; border:0; border-radius:5px; background:#f4edda; color:var(--navy); font:700 .74rem/1 'Inter',sans-serif; cursor:pointer; }
.admin-folder-row { display:flex; align-items:center; gap:8px; width:100%; padding:12px 15px; border:1px solid rgba(184,145,43,.28); border-radius:9px; background:#fffdf5; color:var(--navy); text-align:left; font:700 .82rem/1.2 'Inter',sans-serif; cursor:pointer; }
.admin-folder-row:hover { background:#f4edda; }
.admin-file-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:13px 15px; border:1px solid rgba(28,43,74,.12); border-radius:9px; background:#fff; }
.admin-file-row strong { color:var(--navy); font-size:.86rem; }
.admin-file-row small { display:block; margin-top:3px; color:#64748b; font-size:.72rem; }
.admin-file-actions { display:flex; gap:7px; }
.admin-file-actions button { padding:7px 10px; border:1px solid rgba(28,43,74,.25); border-radius:7px; background:#fff; color:var(--navy); font:700 .73rem/1 'Inter',sans-serif; cursor:pointer; }
.admin-file-actions button:hover { background:#f4edda; }
.admin-lecture-status.is-error { color:var(--red); font-weight:700; }
@media(max-width:700px){.admin-lecture-tabs{display:none}.admin-lecture-mobile-select{display:block;width:100%;min-height:42px;margin-top:20px;padding:8px 12px;border:1px solid #d9c17b;border-radius:7px;background:#fffdf5;color:var(--navy);font:600 .85rem/1.2 'Inter',sans-serif}.admin-lecture-editor{padding:16px}.admin-lecture-editor-head h3{font-size:1.2rem}.admin-back-link{padding:8px 10px;font-size:.72rem}}
.admin-header { position:sticky; top:0; z-index:10; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px clamp(20px,4vw,56px); background:#b8912b; color:#fff; box-shadow:0 3px 14px rgba(28,43,74,.12); }
.admin-header h1 { margin-top:3px; font-family:'Fraunces',serif; font-size:clamp(1.45rem,2.5vw,2.1rem); }
.admin-header .admin-eyebrow { color:#fff4cf; }
.admin-header-logout { padding:9px 15px; border:1px solid rgba(255,255,255,.55); border-radius:7px; background:#8f2626; color:#fff; font-weight:700; cursor:pointer; }
.admin-content { width:min(100% - 48px, 1280px); margin:0 auto; padding:clamp(26px,4vw,56px) 0 80px; }
.admin-content > h2 { font-family:'Fraunces',serif; font-size:clamp(2rem,4vw,3.3rem); }
.admin-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:32px; }
.admin-summary-card,.admin-panel { padding:22px; border:1px solid rgba(184,145,43,.28); border-radius:14px; background:rgba(255,255,255,.82); box-shadow:0 8px 22px rgba(28,43,74,.07); }
.admin-summary-card { display:flex; flex-direction:column; gap:8px; }
.admin-summary-card span { color:#52606d; font-size:.82rem; font-weight:700; }
.admin-summary-card strong { font-family:'Fraunces',serif; font-size:2rem; color:var(--navy); }
.admin-summary-card small { color:#64748b; font-size:.72rem; }
.admin-dashboard-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; align-items:stretch; }
.admin-dashboard-card-grid > .ticket { min-width:0; height:100%; box-sizing:border-box; }
.admin-dashboard-card-grid > .ticket { display:flex; flex-direction:column; }
.admin-card-action-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; }
.admin-card-action-row .admin-primary-action { margin-top:0; }
.admin-announcements-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.admin-announcements-toolbar p { max-width:680px; margin:0; color:#64748b; font-size:.8rem; }
.admin-announcements-layout { display:grid; grid-template-columns:minmax(250px,.8fr) minmax(0,1.4fr); gap:20px; align-items:start; }
.admin-announcements-list-title { margin:0 0 10px; color:var(--navy); font:600 1.15rem/1.2 'Fraunces',serif; }
.admin-announcements-list { display:grid; gap:8px; max-height:430px; overflow-y:auto; margin:0; padding:0; list-style:none; }
.admin-announcement-item { display:flex; box-sizing:border-box; width:100%; max-width:100%; align-items:center; gap:6px; padding:7px; border:1px solid rgba(28,43,74,.14); border-radius:8px; background:#fff; }
.admin-announcement-item.is-selected { border-color:var(--gold); box-shadow:0 0 0 2px rgba(184,145,43,.16); }
.admin-announcement-select { display:flex; flex:1 1 auto; min-width:0; flex-direction:column; gap:4px; padding:5px; border:0; background:transparent; color:var(--navy); text-align:left; cursor:pointer; }
.admin-announcement-select:hover { background:rgba(184,145,43,.09); transform:none; }
.admin-announcement-select strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.78rem; }
.admin-announcement-select small { color:#64748b; font-size:.68rem; }
.admin-announcement-reorder { display:flex; flex:0 0 auto; gap:3px; }
.admin-icon-action { width:28px; height:28px; padding:0; border:1px solid rgba(28,43,74,.2); border-radius:5px; background:#fffdf5; color:var(--navy); font-weight:700; cursor:pointer; }
.admin-icon-action:hover { background:#f4edda; transform:none; }
.admin-icon-action:disabled { opacity:.35; cursor:not-allowed; }
.admin-announcements-empty { padding:14px; border:1px dashed rgba(28,43,74,.18); border-radius:8px; color:#64748b; font-size:.8rem; }
.admin-announcement-editor { display:grid; gap:12px; padding:16px; border:1px solid rgba(184,145,43,.28); border-radius:10px; background:rgba(255,255,255,.62); }
.admin-announcement-editor h3 { margin:0 0 2px; color:var(--navy); font:600 1.3rem/1.2 'Fraunces',serif; }
.admin-announcement-editor label { display:grid; gap:5px; color:var(--navy); font-size:.78rem; font-weight:700; }
.admin-announcement-editor input,.admin-announcement-editor textarea { width:100%; box-sizing:border-box; padding:9px 10px; border:1px solid rgba(28,43,74,.22); border-radius:7px; background:#fff; color:var(--navy); font:500 .8rem/1.35 'Inter',sans-serif; }
.admin-announcement-editor textarea { resize:vertical; }
.admin-announcement-editor input[type=file] { padding:7px; }
.admin-announcement-date-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.admin-announcement-editor small { color:#64748b; font-size:.68rem; font-weight:400; }
.admin-announcement-image-preview { width:100%; max-height:190px; object-fit:contain; border:1px solid rgba(28,43,74,.14); border-radius:7px; background:#fff; }
.admin-announcement-image-actions { display:flex; align-items:center; gap:8px; }
.admin-announcement-image-actions .admin-danger-action { margin-top:0; }
.admin-announcement-editor-actions { display:flex; flex-wrap:wrap; gap:8px; }
.admin-announcements-dialog .admin-announcement-editor-actions .admin-primary-action,
.admin-announcements-dialog .admin-announcement-editor-actions .admin-danger-action {
    box-sizing:border-box;
    min-height:42px;
    margin-top:0;
}
.admin-announcements-dialog .admin-announcement-editor-actions .admin-danger-action {
    border-color:var(--red);
    background:var(--red);
    color:#fff;
}
.admin-announcements-dialog .admin-announcement-editor-actions .admin-danger-action:hover {
    background:#962727;
    border-color:#962727;
}
.admin-announcements-dialog .admin-announcement-editor-actions .admin-danger-action:disabled {
    opacity:.55;
    cursor:not-allowed;
}
.admin-announcement-status { min-height:1.2em; margin:0; color:#64748b; font-size:.76rem; font-weight:600; }
.admin-announcement-status.is-success { color:#276749; }
.admin-announcement-status.is-error { color:var(--red); }
.announcement-detail-image { display:block; width:100%; max-height:360px; margin-top:18px; object-fit:contain; border-radius:9px; background:#f5f5f5; }
.announcement-empty { color:#64748b; text-align:center; }
.admin-login-instructions { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:20px; }
.admin-login-instructions.hidden { display:none; }
.admin-login-instructions-backdrop { position:absolute; inset:0; background:rgba(15,29,52,.68); backdrop-filter:blur(4px); }
.admin-login-instructions-dialog { position:relative; width:min(620px,100%); overflow:hidden; border:1px solid rgba(184,145,43,.55); border-radius:16px; background:#fffdf7; box-shadow:0 18px 55px rgba(15,29,52,.3); }
.admin-login-instructions-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; background:var(--navy); color:#fff; }
.admin-login-instructions-header h2 { margin:0; color:#fff; font:600 1.25rem/1.2 'Fraunces',serif; }
.admin-login-instructions-header button { border:0; background:transparent; color:#fff; font-size:1.8rem; line-height:1; cursor:pointer; }
.admin-login-instructions-body { padding:24px; color:#52606d; line-height:1.6; }
.admin-login-instructions-body { max-height:calc(100vh - 150px); overflow-y:auto; }
.admin-announcements-dialog {
    display: flex;
    box-sizing: border-box;
    width: min(620px, 100%);
    max-width: 100%;
    height: min(88vh, 820px);
    height: min(88dvh, 820px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    min-height: 0;
    flex-direction: column;
}
.admin-announcements-dialog .admin-login-instructions-body {
    display: flex;
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: auto;
}
.admin-announcements-dialog .admin-announcements-toolbar,
.admin-announcements-dialog .admin-announcements-layout,
.admin-announcements-dialog .admin-announcement-editor,
.admin-announcements-dialog .admin-announcements-list,
.admin-announcements-dialog .admin-announcements-layout > * {
    min-width: 0;
}
.admin-announcements-dialog .admin-announcements-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.admin-announcements-dialog .admin-announcements-list {
    max-width: 100%;
    overflow-x: hidden;
}
.admin-announcements-dialog .admin-announcement-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    overflow: hidden;
}
.admin-announcements-dialog .admin-announcement-select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}
.admin-announcements-dialog .admin-announcement-select strong {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}
.admin-announcements-dialog .admin-announcement-reorder {
    justify-self: end;
    align-self: center;
}
.admin-announcements-dialog .admin-announcement-editor input,
.admin-announcements-dialog .admin-announcement-editor textarea {
    max-width: 100%;
}
@media (min-width: 701px) {
    .admin-announcements-dialog {
        width: 90vw;
        max-width: 90vw;
    }
}
@media (max-width: 700px) {
    #adminAnnouncementsModal { padding: 12px; }
    .admin-announcements-dialog {
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 24px);
        height: calc(100dvh - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }
    .admin-announcements-dialog .admin-login-instructions-body { padding: 16px; }
    .admin-announcements-dialog .admin-announcements-toolbar { align-items: stretch; flex-direction: column; }
    .admin-announcements-dialog .admin-announcements-layout { grid-template-columns: minmax(0, 1fr); }
    .admin-announcements-dialog .admin-announcement-date-grid { grid-template-columns: minmax(0, 1fr); }
}
.admin-login-instructions-body .admin-instruction-section { margin-top:16px; padding-top:12px; border-top:1px solid rgba(28,43,74,.12); }
.admin-login-instructions-body .admin-instruction-section h3 { margin:0 0 4px; color:var(--navy); font-size:1rem; }
.admin-login-instructions-body strong { color:var(--navy); }
.admin-login-instructions-body .admin-primary-action { margin-top:22px; }
.admin-instructions-workflow-dialog { display:flex; box-sizing:border-box; width:min(780px,100%); max-height:min(88vh,820px); max-height:min(88dvh,820px); min-height:0; flex-direction:column; }
.admin-instructions-workflow-dialog .admin-login-instructions-header { flex:0 0 auto; }
.admin-instructions-workflow-body { display:flex; min-height:0; max-height:none; flex:1 1 auto; flex-direction:column; gap:16px; overflow-y:auto; }
.admin-instructions-workflow-intro { margin:0; }
.admin-instructions-workflow-picker { display:grid; min-width:0; gap:6px; color:var(--navy); }
.admin-instructions-workflow-picker label { font-size:.88rem; font-weight:700; }
.admin-instructions-workflow-picker select { box-sizing:border-box; width:100%; min-height:46px; padding:10px 38px 10px 12px; border:1px solid rgba(28,43,74,.24); border-radius:9px; background:#fff; color:var(--navy); font:500 .95rem/1.3 'Inter',sans-serif; }
.admin-instructions-workflow-picker select:focus-visible { outline:3px solid rgba(184,145,43,.3); outline-offset:2px; border-color:var(--gold); }
.admin-instructions-workflow-picker p { margin:0; color:#64748b; font-size:.82rem; line-height:1.45; }
.admin-instructions-workflow-content { min-width:0; padding:18px; border:1px solid rgba(28,43,74,.14); border-radius:12px; background:rgba(255,255,255,.72); }
.admin-instructions-workflow-content h3 { margin:0 0 6px; color:var(--navy); font:600 1.1rem/1.3 'Fraunces',serif; }
.admin-instructions-workflow-content p { margin:0; }
.admin-instructions-workflow-content h4 { margin:18px 0 8px; color:var(--navy); font:700 .9rem/1.3 'Inter',sans-serif; }
.admin-instructions-workflow-content h5 { margin:0 0 5px; color:var(--navy); font:700 .84rem/1.35 'Inter',sans-serif; }
.admin-instructions-control-section,
.admin-instructions-windows-section,
.admin-instructions-steps-section { margin-top:18px; }
.admin-instructions-control-list { display:grid; grid-template-columns:minmax(145px,.8fr) minmax(0,1.8fr); gap:0; margin:0; overflow:hidden; border:1px solid rgba(28,43,74,.13); border-radius:9px; background:#fff; }
.admin-instructions-control-list dt,
.admin-instructions-control-list dd { min-width:0; margin:0; padding:9px 10px; border-bottom:1px solid rgba(28,43,74,.1); font-size:.82rem; line-height:1.45; }
.admin-instructions-control-list dt { color:var(--navy); background:#f5f7fa; font-weight:700; }
.admin-instructions-control-list dd { color:#52606d; }
.admin-instructions-control-list dt:nth-last-of-type(1),
.admin-instructions-control-list dd:last-child { border-bottom:0; }
.admin-instructions-window { margin-top:10px; padding:12px; border:1px solid rgba(28,43,74,.13); border-radius:9px; background:rgba(247,249,252,.82); }
.admin-instructions-window > p { margin-bottom:10px; color:#52606d; font-size:.84rem; line-height:1.45; }
.admin-instructions-workflow-content ol { display:grid; gap:8px; margin:12px 0 0; padding-left:1.35rem; }
.admin-instructions-workflow-content li { padding-left:2px; }
.admin-instructions-workflow-note { margin-top:14px !important; padding:11px 13px; border-left:3px solid var(--gold); border-radius:0 8px 8px 0; background:rgba(184,145,43,.1); font-size:.9rem; }
.admin-instructions-workflow-note strong { display:block; margin-bottom:5px; }
.admin-instructions-workflow-note ul { display:grid; gap:6px; margin:0; padding-left:1.25rem; }
.admin-instructions-workflow-note li { padding-left:2px; }
.admin-instructions-workflow-dialog #acknowledgeAdminLoginInstructions { align-self:flex-start; margin-top:auto; }
@media(max-width:700px) {
    #adminLoginInstructions { padding:12px; }
    .admin-instructions-workflow-dialog { width:100%; max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); }
    .admin-instructions-workflow-dialog .admin-login-instructions-header { padding:15px 17px; }
    .admin-instructions-workflow-dialog .admin-login-instructions-body { gap:12px; padding:16px; }
    .admin-instructions-workflow-content { padding:14px; }
    .admin-instructions-control-list { grid-template-columns:1fr; }
    .admin-instructions-control-list dt { padding-bottom:2px; border-bottom:0; }
    .admin-instructions-control-list dd { padding-top:2px; }
}
.admin-feedback-toolbar { --admin-feedback-control-height:40px; display:grid; grid-template-columns:minmax(220px,1fr) minmax(150px,180px) minmax(150px,180px) auto auto minmax(0,1fr); align-items:end; gap:10px; }
.admin-feedback-toolbar > select,
.admin-feedback-date-filter input,
.admin-feedback-toolbar > .admin-primary-action { height:var(--admin-feedback-control-height); min-height:var(--admin-feedback-control-height); box-sizing:border-box; }
.admin-feedback-toolbar > select { width:100%; min-width:0; }
.admin-feedback-date-filter { display:grid; min-width:0; gap:4px; color:var(--navy); font-size:.74rem; font-weight:700; }
.admin-feedback-date-filter input { width:100%; min-width:0; }
.admin-feedback-toolbar > .admin-primary-action { align-self:end; margin:0; white-space:nowrap; }
.admin-feedback-toolbar > .admin-save-status { grid-column:1 / -1; }
.admin-feedback-table-box { margin-top:20px; overflow-x:auto; border:1px dashed rgba(28,43,74,.2); border-radius:8px; }
.admin-feedback-table { width:100%; min-width:1120px; border-collapse:collapse; font-size:.78rem; }
.admin-feedback-table th { padding:11px 12px; background:var(--navy); color:#fff; text-align:left; }
.admin-feedback-table td { padding:11px 12px; border-bottom:1px solid rgba(28,43,74,.1); color:#52606d; vertical-align:top; }
.admin-feedback-table th:first-child,.admin-feedback-table td:first-child { min-width:170px; white-space:nowrap; }
.admin-feedback-table tr:last-child td { border-bottom:0; }
.admin-feedback-table-box.is-error { padding:14px; color:var(--red); }
@media(max-width:900px) {
    .admin-feedback-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .admin-feedback-toolbar > select,.admin-feedback-toolbar > .admin-save-status { grid-column:1 / -1; }
    .admin-feedback-toolbar > .admin-primary-action { width:100%; }
}
@media(max-width:480px) {
    .admin-feedback-toolbar { grid-template-columns:minmax(0,1fr); }
    .admin-feedback-toolbar > select,.admin-feedback-toolbar > .admin-save-status { grid-column:1; }
}
.admin-quick-actions,.admin-activity { margin-top:22px; }
.admin-panel h3 { margin-top:4px; font-family:'Fraunces',serif; font-size:1.6rem; }
.admin-action-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:16px; }
.admin-action-grid button { min-height:42px; padding:10px 14px; border:1px solid var(--navy); border-radius:7px; background:var(--navy); color:#fff; font-weight:700; cursor:pointer; }
.admin-empty-state { margin-top:14px; padding:18px; border:1px dashed #cbd5e1; border-radius:9px; color:#64748b; }
#websiteContentManager { margin-top:0; }
@media(max-width:850px){.admin-sidebar{width:76px;padding:18px 8px}.admin-sidebar-brand strong,.admin-sidebar-brand span,.admin-sidebar .admin-nav-item span:not(:first-child),.admin-sidebar .admin-nav-group span:not(:first-child),.admin-sidebar .admin-nav-group b,.admin-nav-submenu{display:none}.admin-sidebar-toggle{margin:0 auto}.admin-nav-item,.admin-nav-group{justify-content:center;padding:10px 4px}.admin-main{margin-left:76px}.admin-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.admin-dashboard-card-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.admin-content{width:calc(100% - 28px)}.admin-header{padding:16px 14px}.admin-header-logout{padding:8px 10px;font-size:.75rem}.admin-summary-grid,.admin-action-grid,.admin-dashboard-card-grid{grid-template-columns:1fr}}
@media(max-width:700px){.admin-access-package-grid{grid-template-columns:1fr}.admin-subject-area-menu{max-width:calc(100vw - 32px)}.admin-subject-area-option{white-space:normal;min-width:0}}
.admin-sidebar.is-collapsed { width: 76px; }
.admin-sidebar.is-collapsed .admin-sidebar-brand strong,
.admin-sidebar.is-collapsed .admin-sidebar-brand span,
.admin-sidebar.is-collapsed .admin-sidebar-brand,
.admin-sidebar.is-collapsed .admin-nav-item span:not(:first-child),
.admin-sidebar.is-collapsed .admin-nav-group span:not(:first-child),
.admin-sidebar.is-collapsed .admin-nav-group b,
.admin-sidebar.is-collapsed .admin-nav-submenu { display: none; }
.admin-sidebar.is-collapsed .admin-sidebar-brand-row { padding-bottom:18px; }
.admin-sidebar.is-collapsed .admin-sidebar-toggle { margin:0 auto; }
.admin-sidebar.is-collapsed .admin-nav-item,
.admin-sidebar.is-collapsed .admin-nav-group { justify-content: center; padding-inline: 4px; }
.admin-sidebar.is-collapsed { overflow-x: hidden; }
.admin-sidebar.is-collapsed .admin-nav-submenu.is-open {
    display: flex;
    position: static;
    width: 100%;
    max-height: 420px;
    padding: 4px 0 6px;
    border-left: 2px solid rgba(184,145,43,.35);
    border-radius: 0;
    background: rgba(255,255,255,.24);
    box-shadow: none;
    overflow-y: auto;
}
.admin-sidebar.is-collapsed .admin-nav-submenu.is-open button {
    justify-content: center;
    min-height: 38px;
    padding: 8px 4px;
    font-size: 0;
    gap: 0;
}
.admin-sidebar.is-collapsed .admin-nav-submenu.is-open button::before { margin: 0; }
body.admin-sidebar-collapsed .admin-main { margin-left: 76px; }
.admin-sidebar { padding-top: 10px !important; }
.admin-header {
    min-height: 82px;
    box-sizing: border-box;
    gap: 24px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #c9a45b 0%, #b8912b 100%);
    color: #6f1d1d;
}
.admin-header h1 { margin: 2px 0 0; color: #fff; font-family: 'Inter', sans-serif; font-size: 1.55rem; font-weight: 600; line-height: 1.2; }
.admin-header .admin-eyebrow { margin: 0; color: #fff4cf; }
.portal-header-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.portal-notification-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 9px; background: rgba(255,255,255,.2); color: #fff; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.portal-notification-button:hover { background: rgba(255,255,255,.35); border-color: #fff; transform: translateY(-1px); }
.portal-notification-button:focus-visible { outline: 3px solid rgba(255,244,207,.9); outline-offset: 2px; }
.admin-dashboard-details-dialog { width: min(1100px, calc(100vw - 32px)); max-height: min(85vh, 800px); overflow: auto; }
.admin-dashboard-details-dialog .admin-login-instructions-body { overflow-x: auto; }
.admin-dashboard-details-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-dashboard-details-columns > section { min-width: 0; }
.admin-dashboard-details-columns h3 { margin: 0 0 10px; color: var(--navy); font: 600 1.15rem/1.2 'Fraunces', serif; }
.admin-dashboard-details-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-dashboard-details-table th { padding: 9px 10px; background: var(--navy); color: #fff; text-align: left; }
.admin-dashboard-details-table th .admin-dashboard-sort { display: inline-flex; align-items: center; gap: 4px; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.admin-dashboard-details-table th .admin-dashboard-sort:hover,
.admin-dashboard-details-table th .admin-dashboard-sort:focus-visible { transform: none; background: transparent; text-decoration: underline; }
.admin-dashboard-details-table th .admin-dashboard-sort span { opacity: .82; }
.admin-dashboard-details-table td { padding: 9px 10px; border-bottom: 1px solid rgba(28,43,74,.12); color: #52606d; vertical-align: top; }
.admin-dashboard-details-empty { color: #64748b; }
#adminResourcesSection .admin-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-feedback-remarks { width: 100%; min-width: 150px; min-height: 64px; padding: 7px; border: 1px solid rgba(28,43,74,.2); border-radius: 6px; resize: vertical; }
.admin-feedback-status { min-width: 150px; padding: 8px; border: 1px solid rgba(28,43,74,.2); border-radius: 6px; background: #fff; color: var(--navy); }
.admin-exam-results-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 16px 0; }
.admin-exam-results-toolbar label { display: flex; flex: 1 1 170px; flex-direction: column; gap: 5px; color: var(--navy); font-size: .8rem; font-weight: 700; }
.admin-exam-results-toolbar select { min-height: 40px; padding: 8px 10px; border: 1px solid rgba(28,43,74,.25); border-radius: 7px; background: #fff; color: var(--navy); }
.admin-exam-results-toolbar .admin-primary-action { flex: 0 0 auto; }
.admin-exam-results-table { width: 100%; min-width: 650px; border-collapse: collapse; }
.admin-exam-results-table th { padding: 10px; background: var(--navy); color: #fff; text-align: left; }
.admin-exam-results-table th button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.admin-exam-results-table td { padding: 10px; border-bottom: 1px solid rgba(28,43,74,.12); color: #52606d; }
.admin-exam-results .admin-data-table { overflow-x: auto; }
.admin-exam-results-card { width: 100%; margin-top: 18px; box-sizing: border-box; }
.admin-exam-results-card .admin-data-table { overflow-x: auto; }
.admin-creation-dialog { display: flex; width: min(680px, calc(100vw - 32px)); height: 80vh; max-height: 80vh; flex-direction: column; box-sizing: border-box; }
.admin-creation-dialog .admin-login-instructions-header { flex: 0 0 auto; }
.admin-creation-dialog .admin-creation-form { min-height: 0; overflow-y: auto; }
.admin-creation-form { display: grid; gap: 14px; }
.admin-creation-form label { display: grid; gap: 6px; color: var(--navy); font-size: .82rem; font-weight: 700; }
.admin-creation-form input,
.admin-creation-form .admin-primary-action {
    height: 42px;
    min-height: 42px;
    box-sizing: border-box;
}
.admin-creation-form input { padding: 9px 10px; border: 1px solid rgba(28,43,74,.25); border-radius: 7px; color: var(--navy); }
.admin-creation-otp-row .admin-primary-action { align-self: end; margin-top: 0; }
.admin-password-field { display: block; min-width: 0; }
.admin-password-field .password-toggle-wrapper { width: 100%; }
.admin-creation-form small { color: #64748b; font-size: .72rem; font-weight: 400; }
.admin-creation-name-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-creation-otp-row { display: flex; align-items: end; gap: 10px; }
.admin-creation-otp-row label { flex: 1; }
.admin-creation-status { min-height: 20px; margin: 0; color: #276749; font-size: .82rem; font-weight: 700; }
.admin-creation-status.is-error { color: var(--red); }
.admin-creation-status.is-fading { animation: admin-creation-status-fade 5s ease forwards; }
@keyframes admin-creation-status-fade { 0%, 72% { opacity: 1; } 100% { opacity: 0; } }
@media(max-width:700px){.admin-creation-name-grid{grid-template-columns:1fr}.admin-creation-otp-row{align-items:stretch;flex-direction:column}}
.admin-report-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 18px; }
.admin-report-toolbar label { display: flex; flex-direction: column; gap: 5px; color: var(--navy); font-size: .82rem; font-weight: 700; }
.admin-report-toolbar select { min-width: 145px; padding: 9px 10px; border: 1px solid rgba(28,43,74,.25); border-radius: 7px; background: #fff; color: var(--navy); }
.admin-report-toolbar select:disabled { opacity:.65; cursor:wait; }
.admin-report-export-actions { display:flex; flex-wrap:wrap; gap:10px; }
.admin-report-section { margin: 0 0 22px; }
.admin-report-section h3 { margin: 0 0 8px; color: var(--navy); font: 600 1.15rem/1.2 'Fraunces', serif; }
.admin-report-chart { display: flex; align-items: end; gap: 12px; min-height: 230px; overflow-x: auto; padding: 20px 12px 8px; border: 1px solid rgba(28,43,74,.12); border-radius: 9px; background: rgba(255,255,255,.65); }
.admin-report-chart > div { display: flex; flex: 0 0 54px; flex-direction: column; align-items: center; justify-content: end; gap: 5px; height: 195px; color: var(--navy); font-size: .72rem; text-align: center; }
.admin-report-chart i { display: block; width: 30px; min-height: 4px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #c9a45b, #b8912b); }
@media(max-width:700px){.admin-report-fields{grid-template-columns:minmax(0,1fr);align-items:stretch}.admin-report-date-inputs{grid-template-columns:1fr}}
.admin-report-chart span { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-report-chart b { font-size: .78rem; }
@media(max-width:700px){.admin-dashboard-details-columns{grid-template-columns:1fr}.admin-dashboard-details-table{min-width:520px}}
.admin-header-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 9px;
    background: rgba(255,255,255,.2);
    color: #fff;
    font: 700 .82rem/1 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}
.admin-header-logout:hover { background: rgba(255,255,255,.35); border-color: #fff; color: #fff; }

/* Smooth admin sidebar motion on desktop and mobile. */
.admin-sidebar {
    transition: width .28s cubic-bezier(.4, 0, .2, 1), padding .28s ease;
    will-change: width;
}
.admin-main {
    transition: margin-left .28s cubic-bezier(.4, 0, .2, 1);
    will-change: margin-left;
}
.admin-sidebar-toggle,
.admin-nav-item,
.admin-nav-group,
.admin-nav-submenu,
.admin-sidebar-brand {
    transition: opacity .2s ease, transform .28s ease, padding .28s ease, margin .28s ease;
}
.admin-sidebar.is-collapsed .admin-nav-item,
.admin-sidebar.is-collapsed .admin-nav-group { transform: translateX(0); }
.admin-sidebar:not(.is-collapsed) .admin-nav-item,
.admin-sidebar:not(.is-collapsed) .admin-nav-group { transform: translateX(0); }

/* Mobile admin navigation follows the same expanded/collapsed state as desktop. */
@media (max-width: 850px) {
    body.admin-portal-page .admin-sidebar:not(.is-collapsed) {
        width: 260px !important;
        padding: 10px 7px !important;
    }
    body.admin-portal-page .admin-sidebar:not(.is-collapsed) .admin-sidebar-brand strong,
    body.admin-portal-page .admin-sidebar:not(.is-collapsed) .admin-sidebar-brand span,
    body.admin-portal-page .admin-sidebar:not(.is-collapsed) .admin-nav-item span:not(:first-child),
    body.admin-portal-page .admin-sidebar:not(.is-collapsed) .admin-nav-group span:not(:first-child),
    body.admin-portal-page .admin-sidebar:not(.is-collapsed) .admin-nav-group b {
        display: initial !important;
    }
    body.admin-portal-page .admin-sidebar:not(.is-collapsed) .admin-sidebar-brand strong { display: block !important; }
    body.admin-portal-page .admin-sidebar:not(.is-collapsed) .admin-sidebar-toggle { margin: 0 5px 0 0; }
    body.admin-portal-page .admin-sidebar:not(.is-collapsed) .admin-nav-item,
    body.admin-portal-page .admin-sidebar:not(.is-collapsed) .admin-nav-group { justify-content: flex-start; padding: 10px 12px; }
    body.admin-portal-page .admin-sidebar:not(.is-collapsed) .admin-nav-submenu.is-open { display: flex !important; }
    body.admin-portal-page .admin-sidebar.is-collapsed .admin-sidebar-toggle { margin: 0 auto; }
    body.admin-portal-page .admin-sidebar.is-collapsed .admin-nav-submenu:not(.is-open) { display: none !important; }
    body.admin-portal-page .admin-sidebar.is-collapsed .admin-nav-submenu.is-open { display: flex !important; }
    body.admin-portal-page:not(.admin-sidebar-collapsed) .admin-main { margin-left: 260px; }
    body.admin-portal-page.admin-sidebar-collapsed .admin-main { margin-left: 76px; }
    body.admin-portal-page:not(.admin-sidebar-collapsed) .admin-header-logout { display: none; }
}
@media (min-width: 851px) {
    /* Keep a clicked group's icon-only submenu visible in collapsed desktop mode. */
    .admin-sidebar.is-collapsed .admin-nav-submenu.is-open { display: flex !important; }
}
@media (max-width: 700px) {
    .admin-announcements-toolbar { align-items:stretch; flex-direction:column; }
    .admin-announcements-layout { grid-template-columns:1fr; }
    .admin-announcements-list { max-height:260px; }
    .admin-announcement-date-grid { grid-template-columns:1fr; }
}
.admin-sidebar {
    --admin-sidebar-scrollbar-width: 8px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    padding-right: 5px;
    padding-top: 10px;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    bottom: auto;
}
.admin-sidebar:hover {
    scrollbar-color: rgba(28,43,74,.28) rgba(28,43,74,.06);
}
.admin-sidebar::-webkit-scrollbar { width: var(--admin-sidebar-scrollbar-width); }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: transparent; background-clip: padding-box; }
.admin-sidebar:hover::-webkit-scrollbar-thumb { background: rgba(28,43,74,.28); background-clip: padding-box; }
.admin-sidebar.is-collapsed { padding-right: 5px; }

/* Public home page theme: white/gold surfaces over a softened home background. */
body.index-page > section {
    background-color: rgba(243, 237, 221, .65);
}
body.index-page > section.bg-white {
    background-color: rgba(255, 255, 255, .65) !important;
}
body.index-page > footer {
    background-color: rgba(251, 248, 239, .65) !important;
}
body.about-page > section,
body.achievements-page > section,
body.contact-page > section {
    background-color: rgba(243, 237, 221, .65);
}
body.about-page > section.bg-white,
body.achievements-page > section.bg-white,
body.contact-page > section.bg-white {
    background-color: rgba(255, 255, 255, .65) !important;
}
body.achievements-page > section.achievements-dark-section {
    background-color: rgba(28, 43, 74, .65) !important;
}
body.index-page #featured-packages {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-inline: auto;
    background-color: rgba(243, 237, 221, .65) !important;
    padding-inline: 0;
}
body.index-page #featured-packages > h2,
body.index-page #featured-packages > p,
body.index-page #featured-packages > div {
    width: min(94vw, 1800px);
    max-width: none;
    box-sizing: border-box;
    margin-inline: auto;
}
body.index-page #hero > .relative.z-10 {
    width: min(94vw, 1800px);
    max-width: none;
    margin-inline: auto;
    box-sizing: border-box;
}
body.index-page #montageSection > .montage-video {
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
    margin: 0;
    object-fit: contain;
}
body:not(.student-portal-page):not(.login-page) {
    position: relative;
    isolation: isolate;
    background-image: linear-gradient(135deg, rgba(255, 254, 249, .76) 0%, rgba(255, 248, 223, .68) 52%, rgba(245, 217, 138, .62) 100%), url("/api/storage/file.php?scope=public&path=images/pages/home/pages-background-image.webp");
    background-size: 100% 100%, 85% auto;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    color: var(--navy);
}

body:not(.student-portal-page):not(.login-page)::before {
    content: "";
    position: fixed;
    inset: -35px;
    z-index: -2;
    pointer-events: none;
    background: url("/api/storage/file.php?scope=public&path=images/pages/home/pages-background-image.webp") center / cover no-repeat;
    filter: blur(35px);
    opacity: .55;
    transform: scale(1.08);
}

body:not(.student-portal-page):not(.login-page)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 254, 249, .78), rgba(255, 248, 223, .62));
}
body.login-page {
    position: relative;
    min-height: 100vh;
    background-color: #111827;
    background-image: url("/api/storage/file.php?scope=public&path=images/logo/smalllogo.webp");
    background-size: 85% auto;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}
body.login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(17, 24, 39, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
}
@media (max-width:640px) {
    body.login-page {
        background-position: center;
        background-attachment: scroll;
        background-size: 85% auto;
    }

    body.login-page .login-container {
        width: 100%;
        max-width: 381px;
        padding: 24px;
    }

    body.login-page .seal-small.seal-lg {
        width: 150px;
        height: 150px;
    }

    body.login-page h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    body.login-page form {
        margin-top: 1.5rem;
    }

    body.login-page .ticket {
        margin-bottom: 0;
    }
}
.font-display {
    font-family: 'Fraunces', serif;
}
.font-mono {
    font-family: 'IBM Plex Mono', monospace;
}
h1,
h2,
h3,
h4 {
    color: var(--navy);
    font-weight: 700;
}
p {
    color: #555;
}
a {
    text-decoration: none;
    color: inherit;
    transition: .25s;
}
a:hover {
    color: var(--gold);
}
img {
    max-width: 100%;
    display: block;
}
section {
    position: relative;
}
button,
.btn {
    cursor: pointer;
    transition: .25s;
}
button:hover,
.btn:hover {
    transform: translateY(-2px);
}
.ticket {
    position: relative;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: .3s;
}
.ticket:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .12);
}
.ticket::before,
.ticket::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--paper);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}
.ticket::before {
    left: -12px;
}
.ticket::after {
    right: -12px;
}
#hero {
    position: relative;
    min-height: 620px;
}

/* Desktop hero: use the available viewport width with balanced gutters. */
@media (min-width: 1024px) {
    #hero > .relative.z-10 {
        width: min(94vw, 1600px);
        max-width: none;
        margin-inline: auto;
        box-sizing: border-box;
    }

    #hero > .relative.z-10 > .flex {
        width: 100%;
        min-width: 0;
        gap: clamp(24px, 3vw, 56px);
    }

    #hero > .relative.z-10 > .flex > .flex-1 {
        min-width: 0;
        flex: 1 1 0%;
    }

    #hero > .relative.z-10 > .flex > #loginRegistrationForm {
        flex: 0 1 clamp(420px, 38vw, 620px);
        width: auto !important;
        max-width: 42vw !important;
        min-width: 0;
    }

    #hero .announcement-container,
    #hero .announcement-table-wrapper,
    #hero .announcement-table {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
}

/* Reduced desktop windows: stack hero columns at full available width. */
@media (min-width: 1024px) and (max-width: 1180px) {
    #hero > .relative.z-10 > .flex {
        flex-direction: column;
        align-items: stretch;
    }

    #hero > .relative.z-10 > .flex > .flex-1,
    #hero > .relative.z-10 > .flex > #loginRegistrationForm {
        width: 100% !important;
        max-width: none !important;
        flex: 0 0 auto;
    }
}
.announcement-container {
    max-width: 680px;
    display: flex;
    flex-direction: column;
}

.featured-package-card {
    display: flex;
    flex-direction: column;
    font-size: 90%;
}

.featured-package-card h4 {
    font-size: 1.6875rem;
    text-align: left;
}

.featured-package-card > .badge {
    align-self: flex-start;
    text-align: left;
}

.featured-package-card .perf {
    margin-bottom: 1rem;
}

.featured-package-card p,
.featured-package-card li,
.featured-package-card button,
.featured-package-card .badge {
    font-size: .9em;
}
.announcement-heading {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 8px;
}
.announcement-table-wrapper {
    background: rgba(255, 255, 255, .92);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.announcement-table {
    border-collapse: collapse;
}
.announcement-row {
    cursor: pointer;
    transition: background-color .2s;
    outline: none;
}
.announcement-row:not(:last-child) {
    border-bottom: 1px solid var(--border);
}
.announcement-row:hover,
.announcement-row:focus-visible {
    background: rgba(184, 145, 43, .10);
}
.announcement-row:focus-visible {
    box-shadow: inset 0 0 0 2px var(--gold);
}
.announcement-date {
    width: 90px;
    padding: 12.35px 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .72rem;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
}
.announcement-title {
    padding: 12.35px 10px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy);
}
.announcement-arrow {
    width: 110px;
    padding: 12.35px 16px;
    text-align: right;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}
.announcement-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.announcement-modal.hidden {
    display: none;
}
.announcement-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 43, 74, .65);
    backdrop-filter: blur(3px);
}
.announcement-modal-content {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    max-height: min(800px, 90vh);
    overflow-y: auto;
    padding: 32px;
    background: var(--paper);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .25);
    animation: announcementModalIn .2s ease-out;
}
.announcement-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #555;
    font-size: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.announcement-close:hover {
    background: rgba(28, 43, 74, .08);
    color: var(--navy);
    transform: none;
}
.announcement-close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.announcement-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.announcement-detail {
    padding: 24px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 14px;
    transition: border-color .25s, box-shadow .25s, background-color .25s;
    scroll-margin-top: 20px;
}
.announcement-detail.selected {
    border-color: var(--gold);
    background: #fffdf5;
    box-shadow: 0 10px 30px rgba(184, 145, 43, .15);
}
.announcement-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.announcement-detail-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}
.announcement-detail p {
    color: #555;
}
.announcement-detail-summary {
    color:var(--navy) !important;
    font-weight:600;
}
body.announcement-modal-open {
    overflow: hidden;
}

.auth-popup {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--auth-header-height, 88px) + 24px) 24px 24px;
    overflow-y: auto;
}

.auth-popup.hidden {
    display: none;
}

.auth-popup-backdrop {
    position: absolute;
    top: var(--auth-header-height, 88px);
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(28, 43, 74, .68);
    backdrop-filter: blur(4px);
}

.auth-popup-content {
    position: relative;
    z-index: 1;
    width: 75vw;
    max-width: 75vw;
    max-height: calc(100vh - var(--auth-header-height, 88px) - 48px);
    overflow: hidden;
}

#loginRegistrationForm {
    width: 45%;
    max-width: 45%;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
}

/* On desktop, let the announcement block occupy the same stretched hero
   column as the login card so the table's bottom edge remains aligned. */
@media (min-width: 1024px) {
    #hero > .relative > .flex > .flex-1 {
        display: flex;
        flex-direction: column;
    }

    #hero .announcement-container {
        width: 100%;
        margin-top: auto;
    }
}

#loginRegistrationForm::before,
#loginRegistrationForm::after {
    display: none;
}

#loginRegistrationForm #loginAndRegistration::before,
#loginRegistrationForm #loginAndRegistration::after {
    display: none;
}

#loginRegistrationForm #loginAndRegistration {
    background: rgba(255, 255, 255, .92);
    border-radius: 20px;
    border: 2px solid var(--border);
    box-shadow: none;
    transform: none;
}

#loginRegistrationForm #loginAndRegistration:hover {
    box-shadow: none;
    transform: none;
}

#loginAndRegistration {
    width: 100%;
    max-width: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

#loginAndRegistration label {
    font-family: inherit;
    font-size: .9rem;
}

#loginAndRegistration input:not([type="checkbox"]):not([type="radio"]),
#loginAndRegistration select,
#loginAndRegistration textarea {
    font: inherit;
    font-size: 1rem;
    padding: .75rem .875rem;
}

#loginAndRegistration button[type="submit"] {
    min-height: 46px;
    font: inherit;
    font-size: 1rem;
}

.auth-popup-content > .reg-scroll {
    max-height: calc(100vh - var(--auth-header-height, 88px) - 48px);
}

#loginRegistrationForm.auth-card-with-form {
    width: 45%;
    max-width: 45%;
    align-items: center;
    margin-inline: auto;
    padding: 0;
    text-align: center;
    gap: 18px;
}

#loginRegistrationForm.auth-card-with-form > h3 {
    text-align: center;
}

#loginRegistrationForm.auth-card-with-form #loginAndRegistration {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    text-align: left;
}

@media (max-width: 640px) {
    #hero > .relative.z-10 {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    #hero > .relative.z-10 > .flex {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    #hero > .relative.z-10 > .flex > .flex-1,
    #hero > .relative.z-10 > .flex > #loginRegistrationForm,
    #loginRegistrationForm.auth-card-with-form {
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        flex: 0 0 auto;
        box-sizing: border-box;
    }

    #loginRegistrationForm.auth-card-with-form {
        padding: 0;
    }
}

#registerPanel input,
#registerPanel select,
#registerPanel textarea {
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: .82rem;
    line-height: 1.2;
}

#registerPanel input::placeholder,
#registerPanel textarea::placeholder {
    font-size: .82rem;
}

/* Keep native date-picker affordances on touch devices. */
#registerPanel input[type="date"] {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    display: block;
    color-scheme: light;
}

#registerPanel input[type="date"]::-webkit-calendar-picker-indicator {
    display: block;
    opacity: .75;
    cursor: pointer;
}

/* Give select controls a comfortable arrow gutter on every viewport. */
#registerPanel select,
.student-form-grid select {
    padding-right: 2.75rem !important;
}

.auth-popup-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .86);
    color: var(--navy);
    font-size: 30px;
    line-height: 1;
}

.auth-popup-close:hover {
    transform: none;
    background: white;
}

body.auth-popup-open {
    overflow: hidden;
}

.password-toggle-wrapper {
    position: relative;
}

.password-toggle-wrapper input[type="password"],
.password-toggle-wrapper input[type="text"] {
    padding-right: 3rem;
}

.password-toggle-button {
    position: absolute;
    top: 50%;
    right: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle-button svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.password-toggle-button:hover {
    background: transparent;
    transform: translateY(-50%);
}

.password-toggle-hidden {
    display: none;
}
@keyframes announcementModalIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@media (max-width: 640px) {
    .announcement-container {
        max-width: 100%;
    }
    .announcement-date {
        width: 70px;
        padding: 11px 10px;
        font-size: .65rem;
    }
    .announcement-title {
        padding: 11px 6px;
        font-size: .78rem;
    }
    .announcement-arrow {
        width: 90px;
        padding: 11px 8px;
        font-size: .65rem;
    }
    .announcement-modal {
        padding: 12px;
    }
    .announcement-modal-content {
        padding: 24px 18px;
        max-height: 94vh;
    }
    .announcement-detail {
        padding: 18px;
    }
    .announcement-detail h3 {
        font-size: 1.3rem;
    }
}
.reg-scroll::-webkit-scrollbar {
    width: 6px;
}
.reg-scroll::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}
.reg-scroll {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

/* Keep non-portal scrollable panels consistent with the student sidebar:
   reserve a slim scrollbar, keep it visually quiet until hovered, and use a
   translucent thumb that complements the gold/navy theme. */
body:not(.student-portal-page) :is(.reg-scroll, .auth-popup, .announcement-modal-content, table) {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

body:not(.student-portal-page) :is(.reg-scroll, .auth-popup, .announcement-modal-content, table):hover {
    scrollbar-color: rgba(255, 255, 255, .32) rgba(28, 43, 74, .08);
}

body:not(.student-portal-page) :is(.reg-scroll, .auth-popup, .announcement-modal-content, table)::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body:not(.student-portal-page) :is(.reg-scroll, .auth-popup, .announcement-modal-content, table)::-webkit-scrollbar-track {
    background: transparent;
}

body:not(.student-portal-page) :is(.reg-scroll, .auth-popup, .announcement-modal-content, table)::-webkit-scrollbar-thumb {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 999px;
}

body:not(.student-portal-page) :is(.reg-scroll, .auth-popup, .announcement-modal-content, table):hover::-webkit-scrollbar-track {
    background: rgba(28, 43, 74, .08);
}

body:not(.student-portal-page) :is(.reg-scroll, .auth-popup, .announcement-modal-content, table):hover::-webkit-scrollbar-thumb {
    background: rgba(184, 145, 43, .36);
    border-color: rgba(28, 43, 74, .32);
}

body:not(.student-portal-page) :is(.reg-scroll, .auth-popup, .announcement-modal-content, table)::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 145, 43, .72);
}

/* Exact student-sidebar scrollbar treatment for every scrollable panel on
   the homepage. */
body.index-page :is(.reg-scroll, .auth-popup, .announcement-modal-content, table) {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

body.index-page :is(.reg-scroll, .auth-popup, .announcement-modal-content, table):hover {
    scrollbar-color: rgba(255, 255, 255, .32) rgba(255, 255, 255, .06);
}

body.index-page :is(.reg-scroll, .auth-popup, .announcement-modal-content, table)::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.index-page :is(.reg-scroll, .auth-popup, .announcement-modal-content, table)::-webkit-scrollbar-track {
    background: transparent;
}

body.index-page :is(.reg-scroll, .auth-popup, .announcement-modal-content, table)::-webkit-scrollbar-thumb {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 999px;
}

body.index-page :is(.reg-scroll, .auth-popup, .announcement-modal-content, table):hover::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .06);
}

body.index-page :is(.reg-scroll, .auth-popup, .announcement-modal-content, table):hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .28);
    border-color: var(--navy);
}

body.index-page :is(.reg-scroll, .auth-popup, .announcement-modal-content, table)::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 145, 43, .78);
}
.perf {
    border-top: 2px dashed var(--border);
}
.seal {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 4px solid var(--red);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    font-family: 'IBM Plex Mono', monospace;
    transform: rotate(-10deg);
}
.seal-small {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.seal-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.seal-small.seal-lg {
    width: 184px;
    height: 184px;
}
nav a {
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color .25s, color .25s;
}
nav a:hover {
    background: var(--navy);
    color: white;
}
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: 'IBM Plex Mono', monospace;
}
.badge-gray {
    background: #E5E7EB;
    color: #374151;
}
.badge-green {
    background: var(--green);
    color: white;
}
.badge-gold {
    background: var(--gold);
    color: white;
}
.badge-navy {
    background: #1C2B4A;
    color: #FFFFFF;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
th {
    background: var(--navy);
    color: white;
    padding: 16px;
}
td {
    padding: 16px;
    border-bottom: 1px solid #eee;
}
tr:hover {
    background: #FAF8F2;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
    width: 100%;
    padding: 14px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    transition: .25s;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 145, 43, .15);
}
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--navy);
    cursor: pointer;
}
textarea {
    resize: vertical;
}
footer {
    background: #FBF8EF;
    border-top: 1px solid var(--border);
}
footer a {
    color: #555;
}
footer a:hover {
    color: var(--navy);
}
.seal {
    transition: .3s;
}
.ticket:hover .seal {
    transform: rotate(-5deg) scale(1.05);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .08;
    background-image:
        radial-gradient(circle at 20% 20%, #000 1px, transparent 1px),
        radial-gradient(circle at 70% 40%, #000 1px, transparent 1px),
        radial-gradient(circle at 30% 80%, #000 1px, transparent 1px);
    background-size: 40px 40px;
}
.content-manager-section {
    padding: 28px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #FBF8EF;
}
.content-image-preview {
    width: 100%;
    max-width: 420px;
    height: 220px;
    object-fit: cover;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: white;
}
.row-set-editor {
    padding: 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
}
.row-image-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #FBF8EF;
}
.row-set-editor input[type="file"] {
    background: #FBF8EF;
}
#websiteContentManager input:focus,
#websiteContentManager textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 145, 43, .15);
}
@media (max-width:1024px) {
    h2 {
        font-size: 3rem !important;
    }
}
@media (max-width:768px) {
    h2 {
        font-size: 2.5rem !important;
    }
    .ticket {
        margin-bottom: 20px;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    table {
        display: block;
        overflow-x: auto;
    }
}
@media (max-width:480px) {
    h2 {
        font-size: 2rem !important;
    }
    .seal {
        width: 60px;
        height: 60px;
        font-size: .65rem;
    }
    /*.seal-small {
        width: 40px;
        height: 40px;
    }*/
    body {
        font-size: 15px;
    }
}

/* Public pages: keep the mobile canvas flush to the viewport and prevent
   decorative/background sizing from creating a visible right or bottom gap. */
@media (max-width: 768px) {
    html,
    body:not(.student-portal-page) {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body:not(.student-portal-page):not(.login-page) {
        background-size: 100% 100%, cover;
        background-position: center, center;
        background-attachment: scroll, scroll;
    }

    body:not(.student-portal-page) footer {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
    }

    body:not(.student-portal-page) footer > div {
        padding-bottom: 16px !important;
    }
}
.montage-section {
    width: 100%;
    background: var(--paper);
    overflow: hidden;
}
.montage-video {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}
.student-portal-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.student-sidebar {
    --student-sidebar-scrollbar-width: 8px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    width: 76px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #fffef9 0%, #f7efd8 48%, #d4b45b 100%);
    color: var(--navy);
    border-right: 2px solid var(--gold);
    box-shadow: 10px 0 35px rgba(0, 0, 0, .12);
    transition: width .25s ease;
    padding-left: var(--student-sidebar-scrollbar-width);
    overflow-x: hidden;
    overflow-y: auto;
    /* Keep the scrollbar track width reserved even when the thumb is invisible. */
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.student-sidebar::-webkit-scrollbar {
    width: var(--student-sidebar-scrollbar-width);
}

.student-sidebar:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .32) rgba(255, 255, 255, .06);
}

.student-sidebar:hover::-webkit-scrollbar {
    width: var(--student-sidebar-scrollbar-width);
}

.student-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.student-sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 999px;
}

.student-sidebar:hover::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .06);
}

.student-sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .28);
    border-color: var(--navy);
}

.student-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 145, 43, .78);
}

.student-sidebar-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(28, 43, 74, .22);
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
    color: var(--navy);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.student-sidebar-toggle:hover {
    background: rgba(255, 255, 255, .95);
    color: var(--navy);
    border-color: var(--gold);
    transform: none;
}

.student-sidebar-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
}

.student-sidebar.sidebar-expanded-locked {
    width: 260px;
}

.student-sidebar.sidebar-collapsed-locked {
    width: 76px;
}

.student-sidebar-profile {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid rgba(28, 43, 74, .14);
}

.student-avatar {
    width: 52px;
    height: 68px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: white;
    color: var(--navy);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid var(--gold);
    box-sizing: border-box;
    overflow: hidden;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    padding: 4px;
    box-sizing: border-box;
    object-fit: contain;
}

.student-photo-preview {
    width: 188px;
    height: 188px;
    flex: 0 0 188px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--gold);
    border-radius: 50%;
    background: #FBF8EF;
    color: #6B7280;
    text-align: center;
    padding: 10px;
}

/* Consistent public-page mobile layout (student.html intentionally excluded). */
@media (max-width: 768px) {
    body:not(.student-portal-page):not(.login-page) {
        overflow-x: hidden;
        background-size: 100% 100%, 85% auto;
        background-position: center, center;
        background-attachment: scroll, scroll;
    }

    body:not(.student-portal-page):not(.login-page)::before {
        position: absolute;
        inset: -20px;
        background-attachment: scroll;
        opacity: .48;
    }

    body:not(.student-portal-page):not(.login-page) header > div {
        gap: 12px;
        padding-left: 16px;
        padding-right: 16px;
    }

    body:not(.student-portal-page):not(.login-page) header h1 {
        max-width: 190px;
        font-size: clamp(.85rem, 3.8vw, 1.15rem);
        line-height: 1.2;
    }

    body:not(.student-portal-page):not(.login-page) section {
        max-width: 100%;
    }

    body:not(.student-portal-page):not(.login-page) section > div {
        min-width: 0;
    }

    body:not(.student-portal-page):not(.login-page) h2 {
        max-width: 100%;
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        line-height: 1.15;
    }

    body:not(.student-portal-page):not(.login-page) h3 {
        line-height: 1.2;
    }

    body:not(.student-portal-page):not(.login-page) .ticket {
        max-width: 100%;
        box-sizing: border-box;
    }

    .feature-slide-description {
        padding: 16px;
    }
}

.badge-red {
    background: #fee2e2;
    color: #b91c1c;
}

.student-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.student-profile-photo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
}

.student-profile-photo-field {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    width: 100%;
    padding: 24px;
    border: 1px solid rgba(28, 43, 74, .12);
    border-radius: 14px;
    background: linear-gradient(135deg, #fffdf5 0%, #f3eddd 58%, #e8dfc8 100%);
    color: var(--navy);
}

.student-profile-photo-preview-wrap {
    position: relative;
    flex: 0 0 auto;
    margin-left: 0;
}

.student-profile-photo-camera {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 3px solid #fffdf5;
    border-radius: 50%;
    background: var(--navy);
    color: white;
    cursor: pointer;
}

.student-profile-photo-camera svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.student-profile-photo-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 520px;
    flex: 1;
    margin-left: 0;
    padding-left: 0;
}

.student-profile-details-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    align-self: stretch;
    width: 180px;
    flex: 0 0 180px;
}

.student-profile-details-actions > .student-profile-edit-button {
    align-self: flex-end;
}

.student-profile-id-display {
    margin: 0;
    color: var(--navy);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
}

.student-profile-package-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: .8rem;
    letter-spacing: .04em;
    align-self: center;
    text-align: center;
}

.student-profile-details-actions > .student-profile-package-badge {
    align-self: flex-end;
}

.student-profile-access-badge {
    width: 76px;
    height: auto;
    object-fit: contain;
}

.student-profile-badge-id {
    margin: 0;
    color: var(--navy);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
}

.student-profile-photo-eyebrow {
    margin: 0;
    color: var(--gold);
    font-family: 'IBM Plex Mono', monospace;
    font-size: .7rem;
    letter-spacing: .1em;
}

.student-profile-photo-details > .student-profile-access-badge {
    align-self: flex-start;
    margin-top: 12px;
}

.student-profile-photo-title {
    margin: 4px 0 0;
    color: var(--navy);
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
}

.student-profile-photo-description {
    margin: 8px 0 16px;
    color: #4b5563;
}

.student-profile-edit-button {
    display: inline-block;
    align-self: flex-end;
    margin-top: auto;
    padding: 9px 14px;
    border-radius: 7px;
    background: var(--navy);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.student-profile-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.student-profile-info {
    min-width: 0;
    overflow: hidden;
}

.student-profile-name {
    margin: 0;
    color: var(--navy);
    font-size: clamp(.68rem, 1.25vw, .9rem);
    line-height: 1.2;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.student-profile-id {
    margin: 2px 0 0;
    color: rgba(28, 43, 74, .62);
    font-family: 'IBM Plex Mono', monospace;
    font-size: .68rem;
    white-space: nowrap;
}

.student-profile-access-label {
    margin: 3px 0 0;
    color: var(--gold);
    font-size: .68rem;
    font-weight: 700;
}

.student-sidebar-nav {
    flex: 1;
    padding: 18px 12px;
}

.student-sidebar-item {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(28, 43, 74, .82);
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.student-sidebar-item:hover {
    background: rgba(255, 255, 255, .68);
    color: var(--navy);
    transform: none;
}

.student-sidebar-item.active {
    background: rgba(184, 145, 43, .42);
    color: var(--navy);
    box-shadow: inset 4px 0 0 var(--gold), 0 2px 8px rgba(184, 145, 43, .16);
}

.student-sidebar-icon {
    width: 24px;
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.student-sidebar-label {
    white-space: nowrap;
}

.student-sidebar-group {
    margin-bottom: 4px;
}

.student-sidebar-group-toggle {
    margin-bottom: 0;
}

.student-sidebar-chevron {
    margin-left: auto;
    font-size: .75rem;
    color: var(--navy);
    transition: transform .2s ease;
}

.student-sidebar-group-toggle[aria-expanded="false"] .student-sidebar-chevron {
    transform: rotate(-90deg);
}

.student-sidebar-submenu {
    margin: 2px 0 8px 36px;
    border-left: 1px solid rgba(28, 43, 74, .18);
}

.student-sidebar-subitem {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    color: rgba(28, 43, 74, .84);
    font-size: .8rem;
    font-weight: 650;
    line-height: 1.35;
    border-radius: 7px;
}

.student-sidebar-subitem:hover {
    background: rgba(255, 255, 255, .68);
    color: var(--navy);
}

.student-sidebar-subicon {
    width: 18px;
    min-width: 18px;
    display: inline-flex;
    justify-content: center;
}

.student-sidebar-footer {
    padding: 14px 12px 18px;
    border-top: 1px solid rgba(28, 43, 74, .14);
}

.student-sidebar-logout {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: rgba(184, 50, 50, .18);
    color: #8f2626;
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    text-align: left;
}

.student-sidebar-logout:hover {
    background: rgba(184, 50, 50, .32);
    color: white;
    transform: none;
}

.student-main-content {
    min-height: 100vh;
    margin-left: 76px;
    padding-top: 82px;
    transition: margin-left .25s ease;
}

.feature-slide-card {
    overflow: hidden;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow);
}

.feature-slideshow {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-dark);
}

.feature-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .6s ease;
}

.feature-slide.active {
    opacity: 1;
}

.feature-slide-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    background: rgba(28, 43, 74, .62);
    color: #fff;
    opacity: 0;
    transform: translateY(-50%);
    transition: none;
    pointer-events: none;
    cursor: pointer;
}

.feature-slide-nav[hidden] {
    display: inline-flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.feature-slideshow:hover .feature-slide-nav:not([hidden]) {
    opacity: .5;
    pointer-events: auto;
}

/* Keep slideshow controls centered when the shared button hover rule runs. */
.feature-slide-nav:hover,
.feature-slide-nav:focus-visible {
    transform: translateY(-50%);
}

.feature-slide-nav svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.feature-slide-prev { left: 12px; }
.feature-slide-next { right: 12px; }

@media (max-width: 640px) {
    .feature-slide-nav { width: 32px; height: 32px; }
    .feature-slide-nav svg { width: 18px; height: 18px; }
    .feature-slide-prev { left: 8px; }
    .feature-slide-next { right: 8px; }
}

.feature-slide-description {
    padding: 20px;
}

.feature-slide-description h3 {
    color: var(--navy);
}

.feature-slide-description p {
    margin-top: 10px;
    color: #4b5563;
}

.student-sidebar-subitem.active {
    background: rgba(184, 145, 43, .34);
    color: var(--navy);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--gold);
}

.student-portal-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 76px;
    z-index: 900;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #c9a45b 0%, #b8912b 100%);
    color: #6f1d1d;
    transition: left .25s ease;
}

.student-header-eyebrow {
    margin: 0;
    color: #fff4cf;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .65rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.student-header-title {
    margin: 2px 0 0;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.2;
}
.portal-header-title > div { min-width: 0; }

.student-header-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 9px;
    background: rgba(255, 255, 255, .2);
    color: white;
    font: 700 .82rem/1 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.student-header-logout:hover {
    background: rgba(255, 255, 255, .35);
    border-color: white;
    color: white;
}

.student-content-wrapper {
    max-width: 1280px;
    min-height: calc(100vh - 82px);
    margin: 0 auto;
    padding: 40px 32px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #fffef9 0%, #fff8df 52%, #f5d98a 100%);
}
.student-sidebar-profile {
    justify-content: center;
}

.student-section-eyebrow {
    margin: 0;
    color: var(--gold);
    font-family: 'IBM Plex Mono', monospace;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.student-section-title {
    margin: 6px 0 0;
    color: var(--navy);
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.student-section-description {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
}

.student-notes-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
    overflow-x: auto;
}

.student-notes-mobile-label,
.student-notes-mobile-select {
    display: none;
}

.student-notes-tab {
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding: 10px 18px;
    border: 1px solid rgba(184, 145, 43, .55);
    border-radius: 0;
    background: rgba(255, 255, 255, .72);
    color: var(--navy);
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(.55rem, .8vw, .8rem);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    transition: background-color .2s, color .2s, border-color .2s;
}

@media (max-width: 760px) {
    .student-notes-tabs {
        display: none;
    }

    .student-notes-mobile-label {
        display: none;
    }

    .student-notes-mobile-select {
        display: block;
        width: 100%;
        margin-top: 24px;
        padding: 12px 14px;
        border: 1px solid rgba(28, 43, 74, .2);
        border-radius: 9px;
        background: white;
        color: var(--navy);
        font: 400 .95rem/1.4 'Inter', sans-serif;
    }
}

.password-reset-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.password-reset-modal.hidden { display: none; }
.password-reset-backdrop { position: absolute; inset: 0; background: rgba(10, 18, 35, .72); backdrop-filter: blur(4px); }
.password-reset-dialog { position: relative; width: min(480px, 100%); overflow: hidden; border: 1px solid rgba(184, 145, 43, .55); border-radius: 16px; background: #fffdf7; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
.password-reset-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: var(--navy); color: #fff; }
.password-reset-header h2 { margin: 0; color: #fff; font: 600 1.2rem/1.2 'Fraunces', serif; }
.password-reset-header button { border: 0; background: transparent; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.password-reset-body { display: grid; gap: 14px; padding: 22px; color: var(--navy); }
.password-reset-body > p { margin: 0; color: #526274; font-size: .88rem; line-height: 1.5; }
.password-reset-body label { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; }
.password-reset-body input, .password-reset-body select { min-height: 42px; padding: 9px 11px; border: 1px solid rgba(28, 43, 74, .22); border-radius: 8px; background: #fff; color: var(--navy); font: 500 .88rem/1.2 'Inter', sans-serif; }
.password-reset-submit { min-height: 42px; padding: 11px 14px; border: 1px solid var(--navy); border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; }
.password-reset-submit:disabled { opacity: .65; cursor: wait; }
.password-reset-message { min-height: 1.2em; margin: 0; font-size: .8rem; font-weight: 700; }
.password-reset-message.is-error { color: var(--red); }
.password-reset-message.is-success { color: #237447; }

@media (max-width: 520px) {
    .password-reset-modal { padding: 12px; }
    .password-reset-body { padding: 18px; }
}

/* Full-screen exam presentation and accessible option layout */
#studentExamModal {
    padding: 0 !important;
}

/* TRIO Lectures tabs and in-page video viewer */
.student-lectures-tabs {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
}

.student-lectures-tab {
    min-height: 58px;
    padding: 9px 8px;
    border: 1px solid #d9c17b;
    border-radius: 0;
    background: rgba(255, 253, 245, .9);
    color: var(--navy);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.student-lectures-tab:hover,
.student-lectures-tab[aria-selected="true"] {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.student-lectures-mobile-label,
.student-lectures-mobile-select { display: none; }

.student-lectures-panels { margin-top: 22px; }
.student-lectures-panel {
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid rgba(28, 43, 74, .14);
    border-radius: 16px;
    background: rgba(255, 253, 245, .94);
    box-shadow: 0 10px 26px rgba(28, 43, 74, .08);
}
.student-lectures-panel h3 { color: var(--navy); font-size: 1.2rem; }
.student-lectures-panel > p { margin-top: 7px; color: #52606d; }
.student-lectures-panel .student-notes-table-wrapper { margin-top: 20px; overflow-x: auto; }
.student-lectures-panel .student-notes-table { min-width: 520px; table-layout: fixed; }
.student-disabled { display: none !important; }
.student-lectures-panel .student-notes-table th,
.student-lectures-panel .student-notes-table td {
    text-align: left;
    vertical-align: middle;
}
.student-lecture-link { color: #1459a6; font-weight: 700; text-decoration: underline; }

/* Keep expanded sidebar navigation labels readable at every sidebar width. */
.student-sidebar-nav .student-sidebar-item,
.student-sidebar-nav .student-sidebar-group-toggle,
.student-sidebar-nav .student-sidebar-subitem {
    min-width: 0;
}

.student-sidebar-nav .student-sidebar-label,
.student-sidebar-nav .student-sidebar-subitem > span:last-child {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.2;
    font-size: clamp(.68rem, .72vw, .86rem);
}

.student-sidebar-nav .student-sidebar-item > .student-sidebar-label,
.student-sidebar-nav .student-sidebar-group-toggle > .student-sidebar-label {
    flex: 1 1 auto;
}

.student-sidebar-nav .student-sidebar-chevron {
    flex: 0 0 auto;
}

/* Collapsed mode: preserve the expanded button height and show icons only. */
.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-item,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-item,
.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-subitem,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-subitem {
    box-sizing: border-box;
    height: 46px;
    min-height: 46px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
    overflow: visible;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-icon,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-icon,
.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-subicon,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-subicon {
    display: inline-flex !important;
    flex: 0 0 24px;
    width: 24px !important;
    min-width: 24px !important;
    height: 24px;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    font-size: 1rem;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-label,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-label,
.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-subitem > span:last-child,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-subitem > span:last-child,
.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-chevron,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-chevron {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 900px) {
    .student-lectures-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .student-lectures-tabs { display: none; }
    .student-lectures-mobile-label { display: block; margin-top: 24px; color: var(--navy); font-size: .8rem; font-weight: 700; }
    .student-lectures-mobile-select { display: block; width: 100%; min-height: 42px; margin-top: 8px; padding: 8px 34px 8px 12px; border: 1px solid #d9c17b; border-radius: 7px; background: #fffdf5; color: var(--navy); font-size: .9rem; }
    .student-lectures-panel { border-radius: 11px; }
}

#studentExamModal .student-exam-dialog {
    position: relative !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f5f7fb !important;
}

#studentExamModal .student-password-dialog-header {
    box-sizing: border-box;
    width: 100%;
    min-height: 92px;
    padding: 20px clamp(18px, 4vw, 56px) !important;
}

#studentExamModal .student-exam-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) !important;
    width: 100%;
    height: calc(100vh - 92px) !important;
    min-height: 0;
}

#studentExamModal .student-exam-layout .student-password-dialog-body {
    min-width: 0;
    overflow-y: auto;
    padding: clamp(24px, 4vw, 58px) !important;
    background: linear-gradient(135deg, #f9fbfd, #eef3f7) !important;
}

#studentExamModal .student-exam-question-row {
    display: grid !important;
    grid-template-columns: 138px minmax(0, 1fr) !important;
    gap: clamp(14px, 2vw, 28px) !important;
    width: min(980px, 100%);
    margin: 0 auto !important;
}

#studentExamModal .student-exam-question-index {
    box-sizing: border-box;
    width: 100%;
    align-self: start;
    min-height: 168px;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    border: 1px solid #d3dce6 !important;
    border-top: 4px solid #c79a2b !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #162f50 !important;
    box-shadow: 0 8px 22px rgba(25, 52, 80, .09) !important;
}

#studentExamModal .student-exam-question {
    box-sizing: border-box;
    width: 100%;
    min-height: 360px;
    margin: 0 !important;
    padding: clamp(22px, 3vw, 38px) !important;
    border: 1px solid #b8dce2 !important;
    border-radius: 14px !important;
    background: linear-gradient(150deg, #dff3f4, #c9e9ed) !important;
    box-shadow: 0 12px 30px rgba(25, 52, 80, .1) !important;
}

#studentExamModal .student-exam-question label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 9px 0 0 !important;
    padding: 10px 14px !important;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #162f50 !important;
    font-size: .95rem !important;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
}

#studentExamModal .student-exam-question label:hover,
#studentExamModal .student-exam-question label:has(input:checked) {
    border-color: #80bbc4;
    background: rgba(255, 255, 255, .72);
}

#studentExamModal .student-exam-question label input[type="radio"] {
    flex: 0 0 auto;
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    accent-color: #173b63;
}
.student-exam-image-button { display: flex; align-items: center; height: 27px; min-height: 27px; margin: 0 0 12px; padding: 3px 12px; border: 1px solid var(--gold); border-radius: 7px; background: #fffaf0; color: var(--navy); font-weight: 700; cursor: pointer; }
.student-exam-image-button:hover, .student-exam-image-button:focus-visible { background: var(--gold); color: #fff; }
.student-exam-image-dialog { width: 90vw !important; max-width: 90vw !important; height: 90vh !important; max-height: 90vh !important; display: flex; flex-direction: column; }
.student-exam-image-body { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; padding: 12px 18px 18px; color: #52606d; }
.student-exam-image-header-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.student-exam-image-toolbar { display: flex; align-items: center; gap: 7px; }
.student-exam-image-toolbar button { min-width: 34px; min-height: 30px; padding: 4px 9px; border: 1px solid #b8c4d2; border-radius: 6px; background: #fff; color: var(--navy); font-weight: 700; cursor: pointer; }
.student-exam-image-toolbar button:hover, .student-exam-image-toolbar button:focus-visible { background: var(--navy); color: #fff; }
.student-exam-image-message { min-height: 1.2em; margin: 0 0 10px; font-size: .85rem; }
.student-exam-image-scroll { min-height: 0; flex: 1 1 auto; max-width: 100%; overflow: auto; text-align: center; background: #f8fafc; }
.student-exam-image-scroll img { display: inline-block; max-width: none; height: auto; }
@media (max-width: 760px) {
    .student-exam-image-scroll img { width: 100%; height: auto; }
}

@media (max-width: 760px) {
    #studentExamImageModal { padding: 16px; }
    #studentExamImageModal .student-exam-image-dialog {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        height: auto !important;
        max-height: 90dvh !important;
        margin: auto;
    }
    #studentExamImageModal .student-password-dialog-header {
        align-items: center;
        gap: 8px;
        min-height: 54px;
        padding: 12px 14px;
    }
    #studentExamImageModal .student-password-dialog-header h2 {
        flex: 0 1 auto;
        min-width: 0;
        height: 30px;
        margin: 0;
        font-size: 1rem !important;
        line-height: 30px;
        white-space: nowrap;
    }
    #studentExamImageModal .student-exam-image-header-controls {
        flex: 0 0 auto;
        gap: 5px;
    }
    #studentExamImageModal .student-exam-image-toolbar { gap: 4px; }
    #studentExamImageModal .student-exam-image-toolbar button {
        min-width: 30px;
        width: 30px;
        height: 30px;
        min-height: 30px;
        padding: 2px 4px;
    }
    #studentExamImageModal .student-exam-image-toolbar button:nth-child(2) { width: 52px; }
    #studentExamImageModal .student-exam-image-header-controls .student-pdf-close {
        width: 30px;
        height: 30px;
        font-size: 1.35rem;
    }
    #studentExamImageModal .student-exam-image-body {
        flex: 0 1 auto;
        padding: 12px;
    }
    #studentExamImageModal .student-exam-image-message:empty { display: none; }
    #studentExamImageModal .student-exam-image-scroll {
        flex: 0 1 auto;
        width: 100%;
        max-height: calc(90dvh - 90px);
    }
    #studentExamImageModal .student-exam-image-scroll img {
        display: block;
        width: 100%;
        height: auto;
    }
}

#studentExamModal .student-exam-navigation {
    box-sizing: border-box;
    overflow-y: auto;
    padding: 30px 22px !important;
    border-left: 1px solid #d5dee8 !important;
    background: #fff !important;
}

#studentExamModal .student-exam-navigation-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

#studentExamModal .student-exam-navigation-heading h3 {
    margin: 0 !important;
    color: #162f50 !important;
    font-size: 1.05rem !important;
}

#studentExamModal .student-exam-navigation-heading span {
    color: #64748b;
    font-size: .75rem;
}

#studentExamModal .student-exam-nav-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 9px !important;
}

#studentExamModal .student-exam-nav-grid button {
    min-width: 0;
    min-height: 40px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    color: #233e5d !important;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

#studentExamModal .student-exam-nav-grid button:hover,
#studentExamModal .student-exam-nav-grid button:focus-visible {
    transform: translateY(-1px);
    border-color: #315b84 !important;
    background: #e8f2f5 !important;
}

#studentExamModal .student-exam-nav-grid button.answered {
    border-color: #77aeb7 !important;
    background: #d9f0f2 !important;
}

#studentExamModal .student-exam-finish {
    width: 100%;
    min-height: 44px;
    margin-top: 24px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #173b63;
    color: #fff;
    font-size: .87rem;
    font-weight: 700;
    cursor: pointer;
}

#studentExamModal .student-exam-finish:disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    opacity: 1;
}

#studentExamModal .student-exam-navigation-hint {
    margin-top: 10px;
    color: #64748b;
    font-size: .74rem;
    line-height: 1.4;
}

@media (max-width: 760px) {
    #studentExamModal .student-exam-layout {
        grid-template-columns: 1fr !important;
        height: calc(100vh - 92px) !important;
    }
    #studentExamModal .student-exam-navigation {
        order: -1;
        max-height: 154px;
        padding: 14px 16px !important;
        border: 0 !important;
        border-bottom: 1px solid #d5dee8 !important;
    }
    #studentExamModal .student-exam-nav-grid { grid-template-columns: repeat(6, minmax(28px, 1fr)) !important; gap: 6px !important; }
    #studentExamModal .student-exam-nav-grid button { min-height: 34px; }
    #studentExamModal .student-exam-question-row { grid-template-columns: 1fr !important; }
    #studentExamModal .student-exam-question-index { min-height: 0; flex-direction: row !important; flex-wrap: wrap; align-items: center !important; gap: 8px 12px !important; padding: 11px 13px !important; }
    #studentExamModal .student-exam-question { min-height: 0; padding: 20px 15px !important; }
    #studentExamModal .student-exam-question label { font-size: .88rem !important; }
}

.student-notes-tab:hover,
.student-notes-tab[aria-selected="true"] {
    border-color: var(--navy);
    background: var(--navy);
    color: white;
}

.student-notes-panel {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid rgba(28, 43, 74, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .78);
}

.student-notes-panel h3 {
    color: var(--navy);
    font-family: 'Fraunces', serif;
    font-size: 1.45rem;
}

.student-notes-panel > p {
    margin-top: 8px;
    color: #4b5563;
}

.student-notes-table-wrapper {
    margin-top: 20px;
    overflow-x: auto;
}

.student-notes-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    --student-table-header-color: #6b7280;
}

.student-exam-dialog {
    width: min(920px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.student-exam-question {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(28, 43, 74, .14);
    border-radius: 10px;
}

.student-exam-question legend {
    max-width: 100%;
    color: var(--navy);
    font-weight: 700;
}

.student-exam-question label {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    margin-top: .7rem;
    color: #374151;
}

.student-exam-dialog {
    width: min(1260px, 100vw);
    height: min(100vh, 900px);
    max-height: 100vh;
    border-radius: 0;
    background: #f7f9fb;
}

.student-exam-dialog .student-password-dialog-header {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #f7f9fb;
}

.student-exam-modal-description {
    max-width: 850px;
    margin: 4px 0 0;
    color: #52606d;
    font-size: .9rem;
    line-height: 1.45;
}

.student-exam-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 242px;
    min-height: 0;
    height: calc(100% - 72px);
}

.student-exam-layout .student-password-dialog-body {
    min-width: 0;
    overflow-y: auto;
    padding: 22px 36px 48px;
    background: #fff;
}

.student-exam-question-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 34px;
    scroll-margin-top: 84px;
}

.student-exam-question-index {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: start;
    padding: 10px 7px;
    border: 1px solid #b8c4d0;
    background: #f8fafc;
    color: #0f2742;
    font-size: .68rem;
    line-height: 1.35;
}

.student-exam-question-index strong { font-size: .72rem; }
.student-exam-question-index small { color: #334e68; }
.student-exam-question-index a { color: #0b4f91; text-decoration: underline; }
.exam-question-status { color: #52606d; }

.student-exam-question {
    margin: 0;
    padding: 18px 17px 22px;
    border: 0;
    border-radius: 7px;
    background: #c9e8ed;
}

.student-exam-question legend {
    padding: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
}

.student-exam-select-one {
    margin-top: 18px;
    font-size: .85rem;
}

.student-exam-question label {
    margin-top: 11px;
    font-size: .85rem;
}

.student-exam-question-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.student-exam-question-actions button {
    min-width: 96px;
    padding: 9px 16px;
    border: 1px solid #102a43;
    border-radius: 4px;
    background: #fff;
    color: #102a43;
    font-weight: 700;
    cursor: pointer;
}

.student-exam-question-actions .student-exam-next,
.student-exam-question-actions .student-exam-submit {
    background: #102a43;
    color: #fff;
}

.student-exam-question-actions button:disabled { opacity: .45; cursor: not-allowed; }

.student-exam-navigation {
    padding: 28px 16px;
    border-left: 1px solid #e1e7ec;
    background: #fff;
}

.student-exam-navigation h3 {
    margin-bottom: 14px;
    color: #102a43;
    font-size: 1rem;
}

.student-exam-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.student-exam-nav-grid button {
    min-height: 32px;
    border: 1px solid #102a43;
    border-radius: 2px;
    background: #fff;
    color: #102a43;
    font-size: .75rem;
}

.student-exam-nav-grid button.answered { background: #c9e8ed; }
.student-exam-nav-grid button:hover { background: #102a43; color: #fff; }
.student-exam-finish { margin-top: 14px; border: 0; background: transparent; color: #0b4f91; font-size: .75rem; text-decoration: underline; }

@media (max-width: 760px) {
    .student-exam-dialog { width: 100vw; height: 100vh; }
    .student-exam-layout { grid-template-columns: 1fr; height: calc(100% - 62px); }
    .student-exam-navigation { order: -1; padding: 10px 16px; border-left: 0; border-bottom: 1px solid #e1e7ec; }
    .student-exam-navigation h3 { display: inline-block; margin: 0 10px 0 0; }
    .student-exam-nav-grid { display: inline-grid; grid-template-columns: repeat(6, 30px); vertical-align: middle; }
    .student-exam-finish { margin: 0 0 0 8px; }
    .student-exam-layout .student-password-dialog-body { padding: 16px 12px 32px; }
    .student-exam-question-row { grid-template-columns: 1fr; gap: 6px; }
    .student-exam-question-index { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
    .student-exam-modal-description { font-size: .8rem; }
    .student-exam-question-actions { justify-content: stretch; }
    .student-exam-question-actions button { flex: 1; }
}

.student-notes-table caption {
    display: none;
}

.student-notes-table th,
.student-notes-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(28, 43, 74, .12);
}

.student-notes-table th {
    background: var(--navy);
    color: var(--student-table-header-color);
    font-size: .78rem;
    letter-spacing: .06em;
}

.student-lectures-panel .student-notes-table th:first-child,
.student-lectures-panel .student-notes-table td:first-child { width: 60%; }
.student-lectures-panel .student-notes-table th:last-child,
.student-lectures-panel .student-notes-table td:last-child { width: 40%; }

.student-notes-panel .student-notes-table,
[data-exams-panel] .student-notes-table {
    min-width: 520px;
    table-layout: fixed;
}
.student-notes-panel .student-notes-table th:first-child,
.student-notes-panel .student-notes-table td:first-child,
[data-exams-panel] .student-notes-table th:first-child,
[data-exams-panel] .student-notes-table td:first-child { width: 60%; }
.student-notes-panel .student-notes-table th:last-child,
.student-notes-panel .student-notes-table td:last-child,
[data-exams-panel] .student-notes-table th:last-child,
[data-exams-panel] .student-notes-table td:last-child { width: 40%; }

.student-notes-panel .student-notes-table th:nth-child(1),
.student-notes-panel .student-notes-table td:nth-child(1),
.student-lectures-panel .student-notes-table th:nth-child(1),
.student-lectures-panel .student-notes-table td:nth-child(1) { width: 55%; }
.student-notes-panel .student-notes-table th:nth-child(2),
.student-notes-panel .student-notes-table td:nth-child(2),
.student-lectures-panel .student-notes-table th:nth-child(2),
.student-lectures-panel .student-notes-table td:nth-child(2) { width: 25%; }
.student-notes-panel .student-notes-table th:nth-child(3),
.student-notes-panel .student-notes-table td:nth-child(3),
.student-lectures-panel .student-notes-table th:nth-child(3),
.student-lectures-panel .student-notes-table td:nth-child(3) { width: 20%; }
.student-resource-status { width: 100%; min-height: 36px; padding: 7px 8px; border: 1px solid rgba(28,43,74,.22); border-radius: 7px; background: #fff; color: var(--navy); font: 600 .78rem/1.2 'Inter',sans-serif; }
.student-resource-status:disabled { cursor: not-allowed; opacity: .55; background: #e8edf2; }

.student-pdf-link {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: underline;
}

.student-pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.student-pdf-modal.hidden {
    display: none;
}

.student-pdf-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 35, .75);
    backdrop-filter: blur(3px);
}

.student-pdf-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 95vw;
    max-width: 95vw;
    height: min(88vh, 820px);
    overflow: hidden;
    border-radius: 14px;
    background: #f8f6ef;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.student-pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--navy);
    color: white;
}

.student-pdf-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.student-pdf-close {
    color: white;
    font-size: 1.8rem;
    line-height: 1;
}

#studentPdfFrame {
    width: 100%;
    flex: 1;
    border: 0;
}

.student-pdf-stage {
    position: relative;
    display: flex;
    min-height: 0;
    flex: 1;
}

.student-pdf-stage #studentPdfFrame { position: relative; z-index: 1; }

.student-pdf-watermark {
    position: absolute;
    z-index: 2;
    top: 48%;
    left: 50%;
    width: 90%;
    color: rgba(36, 52, 84, .22);
    font-size: clamp(1.1rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
    transform: translate(-50%, -50%) rotate(-28deg);
    pointer-events: none;
    user-select: none;
}

.student-pdf-download {
    align-self: flex-start;
    margin: 12px 18px 16px;
}

.student-pdf-page-shell { min-height: 100vh; overflow: hidden; background: #efe9d8; }
.student-pdf-page-app { display: flex; width: 100%; height: 100vh; min-height: 0; flex-direction: column; }
.student-lecture-page-shell { width: 100%; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; background: #05070b; }
.student-lecture-page-app { display: flex; width: 100%; height: 100vh; height: 100dvh; min-height: 0; flex-direction: column; }
.student-pdf-page-header { position: sticky; top: 0; z-index: 10; display: flex; flex: 0 0 auto; align-items: center; gap: 22px; padding: 14px 22px; background: var(--navy); color: #fff; }
.student-lecture-page-header { gap: 18.7px; padding: 11.9px 18.7px; }
.student-pdf-back { display: inline-flex; align-items: center; justify-content: center; width: 38px; min-height: 34px; padding: 6px; border: 1px solid rgba(255,255,255,.32); border-radius: 7px; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.student-lecture-page-header .student-pdf-back { width: 32px; min-height: 29px; padding: 5px; border-radius: 6px; }
.student-pdf-back svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.student-lecture-page-header .student-pdf-back svg { width: 14.5px; height: 14.5px; }
.student-pdf-back:hover { background: rgba(255,255,255,.14); }
.student-pdf-page-heading { min-width: 0; }
.student-pdf-page-heading span { color: #e9c65e; font-size: .68rem; letter-spacing: .16em; }
.student-pdf-page-heading h1 { overflow: hidden; margin: 2px 0 0; color: #fff; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.student-lecture-page-header .student-pdf-page-heading span { font-size: .58rem; letter-spacing: .136em; }
.student-lecture-page-header .student-pdf-page-heading h1 { margin-top: 1.7px; font-size: .85rem; }
.student-pdf-header-tools { display: flex; margin-left: auto; flex-direction: column; align-items: flex-end; gap: 4px; }
.student-pdf-page-status { font-size: .82rem; font-weight: 700; }
.student-pdf-page-status.is-error { color: #8c2020; }
.student-lecture-page-header .student-lecture-header-tools { margin-left: auto; align-self: flex-end; }
.student-lecture-page-header .student-pdf-page-status { align-self: flex-end; margin: 0; font-size: .85rem; line-height: 1.25; text-align: right; }
.student-pdf-page-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.student-pdf-page-controls > button { min-height: 30px; border: 1px solid rgba(28,43,74,.3); border-radius: 6px; background: rgba(255,255,255,.45); color: var(--navy); }
.student-pdf-page-controls > button:not(.student-pdf-page-download) { width: 30px; font-size: 1.1rem; }
.student-pdf-page-download { margin: 0; padding: 0 12px; font-size: .78rem; font-weight: 700; }
.student-pdf-page-controls > button:hover { background: rgba(255,255,255,.72); }
.student-pdf-page-viewer { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; align-items: center; gap: 16px; overflow-y: auto; overflow-x: hidden; padding: 22px 12px; background: #d8dbe3; }
.student-lecture-page-viewer {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0;
    background: #05070b;
    isolation: isolate;
}
.student-lecture-local-video {
    position: relative;
    z-index: 1;
    display: block;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    background: #000;
    object-fit: contain;
}
.student-lecture-security-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}
.student-lecture-security-watermark {
    position: absolute;
    display: block;
    width: 175%;
    color: rgba(255, 255, 255, .23);
    font-size: clamp(1.64rem, 2.7vw, 2.3rem);
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    transform-origin: center;
}
.student-lecture-security-watermark-one {
    top: 18%;
    left: -38%;
    transform: rotate(-19deg);
    animation: student-lecture-watermark-drift-one 24s ease-in-out infinite alternate;
}
.student-lecture-security-watermark-two {
    top: 48%;
    left: -8%;
    color: rgba(208, 165, 41, .32);
    transform: rotate(17deg);
    animation: student-lecture-watermark-drift-two 29s ease-in-out infinite alternate;
}
.student-lecture-security-watermark-three {
    top: 78%;
    left: -42%;
    transform: rotate(-16deg);
    animation: student-lecture-watermark-drift-one 31s ease-in-out infinite alternate-reverse;
}
@keyframes student-lecture-watermark-drift-one {
    from { margin-left: -1.5%; opacity: .74; }
    to { margin-left: 4%; opacity: 1; }
}
@keyframes student-lecture-watermark-drift-two {
    from { margin-left: 3%; opacity: .68; }
    to { margin-left: -3%; opacity: 1; }
}
.student-lecture-loading-popup {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    min-width: 0;
    box-sizing: border-box;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(5, 7, 11, .62);
}
.student-lecture-loading-popup-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(92%, 560px);
    min-width: 0;
    max-height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 12px;
    background: #1c2b4a;
    color: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .3);
    text-align: center;
}
.student-lecture-loading-popup-card h2 { max-width: 100%; margin: 0; color: inherit; font-size: 1.2rem; overflow-wrap: anywhere; }
.student-lecture-loading-popup-card ul { display: grid; width: 100%; min-width: 0; gap: 8px; margin: 0; padding-left: 1.25em; text-align: left; line-height: 1.5; }
.student-lecture-loading-popup-card li::marker { color: #d0a529; }
.student-lecture-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-top-color: #d0a529;
    border-radius: 50%;
    animation: student-lecture-loading-spin .8s linear infinite;
}
@keyframes student-lecture-loading-spin { to { transform: rotate(360deg); } }
.student-lecture-page-viewer:fullscreen,
.student-lecture-page-viewer:-webkit-full-screen,
.student-lecture-local-video:fullscreen,
.student-lecture-local-video:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    background: #000;
}
.student-lecture-page-viewer[data-player-state="locked"] { background: #000; }
.student-lecture-page-viewer[data-player-state="unavailable"] { padding: 24px; }
.student-lecture-page-message { margin: auto; color: #fff; text-align: center; }
[hidden] { display: none !important; }
.student-pdf-rendered-page { position: relative; max-width: 100%; background: #fff; box-shadow: 0 3px 12px rgba(20,30,50,.24); }
.student-pdf-rendered-page canvas { display: block; max-width: 100%; height: auto; }
.student-pdf-rendered-watermark { position: absolute; top: 50%; left: 50%; width: 96%; color: rgba(36,52,84,.24); font-size: clamp(1.32rem,3.6vw,2.88rem); font-weight: 700; letter-spacing: .08em; line-height: 1.1; text-align: center; text-transform: uppercase; transform: translate(-50%,-50%) rotate(-28deg); pointer-events: none; user-select: none; }
@media (max-width: 600px) {
    .student-pdf-page-app { height: 100dvh; min-height: 100dvh; }
    .student-pdf-page-header { gap: 10px; padding: 12px; }
    .student-lecture-page-header { gap: 8.5px; padding: 10.2px; }
    .student-lecture-page-header .student-lecture-header-tools { min-width:0; max-width:48%; align-self:center; }
    .student-lecture-page-header .student-pdf-page-status { display:-webkit-box; max-width:100%; overflow:hidden; font-size:.68rem; line-height:1.2; overflow-wrap:anywhere; text-align:right; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
    .student-pdf-page-header { position: sticky; top: 0; }
    .student-pdf-back { min-width: 36px; min-height: 36px; padding: 7px; }
    .student-lecture-page-header .student-pdf-back { width: 30.6px; min-width: 30.6px; min-height: 30.6px; padding: 5.95px; }
    .student-pdf-back-label { display: none; }
    .student-pdf-header-tools { max-width: 60%; }
    .student-pdf-page-controls { flex-wrap: wrap; justify-content: flex-end; }
    .student-pdf-page-download { flex: 1; max-width: 230px; }
    .student-pdf-page-viewer { min-height: 0; overflow-y: auto; overflow-x: hidden; gap: 10px; padding: 12px 4px; }
    .student-lecture-page-viewer { min-height: 0; }
    .student-lecture-loading-popup { padding: 14px; }
    .student-lecture-loading-popup-card { gap: 10px; padding: 20px 16px; }
    .student-lecture-security-watermark { width: 230%; font-size: 1.36rem; letter-spacing: .1em; }
}

@media (max-width: 600px) {
}

@media (prefers-reduced-motion: reduce) {
    .student-lecture-loading-spinner { animation-duration: 1.8s; }
    .student-lecture-security-watermark { animation: none; }
}

/* Keep the viewer controls and loading dialog within short landscape/mobile viewports. */
@media (max-height: 520px) {
    .student-lecture-page-header { gap: 8px; padding: 6px 10px; }
    .student-lecture-page-header .student-pdf-back { width: 28px; min-width: 28px; min-height: 28px; padding: 3px; }
    .student-lecture-page-header .student-pdf-back svg { width: 14px; height: 14px; }
    .student-lecture-page-header .student-pdf-page-heading span { font-size: .5rem; }
    .student-lecture-page-header .student-pdf-page-heading h1 { margin-top: 0; font-size: .75rem; }
    .student-lecture-page-header .student-lecture-header-tools { min-width: 0; max-width: 50%; }
    .student-lecture-page-header .student-pdf-page-status { font-size: .6rem; line-height: 1.15; }
    .student-lecture-loading-popup { padding: 6px; }
    .student-lecture-loading-popup-card { gap: 5px; width: min(96%, 560px); padding: 8px 12px; }
    .student-lecture-loading-popup-card h2 { font-size: 1rem; }
    .student-lecture-loading-popup-card ul { gap: 4px; font-size: .82rem; line-height: 1.25; }
    .student-lecture-loading-spinner { width: 22px; height: 22px; border-width: 2px; }
}

.student-pdf-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 6px 12px;
    background: #303f63;
    color: #fff;
    font-size: .82rem;
}
.student-pdf-toolbar button {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 6px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
}
.student-pdf-toolbar button:hover { background: rgba(255,255,255,.22); }
#studentPdfZoomLevel { min-width: 42px; text-align: center; }
#studentPdfPageStatus { margin-left: auto; opacity: .85; }
.student-pdf-viewer {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    overflow: auto;
    padding: 18px;
    background: #d8dbe3;
}
.student-pdf-page {
    position: relative;
    max-width: 100%;
    background: #fff;
    box-shadow: 0 3px 12px rgba(20, 30, 50, .24);
}
.student-pdf-page canvas { display: block; max-width: 100%; height: auto; }
.student-pdf-page-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 96%;
    color: rgba(36, 52, 84, .24);
    font-size: clamp(1.32rem, 3.6vw, 2.88rem);
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    transform: translate(-50%, -50%) rotate(-28deg);
    pointer-events: none;
    user-select: none;
}
@media (max-width: 600px) {
    .student-pdf-dialog { width: 100vw; max-width: 100vw; height: 94vh; border-radius: 0; }
    .student-pdf-toolbar { padding: 5px 8px; }
    .student-pdf-viewer { gap: 10px; padding: 10px 5px; }
    .student-pdf-download { width: calc(100% - 20px); margin: 10px; }
}

.student-lecture-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.student-lecture-modal.hidden { display: none; }
.student-lecture-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 35, .78);
    backdrop-filter: blur(3px);
}
.student-lecture-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(94vw, 1060px);
    max-height: calc(100dvh - 48px);
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: #111d2e;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
}
.student-lecture-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: var(--navy);
    color: #fff;
}
.student-lecture-header h2 {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.student-lecture-close {
    flex: 0 0 auto;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
}
.student-lecture-stage { padding: 18px; }
.student-lecture-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}
.student-lecture-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.student-lecture-status {
    margin: 0;
    padding: 0 18px 16px;
    color: rgba(255, 255, 255, .78);
    font-size: .78rem;
}
@media (max-width: 600px) {
    .student-lecture-modal { padding: 12px; }
    .student-lecture-dialog { width: 100%; max-height: calc(100dvh - 24px); border-radius: 10px; }
    .student-lecture-stage { padding: 10px; }
    .student-lecture-status { padding: 0 10px 10px; }
}

.student-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.student-form-grid label,
.student-form-grid input,
.student-form-grid textarea {
    display: block;
}

.student-form-grid input[hidden] {
    display: none !important;
}

.student-form-grid label {
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35;
}

.student-form-grid input,
.student-form-grid select,
.student-form-grid textarea {
    width: 100%;
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
    border: 1px solid rgba(28, 43, 74, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .86);
    color: var(--navy);
    font: 400 .95rem/1.4 'Inter', sans-serif;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.student-form-grid input,
.student-form-grid textarea {
    margin-top: 8px;
}

.student-form-grid select {
    margin-top: 8px;
    padding: 10px 12px;
    cursor: pointer;
}

.student-form-grid select.student-profile-readonly-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
    background-color: rgba(255, 255, 255, .86);
    color: var(--navy);
    opacity: 1;
    cursor: default;
}


.student-form-grid input,
.student-form-grid textarea {
    padding: 10px 12px;
}

.student-form-grid textarea {
    resize: vertical;
}

.student-form-grid input::placeholder,
.student-form-grid textarea::placeholder {
    color: #9ca3af;
}

.student-form-grid input:focus,
.student-form-grid select:focus,
.student-form-grid textarea:focus {
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(184, 145, 43, .16);
}

.student-primary-button {
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    background: var(--navy);
    color: white;
    font-weight: 700;
}

.student-progress-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #E8DFC8;
}

.student-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--gold);
}

.student-progress-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.student-progress-group { min-width: 0; }
.student-progress-group h3 { color: var(--navy); font-size: 1.05rem; }
.student-progress-card-row { margin-top: 18px; }
.student-progress-card-head { display: flex; justify-content: space-between; gap: 12px; color: var(--navy); font-size: .86rem; }
.student-progress-card-head strong { overflow-wrap: anywhere; }
.student-progress-card-row .student-progress-track { margin-top: 8px; }
.student-progress-card-row small { display: block; margin-top: 6px; color: #64748b; font-size: .75rem; }
.admin-progress-cards { gap: 14px; }
.admin-progress-cards .student-progress-group { background: #fff; }
.admin-progress-item-category { color: #64748b; font-size: .72rem; font-weight: 400; }
.admin-progress-filter { display: grid; gap: 5px; margin-top: 14px; color: #52606d; font-size: .75rem; font-weight: 700; }
.admin-progress-filter select { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: var(--navy); font: inherit; }
.student-progress-loading, .student-progress-empty, .student-progress-error { color: #64748b; }
.student-progress-error { color: var(--red); }
@media (max-width: 900px) { .student-progress-cards { grid-template-columns: 1fr; } }

.admin-website-workflow-bar { display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; padding:10px; border:1px solid rgba(28,43,74,.14); border-radius:12px; background:#f7f9fc; }
.admin-website-workflow-button { padding:10px 15px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:var(--navy); font-weight:700; cursor:pointer; }
.admin-website-workflow-button.active, .admin-website-workflow-button:hover { background:var(--navy); color:#fff; border-color:var(--navy); }
.admin-website-utility-panel { margin-top:28px; padding:24px; border:1px solid rgba(28,43,74,.14); border-radius:12px; background:#f8fafc; }
.admin-capability-modal { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:20px; background:rgba(15,23,42,.62); }
.admin-capability-modal.hidden { display:none; }
.admin-capability-modal-card { width:min(85vw,1200px); max-height:min(80vh,760px); overflow:auto; border:1px solid #cbd5e1; border-radius:16px; background:#fff; box-shadow:0 24px 60px rgba(15,23,42,.28); }
.admin-capability-modal-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; background:var(--navy); color:#fff; }
.admin-capability-modal-header h2 { margin:0; font:700 1.35rem 'Fraunces',serif; }
.admin-capability-modal-header #adminCapabilityModalTitle { color:#fff !important; }
.admin-capability-modal-header button { border:0; background:transparent; color:#fff; font-size:1.8rem; line-height:1; cursor:pointer; }
.admin-capability-modal-body { padding:22px; }
.admin-capability-table-wrap { overflow:auto; }
.admin-capability-table { width:100%; border-collapse:collapse; min-width:560px; }
.admin-capability-table th, .admin-capability-table td { padding:11px 12px; border-bottom:1px solid #e2e8f0; text-align:left; vertical-align:top; }
.admin-capability-table th { background:#eef2f7; color:var(--navy); font-size:.8rem; text-transform:uppercase; letter-spacing:.04em; }
.admin-capability-loading, .admin-capability-empty { color:#64748b; }
.admin-capability-error { color:#b83232; font-weight:700; }
.admin-capability-summary { display:grid; gap:8px; margin-bottom:18px; color:#475569; }
.admin-ranking-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.admin-ranking-filters label { display:grid; gap:7px; color:var(--navy); font-weight:700; font-size:.84rem; }
.admin-ranking-filters select { min-height:42px; padding:9px 12px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:var(--navy); font:inherit; }
@media (max-width: 700px) { .admin-website-workflow-bar { display:grid; grid-template-columns:1fr 1fr; } .admin-website-workflow-button { width:100%; } .admin-capability-modal { padding:10px; } .admin-capability-modal-card { width:100%; } .admin-capability-modal-body { padding:15px; } }
@media (max-width: 700px) { .admin-ranking-filters { grid-template-columns:1fr; } }

.student-dashboard-exam-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin-top: 16px;
}
.student-dashboard-exam-category {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(28,43,74,.14);
    border-radius: 12px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 5px 14px rgba(28,43,74,.06);
}
.student-dashboard-exam-category h4 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 3px solid #d9c17b;
    color: var(--navy);
    font-size: .92rem;
    line-height: 1.25;
}
.student-dashboard-exam-records {
    display: grid;
    gap: 10px;
}
.student-dashboard-exam-record {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(28,43,74,.1);
    border-radius: 8px;
    background: #fff;
}
.student-dashboard-exam-record h5 {
    margin: 0;
    color: #233e5d;
    font-size: .84rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.student-dashboard-exam-record dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 0;
}
.student-dashboard-exam-record dl div { min-width: 0; }
.student-dashboard-exam-record dt {
    color: #64748b;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.student-dashboard-exam-record dd {
    margin: 3px 0 0;
    color: var(--navy);
    font-size: .88rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.student-dashboard-exam-empty {
    margin: 0;
    color: #64748b;
    font-size: .82rem;
}
@media (max-width: 1100px) {
    .student-dashboard-exam-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .student-dashboard-exam-cards { grid-template-columns: 1fr; gap: 12px; }
    .student-dashboard-exam-category { padding: 14px; }
}
#studentIncompleteAssignmentsModal .student-incomplete-assignments-dialog { width:85vw; max-width:85vw; height:85vh; max-height:85vh; display:flex; flex-direction:column; box-sizing:border-box; border:1px solid rgba(184,145,43,.45); border-radius:18px; }
.student-incomplete-assignments-dialog .student-password-dialog-header { flex:0 0 auto; padding:20px 28px; background:linear-gradient(120deg, #13294b, #1d4269); border-bottom:4px solid #c79a2b; }
.student-incomplete-assignments-dialog .student-password-dialog-header h2 { font-size:clamp(1.2rem, 2vw, 1.65rem); }
.student-incomplete-assignments-dialog .student-exam-result-body { flex:1 1 auto; width:100%; min-height:0; box-sizing:border-box; overflow-y:auto; padding:28px 32px 32px; background:#f7f9fc; }
.student-incomplete-assignments-dialog .student-exam-result-body > p { margin:0 0 20px; color:#52606d; font-size:1rem; }
.student-incomplete-assignments-list { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; }
.student-incomplete-assignments-category { padding:18px; border:1px solid #d7e2e8; border-radius:14px; background:#fff; box-shadow:0 8px 20px rgba(28,43,74,.08); }
.student-incomplete-assignments-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; padding-bottom:12px; color:var(--navy); font-size:1.05rem; font-weight:700; border-bottom:2px solid #d8f0f2; }
.student-incomplete-assignments-count { color:#64748b; font:600 .72rem/1.2 'Inter',sans-serif; white-space:nowrap; }
.student-incomplete-assignments-items { display:grid; gap:8px; }
.student-incomplete-assignment-link { display:block; padding:10px 12px; border-radius:8px; color:#1459a6; font-weight:700; text-decoration:none; background:#f3f8fa; }
.student-incomplete-assignment-link:hover { background:#d8f0f2; }
.student-incomplete-assignments-empty { margin:0; color:#64748b; font-size:.82rem; }
.student-incomplete-assignments-dialog .student-primary-button { align-self:flex-start; margin-top:22px; }
@media (max-width:760px) {
    #studentIncompleteAssignmentsModal .student-incomplete-assignments-dialog { width:85vw; max-width:85vw; height:85vh; max-height:85vh; }
    .student-incomplete-assignments-dialog .student-password-dialog-header { padding:16px 18px; }
    .student-incomplete-assignments-dialog .student-exam-result-body { padding:20px 18px 24px; }
    .student-incomplete-assignments-list { grid-template-columns:1fr; gap:12px; }
}
.admin-student-directory { margin-top: 24px; }
.admin-student-directory h3 { margin: 0; color: var(--navy); font-size: 1.25rem; font-weight: 700; }
.admin-student-directory > p { margin: 6px 0 16px; color: #64748b; }
#manageAllStudentsBtn { margin-top: 0; align-self: auto; }
#manageAllStudentsModal { padding: 16px; }
.admin-login-instructions-dialog.admin-student-manage-dialog { display:flex; box-sizing:border-box; width:min(1420px, calc(100vw - 32px)); max-height:min(92vh, 1000px); flex-direction:column; }
.admin-student-manage-dialog .admin-login-instructions-header { flex:0 0 auto; }
.admin-login-instructions-body.admin-student-manage-body { min-height:0; max-height:none; overflow-y:auto; }
.admin-student-manage-body .admin-primary-action { margin-top:0; }
.admin-student-manage-body [hidden] { display:none !important; }
.admin-student-manager-intro { margin:0 0 14px; color:#64748b; font-size:.82rem; }
.admin-student-manager-toolbar { display:grid; grid-template-columns:minmax(260px, 1fr) auto auto auto auto; align-items:end; gap:10px; margin-bottom:14px; }
.admin-student-manager-search { display:grid; min-width:0; gap:5px; color:var(--navy); font-size:.76rem; font-weight:700; }
.admin-student-manager-search input,
.admin-student-manager-fields input,
.admin-student-manager-fields select,
.admin-student-manager-bulk select { min-height:40px; box-sizing:border-box; padding:8px 10px; border:1px solid rgba(28,43,74,.22); border-radius:8px; background:#fff; color:var(--navy); font:500 .82rem/1.2 'Inter',sans-serif; }
.admin-student-manager-fields input:not([type="checkbox"]),
.admin-student-manager-fields select { width:100%; height:48px; min-height:48px; }
.admin-student-manager-fields input.admin-student-manager-system-assigned { background:#edf0f4; color:#64748b; cursor:not-allowed; }
.admin-student-manager-search input { width:100%; height:42px; }
.admin-student-manager-toolbar > button { display:inline-flex; align-items:center; justify-content:center; align-self:end; height:42px; min-height:42px; box-sizing:border-box; margin:0; white-space:nowrap; }
.admin-student-manage-dialog .admin-secondary-action { margin:0; padding:9px 12px; border:1px solid rgba(28,43,74,.25); border-radius:8px; background:#fff; color:var(--navy); font:700 .78rem/1.2 'Inter',sans-serif; cursor:pointer; }
.admin-student-manage-dialog .admin-secondary-action:hover { background:#f4f7fa; }
.admin-student-manager-bulk { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin:0 0 12px; padding:12px; border:1px solid rgba(28,43,74,.16); border-radius:10px; background:#f7f9fc; }
.admin-student-manager-bulk label { display:grid; flex:1 1 150px; min-width:0; gap:5px; color:var(--navy); font-size:.74rem; font-weight:700; }
.admin-student-manager-bulk > .admin-student-manager-select-by-field { flex:0 1 190px; }
.admin-student-manager-bulk select { box-sizing:border-box; height:72px; min-height:72px; }
.admin-student-manager-select-by-options-field { display:grid; flex:1 1 300px; min-width:0; gap:5px; color:var(--navy); font-size:.74rem; font-weight:700; }
.admin-student-manager-select-by-options-field > span:first-child { line-height:1.2; }
.admin-student-manager-select-by-options { position:relative; z-index:2; display:grid; flex:1 1 auto; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); align-items:center; gap:2px 12px; width:100%; height:72px; min-height:72px; box-sizing:border-box; padding:7px 10px; border:1px solid rgba(28,43,74,.18); border-radius:8px; background:#fff; }
.admin-student-manager-select-by-options[data-student-manager-select-by-kind="package"] { grid-template-columns:max-content max-content minmax(112px,1fr); column-gap:8px; }
.admin-student-manager-select-by-options[data-student-manager-select-by-kind="access"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
.admin-student-manager-select-by-options[data-student-manager-select-by-kind="status"] { grid-template-rows:minmax(0,1fr); }
.admin-student-manager-select-by-options[data-student-manager-select-by-kind="package"] [data-student-manager-select-by-option="free"] { grid-column:1; grid-row:1; }
.admin-student-manager-select-by-options[data-student-manager-select-by-kind="package"] [data-student-manager-select-by-option="online"] { grid-column:2; grid-row:1; }
.admin-student-manager-select-by-options[data-student-manager-select-by-kind="package"] [data-student-manager-select-by-option="face-to-face"] { grid-column:3; grid-row:1; }
.admin-student-manager-select-by-options[data-student-manager-select-by-kind="package"] [data-student-manager-select-by-option="conditional"] { grid-column:1; grid-row:2; }
.admin-student-manager-select-by-options[data-student-manager-select-by-kind="package"] [data-student-manager-select-by-subject-dropdown] { grid-column:2 / 4; grid-row:2; }
.admin-student-manager-select-by-options[data-student-manager-select-by-kind="access"] [data-student-manager-select-by-option="free-access"] { grid-column:1; grid-row:1; }
.admin-student-manager-select-by-options[data-student-manager-select-by-kind="access"] [data-student-manager-select-by-option="partial-access"] { grid-column:2; grid-row:1; }
.admin-student-manager-select-by-options[data-student-manager-select-by-kind="access"] [data-student-manager-select-by-option="full-access"] { grid-column:1; grid-row:2; }
.admin-student-manager-select-by-options[data-student-manager-select-by-kind="access"] [data-student-manager-select-by-option="conditional-access"] { grid-column:2; grid-row:2; }
.admin-student-manager-select-by-options.is-disabled { pointer-events:none; background:#eef2f7; opacity:.62; }
.admin-student-manager-select-by-placeholder { grid-column:1 / -1; grid-row:1 / -1; color:#64748b; font-size:.72rem; font-weight:500; text-align:center; }
.admin-student-manager-select-by-options label { display:inline-flex; flex:0 0 auto; align-items:center; gap:6px; min-width:0; color:var(--navy); font-size:.72rem; font-weight:600; cursor:pointer; }
.admin-student-manager-select-by-options input[type="checkbox"] { width:16px; height:16px; min-height:16px; margin:0; accent-color:var(--navy); }
.admin-student-manager-select-by-subject-dropdown { min-width:0; height:100%; }
.admin-student-manager-select-by-subject-trigger { height:100%; min-height:0; padding:3px 7px; font-size:.7rem; }
.admin-student-manager-select-by-subject-menu { max-width:min(420px,calc(100vw - 40px)); }
.admin-student-manager-bulk > .admin-primary-action,
.admin-student-manager-bulk > .admin-danger-action { display:inline-flex; align-items:center; justify-content:center; align-self:flex-end; box-sizing:border-box; height:72px; min-height:72px; margin:0; white-space:nowrap; }
.admin-student-manager-bulk [data-student-manager-selection-count] { align-self:center; color:#52606d; font-size:.78rem; font-weight:700; }
.admin-student-manager-status { min-height:1.2em; margin:6px 0 10px; color:#237447; font-size:.78rem; font-weight:600; }
.admin-student-manager-status.is-error { color:#a52c2c; }
.admin-student-manager-table { overflow-x:auto; border:1px solid rgba(28,43,74,.16); border-radius:9px; }
.admin-student-manager-table .admin-table-scroll { max-height:55vh; overflow:auto; }
.admin-student-manager-table table { width:100%; min-width:980px; border-collapse:collapse; font-size:.78rem; }
.admin-student-manager-table th { position:sticky; top:0; z-index:1; padding:10px; background:var(--navy); color:#fff; text-align:left; }
.admin-student-manager-table td { padding:9px 10px; border-bottom:1px solid rgba(28,43,74,.1); color:#52606d; vertical-align:middle; }
.admin-student-manager-table tbody tr:hover { background:#f7f9fc; }
.admin-student-manager-table input[type="checkbox"] { width:16px; height:16px; accent-color:var(--navy); }
.admin-student-manager-row-actions { display:flex; gap:6px; white-space:nowrap; }
.admin-student-manager-row-actions .admin-secondary-action,
.admin-student-manager-row-actions .admin-danger-action { padding:7px 9px; }
.admin-student-manager-empty { margin:0; padding:18px; color:#64748b; }
.admin-student-manager-form { display:grid; gap:12px; }
.admin-student-manager-form h3 { margin:0; color:var(--navy); }
.admin-student-manager-fields { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:14px 16px; }
.admin-student-manager-fields label { display:grid; align-content:start; gap:5px; color:var(--navy); font-size:.76rem; font-weight:700; }
.admin-student-manager-fields label span { color:#64748b; font-weight:500; }
.admin-student-manager-fields label .admin-student-manager-label-text { color:var(--navy); font-weight:700; }
.admin-student-manager-fields label .admin-student-manager-required-marker { display:inline; margin-left:2px; color:#b91c1c; font-weight:800; }
.admin-student-manager-field--span-2 { grid-column:span 2; }
.admin-student-manager-field--span-3 { grid-column:span 3; }
.admin-student-manager-field--span-4 { grid-column:span 4; }
.admin-student-manager-field--full { grid-column:1 / -1; }
.admin-student-manager-settings { display:grid; gap:12px; margin-top:2px; padding:16px; border:1px solid rgba(28,43,74,.16); border-radius:12px; background:#f7f9fc; }
.admin-student-manager-settings-heading { margin:0; color:var(--navy); font:700 .72rem/1.2 'Inter',sans-serif; letter-spacing:.1em; text-transform:uppercase; }
.admin-student-manager-other-school { margin-top:2px; }
.admin-student-manager-password-error { color:#b91c1c !important; font-size:.72rem; font-weight:600 !important; }
.admin-student-manager-subjects { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:7px 12px; margin:0; padding:10px; border:1px solid rgba(28,43,74,.2); border-radius:8px; }
.admin-student-manager-subjects legend { padding:0 5px; color:var(--navy); font-size:.76rem; font-weight:700; }
.admin-student-manager-subjects label { display:flex; align-items:flex-start; gap:6px; font-size:.72rem; line-height:1.3; }
.admin-student-manager-subjects input { flex:0 0 auto; width:16px; min-height:16px; margin:0; accent-color:var(--navy); }
.admin-student-manager-form-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.admin-student-manager-form-actions .admin-primary-action { margin:0; }
.admin-student-manager-form-actions .admin-secondary-action { margin:0; }
@media (max-width:760px) {
    #manageAllStudentsModal { padding:10px; }
    .admin-login-instructions-dialog.admin-student-manage-dialog { width:100%; max-height:calc(100vh - 20px); max-height:calc(100dvh - 20px); }
    .admin-login-instructions-body.admin-student-manage-body { padding:16px; }
    .admin-student-manager-toolbar { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); align-items:end; }
    .admin-student-manager-search { grid-column:1 / -1; }
    .admin-student-manager-toolbar > button { width:100%; }
    .admin-student-manager-fields { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .admin-student-manager-field--span-2,
    .admin-student-manager-field--span-3 { grid-column:span 1; }
    .admin-student-manager-field--span-4,
    .admin-student-manager-field--full { grid-column:1 / -1; }
    .admin-student-manager-subjects { grid-template-columns:1fr; }
    .admin-student-manager-table .admin-table-scroll { max-height:60vh; }
}
@media (max-width:480px) {
    .admin-student-manager-toolbar { grid-template-columns:1fr; }
    .admin-student-manager-search { grid-column:1; }
    .admin-student-manager-fields { grid-template-columns:1fr; }
    .admin-student-manager-fields > * { grid-column:1 / -1; }
}

#studentFeedbackForm select,
#studentFeedbackForm textarea {
    box-sizing: border-box;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 12px;
    padding-right: 12px;
}

#studentFeedbackForm #studentFeedbackSubject {
    min-height: 66px;
    height: 66px;
}

.student-ranking-table th {
    text-align: left;
}

.student-ranking-table td {
    white-space: nowrap;
}

.student-sidebar.sidebar-expanded-locked .student-sidebar-profile {
    justify-content: flex-start;
}

.student-sidebar.sidebar-expanded-locked .student-sidebar-toggle {
    margin-left: auto;
}

.student-profile-info,
.student-sidebar-label,
.student-sidebar-chevron {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity .15s ease;
}

.student-sidebar.sidebar-expanded-locked .student-profile-info,
.student-sidebar.sidebar-expanded-locked .student-sidebar-label,
.student-sidebar.sidebar-expanded-locked .student-sidebar-chevron {
    opacity: 1;
    width: auto;
    pointer-events: auto;
}

.student-sidebar-nav {
    padding-left: 10px;
    padding-right: 10px;
}

.student-sidebar-item {
    justify-content: center;
}

.student-sidebar.sidebar-expanded-locked .student-sidebar-item {
    justify-content: flex-start;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-item,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-item {
    gap: 0;
    padding-left: 0;
    padding-right: 0;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-chevron,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-chevron {
    display: none;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-profile,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-profile {
    flex-direction: column;
    height: 162px;
    min-height: 162px;
    justify-content: flex-start;
    gap: 24px;
    padding: 24px 8px;
}

.student-profile-fields-row {
    display: grid;
    gap: 20px;
}

.student-profile-name-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-profile-contact-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.student-profile-address-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-profile-location-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-profile-security-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-password-section {
    padding: 24px;
}

.student-password-title {
    margin-top: 4px;
    color: var(--navy);
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
}

.student-password-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.student-password-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.student-password-modal.hidden {
    display: none;
}

.student-password-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 35, .72);
    backdrop-filter: blur(4px);
}

.student-password-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 94vw);
    overflow: hidden;
    border-radius: 14px;
    background: #fffdf5;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.student-password-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--navy);
    color: white;
}

.student-password-dialog-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.student-password-dialog-body {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.student-password-dialog-body label {
    display: block;
    color: var(--navy);
    font-weight: 600;
}

.student-password-dialog-body input {
    width: 100%;
    height: 40px;
    min-height: 40px;
    margin-top: 8px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid rgba(28, 43, 74, .2);
    border-radius: 9px;
    font: 400 .82rem/1.2 'Inter', sans-serif;
}

.student-password-dialog-description {
    color: #4b5563;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-profile-info,
.student-sidebar.sidebar-collapsed-locked .student-profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    opacity: 1;
    overflow: visible;
    pointer-events: none;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-profile-name,
.student-sidebar.sidebar-collapsed-locked .student-profile-name {
    display: none;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-profile-id,
.student-sidebar.sidebar-collapsed-locked .student-profile-id {
    display: none;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-profile-access-label,
.student-sidebar.sidebar-collapsed-locked .student-profile-access-label {
    display: block;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    text-align: center;
    font-size: clamp(.42rem, 1.15vw, .58rem);
    letter-spacing: -.01em;
    line-height: 1.1;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-profile,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-profile {
    height: 190px;
    min-height: 190px;
    gap: 12px;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-toggle,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-toggle {
    order: -1;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-avatar,
.student-sidebar.sidebar-collapsed-locked .student-avatar {
    width: 52px;
    height: 68px;
    flex: 0 0 68px;
    font-size: 1rem;
}

.student-sidebar-submenu {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-left: 36px;
    transition: opacity .15s ease, max-height .2s ease;
}

.student-sidebar.sidebar-expanded-locked .student-sidebar-submenu {
    opacity: 1;
    max-height: 300px;
}

.student-sidebar-group-toggle[aria-expanded="true"] + .student-sidebar-submenu {
    opacity: 1;
    max-height: 300px;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-submenu,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-submenu {
    margin-left: 0;
    border-left: 0;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-subitem,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-subitem {
    justify-content: center;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
}

.student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-subitem > span:last-child,
.student-sidebar.sidebar-collapsed-locked .student-sidebar-subitem > span:last-child {
    display: none;
}

.student-sidebar-group-toggle {
    justify-content: center;
}

.student-sidebar.sidebar-expanded-locked .student-sidebar-group-toggle {
    justify-content: flex-start;
}

.student-sidebar-footer {
    padding-left: 10px;
    padding-right: 10px;
}

.student-sidebar-logout {
    justify-content: center;
}

.student-sidebar.sidebar-expanded-locked .student-sidebar-logout {
    justify-content: flex-start;
}

body.student-sidebar-expanded .student-main-content {
    margin-left: 260px;
}

body.student-sidebar-expanded .student-portal-header {
    left: 260px;
}

@media (max-width: 768px) {

    .student-form-grid {
        grid-template-columns: 1fr;
    }

    .student-profile-fields-row {
        grid-template-columns: 1fr;
    }

    .student-password-fields {
        grid-template-columns: 1fr;
    }

    .student-profile-photo-row {
        grid-template-columns: 1fr;
    }

    .student-profile-photo-field {
        flex-direction: column;
        text-align: center;
    }

    .student-profile-photo-details {
        width: 100%;
        margin-left: 0;
    }

    .student-profile-photo-preview-wrap {
        margin-left: 0;
    }

    .student-profile-details-actions {
        align-items: center;
        align-self: auto;
        width: 100%;
        flex: 0 0 auto;
        margin-left: 0;
    }

    .student-pdf-dialog {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        height: calc(100dvh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 10px;
    }

    .student-profile-photo-details > .student-profile-access-badge {
        align-self: center;
    }

    .student-profile-details-actions > .student-profile-package-badge {
        align-self: center;
    }

    .student-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        height: 100dvh;
        will-change: transform;
        transform: translateZ(0);
        width: 64px;
    }

    .student-sidebar.sidebar-expanded-locked {
        width: 240px;
    }

    .student-sidebar.sidebar-collapsed-locked {
        width: 64px;
    }

    .student-main-content {
        margin-left: 64px;
        padding-top: 72px;
    }

    body.student-sidebar-expanded .student-main-content {
        margin-left: 240px;
    }

    body.student-sidebar-expanded .student-portal-header {
        left: 240px;
    }

    .student-portal-header {
        left: 64px;
        min-height: 72px;
        padding: 16px 18px;
    }

    body.student-sidebar-expanded .student-header-logout {
        display: none;
    }

    .student-header-eyebrow {
        font-size: .58rem;
    }

    .student-header-title {
        font-size: 1.25rem;
    }

    .student-header-user {
        display: none;
    }

    .student-content-wrapper {
        min-height: calc(100vh - 72px);
        padding: 28px 18px;
    }

    .student-sidebar-profile {
        min-height: 90px;
        padding: 16px 8px;
    }

    .student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-profile,
    .student-sidebar.sidebar-collapsed-locked .student-sidebar-profile {
        height: 130px;
        min-height: 130px;
        gap: 16px;
        padding: 16px 8px;
    }

    .student-sidebar:not(.sidebar-expanded-locked) .student-avatar,
    .student-sidebar.sidebar-collapsed-locked .student-avatar {
        margin-top: 15px;
    }

    .student-avatar {
        width: 38px;
        height: 54px;
        flex-basis: 38px;
        font-size: .85rem;
    }

    .student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-profile,
    .student-sidebar.sidebar-collapsed-locked .student-sidebar-profile {
        height: 150px;
        min-height: 150px;
        gap: 5px;
        padding: 10px 4px;
    }

    .student-sidebar:not(.sidebar-expanded-locked) .student-avatar,
    .student-sidebar.sidebar-collapsed-locked .student-avatar {
        width: 38px;
        height: 54px;
        flex: 0 0 54px;
        font-size: .85rem;
    }

    .student-sidebar:not(.sidebar-expanded-locked) .student-sidebar-toggle,
    .student-sidebar.sidebar-collapsed-locked .student-sidebar-toggle {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .student-sidebar-nav {
        padding-left: 7px;
        padding-right: 7px;
    }

    .student-sidebar-footer {
        padding-left: 7px;
        padding-right: 7px;
    }

}





/* Workbook exam form refinement */
.student-exam-dialog {
    width: min(1180px, 94vw);
    height: min(880px, 92vh);
    max-height: 92vh;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 16px;
    background: #f5f7fb;
}

.student-exam-dialog .student-password-dialog-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-height: 86px;
    padding: 20px 26px 18px;
    background: linear-gradient(120deg, #13294b, #1d4269);
    border-bottom: 4px solid #c79a2b;
}

.student-exam-dialog .student-password-dialog-header h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    letter-spacing: .01em;
}

.student-exam-modal-description {
    max-width: 760px;
    margin-top: 7px;
    color: rgba(255, 255, 255, .82);
    font-size: .88rem;
}

.student-exam-dialog .student-pdf-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
}

.student-exam-layout {
    height: calc(100% - 90px);
    grid-template-columns: minmax(0, 1fr) 220px;
    background: #eef2f7;
}

.student-exam-layout .student-password-dialog-body {
    padding: clamp(18px, 3vw, 38px);
    background: #f7f9fc;
}

.student-exam-question-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    margin: 0;
}

.student-exam-question-index {
    gap: 12px;
    min-height: 146px;
    padding: 14px 12px;
    border: 1px solid #cbd5e1;
    border-top: 4px solid #c79a2b;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(16, 42, 67, .07);
    font-size: .74rem;
}

.student-exam-question-index strong { font-size: .8rem; }
.student-exam-question-index small { line-height: 1.4; }
.exam-question-status { color: #64748b; }

.student-exam-question {
    min-height: 260px;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid #b7dce2;
    border-radius: 12px;
    background: linear-gradient(145deg, #d8f0f2, #c6e5e9);
    box-shadow: 0 10px 24px rgba(16, 42, 67, .08);
}

.student-exam-question legend {
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    font-weight: 700;
    line-height: 1.55;
}

.student-exam-select-one {
    margin: 24px 0 12px;
    color: #334e68;
    font-size: .83rem;
    font-weight: 700;
}

.student-exam-question label {
    align-items: center;
    min-height: 40px;
    margin-top: 8px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #102a43;
    font-size: .92rem;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.student-exam-question label:hover,
.student-exam-question label:has(input:checked) {
    border-color: #7ebdc5;
    background: rgba(255, 255, 255, .7);
}

.student-exam-question label input { accent-color: #163b64; }

.student-exam-question-actions { margin-top: 30px; }
.student-exam-question-actions button { min-height: 42px; border-radius: 7px; }

.student-exam-navigation {
    padding: 28px 18px;
    border-left: 1px solid #d7dee8;
    background: #fff;
}

.student-exam-navigation h3 {
    margin: 0 0 18px;
    font-size: 1rem;
}

.student-exam-nav-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.student-exam-nav-grid button { min-height: 36px; border-radius: 6px; font-weight: 700; }
.student-exam-nav-grid button.answered { border-color: #5e9da6; background: #d8f0f2; }
.student-exam-nav-grid button:hover { background: #163b64; }
.student-exam-finish { display: inline-block; margin-top: 22px; padding: 0; font-weight: 700; }

@media (max-width: 760px) {
    .student-exam-dialog { width: calc(100vw - 12px); height: calc(100vh - 12px); max-height: calc(100vh - 12px); border-radius: 12px; }
    .student-exam-dialog .student-password-dialog-header { min-height: 78px; padding: 16px 17px 14px; }
    .student-exam-layout { height: calc(100% - 82px); grid-template-columns: 1fr; }
    .student-exam-navigation { order: -1; padding: 12px 14px; border: 0; border-bottom: 1px solid #d7dee8; }
    .student-exam-navigation h3 { margin: 0 0 9px; }
    .student-exam-nav-grid { display: grid; grid-template-columns: repeat(6, minmax(28px, 1fr)); }
    .student-exam-finish { margin-top: 12px; }
    .student-exam-question-row { grid-template-columns: 1fr; gap: 10px; }
    .student-exam-question-index { min-height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; }
    .student-exam-question { min-height: 0; padding: 20px 16px; }
    .student-exam-question label { font-size: .86rem; }
}

/* Final exam modal overrides: compact header and responsive collapsible quiz navigation. */
#studentExamModal .student-exam-dialog .student-password-dialog-header {
    box-sizing: border-box;
    min-height: 69px;
    padding-top: 10px;
    padding-bottom: 10px;
}
#studentExamModal .student-exam-layout { height: calc(100% - 69px); }
#studentExamModal .student-exam-question { display: block; }
#studentExamModal .student-exam-question legend {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
#studentExamModal .student-exam-question-text {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    color: #102a43;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: normal;
}
#studentExamModal .student-exam-question { overflow: visible; }
#studentExamResultModal { z-index: 1200; }
#studentExamResultModal .student-exam-result-dialog { width: min(480px, calc(100vw - 2rem)); background: #f7f9fc; }
#studentExamResultModal .student-exam-result-body { padding: 26px; color: #102a43; }
#studentExamResultModal .student-exam-result-body p { margin: 0 0 12px; font-weight: 600; }
#studentExamResultModal .student-exam-result-score { margin-top: 20px !important; padding: 16px; border-radius: 10px; background: #d8f0f2; color: #102a43; font-size: 1.15rem; }
#studentExamResultModal .student-primary-button { margin-top: 12px; }
#studentExamResultModal .student-exam-result-decision { margin: 18px 0 0; padding: 14px 16px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #52606d; line-height: 1.5; }
#studentExamResultModal .student-exam-result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
#studentExamResultModal .student-exam-result-actions .student-primary-button { margin-top: 0; }
#studentExamHistoryModal { z-index: 1200; }
#studentExamHistoryModal .student-exam-result-dialog { width: min(480px, calc(100vw - 2rem)); background: #f7f9fc; }
#studentExamHistoryModal .student-exam-result-body { padding: 26px; color: #102a43; }
#studentExamHistoryModal .student-exam-result-body > p { margin: 0 0 14px; font-weight: 700; }
#studentExamHistoryModal .student-exam-history-list { margin: 20px 0 6px; padding: 16px; border-radius: 10px; background: #d8f0f2; color: #102a43; }
#studentExamHistoryModal .student-exam-history-list p { margin: 0 0 10px; font-weight: 700; }
#studentExamHistoryModal .student-exam-history-list p:last-child { margin-bottom: 0; }
#studentExamHistoryModal .student-primary-button { margin-top: 12px; }
#studentExamModal #studentExamForm { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-y: auto; }
@media print {
    #studentExamModal { display: none !important; }
}
#studentExamModal #studentExamMessage.is-fading { animation: student-exam-message-fade 5s ease forwards; }
.student-new-account-notice-dialog { width: min(560px, calc(100vw - 2rem)); height: 85vh !important; max-height: 85vh !important; display: flex; flex-direction: column; overflow: hidden !important; background: #f7f9fc; }
.student-new-account-notice-dialog .student-password-dialog-header { flex: 0 0 auto; }
.student-new-account-notice-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 28px; color: #102a43; }
.student-new-account-notice-intro { margin: 0 0 20px; color: #52606d; font-size: 1rem; }
.student-new-account-notice-body section { margin-top: 16px; padding: 16px; border-left: 4px solid #c79a2b; border-radius: 8px; background: #fff; }
.student-new-account-notice-body h3 { margin: 0 0 6px; color: #102a43; font-size: 1rem; }
.student-new-account-notice-body section p { margin: 0; color: #52606d; font-size: .9rem; line-height: 1.6; }
.student-new-account-notice-body section ol { margin: 10px 0 0 20px; padding: 0; color: #52606d; font-size: .9rem; line-height: 1.65; }
.student-new-account-notice-body section li { padding-left: 4px; }
.student-new-account-notice-body section strong { color: #102a43; }
.student-notice-workflow-picker { display: grid; gap: 7px; color: #102a43; font-size: .9rem; font-weight: 700; }
.student-notice-workflow-picker select { width: 100%; min-height: 44px; padding: 9px 38px 9px 12px; border: 1px solid #b9c4d4; border-radius: 8px; background: #fff; color: #102a43; font: inherit; font-weight: 500; }
.student-notice-workflow-picker select:focus { border-color: #b98b1f; outline: 2px solid rgba(199, 154, 43, .24); outline-offset: 1px; }
.student-notice-workflow-help { margin: 8px 0 0; color: #65758b; font-size: .82rem; line-height: 1.45; }
.student-notice-workflow-content > section { margin-top: 16px; }
.student-notice-disclaimers { display: grid; gap: 0; margin-top: 16px; }
.student-notice-disclaimers::before { content: "Important Account Notices"; display: block; margin: 4px 0 0; color: #102a43; font-size: .92rem; font-weight: 800; }
.student-notice-disclaimers > section { margin-top: 12px; }
.student-new-account-notice-footer { flex: 0 0 auto; padding: 0 28px 28px; background: #f7f9fc; }
.student-new-account-notice-footer .student-primary-button { margin: 0; }
.student-lecture-reminder-dialog { width: min(560px, calc(100vw - 2rem)); max-height: min(640px, calc(100dvh - 2rem)); display: flex; flex-direction: column; overflow: hidden; background: #f7f9fc; }
.student-lecture-reminder-dialog .student-password-dialog-header { flex: 0 0 auto; border-bottom: 4px solid #c79a2b; }
.student-lecture-reminder-body { flex: 1 1 auto; padding: 26px 28px; overflow-y: auto; color: #102a43; }
.student-lecture-reminder-intro { margin: 0; color: #52606d; line-height: 1.55; }
.student-lecture-reminder-body ul { display: grid; gap: 10px; margin: 18px 0; padding-left: 1.3rem; color: #52606d; line-height: 1.55; }
.student-lecture-reminder-body li::marker { color: #c79a2b; }
.student-lecture-reminder-note { margin: 0; padding: 13px 14px; border-radius: 8px; background: #edf3f8; color: #34495e; font-size: .88rem; font-weight: 700; line-height: 1.5; }
.student-lecture-reminder-footer { flex: 0 0 auto; padding: 0 28px 28px; background: #f7f9fc; }
.student-lecture-reminder-footer .student-primary-button { margin: 0; }
.student-new-resource-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 2.35rem; margin-left: 8px; padding: 3px 7px; border-radius: 999px; color: #fff; background: #c79a2b; font: 700 .68rem/1.1 'Inter', sans-serif; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
@media (max-width: 760px) {
    .student-new-account-notice-body { padding: 20px 18px 22px; }
    .student-new-account-notice-footer { padding: 0 18px 22px; }
    .student-lecture-reminder-body { padding: 20px 18px; }
    .student-lecture-reminder-footer { padding: 0 18px 22px; }
}
@keyframes student-exam-message-fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
#studentExamModal .student-exam-score-history-heading,
[data-exams-panel] .student-exam-history-link { white-space: nowrap; }
[data-exams-panel] .student-exam-history-link { display: inline-block; font-size: 1rem; text-decoration: none; }
[data-exams-panel] .student-exam-latest-score + .student-exam-history-link { margin-left: 6px; }
@keyframes admin-status-fade { 0%, 72% { opacity: 1; } 100% { opacity: 0; } }
.admin-lecture-status.is-saved,
.admin-lecture-status.is-error { animation: admin-status-fade 5s ease forwards; }
[data-exams-panel] .student-notes-table th:nth-child(1),
[data-exams-panel] .student-notes-table td:nth-child(1) { width: 50%; }
[data-exams-panel] .student-notes-table th:nth-child(2),
[data-exams-panel] .student-notes-table td:nth-child(2) { width: 25%; }
[data-exams-panel] .student-notes-table th:nth-child(3),
[data-exams-panel] .student-notes-table td:nth-child(3) { width: 25%; }
#studentExamModal .student-exam-select-one { margin: 0; padding: 0; }
#studentExamModal .student-exam-select-one {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
#studentExamModal .student-exam-inline-message {
    display: inline-block;
    min-height: 1.2em;
    font-size: .82rem;
    font-weight: 700;
}
#studentExamModal .student-exam-inline-message.is-fading {
    animation: student-exam-message-fade 5s ease forwards;
}
#studentExamModal .student-exam-flag { padding: 0; border: 0; background: transparent; color: #0b4f91; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
#studentExamModal .student-exam-flag span { font-size: .82em; text-decoration: none; }
#studentExamModal .student-exam-flag.is-flagged,
#studentExamModal .student-exam-nav-grid button.flagged {
    border-color: #b42318 !important;
    background: #f8d7da !important;
    color: #b42318 !important;
}
#studentExamModal .exam-attempt-summary,
#studentExamModal .exam-progress-summary {
    display: block;
    color: #334e68;
    font-size: .7rem;
    line-height: 1.35;
}
#studentExamModal .exam-progress-summary { font-weight: 700; color: #102a43; }
#studentExamModal .exam-progress-meta { display: flex; width: 100%; min-width: 0; flex-direction: column; align-items: flex-start; gap: 2px; }
#studentExamModal .student-exam-nav-grid button.current { outline: 3px solid rgba(199, 154, 43, .45); outline-offset: 1px; }
#studentExamModal .student-exam-navigation { overflow-x: hidden; overflow-y: auto; }
#studentExamModal .student-exam-navigation-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 8px 0 12px; border: 0; background: transparent; color: #102a43; font-weight: 700; cursor: pointer; }
#studentExamModal .student-exam-navigation-panel.is-collapsed { display: none; }
#studentExamModal .student-exam-nav-pager { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: center; gap: 7px; }
#studentExamModal .student-exam-nav-arrow { width: 30px; height: 34px; padding: 0; border: 1px solid #cbd5e1; border-radius: 6px; background: #f7f9fc; color: #102a43; font-size: 1.1rem; cursor: pointer; }
#studentExamModal .student-exam-nav-arrow:disabled { opacity: .35; cursor: not-allowed; }
#studentExamModal .student-exam-navigation-heading b { margin-left: 4px; font-weight: 600; }

@media (max-width: 760px) {
    #studentExamModal .student-exam-dialog .student-password-dialog-header { min-height: 62px; padding-top: 10px; padding-bottom: 8px; }
    #studentExamModal .student-exam-layout { height: calc(100% - 62px); grid-template-rows: auto minmax(0, 1fr); }
    #studentExamModal .student-exam-navigation { max-height: none !important; padding: 8px 12px 10px !important; }
    #studentExamModal .student-exam-navigation { overflow: hidden; }
    #studentExamModal .student-exam-nav-grid { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; grid-template-rows: repeat(2, 34px) !important; gap: 6px !important; overflow: visible; }
    #studentExamModal .student-exam-nav-grid button { min-height: 34px; }
    #studentExamModal .student-exam-navigation-heading { margin-bottom: 6px; }
    #studentExamModal .student-exam-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; }
    #studentExamModal #studentExamForm { min-height: 0; height: 100%; }
    #studentExamModal .student-exam-layout .student-password-dialog-body { min-height: 0; overflow-y: auto; }
    #studentExamModal .student-exam-layout:has(.student-exam-navigation-panel.is-collapsed) .student-password-dialog-body { min-height: 100%; }
    #studentExamModal .exam-progress-meta { flex: 1 0 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
    #studentExamModal .exam-attempt-summary { text-align: left; }
    #studentExamModal .exam-progress-summary { text-align: right; }
}

/* Keep the montage image directly inside the full-width section without side gutters or cropping. */
body.index-page #montageSection {
    width: 100%;
    padding-inline: 0;
}
body.index-page #montageSection > .montage-video {
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
    margin: 0;
    object-fit: contain;
}

/* Terms and Conditions dialogs use a centered desktop/mobile viewport. */
#termsModal {
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}
#termsModal > div {
    width: 40vw !important;
    max-width: 40vw !important;
    height: 60vh !important;
    max-height: 60vh !important;
}
@media (max-width: 760px) {
    #termsModal > div {
        width: 90vw !important;
        max-width: 90vw !important;
        height: 70vh !important;
        max-height: 70vh !important;
    }
}

/* Stack resource table headers and data cells on mobile only. */
@media (max-width: 760px) {
    [data-notes-panel] .student-notes-table-wrapper,
    [data-exams-panel] .student-notes-table-wrapper,
    [data-lectures-panel] .student-notes-table-wrapper {
        overflow-x: visible;
    }

    [data-notes-panel] .student-notes-table,
    [data-exams-panel] .student-notes-table,
    [data-lectures-panel] .student-notes-table {
        display: block;
        width: 100%;
        min-width: 0 !important;
        table-layout: auto;
    }

    [data-notes-panel] .student-notes-table thead,
    [data-exams-panel] .student-notes-table thead,
    [data-lectures-panel] .student-notes-table thead {
        display: none;
    }

    [data-notes-panel] .student-notes-table tbody,
    [data-exams-panel] .student-notes-table tbody,
    [data-lectures-panel] .student-notes-table tbody,
    [data-notes-panel] .student-notes-table tbody tr,
    [data-exams-panel] .student-notes-table tbody tr,
    [data-lectures-panel] .student-notes-table tbody tr {
        display: block;
        width: 100%;
    }

    [data-notes-panel] .student-notes-table tbody tr,
    [data-exams-panel] .student-notes-table tbody tr,
    [data-lectures-panel] .student-notes-table tbody tr {
        margin-bottom: 12px;
        padding: 8px 12px;
        border: 1px solid rgba(28, 43, 74, .12);
        border-radius: 8px;
        background: rgba(255, 255, 255, .72);
    }

    [data-notes-panel] .student-notes-table tbody tr:last-child,
    [data-exams-panel] .student-notes-table tbody tr:last-child,
    [data-lectures-panel] .student-notes-table tbody tr:last-child {
        margin-bottom: 0;
    }

    [data-notes-panel] .student-notes-table td,
    [data-exams-panel] .student-notes-table td,
    [data-lectures-panel] .student-notes-table td {
        display: flex;
        width: 100% !important;
        min-width: 0;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(28, 43, 74, .1);
        text-align: left;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    [data-notes-panel] .student-notes-table td:last-child,
    [data-exams-panel] .student-notes-table td:last-child,
    [data-lectures-panel] .student-notes-table td:last-child {
        border-bottom: 0;
    }

    [data-notes-panel] .student-notes-table td::before,
    [data-exams-panel] .student-notes-table td::before,
    [data-lectures-panel] .student-notes-table td::before {
        flex: 0 0 30%;
        content: attr(data-label);
        color: var(--student-table-header-color);
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        text-align: left;
    }

    [data-notes-panel] .student-notes-table td > *,
    [data-exams-panel] .student-notes-table td > *,
    [data-lectures-panel] .student-notes-table td > * {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        text-align: left;
    }

    [data-notes-panel] .student-notes-table td[colspan],
    [data-exams-panel] .student-notes-table td[colspan],
    [data-lectures-panel] .student-notes-table td[colspan] {
        display: block;
    }

    [data-notes-panel] .student-notes-table td[colspan]::before,
    [data-exams-panel] .student-notes-table td[colspan]::before,
    [data-lectures-panel] .student-notes-table td[colspan]::before {
        display: none;
    }
}

/* Final mobile exam sizing: keep the header compact and let the question
   form own the remaining viewport height so its action buttons remain
   reachable when the question card and exam tools are taller than the screen. */
@media (max-width: 760px) {
    #studentExamModal .student-exam-dialog {
        display: flex !important;
        flex-direction: column;
        width: 100vw;
        max-width: 100vw;
        height: 100dvh !important;
        max-height: 100dvh !important;
        min-height: 0;
    }

    #studentExamModal .student-exam-dialog .student-password-dialog-header {
        flex: 0 0 auto;
        min-height: 62px;
        height: auto;
        padding-top: 10px;
        padding-bottom: 8px;
    }

    #studentExamModal .student-exam-dialog .student-password-dialog-header > div:first-child {
        min-width: 0;
        flex: 1 1 auto;
    }

    /* The inherited mobile h2 rule is 2.5rem with !important. Use exactly
       half that size at this breakpoint without affecting desktop headers. */
    #studentExamModal .student-exam-dialog .student-password-dialog-header h2 {
        max-width: 100%;
        font-size: 1.25rem !important;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    #studentExamModal .student-exam-modal-description {
        margin-top: 4px;
        font-size: .78rem !important;
        line-height: 1.35;
    }

    #studentExamModal .student-exam-layout {
        flex: 1 1 auto;
        height: auto !important;
        min-height: 0;
        grid-template-rows: auto minmax(0, 1fr);
    }

    #studentExamModal .student-exam-layout .student-password-dialog-body {
        min-height: 0;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    /* The inherited <=480px rule is 2rem, so keep the same 50% reduction. */
    #studentExamModal .student-exam-dialog .student-password-dialog-header h2 {
        font-size: 1rem !important;
    }
}

/* Gun mode reserves a footer instead of covering the scrollable exam actions.
   The normal (gun mode off) desktop layout is deliberately unchanged. */
#studentExamModal.student-exam-gun-mode .student-exam-dialog {
    display: flex !important;
    flex-direction: column;
    height: 100dvh !important;
    max-height: 100dvh !important;
}

#studentExamModal.student-exam-gun-mode .student-password-dialog-header {
    flex: 0 0 auto;
}

#studentExamModal.student-exam-gun-mode .student-password-dialog-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

#studentExamModal.student-exam-gun-mode .student-exam-layout {
    flex: 1 1 0;
    height: auto !important;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
}

#studentExamModal.student-exam-gun-mode .student-exam-layout .student-password-dialog-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

#studentExamModal .student-exam-prop-dock {
    box-sizing: border-box;
    position: relative;
    z-index: 8;
    flex: 0 0 auto;
    display: grid;
    justify-items: center;
    width: 100%;
    min-width: 0;
    padding: 3px 10px max(4px, env(safe-area-inset-bottom));
    border-top: 1px solid #ccd7e3;
    background: linear-gradient(180deg, #f9fbfd, #e8eff6);
    color: #1b3152;
    cursor: default;
}

#studentExamModal .student-exam-prop-dock[hidden] {
    display: none !important;
}

#studentExamModal .student-exam-prop-stage {
    width: min(320px, 100%);
    height: clamp(88px, 15dvh, 132px);
    min-width: 0;
}

#studentExamModal model-viewer {
    display: block;
    width: 100%;
    height: 100%;
    --progress-bar-color: #c79a2b;
    --progress-bar-height: 2px;
    cursor: grab;
}

#studentExamModal model-viewer:active { cursor: grabbing; }
#studentExamModal model-viewer:focus-visible { outline: 2px solid #c79a2b; }
#studentExamModal .student-exam-prop-muzzle { visibility: hidden; pointer-events: none; }

#studentExamModal .student-exam-prop-caption {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px 10px;
    max-width: 100%;
    font-size: .7rem;
    line-height: 1.25;
}

#studentExamModal .student-exam-prop-caption span {
    min-width: 0;
    overflow-wrap: anywhere;
}

#studentExamModal .student-exam-prop-caption button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 4px 8px;
    border: 1px solid #a7b7ca;
    border-radius: 6px;
    background: #fff;
    color: #1b3152;
    font: inherit;
    cursor: pointer;
}

#studentExamModal .student-exam-prop-caption button:disabled { opacity: .55; cursor: wait; }

#studentExamModal .student-exam-effects {
    position: absolute;
    z-index: 9;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

#studentExamModal .student-exam-muzzle-flash {
    position: absolute;
    width: 26px;
    height: 26px;
    margin: -13px;
    border-radius: 50%;
    background: radial-gradient(circle, #fffbdc 0 18%, #ffcc54 25%, #f58c23 43%, transparent 70%);
    animation: student-exam-muzzle-flash .16s ease-out forwards;
}

@keyframes student-exam-muzzle-flash {
    from { transform: scale(.45); opacity: 1; }
    to { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 760px) {
    #studentExamModal.student-exam-gun-mode .student-exam-layout {
        grid-template-rows: auto minmax(0, 1fr);
    }
    #studentExamModal .student-exam-prop-stage {
        width: min(270px, 100%);
        height: clamp(68px, 12dvh, 96px);
    }
}

@media (max-height: 520px) {
    #studentExamModal .student-exam-prop-stage { height: 58px; width: min(210px, 100%); }
    #studentExamModal.student-exam-gun-mode .student-password-dialog-header {
        padding: 8px 16px !important;
        gap: 8px;
        min-height: 0;
        max-height: 35dvh;
        overflow-y: auto;
    }
    #studentExamModal.student-exam-gun-mode .student-password-dialog-header h2 {
        margin: 0;
        font-size: 1.1rem !important;
        line-height: 1.2;
    }
    #studentExamModal.student-exam-gun-mode .student-exam-modal-description {
        margin: 3px 0 0;
        font-size: .72rem !important;
        line-height: 1.25;
    }
}

/* Exam watermarks keep the exam presentation attributable. */
#studentExamModal .student-exam-dialog {
    isolation: isolate;
}

#studentExamModal .student-exam-security-overlay {
    position: absolute;
    z-index: 7;
    inset: 92px 0 0;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

#studentExamModal .student-exam-security-watermark {
    position: absolute;
    display: block;
    width: 175%;
    color: rgba(16, 42, 67, .14);
    font-size: clamp(.82rem, 1.35vw, 1.15rem);
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    transform-origin: center;
}

#studentExamModal .student-exam-security-watermark-one {
    top: 18%;
    left: -38%;
    transform: rotate(-19deg);
    animation: student-exam-watermark-drift-one 24s ease-in-out infinite alternate;
}

#studentExamModal .student-exam-security-watermark-two {
    top: 48%;
    left: -8%;
    color: rgba(199, 154, 43, .16);
    transform: rotate(17deg);
    animation: student-exam-watermark-drift-two 29s ease-in-out infinite alternate;
}

#studentExamModal .student-exam-security-watermark-three {
    top: 78%;
    left: -42%;
    transform: rotate(-16deg);
    animation: student-exam-watermark-drift-one 31s ease-in-out infinite alternate-reverse;
}

@keyframes student-exam-watermark-drift-one {
    from { margin-left: -1.5%; opacity: .74; }
    to { margin-left: 4%; opacity: 1; }
}

@keyframes student-exam-watermark-drift-two {
    from { margin-left: 3%; opacity: .68; }
    to { margin-left: -3%; opacity: 1; }
}

@media (max-width: 760px) {
    #studentExamModal .student-exam-security-overlay { inset: 62px 0 0; }
    #studentExamModal .student-exam-security-watermark {
        width: 230%;
        font-size: .68rem;
        letter-spacing: .1em;
    }
}

@media (prefers-reduced-motion: reduce) {
    #studentExamModal .student-exam-security-watermark { animation: none; }
}

/* Timer duration prompt shown above the active web-based exam. */
#studentExamTimerSetupModal { z-index: 10003; }
.student-exam-timer-setup-dialog { width: min(540px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); overflow-y: auto; }
.student-exam-timer-setup-dialog .student-password-dialog-header { border-bottom: 4px solid var(--gold); }
.student-exam-timer-setup-body { display: grid; gap: 16px; padding: 22px; }
.student-exam-timer-setup-intro { margin: 0; color: #52606d; line-height: 1.5; }
.student-exam-timer-preset { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px; border: 1px solid rgba(184, 145, 43, .38); border-radius: 10px; background: #f7f3e8; }
.student-exam-timer-preset h3 { margin: 0 0 5px; color: var(--navy); font-size: .92rem; }
.student-exam-timer-preset p { margin: 0; color: #52606d; font-size: .82rem; line-height: 1.45; }
.student-exam-timer-setup-body .student-primary-button { flex: 0 0 auto; margin: 0; cursor: pointer; }
.student-exam-timer-custom { min-width: 0; margin: 0; padding: 15px; border: 1px solid rgba(28, 43, 74, .2); border-radius: 10px; }
.student-exam-timer-custom legend { padding: 0 5px; color: var(--navy); font-size: .88rem; font-weight: 700; }
.student-exam-timer-custom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.student-exam-timer-custom-grid label { display: grid; gap: 6px; color: var(--navy); font-size: .8rem; font-weight: 600; }
.student-exam-timer-custom-grid input { width: 100%; height: 42px; min-height: 42px; box-sizing: border-box; padding: 8px 10px; border: 1px solid rgba(28, 43, 74, .22); border-radius: 8px; background: #fff; color: var(--navy); font: 500 .9rem/1.2 'Inter', sans-serif; }
.student-exam-timer-setup-message { min-height: 1.2em; margin: 0; color: #52606d; font-size: .82rem; }
.student-exam-timer-setup-message.is-error { color: var(--red); }
.student-exam-timer-setup-actions { display: flex; justify-content: flex-end; }
.student-exam-timer-cancel { padding: 9px 14px; border: 1px solid rgba(28, 43, 74, .25); border-radius: 8px; background: #fff; color: var(--navy); font: 600 .82rem/1.2 'Inter', sans-serif; cursor: pointer; }
.student-exam-timer-cancel:hover { background: #f1f4f8; }
@media (max-width: 520px) {
    .student-exam-timer-setup-body { padding: 16px; }
    .student-exam-timer-preset { align-items: stretch; flex-direction: column; }
    .student-exam-timer-preset .student-primary-button { align-self: flex-start; }
}
