/* Shared interface finish, applied after the existing page styles. */
:root{--blue:#306968;--deep:#194f50;--ink:#194f50;--muted:#306968;--line:#d6e6db;--ice:#f7efea;--paper:#f7efea}
body.student-mode,body.admin-mode{background:var(--paper)}
.student-workspace,.admin-workspace{margin-left:0}
.student-topbar,.admin-topbar{position:sticky;top:0;z-index:20;justify-content:flex-start;min-height:78px;padding:14px 32px;background:#fff;color:var(--ink);gap:16px;border-bottom:1px solid var(--line)}
.student-mobile-brand{display:block;font-size:15px;font-weight:650}.student-breadcrumb{display:none}.admin-topbar strong{font-size:15px;font-weight:650}
.student-topbar-actions{margin-left:auto}.student-topbar-actions button{color:var(--blue)}
.mobile-menu-toggle{border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--deep);width:46px;min-height:46px}.mobile-menu-toggle:hover{background:var(--ice)}
#student-main,#admin-main{max-width:1200px;padding:38px 32px 48px}
.student-heading h1,.admin-heading h1{font-family:inherit;font-size:34px;font-weight:650;letter-spacing:-1.1px;line-height:1.2;margin-bottom:10px}.student-heading p,.admin-heading p{font-size:14px;line-height:1.6}.student-heading>span{font-size:42px;color:#abc9bf}
.admin-card,.admin-summary article,.student-homework-card,.student-video-card,.student-list,.progress-section,.marks-chart-panel,.marks-summary article,.progress-activity article{border-color:var(--line);border-radius:18px;box-shadow:0 3px 14px #194f5004}
.admin-card,.student-homework-card,.progress-section,.marks-chart-panel{padding:26px}.admin-card h2,.progress-section h2,.chart-heading h2{font-size:19px;font-weight:650;letter-spacing:-.35px}.admin-row h2,.admin-row h3,.homework-card-header h2,.student-list-row h2{font-size:16px;font-weight:600}.admin-row p,.admin-review-row p,.homework-card-header p,.student-list-row p,.student-video-body p{font-size:12px;line-height:1.6}
.admin-summary span,.marks-summary>article>span,.progress-activity article div>span{font-size:13px}.marks-summary small,.progress-activity .activity-detail{font-size:12px}.marks-summary strong{font-weight:650;letter-spacing:-1px}.chart-heading p{font-size:12px;line-height:1.6}
.student-button,.primary{min-height:46px;border-radius:11px;font-size:13px;font-weight:600;gap:12px}.secondary-button{background:#fff;color:var(--deep)}.student-text-button{font-size:12px}.submission-status{font-size:11px;padding:6px 11px}.assignment-description,.homework-card-footer,.check-status{font-size:13px}
.admin-form label,.admin-card>label{font-size:13px;font-weight:550;line-height:1.7;margin-top:20px}.admin-form input,.admin-form textarea,.admin-review-row input{font-family:inherit;min-height:48px;border:1px solid var(--line);border-radius:11px;padding:12px 14px;background:#fff;font-size:14px;line-height:1.5;color:var(--ink)}.admin-form textarea{min-height:106px}.admin-form input[type=file],.admin-review-row input[type=file]{font-size:12px;padding:8px;max-width:100%}input::file-selector-button{font-family:inherit;font-size:12px;font-weight:600;line-height:1.5;background:var(--ice);color:var(--deep);border:0;border-radius:7px;padding:8px 11px;margin-right:10px;cursor:pointer}.admin-hint,.admin-empty{font-size:13px}.admin-score-row>.custom-select{width:170px;flex:none}.admin-review-row label{font-size:12px}.admin-score-row>input{max-width:170px}
.custom-select{position:relative;width:100%;min-width:0;margin-top:6px}.select-source{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;opacity:0;pointer-events:none;overflow:hidden}
.select-trigger{display:flex;justify-content:space-between;align-items:center;gap:14px;text-align:left;width:100%;min-height:48px;padding:12px 14px;border:1px solid #d6e6db;border-radius:11px;background:#fff;color:var(--ink);font-family:inherit;font-size:14px;font-weight:500;line-height:1.5;box-shadow:0 1px 2px #194f5003;transition:border-color .15s,box-shadow .15s}.select-trigger>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-trigger:hover{border-color:#abc9bf}.select-trigger[aria-expanded=true]{border-color:#627b77;box-shadow:0 0 0 3px #30696810}.select-chevron{font:22px/1 Arial,sans-serif;color:#627b77;flex-shrink:0;transform:translateY(-2px)}.select-trigger[aria-expanded=true] .select-chevron{transform:rotate(180deg) translateY(-2px)}.select-trigger.is-placeholder{color:#627b77}.select-trigger[aria-invalid=true]{border-color:#b96767}
.select-options{position:fixed;inset:auto;margin:0;padding:7px;border:1px solid #d6e6db;border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 12px 40px #194f5029;overflow:auto;overscroll-behavior:contain;font:14px/1.5 Inter,"Avenir Next",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.select-options [role=option]{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;padding:11px 12px;border-radius:8px;cursor:pointer;overflow-wrap:anywhere}.select-options [role=option]>span:last-child{color:var(--blue);font-weight:650}.select-options [aria-selected=true]{background:var(--ice);color:var(--deep);font-weight:600}.select-options [role=option]:hover,.select-options .is-active{background:#f7efea}.select-options p{font-size:13px;color:var(--muted);padding:6px 12px}
.mobile-menu{width:300px;max-width:88vw;padding:24px 16px 20px;background:#fff;color:var(--ink);box-shadow:16px 0 60px #194f501a;border-right:1px solid var(--line);overflow:hidden}.mobile-menu[open]{display:flex;flex-direction:column}.mobile-menu::backdrop{background:#194f5066;backdrop-filter:blur(4px)}.mobile-menu header{padding:0 8px 23px;margin-bottom:12px;border-bottom:1px solid var(--line)}.mobile-menu header strong{font-size:17px;font-weight:650;color:var(--deep)}.mobile-menu header small{display:block;font-size:10px;letter-spacing:1.2px;color:var(--muted);text-transform:uppercase;margin-top:5px}.mobile-menu header button{color:var(--muted);background:#f7efea;border-radius:10px;font-size:26px;flex-shrink:0}.mobile-menu nav{display:flex;flex-direction:column;gap:5px;flex:1;min-height:0;overflow:auto;padding-bottom:14px}.mobile-menu nav button{color:var(--blue);min-height:48px;padding:12px;border-radius:11px;font-size:14px;font-weight:500}.mobile-menu nav button:hover{background:#f7efea}.mobile-menu nav button[aria-current]{background:#f7efea;color:var(--ink);font-weight:650}.mobile-menu nav button:last-child{margin-top:0;border:0;border-radius:11px;padding:12px}.mobile-menu nav svg{width:22px;height:22px}.mobile-menu nav button>span{width:24px;font-size:22px}.mobile-menu footer{display:block;flex-shrink:0;padding:16px 0 max(0px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}.mobile-menu footer button{display:block;width:100%;text-align:left;padding:12px 15px;min-height:46px;border:1px solid var(--line);border-radius:11px;background:#fff;font-family:inherit;font-size:14px;font-weight:500;line-height:1.5;color:var(--deep)}.mobile-menu footer button:hover{background:var(--ice)}
.admin-student summary,.question-stat summary,.answer-results summary{list-style:none;position:relative;padding:12px 30px 12px 0;font-size:14px;font-weight:550;line-height:1.7}.admin-student summary::-webkit-details-marker,.question-stat summary::-webkit-details-marker,.answer-results summary::-webkit-details-marker{display:none}.admin-student summary:after,.question-stat summary:after,.answer-results summary:after{content:'⌄';position:absolute;right:5px;top:12px;color:var(--muted);font-size:20px}.admin-student[open]>summary:after,.question-stat[open]>summary:after,.answer-results[open]>summary:after{transform:rotate(180deg)}.admin-student summary small{font-size:12px;margin-left:0}.question-stat,.question-student{font-size:13px}.question-answers th{background:#f7efea;font-size:12px;font-weight:600}.question-answers td{font-size:13px}.question-progress{height:8px}.admin-card>details{border-top:1px solid var(--line)}
button:focus-visible,.select-trigger:focus-visible{outline:3px solid #abc9bf;outline-offset:3px}input:focus-visible,textarea:focus-visible{outline:3px solid #abc9bf66;outline-offset:1px;border-color:#abc9bf}
.login-card{box-shadow:0 15px 60px #194f500a;border-color:var(--line)}.login-card h1{font-family:inherit;font-weight:650;letter-spacing:-.8px}.login-card label{font-size:12px}.field{border-radius:11px}.test-buttons button{font-size:12px;border-radius:10px}.testing{margin-top:22px}.student-empty{border-radius:18px}.student-empty h2{font-family:inherit;font-weight:600;font-size:22px}
@media(max-width:760px){.student-topbar,.admin-topbar{padding:10px 16px;min-height:68px;gap:12px}.student-mobile-brand,.admin-topbar strong{font-size:14px}#student-main,#admin-main{padding:27px 18px 36px}.student-heading,.admin-heading{margin-bottom:24px}.student-heading h1,.admin-heading h1{font-size:29px;letter-spacing:-.8px}.student-heading p,.admin-heading p{font-size:13px}.student-heading>span{font-size:35px}.admin-card,.student-homework-card,.progress-section,.marks-chart-panel{padding:20px;border-radius:15px}.admin-summary article,.marks-summary article{padding:20px 16px;border-radius:15px}.admin-summary span,.marks-summary>article>span{font-size:12px}.admin-summary strong,.marks-summary strong{font-size:30px}.admin-form input,.admin-form textarea,.admin-review-row input{font-size:16px}.admin-score-row>.custom-select{width:145px;max-width:48%}.select-trigger{font-size:15px;min-height:50px}.select-options{padding:9px;border-radius:18px}.select-options [role=option]{min-height:50px;padding:13px 14px;font-size:15px}.admin-review-row{gap:16px}.admin-quick button{font-size:12px}.progress-activity article{padding:20px}.chart-key{font-size:10px}.chart-heading h2{font-size:17px}.student-button{padding-inline:15px}.homework-card-header{flex-wrap:wrap}.homework-card-header>.submission-status{margin-left:61px}}
@media(prefers-reduced-motion:reduce){.select-trigger{transition:none}}

.admin-card details>summary{list-style:none;position:relative;padding:12px 30px 12px 0;cursor:pointer;font-size:14px;font-weight:550;line-height:1.7}.admin-card details>summary::-webkit-details-marker{display:none}.admin-card details>summary:after{content:"⌄";position:absolute;right:5px;top:12px;color:var(--muted);font-size:20px}.admin-card details[open]>summary:after{transform:rotate(180deg)}

/* Restore the blue panel and keep homework review focused on student work. */
.mobile-menu{background:var(--ink);color:#fff;border-right:1px solid var(--ink)}.mobile-menu header{border-bottom-color:#ffffff24}.mobile-menu header strong{color:#fff}.mobile-menu header small{color:#d6e6db}.mobile-menu header button{background:#ffffff10;color:#f7efea}.mobile-menu nav button{color:#d6e6db}.mobile-menu nav button:hover{background:#ffffff12}.mobile-menu nav button[aria-current]{background:#f7efea;color:var(--ink)}.mobile-menu footer{border-top-color:#ffffff24}.mobile-menu footer button{background:#ffffff08;border-color:#ffffff30;color:#f7efea}.mobile-menu footer button:hover{background:#ffffff16}
.student-topbar,.admin-topbar{background:var(--ink);color:#fff;border-bottom:0}.student-topbar .mobile-menu-toggle,.admin-topbar .mobile-menu-toggle{background:#ffffff08;color:white;border-color:#ffffff26}.student-topbar-actions button,.admin-topbar button{color:#f7efea}.admin-topbar .mobile-menu-toggle:hover,.student-topbar .mobile-menu-toggle:hover{background:#ffffff14}.admin-summary article:first-child{background:var(--blue);border-color:var(--blue)}.admin-summary article:first-child strong{color:#fff}.admin-summary article:first-child span{color:#f7efea}
.review-toolbar{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;margin-bottom:18px}.review-toolbar label{margin:0 0 8px;font-size:13px}.review-toolbar input{display:block;width:100%;min-height:48px;border:1px solid #d6e6db;background:white;border-radius:11px;padding:12px 14px;color:var(--ink);font:inherit}.review-toolbar .custom-select{margin:0}.review-overview{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 18px;font-size:13px;color:var(--muted)}.review-overview p{margin:0}.review-overview strong{color:var(--deep)}.review-filters{display:flex;flex-wrap:wrap;gap:5px;background:#f7efea;padding:4px;border-radius:11px}.review-filters button{min-height:38px;padding:8px 12px;border:0;border-radius:8px;font-family:inherit;font-weight:500;font-size:12px;line-height:1.5;background:transparent;color:var(--blue)}.review-filters button[aria-pressed=true]{background:white;color:var(--deep);box-shadow:0 2px 5px #194f500c}.review-count{font-size:12px;color:var(--muted);margin:0 0 12px}.review-work-card{padding:0;overflow:hidden}.review-work-card>header{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding:20px 24px}.review-work-card>header h2{font-size:17px;margin:0 0 4px}.review-work-card>header p{font-size:12px;color:var(--muted);margin:0}.review-work-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;align-items:start}.submission-preview{min-width:0;padding:20px;background:#f7efea;max-height:720px;overflow:auto;overscroll-behavior:contain;color:var(--muted);font-size:13px}.submission-page{margin-bottom:16px}.submission-page:last-child{margin-bottom:0}.submission-page img,.submission-page canvas{display:block;width:100%;height:auto;background:white;border-radius:5px;box-shadow:0 2px 10px #194f500a}.submission-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;font-size:12px}.submission-pages button{min-width:42px;min-height:42px;background:white;border:1px solid var(--line);border-radius:9px;color:var(--blue);font-size:18px}.review-return{padding:24px 20px}.review-return h3{font-size:14px;line-height:1.6;margin:0 0 10px}.review-return p{font-size:13px;color:var(--muted);line-height:1.8;margin:0 0 18px}.review-return .student-button{width:100%;font-size:13px}.review-return small{display:block;margin-top:12px;font-size:11px;line-height:1.7;color:var(--muted)}.review-return .review-ai-count{background:#f7efea;border-radius:9px;padding:10px 12px;font-size:12px;color:var(--blue)}.review-missing>header{border:0}.review-missing{margin-bottom:10px;box-shadow:none}.review-ai-tools{margin-top:26px}.review-ai-tools>summary{list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:12px;padding:15px 18px;color:var(--muted);background:#f7efea;font-size:13px}.review-ai-tools>summary:after{content:'⌄';float:right;font-size:18px}.review-ai-tools[open]>summary{margin-bottom:16px}.review-ai-tools[open]>summary:after{transform:rotate(180deg)}.review-ai-tools>summary::-webkit-details-marker{display:none}
@media(max-width:760px){.review-toolbar{grid-template-columns:1fr;gap:18px;padding:20px}.review-toolbar input{font-size:16px}.review-overview{align-items:flex-start;flex-direction:column;gap:14px}.review-work-card>header{padding:18px;align-items:flex-start}.review-work-card>header h2{font-size:16px}.review-work-card>header .submission-status{font-size:10px;padding:5px 8px}.review-work-layout{display:flex;flex-direction:column}.submission-preview{width:100%;padding:12px;max-height:540px}.review-return{width:100%;padding:18px}.review-return h3,.review-return>p:not(.review-ai-count){display:none}.review-return .review-ai-count{margin-bottom:14px}.review-return .student-button{min-height:48px}.review-filters{width:100%;justify-content:stretch}.review-filters button{flex:1;min-height:40px}.review-count{margin-top:4px}}
.review-toolbar>div{min-width:0}.review-toolbar{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.review-work-card header>div{min-width:0}.review-work-card h2,.review-work-card header p{overflow-wrap:anywhere}@media(max-width:760px){.review-toolbar{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.review-return{order:-1;border-bottom:1px solid var(--line);padding:16px 18px}.review-return .review-ai-count{padding:8px 10px}}
#homework-dialog:has(#hw-camera-panel:not([hidden])) .hw-add-actions{display:none}.hw-camera-actions{align-items:center}.hw-camera-actions #hw-camera-count{font-size:12px;color:var(--muted)}
/* Individual reports and permanent classroom history. */
.report-controls{display:grid;gap:18px}.report-controls label,.history-controls label{display:grid;gap:8px}.report-period,.history-controls{display:grid;grid-template-columns:1fr 1fr;gap:18px}.report-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:25px}.student-report header{border-bottom:2px solid var(--blue);padding-bottom:20px}.student-report header>span{font-size:11px;letter-spacing:.12em;color:var(--blue)}.student-report header h2{font-size:28px;margin:12px 0}.report-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.report-summary>div{padding:20px;background:#f7efea;border-radius:14px;display:grid;gap:8px}.report-summary strong{font-size:30px;color:var(--ink)}.report-summary small{color:var(--blue)}.report-section{margin-top:28px}.report-table-wrap{overflow-x:auto}.student-report table{border-collapse:collapse;width:100%;font-size:14px}.student-report td,.student-report th{padding:14px 10px;text-align:left;border-bottom:1px solid #d6e6db;overflow-wrap:anywhere}.student-report th{background:#f7efea}.student-report footer{margin-top:24px;color:var(--blue);font-size:12px}.history-panel>summary{cursor:pointer;font-weight:700;font-size:20px;color:var(--ink);padding:4px 0 18px}.history-controls{margin-top:12px}.history-panel .admin-row{gap:16px}.bunny-status{background:#f7efea;border:1px solid #d6e6db;border-radius:12px;padding:16px;color:var(--ink)}.history-panel .admin-row h3{margin:0}.history-panel .admin-row p{margin:6px 0}.history-panel .student-button{white-space:nowrap}.report-controls button{justify-self:start}@media(max-width:600px){.report-summary{grid-template-columns:1fr}.report-summary>div{grid-template-columns:1fr auto}.report-summary small{grid-column:1/-1}.history-controls{grid-template-columns:1fr}.history-panel .admin-row{flex-direction:column;align-items:stretch}.report-period{gap:12px}.student-report header h2{font-size:24px}.student-report th,.student-report td{padding:10px 6px;font-size:12px}}

/* Make the calculated grade as legible as the score beside it. */
.admin-score-row>[data-grade-pupil]{font-size:24px;font-weight:750;line-height:1.2;min-width:3ch;text-align:center;color:var(--ink);flex-shrink:0}
@media(max-width:760px){.admin-score-row>[data-grade-pupil]{font-size:22px}}

/* Exam marking and attachment picker share the classroom rose palette. */
.exam-attachment-fields{border:1px solid var(--line);border-radius:14px;padding:16px;margin:20px 0}.exam-attachment-fields summary{cursor:pointer;font-weight:650}.exam-attachment-fields p{font-size:12px;color:var(--muted)}
#admin-roster .admin-score-row{display:grid!important;grid-template-columns:minmax(140px,1fr) 120px 56px auto;gap:14px;align-items:center;padding:18px 0;margin:0;border-bottom:1px solid var(--line)}
#admin-roster .admin-score-row[hidden]{display:none!important}#admin-roster .admin-score-row>input{width:100%;max-width:none}#admin-roster .admin-score-row>span{font-weight:650;overflow-wrap:anywhere}.exam-mistakes-button{font-size:12px!important;white-space:nowrap}
.exam-file-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;font-size:12px}.exam-file-actions{display:flex;gap:10px;flex-wrap:wrap}.exam-file-actions button{flex:1;min-height:46px}
.exam-mistakes-dialog{width:min(720px,calc(100% - 24px));max-width:720px;max-height:90svh;overflow:auto;padding:24px;background:#fffdf9;color:var(--ink);border:1px solid var(--line);border-radius:20px}.exam-mistakes-dialog::backdrop{background:#24192390}.exam-mistakes-dialog header{display:flex;justify-content:space-between;gap:14px}.exam-mistakes-dialog h2{font:650 20px/1.3 inherit;margin:0}.exam-mistakes-dialog p{font-size:13px}.exam-mistakes-dialog [data-close]{border:0;background:transparent;color:inherit;font-size:28px;min-width:44px;min-height:44px}
.exam-file-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px;margin:18px 0}.exam-file-thumbs article{position:relative;border:1px solid var(--line);border-radius:10px;overflow:hidden;padding:8px}.exam-file-thumbs img{width:100%;height:140px;object-fit:contain;background:#f7efea}.exam-file-thumbs small{display:block;font-size:10px;overflow-wrap:anywhere}.exam-file-thumbs [data-remove]{position:absolute;right:2px;top:2px;background:#fff;border:1px solid var(--line);border-radius:50%;font-size:23px;width:36px;height:36px}
.exam-view-file{padding:16px 0;border-bottom:1px solid var(--line)}.exam-view-file img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;margin:12px auto}.exam-view-file h3{font-size:15px}.exam-view-file>a{display:inline-block;margin:12px 0}.exam-view-file iframe{width:100%;height:65svh;border:1px solid var(--line)}
@media(max-width:600px){#admin-roster .admin-score-row{grid-template-columns:minmax(0,1fr) 100px 44px;gap:10px}#admin-roster .exam-mistakes-button{grid-column:1/-1;justify-self:stretch}#admin-roster .admin-score-row>input{font-size:16px}.exam-mistakes-dialog{padding:18px}.exam-file-actions button{flex-basis:100%}.student-list-row:has([data-exam-documents]){flex-wrap:wrap}.student-list-row [data-exam-documents]{flex-basis:100%;white-space:normal;line-height:1.5}.exam-file-row{flex-wrap:wrap}}

/* One class; no extra selection step. */
.default-class{display:grid;gap:5px;margin:18px 0 22px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fffaf5}.default-class>span{font-size:11px;color:var(--muted)}.default-class>strong{font-size:14px;font-weight:650}
#admin-roster .attendance-score-row{grid-template-columns:minmax(130px,1fr) minmax(0,3fr);gap:16px}.attendance-choices{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.status-box{min-height:46px;padding:10px 14px;border:1px solid #d5d2ce;border-radius:10px;background:#fff;color:#6c6665;font:inherit;font-size:12px;font-weight:600;line-height:1.3;cursor:pointer;transition:background-color .12s,border-color .12s}.status-box:hover{border-color:#8c4960}.status-box:focus-visible{outline:3px solid #c78da1;outline-offset:3px}.status-box[aria-pressed=true]{box-shadow:inset 0 0 0 1px currentColor}
.status-present[aria-pressed=true],#admin-app .review-decisions input[value=completed]:checked+span{background:#d8efdf;color:#216239;border-color:#71ae80}
.status-absent[aria-pressed=true],#admin-app .review-decisions input[value=missing]:checked+span{background:#f9dcda;color:#9b332d;border-color:#d47e76}
.status-late[aria-pressed=true],#admin-app .review-decisions input[value=incomplete]:checked+span{background:#fff0c5;color:#855b08;border-color:#d7b355}
.status-unmarked[aria-pressed=true],#admin-app .review-decisions input[value=""]:checked+span{background:#e8e7e5;color:#595451;border-color:#9d9792}
.status-excused[aria-pressed=true],#admin-app .review-decisions input[value=excused]:checked+span{background:#e4e9fa;color:#414f8b;border-color:#8e9ed0}
#admin-app .review-decisions{display:flex;gap:8px;flex-wrap:wrap}#admin-app .review-decisions label{margin:0}#admin-app .review-decisions span{display:flex;align-items:center;justify-content:center;min-height:46px;border-radius:10px;background:#fff;border:1px solid #d5d2ce;padding:10px 14px;font-size:12px;font-weight:600;color:#6c6665}#admin-app .review-decisions input:checked+span{box-shadow:inset 0 0 0 1px currentColor}
@media(max-width:700px){#admin-roster .attendance-score-row{grid-template-columns:1fr;gap:12px}.attendance-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-content:stretch;gap:7px}.status-box{padding:10px 5px;font-size:11px;min-width:0}#admin-app .review-decisions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#admin-app .review-decisions label,#admin-app .review-decisions span{width:100%}#admin-app .review-decisions span{font-size:11px;padding:10px 6px}}

.record-editor .attendance-score-row{border:0;padding:12px 0}.record-editor .attendance-choices{width:100%;justify-content:flex-start}
/* Additive PDF/photo pickers and simple Cairo homework deadline. */
.file-picker{min-width:0;margin:14px 0;padding:16px;border:1px solid var(--line);border-radius:12px}.file-picker>label{display:block;font-weight:600;margin-bottom:10px}.file-picker>input[data-picker-value]{margin-bottom:12px;max-width:100%}.file-picker .exam-file-row>span{overflow-wrap:anywhere;min-width:0;flex:1}.file-picker [data-picker-list]:empty{display:none}.file-picker [data-picker-list]{margin-top:12px}.homework-deadline-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.deadline-time{display:flex;align-items:center;gap:8px}.deadline-time input{width:68px;min-width:0;text-align:center}.deadline-time select{width:85px;min-width:0}.homework-attachments{margin-top:14px}.homework-attachments .exam-file-row{flex-wrap:wrap}
@media(max-width:600px){.homework-deadline-fields{grid-template-columns:1fr}.file-picker{padding:12px}.file-picker .exam-file-actions button{flex-basis:100%}.file-picker .exam-file-row{align-items:flex-start}.deadline-time input{font-size:16px;width:72px}.deadline-time select{font-size:16px}}
.homework-deadline{display:inline-flex;flex-wrap:wrap;gap:5px 16px}.homework-deadline>span{white-space:nowrap}
#admin-content .deadline-time{display:grid;grid-template-columns:70px 8px 70px minmax(80px,1fr);gap:8px}#admin-content .deadline-time input{width:100%;min-width:0;padding:12px 8px;text-align:center;font-size:16px}#admin-content .deadline-time>.custom-select{width:100%;min-width:0}#admin-content .deadline-time .select-trigger{padding-inline:10px}
.file-picker .file-drop-hint{font-size:12px;color:var(--blue);line-height:1.6;margin:0 0 12px}.file-picker.is-dragging{border:2px dashed var(--ink);background:#f4e2e6}
.hw-assignment-info{min-width:0}.hw-ai-result,.check-status{max-width:100%;white-space:normal;overflow-wrap:anywhere}.check-status small{white-space:normal}
.ai-statistics-toolbar{max-width:100%}.ai-statistics-toolbar>p{font-size:13px;color:var(--muted);line-height:1.7}.ai-statistics-toolbar .custom-select{max-width:580px}.ai-statistics-toolbar>select{width:100%;max-width:580px}
@media(max-width:600px){#admin-app .hw-tabs[aria-label="Homework views"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible}#admin-app .hw-tabs[aria-label="Homework views"]>button{min-width:0;width:100%;padding-inline:10px}}
.checked-homework-filters{display:grid;grid-template-columns:160px minmax(0,1fr) minmax(0,1fr);gap:16px}.checked-homework-filters label{min-width:0}.checked-homework-filters input,.checked-homework-filters select{width:100%}.checked-homework-student>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;min-height:48px}.checked-homework-student>summary strong{font-size:16px}.checked-homework-student>summary small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.checked-homework-student>summary>span:first-child{min-width:0;overflow-wrap:anywhere}.checked-homework-student>form{margin-top:18px}.checked-homework-mark{display:grid;grid-template-columns:1fr 1fr;gap:16px}.checked-homework-toolbar>p,.checked-homework-students>p{font-size:13px;color:var(--muted);line-height:1.7}
@media(max-width:700px){.checked-homework-filters{grid-template-columns:1fr;gap:0}.checked-homework-filters input{font-size:16px}.checked-homework-student{padding:18px}.checked-homework-student .file-picker{padding:12px}.checked-homework-mark{gap:12px}}
