body.promo-state-pending nav a[href*="achievements.html"],
nav a[href*="achievements.html"].promo-nav-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
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 { padding: 4px 12px 18px; 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 { align-self:flex-end; margin:-48px 5px 16px; border:0; background:transparent; color:var(--navy); font-size:1.35rem; cursor:pointer; }
.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: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 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184,145,43,.45);
    border-radius: 5px;
    background: rgba(255,255,255,.55);
    color: var(--gold);
    font-size: .9rem;
    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-color: var(--gold);
    background: var(--gold);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(184,145,43,.2);
}
.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 th { text-align:left; vertical-align:middle; }
.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-form-grid label { display:grid; gap:6px; color:#52606d; font-size:.76rem; font-weight:700; }
.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:760px; border-collapse:collapse; }
.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-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-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-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; 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 { width:auto; min-width:112px; height:100%; min-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) auto; gap:8px; }
    .admin-file-toolbar #uploadFileBtn { min-width:0; min-height:54px; padding-left:12px; padding-right:12px; }
}
.admin-upload-progress { margin-top:14px; max-width:520px; }
.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-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:28px; }
@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:-4px auto 14px}.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: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{grid-template-columns:1fr}}
.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-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-toggle { margin: -10px auto 14px; }
.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; }
.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: -48px 5px 16px; }
    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: -10px auto 14px; }
    body.admin-portal-page .admin-sidebar.is-collapsed .admin-nav-submenu { display: none !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; }
}
.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: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.png");
    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.png") 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-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;
}
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: var(--shadow);
}

#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-wrapper {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
}
.montage-video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.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-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;
}

.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;
    }
}

/* 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(7, 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; }

.student-lecture-dialog {
    width: min(1000px, 94vw) !important;
    background: #111d2e !important;
}
.student-lecture-dialog video {
    display: block;
    width: 100%;
    max-height: calc(100vh - 100px);
    background: #000;
    aspect-ratio: 16 / 9;
}

/* 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; }
    .student-lecture-dialog { width: calc(100vw - 20px) !important; }
}

#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;
}

#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-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 {
    margin-bottom: 10px;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}

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

.student-notes-table th {
    color: #6b7280;
    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-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-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-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-pdf-back svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.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-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-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-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-pdf-page-header { position: sticky; top: 0; }
    .student-pdf-back { min-width: 36px; min-height: 36px; padding: 7px; }
    .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-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-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 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; }
.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; } }

.student-dashboard-exam-table-wrap { overflow-x: auto; }
.student-dashboard-exam-table { min-width: 1180px; width: 100%; border-collapse: collapse; color: var(--navy); font-size: .76rem; }
.student-dashboard-exam-table th { padding: 9px 8px; border: 1px solid rgba(28,43,74,.14); background: var(--navy); color: #fff; text-align: center; }
.student-dashboard-exam-table thead tr:nth-child(2) th { background: #d9c17b; color: var(--navy); font-size: .68rem; }
.student-dashboard-exam-table td { padding: 9px 8px; border: 1px solid rgba(28,43,74,.12); vertical-align: top; }
.student-dashboard-exam-table td:nth-child(3n+2), .student-dashboard-exam-table td:nth-child(3n+3) { text-align: center; white-space: nowrap; }
#studentIncompleteAssignmentsModal .student-incomplete-assignments-dialog { width:85vw; max-width:1200px; height:85vh; max-height:85vh; display:flex; flex-direction:column; transform:scale(.85); transform-origin:center; }
.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 { min-height:0; 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; height:85vh; max-height:85vh; transform:scale(.85); }
    .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; }

#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-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;
    }

    .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 18px;
    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; }
#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; }
#studentExamModal #studentExamMessage.is-fading { animation: student-exam-message-fade 5s ease forwards; }
@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-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; }
}
