:root{
    --ui-text-helper:11px;
    --ui-text-label:12px;
    --ui-text-control:13px;
    --ui-control-height:42px;
    --ui-button-height:42px;
    --ui-button-compact-height:36px;
}

.app-shell{line-height:1.5}
.app-shell-student .main-content{margin:0;padding-right:clamp(18px,2.5vw,36px);padding-left:clamp(18px,2.5vw,36px)}
.app-shell-student .topbar{height:46px;margin-bottom:12px;justify-content:space-between;gap:16px}
.app-shell-student .student-topbar-logout{margin:0}
.app-shell-student .student-topbar-logout .button{min-height:34px;padding:0 12px;border-color:#e5e6ee;background:#fff;color:#525c73;font-size:11px}
.app-shell-student .student-topbar-logout .button:hover{border-color:#d2cef8;background:#f8f7ff;color:var(--violet-dark)}
.app-shell .main-content:not(.main-auth){display:flex;flex-direction:column}
.app-shell .main-content:not(.main-auth)>.footer{margin-top:auto}
.app-shell .main-content:not(.main-auth)>.page-wrap{width:100%}
.app-shell .page-heading{gap:20px;margin-bottom:24px}
.app-shell .page-heading h1{margin:5px 0 5px;font-size:clamp(24px,2.1vw,28px);font-weight:700;line-height:1.22;letter-spacing:-.035em;color:var(--ink);text-wrap:balance}
.app-shell .page-heading p{max-width:680px;margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.app-shell .section-heading p{font-size:13px;line-height:1.6}
.app-shell .eyebrow{font-size:10px;font-weight:700;letter-spacing:.13em;line-height:1.4}
.app-shell .button{min-height:var(--ui-button-height);font-size:13px}
.app-shell .button-small{min-height:var(--ui-button-compact-height);font-size:11px}
.app-shell .stat-grid,.app-shell .exam-card-grid{gap:16px}
.app-shell .stat-card{padding:19px 20px}
.app-shell .stat-top{font-size:12px}
.app-shell .stat-card>strong{font-size:28px}
.app-shell .stat-card>small{font-size:11px}
.app-shell .text-link{font-size:12px}
.app-shell .subject-tag,.app-shell .badge{font-size:10px}
.app-shell .exam-card{padding:18px}
.app-shell .exam-card h3{font-size:15px}
.app-shell .exam-card-meta,.app-shell .exam-card-bottom{font-size:11px}
.app-shell .empty-state p{font-size:12px}
.app-shell .student-banner p{font-size:13px;line-height:1.65}
.app-shell th{font-size:10px}
.app-shell td,.app-shell td strong{font-size:12px}
.app-shell .table-sub{font-size:10px}
.app-shell .table-head p{font-size:11px;line-height:1.55}
.app-shell .field-help{font-size:11px;line-height:1.5}
.app-shell .form-section-title small{font-size:11px}
.app-shell .form-stack>label,.app-shell .form-row label{font-size:var(--ui-text-label)}
.app-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select,textarea){min-height:var(--ui-control-height);font-size:var(--ui-text-control)}
.app-shell :is(.form-stack input,.form-stack select,.form-stack textarea,.form-row input,.form-row select){min-height:var(--ui-control-height);font-size:var(--ui-text-control)}
.app-shell .users-page .users-fields label,.app-shell .users-page .users-file-field label,.app-shell .users-page .users-edit-fields label,.app-shell .users-page .users-edit-status-label{font-size:var(--ui-text-label)}
.app-shell .users-page .users-fields small,.app-shell .users-page .users-file-field>small,.app-shell .users-page .users-form-footer>small,.app-shell .users-page .users-template-download small,.app-shell .users-page .users-edit-fields small{font-size:var(--ui-text-helper)}
.app-shell .users-page .users-fields input,.app-shell .users-page .users-fields select,.app-shell .users-page .users-file-field input[type=file],.app-shell .users-page .users-edit-fields input:not([type=hidden]),.app-shell .users-page .users-edit-fields select{min-height:var(--ui-control-height);font-size:var(--ui-text-control)}
.app-shell .users-page .users-table-card #users-table th{font-size:10px}
.app-shell .users-page .users-table-card #users-table td{font-size:11px}
.app-shell .users-page .users-table-card #users-table td:first-child strong{font-size:12px}
.app-shell .users-page .users-table-card #users-table button.text-link{font-size:11px}
.app-shell .participants-page .participant-create-fields label,.app-shell .participants-page .participant-edit-fields label,.app-shell .participants-page .participant-edit-status-label,.app-shell .participants-page .participant-search label{font-size:var(--ui-text-label)}
.app-shell .participants-page .participant-create-fields input,.app-shell .participants-page .participant-create-fields select,.app-shell .participants-page .participant-edit-fields input,.app-shell .participants-page .participant-edit-fields select,.app-shell .participants-page .participant-filter select,.app-shell .participants-page .participant-search input{min-height:var(--ui-control-height);font-size:var(--ui-text-control)}
.app-shell .participants-page .participant-create-footer .field-help,.app-shell .participants-page .participant-edit-password small,.app-shell .participants-page .participant-edit-status>small{font-size:var(--ui-text-helper)}
.app-shell .participants-page .participant-list-head h2{font-size:15px}
.app-shell .participants-page #participants-table td:nth-child(2) strong{font-size:12px}
.app-shell .participants-page .participant-stats .stat-top{font-size:12px}
.app-shell .participants-page .participant-list-page #participant-selection-count,.app-shell .participants-page .participant-list-page .participant-bulk-delete-button{font-size:11px}
.app-shell .participant-group-grid .group-create-controls input{min-height:var(--ui-control-height);font-size:var(--ui-text-control)}
.app-shell .participant-group-grid .group-create-year,.app-shell .participant-group-grid .group-create-year a,.app-shell .participant-group-grid .group-create-year strong{font-size:var(--ui-text-helper)}
.app-shell .academic-class-fieldset label,.app-shell .academic-class-selection label{font-size:var(--ui-text-helper)}
.app-shell .teacher-assignment-option strong,.app-shell .legacy-question-row strong{font-size:var(--ui-text-label)}
.app-shell .teacher-assignment-option small,.app-shell .legacy-question-row small{font-size:var(--ui-text-helper)}
.app-shell .exam-class-filter label,.app-shell .exam-token-form>label{font-size:var(--ui-text-label)}
.app-shell .exam-class-filter select{min-height:var(--ui-control-height);font-size:var(--ui-text-control)}
.app-shell .exam-token-create-form>.field-help,.app-shell .exam-token-duration span{font-size:var(--ui-text-helper)}
.app-shell .question-import-guide,.app-shell .word-import-guide,.app-shell .word-import-help,.app-shell .word-import-guide-note,.app-shell .word-import-file-help{font-size:var(--ui-text-helper)}
.app-shell .word-import-upload>label,.app-shell .question-bank-directory>label,.app-shell .question-bank-question-search>label{font-size:var(--ui-text-label)}
.app-shell .question-import-file-picker,.app-shell .question-bank-directory>input,.app-shell .question-bank-question-search>input{min-height:var(--ui-control-height);font-size:var(--ui-text-control)}
.app-shell .teacher-progress-legend,.app-shell .teacher-progress-table th,.app-shell .teacher-progress-table td{font-size:var(--ui-text-helper)}
.app-shell .side-caption,.app-shell .eyebrow,.app-shell .side-nav .side-subnav a{font-size:11px}

@media(min-width:761px){
    .app-shell .topbar{height:48px;margin-bottom:11px}
    .app-shell-student .topbar{height:46px;margin-bottom:12px}
}

.app-shell .page-heading{margin-bottom:19px}
.app-shell .page-heading h1{margin-top:4px;margin-bottom:4px}
.app-shell .stat-grid{margin-bottom:23px}
.app-shell .stat-card{padding-top:15px;padding-bottom:14px}
.app-shell .stat-card>strong{margin-top:9px}
.app-shell .section-heading{margin-top:20px;margin-bottom:11px}
.app-shell .exam-card{padding-top:15px;padding-bottom:12px}
.app-shell .exam-card h3{margin-top:11px}
.app-shell .exam-card-meta{margin-bottom:10px}
.app-shell .student-banner{min-height:148px;padding-top:21px;padding-bottom:21px;margin-bottom:20px}
.app-shell .student-exam-details{display:flex;align-items:baseline;gap:10px;padding:8px 0;border-top:1px solid #f0f1f5;color:#626b81;font-size:11px;line-height:1.45}
.app-shell .student-exam-detail-label{flex:0 0 52px;color:var(--muted);font-size:10px}
.app-shell .student-exam-action-disabled{color:var(--muted);font-size:11px;font-weight:650}
.app-shell .student-exam-closed{background:#fff0f1;color:#b34a55}
.app-shell .exam-start-form{margin:0}
.app-shell .student-exam-start{padding:0;border:0;background:transparent;font:inherit;font-weight:700;cursor:pointer}
.app-shell .form-card{padding-top:18px;padding-bottom:18px}
.app-shell .breadcrumb{margin-bottom:12px}
.app-shell .footer{padding-top:24px}

.student-dashboard {
    font-family: "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

.student-dashboard .eyebrow {
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.student-dashboard .page-heading h1 {
    font-family: inherit;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.student-dashboard .page-heading p,
.student-dashboard .section-heading p {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
}

.student-dashboard .student-banner h2 {
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.35;
}

.student-dashboard .student-banner p {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
}

.student-dashboard .section-heading h2 {
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.student-dashboard .exam-card,
.student-dashboard .exam-card h3,
.student-dashboard .exam-card-meta,
.student-dashboard .student-exam-details,
.student-dashboard .exam-card-bottom {
    font-family: inherit;
}

.student-dashboard .exam-card h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.45;
}

.student-dashboard .exam-card-meta,
.student-dashboard .student-exam-details,
.student-dashboard .exam-card-bottom {
    font-size: 12px;
    line-height: 1.55;
}

@media(max-width:760px){
    .app-shell-student .main-content{padding-right:16px;padding-left:16px}
    .app-shell-student .topbar{justify-content:space-between;gap:10px}
    .app-shell-student .student-topbar-logout .button{min-height:32px;padding:0 10px}
    .app-shell .topbar{height:44px;margin-bottom:10px}
    .app-shell-student .topbar{height:44px;margin-bottom:12px}
    .app-shell .page-heading{gap:14px;margin-bottom:17px}
    .app-shell .page-heading{flex-wrap:wrap}
    .app-shell .page-heading>div:first-child{flex:1 1 220px;min-width:0}
    .app-shell .page-heading h1{font-size:clamp(22px,5.6vw,24px)}
    .app-shell .page-heading>.button{flex:0 0 auto;min-height:var(--ui-button-compact-height);font-size:12px}
    .app-shell .stat-grid,.app-shell .exam-card-grid{gap:12px}
    .app-shell .stat-grid{margin-bottom:19px}
    .app-shell .stat-card{padding:15px}
    .app-shell .stat-top{font-size:11px}
    .app-shell .stat-card>strong{font-size:24px}
    .app-shell .student-banner{min-height:138px;padding-top:18px;padding-bottom:18px;margin-bottom:17px}
    .app-shell .student-exam-details{gap:8px}
    .app-shell .section-heading{margin-top:17px;margin-bottom:10px}
    .app-shell .form-card{padding-top:16px;padding-bottom:16px}
    .app-shell .footer{padding-top:19px}
}

@media(max-width:420px){
    .app-shell .page-heading{gap:10px}
    .app-shell .topbar{margin-bottom:13px}
    .app-shell .page-heading{margin-bottom:15px}
    .app-shell .stat-grid{margin-bottom:16px}
    .app-shell .page-heading>.button{width:auto;padding:0 12px;font-size:12px}
    .app-shell .stat-grid{gap:9px}
    .app-shell .stat-card{padding:13px}
    .app-shell .stat-top{font-size:11px}
    .app-shell .stat-card>strong{font-size:23px}
    .app-shell .section-heading{margin-top:15px;margin-bottom:9px}
    .app-shell .student-banner{min-height:130px;padding-top:16px;padding-bottom:16px}
}
