@charset "UTF-8";
:root{--navy:#123456;--ink:#21354a;--muted:#64768a;--blue:#286aa5;--line:#dce5ed;--bg:#f3f6f9;--orange:#bb713d;--teal:#317c78;--white:#fff;font-family:Arial,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button,a{touch-action:manipulation}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(27px,3.1vw,40px);letter-spacing:-.9px;line-height:1.25}h2{font-size:23px;letter-spacing:-.4px}h3{font-size:18px;line-height:1.4}p{line-height:1.7}svg{display:block}.masthead,.topnav,main,footer{max-width:1240px;margin:auto}.masthead{display:flex;align-items:center;justify-content:space-between;padding:25px 36px;gap:20px}.identity{display:flex;gap:17px;align-items:center}.identity img{object-fit:contain}.identity>span{min-width:0}.identity strong{display:block;font-size:19px;font-weight:700;letter-spacing:-.3px;line-height:1.35;margin-top:6px;color:var(--navy)}.school{display:block;font-size:12px;font-weight:600;letter-spacing:.65px;line-height:1.45;color:#526a80;white-space:normal}.version{font-size:12px;padding:8px 12px;border:1px solid var(--line);border-radius:30px;background:#fff;white-space:nowrap}.dot{display:inline-block;width:6px;height:6px;background:var(--teal);border-radius:50%;margin-right:5px}.topnav{display:flex;align-items:center;justify-content:flex-end;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:0 36px;gap:12px}.navlinks{display:flex;gap:32px;margin-left:auto}.navlinks a{padding:19px 0;font-size:13px;color:var(--muted);border-bottom:3px solid transparent}.navlinks a[aria-current=page]{border-bottom-color:var(--blue);color:var(--navy);font-weight:700}main{padding:30px 36px 46px;min-height:60vh}.hero{background:var(--navy);border-radius:10px;color:#fff;display:grid;grid-template-columns:1.4fr 1fr;overflow:hidden;position:relative}.hero-copy{padding:38px 42px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:700;margin-bottom:18px}.hero .eyebrow{color:#a9c9e0}.hero h1{max-width:590px;margin-bottom:14px}.hero p{color:#c3d4e3;font-size:14px;margin-bottom:25px;max-width:510px}.hero-art{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,transparent,#1d486b);padding:25px}.hero-art svg{width:100%;max-width:350px;height:auto}.hero-tag{display:flex;gap:14px;align-items:center;font-size:12px;color:#d4e1ea}.hero-tag span{background:#ffffff12;border:1px solid #ffffff24;padding:8px 12px;border-radius:4px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:32px 0 18px}.section-heading h2{margin-bottom:7px}.section-heading p{margin:0;color:var(--muted);font-size:13px}.search{position:relative;min-width:265px}.search input{width:100%;border:1px solid var(--line);background:#fff;border-radius:6px;padding:12px 15px;color:var(--ink)}.course-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.course-card{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}.card-top{padding:23px 24px 20px;display:flex;align-items:center;gap:16px}.course-symbol{width:49px;height:49px;border-radius:8px;display:grid;place-items:center;background:#e9f1fa;color:var(--blue);flex-shrink:0}.course-symbol svg{width:29px;height:29px}.course-symbol.teal{color:var(--teal);background:#ebf4f1}.course-symbol.orange{color:var(--orange);background:#fcf1e8}.course-symbol.slate{color:#667786;background:#eff2f5}.card-title{flex:1}.card-title h2{font-size:20px;margin:0 0 6px}.card-title p{font-size:12px;color:var(--muted);margin:0}.course-actions{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);padding:8px 13px 14px;gap:3px}.course-actions a{display:flex;align-items:center;gap:8px;justify-content:space-between;font-size:13px;padding:12px 11px;border-radius:4px}.course-actions a:hover{background:var(--bg);color:var(--blue)}.course-actions a:last-child:nth-child(odd){grid-column:1/-1}.reserve .course-actions a{color:var(--muted)}.home-note{display:flex;align-items:center;gap:17px;margin-top:22px;padding:17px 20px;border-left:3px solid #7c9ab4;background:#eaf0f6;color:#4d657c;border-radius:3px;font-size:12px;line-height:1.6}.home-note strong{color:var(--navy);white-space:nowrap}.home-note a{margin-left:auto;white-space:nowrap;font-weight:700;color:var(--blue)}.breadcrumbs{display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-bottom:25px}.breadcrumbs a:hover{text-decoration:underline}.page-title{margin:0 0 10px}.intro{font-size:14px;color:var(--muted);margin-bottom:26px}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px}.panel{border:1px solid var(--line);border-radius:8px;background:#fff;padding:24px;margin-bottom:20px}.panel h2{font-size:19px;margin-bottom:17px}.panel h3{margin-bottom:10px}.list-item{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:19px 0;border-top:1px solid var(--line)}.list-item:first-child{border:0}.list-item h3{margin:0 0 5px;font-size:16px}.list-item p{margin:0;font-size:12px;color:var(--muted)}.badge{font-size:10px;letter-spacing:.1px;display:inline-block;padding:6px 9px;background:#eaf3f0;color:#2b7065;border-radius:4px;white-space:nowrap}.badge.pending{background:#f0f3f6;color:#697c8e}.badge.warn{background:#fff0d9;color:#8c581a}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);border-radius:5px;padding:11px 15px;background:#fff;font-size:12px;font-weight:700;min-height:40px}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn:hover{filter:brightness(.96)}.btn:disabled{cursor:not-allowed;opacity:.6}.toolbar{display:flex;align-items:end;gap:13px;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap}.toolbar label{flex:1;max-width:400px}.field label,label.field{display:block;font-size:12px;color:var(--muted)}select,input,textarea{color:var(--ink)}.field input,.field select,.field textarea,.toolbar select{display:block;width:100%;margin-top:8px;padding:11px 12px;border:1px solid #ccd8e3;border-radius:5px;background:#fff;min-height:42px}.field input:focus,.field textarea:focus,.toolbar select:focus{border-color:var(--blue)}.field-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.small-note{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 0 0}.load-grid{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line);border-radius:6px;overflow:hidden;margin:17px 0}.load-cell{text-align:center;padding:16px 6px;border-right:1px solid var(--line)}.load-cell:last-child{border:0}.load-cell span{display:block;font-size:11px;color:var(--muted);margin-bottom:9px}.load-cell strong{font-size:23px;letter-spacing:-.6px;color:var(--navy)}.load-cell small{display:block;color:var(--muted);font-size:10px;margin-top:6px}.facts{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.facts div{padding:11px 0;border-bottom:1px solid var(--line);font-size:12px;display:flex;gap:10px;justify-content:space-between}.facts span{color:var(--muted)}.facts strong{text-align:right}.instructions{padding-left:20px;font-size:13px;line-height:1.85;color:#4b6278}.sidebar h3{font-size:15px}.sidebar p{font-size:12px}.sidebar .rule{padding-top:13px;margin-top:13px;border-top:1px solid var(--line)}.notice{padding:15px 17px;background:#eff4fa;border-left:3px solid var(--blue);border-radius:3px;font-size:12px;line-height:1.75;color:#45647f}.notice.warning{background:#fff5e6;border-color:#cc934a;color:#855a23}.notice.error{background:#fff0ef;border-color:#bb534b;color:#95443e}.module-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0}.module-tabs a{padding:11px 15px;font-size:12px;border:1px solid var(--line);border-radius:5px;background:#fff}.module-tabs a[aria-current=page]{background:var(--navy);border-color:var(--navy);color:#fff}.bench-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);gap:20px;align-items:start}.metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:18px 0}.metric{background:var(--bg);padding:16px;border-radius:5px}.metric small{display:block;color:var(--muted);font-size:11px;margin-bottom:8px}.metric strong{display:block;font-size:23px;color:var(--navy)}.metric strong small{display:inline;font-size:11px;font-weight:400;margin-left:5px}.results-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:15px}.results-table th{text-align:left;color:var(--muted);font-weight:400}.results-table th,.results-table td{padding:11px 7px;border-bottom:1px solid var(--line)}.results-table td{font-variant-numeric:tabular-nums;text-align:right}.results-table thead th{font-weight:700;color:var(--ink);background:var(--bg)}.table-scroll{overflow-x:auto}.status-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.status-heading h2{margin:0}.diagram{background:#f4f7fa;border-radius:6px;margin:16px 0;padding:14px}.diagram svg{width:100%;max-height:190px}.empty-state{text-align:center;padding:38px 22px}.empty-state h2{font-size:21px}.empty-state p{font-size:14px;color:var(--muted);max-width:470px;margin:0 auto 22px}.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.guide-grid .panel p{font-size:13px;color:var(--muted)}.step-no{display:inline-flex;align-items:center;justify-content:center;color:var(--blue);background:#eaf1f8;font-weight:700;width:30px;height:30px;border-radius:50%;margin-bottom:18px}.loading{padding:70px;text-align:center;color:var(--muted)}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;padding:23px 36px;font-size:11px;color:var(--muted);line-height:1.8}footer strong{color:var(--navy)}footer span:last-child{text-align:right}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:12px 18px;background:var(--navy);color:white;border-radius:6px;font-size:12px;display:none;z-index:5}#toast.show{display:block}.skip-link{position:fixed;left:12px;top:-60px;background:#fff;padding:12px;z-index:10}.skip-link:focus{top:12px}[hidden]{display:none!important}.print-only{display:none}
.ptk-signature{position:fixed;left:12px;bottom:8px;color:#758292;font-size:10px;line-height:1.2;letter-spacing:.25px;pointer-events:none;user-select:none;z-index:2}footer{padding-bottom:34px}
@media print{.ptk-signature{position:static;text-align:left;margin:8px 0;color:#777;font-size:9px}}
@media(max-width:950px){.masthead,.topnav,main,footer{padding-left:24px;padding-right:24px}.hero-copy{padding:30px}.hero{grid-template-columns:1.6fr 1fr}.content-grid{grid-template-columns:minmax(0,1fr) 230px}.bench-grid{grid-template-columns:1fr}.bench-grid>.panel{margin-bottom:0}.sidebar{min-width:0}.guide-grid{grid-template-columns:1fr}.hero h1{font-size:30px}}
@media(max-width:650px){.masthead{padding:19px 17px;gap:8px}.identity{gap:10px}.identity img{width:40px;height:40px}.identity strong{font-size:13px;line-height:1.4;margin-top:5px}.school{font-size:9px;letter-spacing:.3px;line-height:1.5}.version{display:none}.topnav{padding:0 17px}.navlinks{gap:16px}.navlinks a{font-size:11px;padding:16px 0}main{padding:20px 17px 32px}.hero{grid-template-columns:1fr}.hero-copy{padding:27px 24px}.hero h1{font-size:28px}.hero p{font-size:13px}.hero-art{display:none}.hero-tag{gap:7px;font-size:10px}.hero-tag span{padding:7px 8px}.section-heading{display:block;margin-top:26px}.search{min-width:0;margin-top:16px}.course-grid{grid-template-columns:1fr;gap:14px}.card-top{padding:20px}.home-note{display:block;font-size:11px}.home-note strong{display:block;margin-bottom:5px}.home-note a{display:block;margin-top:8px}.content-grid{grid-template-columns:1fr}.panel{padding:19px}.load-cell strong{font-size:18px}.load-cell span{font-size:10px}.load-cell small{font-size:9px}.load-grid{margin:16px 0}.facts{grid-template-columns:1fr}.field-grid{grid-template-columns:1fr 1fr}.field-grid .wide{grid-column:1/-1}.list-item{gap:10px}.list-item .badge{display:none}.sidebar{display:block}.toolbar{display:block}.toolbar .btn{margin-top:14px}.module-tabs{gap:5px}.module-tabs a{padding:10px;font-size:11px}footer{padding:20px 17px;font-size:10px}.status-heading{align-items:start;flex-direction:column}.metrics{gap:8px}.metric{padding:12px}.metric strong{font-size:20px}}
@media print{body{background:white;color:black}.masthead{padding:15px 0}.masthead img{width:40px;height:40px}.masthead .version,.topnav,footer,.breadcrumbs,.toolbar,.sidebar,.no-print,#toast{display:none!important}main{padding:10px 0;max-width:none}.content-grid{display:block}.panel{border:1px solid #bbb;break-inside:avoid}.load-grid{break-inside:avoid}.print-only{display:block}a[href]:after{content:none}.page-title{font-size:25px}.bench-grid{display:block}.hero-art{display:none}}

.brand-logos{position:relative;display:flex;align-items:center;gap:4px;flex:0 0 auto}.identity .brand-logos img{display:block;width:54px;height:54px;object-fit:contain;flex:0 0 54px}.brand-shine{position:absolute;inset:0;overflow:hidden;pointer-events:none;mask-image:url("assets/logo_dhxd.png"),url("assets/logo_geo.png");mask-size:54px 54px,54px 54px;mask-position:left center,right center;mask-repeat:no-repeat;-webkit-mask-image:url("assets/logo_dhxd.png"),url("assets/logo_geo.png");-webkit-mask-size:54px 54px,54px 54px;-webkit-mask-position:left center,right center;-webkit-mask-repeat:no-repeat}.brand-shine::before{content:"";position:absolute;inset:-10% -50%;background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.06) 46%,rgba(255,255,255,.32) 50%,rgba(255,255,255,.06) 54%,transparent 58%);transform:translateX(-90%);animation:brand-shine 9s linear infinite}@keyframes brand-shine{0%{transform:translateX(-90%)}80%,100%{transform:translateX(90%)}}@media(max-width:650px){.identity .brand-logos img{width:40px;height:40px;flex-basis:40px}.brand-shine{mask-size:40px 40px,40px 40px;-webkit-mask-size:40px 40px,40px 40px}}@media(prefers-reduced-motion:reduce){.brand-shine{display:none}}@media print{.brand-shine{display:none}}

#student-account{overflow-wrap:anywhere;margin-bottom:10px}#save-status{margin-top:20px}#answer-form [aria-invalid=true]{border-color:#bb534b;background:#fff7f6}#assignment-panel>.btn{margin-top:14px}#assignment-panel>.panel{margin-top:20px;margin-bottom:0}

/* Match the available window width; do not force a screen aspect ratio. */
.student-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.student-workspace>.panel{min-width:0;margin-bottom:0}
.student-workspace{margin-bottom:20px}
.student-statement .facts{grid-template-columns:minmax(0,1fr)}
.student-statement .facts strong{overflow-wrap:anywhere}
.student-answer .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.student-answer .field{min-width:0;line-height:1.5}
.student-answer input,.student-answer select{min-width:0;max-width:100%}
.student-answer .toolbar{margin-bottom:12px;align-items:center}
@media screen and (min-width:1100px){
 .student-workspace{grid-template-columns:minmax(340px,.8fr) minmax(0,1.2fr);gap:24px}
 .student-statement{position:sticky;top:20px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow-y:auto}
 .student-statement .load-cell strong{font-size:19px}
}
@media screen and (min-width:1600px){
 .masthead,.topnav,main,footer{max-width:1440px}
 .student-answer .field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media screen and (min-width:950px) and (max-height:850px){
 .masthead{padding-top:16px;padding-bottom:16px}
 .navlinks a{padding-top:13px;padding-bottom:13px}
 main{padding-top:22px}
 .hero-copy{padding-top:26px;padding-bottom:26px}
 .hero .eyebrow{margin-bottom:12px}
 .hero h1{font-size:34px;margin-bottom:10px}
 .hero p{margin-bottom:17px}
 .section-heading{margin-top:24px;margin-bottom:14px}
 .card-top{padding-top:19px;padding-bottom:17px}
 .course-actions{padding-bottom:10px}
 .course-actions a{padding-top:9px;padding-bottom:9px}
}
@media screen and (max-width:420px){
 .student-answer .field-grid{grid-template-columns:minmax(0,1fr)}
}
@media print{
 .student-workspace{display:block}
 .student-statement{position:static;max-height:none;overflow:visible;margin-bottom:18px!important}
 .student-answer{break-inside:auto}
 .student-answer .field{break-inside:avoid}
}

.student-access{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;margin-bottom:20px;align-items:start}
.student-access>.panel{min-width:0;margin-bottom:0}
.student-access .toolbar{margin-bottom:12px}
.student-access .notice{margin-bottom:0}
@media screen and (min-width:1100px){.student-access{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}}
@media print{.student-access{display:none}}

/* Offline entry follows the paper submission; one answer column on phones. */
.student-workspace.offline-entry{display:block;max-width:880px;margin:0 auto 20px}
.offline-entry .student-answer{width:100%;min-width:0}
.entry-heading .notice{font-variant-numeric:tabular-nums}
@media screen and (max-width:640px){
 .student-answer .field-grid{grid-template-columns:minmax(0,1fr)}
 .student-answer input,.student-answer select{font-size:16px;min-height:48px}
 .student-answer .toolbar .btn{min-height:48px;flex:1;text-align:center}
 .offline-entry .student-answer{padding:18px 14px}
 .offline-entry .field{gap:6px;margin-bottom:6px}
}

@media screen and (max-width:640px){
 #teacher-classes .toolbar{display:grid;grid-template-columns:1fr;width:100%}
 #teacher-classes .btn{width:100%;min-height:52px;font-size:16px;text-align:center}
 #teacher-classes .panel{padding:18px 14px}
}

/* Text tables align each heading with the values beneath it. */
.teacher-session-table th,.teacher-session-table td,
.submission-history-table th,.submission-history-table td{text-align:left;vertical-align:top}
.teacher-session-table th:nth-child(1){width:36%}
.teacher-session-table th:nth-child(2){width:22%}
.teacher-session-table th:nth-child(3){width:42%}
.teacher-session-table td:last-child{white-space:nowrap}

/* Teacher preparation and printable, answer-free papers. */
#teacher-prep-wrapper{margin:0 0 24px;border:1px solid var(--line);border-radius:8px;background:white}
#teacher-prep-wrapper>summary{padding:18px 24px;cursor:pointer;font-weight:700;color:var(--navy)}
.teacher-prep{border:0;margin:0}.teacher-prep form{margin-bottom:24px}.teacher-prep h3{margin-top:26px}
.teacher-prep textarea{width:100%;font-size:16px;min-height:140px;padding:12px;border:1px solid var(--line);border-radius:6px}
.prep-actions,.prep-session{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.prep-session{justify-content:space-between;padding:15px 0;border-top:1px solid var(--line)}
.prep-session p{margin:5px 0}.prep-table th,.prep-table td{text-align:left;vertical-align:top}
@media screen and (max-width:640px){.teacher-prep{padding:18px 14px}.prep-actions .btn,.prep-session .btn{width:100%;min-height:48px}.teacher-prep input,.teacher-prep select{font-size:16px;min-height:48px}}
@media print{
 @page{size:A4;margin:16mm}
 body.printing-teacher{background:white!important;color:black}
 body.printing-teacher .masthead,body.printing-teacher .topnav,body.printing-teacher footer,body.printing-teacher .ptk-signature,body.printing-teacher #toast{display:none!important}
 body.printing-teacher main{padding:0;max-width:none;margin:0;min-height:0}
 body.printing-teacher main>*:not(#teacher-prep-wrapper){display:none!important}
 body.printing-teacher #teacher-prep-wrapper{display:block!important;border:0;margin:0}
 body.printing-teacher #teacher-prep-wrapper>summary{display:none!important}
 body.printing-teacher .teacher-prep{padding:0;margin:0;border:0}
 body.printing-teacher .teacher-prep>*:not(#prep-print){display:none!important}
 body.printing-teacher .teacher-print{display:block!important;font-size:11pt}
 .teacher-print h1{font-size:17pt;letter-spacing:0;margin:12pt 0}
 .teacher-print h2{font-size:13pt;margin:10pt 0}
 .teacher-print p{font-size:10pt;line-height:1.5;margin:8pt 0}
 .teacher-print table{width:100%;border-collapse:collapse;font-size:9pt;margin:10pt 0}
 .teacher-print th,.teacher-print td{border:1px solid #aaa;padding:5pt;text-align:left}
 .exam-roster,.exam-paper{break-after:page}.exam-paper:last-child{break-after:auto}
 .exam-answer-lines{display:grid;grid-template-columns:1fr 1fr;gap:10pt;font-size:10pt;margin:16pt 0}
 .exam-paper-footer{font-size:8pt!important}.exam-school{font-weight:600}
}

#student-registration{max-width:880px;margin:0 auto 20px}
#student-registration summary{cursor:pointer;font-weight:700;font-size:17px;margin-bottom:16px;color:var(--navy)}
#student-registration .btn{min-height:48px}
@media screen and (max-width:640px){#student-registration input{font-size:16px;min-height:48px}#student-registration .field-grid{grid-template-columns:1fr}}

@media print {
 @page kt1 {size:A4 landscape;margin:9mm}
 body.printing-teacher,body.printing-teacher *{background:#fff!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}
 .kt1-paper{page:kt1;break-inside:avoid;font-family:Arial,sans-serif;font-size:9pt}
 .kt1-print h1{font-size:15pt;text-align:center;margin:3mm 0 1mm}
 .kt1-print header>strong{display:block;text-align:center;font-size:9pt}
 .kt1-print header p{text-align:center}
 .kt1-print h2{font-size:10pt;margin:2mm 0 1mm}
 .kt1-print p{font-size:9pt;line-height:1.3;margin:1.5mm 0}
 .kt1-print table{table-layout:fixed;font-size:9pt;margin:1.5mm 0}
 .kt1-print th,.kt1-print td{text-align:center;padding:1.5mm;border:0.25mm solid #000;font-weight:400}
 .kt1-print th{font-weight:600}
 .kt1-print .answer-blank{display:block;height:5mm}
 .paper-identity{display:flex;justify-content:space-between;gap:6mm}
 body.printing-teacher .kt1-print footer{display:flex!important;justify-content:space-between;font-size:8pt;margin-top:2mm}
}

/* Shared staff controls remain usable from a phone. */
#teacher-login,#teacher-change-password,#create-class,#staff-create,#teacher-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;align-items:end}
#teacher-login button,#teacher-change-password button,#create-class button,#staff-create button{min-height:44px}
#teacher-change-password h2{grid-column:1/-1}
#teacher-classes details{margin:18px 0}
#staff-credentials{overflow-wrap:anywhere;padding:16px;border:1px solid var(--line);border-radius:12px;margin:16px 0}
@media(max-width:600px){#teacher-login,#teacher-change-password,#create-class,#staff-create,#teacher-filters{grid-template-columns:1fr}.teacher-prep .toolbar,.prep-actions{flex-wrap:wrap}}

/* Explicit layouts must respect semantic hidden state, including login forms. */
[hidden]{display:none!important}

.password-input{display:flex;gap:8px;align-items:stretch;margin-top:8px;min-width:0}
.field .password-input input{flex:1;min-width:0;margin-top:0}
.password-toggle{flex:0 0 60px;min-height:44px;padding:8px}

/* Staff portal: compact navigation and touch targets. */
.portal-courses{margin:16px 0}.portal-course{text-decoration:none;color:inherit;display:block;margin:0}.portal-course:hover{border-color:#699fbd}.portal-course h3{margin-top:0}.portal-course p{margin-bottom:0}.portal-links{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.portal-links [aria-current="page"]{background:#e5f0f6;border-color:#699fbd}
#teacher-password-wrapper,#teacher-admin-wrapper{margin:16px 0;border:1px solid #ccdce7;border-radius:14px;background:#fff;padding:16px}#teacher-password-wrapper summary,#teacher-admin-wrapper summary{font-weight:600;cursor:pointer;min-height:28px}#teacher-password-wrapper form{margin-top:18px}#teacher-login{max-width:480px}#teacher-back,#teacher-logout,#teacher-refresh{min-height:44px}body[data-portal] .main-nav{display:flex;gap:16px}
@media(max-width:640px){.portal-courses{grid-template-columns:1fr}.portal-links .btn{flex:1 1 140px}#teacher-account{overflow-wrap:anywhere}}

/* Compact landing page and a single header row. Content stays scrollable on small screens. */
.masthead{max-width:1240px;padding:18px 28px;gap:28px;border-bottom:1px solid var(--line)}
.masthead .topnav{margin:0 0 0 auto;padding:0;border:0;flex-shrink:0}
.masthead .navlinks{gap:24px}.masthead .navlinks a{padding:12px 0;white-space:nowrap}
.identity{gap:12px}.identity strong{font-size:18px;margin-top:3px}.school{font-size:12px;font-weight:700;letter-spacing:.4px}
main{padding:20px 28px 16px;min-height:0}
.ptk-signature{position:static;max-width:1240px;margin:0 auto;padding:0 28px 12px;font-size:10px;color:#758292}
.home-page .hero{grid-template-columns:1.7fr 1fr}.home-page .hero-copy{padding:20px 28px}
.home-page .hero .eyebrow{display:none}.home-page .hero h1{font-size:32px;line-height:1.12;margin-bottom:8px}
.home-page .hero h1 br{display:none}.home-page .hero p{font-size:13px;line-height:1.5;margin:0}.home-page .hero p br{display:none}
.home-page .hero-tag{display:none}.home-page .hero-art{padding:10px 24px}.home-page .hero-art svg{max-width:180px;max-height:108px}
.home-page .section-heading{margin:18px 0 12px}.home-page .section-heading h2{font-size:20px;margin-bottom:3px}.home-page .search input{padding:10px 14px}
.home-page .course-grid{gap:12px}.home-page .card-top{padding:13px 18px;gap:12px}
.home-page .course-symbol{width:40px;height:40px}.home-page .card-title h2{font-size:19px;margin-bottom:4px}.home-page .card-title p{font-size:11px}
.home-page .course-actions{grid-template-columns:repeat(3,minmax(0,1fr));padding:5px 10px 9px;gap:2px}.home-page .course-actions a{padding:9px 8px;font-size:12px;min-height:34px}.home-page .course-actions a:last-child:nth-child(odd){grid-column:auto}
.home-page .course-card[data-course=project] .course-actions,.home-page .course-card[data-course=reserve] .course-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-page .ptk-signature{padding-top:2px}
.portal-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}
.portal-heading-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.portal-heading .page-title{font-size:24px;letter-spacing:-.5px;margin:0}.portal-heading #teacher-account{font-size:12px;color:var(--muted)}
.portal-heading-actions{display:flex;gap:8px;flex-wrap:wrap}.portal-heading .logout-btn{font-weight:400;color:var(--muted);background:transparent}
.portal-account-panel{padding:0;border:0;background:none;margin-bottom:16px}.portal-account-panel:has(> [hidden]):not(:has(> :not([hidden]))){display:none}
#teacher-message:empty{display:none}.portal-account-panel #teacher-password-wrapper{margin-top:0}
.portal-courses{gap:16px}.portal-course{padding:24px;min-height:112px;transition:border-color .2s,box-shadow .2s}.portal-course:hover{box-shadow:0 5px 16px #1234560d}
.portal-course h3{font-size:21px;margin-bottom:9px}.portal-course p{font-size:13px;color:var(--muted)}
#teacher-categories>h2{font-size:18px;margin:0 0 12px}
@media screen and (min-width:1100px) and (max-height:650px){.masthead{padding-top:12px;padding-bottom:12px}.home-page main{padding-top:12px}.home-page .hero-copy{padding-top:14px;padding-bottom:14px}.home-page .hero h1{font-size:28px}.home-page .hero-art svg{max-height:80px}.home-page .section-heading{margin-top:12px}.home-page .card-top{padding-top:10px;padding-bottom:10px}.home-page .course-actions a{padding-top:6px;padding-bottom:6px;min-height:30px}}
@media screen and (max-width:1050px){.masthead{gap:16px;padding:16px 24px}.identity strong{font-size:15px}.school{font-size:10px}.masthead .navlinks{gap:16px}.masthead .navlinks a{font-size:12px}}
@media screen and (max-width:800px){.masthead{flex-wrap:wrap;gap:10px}.masthead .topnav{width:100%;justify-content:flex-start;margin:0}.masthead .navlinks{margin:0}.home-page .hero h1{font-size:27px}.home-page .hero{grid-template-columns:1fr}.home-page .hero-art{display:none}}
@media screen and (max-width:650px){.masthead{padding:14px 17px}.identity strong{font-size:13px}.school{font-size:9px}.masthead .navlinks{gap:22px}.masthead .navlinks a{padding:8px 0;font-size:11px}main{padding:18px 17px 16px}.home-page .hero-copy{padding:22px}.home-page .course-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.home-page .course-actions a{min-height:44px;font-size:13px}.home-page .card-top{padding:16px}.home-page .section-heading{margin-top:20px}.ptk-signature{padding-left:17px;padding-right:17px}.portal-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.portal-heading-left{gap:10px;width:100%}.portal-heading .page-title{font-size:22px}.portal-heading #teacher-account{flex-basis:100%}.portal-heading-actions{width:100%}.portal-heading .btn{margin:0;min-height:44px}.portal-course{min-height:104px;padding:20px}.portal-course h3{font-size:19px}}
@media print{.portal-heading,.masthead .topnav{display:none!important}.ptk-signature{padding:4px 0}.masthead{border:0}}

/* Match the two lower cards: project links occupy the reference links' second row. */
@media screen and (min-width:651px){
 .home-page .course-card{display:flex;flex-direction:column}
 .home-page .card-top{min-height:66px}
 .home-page .course-actions{flex:1;grid-template-rows:repeat(2,minmax(34px,1fr))}
 .home-page .course-card[data-course=project] .course-actions a{grid-row:2}
 .home-page .course-card[data-course=project] .course-actions a:first-child{grid-column:1}
 .home-page .course-card[data-course=project] .course-actions a:last-child{grid-column:2}
}
/* Expand spacing with the available desktop height instead of leaving a large empty footer. */
@media screen and (min-width:951px) and (min-height:640px){
 body.home-page{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
 .home-page .masthead,.home-page main,.home-page .ptk-signature{width:100%;max-width:1240px;margin:0 auto;flex-shrink:0}
 .home-page main{flex:1;display:flex;flex-direction:column;gap:clamp(14px,2.2vh,24px);padding-top:clamp(16px,2.2vh,24px);padding-bottom:12px}
 .home-page .hero{min-height:clamp(120px,19vh,190px);flex-shrink:0}
 .home-page .hero-copy{align-self:center;padding:24px 30px}
 .home-page .hero-art svg{max-width:260px;max-height:150px}
 .home-page main>section[aria-labelledby="courses-heading"]{flex:1;display:flex;flex-direction:column}
 .home-page .section-heading{margin:0 0 clamp(12px,1.8vh,20px)}
 .home-page .course-grid{flex:1;grid-template-rows:repeat(2,minmax(140px,1fr));gap:clamp(12px,1.8vh,20px)}
 .home-page .card-top{padding:clamp(14px,2vh,22px) 22px;min-height:76px}
 .home-page .course-actions{padding:6px 14px 12px}
 .home-page .course-actions a{font-size:13px;min-height:34px}
 .home-page .ptk-signature{padding-top:0;padding-bottom:12px}
}
@media screen and (min-width:951px) and (min-height:640px) and (max-height:700px){
 .home-page main{gap:12px;padding-top:12px}
 .home-page .hero{min-height:110px}.home-page .hero-copy{padding-top:16px;padding-bottom:16px}
 .home-page .hero-art svg{max-height:100px}.home-page .card-top{min-height:66px;padding-top:12px;padding-bottom:12px}
}

/* Give the header links the same illuminated target feedback as the content links. */
.masthead .navlinks{gap:8px}
.masthead .navlinks a{padding:11px 12px;border-radius:6px;transition:background-color .18s,color .18s,box-shadow .18s}
.masthead .navlinks a:focus-visible{background:#e6eff8;color:var(--navy);box-shadow:inset 0 0 0 1px #ccdce9}
@media(hover:hover) and (pointer:fine){.masthead .navlinks a:hover{background:#e6eff8;color:var(--navy);box-shadow:inset 0 0 0 1px #ccdce9}}
@media screen and (max-width:650px){.masthead .navlinks{gap:4px}.masthead .navlinks a{padding:9px 10px}}
@media(prefers-reduced-motion:reduce){.masthead .navlinks a{transition:none}}

/* Shared light button surfaces; the signature stays in the viewport corner. */
.btn{background:#eaf2fa;border-color:#ccdae7;color:#244f75;box-shadow:inset 0 1px 0 #ffffff80;transition:background-color .16s,box-shadow .16s}
.btn.primary{background:var(--blue);border-color:var(--blue);color:white}
.portal-heading .logout-btn{background:#eaf2fa;color:#244f75}
.btn:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
@media(hover:hover) and (pointer:fine){.btn:hover{background:#dceaf7;box-shadow:inset 0 0 0 1px #b9ccdf;filter:none}.btn.primary:hover{background:#215c91;color:white}}
.password-toggle{flex:0 0 42px;min-width:42px;min-height:44px;padding:9px;border-radius:7px}
.password-toggle svg{width:20px;height:20px}
.ptk-signature,.home-page .ptk-signature{position:fixed;left:12px;bottom:8px;right:auto;top:auto;width:auto;max-width:none;margin:0;padding:0;font-size:10px;line-height:1.2;z-index:2}
main{padding-bottom:32px}
@media screen and (min-width:951px) and (min-height:640px){.home-page main{padding-bottom:32px}}
@media print{.ptk-signature,.home-page .ptk-signature{position:static;width:auto;margin:8px 0;padding:0}}

/* A compact, centered staff login with only the information needed to sign in. */
#teacher-password-login{max-width:620px;width:100%;margin:clamp(24px,6vh,64px) auto;padding:24px;border:1px solid var(--line);border-radius:12px;background:white}
#teacher-login{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#teacher-login>.btn{grid-column:1/-1;justify-self:center;width:min(100%,220px);margin-top:2px}
#teacher-login .field{min-width:0}
@media screen and (max-width:650px){#teacher-password-login{padding:20px;margin:24px auto}#teacher-login{grid-template-columns:minmax(0,1fr);gap:16px}#teacher-login input{font-size:16px}#teacher-login>.btn{width:100%}}

/* Restore the original introduction composition from the user's reference. */
.home-page .hero{grid-template-columns:1.4fr 1fr;min-height:0}
.home-page .hero-copy{padding:clamp(24px,3.5vh,38px) 36px;align-self:center}
.home-page .hero .eyebrow{display:block;font-size:10px;letter-spacing:2px;margin-bottom:14px}
.home-page .hero h1{font-size:clamp(28px,2.7vw,40px);line-height:1.25;margin-bottom:14px;max-width:590px}
.home-page .hero h1 br,.home-page .hero p br{display:initial}
.home-page .hero p{font-size:14px;line-height:1.65;margin-bottom:20px}
.home-page .hero-tag{display:flex;gap:12px;font-size:12px}
.home-page .hero-tag span{padding:8px 12px}
.home-page .hero-art{display:flex;padding:24px}
.home-page .hero-art svg{max-width:350px;max-height:230px}
@media screen and (min-width:951px) and (max-height:750px){
 .home-page .masthead{padding-top:12px;padding-bottom:12px}
 .home-page main{padding-top:10px;padding-bottom:28px;gap:10px}
 .home-page .hero-copy{padding:12px 26px}
 .home-page .hero .eyebrow{font-size:9px;margin-bottom:8px}
 .home-page .hero h1{font-size:26px;line-height:1.12;margin-bottom:8px}
 .home-page .hero p{font-size:12px;line-height:1.4;margin-bottom:12px}
 .home-page .hero-tag{font-size:11px;gap:9px}.home-page .hero-tag span{padding:6px 9px}
 .home-page .hero-art{padding:16px}.home-page .hero-art svg{max-height:165px;max-width:280px}
 .home-page .section-heading{margin-bottom:10px}
 .home-page .course-grid{grid-template-rows:repeat(2,minmax(130px,1fr));gap:10px}
 .home-page .card-top{padding:10px 18px;min-height:60px}
 .home-page .course-actions{padding:4px 10px 6px;grid-template-rows:repeat(2,minmax(30px,1fr))}
 .home-page .course-actions a{font-size:12px;min-height:30px;padding:6px 8px}
}
@media screen and (max-width:950px){.home-page .hero-copy{padding:24px}.home-page .hero h1{font-size:28px}.home-page .hero-art{padding:20px}.home-page .hero-art svg{max-height:200px}}
@media screen and (max-width:800px){.home-page .hero{grid-template-columns:1fr}.home-page .hero-art{display:none}}
@media screen and (max-width:650px){.home-page .hero h1{font-size:28px}.home-page .hero p{font-size:13px}.home-page .hero-tag{gap:7px;font-size:10px;flex-wrap:wrap}.home-page .hero-tag span{padding:7px 8px}}

/* Desktop uses CSS pixel sizes: browser zoom scales the composition without mobile breakpoints. */
html[data-layout=desktop] body{min-width:1056px}
html[data-layout=desktop] .masthead,html[data-layout=desktop] main{width:100%;max-width:1240px;min-width:1056px;margin:0 auto;padding-left:28px;padding-right:28px}
html[data-layout=desktop] .masthead{flex-wrap:nowrap;padding-top:18px;padding-bottom:18px;gap:28px}
html[data-layout=desktop] .identity{gap:12px}
html[data-layout=desktop] .identity strong{font-size:18px;margin-top:3px}
html[data-layout=desktop] .school{font-size:12px;letter-spacing:.4px}
html[data-layout=desktop] .identity .brand-logos img{width:54px;height:54px;flex-basis:54px}
html[data-layout=desktop] .brand-shine{mask-size:54px 54px,54px 54px;-webkit-mask-size:54px 54px,54px 54px}
html[data-layout=desktop] .masthead .topnav{width:auto;margin:0 0 0 auto;justify-content:flex-end}
html[data-layout=desktop] .masthead .navlinks{gap:8px;margin-left:auto}
html[data-layout=desktop] .masthead .navlinks a{font-size:13px;padding:11px 12px}
html[data-layout=desktop] main{padding-top:20px;padding-bottom:32px}
html[data-layout=desktop] h1{font-size:40px}
html[data-layout=desktop] body.home-page{display:flex;flex-direction:column;min-height:var(--desktop-page-height,740px)}
html[data-layout=desktop] .home-page main{flex:1;display:flex;flex-direction:column;gap:18px;padding-top:18px;padding-bottom:32px}
html[data-layout=desktop] .home-page .hero{grid-template-columns:1.4fr 1fr;min-height:0;flex-shrink:0}
html[data-layout=desktop] .home-page .hero-copy{padding:24px 36px}
html[data-layout=desktop] .home-page .hero .eyebrow{font-size:10px;margin-bottom:12px}
html[data-layout=desktop] .home-page .hero h1{font-size:34px;line-height:1.2;margin-bottom:12px}
html[data-layout=desktop] .home-page .hero p{font-size:13px;line-height:1.5;margin-bottom:16px}
html[data-layout=desktop] .home-page .hero-tag{font-size:12px;gap:12px}
html[data-layout=desktop] .home-page .hero-tag span{padding:7px 11px}
html[data-layout=desktop] .home-page .hero-art{display:flex;padding:22px}
html[data-layout=desktop] .home-page .hero-art svg{max-width:320px;max-height:210px}
html[data-layout=desktop] .home-page main>section[aria-labelledby=courses-heading]{flex:1;display:flex;flex-direction:column}
html[data-layout=desktop] .home-page .section-heading{display:flex;margin:0 0 14px}
html[data-layout=desktop] .home-page .search{min-width:265px;margin-top:0}
html[data-layout=desktop] .course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-layout=desktop] .home-page .course-grid{flex:1;grid-template-rows:repeat(2,minmax(140px,1fr));gap:14px}
html[data-layout=desktop] .home-page .course-card{display:flex;flex-direction:column}
html[data-layout=desktop] .home-page .card-top{padding:13px 18px;min-height:66px}
html[data-layout=desktop] .home-page .course-actions{flex:1;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(34px,1fr));padding:5px 10px 9px}
html[data-layout=desktop] .home-page .course-actions a{font-size:12px;min-height:34px;padding:9px 8px}
html[data-layout=desktop] .home-page .course-card[data-course=project] .course-actions,html[data-layout=desktop] .home-page .course-card[data-course=reserve] .course-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-layout=desktop] .home-page .course-card[data-course=project] .course-actions a{grid-row:2}
html[data-layout=desktop] .home-page .course-card[data-course=project] .course-actions a:first-child{grid-column:1}
html[data-layout=desktop] .home-page .course-card[data-course=project] .course-actions a:last-child{grid-column:2}
html[data-layout=desktop] .portal-heading{flex-wrap:nowrap;align-items:center}
html[data-layout=desktop] .portal-heading-left{width:auto}
html[data-layout=desktop] .portal-heading #teacher-account{flex-basis:auto}
html[data-layout=desktop] .portal-heading-actions{width:auto}
html[data-layout=desktop] #teacher-password-login{margin:40px auto;padding:24px}
html[data-layout=desktop] #teacher-login{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
html[data-layout=desktop] #teacher-login>.btn{width:220px}
html[data-layout=desktop] .field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-layout=desktop] .student-answer .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-layout=desktop] #teacher-classes .toolbar{display:flex;width:auto}
html[data-layout=desktop] #teacher-classes .btn{width:auto;min-height:44px;font-size:12px}
@media print{html[data-layout=desktop] body,html[data-layout=desktop] main,html[data-layout=desktop] .masthead{min-width:0;width:auto}html[data-layout=desktop] body.home-page{min-height:0}}
html[data-layout=desktop] #teacher-change-password,html[data-layout=desktop] #create-class,html[data-layout=desktop] #staff-create,html[data-layout=desktop] #teacher-filters{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
html[data-layout=desktop] .toolbar{display:flex}
html[data-layout=desktop] .student-workspace:not(.offline-entry){display:grid;grid-template-columns:minmax(340px,.8fr) minmax(0,1.2fr)}
html[data-layout=desktop] .student-access{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-layout=desktop] .content-grid{grid-template-columns:minmax(0,1fr) 270px}

/* Password visibility is an icon inside the input, with no visible button frame. */
.password-input{position:relative;display:block}
.field .password-input input{width:100%;padding-right:40px}
.password-input .password-toggle{position:absolute;right:2px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:36px;min-width:36px;height:36px;min-height:36px!important;padding:0;border:0;background:transparent;box-shadow:none;color:#526e87;border-radius:4px}
.password-input .password-toggle svg{width:11px;height:11px}
.password-input .password-toggle:hover{background:transparent;box-shadow:none;color:var(--blue)}
.password-input .password-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:-3px;background:transparent}
/* Clear, slightly raised surfaces for the four navigation actions. */
#teacher-back,#teacher-refresh,#teacher-home,#teacher-logout{background:#d5e7f7;border:1px solid #96b7d4;color:#163f64;border-radius:7px;box-shadow:0 2px 3px #12345620,inset 0 1px 0 #ffffffb3;font-weight:600;transition:background-color .16s,box-shadow .16s,transform .16s}
@media(hover:hover) and (pointer:fine){#teacher-back:hover,#teacher-refresh:hover,#teacher-home:hover,#teacher-logout:hover{background:#bfdaf0;border-color:#7c9fbd;box-shadow:0 3px 6px #12345626,inset 0 1px 0 #ffffffb3;transform:translateY(-1px)}}
#teacher-back:active,#teacher-refresh:active,#teacher-home:active,#teacher-logout:active{transform:translateY(1px);box-shadow:inset 0 1px 3px #12345622}
@media(prefers-reduced-motion:reduce){#teacher-back,#teacher-refresh,#teacher-home,#teacher-logout{transition:none}}

/* Staff headings and values share column alignment and predictable widths. */
.staff-table{table-layout:fixed;min-width:860px}
.staff-table th,.staff-table td{text-align:left;vertical-align:middle;padding:12px 10px;overflow-wrap:anywhere}
.staff-table th:nth-child(1){width:28%}.staff-table th:nth-child(2){width:12%}.staff-table th:nth-child(3){width:27%}.staff-table th:nth-child(4){width:6%}.staff-table th:nth-child(5){width:27%}
.staff-table th:nth-child(4),.staff-table td:nth-child(4){text-align:center}
.staff-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.staff-row-actions .btn{white-space:nowrap;margin:0}

/* Page two exposes every child course, using the same card composition as the cover. */
.portal-course-grid{gap:14px;margin-bottom:20px}
.portal-course-grid .course-card{display:flex;flex-direction:column}
.portal-course-grid .card-top{min-height:66px;padding:14px 18px;gap:12px}
.portal-course-grid .course-symbol{width:40px;height:40px}
.portal-course-grid .card-title h2{font-size:19px;margin:0 0 4px}
.portal-course-grid .card-title p{font-size:11px}
.portal-course-grid .course-actions{flex:1;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(34px,1fr));padding:5px 10px 9px}
.portal-course-grid .course-actions a{font-size:12px;padding:9px 8px;min-height:34px}
.portal-course-grid .course-actions a:last-child:nth-child(odd){grid-column:auto}
.portal-course-grid .course-card[data-course=project] .course-actions,.portal-course-grid .course-card[data-course=reserve] .course-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.portal-course-grid .course-card[data-course=project] .course-actions a{grid-row:2}
.portal-course-grid .course-card[data-course=project] .course-actions a:first-child{grid-column:1}
.portal-course-grid .course-card[data-course=project] .course-actions a:last-child{grid-column:2}
@media screen and (max-width:650px){html:not([data-layout=desktop]) .portal-course-grid{grid-template-columns:1fr}html:not([data-layout=desktop]) .portal-course-grid .course-actions{grid-template-columns:repeat(2,minmax(0,1fr))}html:not([data-layout=desktop]) .portal-course-grid .course-actions a{min-height:44px;font-size:13px}html:not([data-layout=desktop]) .portal-course-grid .course-card[data-course=project] .course-actions a{grid-row:auto}}

/* Raised colored child links on the cover and page-two course cards. */
.course-card .course-actions{gap:8px;padding:10px 14px 14px}
.course-card .course-actions a{background:#edf4fb;border:1px solid #c7d9eb;border-radius:6px;box-shadow:0 2px 3px #12345612,inset 0 1px 0 #ffffffbd;color:#244f75;justify-content:flex-start}
.course-card[data-course=soil] .course-actions a{background:#e9f4f1;border-color:#bddbd3;color:#286962}
.course-card[data-course=project] .course-actions a{background:#fbefe4;border-color:#e6ccb5;color:#92572d}
.course-card[data-course=reserve] .course-actions a{background:#edf0f5;border-color:#cbd4df;color:#52657a}
@media(hover:hover) and (pointer:fine){.course-card .course-actions a:hover{filter:brightness(.97);box-shadow:0 3px 6px #12345620,inset 0 1px 0 #ffffffc9}}
/* Keep the colored targets distinct inside compact desktop grids as well. */
.home-page .course-card .course-actions,.portal-course-grid .course-card .course-actions,html[data-layout=desktop] .home-page .course-card .course-actions{gap:8px;padding:10px 14px 14px}
.ptk-signature,.home-page .ptk-signature{color:#8e2029;font-weight:700;letter-spacing:.3px;opacity:1;text-shadow:0 1px 0 #ffffffd9,-.3px -.3px 0 #67141c25}
/* Compact account accordions; only the collapsed bar is reduced, not the open forms. */
#teacher-password-wrapper,#teacher-admin-wrapper{padding:9px 14px;margin:10px 0;border-radius:9px}
#teacher-password-wrapper>summary,#teacher-admin-wrapper>summary{font-size:12px;line-height:1.5;min-height:18px;list-style:none;display:flex;align-items:center;gap:12px}
#teacher-password-wrapper>summary::-webkit-details-marker,#teacher-admin-wrapper>summary::-webkit-details-marker{display:none}
#teacher-password-wrapper>summary::before,#teacher-admin-wrapper>summary::before{content:"";width:0;height:0;border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:6px solid currentColor;flex:0 0 auto}
#teacher-password-wrapper[open]>summary::before,#teacher-admin-wrapper[open]>summary::before{transform:rotate(90deg)}
#teacher-password-wrapper[open]>summary,#teacher-admin-wrapper[open]>summary{margin-bottom:12px}

/* Smaller navigation boxes with the existing text size preserved. */
#teacher-back,#teacher-refresh,#teacher-home,#teacher-logout{min-height:30px;height:auto;padding:5px 9px;gap:6px;border-radius:5px;line-height:1.4}

/* Unopened content remains discoverable with a short, visible status. */
.course-card .course-actions .course-unavailable{color:#738292;background:#f3f5f7;border-color:#dce2e8;box-shadow:none;gap:5px;flex-wrap:wrap}
.availability-label{font-size:9px;font-weight:400;white-space:nowrap;color:#7b8792;line-height:1.2}

/* Compact password fields and the staff-name field; preserve their existing font sizes. */
#teacher-password,#current-password,#new-password,#confirm-password,#staff-name{height:30px;min-height:30px;padding-top:5px;padding-bottom:5px;line-height:1.2}
.password-input .password-toggle{height:30px;min-height:30px!important;width:30px;min-width:30px}

/* Staff account actions use the same compact height. */
.staff-row-actions .btn{height:30px;min-height:30px;padding:5px 9px;line-height:1.4}

/* Match the remaining controls in each account form row. */
#teacher-email,#staff-email{height:30px;min-height:30px;padding-top:5px;padding-bottom:5px;line-height:1.2}
#teacher-change-password>.btn,#staff-create>.btn,#teacher-login>.btn{height:30px;min-height:30px;padding:5px 9px;line-height:1.4}

/* Main course titles share the stronger tone of their subject icons. */
.course-card[data-course=soil] .card-title h2{color:#246b65}
.course-card[data-course=foundation] .card-title h2{color:#245f92}
.course-card[data-course=project] .card-title h2{color:#98582e}
.course-card[data-course=reserve] .card-title h2{color:#4b6279}
.course-card .card-title h2{font-weight:700}

.teacher-results-table>thead>tr>th,.teacher-results-table>tbody>tr>td{vertical-align:top;text-align:left}.teacher-results-table>tbody>tr>td:nth-child(5),.teacher-results-table>tbody>tr>td:nth-child(6){text-align:center}.grade-detail-table th,.grade-detail-table td{text-align:left;white-space:nowrap}.grade-detail-table th{font-weight:500}.grade-detail-table td:last-child{text-align:right}.grade-detail-table{font-size:12px} .teacher-results-table details{margin-top:8px} .teacher-results-table summary,.submission-history-table summary{cursor:pointer;color:#145f94}

/* One size for secondary actions on every inner page. */
:root{--action-min-height:30px;--action-padding:5px 9px;--action-font-size:12px;--action-line-height:1.4}
html body:not(.home-page) #main .btn:not(.password-toggle),
html body:not(.home-page) #main .portal-course-grid .course-actions a{
 min-height:var(--action-min-height);height:auto;min-width:0;width:auto;
 padding:var(--action-padding);font-size:var(--action-font-size);line-height:var(--action-line-height);
 gap:6px;border-radius:5px;flex:0 0 auto;align-self:center;white-space:normal;
}
html body:not(.home-page) #main #teacher-classes .toolbar{display:flex;flex-wrap:wrap;gap:8px;width:auto;justify-content:flex-start}
html body:not(.home-page) #main .prep-actions{gap:8px}
html body:not(.home-page) #main .portal-links .btn{flex:0 0 auto}
